@nordcom/nordstar-system
Advanced tools
Comparing version 0.0.0-unstable-20231203074423 to 0.0.0-unstable-20231204035450
@@ -42,2 +42,3 @@ import type { ComponentPropsWithoutRef } from 'react'; | ||
body: string; | ||
code?: string; | ||
}; | ||
@@ -49,2 +50,6 @@ sizes?: { | ||
}; | ||
border?: { | ||
width?: string; | ||
radius?: string; | ||
}; | ||
layout?: { | ||
@@ -55,2 +60,6 @@ page?: { | ||
}; | ||
section?: { | ||
spacing?: string; | ||
padding?: string; | ||
}; | ||
block?: { | ||
@@ -57,0 +66,0 @@ padding?: string; |
@@ -19,2 +19,3 @@ import { JSX as JSX_2 } from 'react/jsx-runtime'; | ||
body: string; | ||
code?: string; | ||
}; | ||
@@ -26,2 +27,6 @@ sizes?: { | ||
}; | ||
border?: { | ||
width?: string; | ||
radius?: string; | ||
}; | ||
layout?: { | ||
@@ -32,2 +37,6 @@ page?: { | ||
}; | ||
section?: { | ||
spacing?: string; | ||
padding?: string; | ||
}; | ||
block?: { | ||
@@ -34,0 +43,0 @@ padding?: string; |
import "./nordstar-provider.css"; | ||
import we from "react"; | ||
var X = { exports: {} }, A = {}; | ||
import Oe from "react"; | ||
var H = { exports: {} }, A = {}; | ||
/** | ||
@@ -13,13 +13,13 @@ * @license React | ||
*/ | ||
var Te; | ||
function ur() { | ||
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() { | ||
var w = we, h = Symbol.for("react.element"), C = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), R = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Ce = "@@iterator"; | ||
function Pe(e) { | ||
var Re; | ||
function ir() { | ||
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() { | ||
var k = Oe, y = Symbol.for("react.element"), w = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), R = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), X = Symbol.iterator, we = "@@iterator"; | ||
function Ce(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = Z && e[Z] || e[Ce]; | ||
var r = X && e[X] || e[we]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var x = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var S = k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function c(e) { | ||
@@ -29,8 +29,8 @@ { | ||
t[n - 1] = arguments[n]; | ||
Se("error", e, t); | ||
Pe("error", e, t); | ||
} | ||
} | ||
function Se(e, r, t) { | ||
function Pe(e, r, t) { | ||
{ | ||
var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
i !== "" && (r += "%s", t = t.concat([i])); | ||
@@ -43,12 +43,12 @@ var u = t.map(function(o) { | ||
} | ||
var xe = !1, je = !1, ke = !1, De = !1, Fe = !1, Q; | ||
Q = Symbol.for("react.module.reference"); | ||
function Ae(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === g || e === E || Fe || e === P || e === S || e === v || De || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === y || e.$$typeof === _ || e.$$typeof === R || e.$$typeof === l || // This needs to include all possible module reference object | ||
var Se = !1, xe = !1, je = !1, ke = !1, De = !1, Z; | ||
Z = Symbol.for("react.module.reference"); | ||
function Fe(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === b || e === g || De || e === C || e === P || e === v || ke || e === $ || Se || xe || je || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === m || e.$$typeof === _ || e.$$typeof === R || e.$$typeof === f || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
e.$$typeof === Q || e.getModuleId !== void 0)); | ||
e.$$typeof === Z || e.getModuleId !== void 0)); | ||
} | ||
function Ie(e, r, t) { | ||
function Ae(e, r, t) { | ||
var n = e.displayName; | ||
@@ -60,6 +60,6 @@ if (n) | ||
} | ||
function ee(e) { | ||
function Q(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function b(e) { | ||
function h(e) { | ||
if (e == null) | ||
@@ -72,11 +72,11 @@ return null; | ||
switch (e) { | ||
case g: | ||
case b: | ||
return "Fragment"; | ||
case C: | ||
case w: | ||
return "Portal"; | ||
case E: | ||
case g: | ||
return "Profiler"; | ||
case C: | ||
return "StrictMode"; | ||
case P: | ||
return "StrictMode"; | ||
case S: | ||
return "Suspense"; | ||
@@ -90,15 +90,15 @@ case v: | ||
var r = e; | ||
return ee(r) + ".Consumer"; | ||
return Q(r) + ".Consumer"; | ||
case _: | ||
var t = e; | ||
return ee(t._context) + ".Provider"; | ||
case l: | ||
return Ie(e, e.render, "ForwardRef"); | ||
case y: | ||
return Q(t._context) + ".Provider"; | ||
case f: | ||
return Ae(e, e.render, "ForwardRef"); | ||
case m: | ||
var n = e.displayName || null; | ||
return n !== null ? n : b(e.type) || "Memo"; | ||
return n !== null ? n : h(e.type) || "Memo"; | ||
case T: { | ||
var i = e, u = i._payload, o = i._init; | ||
try { | ||
return b(o(u)); | ||
return h(o(u)); | ||
} catch { | ||
@@ -111,14 +111,14 @@ return null; | ||
} | ||
var O = Object.assign, D = 0, re, te, ne, ae, oe, ie, ue; | ||
function se() { | ||
var O = Object.assign, D = 0, ee, re, te, ne, ae, oe, ie; | ||
function ue() { | ||
} | ||
se.__reactDisabledLog = !0; | ||
function $e() { | ||
ue.__reactDisabledLog = !0; | ||
function Ie() { | ||
{ | ||
if (D === 0) { | ||
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd; | ||
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: se, | ||
value: ue, | ||
writable: !0 | ||
@@ -139,3 +139,3 @@ }; | ||
} | ||
function We() { | ||
function $e() { | ||
{ | ||
@@ -150,21 +150,21 @@ if (D--, D === 0) { | ||
log: O({}, e, { | ||
value: re | ||
value: ee | ||
}), | ||
info: O({}, e, { | ||
value: te | ||
value: re | ||
}), | ||
warn: O({}, e, { | ||
value: ne | ||
value: te | ||
}), | ||
error: O({}, e, { | ||
value: ae | ||
value: ne | ||
}), | ||
group: O({}, e, { | ||
value: oe | ||
value: ae | ||
}), | ||
groupCollapsed: O({}, e, { | ||
value: ie | ||
value: oe | ||
}), | ||
groupEnd: O({}, e, { | ||
value: ue | ||
value: ie | ||
}) | ||
@@ -176,3 +176,3 @@ }); | ||
} | ||
var M = x.ReactCurrentDispatcher, U; | ||
var M = S.ReactCurrentDispatcher, U; | ||
function W(e, r, t) { | ||
@@ -193,6 +193,6 @@ { | ||
{ | ||
var Ye = typeof WeakMap == "function" ? WeakMap : Map; | ||
Y = new Ye(); | ||
var We = typeof WeakMap == "function" ? WeakMap : Map; | ||
Y = new We(); | ||
} | ||
function fe(e, r) { | ||
function se(e, r) { | ||
if (!e || B) | ||
@@ -210,3 +210,3 @@ return ""; | ||
var u; | ||
u = M.current, M.current = null, $e(); | ||
u = M.current, M.current = null, Ie(); | ||
try { | ||
@@ -224,4 +224,4 @@ if (r) { | ||
Reflect.construct(o, []); | ||
} catch (m) { | ||
n = m; | ||
} catch (E) { | ||
n = E; | ||
} | ||
@@ -232,4 +232,4 @@ Reflect.construct(e, [], o); | ||
o.call(); | ||
} catch (m) { | ||
n = m; | ||
} catch (E) { | ||
n = E; | ||
} | ||
@@ -241,18 +241,18 @@ e.call(o.prototype); | ||
throw Error(); | ||
} catch (m) { | ||
n = m; | ||
} catch (E) { | ||
n = E; | ||
} | ||
e(); | ||
} | ||
} catch (m) { | ||
if (m && n && typeof m.stack == "string") { | ||
for (var a = m.stack.split(` | ||
} catch (E) { | ||
if (E && n && typeof E.stack == "string") { | ||
for (var a = E.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) | ||
`), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; ) | ||
l--; | ||
for (; s >= 1 && l >= 0; s--, l--) | ||
if (a[s] !== d[l]) { | ||
if (s !== 1 || l !== 1) | ||
do | ||
if (s--, f--, f < 0 || a[s] !== d[f]) { | ||
if (s--, l--, l < 0 || a[s] !== d[l]) { | ||
var p = ` | ||
@@ -262,3 +262,3 @@ ` + a[s].replace(" at new ", " at "); | ||
} | ||
while (s >= 1 && f >= 0); | ||
while (s >= 1 && l >= 0); | ||
break; | ||
@@ -268,11 +268,11 @@ } | ||
} finally { | ||
B = !1, M.current = u, We(), Error.prepareStackTrace = i; | ||
B = !1, M.current = u, $e(), Error.prepareStackTrace = i; | ||
} | ||
var k = e ? e.displayName || e.name : "", Re = k ? W(k) : ""; | ||
return typeof e == "function" && Y.set(e, Re), Re; | ||
var j = e ? e.displayName || e.name : "", _e = j ? W(j) : ""; | ||
return typeof e == "function" && Y.set(e, _e), _e; | ||
} | ||
function Ne(e, r, t) { | ||
return fe(e, !1); | ||
function Ye(e, r, t) { | ||
return se(e, !1); | ||
} | ||
function Le(e) { | ||
function Ne(e) { | ||
var r = e.prototype; | ||
@@ -285,7 +285,7 @@ return !!(r && r.isReactComponent); | ||
if (typeof e == "function") | ||
return fe(e, Le(e)); | ||
return se(e, Ne(e)); | ||
if (typeof e == "string") | ||
return W(e); | ||
switch (e) { | ||
case S: | ||
case P: | ||
return W("Suspense"); | ||
@@ -297,5 +297,5 @@ case v: | ||
switch (e.$$typeof) { | ||
case l: | ||
return Ne(e.render); | ||
case y: | ||
case f: | ||
return Ye(e.render); | ||
case m: | ||
return N(e.type, r, t); | ||
@@ -312,11 +312,11 @@ case T: { | ||
} | ||
var L = Object.prototype.hasOwnProperty, le = {}, ce = x.ReactDebugCurrentFrame; | ||
var L = Object.prototype.hasOwnProperty, le = {}, fe = S.ReactDebugCurrentFrame; | ||
function V(e) { | ||
if (e) { | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
ce.setExtraStackFrame(t); | ||
fe.setExtraStackFrame(t); | ||
} else | ||
ce.setExtraStackFrame(null); | ||
fe.setExtraStackFrame(null); | ||
} | ||
function Ve(e, r, t, n, i) { | ||
function Le(e, r, t, n, i) { | ||
{ | ||
@@ -340,7 +340,7 @@ var u = Function.call.bind(L); | ||
} | ||
var Me = Array.isArray; | ||
var Ve = Array.isArray; | ||
function q(e) { | ||
return Me(e); | ||
return Ve(e); | ||
} | ||
function Ue(e) { | ||
function Me(e) { | ||
{ | ||
@@ -351,5 +351,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 de(e), !1; | ||
return ce(e), !1; | ||
} catch { | ||
@@ -359,10 +359,10 @@ return !0; | ||
} | ||
function de(e) { | ||
function ce(e) { | ||
return "" + e; | ||
} | ||
function ve(e) { | ||
if (Be(e)) | ||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), de(e); | ||
function de(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)), ce(e); | ||
} | ||
var F = x.ReactCurrentOwner, qe = { | ||
var F = S.ReactCurrentOwner, Be = { | ||
key: !0, | ||
@@ -372,5 +372,5 @@ ref: !0, | ||
__source: !0 | ||
}, pe, ge, z; | ||
}, ve, pe, z; | ||
z = {}; | ||
function ze(e) { | ||
function qe(e) { | ||
if (L.call(e, "ref")) { | ||
@@ -383,3 +383,3 @@ var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
} | ||
function Je(e) { | ||
function ze(e) { | ||
if (L.call(e, "key")) { | ||
@@ -392,12 +392,12 @@ var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
} | ||
function Ge(e, r) { | ||
function Je(e, r) { | ||
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) { | ||
var t = b(F.current.type); | ||
z[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(F.current.type), e.ref), z[t] = !0); | ||
var t = h(F.current.type); | ||
z[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', h(F.current.type), e.ref), z[t] = !0); | ||
} | ||
} | ||
function Ke(e, r) { | ||
function Ge(e, r) { | ||
{ | ||
var t = function() { | ||
pe || (pe = !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)); | ||
ve || (ve = !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)); | ||
}; | ||
@@ -410,6 +410,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
} | ||
function He(e, r) { | ||
function Ke(e, r) { | ||
{ | ||
var t = function() { | ||
ge || (ge = !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)); | ||
pe || (pe = !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)); | ||
}; | ||
@@ -422,6 +422,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
} | ||
var Xe = function(e, r, t, n, i, u, o) { | ||
var He = function(e, r, t, n, i, u, o) { | ||
var a = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: h, | ||
$$typeof: y, | ||
// Built-in properties that belong on the element | ||
@@ -452,8 +452,8 @@ type: e, | ||
}; | ||
function Ze(e, r, t, n, i) { | ||
function Xe(e, r, t, n, i) { | ||
{ | ||
var u, o = {}, a = null, d = null; | ||
t !== void 0 && (ve(t), a = "" + t), Je(r) && (ve(r.key), a = "" + r.key), ze(r) && (d = r.ref, Ge(r, i)); | ||
t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), qe(r) && (d = r.ref, Je(r, i)); | ||
for (u in r) | ||
L.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]); | ||
L.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]); | ||
if (e && e.defaultProps) { | ||
@@ -465,15 +465,15 @@ var s = e.defaultProps; | ||
if (a || d) { | ||
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && Ke(o, f), d && He(o, f); | ||
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && Ge(o, l), d && Ke(o, l); | ||
} | ||
return Xe(e, a, d, i, n, F.current, o); | ||
return He(e, a, d, i, n, F.current, o); | ||
} | ||
} | ||
var J = x.ReactCurrentOwner, ye = x.ReactDebugCurrentFrame; | ||
function j(e) { | ||
var J = S.ReactCurrentOwner, ge = S.ReactDebugCurrentFrame; | ||
function x(e) { | ||
if (e) { | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
ye.setExtraStackFrame(t); | ||
ge.setExtraStackFrame(t); | ||
} else | ||
ye.setExtraStackFrame(null); | ||
ge.setExtraStackFrame(null); | ||
} | ||
@@ -483,8 +483,8 @@ var G; | ||
function K(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === h; | ||
return typeof e == "object" && e !== null && e.$$typeof === y; | ||
} | ||
function be() { | ||
function ye() { | ||
{ | ||
if (J.current) { | ||
var e = b(J.current.type); | ||
var e = h(J.current.type); | ||
if (e) | ||
@@ -498,3 +498,3 @@ return ` | ||
} | ||
function Qe(e) { | ||
function Ze(e) { | ||
{ | ||
@@ -510,6 +510,6 @@ if (e !== void 0) { | ||
} | ||
var me = {}; | ||
function er(e) { | ||
var be = {}; | ||
function Qe(e) { | ||
{ | ||
var r = be(); | ||
var r = ye(); | ||
if (!r) { | ||
@@ -524,3 +524,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name; | ||
} | ||
function he(e, r) { | ||
function me(e, r) { | ||
{ | ||
@@ -530,11 +530,11 @@ if (!e._store || e._store.validated || e.key != null) | ||
e._store.validated = !0; | ||
var t = er(r); | ||
if (me[t]) | ||
var t = Qe(r); | ||
if (be[t]) | ||
return; | ||
me[t] = !0; | ||
be[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== J.current && (n = " It was passed a child from " + b(e._owner.type) + "."), j(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), j(null); | ||
e && e._owner && e._owner !== J.current && (n = " It was passed a child from " + h(e._owner.type) + "."), x(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), x(null); | ||
} | ||
} | ||
function Ee(e, r) { | ||
function he(e, r) { | ||
{ | ||
@@ -546,3 +546,3 @@ if (typeof e != "object") | ||
var n = e[t]; | ||
K(n) && he(n, r); | ||
K(n) && me(n, r); | ||
} | ||
@@ -552,10 +552,10 @@ else if (K(e)) | ||
else if (e) { | ||
var i = Pe(e); | ||
var i = Ce(e); | ||
if (typeof i == "function" && i !== e.entries) | ||
for (var u = i.call(e), o; !(o = u.next()).done; ) | ||
K(o.value) && he(o.value, r); | ||
K(o.value) && me(o.value, r); | ||
} | ||
} | ||
} | ||
function rr(e) { | ||
function er(e) { | ||
{ | ||
@@ -568,5 +568,5 @@ var r = e.type; | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here. | ||
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === y)) | ||
r.$$typeof === m)) | ||
t = r.propTypes; | ||
@@ -576,7 +576,7 @@ else | ||
if (t) { | ||
var n = b(r); | ||
Ve(t, e.props, "prop", n, e); | ||
var n = h(r); | ||
Le(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !G) { | ||
G = !0; | ||
var i = b(r); | ||
var i = h(r); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
@@ -587,3 +587,3 @@ } | ||
} | ||
function tr(e) { | ||
function rr(e) { | ||
{ | ||
@@ -593,23 +593,23 @@ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
if (n !== "children" && n !== "key") { | ||
j(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null); | ||
x(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (j(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), j(null)); | ||
e.ref !== null && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null)); | ||
} | ||
} | ||
function _e(e, r, t, n, i, u) { | ||
function Ee(e, r, t, n, i, u) { | ||
{ | ||
var o = Ae(e); | ||
var o = Fe(e); | ||
if (!o) { | ||
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 d = Qe(i); | ||
d ? a += d : a += be(); | ||
var d = Ze(i); | ||
d ? a += d : a += ye(); | ||
var s; | ||
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === h ? (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); | ||
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === y ? (s = "<" + (h(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 f = Ze(e, r, t, i, u); | ||
if (f == null) | ||
return f; | ||
var l = Xe(e, r, t, i, u); | ||
if (l == null) | ||
return l; | ||
if (o) { | ||
@@ -620,4 +620,4 @@ var p = r.children; | ||
if (q(p)) { | ||
for (var k = 0; k < p.length; k++) | ||
Ee(p[k], e); | ||
for (var j = 0; j < p.length; j++) | ||
he(p[j], e); | ||
Object.freeze && Object.freeze(p); | ||
@@ -627,15 +627,15 @@ } else | ||
else | ||
Ee(p, e); | ||
he(p, e); | ||
} | ||
return e === g ? tr(f) : rr(f), f; | ||
return e === b ? rr(l) : er(l), l; | ||
} | ||
} | ||
function tr(e, r, t) { | ||
return Ee(e, r, t, !0); | ||
} | ||
function nr(e, r, t) { | ||
return _e(e, r, t, !0); | ||
return Ee(e, r, t, !1); | ||
} | ||
function ar(e, r, t) { | ||
return _e(e, r, t, !1); | ||
} | ||
var or = ar, ir = nr; | ||
A.Fragment = g, A.jsx = or, A.jsxs = ir; | ||
var ar = nr, or = tr; | ||
A.Fragment = b, A.jsx = ar, A.jsxs = or; | ||
}()), A; | ||
@@ -653,42 +653,45 @@ } | ||
*/ | ||
var Oe; | ||
function sr() { | ||
if (Oe) | ||
var Te; | ||
function ur() { | ||
if (Te) | ||
return I; | ||
Oe = 1; | ||
var w = we, h = Symbol.for("react.element"), C = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, P = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function _(R, l, S) { | ||
var v, y = {}, T = null, $ = null; | ||
S !== void 0 && (T = "" + S), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && ($ = l.ref); | ||
for (v in l) | ||
g.call(l, v) && !E.hasOwnProperty(v) && (y[v] = l[v]); | ||
Te = 1; | ||
var k = Oe, y = Symbol.for("react.element"), w = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, C = k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function _(R, f, P) { | ||
var v, m = {}, T = null, $ = null; | ||
P !== void 0 && (T = "" + P), f.key !== void 0 && (T = "" + f.key), f.ref !== void 0 && ($ = f.ref); | ||
for (v in f) | ||
b.call(f, v) && !g.hasOwnProperty(v) && (m[v] = f[v]); | ||
if (R && R.defaultProps) | ||
for (v in l = R.defaultProps, l) | ||
y[v] === void 0 && (y[v] = l[v]); | ||
return { $$typeof: h, type: R, key: T, ref: $, props: y, _owner: P.current }; | ||
for (v in f = R.defaultProps, f) | ||
m[v] === void 0 && (m[v] = f[v]); | ||
return { $$typeof: y, type: R, key: T, ref: $, props: m, _owner: C.current }; | ||
} | ||
return I.Fragment = C, I.jsx = _, I.jsxs = _, I; | ||
return I.Fragment = w, I.jsx = _, I.jsxs = _, I; | ||
} | ||
process.env.NODE_ENV === "production" ? X.exports = sr() : X.exports = ur(); | ||
var H = X.exports; | ||
const cr = ({ children: w, theme: h }) => { | ||
if (h) { | ||
const { accents: C, fonts: g, sizes: P, layout: E } = h, _ = { | ||
// Colors. | ||
"--color-accent-primary": C.primary, | ||
"--color-accent-secondary": C.secondary, | ||
// Fonts. | ||
"--font-heading": g.heading, | ||
"--font-body": g.body, | ||
// Sizes. | ||
"--size-text-body": P?.text?.body || "14px", | ||
// Layout.Page. | ||
"--layout-page-width": E?.page?.width || "1200px", | ||
"--layout-page-spacing": E?.page?.spacing || "1rem", | ||
// Layout.Block. | ||
"--layout-block-padding": E?.block?.padding || "1rem" | ||
}; | ||
return /* @__PURE__ */ H.jsx("div", { id: "nordstar", role: "document", style: _, children: w }); | ||
} | ||
return /* @__PURE__ */ H.jsx(H.Fragment, { children: w }); | ||
process.env.NODE_ENV === "production" ? H.exports = ur() : H.exports = ir(); | ||
var sr = H.exports; | ||
const cr = ({ children: k, theme: y }) => { | ||
const { accents: w, fonts: b, sizes: C, layout: g } = y ?? {}, _ = { | ||
// Colors. | ||
"--color-accent-primary": w?.primary, | ||
"--color-accent-secondary": w?.secondary, | ||
// Fonts. | ||
"--font-heading": b?.heading, | ||
"--font-body": b?.body, | ||
// Sizes. | ||
"--size-text-body": C?.text?.body || "14px", | ||
// Border. | ||
"--border-width": y?.border?.width || "0.18rem", | ||
"--border-radius": y?.border?.radius || "0.65rem", | ||
// Layout.Page. | ||
"--layout-page-width": g?.page?.width || "1200px", | ||
"--layout-page-spacing": g?.page?.spacing || "1rem", | ||
// Layout.Section. | ||
"--layout-section-spacing": g?.section?.spacing || "1rem", | ||
"--layout-section-padding": g?.section?.padding || "1.75rem", | ||
// Layout.Block. | ||
"--layout-block-padding": g?.block?.padding || "1rem" | ||
}; | ||
return /* @__PURE__ */ sr.jsx("div", { id: "nordstar", role: "document", style: _, children: k }); | ||
}; | ||
@@ -695,0 +698,0 @@ export { |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.0-unstable-20231203074423", | ||
"version": "0.0.0-unstable-20231204035450", | ||
"description": "", | ||
@@ -16,2 +16,3 @@ "main": "dist/index.js", | ||
}, | ||
"./index.css": "./dist/index.css", | ||
"./package.json": "./package.json" | ||
@@ -18,0 +19,0 @@ }, |
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
92868
808