cekat-ui 1.2.0 → 1.2.2

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 CHANGED
@@ -1,49 +1,49 @@
1
1
  import * as e from "react";
2
- import d, { forwardRef as pe, createElement as M, useId as ge, useState as be } from "react";
3
- import { createPortal as fe } from "react-dom";
4
- function J(t) {
5
- var s, r, l = "";
6
- if (typeof t == "string" || typeof t == "number") l += t;
2
+ import i, { forwardRef as ve, createElement as P, useId as ye, useState as we } from "react";
3
+ import { createPortal as Ee } from "react-dom";
4
+ function ae(t) {
5
+ var l, r, s = "";
6
+ if (typeof t == "string" || typeof t == "number") s += t;
7
7
  else if (typeof t == "object") if (Array.isArray(t)) {
8
- var i = t.length;
9
- for (s = 0; s < i; s++) t[s] && (r = J(t[s])) && (l && (l += " "), l += r);
10
- } else for (r in t) t[r] && (l && (l += " "), l += r);
11
- return l;
8
+ var n = t.length;
9
+ for (l = 0; l < n; l++) t[l] && (r = ae(t[l])) && (s && (s += " "), s += r);
10
+ } else for (r in t) t[r] && (s && (s += " "), s += r);
11
+ return s;
12
12
  }
