@fabio.caffarello/react-design-system 3.3.1 → 3.5.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,33 +1,33 @@
1
- var se = Object.defineProperty, le = Object.defineProperties;
2
- var oe = Object.getOwnPropertyDescriptors;
3
- var P = Object.getOwnPropertySymbols;
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) => {
1
+ var de = Object.defineProperty, ce = Object.defineProperties;
2
+ var fe = Object.getOwnPropertyDescriptors;
3
+ var U = Object.getOwnPropertySymbols;
4
+ var Q = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
5
+ var Y = (r, a, n) => a in r ? de(r, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[a] = n, u = (r, a) => {
6
6
  for (var n in a || (a = {}))
7
- Z.call(a, n) && K(r, n, a[n]);
8
- if (P)
9
- for (var n of P(a))
10
- G.call(a, n) && K(r, n, a[n]);
7
+ Q.call(a, n) && Y(r, n, a[n]);
8
+ if (U)
9
+ for (var n of U(a))
10
+ J.call(a, n) && Y(r, n, a[n]);
11
11
  return r;
12
- }, v = (r, a) => le(r, oe(a));
13
- var h = (r, a) => {
12
+ }, y = (r, a) => ce(r, fe(a));
13
+ var x = (r, a) => {
14
14
  var n = {};
15
15
  for (var t in r)
16
- Z.call(r, t) && a.indexOf(t) < 0 && (n[t] = r[t]);
17
- if (r != null && P)
18
- for (var t of P(r))
19
- a.indexOf(t) < 0 && G.call(r, t) && (n[t] = r[t]);
16
+ Q.call(r, t) && a.indexOf(t) < 0 && (n[t] = r[t]);
17
+ if (r != null && U)
18
+ for (var t of U(r))
19
+ a.indexOf(t) < 0 && J.call(r, t) && (n[t] = r[t]);
20
20
  return n;
21
21
  };
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";
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";
30
- class A {
22
+ var ee = (r, a, n) => Y(r, typeof a != "symbol" ? a + "" : a, n);
23
+ import { jsx as d, jsxs as $ } from "react/jsx-runtime";
24
+ import * as T from "react";
25
+ import ie, { memo as B, forwardRef as O } from "react";
26
+ import { clsx as pe } from "clsx";
27
+ import { twMerge as ue } from "tailwind-merge";
28
+ import { cva as me } from "class-variance-authority";
29
+ import { X as be, AlertCircle as ge, Loader2 as xe, CheckCircle2 as ae } from "lucide-react";
30
+ class I {
31
31
  /**
32
32
  * Create a radius token
33
33
  */
@@ -83,20 +83,20 @@ class A {
83
83
  };
84
84
  }
85
85
  }
86
- const be = {
87
- none: A.create("none"),
88
- sm: A.create("sm"),
89
- md: A.create("md"),
90
- lg: A.create("lg"),
91
- xl: A.create("xl"),
92
- "2xl": A.create("2xl"),
93
- "3xl": A.create("3xl"),
94
- full: A.create("full")
86
+ const ye = {
87
+ none: I.create("none"),
88
+ sm: I.create("sm"),
89
+ md: I.create("md"),
90
+ lg: I.create("lg"),
91
+ xl: I.create("xl"),
92
+ "2xl": I.create("2xl"),
93
+ "3xl": I.create("3xl"),
94
+ full: I.create("full")
95
95
  };
96
- function C(r) {
97
- return be[r].tailwind;
96
+ function M(r) {
97
+ return ye[r].tailwind;
98
98
  }
99
- class k {
99
+ class N {
100
100
  // 4px base
101
101
  /**
102
102
  * Create a spacing token from scale value
@@ -163,46 +163,46 @@ class k {
163
163
  }[a] || String(a);
164
164
  }
165
165
  }
166
- Q(k, "BASE_UNIT", 4);
167
- const ge = {
166
+ ee(N, "BASE_UNIT", 4);
167
+ const he = {
168
168
  // Micro spacing (0-14px)
169
- none: k.create(0),
170
- "0.5": k.create(0.5),
169
+ none: N.create(0),
170
+ "0.5": N.create(0.5),
171
171
  // 2px (half-step)
172
- xs: k.create(1),
172
+ xs: N.create(1),
173
173
  // 4px
174
- "1.5": k.create(1.5),
174
+ "1.5": N.create(1.5),
175
175
  // 6px (half-step)
176
- sm: k.create(2),
176
+ sm: N.create(2),
177
177
  // 8px
178
- "2.5": k.create(2.5),
178
+ "2.5": N.create(2.5),
179
179
  // 10px (half-step)
180
- md: k.create(3),
180
+ md: N.create(3),
181
181
  // 12px
182
- "3.5": k.create(3.5),
182
+ "3.5": N.create(3.5),
183
183
  // 14px (half-step)
184
184
  // Standard spacing (16-32px)
185
- base: k.create(4),
185
+ base: N.create(4),
186
186
  // 16px
187
- lg: k.create(6),
187
+ lg: N.create(6),
188
188
  // 24px
189
- xl: k.create(8),
189
+ xl: N.create(8),
190
190
  // 32px
191
191
  // Large spacing (40-64px)
192
- "2xl": k.create(10),
192
+ "2xl": N.create(10),
193
193
  // 40px
194
- "3xl": k.create(12),
194
+ "3xl": N.create(12),
195
195
  // 48px
196
- "4xl": k.create(16),
196
+ "4xl": N.create(16),
197
197
  // 64px
198
198
  // Extra large spacing (80px+)
199
- "5xl": k.create(20),
199
+ "5xl": N.create(20),
200
200
  // 80px
201
- "6xl": k.create(24)
201
+ "6xl": N.create(24)
202
202
  // 96px
203
203
  };
204
204
  function o(r, a = "p") {
205
- const t = ge[r].tailwind;
205
+ const t = he[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 k {
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");
299
- const Y = {
298
+ k.createFontWeight("light"), k.createFontWeight("normal"), k.createFontWeight("medium"), k.createFontWeight("semibold"), k.createFontWeight("bold");
299
+ const G = {
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: k.create("4xl", "tight", "bold"),
302
+ h2: k.create("3xl", "tight", "bold"),
303
+ h3: k.create("2xl", "snug", "semibold"),
304
+ h4: k.create("xl", "snug", "semibold"),
305
+ h5: k.create("lg", "normal", "medium"),
306
+ h6: k.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: k.create("base", "relaxed", "normal"),
309
+ bodySmall: k.create("sm", "relaxed", "normal"),
310
+ bodyLarge: k.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: k.create("sm", "normal", "medium"),
313
+ caption: k.create("xs", "normal", "normal"),
314
+ button: k.create("base", "normal", "medium")
315
315
  };
316
- function D(r) {
317
- const a = Y[r];
316
+ function V(r) {
317
+ const a = G[r];
318
318
  return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
319
319
  }
320
- function M(r) {
321
- return Y[r].fontSize.tailwind;
320
+ function z(r) {
321
+ return G[r].fontSize.tailwind;
322
322
  }
323
- function B(r) {
324
- return Y[r].fontWeight.tailwind;
323
+ function H(r) {
324
+ return G[r].fontWeight.tailwind;
325
325
  }
326
326
  function l(...r) {
327
- return ce(de(r));
327
+ return ue(pe(r));
328
328
  }
329
329
  const j = (r, a) => {
330
- const n = fe(r, a);
330
+ const n = me(r, a);
331
331
  return ((t) => {
332
- const i = n(t);
333
- return l(i);
332
+ const s = n(t);
333
+ return l(s);
334
334
  });
335
- }, xe = j(
335
+ }, ve = 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
+ z("caption")
361
361
  ),
362
362
  md: l(
363
363
  o("sm", "px"),
364
364
  o("xs", "py"),
365
- M("caption")
365
+ z("caption")
366
366
  ),
367
367
  lg: l(
368
368
  o("sm", "px"),
369
369
  o("xs", "py"),
370
- M("bodySmall")
370
+ z("bodySmall")
371
371
  )
372
372
  },
373
373
  style: {
@@ -470,16 +470,16 @@ const j = (r, a) => {
470
470
  style: "solid"
471
471
  }
472
472
  }
473
- ), ye = H(
473
+ ), we = B(
474
474
  O(function(b, p) {
475
- var u = b, {
475
+ var m = b, {
476
476
  variant: a = "neutral",
477
477
  size: n = "md",
478
478
  style: t = "solid",
479
- className: i = "",
480
- children: s,
481
- "aria-label": d
482
- } = u, f = h(u, [
479
+ className: s = "",
480
+ children: i,
481
+ "aria-label": c
482
+ } = m, f = x(m, [
483
483
  "variant",
484
484
  "size",
485
485
  "style",
@@ -487,112 +487,112 @@ 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 h = l(ve({ variant: a, size: n, style: t }), s);
491
491
  let g;
492
- if (d)
493
- g = d;
494
- else if (typeof s == "string")
495
- g = s;
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);
492
+ if (c)
493
+ g = c;
494
+ else if (typeof i == "string")
495
+ g = i;
496
+ else if (typeof i == "object" && i !== null && "props" in i) {
497
+ const v = i.props;
498
+ v != null && v.children && typeof v.children == "string" && (g = v.children);
499
499
  }
500
- return /* @__PURE__ */ c(
500
+ return /* @__PURE__ */ d(
501
501
  "span",
502
- v(m({
502
+ y(u({
503
503
  ref: p,
504
504
  role: "status",
505
505
  "aria-label": g,
506
- className: x
506
+ className: h
507
507
  }, f), {
508
- children: s
508
+ children: i
509
509
  })
510
510
  );
511
511
  })
512
512
  );
513
- ye.displayName = "Badge";
514
- function ee(r, a) {
513
+ we.displayName = "Badge";
514
+ function te(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 Ne(...r) {
520
520
  return (a) => {
521
521
  let n = !1;
522
- const t = r.map((i) => {
523
- const s = ee(i, a);
524
- return !n && typeof s == "function" && (n = !0), s;
522
+ const t = r.map((s) => {
523
+ const i = te(s, a);
524
+ return !n && typeof i == "function" && (n = !0), i;
525
525
  });
526
526
  if (n)
527
527
  return () => {
528
- for (let i = 0; i < t.length; i++) {
529
- const s = t[i];
530
- typeof s == "function" ? s() : ee(r[i], null);
528
+ for (let s = 0; s < t.length; s++) {
529
+ const i = t[s];
530
+ typeof i == "function" ? i() : te(r[s], null);
531
531
  }
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 ke = /* @__PURE__ */ Symbol.for("react.lazy"), K = T[" use ".trim().toString()];
536
+ function $e(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 le(r) {
540
+ return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === ke && "_payload" in r && $e(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 Se(r) {
544
+ const a = /* @__PURE__ */ Ce(r), n = T.forwardRef((t, s) => {
545
+ let b = t, { children: i } = b, c = x(b, ["children"]);
546
+ le(i) && typeof K == "function" && (i = K(i._payload));
547
+ const f = T.Children.toArray(i), p = f.find(ze);
548
548
  if (p) {
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 }));
549
+ const m = p.props.children, h = f.map((g) => g === p ? T.Children.count(m) > 1 ? T.Children.only(null) : T.isValidElement(m) ? m.props.children : null : g);
550
+ return /* @__PURE__ */ d(a, y(u({}, c), { ref: s, children: T.isValidElement(m) ? T.cloneElement(m, void 0, h) : null }));
551
551
  }
552
- return /* @__PURE__ */ c(a, v(m({}, d), { ref: i, children: s }));
552
+ return /* @__PURE__ */ d(a, y(u({}, c), { ref: s, children: i }));
553
553
  });
554
554
  return n.displayName = `${r}.Slot`, n;
555
555
  }
556
- var $e = /* @__PURE__ */ ke("Slot");
556
+ var Te = /* @__PURE__ */ Se("Slot");
557
557
  // @__NO_SIDE_EFFECTS__
558
- function Ne(r) {
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);
558
+ function Ce(r) {
559
+ const a = T.forwardRef((n, t) => {
560
+ let c = n, { children: s } = c, i = x(c, ["children"]);
561
+ if (le(s) && typeof K == "function" && (s = K(s._payload)), T.isValidElement(s)) {
562
+ const f = Fe(s), p = Le(i, s.props);
563
+ return s.type !== T.Fragment && (p.ref = t ? Ne(t, f) : f), T.cloneElement(s, p);
564
564
  }
565
- return S.Children.count(i) > 1 ? S.Children.only(null) : null;
565
+ return T.Children.count(s) > 1 ? T.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 Me = /* @__PURE__ */ Symbol("radix.slottable");
570
+ function ze(r) {
571
+ return T.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Me;
572
572
  }
573
- function Ce(r, a) {
574
- const n = m({}, a);
573
+ function Le(r, a) {
574
+ const n = u({}, a);
575
575
  for (const t in a) {
576
- const i = r[t], s = a[t];
577
- /^on[A-Z]/.test(t) ? i && s ? n[t] = (...f) => {
578
- const p = s(...f);
579
- return i(...f), p;
580
- } : i && (n[t] = i) : t === "style" ? n[t] = m(m({}, i), s) : t === "className" && (n[t] = [i, s].filter(Boolean).join(" "));
576
+ const s = r[t], i = a[t];
577
+ /^on[A-Z]/.test(t) ? s && i ? n[t] = (...f) => {
578
+ const p = i(...f);
579
+ return s(...f), p;
580
+ } : s && (n[t] = s) : t === "style" ? n[t] = u(u({}, s), i) : t === "className" && (n[t] = [s, i].filter(Boolean).join(" "));
581
581
  }
582
- return m(m({}, r), n);
582
+ return u(u({}, r), n);
583
583
  }
584
- function Me(r) {
585
- var t, i;
584
+ function Fe(r) {
585
+ var t, s;
586
586
  let a = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
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);
587
+ return n ? r.ref : (a = (s = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : s.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? r.props.ref : r.props.ref || r.ref);
588
588
  }
589
- const ae = j(
589
+ const re = j(
590
590
  // Base classes
591
591
  l(
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
+ z("caption")
625
625
  ),
626
626
  md: l(
627
627
  o("sm", "px"),
628
628
  o("xs", "py"),
629
- M("bodySmall")
629
+ z("bodySmall")
630
630
  ),
631
631
  lg: l(
632
632
  o("md", "px"),
633
633
  o("sm", "py"),
634
- M("body")
634
+ z("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
+ ), Ee = O(function(a, n) {
679
679
  const {
680
680
  children: t,
681
- variant: i = "default",
682
- size: s = "md",
683
- selected: d = !1,
681
+ variant: s = "default",
682
+ size: i = "md",
683
+ selected: c = !1,
684
684
  disabled: f = !1,
685
685
  className: p = "",
686
686
  "aria-label": b,
687
- tabIndex: u,
688
- asChild: x = !1
689
- } = a, y = (() => {
687
+ tabIndex: m,
688
+ asChild: h = !1
689
+ } = a, v = (() => {
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) {
@@ -695,45 +695,45 @@ const ae = j(
695
695
  return F.children;
696
696
  }
697
697
  })();
698
- if (x)
699
- return /* @__PURE__ */ c(
700
- $e,
698
+ if (h)
699
+ return /* @__PURE__ */ d(
700
+ Te,
701
701
  {
702
702
  ref: n,
703
703
  className: l(
704
- ae({ variant: i, size: s, selected: d, disabled: f }),
704
+ re({ variant: s, size: i, selected: c, disabled: f }),
705
705
  p
706
706
  ),
707
707
  "aria-label": b,
708
708
  "aria-disabled": f || void 0,
709
- tabIndex: u,
709
+ tabIndex: m,
710
710
  children: t
711
711
  }
712
712
  );
713
- const { onRemove: T, onClick: L } = a, q = L !== void 0, R = q && !f, ie = (F) => {
713
+ const { onRemove: C, onClick: L } = a, X = L !== void 0, q = X && !f, R = (F) => {
714
714
  f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), L == null || L());
715
715
  };
716
- return /* @__PURE__ */ z(
716
+ return /* @__PURE__ */ $(
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
+ re({ variant: s, size: i, 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
+ X ? /* @__PURE__ */ d(
728
728
  "button",
729
729
  {
730
730
  type: "button",
731
731
  onClick: f ? void 0 : L,
732
- onKeyDown: ie,
732
+ onKeyDown: R,
733
733
  disabled: f,
734
- "aria-pressed": d ? !0 : void 0,
735
- "aria-label": b || y,
736
- tabIndex: u !== void 0 ? u : R ? 0 : void 0,
734
+ "aria-pressed": c ? !0 : void 0,
735
+ "aria-label": b || v,
736
+ tabIndex: m !== void 0 ? m : q ? 0 : void 0,
737
737
  className: l(
738
738
  "flex-1",
739
739
  "bg-transparent",
@@ -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,72 +769,72 @@ 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 ${v || "chip"}`,
773
+ children: /* @__PURE__ */ d(be, { 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) {
782
- var s = i, {
780
+ Ee.displayName = "Chip";
781
+ function ma(s) {
782
+ var i = s, {
783
783
  message: r,
784
784
  id: a,
785
785
  className: n = ""
786
- } = s, t = h(s, [
786
+ } = i, t = x(i, [
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
+ z("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__ */ $("div", y(u({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
800
+ /* @__PURE__ */ d(ge, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
801
+ /* @__PURE__ */ d("span", { children: r })
802
802
  ] }));
803
803
  }
804
- function ia(t) {
805
- var i = t, {
804
+ function ba(t) {
805
+ var s = t, {
806
806
  variant: r = "info",
807
807
  className: a
808
- } = i, n = h(i, [
808
+ } = s, n = x(s, [
809
809
  "variant",
810
810
  "className"
811
811
  ]);
812
- const s = {
812
+ const i = {
813
813
  warning: l("bg-warning-bg", "text-warning-dark", "border-warning"),
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
- m({
819
+ u({
820
820
  role: "alert",
821
821
  className: l(
822
822
  "border",
823
823
  o("base", "px"),
824
824
  o("sm", "py"),
825
- C("lg"),
826
- s[r],
825
+ M("lg"),
826
+ i[r],
827
827
  a
828
828
  )
829
829
  }, n)
830
830
  );
831
831
  }
832
- const ze = l(
832
+ const Ae = l(
833
833
  "block",
834
- M("label"),
835
- B("label"),
834
+ z("label"),
835
+ H("label"),
836
836
  "text-fg-primary"
837
- ), Fe = {
837
+ ), Ie = {
838
838
  default: "",
839
839
  required: l(
840
840
  "after:content-['*']",
@@ -847,49 +847,49 @@ 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
+ }, De = B(
851
+ O(function(c, i) {
852
+ var f = c, { variant: a = "default", className: n = "", children: t } = f, s = x(f, ["variant", "className", "children"]);
853
853
  const p = l(
854
- ze,
855
- Fe[a],
854
+ Ae,
855
+ Ie[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", y(u({ ref: i, className: p }, s), { children: t }));
859
859
  })
860
860
  );
861
- Ee.displayName = "Label";
861
+ De.displayName = "Label";
862
862
  function w(r, a, n) {
863
- const t = Ie(r), i = Ae(r);
863
+ const t = Ve(r), s = We(r);
864
864
  return {
865
865
  hex: r,
866
866
  rgb: t,
867
- hsl: i,
867
+ hsl: s,
868
868
  cssVar: `var(--color-${a}-${n})`,
869
869
  tailwind: `${a}-${n}`
870
870
  };
871
871
  }
872
- function Ie(r) {
872
+ function Ve(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, s = parseInt(a[3], 16) / 255, i = Math.max(n, t, s), c = Math.min(n, t, s);
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 = (i + c) / 2;
882
+ if (i !== c) {
883
+ const m = i - c;
884
+ switch (p = b > 0.5 ? m / (2 - i - c) : m / (i + c), i) {
885
885
  case n:
886
- f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
886
+ f = ((t - s) / m + (t < s ? 6 : 0)) / 6;
887
887
  break;
888
888
  case t:
889
- f = ((i - n) / u + 2) / 6;
889
+ f = ((s - n) / m + 2) / 6;
890
890
  break;
891
- case i:
892
- f = ((n - t) / u + 4) / 6;
891
+ case s:
892
+ f = ((n - t) / m + 4) / 6;
893
893
  break;
894
894
  }
895
895
  }
@@ -898,36 +898,36 @@ 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 = je(r), s = Re(r);
902
902
  return {
903
903
  hex: r,
904
904
  rgb: t,
905
- hsl: i,
905
+ hsl: s,
906
906
  cssVar: `var(--color-${a}-${n})`,
907
907
  tailwind: `${a}-${n}`
908
908
  };
909
909
  }
910
- function We(r) {
910
+ function je(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 Re(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, s = parseInt(a[3], 16) / 255, i = Math.max(n, t, s), c = Math.min(n, t, s);
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 = (i + c) / 2;
920
+ if (i !== c) {
921
+ const m = i - c;
922
+ switch (p = b > 0.5 ? m / (2 - i - c) : m / (i + c), i) {
923
923
  case n:
924
- f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
924
+ f = ((t - s) / m + (t < s ? 6 : 0)) / 6;
925
925
  break;
926
926
  case t:
927
- f = ((i - n) / u + 2) / 6;
927
+ f = ((s - n) / m + 2) / 6;
928
928
  break;
929
- case i:
930
- f = ((n - t) / u + 4) / 6;
929
+ case s:
930
+ f = ((n - t) / m + 4) / 6;
931
931
  break;
932
932
  }
933
933
  }
@@ -952,7 +952,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
952
952
  e("#faf5ff", "purple", 50), e("#f3e8ff", "purple", 100), e("#e9d5ff", "purple", 200), e("#d8b4fe", "purple", 300), e("#c084fc", "purple", 400), e("#a855f7", "purple", 500), e("#9333ea", "purple", 600), e("#7e22ce", "purple", 700), e("#6b21a8", "purple", 800), e("#581c87", "purple", 900), e("#3b0764", "purple", 950);
953
953
  e("#f0fdfa", "teal", 50), e("#ccfbf1", "teal", 100), e("#99f6e4", "teal", 200), e("#5eead4", "teal", 300), e("#2dd4bf", "teal", 400), e("#14b8a6", "teal", 500), e("#0d9488", "teal", 600), e("#0f766e", "teal", 700), e("#115e59", "teal", 800), e("#134e4a", "teal", 900), e("#042f2e", "teal", 950);
954
954
  e("#f7fee7", "lime", 50), e("#ecfccb", "lime", 100), e("#d9f99d", "lime", 200), e("#bef264", "lime", 300), e("#a3e635", "lime", 400), e("#84cc16", "lime", 500), e("#65a30d", "lime", 600), e("#4d7c0f", "lime", 700), e("#3f6212", "lime", 800), e("#365314", "lime", 900), e("#1a2e05", "lime", 950);
955
- class V {
955
+ class W {
956
956
  /**
957
957
  * Create a shadow token
958
958
  */
@@ -996,17 +996,17 @@ class V {
996
996
  }[a];
997
997
  }
998
998
  }
999
- const Ve = {
1000
- none: V.create("none"),
1001
- sm: V.create("sm"),
1002
- md: V.create("md"),
1003
- lg: V.create("lg"),
1004
- xl: V.create("xl"),
1005
- "2xl": V.create("2xl"),
1006
- inner: V.create("inner")
999
+ const _e = {
1000
+ none: W.create("none"),
1001
+ sm: W.create("sm"),
1002
+ md: W.create("md"),
1003
+ lg: W.create("lg"),
1004
+ xl: W.create("xl"),
1005
+ "2xl": W.create("2xl"),
1006
+ inner: W.create("inner")
1007
1007
  };
1008
- function X(r) {
1009
- return Ve[r].tailwind;
1008
+ function Z(r) {
1009
+ return _e[r].tailwind;
1010
1010
  }
1011
1011
  class E {
1012
1012
  /**
@@ -1075,7 +1075,7 @@ class _ {
1075
1075
  }
1076
1076
  }
1077
1077
  _.create("sm"), _.create("md"), _.create("lg"), _.create("xl"), _.create("2xl");
1078
- class W {
1078
+ class D {
1079
1079
  /**
1080
1080
  * Create an animation token
1081
1081
  */
@@ -1101,7 +1101,7 @@ class W {
1101
1101
  ms: 500,
1102
1102
  tailwind: "duration-500"
1103
1103
  }
1104
- }, i = {
1104
+ }, s = {
1105
1105
  "ease-in": {
1106
1106
  value: "cubic-bezier(0.4, 0, 1, 1)",
1107
1107
  tailwind: "ease-in",
@@ -1125,30 +1125,30 @@ class W {
1125
1125
  };
1126
1126
  return {
1127
1127
  duration: t[a],
1128
- easing: i[n]
1128
+ easing: s[n]
1129
1129
  };
1130
1130
  }
1131
1131
  /**
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 = [
1136
- i.duration.tailwind,
1137
- i.easing.tailwind
1135
+ const s = this.create(n, t), i = Array.isArray(a) ? a.join(", ") : a, c = [
1136
+ s.duration.tailwind,
1137
+ s.easing.tailwind
1138
1138
  ].join(" ");
1139
1139
  return {
1140
- property: s,
1141
- duration: i.duration.value,
1142
- timingFunction: i.easing.value,
1143
- tailwind: d
1140
+ property: i,
1141
+ duration: s.duration.value,
1142
+ timingFunction: s.easing.value,
1143
+ tailwind: c
1144
1144
  };
1145
1145
  }
1146
1146
  }
1147
- W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
1147
+ D.create("fast"), D.create("base"), D.create("slow"), D.create("slower"), D.createTransition(
1148
1148
  ["color", "background-color", "border-color"],
1149
1149
  "base"
1150
- ), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
1151
- class I {
1150
+ ), D.createTransition("opacity", "fast"), D.createTransition("transform", "base"), D.createTransition("all", "base");
1151
+ class A {
1152
1152
  /**
1153
1153
  * Create a z-index token
1154
1154
  */
@@ -1202,8 +1202,8 @@ class I {
1202
1202
  }[a];
1203
1203
  }
1204
1204
  }
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 {
1205
+ A.create("base"), A.create("dropdown"), A.create("sticky"), A.create("fixed"), A.create("modal-backdrop"), A.create("modal"), A.create("popover"), A.create("tooltip"), A.create("toast");
1206
+ class S {
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
+ S.create(0), S.create(5), S.create(10), S.create(20), S.create(25), S.create(30), S.create(40), S.create(50), S.create(60), S.create(70), S.create(75), S.create(80), S.create(90), S.create(95), S.create(100);
1253
+ const He = j("w-full", {
1254
1254
  variants: {
1255
1255
  size: {
1256
1256
  sm: "h-1",
@@ -1270,7 +1270,7 @@ const je = j("w-full", {
1270
1270
  size: "md",
1271
1271
  variant: "primary"
1272
1272
  }
1273
- }), te = j("transition-all", {
1273
+ }), ne = j("transition-all", {
1274
1274
  variants: {
1275
1275
  variant: {
1276
1276
  primary: "bg-surface-brand",
@@ -1284,17 +1284,17 @@ const je = j("w-full", {
1284
1284
  defaultVariants: {
1285
1285
  variant: "primary"
1286
1286
  }
1287
- }), Re = O(function(x, u) {
1288
- var g = x, {
1287
+ }), Be = O(function(h, m) {
1288
+ var g = h, {
1289
1289
  value: a,
1290
1290
  max: n = 100,
1291
1291
  variant: t = "primary",
1292
- size: i = "md",
1293
- showLabel: s = !1,
1294
- label: d,
1292
+ size: s = "md",
1293
+ showLabel: i = !1,
1294
+ label: c,
1295
1295
  "aria-label": f,
1296
1296
  className: p = ""
1297
- } = g, b = h(g, [
1297
+ } = g, b = x(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 v = a === void 0, C = v ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), L = f || (v ? "Loading in progress" : `Progress: ${C == null ? void 0 : C.toFixed(0)}%`);
1308
+ return /* @__PURE__ */ $("div", y(u({ ref: m, className: l("w-full", p) }, b), { children: [
1309
+ i && (c || !v) && /* @__PURE__ */ $(
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
+ z("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
+ !v && C !== void 0 && /* @__PURE__ */ $(
1331
1331
  "span",
1332
1332
  {
1333
1333
  className: l(
1334
- M("bodySmall"),
1334
+ z("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,
1350
+ "aria-valuemin": v ? void 0 : 0,
1351
+ "aria-valuemax": v ? void 0 : n,
1352
+ "aria-valuenow": v ? void 0 : a,
1353
1353
  "aria-label": L,
1354
- "aria-busy": y,
1354
+ "aria-busy": v,
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
+ He({ size: s, variant: t }),
1360
+ M("full")
1361
1361
  ),
1362
- children: y ? /* @__PURE__ */ c(
1362
+ children: v ? /* @__PURE__ */ d(
1363
1363
  "div",
1364
1364
  {
1365
1365
  className: l(
@@ -1367,8 +1367,8 @@ const je = j("w-full", {
1367
1367
  "top-0",
1368
1368
  "left-0",
1369
1369
  "bottom-0",
1370
- te({ variant: t }),
1371
- C("full"),
1370
+ ne({ variant: t }),
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
- te({ variant: t }),
1385
- C("full"),
1384
+ ne({ variant: t }),
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
+ Be.displayName = "Progress";
1401
+ const Oe = {
1402
1402
  horizontal: "w-full border-t",
1403
1403
  vertical: "h-full border-l self-stretch"
1404
- }, Be = {
1404
+ }, Pe = {
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
+ }, qe = B(function(i) {
1409
+ var c = i, {
1410
1410
  orientation: a = "horizontal",
1411
1411
  variant: n = "solid",
1412
1412
  className: t = ""
1413
- } = d, i = h(d, [
1413
+ } = c, s = x(c, [
1414
1414
  "orientation",
1415
1415
  "variant",
1416
1416
  "className"
@@ -1418,36 +1418,36 @@ const _e = {
1418
1418
  const f = l(
1419
1419
  "border-0",
1420
1420
  "border-line-default",
1421
- _e[a],
1422
- Be[n],
1421
+ Oe[a],
1422
+ Pe[n],
1423
1423
  t
1424
1424
  );
1425
- return a === "vertical" ? /* @__PURE__ */ c(
1425
+ return a === "vertical" ? /* @__PURE__ */ d(
1426
1426
  "div",
1427
- m({
1427
+ u({
1428
1428
  className: f,
1429
1429
  role: "separator",
1430
1430
  "aria-orientation": "vertical"
1431
- }, i)
1432
- ) : /* @__PURE__ */ c(
1431
+ }, s)
1432
+ ) : /* @__PURE__ */ d(
1433
1433
  "hr",
1434
- m({
1434
+ u({
1435
1435
  className: f,
1436
1436
  role: "separator",
1437
1437
  "aria-orientation": "horizontal"
1438
- }, i)
1438
+ }, s)
1439
1439
  );
1440
1440
  });
1441
- He.displayName = "Separator";
1442
- function sa(f) {
1441
+ qe.displayName = "Separator";
1442
+ function ga(f) {
1443
1443
  var p = f, {
1444
1444
  variant: r = "text",
1445
1445
  width: a,
1446
1446
  height: n,
1447
1447
  lines: t = 1,
1448
- className: i = "",
1449
- "aria-label": s
1450
- } = p, d = h(p, [
1448
+ className: s = "",
1449
+ "aria-label": i
1450
+ } = p, c = x(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")
1462
- ], u = {
1461
+ M("sm")
1462
+ ], m = {
1463
1463
  text: "h-4",
1464
1464
  card: "h-32",
1465
1465
  list: "h-12",
1466
- circle: C("full")
1467
- }, x = l(...b, u[r], i), g = {};
1466
+ circle: M("full")
1467
+ }, h = l(...b, m[r], s), 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 v = i || `Loading ${r} content`;
1470
+ return r === "text" && t > 1 ? /* @__PURE__ */ d(
1471
1471
  "div",
1472
- v(m({
1472
+ y(u({
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": v
1477
+ }, c), {
1478
+ children: Array.from({ length: t }).map((C, L) => /* @__PURE__ */ d(
1479
1479
  "div",
1480
1480
  {
1481
- className: x,
1481
+ className: h,
1482
1482
  style: L === t - 1 ? { width: "75%" } : g,
1483
1483
  "aria-hidden": "true"
1484
1484
  },
1485
1485
  L
1486
1486
  ))
1487
1487
  })
1488
- ) : /* @__PURE__ */ c(
1488
+ ) : /* @__PURE__ */ d(
1489
1489
  "div",
1490
- m({
1491
- className: x,
1490
+ u({
1491
+ className: h,
1492
1492
  style: g,
1493
1493
  role: "status",
1494
1494
  "aria-busy": "true",
1495
- "aria-label": y
1496
- }, d)
1495
+ "aria-label": v
1496
+ }, c)
1497
1497
  );
1498
1498
  }
1499
- const Oe = j("motion-safe:animate-spin", {
1499
+ const Ue = j("motion-safe:animate-spin", {
1500
1500
  variants: {
1501
1501
  size: {
1502
1502
  sm: "h-4 w-4",
@@ -1513,40 +1513,40 @@ 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
+ }), Ke = B(function(c) {
1517
+ var f = c, {
1518
1518
  size: a = "md",
1519
1519
  variant: n = "primary",
1520
1520
  label: t,
1521
- className: i = ""
1522
- } = f, s = h(f, [
1521
+ className: s = ""
1522
+ } = f, i = x(f, [
1523
1523
  "size",
1524
1524
  "variant",
1525
1525
  "label",
1526
1526
  "className"
1527
1527
  ]);
1528
- return /* @__PURE__ */ z(
1528
+ return /* @__PURE__ */ $(
1529
1529
  "div",
1530
- v(m({
1531
- className: l("inline-flex", "items-center", i),
1530
+ y(u({
1531
+ className: l("inline-flex", "items-center", s),
1532
1532
  role: "status",
1533
1533
  "aria-label": t || "Loading",
1534
1534
  "aria-live": "polite"
1535
- }, s), {
1535
+ }, i), {
1536
1536
  children: [
1537
- /* @__PURE__ */ c(
1538
- me,
1537
+ /* @__PURE__ */ d(
1538
+ xe,
1539
1539
  {
1540
- className: l(Oe({ size: a, variant: n })),
1540
+ className: l(Ue({ 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
+ z("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
+ Ke.displayName = "Spinner";
1561
+ const Xe = {
1562
1562
  primary: {
1563
1563
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1564
1564
  light: "text-indigo-400",
@@ -1610,16 +1610,16 @@ const Ue = {
1610
1610
  contrast: "text-fg-inverse"
1611
1611
  }
1612
1612
  };
1613
- function qe(b, p) {
1614
- var u = b, {
1613
+ function Ye(b, p) {
1614
+ var m = b, {
1615
1615
  variant: r = "paragraph",
1616
1616
  bold: a,
1617
1617
  italic: n,
1618
1618
  className: t,
1619
- as: i,
1620
- colorRole: s = "neutral",
1621
- colorShade: d = "dark"
1622
- } = u, f = h(u, [
1619
+ as: s,
1620
+ colorRole: i = "neutral",
1621
+ colorShade: c = "dark"
1622
+ } = m, f = x(m, [
1623
1623
  "variant",
1624
1624
  "bold",
1625
1625
  "italic",
@@ -1628,10 +1628,10 @@ function qe(b, p) {
1628
1628
  "colorRole",
1629
1629
  "colorShade"
1630
1630
  ]);
1631
- const x = [];
1631
+ const h = [];
1632
1632
  let g;
1633
- if (i)
1634
- g = i;
1633
+ if (s)
1634
+ g = s;
1635
1635
  else
1636
1636
  switch (r) {
1637
1637
  case "heading":
@@ -1644,25 +1644,25 @@ 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" ? h.push(V("h2")) : r === "body" || r === "paragraph" ? h.push(V("body")) : r === "bodySmall" ? h.push(V("bodySmall")) : r === "bodyLarge" ? h.push(V("bodyLarge")) : r === "caption" ? h.push(V("caption")) : r === "label" ? h.push(V("label")) : h.push(V("body")), a && h.push("font-bold"), n && h.push("italic"), h.push(Xe[i][c]), /* @__PURE__ */ d(g, u({ ref: p, className: l(...h, t) }, f));
1648
1648
  }
1649
- const la = O(qe), Ke = {
1649
+ const se = O(Ye), Ze = {
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
+ }, Ge = ie.forwardRef(
1657
1657
  (p, f) => {
1658
1658
  var b = p, {
1659
1659
  className: r,
1660
1660
  maxWidth: a = "lg",
1661
1661
  paddingX: n = "base",
1662
1662
  paddingY: t = "base",
1663
- center: i = !0,
1664
- children: s
1665
- } = b, d = h(b, [
1663
+ center: s = !0,
1664
+ children: i
1665
+ } = b, c = x(b, [
1666
1666
  "className",
1667
1667
  "maxWidth",
1668
1668
  "paddingX",
@@ -1670,35 +1670,35 @@ 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
- v(m({
1675
+ y(u({
1676
1676
  ref: f,
1677
1677
  className: l(
1678
1678
  "w-full",
1679
- Ke[a],
1679
+ Ze[a],
1680
1680
  o(n, "px"),
1681
1681
  o(t, "py"),
1682
- i && "mx-auto",
1682
+ s && "mx-auto",
1683
1683
  r
1684
1684
  )
1685
- }, d), {
1686
- children: s
1685
+ }, c), {
1686
+ children: i
1687
1687
  })
1688
1688
  );
1689
1689
  }
1690
1690
  );
1691
- Xe.displayName = "Container";
1692
- const Ye = re.forwardRef(
1691
+ Ge.displayName = "Container";
1692
+ const Qe = ie.forwardRef(
1693
1693
  (p, f) => {
1694
1694
  var b = p, {
1695
1695
  className: r,
1696
1696
  spacing: a = "base",
1697
1697
  align: n = "stretch",
1698
1698
  justify: t = "start",
1699
- direction: i = "column",
1700
- children: s
1701
- } = b, d = h(b, [
1699
+ direction: s = "column",
1700
+ children: i
1701
+ } = b, c = x(b, [
1702
1702
  "className",
1703
1703
  "spacing",
1704
1704
  "align",
@@ -1706,7 +1706,7 @@ const Ye = re.forwardRef(
1706
1706
  "direction",
1707
1707
  "children"
1708
1708
  ]);
1709
- const u = i === "column" ? o(a, "gap-y") : o(a, "gap-x"), x = {
1709
+ const m = s === "column" ? o(a, "gap-y") : o(a, "gap-x"), h = {
1710
1710
  start: "items-start",
1711
1711
  center: "items-center",
1712
1712
  end: "items-end",
@@ -1719,49 +1719,49 @@ 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
- v(m({
1724
+ y(u({
1725
1725
  ref: f,
1726
1726
  className: l(
1727
1727
  "flex",
1728
- i === "column" ? "flex-col" : "flex-row",
1729
- u,
1730
- x[n],
1728
+ s === "column" ? "flex-col" : "flex-row",
1729
+ m,
1730
+ h[n],
1731
1731
  g[t],
1732
1732
  r
1733
1733
  )
1734
- }, d), {
1735
- children: s
1734
+ }, c), {
1735
+ children: i
1736
1736
  })
1737
1737
  );
1738
1738
  }
1739
1739
  );
1740
- Ye.displayName = "Stack";
1741
- function oa(i) {
1742
- var s = i, {
1740
+ Qe.displayName = "Stack";
1741
+ function Je(s) {
1742
+ var i = s, {
1743
1743
  items: r,
1744
1744
  separator: a = "/",
1745
1745
  className: n = ""
1746
- } = s, t = h(s, [
1746
+ } = i, t = x(i, [
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
+ z("bodySmall")
1756
+ ], f = l(...c, n);
1757
+ return /* @__PURE__ */ d("nav", y(u({ "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
- const u = b === r.length - 1;
1763
- return /* @__PURE__ */ z("li", { className: "flex items-center", children: [
1764
- b > 0 && /* @__PURE__ */ c(
1762
+ const m = b === r.length - 1;
1763
+ return /* @__PURE__ */ $("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
+ m ? /* @__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
+ z("bodySmall"),
1797
+ H("label"),
1798
1798
  "transition-colors",
1799
1799
  "text-fg-secondary",
1800
1800
  "hover:border-line-emphasis",
@@ -1802,48 +1802,139 @@ 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) {
1812
- var u = b, {
1813
- variant: a = "default",
1814
- padding: n = "medium",
1815
- className: t = "",
1816
- onClick: i,
1811
+ function ea(t) {
1812
+ var s = t, { children: r, className: a } = s, n = x(s, ["children", "className"]);
1813
+ return /* @__PURE__ */ d(
1814
+ "div",
1815
+ y(u({
1816
+ className: l(
1817
+ "grid items-start",
1818
+ o("1.5", "gap"),
1819
+ o("base", "mb"),
1820
+ "[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
1821
+ "[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
1822
+ a
1823
+ )
1824
+ }, n), {
1825
+ children: r
1826
+ })
1827
+ );
1828
+ }
1829
+ function aa(c) {
1830
+ var f = c, {
1831
+ children: r,
1832
+ icon: a,
1833
+ badge: n,
1834
+ as: t = "h2",
1835
+ className: s
1836
+ } = f, i = x(f, [
1837
+ "children",
1838
+ "icon",
1839
+ "badge",
1840
+ "as",
1841
+ "className"
1842
+ ]);
1843
+ return /* @__PURE__ */ $(
1844
+ t,
1845
+ y(u({
1846
+ className: l(
1847
+ "text-base font-semibold text-fg-primary",
1848
+ "flex items-center",
1849
+ o("sm", "gap"),
1850
+ s
1851
+ )
1852
+ }, i), {
1853
+ children: [
1854
+ a ? /* @__PURE__ */ d("span", { className: "shrink-0 inline-flex", children: a }) : null,
1855
+ /* @__PURE__ */ d("span", { children: r }),
1856
+ n ? /* @__PURE__ */ d("span", { className: "inline-flex", children: n }) : null
1857
+ ]
1858
+ })
1859
+ );
1860
+ }
1861
+ function ta(t) {
1862
+ var s = t, {
1863
+ children: r,
1864
+ className: a
1865
+ } = s, n = x(s, [
1866
+ "children",
1867
+ "className"
1868
+ ]);
1869
+ return /* @__PURE__ */ d("p", y(u({ className: l("text-sm text-fg-secondary", a) }, n), { children: r }));
1870
+ }
1871
+ function ra(t) {
1872
+ var s = t, {
1873
+ children: r,
1874
+ className: a
1875
+ } = s, n = x(s, [
1876
+ "children",
1877
+ "className"
1878
+ ]);
1879
+ return /* @__PURE__ */ d(
1880
+ "div",
1881
+ y(u({
1882
+ "data-card-actions": "",
1883
+ className: l(
1884
+ "flex items-center self-start",
1885
+ o("sm", "gap"),
1886
+ a
1887
+ )
1888
+ }, n), {
1889
+ children: r
1890
+ })
1891
+ );
1892
+ }
1893
+ function na(t) {
1894
+ var s = t, { children: r, className: a } = s, n = x(s, ["children", "className"]);
1895
+ return /* @__PURE__ */ d("div", y(u({ className: l(a) }, n), { children: r }));
1896
+ }
1897
+ function sa(b) {
1898
+ var m = b, {
1899
+ variant: r = "default",
1900
+ padding: a = "medium",
1901
+ className: n = "",
1902
+ onClick: t,
1817
1903
  "aria-label": s,
1818
- "aria-labelledby": d,
1904
+ "aria-labelledby": i,
1905
+ asSection: c = !1,
1819
1906
  children: f
1820
- } = u, p = h(u, [
1907
+ } = m, p = x(m, [
1821
1908
  "variant",
1822
1909
  "padding",
1823
1910
  "className",
1824
1911
  "onClick",
1825
1912
  "aria-label",
1826
1913
  "aria-labelledby",
1914
+ "asSection",
1827
1915
  "children"
1828
1916
  ]);
1829
- const x = j(
1917
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !s && !i && console.warn(
1918
+ "[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation."
1919
+ );
1920
+ const h = j(
1830
1921
  l(
1831
1922
  "bg-surface-base",
1832
- C("lg"),
1923
+ M("lg"),
1833
1924
  "border",
1834
1925
  "border-line-default",
1835
- X("sm")
1926
+ Z("sm")
1836
1927
  ),
1837
1928
  {
1838
1929
  variants: {
1839
1930
  variant: {
1840
1931
  default: "",
1841
1932
  hover: l(
1842
- `hover:${X("md")}`,
1933
+ `hover:${Z("md")}`,
1843
1934
  "transition-shadow",
1844
1935
  "cursor-pointer"
1845
1936
  ),
1846
- selected: l("border-line-brand", X("md"))
1937
+ selected: l("border-line-brand", Z("md"))
1847
1938
  },
1848
1939
  padding: {
1849
1940
  none: "",
@@ -1857,70 +1948,72 @@ const Ze = H(function(b) {
1857
1948
  padding: "medium"
1858
1949
  }
1859
1950
  }
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(
1862
- "div",
1863
- v(m({
1864
- className: L,
1865
- role: y,
1866
- tabIndex: T,
1867
- onClick: i,
1868
- onKeyDown: g ? (R) => {
1869
- g && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), i == null || i());
1870
- } : void 0,
1871
- "aria-label": s,
1872
- "aria-labelledby": d
1873
- }, p), {
1874
- children: f
1875
- })
1876
- );
1877
- });
1878
- Ze.displayName = "Card";
1879
- function da(t) {
1880
- var i = t, {
1951
+ ), g = t !== void 0, v = g ? "button" : void 0, C = g ? 0 : void 0, L = l(h({ variant: r, padding: a }), n), q = u({
1952
+ className: L,
1953
+ role: v,
1954
+ tabIndex: C,
1955
+ onClick: t,
1956
+ onKeyDown: g ? (R) => {
1957
+ g && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), t == null || t());
1958
+ } : void 0,
1959
+ "aria-label": s,
1960
+ "aria-labelledby": i
1961
+ }, p);
1962
+ return c ? /* @__PURE__ */ d("section", y(u({}, q), { children: f })) : /* @__PURE__ */ d("div", y(u({}, q), { children: f }));
1963
+ }
1964
+ const oe = B(sa);
1965
+ oe.displayName = "Card";
1966
+ const P = oe;
1967
+ P.Header = ea;
1968
+ P.Title = aa;
1969
+ P.Subtitle = ta;
1970
+ P.Actions = ra;
1971
+ P.Body = na;
1972
+ function xa(t) {
1973
+ var s = t, {
1881
1974
  children: r,
1882
1975
  className: a = ""
1883
- } = i, n = h(i, [
1976
+ } = s, n = x(s, [
1884
1977
  "children",
1885
1978
  "className"
1886
1979
  ]);
1887
- return /* @__PURE__ */ c(
1980
+ return /* @__PURE__ */ d(
1888
1981
  "div",
1889
- v(m({
1982
+ y(u({
1890
1983
  className: `flex flex-col ${o("1.5", "space-y")} ${o("lg", "p")} ${o("base", "pb")} ${a}`
1891
1984
  }, n), {
1892
1985
  children: r
1893
1986
  })
1894
1987
  );
1895
1988
  }
1896
- function ca(t) {
1897
- var i = t, {
1989
+ function ya(t) {
1990
+ var s = t, {
1898
1991
  children: r,
1899
1992
  className: a = ""
1900
- } = i, n = h(i, [
1993
+ } = s, n = x(s, [
1901
1994
  "children",
1902
1995
  "className"
1903
1996
  ]);
1904
- return /* @__PURE__ */ c(
1997
+ return /* @__PURE__ */ d(
1905
1998
  "div",
1906
- v(m({
1999
+ y(u({
1907
2000
  className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${o("sm", "space-x")} ${o("lg", "p")} ${o("base", "pt")} ${a}`
1908
2001
  }, n), {
1909
2002
  children: r
1910
2003
  })
1911
2004
  );
1912
2005
  }
1913
- function fa(t) {
1914
- var i = t, {
2006
+ function ha(t) {
2007
+ var s = t, {
1915
2008
  children: r,
1916
2009
  className: a = ""
1917
- } = i, n = h(i, [
2010
+ } = s, n = x(s, [
1918
2011
  "children",
1919
2012
  "className"
1920
2013
  ]);
1921
- return /* @__PURE__ */ c(
2014
+ return /* @__PURE__ */ d(
1922
2015
  "div",
1923
- v(m({
2016
+ y(u({
1924
2017
  className: `
1925
2018
  ${o("lg", "p")}
1926
2019
  border-b
@@ -1932,17 +2025,17 @@ function fa(t) {
1932
2025
  })
1933
2026
  );
1934
2027
  }
1935
- function pa(t) {
1936
- var i = t, {
2028
+ function va(t) {
2029
+ var s = t, {
1937
2030
  children: r,
1938
2031
  className: a = ""
1939
- } = i, n = h(i, [
2032
+ } = s, n = x(s, [
1940
2033
  "children",
1941
2034
  "className"
1942
2035
  ]);
1943
- return /* @__PURE__ */ c(
2036
+ return /* @__PURE__ */ d(
1944
2037
  "div",
1945
- v(m({
2038
+ y(u({
1946
2039
  className: `
1947
2040
  ${o("lg", "p")}
1948
2041
  border-t
@@ -1957,8 +2050,8 @@ function pa(t) {
1957
2050
  })
1958
2051
  );
1959
2052
  }
1960
- function ua({ children: r, className: a }) {
1961
- return /* @__PURE__ */ c(
2053
+ function wa({ children: r, className: a }) {
2054
+ return /* @__PURE__ */ d(
1962
2055
  "div",
1963
2056
  {
1964
2057
  className: l(
@@ -1970,11 +2063,11 @@ function ua({ children: r, className: a }) {
1970
2063
  }
1971
2064
  );
1972
2065
  }
1973
- function ma({
2066
+ function Na({
1974
2067
  children: r,
1975
2068
  className: a
1976
2069
  }) {
1977
- return /* @__PURE__ */ c(
2070
+ return /* @__PURE__ */ d(
1978
2071
  "nav",
1979
2072
  {
1980
2073
  className: l(
@@ -1989,15 +2082,15 @@ function ma({
1989
2082
  }
1990
2083
  );
1991
2084
  }
1992
- function ba(n) {
2085
+ function ka(n) {
1993
2086
  var t = n, {
1994
2087
  className: r = ""
1995
- } = t, a = h(t, [
2088
+ } = t, a = x(t, [
1996
2089
  "className"
1997
2090
  ]);
1998
- return /* @__PURE__ */ c(
2091
+ return /* @__PURE__ */ d(
1999
2092
  "div",
2000
- m({
2093
+ u({
2001
2094
  role: "separator",
2002
2095
  className: `
2003
2096
  h-px
@@ -2008,24 +2101,24 @@ function ba(n) {
2008
2101
  }, a)
2009
2102
  );
2010
2103
  }
2011
- function ga(t) {
2012
- var i = t, {
2104
+ function $a(t) {
2105
+ var s = t, {
2013
2106
  orientation: r = "horizontal",
2014
2107
  className: a = ""
2015
- } = i, n = h(i, [
2108
+ } = s, n = x(s, [
2016
2109
  "orientation",
2017
2110
  "className"
2018
2111
  ]);
2019
- return r === "vertical" ? /* @__PURE__ */ c(
2112
+ return r === "vertical" ? /* @__PURE__ */ d(
2020
2113
  "div",
2021
- m({
2114
+ u({
2022
2115
  className: l("w-px", "h-6", "bg-line-default", "mx-auto", a),
2023
2116
  role: "separator",
2024
2117
  "aria-orientation": "vertical"
2025
2118
  }, n)
2026
- ) : /* @__PURE__ */ c(
2119
+ ) : /* @__PURE__ */ d(
2027
2120
  "div",
2028
- m({
2121
+ u({
2029
2122
  className: l(
2030
2123
  "w-full",
2031
2124
  "h-px",
@@ -2046,103 +2139,165 @@ function ga(t) {
2046
2139
  }, n)
2047
2140
  );
2048
2141
  }
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(
2142
+ const ia = j(
2143
+ // Base classes
2144
+ l("w-full", "flex", "flex-col", o("sm", "gap")),
2145
+ {
2146
+ variants: {
2147
+ variant: {
2148
+ default: l(o("base", "mb")),
2149
+ compact: l(o("sm", "mb"))
2150
+ }
2151
+ },
2152
+ defaultVariants: {
2153
+ variant: "default"
2154
+ }
2155
+ }
2156
+ );
2157
+ function Sa(f) {
2158
+ var p = f, {
2159
+ title: r,
2160
+ description: a,
2161
+ breadcrumb: n,
2162
+ actions: t,
2163
+ variant: s = "default",
2164
+ className: i
2165
+ } = p, c = x(p, [
2166
+ "title",
2167
+ "description",
2168
+ "breadcrumb",
2169
+ "actions",
2170
+ "variant",
2171
+ "className"
2172
+ ]);
2173
+ return /* @__PURE__ */ $("div", y(u({ className: l(ia({ variant: s }), i) }, c), { children: [
2174
+ n && n.length > 0 && /* @__PURE__ */ d(Je, { items: n }),
2175
+ /* @__PURE__ */ $(
2176
+ "div",
2177
+ {
2178
+ className: `flex items-start justify-between ${o("base", "gap")}`,
2179
+ children: [
2180
+ /* @__PURE__ */ $("div", { className: "flex-1 min-w-0", children: [
2181
+ /* @__PURE__ */ d(
2182
+ se,
2183
+ {
2184
+ variant: "heading",
2185
+ as: "h1",
2186
+ className: `${o("sm", "mb")} text-2xl font-bold`,
2187
+ children: r
2188
+ }
2189
+ ),
2190
+ a && /* @__PURE__ */ d(se, { variant: "body", className: "text-fg-secondary", children: a })
2191
+ ] }),
2192
+ t && /* @__PURE__ */ d(
2193
+ "div",
2194
+ {
2195
+ className: `flex items-center ${o("sm", "gap")} flex-shrink-0`,
2196
+ children: t
2197
+ }
2198
+ )
2199
+ ]
2200
+ }
2201
+ )
2202
+ ] }));
2203
+ }
2204
+ function Ta(s) {
2205
+ var i = s, { column: r, row: a, className: n = "" } = i, t = x(i, ["column", "row", "className"]);
2206
+ const c = r.key in a ? a[r.key] : void 0;
2207
+ return /* @__PURE__ */ d(
2053
2208
  "td",
2054
- v(m({
2209
+ y(u({
2055
2210
  className: `${o("lg", "px")} ${o("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
2056
2211
  }, t), {
2057
- children: r.render ? r.render(d, a) : String(d != null ? d : "")
2212
+ children: r.render ? r.render(c, a) : String(c != null ? c : "")
2058
2213
  })
2059
2214
  );
2060
2215
  }
2061
- function ya({
2216
+ function Ca({
2062
2217
  items: r,
2063
2218
  orientation: a = "vertical",
2064
2219
  className: n = ""
2065
2220
  }) {
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(
2221
+ return a === "horizontal" ? /* @__PURE__ */ d("div", { className: `flex items-start ${n}`, children: r.map((t, s) => {
2222
+ const i = t.status || (s === 0 ? "active" : s < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = s === r.length - 1;
2223
+ return /* @__PURE__ */ d("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ $("div", { className: "flex flex-col items-center flex-1", children: [
2224
+ /* @__PURE__ */ d(
2070
2225
  "div",
2071
- v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
2226
+ y(u({}, i === "default" ? { "data-marker": "pending" } : {}), {
2072
2227
  className: `
2073
2228
  flex
2074
2229
  items-center
2075
2230
  justify-center
2076
2231
  w-10
2077
2232
  h-10
2078
- ${C("full")}
2233
+ ${M("full")}
2079
2234
  border-2
2080
- ${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"}
2235
+ ${i === "completed" ? "bg-success border-success text-fg-inverse" : i === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : i === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2081
2236
  `,
2082
- children: t.icon || (s === "completed" ? /* @__PURE__ */ c(J, { className: "h-4 w-4" }) : i + 1)
2237
+ children: t.icon || (i === "completed" ? /* @__PURE__ */ d(ae, { className: "h-4 w-4" }) : s + 1)
2083
2238
  })
2084
2239
  ),
2085
- !d && /* @__PURE__ */ c(
2240
+ !c && /* @__PURE__ */ d(
2086
2241
  "div",
2087
2242
  {
2088
2243
  className: `
2089
2244
  w-full
2090
2245
  h-0.5
2091
2246
  ${o("sm", "mt")}
2092
- ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
2247
+ ${i === "completed" ? "bg-success" : "bg-line-emphasis"}
2093
2248
  `
2094
2249
  }
2095
2250
  ),
2096
- /* @__PURE__ */ z(
2251
+ /* @__PURE__ */ $(
2097
2252
  "div",
2098
2253
  {
2099
2254
  className: `${o("base", "mt")} text-center ${o("base", "px")}`,
2100
2255
  children: [
2101
- t.timestamp && /* @__PURE__ */ c(
2256
+ t.timestamp && /* @__PURE__ */ d(
2102
2257
  "p",
2103
2258
  {
2104
2259
  className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
2105
2260
  children: t.timestamp
2106
2261
  }
2107
2262
  ),
2108
- /* @__PURE__ */ c("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2109
- t.description && /* @__PURE__ */ c(
2263
+ /* @__PURE__ */ d("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2264
+ t.description && /* @__PURE__ */ d(
2110
2265
  "p",
2111
2266
  {
2112
2267
  className: `text-xs text-fg-secondary ${o("xs", "mt")}`,
2113
2268
  children: t.description
2114
2269
  }
2115
2270
  ),
2116
- t.content && /* @__PURE__ */ c("div", { className: o("sm", "mt"), children: t.content })
2271
+ t.content && /* @__PURE__ */ d("div", { className: o("sm", "mt"), children: t.content })
2117
2272
  ]
2118
2273
  }
2119
2274
  )
2120
2275
  ] }) }, 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(
2276
+ }) }) : /* @__PURE__ */ d("div", { className: `${o("none", "space-y")} ${n}`, children: r.map((t, s) => {
2277
+ const i = t.status || (s === 0 ? "active" : s < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = s === r.length - 1;
2278
+ return /* @__PURE__ */ $(
2124
2279
  "div",
2125
2280
  {
2126
2281
  className: `flex items-start ${o("base", "gap")}`,
2127
2282
  children: [
2128
- /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
2129
- /* @__PURE__ */ c(
2283
+ /* @__PURE__ */ $("div", { className: "flex flex-col items-center", children: [
2284
+ /* @__PURE__ */ d(
2130
2285
  "div",
2131
- v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
2286
+ y(u({}, i === "default" ? { "data-marker": "pending" } : {}), {
2132
2287
  className: `
2133
2288
  flex
2134
2289
  items-center
2135
2290
  justify-center
2136
2291
  w-10
2137
2292
  h-10
2138
- ${C("full")}
2293
+ ${M("full")}
2139
2294
  border-2
2140
- ${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"}
2295
+ ${i === "completed" ? "bg-success border-success text-fg-inverse" : i === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : i === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2141
2296
  `,
2142
- children: t.icon || (s === "completed" ? /* @__PURE__ */ c(J, { className: "h-4 w-4" }) : i + 1)
2297
+ children: t.icon || (i === "completed" ? /* @__PURE__ */ d(ae, { className: "h-4 w-4" }) : s + 1)
2143
2298
  })
2144
2299
  ),
2145
- !d && /* @__PURE__ */ c(
2300
+ !c && /* @__PURE__ */ d(
2146
2301
  "div",
2147
2302
  {
2148
2303
  className: `
@@ -2150,38 +2305,38 @@ function ya({
2150
2305
  flex-1
2151
2306
  min-h-16
2152
2307
  ${o("sm", "mt")}
2153
- ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
2308
+ ${i === "completed" ? "bg-success" : "bg-line-emphasis"}
2154
2309
  `
2155
2310
  }
2156
2311
  )
2157
2312
  ] }),
2158
- /* @__PURE__ */ z("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
2159
- t.timestamp && /* @__PURE__ */ c(
2313
+ /* @__PURE__ */ $("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
2314
+ t.timestamp && /* @__PURE__ */ d(
2160
2315
  "p",
2161
2316
  {
2162
2317
  className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
2163
2318
  children: t.timestamp
2164
2319
  }
2165
2320
  ),
2166
- /* @__PURE__ */ c(
2321
+ /* @__PURE__ */ d(
2167
2322
  "h3",
2168
2323
  {
2169
2324
  className: `
2170
2325
  text-base
2171
2326
  font-semibold
2172
- ${s === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
2327
+ ${i === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
2173
2328
  `,
2174
2329
  children: t.title
2175
2330
  }
2176
2331
  ),
2177
- t.description && /* @__PURE__ */ c(
2332
+ t.description && /* @__PURE__ */ d(
2178
2333
  "p",
2179
2334
  {
2180
2335
  className: `text-sm text-fg-secondary ${o("xs", "mt")}`,
2181
2336
  children: t.description
2182
2337
  }
2183
2338
  ),
2184
- t.content && /* @__PURE__ */ c("div", { className: o("md", "mt"), children: t.content })
2339
+ t.content && /* @__PURE__ */ d("div", { className: o("md", "mt"), children: t.content })
2185
2340
  ] })
2186
2341
  ]
2187
2342
  },
@@ -2190,29 +2345,35 @@ function ya({
2190
2345
  }) });
2191
2346
  }
2192
2347
  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
2348
+ we as Badge,
2349
+ Je as Breadcrumb,
2350
+ P as Card,
2351
+ ra as CardActions,
2352
+ na as CardBody,
2353
+ ea as CardHeader,
2354
+ ta as CardSubtitle,
2355
+ aa as CardTitle,
2356
+ Ee as Chip,
2357
+ Ge as Container,
2358
+ ya as DialogFooter,
2359
+ xa as DialogHeader,
2360
+ va as DrawerFooter,
2361
+ ha as DrawerHeader,
2362
+ ma as ErrorMessage,
2363
+ wa as HeaderActions,
2364
+ Na as HeaderNavigation,
2365
+ ba as Info,
2366
+ De as Label,
2367
+ ka as MenuSeparator,
2368
+ $a as NavbarSeparator,
2369
+ Sa as PageHeader,
2370
+ Be as Progress,
2371
+ qe as Separator,
2372
+ ga as Skeleton,
2373
+ Ke as Spinner,
2374
+ Qe as Stack,
2375
+ Ta as TableCell,
2376
+ se as Text,
2377
+ Ca as Timeline
2217
2378
  };
2218
2379
  //# sourceMappingURL=index.js.map