@hudoro/badges
Advanced tools
Comparing version 0.1.1-beta.16 to 0.1.1-beta.17
@@ -1,2 +0,2 @@ | ||
import M from "react"; | ||
import U from "react"; | ||
var Z = { exports: {} }, A = {}; | ||
@@ -13,7 +13,7 @@ /** | ||
var wr; | ||
function de() { | ||
function ue() { | ||
if (wr) | ||
return A; | ||
wr = 1; | ||
var g = M, b = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, h = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
var g = U, b = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, h = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function x(w, l, O) { | ||
@@ -42,5 +42,5 @@ var v, y = {}, T = null, $ = null; | ||
var Tr; | ||
function ue() { | ||
function de() { | ||
return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var g = M, b = Symbol.for("react.element"), _ = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), w = 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"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Q = Symbol.iterator, kr = "@@iterator"; | ||
var g = U, b = Symbol.for("react.element"), _ = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), w = 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"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Q = Symbol.iterator, kr = "@@iterator"; | ||
function Or(r) { | ||
@@ -55,4 +55,4 @@ if (r === null || typeof r != "object") | ||
{ | ||
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++) | ||
n[a - 1] = arguments[a]; | ||
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++) | ||
n[o - 1] = arguments[o]; | ||
Cr("error", r, n); | ||
@@ -63,8 +63,8 @@ } | ||
{ | ||
var a = C.ReactDebugCurrentFrame, i = a.getStackAddendum(); | ||
i !== "" && (e += "%s", n = n.concat([i])); | ||
var t = n.map(function(s) { | ||
return String(s); | ||
var o = C.ReactDebugCurrentFrame, s = o.getStackAddendum(); | ||
s !== "" && (e += "%s", n = n.concat([s])); | ||
var i = n.map(function(t) { | ||
return String(t); | ||
}); | ||
t.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, t); | ||
i.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, i); | ||
} | ||
@@ -82,7 +82,7 @@ } | ||
function $r(r, e, n) { | ||
var a = r.displayName; | ||
if (a) | ||
return a; | ||
var i = e.displayName || e.name || ""; | ||
return i !== "" ? n + "(" + i + ")" : n; | ||
var o = r.displayName; | ||
if (o) | ||
return o; | ||
var s = e.displayName || e.name || ""; | ||
return s !== "" ? n + "(" + s + ")" : n; | ||
} | ||
@@ -124,8 +124,8 @@ function er(r) { | ||
case y: | ||
var a = r.displayName || null; | ||
return a !== null ? a : E(r.type) || "Memo"; | ||
var o = r.displayName || null; | ||
return o !== null ? o : E(r.type) || "Memo"; | ||
case T: { | ||
var i = r, t = i._payload, s = i._init; | ||
var s = r, i = s._payload, t = s._init; | ||
try { | ||
return E(s(t)); | ||
return E(t(i)); | ||
} catch { | ||
@@ -138,14 +138,14 @@ return null; | ||
} | ||
var S = Object.assign, D = 0, nr, ar, or, sr, ir, tr, dr; | ||
function ur() { | ||
var S = Object.assign, D = 0, nr, or, ar, tr, sr, ir, ur; | ||
function dr() { | ||
} | ||
ur.__reactDisabledLog = !0; | ||
dr.__reactDisabledLog = !0; | ||
function Wr() { | ||
{ | ||
if (D === 0) { | ||
nr = console.log, ar = console.info, or = console.warn, sr = console.error, ir = console.group, tr = console.groupCollapsed, dr = console.groupEnd; | ||
nr = console.log, or = console.info, ar = console.warn, tr = console.error, sr = console.group, ir = console.groupCollapsed, ur = console.groupEnd; | ||
var r = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: ur, | ||
value: dr, | ||
writable: !0 | ||
@@ -179,18 +179,18 @@ }; | ||
info: S({}, r, { | ||
value: ar | ||
value: or | ||
}), | ||
warn: S({}, r, { | ||
value: or | ||
value: ar | ||
}), | ||
error: S({}, r, { | ||
value: sr | ||
value: tr | ||
}), | ||
group: S({}, r, { | ||
value: ir | ||
value: sr | ||
}), | ||
groupCollapsed: S({}, r, { | ||
value: tr | ||
value: ir | ||
}), | ||
groupEnd: S({}, r, { | ||
value: dr | ||
value: ur | ||
}) | ||
@@ -202,14 +202,14 @@ }); | ||
} | ||
var U = C.ReactCurrentDispatcher, B; | ||
var B = C.ReactCurrentDispatcher, z; | ||
function W(r, e, n) { | ||
{ | ||
if (B === void 0) | ||
if (z === void 0) | ||
try { | ||
throw Error(); | ||
} catch (i) { | ||
var a = i.stack.trim().match(/\n( *(at )?)/); | ||
B = a && a[1] || ""; | ||
} catch (s) { | ||
var o = s.stack.trim().match(/\n( *(at )?)/); | ||
z = o && o[1] || ""; | ||
} | ||
return ` | ||
` + B + r; | ||
` + z + r; | ||
} | ||
@@ -230,14 +230,14 @@ } | ||
} | ||
var a; | ||
var o; | ||
q = !0; | ||
var i = Error.prepareStackTrace; | ||
var s = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var t; | ||
t = U.current, U.current = null, Wr(); | ||
var i; | ||
i = B.current, B.current = null, Wr(); | ||
try { | ||
if (e) { | ||
var s = function() { | ||
var t = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(s.prototype, "props", { | ||
if (Object.defineProperty(t.prototype, "props", { | ||
set: function() { | ||
@@ -248,14 +248,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(s, []); | ||
Reflect.construct(t, []); | ||
} catch (R) { | ||
a = R; | ||
o = R; | ||
} | ||
Reflect.construct(r, [], s); | ||
Reflect.construct(r, [], t); | ||
} else { | ||
try { | ||
s.call(); | ||
t.call(); | ||
} catch (R) { | ||
a = R; | ||
o = R; | ||
} | ||
r.call(s.prototype); | ||
r.call(t.prototype); | ||
} | ||
@@ -266,3 +266,3 @@ } else { | ||
} catch (R) { | ||
a = R; | ||
o = R; | ||
} | ||
@@ -272,17 +272,17 @@ r(); | ||
} catch (R) { | ||
if (R && a && typeof R.stack == "string") { | ||
for (var o = R.stack.split(` | ||
`), f = a.stack.split(` | ||
`), d = o.length - 1, u = f.length - 1; d >= 1 && u >= 0 && o[d] !== f[u]; ) | ||
u--; | ||
for (; d >= 1 && u >= 0; d--, u--) | ||
if (o[d] !== f[u]) { | ||
if (d !== 1 || u !== 1) | ||
if (R && o && typeof R.stack == "string") { | ||
for (var a = R.stack.split(` | ||
`), f = o.stack.split(` | ||
`), u = a.length - 1, d = f.length - 1; u >= 1 && d >= 0 && a[u] !== f[d]; ) | ||
d--; | ||
for (; u >= 1 && d >= 0; u--, d--) | ||
if (a[u] !== f[d]) { | ||
if (u !== 1 || d !== 1) | ||
do | ||
if (d--, u--, u < 0 || o[d] !== f[u]) { | ||
if (u--, d--, d < 0 || a[u] !== f[d]) { | ||
var p = ` | ||
` + o[d].replace(" at new ", " at "); | ||
` + a[u].replace(" at new ", " at "); | ||
return r.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", r.displayName)), typeof r == "function" && Y.set(r, p), p; | ||
} | ||
while (d >= 1 && u >= 0); | ||
while (u >= 1 && d >= 0); | ||
break; | ||
@@ -292,3 +292,3 @@ } | ||
} finally { | ||
q = !1, U.current = t, Yr(), Error.prepareStackTrace = i; | ||
q = !1, B.current = i, Yr(), Error.prepareStackTrace = s; | ||
} | ||
@@ -301,3 +301,3 @@ var j = r ? r.displayName || r.name : "", xr = j ? W(j) : ""; | ||
} | ||
function zr(r) { | ||
function Vr(r) { | ||
var e = r.prototype; | ||
@@ -310,3 +310,3 @@ return !!(e && e.isReactComponent); | ||
if (typeof r == "function") | ||
return lr(r, zr(r)); | ||
return lr(r, Vr(r)); | ||
if (typeof r == "string") | ||
@@ -327,5 +327,5 @@ return W(r); | ||
case T: { | ||
var a = r, i = a._payload, t = a._init; | ||
var o = r, s = o._payload, i = o._init; | ||
try { | ||
return N(t(i), e, n); | ||
return N(i(s), e, n); | ||
} catch { | ||
@@ -338,3 +338,3 @@ } | ||
var L = Object.prototype.hasOwnProperty, cr = {}, fr = C.ReactDebugCurrentFrame; | ||
function z(r) { | ||
function V(r) { | ||
if (r) { | ||
@@ -346,26 +346,26 @@ var e = r._owner, n = N(r.type, r._source, e ? e.type : null); | ||
} | ||
function Vr(r, e, n, a, i) { | ||
function Mr(r, e, n, o, s) { | ||
{ | ||
var t = Function.call.bind(L); | ||
for (var s in r) | ||
if (t(r, s)) { | ||
var o = void 0; | ||
var i = Function.call.bind(L); | ||
for (var t in r) | ||
if (i(r, t)) { | ||
var a = void 0; | ||
try { | ||
if (typeof r[s] != "function") { | ||
var f = Error((a || "React class") + ": " + n + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
if (typeof r[t] != "function") { | ||
var f = Error((o || "React class") + ": " + n + " type `" + t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw f.name = "Invariant Violation", f; | ||
} | ||
o = r[s](e, s, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (d) { | ||
o = d; | ||
a = r[t](e, t, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (u) { | ||
a = u; | ||
} | ||
o && !(o instanceof Error) && (z(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).", a || "React class", n, s, typeof o), z(null)), o instanceof Error && !(o.message in cr) && (cr[o.message] = !0, z(i), c("Failed %s type: %s", n, o.message), z(null)); | ||
a && !(a instanceof Error) && (V(s), 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).", o || "React class", n, t, typeof a), V(null)), a instanceof Error && !(a.message in cr) && (cr[a.message] = !0, V(s), c("Failed %s type: %s", n, a.message), V(null)); | ||
} | ||
} | ||
} | ||
var Mr = Array.isArray; | ||
var Ur = Array.isArray; | ||
function G(r) { | ||
return Mr(r); | ||
return Ur(r); | ||
} | ||
function Ur(r) { | ||
function Br(r) { | ||
{ | ||
@@ -376,3 +376,3 @@ var e = typeof Symbol == "function" && Symbol.toStringTag, n = e && r[Symbol.toStringTag] || r.constructor.name || "Object"; | ||
} | ||
function Br(r) { | ||
function zr(r) { | ||
try { | ||
@@ -388,4 +388,4 @@ return gr(r), !1; | ||
function br(r) { | ||
if (Br(r)) | ||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ur(r)), gr(r); | ||
if (zr(r)) | ||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Br(r)), gr(r); | ||
} | ||
@@ -443,4 +443,4 @@ var F = C.ReactCurrentOwner, qr = { | ||
} | ||
var Zr = function(r, e, n, a, i, t, s) { | ||
var o = { | ||
var Zr = function(r, e, n, o, s, i, t) { | ||
var a = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
@@ -452,7 +452,7 @@ $$typeof: b, | ||
ref: n, | ||
props: s, | ||
props: t, | ||
// Record the component responsible for creating this element. | ||
_owner: t | ||
_owner: i | ||
}; | ||
return o._store = {}, Object.defineProperty(o._store, "validated", { | ||
return a._store = {}, Object.defineProperty(a._store, "validated", { | ||
configurable: !1, | ||
@@ -462,30 +462,30 @@ enumerable: !1, | ||
value: !1 | ||
}), Object.defineProperty(o, "_self", { | ||
}), Object.defineProperty(a, "_self", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: a | ||
}), Object.defineProperty(o, "_source", { | ||
value: o | ||
}), Object.defineProperty(a, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: i | ||
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o; | ||
value: s | ||
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; | ||
}; | ||
function Qr(r, e, n, a, i) { | ||
function Qr(r, e, n, o, s) { | ||
{ | ||
var t, s = {}, o = null, f = null; | ||
n !== void 0 && (br(n), o = "" + n), Jr(e) && (br(e.key), o = "" + e.key), Gr(e) && (f = e.ref, Kr(e, i)); | ||
for (t in e) | ||
L.call(e, t) && !qr.hasOwnProperty(t) && (s[t] = e[t]); | ||
var i, t = {}, a = null, f = null; | ||
n !== void 0 && (br(n), a = "" + n), Jr(e) && (br(e.key), a = "" + e.key), Gr(e) && (f = e.ref, Kr(e, s)); | ||
for (i in e) | ||
L.call(e, i) && !qr.hasOwnProperty(i) && (t[i] = e[i]); | ||
if (r && r.defaultProps) { | ||
var d = r.defaultProps; | ||
for (t in d) | ||
s[t] === void 0 && (s[t] = d[t]); | ||
var u = r.defaultProps; | ||
for (i in u) | ||
t[i] === void 0 && (t[i] = u[i]); | ||
} | ||
if (o || f) { | ||
var u = typeof r == "function" ? r.displayName || r.name || "Unknown" : r; | ||
o && Hr(s, u), f && Xr(s, u); | ||
if (a || f) { | ||
var d = typeof r == "function" ? r.displayName || r.name || "Unknown" : r; | ||
a && Hr(t, d), f && Xr(t, d); | ||
} | ||
return Zr(r, o, f, i, a, F.current, s); | ||
return Zr(r, a, f, s, o, F.current, t); | ||
} | ||
@@ -551,4 +551,4 @@ } | ||
yr[n] = !0; | ||
var a = ""; | ||
r && r._owner && r._owner !== K.current && (a = " It was passed a child from " + E(r._owner.type) + "."), P(r), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), P(null); | ||
var o = ""; | ||
r && r._owner && r._owner !== K.current && (o = " It was passed a child from " + E(r._owner.type) + "."), P(r), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), P(null); | ||
} | ||
@@ -562,4 +562,4 @@ } | ||
for (var n = 0; n < r.length; n++) { | ||
var a = r[n]; | ||
X(a) && Er(a, e); | ||
var o = r[n]; | ||
X(o) && Er(o, e); | ||
} | ||
@@ -569,6 +569,6 @@ else if (X(r)) | ||
else if (r) { | ||
var i = Or(r); | ||
if (typeof i == "function" && i !== r.entries) | ||
for (var t = i.call(r), s; !(s = t.next()).done; ) | ||
X(s.value) && Er(s.value, e); | ||
var s = Or(r); | ||
if (typeof s == "function" && s !== r.entries) | ||
for (var i = s.call(r), t; !(t = i.next()).done; ) | ||
X(t.value) && Er(t.value, e); | ||
} | ||
@@ -592,8 +592,8 @@ } | ||
if (n) { | ||
var a = E(e); | ||
Vr(n, r.props, "prop", a, r); | ||
var o = E(e); | ||
Mr(n, r.props, "prop", o, r); | ||
} else if (e.PropTypes !== void 0 && !H) { | ||
H = !0; | ||
var i = E(e); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
var s = E(e); | ||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown"); | ||
} | ||
@@ -603,8 +603,8 @@ typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
function ae(r) { | ||
function oe(r) { | ||
{ | ||
for (var e = Object.keys(r.props), n = 0; n < e.length; n++) { | ||
var a = e[n]; | ||
if (a !== "children" && a !== "key") { | ||
P(r), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), P(null); | ||
var o = e[n]; | ||
if (o !== "children" && o !== "key") { | ||
P(r), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), P(null); | ||
break; | ||
@@ -616,20 +616,20 @@ } | ||
} | ||
function _r(r, e, n, a, i, t) { | ||
function _r(r, e, n, o, s, i) { | ||
{ | ||
var s = Ir(r); | ||
if (!s) { | ||
var o = ""; | ||
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (o += " 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 f = re(i); | ||
f ? o += f : o += mr(); | ||
var d; | ||
r === null ? d = "null" : G(r) ? d = "array" : r !== void 0 && r.$$typeof === b ? (d = "<" + (E(r.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof r, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o); | ||
var t = Ir(r); | ||
if (!t) { | ||
var a = ""; | ||
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).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 f = re(s); | ||
f ? a += f : a += mr(); | ||
var u; | ||
r === null ? u = "null" : G(r) ? u = "array" : r !== void 0 && r.$$typeof === b ? (u = "<" + (E(r.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof r, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a); | ||
} | ||
var u = Qr(r, e, n, i, t); | ||
if (u == null) | ||
return u; | ||
if (s) { | ||
var d = Qr(r, e, n, s, i); | ||
if (d == null) | ||
return d; | ||
if (t) { | ||
var p = e.children; | ||
if (p !== void 0) | ||
if (a) | ||
if (o) | ||
if (G(p)) { | ||
@@ -644,16 +644,16 @@ for (var j = 0; j < p.length; j++) | ||
} | ||
return r === m ? ae(u) : ne(u), u; | ||
return r === m ? oe(d) : ne(d), d; | ||
} | ||
} | ||
function oe(r, e, n) { | ||
function ae(r, e, n) { | ||
return _r(r, e, n, !0); | ||
} | ||
function se(r, e, n) { | ||
function te(r, e, n) { | ||
return _r(r, e, n, !1); | ||
} | ||
var ie = se, te = oe; | ||
I.Fragment = m, I.jsx = ie, I.jsxs = te; | ||
var se = te, ie = ae; | ||
I.Fragment = m, I.jsx = se, I.jsxs = ie; | ||
}()), I; | ||
} | ||
process.env.NODE_ENV === "production" ? Z.exports = de() : Z.exports = ue(); | ||
process.env.NODE_ENV === "production" ? Z.exports = ue() : Z.exports = de(); | ||
var le = Z.exports; | ||
@@ -663,31 +663,15 @@ const ce = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap"); | ||
:root { | ||
/* gap */ | ||
--hsd-ui-badges-gap: var(--hsd-ui-spacing-xs, 4px); | ||
/* root color for badges sizes */ | ||
/* border width */ | ||
--hsd-ui-badges-border-width: var(--hsd-ui-border, 1px); | ||
/* font weight */ | ||
--hsd-ui-badges-font-weight: var(--hsd-ui-fontWeights-medium, 400); | ||
/* root color for badges sizes */ | ||
/* xs */ | ||
--hsd-ui-badges-xs-height: 20px; | ||
--hsd-ui-badges-xs-font-size: var(--hsd-ui-fontSizes-xs, 10px); | ||
--hsd-ui-badges-xs-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-xs-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* sm */ | ||
--hsd-ui-badges-sm-height: 22px; | ||
--hsd-ui-badges-sm-font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
--hsd-ui-badges-sm-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-sm-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* md */ | ||
--hsd-ui-badges-md-height: var(--hsd-ui-h-6, 24px); | ||
--hsd-ui-badges-md-font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
--hsd-ui-badges-md-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-md-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* lg */ | ||
--hsd-ui-badges-lg-height: var(--hsd-ui-h-7, 28px); | ||
--hsd-ui-badges-lg-font-size: var(--hsd-ui-fontSizes-md, 14px); | ||
--hsd-ui-badges-lg-padding-inline: var(--hsd-ui-spacing-12, 12px); | ||
--hsd-ui-badges-lg-border-radius: var(--hsd-ui-radii-md, 6px); | ||
@@ -768,8 +752,8 @@ | ||
display: flex; | ||
gap: var(--hsd-ui-badges-gap); | ||
gap: var(--hsd-ui-spacing-xs, 4px); | ||
align-items: center; | ||
border: var(--hsd-ui-badges-border-width) solid; | ||
border: var(--hsd-ui-border, 1px) solid; | ||
width: max-content; | ||
font-family: "Poppins", sans-serif; | ||
font-weight: var(--hsd-ui-badges-font-weight); | ||
font-weight: var(--hsd-ui-fontWeights-medium, 400); | ||
} | ||
@@ -780,4 +764,4 @@ | ||
height: var(--hsd-ui-badges-xs-height); | ||
font-size: var(--hsd-ui-badges-xs-font-size); | ||
padding-inline: var(--hsd-ui-badges-xs-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-xs, 10px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -790,4 +774,4 @@ | ||
height: var(--hsd-ui-badges-sm-height); | ||
font-size: var(--hsd-ui-badges-sm-font-size); | ||
padding-inline: var(--hsd-ui-badges-sm-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -801,4 +785,4 @@ | ||
height: var(--hsd-ui-badges-md-height); | ||
font-size: var(--hsd-ui-badges-md-font-size); | ||
padding-inline: var(--hsd-ui-badges-md-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -812,4 +796,4 @@ | ||
height: var(--hsd-ui-badges-lg-height); | ||
font-size: var(--hsd-ui-badges-lg-font-size); | ||
padding-inline: var(--hsd-ui-badges-lg-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-md, 14px); | ||
padding-inline: var(--hsd-ui-spacing-md, 12px); | ||
} | ||
@@ -882,3 +866,3 @@ .hudoro-badges-lg.hudoro-badges-rounded { | ||
fe(ce); | ||
const V = { | ||
const M = { | ||
xs: 14, | ||
@@ -897,5 +881,5 @@ sm: 16, | ||
}) => /* @__PURE__ */ le.jsxs("div", { className: ge(g, b, k, x), children: [ | ||
m ? M.cloneElement(m, { | ||
width: V[g], | ||
height: V[g], | ||
m ? U.cloneElement(m, { | ||
width: M[g], | ||
height: M[g], | ||
// color: renderColorLeftIcon(rest.disabled ? "disable" : status), | ||
@@ -911,5 +895,5 @@ // onClick: onClickLeftIcon, | ||
_, | ||
h ? M.cloneElement(h, { | ||
width: V[g], | ||
height: V[g], | ||
h ? U.cloneElement(h, { | ||
width: M[g], | ||
height: M[g], | ||
style: { | ||
@@ -916,0 +900,0 @@ color: "inherit" |
@@ -1,2 +0,2 @@ | ||
(function(x,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(x=typeof globalThis<"u"?globalThis:x||self,_(x.Badges={},x.React))})(this,function(x,_){"use strict";var B={exports:{}},A={};/** | ||
(function(x,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(x=typeof globalThis<"u"?globalThis:x||self,_(x.Badges={},x.React))})(this,function(x,_){"use strict";var z={exports:{}},A={};/** | ||
* @license React | ||
@@ -17,44 +17,28 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var er;function Cr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var g=_,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ar=Symbol.iterator,Ar="@@iterator";function Ir(r){if(r===null||typeof r!="object")return null;var e=ar&&r[ar]||r[Ar];return typeof e=="function"?e:null}var j=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(r){{for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];Wr("error",r,n)}}function Wr(r,e,n){{var a=j.ReactDebugCurrentFrame,i=a.getStackAddendum();i!==""&&(e+="%s",n=n.concat([i]));var t=n.map(function(s){return String(s)});t.unshift("Warning: "+e),Function.prototype.apply.call(console[r],console,t)}}var Yr=!1,Nr=!1,Lr=!1,$r=!1,zr=!1,or;or=Symbol.for("react.module.reference");function Vr(r){return!!(typeof r=="string"||typeof r=="function"||r===m||r===C||zr||r===h||r===P||r===v||$r||r===L||Yr||Nr||Lr||typeof r=="object"&&r!==null&&(r.$$typeof===k||r.$$typeof===y||r.$$typeof===T||r.$$typeof===S||r.$$typeof===l||r.$$typeof===or||r.getModuleId!==void 0))}function Mr(r,e,n){var a=r.displayName;if(a)return a;var i=e.displayName||e.name||"";return i!==""?n+"("+i+")":n}function sr(r){return r.displayName||"Context"}function E(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case m:return"Fragment";case w:return"Portal";case C:return"Profiler";case h:return"StrictMode";case P:return"Suspense";case v:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case S:var e=r;return sr(e)+".Consumer";case T:var n=r;return sr(n._context)+".Provider";case l:return Mr(r,r.render,"ForwardRef");case y:var a=r.displayName||null;return a!==null?a:E(r.type)||"Memo";case k:{var i=r,t=i._payload,s=i._init;try{return E(s(t))}catch{return null}}}return null}var O=Object.assign,W=0,ir,tr,dr,ur,lr,cr,fr;function gr(){}gr.__reactDisabledLog=!0;function Ur(){{if(W===0){ir=console.log,tr=console.info,dr=console.warn,ur=console.error,lr=console.group,cr=console.groupCollapsed,fr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:gr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}W++}}function Br(){{if(W--,W===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},r,{value:ir}),info:O({},r,{value:tr}),warn:O({},r,{value:dr}),error:O({},r,{value:ur}),group:O({},r,{value:lr}),groupCollapsed:O({},r,{value:cr}),groupEnd:O({},r,{value:fr})})}W<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=j.ReactCurrentDispatcher,J;function $(r,e,n){{if(J===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return` | ||
`+J+r}}var q=!1,z;{var Gr=typeof WeakMap=="function"?WeakMap:Map;z=new Gr}function br(r,e){if(!r||q)return"";{var n=z.get(r);if(n!==void 0)return n}var a;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var t;t=G.current,G.current=null,Ur();try{if(e){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(R){a=R}Reflect.construct(r,[],s)}else{try{s.call()}catch(R){a=R}r.call(s.prototype)}}else{try{throw Error()}catch(R){a=R}r()}}catch(R){if(R&&a&&typeof R.stack=="string"){for(var o=R.stack.split(` | ||
`),f=a.stack.split(` | ||
`),d=o.length-1,u=f.length-1;d>=1&&u>=0&&o[d]!==f[u];)u--;for(;d>=1&&u>=0;d--,u--)if(o[d]!==f[u]){if(d!==1||u!==1)do if(d--,u--,u<0||o[d]!==f[u]){var p=` | ||
`+o[d].replace(" at new "," at ");return r.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",r.displayName)),typeof r=="function"&&z.set(r,p),p}while(d>=1&&u>=0);break}}}finally{q=!1,G.current=t,Br(),Error.prepareStackTrace=i}var F=r?r.displayName||r.name:"",kr=F?$(F):"";return typeof r=="function"&&z.set(r,kr),kr}function Jr(r,e,n){return br(r,!1)}function qr(r){var e=r.prototype;return!!(e&&e.isReactComponent)}function V(r,e,n){if(r==null)return"";if(typeof r=="function")return br(r,qr(r));if(typeof r=="string")return $(r);switch(r){case P:return $("Suspense");case v:return $("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case l:return Jr(r.render);case y:return V(r.type,e,n);case k:{var a=r,i=a._payload,t=a._init;try{return V(t(i),e,n)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,hr={},vr=j.ReactDebugCurrentFrame;function U(r){if(r){var e=r._owner,n=V(r.type,r._source,e?e.type:null);vr.setExtraStackFrame(n)}else vr.setExtraStackFrame(null)}function Kr(r,e,n,a,i){{var t=Function.call.bind(M);for(var s in r)if(t(r,s)){var o=void 0;try{if(typeof r[s]!="function"){var f=Error((a||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}o=r[s](e,s,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(U(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).",a||"React class",n,s,typeof o),U(null)),o instanceof Error&&!(o.message in hr)&&(hr[o.message]=!0,U(i),c("Failed %s type: %s",n,o.message),U(null))}}}var Hr=Array.isArray;function K(r){return Hr(r)}function Xr(r){{var e=typeof Symbol=="function"&&Symbol.toStringTag,n=e&&r[Symbol.toStringTag]||r.constructor.name||"Object";return n}}function Zr(r){try{return pr(r),!1}catch{return!0}}function pr(r){return""+r}function mr(r){if(Zr(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xr(r)),pr(r)}var Y=j.ReactCurrentOwner,Qr={key:!0,ref:!0,__self:!0,__source:!0},yr,Er,H;H={};function re(r){if(M.call(r,"ref")){var e=Object.getOwnPropertyDescriptor(r,"ref").get;if(e&&e.isReactWarning)return!1}return r.ref!==void 0}function ee(r){if(M.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return r.key!==void 0}function ne(r,e){if(typeof r.ref=="string"&&Y.current&&e&&Y.current.stateNode!==e){var n=E(Y.current.type);H[n]||(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(Y.current.type),r.ref),H[n]=!0)}}function ae(r,e){{var n=function(){yr||(yr=!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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"key",{get:n,configurable:!0})}}function oe(r,e){{var n=function(){Er||(Er=!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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"ref",{get:n,configurable:!0})}}var se=function(r,e,n,a,i,t,s){var o={$$typeof:b,type:r,key:e,ref:n,props:s,_owner:t};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ie(r,e,n,a,i){{var t,s={},o=null,f=null;n!==void 0&&(mr(n),o=""+n),ee(e)&&(mr(e.key),o=""+e.key),re(e)&&(f=e.ref,ne(e,i));for(t in e)M.call(e,t)&&!Qr.hasOwnProperty(t)&&(s[t]=e[t]);if(r&&r.defaultProps){var d=r.defaultProps;for(t in d)s[t]===void 0&&(s[t]=d[t])}if(o||f){var u=typeof r=="function"?r.displayName||r.name||"Unknown":r;o&&ae(s,u),f&&oe(s,u)}return se(r,o,f,i,a,Y.current,s)}}var X=j.ReactCurrentOwner,Rr=j.ReactDebugCurrentFrame;function D(r){if(r){var e=r._owner,n=V(r.type,r._source,e?e.type:null);Rr.setExtraStackFrame(n)}else Rr.setExtraStackFrame(null)}var Z;Z=!1;function Q(r){return typeof r=="object"&&r!==null&&r.$$typeof===b}function _r(){{if(X.current){var r=E(X.current.type);if(r)return` | ||
*/var er;function Cr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var g=_,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),S=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),or=Symbol.iterator,Ar="@@iterator";function Ir(r){if(r===null||typeof r!="object")return null;var e=or&&r[or]||r[Ar];return typeof e=="function"?e:null}var j=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(r){{for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];Wr("error",r,n)}}function Wr(r,e,n){{var o=j.ReactDebugCurrentFrame,s=o.getStackAddendum();s!==""&&(e+="%s",n=n.concat([s]));var i=n.map(function(t){return String(t)});i.unshift("Warning: "+e),Function.prototype.apply.call(console[r],console,i)}}var Yr=!1,Nr=!1,Lr=!1,$r=!1,Vr=!1,ar;ar=Symbol.for("react.module.reference");function Mr(r){return!!(typeof r=="string"||typeof r=="function"||r===m||r===C||Vr||r===h||r===P||r===v||$r||r===L||Yr||Nr||Lr||typeof r=="object"&&r!==null&&(r.$$typeof===k||r.$$typeof===y||r.$$typeof===T||r.$$typeof===S||r.$$typeof===l||r.$$typeof===ar||r.getModuleId!==void 0))}function Ur(r,e,n){var o=r.displayName;if(o)return o;var s=e.displayName||e.name||"";return s!==""?n+"("+s+")":n}function tr(r){return r.displayName||"Context"}function E(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case m:return"Fragment";case w:return"Portal";case C:return"Profiler";case h:return"StrictMode";case P:return"Suspense";case v:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case S:var e=r;return tr(e)+".Consumer";case T:var n=r;return tr(n._context)+".Provider";case l:return Ur(r,r.render,"ForwardRef");case y:var o=r.displayName||null;return o!==null?o:E(r.type)||"Memo";case k:{var s=r,i=s._payload,t=s._init;try{return E(t(i))}catch{return null}}}return null}var O=Object.assign,W=0,sr,ir,ur,dr,lr,cr,fr;function gr(){}gr.__reactDisabledLog=!0;function Br(){{if(W===0){sr=console.log,ir=console.info,ur=console.warn,dr=console.error,lr=console.group,cr=console.groupCollapsed,fr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:gr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}W++}}function zr(){{if(W--,W===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},r,{value:sr}),info:O({},r,{value:ir}),warn:O({},r,{value:ur}),error:O({},r,{value:dr}),group:O({},r,{value:lr}),groupCollapsed:O({},r,{value:cr}),groupEnd:O({},r,{value:fr})})}W<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=j.ReactCurrentDispatcher,J;function $(r,e,n){{if(J===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);J=o&&o[1]||""}return` | ||
`+J+r}}var q=!1,V;{var Gr=typeof WeakMap=="function"?WeakMap:Map;V=new Gr}function br(r,e){if(!r||q)return"";{var n=V.get(r);if(n!==void 0)return n}var o;q=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=G.current,G.current=null,Br();try{if(e){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(R){o=R}Reflect.construct(r,[],t)}else{try{t.call()}catch(R){o=R}r.call(t.prototype)}}else{try{throw Error()}catch(R){o=R}r()}}catch(R){if(R&&o&&typeof R.stack=="string"){for(var a=R.stack.split(` | ||
`),f=o.stack.split(` | ||
`),u=a.length-1,d=f.length-1;u>=1&&d>=0&&a[u]!==f[d];)d--;for(;u>=1&&d>=0;u--,d--)if(a[u]!==f[d]){if(u!==1||d!==1)do if(u--,d--,d<0||a[u]!==f[d]){var p=` | ||
`+a[u].replace(" at new "," at ");return r.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",r.displayName)),typeof r=="function"&&V.set(r,p),p}while(u>=1&&d>=0);break}}}finally{q=!1,G.current=i,zr(),Error.prepareStackTrace=s}var F=r?r.displayName||r.name:"",kr=F?$(F):"";return typeof r=="function"&&V.set(r,kr),kr}function Jr(r,e,n){return br(r,!1)}function qr(r){var e=r.prototype;return!!(e&&e.isReactComponent)}function M(r,e,n){if(r==null)return"";if(typeof r=="function")return br(r,qr(r));if(typeof r=="string")return $(r);switch(r){case P:return $("Suspense");case v:return $("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case l:return Jr(r.render);case y:return M(r.type,e,n);case k:{var o=r,s=o._payload,i=o._init;try{return M(i(s),e,n)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,hr={},vr=j.ReactDebugCurrentFrame;function B(r){if(r){var e=r._owner,n=M(r.type,r._source,e?e.type:null);vr.setExtraStackFrame(n)}else vr.setExtraStackFrame(null)}function Kr(r,e,n,o,s){{var i=Function.call.bind(U);for(var t in r)if(i(r,t)){var a=void 0;try{if(typeof r[t]!="function"){var f=Error((o||"React class")+": "+n+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}a=r[t](e,t,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){a=u}a&&!(a instanceof Error)&&(B(s),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).",o||"React class",n,t,typeof a),B(null)),a instanceof Error&&!(a.message in hr)&&(hr[a.message]=!0,B(s),c("Failed %s type: %s",n,a.message),B(null))}}}var Hr=Array.isArray;function K(r){return Hr(r)}function Xr(r){{var e=typeof Symbol=="function"&&Symbol.toStringTag,n=e&&r[Symbol.toStringTag]||r.constructor.name||"Object";return n}}function Zr(r){try{return pr(r),!1}catch{return!0}}function pr(r){return""+r}function mr(r){if(Zr(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xr(r)),pr(r)}var Y=j.ReactCurrentOwner,Qr={key:!0,ref:!0,__self:!0,__source:!0},yr,Er,H;H={};function re(r){if(U.call(r,"ref")){var e=Object.getOwnPropertyDescriptor(r,"ref").get;if(e&&e.isReactWarning)return!1}return r.ref!==void 0}function ee(r){if(U.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return r.key!==void 0}function ne(r,e){if(typeof r.ref=="string"&&Y.current&&e&&Y.current.stateNode!==e){var n=E(Y.current.type);H[n]||(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(Y.current.type),r.ref),H[n]=!0)}}function oe(r,e){{var n=function(){yr||(yr=!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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"key",{get:n,configurable:!0})}}function ae(r,e){{var n=function(){Er||(Er=!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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"ref",{get:n,configurable:!0})}}var te=function(r,e,n,o,s,i,t){var a={$$typeof:b,type:r,key:e,ref:n,props:t,_owner:i};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:o}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function se(r,e,n,o,s){{var i,t={},a=null,f=null;n!==void 0&&(mr(n),a=""+n),ee(e)&&(mr(e.key),a=""+e.key),re(e)&&(f=e.ref,ne(e,s));for(i in e)U.call(e,i)&&!Qr.hasOwnProperty(i)&&(t[i]=e[i]);if(r&&r.defaultProps){var u=r.defaultProps;for(i in u)t[i]===void 0&&(t[i]=u[i])}if(a||f){var d=typeof r=="function"?r.displayName||r.name||"Unknown":r;a&&oe(t,d),f&&ae(t,d)}return te(r,a,f,s,o,Y.current,t)}}var X=j.ReactCurrentOwner,Rr=j.ReactDebugCurrentFrame;function D(r){if(r){var e=r._owner,n=M(r.type,r._source,e?e.type:null);Rr.setExtraStackFrame(n)}else Rr.setExtraStackFrame(null)}var Z;Z=!1;function Q(r){return typeof r=="object"&&r!==null&&r.$$typeof===b}function _r(){{if(X.current){var r=E(X.current.type);if(r)return` | ||
Check the render method of \``+r+"`."}return""}}function te(r){{if(r!==void 0){var e=r.fileName.replace(/^.*[\\\/]/,""),n=r.lineNumber;return` | ||
Check the render method of \``+r+"`."}return""}}function ie(r){{if(r!==void 0){var e=r.fileName.replace(/^.*[\\\/]/,""),n=r.lineNumber;return` | ||
Check your code at `+e+":"+n+"."}return""}}var xr={};function de(r){{var e=_r();if(!e){var n=typeof r=="string"?r:r.displayName||r.name;n&&(e=` | ||
Check your code at `+e+":"+n+"."}return""}}var xr={};function ue(r){{var e=_r();if(!e){var n=typeof r=="string"?r:r.displayName||r.name;n&&(e=` | ||
Check the top-level render call using <`+n+">.")}return e}}function wr(r,e){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var n=de(e);if(xr[n])return;xr[n]=!0;var a="";r&&r._owner&&r._owner!==X.current&&(a=" It was passed a child from "+E(r._owner.type)+"."),D(r),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),D(null)}}function Tr(r,e){{if(typeof r!="object")return;if(K(r))for(var n=0;n<r.length;n++){var a=r[n];Q(a)&&wr(a,e)}else if(Q(r))r._store&&(r._store.validated=!0);else if(r){var i=Ir(r);if(typeof i=="function"&&i!==r.entries)for(var t=i.call(r),s;!(s=t.next()).done;)Q(s.value)&&wr(s.value,e)}}}function ue(r){{var e=r.type;if(e==null||typeof e=="string")return;var n;if(typeof e=="function")n=e.propTypes;else if(typeof e=="object"&&(e.$$typeof===l||e.$$typeof===y))n=e.propTypes;else return;if(n){var a=E(e);Kr(n,r.props,"prop",a,r)}else if(e.PropTypes!==void 0&&!Z){Z=!0;var i=E(e);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof e.getDefaultProps=="function"&&!e.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function le(r){{for(var e=Object.keys(r.props),n=0;n<e.length;n++){var a=e[n];if(a!=="children"&&a!=="key"){D(r),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),D(null);break}}r.ref!==null&&(D(r),c("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Sr(r,e,n,a,i,t){{var s=Vr(r);if(!s){var o="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(o+=" 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 f=te(i);f?o+=f:o+=_r();var d;r===null?d="null":K(r)?d="array":r!==void 0&&r.$$typeof===b?(d="<"+(E(r.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof r,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var u=ie(r,e,n,i,t);if(u==null)return u;if(s){var p=e.children;if(p!==void 0)if(a)if(K(p)){for(var F=0;F<p.length;F++)Tr(p[F],r);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 Tr(p,r)}return r===m?le(u):ue(u),u}}function ce(r,e,n){return Sr(r,e,n,!0)}function fe(r,e,n){return Sr(r,e,n,!1)}var ge=fe,be=ce;I.Fragment=m,I.jsx=ge,I.jsxs=be}()),I}process.env.NODE_ENV==="production"?B.exports=Or():B.exports=Cr();var Pr=B.exports;const jr=`@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap"); | ||
Check the top-level render call using <`+n+">.")}return e}}function wr(r,e){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var n=ue(e);if(xr[n])return;xr[n]=!0;var o="";r&&r._owner&&r._owner!==X.current&&(o=" It was passed a child from "+E(r._owner.type)+"."),D(r),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),D(null)}}function Tr(r,e){{if(typeof r!="object")return;if(K(r))for(var n=0;n<r.length;n++){var o=r[n];Q(o)&&wr(o,e)}else if(Q(r))r._store&&(r._store.validated=!0);else if(r){var s=Ir(r);if(typeof s=="function"&&s!==r.entries)for(var i=s.call(r),t;!(t=i.next()).done;)Q(t.value)&&wr(t.value,e)}}}function de(r){{var e=r.type;if(e==null||typeof e=="string")return;var n;if(typeof e=="function")n=e.propTypes;else if(typeof e=="object"&&(e.$$typeof===l||e.$$typeof===y))n=e.propTypes;else return;if(n){var o=E(e);Kr(n,r.props,"prop",o,r)}else if(e.PropTypes!==void 0&&!Z){Z=!0;var s=E(e);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof e.getDefaultProps=="function"&&!e.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function le(r){{for(var e=Object.keys(r.props),n=0;n<e.length;n++){var o=e[n];if(o!=="children"&&o!=="key"){D(r),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),D(null);break}}r.ref!==null&&(D(r),c("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Sr(r,e,n,o,s,i){{var t=Mr(r);if(!t){var a="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).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 f=ie(s);f?a+=f:a+=_r();var u;r===null?u="null":K(r)?u="array":r!==void 0&&r.$$typeof===b?(u="<"+(E(r.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var d=se(r,e,n,s,i);if(d==null)return d;if(t){var p=e.children;if(p!==void 0)if(o)if(K(p)){for(var F=0;F<p.length;F++)Tr(p[F],r);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 Tr(p,r)}return r===m?le(d):de(d),d}}function ce(r,e,n){return Sr(r,e,n,!0)}function fe(r,e,n){return Sr(r,e,n,!1)}var ge=fe,be=ce;I.Fragment=m,I.jsx=ge,I.jsxs=be}()),I}process.env.NODE_ENV==="production"?z.exports=Or():z.exports=Cr();var Pr=z.exports;const jr=`@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap"); | ||
:root { | ||
/* gap */ | ||
--hsd-ui-badges-gap: var(--hsd-ui-spacing-xs, 4px); | ||
/* root color for badges sizes */ | ||
/* border width */ | ||
--hsd-ui-badges-border-width: var(--hsd-ui-border, 1px); | ||
/* font weight */ | ||
--hsd-ui-badges-font-weight: var(--hsd-ui-fontWeights-medium, 400); | ||
/* root color for badges sizes */ | ||
/* xs */ | ||
--hsd-ui-badges-xs-height: 20px; | ||
--hsd-ui-badges-xs-font-size: var(--hsd-ui-fontSizes-xs, 10px); | ||
--hsd-ui-badges-xs-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-xs-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* sm */ | ||
--hsd-ui-badges-sm-height: 22px; | ||
--hsd-ui-badges-sm-font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
--hsd-ui-badges-sm-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-sm-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* md */ | ||
--hsd-ui-badges-md-height: var(--hsd-ui-h-6, 24px); | ||
--hsd-ui-badges-md-font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
--hsd-ui-badges-md-padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
--hsd-ui-badges-md-border-radius: var(--hsd-ui-radii-base, 4px); | ||
/* lg */ | ||
--hsd-ui-badges-lg-height: var(--hsd-ui-h-7, 28px); | ||
--hsd-ui-badges-lg-font-size: var(--hsd-ui-fontSizes-md, 14px); | ||
--hsd-ui-badges-lg-padding-inline: var(--hsd-ui-spacing-12, 12px); | ||
--hsd-ui-badges-lg-border-radius: var(--hsd-ui-radii-md, 6px); | ||
@@ -135,8 +119,8 @@ | ||
display: flex; | ||
gap: var(--hsd-ui-badges-gap); | ||
gap: var(--hsd-ui-spacing-xs, 4px); | ||
align-items: center; | ||
border: var(--hsd-ui-badges-border-width) solid; | ||
border: var(--hsd-ui-border, 1px) solid; | ||
width: max-content; | ||
font-family: "Poppins", sans-serif; | ||
font-weight: var(--hsd-ui-badges-font-weight); | ||
font-weight: var(--hsd-ui-fontWeights-medium, 400); | ||
} | ||
@@ -147,4 +131,4 @@ | ||
height: var(--hsd-ui-badges-xs-height); | ||
font-size: var(--hsd-ui-badges-xs-font-size); | ||
padding-inline: var(--hsd-ui-badges-xs-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-xs, 10px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -157,4 +141,4 @@ | ||
height: var(--hsd-ui-badges-sm-height); | ||
font-size: var(--hsd-ui-badges-sm-font-size); | ||
padding-inline: var(--hsd-ui-badges-sm-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -168,4 +152,4 @@ | ||
height: var(--hsd-ui-badges-md-height); | ||
font-size: var(--hsd-ui-badges-md-font-size); | ||
padding-inline: var(--hsd-ui-badges-md-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-sm, 12px); | ||
padding-inline: var(--hsd-ui-spacing-sm, 8px); | ||
} | ||
@@ -179,4 +163,4 @@ | ||
height: var(--hsd-ui-badges-lg-height); | ||
font-size: var(--hsd-ui-badges-lg-font-size); | ||
padding-inline: var(--hsd-ui-badges-lg-padding-inline); | ||
font-size: var(--hsd-ui-fontSizes-md, 14px); | ||
padding-inline: var(--hsd-ui-spacing-md, 12px); | ||
} | ||
@@ -183,0 +167,0 @@ .hudoro-badges-lg.hudoro-badges-rounded { |
{ | ||
"name": "@hudoro/badges", | ||
"version": "0.1.1-beta.16", | ||
"version": "0.1.1-beta.17", | ||
"description": "Badges component for Hudoro UI", | ||
@@ -5,0 +5,0 @@ "author": "Prawito Hudoro", |
52455
1122