@nordcom/nordstar-system
Advanced tools
Comparing version 0.0.0-unstable-20231122033023 to 0.0.0-unstable-20231203065701
@@ -27,8 +27,20 @@ import type { ComponentPropsWithoutRef } from 'react'; | ||
export declare const NordstarProvider: ({ children }: NordstarProviderProps) => JSX_2.Element; | ||
export declare const NordstarProvider: ({ children, theme }: NordstarProviderProps) => JSX_2.Element; | ||
export declare type NordstarProviderProps = { | ||
children: ReactNode; | ||
theme?: NordstarTheme; | ||
}; | ||
export declare type NordstarTheme = { | ||
accents: { | ||
primary: string; | ||
secondary: string; | ||
}; | ||
fonts: { | ||
heading: string; | ||
body: string; | ||
}; | ||
}; | ||
export declare type OmitCommonProps<Target, OmitAdditionalProps extends keyof any = never> = Omit<Target, 'as' | OmitAdditionalProps>; | ||
@@ -35,0 +47,0 @@ |
import { JSX as JSX_2 } from 'react/jsx-runtime'; | ||
import type { ReactNode } from 'react'; | ||
export declare const NordstarProvider: ({ children }: NordstarProviderProps) => JSX_2.Element; | ||
export declare const NordstarProvider: ({ children, theme }: NordstarProviderProps) => JSX_2.Element; | ||
export declare type NordstarProviderProps = { | ||
children: ReactNode; | ||
theme?: NordstarTheme; | ||
}; | ||
export declare type NordstarTheme = { | ||
accents: { | ||
primary: string; | ||
secondary: string; | ||
}; | ||
fonts: { | ||
heading: string; | ||
body: string; | ||
}; | ||
}; | ||
export { } |
import "./nordstar-provider.css"; | ||
import Ce from "react"; | ||
var H = { exports: {} }, k = {}; | ||
var X = { exports: {} }, D = {}; | ||
/** | ||
@@ -13,13 +13,13 @@ * @license React | ||
*/ | ||
var Re; | ||
var Te; | ||
function ur() { | ||
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() { | ||
var P = Ce, S = Symbol.for("react.element"), V = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Pe = "@@iterator"; | ||
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() { | ||
var h = Ce, g = Symbol.for("react.element"), w = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), m = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator"; | ||
function Se(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = X && e[X] || e[Pe]; | ||
var r = Z && e[Z] || e[Pe]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var T = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var C = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function c(e) { | ||
@@ -34,3 +34,3 @@ { | ||
{ | ||
var n = T.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
var n = C.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
i !== "" && (r += "%s", t = t.concat([i])); | ||
@@ -43,10 +43,10 @@ var u = t.map(function(o) { | ||
} | ||
var xe = !1, je = !1, ke = !1, De = !1, Fe = !1, Z; | ||
Z = Symbol.for("react.module.reference"); | ||
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 === y || e === A || Fe || e === F || e === R || e === d || De || e === I || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === w || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object | ||
return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || Fe || e === A || e === O || e === v || De || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === y || e.$$typeof === x || e.$$typeof === m || e.$$typeof === l || // 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 === Z || e.getModuleId !== void 0)); | ||
e.$$typeof === Q || e.getModuleId !== void 0)); | ||
} | ||
@@ -60,6 +60,6 @@ function Ie(e, r, t) { | ||
} | ||
function Q(e) { | ||
function ee(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function E(e) { | ||
function b(e) { | ||
if (e == null) | ||
@@ -72,13 +72,13 @@ return null; | ||
switch (e) { | ||
case y: | ||
case T: | ||
return "Fragment"; | ||
case V: | ||
case w: | ||
return "Portal"; | ||
case I: | ||
return "Profiler"; | ||
case A: | ||
return "Profiler"; | ||
case F: | ||
return "StrictMode"; | ||
case R: | ||
case O: | ||
return "Suspense"; | ||
case d: | ||
case v: | ||
return "SuspenseList"; | ||
@@ -88,17 +88,17 @@ } | ||
switch (e.$$typeof) { | ||
case h: | ||
case m: | ||
var r = e; | ||
return Q(r) + ".Consumer"; | ||
case w: | ||
return ee(r) + ".Consumer"; | ||
case x: | ||
var t = e; | ||
return Q(t._context) + ".Provider"; | ||
return ee(t._context) + ".Provider"; | ||
case l: | ||
return Ie(e, e.render, "ForwardRef"); | ||
case g: | ||
case y: | ||
var n = e.displayName || null; | ||
return n !== null ? n : E(e.type) || "Memo"; | ||
case m: { | ||
return n !== null ? n : b(e.type) || "Memo"; | ||
case _: { | ||
var i = e, u = i._payload, o = i._init; | ||
try { | ||
return E(o(u)); | ||
return b(o(u)); | ||
} catch { | ||
@@ -111,14 +111,14 @@ return null; | ||
} | ||
var _ = Object.assign, x = 0, ee, re, te, ne, ae, oe, ie; | ||
function ue() { | ||
var R = Object.assign, j = 0, re, te, ne, ae, oe, ie, ue; | ||
function se() { | ||
} | ||
ue.__reactDisabledLog = !0; | ||
se.__reactDisabledLog = !0; | ||
function $e() { | ||
{ | ||
if (x === 0) { | ||
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd; | ||
if (j === 0) { | ||
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: ue, | ||
value: se, | ||
writable: !0 | ||
@@ -136,3 +136,3 @@ }; | ||
} | ||
x++; | ||
j++; | ||
} | ||
@@ -142,3 +142,3 @@ } | ||
{ | ||
if (x--, x === 0) { | ||
if (j--, j === 0) { | ||
var e = { | ||
@@ -150,30 +150,30 @@ configurable: !0, | ||
Object.defineProperties(console, { | ||
log: _({}, e, { | ||
value: ee | ||
}), | ||
info: _({}, e, { | ||
log: R({}, e, { | ||
value: re | ||
}), | ||
warn: _({}, e, { | ||
info: R({}, e, { | ||
value: te | ||
}), | ||
error: _({}, e, { | ||
warn: R({}, e, { | ||
value: ne | ||
}), | ||
group: _({}, e, { | ||
error: R({}, e, { | ||
value: ae | ||
}), | ||
groupCollapsed: _({}, e, { | ||
group: R({}, e, { | ||
value: oe | ||
}), | ||
groupEnd: _({}, e, { | ||
groupCollapsed: R({}, e, { | ||
value: ie | ||
}), | ||
groupEnd: R({}, e, { | ||
value: ue | ||
}) | ||
}); | ||
} | ||
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var M = T.ReactCurrentDispatcher, U; | ||
function $(e, r, t) { | ||
var M = C.ReactCurrentDispatcher, U; | ||
function W(e, r, t) { | ||
{ | ||
@@ -191,12 +191,12 @@ if (U === void 0) | ||
} | ||
var B = !1, W; | ||
var B = !1, Y; | ||
{ | ||
var Ye = typeof WeakMap == "function" ? WeakMap : Map; | ||
W = new Ye(); | ||
Y = new Ye(); | ||
} | ||
function se(e, r) { | ||
function fe(e, r) { | ||
if (!e || B) | ||
return ""; | ||
{ | ||
var t = W.get(e); | ||
var t = Y.get(e); | ||
if (t !== void 0) | ||
@@ -223,4 +223,4 @@ return t; | ||
Reflect.construct(o, []); | ||
} catch (b) { | ||
n = b; | ||
} catch (E) { | ||
n = E; | ||
} | ||
@@ -231,4 +231,4 @@ Reflect.construct(e, [], o); | ||
o.call(); | ||
} catch (b) { | ||
n = b; | ||
} catch (E) { | ||
n = E; | ||
} | ||
@@ -240,21 +240,21 @@ e.call(o.prototype); | ||
throw Error(); | ||
} catch (b) { | ||
n = b; | ||
} catch (E) { | ||
n = E; | ||
} | ||
e(); | ||
} | ||
} catch (b) { | ||
if (b && n && typeof b.stack == "string") { | ||
for (var a = b.stack.split(` | ||
`), v = n.stack.split(` | ||
`), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; ) | ||
} 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] !== v[f]) { | ||
if (a[s] !== d[f]) { | ||
if (s !== 1 || f !== 1) | ||
do | ||
if (s--, f--, f < 0 || a[s] !== v[f]) { | ||
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; | ||
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p; | ||
} | ||
@@ -268,7 +268,7 @@ while (s >= 1 && f >= 0); | ||
} | ||
var C = e ? e.displayName || e.name : "", ye = C ? $(C) : ""; | ||
return typeof e == "function" && W.set(e, ye), ye; | ||
var S = e ? e.displayName || e.name : "", he = S ? W(S) : ""; | ||
return typeof e == "function" && Y.set(e, he), he; | ||
} | ||
function Ne(e, r, t) { | ||
return se(e, !1); | ||
return fe(e, !1); | ||
} | ||
@@ -279,14 +279,14 @@ function Le(e) { | ||
} | ||
function Y(e, r, t) { | ||
function N(e, r, t) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return se(e, Le(e)); | ||
return fe(e, Le(e)); | ||
if (typeof e == "string") | ||
return $(e); | ||
return W(e); | ||
switch (e) { | ||
case R: | ||
return $("Suspense"); | ||
case d: | ||
return $("SuspenseList"); | ||
case O: | ||
return W("Suspense"); | ||
case v: | ||
return W("SuspenseList"); | ||
} | ||
@@ -297,8 +297,8 @@ if (typeof e == "object") | ||
return Ne(e.render); | ||
case g: | ||
return Y(e.type, r, t); | ||
case m: { | ||
case y: | ||
return N(e.type, r, t); | ||
case _: { | ||
var n = e, i = n._payload, u = n._init; | ||
try { | ||
return Y(u(i), r, t); | ||
return N(u(i), r, t); | ||
} catch { | ||
@@ -310,13 +310,13 @@ } | ||
} | ||
var N = Object.prototype.hasOwnProperty, fe = {}, le = T.ReactDebugCurrentFrame; | ||
function L(e) { | ||
var L = Object.prototype.hasOwnProperty, le = {}, ce = C.ReactDebugCurrentFrame; | ||
function V(e) { | ||
if (e) { | ||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); | ||
le.setExtraStackFrame(t); | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
ce.setExtraStackFrame(t); | ||
} else | ||
le.setExtraStackFrame(null); | ||
ce.setExtraStackFrame(null); | ||
} | ||
function Ve(e, r, t, n, i) { | ||
{ | ||
var u = Function.call.bind(N); | ||
var u = Function.call.bind(L); | ||
for (var o in e) | ||
@@ -327,4 +327,4 @@ if (u(e, o)) { | ||
if (typeof e[o] != "function") { | ||
var v = 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 v.name = "Invariant Violation", v; | ||
var d = 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 d.name = "Invariant Violation", d; | ||
} | ||
@@ -335,3 +335,3 @@ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} | ||
a && !(a instanceof Error) && (L(i), 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, o, typeof a), L(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, L(i), c("Failed %s type: %s", t, a.message), L(null)); | ||
a && !(a instanceof Error) && (V(i), 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, o, typeof a), V(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null)); | ||
} | ||
@@ -352,3 +352,3 @@ } | ||
try { | ||
return ce(e), !1; | ||
return de(e), !1; | ||
} catch { | ||
@@ -358,3 +358,3 @@ return !0; | ||
} | ||
function ce(e) { | ||
function de(e) { | ||
return "" + e; | ||
@@ -364,5 +364,5 @@ } | ||
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)), ce(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); | ||
} | ||
var j = T.ReactCurrentOwner, qe = { | ||
var k = C.ReactCurrentOwner, qe = { | ||
key: !0, | ||
@@ -372,6 +372,6 @@ ref: !0, | ||
__source: !0 | ||
}, de, pe, J; | ||
}, pe, ge, J; | ||
J = {}; | ||
function Je(e) { | ||
if (N.call(e, "ref")) { | ||
if (L.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
@@ -384,3 +384,3 @@ if (r && r.isReactWarning) | ||
function Ge(e) { | ||
if (N.call(e, "key")) { | ||
if (L.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
@@ -393,5 +393,5 @@ if (r && r.isReactWarning) | ||
function ze(e, r) { | ||
if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) { | ||
var t = E(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', E(j.current.type), e.ref), J[t] = !0); | ||
if (typeof e.ref == "string" && k.current && r && k.current.stateNode !== r) { | ||
var t = b(k.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(k.current.type), e.ref), J[t] = !0); | ||
} | ||
@@ -402,3 +402,3 @@ } | ||
var t = function() { | ||
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)); | ||
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)); | ||
}; | ||
@@ -414,3 +414,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
var t = function() { | ||
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)); | ||
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)); | ||
}; | ||
@@ -426,3 +426,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: S, | ||
$$typeof: g, | ||
// Built-in properties that belong on the element | ||
@@ -455,6 +455,6 @@ type: e, | ||
{ | ||
var u, o = {}, a = null, v = null; | ||
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), Je(r) && (v = r.ref, ze(r, i)); | ||
var u, o = {}, a = null, d = null; | ||
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), Je(r) && (d = r.ref, ze(r, i)); | ||
for (u in r) | ||
N.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]); | ||
L.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]); | ||
if (e && e.defaultProps) { | ||
@@ -465,16 +465,16 @@ var s = e.defaultProps; | ||
} | ||
if (a || v) { | ||
if (a || d) { | ||
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && Ke(o, f), v && He(o, f); | ||
a && Ke(o, f), d && He(o, f); | ||
} | ||
return Xe(e, a, v, i, n, j.current, o); | ||
return Xe(e, a, d, i, n, k.current, o); | ||
} | ||
} | ||
var G = T.ReactCurrentOwner, ge = T.ReactDebugCurrentFrame; | ||
function O(e) { | ||
var G = C.ReactCurrentOwner, ye = C.ReactDebugCurrentFrame; | ||
function P(e) { | ||
if (e) { | ||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); | ||
ge.setExtraStackFrame(t); | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
ye.setExtraStackFrame(t); | ||
} else | ||
ge.setExtraStackFrame(null); | ||
ye.setExtraStackFrame(null); | ||
} | ||
@@ -484,8 +484,8 @@ var z; | ||
function K(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === S; | ||
return typeof e == "object" && e !== null && e.$$typeof === g; | ||
} | ||
function Ee() { | ||
function be() { | ||
{ | ||
if (G.current) { | ||
var e = E(G.current.type); | ||
var e = b(G.current.type); | ||
if (e) | ||
@@ -510,6 +510,6 @@ return ` | ||
} | ||
var be = {}; | ||
var Ee = {}; | ||
function er(e) { | ||
{ | ||
var r = Ee(); | ||
var r = be(); | ||
if (!r) { | ||
@@ -524,3 +524,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name; | ||
} | ||
function he(e, r) { | ||
function me(e, r) { | ||
{ | ||
@@ -531,10 +531,10 @@ if (!e._store || e._store.validated || e.key != null) | ||
var t = er(r); | ||
if (be[t]) | ||
if (Ee[t]) | ||
return; | ||
be[t] = !0; | ||
Ee[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + E(e._owner.type) + "."), O(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), O(null); | ||
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + b(e._owner.type) + "."), P(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), P(null); | ||
} | ||
} | ||
function me(e, r) { | ||
function _e(e, r) { | ||
{ | ||
@@ -546,3 +546,3 @@ if (typeof e != "object") | ||
var n = e[t]; | ||
K(n) && he(n, r); | ||
K(n) && me(n, r); | ||
} | ||
@@ -555,3 +555,3 @@ else if (K(e)) | ||
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); | ||
} | ||
@@ -570,3 +570,3 @@ } | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === g)) | ||
r.$$typeof === y)) | ||
t = r.propTypes; | ||
@@ -576,7 +576,7 @@ else | ||
if (t) { | ||
var n = E(r); | ||
var n = b(r); | ||
Ve(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !z) { | ||
z = !0; | ||
var i = E(r); | ||
var i = b(r); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
@@ -592,10 +592,10 @@ } | ||
if (n !== "children" && n !== "key") { | ||
O(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), O(null); | ||
P(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (O(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), O(null)); | ||
e.ref !== null && (P(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), P(null)); | ||
} | ||
} | ||
function _e(e, r, t, n, i, u) { | ||
function Re(e, r, t, n, i, u) { | ||
{ | ||
@@ -606,6 +606,6 @@ var o = Ae(e); | ||
(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 v = Qe(i); | ||
v ? a += v : a += Ee(); | ||
var d = Qe(i); | ||
d ? a += d : a += be(); | ||
var s; | ||
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === S ? (s = "<" + (E(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 === g ? (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); | ||
} | ||
@@ -620,4 +620,4 @@ var f = Ze(e, r, t, i, u); | ||
if (q(p)) { | ||
for (var C = 0; C < p.length; C++) | ||
me(p[C], e); | ||
for (var S = 0; S < p.length; S++) | ||
_e(p[S], e); | ||
Object.freeze && Object.freeze(p); | ||
@@ -627,18 +627,18 @@ } else | ||
else | ||
me(p, e); | ||
_e(p, e); | ||
} | ||
return e === y ? tr(f) : rr(f), f; | ||
return e === T ? tr(f) : rr(f), f; | ||
} | ||
} | ||
function nr(e, r, t) { | ||
return _e(e, r, t, !0); | ||
return Re(e, r, t, !0); | ||
} | ||
function ar(e, r, t) { | ||
return _e(e, r, t, !1); | ||
return Re(e, r, t, !1); | ||
} | ||
var or = ar, ir = nr; | ||
k.Fragment = y, k.jsx = or, k.jsxs = ir; | ||
}()), k; | ||
D.Fragment = T, D.jsx = or, D.jsxs = ir; | ||
}()), D; | ||
} | ||
var D = {}; | ||
var F = {}; | ||
/** | ||
@@ -653,23 +653,36 @@ * @license React | ||
*/ | ||
var Te; | ||
var Oe; | ||
function sr() { | ||
if (Te) | ||
return D; | ||
Te = 1; | ||
var P = Ce, S = Symbol.for("react.element"), V = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, F = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function w(h, l, R) { | ||
var d, g = {}, m = null, I = null; | ||
R !== void 0 && (m = "" + R), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (I = l.ref); | ||
for (d in l) | ||
y.call(l, d) && !A.hasOwnProperty(d) && (g[d] = l[d]); | ||
if (h && h.defaultProps) | ||
for (d in l = h.defaultProps, l) | ||
g[d] === void 0 && (g[d] = l[d]); | ||
return { $$typeof: S, type: h, key: m, ref: I, props: g, _owner: F.current }; | ||
if (Oe) | ||
return F; | ||
Oe = 1; | ||
var h = Ce, g = Symbol.for("react.element"), w = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, A = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function x(m, l, O) { | ||
var v, y = {}, _ = null, $ = null; | ||
O !== void 0 && (_ = "" + O), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && ($ = l.ref); | ||
for (v in l) | ||
T.call(l, v) && !I.hasOwnProperty(v) && (y[v] = l[v]); | ||
if (m && m.defaultProps) | ||
for (v in l = m.defaultProps, l) | ||
y[v] === void 0 && (y[v] = l[v]); | ||
return { $$typeof: g, type: m, key: _, ref: $, props: y, _owner: A.current }; | ||
} | ||
return D.Fragment = V, D.jsx = w, D.jsxs = w, D; | ||
return F.Fragment = w, F.jsx = x, F.jsxs = x, F; | ||
} | ||
process.env.NODE_ENV === "production" ? H.exports = sr() : H.exports = ur(); | ||
var Oe = H.exports; | ||
const cr = ({ children: P }) => /* @__PURE__ */ Oe.jsx(Oe.Fragment, { children: P }); | ||
process.env.NODE_ENV === "production" ? X.exports = sr() : X.exports = ur(); | ||
var H = X.exports; | ||
const cr = ({ children: h, theme: g }) => { | ||
if (g) { | ||
const w = { | ||
// Colors. | ||
"--color-accent-primary": g.accents.primary, | ||
"--color-accent-secondary": g.accents.secondary, | ||
// Fonts. | ||
"--font-heading": g.fonts.heading, | ||
"--font-body": g.fonts.body | ||
}; | ||
return /* @__PURE__ */ H.jsx("div", { id: "nordstar", role: "document", style: w, children: h }); | ||
} | ||
return /* @__PURE__ */ H.jsx(H.Fragment, { children: h }); | ||
}; | ||
export { | ||
@@ -676,0 +689,0 @@ cr as NordstarProvider |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.0-unstable-20231122033023", | ||
"version": "0.0.0-unstable-20231203065701", | ||
"description": "", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.js", |
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
90320
753