skeleton-sh
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -1,2 +0,2 @@ | ||
declare function App(): any; | ||
declare function App(): JSX.Element; | ||
export default App; |
@@ -6,3 +6,3 @@ declare type props = { | ||
}; | ||
export default function Circle({ radius, margin, onClick }: props): any; | ||
export default function Circle({ radius, margin, onClick }: props): JSX.Element; | ||
export {}; |
@@ -5,3 +5,3 @@ declare type props = { | ||
}; | ||
export default function Center({ onClick, children }: props): any; | ||
export default function Center({ onClick, children }: props): JSX.Element; | ||
export {}; |
@@ -5,3 +5,3 @@ declare type props = { | ||
}; | ||
export default function Col({ onClick, children }: props): any; | ||
export default function Col({ onClick, children }: props): JSX.Element; | ||
export {}; |
@@ -5,3 +5,3 @@ declare type props = { | ||
}; | ||
export default function Row({ onClick, children }: props): any; | ||
export default function Row({ onClick, children }: props): JSX.Element; | ||
export {}; |
@@ -7,3 +7,3 @@ declare type props = { | ||
}; | ||
export default function Rect({ height, width, margin, onClick }: props): any; | ||
export default function Rect({ height, width, margin, onClick }: props): JSX.Element; | ||
export {}; |
@@ -6,3 +6,3 @@ declare type props = { | ||
}; | ||
export default function Skeleton({ children, enable, dir }: props): any; | ||
export default function Skeleton({ children, enable, dir, }: props): JSX.Element; | ||
export {}; |
@@ -6,3 +6,3 @@ declare type props = { | ||
}; | ||
export default function Square({ width, margin, onClick }: props): any; | ||
export default function Square({ width, margin, onClick }: props): JSX.Element; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import Skeleton from "./Skeleton"; | ||
export default Skeleton; | ||
declare const test: () => any; | ||
export default test; |
@@ -5,3 +5,3 @@ declare type props = { | ||
}; | ||
export default function List({ children, count }: props): any; | ||
export default function List({ children, count }: props): JSX.Element; | ||
export {}; |
@@ -1,6 +0,3 @@ | ||
import Ce from "react"; | ||
import sr from "react-dom"; | ||
var X = sr; | ||
process.env.NODE_ENV === "production" ? (X.createRoot, X.hydrateRoot) : X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var Z = { exports: {} }, F = {}; | ||
import Te from "react"; | ||
var Oe = { exports: {} }, k = {}; | ||
/** | ||
@@ -15,21 +12,21 @@ * @license React | ||
*/ | ||
var Oe; | ||
function lr() { | ||
if (Oe) | ||
return F; | ||
Oe = 1; | ||
var s = Ce, l = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, I = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function j(T, d, C) { | ||
var m, y = {}, O = null, $ = null; | ||
C !== void 0 && (O = "" + C), d.key !== void 0 && (O = "" + d.key), d.ref !== void 0 && ($ = d.ref); | ||
for (m in d) | ||
g.call(d, m) && !N.hasOwnProperty(m) && (y[m] = d[m]); | ||
if (T && T.defaultProps) | ||
for (m in d = T.defaultProps, d) | ||
y[m] === void 0 && (y[m] = d[m]); | ||
return { $$typeof: l, type: T, key: O, ref: $, props: y, _owner: I.current }; | ||
var me; | ||
function or() { | ||
if (me) | ||
return k; | ||
me = 1; | ||
var m = Te, S = Symbol.for("react.element"), V = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, F = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function w(E, l, T) { | ||
var v, g = {}, y = null, I = null; | ||
T !== void 0 && (y = "" + T), l.key !== void 0 && (y = "" + l.key), l.ref !== void 0 && (I = l.ref); | ||
for (v in l) | ||
R.call(l, v) && !A.hasOwnProperty(v) && (g[v] = l[v]); | ||
if (E && E.defaultProps) | ||
for (v in l = E.defaultProps, l) | ||
g[v] === void 0 && (g[v] = l[v]); | ||
return { $$typeof: S, type: E, key: y, ref: I, props: g, _owner: F.current }; | ||
} | ||
return F.Fragment = _, F.jsx = j, F.jsxs = j, F; | ||
return k.Fragment = V, k.jsx = w, k.jsxs = w, k; | ||
} | ||
var A = {}; | ||
var D = {}; | ||
/** | ||
@@ -44,26 +41,26 @@ * @license React | ||
*/ | ||
var Se; | ||
function fr() { | ||
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() { | ||
var s = Ce, l = Symbol.for("react.element"), _ = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), T = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator"; | ||
var Re; | ||
function ur() { | ||
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() { | ||
var m = Te, S = Symbol.for("react.element"), V = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), E = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator"; | ||
function Pe(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = Q && e[Q] || e[we]; | ||
var r = H && e[H] || e[Ce]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var w = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function v(e) { | ||
var O = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function c(e) { | ||
{ | ||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) | ||
t[n - 1] = arguments[n]; | ||
xe("error", e, t); | ||
Se("error", e, t); | ||
} | ||
} | ||
function xe(e, r, t) { | ||
function Se(e, r, t) { | ||
{ | ||
var n = w.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
i !== "" && (r += "%s", t = t.concat([i])); | ||
var u = t.map(function(o) { | ||
return String(o); | ||
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum(); | ||
o !== "" && (r += "%s", t = t.concat([o])); | ||
var u = t.map(function(i) { | ||
return String(i); | ||
}); | ||
@@ -73,21 +70,21 @@ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u); | ||
} | ||
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, ee; | ||
ee = Symbol.for("react.module.reference"); | ||
function Ie(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === g || e === N || Ae || e === I || e === C || e === m || Fe || e === $ || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === y || e.$$typeof === j || e.$$typeof === T || e.$$typeof === d || e.$$typeof === ee || e.getModuleId !== void 0)); | ||
var we = !1, xe = !1, je = !1, ke = !1, De = !1, X; | ||
X = Symbol.for("react.module.reference"); | ||
function Fe(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === R || e === A || De || e === F || e === T || e === v || ke || e === I || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === g || e.$$typeof === w || e.$$typeof === E || e.$$typeof === l || e.$$typeof === X || e.getModuleId !== void 0)); | ||
} | ||
function Ne(e, r, t) { | ||
function Ae(e, r, t) { | ||
var n = e.displayName; | ||
if (n) | ||
return n; | ||
var i = r.displayName || r.name || ""; | ||
return i !== "" ? t + "(" + i + ")" : t; | ||
var o = r.displayName || r.name || ""; | ||
return o !== "" ? t + "(" + o + ")" : t; | ||
} | ||
function re(e) { | ||
function Z(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function R(e) { | ||
function b(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
return e.displayName || e.name || null; | ||
@@ -97,13 +94,13 @@ if (typeof e == "string") | ||
switch (e) { | ||
case g: | ||
case R: | ||
return "Fragment"; | ||
case _: | ||
case V: | ||
return "Portal"; | ||
case N: | ||
case A: | ||
return "Profiler"; | ||
case I: | ||
case F: | ||
return "StrictMode"; | ||
case C: | ||
case T: | ||
return "Suspense"; | ||
case m: | ||
case v: | ||
return "SuspenseList"; | ||
@@ -113,17 +110,17 @@ } | ||
switch (e.$$typeof) { | ||
case T: | ||
case E: | ||
var r = e; | ||
return re(r) + ".Consumer"; | ||
case j: | ||
return Z(r) + ".Consumer"; | ||
case w: | ||
var t = e; | ||
return re(t._context) + ".Provider"; | ||
case d: | ||
return Ne(e, e.render, "ForwardRef"); | ||
case y: | ||
return Z(t._context) + ".Provider"; | ||
case l: | ||
return Ae(e, e.render, "ForwardRef"); | ||
case g: | ||
var n = e.displayName || null; | ||
return n !== null ? n : R(e.type) || "Memo"; | ||
case O: { | ||
var i = e, u = i._payload, o = i._init; | ||
return n !== null ? n : b(e.type) || "Memo"; | ||
case y: { | ||
var o = e, u = o._payload, i = o._init; | ||
try { | ||
return R(o(u)); | ||
return b(i(u)); | ||
} catch { | ||
@@ -136,14 +133,14 @@ return null; | ||
} | ||
var S = Object.assign, k = 0, te, ne, ae, oe, ie, ue, se; | ||
function le() { | ||
var _ = Object.assign, x = 0, Q, ee, re, te, ne, ae, ie; | ||
function oe() { | ||
} | ||
le.__reactDisabledLog = !0; | ||
function $e() { | ||
oe.__reactDisabledLog = !0; | ||
function Ie() { | ||
{ | ||
if (k === 0) { | ||
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd; | ||
if (x === 0) { | ||
Q = console.log, ee = console.info, re = console.warn, te = console.error, ne = console.group, ae = console.groupCollapsed, ie = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: le, | ||
value: oe, | ||
writable: !0 | ||
@@ -161,8 +158,8 @@ }; | ||
} | ||
k++; | ||
x++; | ||
} | ||
} | ||
function We() { | ||
function $e() { | ||
{ | ||
if (k--, k === 0) { | ||
if (x--, x === 0) { | ||
var e = { | ||
@@ -174,52 +171,52 @@ configurable: !0, | ||
Object.defineProperties(console, { | ||
log: S({}, e, { | ||
log: _({}, e, { | ||
value: Q | ||
}), | ||
info: _({}, e, { | ||
value: ee | ||
}), | ||
warn: _({}, e, { | ||
value: re | ||
}), | ||
error: _({}, e, { | ||
value: te | ||
}), | ||
info: S({}, e, { | ||
group: _({}, e, { | ||
value: ne | ||
}), | ||
warn: S({}, e, { | ||
groupCollapsed: _({}, e, { | ||
value: ae | ||
}), | ||
error: S({}, e, { | ||
value: oe | ||
}), | ||
group: S({}, e, { | ||
groupEnd: _({}, e, { | ||
value: ie | ||
}), | ||
groupCollapsed: S({}, e, { | ||
value: ue | ||
}), | ||
groupEnd: S({}, e, { | ||
value: se | ||
}) | ||
}); | ||
} | ||
k < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var M = w.ReactCurrentDispatcher, q; | ||
function W(e, r, t) { | ||
var M = O.ReactCurrentDispatcher, U; | ||
function $(e, r, t) { | ||
{ | ||
if (q === void 0) | ||
if (U === void 0) | ||
try { | ||
throw Error(); | ||
} catch (i) { | ||
var n = i.stack.trim().match(/\n( *(at )?)/); | ||
q = n && n[1] || ""; | ||
} catch (o) { | ||
var n = o.stack.trim().match(/\n( *(at )?)/); | ||
U = n && n[1] || ""; | ||
} | ||
return ` | ||
` + q + e; | ||
` + U + e; | ||
} | ||
} | ||
var B = !1, Y; | ||
var B = !1, W; | ||
{ | ||
var Ye = typeof WeakMap == "function" ? WeakMap : Map; | ||
Y = new Ye(); | ||
var We = typeof WeakMap == "function" ? WeakMap : Map; | ||
W = new We(); | ||
} | ||
function fe(e, r) { | ||
function ue(e, r) { | ||
if (!e || B) | ||
return ""; | ||
{ | ||
var t = Y.get(e); | ||
var t = W.get(e); | ||
if (t !== void 0) | ||
@@ -230,12 +227,12 @@ return t; | ||
B = !0; | ||
var i = Error.prepareStackTrace; | ||
var o = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var u; | ||
u = M.current, M.current = null, $e(); | ||
u = M.current, M.current = null, Ie(); | ||
try { | ||
if (r) { | ||
var o = function() { | ||
var i = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(o.prototype, "props", { | ||
if (Object.defineProperty(i.prototype, "props", { | ||
set: function() { | ||
@@ -246,14 +243,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(o, []); | ||
} catch (b) { | ||
n = b; | ||
Reflect.construct(i, []); | ||
} catch (h) { | ||
n = h; | ||
} | ||
Reflect.construct(e, [], o); | ||
Reflect.construct(e, [], i); | ||
} else { | ||
try { | ||
o.call(); | ||
} catch (b) { | ||
n = b; | ||
i.call(); | ||
} catch (h) { | ||
n = h; | ||
} | ||
e.call(o.prototype); | ||
e.call(i.prototype); | ||
} | ||
@@ -263,23 +260,23 @@ } else { | ||
throw Error(); | ||
} catch (b) { | ||
n = b; | ||
} catch (h) { | ||
n = h; | ||
} | ||
e(); | ||
} | ||
} catch (b) { | ||
if (b && n && typeof b.stack == "string") { | ||
for (var a = b.stack.split(` | ||
`), p = n.stack.split(` | ||
`), f = a.length - 1, c = p.length - 1; f >= 1 && c >= 0 && a[f] !== p[c]; ) | ||
c--; | ||
for (; f >= 1 && c >= 0; f--, c--) | ||
if (a[f] !== p[c]) { | ||
if (f !== 1 || c !== 1) | ||
} catch (h) { | ||
if (h && n && typeof h.stack == "string") { | ||
for (var a = h.stack.split(` | ||
`), d = n.stack.split(` | ||
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; ) | ||
f--; | ||
for (; s >= 1 && f >= 0; s--, f--) | ||
if (a[s] !== d[f]) { | ||
if (s !== 1 || f !== 1) | ||
do | ||
if (f--, c--, c < 0 || a[f] !== p[c]) { | ||
var E = ` | ||
` + a[f].replace(" at new ", " at "); | ||
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, E), E; | ||
if (s--, f--, f < 0 || a[s] !== d[f]) { | ||
var p = ` | ||
` + a[s].replace(" at new ", " at "); | ||
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p; | ||
} | ||
while (f >= 1 && c >= 0); | ||
while (s >= 1 && f >= 0); | ||
break; | ||
@@ -289,37 +286,37 @@ } | ||
} finally { | ||
B = !1, M.current = u, We(), Error.prepareStackTrace = i; | ||
B = !1, M.current = u, $e(), Error.prepareStackTrace = o; | ||
} | ||
var x = e ? e.displayName || e.name : "", Te = x ? W(x) : ""; | ||
return typeof e == "function" && Y.set(e, Te), Te; | ||
var P = e ? e.displayName || e.name : "", _e = P ? $(P) : ""; | ||
return typeof e == "function" && W.set(e, _e), _e; | ||
} | ||
function Le(e, r, t) { | ||
return fe(e, !1); | ||
function Ye(e, r, t) { | ||
return ue(e, !1); | ||
} | ||
function Ue(e) { | ||
function Ne(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
} | ||
function L(e, r, t) { | ||
function Y(e, r, t) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return fe(e, Ue(e)); | ||
return ue(e, Ne(e)); | ||
if (typeof e == "string") | ||
return W(e); | ||
return $(e); | ||
switch (e) { | ||
case C: | ||
return W("Suspense"); | ||
case m: | ||
return W("SuspenseList"); | ||
case T: | ||
return $("Suspense"); | ||
case v: | ||
return $("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case d: | ||
return Le(e.render); | ||
case y: | ||
return L(e.type, r, t); | ||
case O: { | ||
var n = e, i = n._payload, u = n._init; | ||
case l: | ||
return Ye(e.render); | ||
case g: | ||
return Y(e.type, r, t); | ||
case y: { | ||
var n = e, o = n._payload, u = n._init; | ||
try { | ||
return L(u(i), r, t); | ||
return Y(u(o), r, t); | ||
} catch { | ||
@@ -331,34 +328,34 @@ } | ||
} | ||
var U = Object.prototype.hasOwnProperty, ce = {}, de = w.ReactDebugCurrentFrame; | ||
function V(e) { | ||
var N = Object.prototype.hasOwnProperty, se = {}, fe = O.ReactDebugCurrentFrame; | ||
function L(e) { | ||
if (e) { | ||
var r = e._owner, t = L(e.type, e._source, r ? r.type : null); | ||
de.setExtraStackFrame(t); | ||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); | ||
fe.setExtraStackFrame(t); | ||
} else | ||
de.setExtraStackFrame(null); | ||
fe.setExtraStackFrame(null); | ||
} | ||
function Ve(e, r, t, n, i) { | ||
function Le(e, r, t, n, o) { | ||
{ | ||
var u = Function.call.bind(U); | ||
for (var o in e) | ||
if (u(e, o)) { | ||
var u = Function.call.bind(N); | ||
for (var i in e) | ||
if (u(e, i)) { | ||
var a = void 0; | ||
try { | ||
if (typeof e[o] != "function") { | ||
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw p.name = "Invariant Violation", p; | ||
if (typeof e[i] != "function") { | ||
var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw d.name = "Invariant Violation", d; | ||
} | ||
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (f) { | ||
a = f; | ||
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (s) { | ||
a = s; | ||
} | ||
a && !(a instanceof Error) && (V(i), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, V(i), v("Failed %s type: %s", t, a.message), V(null)); | ||
a && !(a instanceof Error) && (L(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in se) && (se[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null)); | ||
} | ||
} | ||
} | ||
var Me = Array.isArray; | ||
function J(e) { | ||
return Me(e); | ||
var Ve = Array.isArray; | ||
function q(e) { | ||
return Ve(e); | ||
} | ||
function qe(e) { | ||
function Me(e) { | ||
{ | ||
@@ -369,5 +366,5 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
} | ||
function Be(e) { | ||
function Ue(e) { | ||
try { | ||
return ve(e), !1; | ||
return le(e), !1; | ||
} catch { | ||
@@ -377,10 +374,10 @@ return !0; | ||
} | ||
function ve(e) { | ||
function le(e) { | ||
return "" + e; | ||
} | ||
function pe(e) { | ||
if (Be(e)) | ||
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e); | ||
function ce(e) { | ||
if (Ue(e)) | ||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), le(e); | ||
} | ||
var D = w.ReactCurrentOwner, Je = { | ||
var j = O.ReactCurrentOwner, Be = { | ||
key: !0, | ||
@@ -390,6 +387,6 @@ ref: !0, | ||
__source: !0 | ||
}, _e, me, G; | ||
G = {}; | ||
function Ge(e) { | ||
if (U.call(e, "ref")) { | ||
}, de, ve, J; | ||
J = {}; | ||
function qe(e) { | ||
if (N.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
@@ -401,4 +398,4 @@ if (r && r.isReactWarning) | ||
} | ||
function ze(e) { | ||
if (U.call(e, "key")) { | ||
function Je(e) { | ||
if (N.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
@@ -410,12 +407,12 @@ if (r && r.isReactWarning) | ||
} | ||
function Ke(e, r) { | ||
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) { | ||
var t = R(D.current.type); | ||
G[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(D.current.type), e.ref), G[t] = !0); | ||
function Ge(e, r) { | ||
if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) { | ||
var t = b(j.current.type); | ||
J[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', b(j.current.type), e.ref), J[t] = !0); | ||
} | ||
} | ||
function He(e, r) { | ||
function ze(e, r) { | ||
{ | ||
var t = function() { | ||
_e || (_e = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
de || (de = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
}; | ||
@@ -428,6 +425,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
} | ||
function Xe(e, r) { | ||
function Ke(e, r) { | ||
{ | ||
var t = function() { | ||
me || (me = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
ve || (ve = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
}; | ||
@@ -440,9 +437,9 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
} | ||
var Ze = function(e, r, t, n, i, u, o) { | ||
var He = function(e, r, t, n, o, u, i) { | ||
var a = { | ||
$$typeof: l, | ||
$$typeof: S, | ||
type: e, | ||
key: r, | ||
ref: t, | ||
props: o, | ||
props: i, | ||
_owner: u | ||
@@ -464,40 +461,40 @@ }; | ||
writable: !1, | ||
value: i | ||
value: o | ||
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; | ||
}; | ||
function Qe(e, r, t, n, i) { | ||
function Xe(e, r, t, n, o) { | ||
{ | ||
var u, o = {}, a = null, p = null; | ||
t !== void 0 && (pe(t), a = "" + t), ze(r) && (pe(r.key), a = "" + r.key), Ge(r) && (p = r.ref, Ke(r, i)); | ||
var u, i = {}, a = null, d = null; | ||
t !== void 0 && (ce(t), a = "" + t), Je(r) && (ce(r.key), a = "" + r.key), qe(r) && (d = r.ref, Ge(r, o)); | ||
for (u in r) | ||
U.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]); | ||
N.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]); | ||
if (e && e.defaultProps) { | ||
var f = e.defaultProps; | ||
for (u in f) | ||
o[u] === void 0 && (o[u] = f[u]); | ||
var s = e.defaultProps; | ||
for (u in s) | ||
i[u] === void 0 && (i[u] = s[u]); | ||
} | ||
if (a || p) { | ||
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && He(o, c), p && Xe(o, c); | ||
if (a || d) { | ||
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && ze(i, f), d && Ke(i, f); | ||
} | ||
return Ze(e, a, p, i, n, D.current, o); | ||
return He(e, a, d, o, n, j.current, i); | ||
} | ||
} | ||
var z = w.ReactCurrentOwner, Ee = w.ReactDebugCurrentFrame; | ||
function P(e) { | ||
var G = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame; | ||
function C(e) { | ||
if (e) { | ||
var r = e._owner, t = L(e.type, e._source, r ? r.type : null); | ||
Ee.setExtraStackFrame(t); | ||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); | ||
pe.setExtraStackFrame(t); | ||
} else | ||
Ee.setExtraStackFrame(null); | ||
pe.setExtraStackFrame(null); | ||
} | ||
var K; | ||
K = !1; | ||
function H(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === l; | ||
var z; | ||
z = !1; | ||
function K(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === S; | ||
} | ||
function ge() { | ||
{ | ||
if (z.current) { | ||
var e = R(z.current.type); | ||
if (G.current) { | ||
var e = b(G.current.type); | ||
if (e) | ||
@@ -511,3 +508,3 @@ return ` | ||
} | ||
function er(e) { | ||
function Ze(e) { | ||
{ | ||
@@ -523,4 +520,4 @@ if (e !== void 0) { | ||
} | ||
var he = {}; | ||
function rr(e) { | ||
var be = {}; | ||
function Qe(e) { | ||
{ | ||
@@ -537,3 +534,3 @@ var r = ge(); | ||
} | ||
function ye(e, r) { | ||
function he(e, r) { | ||
{ | ||
@@ -543,30 +540,30 @@ if (!e._store || e._store.validated || e.key != null) | ||
e._store.validated = !0; | ||
var t = rr(r); | ||
if (he[t]) | ||
var t = Qe(r); | ||
if (be[t]) | ||
return; | ||
he[t] = !0; | ||
be[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + R(e._owner.type) + "."), P(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null); | ||
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + b(e._owner.type) + "."), C(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), C(null); | ||
} | ||
} | ||
function Re(e, r) { | ||
function Ee(e, r) { | ||
{ | ||
if (typeof e != "object") | ||
return; | ||
if (J(e)) | ||
if (q(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var n = e[t]; | ||
H(n) && ye(n, r); | ||
K(n) && he(n, r); | ||
} | ||
else if (H(e)) | ||
else if (K(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var i = Pe(e); | ||
if (typeof i == "function" && i !== e.entries) | ||
for (var u = i.call(e), o; !(o = u.next()).done; ) | ||
H(o.value) && ye(o.value, r); | ||
var o = Pe(e); | ||
if (typeof o == "function" && o !== e.entries) | ||
for (var u = o.call(e), i; !(i = u.next()).done; ) | ||
K(i.value) && he(i.value, r); | ||
} | ||
} | ||
} | ||
function tr(e) { | ||
function er(e) { | ||
{ | ||
@@ -579,3 +576,3 @@ var r = e.type; | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === d || r.$$typeof === y)) | ||
else if (typeof r == "object" && (r.$$typeof === l || r.$$typeof === g)) | ||
t = r.propTypes; | ||
@@ -585,13 +582,13 @@ else | ||
if (t) { | ||
var n = R(r); | ||
Ve(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !K) { | ||
K = !0; | ||
var i = R(r); | ||
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
var n = b(r); | ||
Le(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !z) { | ||
z = !0; | ||
var o = b(r); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
} | ||
function nr(e) { | ||
function rr(e) { | ||
{ | ||
@@ -601,162 +598,58 @@ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
if (n !== "children" && n !== "key") { | ||
P(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null); | ||
C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (P(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), P(null)); | ||
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null)); | ||
} | ||
} | ||
function be(e, r, t, n, i, u) { | ||
function ye(e, r, t, n, o, u) { | ||
{ | ||
var o = Ie(e); | ||
if (!o) { | ||
var i = Fe(e); | ||
if (!i) { | ||
var a = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var p = er(i); | ||
p ? a += p : a += ge(); | ||
var f; | ||
e === null ? f = "null" : J(e) ? f = "array" : e !== void 0 && e.$$typeof === l ? (f = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a); | ||
var d = Ze(o); | ||
d ? a += d : a += ge(); | ||
var s; | ||
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === S ? (s = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a); | ||
} | ||
var c = Qe(e, r, t, i, u); | ||
if (c == null) | ||
return c; | ||
if (o) { | ||
var E = r.children; | ||
if (E !== void 0) | ||
var f = Xe(e, r, t, o, u); | ||
if (f == null) | ||
return f; | ||
if (i) { | ||
var p = r.children; | ||
if (p !== void 0) | ||
if (n) | ||
if (J(E)) { | ||
for (var x = 0; x < E.length; x++) | ||
Re(E[x], e); | ||
Object.freeze && Object.freeze(E); | ||
if (q(p)) { | ||
for (var P = 0; P < p.length; P++) | ||
Ee(p[P], e); | ||
Object.freeze && Object.freeze(p); | ||
} else | ||
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
Re(E, e); | ||
Ee(p, e); | ||
} | ||
return e === g ? nr(c) : tr(c), c; | ||
return e === R ? rr(f) : er(f), f; | ||
} | ||
} | ||
function ar(e, r, t) { | ||
return be(e, r, t, !0); | ||
function tr(e, r, t) { | ||
return ye(e, r, t, !0); | ||
} | ||
function or(e, r, t) { | ||
return be(e, r, t, !1); | ||
function nr(e, r, t) { | ||
return ye(e, r, t, !1); | ||
} | ||
var ir = or, ur = ar; | ||
A.Fragment = g, A.jsx = ir, A.jsxs = ur; | ||
}()), A; | ||
var ar = nr, ir = tr; | ||
D.Fragment = R, D.jsx = ar, D.jsxs = ir; | ||
}()), D; | ||
} | ||
(function(s) { | ||
process.env.NODE_ENV === "production" ? s.exports = lr() : s.exports = fr(); | ||
})(Z); | ||
const cr = Z.exports.Fragment, h = Z.exports.jsx; | ||
function dr({ | ||
children: s, | ||
enable: l = !0, | ||
dir: _ = "rtl" | ||
}) { | ||
return l ? /* @__PURE__ */ h("div", { | ||
className: "skeleton", | ||
dir: _, | ||
children: s | ||
}) : /* @__PURE__ */ h(cr, {}); | ||
} | ||
function vr({ | ||
height: s, | ||
width: l, | ||
margin: _, | ||
onClick: g | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "rect", | ||
style: { | ||
height: s, | ||
width: l, | ||
margin: _ | ||
}, | ||
onClick: g | ||
}); | ||
} | ||
function pr({ | ||
width: s, | ||
margin: l, | ||
onClick: _ | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "square", | ||
style: { | ||
width: s, | ||
height: s, | ||
margin: l | ||
}, | ||
onClick: _ | ||
}); | ||
} | ||
function _r({ | ||
radius: s, | ||
margin: l, | ||
onClick: _ | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "circle", | ||
style: { | ||
width: s, | ||
height: s, | ||
margin: l | ||
}, | ||
onClick: _ | ||
}); | ||
} | ||
function mr({ | ||
onClick: s, | ||
children: l | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "row", | ||
onClick: s, | ||
children: l | ||
}); | ||
} | ||
function Er({ | ||
onClick: s, | ||
children: l | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "col", | ||
onClick: s, | ||
children: l | ||
}); | ||
} | ||
function gr({ | ||
onClick: s, | ||
children: l | ||
}) { | ||
return /* @__PURE__ */ h("div", { | ||
className: "center", | ||
onClick: s, | ||
children: l | ||
}); | ||
} | ||
function hr({ | ||
children: s, | ||
count: l | ||
}) { | ||
const _ = Array.from(Array(l).keys()); | ||
return /* @__PURE__ */ h("div", { | ||
children: _.map((g) => /* @__PURE__ */ h("div", { | ||
children: s | ||
}, g)) | ||
}); | ||
} | ||
const br = Object.assign(dr, { | ||
Rect: vr, | ||
Square: pr, | ||
Circle: _r, | ||
Row: mr, | ||
Col: Er, | ||
Center: gr, | ||
List: hr | ||
(function(m) { | ||
process.env.NODE_ENV === "production" ? m.exports = or() : m.exports = ur(); | ||
})(Oe); | ||
const sr = Oe.exports.jsx, lr = () => /* @__PURE__ */ sr("div", { | ||
className: "test", | ||
children: "this is skeleton library" | ||
}); | ||
export { | ||
br as default | ||
lr as default | ||
}; |
{ | ||
"name": "skeleton-sh", | ||
"license": "UNLICENSED", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
41263
784