@clasing/ui 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +123 -123
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15,11 +15,11 @@ function nr() {
|
|
|
15
15
|
if (st) return me;
|
|
16
16
|
st = 1;
|
|
17
17
|
var t = gt, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function l(u,
|
|
18
|
+
function l(u, d, g) {
|
|
19
19
|
var f, m = {}, v = null, I = null;
|
|
20
|
-
g !== void 0 && (v = "" + g),
|
|
21
|
-
for (f in
|
|
22
|
-
if (u && u.defaultProps) for (f in
|
|
20
|
+
g !== void 0 && (v = "" + g), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (I = d.ref);
|
|
21
|
+
for (f in d) o.call(d, f) && !a.hasOwnProperty(f) && (m[f] = d[f]);
|
|
22
|
+
if (u && u.defaultProps) for (f in d = u.defaultProps, d) m[f] === void 0 && (m[f] = d[f]);
|
|
23
23
|
return { $$typeof: n, type: u, key: v, ref: I, props: m, _owner: i.current };
|
|
24
24
|
}
|
|
25
25
|
return me.Fragment = r, me.jsx = l, me.jsxs = l, me;
|
|
@@ -37,7 +37,7 @@ var pe = {};
|
|
|
37
37
|
var it;
|
|
38
38
|
function or() {
|
|
39
39
|
return it || (it = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var t = gt, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"),
|
|
40
|
+
var t = gt, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), M = Symbol.iterator, S = "@@iterator";
|
|
41
41
|
function R(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
@@ -65,7 +65,7 @@ function or() {
|
|
|
65
65
|
var ie = !1, xe = !1, ye = !1, we = !1, ke = !1, te;
|
|
66
66
|
te = Symbol.for("react.module.reference");
|
|
67
67
|
function ce(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === a || ke || e === i || e === g || e === f || we || e === I || ie || xe || ye || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === m || e.$$typeof === l || e.$$typeof === u || e.$$typeof ===
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === a || ke || e === i || e === g || e === f || we || e === I || ie || xe || ye || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === m || e.$$typeof === l || e.$$typeof === u || e.$$typeof === d || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -110,7 +110,7 @@ function or() {
|
|
|
110
110
|
case l:
|
|
111
111
|
var b = e;
|
|
112
112
|
return j(b._context) + ".Provider";
|
|
113
|
-
case
|
|
113
|
+
case d:
|
|
114
114
|
return de(e, e.render, "ForwardRef");
|
|
115
115
|
case m:
|
|
116
116
|
var p = e.displayName || null;
|
|
@@ -300,7 +300,7 @@ function or() {
|
|
|
300
300
|
}
|
|
301
301
|
if (typeof e == "object")
|
|
302
302
|
switch (e.$$typeof) {
|
|
303
|
-
case
|
|
303
|
+
case d:
|
|
304
304
|
return Nt(e.render);
|
|
305
305
|
case m:
|
|
306
306
|
return Se(e.type, s, b);
|
|
@@ -544,7 +544,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
544
544
|
var b;
|
|
545
545
|
if (typeof s == "function")
|
|
546
546
|
b = s.propTypes;
|
|
547
|
-
else if (typeof s == "object" && (s.$$typeof ===
|
|
547
|
+
else if (typeof s == "object" && (s.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
549
|
s.$$typeof === m))
|
|
550
550
|
b = s.propTypes;
|
|
@@ -629,13 +629,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
}()), pe;
|
|
630
630
|
}
|
|
631
631
|
process.env.NODE_ENV === "production" ? Ve.exports = nr() : Ve.exports = or();
|
|
632
|
-
var
|
|
632
|
+
var c = Ve.exports;
|
|
633
633
|
const un = B(
|
|
634
634
|
({ rounded: t = !0, ...n }, r) => {
|
|
635
635
|
const o = t ? "rounded-full" : "rounded-sm";
|
|
636
636
|
if (!n.src)
|
|
637
637
|
throw new Error("The src prop is required");
|
|
638
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ c.jsx(
|
|
639
639
|
"img",
|
|
640
640
|
{
|
|
641
641
|
...n,
|
|
@@ -669,8 +669,8 @@ function ar(t) {
|
|
|
669
669
|
return u[0] === "" && u.length !== 1 && u.shift(), pt(u, n) || lr(l);
|
|
670
670
|
}
|
|
671
671
|
function a(l, u) {
|
|
672
|
-
const
|
|
673
|
-
return u && o[l] ? [...
|
|
672
|
+
const d = r[l] || [];
|
|
673
|
+
return u && o[l] ? [...d, ...o[l]] : d;
|
|
674
674
|
}
|
|
675
675
|
return {
|
|
676
676
|
getClassGroupId: i,
|
|
@@ -782,10 +782,10 @@ function ur(t) {
|
|
|
782
782
|
const n = t.separator, r = n.length === 1, o = n[0], i = n.length;
|
|
783
783
|
return function(l) {
|
|
784
784
|
const u = [];
|
|
785
|
-
let
|
|
785
|
+
let d = 0, g = 0, f;
|
|
786
786
|
for (let S = 0; S < l.length; S++) {
|
|
787
787
|
let R = l[S];
|
|
788
|
-
if (
|
|
788
|
+
if (d === 0) {
|
|
789
789
|
if (R === o && (r || l.slice(S, S + i) === n)) {
|
|
790
790
|
u.push(l.slice(g, S)), g = S + i;
|
|
791
791
|
continue;
|
|
@@ -795,7 +795,7 @@ function ur(t) {
|
|
|
795
795
|
continue;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
R === "[" ?
|
|
798
|
+
R === "[" ? d++ : R === "]" && d--;
|
|
799
799
|
}
|
|
800
800
|
const m = u.length === 0 ? l : l.substring(g), v = m.startsWith(ht), I = v ? m.substring(1) : m, M = f && f > g ? f - g : void 0;
|
|
801
801
|
return {
|
|
@@ -832,7 +832,7 @@ function mr(t, n) {
|
|
|
832
832
|
return t.trim().split(gr).map((l) => {
|
|
833
833
|
const {
|
|
834
834
|
modifiers: u,
|
|
835
|
-
hasImportantModifier:
|
|
835
|
+
hasImportantModifier: d,
|
|
836
836
|
baseClassName: g,
|
|
837
837
|
maybePostfixModifierPosition: f
|
|
838
838
|
} = r(l);
|
|
@@ -853,7 +853,7 @@ function mr(t, n) {
|
|
|
853
853
|
const I = br(u).join(":");
|
|
854
854
|
return {
|
|
855
855
|
isTailwindClass: !0,
|
|
856
|
-
modifierId:
|
|
856
|
+
modifierId: d ? I + ht : I,
|
|
857
857
|
classGroupId: m,
|
|
858
858
|
originalClassName: l,
|
|
859
859
|
hasPostfixModifier: v
|
|
@@ -863,10 +863,10 @@ function mr(t, n) {
|
|
|
863
863
|
return !0;
|
|
864
864
|
const {
|
|
865
865
|
modifierId: u,
|
|
866
|
-
classGroupId:
|
|
866
|
+
classGroupId: d,
|
|
867
867
|
hasPostfixModifier: g
|
|
868
|
-
} = l, f = u +
|
|
869
|
-
return a.has(f) ? !1 : (a.add(f), i(
|
|
868
|
+
} = l, f = u + d;
|
|
869
|
+
return a.has(f) ? !1 : (a.add(f), i(d, g).forEach((m) => a.add(u + m)), !0);
|
|
870
870
|
}).reverse().map((l) => l.originalClassName).join(" ");
|
|
871
871
|
}
|
|
872
872
|
function pr() {
|
|
@@ -885,16 +885,16 @@ function vt(t) {
|
|
|
885
885
|
}
|
|
886
886
|
function hr(t, ...n) {
|
|
887
887
|
let r, o, i, a = l;
|
|
888
|
-
function l(
|
|
888
|
+
function l(d) {
|
|
889
889
|
const g = n.reduce((f, m) => m(f), t());
|
|
890
|
-
return r = fr(g), o = r.cache.get, i = r.cache.set, a = u, u(
|
|
890
|
+
return r = fr(g), o = r.cache.get, i = r.cache.set, a = u, u(d);
|
|
891
891
|
}
|
|
892
|
-
function u(
|
|
893
|
-
const g = o(
|
|
892
|
+
function u(d) {
|
|
893
|
+
const g = o(d);
|
|
894
894
|
if (g)
|
|
895
895
|
return g;
|
|
896
|
-
const f = mr(
|
|
897
|
-
return i(
|
|
896
|
+
const f = mr(d, r);
|
|
897
|
+
return i(d, f), f;
|
|
898
898
|
}
|
|
899
899
|
return function() {
|
|
900
900
|
return a(pr.apply(null, arguments));
|
|
@@ -963,7 +963,7 @@ function Ar(t) {
|
|
|
963
963
|
return Cr.test(t);
|
|
964
964
|
}
|
|
965
965
|
function zr() {
|
|
966
|
-
const t = E("colors"), n = E("spacing"), r = E("blur"), o = E("brightness"), i = E("borderColor"), a = E("borderRadius"), l = E("borderSpacing"), u = E("borderWidth"),
|
|
966
|
+
const t = E("colors"), n = E("spacing"), r = E("blur"), o = E("brightness"), i = E("borderColor"), a = E("borderRadius"), l = E("borderSpacing"), u = E("borderWidth"), d = E("contrast"), g = E("grayscale"), f = E("hueRotate"), m = E("invert"), v = E("gap"), I = E("gradientColorStops"), M = E("gradientColorStopPositions"), S = E("inset"), R = E("margin"), P = E("opacity"), y = E("padding"), X = E("saturate"), ie = E("scale"), xe = E("sepia"), ye = E("skew"), we = E("space"), ke = E("translate"), te = () => ["auto", "contain", "none"], ce = () => ["auto", "hidden", "clip", "visible", "scroll"], de = () => ["auto", h, n], j = () => [h, n], $ = () => ["", G, q], F = () => ["auto", ee, h], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Y = () => ["", "0", h], be = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [ee, Re], Z = () => [ee, h];
|
|
967
967
|
return {
|
|
968
968
|
cacheSize: 500,
|
|
969
969
|
separator: ":",
|
|
@@ -2380,7 +2380,7 @@ function zr() {
|
|
|
2380
2380
|
* @see https://tailwindcss.com/docs/contrast
|
|
2381
2381
|
*/
|
|
2382
2382
|
contrast: [{
|
|
2383
|
-
contrast: [
|
|
2383
|
+
contrast: [d]
|
|
2384
2384
|
}],
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Drop Shadow
|
|
@@ -2451,7 +2451,7 @@ function zr() {
|
|
|
2451
2451
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2452
2452
|
*/
|
|
2453
2453
|
"backdrop-contrast": [{
|
|
2454
|
-
"backdrop-contrast": [
|
|
2454
|
+
"backdrop-contrast": [d]
|
|
2455
2455
|
}],
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Backdrop Grayscale
|
|
@@ -3001,7 +3001,7 @@ const ut = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, bt =
|
|
|
3001
3001
|
}), u = r && Object.entries(r).reduce((g, f) => {
|
|
3002
3002
|
let [m, v] = f;
|
|
3003
3003
|
return v === void 0 || (g[m] = v), g;
|
|
3004
|
-
}, {}),
|
|
3004
|
+
}, {}), d = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((g, f) => {
|
|
3005
3005
|
let { class: m, className: v, ...I } = f;
|
|
3006
3006
|
return Object.entries(I).every((M) => {
|
|
3007
3007
|
let [S, R] = M;
|
|
@@ -3018,12 +3018,12 @@ const ut = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, bt =
|
|
|
3018
3018
|
v
|
|
3019
3019
|
] : g;
|
|
3020
3020
|
}, []);
|
|
3021
|
-
return bt(t, l,
|
|
3021
|
+
return bt(t, l, d, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
3022
3022
|
}, kt = B(
|
|
3023
3023
|
({ iconName: t, stroke: n = 1, ...r }, o) => {
|
|
3024
3024
|
if (lt[t]) {
|
|
3025
3025
|
const i = lt[t];
|
|
3026
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ c.jsx(i, { ref: o, stroke: n, ...r });
|
|
3027
3027
|
} else
|
|
3028
3028
|
return console.error(`Icon ${t} not found`), null;
|
|
3029
3029
|
}
|
|
@@ -3098,7 +3098,7 @@ const N = kt, Vr = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3098
3098
|
size: a = "medium",
|
|
3099
3099
|
rounded: l = "rectangle",
|
|
3100
3100
|
weight: u,
|
|
3101
|
-
className:
|
|
3101
|
+
className: d,
|
|
3102
3102
|
...g
|
|
3103
3103
|
}, f) => {
|
|
3104
3104
|
typeof n == "string" && (n = { name: n }), typeof r == "string" && (r = { name: r });
|
|
@@ -3107,16 +3107,16 @@ const N = kt, Vr = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3107
3107
|
medium: "h-4",
|
|
3108
3108
|
large: "h-5"
|
|
3109
3109
|
}, v = o ? { status: o } : { intent: i };
|
|
3110
|
-
return /* @__PURE__ */
|
|
3110
|
+
return /* @__PURE__ */ c.jsxs(
|
|
3111
3111
|
"span",
|
|
3112
3112
|
{
|
|
3113
3113
|
ref: f,
|
|
3114
3114
|
className: V(
|
|
3115
|
-
Fr({ ...v, size: a, rounded: l, weight: u, className:
|
|
3115
|
+
Fr({ ...v, size: a, rounded: l, weight: u, className: d })
|
|
3116
3116
|
),
|
|
3117
3117
|
...g,
|
|
3118
3118
|
children: [
|
|
3119
|
-
n && /* @__PURE__ */
|
|
3119
|
+
n && /* @__PURE__ */ c.jsx(
|
|
3120
3120
|
N,
|
|
3121
3121
|
{
|
|
3122
3122
|
iconName: n.name,
|
|
@@ -3125,7 +3125,7 @@ const N = kt, Vr = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3125
3125
|
}
|
|
3126
3126
|
),
|
|
3127
3127
|
t,
|
|
3128
|
-
r && /* @__PURE__ */
|
|
3128
|
+
r && /* @__PURE__ */ c.jsx(
|
|
3129
3129
|
N,
|
|
3130
3130
|
{
|
|
3131
3131
|
iconName: r.name,
|
|
@@ -3139,7 +3139,7 @@ const N = kt, Vr = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3139
3139
|
}
|
|
3140
3140
|
);
|
|
3141
3141
|
jt.displayName = "Badge";
|
|
3142
|
-
const bn = jt, We = ({ className: t }) => /* @__PURE__ */
|
|
3142
|
+
const bn = jt, We = ({ className: t }) => /* @__PURE__ */ c.jsx(
|
|
3143
3143
|
N,
|
|
3144
3144
|
{
|
|
3145
3145
|
iconName: "IconLoader2",
|
|
@@ -3344,7 +3344,7 @@ const bn = jt, We = ({ className: t }) => /* @__PURE__ */ d.jsx(
|
|
|
3344
3344
|
iconLeft: a,
|
|
3345
3345
|
iconRight: l,
|
|
3346
3346
|
isLoading: u,
|
|
3347
|
-
disabled:
|
|
3347
|
+
disabled: d,
|
|
3348
3348
|
...g
|
|
3349
3349
|
}, f) => {
|
|
3350
3350
|
typeof a == "string" && (a = { name: a }), typeof l == "string" && (l = { name: l });
|
|
@@ -3353,17 +3353,17 @@ const bn = jt, We = ({ className: t }) => /* @__PURE__ */ d.jsx(
|
|
|
3353
3353
|
medium: "h-5",
|
|
3354
3354
|
large: "h-5"
|
|
3355
3355
|
};
|
|
3356
|
-
return /* @__PURE__ */
|
|
3356
|
+
return /* @__PURE__ */ c.jsx(
|
|
3357
3357
|
"button",
|
|
3358
3358
|
{
|
|
3359
3359
|
ref: f,
|
|
3360
3360
|
className: V(
|
|
3361
|
-
u ? Wr({ intent: n, weight: o, size: r, className: t }) :
|
|
3361
|
+
u ? Wr({ intent: n, weight: o, size: r, className: t }) : d ? Br({ intent: n, weight: o, size: r, className: t }) : Dr({ intent: n, weight: o, size: r, className: t })
|
|
3362
3362
|
),
|
|
3363
|
-
disabled:
|
|
3363
|
+
disabled: d || u,
|
|
3364
3364
|
...g,
|
|
3365
|
-
children: u ? /* @__PURE__ */
|
|
3366
|
-
a && /* @__PURE__ */
|
|
3365
|
+
children: u ? /* @__PURE__ */ c.jsx(We, { className: m[r || "medium"] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3366
|
+
a && /* @__PURE__ */ c.jsx(
|
|
3367
3367
|
N,
|
|
3368
3368
|
{
|
|
3369
3369
|
iconName: a.name,
|
|
@@ -3372,7 +3372,7 @@ const bn = jt, We = ({ className: t }) => /* @__PURE__ */ d.jsx(
|
|
|
3372
3372
|
}
|
|
3373
3373
|
),
|
|
3374
3374
|
i,
|
|
3375
|
-
l && /* @__PURE__ */
|
|
3375
|
+
l && /* @__PURE__ */ c.jsx(
|
|
3376
3376
|
N,
|
|
3377
3377
|
{
|
|
3378
3378
|
iconName: l.name,
|
|
@@ -3516,7 +3516,7 @@ const fn = Ct, Ge = "flex items-center justify-center transition-colors relative
|
|
|
3516
3516
|
disabled: a,
|
|
3517
3517
|
isLoading: l,
|
|
3518
3518
|
notification: u,
|
|
3519
|
-
...
|
|
3519
|
+
...d
|
|
3520
3520
|
}, g) => {
|
|
3521
3521
|
typeof t == "string" && (t = { name: t });
|
|
3522
3522
|
const f = {
|
|
@@ -3524,7 +3524,7 @@ const fn = Ct, Ge = "flex items-center justify-center transition-colors relative
|
|
|
3524
3524
|
medium: "h-6",
|
|
3525
3525
|
large: "h-6"
|
|
3526
3526
|
};
|
|
3527
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ c.jsxs(
|
|
3528
3528
|
"button",
|
|
3529
3529
|
{
|
|
3530
3530
|
ref: g,
|
|
@@ -3532,16 +3532,16 @@ const fn = Ct, Ge = "flex items-center justify-center transition-colors relative
|
|
|
3532
3532
|
l ? Ur({ intent: r, size: o, rounded: i, className: n }) : a ? Yr({ intent: r, size: o, rounded: i, className: n }) : Gr({ intent: r, size: o, rounded: i, className: n })
|
|
3533
3533
|
),
|
|
3534
3534
|
disabled: a || l,
|
|
3535
|
-
...
|
|
3535
|
+
...d,
|
|
3536
3536
|
children: [
|
|
3537
|
-
u && !l && /* @__PURE__ */
|
|
3537
|
+
u && !l && /* @__PURE__ */ c.jsx(
|
|
3538
3538
|
N,
|
|
3539
3539
|
{
|
|
3540
3540
|
iconName: "IconCircleFilled",
|
|
3541
3541
|
className: `absolute ${i === "full" ? "right-2 top-2" : "right-1 top-1"} h-[6px] w-[6px] ${r === "fill" ? "text-button-primary-content-pressed" : "text-button-primary-background-enabled"}`
|
|
3542
3542
|
}
|
|
3543
3543
|
),
|
|
3544
|
-
l ? /* @__PURE__ */
|
|
3544
|
+
l ? /* @__PURE__ */ c.jsx(We, { className: f[o || "medium"] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t && /* @__PURE__ */ c.jsx(
|
|
3545
3545
|
N,
|
|
3546
3546
|
{
|
|
3547
3547
|
iconName: t.name,
|
|
@@ -3644,7 +3644,7 @@ const Lr = St, Ue = "flex items-center justify-center gap-2 !border-b-xs transit
|
|
|
3644
3644
|
iconLeft: a,
|
|
3645
3645
|
iconRight: l,
|
|
3646
3646
|
isLoading: u,
|
|
3647
|
-
disabled:
|
|
3647
|
+
disabled: d,
|
|
3648
3648
|
...g
|
|
3649
3649
|
}, f) => {
|
|
3650
3650
|
typeof a == "string" && (a = { name: a }), typeof l == "string" && (l = { name: l });
|
|
@@ -3653,17 +3653,17 @@ const Lr = St, Ue = "flex items-center justify-center gap-2 !border-b-xs transit
|
|
|
3653
3653
|
medium: "h-5",
|
|
3654
3654
|
large: "h-6"
|
|
3655
3655
|
};
|
|
3656
|
-
return /* @__PURE__ */
|
|
3656
|
+
return /* @__PURE__ */ c.jsx(
|
|
3657
3657
|
"button",
|
|
3658
3658
|
{
|
|
3659
3659
|
ref: f,
|
|
3660
3660
|
className: V(
|
|
3661
|
-
u ? Jr({ intent: n, weight: o, size: r, className: t }) :
|
|
3661
|
+
u ? Jr({ intent: n, weight: o, size: r, className: t }) : d ? Kr({ intent: n, weight: o, size: r, className: t }) : qr({ intent: n, weight: o, size: r, className: t })
|
|
3662
3662
|
),
|
|
3663
|
-
disabled:
|
|
3663
|
+
disabled: d || u,
|
|
3664
3664
|
...g,
|
|
3665
|
-
children: u ? /* @__PURE__ */
|
|
3666
|
-
a && /* @__PURE__ */
|
|
3665
|
+
children: u ? /* @__PURE__ */ c.jsx(We, { className: m[r || "medium"] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3666
|
+
a && /* @__PURE__ */ c.jsx(
|
|
3667
3667
|
N,
|
|
3668
3668
|
{
|
|
3669
3669
|
iconName: a.name,
|
|
@@ -3672,7 +3672,7 @@ const Lr = St, Ue = "flex items-center justify-center gap-2 !border-b-xs transit
|
|
|
3672
3672
|
}
|
|
3673
3673
|
),
|
|
3674
3674
|
i,
|
|
3675
|
-
l && /* @__PURE__ */
|
|
3675
|
+
l && /* @__PURE__ */ c.jsx(
|
|
3676
3676
|
N,
|
|
3677
3677
|
{
|
|
3678
3678
|
iconName: l.name,
|
|
@@ -3707,7 +3707,7 @@ const gn = Et, Xr = "flex flex-col gap-3 p-3 rounded-lg", Hr = z(Xr, {
|
|
|
3707
3707
|
shadow: "none"
|
|
3708
3708
|
}
|
|
3709
3709
|
}), Rt = B(
|
|
3710
|
-
({ className: t, intent: n, shadow: r, children: o, ...i }, a) => /* @__PURE__ */
|
|
3710
|
+
({ className: t, intent: n, shadow: r, children: o, ...i }, a) => /* @__PURE__ */ c.jsx(
|
|
3711
3711
|
"div",
|
|
3712
3712
|
{
|
|
3713
3713
|
ref: a,
|
|
@@ -3761,7 +3761,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3761
3761
|
...i
|
|
3762
3762
|
}) => {
|
|
3763
3763
|
const a = t;
|
|
3764
|
-
return /* @__PURE__ */
|
|
3764
|
+
return /* @__PURE__ */ c.jsx(
|
|
3765
3765
|
a,
|
|
3766
3766
|
{
|
|
3767
3767
|
className: V(Qr({ intent: n, weight: o, className: r })),
|
|
@@ -3769,9 +3769,9 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
);
|
|
3771
3771
|
}, pn = B(
|
|
3772
|
-
({ label: t, className: n, helperText: r, error: o, touched: i, ...a }, l) => /* @__PURE__ */
|
|
3773
|
-
/* @__PURE__ */
|
|
3774
|
-
/* @__PURE__ */
|
|
3772
|
+
({ label: t, className: n, helperText: r, error: o, touched: i, ...a }, l) => /* @__PURE__ */ c.jsxs("div", { className: V("flex flex-col gap-3", n), children: [
|
|
3773
|
+
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center gap-3", children: [
|
|
3774
|
+
/* @__PURE__ */ c.jsx(
|
|
3775
3775
|
"input",
|
|
3776
3776
|
{
|
|
3777
3777
|
type: "checkbox",
|
|
@@ -3782,7 +3782,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3782
3782
|
...a
|
|
3783
3783
|
}
|
|
3784
3784
|
),
|
|
3785
|
-
t && /* @__PURE__ */
|
|
3785
|
+
t && /* @__PURE__ */ c.jsx("label", { htmlFor: a.id, children: /* @__PURE__ */ c.jsx(
|
|
3786
3786
|
W,
|
|
3787
3787
|
{
|
|
3788
3788
|
intent: "label-lg",
|
|
@@ -3792,8 +3792,8 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
) })
|
|
3794
3794
|
] }),
|
|
3795
|
-
r && /* @__PURE__ */
|
|
3796
|
-
o && i && /* @__PURE__ */
|
|
3795
|
+
r && /* @__PURE__ */ c.jsx(W, { intent: "label-md", className: "text-content-text-subtle", children: r }),
|
|
3796
|
+
o && i && /* @__PURE__ */ c.jsx(
|
|
3797
3797
|
W,
|
|
3798
3798
|
{
|
|
3799
3799
|
intent: "label-md",
|
|
@@ -3821,26 +3821,26 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3821
3821
|
touched: a,
|
|
3822
3822
|
options: l,
|
|
3823
3823
|
placeholder: u = "Select an option",
|
|
3824
|
-
...
|
|
3824
|
+
...d
|
|
3825
3825
|
}, g) => {
|
|
3826
3826
|
const [f, m] = le(!1), [v, I] = le(null), [M, S] = le(!1), R = (y) => {
|
|
3827
3827
|
var X;
|
|
3828
|
-
(X =
|
|
3828
|
+
(X = d.onChange) == null || X.call(d, y.value), I(y), m(!1);
|
|
3829
3829
|
}, P = $e(null);
|
|
3830
3830
|
return en({
|
|
3831
3831
|
ref: P,
|
|
3832
3832
|
handler: () => m(!1)
|
|
3833
|
-
}), /* @__PURE__ */
|
|
3834
|
-
t && /* @__PURE__ */
|
|
3835
|
-
/* @__PURE__ */
|
|
3833
|
+
}), /* @__PURE__ */ c.jsxs("div", { ref: g, className: V("flex flex-col gap-3", r), children: [
|
|
3834
|
+
t && /* @__PURE__ */ c.jsx("label", { htmlFor: d.id, children: /* @__PURE__ */ c.jsx(W, { intent: "label-lg", weight: "semibold", children: t }) }),
|
|
3835
|
+
/* @__PURE__ */ c.jsxs(
|
|
3836
3836
|
"div",
|
|
3837
3837
|
{
|
|
3838
3838
|
className: "relative w-full",
|
|
3839
3839
|
onMouseDown: () => S(!0),
|
|
3840
3840
|
onMouseUp: () => S(!1),
|
|
3841
3841
|
children: [
|
|
3842
|
-
n && /* @__PURE__ */
|
|
3843
|
-
/* @__PURE__ */
|
|
3842
|
+
n && /* @__PURE__ */ c.jsx("span", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ c.jsx(N, { iconName: n, size: 16 }) }),
|
|
3843
|
+
/* @__PURE__ */ c.jsxs(
|
|
3844
3844
|
"div",
|
|
3845
3845
|
{
|
|
3846
3846
|
ref: P,
|
|
@@ -3854,7 +3854,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3854
3854
|
"pl-9": n
|
|
3855
3855
|
}
|
|
3856
3856
|
),
|
|
3857
|
-
...
|
|
3857
|
+
...d,
|
|
3858
3858
|
onClick: () => m(!f),
|
|
3859
3859
|
onBlur: () => {
|
|
3860
3860
|
setTimeout(() => {
|
|
@@ -3862,7 +3862,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3862
3862
|
}, 0);
|
|
3863
3863
|
},
|
|
3864
3864
|
children: [
|
|
3865
|
-
/* @__PURE__ */
|
|
3865
|
+
/* @__PURE__ */ c.jsx(
|
|
3866
3866
|
W,
|
|
3867
3867
|
{
|
|
3868
3868
|
intent: "label-lg",
|
|
@@ -3872,7 +3872,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3872
3872
|
children: (v == null ? void 0 : v.label) || u
|
|
3873
3873
|
}
|
|
3874
3874
|
),
|
|
3875
|
-
/* @__PURE__ */
|
|
3875
|
+
/* @__PURE__ */ c.jsx(
|
|
3876
3876
|
N,
|
|
3877
3877
|
{
|
|
3878
3878
|
iconName: f ? "IconChevronUp" : "IconChevronDown",
|
|
@@ -3883,7 +3883,7 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3883
3883
|
]
|
|
3884
3884
|
}
|
|
3885
3885
|
),
|
|
3886
|
-
/* @__PURE__ */
|
|
3886
|
+
/* @__PURE__ */ c.jsx(
|
|
3887
3887
|
"div",
|
|
3888
3888
|
{
|
|
3889
3889
|
className: K(
|
|
@@ -3893,15 +3893,15 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3893
3893
|
"visible scale-100 opacity-100": f
|
|
3894
3894
|
}
|
|
3895
3895
|
),
|
|
3896
|
-
children: l == null ? void 0 : l.map((y) => /* @__PURE__ */
|
|
3896
|
+
children: l == null ? void 0 : l.map((y) => /* @__PURE__ */ c.jsxs(
|
|
3897
3897
|
"button",
|
|
3898
3898
|
{
|
|
3899
3899
|
type: "button",
|
|
3900
3900
|
className: "hover:text-content-text-primary relative w-full rounded-sm p-2 text-left text-content-text-subtle lg:hover:bg-bg-subtle-hover",
|
|
3901
3901
|
onClick: () => R(y),
|
|
3902
3902
|
children: [
|
|
3903
|
-
/* @__PURE__ */
|
|
3904
|
-
v === y && /* @__PURE__ */
|
|
3903
|
+
/* @__PURE__ */ c.jsx(W, { intent: "label-lg", weight: "semibold", children: y.label }),
|
|
3904
|
+
v === y && /* @__PURE__ */ c.jsx(
|
|
3905
3905
|
N,
|
|
3906
3906
|
{
|
|
3907
3907
|
iconName: "IconCheck",
|
|
@@ -3918,14 +3918,14 @@ const mn = Rt, Zr = "transition-colors", Qr = z(Zr, {
|
|
|
3918
3918
|
]
|
|
3919
3919
|
}
|
|
3920
3920
|
),
|
|
3921
|
-
i && a ? /* @__PURE__ */
|
|
3921
|
+
i && a ? /* @__PURE__ */ c.jsx(
|
|
3922
3922
|
W,
|
|
3923
3923
|
{
|
|
3924
3924
|
intent: "label-md",
|
|
3925
3925
|
className: "-mt-1 text-content-utility-danger-bolder",
|
|
3926
3926
|
children: i
|
|
3927
3927
|
}
|
|
3928
|
-
) : /* @__PURE__ */
|
|
3928
|
+
) : /* @__PURE__ */ c.jsx(W, { intent: "label-md", className: "-mt-1 text-content-text-subtle", children: o })
|
|
3929
3929
|
] });
|
|
3930
3930
|
}
|
|
3931
3931
|
);
|
|
@@ -3940,21 +3940,21 @@ const rn = B(
|
|
|
3940
3940
|
touched: a,
|
|
3941
3941
|
type: l = "text",
|
|
3942
3942
|
...u
|
|
3943
|
-
},
|
|
3943
|
+
}, d) => {
|
|
3944
3944
|
typeof n == "string" && (n = { name: n });
|
|
3945
3945
|
const [g, f] = le(!1);
|
|
3946
|
-
return /* @__PURE__ */
|
|
3947
|
-
t && /* @__PURE__ */
|
|
3948
|
-
/* @__PURE__ */
|
|
3949
|
-
n && /* @__PURE__ */
|
|
3946
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("flex flex-col gap-3", r), children: [
|
|
3947
|
+
t && /* @__PURE__ */ c.jsx("label", { htmlFor: u.id, children: /* @__PURE__ */ c.jsx(W, { intent: "label-lg", weight: "semibold", children: t }) }),
|
|
3948
|
+
/* @__PURE__ */ c.jsxs("div", { className: "relative w-full", children: [
|
|
3949
|
+
n && /* @__PURE__ */ c.jsx("span", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: typeof n == "object" ? /* @__PURE__ */ c.jsx(
|
|
3950
3950
|
N,
|
|
3951
3951
|
{
|
|
3952
3952
|
iconName: n.name,
|
|
3953
3953
|
stroke: n.stroke,
|
|
3954
3954
|
size: 16
|
|
3955
3955
|
}
|
|
3956
|
-
) : /* @__PURE__ */
|
|
3957
|
-
i && a && l !== "password" && /* @__PURE__ */
|
|
3956
|
+
) : /* @__PURE__ */ c.jsx(N, { iconName: n }) }),
|
|
3957
|
+
i && a && l !== "password" && /* @__PURE__ */ c.jsx(
|
|
3958
3958
|
N,
|
|
3959
3959
|
{
|
|
3960
3960
|
iconName: "IconAlertCircle",
|
|
@@ -3962,7 +3962,7 @@ const rn = B(
|
|
|
3962
3962
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-danger-bolder"
|
|
3963
3963
|
}
|
|
3964
3964
|
),
|
|
3965
|
-
a && !i && l !== "password" && /* @__PURE__ */
|
|
3965
|
+
a && !i && l !== "password" && /* @__PURE__ */ c.jsx(
|
|
3966
3966
|
N,
|
|
3967
3967
|
{
|
|
3968
3968
|
iconName: "IconCircleCheck",
|
|
@@ -3970,13 +3970,13 @@ const rn = B(
|
|
|
3970
3970
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-success"
|
|
3971
3971
|
}
|
|
3972
3972
|
),
|
|
3973
|
-
l === "password" && /* @__PURE__ */
|
|
3973
|
+
l === "password" && /* @__PURE__ */ c.jsx(
|
|
3974
3974
|
"button",
|
|
3975
3975
|
{
|
|
3976
3976
|
type: "button",
|
|
3977
3977
|
className: "absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 transition-colors lg:hover:bg-bg-subtle-hover",
|
|
3978
3978
|
onClick: () => f(!g),
|
|
3979
|
-
children: /* @__PURE__ */
|
|
3979
|
+
children: /* @__PURE__ */ c.jsx(
|
|
3980
3980
|
N,
|
|
3981
3981
|
{
|
|
3982
3982
|
iconName: g ? "IconEyeOff" : "IconEye",
|
|
@@ -3985,10 +3985,10 @@ const rn = B(
|
|
|
3985
3985
|
)
|
|
3986
3986
|
}
|
|
3987
3987
|
),
|
|
3988
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ c.jsx(
|
|
3989
3989
|
"input",
|
|
3990
3990
|
{
|
|
3991
|
-
ref:
|
|
3991
|
+
ref: d,
|
|
3992
3992
|
className: K(
|
|
3993
3993
|
"flex w-full items-center gap-2 rounded-sm border-xs border-border-subtlest p-3 pr-9 outline-offset-2 transition-colors focus:border-xs focus:border-border-accent-violet focus:outline-2 focus:outline-border-accent-violet focus:ring-0 active:border-xs lg:hover:border-border-accent-violet",
|
|
3994
3994
|
{
|
|
@@ -4002,14 +4002,14 @@ const rn = B(
|
|
|
4002
4002
|
}
|
|
4003
4003
|
)
|
|
4004
4004
|
] }),
|
|
4005
|
-
i && a ? /* @__PURE__ */
|
|
4005
|
+
i && a ? /* @__PURE__ */ c.jsx(
|
|
4006
4006
|
W,
|
|
4007
4007
|
{
|
|
4008
4008
|
intent: "label-md",
|
|
4009
4009
|
className: "-mt-1 text-content-utility-danger-bolder",
|
|
4010
4010
|
children: i
|
|
4011
4011
|
}
|
|
4012
|
-
) : /* @__PURE__ */
|
|
4012
|
+
) : /* @__PURE__ */ c.jsx(W, { intent: "label-md", className: "-mt-1 text-content-text-subtle", children: o })
|
|
4013
4013
|
] });
|
|
4014
4014
|
}
|
|
4015
4015
|
);
|
|
@@ -4022,24 +4022,24 @@ const hn = ({
|
|
|
4022
4022
|
}) => {
|
|
4023
4023
|
const [i, a] = le(r);
|
|
4024
4024
|
ae(() => {
|
|
4025
|
-
let
|
|
4026
|
-
return r ? a(!0) :
|
|
4025
|
+
let d;
|
|
4026
|
+
return r ? a(!0) : d = setTimeout(() => a(!1), 1e3), () => clearTimeout(d);
|
|
4027
4027
|
}, [r]), ae(() => {
|
|
4028
|
-
const
|
|
4028
|
+
const d = (g) => {
|
|
4029
4029
|
g.key === "Escape" && o(!1);
|
|
4030
4030
|
};
|
|
4031
|
-
return window.addEventListener("keydown",
|
|
4032
|
-
window.removeEventListener("keydown",
|
|
4031
|
+
return window.addEventListener("keydown", d), () => {
|
|
4032
|
+
window.removeEventListener("keydown", d);
|
|
4033
4033
|
};
|
|
4034
4034
|
}, [o]);
|
|
4035
4035
|
const l = window.innerWidth - document.body.offsetWidth;
|
|
4036
4036
|
ae(() => {
|
|
4037
4037
|
r ? (document.body.style.overflow = "hidden", document.body.style.paddingRight = `${l}px`) : (document.body.style.overflow = "unset", document.body.style.paddingRight = "0px");
|
|
4038
4038
|
}, [r, l]);
|
|
4039
|
-
const u = (
|
|
4040
|
-
|
|
4039
|
+
const u = (d) => {
|
|
4040
|
+
d.target === d.currentTarget && o(!1);
|
|
4041
4041
|
};
|
|
4042
|
-
return /* @__PURE__ */
|
|
4042
|
+
return /* @__PURE__ */ c.jsx(
|
|
4043
4043
|
"div",
|
|
4044
4044
|
{
|
|
4045
4045
|
id: "overlay",
|
|
@@ -4052,10 +4052,10 @@ const hn = ({
|
|
|
4052
4052
|
}
|
|
4053
4053
|
),
|
|
4054
4054
|
tabIndex: -1,
|
|
4055
|
-
children: /* @__PURE__ */
|
|
4055
|
+
children: /* @__PURE__ */ c.jsxs(
|
|
4056
4056
|
"div",
|
|
4057
4057
|
{
|
|
4058
|
-
onClick: (
|
|
4058
|
+
onClick: (d) => d.stopPropagation(),
|
|
4059
4059
|
className: K(
|
|
4060
4060
|
`${t} relative mx-2 my-2 w-full rounded-lg bg-bg-white p-3 shadow-sm transition-all md:w-fit`,
|
|
4061
4061
|
{
|
|
@@ -4064,7 +4064,7 @@ const hn = ({
|
|
|
4064
4064
|
}
|
|
4065
4065
|
),
|
|
4066
4066
|
children: [
|
|
4067
|
-
/* @__PURE__ */
|
|
4067
|
+
/* @__PURE__ */ c.jsx(
|
|
4068
4068
|
Lr,
|
|
4069
4069
|
{
|
|
4070
4070
|
onClick: () => o(!1),
|
|
@@ -4124,12 +4124,12 @@ const hn = ({
|
|
|
4124
4124
|
isOpen: o
|
|
4125
4125
|
}) => {
|
|
4126
4126
|
const { placementStyles: i } = nn[n];
|
|
4127
|
-
return /* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ c.jsx(
|
|
4128
4128
|
"div",
|
|
4129
4129
|
{
|
|
4130
4130
|
className: `absolute z-[99999] flex w-fit min-w-32 flex-col gap-2 rounded-lg bg-bg-white p-4 shadow-2xl transition-all ${i} ${o ? "visible scale-100 opacity-100" : "invisible scale-95 opacity-0"}`,
|
|
4131
4131
|
onClick: r,
|
|
4132
|
-
children: t || /* @__PURE__ */
|
|
4132
|
+
children: t || /* @__PURE__ */ c.jsx("div", { children: "Your placeholder here" })
|
|
4133
4133
|
}
|
|
4134
4134
|
);
|
|
4135
4135
|
}, vn = ({
|
|
@@ -4139,26 +4139,26 @@ const hn = ({
|
|
|
4139
4139
|
placement: o = "bottom-left",
|
|
4140
4140
|
closeOnAction: i = !1
|
|
4141
4141
|
}) => {
|
|
4142
|
-
const [a, l] = le(r), u = $e(null),
|
|
4142
|
+
const [a, l] = le(r), u = $e(null), d = $e(null);
|
|
4143
4143
|
ae(() => {
|
|
4144
4144
|
l(r);
|
|
4145
4145
|
}, [r]), ae(() => {
|
|
4146
4146
|
const m = (v) => {
|
|
4147
|
-
|
|
4147
|
+
d.current && !d.current.contains(v.target) && u.current && !u.current.contains(v.target) && l(!1);
|
|
4148
4148
|
};
|
|
4149
4149
|
return document.addEventListener("mousedown", m), () => {
|
|
4150
4150
|
document.removeEventListener("mousedown", m);
|
|
4151
4151
|
};
|
|
4152
|
-
}, [u,
|
|
4152
|
+
}, [u, d, l]);
|
|
4153
4153
|
const f = rr(n, {
|
|
4154
4154
|
onClick: (m) => {
|
|
4155
4155
|
m.stopPropagation(), l((v) => !v);
|
|
4156
4156
|
},
|
|
4157
|
-
ref:
|
|
4157
|
+
ref: d
|
|
4158
4158
|
});
|
|
4159
|
-
return /* @__PURE__ */
|
|
4159
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "relative", children: [
|
|
4160
4160
|
f,
|
|
4161
|
-
/* @__PURE__ */
|
|
4161
|
+
/* @__PURE__ */ c.jsx("div", { ref: u, children: /* @__PURE__ */ c.jsx(
|
|
4162
4162
|
on,
|
|
4163
4163
|
{
|
|
4164
4164
|
placement: o,
|
|
@@ -4210,7 +4210,7 @@ const hn = ({
|
|
|
4210
4210
|
medium: "text-sm",
|
|
4211
4211
|
large: "text-base"
|
|
4212
4212
|
};
|
|
4213
|
-
return /* @__PURE__ */
|
|
4213
|
+
return /* @__PURE__ */ c.jsx(
|
|
4214
4214
|
"div",
|
|
4215
4215
|
{
|
|
4216
4216
|
className: V(
|
|
@@ -4218,12 +4218,12 @@ const hn = ({
|
|
|
4218
4218
|
"relative bg-bg-accent-gray-subtle-hover"
|
|
4219
4219
|
),
|
|
4220
4220
|
...a,
|
|
4221
|
-
children: /* @__PURE__ */
|
|
4221
|
+
children: /* @__PURE__ */ c.jsx(
|
|
4222
4222
|
"div",
|
|
4223
4223
|
{
|
|
4224
4224
|
className: V(ft({ intent: r, size: o, rounded: i })),
|
|
4225
4225
|
style: { width: `${t}%` },
|
|
4226
|
-
children: /* @__PURE__ */
|
|
4226
|
+
children: /* @__PURE__ */ c.jsxs(
|
|
4227
4227
|
"span",
|
|
4228
4228
|
{
|
|
4229
4229
|
className: `absolute -right-2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-content-text-inverse ${l[o || "medium"]}`,
|
|
@@ -4294,10 +4294,10 @@ const hn = ({
|
|
|
4294
4294
|
className: a,
|
|
4295
4295
|
delay: l,
|
|
4296
4296
|
closeDelay: u,
|
|
4297
|
-
...
|
|
4298
|
-
}, g) => /* @__PURE__ */
|
|
4297
|
+
...d
|
|
4298
|
+
}, g) => /* @__PURE__ */ c.jsxs("div", { className: V(sn), children: [
|
|
4299
4299
|
o,
|
|
4300
|
-
/* @__PURE__ */
|
|
4300
|
+
/* @__PURE__ */ c.jsx(
|
|
4301
4301
|
"span",
|
|
4302
4302
|
{
|
|
4303
4303
|
ref: g,
|
|
@@ -4311,8 +4311,8 @@ const hn = ({
|
|
|
4311
4311
|
closeDelay: u
|
|
4312
4312
|
})
|
|
4313
4313
|
),
|
|
4314
|
-
...
|
|
4315
|
-
children: i
|
|
4314
|
+
...d,
|
|
4315
|
+
children: /* @__PURE__ */ c.jsx(W, { intent: "label-md", children: i })
|
|
4316
4316
|
}
|
|
4317
4317
|
)
|
|
4318
4318
|
] })
|
package/dist/index.umd.js
CHANGED
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Le;function Ot(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&function(){var t=k,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),
|
|
17
|
+
*/var Le;function Ot(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&function(){var t=k,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),D=Symbol.iterator,E="@@iterator";function T(e){if(e===null||typeof e!="object")return null;var s=D&&e[D]||e[E];return typeof s=="function"?s:null}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var s=arguments.length,b=new Array(s>1?s-1:0),p=1;p<s;p++)b[p-1]=arguments[p];$("error",e,b)}}function $(e,s,b){{var p=O.ReactDebugCurrentFrame,S=p.getStackAddendum();S!==""&&(s+="%s",b=b.concat([S]));var C=b.map(function(w){return String(w)});C.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,C)}}var ue=!1,ye=!1,we=!1,ke=!1,Se=!1,ne;ne=Symbol.for("react.module.reference");function be(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===a||Se||e===i||e===g||e===f||ke||e===A||ue||ye||we||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===ne||e.getModuleId!==void 0))}function fe(e,s,b){var p=e.displayName;if(p)return p;var S=s.displayName||s.name||"";return S!==""?b+"("+S+")":b}function j(e){return e.displayName||"Context"}function W(e){if(e==null)return null;if(typeof e.tag=="number"&&y("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 o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var s=e;return j(s)+".Consumer";case l:var b=e;return j(b._context)+".Provider";case d:return fe(e,e.render,"ForwardRef");case m:var p=e.displayName||null;return p!==null?p:W(e.type)||"Memo";case v:{var S=e,C=S._payload,w=S._init;try{return W(w(C))}catch{return null}}}return null}var G=Object.assign,X=0,q,ge,oe,H,me,Z,ee;function mt(){}mt.__reactDisabledLog=!0;function Dr(){{if(X===0){q=console.log,ge=console.info,oe=console.warn,H=console.error,me=console.group,Z=console.groupCollapsed,ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:mt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}X++}}function Wr(){{if(X--,X===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:q}),info:G({},e,{value:ge}),warn:G({},e,{value:oe}),error:G({},e,{value:H}),group:G({},e,{value:me}),groupCollapsed:G({},e,{value:Z}),groupEnd:G({},e,{value:ee})})}X<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ae=O.ReactCurrentDispatcher,ze;function je(e,s,b){{if(ze===void 0)try{throw Error()}catch(S){var p=S.stack.trim().match(/\n( *(at )?)/);ze=p&&p[1]||""}return`
|
|
18
18
|
`+ze+e}}var Me=!1,Ce;{var Gr=typeof WeakMap=="function"?WeakMap:Map;Ce=new Gr}function pt(e,s){if(!e||Me)return"";{var b=Ce.get(e);if(b!==void 0)return b}var p;Me=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=Ae.current,Ae.current=null,Dr();try{if(s){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(V){p=V}Reflect.construct(e,[],w)}else{try{w.call()}catch(V){p=V}e.call(w.prototype)}}else{try{throw Error()}catch(V){p=V}e()}}catch(V){if(V&&p&&typeof V.stack=="string"){for(var x=V.stack.split(`
|
|
19
19
|
`),z=p.stack.split(`
|
|
20
20
|
`),P=x.length-1,I=z.length-1;P>=1&&I>=0&&x[P]!==z[I];)I--;for(;P>=1&&I>=0;P--,I--)if(x[P]!==z[I]){if(P!==1||I!==1)do if(P--,I--,I<0||x[P]!==z[I]){var U=`
|
|
21
|
-
`+x[P].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ce.set(e,U),U}while(P>=1&&I>=0);break}}}finally{Me=!1,Ae.current=C,Wr(),Error.prepareStackTrace=S}var le=e?e.displayName||e.name:"",te=le?je(le):"";return typeof e=="function"&&Ce.set(e,te),te}function Ur(e,s,b){return pt(e,!1)}function Yr(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function Ee(e,s,b){if(e==null)return"";if(typeof e=="function")return pt(e,Yr(e));if(typeof e=="string")return je(e);switch(e){case g:return je("Suspense");case f:return je("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Ur(e.render);case m:return Ee(e.type,s,b);case v:{var p=e,S=p._payload,C=p._init;try{return Ee(C(S),s,b)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,ht={},vt=O.ReactDebugCurrentFrame;function Re(e){if(e){var s=e._owner,b=Ee(e.type,e._source,s?s.type:null);vt.setExtraStackFrame(b)}else vt.setExtraStackFrame(null)}function Lr(e,s,b,p,S){{var C=Function.call.bind(pe);for(var w in e)if(C(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var z=Error((p||"React class")+": "+b+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}x=e[w](s,w,p,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){x=P}x&&!(x instanceof Error)&&(Re(S),y("%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).",p||"React class",b,w,typeof x),Re(null)),x instanceof Error&&!(x.message in ht)&&(ht[x.message]=!0,Re(S),y("Failed %s type: %s",b,x.message),Re(null))}}}var Jr=Array.isArray;function Ve(e){return Jr(e)}function Kr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,b=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return b}}function Xr(e){try{return xt(e),!1}catch{return!0}}function xt(e){return""+e}function yt(e){if(Xr(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kr(e)),xt(e)}var he=O.ReactCurrentOwner,Hr={key:!0,ref:!0,__self:!0,__source:!0},wt,kt,Fe;Fe={};function Zr(e){if(pe.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function Qr(e){if(pe.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function $r(e,s){if(typeof e.ref=="string"&&he.current&&s&&he.current.stateNode!==s){var b=
|
|
21
|
+
`+x[P].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ce.set(e,U),U}while(P>=1&&I>=0);break}}}finally{Me=!1,Ae.current=C,Wr(),Error.prepareStackTrace=S}var le=e?e.displayName||e.name:"",te=le?je(le):"";return typeof e=="function"&&Ce.set(e,te),te}function Ur(e,s,b){return pt(e,!1)}function Yr(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function Ee(e,s,b){if(e==null)return"";if(typeof e=="function")return pt(e,Yr(e));if(typeof e=="string")return je(e);switch(e){case g:return je("Suspense");case f:return je("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Ur(e.render);case m:return Ee(e.type,s,b);case v:{var p=e,S=p._payload,C=p._init;try{return Ee(C(S),s,b)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,ht={},vt=O.ReactDebugCurrentFrame;function Re(e){if(e){var s=e._owner,b=Ee(e.type,e._source,s?s.type:null);vt.setExtraStackFrame(b)}else vt.setExtraStackFrame(null)}function Lr(e,s,b,p,S){{var C=Function.call.bind(pe);for(var w in e)if(C(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var z=Error((p||"React class")+": "+b+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}x=e[w](s,w,p,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){x=P}x&&!(x instanceof Error)&&(Re(S),y("%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).",p||"React class",b,w,typeof x),Re(null)),x instanceof Error&&!(x.message in ht)&&(ht[x.message]=!0,Re(S),y("Failed %s type: %s",b,x.message),Re(null))}}}var Jr=Array.isArray;function Ve(e){return Jr(e)}function Kr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,b=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return b}}function Xr(e){try{return xt(e),!1}catch{return!0}}function xt(e){return""+e}function yt(e){if(Xr(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kr(e)),xt(e)}var he=O.ReactCurrentOwner,Hr={key:!0,ref:!0,__self:!0,__source:!0},wt,kt,Fe;Fe={};function Zr(e){if(pe.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function Qr(e){if(pe.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function $r(e,s){if(typeof e.ref=="string"&&he.current&&s&&he.current.stateNode!==s){var b=W(he.current.type);Fe[b]||(y('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',W(he.current.type),e.ref),Fe[b]=!0)}}function qr(e,s){{var b=function(){wt||(wt=!0,y("%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)",s))};b.isReactWarning=!0,Object.defineProperty(e,"key",{get:b,configurable:!0})}}function en(e,s){{var b=function(){kt||(kt=!0,y("%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)",s))};b.isReactWarning=!0,Object.defineProperty(e,"ref",{get:b,configurable:!0})}}var tn=function(e,s,b,p,S,C,w){var x={$$typeof:n,type:e,key:s,ref:b,props:w,_owner:C};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function rn(e,s,b,p,S){{var C,w={},x=null,z=null;b!==void 0&&(yt(b),x=""+b),Qr(s)&&(yt(s.key),x=""+s.key),Zr(s)&&(z=s.ref,$r(s,S));for(C in s)pe.call(s,C)&&!Hr.hasOwnProperty(C)&&(w[C]=s[C]);if(e&&e.defaultProps){var P=e.defaultProps;for(C in P)w[C]===void 0&&(w[C]=P[C])}if(x||z){var I=typeof e=="function"?e.displayName||e.name||"Unknown":e;x&&qr(w,I),z&&en(w,I)}return tn(e,x,z,S,p,he.current,w)}}var Be=O.ReactCurrentOwner,St=O.ReactDebugCurrentFrame;function ae(e){if(e){var s=e._owner,b=Ee(e.type,e._source,s?s.type:null);St.setExtraStackFrame(b)}else St.setExtraStackFrame(null)}var De;De=!1;function We(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function jt(){{if(Be.current){var e=W(Be.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function nn(e){return""}var Ct={};function on(e){{var s=jt();if(!s){var b=typeof e=="string"?e:e.displayName||e.name;b&&(s=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+b+">.")}return s}}function Et(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var b=on(s);if(Ct[b])return;Ct[b]=!0;var p="";e&&e._owner&&e._owner!==Be.current&&(p=" It was passed a child from "+
|
|
25
|
+
Check the top-level render call using <`+b+">.")}return s}}function Et(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var b=on(s);if(Ct[b])return;Ct[b]=!0;var p="";e&&e._owner&&e._owner!==Be.current&&(p=" It was passed a child from "+W(e._owner.type)+"."),ae(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,p),ae(null)}}function Rt(e,s){{if(typeof e!="object")return;if(Ve(e))for(var b=0;b<e.length;b++){var p=e[b];We(p)&&Et(p,s)}else if(We(e))e._store&&(e._store.validated=!0);else if(e){var S=T(e);if(typeof S=="function"&&S!==e.entries)for(var C=S.call(e),w;!(w=C.next()).done;)We(w.value)&&Et(w.value,s)}}}function an(e){{var s=e.type;if(s==null||typeof s=="string")return;var b;if(typeof s=="function")b=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===d||s.$$typeof===m))b=s.propTypes;else return;if(b){var p=W(s);Lr(b,e.props,"prop",p,e)}else if(s.PropTypes!==void 0&&!De){De=!0;var S=W(s);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ln(e){{for(var s=Object.keys(e.props),b=0;b<s.length;b++){var p=s[b];if(p!=="children"&&p!=="key"){ae(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),ae(null);break}}e.ref!==null&&(ae(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}var _t={};function Tt(e,s,b,p,S,C){{var w=be(e);if(!w){var x="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" 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 z=nn();z?x+=z:x+=jt();var P;e===null?P="null":Ve(e)?P="array":e!==void 0&&e.$$typeof===n?(P="<"+(W(e.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,x)}var I=rn(e,s,b,S,C);if(I==null)return I;if(w){var U=s.children;if(U!==void 0)if(p)if(Ve(U)){for(var le=0;le<U.length;le++)Rt(U[le],e);Object.freeze&&Object.freeze(U)}else y("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 Rt(U,e)}if(pe.call(s,"key")){var te=W(e),V=Object.keys(s).filter(function(fn){return fn!=="key"}),Ge=V.length>0?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}";if(!_t[te+Ge]){var bn=V.length>0?"{"+V.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ge,te,bn,te),_t[te+Ge]=!0}}return e===o?ln(I):an(I),I}}function sn(e,s,b){return Tt(e,s,b,!0)}function cn(e,s,b){return Tt(e,s,b,!1)}var dn=cn,un=sn;ie.Fragment=o,ie.jsx=dn,ie.jsxs=un}()),ie}process.env.NODE_ENV==="production"?_e.exports=Nt():_e.exports=Ot();var c=_e.exports;const At=k.forwardRef(({rounded:t=!0,...n},r)=>{const o=t?"rounded-full":"rounded-sm";if(!n.src)throw new Error("The src prop is required");return c.jsx("img",{...n,ref:r,className:`h-full w-full object-cover ${o}`})});function Je(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=Je(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function L(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=Je(t))&&(o&&(o+=" "),o+=n);return o}const Te="-";function zt(t){const n=Vt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function i(l){const u=l.split(Te);return u[0]===""&&u.length!==1&&u.shift(),Ke(u,n)||Mt(l)}function a(l,u){const d=r[l]||[];return u&&o[l]?[...d,...o[l]]:d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Ke(t,n){var l;if(t.length===0)return n.classGroupId;const r=t[0],o=n.nextPart.get(r),i=o?Ke(t.slice(1),o):void 0;if(i)return i;if(n.validators.length===0)return;const a=t.join(Te);return(l=n.validators.find(({validator:u})=>u(a)))==null?void 0:l.classGroupId}const Xe=/^\[(.+)\]$/;function Mt(t){if(Xe.test(t)){const n=Xe.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}}function Vt(t){const{theme:n,prefix:r}=t,o={nextPart:new Map,validators:[]};return Bt(Object.entries(t.classGroups),r).forEach(([a,l])=>{Pe(l,o,a,n)}),o}function Pe(t,n,r,o){t.forEach(i=>{if(typeof i=="string"){const a=i===""?n:He(n,i);a.classGroupId=r;return}if(typeof i=="function"){if(Ft(i)){Pe(i(o),n,r,o);return}n.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,l])=>{Pe(l,He(n,a),r,o)})})}function He(t,n){let r=t;return n.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ft(t){return t.isThemeGetter}function Bt(t,n){return n?t.map(([r,o])=>{const i=o.map(a=>typeof a=="string"?n+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,u])=>[n+l,u])):a);return[r,i]}):t}function Dt(t){if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;function i(a,l){r.set(a,l),n++,n>t&&(n=0,o=r,r=new Map)}return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return i(a,l),l},set(a,l){r.has(a)?r.set(a,l):i(a,l)}}}const Ze="!";function Wt(t){const n=t.separator,r=n.length===1,o=n[0],i=n.length;return function(l){const u=[];let d=0,g=0,f;for(let E=0;E<l.length;E++){let T=l[E];if(d===0){if(T===o&&(r||l.slice(E,E+i)===n)){u.push(l.slice(g,E)),g=E+i;continue}if(T==="/"){f=E;continue}}T==="["?d++:T==="]"&&d--}const m=u.length===0?l:l.substring(g),v=m.startsWith(Ze),A=v?m.substring(1):m,B=f&&f>g?f-g:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:A,maybePostfixModifierPosition:B}}}function Gt(t){if(t.length<=1)return t;const n=[];let r=[];return t.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n}function Ut(t){return{cache:Dt(t.cacheSize),splitModifiers:Wt(t),...zt(t)}}const Yt=/\s+/;function Lt(t,n){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:i}=n,a=new Set;return t.trim().split(Yt).map(l=>{const{modifiers:u,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:f}=r(l);let m=o(f?g.substring(0,f):g),v=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:l};if(m=o(g),!m)return{isTailwindClass:!1,originalClassName:l};v=!1}const A=Gt(u).join(":");return{isTailwindClass:!0,modifierId:d?A+Ze:A,classGroupId:m,originalClassName:l,hasPostfixModifier:v}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:u,classGroupId:d,hasPostfixModifier:g}=l,f=u+d;return a.has(f)?!1:(a.add(f),i(d,g).forEach(m=>a.add(u+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function Jt(){let t=0,n,r,o="";for(;t<arguments.length;)(n=arguments[t++])&&(r=Qe(n))&&(o&&(o+=" "),o+=r);return o}function Qe(t){if(typeof t=="string")return t;let n,r="";for(let o=0;o<t.length;o++)t[o]&&(n=Qe(t[o]))&&(r&&(r+=" "),r+=n);return r}function Kt(t,...n){let r,o,i,a=l;function l(d){const g=n.reduce((f,m)=>m(f),t());return r=Ut(g),o=r.cache.get,i=r.cache.set,a=u,u(d)}function u(d){const g=o(d);if(g)return g;const f=Lt(d,r);return i(d,f),f}return function(){return a(Jt.apply(null,arguments))}}function R(t){const n=r=>r[t]||[];return n.isThemeGetter=!0,n}const $e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xt=/^\d+\/\d+$/,Ht=new Set(["px","full","screen"]),Zt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,er=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Y(t){return Q(t)||Ht.has(t)||Xt.test(t)}function J(t){return re(t,"length",ir)}function Q(t){return!!t&&!Number.isNaN(Number(t))}function ve(t){return re(t,"number",Q)}function ce(t){return!!t&&Number.isInteger(Number(t))}function tr(t){return t.endsWith("%")&&Q(t.slice(0,-1))}function h(t){return $e.test(t)}function K(t){return Zt.test(t)}const rr=new Set(["length","size","percentage"]);function nr(t){return re(t,rr,qe)}function or(t){return re(t,"position",qe)}const ar=new Set(["image","url"]);function lr(t){return re(t,ar,dr)}function sr(t){return re(t,"",cr)}function de(){return!0}function re(t,n,r){const o=$e.exec(t);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1}function ir(t){return Qt.test(t)&&!$t.test(t)}function qe(){return!1}function cr(t){return qt.test(t)}function dr(t){return er.test(t)}function ur(){const t=R("colors"),n=R("spacing"),r=R("blur"),o=R("brightness"),i=R("borderColor"),a=R("borderRadius"),l=R("borderSpacing"),u=R("borderWidth"),d=R("contrast"),g=R("grayscale"),f=R("hueRotate"),m=R("invert"),v=R("gap"),A=R("gradientColorStops"),B=R("gradientColorStopPositions"),E=R("inset"),T=R("margin"),O=R("opacity"),y=R("padding"),$=R("saturate"),ue=R("scale"),ye=R("sepia"),we=R("skew"),ke=R("space"),Se=R("translate"),ne=()=>["auto","contain","none"],be=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",h,n],j=()=>[h,n],D=()=>["",Y,J],G=()=>["auto",Q,h],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",h],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[Q,ve],ee=()=>[Q,h];return{cacheSize:500,separator:":",theme:{colors:[de],spacing:[Y,J],blur:["none","",K,h],brightness:Z(),borderColor:[t],borderRadius:["none","","full",K,h],borderSpacing:j(),borderWidth:D(),contrast:Z(),grayscale:H(),hueRotate:ee(),invert:H(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[tr,J],inset:fe(),margin:fe(),opacity:Z(),padding:j(),saturate:Z(),scale:Z(),sepia:H(),skew:ee(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[K]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),h]}],overflow:[{overflow:be()}],"overflow-x":[{"overflow-x":be()}],"overflow-y":[{"overflow-y":be()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ce,h]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ce,h]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:["full",ce,h]},h]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ce,h]},h]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,n]}],"min-w":[{"min-w":[h,n,"min","max","fit"]}],"max-w":[{"max-w":[h,n,"none","full","min","max","fit","prose",{screen:[K]},K]}],h:[{h:[h,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,n,"auto","min","max","fit"]}],"font-size":[{text:["base",K,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ve]}],"font-family":[{font:[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",Q,ve]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,J]}],"underline-offset":[{"underline-offset":["auto",Y,h]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lr]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[Y,h]}],"outline-w":[{outline:[Y,J]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[Y,J]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",K,sr]}],"shadow-color":[{shadow:[de]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...ge(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ge()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",K,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[$]}],sepia:[{sepia:[ye]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ue]}],"scale-x":[{"scale-x":[ue]}],"scale-y":[{"scale-y":[ue]}],rotate:[{rotate:[ce,h]}],"translate-x":[{"translate-x":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-x":[{"skew-x":[we]}],"skew-y":[{"skew-y":[we]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Y,J,ve]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const br=Kt(ur),F=(...t)=>br(L(t));function et(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=et(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function fr(){for(var t,n,r=0,o="";r<arguments.length;)(t=arguments[r++])&&(n=et(t))&&(o&&(o+=" "),o+=n);return o}const tt=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,rt=fr,M=(t,n)=>r=>{var o;if((n==null?void 0:n.variants)==null)return rt(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=n,l=Object.keys(i).map(g=>{const f=r==null?void 0:r[g],m=a==null?void 0:a[g];if(f===null)return null;const v=tt(f)||tt(m);return i[g][v]}),u=r&&Object.entries(r).reduce((g,f)=>{let[m,v]=f;return v===void 0||(g[m]=v),g},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((g,f)=>{let{class:m,className:v,...A}=f;return Object.entries(A).every(B=>{let[E,T]=B;return Array.isArray(T)?T.includes({...a,...u}[E]):{...a,...u}[E]===T})?[...g,m,v]:g},[]);return rt(t,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},nt=k.forwardRef(({iconName:t,stroke:n=1,...r},o)=>{if(Ue[t]){const i=Ue[t];return c.jsx(i,{ref:o,stroke:n,...r})}else return console.error(`Icon ${t} not found`),null});nt.displayName="IconComponent";const N=nt,gr=M("!border-sm flex w-fit items-center justify-center gap-2 rounded-sm transition-colors",{variants:{status:{notStarted:"border-border-transparent bg-bg-accent-ice-subtle text-content-text-default","notStarted-outline":"border-border-accent-ice text-content-accent-ice",locked:"border-border-transparent bg-bg-disabled text-content-text-subtle","locked-outline":"border-border-disabled text-content-text-subtlest",available:"border-border-transparent bg-bg-utility-discovery-bolder text-content-text-inverse","available-outline":"border-border-utility-discovery text-content-utility-discovery",inProgress:"border-border-transparent bg-bg-accent-blue-subtle text-content-text-default","inProgress-outline":"border-border-accent-blue text-content-accent-blue",completed:"border-border-transparent bg-bg-utility-success-bolder text-content-text-default","completed-outline":"border-border-utility-success text-content-utility-success",viewed:"border-border-transparent bg-bg-utility-informative-bolder text-content-text-inverse","viewed-outline":"border-border-utility-informative text-content-utility-informative"},intent:{neutral:"border-border-transparent bg-bg-bolder text-content-text-inverse","neutral-outline":"border-border-bolder text-content-text-default",blue:"border-border-transparent bg-bg-accent-blue text-content-text-inverse","blue-outline":"border-border-accent-blue text-content-accent-blue",mustard:"border-border-transparent bg-bg-accent-mustard text-content-text-default","mustard-outline":"border-border-accent-mustard text-content-accent-mustard",green:"border-border-transparent bg-bg-accent-green text-content-text-inverse","green-outline":"border-border-accent-green text-content-accent-green",lime:"border-border-transparent bg-bg-accent-lime text-content-text-default","lime-outline":"border-border-accent-lime text-content-accent-lime",fuchsia:"border-border-transparent bg-bg-accent-fuchsia text-content-text-inverse","fuchsia-outline":"border-border-accent-fuchsia text-content-accent-fuchsia",marine:"border-border-transparent bg-bg-accent-marine text-content-text-inverse","marine-outline":"border-border-accent-marine text-content-accent-marine",ice:"border-border-transparent bg-bg-accent-ice text-content-text-inverse","ice-outline":"border-border-accent-ice text-content-accent-ice",gray:"border-border-transparent bg-bg-accent-gray text-content-text-inverse","gray-outline":"border-border-accent-gray text-content-accent-gray",violet:"border-border-transparent bg-bg-accent-violet text-content-text-inverse","violet-outline":"border-border-accent-violet text-content-accent-violet"},size:{small:"h-[34px] px-4 py-2 text-xs",medium:"h-9 px-4 py-2 text-sm",large:"h-10 px-4 py-2 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"medium",weight:"regular",rounded:"rectangle"}}),ot=k.forwardRef(({children:t,iconLeft:n,iconRight:r,status:o,intent:i,size:a="medium",rounded:l="rectangle",weight:u,className:d,...g},f)=>{typeof n=="string"&&(n={name:n}),typeof r=="string"&&(r={name:r});const m={small:"h-4",medium:"h-4",large:"h-5"},v=o?{status:o}:{intent:i};return c.jsxs("span",{ref:f,className:F(gr({...v,size:a,rounded:l,weight:u,className:d})),...g,children:[n&&c.jsx(N,{iconName:n.name,stroke:n.stroke,className:m[a||"medium"]}),t,r&&c.jsx(N,{iconName:r.name,stroke:r.stroke,className:m[a||"medium"]})]})});ot.displayName="Badge";const mr=ot,xe=({className:t})=>c.jsx(N,{iconName:"IconLoader2",className:`${t} animate-spin`}),Ie="flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",pr=M(Ie,{variants:{intent:{primary:["bg-button-primary-background-enabled","text-button-primary-content-enabled","border-button-primary-border-enabled","lg:hover:bg-button-primary-background-hover","lg:hover:text-button-primary-content-hover","lg:hover:border-button-primary-border-hover","lg:active:bg-button-primary-background-pressed","lg:active:text-button-primary-content-pressed","lg:active:border-button-primary-border-pressed"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed"],tertiary:["bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled","border-button-tertiary-border-enabled","lg:hover:bg-button-tertiary-background-hover","lg:hover:text-button-tertiary-content-hover","lg:hover:border-button-tertiary-border-hover","lg:active:bg-button-tertiary-background-pressed","lg:active:text-button-tertiary-content-pressed","lg:active:border-button-tertiary-border-pressed"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),hr=M(`${Ie} cursor-default`,{variants:{intent:{primary:["border-button-primary-border-pressed","bg-button-primary-background-pressed","text-button-primary-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],tertiary:["border-button-tertiary-border-enabled","bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),vr=M(Ie,{variants:{intent:{primary:["border-button-primary-border-disabled","bg-button-primary-background-disabled","text-button-primary-content-disabled"],secondary:["border-button-secondary-border-disabled","bg-button-secondary-background-disabled","text-button-secondary-content-disabled"],tertiary:["border-button-tertiary-border-disabled","bg-button-tertiary-background-disabled","text-button-tertiary-content-disabled"],ghost:["border-button-ghost-border-disabled","bg-button-ghost-background-disabled","text-button-ghost-content-disabled"],outline:["border-button-outline-border-disabled","bg-button-outline-background-disabled","text-button-outline-content-disabled"],destructive:["border-button-destructive-border-disabled","bg-button-destructive-background-disabled","text-button-destructive-content-disabled"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),at=k.forwardRef(({className:t,intent:n,size:r,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:u,disabled:d,...g},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const m={small:"h-4",medium:"h-5",large:"h-5"};return c.jsx("button",{ref:f,className:F(u?hr({intent:n,weight:o,size:r,className:t}):d?vr({intent:n,weight:o,size:r,className:t}):pr({intent:n,weight:o,size:r,className:t})),disabled:d||u,...g,children:u?c.jsx(xe,{className:m[r||"medium"]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(N,{iconName:a.name,stroke:a.stroke,className:m[r||"medium"]}),i,l&&c.jsx(N,{iconName:l.name,stroke:l.stroke,className:m[r||"medium"]})]})})});at.displayName="Button";const xr=at,Ne="flex items-center justify-center transition-colors relative border !border-xs",yr=M(Ne,{variants:{intent:{fill:["bg-button-icon-fill-bg-enabled","text-button-icon-fill-content-enabled","border-button-icon-fill-border-enabled","lg:hover:bg-button-icon-fill-bg-hover","lg:hover:text-button-icon-fill-content-hover","lg:hover:border-button-icon-fill-border-hover","lg:active:bg-button-icon-fill-bg-pressed","lg:active:text-button-icon-fill-content-pressed","lg:active:border-button-icon-fill-border-pressed"],outline:["bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled","border-button-icon-outline-border-enabled","lg:hover:bg-button-icon-outline-bg-hover","lg:hover:text-button-icon-outline-content-hover","lg:hover:border-button-icon-outline-border-hover","lg:active:bg-button-icon-outline-bg-pressed","lg:active:text-button-icon-outline-content-pressed","lg:active:border-button-icon-outline-border-pressed"],ghost:["bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled","border-button-icon-ghost-border-enabled","lg:hover:bg-button-icon-ghost-bg-hover","lg:hover:text-button-icon-ghost-content-hover","lg:hover:border-button-icon-ghost-border-hover","lg:active:bg-button-icon-ghost-bg-pressed","lg:active:text-button-icon-ghost-content-pressed","lg:active:border-button-icon-ghost-border-pressed"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),wr=M(Ne,{variants:{intent:{fill:["border-button-icon-fill-border-pressed","bg-button-icon-fill-bg-pressed","text-button-icon-fill-content-pressed"],outline:["border-button-icon-outline-border-enabled","bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled"],ghost:["border-button-icon-ghost-border-enabled","bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),kr=M(Ne,{variants:{intent:{fill:["border-button-icon-fill-border-disabled","bg-button-icon-fill-bg-disabled","text-button-icon-fill-content-disabled"],outline:["border-button-icon-outline-border-disabled","bg-button-icon-outline-bg-disabled","text-button-icon-outline-content-disabled"],ghost:["border-button-icon-ghost-border-disabled","bg-button-icon-ghost-bg-disabled","text-button-icon-ghost-content-disabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),lt=k.forwardRef(({iconName:t,className:n,intent:r="fill",size:o="medium",rounded:i,disabled:a,isLoading:l,notification:u,...d},g)=>{typeof t=="string"&&(t={name:t});const f={small:"h-5",medium:"h-6",large:"h-6"};return c.jsxs("button",{ref:g,className:F(l?wr({intent:r,size:o,rounded:i,className:n}):a?kr({intent:r,size:o,rounded:i,className:n}):yr({intent:r,size:o,rounded:i,className:n})),disabled:a||l,...d,children:[u&&!l&&c.jsx(N,{iconName:"IconCircleFilled",className:`absolute ${i==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${r==="fill"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),l?c.jsx(xe,{className:f[o||"medium"]}):c.jsx(c.Fragment,{children:t&&c.jsx(N,{iconName:t.name,stroke:t.stroke,className:f[o||"medium"]})})]})});lt.displayName="ButtonIcon";const st=lt,Oe="flex items-center justify-center gap-2 !border-b-xs transition-colors py-1",Sr=M(Oe,{variants:{intent:{primary:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:border-button-link-border-hover","lg:hover:text-button-link-content-hover","lg:active:border-button-link-border-pressed","lg:active:text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),jr=M(`${Oe} cursor-default`,{variants:{intent:{primary:["border-b border-button-link-border-enabled","text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),Cr=M(Oe,{variants:{intent:{primary:["border-b border-button-link-border-disabled","text-button-link-content-disabled"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),it=k.forwardRef(({className:t,intent:n,size:r,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:u,disabled:d,...g},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const m={small:"h-5",medium:"h-5",large:"h-6"};return c.jsx("button",{ref:f,className:F(u?jr({intent:n,weight:o,size:r,className:t}):d?Cr({intent:n,weight:o,size:r,className:t}):Sr({intent:n,weight:o,size:r,className:t})),disabled:d||u,...g,children:u?c.jsx(xe,{className:m[r||"medium"]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(N,{iconName:a.name,stroke:a.stroke,className:m[r||"medium"]}),i,l&&c.jsx(N,{iconName:l.name,stroke:l.stroke,className:m[r||"medium"]})]})})});it.displayName="ButtonLink";const Er=it,Rr=M("flex flex-col gap-3 p-3 rounded-lg",{variants:{intent:{default:"text-content-primary bg-bg-white",outline:"!border-xs border-solid border-border-utility-discovery bg-bg-white text-content-text-default"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),ct=k.forwardRef(({className:t,intent:n,shadow:r,children:o,...i},a)=>c.jsx("div",{ref:a,className:F(Rr({intent:n,shadow:r,className:t})),...i,children:o}));ct.displayName="Card";const _r=ct,Tr=M("transition-colors",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),W=({as:t="span",intent:n,className:r,weight:o,...i})=>{const a=t;return c.jsx(a,{className:F(Tr({intent:n,weight:o,className:r})),...i})},Pr=k.forwardRef(({label:t,className:n,helperText:r,error:o,touched:i,...a},l)=>c.jsxs("div",{className:F("flex flex-col gap-3",n),children:[c.jsxs("div",{className:"flex flex-row items-center gap-3",children:[c.jsx("input",{type:"checkbox",className:L("checked:border-2 checked:ring-offset-transparent h-6 w-6 rounded-sm transition-colors duration-100 checked:text-bg-bolder-pressed focus:outline-border-bolder"),ref:l,...a}),t&&c.jsx("label",{htmlFor:a.id,children:c.jsx(W,{intent:"label-lg",weight:"semibold",className:"text-content-text-subtle",children:t})})]}),r&&c.jsx(W,{intent:"label-md",className:"text-content-text-subtle",children:r}),o&&i&&c.jsx(W,{intent:"label-md",className:"text-content-utility-danger-bolder",children:o})]})),dt=({ref:t,handler:n})=>{k.useEffect(()=>{const r=o=>{t.current&&!t.current.contains(o.target)&&n()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[t,n])},ut=k.forwardRef(({label:t,iconName:n,className:r,helperText:o,error:i,touched:a,options:l,placeholder:u="Select an option",...d},g)=>{const[f,m]=k.useState(!1),[v,A]=k.useState(null),[B,E]=k.useState(!1),T=y=>{var $;($=d.onChange)==null||$.call(d,y.value),A(y),m(!1)},O=k.useRef(null);return dt({ref:O,handler:()=>m(!1)}),c.jsxs("div",{ref:g,className:F("flex flex-col gap-3",r),children:[t&&c.jsx("label",{htmlFor:d.id,children:c.jsx(W,{intent:"label-lg",weight:"semibold",children:t})}),c.jsxs("div",{className:"relative w-full",onMouseDown:()=>E(!0),onMouseUp:()=>E(!1),children:[n&&c.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:c.jsx(N,{iconName:n,size:16})}),c.jsxs("div",{ref:O,className:L("flex w-full cursor-pointer items-center justify-between gap-2 rounded-sm border-xs border-border-subtlest p-3 text-left transition-colors placeholder:text-base placeholder:text-content-text-subtlest focus:outline-1 lg:hover:bg-bg-subtle-hover",{"border-border-accent-violet":f,"focus:outline-border-accent-violet lg:hover:border-border-accent-violet":!i,"border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":n}),...d,onClick:()=>m(!f),onBlur:()=>{setTimeout(()=>{B||m(!1)},0)},children:[c.jsx(W,{intent:"label-lg",className:L("flex-1",{"text-content-text-subtlest":!v}),children:(v==null?void 0:v.label)||u}),c.jsx(N,{iconName:f?"IconChevronUp":"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),c.jsx("div",{className:L("absolute left-0 z-10 mt-2 max-h-60 w-full origin-top transform overflow-y-auto rounded-sm border-xs border-border-utility-discovery bg-bg-white p-1 shadow-xs transition-all",{"invisible scale-95 opacity-0":!f,"visible scale-100 opacity-100":f}),children:l==null?void 0:l.map(y=>c.jsxs("button",{type:"button",className:"hover:text-content-text-primary relative w-full rounded-sm p-2 text-left text-content-text-subtle lg:hover:bg-bg-subtle-hover",onClick:()=>T(y),children:[c.jsx(W,{intent:"label-lg",weight:"semibold",children:y.label}),v===y&&c.jsx(N,{iconName:"IconCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2"})]},y.value))})]}),i&&a?c.jsx(W,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):c.jsx(W,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})});ut.displayName="DropdownSelect";const bt=k.forwardRef(({label:t,iconName:n,className:r,helperText:o,error:i,touched:a,type:l="text",...u},d)=>{typeof n=="string"&&(n={name:n});const[g,f]=k.useState(!1);return c.jsxs("div",{className:F("flex flex-col gap-3",r),children:[t&&c.jsx("label",{htmlFor:u.id,children:c.jsx(W,{intent:"label-lg",weight:"semibold",children:t})}),c.jsxs("div",{className:"relative w-full",children:[n&&c.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:typeof n=="object"?c.jsx(N,{iconName:n.name,stroke:n.stroke,size:16}):c.jsx(N,{iconName:n})}),i&&a&&l!=="password"&&c.jsx(N,{iconName:"IconAlertCircle",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-danger-bolder"}),a&&!i&&l!=="password"&&c.jsx(N,{iconName:"IconCircleCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-success"}),l==="password"&&c.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 transition-colors lg:hover:bg-bg-subtle-hover",onClick:()=>f(!g),children:c.jsx(N,{iconName:g?"IconEyeOff":"IconEye",size:16})}),c.jsx("input",{ref:d,className:L("flex w-full items-center gap-2 rounded-sm border-xs border-border-subtlest p-3 pr-9 outline-offset-2 transition-colors focus:border-xs focus:border-border-accent-violet focus:outline-2 focus:outline-border-accent-violet focus:ring-0 active:border-xs lg:hover:border-border-accent-violet",{"border-border-utility-danger focus:border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":n}),type:l==="password"?g?"text":"password":l,...u})]}),i&&a?c.jsx(W,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):c.jsx(W,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})});bt.displayName="Input";const Ir=({className:t,children:n,isOpen:r,setIsOpen:o})=>{const[i,a]=k.useState(r);k.useEffect(()=>{let d;return r?a(!0):d=setTimeout(()=>a(!1),1e3),()=>clearTimeout(d)},[r]),k.useEffect(()=>{const d=g=>{g.key==="Escape"&&o(!1)};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[o]);const l=window.innerWidth-document.body.offsetWidth;k.useEffect(()=>{r?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${l}px`):(document.body.style.overflow="unset",document.body.style.paddingRight="0px")},[r,l]);const u=d=>{d.target===d.currentTarget&&o(!1)};return c.jsx("div",{id:"overlay",onClick:u,className:L("fixed inset-0 z-[999] flex items-end justify-center transition-colors md:items-center",{"visible bg-surface-neutral-primary-inverse/50":r,invisible:!r}),tabIndex:-1,children:c.jsxs("div",{onClick:d=>d.stopPropagation(),className:L(`${t} relative mx-2 my-2 w-full rounded-lg bg-bg-white p-3 shadow-sm transition-all md:w-fit`,{"translate-y-0 opacity-100 md:scale-100":r,"translate-y-2 opacity-0 md:translate-y-0 md:scale-95":!r}),children:[c.jsx(st,{onClick:()=>o(!1),intent:"ghost",rounded:"full",iconName:"IconX",className:"absolute right-2 top-2"}),i&&n]})})},Nr={top:{placementStyles:"bottom-full left-1/2 -translate-x-1/2 mb-2"},"top-right":{placementStyles:"bottom-full left-0 mb-2"},"top-right-corner":{placementStyles:"bottom-full left-full mb-2"},"top-left":{placementStyles:"bottom-full right-0 mb-2"},"top-left-corner":{placementStyles:"bottom-full right-full mb-2"},bottom:{placementStyles:"top-full left-1/2 -translate-x-1/2 mt-2"},"bottom-right":{placementStyles:"top-full left-0 mt-2"},"bottom-right-corner":{placementStyles:"top-full left-full mt-2"},"bottom-left":{placementStyles:"top-full right-0 mt-2"},"bottom-left-corner":{placementStyles:"top-full right-full mt-2"},left:{placementStyles:"right-full top-1/2 -translate-y-1/2 mr-2"},right:{placementStyles:"left-full top-1/2 -translate-y-1/2 ml-2"}},Or=({children:t,placement:n="bottom-left",closePopover:r,isOpen:o})=>{const{placementStyles:i}=Nr[n];return c.jsx("div",{className:`absolute z-[99999] flex w-fit min-w-32 flex-col gap-2 rounded-lg bg-bg-white p-4 shadow-2xl transition-all ${i} ${o?"visible scale-100 opacity-100":"invisible scale-95 opacity-0"}`,onClick:r,children:t||c.jsx("div",{children:"Your placeholder here"})})},Ar=({children:t,trigger:n,open:r=!1,placement:o="bottom-left",closeOnAction:i=!1})=>{const[a,l]=k.useState(r),u=k.useRef(null),d=k.useRef(null);k.useEffect(()=>{l(r)},[r]),k.useEffect(()=>{const m=v=>{d.current&&!d.current.contains(v.target)&&u.current&&!u.current.contains(v.target)&&l(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[u,d,l]);const g=m=>{m.stopPropagation(),l(v=>!v)},f=k.cloneElement(n,{onClick:g,ref:d});return c.jsxs("div",{className:"relative",children:[f,c.jsx("div",{ref:u,children:c.jsx(Or,{placement:o,closePopover:i?()=>l(!1):void 0,isOpen:a,children:t})})]})},ft=M("transition-all ease-out duration-500 relative overflow-hidden w-full",{variants:{intent:{primary:"bg-bg-brand",green:"bg-bg-accent-green",blue:"bg-bg-accent-blue",violet:"bg-bg-accent-violet",mustard:"bg-bg-accent-mustard",lime:"bg-bg-accent-lime",marine:"bg-bg-accent-marine",ice:"bg-bg-accent-ice",gray:"bg-bg-accent-gray",fuchsia:"bg-bg-accent-fuchsia"},size:{small:"h-3",medium:"h-4",large:"h-5"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary",size:"medium",rounded:"full"}}),zr=({progress:t,className:n,intent:r="primary",size:o="medium",rounded:i="full",...a})=>{const l={small:"text-2xs",medium:"text-sm",large:"text-base"};return c.jsx("div",{className:F(ft({size:o,rounded:i,className:n}),"relative bg-bg-accent-gray-subtle-hover"),...a,children:c.jsx("div",{className:F(ft({intent:r,size:o,rounded:i})),style:{width:`${t}%`},children:c.jsxs("span",{className:`absolute -right-2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-content-text-inverse ${l[o||"medium"]}`,children:[t,"%"]})})})},Mr="invisible absolute z-50 scale-95 whitespace-nowrap bg-bg-bolder px-3 py-1 text-content-text-inverse opacity-0 transition-all duration-200 ease-in-out group-hover:visible group-hover:scale-100 group-hover:opacity-100",Vr="group relative",Fr=M(Mr,{variants:{shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"},placement:{top:"bottom-full left-1/2 mb-1.5 -translate-x-1/2",bottom:"left-1/2 top-full mt-1.5 -translate-x-1/2",left:"right-full top-1/2 mr-1.5 -translate-y-1/2",right:"left-full top-1/2 ml-1.5 -translate-y-1/2"},delay:{0:"group-hover:delay-0",75:"group-hover:delay-75",100:"group-hover:delay-100",150:"group-hover:delay-150",200:"group-hover:delay-200",300:"group-hover:delay-300",500:"group-hover:delay-500"},closeDelay:{0:"delay-0",75:"delay-75",100:"delay-100",150:"delay-150",200:"delay-200",300:"delay-300",500:"delay-500"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{placement:"top",shadow:"none",rounded:"full",delay:0,closeDelay:200}}),gt=k.forwardRef(({placement:t,shadow:n,rounded:r,children:o,content:i,className:a,delay:l,closeDelay:u,...d},g)=>c.jsxs("div",{className:F(Vr),children:[o,c.jsx("span",{ref:g,className:F(Fr({placement:t,shadow:n,rounded:r,className:a,delay:l,closeDelay:u})),...d,children:i})]}));gt.displayName="Tooltip";const Br=gt;_.Avatar=At,_.Badge=mr,_.Button=xr,_.ButtonIcon=st,_.ButtonLink=Er,_.Card=_r,_.Checkbox=Pr,_.DropdownSelect=ut,_.IconComponent=N,_.Input=bt,_.Modal=Ir,_.Popover=Ar,_.ProgressBar=zr,_.Spinner=xe,_.Text=W,_.Tooltip=Br,_.useOutsideClick=dt,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
30
|
+
<%s key={someKey} {...props} />`,Ge,te,bn,te),_t[te+Ge]=!0}}return e===o?ln(I):an(I),I}}function sn(e,s,b){return Tt(e,s,b,!0)}function cn(e,s,b){return Tt(e,s,b,!1)}var dn=cn,un=sn;ie.Fragment=o,ie.jsx=dn,ie.jsxs=un}()),ie}process.env.NODE_ENV==="production"?_e.exports=Nt():_e.exports=Ot();var c=_e.exports;const At=k.forwardRef(({rounded:t=!0,...n},r)=>{const o=t?"rounded-full":"rounded-sm";if(!n.src)throw new Error("The src prop is required");return c.jsx("img",{...n,ref:r,className:`h-full w-full object-cover ${o}`})});function Je(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=Je(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function L(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=Je(t))&&(o&&(o+=" "),o+=n);return o}const Te="-";function zt(t){const n=Vt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function i(l){const u=l.split(Te);return u[0]===""&&u.length!==1&&u.shift(),Ke(u,n)||Mt(l)}function a(l,u){const d=r[l]||[];return u&&o[l]?[...d,...o[l]]:d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Ke(t,n){var l;if(t.length===0)return n.classGroupId;const r=t[0],o=n.nextPart.get(r),i=o?Ke(t.slice(1),o):void 0;if(i)return i;if(n.validators.length===0)return;const a=t.join(Te);return(l=n.validators.find(({validator:u})=>u(a)))==null?void 0:l.classGroupId}const Xe=/^\[(.+)\]$/;function Mt(t){if(Xe.test(t)){const n=Xe.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}}function Vt(t){const{theme:n,prefix:r}=t,o={nextPart:new Map,validators:[]};return Bt(Object.entries(t.classGroups),r).forEach(([a,l])=>{Pe(l,o,a,n)}),o}function Pe(t,n,r,o){t.forEach(i=>{if(typeof i=="string"){const a=i===""?n:He(n,i);a.classGroupId=r;return}if(typeof i=="function"){if(Ft(i)){Pe(i(o),n,r,o);return}n.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,l])=>{Pe(l,He(n,a),r,o)})})}function He(t,n){let r=t;return n.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ft(t){return t.isThemeGetter}function Bt(t,n){return n?t.map(([r,o])=>{const i=o.map(a=>typeof a=="string"?n+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,u])=>[n+l,u])):a);return[r,i]}):t}function Dt(t){if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;function i(a,l){r.set(a,l),n++,n>t&&(n=0,o=r,r=new Map)}return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return i(a,l),l},set(a,l){r.has(a)?r.set(a,l):i(a,l)}}}const Ze="!";function Wt(t){const n=t.separator,r=n.length===1,o=n[0],i=n.length;return function(l){const u=[];let d=0,g=0,f;for(let E=0;E<l.length;E++){let T=l[E];if(d===0){if(T===o&&(r||l.slice(E,E+i)===n)){u.push(l.slice(g,E)),g=E+i;continue}if(T==="/"){f=E;continue}}T==="["?d++:T==="]"&&d--}const m=u.length===0?l:l.substring(g),v=m.startsWith(Ze),A=v?m.substring(1):m,D=f&&f>g?f-g:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:A,maybePostfixModifierPosition:D}}}function Gt(t){if(t.length<=1)return t;const n=[];let r=[];return t.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n}function Ut(t){return{cache:Dt(t.cacheSize),splitModifiers:Wt(t),...zt(t)}}const Yt=/\s+/;function Lt(t,n){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:i}=n,a=new Set;return t.trim().split(Yt).map(l=>{const{modifiers:u,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:f}=r(l);let m=o(f?g.substring(0,f):g),v=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:l};if(m=o(g),!m)return{isTailwindClass:!1,originalClassName:l};v=!1}const A=Gt(u).join(":");return{isTailwindClass:!0,modifierId:d?A+Ze:A,classGroupId:m,originalClassName:l,hasPostfixModifier:v}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:u,classGroupId:d,hasPostfixModifier:g}=l,f=u+d;return a.has(f)?!1:(a.add(f),i(d,g).forEach(m=>a.add(u+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function Jt(){let t=0,n,r,o="";for(;t<arguments.length;)(n=arguments[t++])&&(r=Qe(n))&&(o&&(o+=" "),o+=r);return o}function Qe(t){if(typeof t=="string")return t;let n,r="";for(let o=0;o<t.length;o++)t[o]&&(n=Qe(t[o]))&&(r&&(r+=" "),r+=n);return r}function Kt(t,...n){let r,o,i,a=l;function l(d){const g=n.reduce((f,m)=>m(f),t());return r=Ut(g),o=r.cache.get,i=r.cache.set,a=u,u(d)}function u(d){const g=o(d);if(g)return g;const f=Lt(d,r);return i(d,f),f}return function(){return a(Jt.apply(null,arguments))}}function R(t){const n=r=>r[t]||[];return n.isThemeGetter=!0,n}const $e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xt=/^\d+\/\d+$/,Ht=new Set(["px","full","screen"]),Zt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,er=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Y(t){return Q(t)||Ht.has(t)||Xt.test(t)}function J(t){return re(t,"length",ir)}function Q(t){return!!t&&!Number.isNaN(Number(t))}function ve(t){return re(t,"number",Q)}function ce(t){return!!t&&Number.isInteger(Number(t))}function tr(t){return t.endsWith("%")&&Q(t.slice(0,-1))}function h(t){return $e.test(t)}function K(t){return Zt.test(t)}const rr=new Set(["length","size","percentage"]);function nr(t){return re(t,rr,qe)}function or(t){return re(t,"position",qe)}const ar=new Set(["image","url"]);function lr(t){return re(t,ar,dr)}function sr(t){return re(t,"",cr)}function de(){return!0}function re(t,n,r){const o=$e.exec(t);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1}function ir(t){return Qt.test(t)&&!$t.test(t)}function qe(){return!1}function cr(t){return qt.test(t)}function dr(t){return er.test(t)}function ur(){const t=R("colors"),n=R("spacing"),r=R("blur"),o=R("brightness"),i=R("borderColor"),a=R("borderRadius"),l=R("borderSpacing"),u=R("borderWidth"),d=R("contrast"),g=R("grayscale"),f=R("hueRotate"),m=R("invert"),v=R("gap"),A=R("gradientColorStops"),D=R("gradientColorStopPositions"),E=R("inset"),T=R("margin"),O=R("opacity"),y=R("padding"),$=R("saturate"),ue=R("scale"),ye=R("sepia"),we=R("skew"),ke=R("space"),Se=R("translate"),ne=()=>["auto","contain","none"],be=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",h,n],j=()=>[h,n],W=()=>["",Y,J],G=()=>["auto",Q,h],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",h],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[Q,ve],ee=()=>[Q,h];return{cacheSize:500,separator:":",theme:{colors:[de],spacing:[Y,J],blur:["none","",K,h],brightness:Z(),borderColor:[t],borderRadius:["none","","full",K,h],borderSpacing:j(),borderWidth:W(),contrast:Z(),grayscale:H(),hueRotate:ee(),invert:H(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[tr,J],inset:fe(),margin:fe(),opacity:Z(),padding:j(),saturate:Z(),scale:Z(),sepia:H(),skew:ee(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[K]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),h]}],overflow:[{overflow:be()}],"overflow-x":[{"overflow-x":be()}],"overflow-y":[{"overflow-y":be()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ce,h]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ce,h]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:["full",ce,h]},h]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ce,h]},h]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,n]}],"min-w":[{"min-w":[h,n,"min","max","fit"]}],"max-w":[{"max-w":[h,n,"none","full","min","max","fit","prose",{screen:[K]},K]}],h:[{h:[h,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,n,"auto","min","max","fit"]}],"font-size":[{text:["base",K,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ve]}],"font-family":[{font:[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",Q,ve]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,J]}],"underline-offset":[{"underline-offset":["auto",Y,h]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lr]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[Y,h]}],"outline-w":[{outline:[Y,J]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[Y,J]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",K,sr]}],"shadow-color":[{shadow:[de]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...ge(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ge()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",K,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[$]}],sepia:[{sepia:[ye]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ue]}],"scale-x":[{"scale-x":[ue]}],"scale-y":[{"scale-y":[ue]}],rotate:[{rotate:[ce,h]}],"translate-x":[{"translate-x":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-x":[{"skew-x":[we]}],"skew-y":[{"skew-y":[we]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Y,J,ve]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const br=Kt(ur),F=(...t)=>br(L(t));function et(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=et(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function fr(){for(var t,n,r=0,o="";r<arguments.length;)(t=arguments[r++])&&(n=et(t))&&(o&&(o+=" "),o+=n);return o}const tt=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,rt=fr,M=(t,n)=>r=>{var o;if((n==null?void 0:n.variants)==null)return rt(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=n,l=Object.keys(i).map(g=>{const f=r==null?void 0:r[g],m=a==null?void 0:a[g];if(f===null)return null;const v=tt(f)||tt(m);return i[g][v]}),u=r&&Object.entries(r).reduce((g,f)=>{let[m,v]=f;return v===void 0||(g[m]=v),g},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((g,f)=>{let{class:m,className:v,...A}=f;return Object.entries(A).every(D=>{let[E,T]=D;return Array.isArray(T)?T.includes({...a,...u}[E]):{...a,...u}[E]===T})?[...g,m,v]:g},[]);return rt(t,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},nt=k.forwardRef(({iconName:t,stroke:n=1,...r},o)=>{if(Ue[t]){const i=Ue[t];return c.jsx(i,{ref:o,stroke:n,...r})}else return console.error(`Icon ${t} not found`),null});nt.displayName="IconComponent";const N=nt,gr=M("!border-sm flex w-fit items-center justify-center gap-2 rounded-sm transition-colors",{variants:{status:{notStarted:"border-border-transparent bg-bg-accent-ice-subtle text-content-text-default","notStarted-outline":"border-border-accent-ice text-content-accent-ice",locked:"border-border-transparent bg-bg-disabled text-content-text-subtle","locked-outline":"border-border-disabled text-content-text-subtlest",available:"border-border-transparent bg-bg-utility-discovery-bolder text-content-text-inverse","available-outline":"border-border-utility-discovery text-content-utility-discovery",inProgress:"border-border-transparent bg-bg-accent-blue-subtle text-content-text-default","inProgress-outline":"border-border-accent-blue text-content-accent-blue",completed:"border-border-transparent bg-bg-utility-success-bolder text-content-text-default","completed-outline":"border-border-utility-success text-content-utility-success",viewed:"border-border-transparent bg-bg-utility-informative-bolder text-content-text-inverse","viewed-outline":"border-border-utility-informative text-content-utility-informative"},intent:{neutral:"border-border-transparent bg-bg-bolder text-content-text-inverse","neutral-outline":"border-border-bolder text-content-text-default",blue:"border-border-transparent bg-bg-accent-blue text-content-text-inverse","blue-outline":"border-border-accent-blue text-content-accent-blue",mustard:"border-border-transparent bg-bg-accent-mustard text-content-text-default","mustard-outline":"border-border-accent-mustard text-content-accent-mustard",green:"border-border-transparent bg-bg-accent-green text-content-text-inverse","green-outline":"border-border-accent-green text-content-accent-green",lime:"border-border-transparent bg-bg-accent-lime text-content-text-default","lime-outline":"border-border-accent-lime text-content-accent-lime",fuchsia:"border-border-transparent bg-bg-accent-fuchsia text-content-text-inverse","fuchsia-outline":"border-border-accent-fuchsia text-content-accent-fuchsia",marine:"border-border-transparent bg-bg-accent-marine text-content-text-inverse","marine-outline":"border-border-accent-marine text-content-accent-marine",ice:"border-border-transparent bg-bg-accent-ice text-content-text-inverse","ice-outline":"border-border-accent-ice text-content-accent-ice",gray:"border-border-transparent bg-bg-accent-gray text-content-text-inverse","gray-outline":"border-border-accent-gray text-content-accent-gray",violet:"border-border-transparent bg-bg-accent-violet text-content-text-inverse","violet-outline":"border-border-accent-violet text-content-accent-violet"},size:{small:"h-[34px] px-4 py-2 text-xs",medium:"h-9 px-4 py-2 text-sm",large:"h-10 px-4 py-2 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"medium",weight:"regular",rounded:"rectangle"}}),ot=k.forwardRef(({children:t,iconLeft:n,iconRight:r,status:o,intent:i,size:a="medium",rounded:l="rectangle",weight:u,className:d,...g},f)=>{typeof n=="string"&&(n={name:n}),typeof r=="string"&&(r={name:r});const m={small:"h-4",medium:"h-4",large:"h-5"},v=o?{status:o}:{intent:i};return c.jsxs("span",{ref:f,className:F(gr({...v,size:a,rounded:l,weight:u,className:d})),...g,children:[n&&c.jsx(N,{iconName:n.name,stroke:n.stroke,className:m[a||"medium"]}),t,r&&c.jsx(N,{iconName:r.name,stroke:r.stroke,className:m[a||"medium"]})]})});ot.displayName="Badge";const mr=ot,xe=({className:t})=>c.jsx(N,{iconName:"IconLoader2",className:`${t} animate-spin`}),Ie="flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",pr=M(Ie,{variants:{intent:{primary:["bg-button-primary-background-enabled","text-button-primary-content-enabled","border-button-primary-border-enabled","lg:hover:bg-button-primary-background-hover","lg:hover:text-button-primary-content-hover","lg:hover:border-button-primary-border-hover","lg:active:bg-button-primary-background-pressed","lg:active:text-button-primary-content-pressed","lg:active:border-button-primary-border-pressed"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed"],tertiary:["bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled","border-button-tertiary-border-enabled","lg:hover:bg-button-tertiary-background-hover","lg:hover:text-button-tertiary-content-hover","lg:hover:border-button-tertiary-border-hover","lg:active:bg-button-tertiary-background-pressed","lg:active:text-button-tertiary-content-pressed","lg:active:border-button-tertiary-border-pressed"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),hr=M(`${Ie} cursor-default`,{variants:{intent:{primary:["border-button-primary-border-pressed","bg-button-primary-background-pressed","text-button-primary-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],tertiary:["border-button-tertiary-border-enabled","bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),vr=M(Ie,{variants:{intent:{primary:["border-button-primary-border-disabled","bg-button-primary-background-disabled","text-button-primary-content-disabled"],secondary:["border-button-secondary-border-disabled","bg-button-secondary-background-disabled","text-button-secondary-content-disabled"],tertiary:["border-button-tertiary-border-disabled","bg-button-tertiary-background-disabled","text-button-tertiary-content-disabled"],ghost:["border-button-ghost-border-disabled","bg-button-ghost-background-disabled","text-button-ghost-content-disabled"],outline:["border-button-outline-border-disabled","bg-button-outline-background-disabled","text-button-outline-content-disabled"],destructive:["border-button-destructive-border-disabled","bg-button-destructive-background-disabled","text-button-destructive-content-disabled"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),at=k.forwardRef(({className:t,intent:n,size:r,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:u,disabled:d,...g},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const m={small:"h-4",medium:"h-5",large:"h-5"};return c.jsx("button",{ref:f,className:F(u?hr({intent:n,weight:o,size:r,className:t}):d?vr({intent:n,weight:o,size:r,className:t}):pr({intent:n,weight:o,size:r,className:t})),disabled:d||u,...g,children:u?c.jsx(xe,{className:m[r||"medium"]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(N,{iconName:a.name,stroke:a.stroke,className:m[r||"medium"]}),i,l&&c.jsx(N,{iconName:l.name,stroke:l.stroke,className:m[r||"medium"]})]})})});at.displayName="Button";const xr=at,Ne="flex items-center justify-center transition-colors relative border !border-xs",yr=M(Ne,{variants:{intent:{fill:["bg-button-icon-fill-bg-enabled","text-button-icon-fill-content-enabled","border-button-icon-fill-border-enabled","lg:hover:bg-button-icon-fill-bg-hover","lg:hover:text-button-icon-fill-content-hover","lg:hover:border-button-icon-fill-border-hover","lg:active:bg-button-icon-fill-bg-pressed","lg:active:text-button-icon-fill-content-pressed","lg:active:border-button-icon-fill-border-pressed"],outline:["bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled","border-button-icon-outline-border-enabled","lg:hover:bg-button-icon-outline-bg-hover","lg:hover:text-button-icon-outline-content-hover","lg:hover:border-button-icon-outline-border-hover","lg:active:bg-button-icon-outline-bg-pressed","lg:active:text-button-icon-outline-content-pressed","lg:active:border-button-icon-outline-border-pressed"],ghost:["bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled","border-button-icon-ghost-border-enabled","lg:hover:bg-button-icon-ghost-bg-hover","lg:hover:text-button-icon-ghost-content-hover","lg:hover:border-button-icon-ghost-border-hover","lg:active:bg-button-icon-ghost-bg-pressed","lg:active:text-button-icon-ghost-content-pressed","lg:active:border-button-icon-ghost-border-pressed"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),wr=M(Ne,{variants:{intent:{fill:["border-button-icon-fill-border-pressed","bg-button-icon-fill-bg-pressed","text-button-icon-fill-content-pressed"],outline:["border-button-icon-outline-border-enabled","bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled"],ghost:["border-button-icon-ghost-border-enabled","bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),kr=M(Ne,{variants:{intent:{fill:["border-button-icon-fill-border-disabled","bg-button-icon-fill-bg-disabled","text-button-icon-fill-content-disabled"],outline:["border-button-icon-outline-border-disabled","bg-button-icon-outline-bg-disabled","text-button-icon-outline-content-disabled"],ghost:["border-button-icon-ghost-border-disabled","bg-button-icon-ghost-bg-disabled","text-button-icon-ghost-content-disabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),lt=k.forwardRef(({iconName:t,className:n,intent:r="fill",size:o="medium",rounded:i,disabled:a,isLoading:l,notification:u,...d},g)=>{typeof t=="string"&&(t={name:t});const f={small:"h-5",medium:"h-6",large:"h-6"};return c.jsxs("button",{ref:g,className:F(l?wr({intent:r,size:o,rounded:i,className:n}):a?kr({intent:r,size:o,rounded:i,className:n}):yr({intent:r,size:o,rounded:i,className:n})),disabled:a||l,...d,children:[u&&!l&&c.jsx(N,{iconName:"IconCircleFilled",className:`absolute ${i==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${r==="fill"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),l?c.jsx(xe,{className:f[o||"medium"]}):c.jsx(c.Fragment,{children:t&&c.jsx(N,{iconName:t.name,stroke:t.stroke,className:f[o||"medium"]})})]})});lt.displayName="ButtonIcon";const st=lt,Oe="flex items-center justify-center gap-2 !border-b-xs transition-colors py-1",Sr=M(Oe,{variants:{intent:{primary:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:border-button-link-border-hover","lg:hover:text-button-link-content-hover","lg:active:border-button-link-border-pressed","lg:active:text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),jr=M(`${Oe} cursor-default`,{variants:{intent:{primary:["border-b border-button-link-border-enabled","text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),Cr=M(Oe,{variants:{intent:{primary:["border-b border-button-link-border-disabled","text-button-link-content-disabled"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),it=k.forwardRef(({className:t,intent:n,size:r,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:u,disabled:d,...g},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const m={small:"h-5",medium:"h-5",large:"h-6"};return c.jsx("button",{ref:f,className:F(u?jr({intent:n,weight:o,size:r,className:t}):d?Cr({intent:n,weight:o,size:r,className:t}):Sr({intent:n,weight:o,size:r,className:t})),disabled:d||u,...g,children:u?c.jsx(xe,{className:m[r||"medium"]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(N,{iconName:a.name,stroke:a.stroke,className:m[r||"medium"]}),i,l&&c.jsx(N,{iconName:l.name,stroke:l.stroke,className:m[r||"medium"]})]})})});it.displayName="ButtonLink";const Er=it,Rr=M("flex flex-col gap-3 p-3 rounded-lg",{variants:{intent:{default:"text-content-primary bg-bg-white",outline:"!border-xs border-solid border-border-utility-discovery bg-bg-white text-content-text-default"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),ct=k.forwardRef(({className:t,intent:n,shadow:r,children:o,...i},a)=>c.jsx("div",{ref:a,className:F(Rr({intent:n,shadow:r,className:t})),...i,children:o}));ct.displayName="Card";const _r=ct,Tr=M("transition-colors",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),B=({as:t="span",intent:n,className:r,weight:o,...i})=>{const a=t;return c.jsx(a,{className:F(Tr({intent:n,weight:o,className:r})),...i})},Pr=k.forwardRef(({label:t,className:n,helperText:r,error:o,touched:i,...a},l)=>c.jsxs("div",{className:F("flex flex-col gap-3",n),children:[c.jsxs("div",{className:"flex flex-row items-center gap-3",children:[c.jsx("input",{type:"checkbox",className:L("checked:border-2 checked:ring-offset-transparent h-6 w-6 rounded-sm transition-colors duration-100 checked:text-bg-bolder-pressed focus:outline-border-bolder"),ref:l,...a}),t&&c.jsx("label",{htmlFor:a.id,children:c.jsx(B,{intent:"label-lg",weight:"semibold",className:"text-content-text-subtle",children:t})})]}),r&&c.jsx(B,{intent:"label-md",className:"text-content-text-subtle",children:r}),o&&i&&c.jsx(B,{intent:"label-md",className:"text-content-utility-danger-bolder",children:o})]})),dt=({ref:t,handler:n})=>{k.useEffect(()=>{const r=o=>{t.current&&!t.current.contains(o.target)&&n()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[t,n])},ut=k.forwardRef(({label:t,iconName:n,className:r,helperText:o,error:i,touched:a,options:l,placeholder:u="Select an option",...d},g)=>{const[f,m]=k.useState(!1),[v,A]=k.useState(null),[D,E]=k.useState(!1),T=y=>{var $;($=d.onChange)==null||$.call(d,y.value),A(y),m(!1)},O=k.useRef(null);return dt({ref:O,handler:()=>m(!1)}),c.jsxs("div",{ref:g,className:F("flex flex-col gap-3",r),children:[t&&c.jsx("label",{htmlFor:d.id,children:c.jsx(B,{intent:"label-lg",weight:"semibold",children:t})}),c.jsxs("div",{className:"relative w-full",onMouseDown:()=>E(!0),onMouseUp:()=>E(!1),children:[n&&c.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:c.jsx(N,{iconName:n,size:16})}),c.jsxs("div",{ref:O,className:L("flex w-full cursor-pointer items-center justify-between gap-2 rounded-sm border-xs border-border-subtlest p-3 text-left transition-colors placeholder:text-base placeholder:text-content-text-subtlest focus:outline-1 lg:hover:bg-bg-subtle-hover",{"border-border-accent-violet":f,"focus:outline-border-accent-violet lg:hover:border-border-accent-violet":!i,"border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":n}),...d,onClick:()=>m(!f),onBlur:()=>{setTimeout(()=>{D||m(!1)},0)},children:[c.jsx(B,{intent:"label-lg",className:L("flex-1",{"text-content-text-subtlest":!v}),children:(v==null?void 0:v.label)||u}),c.jsx(N,{iconName:f?"IconChevronUp":"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),c.jsx("div",{className:L("absolute left-0 z-10 mt-2 max-h-60 w-full origin-top transform overflow-y-auto rounded-sm border-xs border-border-utility-discovery bg-bg-white p-1 shadow-xs transition-all",{"invisible scale-95 opacity-0":!f,"visible scale-100 opacity-100":f}),children:l==null?void 0:l.map(y=>c.jsxs("button",{type:"button",className:"hover:text-content-text-primary relative w-full rounded-sm p-2 text-left text-content-text-subtle lg:hover:bg-bg-subtle-hover",onClick:()=>T(y),children:[c.jsx(B,{intent:"label-lg",weight:"semibold",children:y.label}),v===y&&c.jsx(N,{iconName:"IconCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2"})]},y.value))})]}),i&&a?c.jsx(B,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):c.jsx(B,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})});ut.displayName="DropdownSelect";const bt=k.forwardRef(({label:t,iconName:n,className:r,helperText:o,error:i,touched:a,type:l="text",...u},d)=>{typeof n=="string"&&(n={name:n});const[g,f]=k.useState(!1);return c.jsxs("div",{className:F("flex flex-col gap-3",r),children:[t&&c.jsx("label",{htmlFor:u.id,children:c.jsx(B,{intent:"label-lg",weight:"semibold",children:t})}),c.jsxs("div",{className:"relative w-full",children:[n&&c.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:typeof n=="object"?c.jsx(N,{iconName:n.name,stroke:n.stroke,size:16}):c.jsx(N,{iconName:n})}),i&&a&&l!=="password"&&c.jsx(N,{iconName:"IconAlertCircle",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-danger-bolder"}),a&&!i&&l!=="password"&&c.jsx(N,{iconName:"IconCircleCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-success"}),l==="password"&&c.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 transition-colors lg:hover:bg-bg-subtle-hover",onClick:()=>f(!g),children:c.jsx(N,{iconName:g?"IconEyeOff":"IconEye",size:16})}),c.jsx("input",{ref:d,className:L("flex w-full items-center gap-2 rounded-sm border-xs border-border-subtlest p-3 pr-9 outline-offset-2 transition-colors focus:border-xs focus:border-border-accent-violet focus:outline-2 focus:outline-border-accent-violet focus:ring-0 active:border-xs lg:hover:border-border-accent-violet",{"border-border-utility-danger focus:border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":n}),type:l==="password"?g?"text":"password":l,...u})]}),i&&a?c.jsx(B,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):c.jsx(B,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})});bt.displayName="Input";const Ir=({className:t,children:n,isOpen:r,setIsOpen:o})=>{const[i,a]=k.useState(r);k.useEffect(()=>{let d;return r?a(!0):d=setTimeout(()=>a(!1),1e3),()=>clearTimeout(d)},[r]),k.useEffect(()=>{const d=g=>{g.key==="Escape"&&o(!1)};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[o]);const l=window.innerWidth-document.body.offsetWidth;k.useEffect(()=>{r?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${l}px`):(document.body.style.overflow="unset",document.body.style.paddingRight="0px")},[r,l]);const u=d=>{d.target===d.currentTarget&&o(!1)};return c.jsx("div",{id:"overlay",onClick:u,className:L("fixed inset-0 z-[999] flex items-end justify-center transition-colors md:items-center",{"visible bg-surface-neutral-primary-inverse/50":r,invisible:!r}),tabIndex:-1,children:c.jsxs("div",{onClick:d=>d.stopPropagation(),className:L(`${t} relative mx-2 my-2 w-full rounded-lg bg-bg-white p-3 shadow-sm transition-all md:w-fit`,{"translate-y-0 opacity-100 md:scale-100":r,"translate-y-2 opacity-0 md:translate-y-0 md:scale-95":!r}),children:[c.jsx(st,{onClick:()=>o(!1),intent:"ghost",rounded:"full",iconName:"IconX",className:"absolute right-2 top-2"}),i&&n]})})},Nr={top:{placementStyles:"bottom-full left-1/2 -translate-x-1/2 mb-2"},"top-right":{placementStyles:"bottom-full left-0 mb-2"},"top-right-corner":{placementStyles:"bottom-full left-full mb-2"},"top-left":{placementStyles:"bottom-full right-0 mb-2"},"top-left-corner":{placementStyles:"bottom-full right-full mb-2"},bottom:{placementStyles:"top-full left-1/2 -translate-x-1/2 mt-2"},"bottom-right":{placementStyles:"top-full left-0 mt-2"},"bottom-right-corner":{placementStyles:"top-full left-full mt-2"},"bottom-left":{placementStyles:"top-full right-0 mt-2"},"bottom-left-corner":{placementStyles:"top-full right-full mt-2"},left:{placementStyles:"right-full top-1/2 -translate-y-1/2 mr-2"},right:{placementStyles:"left-full top-1/2 -translate-y-1/2 ml-2"}},Or=({children:t,placement:n="bottom-left",closePopover:r,isOpen:o})=>{const{placementStyles:i}=Nr[n];return c.jsx("div",{className:`absolute z-[99999] flex w-fit min-w-32 flex-col gap-2 rounded-lg bg-bg-white p-4 shadow-2xl transition-all ${i} ${o?"visible scale-100 opacity-100":"invisible scale-95 opacity-0"}`,onClick:r,children:t||c.jsx("div",{children:"Your placeholder here"})})},Ar=({children:t,trigger:n,open:r=!1,placement:o="bottom-left",closeOnAction:i=!1})=>{const[a,l]=k.useState(r),u=k.useRef(null),d=k.useRef(null);k.useEffect(()=>{l(r)},[r]),k.useEffect(()=>{const m=v=>{d.current&&!d.current.contains(v.target)&&u.current&&!u.current.contains(v.target)&&l(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[u,d,l]);const g=m=>{m.stopPropagation(),l(v=>!v)},f=k.cloneElement(n,{onClick:g,ref:d});return c.jsxs("div",{className:"relative",children:[f,c.jsx("div",{ref:u,children:c.jsx(Or,{placement:o,closePopover:i?()=>l(!1):void 0,isOpen:a,children:t})})]})},ft=M("transition-all ease-out duration-500 relative overflow-hidden w-full",{variants:{intent:{primary:"bg-bg-brand",green:"bg-bg-accent-green",blue:"bg-bg-accent-blue",violet:"bg-bg-accent-violet",mustard:"bg-bg-accent-mustard",lime:"bg-bg-accent-lime",marine:"bg-bg-accent-marine",ice:"bg-bg-accent-ice",gray:"bg-bg-accent-gray",fuchsia:"bg-bg-accent-fuchsia"},size:{small:"h-3",medium:"h-4",large:"h-5"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary",size:"medium",rounded:"full"}}),zr=({progress:t,className:n,intent:r="primary",size:o="medium",rounded:i="full",...a})=>{const l={small:"text-2xs",medium:"text-sm",large:"text-base"};return c.jsx("div",{className:F(ft({size:o,rounded:i,className:n}),"relative bg-bg-accent-gray-subtle-hover"),...a,children:c.jsx("div",{className:F(ft({intent:r,size:o,rounded:i})),style:{width:`${t}%`},children:c.jsxs("span",{className:`absolute -right-2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-content-text-inverse ${l[o||"medium"]}`,children:[t,"%"]})})})},Mr="invisible absolute z-50 scale-95 whitespace-nowrap bg-bg-bolder px-3 py-1 text-content-text-inverse opacity-0 transition-all duration-200 ease-in-out group-hover:visible group-hover:scale-100 group-hover:opacity-100",Vr="group relative",Fr=M(Mr,{variants:{shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"},placement:{top:"bottom-full left-1/2 mb-1.5 -translate-x-1/2",bottom:"left-1/2 top-full mt-1.5 -translate-x-1/2",left:"right-full top-1/2 mr-1.5 -translate-y-1/2",right:"left-full top-1/2 ml-1.5 -translate-y-1/2"},delay:{0:"group-hover:delay-0",75:"group-hover:delay-75",100:"group-hover:delay-100",150:"group-hover:delay-150",200:"group-hover:delay-200",300:"group-hover:delay-300",500:"group-hover:delay-500"},closeDelay:{0:"delay-0",75:"delay-75",100:"delay-100",150:"delay-150",200:"delay-200",300:"delay-300",500:"delay-500"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{placement:"top",shadow:"none",rounded:"full",delay:0,closeDelay:200}}),gt=k.forwardRef(({placement:t,shadow:n,rounded:r,children:o,content:i,className:a,delay:l,closeDelay:u,...d},g)=>c.jsxs("div",{className:F(Vr),children:[o,c.jsx("span",{ref:g,className:F(Fr({placement:t,shadow:n,rounded:r,className:a,delay:l,closeDelay:u})),...d,children:c.jsx(B,{intent:"label-md",children:i})})]}));gt.displayName="Tooltip";const Br=gt;_.Avatar=At,_.Badge=mr,_.Button=xr,_.ButtonIcon=st,_.ButtonLink=Er,_.Card=_r,_.Checkbox=Pr,_.DropdownSelect=ut,_.IconComponent=N,_.Input=bt,_.Modal=Ir,_.Popover=Ar,_.ProgressBar=zr,_.Spinner=xe,_.Text=B,_.Tooltip=Br,_.useOutsideClick=dt,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|