@fabio.caffarello/react-design-system 3.3.1 → 3.4.0

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.
@@ -1,16 +1,16 @@
1
- var se = Object.defineProperty, le = Object.defineProperties;
2
- var oe = Object.getOwnPropertyDescriptors;
1
+ var le = Object.defineProperty, oe = Object.defineProperties;
2
+ var de = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var Z = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var K = (r, a, n) => a in r ? se(r, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[a] = n, m = (r, a) => {
5
+ var K = (r, a, n) => a in r ? le(r, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[a] = n, m = (r, a) => {
6
6
  for (var n in a || (a = {}))
7
7
  Z.call(a, n) && K(r, n, a[n]);
8
8
  if (P)
9
9
  for (var n of P(a))
10
10
  G.call(a, n) && K(r, n, a[n]);
11
11
  return r;
12
- }, v = (r, a) => le(r, oe(a));
13
- var h = (r, a) => {
12
+ }, v = (r, a) => oe(r, de(a));
13
+ var y = (r, a) => {
14
14
  var n = {};
15
15
  for (var t in r)
16
16
  Z.call(r, t) && a.indexOf(t) < 0 && (n[t] = r[t]);
@@ -20,13 +20,13 @@ var h = (r, a) => {
20
20
  return n;
21
21
  };
22
22
  var Q = (r, a, n) => K(r, typeof a != "symbol" ? a + "" : a, n);
23
- import { jsx as c, jsxs as z } from "react/jsx-runtime";
23
+ import { jsx as d, jsxs as T } from "react/jsx-runtime";
24
24
  import * as S from "react";
25
- import re, { memo as H, forwardRef as O } from "react";
26
- import { clsx as de } from "clsx";
27
- import { twMerge as ce } from "tailwind-merge";
28
- import { cva as fe } from "class-variance-authority";
29
- import { X as pe, AlertCircle as ue, Loader2 as me, CheckCircle2 as J } from "lucide-react";
25
+ import ne, { memo as B, forwardRef as O } from "react";
26
+ import { clsx as ce } from "clsx";
27
+ import { twMerge as fe } from "tailwind-merge";
28
+ import { cva as pe } from "class-variance-authority";
29
+ import { X as ue, AlertCircle as me, Loader2 as be, CheckCircle2 as J } from "lucide-react";
30
30
  class A {
31
31
  /**
32
32
  * Create a radius token
@@ -83,7 +83,7 @@ class A {
83
83
  };
84
84
  }
85
85
  }
86
- const be = {
86
+ const ge = {
87
87
  none: A.create("none"),
88
88
  sm: A.create("sm"),
89
89
  md: A.create("md"),
@@ -93,8 +93,8 @@ const be = {
93
93
  "3xl": A.create("3xl"),
94
94
  full: A.create("full")
95
95
  };
96
- function C(r) {
97
- return be[r].tailwind;
96
+ function M(r) {
97
+ return ge[r].tailwind;
98
98
  }
99
99
  class k {
100
100
  // 4px base
@@ -164,7 +164,7 @@ class k {
164
164
  }
165
165
  }
166
166
  Q(k, "BASE_UNIT", 4);
167
- const ge = {
167
+ const xe = {
168
168
  // Micro spacing (0-14px)
169
169
  none: k.create(0),
170
170
  "0.5": k.create(0.5),
@@ -202,7 +202,7 @@ const ge = {
202
202
  // 96px
203
203
  };
204
204
  function o(r, a = "p") {
205
- const t = ge[r].tailwind;
205
+ const t = xe[r].tailwind;
206
206
  return `${{
207
207
  p: "p",
208
208
  m: "m",
@@ -225,7 +225,7 @@ function o(r, a = "p") {
225
225
  "space-y": "space-y"
226
226
  }[a]}-${t}`;
227
227
  }
228
- class $ {
228
+ class N {
229
229
  /**
230
230
  * Create font size token
231
231
  */
@@ -295,51 +295,51 @@ class $ {
295
295
  };
296
296
  }
297
297
  }
298
- $.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
298
+ N.createFontWeight("light"), N.createFontWeight("normal"), N.createFontWeight("medium"), N.createFontWeight("semibold"), N.createFontWeight("bold");
299
299
  const Y = {
300
300
  // Headings
301
- h1: $.create("4xl", "tight", "bold"),
302
- h2: $.create("3xl", "tight", "bold"),
303
- h3: $.create("2xl", "snug", "semibold"),
304
- h4: $.create("xl", "snug", "semibold"),
305
- h5: $.create("lg", "normal", "medium"),
306
- h6: $.create("base", "normal", "medium"),
301
+ h1: N.create("4xl", "tight", "bold"),
302
+ h2: N.create("3xl", "tight", "bold"),
303
+ h3: N.create("2xl", "snug", "semibold"),
304
+ h4: N.create("xl", "snug", "semibold"),
305
+ h5: N.create("lg", "normal", "medium"),
306
+ h6: N.create("base", "normal", "medium"),
307
307
  // Body text
308
- body: $.create("base", "relaxed", "normal"),
309
- bodySmall: $.create("sm", "relaxed", "normal"),
310
- bodyLarge: $.create("lg", "relaxed", "normal"),
308
+ body: N.create("base", "relaxed", "normal"),
309
+ bodySmall: N.create("sm", "relaxed", "normal"),
310
+ bodyLarge: N.create("lg", "relaxed", "normal"),
311
311
  // UI elements
312
- label: $.create("sm", "normal", "medium"),
313
- caption: $.create("xs", "normal", "normal"),
314
- button: $.create("base", "normal", "medium")
312
+ label: N.create("sm", "normal", "medium"),
313
+ caption: N.create("xs", "normal", "normal"),
314
+ button: N.create("base", "normal", "medium")
315
315
  };
316
316
  function D(r) {
317
317
  const a = Y[r];
318
318
  return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
319
319
  }
320
- function M(r) {
320
+ function L(r) {
321
321
  return Y[r].fontSize.tailwind;
322
322
  }
323
- function B(r) {
323
+ function H(r) {
324
324
  return Y[r].fontWeight.tailwind;
325
325
  }
326
326
  function l(...r) {
327
- return ce(de(r));
327
+ return fe(ce(r));
328
328
  }
329
329
  const j = (r, a) => {
330
- const n = fe(r, a);
330
+ const n = pe(r, a);
331
331
  return ((t) => {
332
332
  const i = n(t);
333
333
  return l(i);
334
334
  });
335
- }, xe = j(
335
+ }, ye = j(
336
336
  // Base classes
337
337
  l(
338
338
  "inline-flex",
339
339
  "items-center",
340
340
  "justify-center",
341
- B("label"),
342
- C("md"),
341
+ H("label"),
342
+ M("md"),
343
343
  "border"
344
344
  ),
345
345
  {
@@ -357,17 +357,17 @@ const j = (r, a) => {
357
357
  sm: l(
358
358
  o("1.5", "px"),
359
359
  o("0.5", "py"),
360
- M("caption")
360
+ L("caption")
361
361
  ),
362
362
  md: l(
363
363
  o("sm", "px"),
364
364
  o("xs", "py"),
365
- M("caption")
365
+ L("caption")
366
366
  ),
367
367
  lg: l(
368
368
  o("sm", "px"),
369
369
  o("xs", "py"),
370
- M("bodySmall")
370
+ L("bodySmall")
371
371
  )
372
372
  },
373
373
  style: {
@@ -470,7 +470,7 @@ const j = (r, a) => {
470
470
  style: "solid"
471
471
  }
472
472
  }
473
- ), ye = H(
473
+ ), he = B(
474
474
  O(function(b, p) {
475
475
  var u = b, {
476
476
  variant: a = "neutral",
@@ -478,8 +478,8 @@ const j = (r, a) => {
478
478
  style: t = "solid",
479
479
  className: i = "",
480
480
  children: s,
481
- "aria-label": d
482
- } = u, f = h(u, [
481
+ "aria-label": c
482
+ } = u, f = y(u, [
483
483
  "variant",
484
484
  "size",
485
485
  "style",
@@ -487,17 +487,17 @@ const j = (r, a) => {
487
487
  "children",
488
488
  "aria-label"
489
489
  ]);
490
- const x = l(xe({ variant: a, size: n, style: t }), i);
490
+ const x = l(ye({ variant: a, size: n, style: t }), i);
491
491
  let g;
492
- if (d)
493
- g = d;
492
+ if (c)
493
+ g = c;
494
494
  else if (typeof s == "string")
495
495
  g = s;
496
496
  else if (typeof s == "object" && s !== null && "props" in s) {
497
- const y = s.props;
498
- y != null && y.children && typeof y.children == "string" && (g = y.children);
497
+ const h = s.props;
498
+ h != null && h.children && typeof h.children == "string" && (g = h.children);
499
499
  }
500
- return /* @__PURE__ */ c(
500
+ return /* @__PURE__ */ d(
501
501
  "span",
502
502
  v(m({
503
503
  ref: p,
@@ -510,13 +510,13 @@ const j = (r, a) => {
510
510
  );
511
511
  })
512
512
  );
513
- ye.displayName = "Badge";
513
+ he.displayName = "Badge";
514
514
  function ee(r, a) {
515
515
  if (typeof r == "function")
516
516
  return r(a);
517
517
  r != null && (r.current = a);
518
518
  }
519
- function he(...r) {
519
+ function we(...r) {
520
520
  return (a) => {
521
521
  let n = !1;
522
522
  const t = r.map((i) => {
@@ -532,45 +532,45 @@ function he(...r) {
532
532
  };
533
533
  };
534
534
  }
535
- var we = /* @__PURE__ */ Symbol.for("react.lazy"), U = S[" use ".trim().toString()];
536
- function ve(r) {
535
+ var ve = /* @__PURE__ */ Symbol.for("react.lazy"), U = S[" use ".trim().toString()];
536
+ function ke(r) {
537
537
  return typeof r == "object" && r !== null && "then" in r;
538
538
  }
539
- function ne(r) {
540
- return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === we && "_payload" in r && ve(r._payload);
539
+ function ie(r) {
540
+ return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === ve && "_payload" in r && ke(r._payload);
541
541
  }
542
542
  // @__NO_SIDE_EFFECTS__
543
- function ke(r) {
544
- const a = /* @__PURE__ */ Ne(r), n = S.forwardRef((t, i) => {
545
- let b = t, { children: s } = b, d = h(b, ["children"]);
546
- ne(s) && typeof U == "function" && (s = U(s._payload));
547
- const f = S.Children.toArray(s), p = f.find(Te);
543
+ function Ne(r) {
544
+ const a = /* @__PURE__ */ Se(r), n = S.forwardRef((t, i) => {
545
+ let b = t, { children: s } = b, c = y(b, ["children"]);
546
+ ie(s) && typeof U == "function" && (s = U(s._payload));
547
+ const f = S.Children.toArray(s), p = f.find(Ce);
548
548
  if (p) {
549
549
  const u = p.props.children, x = f.map((g) => g === p ? S.Children.count(u) > 1 ? S.Children.only(null) : S.isValidElement(u) ? u.props.children : null : g);
550
- return /* @__PURE__ */ c(a, v(m({}, d), { ref: i, children: S.isValidElement(u) ? S.cloneElement(u, void 0, x) : null }));
550
+ return /* @__PURE__ */ d(a, v(m({}, c), { ref: i, children: S.isValidElement(u) ? S.cloneElement(u, void 0, x) : null }));
551
551
  }
552
- return /* @__PURE__ */ c(a, v(m({}, d), { ref: i, children: s }));
552
+ return /* @__PURE__ */ d(a, v(m({}, c), { ref: i, children: s }));
553
553
  });
554
554
  return n.displayName = `${r}.Slot`, n;
555
555
  }
556
- var $e = /* @__PURE__ */ ke("Slot");
556
+ var $e = /* @__PURE__ */ Ne("Slot");
557
557
  // @__NO_SIDE_EFFECTS__
558
- function Ne(r) {
558
+ function Se(r) {
559
559
  const a = S.forwardRef((n, t) => {
560
- let d = n, { children: i } = d, s = h(d, ["children"]);
561
- if (ne(i) && typeof U == "function" && (i = U(i._payload)), S.isValidElement(i)) {
562
- const f = Me(i), p = Ce(s, i.props);
563
- return i.type !== S.Fragment && (p.ref = t ? he(t, f) : f), S.cloneElement(i, p);
560
+ let c = n, { children: i } = c, s = y(c, ["children"]);
561
+ if (ie(i) && typeof U == "function" && (i = U(i._payload)), S.isValidElement(i)) {
562
+ const f = Le(i), p = Me(s, i.props);
563
+ return i.type !== S.Fragment && (p.ref = t ? we(t, f) : f), S.cloneElement(i, p);
564
564
  }
565
565
  return S.Children.count(i) > 1 ? S.Children.only(null) : null;
566
566
  });
567
567
  return a.displayName = `${r}.SlotClone`, a;
568
568
  }
569
- var Se = /* @__PURE__ */ Symbol("radix.slottable");
570
- function Te(r) {
571
- return S.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Se;
569
+ var Te = /* @__PURE__ */ Symbol("radix.slottable");
570
+ function Ce(r) {
571
+ return S.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Te;
572
572
  }
573
- function Ce(r, a) {
573
+ function Me(r, a) {
574
574
  const n = m({}, a);
575
575
  for (const t in a) {
576
576
  const i = r[t], s = a[t];
@@ -581,7 +581,7 @@ function Ce(r, a) {
581
581
  }
582
582
  return m(m({}, r), n);
583
583
  }
584
- function Me(r) {
584
+ function Le(r) {
585
585
  var t, i;
586
586
  let a = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
587
587
  return n ? r.ref : (a = (i = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : i.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? r.props.ref : r.props.ref || r.ref);
@@ -592,7 +592,7 @@ const ae = j(
592
592
  "inline-flex",
593
593
  "items-center",
594
594
  "font-medium",
595
- C("full"),
595
+ M("full"),
596
596
  o("xs", "gap")
597
597
  ),
598
598
  {
@@ -621,17 +621,17 @@ const ae = j(
621
621
  sm: l(
622
622
  o("xs", "px"),
623
623
  o("xs", "py"),
624
- M("caption")
624
+ L("caption")
625
625
  ),
626
626
  md: l(
627
627
  o("sm", "px"),
628
628
  o("xs", "py"),
629
- M("bodySmall")
629
+ L("bodySmall")
630
630
  ),
631
631
  lg: l(
632
632
  o("md", "px"),
633
633
  o("sm", "py"),
634
- M("body")
634
+ L("body")
635
635
  )
636
636
  },
637
637
  selected: {
@@ -675,18 +675,18 @@ const ae = j(
675
675
  disabled: !1
676
676
  }
677
677
  }
678
- ), Le = O(function(a, n) {
678
+ ), ze = O(function(a, n) {
679
679
  const {
680
680
  children: t,
681
681
  variant: i = "default",
682
682
  size: s = "md",
683
- selected: d = !1,
683
+ selected: c = !1,
684
684
  disabled: f = !1,
685
685
  className: p = "",
686
686
  "aria-label": b,
687
687
  tabIndex: u,
688
688
  asChild: x = !1
689
- } = a, y = (() => {
689
+ } = a, h = (() => {
690
690
  if (b) return b;
691
691
  if (typeof t == "string") return t;
692
692
  if (typeof t == "object" && t !== null && "props" in t) {
@@ -696,12 +696,12 @@ const ae = j(
696
696
  }
697
697
  })();
698
698
  if (x)
699
- return /* @__PURE__ */ c(
699
+ return /* @__PURE__ */ d(
700
700
  $e,
701
701
  {
702
702
  ref: n,
703
703
  className: l(
704
- ae({ variant: i, size: s, selected: d, disabled: f }),
704
+ ae({ variant: i, size: s, selected: c, disabled: f }),
705
705
  p
706
706
  ),
707
707
  "aria-label": b,
@@ -710,29 +710,29 @@ const ae = j(
710
710
  children: t
711
711
  }
712
712
  );
713
- const { onRemove: T, onClick: L } = a, q = L !== void 0, R = q && !f, ie = (F) => {
714
- f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), L == null || L());
713
+ const { onRemove: C, onClick: z } = a, q = z !== void 0, R = q && !f, se = (F) => {
714
+ f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), z == null || z());
715
715
  };
716
- return /* @__PURE__ */ z(
716
+ return /* @__PURE__ */ T(
717
717
  "div",
718
718
  {
719
719
  ref: n,
720
720
  className: l(
721
- ae({ variant: i, size: s, selected: d, disabled: f }),
722
- T && o("xs", "pr"),
721
+ ae({ variant: i, size: s, selected: c, disabled: f }),
722
+ C && o("xs", "pr"),
723
723
  p
724
724
  ),
725
725
  "aria-disabled": f,
726
726
  children: [
727
- q ? /* @__PURE__ */ c(
727
+ q ? /* @__PURE__ */ d(
728
728
  "button",
729
729
  {
730
730
  type: "button",
731
- onClick: f ? void 0 : L,
732
- onKeyDown: ie,
731
+ onClick: f ? void 0 : z,
732
+ onKeyDown: se,
733
733
  disabled: f,
734
- "aria-pressed": d ? !0 : void 0,
735
- "aria-label": b || y,
734
+ "aria-pressed": c ? !0 : void 0,
735
+ "aria-label": b || h,
736
736
  tabIndex: u !== void 0 ? u : R ? 0 : void 0,
737
737
  className: l(
738
738
  "flex-1",
@@ -746,22 +746,22 @@ const ae = j(
746
746
  "focus:ring-2",
747
747
  "focus:ring-line-focus",
748
748
  "focus:ring-offset-2",
749
- C("full")
749
+ M("full")
750
750
  ),
751
751
  children: t
752
752
  }
753
- ) : /* @__PURE__ */ c("span", { children: t }),
754
- T && !f && /* @__PURE__ */ c(
753
+ ) : /* @__PURE__ */ d("span", { children: t }),
754
+ C && !f && /* @__PURE__ */ d(
755
755
  "button",
756
756
  {
757
757
  type: "button",
758
758
  onClick: (F) => {
759
- F.stopPropagation(), T();
759
+ F.stopPropagation(), C();
760
760
  },
761
761
  className: l(
762
762
  o("xs", "ml"),
763
763
  "hover:bg-tint-hover",
764
- C("full"),
764
+ M("full"),
765
765
  o("xs", "p"),
766
766
  "transition-colors",
767
767
  "focus:outline-none",
@@ -769,43 +769,43 @@ const ae = j(
769
769
  "focus:ring-line-focus",
770
770
  "focus:ring-offset-1"
771
771
  ),
772
- "aria-label": `Remove ${y || "chip"}`,
773
- children: /* @__PURE__ */ c(pe, { className: "h-3 w-3", "aria-hidden": "true" })
772
+ "aria-label": `Remove ${h || "chip"}`,
773
+ children: /* @__PURE__ */ d(ue, { className: "h-3 w-3", "aria-hidden": "true" })
774
774
  }
775
775
  )
776
776
  ]
777
777
  }
778
778
  );
779
779
  });
780
- Le.displayName = "Chip";
781
- function na(i) {
780
+ ze.displayName = "Chip";
781
+ function la(i) {
782
782
  var s = i, {
783
783
  message: r,
784
784
  id: a,
785
785
  className: n = ""
786
- } = s, t = h(s, [
786
+ } = s, t = y(s, [
787
787
  "message",
788
788
  "id",
789
789
  "className"
790
790
  ]);
791
- const d = [
791
+ const c = [
792
792
  o("xs", "mt"),
793
- M("bodySmall"),
793
+ L("bodySmall"),
794
794
  "text-fg-error",
795
795
  "flex",
796
796
  "items-center",
797
797
  o("xs", "gap")
798
- ], f = l(...d, n);
799
- return /* @__PURE__ */ z("div", v(m({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
800
- /* @__PURE__ */ c(ue, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
801
- /* @__PURE__ */ c("span", { children: r })
798
+ ], f = l(...c, n);
799
+ return /* @__PURE__ */ T("div", v(m({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
800
+ /* @__PURE__ */ d(me, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
801
+ /* @__PURE__ */ d("span", { children: r })
802
802
  ] }));
803
803
  }
804
- function ia(t) {
804
+ function oa(t) {
805
805
  var i = t, {
806
806
  variant: r = "info",
807
807
  className: a
808
- } = i, n = h(i, [
808
+ } = i, n = y(i, [
809
809
  "variant",
810
810
  "className"
811
811
  ]);
@@ -814,7 +814,7 @@ function ia(t) {
814
814
  error: l("bg-error-bg", "text-error-dark", "border-error"),
815
815
  info: l("bg-info-bg", "text-info-dark", "border-info")
816
816
  };
817
- return /* @__PURE__ */ c(
817
+ return /* @__PURE__ */ d(
818
818
  "div",
819
819
  m({
820
820
  role: "alert",
@@ -822,19 +822,19 @@ function ia(t) {
822
822
  "border",
823
823
  o("base", "px"),
824
824
  o("sm", "py"),
825
- C("lg"),
825
+ M("lg"),
826
826
  s[r],
827
827
  a
828
828
  )
829
829
  }, n)
830
830
  );
831
831
  }
832
- const ze = l(
832
+ const Fe = l(
833
833
  "block",
834
- M("label"),
835
- B("label"),
834
+ L("label"),
835
+ H("label"),
836
836
  "text-fg-primary"
837
- ), Fe = {
837
+ ), Ee = {
838
838
  default: "",
839
839
  required: l(
840
840
  "after:content-['*']",
@@ -847,20 +847,20 @@ const ze = l(
847
847
  "after:text-fg-tertiary",
848
848
  "after:font-normal"
849
849
  )
850
- }, Ee = H(
851
- O(function(d, s) {
852
- var f = d, { variant: a = "default", className: n = "", children: t } = f, i = h(f, ["variant", "className", "children"]);
850
+ }, Ie = B(
851
+ O(function(c, s) {
852
+ var f = c, { variant: a = "default", className: n = "", children: t } = f, i = y(f, ["variant", "className", "children"]);
853
853
  const p = l(
854
- ze,
855
- Fe[a],
854
+ Fe,
855
+ Ee[a],
856
856
  n
857
857
  );
858
- return /* @__PURE__ */ c("label", v(m({ ref: s, className: p }, i), { children: t }));
858
+ return /* @__PURE__ */ d("label", v(m({ ref: s, className: p }, i), { children: t }));
859
859
  })
860
860
  );
861
- Ee.displayName = "Label";
861
+ Ie.displayName = "Label";
862
862
  function w(r, a, n) {
863
- const t = Ie(r), i = Ae(r);
863
+ const t = Ae(r), i = We(r);
864
864
  return {
865
865
  hex: r,
866
866
  rgb: t,
@@ -869,19 +869,19 @@ function w(r, a, n) {
869
869
  tailwind: `${a}-${n}`
870
870
  };
871
871
  }
872
- function Ie(r) {
872
+ function Ae(r) {
873
873
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
874
874
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
875
875
  }
876
- function Ae(r) {
876
+ function We(r) {
877
877
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
878
878
  if (!a) return "0, 0%, 0%";
879
- const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), d = Math.min(n, t, i);
879
+ const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), c = Math.min(n, t, i);
880
880
  let f = 0, p = 0;
881
- const b = (s + d) / 2;
882
- if (s !== d) {
883
- const u = s - d;
884
- switch (p = b > 0.5 ? u / (2 - s - d) : u / (s + d), s) {
881
+ const b = (s + c) / 2;
882
+ if (s !== c) {
883
+ const u = s - c;
884
+ switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
885
885
  case n:
886
886
  f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
887
887
  break;
@@ -898,7 +898,7 @@ function Ae(r) {
898
898
  w("#f0f4f8", "brand-primary", 50), w("#d9e2ec", "brand-primary", 100), w("#bcccdc", "brand-primary", 200), w("#9fb3c8", "brand-primary", 300), w("#7390ad", "brand-primary", 400), w("#486581", "brand-primary", 500), w("#334e68", "brand-primary", 600), w("#243b53", "brand-primary", 700), w("#1a2a3a", "brand-primary", 800), w("#102a43", "brand-primary", 900), w("#061a35", "brand-primary", 950);
899
899
  w("#f7f5ff", "brand-secondary", 50), w("#eee9ff", "brand-secondary", 100), w("#e0d6ff", "brand-secondary", 200), w("#cbb8ff", "brand-secondary", 300), w("#aa89fc", "brand-secondary", 400), w("#8e58f2", "brand-secondary", 500), w("#703bc8", "brand-secondary", 600), w("#582aa2", "brand-secondary", 700), w("#44227e", "brand-secondary", 800), w("#32185d", "brand-secondary", 900), w("#180635", "brand-secondary", 950);
900
900
  function e(r, a, n) {
901
- const t = We(r), i = De(r);
901
+ const t = De(r), i = Ve(r);
902
902
  return {
903
903
  hex: r,
904
904
  rgb: t,
@@ -907,19 +907,19 @@ function e(r, a, n) {
907
907
  tailwind: `${a}-${n}`
908
908
  };
909
909
  }
910
- function We(r) {
910
+ function De(r) {
911
911
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
912
912
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
913
913
  }
914
- function De(r) {
914
+ function Ve(r) {
915
915
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
916
916
  if (!a) return "0, 0%, 0%";
917
- const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), d = Math.min(n, t, i);
917
+ const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), c = Math.min(n, t, i);
918
918
  let f = 0, p = 0;
919
- const b = (s + d) / 2;
920
- if (s !== d) {
921
- const u = s - d;
922
- switch (p = b > 0.5 ? u / (2 - s - d) : u / (s + d), s) {
919
+ const b = (s + c) / 2;
920
+ if (s !== c) {
921
+ const u = s - c;
922
+ switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
923
923
  case n:
924
924
  f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
925
925
  break;
@@ -996,7 +996,7 @@ class V {
996
996
  }[a];
997
997
  }
998
998
  }
999
- const Ve = {
999
+ const je = {
1000
1000
  none: V.create("none"),
1001
1001
  sm: V.create("sm"),
1002
1002
  md: V.create("md"),
@@ -1006,7 +1006,7 @@ const Ve = {
1006
1006
  inner: V.create("inner")
1007
1007
  };
1008
1008
  function X(r) {
1009
- return Ve[r].tailwind;
1009
+ return je[r].tailwind;
1010
1010
  }
1011
1011
  class E {
1012
1012
  /**
@@ -1132,7 +1132,7 @@ class W {
1132
1132
  * Create a transition token
1133
1133
  */
1134
1134
  static createTransition(a, n = "base", t = "ease-in-out") {
1135
- const i = this.create(n, t), s = Array.isArray(a) ? a.join(", ") : a, d = [
1135
+ const i = this.create(n, t), s = Array.isArray(a) ? a.join(", ") : a, c = [
1136
1136
  i.duration.tailwind,
1137
1137
  i.easing.tailwind
1138
1138
  ].join(" ");
@@ -1140,7 +1140,7 @@ class W {
1140
1140
  property: s,
1141
1141
  duration: i.duration.value,
1142
1142
  timingFunction: i.easing.value,
1143
- tailwind: d
1143
+ tailwind: c
1144
1144
  };
1145
1145
  }
1146
1146
  }
@@ -1203,7 +1203,7 @@ class I {
1203
1203
  }
1204
1204
  }
1205
1205
  I.create("base"), I.create("dropdown"), I.create("sticky"), I.create("fixed"), I.create("modal-backdrop"), I.create("modal"), I.create("popover"), I.create("tooltip"), I.create("toast");
1206
- class N {
1206
+ class $ {
1207
1207
  /**
1208
1208
  * Create an opacity token
1209
1209
  */
@@ -1249,8 +1249,8 @@ class N {
1249
1249
  };
1250
1250
  }
1251
1251
  }
1252
- N.create(0), N.create(5), N.create(10), N.create(20), N.create(25), N.create(30), N.create(40), N.create(50), N.create(60), N.create(70), N.create(75), N.create(80), N.create(90), N.create(95), N.create(100);
1253
- const je = j("w-full", {
1252
+ $.create(0), $.create(5), $.create(10), $.create(20), $.create(25), $.create(30), $.create(40), $.create(50), $.create(60), $.create(70), $.create(75), $.create(80), $.create(90), $.create(95), $.create(100);
1253
+ const Re = j("w-full", {
1254
1254
  variants: {
1255
1255
  size: {
1256
1256
  sm: "h-1",
@@ -1284,17 +1284,17 @@ const je = j("w-full", {
1284
1284
  defaultVariants: {
1285
1285
  variant: "primary"
1286
1286
  }
1287
- }), Re = O(function(x, u) {
1287
+ }), _e = O(function(x, u) {
1288
1288
  var g = x, {
1289
1289
  value: a,
1290
1290
  max: n = 100,
1291
1291
  variant: t = "primary",
1292
1292
  size: i = "md",
1293
1293
  showLabel: s = !1,
1294
- label: d,
1294
+ label: c,
1295
1295
  "aria-label": f,
1296
1296
  className: p = ""
1297
- } = g, b = h(g, [
1297
+ } = g, b = y(g, [
1298
1298
  "value",
1299
1299
  "max",
1300
1300
  "variant",
@@ -1304,9 +1304,9 @@ const je = j("w-full", {
1304
1304
  "aria-label",
1305
1305
  "className"
1306
1306
  ]);
1307
- const y = a === void 0, T = y ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), L = f || (y ? "Loading in progress" : `Progress: ${T == null ? void 0 : T.toFixed(0)}%`);
1308
- return /* @__PURE__ */ z("div", v(m({ ref: u, className: l("w-full", p) }, b), { children: [
1309
- s && (d || !y) && /* @__PURE__ */ z(
1307
+ const h = a === void 0, C = h ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), z = f || (h ? "Loading in progress" : `Progress: ${C == null ? void 0 : C.toFixed(0)}%`);
1308
+ return /* @__PURE__ */ T("div", v(m({ ref: u, className: l("w-full", p) }, b), { children: [
1309
+ s && (c || !h) && /* @__PURE__ */ T(
1310
1310
  "div",
1311
1311
  {
1312
1312
  className: l(
@@ -1316,26 +1316,26 @@ const je = j("w-full", {
1316
1316
  o("xs", "mb")
1317
1317
  ),
1318
1318
  children: [
1319
- d && /* @__PURE__ */ c(
1319
+ c && /* @__PURE__ */ d(
1320
1320
  "span",
1321
1321
  {
1322
1322
  className: l(
1323
- M("bodySmall"),
1324
- B("label"),
1323
+ L("bodySmall"),
1324
+ H("label"),
1325
1325
  "text-fg-primary"
1326
1326
  ),
1327
- children: d
1327
+ children: c
1328
1328
  }
1329
1329
  ),
1330
- !y && T !== void 0 && /* @__PURE__ */ z(
1330
+ !h && C !== void 0 && /* @__PURE__ */ T(
1331
1331
  "span",
1332
1332
  {
1333
1333
  className: l(
1334
- M("bodySmall"),
1334
+ L("bodySmall"),
1335
1335
  "text-fg-secondary"
1336
1336
  ),
1337
1337
  children: [
1338
- T.toFixed(0),
1338
+ C.toFixed(0),
1339
1339
  "%"
1340
1340
  ]
1341
1341
  }
@@ -1343,23 +1343,23 @@ const je = j("w-full", {
1343
1343
  ]
1344
1344
  }
1345
1345
  ),
1346
- /* @__PURE__ */ c(
1346
+ /* @__PURE__ */ d(
1347
1347
  "div",
1348
1348
  {
1349
1349
  role: "progressbar",
1350
- "aria-valuemin": y ? void 0 : 0,
1351
- "aria-valuemax": y ? void 0 : n,
1352
- "aria-valuenow": y ? void 0 : a,
1353
- "aria-label": L,
1354
- "aria-busy": y,
1350
+ "aria-valuemin": h ? void 0 : 0,
1351
+ "aria-valuemax": h ? void 0 : n,
1352
+ "aria-valuenow": h ? void 0 : a,
1353
+ "aria-label": z,
1354
+ "aria-busy": h,
1355
1355
  className: l(
1356
1356
  "relative",
1357
1357
  "w-full",
1358
1358
  "overflow-hidden",
1359
- je({ size: i, variant: t }),
1360
- C("full")
1359
+ Re({ size: i, variant: t }),
1360
+ M("full")
1361
1361
  ),
1362
- children: y ? /* @__PURE__ */ c(
1362
+ children: h ? /* @__PURE__ */ d(
1363
1363
  "div",
1364
1364
  {
1365
1365
  className: l(
@@ -1368,7 +1368,7 @@ const je = j("w-full", {
1368
1368
  "left-0",
1369
1369
  "bottom-0",
1370
1370
  te({ variant: t }),
1371
- C("full"),
1371
+ M("full"),
1372
1372
  "motion-reduce:animate-none"
1373
1373
  ),
1374
1374
  style: {
@@ -1376,19 +1376,19 @@ const je = j("w-full", {
1376
1376
  animation: "progress-indeterminate 1.5s ease-in-out infinite"
1377
1377
  }
1378
1378
  }
1379
- ) : /* @__PURE__ */ c(
1379
+ ) : /* @__PURE__ */ d(
1380
1380
  "div",
1381
1381
  {
1382
1382
  className: l(
1383
1383
  "h-full",
1384
1384
  te({ variant: t }),
1385
- C("full"),
1385
+ M("full"),
1386
1386
  "transition-all",
1387
1387
  "duration-300",
1388
1388
  "ease-out"
1389
1389
  ),
1390
1390
  style: {
1391
- width: `${T}%`
1391
+ width: `${C}%`
1392
1392
  },
1393
1393
  "aria-hidden": "true"
1394
1394
  }
@@ -1397,20 +1397,20 @@ const je = j("w-full", {
1397
1397
  )
1398
1398
  ] }));
1399
1399
  });
1400
- Re.displayName = "Progress";
1401
- const _e = {
1400
+ _e.displayName = "Progress";
1401
+ const He = {
1402
1402
  horizontal: "w-full border-t",
1403
1403
  vertical: "h-full border-l self-stretch"
1404
1404
  }, Be = {
1405
1405
  solid: "border-solid",
1406
1406
  dashed: "border-dashed",
1407
1407
  dotted: "border-dotted"
1408
- }, He = H(function(s) {
1409
- var d = s, {
1408
+ }, Oe = B(function(s) {
1409
+ var c = s, {
1410
1410
  orientation: a = "horizontal",
1411
1411
  variant: n = "solid",
1412
1412
  className: t = ""
1413
- } = d, i = h(d, [
1413
+ } = c, i = y(c, [
1414
1414
  "orientation",
1415
1415
  "variant",
1416
1416
  "className"
@@ -1418,18 +1418,18 @@ const _e = {
1418
1418
  const f = l(
1419
1419
  "border-0",
1420
1420
  "border-line-default",
1421
- _e[a],
1421
+ He[a],
1422
1422
  Be[n],
1423
1423
  t
1424
1424
  );
1425
- return a === "vertical" ? /* @__PURE__ */ c(
1425
+ return a === "vertical" ? /* @__PURE__ */ d(
1426
1426
  "div",
1427
1427
  m({
1428
1428
  className: f,
1429
1429
  role: "separator",
1430
1430
  "aria-orientation": "vertical"
1431
1431
  }, i)
1432
- ) : /* @__PURE__ */ c(
1432
+ ) : /* @__PURE__ */ d(
1433
1433
  "hr",
1434
1434
  m({
1435
1435
  className: f,
@@ -1438,8 +1438,8 @@ const _e = {
1438
1438
  }, i)
1439
1439
  );
1440
1440
  });
1441
- He.displayName = "Separator";
1442
- function sa(f) {
1441
+ Oe.displayName = "Separator";
1442
+ function da(f) {
1443
1443
  var p = f, {
1444
1444
  variant: r = "text",
1445
1445
  width: a,
@@ -1447,7 +1447,7 @@ function sa(f) {
1447
1447
  lines: t = 1,
1448
1448
  className: i = "",
1449
1449
  "aria-label": s
1450
- } = p, d = h(p, [
1450
+ } = p, c = y(p, [
1451
1451
  "variant",
1452
1452
  "width",
1453
1453
  "height",
@@ -1458,45 +1458,45 @@ function sa(f) {
1458
1458
  const b = [
1459
1459
  "motion-safe:animate-pulse",
1460
1460
  "bg-surface-muted",
1461
- C("sm")
1461
+ M("sm")
1462
1462
  ], u = {
1463
1463
  text: "h-4",
1464
1464
  card: "h-32",
1465
1465
  list: "h-12",
1466
- circle: C("full")
1466
+ circle: M("full")
1467
1467
  }, x = l(...b, u[r], i), g = {};
1468
1468
  a && (g.width = a), n && (g.height = n);
1469
- const y = s || `Loading ${r} content`;
1470
- return r === "text" && t > 1 ? /* @__PURE__ */ c(
1469
+ const h = s || `Loading ${r} content`;
1470
+ return r === "text" && t > 1 ? /* @__PURE__ */ d(
1471
1471
  "div",
1472
1472
  v(m({
1473
1473
  className: o("sm", "space-y"),
1474
1474
  role: "status",
1475
1475
  "aria-busy": "true",
1476
- "aria-label": y
1477
- }, d), {
1478
- children: Array.from({ length: t }).map((T, L) => /* @__PURE__ */ c(
1476
+ "aria-label": h
1477
+ }, c), {
1478
+ children: Array.from({ length: t }).map((C, z) => /* @__PURE__ */ d(
1479
1479
  "div",
1480
1480
  {
1481
1481
  className: x,
1482
- style: L === t - 1 ? { width: "75%" } : g,
1482
+ style: z === t - 1 ? { width: "75%" } : g,
1483
1483
  "aria-hidden": "true"
1484
1484
  },
1485
- L
1485
+ z
1486
1486
  ))
1487
1487
  })
1488
- ) : /* @__PURE__ */ c(
1488
+ ) : /* @__PURE__ */ d(
1489
1489
  "div",
1490
1490
  m({
1491
1491
  className: x,
1492
1492
  style: g,
1493
1493
  role: "status",
1494
1494
  "aria-busy": "true",
1495
- "aria-label": y
1496
- }, d)
1495
+ "aria-label": h
1496
+ }, c)
1497
1497
  );
1498
1498
  }
1499
- const Oe = j("motion-safe:animate-spin", {
1499
+ const Pe = j("motion-safe:animate-spin", {
1500
1500
  variants: {
1501
1501
  size: {
1502
1502
  sm: "h-4 w-4",
@@ -1513,19 +1513,19 @@ const Oe = j("motion-safe:animate-spin", {
1513
1513
  size: "md",
1514
1514
  variant: "primary"
1515
1515
  }
1516
- }), Pe = H(function(d) {
1517
- var f = d, {
1516
+ }), Ue = B(function(c) {
1517
+ var f = c, {
1518
1518
  size: a = "md",
1519
1519
  variant: n = "primary",
1520
1520
  label: t,
1521
1521
  className: i = ""
1522
- } = f, s = h(f, [
1522
+ } = f, s = y(f, [
1523
1523
  "size",
1524
1524
  "variant",
1525
1525
  "label",
1526
1526
  "className"
1527
1527
  ]);
1528
- return /* @__PURE__ */ z(
1528
+ return /* @__PURE__ */ T(
1529
1529
  "div",
1530
1530
  v(m({
1531
1531
  className: l("inline-flex", "items-center", i),
@@ -1534,19 +1534,19 @@ const Oe = j("motion-safe:animate-spin", {
1534
1534
  "aria-live": "polite"
1535
1535
  }, s), {
1536
1536
  children: [
1537
- /* @__PURE__ */ c(
1538
- me,
1537
+ /* @__PURE__ */ d(
1538
+ be,
1539
1539
  {
1540
- className: l(Oe({ size: a, variant: n })),
1540
+ className: l(Pe({ size: a, variant: n })),
1541
1541
  "aria-hidden": "true"
1542
1542
  }
1543
1543
  ),
1544
- t && /* @__PURE__ */ c(
1544
+ t && /* @__PURE__ */ d(
1545
1545
  "span",
1546
1546
  {
1547
1547
  className: l(
1548
1548
  o("sm", "ml"),
1549
- M("bodySmall"),
1549
+ L("bodySmall"),
1550
1550
  "text-fg-secondary",
1551
1551
  "sr-only"
1552
1552
  ),
@@ -1557,8 +1557,8 @@ const Oe = j("motion-safe:animate-spin", {
1557
1557
  })
1558
1558
  );
1559
1559
  });
1560
- Pe.displayName = "Spinner";
1561
- const Ue = {
1560
+ Ue.displayName = "Spinner";
1561
+ const qe = {
1562
1562
  primary: {
1563
1563
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1564
1564
  light: "text-indigo-400",
@@ -1610,7 +1610,7 @@ const Ue = {
1610
1610
  contrast: "text-fg-inverse"
1611
1611
  }
1612
1612
  };
1613
- function qe(b, p) {
1613
+ function Ke(b, p) {
1614
1614
  var u = b, {
1615
1615
  variant: r = "paragraph",
1616
1616
  bold: a,
@@ -1618,8 +1618,8 @@ function qe(b, p) {
1618
1618
  className: t,
1619
1619
  as: i,
1620
1620
  colorRole: s = "neutral",
1621
- colorShade: d = "dark"
1622
- } = u, f = h(u, [
1621
+ colorShade: c = "dark"
1622
+ } = u, f = y(u, [
1623
1623
  "variant",
1624
1624
  "bold",
1625
1625
  "italic",
@@ -1644,16 +1644,16 @@ function qe(b, p) {
1644
1644
  g = "p";
1645
1645
  break;
1646
1646
  }
1647
- return r === "heading" ? x.push(D("h2")) : r === "body" || r === "paragraph" ? x.push(D("body")) : r === "bodySmall" ? x.push(D("bodySmall")) : r === "bodyLarge" ? x.push(D("bodyLarge")) : r === "caption" ? x.push(D("caption")) : r === "label" ? x.push(D("label")) : x.push(D("body")), a && x.push("font-bold"), n && x.push("italic"), x.push(Ue[s][d]), /* @__PURE__ */ c(g, m({ ref: p, className: l(...x, t) }, f));
1647
+ return r === "heading" ? x.push(D("h2")) : r === "body" || r === "paragraph" ? x.push(D("body")) : r === "bodySmall" ? x.push(D("bodySmall")) : r === "bodyLarge" ? x.push(D("bodyLarge")) : r === "caption" ? x.push(D("caption")) : r === "label" ? x.push(D("label")) : x.push(D("body")), a && x.push("font-bold"), n && x.push("italic"), x.push(qe[s][c]), /* @__PURE__ */ d(g, m({ ref: p, className: l(...x, t) }, f));
1648
1648
  }
1649
- const la = O(qe), Ke = {
1649
+ const re = O(Ke), Xe = {
1650
1650
  sm: "max-w-screen-sm",
1651
1651
  md: "max-w-screen-md",
1652
1652
  lg: "max-w-screen-lg",
1653
1653
  xl: "max-w-screen-xl",
1654
1654
  "2xl": "max-w-screen-2xl",
1655
1655
  full: "max-w-full"
1656
- }, Xe = re.forwardRef(
1656
+ }, Ye = ne.forwardRef(
1657
1657
  (p, f) => {
1658
1658
  var b = p, {
1659
1659
  className: r,
@@ -1662,7 +1662,7 @@ const la = O(qe), Ke = {
1662
1662
  paddingY: t = "base",
1663
1663
  center: i = !0,
1664
1664
  children: s
1665
- } = b, d = h(b, [
1665
+ } = b, c = y(b, [
1666
1666
  "className",
1667
1667
  "maxWidth",
1668
1668
  "paddingX",
@@ -1670,26 +1670,26 @@ const la = O(qe), Ke = {
1670
1670
  "center",
1671
1671
  "children"
1672
1672
  ]);
1673
- return /* @__PURE__ */ c(
1673
+ return /* @__PURE__ */ d(
1674
1674
  "div",
1675
1675
  v(m({
1676
1676
  ref: f,
1677
1677
  className: l(
1678
1678
  "w-full",
1679
- Ke[a],
1679
+ Xe[a],
1680
1680
  o(n, "px"),
1681
1681
  o(t, "py"),
1682
1682
  i && "mx-auto",
1683
1683
  r
1684
1684
  )
1685
- }, d), {
1685
+ }, c), {
1686
1686
  children: s
1687
1687
  })
1688
1688
  );
1689
1689
  }
1690
1690
  );
1691
- Xe.displayName = "Container";
1692
- const Ye = re.forwardRef(
1691
+ Ye.displayName = "Container";
1692
+ const Ze = ne.forwardRef(
1693
1693
  (p, f) => {
1694
1694
  var b = p, {
1695
1695
  className: r,
@@ -1698,7 +1698,7 @@ const Ye = re.forwardRef(
1698
1698
  justify: t = "start",
1699
1699
  direction: i = "column",
1700
1700
  children: s
1701
- } = b, d = h(b, [
1701
+ } = b, c = y(b, [
1702
1702
  "className",
1703
1703
  "spacing",
1704
1704
  "align",
@@ -1719,7 +1719,7 @@ const Ye = re.forwardRef(
1719
1719
  around: "justify-around",
1720
1720
  evenly: "justify-evenly"
1721
1721
  };
1722
- return /* @__PURE__ */ c(
1722
+ return /* @__PURE__ */ d(
1723
1723
  "div",
1724
1724
  v(m({
1725
1725
  ref: f,
@@ -1731,37 +1731,37 @@ const Ye = re.forwardRef(
1731
1731
  g[t],
1732
1732
  r
1733
1733
  )
1734
- }, d), {
1734
+ }, c), {
1735
1735
  children: s
1736
1736
  })
1737
1737
  );
1738
1738
  }
1739
1739
  );
1740
- Ye.displayName = "Stack";
1741
- function oa(i) {
1740
+ Ze.displayName = "Stack";
1741
+ function Ge(i) {
1742
1742
  var s = i, {
1743
1743
  items: r,
1744
1744
  separator: a = "/",
1745
1745
  className: n = ""
1746
- } = s, t = h(s, [
1746
+ } = s, t = y(s, [
1747
1747
  "items",
1748
1748
  "separator",
1749
1749
  "className"
1750
1750
  ]);
1751
- const d = [
1751
+ const c = [
1752
1752
  "flex",
1753
1753
  "items-center",
1754
1754
  o("sm", "space-x"),
1755
- M("bodySmall")
1756
- ], f = l(...d, n);
1757
- return /* @__PURE__ */ c("nav", v(m({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ c(
1755
+ L("bodySmall")
1756
+ ], f = l(...c, n);
1757
+ return /* @__PURE__ */ d("nav", v(m({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ d(
1758
1758
  "ol",
1759
1759
  {
1760
1760
  className: l("flex", "items-center", o("sm", "space-x")),
1761
1761
  children: r.map((p, b) => {
1762
1762
  const u = b === r.length - 1;
1763
- return /* @__PURE__ */ z("li", { className: "flex items-center", children: [
1764
- b > 0 && /* @__PURE__ */ c(
1763
+ return /* @__PURE__ */ T("li", { className: "flex items-center", children: [
1764
+ b > 0 && /* @__PURE__ */ d(
1765
1765
  "span",
1766
1766
  {
1767
1767
  className: l(
@@ -1772,17 +1772,17 @@ function oa(i) {
1772
1772
  children: a
1773
1773
  }
1774
1774
  ),
1775
- u ? /* @__PURE__ */ c(
1775
+ u ? /* @__PURE__ */ d(
1776
1776
  "span",
1777
1777
  {
1778
1778
  className: l(
1779
1779
  "text-fg-primary",
1780
- B("label")
1780
+ H("label")
1781
1781
  ),
1782
1782
  "aria-current": "page",
1783
1783
  children: p.label
1784
1784
  }
1785
- ) : p.href ? /* @__PURE__ */ c(
1785
+ ) : p.href ? /* @__PURE__ */ d(
1786
1786
  "a",
1787
1787
  {
1788
1788
  href: p.href,
@@ -1793,8 +1793,8 @@ function oa(i) {
1793
1793
  o("xs", "pt"),
1794
1794
  "border-b-2",
1795
1795
  "border-transparent",
1796
- M("bodySmall"),
1797
- B("label"),
1796
+ L("bodySmall"),
1797
+ H("label"),
1798
1798
  "transition-colors",
1799
1799
  "text-fg-secondary",
1800
1800
  "hover:border-line-emphasis",
@@ -1802,22 +1802,22 @@ function oa(i) {
1802
1802
  ),
1803
1803
  children: p.label
1804
1804
  }
1805
- ) : /* @__PURE__ */ c("span", { className: "text-fg-secondary", children: p.label })
1805
+ ) : /* @__PURE__ */ d("span", { className: "text-fg-secondary", children: p.label })
1806
1806
  ] }, b);
1807
1807
  })
1808
1808
  }
1809
1809
  ) }));
1810
1810
  }
1811
- const Ze = H(function(b) {
1811
+ const Qe = B(function(b) {
1812
1812
  var u = b, {
1813
1813
  variant: a = "default",
1814
1814
  padding: n = "medium",
1815
1815
  className: t = "",
1816
1816
  onClick: i,
1817
1817
  "aria-label": s,
1818
- "aria-labelledby": d,
1818
+ "aria-labelledby": c,
1819
1819
  children: f
1820
- } = u, p = h(u, [
1820
+ } = u, p = y(u, [
1821
1821
  "variant",
1822
1822
  "padding",
1823
1823
  "className",
@@ -1829,7 +1829,7 @@ const Ze = H(function(b) {
1829
1829
  const x = j(
1830
1830
  l(
1831
1831
  "bg-surface-base",
1832
- C("lg"),
1832
+ M("lg"),
1833
1833
  "border",
1834
1834
  "border-line-default",
1835
1835
  X("sm")
@@ -1857,34 +1857,34 @@ const Ze = H(function(b) {
1857
1857
  padding: "medium"
1858
1858
  }
1859
1859
  }
1860
- ), g = i !== void 0, y = g ? "button" : void 0, T = g ? 0 : void 0, L = l(x({ variant: a, padding: n }), t);
1861
- return /* @__PURE__ */ c(
1860
+ ), g = i !== void 0, h = g ? "button" : void 0, C = g ? 0 : void 0, z = l(x({ variant: a, padding: n }), t);
1861
+ return /* @__PURE__ */ d(
1862
1862
  "div",
1863
1863
  v(m({
1864
- className: L,
1865
- role: y,
1866
- tabIndex: T,
1864
+ className: z,
1865
+ role: h,
1866
+ tabIndex: C,
1867
1867
  onClick: i,
1868
1868
  onKeyDown: g ? (R) => {
1869
1869
  g && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), i == null || i());
1870
1870
  } : void 0,
1871
1871
  "aria-label": s,
1872
- "aria-labelledby": d
1872
+ "aria-labelledby": c
1873
1873
  }, p), {
1874
1874
  children: f
1875
1875
  })
1876
1876
  );
1877
1877
  });
1878
- Ze.displayName = "Card";
1879
- function da(t) {
1878
+ Qe.displayName = "Card";
1879
+ function ca(t) {
1880
1880
  var i = t, {
1881
1881
  children: r,
1882
1882
  className: a = ""
1883
- } = i, n = h(i, [
1883
+ } = i, n = y(i, [
1884
1884
  "children",
1885
1885
  "className"
1886
1886
  ]);
1887
- return /* @__PURE__ */ c(
1887
+ return /* @__PURE__ */ d(
1888
1888
  "div",
1889
1889
  v(m({
1890
1890
  className: `flex flex-col ${o("1.5", "space-y")} ${o("lg", "p")} ${o("base", "pb")} ${a}`
@@ -1893,15 +1893,15 @@ function da(t) {
1893
1893
  })
1894
1894
  );
1895
1895
  }
1896
- function ca(t) {
1896
+ function fa(t) {
1897
1897
  var i = t, {
1898
1898
  children: r,
1899
1899
  className: a = ""
1900
- } = i, n = h(i, [
1900
+ } = i, n = y(i, [
1901
1901
  "children",
1902
1902
  "className"
1903
1903
  ]);
1904
- return /* @__PURE__ */ c(
1904
+ return /* @__PURE__ */ d(
1905
1905
  "div",
1906
1906
  v(m({
1907
1907
  className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${o("sm", "space-x")} ${o("lg", "p")} ${o("base", "pt")} ${a}`
@@ -1910,15 +1910,15 @@ function ca(t) {
1910
1910
  })
1911
1911
  );
1912
1912
  }
1913
- function fa(t) {
1913
+ function pa(t) {
1914
1914
  var i = t, {
1915
1915
  children: r,
1916
1916
  className: a = ""
1917
- } = i, n = h(i, [
1917
+ } = i, n = y(i, [
1918
1918
  "children",
1919
1919
  "className"
1920
1920
  ]);
1921
- return /* @__PURE__ */ c(
1921
+ return /* @__PURE__ */ d(
1922
1922
  "div",
1923
1923
  v(m({
1924
1924
  className: `
@@ -1932,15 +1932,15 @@ function fa(t) {
1932
1932
  })
1933
1933
  );
1934
1934
  }
1935
- function pa(t) {
1935
+ function ua(t) {
1936
1936
  var i = t, {
1937
1937
  children: r,
1938
1938
  className: a = ""
1939
- } = i, n = h(i, [
1939
+ } = i, n = y(i, [
1940
1940
  "children",
1941
1941
  "className"
1942
1942
  ]);
1943
- return /* @__PURE__ */ c(
1943
+ return /* @__PURE__ */ d(
1944
1944
  "div",
1945
1945
  v(m({
1946
1946
  className: `
@@ -1957,8 +1957,8 @@ function pa(t) {
1957
1957
  })
1958
1958
  );
1959
1959
  }
1960
- function ua({ children: r, className: a }) {
1961
- return /* @__PURE__ */ c(
1960
+ function ma({ children: r, className: a }) {
1961
+ return /* @__PURE__ */ d(
1962
1962
  "div",
1963
1963
  {
1964
1964
  className: l(
@@ -1970,11 +1970,11 @@ function ua({ children: r, className: a }) {
1970
1970
  }
1971
1971
  );
1972
1972
  }
1973
- function ma({
1973
+ function ba({
1974
1974
  children: r,
1975
1975
  className: a
1976
1976
  }) {
1977
- return /* @__PURE__ */ c(
1977
+ return /* @__PURE__ */ d(
1978
1978
  "nav",
1979
1979
  {
1980
1980
  className: l(
@@ -1989,13 +1989,13 @@ function ma({
1989
1989
  }
1990
1990
  );
1991
1991
  }
1992
- function ba(n) {
1992
+ function ga(n) {
1993
1993
  var t = n, {
1994
1994
  className: r = ""
1995
- } = t, a = h(t, [
1995
+ } = t, a = y(t, [
1996
1996
  "className"
1997
1997
  ]);
1998
- return /* @__PURE__ */ c(
1998
+ return /* @__PURE__ */ d(
1999
1999
  "div",
2000
2000
  m({
2001
2001
  role: "separator",
@@ -2008,22 +2008,22 @@ function ba(n) {
2008
2008
  }, a)
2009
2009
  );
2010
2010
  }
2011
- function ga(t) {
2011
+ function xa(t) {
2012
2012
  var i = t, {
2013
2013
  orientation: r = "horizontal",
2014
2014
  className: a = ""
2015
- } = i, n = h(i, [
2015
+ } = i, n = y(i, [
2016
2016
  "orientation",
2017
2017
  "className"
2018
2018
  ]);
2019
- return r === "vertical" ? /* @__PURE__ */ c(
2019
+ return r === "vertical" ? /* @__PURE__ */ d(
2020
2020
  "div",
2021
2021
  m({
2022
2022
  className: l("w-px", "h-6", "bg-line-default", "mx-auto", a),
2023
2023
  role: "separator",
2024
2024
  "aria-orientation": "vertical"
2025
2025
  }, n)
2026
- ) : /* @__PURE__ */ c(
2026
+ ) : /* @__PURE__ */ d(
2027
2027
  "div",
2028
2028
  m({
2029
2029
  className: l(
@@ -2046,27 +2046,89 @@ function ga(t) {
2046
2046
  }, n)
2047
2047
  );
2048
2048
  }
2049
- function xa(i) {
2050
- var s = i, { column: r, row: a, className: n = "" } = s, t = h(s, ["column", "row", "className"]);
2051
- const d = r.key in a ? a[r.key] : void 0;
2052
- return /* @__PURE__ */ c(
2049
+ const Je = j(
2050
+ // Base classes
2051
+ l("w-full", "flex", "flex-col", o("sm", "gap")),
2052
+ {
2053
+ variants: {
2054
+ variant: {
2055
+ default: l(o("base", "mb")),
2056
+ compact: l(o("sm", "mb"))
2057
+ }
2058
+ },
2059
+ defaultVariants: {
2060
+ variant: "default"
2061
+ }
2062
+ }
2063
+ );
2064
+ function ya(f) {
2065
+ var p = f, {
2066
+ title: r,
2067
+ description: a,
2068
+ breadcrumb: n,
2069
+ actions: t,
2070
+ variant: i = "default",
2071
+ className: s
2072
+ } = p, c = y(p, [
2073
+ "title",
2074
+ "description",
2075
+ "breadcrumb",
2076
+ "actions",
2077
+ "variant",
2078
+ "className"
2079
+ ]);
2080
+ return /* @__PURE__ */ T("div", v(m({ className: l(Je({ variant: i }), s) }, c), { children: [
2081
+ n && n.length > 0 && /* @__PURE__ */ d(Ge, { items: n }),
2082
+ /* @__PURE__ */ T(
2083
+ "div",
2084
+ {
2085
+ className: `flex items-start justify-between ${o("base", "gap")}`,
2086
+ children: [
2087
+ /* @__PURE__ */ T("div", { className: "flex-1 min-w-0", children: [
2088
+ /* @__PURE__ */ d(
2089
+ re,
2090
+ {
2091
+ variant: "heading",
2092
+ as: "h1",
2093
+ className: `${o("sm", "mb")} text-2xl font-bold`,
2094
+ children: r
2095
+ }
2096
+ ),
2097
+ a && /* @__PURE__ */ d(re, { variant: "body", className: "text-fg-secondary", children: a })
2098
+ ] }),
2099
+ t && /* @__PURE__ */ d(
2100
+ "div",
2101
+ {
2102
+ className: `flex items-center ${o("sm", "gap")} flex-shrink-0`,
2103
+ children: t
2104
+ }
2105
+ )
2106
+ ]
2107
+ }
2108
+ )
2109
+ ] }));
2110
+ }
2111
+ function ha(i) {
2112
+ var s = i, { column: r, row: a, className: n = "" } = s, t = y(s, ["column", "row", "className"]);
2113
+ const c = r.key in a ? a[r.key] : void 0;
2114
+ return /* @__PURE__ */ d(
2053
2115
  "td",
2054
2116
  v(m({
2055
2117
  className: `${o("lg", "px")} ${o("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
2056
2118
  }, t), {
2057
- children: r.render ? r.render(d, a) : String(d != null ? d : "")
2119
+ children: r.render ? r.render(c, a) : String(c != null ? c : "")
2058
2120
  })
2059
2121
  );
2060
2122
  }
2061
- function ya({
2123
+ function wa({
2062
2124
  items: r,
2063
2125
  orientation: a = "vertical",
2064
2126
  className: n = ""
2065
2127
  }) {
2066
- return a === "horizontal" ? /* @__PURE__ */ c("div", { className: `flex items-start ${n}`, children: r.map((t, i) => {
2067
- const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), d = i === r.length - 1;
2068
- return /* @__PURE__ */ c("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center flex-1", children: [
2069
- /* @__PURE__ */ c(
2128
+ return a === "horizontal" ? /* @__PURE__ */ d("div", { className: `flex items-start ${n}`, children: r.map((t, i) => {
2129
+ const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
2130
+ return /* @__PURE__ */ d("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center flex-1", children: [
2131
+ /* @__PURE__ */ d(
2070
2132
  "div",
2071
2133
  v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
2072
2134
  className: `
@@ -2075,14 +2137,14 @@ function ya({
2075
2137
  justify-center
2076
2138
  w-10
2077
2139
  h-10
2078
- ${C("full")}
2140
+ ${M("full")}
2079
2141
  border-2
2080
2142
  ${s === "completed" ? "bg-success border-success text-fg-inverse" : s === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : s === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2081
2143
  `,
2082
- children: t.icon || (s === "completed" ? /* @__PURE__ */ c(J, { className: "h-4 w-4" }) : i + 1)
2144
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
2083
2145
  })
2084
2146
  ),
2085
- !d && /* @__PURE__ */ c(
2147
+ !c && /* @__PURE__ */ d(
2086
2148
  "div",
2087
2149
  {
2088
2150
  className: `
@@ -2093,40 +2155,40 @@ function ya({
2093
2155
  `
2094
2156
  }
2095
2157
  ),
2096
- /* @__PURE__ */ z(
2158
+ /* @__PURE__ */ T(
2097
2159
  "div",
2098
2160
  {
2099
2161
  className: `${o("base", "mt")} text-center ${o("base", "px")}`,
2100
2162
  children: [
2101
- t.timestamp && /* @__PURE__ */ c(
2163
+ t.timestamp && /* @__PURE__ */ d(
2102
2164
  "p",
2103
2165
  {
2104
2166
  className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
2105
2167
  children: t.timestamp
2106
2168
  }
2107
2169
  ),
2108
- /* @__PURE__ */ c("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2109
- t.description && /* @__PURE__ */ c(
2170
+ /* @__PURE__ */ d("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2171
+ t.description && /* @__PURE__ */ d(
2110
2172
  "p",
2111
2173
  {
2112
2174
  className: `text-xs text-fg-secondary ${o("xs", "mt")}`,
2113
2175
  children: t.description
2114
2176
  }
2115
2177
  ),
2116
- t.content && /* @__PURE__ */ c("div", { className: o("sm", "mt"), children: t.content })
2178
+ t.content && /* @__PURE__ */ d("div", { className: o("sm", "mt"), children: t.content })
2117
2179
  ]
2118
2180
  }
2119
2181
  )
2120
2182
  ] }) }, t.id);
2121
- }) }) : /* @__PURE__ */ c("div", { className: `${o("none", "space-y")} ${n}`, children: r.map((t, i) => {
2122
- const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), d = i === r.length - 1;
2123
- return /* @__PURE__ */ z(
2183
+ }) }) : /* @__PURE__ */ d("div", { className: `${o("none", "space-y")} ${n}`, children: r.map((t, i) => {
2184
+ const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
2185
+ return /* @__PURE__ */ T(
2124
2186
  "div",
2125
2187
  {
2126
2188
  className: `flex items-start ${o("base", "gap")}`,
2127
2189
  children: [
2128
- /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
2129
- /* @__PURE__ */ c(
2190
+ /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
2191
+ /* @__PURE__ */ d(
2130
2192
  "div",
2131
2193
  v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
2132
2194
  className: `
@@ -2135,14 +2197,14 @@ function ya({
2135
2197
  justify-center
2136
2198
  w-10
2137
2199
  h-10
2138
- ${C("full")}
2200
+ ${M("full")}
2139
2201
  border-2
2140
2202
  ${s === "completed" ? "bg-success border-success text-fg-inverse" : s === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : s === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2141
2203
  `,
2142
- children: t.icon || (s === "completed" ? /* @__PURE__ */ c(J, { className: "h-4 w-4" }) : i + 1)
2204
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
2143
2205
  })
2144
2206
  ),
2145
- !d && /* @__PURE__ */ c(
2207
+ !c && /* @__PURE__ */ d(
2146
2208
  "div",
2147
2209
  {
2148
2210
  className: `
@@ -2155,15 +2217,15 @@ function ya({
2155
2217
  }
2156
2218
  )
2157
2219
  ] }),
2158
- /* @__PURE__ */ z("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
2159
- t.timestamp && /* @__PURE__ */ c(
2220
+ /* @__PURE__ */ T("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
2221
+ t.timestamp && /* @__PURE__ */ d(
2160
2222
  "p",
2161
2223
  {
2162
2224
  className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
2163
2225
  children: t.timestamp
2164
2226
  }
2165
2227
  ),
2166
- /* @__PURE__ */ c(
2228
+ /* @__PURE__ */ d(
2167
2229
  "h3",
2168
2230
  {
2169
2231
  className: `
@@ -2174,14 +2236,14 @@ function ya({
2174
2236
  children: t.title
2175
2237
  }
2176
2238
  ),
2177
- t.description && /* @__PURE__ */ c(
2239
+ t.description && /* @__PURE__ */ d(
2178
2240
  "p",
2179
2241
  {
2180
2242
  className: `text-sm text-fg-secondary ${o("xs", "mt")}`,
2181
2243
  children: t.description
2182
2244
  }
2183
2245
  ),
2184
- t.content && /* @__PURE__ */ c("div", { className: o("md", "mt"), children: t.content })
2246
+ t.content && /* @__PURE__ */ d("div", { className: o("md", "mt"), children: t.content })
2185
2247
  ] })
2186
2248
  ]
2187
2249
  },
@@ -2190,29 +2252,30 @@ function ya({
2190
2252
  }) });
2191
2253
  }
2192
2254
  export {
2193
- ye as Badge,
2194
- oa as Breadcrumb,
2195
- Ze as Card,
2196
- Le as Chip,
2197
- Xe as Container,
2198
- ca as DialogFooter,
2199
- da as DialogHeader,
2200
- pa as DrawerFooter,
2201
- fa as DrawerHeader,
2202
- na as ErrorMessage,
2203
- ua as HeaderActions,
2204
- ma as HeaderNavigation,
2205
- ia as Info,
2206
- Ee as Label,
2207
- ba as MenuSeparator,
2208
- ga as NavbarSeparator,
2209
- Re as Progress,
2210
- He as Separator,
2211
- sa as Skeleton,
2212
- Pe as Spinner,
2213
- Ye as Stack,
2214
- xa as TableCell,
2215
- la as Text,
2216
- ya as Timeline
2255
+ he as Badge,
2256
+ Ge as Breadcrumb,
2257
+ Qe as Card,
2258
+ ze as Chip,
2259
+ Ye as Container,
2260
+ fa as DialogFooter,
2261
+ ca as DialogHeader,
2262
+ ua as DrawerFooter,
2263
+ pa as DrawerHeader,
2264
+ la as ErrorMessage,
2265
+ ma as HeaderActions,
2266
+ ba as HeaderNavigation,
2267
+ oa as Info,
2268
+ Ie as Label,
2269
+ ga as MenuSeparator,
2270
+ xa as NavbarSeparator,
2271
+ ya as PageHeader,
2272
+ _e as Progress,
2273
+ Oe as Separator,
2274
+ da as Skeleton,
2275
+ Ue as Spinner,
2276
+ Ze as Stack,
2277
+ ha as TableCell,
2278
+ re as Text,
2279
+ wa as Timeline
2217
2280
  };
2218
2281
  //# sourceMappingURL=index.js.map