13
- function g() {
14
- for (var t, s, r = 0, l = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (s = J(t)) && (l && (l += " "), l += s);
15
- return l;
13
+ function f() {
14
+ for (var t, l, r = 0, s = "", n = arguments.length; r < n; r++) (t = arguments[r]) && (l = ae(t)) && (s && (s += " "), s += l);
15
+ return s;
16
16
  }
17
- const H = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, F = g, b = (t, s) => (r) => {
18
- var l;
19
- if (s?.variants == null) return F(t, r?.class, r?.className);
20
- const { variants: i, defaultVariants: a } = s, c = Object.keys(i).map((o) => {
21
- const m = r?.[o], p = a?.[o];
17
+ const q = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Z = f, p = (t, l) => (r) => {
18
+ var s;
19
+ if (l?.variants == null) return Z(t, r?.class, r?.className);
20
+ const { variants: n, defaultVariants: a } = l, d = Object.keys(n).map((c) => {
21
+ const m = r?.[c], g = a?.[c];
22
22
  if (m === null) return null;
23
- const f = H(m) || H(p);
24
- return i[o][f];
25
- }), n = r && Object.entries(r).reduce((o, m) => {
26
- let [p, f] = m;
27
- return f === void 0 || (o[p] = f), o;
28
- }, {}), u = s == null || (l = s.compoundVariants) === null || l === void 0 ? void 0 : l.reduce((o, m) => {
29
- let { class: p, className: f, ...h } = m;
30
- return Object.entries(h).every((E) => {
31
- let [w, k] = E;
32
- return Array.isArray(k) ? k.includes({
23
+ const b = q(m) || q(g);
24
+ return n[c][b];
25
+ }), o = r && Object.entries(r).reduce((c, m) => {
26
+ let [g, b] = m;
27
+ return b === void 0 || (c[g] = b), c;
28
+ }, {}), u = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, m) => {
29
+ let { class: g, className: b, ...h } = m;
30
+ return Object.entries(h).every((N) => {
31
+ let [k, S] = N;
32
+ return Array.isArray(S) ? S.includes({
33
33
  ...a,
34
- ...n
35
- }[w]) : {
34
+ ...o
35
+ }[k]) : {
36
36
  ...a,
37
- ...n
38
- }[w] === k;
37
+ ...o
38
+ }[k] === S;
39
39
  }) ? [
40
- ...o,
41
- p,
42
- f
43
- ] : o;
40
+ ...c,
41
+ g,
42
+ b
43
+ ] : c;
44
44
  }, []);
45
- return F(t, c, u, r?.class, r?.className);
46
- }, he = b(
45
+ return Z(t, d, u, r?.class, r?.className);
46
+ }, Ne = p(
47
47
  [
48
48
  "inline-flex items-center justify-center font-bold",
49
49
  "transition-colors duration-150",
@@ -198,28 +198,25 @@ const H = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, F = g, b =
198
198
  iconOnly: !1
199
199
  }
200
200
  }
201
- ), xe = ({
202
- children: t,
203
- className: s,
204
- tone: r,
205
- variant: l,
206
- size: i,
207
- iconOnly: a,
208
- ...c
209
- }) => /* @__PURE__ */ d.createElement(
210
- "button",
211
- {
212
- className: g(
213
- he({ tone: r, variant: l, size: i, iconOnly: a }),
214
- s
215
- ),
216
- ...c
217
- },
218
- t
219
- ), ve = ({ children: t }) => /* @__PURE__ */ d.createElement("span", { className: "flex items-center" }, t), ye = ({ children: t }) => /* @__PURE__ */ d.createElement("span", { className: "whitespace-nowrap" }, t), Y = xe;
220
- Y.Icon = ve;
221
- Y.Text = ye;
222
- const we = b(
201
+ ), le = i.forwardRef(
202
+ ({ children: t, className: l, tone: r, variant: s, size: n, iconOnly: a, ...d }, o) => /* @__PURE__ */ i.createElement(
203
+ "button",
204
+ {
205
+ ref: o,
206
+ className: f(
207
+ Ne({ tone: r, variant: s, size: n, iconOnly: a }),
208
+ l
209
+ ),
210
+ ...d
211
+ },
212
+ t
213
+ )
214
+ );
215
+ le.displayName = "Button";
216
+ const ke = ({ children: t }) => /* @__PURE__ */ i.createElement("span", { className: "flex items-center" }, t), Se = ({ children: t }) => /* @__PURE__ */ i.createElement("span", { className: "whitespace-nowrap" }, t), F = le;
217
+ F.Icon = ke;
218
+ F.Text = Se;
219
+ const Ce = p(
223
220
  [
224
221
  "inline-flex items-center justify-center",
225
222
  "border transition-colors duration-150",
@@ -264,44 +261,44 @@ const we = b(
264
261
  disabled: !1
265
262
  }
266
263
  }
267
- ), Ee = {
264
+ ), ze = {
268
265
  sm: { width: 12, height: 9 },
269
266
  md: { width: 14, height: 10 },
270
267
  // deprecated: `lg` is aliased to `md` for backward compatibility.
271
268
  lg: { width: 14, height: 10 }
272
- }, Ne = e.forwardRef(
269
+ }, Le = e.forwardRef(
273
270
  ({
274
271
  id: t,
275
- checked: s,
272
+ checked: l,
276
273
  indeterminate: r = !1,
277
- disabled: l,
278
- size: i = "md",
274
+ disabled: s,
275
+ size: n = "md",
279
276
  onCheckedChange: a,
280
- className: c
281
- }, n) => {
277
+ className: d
278
+ }, o) => {
282
279
  const u = () => {
283
- l || a?.(!s);
284
- }, o = Ee[i], m = l ? "text-white/80" : "text-current";
280
+ s || a?.(!l);
281
+ }, c = ze[n], m = s ? "text-white/80" : "text-current";
285
282
  return /* @__PURE__ */ e.createElement(
286
283
  "button",
287
284
  {
288
285
  id: t,
289
- ref: n,
286
+ ref: o,
290
287
  type: "button",
291
288
  role: "checkbox",
292
- "aria-checked": r ? "mixed" : s,
293
- disabled: l,
289
+ "aria-checked": r ? "mixed" : l,
290
+ disabled: s,
294
291
  onClick: u,
295
- className: g(
296
- we({ size: i, checked: s, disabled: l }),
297
- c
292
+ className: f(
293
+ Ce({ size: n, checked: l, disabled: s }),
294
+ d
298
295
  )
299
296
  },
300
- s && !r && /* @__PURE__ */ e.createElement(
297
+ l && !r && /* @__PURE__ */ e.createElement(
301
298
  "svg",
302
299
  {
303
- width: o.width,
304
- height: o.height,
300
+ width: c.width,
301
+ height: c.height,
305
302
  viewBox: "0 0 14 10",
306
303
  fill: "none",
307
304
  className: m
@@ -320,41 +317,41 @@ const we = b(
320
317
  r && /* @__PURE__ */ e.createElement(
321
318
  "span",
322
319
  {
323
- className: g(
320
+ className: f(
324
321
  m,
325
322
  "bg-current rounded-sm",
326
- i === "sm" && "h-0.5 w-3",
327
- (i === "md" || i === "lg") && "h-0.5 w-4"
323
+ n === "sm" && "h-0.5 w-3",
324
+ (n === "md" || n === "lg") && "h-0.5 w-4"
328
325
  )
329
326
  }
330
327
  )
331
328
  );
332
329
  }
333
330
  );
334
- Ne.displayName = "Checkbox";
335
- const ee = e.createContext(null), $r = ({
331
+ Le.displayName = "Checkbox";
332
+ const ne = e.createContext(null), as = ({
336
333
  value: t,
337
- defaultValue: s,
334
+ defaultValue: l,
338
335
  onValueChange: r,
339
- children: l,
340
- className: i
336
+ children: s,
337
+ className: n
341
338
  }) => {
342
- const [a, c] = e.useState(s), n = t ?? a, u = (o) => {
343
- c(o), r?.(o);
339
+ const [a, d] = e.useState(l), o = t ?? a, u = (c) => {
340
+ d(c), r?.(c);
344
341
  };
345
342
  return /* @__PURE__ */ e.createElement(
346
- ee.Provider,
343
+ ne.Provider,
347
344
  {
348
- value: { value: n, onValueChange: u }
345
+ value: { value: o, onValueChange: u }
349
346
  },
350
- /* @__PURE__ */ e.createElement("div", { role: "radiogroup", className: i }, l)
347
+ /* @__PURE__ */ e.createElement("div", { role: "radiogroup", className: n }, s)
351
348
  );
352
- }, ke = () => {
353
- const t = e.useContext(ee);
349
+ }, Be = () => {
350
+ const t = e.useContext(ne);
354
351
  if (!t)
355
352
  throw new Error("RadioGroupItem must be used within RadioGroup");
356
353
  return t;
357
- }, Se = b(
354
+ }, Te = p(
358
355
  [
359
356
  "relative inline-flex items-center justify-center",
360
357
  "border rounded-full transition-colors duration-150",
@@ -399,7 +396,7 @@ const ee = e.createContext(null), $r = ({
399
396
  disabled: !1
400
397
  }
401
398
  }
402
- ), Ce = b(
399
+ ), Ve = p(
403
400
  ["rounded-full bg-white transition-all"],
404
401
  {
405
402
  variants: {
@@ -419,8 +416,8 @@ const ee = e.createContext(null), $r = ({
419
416
  checked: !1
420
417
  }
421
418
  }
422
- ), ze = e.forwardRef(({ id: t, value: s, disabled: r, size: l = "md", className: i }, a) => {
423
- const { value: c, onValueChange: n } = ke(), u = c === s;
419
+ ), Ie = e.forwardRef(({ id: t, value: l, disabled: r, size: s = "md", className: n }, a) => {
420
+ const { value: d, onValueChange: o } = Be(), u = d === l;
424
421
  return /* @__PURE__ */ e.createElement(
425
422
  "button",
426
423
  {
@@ -431,26 +428,26 @@ const ee = e.createContext(null), $r = ({
431
428
  "aria-checked": u,
432
429
  disabled: r,
433
430
  onClick: () => {
434
- r || n?.(s);
431
+ r || o?.(l);
435
432
  },
436
- className: g(
437
- Se({ size: l, checked: u, disabled: r }),
438
- i
433
+ className: f(
434
+ Te({ size: s, checked: u, disabled: r }),
435
+ n
439
436
  )
440
437
  },
441
438
  /* @__PURE__ */ e.createElement(
442
439
  "span",
443
440
  {
444
- className: Ce({
445
- size: l,
441
+ className: Ve({
442
+ size: s,
446
443
  checked: u
447
444
  })
448
445
  }
449
446
  )
450
447
  );
451
448
  });
452
- ze.displayName = "RadioGroupItem";
453
- const Le = b(
449
+ Ie.displayName = "RadioGroupItem";
450
+ const Oe = p(
454
451
  [
455
452
  "inline-flex items-center shrink-0 rounded-full p-[2px]",
456
453
  "transition-colors duration-200",
@@ -515,7 +512,7 @@ const Le = b(
515
512
  variant: "default"
516
513
  }
517
514
  }
518
- ), Be = b(
515
+ ), _e = p(
519
516
  "rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",
520
517
  {
521
518
  variants: {
@@ -535,43 +532,43 @@ const Le = b(
535
532
  disabled: !1
536
533
  }
537
534
  }
538
- ), Te = e.forwardRef(
535
+ ), je = e.forwardRef(
539
536
  ({
540
537
  checked: t = !1,
541
- size: s = "md",
538
+ size: l = "md",
542
539
  variant: r = "default",
543
- disabled: l,
544
- onCheckedChange: i,
540
+ disabled: s,
541
+ onCheckedChange: n,
545
542
  className: a
546
- }, c) => /* @__PURE__ */ e.createElement(
543
+ }, d) => /* @__PURE__ */ e.createElement(
547
544
  "button",
548
545
  {
549
- ref: c,
546
+ ref: d,
550
547
  type: "button",
551
548
  role: "switch",
552
549
  "aria-checked": t,
553
- disabled: l,
550
+ disabled: s,
554
551
  onClick: () => {
555
- l || i?.(!t);
552
+ s || n?.(!t);
556
553
  },
557
- className: g(
558
- Le({ size: s, checked: t, disabled: l, variant: r }),
554
+ className: f(
555
+ Oe({ size: l, checked: t, disabled: s, variant: r }),
559
556
  a
560
557
  )
561
558
  },
562
559
  /* @__PURE__ */ e.createElement(
563
560
  "span",
564
561
  {
565
- className: Be({
566
- size: s,
567
- disabled: l
562
+ className: _e({
563
+ size: l,
564
+ disabled: s
568
565
  })
569
566
  }
570
567
  )
571
568
  )
572
569
  );
573
- Te.displayName = "Toggle";
574
- const Ve = b(
570
+ je.displayName = "Toggle";
571
+ const $e = p(
575
572
  [
576
573
  "relative rounded-lg text-caption-sm font-semibold text-white",
577
574
  "bg-primary-900",
@@ -597,7 +594,7 @@ const Ve = b(
597
594
  hasSupportingText: !1
598
595
  }
599
596
  }
600
- ), je = "mt-1 font-medium text-light-100", Ie = b(["absolute"], {
597
+ ), Me = "mt-1 font-medium text-light-100", We = p(["absolute"], {
601
598
  variants: {
602
599
  side: {
603
600
  top: [
@@ -621,87 +618,95 @@ const Ve = b(
621
618
  defaultVariants: {
622
619
  side: "top"
623
620
  }
624
- }), O = 12, Oe = ({
621
+ }), W = 12, Re = ({
625
622
  content: t,
626
- supportingText: s,
623
+ supportingText: l,
627
624
  side: r = "top",
628
- open: l,
629
- defaultOpen: i = !1,
625
+ open: s,
626
+ defaultOpen: n = !1,
630
627
  disabled: a = !1,
631
- delay: c = 0,
632
- className: n,
628
+ delay: d = 0,
629
+ className: o,
633
630
  children: u
634
631
  }) => {
635
- const [o, m] = e.useState(i), [p, f] = e.useState(null), h = e.useRef(null), E = e.useRef(null), w = () => {
636
- if (a || !h.current) return;
637
- const x = h.current.getBoundingClientRect();
638
- let N = 0, C = 0;
632
+ const [c, m] = e.useState(n), [g, b] = e.useState(null), h = s ?? c, N = e.useRef(null), k = e.useRef(null), S = e.useCallback(() => {
633
+ const y = N.current;
634
+ if (!y) return null;
635
+ const E = y.getBoundingClientRect();
639
636
  switch (r) {
640
637
  case "top":
641
- N = x.top - O, C = x.left + x.width / 2;
642
- break;
638
+ return { top: E.top - W, left: E.left + E.width / 2 };
643
639
  case "bottom":
644
- N = x.bottom + O, C = x.left + x.width / 2;
645
- break;
640
+ return { top: E.bottom + W, left: E.left + E.width / 2 };
646
641
  case "left":
647
- N = x.top + x.height / 2, C = x.left - O;
648
- break;
649
- case "right":
650
- N = x.top + x.height / 2, C = x.right + O;
651
- break;
642
+ return { top: E.top + E.height / 2, left: E.left - W };
643
+ default:
644
+ return { top: E.top + E.height / 2, left: E.right + W };
652
645
  }
653
- const L = () => {
654
- f({ top: N, left: C }), m(!0);
646
+ }, [r]), w = () => {
647
+ if (a || !N.current) return;
648
+ const y = () => {
649
+ b(S()), m(!0);
655
650
  };
656
- c > 0 ? E.current = window.setTimeout(L, c) : L();
657
- }, k = () => {
658
- E.current && (clearTimeout(E.current), E.current = null), m(!1);
659
- }, y = l ?? o;
651
+ d > 0 ? k.current = window.setTimeout(y, d) : y();
652
+ };
653
+ e.useEffect(() => {
654
+ if (!h || !N.current) return;
655
+ const y = () => b(S());
656
+ y();
657
+ const E = new ResizeObserver(y);
658
+ return E.observe(N.current), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y), () => {
659
+ E.disconnect(), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
660
+ };
661
+ }, [h, S]);
662
+ const v = () => {
663
+ k.current && (clearTimeout(k.current), k.current = null), m(!1);
664
+ };
660
665
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
661
666
  "span",
662
667
  {
663
- ref: h,
668
+ ref: N,
664
669
  className: "inline-flex",
665
670
  onMouseEnter: w,
666
- onMouseLeave: k,
671
+ onMouseLeave: v,
667
672
  onFocus: w,
668
- onBlur: k,
673
+ onBlur: v,
669
674
  tabIndex: 0
670
675
  },
671
676
  u
672
- ), y && p && fe(
677
+ ), h && g && Ee(
673
678
  /* @__PURE__ */ e.createElement(
674
679
  "div",
675
680
  {
676
681
  role: "tooltip",
677
682
  className: "fixed z-[9999] pointer-events-none",
678
683
  style: {
679
- top: p.top,
680
- left: p.left,
684
+ top: g.top,
685
+ left: g.left,
681
686
  transform: r === "top" ? "translate(-50%, -100%)" : r === "bottom" ? "translate(-50%, 0)" : r === "left" ? "translate(-100%, -50%)" : "translate(0, -50%)"
682
687
  }
683
688
  },
684
689
  /* @__PURE__ */ e.createElement(
685
690
  "div",
686
691
  {
687
- className: g(
688
- Ve({
692
+ className: f(
693
+ $e({
689
694
  side: r,
690
- hasSupportingText: !!s
695
+ hasSupportingText: !!l
691
696
  }),
692
- n
697
+ o
693
698
  )
694
699
  },
695
700
  t,
696
- s && /* @__PURE__ */ e.createElement("p", { className: je }, s),
697
- /* @__PURE__ */ e.createElement("span", { className: Ie({ side: r }) })
701
+ l && /* @__PURE__ */ e.createElement("p", { className: Me }, l),
702
+ /* @__PURE__ */ e.createElement("span", { className: We({ side: r }) })
698
703
  )
699
704
  ),
700
705
  document.body
701
706
  ));
702
707
  };
703
- Oe.displayName = "Tooltip";
704
- const _e = {
708
+ Re.displayName = "Tooltip";
709
+ const Ae = {
705
710
  brand: {
706
711
  bg: "bg-primary-50",
707
712
  border: "border-primary-300",
@@ -762,7 +767,7 @@ const _e = {
762
767
  border: "border-orange-200",
763
768
  text: "text-orange-700"
764
769
  }
765
- }, $e = b(
770
+ }, Pe = p(
766
771
  [
767
772
  "inline-flex items-center gap-1 border",
768
773
  "font-medium transition-colors duration-150",
@@ -819,7 +824,7 @@ const _e = {
819
824
  disabled: !1
820
825
  }
821
826
  }
822
- ), We = b(
827
+ ), De = p(
823
828
  ["shrink-0 rounded border bg-white transition-colors duration-150 size-3.5"],
824
829
  {
825
830
  variants: {
@@ -832,69 +837,69 @@ const _e = {
832
837
  checked: !1
833
838
  }
834
839
  }
835
- ), Re = "shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800", Me = "shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", te = /^#([0-9a-f]{6})$/i, re = (t) => te.test(t.trim()), se = (t, s) => {
836
- const r = te.exec(t.trim());
840
+ ), Ge = "shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800", Fe = "shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", ie = /^#([0-9a-f]{6})$/i, oe = (t) => ie.test(t.trim()), ce = (t, l) => {
841
+ const r = ie.exec(t.trim());
837
842
  if (!r) return;
838
- const l = parseInt(r[1], 16), i = l >> 16 & 255, a = l >> 8 & 255, c = l & 255;
839
- return `rgba(${i}, ${a}, ${c}, ${s})`;
840
- }, ae = ({
843
+ const s = parseInt(r[1], 16), n = s >> 16 & 255, a = s >> 8 & 255, d = s & 255;
844
+ return `rgba(${n}, ${a}, ${d}, ${l})`;
845
+ }, de = ({
841
846
  children: t,
842
- size: s = "sm",
847
+ size: l = "sm",
843
848
  shape: r = "rounded",
844
- icon: l,
845
- checked: i,
849
+ icon: s,
850
+ checked: n,
846
851
  onCheckedChange: a,
847
- onClose: c,
848
- count: n,
852
+ onClose: d,
853
+ count: o,
849
854
  disabled: u = !1,
850
- className: o,
855
+ className: c,
851
856
  color: m = "gray",
852
- customColor: p
857
+ customColor: g
853
858
  }) => {
854
- const f = a !== void 0, h = i !== void 0 || !!l, E = !!c || n !== void 0, w = _e[m], k = !!(p && re(p)), y = k ? {
855
- borderColor: p,
856
- backgroundColor: se(p, 0.12),
857
- color: p
858
- } : void 0, x = () => {
859
- u || a?.(!i);
860
- }, N = (C) => {
861
- !f || u || (C.key === "Enter" || C.key === " ") && (C.preventDefault(), x());
859
+ const b = a !== void 0, h = n !== void 0 || !!s, N = !!d || o !== void 0, k = Ae[m], S = !!(g && oe(g)), w = S ? {
860
+ borderColor: g,
861
+ backgroundColor: ce(g, 0.12),
862
+ color: g
863
+ } : void 0, v = () => {
864
+ u || a?.(!n);
865
+ }, y = (E) => {
866
+ !b || u || (E.key === "Enter" || E.key === " ") && (E.preventDefault(), v());
862
867
  };
863
868
  return /* @__PURE__ */ e.createElement(
864
869
  "div",
865
870
  {
866
- role: f ? "checkbox" : void 0,
867
- "aria-checked": f ? !!i : void 0,
871
+ role: b ? "checkbox" : void 0,
872
+ "aria-checked": b ? !!n : void 0,
868
873
  "aria-disabled": u || void 0,
869
- tabIndex: f && !u ? 0 : void 0,
870
- onClick: f ? x : void 0,
871
- onKeyDown: N,
872
- style: y,
873
- className: g(
874
- $e({
875
- size: s,
874
+ tabIndex: b && !u ? 0 : void 0,
875
+ onClick: b ? v : void 0,
876
+ onKeyDown: y,
877
+ style: w,
878
+ className: f(
879
+ Pe({
880
+ size: l,
876
881
  shape: r,
877
882
  hasLeading: h,
878
- hasTrailing: E,
879
- interactive: f,
883
+ hasTrailing: N,
884
+ interactive: b,
880
885
  disabled: u
881
886
  }),
882
- !k && w.bg,
883
- !k && w.border,
884
- !k && w.text,
885
- o
887
+ !S && k.bg,
888
+ !S && k.border,
889
+ !S && k.text,
890
+ c
886
891
  )
887
892
  },
888
- i !== void 0 && /* @__PURE__ */ e.createElement(
893
+ n !== void 0 && /* @__PURE__ */ e.createElement(
889
894
  "span",
890
895
  {
891
- className: g(
892
- We({ checked: i }),
893
- !i && !k && w.border
896
+ className: f(
897
+ De({ checked: n }),
898
+ !n && !S && k.border
894
899
  ),
895
- style: !i && k ? { borderColor: p } : void 0
900
+ style: !n && S ? { borderColor: g } : void 0
896
901
  },
897
- i && /* @__PURE__ */ e.createElement(
902
+ n && /* @__PURE__ */ e.createElement(
898
903
  "svg",
899
904
  {
900
905
  viewBox: "0 0 14 10",
@@ -913,19 +918,19 @@ const _e = {
913
918
  )
914
919
  )
915
920
  ),
916
- l,
921
+ s,
917
922
  /* @__PURE__ */ e.createElement("span", { className: "whitespace-nowrap" }, t),
918
- n !== void 0 && /* @__PURE__ */ e.createElement("span", { className: Re }, n),
919
- c && /* @__PURE__ */ e.createElement(
923
+ o !== void 0 && /* @__PURE__ */ e.createElement("span", { className: Ge }, o),
924
+ d && /* @__PURE__ */ e.createElement(
920
925
  "button",
921
926
  {
922
927
  type: "button",
923
928
  "aria-label": "Remove",
924
929
  disabled: u,
925
- onClick: (C) => {
926
- C.stopPropagation(), c();
930
+ onClick: (E) => {
931
+ E.stopPropagation(), d();
927
932
  },
928
- className: Me
933
+ className: Fe
929
934
  },
930
935
  /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 10 10", fill: "none", className: "size-2.5" }, /* @__PURE__ */ e.createElement(
931
936
  "path",
@@ -939,8 +944,8 @@ const _e = {
939
944
  )
940
945
  );
941
946
  };
942
- ae.displayName = "Tag";
943
- const Ae = {
947
+ de.displayName = "Tag";
948
+ const He = {
944
949
  brand: {
945
950
  solidBg: "bg-primary-50",
946
951
  solidBorder: "border-primary-300",
@@ -1025,7 +1030,7 @@ const Ae = {
1025
1030
  outlineBorder: "border-orange-600",
1026
1031
  outlineText: "text-orange-700"
1027
1032
  }
1028
- }, Pe = b(
1033
+ }, Ke = p(
1029
1034
  [
1030
1035
  "inline-flex items-center gap-1 border font-medium",
1031
1036
  "transition-colors duration-150"
@@ -1150,67 +1155,67 @@ const Ae = {
1150
1155
  disabled: !1
1151
1156
  }
1152
1157
  }
1153
- ), De = "size-4 shrink-0 rounded border bg-white", Ge = "shrink-0 rounded p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", He = ({
1158
+ ), qe = "size-4 shrink-0 rounded border bg-white", Ze = "shrink-0 rounded p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", Ue = ({
1154
1159
  children: t,
1155
- size: s = "sm",
1160
+ size: l = "sm",
1156
1161
  shape: r = "pill",
1157
- variant: l = "solid",
1158
- color: i = "brand",
1162
+ variant: s = "solid",
1163
+ color: n = "brand",
1159
1164
  customColor: a,
1160
- modern: c = !1,
1161
- icon: n,
1165
+ modern: d = !1,
1166
+ icon: o,
1162
1167
  trailingIcon: u,
1163
- checked: o,
1168
+ checked: c,
1164
1169
  onCheckedChange: m,
1165
- onClose: p,
1166
- iconOnly: f = !1,
1170
+ onClose: g,
1171
+ iconOnly: b = !1,
1167
1172
  disabled: h = !1,
1168
- className: E
1173
+ className: N
1169
1174
  }) => {
1170
- const w = m !== void 0, k = o !== void 0 || !!n, y = !!p || !!u, x = Ae[i], N = !!(a && re(a)), C = N ? {
1175
+ const k = m !== void 0, S = c !== void 0 || !!o, w = !!g || !!u, v = He[n], y = !!(a && oe(a)), E = y ? {
1171
1176
  borderColor: a,
1172
1177
  color: a,
1173
- backgroundColor: l === "outline" ? "transparent" : se(a, 0.1)
1174
- } : void 0, L = () => {
1175
- h || m?.(!o);
1176
- }, S = (z) => {
1177
- !w || h || (z.key === "Enter" || z.key === " ") && (z.preventDefault(), L());
1178
+ backgroundColor: s === "outline" ? "transparent" : ce(a, 0.1)
1179
+ } : void 0, B = () => {
1180
+ h || m?.(!c);
1181
+ }, C = (z) => {
1182
+ !k || h || (z.key === "Enter" || z.key === " ") && (z.preventDefault(), B());
1178
1183
  };
1179
1184
  return /* @__PURE__ */ e.createElement(
1180
1185
  "div",
1181
1186
  {
1182
- role: w ? "checkbox" : void 0,
1183
- "aria-checked": w ? !!o : void 0,
1187
+ role: k ? "checkbox" : void 0,
1188
+ "aria-checked": k ? !!c : void 0,
1184
1189
  "aria-disabled": h || void 0,
1185
- tabIndex: w && !h ? 0 : void 0,
1186
- onClick: w ? L : void 0,
1187
- onKeyDown: S,
1188
- style: C,
1189
- className: g(
1190
- Pe({
1191
- size: s,
1190
+ tabIndex: k && !h ? 0 : void 0,
1191
+ onClick: k ? B : void 0,
1192
+ onKeyDown: C,
1193
+ style: E,
1194
+ className: f(
1195
+ Ke({
1196
+ size: l,
1192
1197
  shape: r,
1193
- modern: c,
1194
- hasLeading: k,
1195
- hasTrailing: y,
1196
- iconOnly: f,
1197
- interactive: w,
1198
+ modern: d,
1199
+ hasLeading: S,
1200
+ hasTrailing: w,
1201
+ iconOnly: b,
1202
+ interactive: k,
1198
1203
  disabled: h
1199
1204
  }),
1200
- !N && (l === "outline" ? g("bg-transparent", x.outlineBorder, x.outlineText) : g(x.solidBg, x.solidBorder, x.solidText)),
1201
- E
1205
+ !y && (s === "outline" ? f("bg-transparent", v.outlineBorder, v.outlineText) : f(v.solidBg, v.solidBorder, v.solidText)),
1206
+ N
1202
1207
  )
1203
1208
  },
1204
- o !== void 0 && /* @__PURE__ */ e.createElement(
1209
+ c !== void 0 && /* @__PURE__ */ e.createElement(
1205
1210
  "span",
1206
1211
  {
1207
- className: g(
1208
- De,
1209
- o ? "bg-primary-500 border-primary-500" : !N && x.solidBorder
1212
+ className: f(
1213
+ qe,
1214
+ c ? "bg-primary-500 border-primary-500" : !y && v.solidBorder
1210
1215
  ),
1211
- style: !o && N ? { borderColor: a } : void 0
1216
+ style: !c && y ? { borderColor: a } : void 0
1212
1217
  },
1213
- o && /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 14 10", fill: "none", className: "size-full text-white" }, /* @__PURE__ */ e.createElement(
1218
+ c && /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 14 10", fill: "none", className: "size-full text-white" }, /* @__PURE__ */ e.createElement(
1214
1219
  "path",
1215
1220
  {
1216
1221
  d: "M1 5L5 9L13 1",
@@ -1221,19 +1226,19 @@ const Ae = {
1221
1226
  }
1222
1227
  ))
1223
1228
  ),
1224
- n,
1225
- !f && /* @__PURE__ */ e.createElement("span", { className: "whitespace-nowrap" }, t),
1229
+ o,
1230
+ !b && /* @__PURE__ */ e.createElement("span", { className: "whitespace-nowrap" }, t),
1226
1231
  u,
1227
- p && /* @__PURE__ */ e.createElement(
1232
+ g && /* @__PURE__ */ e.createElement(
1228
1233
  "button",
1229
1234
  {
1230
1235
  type: "button",
1231
1236
  "aria-label": "Remove",
1232
1237
  disabled: h,
1233
1238
  onClick: (z) => {
1234
- z.stopPropagation(), p();
1239
+ z.stopPropagation(), g();
1235
1240
  },
1236
- className: Ge
1241
+ className: Ze
1237
1242
  },
1238
1243
  /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 10 10", fill: "none", className: "size-2.5" }, /* @__PURE__ */ e.createElement(
1239
1244
  "path",
@@ -1247,8 +1252,8 @@ const Ae = {
1247
1252
  )
1248
1253
  );
1249
1254
  };
1250
- He.displayName = "Badge";
1251
- const Fe = {
1255
+ Ue.displayName = "Badge";
1256
+ const Xe = {
1252
1257
  brand: {
1253
1258
  bg50: "bg-primary-50",
1254
1259
  hoverBg100: "hover:bg-primary-100",
@@ -1284,7 +1289,7 @@ const Fe = {
1284
1289
  border500: "border-success-500",
1285
1290
  text500: "text-success-500"
1286
1291
  }
1287
- }, Ke = {
1292
+ }, Qe = {
1288
1293
  md: {
1289
1294
  outerPad: { leading: "pl-1 pr-2.5 py-1", trailing: "pl-3 pr-1 py-1" },
1290
1295
  gap: "gap-2",
@@ -1297,50 +1302,50 @@ const Fe = {
1297
1302
  chipPad: "px-2.5 py-[3px]",
1298
1303
  text: "text-body-sm"
1299
1304
  }
1300
- }, Ze = ({
1305
+ }, Je = ({
1301
1306
  badgeLabel: t,
1302
- children: s,
1307
+ children: l,
1303
1308
  size: r = "md",
1304
- theme: l = "light",
1305
- color: i = "brand",
1309
+ theme: s = "light",
1310
+ color: n = "brand",
1306
1311
  badgePosition: a = "leading",
1307
- icon: c,
1308
- onClick: n,
1312
+ icon: d,
1313
+ onClick: o,
1309
1314
  className: u
1310
1315
  }) => {
1311
- const o = Fe[i], m = Ke[r], p = l === "modern", f = l === "outline", h = g(
1316
+ const c = Xe[n], m = Qe[r], g = s === "modern", b = s === "outline", h = f(
1312
1317
  "inline-flex items-center border transition-colors duration-150",
1313
1318
  m.gap,
1314
1319
  m.outerPad[a],
1315
- p ? "rounded-lg bg-light-50 border-light-200 shadow-xs" : f ? g("rounded-full bg-white border-[1.5px]", o.border500) : g("rounded-full", o.bg50, o.border200, o.hoverBg100),
1316
- n && "cursor-pointer",
1320
+ g ? "rounded-lg bg-light-50 border-light-200 shadow-xs" : b ? f("rounded-full bg-white border-[1.5px]", c.border500) : f("rounded-full", c.bg50, c.border200, c.hoverBg100),
1321
+ o && "cursor-pointer",
1317
1322
  u
1318
- ), E = g(
1323
+ ), N = f(
1319
1324
  "inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",
1320
1325
  m.chipPad,
1321
1326
  m.text,
1322
- p ? "rounded-md bg-white border-light-200 text-light-800" : f ? g("rounded-full bg-white border-[1.5px]", o.border500, o.text500) : g("rounded-full bg-white", o.border200, o.text500)
1323
- ), w = g(
1327
+ g ? "rounded-md bg-white border-light-200 text-light-800" : b ? f("rounded-full bg-white border-[1.5px]", c.border500, c.text500) : f("rounded-full bg-white", c.border200, c.text500)
1328
+ ), k = f(
1324
1329
  "inline-flex items-center gap-1 font-medium",
1325
1330
  m.text,
1326
- p ? "text-light-800" : o.text500
1327
- ), k = /* @__PURE__ */ e.createElement("span", { className: E }, p && /* @__PURE__ */ e.createElement("span", { className: "size-2 shrink-0 rounded-full bg-light-400" }), t);
1331
+ g ? "text-light-800" : c.text500
1332
+ ), S = /* @__PURE__ */ e.createElement("span", { className: N }, g && /* @__PURE__ */ e.createElement("span", { className: "size-2 shrink-0 rounded-full bg-light-400" }), t);
1328
1333
  return /* @__PURE__ */ e.createElement(
1329
1334
  "div",
1330
1335
  {
1331
- role: n ? "button" : void 0,
1332
- tabIndex: n ? 0 : void 0,
1333
- onClick: n,
1336
+ role: o ? "button" : void 0,
1337
+ tabIndex: o ? 0 : void 0,
1338
+ onClick: o,
1334
1339
  className: h
1335
1340
  },
1336
- a === "leading" && k,
1337
- /* @__PURE__ */ e.createElement("span", { className: w }, s, c),
1338
- a === "trailing" && k
1341
+ a === "leading" && S,
1342
+ /* @__PURE__ */ e.createElement("span", { className: k }, l, d),
1343
+ a === "trailing" && S
1339
1344
  );
1340
1345
  };
1341
- Ze.displayName = "BadgeGroup";
1342
- const Ue = ({ size: t }) => {
1343
- const s = t * 0.09, r = (t - s) / 2, l = 2 * Math.PI * r;
1346
+ Je.displayName = "BadgeGroup";
1347
+ const Ye = ({ size: t }) => {
1348
+ const l = t * 0.09, r = (t - l) / 2, s = 2 * Math.PI * r;
1344
1349
  return /* @__PURE__ */ e.createElement(
1345
1350
  "svg",
1346
1351
  {
@@ -1356,7 +1361,7 @@ const Ue = ({ size: t }) => {
1356
1361
  cx: t / 2,
1357
1362
  cy: t / 2,
1358
1363
  r,
1359
- strokeWidth: s,
1364
+ strokeWidth: l,
1360
1365
  className: "stroke-light-100"
1361
1366
  }
1362
1367
  ),
@@ -1366,15 +1371,15 @@ const Ue = ({ size: t }) => {
1366
1371
  cx: t / 2,
1367
1372
  cy: t / 2,
1368
1373
  r,
1369
- strokeWidth: s,
1374
+ strokeWidth: l,
1370
1375
  strokeLinecap: "round",
1371
- strokeDasharray: `${l * 0.25} ${l}`,
1376
+ strokeDasharray: `${s * 0.25} ${s}`,
1372
1377
  className: "stroke-primary-600"
1373
1378
  }
1374
1379
  )
1375
1380
  );
1376
- }, qe = ({ size: t }) => {
1377
- const s = e.useId(), r = t * 0.125, l = (t - r) / 2, i = 2 * Math.PI * l;
1381
+ }, et = ({ size: t }) => {
1382
+ const l = e.useId(), r = t * 0.125, s = (t - r) / 2, n = 2 * Math.PI * s;
1378
1383
  return /* @__PURE__ */ e.createElement(
1379
1384
  "svg",
1380
1385
  {
@@ -1384,13 +1389,13 @@ const Ue = ({ size: t }) => {
1384
1389
  fill: "none",
1385
1390
  className: "animate-spin text-primary-600"
1386
1391
  },
1387
- /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("linearGradient", { id: s, x1: "100%", y1: "0%", x2: "0%", y2: "100%" }, /* @__PURE__ */ e.createElement("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "1" }), /* @__PURE__ */ e.createElement("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" }))),
1392
+ /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("linearGradient", { id: l, x1: "100%", y1: "0%", x2: "0%", y2: "100%" }, /* @__PURE__ */ e.createElement("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "1" }), /* @__PURE__ */ e.createElement("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" }))),
1388
1393
  /* @__PURE__ */ e.createElement(
1389
1394
  "circle",
1390
1395
  {
1391
1396
  cx: t / 2,
1392
1397
  cy: t / 2,
1393
- r: l,
1398
+ r: s,
1394
1399
  strokeWidth: r,
1395
1400
  className: "stroke-light-100"
1396
1401
  }
@@ -1400,24 +1405,24 @@ const Ue = ({ size: t }) => {
1400
1405
  {
1401
1406
  cx: t / 2,
1402
1407
  cy: t / 2,
1403
- r: l,
1408
+ r: s,
1404
1409
  strokeWidth: r,
1405
1410
  strokeLinecap: "round",
1406
- stroke: `url(#${s})`,
1407
- strokeDasharray: `${i * 0.75} ${i}`
1411
+ stroke: `url(#${l})`,
1412
+ strokeDasharray: `${n * 0.75} ${n}`
1408
1413
  }
1409
1414
  )
1410
1415
  );
1411
- }, Qe = ({ size: t }) => {
1412
- const r = Math.max(t * 0.1, 3), l = (t - r) / 2;
1416
+ }, tt = ({ size: t }) => {
1417
+ const r = Math.max(t * 0.1, 3), s = (t - r) / 2;
1413
1418
  return /* @__PURE__ */ e.createElement(
1414
1419
  "div",
1415
1420
  {
1416
1421
  className: "relative animate-spin",
1417
1422
  style: { width: t, height: t }
1418
1423
  },
1419
- Array.from({ length: 12 }).map((i, a) => {
1420
- const c = 30 * a, n = 0.15 + 0.85 * a / 11;
1424
+ Array.from({ length: 12 }).map((n, a) => {
1425
+ const d = 30 * a, o = 0.15 + 0.85 * a / 11;
1421
1426
  return /* @__PURE__ */ e.createElement(
1422
1427
  "span",
1423
1428
  {
@@ -1426,55 +1431,55 @@ const Ue = ({ size: t }) => {
1426
1431
  style: {
1427
1432
  width: r,
1428
1433
  height: r,
1429
- opacity: n,
1434
+ opacity: o,
1430
1435
  marginTop: -r / 2,
1431
1436
  marginLeft: -r / 2,
1432
- transform: `rotate(${c}deg) translate(${l}px) rotate(${-c}deg)`
1437
+ transform: `rotate(${d}deg) translate(${s}px) rotate(${-d}deg)`
1433
1438
  }
1434
1439
  }
1435
1440
  );
1436
1441
  })
1437
1442
  );
1438
- }, Xe = {
1443
+ }, rt = {
1439
1444
  sm: { box: 32, gapClass: "gap-4", textClass: "text-caption-lg" },
1440
1445
  md: { box: 48, gapClass: "gap-4", textClass: "text-caption-lg" },
1441
1446
  lg: { box: 56, gapClass: "gap-4", textClass: "text-body-lg" },
1442
1447
  xl: { box: 64, gapClass: "gap-5", textClass: "text-body-lg" }
1443
- }, Je = ({
1448
+ }, st = ({
1444
1449
  size: t = "sm",
1445
- style: s = "line-simple",
1450
+ style: l = "line-simple",
1446
1451
  supportingText: r = !0,
1447
- label: l = "Loading...",
1448
- className: i
1452
+ label: s = "Loading...",
1453
+ className: n
1449
1454
  }) => {
1450
- const { box: a, gapClass: c, textClass: n } = Xe[t];
1455
+ const { box: a, gapClass: d, textClass: o } = rt[t];
1451
1456
  return /* @__PURE__ */ e.createElement(
1452
1457
  "div",
1453
1458
  {
1454
1459
  role: "status",
1455
- "aria-label": typeof l == "string" ? l : "Loading",
1456
- className: g("inline-flex flex-col items-center", c, i)
1460
+ "aria-label": typeof s == "string" ? s : "Loading",
1461
+ className: f("inline-flex flex-col items-center", d, n)
1457
1462
  },
1458
- s === "line-simple" && /* @__PURE__ */ e.createElement(Ue, { size: a }),
1459
- s === "line-spinner" && /* @__PURE__ */ e.createElement(qe, { size: a }),
1460
- s === "dot-circle" && /* @__PURE__ */ e.createElement(Qe, { size: a }),
1463
+ l === "line-simple" && /* @__PURE__ */ e.createElement(Ye, { size: a }),
1464
+ l === "line-spinner" && /* @__PURE__ */ e.createElement(et, { size: a }),
1465
+ l === "dot-circle" && /* @__PURE__ */ e.createElement(tt, { size: a }),
1461
1466
  r && /* @__PURE__ */ e.createElement(
1462
1467
  "p",
1463
1468
  {
1464
- className: g(
1469
+ className: f(
1465
1470
  "font-medium text-light-700 whitespace-nowrap",
1466
- n
1471
+ o
1467
1472
  )
1468
1473
  },
1469
- l
1474
+ s
1470
1475
  )
1471
1476
  );
1472
1477
  };
1473
- Je.displayName = "Loading";
1474
- const le = ({
1478
+ st.displayName = "Loading";
1479
+ const ue = ({
1475
1480
  className: t,
1476
- style: s
1477
- }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", className: t, style: s }, /* @__PURE__ */ e.createElement(
1481
+ style: l
1482
+ }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", className: t, style: l }, /* @__PURE__ */ e.createElement(
1478
1483
  "path",
1479
1484
  {
1480
1485
  d: "M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",
@@ -1489,7 +1494,7 @@ const le = ({
1489
1494
  strokeWidth: "1.75",
1490
1495
  strokeLinecap: "round"
1491
1496
  }
1492
- )), ie = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement("circle", { cx: "10", cy: "10", r: "9", className: "fill-primary-500 stroke-white", strokeWidth: "1.5" }), /* @__PURE__ */ e.createElement(
1497
+ )), me = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement("circle", { cx: "10", cy: "10", r: "9", className: "fill-primary-500 stroke-white", strokeWidth: "1.5" }), /* @__PURE__ */ e.createElement(
1493
1498
  "path",
1494
1499
  {
1495
1500
  d: "M6 10.2 8.6 12.8 14 7",
@@ -1498,40 +1503,40 @@ const le = ({
1498
1503
  strokeLinecap: "round",
1499
1504
  strokeLinejoin: "round"
1500
1505
  }
1501
- )), Ye = {
1506
+ )), at = {
1502
1507
  xs: { box: 24, borderWidth: "0.5px", statusSize: 6, badgeSize: 10, textClass: "text-caption-sm" },
1503
1508
  sm: { box: 32, borderWidth: "0.5px", statusSize: 8, badgeSize: 12, textClass: "text-caption-lg" },
1504
1509
  md: { box: 40, borderWidth: "0.75px", statusSize: 10, badgeSize: 14, textClass: "text-body-sm" },
1505
1510
  lg: { box: 48, borderWidth: "0.75px", statusSize: 12, badgeSize: 16, textClass: "text-body-lg" },
1506
1511
  xl: { box: 56, borderWidth: "0.75px", statusSize: 14, badgeSize: 18, textClass: "text-h6" },
1507
1512
  "2xl": { box: 64, borderWidth: "0.75px", statusSize: 16, badgeSize: 20, textClass: "text-h5 leading-7" }
1508
- }, et = "#17B26A", _ = ({
1513
+ }, lt = "#17B26A", R = ({
1509
1514
  src: t,
1510
- alt: s,
1515
+ alt: l,
1511
1516
  initials: r,
1512
- size: l = "md",
1513
- status: i = "none",
1517
+ size: s = "md",
1518
+ status: n = "none",
1514
1519
  statusIcon: a,
1515
- contrastBorder: c = !0,
1516
- className: n
1520
+ contrastBorder: d = !0,
1521
+ className: o
1517
1522
  }) => {
1518
- const { box: u, borderWidth: o, statusSize: m, badgeSize: p, textClass: f } = Ye[l], h = t ? "image" : r !== void 0 ? "initials" : "placeholder";
1523
+ const { box: u, borderWidth: c, statusSize: m, badgeSize: g, textClass: b } = at[s], h = t ? "image" : r !== void 0 ? "initials" : "placeholder";
1519
1524
  return /* @__PURE__ */ e.createElement(
1520
1525
  "div",
1521
1526
  {
1522
- className: g("relative inline-block shrink-0 rounded-full", n),
1527
+ className: f("relative inline-block shrink-0 rounded-full", o),
1523
1528
  style: { width: u, height: u }
1524
1529
  },
1525
1530
  h === "image" && /* @__PURE__ */ e.createElement(
1526
1531
  "img",
1527
1532
  {
1528
1533
  src: t,
1529
- alt: s ?? "",
1534
+ alt: l ?? "",
1530
1535
  className: "absolute inset-0 size-full rounded-full object-cover"
1531
1536
  }
1532
1537
  ),
1533
1538
  h === "placeholder" && /* @__PURE__ */ e.createElement("div", { className: "absolute inset-0 flex items-center justify-center rounded-full bg-light-50" }, /* @__PURE__ */ e.createElement(
1534
- le,
1539
+ ue,
1535
1540
  {
1536
1541
  className: "text-light-300",
1537
1542
  style: { width: u * 0.55, height: u * 0.55 }
@@ -1540,82 +1545,82 @@ const le = ({
1540
1545
  h === "initials" && /* @__PURE__ */ e.createElement(
1541
1546
  "div",
1542
1547
  {
1543
- className: g(
1548
+ className: f(
1544
1549
  "absolute inset-0 flex items-center justify-center rounded-full bg-light-50 font-semibold text-light-500",
1545
- f
1550
+ b
1546
1551
  )
1547
1552
  },
1548
1553
  r
1549
1554
  ),
1550
- c && /* @__PURE__ */ e.createElement(
1555
+ d && /* @__PURE__ */ e.createElement(
1551
1556
  "div",
1552
1557
  {
1553
1558
  className: "pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",
1554
- style: { borderWidth: o, borderStyle: "solid" }
1559
+ style: { borderWidth: c, borderStyle: "solid" }
1555
1560
  }
1556
1561
  ),
1557
- i === "online" && /* @__PURE__ */ e.createElement(
1562
+ n === "online" && /* @__PURE__ */ e.createElement(
1558
1563
  "span",
1559
1564
  {
1560
1565
  className: "absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",
1561
1566
  style: {
1562
1567
  width: m,
1563
1568
  height: m,
1564
- backgroundColor: et
1569
+ backgroundColor: lt
1565
1570
  }
1566
1571
  }
1567
1572
  ),
1568
- i === "company" && /* @__PURE__ */ e.createElement(
1573
+ n === "company" && /* @__PURE__ */ e.createElement(
1569
1574
  "div",
1570
1575
  {
1571
1576
  className: "absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",
1572
- style: { width: p, height: p }
1577
+ style: { width: g, height: g }
1573
1578
  },
1574
1579
  a
1575
1580
  ),
1576
- i === "verified" && /* @__PURE__ */ e.createElement(
1581
+ n === "verified" && /* @__PURE__ */ e.createElement(
1577
1582
  "div",
1578
1583
  {
1579
1584
  className: "absolute bottom-0 right-0",
1580
- style: { width: p, height: p }
1585
+ style: { width: g, height: g }
1581
1586
  },
1582
- /* @__PURE__ */ e.createElement(ie, { className: "size-full" })
1587
+ /* @__PURE__ */ e.createElement(me, { className: "size-full" })
1583
1588
  )
1584
1589
  );
1585
1590
  };
1586
- _.displayName = "Avatar";
1587
- const tt = {
1591
+ R.displayName = "Avatar";
1592
+ const nt = {
1588
1593
  xs: { box: 24, overlap: -4, contrastBorderWidth: "0.5px", plusIconSize: 16, textClass: "text-caption-sm" },
1589
1594
  sm: { box: 32, overlap: -8, contrastBorderWidth: "0.5px", plusIconSize: 16, textClass: "text-caption-lg" },
1590
1595
  md: { box: 40, overlap: -12, contrastBorderWidth: "0.75px", plusIconSize: 20, textClass: "text-body-sm" }
1591
- }, rt = ({
1596
+ }, it = ({
1592
1597
  avatars: t,
1593
- max: s,
1598
+ max: l,
1594
1599
  size: r = "xs",
1595
- onAdd: l,
1596
- className: i
1600
+ onAdd: s,
1601
+ className: n
1597
1602
  }) => {
1598
- const { box: a, overlap: c, contrastBorderWidth: n, textClass: u } = tt[r], o = s ? t.slice(0, s) : t, m = s && t.length > s ? t.length - s : 0;
1599
- return /* @__PURE__ */ e.createElement("div", { className: g("inline-flex items-start gap-2", i) }, /* @__PURE__ */ e.createElement("div", { className: "flex items-start" }, o.map((p, f) => /* @__PURE__ */ e.createElement(
1603
+ const { box: a, overlap: d, contrastBorderWidth: o, textClass: u } = nt[r], c = l ? t.slice(0, l) : t, m = l && t.length > l ? t.length - l : 0;
1604
+ return /* @__PURE__ */ e.createElement("div", { className: f("inline-flex items-start gap-2", n) }, /* @__PURE__ */ e.createElement("div", { className: "flex items-start" }, c.map((g, b) => /* @__PURE__ */ e.createElement(
1600
1605
  "div",
1601
1606
  {
1602
- key: f,
1607
+ key: b,
1603
1608
  className: "relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",
1604
- style: { width: a, height: a, marginRight: c }
1609
+ style: { width: a, height: a, marginRight: d }
1605
1610
  },
1606
- p.src ? /* @__PURE__ */ e.createElement(
1611
+ g.src ? /* @__PURE__ */ e.createElement(
1607
1612
  "img",
1608
1613
  {
1609
- src: p.src,
1610
- alt: p.alt ?? "",
1614
+ src: g.src,
1615
+ alt: g.alt ?? "",
1611
1616
  className: "size-full object-cover"
1612
1617
  }
1613
- ) : /* @__PURE__ */ e.createElement("div", { className: "flex size-full items-center justify-center bg-light-50 font-semibold text-light-500" }, p.initials),
1618
+ ) : /* @__PURE__ */ e.createElement("div", { className: "flex size-full items-center justify-center bg-light-50 font-semibold text-light-500" }, g.initials),
1614
1619
  /* @__PURE__ */ e.createElement(
1615
1620
  "div",
1616
1621
  {
1617
1622
  className: "pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",
1618
- style: { borderWidth: n, borderStyle: "solid" }
1623
+ style: { borderWidth: o, borderStyle: "solid" }
1619
1624
  }
1620
1625
  )
1621
1626
  )), m > 0 && /* @__PURE__ */ e.createElement(
@@ -1624,12 +1629,12 @@ const tt = {
1624
1629
  className: "relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",
1625
1630
  style: { width: a, height: a }
1626
1631
  },
1627
- /* @__PURE__ */ e.createElement("span", { className: g("font-semibold text-light-600", u) }, "+", m)
1628
- )), l && /* @__PURE__ */ e.createElement(
1632
+ /* @__PURE__ */ e.createElement("span", { className: f("font-semibold text-light-600", u) }, "+", m)
1633
+ )), s && /* @__PURE__ */ e.createElement(
1629
1634
  "button",
1630
1635
  {
1631
1636
  type: "button",
1632
- onClick: l,
1637
+ onClick: s,
1633
1638
  "aria-label": "Add",
1634
1639
  className: "flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",
1635
1640
  style: { width: a, height: a }
@@ -1654,37 +1659,37 @@ const tt = {
1654
1659
  )
1655
1660
  ));
1656
1661
  };
1657
- rt.displayName = "AvatarGroup";
1658
- const st = {
1662
+ it.displayName = "AvatarGroup";
1663
+ const ot = {
1659
1664
  xs: { nameClass: "text-caption-sm", subtitleClass: "text-caption-sm" },
1660
1665
  sm: { nameClass: "text-caption-lg", subtitleClass: "text-caption-sm" },
1661
1666
  md: { nameClass: "text-caption-lg", subtitleClass: "text-caption-lg" },
1662
1667
  lg: { nameClass: "text-body-sm", subtitleClass: "text-body-sm" },
1663
1668
  xl: { nameClass: "text-body-lg", subtitleClass: "text-body-sm" }
1664
- }, at = ({
1669
+ }, ct = ({
1665
1670
  name: t,
1666
- subtitle: s,
1671
+ subtitle: l,
1667
1672
  src: r,
1668
- initials: l,
1669
- size: i = "xs",
1673
+ initials: s,
1674
+ size: n = "xs",
1670
1675
  status: a = "none",
1671
- statusIcon: c,
1672
- className: n
1676
+ statusIcon: d,
1677
+ className: o
1673
1678
  }) => {
1674
- const { nameClass: u, subtitleClass: o } = st[i];
1675
- return /* @__PURE__ */ e.createElement("div", { className: g("inline-flex items-center gap-2", n) }, /* @__PURE__ */ e.createElement(
1676
- _,
1679
+ const { nameClass: u, subtitleClass: c } = ot[n];
1680
+ return /* @__PURE__ */ e.createElement("div", { className: f("inline-flex items-center gap-2", o) }, /* @__PURE__ */ e.createElement(
1681
+ R,
1677
1682
  {
1678
1683
  src: r,
1679
- initials: l,
1680
- size: i,
1684
+ initials: s,
1685
+ size: n,
1681
1686
  status: a,
1682
- statusIcon: c
1687
+ statusIcon: d
1683
1688
  }
1684
- ), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-start whitespace-nowrap" }, /* @__PURE__ */ e.createElement("span", { className: g("font-bold text-light-800", u) }, t), s && /* @__PURE__ */ e.createElement("span", { className: g("font-normal text-light-700", o) }, s)));
1689
+ ), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-start whitespace-nowrap" }, /* @__PURE__ */ e.createElement("span", { className: f("font-bold text-light-800", u) }, t), l && /* @__PURE__ */ e.createElement("span", { className: f("font-normal text-light-700", c) }, l)));
1685
1690
  };
1686
- at.displayName = "AvatarLabelGroup";
1687
- const lt = {
1691
+ ct.displayName = "AvatarLabelGroup";
1692
+ const dt = {
1688
1693
  sm: {
1689
1694
  box: 72,
1690
1695
  ringWidth: 3,
@@ -1712,98 +1717,98 @@ const lt = {
1712
1717
  verifiedSize: 32,
1713
1718
  verifiedOffset: 4
1714
1719
  }
1715
- }, it = ({
1720
+ }, ut = ({
1716
1721
  src: t,
1717
- alt: s,
1722
+ alt: l,
1718
1723
  initials: r,
1719
- size: l = "sm",
1720
- verified: i = !0,
1724
+ size: s = "sm",
1725
+ verified: n = !0,
1721
1726
  contrastBorder: a = !0,
1722
- className: c
1727
+ className: d
1723
1728
  }) => {
1724
1729
  const {
1725
- box: n,
1730
+ box: o,
1726
1731
  ringWidth: u,
1727
- shadowClass: o,
1732
+ shadowClass: c,
1728
1733
  iconSize: m,
1729
- textClass: p,
1730
- verifiedSize: f,
1734
+ textClass: g,
1735
+ verifiedSize: b,
1731
1736
  verifiedOffset: h
1732
- } = lt[l], E = t ? "image" : r !== void 0 ? "initials" : "placeholder";
1737
+ } = dt[s], N = t ? "image" : r !== void 0 ? "initials" : "placeholder";
1733
1738
  return /* @__PURE__ */ e.createElement(
1734
1739
  "div",
1735
1740
  {
1736
- className: g("relative rounded-full", c),
1737
- style: { width: n, height: n }
1741
+ className: f("relative rounded-full", d),
1742
+ style: { width: o, height: o }
1738
1743
  },
1739
1744
  /* @__PURE__ */ e.createElement(
1740
1745
  "div",
1741
1746
  {
1742
- className: g(
1747
+ className: f(
1743
1748
  "absolute inset-0 overflow-hidden rounded-full border-white",
1744
- o,
1745
- E !== "image" && "bg-light-100"
1749
+ c,
1750
+ N !== "image" && "bg-light-100"
1746
1751
  ),
1747
1752
  style: { borderWidth: u, borderStyle: "solid" }
1748
1753
  },
1749
- E === "image" && /* @__PURE__ */ e.createElement(
1754
+ N === "image" && /* @__PURE__ */ e.createElement(
1750
1755
  "img",
1751
1756
  {
1752
1757
  src: t,
1753
- alt: s ?? "",
1758
+ alt: l ?? "",
1754
1759
  className: "absolute inset-0 size-full rounded-full object-cover"
1755
1760
  }
1756
1761
  ),
1757
1762
  a && /* @__PURE__ */ e.createElement("div", { className: "pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]" }),
1758
- E === "placeholder" && /* @__PURE__ */ e.createElement("div", { className: "absolute inset-0 flex items-center justify-center" }, /* @__PURE__ */ e.createElement(
1759
- le,
1763
+ N === "placeholder" && /* @__PURE__ */ e.createElement("div", { className: "absolute inset-0 flex items-center justify-center" }, /* @__PURE__ */ e.createElement(
1764
+ ue,
1760
1765
  {
1761
1766
  className: "text-light-300",
1762
1767
  style: { width: m, height: m }
1763
1768
  }
1764
1769
  )),
1765
- E === "initials" && /* @__PURE__ */ e.createElement(
1770
+ N === "initials" && /* @__PURE__ */ e.createElement(
1766
1771
  "div",
1767
1772
  {
1768
- className: g(
1773
+ className: f(
1769
1774
  "absolute inset-0 flex items-center justify-center font-semibold text-light-500",
1770
- p
1775
+ g
1771
1776
  )
1772
1777
  },
1773
1778
  r
1774
1779
  )
1775
1780
  ),
1776
- i && /* @__PURE__ */ e.createElement(
1781
+ n && /* @__PURE__ */ e.createElement(
1777
1782
  "div",
1778
1783
  {
1779
1784
  className: "absolute",
1780
1785
  style: {
1781
- width: f,
1782
- height: f,
1786
+ width: b,
1787
+ height: b,
1783
1788
  bottom: h,
1784
1789
  right: h
1785
1790
  }
1786
1791
  },
1787
- /* @__PURE__ */ e.createElement(ie, { className: "size-full" })
1792
+ /* @__PURE__ */ e.createElement(me, { className: "size-full" })
1788
1793
  )
1789
1794
  );
1790
1795
  };
1791
- it.displayName = "AvatarProfilePhoto";
1792
- const nt = {
1796
+ ut.displayName = "AvatarProfilePhoto";
1797
+ const mt = {
1793
1798
  "button-gray": { sm: "h-9 px-3 py-2 text-sm gap-2", md: "h-11 px-3 py-2 text-base gap-2" },
1794
1799
  "button-white": { sm: "h-9 px-3 py-2 text-sm gap-2", md: "h-11 px-3 py-2 text-base gap-2" },
1795
1800
  "button-primary": { sm: "h-9 px-3 py-2 text-sm gap-2", md: "h-11 px-3 py-2 text-base gap-2" },
1796
1801
  underline: { sm: "h-8 px-1 pb-3 text-sm gap-2", md: "h-9 px-1 pb-3 text-base gap-2" },
1797
1802
  "underline-filled": { sm: "h-11 p-3 text-sm gap-2", md: "h-12 p-3 text-base gap-2" },
1798
1803
  line: { sm: "h-9 px-3 py-2 text-sm gap-2", md: "h-11 px-3.5 py-2.5 text-base gap-2" }
1799
- }, ot = {
1804
+ }, gt = {
1800
1805
  "button-gray": "rounded-md",
1801
1806
  "button-white": "rounded-md",
1802
1807
  "button-primary": "rounded-md",
1803
1808
  underline: "rounded-none",
1804
1809
  "underline-filled": "rounded-none",
1805
1810
  line: "rounded-none"
1806
- }, ct = {
1811
+ }, pt = {
1807
1812
  "button-gray": {
1808
1813
  active: "bg-light-50 text-light-700",
1809
1814
  inactive: "bg-transparent text-light-500",
@@ -1840,77 +1845,77 @@ const nt = {
1840
1845
  hoverInactive: "hover:border-primary-500 hover:text-primary-700",
1841
1846
  hasFocusRing: !0
1842
1847
  }
1843
- }, dt = "inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700", ut = {
1848
+ }, ft = "inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700", bt = {
1844
1849
  "button-gray": { gapClass: "gap-1", hasHairline: !1 },
1845
1850
  "button-white": { gapClass: "gap-1", hasHairline: !1 },
1846
1851
  "button-primary": { gapClass: "gap-1", hasHairline: !1 },
1847
1852
  underline: { gapClass: "gap-3", hasHairline: !0 },
1848
1853
  "underline-filled": { gapClass: "gap-3", hasHairline: !0 },
1849
1854
  line: { gapClass: "gap-1", hasHairline: !1 }
1850
- }, mt = ({
1855
+ }, ht = ({
1851
1856
  children: t,
1852
- variant: s = "button-primary",
1857
+ variant: l = "button-primary",
1853
1858
  size: r = "sm",
1854
- active: l = !1,
1855
- fullWidth: i = !1,
1859
+ active: s = !1,
1860
+ fullWidth: n = !1,
1856
1861
  count: a,
1857
- disabled: c = !1,
1858
- onClick: n,
1862
+ disabled: d = !1,
1863
+ onClick: o,
1859
1864
  className: u
1860
1865
  }) => {
1861
- const o = ct[s];
1866
+ const c = pt[l];
1862
1867
  return /* @__PURE__ */ e.createElement(
1863
1868
  "button",
1864
1869
  {
1865
1870
  type: "button",
1866
1871
  role: "tab",
1867
- "aria-selected": l,
1868
- disabled: c,
1869
- onClick: n,
1870
- className: g(
1872
+ "aria-selected": s,
1873
+ disabled: d,
1874
+ onClick: o,
1875
+ className: f(
1871
1876
  "inline-flex items-center justify-center font-semibold transition-colors duration-150",
1872
- nt[s][r],
1873
- ot[s],
1874
- l ? o.active : o.inactive,
1875
- !l && !c && o.hoverInactive,
1876
- o.hasFocusRing && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",
1877
- i && "w-full",
1878
- c ? "cursor-not-allowed opacity-60" : "cursor-pointer",
1877
+ mt[l][r],
1878
+ gt[l],
1879
+ s ? c.active : c.inactive,
1880
+ !s && !d && c.hoverInactive,
1881
+ c.hasFocusRing && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",
1882
+ n && "w-full",
1883
+ d ? "cursor-not-allowed opacity-60" : "cursor-pointer",
1879
1884
  u
1880
1885
  )
1881
1886
  },
1882
1887
  /* @__PURE__ */ e.createElement("span", { className: "whitespace-nowrap" }, t),
1883
- a !== void 0 && /* @__PURE__ */ e.createElement("span", { className: dt }, a)
1888
+ a !== void 0 && /* @__PURE__ */ e.createElement("span", { className: ft }, a)
1884
1889
  );
1885
1890
  };
1886
- mt.displayName = "Tab";
1887
- const pt = ({
1891
+ ht.displayName = "Tab";
1892
+ const xt = ({
1888
1893
  children: t,
1889
- variant: s = "button-primary",
1894
+ variant: l = "button-primary",
1890
1895
  orientation: r = "horizontal",
1891
- boxed: l = !1,
1892
- className: i
1896
+ boxed: s = !1,
1897
+ className: n
1893
1898
  }) => {
1894
- const { gapClass: a, hasHairline: c } = ut[s];
1899
+ const { gapClass: a, hasHairline: d } = bt[l];
1895
1900
  return /* @__PURE__ */ e.createElement(
1896
1901
  "div",
1897
1902
  {
1898
1903
  role: "tablist",
1899
1904
  "aria-orientation": r,
1900
- className: g(
1905
+ className: f(
1901
1906
  "inline-flex",
1902
1907
  r === "vertical" ? "flex-col items-stretch" : "flex-row items-center",
1903
1908
  a,
1904
- l && "rounded-lg border border-light-200 bg-light-50 p-1",
1905
- c && r === "horizontal" && !l && "border-b border-light-200",
1906
- i
1909
+ s && "rounded-lg border border-light-200 bg-light-50 p-1",
1910
+ d && r === "horizontal" && !s && "border-b border-light-200",
1911
+ n
1907
1912
  )
1908
1913
  },
1909
1914
  t
1910
1915
  );
1911
1916
  };
1912
- pt.displayName = "TabList";
1913
- const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
1917
+ xt.displayName = "TabList";
1918
+ const vt = p("flex flex-col gap-1 w-full", {
1914
1919
  variants: {
1915
1920
  size: {
1916
1921
  xs: "text-caption-sm",
@@ -1921,7 +1926,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
1921
1926
  defaultVariants: {
1922
1927
  size: "md"
1923
1928
  }
1924
- }), bt = b("flex items-center gap-1 font-bold text-sm", {
1929
+ }), yt = p("flex items-center gap-1 font-bold text-sm", {
1925
1930
  variants: {
1926
1931
  error: {
1927
1932
  true: "",
@@ -1931,7 +1936,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
1931
1936
  defaultVariants: {
1932
1937
  error: !1
1933
1938
  }
1934
- }), ft = b(
1939
+ }), wt = p(
1935
1940
  [
1936
1941
  "flex items-center w-full border",
1937
1942
  "bg-white transition-[border-color,border-width]"
@@ -1964,7 +1969,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
1964
1969
  disabled: !1
1965
1970
  }
1966
1971
  }
1967
- ), ht = b(
1972
+ ), Et = p(
1968
1973
  [
1969
1974
  "flex-1 bg-transparent outline-none text-light-900",
1970
1975
  "placeholder:text-light-500",
@@ -1987,14 +1992,14 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
1987
1992
  error: !1
1988
1993
  }
1989
1994
  }
1990
- ), xt = b("text-caption-lg", {
1995
+ ), Nt = p("text-caption-lg", {
1991
1996
  variants: {
1992
1997
  error: {
1993
1998
  true: "text-error-500",
1994
1999
  false: "text-light-700"
1995
2000
  }
1996
2001
  }
1997
- }), vt = b(
2002
+ }), kt = p(
1998
2003
  "flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",
1999
2004
  {
2000
2005
  variants: {
@@ -2020,7 +2025,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2020
2025
  },
2021
2026
  defaultVariants: { size: "md", error: !1, disabled: !1 }
2022
2027
  }
2023
- ), yt = b("flex flex-1 items-center min-w-0", {
2028
+ ), St = p("flex flex-1 items-center min-w-0", {
2024
2029
  variants: {
2025
2030
  size: {
2026
2031
  xs: "gap-1 px-2 py-1",
@@ -2033,7 +2038,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2033
2038
  }
2034
2039
  },
2035
2040
  defaultVariants: { size: "md", disabled: !1 }
2036
- }), wt = b("flex items-center text-light-700 whitespace-nowrap border-r border-light-200", {
2041
+ }), Ct = p("flex items-center text-light-700 whitespace-nowrap border-r border-light-200", {
2037
2042
  variants: {
2038
2043
  size: {
2039
2044
  xs: "px-2 text-caption-sm",
@@ -2042,7 +2047,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2042
2047
  }
2043
2048
  },
2044
2049
  defaultVariants: { size: "md" }
2045
- }), K = b(
2050
+ }), U = p(
2046
2051
  [
2047
2052
  "flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer",
2048
2053
  "hover:bg-transparent hover:text-light-900",
@@ -2058,7 +2063,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2058
2063
  },
2059
2064
  defaultVariants: { size: "md" }
2060
2065
  }
2061
- ), Et = b(
2066
+ ), zt = p(
2062
2067
  "flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",
2063
2068
  {
2064
2069
  variants: {
@@ -2070,7 +2075,7 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2070
2075
  },
2071
2076
  defaultVariants: { size: "md" }
2072
2077
  }
2073
- ), Z = ({ className: t }) => /* @__PURE__ */ d.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ d.createElement(
2078
+ ), X = ({ className: t }) => /* @__PURE__ */ i.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ i.createElement(
2074
2079
  "path",
2075
2080
  {
2076
2081
  d: "M5 7.5L10 12.5L15 7.5",
@@ -2079,98 +2084,98 @@ const gt = b("flex flex-col gap-1 w-full max-w-[320px]", {
2079
2084
  strokeLinecap: "round",
2080
2085
  strokeLinejoin: "round"
2081
2086
  }
2082
- )), Nt = {
2087
+ )), Lt = {
2083
2088
  xs: "h-7",
2084
2089
  // 18px (caption-sm) + 8 + 2 = 28px
2085
2090
  sm: "h-[30px]",
2086
2091
  // 20px (caption-lg) + 8 + 2 = 30px
2087
2092
  md: "h-[34px]"
2088
2093
  // 24px (body-sm) + 8 + 2 = 34px
2089
- }, kt = ({ size: t, error: s, disabled: r }) => g(
2094
+ }, Bt = ({ size: t, error: l, disabled: r }) => f(
2090
2095
  "flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",
2091
- Nt[t],
2092
- s ? "border-error-200 focus-within:border-2 focus-within:border-error-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
2096
+ Lt[t],
2097
+ l ? "border-error-200 focus-within:border-2 focus-within:border-error-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
2093
2098
  r && "bg-light-100 text-light-400 cursor-not-allowed"
2094
- ), St = ({ error: t }) => g("flex items-center gap-1 text-caption-sm font-semibold", t ? "" : "text-light-800"), Ct = "flex flex-col w-full max-w-[320px]";
2095
- function j({
2096
- label: t,
2097
- required: s,
2098
- hint: r,
2099
- rightIcon: l,
2100
- size: i = "md",
2101
- error: a = !1,
2102
- disabled: c = !1,
2103
- compact: n = !1,
2104
- hideCalendarIcon: u = !1,
2105
- type: o,
2106
- prefix: m,
2107
- suffix: p,
2108
- leadingAddon: f,
2109
- leadingDropdown: h,
2110
- trailingDropdown: E,
2111
- trailingButton: w,
2112
- maxLength: k,
2113
- value: y,
2114
- className: x,
2115
- wrapperClassName: N,
2116
- ...C
2117
- }) {
2118
- const L = !!(f || w), S = /* @__PURE__ */ d.createElement(d.Fragment, null, h && /* @__PURE__ */ d.createElement(
2099
+ ), Tt = ({ error: t }) => f("flex items-center gap-1 text-caption-sm font-semibold", t ? "" : "text-light-800"), Vt = "flex flex-col w-full max-w-[320px]", $ = i.forwardRef(function({
2100
+ label: l,
2101
+ required: r,
2102
+ hint: s,
2103
+ rightIcon: n,
2104
+ size: a = "md",
2105
+ error: d = !1,
2106
+ disabled: o = !1,
2107
+ compact: u = !1,
2108
+ hideCalendarIcon: c = !1,
2109
+ type: m,
2110
+ prefix: g,
2111
+ suffix: b,
2112
+ leadingAddon: h,
2113
+ leadingDropdown: N,
2114
+ trailingDropdown: k,
2115
+ trailingButton: S,
2116
+ maxLength: w,
2117
+ value: v,
2118
+ className: y,
2119
+ wrapperClassName: E,
2120
+ ...B
2121
+ }, C) {
2122
+ const z = !!(h || S), L = /* @__PURE__ */ i.createElement(i.Fragment, null, N && /* @__PURE__ */ i.createElement(
2119
2123
  "button",
2120
2124
  {
2121
2125
  type: "button",
2122
- onClick: h.onClick,
2123
- disabled: h.disabled || c,
2124
- className: K({ size: i })
2126
+ onClick: N.onClick,
2127
+ disabled: N.disabled || o,
2128
+ className: U({ size: a })
2125
2129
  },
2126
- /* @__PURE__ */ d.createElement("span", null, h.value),
2127
- /* @__PURE__ */ d.createElement(Z, { className: "size-5 text-light-500" })
2128
- ), m && /* @__PURE__ */ d.createElement("div", { className: "flex items-center" }, m), /* @__PURE__ */ d.createElement(
2130
+ /* @__PURE__ */ i.createElement("span", null, N.value),
2131
+ /* @__PURE__ */ i.createElement(X, { className: "size-5 text-light-500" })
2132
+ ), g && /* @__PURE__ */ i.createElement("div", { className: "flex items-center" }, g), /* @__PURE__ */ i.createElement(
2129
2133
  "input",
2130
2134
  {
2131
- ...C,
2132
- type: o,
2133
- disabled: c,
2134
- maxLength: k,
2135
- value: y,
2136
- className: g(
2137
- ht({ size: i, error: a }),
2135
+ ...B,
2136
+ ref: C,
2137
+ type: m,
2138
+ disabled: o,
2139
+ maxLength: w,
2140
+ value: v,
2141
+ className: f(
2142
+ Et({ size: a, error: d }),
2138
2143
  "h-full",
2139
- u && "[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",
2140
- o === "date" && "[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",
2141
- x
2144
+ c && "[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",
2145
+ m === "date" && "[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",
2146
+ y
2142
2147
  )
2143
2148
  }
2144
- ), (l || p) && /* @__PURE__ */ d.createElement("div", { className: "flex h-full items-center gap-2" }, l && /* @__PURE__ */ d.createElement("div", { className: "flex h-full items-center pb-0.5 text-light-400 hover:text-light-600" }, l), p && /* @__PURE__ */ d.createElement("div", { className: "flex h-full items-center gap-1 leading-none text-light-700" }, p)), E && /* @__PURE__ */ d.createElement(
2149
+ ), (n || b) && /* @__PURE__ */ i.createElement("div", { className: "flex h-full items-center gap-2" }, n && /* @__PURE__ */ i.createElement("div", { className: "flex h-full items-center pb-0.5 text-light-400 hover:text-light-600" }, n), b && /* @__PURE__ */ i.createElement("div", { className: "flex h-full items-center gap-1 leading-none text-light-700" }, b)), k && /* @__PURE__ */ i.createElement(
2145
2150
  "button",
2146
2151
  {
2147
2152
  type: "button",
2148
- onClick: E.onClick,
2149
- disabled: E.disabled || c,
2150
- className: K({ size: i })
2153
+ onClick: k.onClick,
2154
+ disabled: k.disabled || o,
2155
+ className: U({ size: a })
2151
2156
  },
2152
- /* @__PURE__ */ d.createElement("span", null, E.value),
2153
- /* @__PURE__ */ d.createElement(Z, { className: "size-5 text-light-500" })
2157
+ /* @__PURE__ */ i.createElement("span", null, k.value),
2158
+ /* @__PURE__ */ i.createElement(X, { className: "size-5 text-light-500" })
2154
2159
  ));
2155
- return /* @__PURE__ */ d.createElement("div", { className: g(n ? Ct : gt({ size: i }), N) }, t && /* @__PURE__ */ d.createElement("label", { className: n ? St({ error: a }) : bt({ error: a }) }, t, s && /* @__PURE__ */ d.createElement("span", { className: "text-error-400" }, "*")), L ? /* @__PURE__ */ d.createElement("div", { className: vt({ size: i, error: a, disabled: c }) }, f && /* @__PURE__ */ d.createElement("div", { className: wt({ size: i }) }, f), /* @__PURE__ */ d.createElement("div", { className: yt({ size: i, disabled: c }) }, S), w && /* @__PURE__ */ d.createElement(
2160
+ return /* @__PURE__ */ i.createElement("div", { className: f(u ? Vt : vt({ size: a }), E) }, l && /* @__PURE__ */ i.createElement("label", { className: u ? Tt({ error: d }) : yt({ error: d }) }, l, r && /* @__PURE__ */ i.createElement("span", { className: "text-error-400" }, "*")), z ? /* @__PURE__ */ i.createElement("div", { className: kt({ size: a, error: d, disabled: o }) }, h && /* @__PURE__ */ i.createElement("div", { className: Ct({ size: a }) }, h), /* @__PURE__ */ i.createElement("div", { className: St({ size: a, disabled: o }) }, L), S && /* @__PURE__ */ i.createElement(
2156
2161
  "button",
2157
2162
  {
2158
2163
  type: "button",
2159
- onClick: w.onClick,
2160
- disabled: w.disabled || c,
2161
- className: Et({ size: i })
2164
+ onClick: S.onClick,
2165
+ disabled: S.disabled || o,
2166
+ className: zt({ size: a })
2162
2167
  },
2163
- w.icon,
2164
- /* @__PURE__ */ d.createElement("span", null, w.label)
2165
- )) : /* @__PURE__ */ d.createElement("div", { className: n ? kt({ size: i, error: a, disabled: c }) : ft({ size: i, error: a, disabled: c }) }, S), k && typeof y == "string" && /* @__PURE__ */ d.createElement("div", { className: "text-right text-xs text-light-400" }, y.length, "/", k), r && /* @__PURE__ */ d.createElement("p", { className: xt({ error: a }) }, r));
2166
- }
2167
- function zt({ children: t }) {
2168
+ S.icon,
2169
+ /* @__PURE__ */ i.createElement("span", null, S.label)
2170
+ )) : /* @__PURE__ */ i.createElement("div", { className: u ? Bt({ size: a, error: d, disabled: o }) : wt({ size: a, error: d, disabled: o }) }, L), w && typeof v == "string" && /* @__PURE__ */ i.createElement("div", { className: "text-right text-xs text-light-400" }, v.length, "/", w), s && /* @__PURE__ */ i.createElement("p", { className: Nt({ error: d }) }, s));
2171
+ });
2172
+ function It({ children: t }) {
2168
2173
  return /* @__PURE__ */ React.createElement("div", { className: "flex items-center text-light-500" }, t);
2169
2174
  }
2170
- function Lt({ children: t }) {
2175
+ function Ot({ children: t }) {
2171
2176
  return /* @__PURE__ */ React.createElement("div", { className: "flex items-center text-light-500" }, t);
2172
2177
  }
2173
- var Bt = {
2178
+ var _t = {
2174
2179
  outline: {
2175
2180
  xmlns: "http://www.w3.org/2000/svg",
2176
2181
  width: 24,
@@ -2191,184 +2196,188 @@ var Bt = {
2191
2196
  stroke: "none"
2192
2197
  }
2193
2198
  };
2194
- const Tt = (t, s, r, l) => {
2195
- const i = pe(
2196
- ({ color: a = "currentColor", size: c = 24, stroke: n = 2, title: u, className: o, children: m, ...p }, f) => M(
2199
+ const M = (t, l, r, s) => {
2200
+ const n = ve(
2201
+ ({ color: a = "currentColor", size: d = 24, stroke: o = 2, title: u, className: c, children: m, ...g }, b) => P(
2197
2202
  "svg",
2198
2203
  {
2199
- ref: f,
2200
- ...Bt[t],
2201
- width: c,
2202
- height: c,
2203
- className: ["tabler-icon", `tabler-icon-${s}`, o].join(" "),
2204
- strokeWidth: n,
2204
+ ref: b,
2205
+ ..._t[t],
2206
+ width: d,
2207
+ height: d,
2208
+ className: ["tabler-icon", `tabler-icon-${l}`, c].join(" "),
2209
+ strokeWidth: o,
2205
2210
  stroke: a,
2206
- ...p
2211
+ ...g
2207
2212
  },
2208
2213
  [
2209
- u && M("title", { key: "svg-title" }, u),
2210
- ...l.map(([h, E]) => M(h, E)),
2214
+ u && P("title", { key: "svg-title" }, u),
2215
+ ...s.map(([h, N]) => P(h, N)),
2211
2216
  ...Array.isArray(m) ? m : [m]
2212
2217
  ]
2213
2218
  )
2214
2219
  );
2215
- return i.displayName = `${r}`, i;
2220
+ return n.displayName = `${r}`, n;
2216
2221
  };
2217
- const Vt = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], ne = Tt("outline", "chevron-down", "ChevronDown", Vt);
2218
- function Wr({
2222
+ const jt = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], Q = M("outline", "alert-circle", "AlertCircle", jt);
2223
+ const $t = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], ge = M("outline", "chevron-down", "ChevronDown", $t);
2224
+ const Mt = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }], ["path", { d: "M9 12l2 2l4 -4", key: "svg-1" }]], Wt = M("outline", "circle-check", "CircleCheck", Mt);
2225
+ const Rt = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 9h.01", key: "svg-1" }], ["path", { d: "M11 12h1v4h1", key: "svg-2" }]], D = M("outline", "info-circle", "InfoCircle", Rt);
2226
+ const At = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]], Pt = M("outline", "x", "X", At);
2227
+ function ls({
2219
2228
  size: t = "md",
2220
- label: s,
2229
+ label: l,
2221
2230
  required: r,
2222
- hint: l,
2223
- error: i,
2231
+ hint: s,
2232
+ error: n,
2224
2233
  disabled: a,
2225
- placeholder: c = "+1 (555) 000-0000",
2226
- rightIcon: n,
2234
+ placeholder: d = "+1 (555) 000-0000",
2235
+ rightIcon: o,
2227
2236
  value: u,
2228
- onChange: o,
2237
+ onChange: c,
2229
2238
  className: m,
2230
- wrapperClassName: p
2239
+ wrapperClassName: g
2231
2240
  }) {
2232
- return /* @__PURE__ */ d.createElement(
2233
- j,
2241
+ return /* @__PURE__ */ i.createElement(
2242
+ $,
2234
2243
  {
2235
2244
  size: t,
2236
- label: s,
2245
+ label: l,
2237
2246
  required: r,
2238
- hint: l,
2239
- error: i,
2247
+ hint: s,
2248
+ error: n,
2240
2249
  disabled: a,
2241
- placeholder: c,
2242
- rightIcon: n,
2250
+ placeholder: d,
2251
+ rightIcon: o,
2243
2252
  value: u,
2244
- onChange: o,
2253
+ onChange: c,
2245
2254
  className: m,
2246
- wrapperClassName: p,
2247
- prefix: /* @__PURE__ */ d.createElement("div", { className: "flex items-center gap-1 pr-2 text-sm text-light-700" }, /* @__PURE__ */ d.createElement("span", null, "US"), /* @__PURE__ */ d.createElement(ne, { size: 14 }))
2255
+ wrapperClassName: g,
2256
+ prefix: /* @__PURE__ */ i.createElement("div", { className: "flex items-center gap-1 pr-2 text-sm text-light-700" }, /* @__PURE__ */ i.createElement("span", null, "US"), /* @__PURE__ */ i.createElement(ge, { size: 14 }))
2248
2257
  }
2249
2258
  );
2250
2259
  }
2251
- function Rr({
2260
+ function ns({
2252
2261
  size: t = "md",
2253
- label: s,
2262
+ label: l,
2254
2263
  required: r,
2255
- hint: l,
2256
- error: i,
2264
+ hint: s,
2265
+ error: n,
2257
2266
  disabled: a,
2258
- value: c,
2259
- placeholder: n = "1,000.00",
2267
+ value: d,
2268
+ placeholder: o = "1,000.00",
2260
2269
  currency: u = "USD",
2261
- onCurrencyChange: o,
2270
+ onCurrencyChange: c,
2262
2271
  rightIcon: m,
2263
- onChange: p,
2264
- className: f,
2272
+ onChange: g,
2273
+ className: b,
2265
2274
  wrapperClassName: h
2266
2275
  }) {
2267
- return /* @__PURE__ */ d.createElement(
2268
- j,
2276
+ return /* @__PURE__ */ i.createElement(
2277
+ $,
2269
2278
  {
2270
2279
  size: t,
2271
- label: s,
2280
+ label: l,
2272
2281
  required: r,
2273
- hint: l,
2274
- error: i,
2282
+ hint: s,
2283
+ error: n,
2275
2284
  disabled: a,
2276
- value: c,
2277
- placeholder: n,
2285
+ value: d,
2286
+ placeholder: o,
2278
2287
  rightIcon: m,
2279
- onChange: p,
2280
- className: f,
2288
+ onChange: g,
2289
+ className: b,
2281
2290
  wrapperClassName: h,
2282
- prefix: /* @__PURE__ */ d.createElement("span", { className: "select-none text-sm text-light-700" }, "$"),
2283
- suffix: /* @__PURE__ */ d.createElement(
2291
+ prefix: /* @__PURE__ */ i.createElement("span", { className: "select-none text-sm text-light-700" }, "$"),
2292
+ suffix: /* @__PURE__ */ i.createElement(
2284
2293
  "button",
2285
2294
  {
2286
2295
  type: "button",
2287
2296
  disabled: a,
2288
- onClick: o,
2297
+ onClick: c,
2289
2298
  className: "flex items-center gap-1 text-sm text-light-700 hover:text-light-900 disabled:cursor-not-allowed"
2290
2299
  },
2291
2300
  u,
2292
- /* @__PURE__ */ d.createElement(ne, { size: 14 })
2301
+ /* @__PURE__ */ i.createElement(ge, { size: 14 })
2293
2302
  )
2294
2303
  }
2295
2304
  );
2296
2305
  }
2297
- function Mr({
2306
+ function is({
2298
2307
  size: t = "md",
2299
- label: s,
2308
+ label: l,
2300
2309
  required: r,
2301
- hint: l,
2302
- disabled: i,
2310
+ hint: s,
2311
+ disabled: n,
2303
2312
  error: a,
2304
- className: c,
2305
- wrapperClassName: n,
2313
+ className: d,
2314
+ wrapperClassName: o,
2306
2315
  value: u,
2307
- maxLength: o,
2316
+ maxLength: c,
2308
2317
  placeholder: m,
2309
- onChange: p
2318
+ onChange: g
2310
2319
  }) {
2311
- const f = u.length > o, h = a || f;
2312
- return /* @__PURE__ */ d.createElement(
2313
- j,
2320
+ const b = u.length > c, h = a || b;
2321
+ return /* @__PURE__ */ i.createElement(
2322
+ $,
2314
2323
  {
2315
2324
  size: t,
2316
- label: s,
2325
+ label: l,
2317
2326
  required: r,
2318
- disabled: i,
2327
+ disabled: n,
2319
2328
  error: h,
2320
2329
  value: u,
2321
2330
  placeholder: m,
2322
- onChange: p,
2323
- className: c,
2324
- wrapperClassName: n,
2325
- hint: l,
2326
- suffix: /* @__PURE__ */ d.createElement(
2331
+ onChange: g,
2332
+ className: d,
2333
+ wrapperClassName: o,
2334
+ hint: s,
2335
+ suffix: /* @__PURE__ */ i.createElement(
2327
2336
  "span",
2328
2337
  {
2329
- className: g(
2338
+ className: f(
2330
2339
  "text-caption-lg",
2331
- f ? "text-error-600" : "text-light-400"
2340
+ b ? "text-error-600" : "text-light-400"
2332
2341
  )
2333
2342
  },
2334
2343
  u.length,
2335
2344
  "/",
2336
- o
2345
+ c
2337
2346
  )
2338
2347
  }
2339
2348
  );
2340
2349
  }
2341
- function Ar({
2350
+ function os({
2342
2351
  size: t = "md",
2343
- label: s = "Card number",
2352
+ label: l = "Card number",
2344
2353
  required: r,
2345
- hint: l,
2346
- error: i,
2354
+ hint: s,
2355
+ error: n,
2347
2356
  disabled: a,
2348
- placeholder: c = "Card number",
2349
- value: n,
2357
+ placeholder: d = "Card number",
2358
+ value: o,
2350
2359
  onChange: u,
2351
- rightIcon: o,
2360
+ rightIcon: c,
2352
2361
  prefix: m,
2353
- className: p,
2354
- wrapperClassName: f
2362
+ className: g,
2363
+ wrapperClassName: b
2355
2364
  }) {
2356
- return /* @__PURE__ */ d.createElement(
2357
- j,
2365
+ return /* @__PURE__ */ i.createElement(
2366
+ $,
2358
2367
  {
2359
2368
  size: t,
2360
- label: s,
2369
+ label: l,
2361
2370
  required: r,
2362
- hint: l,
2363
- error: i,
2371
+ hint: s,
2372
+ error: n,
2364
2373
  disabled: a,
2365
- placeholder: c,
2366
- value: n,
2374
+ placeholder: d,
2375
+ value: o,
2367
2376
  onChange: u,
2368
- rightIcon: o,
2369
- className: p,
2370
- wrapperClassName: f,
2371
- prefix: m ?? /* @__PURE__ */ d.createElement(
2377
+ rightIcon: c,
2378
+ className: g,
2379
+ wrapperClassName: b,
2380
+ prefix: m ?? /* @__PURE__ */ i.createElement(
2372
2381
  "img",
2373
2382
  {
2374
2383
  src: "/stories/assets/mastercard.png",
@@ -2381,10 +2390,10 @@ function Ar({
2381
2390
  }
2382
2391
  );
2383
2392
  }
2384
- const oe = j;
2385
- oe.Prefix = zt;
2386
- oe.Suffix = Lt;
2387
- const jt = "flex flex-col gap-1 w-full max-w-[320px]", It = b("flex items-center gap-1 font-bold text-sm", {
2393
+ const pe = $;
2394
+ pe.Prefix = It;
2395
+ pe.Suffix = Ot;
2396
+ const Dt = "flex flex-col gap-1 w-full", Gt = p("flex items-center gap-1 font-bold text-sm", {
2388
2397
  variants: {
2389
2398
  error: {
2390
2399
  true: "",
@@ -2394,7 +2403,7 @@ const jt = "flex flex-col gap-1 w-full max-w-[320px]", It = b("flex items-center
2394
2403
  defaultVariants: {
2395
2404
  error: !1
2396
2405
  }
2397
- }), Ot = b(
2406
+ }), Ft = p(
2398
2407
  [
2399
2408
  "flex w-full gap-2 border rounded-lg p-3 bg-white",
2400
2409
  "transition-[border-color,border-width]"
@@ -2421,7 +2430,7 @@ const jt = "flex flex-col gap-1 w-full max-w-[320px]", It = b("flex items-center
2421
2430
  disabled: !1
2422
2431
  }
2423
2432
  }
2424
- ), _t = b(
2433
+ ), Ht = p(
2425
2434
  [
2426
2435
  "flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900",
2427
2436
  "placeholder:text-light-500",
@@ -2438,7 +2447,7 @@ const jt = "flex flex-col gap-1 w-full max-w-[320px]", It = b("flex items-center
2438
2447
  resizable: !0
2439
2448
  }
2440
2449
  }
2441
- ), $t = b("text-caption-lg", {
2450
+ ), Kt = p("text-caption-lg", {
2442
2451
  variants: {
2443
2452
  error: {
2444
2453
  true: "text-error-500",
@@ -2448,52 +2457,52 @@ const jt = "flex flex-col gap-1 w-full max-w-[320px]", It = b("flex items-center
2448
2457
  defaultVariants: {
2449
2458
  error: !1
2450
2459
  }
2451
- }), Wt = ({ error: t, disabled: s }) => g(
2460
+ }), qt = ({ error: t, disabled: l }) => f(
2452
2461
  "flex w-full gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",
2453
2462
  t ? "border-error-200 focus-within:border-2 focus-within:border-error-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
2454
- s && "bg-light-100 cursor-not-allowed"
2455
- ), Rt = ({ error: t }) => g("flex items-center gap-1 text-caption-sm font-semibold", t ? "" : "text-light-800"), Mt = (t) => g("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900", "placeholder:text-light-500", t ? "resize-y" : "resize-none"), At = "flex flex-col w-full max-w-[320px]", Pt = e.forwardRef(
2463
+ l && "bg-light-100 cursor-not-allowed"
2464
+ ), Zt = ({ error: t }) => f("flex items-center gap-1 text-caption-sm font-semibold", t ? "" : "text-light-800"), Ut = (t) => f("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900", "placeholder:text-light-500", t ? "resize-y" : "resize-none"), Xt = "flex flex-col w-full max-w-[320px]", Qt = e.forwardRef(
2456
2465
  ({
2457
2466
  label: t,
2458
- required: s,
2467
+ required: l,
2459
2468
  hint: r,
2460
- helpIcon: l,
2461
- error: i = !1,
2469
+ helpIcon: s,
2470
+ error: n = !1,
2462
2471
  disabled: a = !1,
2463
- resizable: c = !0,
2464
- compact: n = !1,
2472
+ resizable: d = !0,
2473
+ compact: o = !1,
2465
2474
  rows: u,
2466
- style: o,
2475
+ style: c,
2467
2476
  className: m,
2468
- wrapperClassName: p,
2469
- ...f
2477
+ wrapperClassName: g,
2478
+ ...b
2470
2479
  }, h) => {
2471
- const E = u ? { minHeight: `${u * 20}px` } : void 0;
2472
- return /* @__PURE__ */ e.createElement("div", { className: g(n ? At : jt, p) }, t && /* @__PURE__ */ e.createElement("label", { className: n ? Rt({ error: i }) : It({ error: i }) }, t, s && /* @__PURE__ */ e.createElement("span", { className: "text-error-400" }, "*"), l), /* @__PURE__ */ e.createElement("div", { className: n ? Wt({ error: i, disabled: a }) : Ot({ error: i, disabled: a }) }, /* @__PURE__ */ e.createElement(
2480
+ const N = u ? { minHeight: `${u * 20}px` } : void 0;
2481
+ return /* @__PURE__ */ e.createElement("div", { className: f(o ? Xt : Dt, g) }, t && /* @__PURE__ */ e.createElement("label", { className: o ? Zt({ error: n }) : Gt({ error: n }) }, t, l && /* @__PURE__ */ e.createElement("span", { className: "text-error-400" }, "*"), s), /* @__PURE__ */ e.createElement("div", { className: o ? qt({ error: n, disabled: a }) : Ft({ error: n, disabled: a }) }, /* @__PURE__ */ e.createElement(
2473
2482
  "textarea",
2474
2483
  {
2475
2484
  ref: h,
2476
2485
  disabled: a,
2477
2486
  rows: u,
2478
- style: { ...E, ...o },
2479
- className: g(
2480
- n ? Mt(c && !a) : _t({ resizable: c && !a }),
2487
+ style: { ...N, ...c },
2488
+ className: f(
2489
+ o ? Ut(d && !a) : Ht({ resizable: d && !a }),
2481
2490
  m
2482
2491
  ),
2483
- ...f
2492
+ ...b
2484
2493
  }
2485
- )), r && /* @__PURE__ */ e.createElement("p", { className: $t({ error: i }) }, r));
2494
+ )), r && /* @__PURE__ */ e.createElement("p", { className: Kt({ error: n }) }, r));
2486
2495
  }
2487
2496
  );
2488
- Pt.displayName = "Textarea";
2489
- const Dt = b("flex w-[320px] flex-col gap-1"), Gt = b("flex items-center gap-1 text-sm font-bold", {
2497
+ Qt.displayName = "Textarea";
2498
+ const Jt = p("flex w-[320px] flex-col gap-1"), Yt = p("flex items-center gap-1 text-sm font-bold", {
2490
2499
  variants: {
2491
2500
  error: {
2492
2501
  true: "text-error-600",
2493
2502
  false: "text-light-800"
2494
2503
  }
2495
2504
  }
2496
- }), Ht = b(["flex items-center", "rounded-lg border bg-white", "overflow-hidden", "transition-colors"], {
2505
+ }), er = p(["flex items-center", "rounded-lg border bg-white", "overflow-hidden", "transition-colors"], {
2497
2506
  variants: {
2498
2507
  size: {
2499
2508
  sm: "h-9 px-2",
@@ -2513,14 +2522,14 @@ const Dt = b("flex w-[320px] flex-col gap-1"), Gt = b("flex items-center gap-1 t
2513
2522
  error: !1,
2514
2523
  disabled: !1
2515
2524
  }
2516
- }), Ft = b(["flex items-center gap-1", "overflow-x-auto overflow-y-hidden", "whitespace-nowrap", "scrollbar-hide", "flex-1"]), Kt = b("flex shrink-0 items-center gap-1 rounded-md bg-white border border-light-200 px-2 py-1 text-caption-lg text-light-800"), Zt = b(["min-w-[120px]", "bg-transparent outline-none", "text-light-900 placeholder:text-light-500"], {
2525
+ }), tr = p(["flex items-center gap-1", "overflow-x-auto overflow-y-hidden", "whitespace-nowrap", "scrollbar-hide", "flex-1"]), rr = p("flex shrink-0 items-center gap-1 rounded-md bg-white border border-light-200 px-2 py-1 text-caption-lg text-light-800"), sr = p(["min-w-[120px]", "bg-transparent outline-none", "text-light-900 placeholder:text-light-500"], {
2517
2526
  variants: {
2518
2527
  disabled: {
2519
2528
  true: "cursor-not-allowed text-light-400",
2520
2529
  false: ""
2521
2530
  }
2522
2531
  }
2523
- }), Ut = b("text-caption-lg", {
2532
+ }), ar = p("text-caption-lg", {
2524
2533
  variants: {
2525
2534
  error: {
2526
2535
  true: "text-error-600",
@@ -2528,64 +2537,64 @@ const Dt = b("flex w-[320px] flex-col gap-1"), Gt = b("flex items-center gap-1 t
2528
2537
  }
2529
2538
  }
2530
2539
  });
2531
- function Pr({
2540
+ function cs({
2532
2541
  size: t = "md",
2533
- label: s,
2542
+ label: l,
2534
2543
  required: r,
2535
- hint: l,
2536
- error: i = !1,
2544
+ hint: s,
2545
+ error: n = !1,
2537
2546
  disabled: a = !1,
2538
- placeholder: c = "Add items",
2539
- rightIcon: n,
2547
+ placeholder: d = "Add items",
2548
+ rightIcon: o,
2540
2549
  className: u,
2541
- wrapperClassName: o,
2550
+ wrapperClassName: c,
2542
2551
  options: m,
2543
- value: p = [],
2544
- onChange: f
2552
+ value: g = [],
2553
+ onChange: b
2545
2554
  }) {
2546
- const h = ge(), [E, w] = be(""), k = (x) => {
2547
- const N = m.find((C) => C.label === x);
2548
- N && (p.some((C) => C.id === N.id) || (f?.([...p, N]), w("")));
2549
- }, y = (x) => {
2550
- f?.(p.filter((N) => N.id !== x));
2555
+ const h = ye(), [N, k] = we(""), S = (v) => {
2556
+ const y = m.find((E) => E.label === v);
2557
+ y && (g.some((E) => E.id === y.id) || (b?.([...g, y]), k("")));
2558
+ }, w = (v) => {
2559
+ b?.(g.filter((y) => y.id !== v));
2551
2560
  };
2552
- return /* @__PURE__ */ d.createElement("div", { className: g(Dt(), o) }, s && /* @__PURE__ */ d.createElement("label", { className: Gt({ error: i }) }, s, r && /* @__PURE__ */ d.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ d.createElement("div", { className: Ht({ size: t, error: i, disabled: a }) }, /* @__PURE__ */ d.createElement("div", { className: Ft() }, p.map((x) => /* @__PURE__ */ d.createElement("span", { key: x.id, className: Kt() }, x.avatar && /* @__PURE__ */ d.createElement(
2561
+ return /* @__PURE__ */ i.createElement("div", { className: f(Jt(), c) }, l && /* @__PURE__ */ i.createElement("label", { className: Yt({ error: n }) }, l, r && /* @__PURE__ */ i.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ i.createElement("div", { className: er({ size: t, error: n, disabled: a }) }, /* @__PURE__ */ i.createElement("div", { className: tr() }, g.map((v) => /* @__PURE__ */ i.createElement("span", { key: v.id, className: rr() }, v.avatar && /* @__PURE__ */ i.createElement(
2553
2562
  "img",
2554
2563
  {
2555
- src: x.avatar,
2556
- alt: x.label,
2564
+ src: v.avatar,
2565
+ alt: v.label,
2557
2566
  className: "h-4 w-4 rounded-full"
2558
2567
  }
2559
- ), x.label, !a && /* @__PURE__ */ d.createElement(
2568
+ ), v.label, !a && /* @__PURE__ */ i.createElement(
2560
2569
  "button",
2561
2570
  {
2562
2571
  type: "button",
2563
- onClick: () => y(x.id),
2572
+ onClick: () => w(v.id),
2564
2573
  className: "ml-1 text-light-500 hover:text-light-700"
2565
2574
  },
2566
2575
  "×"
2567
- ))), /* @__PURE__ */ d.createElement(
2576
+ ))), /* @__PURE__ */ i.createElement(
2568
2577
  "input",
2569
2578
  {
2570
2579
  list: h,
2571
- value: E,
2572
- onChange: (x) => {
2573
- w(x.target.value), k(x.target.value);
2580
+ value: N,
2581
+ onChange: (v) => {
2582
+ k(v.target.value), S(v.target.value);
2574
2583
  },
2575
- placeholder: p.length === 0 ? c : "",
2584
+ placeholder: g.length === 0 ? d : "",
2576
2585
  disabled: a,
2577
- className: g(Zt({ disabled: a }), u)
2586
+ className: f(sr({ disabled: a }), u)
2578
2587
  }
2579
- ), /* @__PURE__ */ d.createElement("datalist", { id: h }, m.map((x) => /* @__PURE__ */ d.createElement("option", { key: x.id, value: x.label })))), n && /* @__PURE__ */ d.createElement("div", { className: "ml-2 flex shrink-0 items-center text-light-400" }, n)), l && /* @__PURE__ */ d.createElement("p", { className: Ut({ error: i }) }, l));
2588
+ ), /* @__PURE__ */ i.createElement("datalist", { id: h }, m.map((v) => /* @__PURE__ */ i.createElement("option", { key: v.id, value: v.label })))), o && /* @__PURE__ */ i.createElement("div", { className: "ml-2 flex shrink-0 items-center text-light-400" }, o)), s && /* @__PURE__ */ i.createElement("p", { className: ar({ error: n }) }, s));
2580
2589
  }
2581
- const qt = b("flex w-[320px] flex-col gap-1"), Qt = b("flex items-center gap-1 font-bold text-sm", {
2590
+ const lr = p("flex w-[320px] flex-col gap-1"), nr = p("flex items-center gap-1 font-bold text-sm", {
2582
2591
  variants: {
2583
2592
  error: {
2584
2593
  true: "",
2585
2594
  false: "text-light-800"
2586
2595
  }
2587
2596
  }
2588
- }), Xt = b("flex items-stretch rounded-lg border bg-white transition-colors", {
2597
+ }), ir = p("flex items-stretch rounded-lg border bg-white transition-colors", {
2589
2598
  variants: {
2590
2599
  error: {
2591
2600
  true: "",
@@ -2596,7 +2605,7 @@ const qt = b("flex w-[320px] flex-col gap-1"), Qt = b("flex items-center gap-1 f
2596
2605
  false: ""
2597
2606
  }
2598
2607
  }
2599
- }), Jt = b("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none", {
2608
+ }), or = p("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none", {
2600
2609
  variants: {
2601
2610
  size: {
2602
2611
  sm: "h-9",
@@ -2607,7 +2616,7 @@ const qt = b("flex w-[320px] flex-col gap-1"), Qt = b("flex items-center gap-1 f
2607
2616
  false: "bg-white"
2608
2617
  }
2609
2618
  }
2610
- }), Yt = "w-px bg-light-200", er = b(["flex flex-1 items-center gap-2 px-3 rounded-r-lg", "transition-shadow", "focus-within:ring-2 focus-within:ring-offset-0"], {
2619
+ }), cr = "w-px bg-light-200", dr = p(["flex flex-1 items-center gap-2 px-3 rounded-r-lg", "transition-shadow", "focus-within:ring-2 focus-within:ring-offset-0"], {
2611
2620
  variants: {
2612
2621
  size: {
2613
2622
  sm: "h-9",
@@ -2622,14 +2631,14 @@ const qt = b("flex w-[320px] flex-col gap-1"), Qt = b("flex items-center gap-1 f
2622
2631
  false: ""
2623
2632
  }
2624
2633
  }
2625
- }), tr = b("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500", {
2634
+ }), ur = p("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500", {
2626
2635
  variants: {
2627
2636
  disabled: {
2628
2637
  true: "text-light-400 cursor-not-allowed",
2629
2638
  false: ""
2630
2639
  }
2631
2640
  }
2632
- }), rr = b("text-caption-lg", {
2641
+ }), mr = p("text-caption-lg", {
2633
2642
  variants: {
2634
2643
  error: {
2635
2644
  true: "text-error-600",
@@ -2637,46 +2646,46 @@ const qt = b("flex w-[320px] flex-col gap-1"), Qt = b("flex items-center gap-1 f
2637
2646
  }
2638
2647
  }
2639
2648
  });
2640
- function Dr({
2649
+ function ds({
2641
2650
  size: t = "md",
2642
- label: s,
2651
+ label: l,
2643
2652
  required: r,
2644
- hint: l,
2645
- error: i = !1,
2653
+ hint: s,
2654
+ error: n = !1,
2646
2655
  disabled: a = !1,
2647
- placeholder: c = "www.cekat.ai",
2648
- value: n,
2656
+ placeholder: d = "www.cekat.ai",
2657
+ value: o,
2649
2658
  rightIcon: u,
2650
- onChange: o,
2659
+ onChange: c,
2651
2660
  className: m,
2652
- wrapperClassName: p
2661
+ wrapperClassName: g
2653
2662
  }) {
2654
- return /* @__PURE__ */ d.createElement("div", { className: g(qt(), p) }, s && /* @__PURE__ */ d.createElement("label", { className: Qt({ error: i }) }, s, r && /* @__PURE__ */ d.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ d.createElement("div", { className: Xt({ error: i, disabled: a }) }, /* @__PURE__ */ d.createElement("div", { className: Jt({ size: t }) }, "http://"), /* @__PURE__ */ d.createElement("div", { className: Yt }), /* @__PURE__ */ d.createElement("div", { className: er({ size: t, error: i, disabled: a }) }, /* @__PURE__ */ d.createElement(
2663
+ return /* @__PURE__ */ i.createElement("div", { className: f(lr(), g) }, l && /* @__PURE__ */ i.createElement("label", { className: nr({ error: n }) }, l, r && /* @__PURE__ */ i.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ i.createElement("div", { className: ir({ error: n, disabled: a }) }, /* @__PURE__ */ i.createElement("div", { className: or({ size: t }) }, "http://"), /* @__PURE__ */ i.createElement("div", { className: cr }), /* @__PURE__ */ i.createElement("div", { className: dr({ size: t, error: n, disabled: a }) }, /* @__PURE__ */ i.createElement(
2655
2664
  "input",
2656
2665
  {
2657
- value: n,
2658
- onChange: o,
2659
- placeholder: c,
2666
+ value: o,
2667
+ onChange: c,
2668
+ placeholder: d,
2660
2669
  disabled: a,
2661
- className: g(tr({ disabled: a }), m)
2670
+ className: f(ur({ disabled: a }), m)
2662
2671
  }
2663
- ), u && /* @__PURE__ */ d.createElement("div", { className: "flex items-center text-light-400" }, u))), l && /* @__PURE__ */ d.createElement("p", { className: rr({ error: i }) }, l));
2672
+ ), u && /* @__PURE__ */ i.createElement("div", { className: "flex items-center text-light-400" }, u))), s && /* @__PURE__ */ i.createElement("p", { className: mr({ error: n }) }, s));
2664
2673
  }
2665
- const sr = b("flex w-[320px] flex-col gap-1"), ar = b("flex items-center gap-1 font-bold text-sm", {
2674
+ const gr = p("flex w-[320px] flex-col gap-1"), pr = p("flex items-center gap-1 font-bold text-sm", {
2666
2675
  variants: {
2667
2676
  error: {
2668
2677
  true: "text-error-600",
2669
2678
  false: "text-light-800"
2670
2679
  }
2671
2680
  }
2672
- }), lr = b("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors", {
2681
+ }), fr = p("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors", {
2673
2682
  variants: {
2674
2683
  disabled: {
2675
2684
  true: "bg-light-100",
2676
2685
  false: ""
2677
2686
  }
2678
2687
  }
2679
- }), ir = b(["flex flex-1 items-center gap-2 px-3 rounded-l-lg", "transition-shadow", "focus-within:ring-2 focus-within:ring-offset-0"], {
2688
+ }), br = p(["flex flex-1 items-center gap-2 px-3 rounded-l-lg", "transition-shadow", "focus-within:ring-2 focus-within:ring-offset-0"], {
2680
2689
  variants: {
2681
2690
  size: {
2682
2691
  sm: "h-9",
@@ -2691,14 +2700,14 @@ const sr = b("flex w-[320px] flex-col gap-1"), ar = b("flex items-center gap-1 f
2691
2700
  false: ""
2692
2701
  }
2693
2702
  }
2694
- }), nr = b("w-px transition-colors", {
2703
+ }), hr = p("w-px transition-colors", {
2695
2704
  variants: {
2696
2705
  error: {
2697
2706
  true: "focus:bg-error-200 group-focus-within:bg-error-500",
2698
2707
  false: "focus:bg-light-200 group-focus-within:bg-primary-500"
2699
2708
  }
2700
2709
  }
2701
- }), or = b("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none", {
2710
+ }), xr = p("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none", {
2702
2711
  variants: {
2703
2712
  size: {
2704
2713
  sm: "h-9",
@@ -2709,14 +2718,14 @@ const sr = b("flex w-[320px] flex-col gap-1"), ar = b("flex items-center gap-1 f
2709
2718
  false: "bg-white"
2710
2719
  }
2711
2720
  }
2712
- }), cr = b("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500", {
2721
+ }), vr = p("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500", {
2713
2722
  variants: {
2714
2723
  disabled: {
2715
2724
  true: "text-light-400 cursor-not-allowed",
2716
2725
  false: ""
2717
2726
  }
2718
2727
  }
2719
- }), dr = b("text-caption-lg", {
2728
+ }), yr = p("text-caption-lg", {
2720
2729
  variants: {
2721
2730
  error: {
2722
2731
  true: "text-error-600",
@@ -2724,35 +2733,35 @@ const sr = b("flex w-[320px] flex-col gap-1"), ar = b("flex items-center gap-1 f
2724
2733
  }
2725
2734
  }
2726
2735
  });
2727
- function Gr({
2736
+ function us({
2728
2737
  size: t = "md",
2729
- label: s,
2738
+ label: l,
2730
2739
  required: r,
2731
- hint: l,
2732
- error: i = !1,
2740
+ hint: s,
2741
+ error: n = !1,
2733
2742
  disabled: a = !1,
2734
- placeholder: c = "www.cekat.ai",
2735
- value: n,
2743
+ placeholder: d = "www.cekat.ai",
2744
+ value: o,
2736
2745
  rightIcon: u,
2737
- suffix: o,
2746
+ suffix: c,
2738
2747
  onChange: m,
2739
- className: p,
2740
- wrapperClassName: f
2748
+ className: g,
2749
+ wrapperClassName: b
2741
2750
  }) {
2742
- return /* @__PURE__ */ d.createElement("div", { className: g(sr(), f) }, s && /* @__PURE__ */ d.createElement("label", { className: ar({ error: i }) }, s, r && /* @__PURE__ */ d.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ d.createElement("div", { className: lr({ disabled: a }) }, /* @__PURE__ */ d.createElement("div", { className: ir({ size: t, error: i, disabled: a }) }, /* @__PURE__ */ d.createElement(
2751
+ return /* @__PURE__ */ i.createElement("div", { className: f(gr(), b) }, l && /* @__PURE__ */ i.createElement("label", { className: pr({ error: n }) }, l, r && /* @__PURE__ */ i.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ i.createElement("div", { className: fr({ disabled: a }) }, /* @__PURE__ */ i.createElement("div", { className: br({ size: t, error: n, disabled: a }) }, /* @__PURE__ */ i.createElement(
2743
2752
  "input",
2744
2753
  {
2745
- value: n,
2754
+ value: o,
2746
2755
  onChange: m,
2747
- placeholder: c,
2756
+ placeholder: d,
2748
2757
  disabled: a,
2749
- className: g(cr({ disabled: a }), p)
2758
+ className: f(vr({ disabled: a }), g)
2750
2759
  }
2751
- ), u && /* @__PURE__ */ d.createElement("div", { className: "text-light-400" }, u)), /* @__PURE__ */ d.createElement("div", { className: nr({ error: i }) }), /* @__PURE__ */ d.createElement("div", { className: or({ size: t, disabled: a }) }, o)), l && /* @__PURE__ */ d.createElement("p", { className: dr({ error: i }) }, l));
2760
+ ), u && /* @__PURE__ */ i.createElement("div", { className: "text-light-400" }, u)), /* @__PURE__ */ i.createElement("div", { className: hr({ error: n }) }), /* @__PURE__ */ i.createElement("div", { className: xr({ size: t, disabled: a }) }, c)), s && /* @__PURE__ */ i.createElement("p", { className: yr({ error: n }) }, s));
2752
2761
  }
2753
- const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2762
+ const wr = p("flex w-full flex-col gap-1"), Er = p(
2754
2763
  "flex items-center gap-1 text-sm font-bold text-light-800"
2755
- ), U = b(
2764
+ ), J = p(
2756
2765
  [
2757
2766
  "flex w-full items-center border bg-white text-left",
2758
2767
  "transition-[border-color,border-width]"
@@ -2775,7 +2784,7 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2775
2784
  },
2776
2785
  defaultVariants: { size: "md", open: !1, disabled: !1 }
2777
2786
  }
2778
- ), pr = b(
2787
+ ), Nr = p(
2779
2788
  [
2780
2789
  "absolute left-0 top-full z-10 mt-2 w-full overflow-y-auto",
2781
2790
  "rounded-lg border border-light-200 bg-white py-1",
@@ -2791,7 +2800,7 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2791
2800
  },
2792
2801
  defaultVariants: { size: "md" }
2793
2802
  }
2794
- ), q = b(
2803
+ ), Y = p(
2795
2804
  "flex w-full items-center rounded-md text-left",
2796
2805
  {
2797
2806
  variants: {
@@ -2807,7 +2816,7 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2807
2816
  },
2808
2817
  defaultVariants: { size: "md", disabled: !1 }
2809
2818
  }
2810
- ), gr = b("text-caption-lg text-light-700"), br = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2819
+ ), kr = p("text-caption-lg text-light-700"), Sr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2811
2820
  "path",
2812
2821
  {
2813
2822
  d: "M5 7.5L10 12.5L15 7.5",
@@ -2816,7 +2825,7 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2816
2825
  strokeLinecap: "round",
2817
2826
  strokeLinejoin: "round"
2818
2827
  }
2819
- )), fr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2828
+ )), Cr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2820
2829
  "path",
2821
2830
  {
2822
2831
  d: "M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",
@@ -2825,7 +2834,7 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2825
2834
  strokeLinecap: "round",
2826
2835
  strokeLinejoin: "round"
2827
2836
  }
2828
- )), hr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2837
+ )), zr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
2829
2838
  "path",
2830
2839
  {
2831
2840
  d: "M16.67 5L7.5 14.17L3.33 10",
@@ -2834,172 +2843,172 @@ const ur = b("flex w-full max-w-[320px] flex-col gap-1"), mr = b(
2834
2843
  strokeLinecap: "round",
2835
2844
  strokeLinejoin: "round"
2836
2845
  }
2837
- )), A = {
2846
+ )), G = {
2838
2847
  xs: "size-4",
2839
2848
  sm: "size-5",
2840
2849
  md: "size-6"
2841
- }, Q = {
2850
+ }, ee = {
2842
2851
  xs: "size-4",
2843
2852
  sm: "size-5",
2844
2853
  md: "size-5"
2845
- }, xr = {
2854
+ }, Lr = {
2846
2855
  xs: "text-caption-sm",
2847
2856
  sm: "text-caption-lg",
2848
2857
  md: "text-body-sm"
2849
- }, vr = {
2858
+ }, Br = {
2850
2859
  xs: "h-7",
2851
2860
  sm: "h-[30px]",
2852
2861
  md: "h-[34px]"
2853
- }, X = ({ size: t, open: s, disabled: r }) => g(
2862
+ }, te = ({ size: t, open: l, disabled: r }) => f(
2854
2863
  "flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",
2855
- xr[t],
2856
- vr[t],
2857
- s ? "border-2 border-primary-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
2864
+ Lr[t],
2865
+ Br[t],
2866
+ l ? "border-2 border-primary-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
2858
2867
  r ? "cursor-not-allowed bg-light-100" : "cursor-pointer"
2859
- ), yr = () => "flex items-center gap-1 text-caption-sm font-semibold text-light-800", wr = "flex w-full max-w-[320px] flex-col";
2860
- function Hr({
2868
+ ), Tr = () => "flex items-center gap-1 text-caption-sm font-semibold text-light-800", Vr = "flex w-full max-w-[320px] flex-col";
2869
+ function ms({
2861
2870
  size: t = "md",
2862
- type: s = "default",
2871
+ type: l = "default",
2863
2872
  label: r,
2864
- required: l,
2865
- helpIcon: i,
2873
+ required: s,
2874
+ helpIcon: n,
2866
2875
  hint: a,
2867
- placeholder: c = "Select option",
2868
- disabled: n = !1,
2876
+ placeholder: d = "Select option",
2877
+ disabled: o = !1,
2869
2878
  compact: u = !1,
2870
- leadingIcon: o,
2879
+ leadingIcon: c,
2871
2880
  options: m,
2872
- value: p = null,
2873
- onChange: f,
2881
+ value: g = null,
2882
+ onChange: b,
2874
2883
  values: h = [],
2875
- onValuesChange: E,
2876
- className: w,
2877
- wrapperClassName: k
2884
+ onValuesChange: N,
2885
+ className: k,
2886
+ wrapperClassName: S
2878
2887
  }) {
2879
- const [y, x] = e.useState(!1), [N, C] = e.useState(""), L = e.useRef(null), S = e.useRef(null), z = s === "tags", V = s === "search" || z, T = m.find((v) => v.id === p) ?? null, $ = m.filter((v) => h.includes(v.id)), W = N ? m.filter(
2880
- (v) => `${v.label} ${v.supportingText ?? ""}`.toLowerCase().includes(N.toLowerCase())
2881
- ) : m, I = () => {
2882
- x(!1), C("");
2888
+ const [w, v] = e.useState(!1), [y, E] = e.useState(""), B = e.useRef(null), C = e.useRef(null), z = l === "tags", L = l === "search" || z, T = m.find((x) => x.id === g) ?? null, O = m.filter((x) => h.includes(x.id)), _ = y ? m.filter(
2889
+ (x) => `${x.label} ${x.supportingText ?? ""}`.toLowerCase().includes(y.toLowerCase())
2890
+ ) : m, V = () => {
2891
+ v(!1), E("");
2883
2892
  };
2884
2893
  e.useEffect(() => {
2885
- if (!y) return;
2886
- const v = (B) => {
2887
- L.current?.contains(B.target) || I();
2894
+ if (!w) return;
2895
+ const x = (I) => {
2896
+ B.current?.contains(I.target) || V();
2888
2897
  };
2889
- return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
2890
- }, [y]), e.useEffect(() => {
2891
- y && V && S.current?.focus();
2892
- }, [y, V]);
2893
- const P = () => {
2894
- n || (y ? I() : x(!0));
2895
- }, R = (v) => {
2896
- v.disabled || (z ? (E?.(
2897
- h.includes(v.id) ? h.filter((B) => B !== v.id) : [...h, v.id]
2898
- ), C(""), S.current?.focus()) : (f?.(v), I()));
2899
- }, ce = (v) => {
2900
- if (v.key === "Enter") {
2901
- v.preventDefault();
2902
- const B = W.find((me) => !me.disabled);
2903
- y && B && R(B);
2904
- } else v.key === "Backspace" && z && !N && h.length ? E?.(h.slice(0, -1)) : y || x(!0);
2905
- }, D = (v) => v.avatar ? /* @__PURE__ */ e.createElement(
2898
+ return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
2899
+ }, [w]), e.useEffect(() => {
2900
+ w && L && C.current?.focus();
2901
+ }, [w, L]);
2902
+ const j = () => {
2903
+ o || (w ? V() : v(!0));
2904
+ }, A = (x) => {
2905
+ x.disabled || (z ? (N?.(
2906
+ h.includes(x.id) ? h.filter((I) => I !== x.id) : [...h, x.id]
2907
+ ), E(""), C.current?.focus()) : (b?.(x), V()));
2908
+ }, fe = (x) => {
2909
+ if (x.key === "Enter") {
2910
+ x.preventDefault();
2911
+ const I = _.find((xe) => !xe.disabled);
2912
+ w && I && A(I);
2913
+ } else x.key === "Backspace" && z && !y && h.length ? N?.(h.slice(0, -1)) : w || v(!0);
2914
+ }, H = (x) => x.avatar ? /* @__PURE__ */ e.createElement(
2906
2915
  "img",
2907
2916
  {
2908
- src: v.avatar,
2917
+ src: x.avatar,
2909
2918
  alt: "",
2910
- className: g(A[t], "shrink-0 rounded-full object-cover")
2919
+ className: f(G[t], "shrink-0 rounded-full object-cover")
2911
2920
  }
2912
- ) : v.icon ? /* @__PURE__ */ e.createElement(
2921
+ ) : x.icon ? /* @__PURE__ */ e.createElement(
2913
2922
  "span",
2914
2923
  {
2915
- className: g(
2916
- A[t],
2924
+ className: f(
2925
+ G[t],
2917
2926
  "flex shrink-0 items-center justify-center",
2918
- n ? "text-light-400" : "text-light-500"
2927
+ o ? "text-light-400" : "text-light-500"
2919
2928
  )
2920
2929
  },
2921
- v.icon
2922
- ) : v.dot ? /* @__PURE__ */ e.createElement(
2930
+ x.icon
2931
+ ) : x.dot ? /* @__PURE__ */ e.createElement(
2923
2932
  "span",
2924
2933
  {
2925
2934
  className: "size-2 shrink-0 rounded-full",
2926
- style: { backgroundColor: n ? "#d0d5dd" : v.dot }
2935
+ style: { backgroundColor: o ? "#d0d5dd" : x.dot }
2927
2936
  }
2928
- ) : null, de = T ? D(T) : o ? /* @__PURE__ */ e.createElement(
2937
+ ) : null, be = T ? H(T) : c ? /* @__PURE__ */ e.createElement(
2929
2938
  "span",
2930
2939
  {
2931
- className: g(
2932
- A[t],
2940
+ className: f(
2941
+ G[t],
2933
2942
  "flex shrink-0 items-center justify-center",
2934
- n ? "text-light-400" : "text-light-500"
2943
+ o ? "text-light-400" : "text-light-500"
2935
2944
  )
2936
2945
  },
2937
- o
2938
- ) : null, G = T ? /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 items-center gap-2 whitespace-nowrap" }, /* @__PURE__ */ e.createElement(
2946
+ c
2947
+ ) : null, K = T ? /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 items-center gap-2 whitespace-nowrap" }, /* @__PURE__ */ e.createElement(
2939
2948
  "span",
2940
2949
  {
2941
- className: g(
2950
+ className: f(
2942
2951
  "truncate font-medium",
2943
- n ? "text-light-400" : "text-light-800"
2952
+ o ? "text-light-400" : "text-light-800"
2944
2953
  )
2945
2954
  },
2946
2955
  T.label
2947
- ), T.supportingText && /* @__PURE__ */ e.createElement("span", { className: n ? "text-light-400" : "text-light-700" }, T.supportingText)) : /* @__PURE__ */ e.createElement("span", { className: n ? "text-light-400" : "text-light-500" }, c), ue = y && /* @__PURE__ */ e.createElement("div", { role: "listbox", className: pr({ size: t }) }, W.length === 0 && /* @__PURE__ */ e.createElement("div", { className: g(q({ size: t }), "mx-1 w-auto text-light-500 hover:bg-transparent") }, "No options found"), W.map((v) => {
2948
- const B = z ? h.includes(v.id) : v.id === p;
2949
- return /* @__PURE__ */ e.createElement("div", { key: v.id, className: "px-1 py-0.5" }, /* @__PURE__ */ e.createElement(
2956
+ ), T.supportingText && /* @__PURE__ */ e.createElement("span", { className: o ? "text-light-400" : "text-light-700" }, T.supportingText)) : /* @__PURE__ */ e.createElement("span", { className: o ? "text-light-400" : "text-light-500" }, d), he = w && /* @__PURE__ */ e.createElement("div", { role: "listbox", className: Nr({ size: t }) }, _.length === 0 && /* @__PURE__ */ e.createElement("div", { className: f(Y({ size: t }), "mx-1 w-auto text-light-500 hover:bg-transparent") }, "No options found"), _.map((x) => {
2957
+ const I = z ? h.includes(x.id) : x.id === g;
2958
+ return /* @__PURE__ */ e.createElement("div", { key: x.id, className: "px-1 py-0.5" }, /* @__PURE__ */ e.createElement(
2950
2959
  "button",
2951
2960
  {
2952
2961
  type: "button",
2953
2962
  role: "option",
2954
- "aria-selected": B,
2955
- disabled: v.disabled,
2956
- onClick: () => R(v),
2957
- className: q({ size: t, disabled: v.disabled })
2963
+ "aria-selected": I,
2964
+ disabled: x.disabled,
2965
+ onClick: () => A(x),
2966
+ className: Y({ size: t, disabled: x.disabled })
2958
2967
  },
2959
- D(v),
2968
+ H(x),
2960
2969
  /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 flex-1 items-center gap-2 whitespace-nowrap" }, /* @__PURE__ */ e.createElement(
2961
2970
  "span",
2962
2971
  {
2963
- className: g(
2972
+ className: f(
2964
2973
  "truncate font-medium",
2965
- v.disabled ? "text-light-400" : "text-light-900"
2974
+ x.disabled ? "text-light-400" : "text-light-900"
2966
2975
  )
2967
2976
  },
2968
- v.label
2969
- ), v.supportingText && /* @__PURE__ */ e.createElement(
2977
+ x.label
2978
+ ), x.supportingText && /* @__PURE__ */ e.createElement(
2970
2979
  "span",
2971
2980
  {
2972
- className: v.disabled ? "text-light-400" : "text-light-700"
2981
+ className: x.disabled ? "text-light-400" : "text-light-700"
2973
2982
  },
2974
- v.supportingText
2983
+ x.supportingText
2975
2984
  )),
2976
- B && /* @__PURE__ */ e.createElement(hr, { className: "ml-auto size-5 shrink-0 text-primary-500" })
2985
+ I && /* @__PURE__ */ e.createElement(zr, { className: "ml-auto size-5 shrink-0 text-primary-500" })
2977
2986
  ));
2978
2987
  }));
2979
- return /* @__PURE__ */ e.createElement("div", { ref: L, className: g(u ? wr : ur(), k) }, r && /* @__PURE__ */ e.createElement("label", { className: u ? yr() : mr() }, r, l && /* @__PURE__ */ e.createElement("span", { className: "text-error-400" }, "*"), i), /* @__PURE__ */ e.createElement(
2988
+ return /* @__PURE__ */ e.createElement("div", { ref: B, className: f(u ? Vr : wr(), S) }, r && /* @__PURE__ */ e.createElement("label", { className: u ? Tr() : Er() }, r, s && /* @__PURE__ */ e.createElement("span", { className: "text-error-400" }, "*"), n), /* @__PURE__ */ e.createElement(
2980
2989
  "div",
2981
2990
  {
2982
2991
  className: "relative",
2983
- onKeyDown: (v) => {
2984
- v.key === "Escape" && I();
2992
+ onKeyDown: (x) => {
2993
+ x.key === "Escape" && V();
2985
2994
  }
2986
2995
  },
2987
- s === "default" ? /* @__PURE__ */ e.createElement(
2996
+ l === "default" ? /* @__PURE__ */ e.createElement(
2988
2997
  "button",
2989
2998
  {
2990
2999
  type: "button",
2991
3000
  "aria-haspopup": "listbox",
2992
- "aria-expanded": y,
2993
- disabled: n,
2994
- onClick: P,
2995
- className: g(u ? X({ size: t, open: y, disabled: n }) : U({ size: t, open: y, disabled: n }), w)
3001
+ "aria-expanded": w,
3002
+ disabled: o,
3003
+ onClick: j,
3004
+ className: f(u ? te({ size: t, open: w, disabled: o }) : J({ size: t, open: w, disabled: o }), k)
2996
3005
  },
2997
- de,
2998
- /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 flex-1 items-center" }, G),
3006
+ be,
3007
+ /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 flex-1 items-center" }, K),
2999
3008
  /* @__PURE__ */ e.createElement(
3000
- br,
3009
+ Sr,
3001
3010
  {
3002
- className: g(Q[t], "shrink-0 text-light-500")
3011
+ className: f(ee[t], "shrink-0 text-light-500")
3003
3012
  }
3004
3013
  )
3005
3014
  ) : /* @__PURE__ */ e.createElement(
@@ -3007,57 +3016,57 @@ function Hr({
3007
3016
  {
3008
3017
  role: "combobox",
3009
3018
  "aria-haspopup": "listbox",
3010
- "aria-expanded": y,
3011
- onClick: P,
3012
- className: g(u ? X({ size: t, open: y, disabled: n }) : U({ size: t, open: y, disabled: n }), w)
3019
+ "aria-expanded": w,
3020
+ onClick: j,
3021
+ className: f(u ? te({ size: t, open: w, disabled: o }) : J({ size: t, open: w, disabled: o }), k)
3013
3022
  },
3014
3023
  /* @__PURE__ */ e.createElement(
3015
- fr,
3024
+ Cr,
3016
3025
  {
3017
- className: g(
3018
- Q[t],
3026
+ className: f(
3027
+ ee[t],
3019
3028
  "shrink-0",
3020
- n ? "text-light-400" : "text-light-500"
3029
+ o ? "text-light-400" : "text-light-500"
3021
3030
  )
3022
3031
  }
3023
3032
  ),
3024
- z && $.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap scrollbar-hide" }, $.map((v) => /* @__PURE__ */ e.createElement(
3025
- ae,
3033
+ z && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap scrollbar-hide" }, O.map((x) => /* @__PURE__ */ e.createElement(
3034
+ de,
3026
3035
  {
3027
- key: v.id,
3036
+ key: x.id,
3028
3037
  size: "sm",
3029
- disabled: n,
3030
- icon: v.avatar ? /* @__PURE__ */ e.createElement(
3038
+ disabled: o,
3039
+ icon: x.avatar ? /* @__PURE__ */ e.createElement(
3031
3040
  "img",
3032
3041
  {
3033
- src: v.avatar,
3042
+ src: x.avatar,
3034
3043
  alt: "",
3035
3044
  className: "size-4 shrink-0 rounded-full object-cover"
3036
3045
  }
3037
3046
  ) : void 0,
3038
- onClose: () => R(v)
3047
+ onClose: () => A(x)
3039
3048
  },
3040
- v.label
3049
+ x.label
3041
3050
  ))),
3042
- !z && !y && T ? /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 flex-1 items-center" }, G) : /* @__PURE__ */ e.createElement(
3051
+ !z && !w && T ? /* @__PURE__ */ e.createElement("span", { className: "flex min-w-0 flex-1 items-center" }, K) : /* @__PURE__ */ e.createElement(
3043
3052
  "input",
3044
3053
  {
3045
- ref: S,
3046
- value: N,
3047
- disabled: n,
3048
- placeholder: z && $.length > 0 ? "" : c,
3049
- onChange: (v) => {
3050
- C(v.target.value), y || x(!0);
3054
+ ref: C,
3055
+ value: y,
3056
+ disabled: o,
3057
+ placeholder: z && O.length > 0 ? "" : d,
3058
+ onChange: (x) => {
3059
+ E(x.target.value), w || v(!0);
3051
3060
  },
3052
- onKeyDown: ce,
3061
+ onKeyDown: fe,
3053
3062
  className: "min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"
3054
3063
  }
3055
3064
  )
3056
3065
  ),
3057
- ue
3058
- ), a && /* @__PURE__ */ e.createElement("p", { className: gr() }, a));
3066
+ he
3067
+ ), a && /* @__PURE__ */ e.createElement("p", { className: kr() }, a));
3059
3068
  }
3060
- const Er = b(
3069
+ const Ir = p(
3061
3070
  [
3062
3071
  "inline-flex items-center justify-center gap-1 shrink-0",
3063
3072
  "rounded-md border border-light-200 bg-white px-2 py-1",
@@ -3077,7 +3086,7 @@ const Er = b(
3077
3086
  },
3078
3087
  defaultVariants: { open: !1, disabled: !1 }
3079
3088
  }
3080
- ), Nr = b(
3089
+ ), Or = p(
3081
3090
  "flex size-5 shrink-0 items-center justify-center text-light-500",
3082
3091
  {
3083
3092
  variants: {
@@ -3088,7 +3097,7 @@ const Er = b(
3088
3097
  },
3089
3098
  defaultVariants: { disabled: !1 }
3090
3099
  }
3091
- ), kr = b(
3100
+ ), _r = p(
3092
3101
  "rounded-full transition-shadow",
3093
3102
  {
3094
3103
  variants: {
@@ -3103,15 +3112,15 @@ const Er = b(
3103
3112
  },
3104
3113
  defaultVariants: { open: !1, disabled: !1 }
3105
3114
  }
3106
- ), Sr = b([
3115
+ ), jr = p([
3107
3116
  "absolute top-full z-10 mt-2 flex w-60 flex-col overflow-clip",
3108
3117
  "rounded-lg border border-light-200 bg-white",
3109
3118
  "shadow-[0px_12px_16px_-4px_rgba(16,24,40,0.08),0px_4px_6px_-2px_rgba(16,24,40,0.03)]"
3110
- ]), Cr = b(
3119
+ ]), $r = p(
3111
3120
  "flex w-full flex-col items-start border-b border-light-200 px-4 py-3"
3112
- ), zr = b(
3121
+ ), Mr = p(
3113
3122
  "flex w-full flex-col items-start overflow-y-auto py-1"
3114
- ), Lr = b(
3123
+ ), Wr = p(
3115
3124
  [
3116
3125
  "mx-1 flex w-[calc(100%-8px)] items-center gap-3 rounded-md px-4 py-2.5",
3117
3126
  "text-left font-bold text-caption-lg"
@@ -3125,9 +3134,9 @@ const Er = b(
3125
3134
  },
3126
3135
  defaultVariants: { disabled: !1 }
3127
3136
  }
3128
- ), Br = b(
3137
+ ), Rr = p(
3129
3138
  "ml-auto shrink-0 font-normal text-caption-sm text-light-500"
3130
- ), Tr = b("my-1 h-px w-full bg-light-200"), Vr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 18 18", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3139
+ ), Ar = p("my-1 h-px w-full bg-light-200"), Pr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 18 18", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3131
3140
  "path",
3132
3141
  {
3133
3142
  d: "M4.5 6.75L9 11.25L13.5 6.75",
@@ -3136,7 +3145,7 @@ const Er = b(
3136
3145
  strokeLinecap: "round",
3137
3146
  strokeLinejoin: "round"
3138
3147
  }
3139
- )), jr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 18 18", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3148
+ )), Dr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 18 18", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3140
3149
  "path",
3141
3150
  {
3142
3151
  d: "M13.5 11.25L9 6.75L4.5 11.25",
@@ -3145,7 +3154,7 @@ const Er = b(
3145
3154
  strokeLinecap: "round",
3146
3155
  strokeLinejoin: "round"
3147
3156
  }
3148
- )), Ir = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3157
+ )), Gr = ({ className: t }) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", className: t }, /* @__PURE__ */ e.createElement(
3149
3158
  "path",
3150
3159
  {
3151
3160
  d: "M10 10.83a.83.83 0 1 0 0-1.67.83.83 0 0 0 0 1.67ZM10 5a.83.83 0 1 0 0-1.67A.83.83 0 0 0 10 5ZM10 16.67a.83.83 0 1 0 0-1.67.83.83 0 0 0 0 1.67Z",
@@ -3155,89 +3164,89 @@ const Er = b(
3155
3164
  strokeLinejoin: "round"
3156
3165
  }
3157
3166
  ));
3158
- function Fr({
3167
+ function gs({
3159
3168
  trigger: t = "button",
3160
- label: s = "Account",
3169
+ label: l = "Account",
3161
3170
  icon: r,
3162
- avatarSrc: l,
3163
- avatarInitials: i,
3171
+ avatarSrc: s,
3172
+ avatarInitials: n,
3164
3173
  header: a,
3165
- items: c,
3166
- open: n,
3174
+ items: d,
3175
+ open: o,
3167
3176
  defaultOpen: u = !1,
3168
- onOpenChange: o,
3177
+ onOpenChange: c,
3169
3178
  disabled: m = !1,
3170
- align: p = "end",
3171
- className: f,
3179
+ align: g = "end",
3180
+ className: b,
3172
3181
  menuClassName: h
3173
3182
  }) {
3174
- const [E, w] = e.useState(u), k = n !== void 0, y = k ? n : E, x = e.useRef(null), N = (S) => {
3175
- k || w(S), o?.(S);
3183
+ const [N, k] = e.useState(u), S = o !== void 0, w = S ? o : N, v = e.useRef(null), y = (C) => {
3184
+ S || k(C), c?.(C);
3176
3185
  };
3177
3186
  e.useEffect(() => {
3178
- if (!y) return;
3179
- const S = (V) => {
3180
- x.current?.contains(V.target) || N(!1);
3181
- }, z = (V) => {
3182
- V.key === "Escape" && N(!1);
3187
+ if (!w) return;
3188
+ const C = (L) => {
3189
+ v.current?.contains(L.target) || y(!1);
3190
+ }, z = (L) => {
3191
+ L.key === "Escape" && y(!1);
3183
3192
  };
3184
- return document.addEventListener("mousedown", S), document.addEventListener("keydown", z), () => {
3185
- document.removeEventListener("mousedown", S), document.removeEventListener("keydown", z);
3193
+ return document.addEventListener("mousedown", C), document.addEventListener("keydown", z), () => {
3194
+ document.removeEventListener("mousedown", C), document.removeEventListener("keydown", z);
3186
3195
  };
3187
- }, [y]);
3188
- const C = () => {
3189
- m || N(!y);
3190
- }, L = (S) => {
3191
- S.disabled || (S.onClick?.(), N(!1));
3196
+ }, [w]);
3197
+ const E = () => {
3198
+ m || y(!w);
3199
+ }, B = (C) => {
3200
+ C.disabled || (C.onClick?.(), y(!1));
3192
3201
  };
3193
- return /* @__PURE__ */ e.createElement("div", { ref: x, className: g("relative inline-block", f) }, t === "button" && /* @__PURE__ */ e.createElement(
3202
+ return /* @__PURE__ */ e.createElement("div", { ref: v, className: f("relative inline-block", b) }, t === "button" && /* @__PURE__ */ e.createElement(
3194
3203
  "button",
3195
3204
  {
3196
3205
  type: "button",
3197
3206
  "aria-haspopup": "menu",
3198
- "aria-expanded": y,
3207
+ "aria-expanded": w,
3199
3208
  disabled: m,
3200
- onClick: C,
3201
- className: Er({ open: y, disabled: m })
3209
+ onClick: E,
3210
+ className: Ir({ open: w, disabled: m })
3202
3211
  },
3203
- /* @__PURE__ */ e.createElement("span", null, s),
3204
- y ? /* @__PURE__ */ e.createElement(jr, { className: "size-[18px]" }) : /* @__PURE__ */ e.createElement(Vr, { className: "size-[18px]" })
3212
+ /* @__PURE__ */ e.createElement("span", null, l),
3213
+ w ? /* @__PURE__ */ e.createElement(Dr, { className: "size-[18px]" }) : /* @__PURE__ */ e.createElement(Pr, { className: "size-[18px]" })
3205
3214
  ), t === "icon" && /* @__PURE__ */ e.createElement(
3206
3215
  "button",
3207
3216
  {
3208
3217
  type: "button",
3209
3218
  "aria-haspopup": "menu",
3210
- "aria-expanded": y,
3211
- "aria-label": s,
3219
+ "aria-expanded": w,
3220
+ "aria-label": l,
3212
3221
  disabled: m,
3213
- onClick: C,
3214
- className: Nr({ disabled: m })
3222
+ onClick: E,
3223
+ className: Or({ disabled: m })
3215
3224
  },
3216
- r ?? /* @__PURE__ */ e.createElement(Ir, { className: "size-5" })
3225
+ r ?? /* @__PURE__ */ e.createElement(Gr, { className: "size-5" })
3217
3226
  ), t === "avatar" && /* @__PURE__ */ e.createElement(
3218
3227
  "button",
3219
3228
  {
3220
3229
  type: "button",
3221
3230
  "aria-haspopup": "menu",
3222
- "aria-expanded": y,
3223
- "aria-label": s,
3231
+ "aria-expanded": w,
3232
+ "aria-label": l,
3224
3233
  disabled: m,
3225
- onClick: C,
3226
- className: kr({ open: y, disabled: m })
3234
+ onClick: E,
3235
+ className: _r({ open: w, disabled: m })
3227
3236
  },
3228
- /* @__PURE__ */ e.createElement(_, { src: l, initials: i, size: "md", status: "online" })
3229
- ), y && /* @__PURE__ */ e.createElement(
3237
+ /* @__PURE__ */ e.createElement(R, { src: s, initials: n, size: "md", status: "online" })
3238
+ ), w && /* @__PURE__ */ e.createElement(
3230
3239
  "div",
3231
3240
  {
3232
3241
  role: "menu",
3233
- className: g(
3234
- Sr(),
3235
- p === "end" ? "right-0" : "left-0",
3242
+ className: f(
3243
+ jr(),
3244
+ g === "end" ? "right-0" : "left-0",
3236
3245
  h
3237
3246
  )
3238
3247
  },
3239
- a && /* @__PURE__ */ e.createElement("div", { className: Cr() }, /* @__PURE__ */ e.createElement("div", { className: "flex w-full items-center gap-3" }, /* @__PURE__ */ e.createElement(
3240
- _,
3248
+ a && /* @__PURE__ */ e.createElement("div", { className: $r() }, /* @__PURE__ */ e.createElement("div", { className: "flex w-full items-center gap-3" }, /* @__PURE__ */ e.createElement(
3249
+ R,
3241
3250
  {
3242
3251
  src: a.avatarSrc,
3243
3252
  initials: a.avatarInitials,
@@ -3245,50 +3254,322 @@ function Fr({
3245
3254
  status: a.status ?? "online"
3246
3255
  }
3247
3256
  ), /* @__PURE__ */ e.createElement("div", { className: "flex min-w-0 flex-1 flex-col items-start text-left" }, /* @__PURE__ */ e.createElement("span", { className: "w-full truncate text-sm font-bold text-light-800" }, a.name), a.subtitle && /* @__PURE__ */ e.createElement("span", { className: "w-full truncate text-caption-lg font-normal text-light-700" }, a.subtitle)))),
3248
- /* @__PURE__ */ e.createElement("div", { className: zr() }, c.map(
3249
- (S) => S.divider ? /* @__PURE__ */ e.createElement("div", { key: S.id, role: "separator", className: Tr() }) : /* @__PURE__ */ e.createElement(
3257
+ /* @__PURE__ */ e.createElement("div", { className: Mr() }, d.map(
3258
+ (C) => C.divider ? /* @__PURE__ */ e.createElement("div", { key: C.id, role: "separator", className: Ar() }) : /* @__PURE__ */ e.createElement(
3250
3259
  "button",
3251
3260
  {
3252
- key: S.id,
3261
+ key: C.id,
3253
3262
  type: "button",
3254
3263
  role: "menuitem",
3255
- disabled: S.disabled,
3256
- onClick: () => L(S),
3257
- className: Lr({ disabled: S.disabled })
3264
+ disabled: C.disabled,
3265
+ onClick: () => B(C),
3266
+ className: Wr({ disabled: C.disabled })
3258
3267
  },
3259
- S.icon && /* @__PURE__ */ e.createElement("span", { className: "flex size-4 shrink-0 items-center justify-center" }, S.icon),
3260
- /* @__PURE__ */ e.createElement("span", { className: "flex-1 truncate" }, S.label),
3261
- S.shortcut && /* @__PURE__ */ e.createElement("span", { className: Br() }, S.shortcut)
3268
+ C.icon && /* @__PURE__ */ e.createElement("span", { className: "flex size-4 shrink-0 items-center justify-center" }, C.icon),
3269
+ /* @__PURE__ */ e.createElement("span", { className: "flex-1 truncate" }, C.label),
3270
+ C.shortcut && /* @__PURE__ */ e.createElement("span", { className: Rr() }, C.shortcut)
3262
3271
  )
3263
3272
  ))
3264
3273
  ));
3265
3274
  }
3275
+ const re = p("relative", {
3276
+ variants: {
3277
+ layout: {
3278
+ floating: [
3279
+ "flex w-full flex-col gap-4 p-4",
3280
+ "rounded-xl border shadow-xs",
3281
+ "sm:flex-row sm:items-start"
3282
+ ],
3283
+ "full-width": "w-full border-b"
3284
+ }
3285
+ },
3286
+ defaultVariants: {
3287
+ layout: "floating"
3288
+ }
3289
+ }), Fr = {
3290
+ default: {
3291
+ surface: "bg-light-50",
3292
+ border: "border-light-300",
3293
+ iconSurface: "border border-light-200 bg-white shadow-xs",
3294
+ iconSurfaceOnLight: "border border-light-200 bg-white shadow-xs",
3295
+ iconText: "text-light-800"
3296
+ },
3297
+ brand: {
3298
+ surface: "bg-primary-50",
3299
+ border: "border-primary-300",
3300
+ iconSurface: "bg-primary-100",
3301
+ iconSurfaceOnLight: "bg-white",
3302
+ iconText: "text-primary-500"
3303
+ },
3304
+ gray: {
3305
+ surface: "bg-light-50",
3306
+ border: "border-light-300",
3307
+ iconSurface: "bg-light-100",
3308
+ iconSurfaceOnLight: "bg-white",
3309
+ iconText: "text-light-800"
3310
+ },
3311
+ error: {
3312
+ surface: "bg-error-50",
3313
+ border: "border-error-300",
3314
+ iconSurface: "bg-error-50",
3315
+ iconSurfaceOnLight: "bg-white",
3316
+ iconText: "text-error-500"
3317
+ },
3318
+ warning: {
3319
+ surface: "bg-warning-50",
3320
+ border: "border-warning-300",
3321
+ iconSurface: "bg-warning-100",
3322
+ iconSurfaceOnLight: "bg-white",
3323
+ iconText: "text-warning-500"
3324
+ },
3325
+ success: {
3326
+ surface: "bg-success-50",
3327
+ border: "border-success-300",
3328
+ iconSurface: "bg-success-50",
3329
+ iconSurfaceOnLight: "bg-white",
3330
+ iconText: "text-success-500"
3331
+ }
3332
+ }, Hr = "bg-white border-light-200", Kr = "relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3", qr = p(
3333
+ "flex shrink-0 items-center justify-center",
3334
+ {
3335
+ variants: {
3336
+ layout: {
3337
+ floating: "",
3338
+ // Figma hides the icon on the full-width mobile breakpoint.
3339
+ "full-width": "hidden sm:flex"
3340
+ },
3341
+ shape: {
3342
+ square: "",
3343
+ circle: ""
3344
+ },
3345
+ // `plain` keeps only the layout behaviour so a custom illustration can size itself.
3346
+ variant: {
3347
+ featured: "",
3348
+ plain: ""
3349
+ }
3350
+ },
3351
+ compoundVariants: [
3352
+ { variant: "featured", layout: "floating", class: "size-8" },
3353
+ { variant: "featured", layout: "full-width", class: "size-10" },
3354
+ { variant: "featured", shape: "circle", class: "rounded-full" },
3355
+ {
3356
+ variant: "featured",
3357
+ shape: "square",
3358
+ layout: "floating",
3359
+ class: "rounded-md"
3360
+ },
3361
+ {
3362
+ variant: "featured",
3363
+ shape: "square",
3364
+ layout: "full-width",
3365
+ class: "rounded-lg"
3366
+ }
3367
+ ],
3368
+ defaultVariants: {
3369
+ layout: "floating",
3370
+ shape: "square",
3371
+ variant: "featured"
3372
+ }
3373
+ }
3374
+ ), se = p("flex min-w-0 flex-1", {
3375
+ variants: {
3376
+ layout: {
3377
+ floating: "flex-col gap-3",
3378
+ "full-width": "items-center gap-4"
3379
+ }
3380
+ },
3381
+ defaultVariants: { layout: "floating" }
3382
+ }), Zr = p("flex min-w-0", {
3383
+ variants: {
3384
+ layout: {
3385
+ floating: "flex-col gap-1",
3386
+ "full-width": "flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"
3387
+ },
3388
+ closable: {
3389
+ true: "",
3390
+ false: ""
3391
+ }
3392
+ },
3393
+ compoundVariants: [
3394
+ { layout: "floating", closable: !0, class: "pr-8" },
3395
+ { layout: "full-width", closable: !0, class: "pr-8 sm:pr-0" }
3396
+ ],
3397
+ defaultVariants: { layout: "floating", closable: !1 }
3398
+ }), Ur = "text-caption-lg font-bold text-light-800", Xr = "text-caption-lg text-light-600", Qr = p("flex gap-3", {
3399
+ variants: {
3400
+ layout: {
3401
+ floating: "flex-wrap items-center",
3402
+ "full-width": ""
3403
+ },
3404
+ actionVariant: {
3405
+ link: "flex-wrap items-center",
3406
+ button: ""
3407
+ }
3408
+ },
3409
+ compoundVariants: [
3410
+ {
3411
+ layout: "full-width",
3412
+ actionVariant: "button",
3413
+ // Mobile stacks full-width buttons with the primary one on top; desktop keeps
3414
+ // the Figma left-to-right order (secondary, then primary).
3415
+ class: "flex-col-reverse sm:flex-row sm:items-center"
3416
+ }
3417
+ ],
3418
+ defaultVariants: { layout: "floating", actionVariant: "link" }
3419
+ }), Jr = p(
3420
+ [
3421
+ "inline-flex items-center justify-center gap-1 bg-transparent p-0",
3422
+ "text-caption-lg font-bold transition-colors",
3423
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"
3424
+ ],
3425
+ {
3426
+ variants: {
3427
+ emphasis: {
3428
+ primary: "text-primary-500 hover:text-primary-800",
3429
+ secondary: "text-light-800 hover:text-light-900"
3430
+ }
3431
+ },
3432
+ defaultVariants: { emphasis: "secondary" }
3433
+ }
3434
+ ), Yr = p(
3435
+ [
3436
+ "flex size-9 shrink-0 items-center justify-center rounded-lg",
3437
+ "bg-transparent text-light-500 transition-colors",
3438
+ "hover:bg-light-50 hover:text-light-700",
3439
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"
3440
+ ],
3441
+ {
3442
+ variants: {
3443
+ layout: {
3444
+ floating: "absolute right-[7px] top-[7px]",
3445
+ "full-width": "absolute right-2 top-2 sm:static"
3446
+ }
3447
+ },
3448
+ defaultVariants: { layout: "floating" }
3449
+ }
3450
+ ), es = {
3451
+ default: D,
3452
+ brand: D,
3453
+ gray: D,
3454
+ error: Q,
3455
+ warning: Q,
3456
+ success: Wt
3457
+ }, ts = ({
3458
+ title: t,
3459
+ description: l,
3460
+ color: r = "default",
3461
+ layout: s = "floating",
3462
+ background: n = "white",
3463
+ icon: a,
3464
+ iconVariant: d = "featured",
3465
+ showIcon: o = !0,
3466
+ primaryAction: u,
3467
+ secondaryAction: c,
3468
+ actionVariant: m,
3469
+ actions: g,
3470
+ onClose: b,
3471
+ closeLabel: h = "Close",
3472
+ className: N,
3473
+ ...k
3474
+ }) => {
3475
+ const S = es[r], w = s === "floating" ? 16 : 20, v = m ?? (s === "floating" ? "link" : "button"), y = Fr[r], E = n === "light", B = E ? f(y.surface, y.border) : Hr, C = (V, j) => V ? v === "link" ? /* @__PURE__ */ i.createElement(
3476
+ "button",
3477
+ {
3478
+ type: "button",
3479
+ onClick: V.onClick,
3480
+ className: Jr({ emphasis: j })
3481
+ },
3482
+ V.label
3483
+ ) : /* @__PURE__ */ i.createElement(
3484
+ F,
3485
+ {
3486
+ size: "sm",
3487
+ variant: j === "primary" ? "solid" : "outline",
3488
+ onClick: V.onClick,
3489
+ className: s === "full-width" ? "w-full sm:w-auto" : void 0
3490
+ },
3491
+ V.label
3492
+ ) : null, L = !!(g || u || c) ? /* @__PURE__ */ i.createElement(
3493
+ "div",
3494
+ {
3495
+ className: Qr({
3496
+ layout: s,
3497
+ actionVariant: v
3498
+ })
3499
+ },
3500
+ g ?? /* @__PURE__ */ i.createElement(i.Fragment, null, C(c, "secondary"), C(u, "primary"))
3501
+ ) : null, T = o && (a || S) ? /* @__PURE__ */ i.createElement(
3502
+ "div",
3503
+ {
3504
+ className: f(
3505
+ qr({
3506
+ layout: s,
3507
+ variant: d,
3508
+ shape: r === "default" ? "square" : "circle"
3509
+ }),
3510
+ y.iconText,
3511
+ d === "featured" && (E ? y.iconSurfaceOnLight : y.iconSurface)
3512
+ )
3513
+ },
3514
+ a ?? /* @__PURE__ */ i.createElement(S, { size: w, stroke: 2 })
3515
+ ) : null, O = b ? /* @__PURE__ */ i.createElement(
3516
+ "button",
3517
+ {
3518
+ type: "button",
3519
+ "aria-label": h,
3520
+ onClick: b,
3521
+ className: Yr({ layout: s })
3522
+ },
3523
+ /* @__PURE__ */ i.createElement(Pt, { size: 16, stroke: 2 })
3524
+ ) : null, _ = /* @__PURE__ */ i.createElement("div", { className: Zr({ layout: s, closable: !!b }) }, /* @__PURE__ */ i.createElement("p", { className: Ur }, t), l && /* @__PURE__ */ i.createElement("p", { className: Xr }, l));
3525
+ return s === "full-width" ? /* @__PURE__ */ i.createElement(
3526
+ "div",
3527
+ {
3528
+ role: "alert",
3529
+ className: f(re({ layout: s }), B, N),
3530
+ ...k
3531
+ },
3532
+ /* @__PURE__ */ i.createElement("div", { className: Kr }, /* @__PURE__ */ i.createElement("div", { className: se({ layout: s }) }, T, _), (L || O) && /* @__PURE__ */ i.createElement("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2" }, L, O))
3533
+ ) : /* @__PURE__ */ i.createElement(
3534
+ "div",
3535
+ {
3536
+ role: "alert",
3537
+ className: f(re({ layout: s }), B, N),
3538
+ ...k
3539
+ },
3540
+ T,
3541
+ /* @__PURE__ */ i.createElement("div", { className: se({ layout: s }) }, _, L),
3542
+ O
3543
+ );
3544
+ };
3545
+ ts.displayName = "Alert";
3266
3546
  export {
3267
- _ as Avatar,
3268
- rt as AvatarGroup,
3269
- at as AvatarLabelGroup,
3270
- it as AvatarProfilePhoto,
3271
- He as Badge,
3272
- Ze as BadgeGroup,
3273
- Y as Button,
3274
- Ar as CardNumberInput,
3275
- Ne as Checkbox,
3276
- Fr as Dropdown,
3277
- oe as Input,
3278
- Mr as InputCounter,
3279
- Hr as InputDropdown,
3280
- Je as Loading,
3281
- Pr as MultiSelectInput,
3282
- Wr as PhoneInput,
3283
- $r as RadioGroup,
3284
- ze as RadioGroupItem,
3285
- Rr as SaleAmountInput,
3286
- mt as Tab,
3287
- pt as TabList,
3288
- ae as Tag,
3289
- Pt as Textarea,
3290
- Te as Toggle,
3291
- Oe as Tooltip,
3292
- Gr as WebsiteCopyInput,
3293
- Dr as WebsiteInput
3547
+ ts as Alert,
3548
+ R as Avatar,
3549
+ it as AvatarGroup,
3550
+ ct as AvatarLabelGroup,
3551
+ ut as AvatarProfilePhoto,
3552
+ Ue as Badge,
3553
+ Je as BadgeGroup,
3554
+ F as Button,
3555
+ os as CardNumberInput,
3556
+ Le as Checkbox,
3557
+ gs as Dropdown,
3558
+ pe as Input,
3559
+ is as InputCounter,
3560
+ ms as InputDropdown,
3561
+ st as Loading,
3562
+ cs as MultiSelectInput,
3563
+ ls as PhoneInput,
3564
+ as as RadioGroup,
3565
+ Ie as RadioGroupItem,
3566
+ ns as SaleAmountInput,
3567
+ ht as Tab,
3568
+ xt as TabList,
3569
+ de as Tag,
3570
+ Qt as Textarea,
3571
+ je as Toggle,
3572
+ Re as Tooltip,
3573
+ us as WebsiteCopyInput,
3574
+ ds as WebsiteInput
3294
3575
  };