@nordcom/nordstar-button
Advanced tools
Comparing version 0.0.0-unstable-20231204035450 to 0.0.0-unstable-20231204091828
@@ -1,8 +0,3 @@ | ||
import { As } from '@nordcom/nordstar-system'; | ||
import { InternalForwardRefRenderFunction } from '@nordcom/nordstar-system'; | ||
declare const Button: InternalForwardRefRenderFunction<"button", ButtonProps, never>; | ||
export default Button; | ||
export declare type ButtonProps = { | ||
import type { As } from '@nordcom/nordstar-system'; | ||
export type ButtonProps = { | ||
variant?: 'solid' | 'outline'; | ||
@@ -13,3 +8,3 @@ color?: 'default' | 'primary' | 'secondary'; | ||
}; | ||
export { } | ||
declare const Button: import("@nordcom/nordstar-system").InternalForwardRefRenderFunction<"button", ButtonProps, never>; | ||
export default Button; |
@@ -1,653 +0,30 @@ | ||
import "./button.css"; | ||
import Ce, { forwardRef as sr } from "react"; | ||
var H = { exports: {} }, A = {}; | ||
/** | ||
* @license React | ||
* react-jsx-runtime.development.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var Re; | ||
function fr() { | ||
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() { | ||
var m = Ce, R = Symbol.for("react.element"), k = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), g = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Pe = "@@iterator"; | ||
function Se(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = X && e[X] || e[Pe]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var S = 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); | ||
} | ||
} | ||
function xe(e, r, t) { | ||
{ | ||
var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum(); | ||
i !== "" && (r += "%s", t = t.concat([i])); | ||
var u = t.map(function(o) { | ||
return String(o); | ||
}); | ||
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u); | ||
} | ||
} | ||
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z; | ||
Z = Symbol.for("react.module.reference"); | ||
function $e(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || Ae || e === T || e === h || e === v || Fe || e === I || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === O || e.$$typeof === g || 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)); | ||
} | ||
function Ie(e, r, t) { | ||
var n = e.displayName; | ||
if (n) | ||
return n; | ||
var i = r.displayName || r.name || ""; | ||
return i !== "" ? t + "(" + i + ")" : t; | ||
} | ||
function Q(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function E(e) { | ||
if (e == null) | ||
return null; | ||
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; | ||
if (typeof e == "string") | ||
return e; | ||
switch (e) { | ||
case b: | ||
return "Fragment"; | ||
case k: | ||
return "Portal"; | ||
case P: | ||
return "Profiler"; | ||
case T: | ||
return "StrictMode"; | ||
case h: | ||
return "Suspense"; | ||
case v: | ||
return "SuspenseList"; | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case g: | ||
var r = e; | ||
return Q(r) + ".Consumer"; | ||
case O: | ||
var t = e; | ||
return Q(t._context) + ".Provider"; | ||
case l: | ||
return Ie(e, e.render, "ForwardRef"); | ||
case y: | ||
var n = e.displayName || null; | ||
return n !== null ? n : E(e.type) || "Memo"; | ||
case w: { | ||
var i = e, u = i._payload, o = i._init; | ||
try { | ||
return E(o(u)); | ||
} catch { | ||
return null; | ||
} | ||
} | ||
} | ||
return null; | ||
} | ||
var C = Object.assign, D = 0, ee, re, te, ne, ae, oe, ie; | ||
function ue() { | ||
} | ||
ue.__reactDisabledLog = !0; | ||
function We() { | ||
{ | ||
if (D === 0) { | ||
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: ue, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: e, | ||
log: e, | ||
warn: e, | ||
error: e, | ||
group: e, | ||
groupCollapsed: e, | ||
groupEnd: e | ||
}); | ||
} | ||
D++; | ||
} | ||
} | ||
function Ye() { | ||
{ | ||
if (D--, D === 0) { | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
log: C({}, e, { | ||
value: ee | ||
}), | ||
info: C({}, e, { | ||
value: re | ||
}), | ||
warn: C({}, e, { | ||
value: te | ||
}), | ||
error: C({}, e, { | ||
value: ne | ||
}), | ||
group: C({}, e, { | ||
value: ae | ||
}), | ||
groupCollapsed: C({}, e, { | ||
value: oe | ||
}), | ||
groupEnd: C({}, e, { | ||
value: ie | ||
}) | ||
}); | ||
} | ||
D < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var M = S.ReactCurrentDispatcher, U; | ||
function W(e, r, t) { | ||
{ | ||
if (U === void 0) | ||
try { | ||
throw Error(); | ||
} catch (i) { | ||
var n = i.stack.trim().match(/\n( *(at )?)/); | ||
U = n && n[1] || ""; | ||
} | ||
return ` | ||
` + U + e; | ||
} | ||
} | ||
var B = !1, Y; | ||
{ | ||
var Ne = typeof WeakMap == "function" ? WeakMap : Map; | ||
Y = new Ne(); | ||
} | ||
function se(e, r) { | ||
if (!e || B) | ||
return ""; | ||
{ | ||
var t = Y.get(e); | ||
if (t !== void 0) | ||
return t; | ||
} | ||
var n; | ||
B = !0; | ||
var i = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var u; | ||
u = M.current, M.current = null, We(); | ||
try { | ||
if (r) { | ||
var o = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(o.prototype, "props", { | ||
set: function() { | ||
throw Error(); | ||
} | ||
}), typeof Reflect == "object" && Reflect.construct) { | ||
try { | ||
Reflect.construct(o, []); | ||
} catch (_) { | ||
n = _; | ||
} | ||
Reflect.construct(e, [], o); | ||
} else { | ||
try { | ||
o.call(); | ||
} catch (_) { | ||
n = _; | ||
} | ||
e.call(o.prototype); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (_) { | ||
n = _; | ||
} | ||
e(); | ||
} | ||
} catch (_) { | ||
if (_ && n && typeof _.stack == "string") { | ||
for (var a = _.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 (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" && Y.set(e, p), p; | ||
} | ||
while (s >= 1 && f >= 0); | ||
break; | ||
} | ||
} | ||
} finally { | ||
B = !1, M.current = u, Ye(), Error.prepareStackTrace = i; | ||
} | ||
var j = e ? e.displayName || e.name : "", me = j ? W(j) : ""; | ||
return typeof e == "function" && Y.set(e, me), me; | ||
} | ||
function Le(e, r, t) { | ||
return se(e, !1); | ||
} | ||
function Ve(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
} | ||
function N(e, r, t) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return se(e, Ve(e)); | ||
if (typeof e == "string") | ||
return W(e); | ||
switch (e) { | ||
case h: | ||
return W("Suspense"); | ||
case v: | ||
return W("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case l: | ||
return Le(e.render); | ||
case y: | ||
return N(e.type, r, t); | ||
case w: { | ||
var n = e, i = n._payload, u = n._init; | ||
try { | ||
return N(u(i), r, t); | ||
} catch { | ||
} | ||
} | ||
} | ||
return ""; | ||
} | ||
var L = Object.prototype.hasOwnProperty, fe = {}, le = S.ReactDebugCurrentFrame; | ||
function V(e) { | ||
if (e) { | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
le.setExtraStackFrame(t); | ||
} else | ||
le.setExtraStackFrame(null); | ||
} | ||
function Me(e, r, t, n, i) { | ||
{ | ||
var u = Function.call.bind(L); | ||
for (var o in e) | ||
if (u(e, o)) { | ||
var a = void 0; | ||
try { | ||
if (typeof e[o] != "function") { | ||
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; | ||
} | ||
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (s) { | ||
a = s; | ||
} | ||
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 fe) && (fe[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null)); | ||
} | ||
} | ||
} | ||
var Ue = Array.isArray; | ||
function q(e) { | ||
return Ue(e); | ||
} | ||
function Be(e) { | ||
{ | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return t; | ||
} | ||
} | ||
function qe(e) { | ||
try { | ||
return ce(e), !1; | ||
} catch { | ||
return !0; | ||
} | ||
} | ||
function ce(e) { | ||
return "" + e; | ||
} | ||
function de(e) { | ||
if (qe(e)) | ||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ce(e); | ||
} | ||
var F = S.ReactCurrentOwner, Je = { | ||
key: !0, | ||
ref: !0, | ||
__self: !0, | ||
__source: !0 | ||
}, ve, pe, J; | ||
J = {}; | ||
function Ge(e) { | ||
if (L.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
return e.ref !== void 0; | ||
} | ||
function ze(e) { | ||
if (L.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
if (r && r.isReactWarning) | ||
return !1; | ||
} | ||
return e.key !== void 0; | ||
} | ||
function Ke(e, r) { | ||
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) { | ||
var t = E(F.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(F.current.type), e.ref), J[t] = !0); | ||
} | ||
} | ||
function He(e, r) { | ||
{ | ||
var t = function() { | ||
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)); | ||
}; | ||
t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: t, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
function Xe(e, r) { | ||
{ | ||
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)); | ||
}; | ||
t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: t, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
var Ze = function(e, r, t, n, i, u, o) { | ||
var a = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: R, | ||
// Built-in properties that belong on the element | ||
type: e, | ||
key: r, | ||
ref: t, | ||
props: o, | ||
// Record the component responsible for creating this element. | ||
_owner: u | ||
}; | ||
return a._store = {}, Object.defineProperty(a._store, "validated", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !0, | ||
value: !1 | ||
}), Object.defineProperty(a, "_self", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: n | ||
}), Object.defineProperty(a, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: i | ||
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; | ||
}; | ||
function Qe(e, r, t, n, i) { | ||
{ | ||
var u, o = {}, a = null, d = null; | ||
t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Ke(r, i)); | ||
for (u in r) | ||
L.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]); | ||
if (e && e.defaultProps) { | ||
var s = e.defaultProps; | ||
for (u in s) | ||
o[u] === void 0 && (o[u] = s[u]); | ||
} | ||
if (a || d) { | ||
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && He(o, f), d && Xe(o, f); | ||
} | ||
return Ze(e, a, d, i, n, F.current, o); | ||
} | ||
} | ||
var G = S.ReactCurrentOwner, be = S.ReactDebugCurrentFrame; | ||
function x(e) { | ||
if (e) { | ||
var r = e._owner, t = N(e.type, e._source, r ? r.type : null); | ||
be.setExtraStackFrame(t); | ||
} else | ||
be.setExtraStackFrame(null); | ||
} | ||
var z; | ||
z = !1; | ||
function K(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === R; | ||
} | ||
function ge() { | ||
{ | ||
if (G.current) { | ||
var e = E(G.current.type); | ||
if (e) | ||
return ` | ||
import './button.css'; | ||
import { jsx } from 'react/jsx-runtime'; | ||
import { forwardRef } from '@nordcom/nordstar-system'; | ||
Check the render method of \`` + e + "`."; | ||
} | ||
return ""; | ||
} | ||
} | ||
function er(e) { | ||
{ | ||
if (e !== void 0) { | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber; | ||
return ` | ||
const container = "_container_10hmh_1"; | ||
const content = "_content_10hmh_45"; | ||
const styles = { | ||
container: container, | ||
content: content | ||
}; | ||
Check your code at ` + r + ":" + t + "."; | ||
} | ||
return ""; | ||
} | ||
} | ||
var ye = {}; | ||
function rr(e) { | ||
const Button = forwardRef( | ||
({ variant = "solid", color = "default", as: Tag = "button", disabled, className, type, children, ...props }, ref) => { | ||
const classes = `${styles.container}${className ? ` ${className}` : ""}`; | ||
return /* @__PURE__ */ jsx( | ||
Tag, | ||
{ | ||
var r = ge(); | ||
if (!r) { | ||
var t = typeof e == "string" ? e : e.displayName || e.name; | ||
t && (r = ` | ||
Check the top-level render call using <` + t + ">."); | ||
} | ||
return r; | ||
} | ||
} | ||
function Ee(e, r) { | ||
{ | ||
if (!e._store || e._store.validated || e.key != null) | ||
return; | ||
e._store.validated = !0; | ||
var t = rr(r); | ||
if (ye[t]) | ||
return; | ||
ye[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + E(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 _e(e, r) { | ||
{ | ||
if (typeof e != "object") | ||
return; | ||
if (q(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var n = e[t]; | ||
K(n) && Ee(n, r); | ||
} | ||
else if (K(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var i = Se(e); | ||
if (typeof i == "function" && i !== e.entries) | ||
for (var u = i.call(e), o; !(o = u.next()).done; ) | ||
K(o.value) && Ee(o.value, r); | ||
} | ||
} | ||
} | ||
function tr(e) { | ||
{ | ||
var r = e.type; | ||
if (r == null || typeof r == "string") | ||
return; | ||
var t; | ||
if (typeof r == "function") | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === y)) | ||
t = r.propTypes; | ||
else | ||
return; | ||
if (t) { | ||
var n = E(r); | ||
Me(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !z) { | ||
z = !0; | ||
var i = E(r); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
} | ||
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) { | ||
{ | ||
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
var n = r[t]; | ||
if (n !== "children" && n !== "key") { | ||
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 && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null)); | ||
} | ||
} | ||
function he(e, r, t, n, i, u) { | ||
{ | ||
var o = $e(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 = er(i); | ||
d ? a += d : a += ge(); | ||
var s; | ||
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === R ? (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); | ||
} | ||
var f = Qe(e, r, t, i, u); | ||
if (f == null) | ||
return f; | ||
if (o) { | ||
var p = r.children; | ||
if (p !== void 0) | ||
if (n) | ||
if (q(p)) { | ||
for (var j = 0; j < p.length; j++) | ||
_e(p[j], e); | ||
Object.freeze && Object.freeze(p); | ||
} else | ||
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 | ||
_e(p, e); | ||
} | ||
return e === b ? nr(f) : tr(f), f; | ||
} | ||
} | ||
function ar(e, r, t) { | ||
return he(e, r, t, !0); | ||
} | ||
function or(e, r, t) { | ||
return he(e, r, t, !1); | ||
} | ||
var ir = or, ur = ar; | ||
A.Fragment = b, A.jsx = ir, A.jsxs = ur; | ||
}()), A; | ||
} | ||
var $ = {}; | ||
/** | ||
* @license React | ||
* react-jsx-runtime.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var Te; | ||
function lr() { | ||
if (Te) | ||
return $; | ||
Te = 1; | ||
var m = Ce, R = Symbol.for("react.element"), k = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, T = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function O(g, l, h) { | ||
var v, y = {}, w = null, I = null; | ||
h !== void 0 && (w = "" + h), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (I = l.ref); | ||
for (v in l) | ||
b.call(l, v) && !P.hasOwnProperty(v) && (y[v] = l[v]); | ||
if (g && g.defaultProps) | ||
for (v in l = g.defaultProps, l) | ||
y[v] === void 0 && (y[v] = l[v]); | ||
return { $$typeof: R, type: g, key: w, ref: I, props: y, _owner: T.current }; | ||
} | ||
return $.Fragment = k, $.jsx = O, $.jsxs = O, $; | ||
} | ||
process.env.NODE_ENV === "production" ? H.exports = lr() : H.exports = fr(); | ||
var Oe = H.exports; | ||
function cr(m) { | ||
return sr(m); | ||
} | ||
const dr = "_container_1c7wl_1", we = { | ||
container: dr | ||
}, vr = cr( | ||
({ variant: m = "solid", color: R = "default", as: k = "button", disabled: b, className: T, type: P, children: O, ...g }, l) => { | ||
const h = `${we.container}${T ? ` ${T}` : ""}`; | ||
return /* @__PURE__ */ Oe.jsx( | ||
k, | ||
{ | ||
ref: l, | ||
ref, | ||
role: "button", | ||
type: P || "button", | ||
"data-variant": m, | ||
"data-color": R, | ||
...g, | ||
...typeof b < "u" && { | ||
disabled: b, | ||
"aria-disabled": b | ||
type: type || "button", | ||
"data-variant": variant, | ||
"data-color": color, | ||
...props, | ||
...typeof disabled !== "undefined" && { | ||
disabled, | ||
"aria-disabled": disabled | ||
}, | ||
className: h, | ||
children: /* @__PURE__ */ Oe.jsx("div", { className: we.content, children: O }) | ||
className: classes, | ||
children: /* @__PURE__ */ jsx("div", { className: styles.content, children }) | ||
} | ||
@@ -657,6 +34,5 @@ ); | ||
); | ||
vr.displayName = "Nordstar.Button"; | ||
export { | ||
vr as default | ||
}; | ||
Button.displayName = "Nordstar.Button"; | ||
export { Button as default }; | ||
//# sourceMappingURL=button.js.map |
@@ -1,13 +0,3 @@ | ||
import { As } from '@nordcom/nordstar-system'; | ||
import { InternalForwardRefRenderFunction } from '@nordcom/nordstar-system'; | ||
export declare const Button: InternalForwardRefRenderFunction<"button", ButtonProps, never>; | ||
export declare type ButtonProps = { | ||
variant?: 'solid' | 'outline'; | ||
color?: 'default' | 'primary' | 'secondary'; | ||
as?: As; | ||
disabled?: boolean; | ||
}; | ||
export { } | ||
import Button from './button'; | ||
export type { ButtonProps } from './button'; | ||
export { Button }; |
@@ -1,5 +0,2 @@ | ||
import { default as a } from "./button.js"; | ||
export { | ||
a as Button | ||
}; | ||
export { default as Button } from './button.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.0-unstable-20231204035450", | ||
"version": "0.0.0-unstable-20231204091828", | ||
"description": "", | ||
@@ -16,3 +16,2 @@ "main": "dist/index.js", | ||
}, | ||
"./index.css": "./dist/index.css", | ||
"./package.json": "./package.json" | ||
@@ -70,8 +69,9 @@ }, | ||
"dependencies": { | ||
"@nordcom/nordstar-system": "0.0.0-unstable-20231204035450" | ||
"@nordcom/nordstar-system": "0.0.0-unstable-20231204091828" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18" | ||
"react": ">=18", | ||
"react-dom": ">=18" | ||
}, | ||
"clean-package": "../../../clean-package.config.json" | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
5598
3
102
1
+ Added@nordcom/nordstar-system@0.0.0-unstable-20231204091828(transitive)
- Removed@nordcom/nordstar-system@0.0.0-unstable-20231204035450(transitive)
Updated@nordcom/nordstar-system@0.0.0-unstable-20231204091828