@fabio.caffarello/react-design-system 3.0.0 → 3.2.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,32 +1,33 @@
1
- var ee = Object.defineProperty, ae = Object.defineProperties;
2
- var te = Object.getOwnPropertyDescriptors;
3
- var V = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var B = (r, a, i) => a in r ? ee(r, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[a] = i, b = (r, a) => {
6
- for (var i in a || (a = {}))
7
- _.call(a, i) && B(r, i, a[i]);
8
- if (V)
9
- for (var i of V(a))
10
- K.call(a, i) && B(r, i, a[i]);
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) => {
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]);
11
11
  return r;
12
- }, k = (r, a) => ae(r, te(a));
12
+ }, v = (r, a) => le(r, oe(a));
13
13
  var h = (r, a) => {
14
- var i = {};
14
+ var n = {};
15
15
  for (var t in r)
16
- _.call(r, t) && a.indexOf(t) < 0 && (i[t] = r[t]);
17
- if (r != null && V)
18
- for (var t of V(r))
19
- a.indexOf(t) < 0 && K.call(r, t) && (i[t] = r[t]);
20
- return i;
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]);
20
+ return n;
21
21
  };
22
- var X = (r, a, i) => B(r, typeof a != "symbol" ? a + "" : a, i);
23
- import { jsxs as T, jsx as o } from "react/jsx-runtime";
24
- import Q, { forwardRef as H, memo as re } from "react";
25
- import { X as ie, AlertCircle as ne, Loader2 as se, CheckCircle2 as G } from "lucide-react";
26
- import { clsx as le } from "clsx";
27
- import { twMerge as oe } from "tailwind-merge";
28
- import { cva as ce } from "class-variance-authority";
29
- class A {
22
+ var Q = (r, a, n) => K(r, typeof a != "symbol" ? a + "" : a, n);
23
+ import { jsx as d, jsxs as C } from "react/jsx-runtime";
24
+ import * as S from "react";
25
+ import re, { memo as H, forwardRef as j } 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 I {
30
31
  /**
31
32
  * Create a radius token
32
33
  */
@@ -82,30 +83,30 @@ class A {
82
83
  };
83
84
  }
84
85
  }
85
- const de = {
86
- none: A.create("none"),
87
- sm: A.create("sm"),
88
- md: A.create("md"),
89
- lg: A.create("lg"),
90
- xl: A.create("xl"),
91
- "2xl": A.create("2xl"),
92
- "3xl": A.create("3xl"),
93
- full: A.create("full")
86
+ const be = {
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")
94
95
  };
95
- function S(r) {
96
- return de[r].tailwind;
96
+ function M(r) {
97
+ return be[r].tailwind;
97
98
  }
98
- class w {
99
+ class k {
99
100
  // 4px base
100
101
  /**
101
102
  * Create a spacing token from scale value
102
103
  */
103
104
  static create(a) {
104
- const i = a * this.BASE_UNIT, t = i / 16;
105
+ const n = a * this.BASE_UNIT, t = n / 16;
105
106
  return {
106
- value: i,
107
+ value: n,
107
108
  rem: `${t}rem`,
108
- px: `${i}px`,
109
+ px: `${n}px`,
109
110
  tailwind: this.getTailwindClass(a)
110
111
  };
111
112
  }
@@ -162,46 +163,46 @@ class w {
162
163
  }[a] || String(a);
163
164
  }
164
165
  }
165
- X(w, "BASE_UNIT", 4);
166
- const fe = {
166
+ Q(k, "BASE_UNIT", 4);
167
+ const ge = {
167
168
  // Micro spacing (0-14px)
168
- none: w.create(0),
169
- "0.5": w.create(0.5),
169
+ none: k.create(0),
170
+ "0.5": k.create(0.5),
170
171
  // 2px (half-step)
171
- xs: w.create(1),
172
+ xs: k.create(1),
172
173
  // 4px
173
- "1.5": w.create(1.5),
174
+ "1.5": k.create(1.5),
174
175
  // 6px (half-step)
175
- sm: w.create(2),
176
+ sm: k.create(2),
176
177
  // 8px
177
- "2.5": w.create(2.5),
178
+ "2.5": k.create(2.5),
178
179
  // 10px (half-step)
179
- md: w.create(3),
180
+ md: k.create(3),
180
181
  // 12px
181
- "3.5": w.create(3.5),
182
+ "3.5": k.create(3.5),
182
183
  // 14px (half-step)
183
184
  // Standard spacing (16-32px)
184
- base: w.create(4),
185
+ base: k.create(4),
185
186
  // 16px
186
- lg: w.create(6),
187
+ lg: k.create(6),
187
188
  // 24px
188
- xl: w.create(8),
189
+ xl: k.create(8),
189
190
  // 32px
190
191
  // Large spacing (40-64px)
191
- "2xl": w.create(10),
192
+ "2xl": k.create(10),
192
193
  // 40px
193
- "3xl": w.create(12),
194
+ "3xl": k.create(12),
194
195
  // 48px
195
- "4xl": w.create(16),
196
+ "4xl": k.create(16),
196
197
  // 64px
197
198
  // Extra large spacing (80px+)
198
- "5xl": w.create(20),
199
+ "5xl": k.create(20),
199
200
  // 80px
200
- "6xl": w.create(24)
201
+ "6xl": k.create(24)
201
202
  // 96px
202
203
  };
203
- function l(r, a = "p") {
204
- const t = fe[r].tailwind;
204
+ function o(r, a = "p") {
205
+ const t = ge[r].tailwind;
205
206
  return `${{
206
207
  p: "p",
207
208
  m: "m",
@@ -224,7 +225,7 @@ function l(r, a = "p") {
224
225
  "space-y": "space-y"
225
226
  }[a]}-${t}`;
226
227
  }
227
- class v {
228
+ class $ {
228
229
  /**
229
230
  * Create font size token
230
231
  */
@@ -286,76 +287,330 @@ class v {
286
287
  /**
287
288
  * Create complete typography token
288
289
  */
289
- static create(a, i = "normal", t = "normal") {
290
+ static create(a, n = "normal", t = "normal") {
290
291
  return {
291
292
  fontSize: this.createFontSize(a),
292
- lineHeight: this.createLineHeight(i),
293
+ lineHeight: this.createLineHeight(n),
293
294
  fontWeight: this.createFontWeight(t)
294
295
  };
295
296
  }
296
297
  }
297
- v.createFontWeight("light"), v.createFontWeight("normal"), v.createFontWeight("medium"), v.createFontWeight("semibold"), v.createFontWeight("bold");
298
- const U = {
298
+ $.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
299
+ const Y = {
299
300
  // Headings
300
- h1: v.create("4xl", "tight", "bold"),
301
- h2: v.create("3xl", "tight", "bold"),
302
- h3: v.create("2xl", "snug", "semibold"),
303
- h4: v.create("xl", "snug", "semibold"),
304
- h5: v.create("lg", "normal", "medium"),
305
- h6: v.create("base", "normal", "medium"),
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"),
306
307
  // Body text
307
- body: v.create("base", "relaxed", "normal"),
308
- bodySmall: v.create("sm", "relaxed", "normal"),
309
- bodyLarge: v.create("lg", "relaxed", "normal"),
308
+ body: $.create("base", "relaxed", "normal"),
309
+ bodySmall: $.create("sm", "relaxed", "normal"),
310
+ bodyLarge: $.create("lg", "relaxed", "normal"),
310
311
  // UI elements
311
- label: v.create("sm", "normal", "medium"),
312
- caption: v.create("xs", "normal", "normal"),
313
- button: v.create("base", "normal", "medium")
312
+ label: $.create("sm", "normal", "medium"),
313
+ caption: $.create("xs", "normal", "normal"),
314
+ button: $.create("base", "normal", "medium")
314
315
  };
315
- function I(r) {
316
- const a = U[r];
316
+ function D(r) {
317
+ const a = Y[r];
317
318
  return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
318
319
  }
319
- function C(r) {
320
- return U[r].fontSize.tailwind;
320
+ function L(r) {
321
+ return Y[r].fontSize.tailwind;
321
322
  }
322
- function R(r) {
323
- return U[r].fontWeight.tailwind;
323
+ function B(r) {
324
+ return Y[r].fontWeight.tailwind;
324
325
  }
325
- function d(...r) {
326
- return oe(le(r));
326
+ function l(...r) {
327
+ return ce(de(r));
327
328
  }
328
- const O = (r, a) => {
329
- const i = ce(r, a);
329
+ const R = (r, a) => {
330
+ const n = fe(r, a);
330
331
  return ((t) => {
331
- const n = i(t);
332
- return d(n);
332
+ const i = n(t);
333
+ return l(i);
333
334
  });
334
- }, pe = O(
335
+ }, xe = R(
335
336
  // Base classes
336
- d(
337
+ l(
338
+ "inline-flex",
339
+ "items-center",
340
+ "justify-center",
341
+ B("label"),
342
+ M("md"),
343
+ "border"
344
+ ),
345
+ {
346
+ variants: {
347
+ variant: {
348
+ success: "",
349
+ warning: "",
350
+ error: "",
351
+ info: "",
352
+ neutral: "",
353
+ primary: "",
354
+ secondary: ""
355
+ },
356
+ size: {
357
+ sm: l(
358
+ o("1.5", "px"),
359
+ o("0.5", "py"),
360
+ L("caption")
361
+ ),
362
+ md: l(
363
+ o("sm", "px"),
364
+ o("xs", "py"),
365
+ L("caption")
366
+ ),
367
+ lg: l(
368
+ o("sm", "px"),
369
+ o("xs", "py"),
370
+ L("bodySmall")
371
+ )
372
+ },
373
+ style: {
374
+ solid: "",
375
+ outline: ""
376
+ }
377
+ },
378
+ compoundVariants: [
379
+ // Solid style variants
380
+ {
381
+ variant: "success",
382
+ style: "solid",
383
+ class: l("bg-success-bg", "text-success-dark", "border-success")
384
+ },
385
+ {
386
+ variant: "warning",
387
+ style: "solid",
388
+ class: l("bg-warning-bg", "text-warning-dark", "border-warning")
389
+ },
390
+ {
391
+ variant: "error",
392
+ style: "solid",
393
+ class: l("bg-error-bg", "text-error-dark", "border-error")
394
+ },
395
+ {
396
+ variant: "info",
397
+ style: "solid",
398
+ class: l("bg-info-bg", "text-info-dark", "border-info")
399
+ },
400
+ {
401
+ variant: "neutral",
402
+ style: "solid",
403
+ class: l("bg-surface-muted", "text-fg-primary", "border-line-default")
404
+ },
405
+ {
406
+ variant: "primary",
407
+ style: "solid",
408
+ class: l(
409
+ "bg-surface-brand-subtle",
410
+ "text-fg-brand-emphasis",
411
+ "border-line-brand"
412
+ )
413
+ },
414
+ {
415
+ variant: "secondary",
416
+ style: "solid",
417
+ // bg-pink-300: secondary solid badge — no semantic equivalent
418
+ // (would shift 2 shades to bg-surface-secondary). Kept literal until
419
+ // secondary brand surface palette expands beyond DEFAULT.
420
+ class: l(
421
+ "bg-pink-300",
422
+ "text-fg-brand-secondary-emphasis",
423
+ "border-line-secondary"
424
+ )
425
+ },
426
+ // Outline style variants
427
+ {
428
+ variant: "success",
429
+ style: "outline",
430
+ class: l("bg-transparent", "border-success", "text-fg-success")
431
+ },
432
+ {
433
+ variant: "warning",
434
+ style: "outline",
435
+ class: l("bg-transparent", "border-warning", "text-fg-warning")
436
+ },
437
+ {
438
+ variant: "error",
439
+ style: "outline",
440
+ class: l("bg-transparent", "border-error", "text-fg-error")
441
+ },
442
+ {
443
+ variant: "info",
444
+ style: "outline",
445
+ class: l("bg-transparent", "border-info", "text-fg-info")
446
+ },
447
+ {
448
+ variant: "neutral",
449
+ style: "outline",
450
+ class: l("bg-transparent", "border-line-default", "text-fg-secondary")
451
+ },
452
+ {
453
+ variant: "primary",
454
+ style: "outline",
455
+ class: l("bg-transparent", "border-line-brand", "text-fg-brand")
456
+ },
457
+ {
458
+ variant: "secondary",
459
+ style: "outline",
460
+ class: l(
461
+ "bg-transparent",
462
+ "border-line-secondary",
463
+ "text-fg-brand-secondary"
464
+ )
465
+ }
466
+ ],
467
+ defaultVariants: {
468
+ variant: "neutral",
469
+ size: "md",
470
+ style: "solid"
471
+ }
472
+ }
473
+ ), ye = H(
474
+ j(function(b, p) {
475
+ var u = b, {
476
+ variant: a = "neutral",
477
+ size: n = "md",
478
+ style: t = "solid",
479
+ className: i = "",
480
+ children: s,
481
+ "aria-label": c
482
+ } = u, f = h(u, [
483
+ "variant",
484
+ "size",
485
+ "style",
486
+ "className",
487
+ "children",
488
+ "aria-label"
489
+ ]);
490
+ const x = l(xe({ variant: a, size: n, style: t }), i);
491
+ let g;
492
+ if (c)
493
+ g = c;
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);
499
+ }
500
+ return /* @__PURE__ */ d(
501
+ "span",
502
+ v(m({
503
+ ref: p,
504
+ role: "status",
505
+ "aria-label": g,
506
+ className: x
507
+ }, f), {
508
+ children: s
509
+ })
510
+ );
511
+ })
512
+ );
513
+ ye.displayName = "Badge";
514
+ function ee(r, a) {
515
+ if (typeof r == "function")
516
+ return r(a);
517
+ r != null && (r.current = a);
518
+ }
519
+ function he(...r) {
520
+ return (a) => {
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;
525
+ });
526
+ if (n)
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);
531
+ }
532
+ };
533
+ };
534
+ }
535
+ var we = /* @__PURE__ */ Symbol.for("react.lazy"), U = S[" use ".trim().toString()];
536
+ function ve(r) {
537
+ return typeof r == "object" && r !== null && "then" in r;
538
+ }
539
+ function ne(r) {
540
+ return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === we && "_payload" in r && ve(r._payload);
541
+ }
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, c = h(b, ["children"]);
546
+ ne(s) && typeof U == "function" && (s = U(s._payload));
547
+ const f = S.Children.toArray(s), p = f.find(Te);
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__ */ d(a, v(m({}, c), { ref: i, children: S.isValidElement(u) ? S.cloneElement(u, void 0, x) : null }));
551
+ }
552
+ return /* @__PURE__ */ d(a, v(m({}, c), { ref: i, children: s }));
553
+ });
554
+ return n.displayName = `${r}.Slot`, n;
555
+ }
556
+ var $e = /* @__PURE__ */ ke("Slot");
557
+ // @__NO_SIDE_EFFECTS__
558
+ function Ne(r) {
559
+ const a = S.forwardRef((n, t) => {
560
+ let c = n, { children: i } = c, s = h(c, ["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);
564
+ }
565
+ return S.Children.count(i) > 1 ? S.Children.only(null) : null;
566
+ });
567
+ return a.displayName = `${r}.SlotClone`, a;
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;
572
+ }
573
+ function Ce(r, a) {
574
+ const n = m({}, a);
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(" "));
581
+ }
582
+ return m(m({}, r), n);
583
+ }
584
+ function Me(r) {
585
+ var t, i;
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);
588
+ }
589
+ const ae = R(
590
+ // Base classes
591
+ l(
337
592
  "inline-flex",
338
593
  "items-center",
339
594
  "font-medium",
340
- S("full"),
341
- l("xs", "gap")
595
+ M("full"),
596
+ o("xs", "gap")
342
597
  ),
343
598
  {
344
599
  variants: {
345
600
  variant: {
346
- default: d(
601
+ default: l(
347
602
  "bg-surface-muted",
348
603
  "text-fg-primary",
349
604
  "border",
350
605
  "border-line-default"
351
606
  ),
352
- outlined: d(
607
+ outlined: l(
353
608
  "bg-transparent",
354
609
  "text-fg-primary",
355
610
  "border",
356
611
  "border-line-default"
357
612
  ),
358
- filled: d(
613
+ filled: l(
359
614
  "bg-surface-brand-strong",
360
615
  "text-fg-inverse",
361
616
  "border",
@@ -363,24 +618,24 @@ const O = (r, a) => {
363
618
  )
364
619
  },
365
620
  size: {
366
- sm: d(
367
- l("xs", "px"),
368
- l("xs", "py"),
369
- C("caption")
621
+ sm: l(
622
+ o("xs", "px"),
623
+ o("xs", "py"),
624
+ L("caption")
370
625
  ),
371
- md: d(
372
- l("sm", "px"),
373
- l("xs", "py"),
374
- C("bodySmall")
626
+ md: l(
627
+ o("sm", "px"),
628
+ o("xs", "py"),
629
+ L("bodySmall")
375
630
  ),
376
- lg: d(
377
- l("md", "px"),
378
- l("sm", "py"),
379
- C("body")
631
+ lg: l(
632
+ o("md", "px"),
633
+ o("sm", "py"),
634
+ L("body")
380
635
  )
381
636
  },
382
637
  selected: {
383
- true: d(
638
+ true: l(
384
639
  "bg-surface-brand-strong",
385
640
  "text-fg-inverse",
386
641
  "border",
@@ -420,68 +675,70 @@ const O = (r, a) => {
420
675
  disabled: !1
421
676
  }
422
677
  }
423
- ), ue = H(function(N, y) {
424
- var F = N, {
425
- children: a,
678
+ ), Le = j(function(a, n) {
679
+ const {
680
+ children: t,
426
681
  variant: i = "default",
427
- size: t = "md",
428
- onRemove: n,
429
- selected: s = !1,
430
- disabled: c = !1,
431
- className: f = "",
432
- "aria-label": m,
433
- onClick: p,
434
- tabIndex: u
435
- } = F, x = h(F, [
436
- "children",
437
- "variant",
438
- "size",
439
- "onRemove",
440
- "selected",
441
- "disabled",
442
- "className",
443
- "aria-label",
444
- "onClick",
445
- "tabIndex"
446
- ]);
447
- const q = (() => {
448
- if (m) return m;
449
- if (typeof a == "string") return a;
450
- if (typeof a == "object" && a !== null && "props" in a) {
451
- const M = a.props;
452
- if (M != null && M.children && typeof M.children == "string")
453
- return M.children;
682
+ size: s = "md",
683
+ selected: c = !1,
684
+ disabled: f = !1,
685
+ className: p = "",
686
+ "aria-label": b,
687
+ tabIndex: u,
688
+ asChild: x = !1
689
+ } = a, y = (() => {
690
+ if (b) return b;
691
+ if (typeof t == "string") return t;
692
+ if (typeof t == "object" && t !== null && "props" in t) {
693
+ const F = t.props;
694
+ if (F != null && F.children && typeof F.children == "string")
695
+ return F.children;
454
696
  }
455
- })(), P = p !== void 0, Z = P && !c, J = (M) => {
456
- c || (M.key === "Enter" || M.key === " ") && (M.preventDefault(), p == null || p());
697
+ })();
698
+ if (x)
699
+ return /* @__PURE__ */ d(
700
+ $e,
701
+ {
702
+ ref: n,
703
+ className: l(
704
+ ae({ variant: i, size: s, selected: c, disabled: f }),
705
+ p
706
+ ),
707
+ "aria-label": b,
708
+ "aria-disabled": f || void 0,
709
+ tabIndex: u,
710
+ children: t
711
+ }
712
+ );
713
+ const { onRemove: T, onClick: z } = a, q = z !== void 0, _ = q && !f, ie = (F) => {
714
+ f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), z == null || z());
457
715
  };
458
- return /* @__PURE__ */ T(
716
+ return /* @__PURE__ */ C(
459
717
  "div",
460
- k(b({
461
- ref: y,
462
- className: d(
463
- pe({ variant: i, size: t, selected: s, disabled: c }),
464
- n && l("xs", "pr"),
465
- f
718
+ {
719
+ ref: n,
720
+ className: l(
721
+ ae({ variant: i, size: s, selected: c, disabled: f }),
722
+ T && o("xs", "pr"),
723
+ p
466
724
  ),
467
- "aria-disabled": c
468
- }, x), {
725
+ "aria-disabled": f,
469
726
  children: [
470
- P ? /* @__PURE__ */ o(
727
+ q ? /* @__PURE__ */ d(
471
728
  "button",
472
729
  {
473
730
  type: "button",
474
- onClick: c ? void 0 : p,
475
- onKeyDown: J,
476
- disabled: c,
477
- "aria-pressed": s ? !0 : void 0,
478
- "aria-label": m || q,
479
- tabIndex: u !== void 0 ? u : Z ? 0 : void 0,
480
- className: d(
731
+ onClick: f ? void 0 : z,
732
+ onKeyDown: ie,
733
+ disabled: f,
734
+ "aria-pressed": c ? !0 : void 0,
735
+ "aria-label": b || y,
736
+ tabIndex: u !== void 0 ? u : _ ? 0 : void 0,
737
+ className: l(
481
738
  "flex-1",
482
739
  "bg-transparent",
483
740
  "border-0",
484
- l("none", "p"),
741
+ o("none", "p"),
485
742
  "text-inherit",
486
743
  "text-left",
487
744
  "cursor-pointer",
@@ -489,162 +746,192 @@ const O = (r, a) => {
489
746
  "focus:ring-2",
490
747
  "focus:ring-line-focus",
491
748
  "focus:ring-offset-2",
492
- S("full")
749
+ M("full")
493
750
  ),
494
- children: a
751
+ children: t
495
752
  }
496
- ) : /* @__PURE__ */ o("span", { children: a }),
497
- n && !c && /* @__PURE__ */ o(
753
+ ) : /* @__PURE__ */ d("span", { children: t }),
754
+ T && !f && /* @__PURE__ */ d(
498
755
  "button",
499
756
  {
500
757
  type: "button",
501
- onClick: (M) => {
502
- M.stopPropagation(), n();
758
+ onClick: (F) => {
759
+ F.stopPropagation(), T();
503
760
  },
504
- className: d(
505
- l("xs", "ml"),
761
+ className: l(
762
+ o("xs", "ml"),
506
763
  "hover:bg-tint-hover",
507
- S("full"),
508
- l("xs", "p"),
764
+ M("full"),
765
+ o("xs", "p"),
509
766
  "transition-colors",
510
767
  "focus:outline-none",
511
768
  "focus:ring-2",
512
769
  "focus:ring-line-focus",
513
770
  "focus:ring-offset-1"
514
771
  ),
515
- "aria-label": `Remove ${q || "chip"}`,
516
- children: /* @__PURE__ */ o(ie, { className: "h-3 w-3", "aria-hidden": "true" })
772
+ "aria-label": `Remove ${y || "chip"}`,
773
+ children: /* @__PURE__ */ d(pe, { className: "h-3 w-3", "aria-hidden": "true" })
517
774
  }
518
775
  )
519
776
  ]
520
- })
777
+ }
521
778
  );
522
779
  });
523
- ue.displayName = "Chip";
524
- function De(n) {
525
- var s = n, {
780
+ Le.displayName = "Chip";
781
+ function ia(i) {
782
+ var s = i, {
526
783
  message: r,
527
784
  id: a,
528
- className: i = ""
785
+ className: n = ""
529
786
  } = s, t = h(s, [
530
787
  "message",
531
788
  "id",
532
789
  "className"
533
790
  ]);
534
791
  const c = [
535
- l("xs", "mt"),
536
- C("bodySmall"),
792
+ o("xs", "mt"),
793
+ L("bodySmall"),
537
794
  "text-fg-error",
538
795
  "flex",
539
796
  "items-center",
540
- l("xs", "gap")
541
- ], f = d(...c, i);
542
- return /* @__PURE__ */ T("div", k(b({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
543
- /* @__PURE__ */ o(ne, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
544
- /* @__PURE__ */ o("span", { children: r })
797
+ o("xs", "gap")
798
+ ], f = l(...c, n);
799
+ return /* @__PURE__ */ C("div", v(m({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
800
+ /* @__PURE__ */ d(ue, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
801
+ /* @__PURE__ */ d("span", { children: r })
545
802
  ] }));
546
803
  }
547
- function je(t) {
548
- var n = t, {
804
+ function sa(t) {
805
+ var i = t, {
549
806
  variant: r = "info",
550
807
  className: a
551
- } = n, i = h(n, [
808
+ } = i, n = h(i, [
552
809
  "variant",
553
810
  "className"
554
811
  ]);
555
812
  const s = {
556
- warning: d("bg-warning-bg", "text-warning-dark", "border-warning"),
557
- error: d("bg-error-bg", "text-error-dark", "border-error"),
558
- info: d("bg-info-bg", "text-info-dark", "border-info")
813
+ warning: l("bg-warning-bg", "text-warning-dark", "border-warning"),
814
+ error: l("bg-error-bg", "text-error-dark", "border-error"),
815
+ info: l("bg-info-bg", "text-info-dark", "border-info")
559
816
  };
560
- return /* @__PURE__ */ o(
817
+ return /* @__PURE__ */ d(
561
818
  "div",
562
- b({
819
+ m({
563
820
  role: "alert",
564
- className: d(
821
+ className: l(
565
822
  "border",
566
- l("base", "px"),
567
- l("sm", "py"),
568
- S("lg"),
823
+ o("base", "px"),
824
+ o("sm", "py"),
825
+ M("lg"),
569
826
  s[r],
570
827
  a
571
828
  )
572
- }, i)
829
+ }, n)
573
830
  );
574
831
  }
575
- function g(r, a, i) {
576
- const t = me(r), n = be(r);
832
+ const ze = l(
833
+ "block",
834
+ L("label"),
835
+ B("label"),
836
+ "text-fg-primary"
837
+ ), Fe = {
838
+ default: "",
839
+ required: l(
840
+ "after:content-['*']",
841
+ `after:${o("0.5", "ml")}`,
842
+ "after:text-fg-error"
843
+ ),
844
+ optional: l(
845
+ "after:content-['(optional)']",
846
+ `after:${o("xs", "ml")}`,
847
+ "after:text-fg-tertiary",
848
+ "after:font-normal"
849
+ )
850
+ }, Ae = H(
851
+ j(function(c, s) {
852
+ var f = c, { variant: a = "default", className: n = "", children: t } = f, i = h(f, ["variant", "className", "children"]);
853
+ const p = l(
854
+ ze,
855
+ Fe[a],
856
+ n
857
+ );
858
+ return /* @__PURE__ */ d("label", v(m({ ref: s, className: p }, i), { children: t }));
859
+ })
860
+ );
861
+ Ae.displayName = "Label";
862
+ function w(r, a, n) {
863
+ const t = Ee(r), i = Ie(r);
577
864
  return {
578
865
  hex: r,
579
866
  rgb: t,
580
- hsl: n,
581
- cssVar: `var(--color-${a}-${i})`,
582
- tailwind: `${a}-${i}`
867
+ hsl: i,
868
+ cssVar: `var(--color-${a}-${n})`,
869
+ tailwind: `${a}-${n}`
583
870
  };
584
871
  }
585
- function me(r) {
872
+ function Ee(r) {
586
873
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
587
874
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
588
875
  }
589
- function be(r) {
876
+ function Ie(r) {
590
877
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
591
878
  if (!a) return "0, 0%, 0%";
592
- const i = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, n = parseInt(a[3], 16) / 255, s = Math.max(i, t, n), c = Math.min(i, t, n);
593
- let f = 0, m = 0;
594
- const p = (s + c) / 2;
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
+ let f = 0, p = 0;
881
+ const b = (s + c) / 2;
595
882
  if (s !== c) {
596
883
  const u = s - c;
597
- switch (m = p > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
598
- case i:
599
- f = ((t - n) / u + (t < n ? 6 : 0)) / 6;
884
+ switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
885
+ case n:
886
+ f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
600
887
  break;
601
888
  case t:
602
- f = ((n - i) / u + 2) / 6;
889
+ f = ((i - n) / u + 2) / 6;
603
890
  break;
604
- case n:
605
- f = ((i - t) / u + 4) / 6;
891
+ case i:
892
+ f = ((n - t) / u + 4) / 6;
606
893
  break;
607
894
  }
608
895
  }
609
- return `${Math.round(f * 360)}, ${Math.round(m * 100)}%, ${Math.round(p * 100)}%`;
896
+ return `${Math.round(f * 360)}, ${Math.round(p * 100)}%, ${Math.round(b * 100)}%`;
610
897
  }
611
- g("#f0f4f8", "brand-primary", 50), g("#d9e2ec", "brand-primary", 100), g("#bcccdc", "brand-primary", 200), g("#9fb3c8", "brand-primary", 300), g("#7390ad", "brand-primary", 400), g("#486581", "brand-primary", 500), g("#334e68", "brand-primary", 600), g("#243b53", "brand-primary", 700), g("#1a2a3a", "brand-primary", 800), g("#102a43", "brand-primary", 900), g("#061a35", "brand-primary", 950);
612
- g("#f7f5ff", "brand-secondary", 50), g("#eee9ff", "brand-secondary", 100), g("#e0d6ff", "brand-secondary", 200), g("#cbb8ff", "brand-secondary", 300), g("#aa89fc", "brand-secondary", 400), g("#8e58f2", "brand-secondary", 500), g("#703bc8", "brand-secondary", 600), g("#582aa2", "brand-secondary", 700), g("#44227e", "brand-secondary", 800), g("#32185d", "brand-secondary", 900), g("#180635", "brand-secondary", 950);
613
- function e(r, a, i) {
614
- const t = ge(r), n = xe(r);
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
+ 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
+ function e(r, a, n) {
901
+ const t = We(r), i = De(r);
615
902
  return {
616
903
  hex: r,
617
904
  rgb: t,
618
- hsl: n,
619
- cssVar: `var(--color-${a}-${i})`,
620
- tailwind: `${a}-${i}`
905
+ hsl: i,
906
+ cssVar: `var(--color-${a}-${n})`,
907
+ tailwind: `${a}-${n}`
621
908
  };
622
909
  }
623
- function ge(r) {
910
+ function We(r) {
624
911
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
625
912
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
626
913
  }
627
- function xe(r) {
914
+ function De(r) {
628
915
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
629
916
  if (!a) return "0, 0%, 0%";
630
- const i = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, n = parseInt(a[3], 16) / 255, s = Math.max(i, t, n), c = Math.min(i, t, n);
631
- let f = 0, m = 0;
632
- const p = (s + c) / 2;
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
+ let f = 0, p = 0;
919
+ const b = (s + c) / 2;
633
920
  if (s !== c) {
634
921
  const u = s - c;
635
- switch (m = p > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
636
- case i:
637
- f = ((t - n) / u + (t < n ? 6 : 0)) / 6;
922
+ switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
923
+ case n:
924
+ f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
638
925
  break;
639
926
  case t:
640
- f = ((n - i) / u + 2) / 6;
927
+ f = ((i - n) / u + 2) / 6;
641
928
  break;
642
- case n:
643
- f = ((i - t) / u + 4) / 6;
929
+ case i:
930
+ f = ((n - t) / u + 4) / 6;
644
931
  break;
645
932
  }
646
933
  }
647
- return `${Math.round(f * 360)}, ${Math.round(m * 100)}%, ${Math.round(p * 100)}%`;
934
+ return `${Math.round(f * 360)}, ${Math.round(p * 100)}%, ${Math.round(b * 100)}%`;
648
935
  }
649
936
  e("#eef2ff", "indigo", 50), e("#e0e7ff", "indigo", 100), e("#c7d2fe", "indigo", 200), e("#a5b4fc", "indigo", 300), e("#818cf8", "indigo", 400), e("#6366f1", "indigo", 500), e("#4f46e5", "indigo", 600), e("#4338ca", "indigo", 700), e("#3730a3", "indigo", 800), e("#312e81", "indigo", 900), e("#1e1b4b", "indigo", 950);
650
937
  e("#f5f3ff", "violet", 50), e("#ede9fe", "violet", 100), e("#ddd6fe", "violet", 200), e("#c4b5fd", "violet", 300), e("#a78bfa", "violet", 400), e("#8b5cf6", "violet", 500), e("#7c3aed", "violet", 600), e("#6d28d9", "violet", 700), e("#5b21b6", "violet", 800), e("#4c1d95", "violet", 900), e("#2e1065", "violet", 950);
@@ -665,7 +952,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
665
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);
666
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);
667
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);
668
- class D {
955
+ class V {
669
956
  /**
670
957
  * Create a shadow token
671
958
  */
@@ -709,8 +996,19 @@ class D {
709
996
  }[a];
710
997
  }
711
998
  }
712
- D.create("none"), D.create("sm"), D.create("md"), D.create("lg"), D.create("xl"), D.create("2xl"), D.create("inner");
713
- class z {
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")
1007
+ };
1008
+ function X(r) {
1009
+ return Ve[r].tailwind;
1010
+ }
1011
+ class A {
714
1012
  /**
715
1013
  * Create a border width token
716
1014
  */
@@ -746,16 +1044,16 @@ class z {
746
1044
  /**
747
1045
  * Create a complete border token
748
1046
  */
749
- static create(a, i = "solid") {
1047
+ static create(a, n = "solid") {
750
1048
  return {
751
1049
  width: this.createWidth(a),
752
- style: i,
753
- description: `${a} ${i} border`
1050
+ style: n,
1051
+ description: `${a} ${n} border`
754
1052
  };
755
1053
  }
756
1054
  }
757
- z.create("none"), z.create("thin"), z.create("base"), z.create("medium"), z.create("thick"), z.create("thin", "dashed"), z.create("base", "dashed"), z.create("thin", "dotted"), z.create("base", "dotted");
758
- class E {
1055
+ A.create("none"), A.create("thin"), A.create("base"), A.create("medium"), A.create("thick"), A.create("thin", "dashed"), A.create("base", "dashed"), A.create("thin", "dotted"), A.create("base", "dotted");
1056
+ class O {
759
1057
  /**
760
1058
  * Create breakpoint token
761
1059
  */
@@ -776,12 +1074,12 @@ class E {
776
1074
  };
777
1075
  }
778
1076
  }
779
- E.create("sm"), E.create("md"), E.create("lg"), E.create("xl"), E.create("2xl");
1077
+ O.create("sm"), O.create("md"), O.create("lg"), O.create("xl"), O.create("2xl");
780
1078
  class W {
781
1079
  /**
782
1080
  * Create an animation token
783
1081
  */
784
- static create(a, i = "ease-in-out") {
1082
+ static create(a, n = "ease-in-out") {
785
1083
  const t = {
786
1084
  fast: {
787
1085
  value: "150ms",
@@ -803,7 +1101,7 @@ class W {
803
1101
  ms: 500,
804
1102
  tailwind: "duration-500"
805
1103
  }
806
- }, n = {
1104
+ }, i = {
807
1105
  "ease-in": {
808
1106
  value: "cubic-bezier(0.4, 0, 1, 1)",
809
1107
  tailwind: "ease-in",
@@ -827,21 +1125,21 @@ class W {
827
1125
  };
828
1126
  return {
829
1127
  duration: t[a],
830
- easing: n[i]
1128
+ easing: i[n]
831
1129
  };
832
1130
  }
833
1131
  /**
834
1132
  * Create a transition token
835
1133
  */
836
- static createTransition(a, i = "base", t = "ease-in-out") {
837
- const n = this.create(i, t), s = Array.isArray(a) ? a.join(", ") : a, c = [
838
- n.duration.tailwind,
839
- n.easing.tailwind
1134
+ static createTransition(a, n = "base", t = "ease-in-out") {
1135
+ const i = this.create(n, t), s = Array.isArray(a) ? a.join(", ") : a, c = [
1136
+ i.duration.tailwind,
1137
+ i.easing.tailwind
840
1138
  ].join(" ");
841
1139
  return {
842
1140
  property: s,
843
- duration: n.duration.value,
844
- timingFunction: n.easing.value,
1141
+ duration: i.duration.value,
1142
+ timingFunction: i.easing.value,
845
1143
  tailwind: c
846
1144
  };
847
1145
  }
@@ -850,7 +1148,7 @@ W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.crea
850
1148
  ["color", "background-color", "border-color"],
851
1149
  "base"
852
1150
  ), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
853
- class L {
1151
+ class E {
854
1152
  /**
855
1153
  * Create a z-index token
856
1154
  */
@@ -904,13 +1202,13 @@ class L {
904
1202
  }[a];
905
1203
  }
906
1204
  }
907
- L.create("base"), L.create("dropdown"), L.create("sticky"), L.create("fixed"), L.create("modal-backdrop"), L.create("modal"), L.create("popover"), L.create("tooltip"), L.create("toast");
908
- class $ {
1205
+ E.create("base"), E.create("dropdown"), E.create("sticky"), E.create("fixed"), E.create("modal-backdrop"), E.create("modal"), E.create("popover"), E.create("tooltip"), E.create("toast");
1206
+ class N {
909
1207
  /**
910
1208
  * Create an opacity token
911
1209
  */
912
1210
  static create(a) {
913
- const i = a / 100, t = {
1211
+ const n = a / 100, t = {
914
1212
  0: "Fully transparent",
915
1213
  5: "Very light overlay",
916
1214
  10: "Light overlay",
@@ -929,7 +1227,7 @@ class $ {
929
1227
  };
930
1228
  return {
931
1229
  value: a,
932
- decimal: i,
1230
+ decimal: n,
933
1231
  tailwind: {
934
1232
  0: "opacity-0",
935
1233
  5: "opacity-5",
@@ -951,8 +1249,8 @@ class $ {
951
1249
  };
952
1250
  }
953
1251
  }
954
- $.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);
955
- const he = O("w-full", {
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 = R("w-full", {
956
1254
  variants: {
957
1255
  size: {
958
1256
  sm: "h-1",
@@ -972,7 +1270,7 @@ const he = O("w-full", {
972
1270
  size: "md",
973
1271
  variant: "primary"
974
1272
  }
975
- }), Y = O("transition-all", {
1273
+ }), te = R("transition-all", {
976
1274
  variants: {
977
1275
  variant: {
978
1276
  primary: "bg-surface-brand",
@@ -986,17 +1284,17 @@ const he = O("w-full", {
986
1284
  defaultVariants: {
987
1285
  variant: "primary"
988
1286
  }
989
- }), ye = H(function(x, u) {
990
- var y = x, {
1287
+ }), Re = j(function(x, u) {
1288
+ var g = x, {
991
1289
  value: a,
992
- max: i = 100,
1290
+ max: n = 100,
993
1291
  variant: t = "primary",
994
- size: n = "md",
1292
+ size: i = "md",
995
1293
  showLabel: s = !1,
996
1294
  label: c,
997
1295
  "aria-label": f,
998
- className: m = ""
999
- } = y, p = h(y, [
1296
+ className: p = ""
1297
+ } = g, b = h(g, [
1000
1298
  "value",
1001
1299
  "max",
1002
1300
  "variant",
@@ -1006,38 +1304,38 @@ const he = O("w-full", {
1006
1304
  "aria-label",
1007
1305
  "className"
1008
1306
  ]);
1009
- const N = a === void 0, F = N ? void 0 : Math.min(Math.max(a / i * 100, 0), 100), j = f || (N ? "Loading in progress" : `Progress: ${F == null ? void 0 : F.toFixed(0)}%`);
1010
- return /* @__PURE__ */ T("div", k(b({ ref: u, className: d("w-full", m) }, p), { children: [
1011
- s && (c || !N) && /* @__PURE__ */ T(
1307
+ const y = a === void 0, T = y ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), z = f || (y ? "Loading in progress" : `Progress: ${T == null ? void 0 : T.toFixed(0)}%`);
1308
+ return /* @__PURE__ */ C("div", v(m({ ref: u, className: l("w-full", p) }, b), { children: [
1309
+ s && (c || !y) && /* @__PURE__ */ C(
1012
1310
  "div",
1013
1311
  {
1014
- className: d(
1312
+ className: l(
1015
1313
  "flex",
1016
1314
  "items-center",
1017
1315
  "justify-between",
1018
- l("xs", "mb")
1316
+ o("xs", "mb")
1019
1317
  ),
1020
1318
  children: [
1021
- c && /* @__PURE__ */ o(
1319
+ c && /* @__PURE__ */ d(
1022
1320
  "span",
1023
1321
  {
1024
- className: d(
1025
- C("bodySmall"),
1026
- R("label"),
1322
+ className: l(
1323
+ L("bodySmall"),
1324
+ B("label"),
1027
1325
  "text-fg-primary"
1028
1326
  ),
1029
1327
  children: c
1030
1328
  }
1031
1329
  ),
1032
- !N && F !== void 0 && /* @__PURE__ */ T(
1330
+ !y && T !== void 0 && /* @__PURE__ */ C(
1033
1331
  "span",
1034
1332
  {
1035
- className: d(
1036
- C("bodySmall"),
1333
+ className: l(
1334
+ L("bodySmall"),
1037
1335
  "text-fg-secondary"
1038
1336
  ),
1039
1337
  children: [
1040
- F.toFixed(0),
1338
+ T.toFixed(0),
1041
1339
  "%"
1042
1340
  ]
1043
1341
  }
@@ -1045,32 +1343,32 @@ const he = O("w-full", {
1045
1343
  ]
1046
1344
  }
1047
1345
  ),
1048
- /* @__PURE__ */ o(
1346
+ /* @__PURE__ */ d(
1049
1347
  "div",
1050
1348
  {
1051
1349
  role: "progressbar",
1052
- "aria-valuemin": N ? void 0 : 0,
1053
- "aria-valuemax": N ? void 0 : i,
1054
- "aria-valuenow": N ? void 0 : a,
1055
- "aria-label": j,
1056
- "aria-busy": N,
1057
- className: d(
1350
+ "aria-valuemin": y ? void 0 : 0,
1351
+ "aria-valuemax": y ? void 0 : n,
1352
+ "aria-valuenow": y ? void 0 : a,
1353
+ "aria-label": z,
1354
+ "aria-busy": y,
1355
+ className: l(
1058
1356
  "relative",
1059
1357
  "w-full",
1060
1358
  "overflow-hidden",
1061
- he({ size: n, variant: t }),
1062
- S("full")
1359
+ je({ size: i, variant: t }),
1360
+ M("full")
1063
1361
  ),
1064
- children: N ? /* @__PURE__ */ o(
1362
+ children: y ? /* @__PURE__ */ d(
1065
1363
  "div",
1066
1364
  {
1067
- className: d(
1365
+ className: l(
1068
1366
  "absolute",
1069
1367
  "top-0",
1070
1368
  "left-0",
1071
1369
  "bottom-0",
1072
- Y({ variant: t }),
1073
- S("full"),
1370
+ te({ variant: t }),
1371
+ M("full"),
1074
1372
  "motion-reduce:animate-none"
1075
1373
  ),
1076
1374
  style: {
@@ -1078,19 +1376,19 @@ const he = O("w-full", {
1078
1376
  animation: "progress-indeterminate 1.5s ease-in-out infinite"
1079
1377
  }
1080
1378
  }
1081
- ) : /* @__PURE__ */ o(
1379
+ ) : /* @__PURE__ */ d(
1082
1380
  "div",
1083
1381
  {
1084
- className: d(
1382
+ className: l(
1085
1383
  "h-full",
1086
- Y({ variant: t }),
1087
- S("full"),
1384
+ te({ variant: t }),
1385
+ M("full"),
1088
1386
  "transition-all",
1089
1387
  "duration-300",
1090
1388
  "ease-out"
1091
1389
  ),
1092
1390
  style: {
1093
- width: `${F}%`
1391
+ width: `${T}%`
1094
1392
  },
1095
1393
  "aria-hidden": "true"
1096
1394
  }
@@ -1099,16 +1397,57 @@ const he = O("w-full", {
1099
1397
  )
1100
1398
  ] }));
1101
1399
  });
1102
- ye.displayName = "Progress";
1103
- function Ee(f) {
1104
- var m = f, {
1400
+ Re.displayName = "Progress";
1401
+ const _e = {
1402
+ horizontal: "w-full border-t",
1403
+ vertical: "h-full border-l self-stretch"
1404
+ }, Oe = {
1405
+ solid: "border-solid",
1406
+ dashed: "border-dashed",
1407
+ dotted: "border-dotted"
1408
+ }, Be = H(function(s) {
1409
+ var c = s, {
1410
+ orientation: a = "horizontal",
1411
+ variant: n = "solid",
1412
+ className: t = ""
1413
+ } = c, i = h(c, [
1414
+ "orientation",
1415
+ "variant",
1416
+ "className"
1417
+ ]);
1418
+ const f = l(
1419
+ "border-0",
1420
+ "border-line-default",
1421
+ _e[a],
1422
+ Oe[n],
1423
+ t
1424
+ );
1425
+ return a === "vertical" ? /* @__PURE__ */ d(
1426
+ "div",
1427
+ m({
1428
+ className: f,
1429
+ role: "separator",
1430
+ "aria-orientation": "vertical"
1431
+ }, i)
1432
+ ) : /* @__PURE__ */ d(
1433
+ "hr",
1434
+ m({
1435
+ className: f,
1436
+ role: "separator",
1437
+ "aria-orientation": "horizontal"
1438
+ }, i)
1439
+ );
1440
+ });
1441
+ Be.displayName = "Separator";
1442
+ function la(f) {
1443
+ var p = f, {
1105
1444
  variant: r = "text",
1106
1445
  width: a,
1107
- height: i,
1446
+ height: n,
1108
1447
  lines: t = 1,
1109
- className: n = "",
1448
+ className: i = "",
1110
1449
  "aria-label": s
1111
- } = m, c = h(m, [
1450
+ } = p, c = h(p, [
1112
1451
  "variant",
1113
1452
  "width",
1114
1453
  "height",
@@ -1116,48 +1455,48 @@ function Ee(f) {
1116
1455
  "className",
1117
1456
  "aria-label"
1118
1457
  ]);
1119
- const p = [
1458
+ const b = [
1120
1459
  "motion-safe:animate-pulse",
1121
1460
  "bg-surface-muted",
1122
- S("sm")
1461
+ M("sm")
1123
1462
  ], u = {
1124
1463
  text: "h-4",
1125
1464
  card: "h-32",
1126
1465
  list: "h-12",
1127
- circle: S("full")
1128
- }, x = d(...p, u[r], n), y = {};
1129
- a && (y.width = a), i && (y.height = i);
1130
- const N = s || `Loading ${r} content`;
1131
- return r === "text" && t > 1 ? /* @__PURE__ */ o(
1466
+ circle: M("full")
1467
+ }, x = l(...b, u[r], i), g = {};
1468
+ a && (g.width = a), n && (g.height = n);
1469
+ const y = s || `Loading ${r} content`;
1470
+ return r === "text" && t > 1 ? /* @__PURE__ */ d(
1132
1471
  "div",
1133
- k(b({
1134
- className: l("sm", "space-y"),
1472
+ v(m({
1473
+ className: o("sm", "space-y"),
1135
1474
  role: "status",
1136
1475
  "aria-busy": "true",
1137
- "aria-label": N
1476
+ "aria-label": y
1138
1477
  }, c), {
1139
- children: Array.from({ length: t }).map((F, j) => /* @__PURE__ */ o(
1478
+ children: Array.from({ length: t }).map((T, z) => /* @__PURE__ */ d(
1140
1479
  "div",
1141
1480
  {
1142
1481
  className: x,
1143
- style: j === t - 1 ? { width: "75%" } : y,
1482
+ style: z === t - 1 ? { width: "75%" } : g,
1144
1483
  "aria-hidden": "true"
1145
1484
  },
1146
- j
1485
+ z
1147
1486
  ))
1148
1487
  })
1149
- ) : /* @__PURE__ */ o(
1488
+ ) : /* @__PURE__ */ d(
1150
1489
  "div",
1151
- b({
1490
+ m({
1152
1491
  className: x,
1153
- style: y,
1492
+ style: g,
1154
1493
  role: "status",
1155
1494
  "aria-busy": "true",
1156
- "aria-label": N
1495
+ "aria-label": y
1157
1496
  }, c)
1158
1497
  );
1159
1498
  }
1160
- const we = O("motion-safe:animate-spin", {
1499
+ const He = R("motion-safe:animate-spin", {
1161
1500
  variants: {
1162
1501
  size: {
1163
1502
  sm: "h-4 w-4",
@@ -1174,40 +1513,40 @@ const we = O("motion-safe:animate-spin", {
1174
1513
  size: "md",
1175
1514
  variant: "primary"
1176
1515
  }
1177
- }), ve = re(function(c) {
1516
+ }), Pe = H(function(c) {
1178
1517
  var f = c, {
1179
1518
  size: a = "md",
1180
- variant: i = "primary",
1519
+ variant: n = "primary",
1181
1520
  label: t,
1182
- className: n = ""
1521
+ className: i = ""
1183
1522
  } = f, s = h(f, [
1184
1523
  "size",
1185
1524
  "variant",
1186
1525
  "label",
1187
1526
  "className"
1188
1527
  ]);
1189
- return /* @__PURE__ */ T(
1528
+ return /* @__PURE__ */ C(
1190
1529
  "div",
1191
- k(b({
1192
- className: d("inline-flex", "items-center", n),
1530
+ v(m({
1531
+ className: l("inline-flex", "items-center", i),
1193
1532
  role: "status",
1194
1533
  "aria-label": t || "Loading",
1195
1534
  "aria-live": "polite"
1196
1535
  }, s), {
1197
1536
  children: [
1198
- /* @__PURE__ */ o(
1199
- se,
1537
+ /* @__PURE__ */ d(
1538
+ me,
1200
1539
  {
1201
- className: d(we({ size: a, variant: i })),
1540
+ className: l(He({ size: a, variant: n })),
1202
1541
  "aria-hidden": "true"
1203
1542
  }
1204
1543
  ),
1205
- t && /* @__PURE__ */ o(
1544
+ t && /* @__PURE__ */ d(
1206
1545
  "span",
1207
1546
  {
1208
- className: d(
1209
- l("sm", "ml"),
1210
- C("bodySmall"),
1547
+ className: l(
1548
+ o("sm", "ml"),
1549
+ L("bodySmall"),
1211
1550
  "text-fg-secondary",
1212
1551
  "sr-only"
1213
1552
  ),
@@ -1218,8 +1557,8 @@ const we = O("motion-safe:animate-spin", {
1218
1557
  })
1219
1558
  );
1220
1559
  });
1221
- ve.displayName = "Spinner";
1222
- const ke = {
1560
+ Pe.displayName = "Spinner";
1561
+ const Ue = {
1223
1562
  primary: {
1224
1563
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1225
1564
  light: "text-indigo-400",
@@ -1271,13 +1610,13 @@ const ke = {
1271
1610
  contrast: "text-fg-inverse"
1272
1611
  }
1273
1612
  };
1274
- function $e(p, m) {
1275
- var u = p, {
1613
+ function qe(b, p) {
1614
+ var u = b, {
1276
1615
  variant: r = "paragraph",
1277
1616
  bold: a,
1278
- italic: i,
1617
+ italic: n,
1279
1618
  className: t,
1280
- as: n,
1619
+ as: i,
1281
1620
  colorRole: s = "neutral",
1282
1621
  colorShade: c = "dark"
1283
1622
  } = u, f = h(u, [
@@ -1290,40 +1629,40 @@ function $e(p, m) {
1290
1629
  "colorShade"
1291
1630
  ]);
1292
1631
  const x = [];
1293
- let y;
1294
- if (n)
1295
- y = n;
1632
+ let g;
1633
+ if (i)
1634
+ g = i;
1296
1635
  else
1297
1636
  switch (r) {
1298
1637
  case "heading":
1299
- y = "h2";
1638
+ g = "h2";
1300
1639
  break;
1301
1640
  case "list":
1302
- y = "li";
1641
+ g = "li";
1303
1642
  break;
1304
1643
  default:
1305
- y = "p";
1644
+ g = "p";
1306
1645
  break;
1307
1646
  }
1308
- return r === "heading" ? x.push(I("h2")) : r === "body" || r === "paragraph" ? x.push(I("body")) : r === "bodySmall" ? x.push(I("bodySmall")) : r === "bodyLarge" ? x.push(I("bodyLarge")) : r === "caption" ? x.push(I("caption")) : r === "label" ? x.push(I("label")) : x.push(I("body")), a && x.push("font-bold"), i && x.push("italic"), x.push(ke[s][c]), /* @__PURE__ */ o(y, b({ ref: m, className: d(...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(Ue[s][c]), /* @__PURE__ */ d(g, m({ ref: p, className: l(...x, t) }, f));
1309
1648
  }
1310
- const Ve = H($e), Ne = {
1649
+ const oa = j(qe), Ke = {
1311
1650
  sm: "max-w-screen-sm",
1312
1651
  md: "max-w-screen-md",
1313
1652
  lg: "max-w-screen-lg",
1314
1653
  xl: "max-w-screen-xl",
1315
1654
  "2xl": "max-w-screen-2xl",
1316
1655
  full: "max-w-full"
1317
- }, Te = Q.forwardRef(
1318
- (m, f) => {
1319
- var p = m, {
1656
+ }, Xe = re.forwardRef(
1657
+ (p, f) => {
1658
+ var b = p, {
1320
1659
  className: r,
1321
1660
  maxWidth: a = "lg",
1322
- paddingX: i = "base",
1661
+ paddingX: n = "base",
1323
1662
  paddingY: t = "base",
1324
- center: n = !0,
1663
+ center: i = !0,
1325
1664
  children: s
1326
- } = p, c = h(p, [
1665
+ } = b, c = h(b, [
1327
1666
  "className",
1328
1667
  "maxWidth",
1329
1668
  "paddingX",
@@ -1331,16 +1670,16 @@ const Ve = H($e), Ne = {
1331
1670
  "center",
1332
1671
  "children"
1333
1672
  ]);
1334
- return /* @__PURE__ */ o(
1673
+ return /* @__PURE__ */ d(
1335
1674
  "div",
1336
- k(b({
1675
+ v(m({
1337
1676
  ref: f,
1338
- className: d(
1677
+ className: l(
1339
1678
  "w-full",
1340
- Ne[a],
1341
- l(i, "px"),
1342
- l(t, "py"),
1343
- n && "mx-auto",
1679
+ Ke[a],
1680
+ o(n, "px"),
1681
+ o(t, "py"),
1682
+ i && "mx-auto",
1344
1683
  r
1345
1684
  )
1346
1685
  }, c), {
@@ -1349,17 +1688,17 @@ const Ve = H($e), Ne = {
1349
1688
  );
1350
1689
  }
1351
1690
  );
1352
- Te.displayName = "Container";
1353
- const Me = Q.forwardRef(
1354
- (m, f) => {
1355
- var p = m, {
1691
+ Xe.displayName = "Container";
1692
+ const Ye = re.forwardRef(
1693
+ (p, f) => {
1694
+ var b = p, {
1356
1695
  className: r,
1357
1696
  spacing: a = "base",
1358
- align: i = "stretch",
1697
+ align: n = "stretch",
1359
1698
  justify: t = "start",
1360
- direction: n = "column",
1699
+ direction: i = "column",
1361
1700
  children: s
1362
- } = p, c = h(p, [
1701
+ } = b, c = h(b, [
1363
1702
  "className",
1364
1703
  "spacing",
1365
1704
  "align",
@@ -1367,12 +1706,12 @@ const Me = Q.forwardRef(
1367
1706
  "direction",
1368
1707
  "children"
1369
1708
  ]);
1370
- const u = n === "column" ? l(a, "gap-y") : l(a, "gap-x"), x = {
1709
+ const u = i === "column" ? o(a, "gap-y") : o(a, "gap-x"), x = {
1371
1710
  start: "items-start",
1372
1711
  center: "items-center",
1373
1712
  end: "items-end",
1374
1713
  stretch: "items-stretch"
1375
- }, y = {
1714
+ }, g = {
1376
1715
  start: "justify-start",
1377
1716
  center: "justify-center",
1378
1717
  end: "justify-end",
@@ -1380,16 +1719,16 @@ const Me = Q.forwardRef(
1380
1719
  around: "justify-around",
1381
1720
  evenly: "justify-evenly"
1382
1721
  };
1383
- return /* @__PURE__ */ o(
1722
+ return /* @__PURE__ */ d(
1384
1723
  "div",
1385
- k(b({
1724
+ v(m({
1386
1725
  ref: f,
1387
- className: d(
1726
+ className: l(
1388
1727
  "flex",
1389
- n === "column" ? "flex-col" : "flex-row",
1728
+ i === "column" ? "flex-col" : "flex-row",
1390
1729
  u,
1391
- x[i],
1392
- y[t],
1730
+ x[n],
1731
+ g[t],
1393
1732
  r
1394
1733
  )
1395
1734
  }, c), {
@@ -1398,46 +1737,46 @@ const Me = Q.forwardRef(
1398
1737
  );
1399
1738
  }
1400
1739
  );
1401
- Me.displayName = "Stack";
1402
- const Se = H(
1403
- function({ option: a, isHighlighted: i, onSelect: t }, n) {
1740
+ Ye.displayName = "Stack";
1741
+ const Ze = j(
1742
+ function({ option: a, isHighlighted: n, onSelect: t }, i) {
1404
1743
  const s = () => {
1405
1744
  a.disabled || t(a);
1406
1745
  };
1407
- return /* @__PURE__ */ T(
1746
+ return /* @__PURE__ */ C(
1408
1747
  "div",
1409
1748
  {
1410
- ref: n,
1749
+ ref: i,
1411
1750
  role: "option",
1412
- "aria-selected": i,
1751
+ "aria-selected": n,
1413
1752
  "aria-disabled": a.disabled,
1414
1753
  onClick: s,
1415
1754
  className: `
1416
1755
  flex
1417
1756
  items-center
1418
- ${l("sm", "gap")}
1419
- ${l("sm", "px")}
1420
- ${l("sm", "py")}
1757
+ ${o("sm", "gap")}
1758
+ ${o("sm", "px")}
1759
+ ${o("sm", "py")}
1421
1760
  text-sm
1422
1761
  cursor-pointer
1423
1762
  transition-colors
1424
- ${i ? "bg-surface-active" : ""}
1763
+ ${n ? "bg-surface-active" : ""}
1425
1764
  ${a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover"}
1426
1765
  `,
1427
1766
  children: [
1428
- a.icon && /* @__PURE__ */ o("span", { className: "flex-shrink-0", children: a.icon }),
1429
- /* @__PURE__ */ o("span", { className: "flex-1", children: a.label })
1767
+ a.icon && /* @__PURE__ */ d("span", { className: "flex-shrink-0", children: a.icon }),
1768
+ /* @__PURE__ */ d("span", { className: "flex-1", children: a.label })
1430
1769
  ]
1431
1770
  }
1432
1771
  );
1433
1772
  }
1434
1773
  );
1435
- Se.displayName = "AutocompleteOption";
1436
- function He(n) {
1437
- var s = n, {
1774
+ Ze.displayName = "AutocompleteOption";
1775
+ function da(i) {
1776
+ var s = i, {
1438
1777
  items: r,
1439
1778
  separator: a = "/",
1440
- className: i = ""
1779
+ className: n = ""
1441
1780
  } = s, t = h(s, [
1442
1781
  "items",
1443
1782
  "separator",
@@ -1446,167 +1785,235 @@ function He(n) {
1446
1785
  const c = [
1447
1786
  "flex",
1448
1787
  "items-center",
1449
- l("sm", "space-x"),
1450
- C("bodySmall")
1451
- ], f = d(...c, i);
1452
- return /* @__PURE__ */ o("nav", k(b({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ o(
1788
+ o("sm", "space-x"),
1789
+ L("bodySmall")
1790
+ ], f = l(...c, n);
1791
+ return /* @__PURE__ */ d("nav", v(m({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ d(
1453
1792
  "ol",
1454
1793
  {
1455
- className: d("flex", "items-center", l("sm", "space-x")),
1456
- children: r.map((m, p) => {
1457
- const u = p === r.length - 1;
1458
- return /* @__PURE__ */ T("li", { className: "flex items-center", children: [
1459
- p > 0 && /* @__PURE__ */ o(
1794
+ className: l("flex", "items-center", o("sm", "space-x")),
1795
+ children: r.map((p, b) => {
1796
+ const u = b === r.length - 1;
1797
+ return /* @__PURE__ */ C("li", { className: "flex items-center", children: [
1798
+ b > 0 && /* @__PURE__ */ d(
1460
1799
  "span",
1461
1800
  {
1462
- className: d(
1463
- l("sm", "mx"),
1801
+ className: l(
1802
+ o("sm", "mx"),
1464
1803
  "text-fg-tertiary"
1465
1804
  ),
1466
1805
  "aria-hidden": "true",
1467
1806
  children: a
1468
1807
  }
1469
1808
  ),
1470
- u ? /* @__PURE__ */ o(
1809
+ u ? /* @__PURE__ */ d(
1471
1810
  "span",
1472
1811
  {
1473
- className: d(
1812
+ className: l(
1474
1813
  "text-fg-primary",
1475
- R("label")
1814
+ B("label")
1476
1815
  ),
1477
1816
  "aria-current": "page",
1478
- children: m.label
1817
+ children: p.label
1479
1818
  }
1480
- ) : m.href ? /* @__PURE__ */ o(
1819
+ ) : p.href ? /* @__PURE__ */ d(
1481
1820
  "a",
1482
1821
  {
1483
- href: m.href,
1484
- className: d(
1822
+ href: p.href,
1823
+ className: l(
1485
1824
  "inline-flex",
1486
1825
  "items-center",
1487
- l("xs", "px"),
1488
- l("xs", "pt"),
1826
+ o("xs", "px"),
1827
+ o("xs", "pt"),
1489
1828
  "border-b-2",
1490
1829
  "border-transparent",
1491
- C("bodySmall"),
1492
- R("label"),
1830
+ L("bodySmall"),
1831
+ B("label"),
1493
1832
  "transition-colors",
1494
1833
  "text-fg-secondary",
1495
1834
  "hover:border-line-emphasis",
1496
1835
  "hover:text-fg-primary"
1497
1836
  ),
1498
- children: m.label
1837
+ children: p.label
1499
1838
  }
1500
- ) : /* @__PURE__ */ o("span", { className: "text-fg-secondary", children: m.label })
1501
- ] }, p);
1839
+ ) : /* @__PURE__ */ d("span", { className: "text-fg-secondary", children: p.label })
1840
+ ] }, b);
1502
1841
  })
1503
1842
  }
1504
1843
  ) }));
1505
1844
  }
1506
- function Oe(t) {
1507
- var n = t, {
1845
+ const Ge = H(function(b) {
1846
+ var u = b, {
1847
+ variant: a = "default",
1848
+ padding: n = "medium",
1849
+ className: t = "",
1850
+ onClick: i,
1851
+ "aria-label": s,
1852
+ "aria-labelledby": c,
1853
+ children: f
1854
+ } = u, p = h(u, [
1855
+ "variant",
1856
+ "padding",
1857
+ "className",
1858
+ "onClick",
1859
+ "aria-label",
1860
+ "aria-labelledby",
1861
+ "children"
1862
+ ]);
1863
+ const x = R(
1864
+ l(
1865
+ "bg-surface-base",
1866
+ M("lg"),
1867
+ "border",
1868
+ "border-line-default",
1869
+ X("sm")
1870
+ ),
1871
+ {
1872
+ variants: {
1873
+ variant: {
1874
+ default: "",
1875
+ hover: l(
1876
+ `hover:${X("md")}`,
1877
+ "transition-shadow",
1878
+ "cursor-pointer"
1879
+ ),
1880
+ selected: l("border-line-brand", X("md"))
1881
+ },
1882
+ padding: {
1883
+ none: "",
1884
+ small: o("xs", "p"),
1885
+ medium: o("base", "p"),
1886
+ large: o("lg", "p")
1887
+ }
1888
+ },
1889
+ defaultVariants: {
1890
+ variant: "default",
1891
+ padding: "medium"
1892
+ }
1893
+ }
1894
+ ), g = i !== void 0, y = g ? "button" : void 0, T = g ? 0 : void 0, z = l(x({ variant: a, padding: n }), t);
1895
+ return /* @__PURE__ */ d(
1896
+ "div",
1897
+ v(m({
1898
+ className: z,
1899
+ role: y,
1900
+ tabIndex: T,
1901
+ onClick: i,
1902
+ onKeyDown: (_) => {
1903
+ g && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), i == null || i());
1904
+ },
1905
+ "aria-label": s,
1906
+ "aria-labelledby": c
1907
+ }, p), {
1908
+ children: f
1909
+ })
1910
+ );
1911
+ });
1912
+ Ge.displayName = "Card";
1913
+ function ca(t) {
1914
+ var i = t, {
1508
1915
  children: r,
1509
1916
  className: a = ""
1510
- } = n, i = h(n, [
1917
+ } = i, n = h(i, [
1511
1918
  "children",
1512
1919
  "className"
1513
1920
  ]);
1514
- return /* @__PURE__ */ o(
1921
+ return /* @__PURE__ */ d(
1515
1922
  "div",
1516
- k(b({
1517
- className: `flex flex-col ${l("1.5", "space-y")} ${l("lg", "p")} ${l("base", "pb")} ${a}`
1518
- }, i), {
1923
+ v(m({
1924
+ className: `flex flex-col ${o("1.5", "space-y")} ${o("lg", "p")} ${o("base", "pb")} ${a}`
1925
+ }, n), {
1519
1926
  children: r
1520
1927
  })
1521
1928
  );
1522
1929
  }
1523
- function Be(t) {
1524
- var n = t, {
1930
+ function fa(t) {
1931
+ var i = t, {
1525
1932
  children: r,
1526
1933
  className: a = ""
1527
- } = n, i = h(n, [
1934
+ } = i, n = h(i, [
1528
1935
  "children",
1529
1936
  "className"
1530
1937
  ]);
1531
- return /* @__PURE__ */ o(
1938
+ return /* @__PURE__ */ d(
1532
1939
  "div",
1533
- k(b({
1534
- className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${l("sm", "space-x")} ${l("lg", "p")} ${l("base", "pt")} ${a}`
1535
- }, i), {
1940
+ v(m({
1941
+ className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${o("sm", "space-x")} ${o("lg", "p")} ${o("base", "pt")} ${a}`
1942
+ }, n), {
1536
1943
  children: r
1537
1944
  })
1538
1945
  );
1539
1946
  }
1540
- function Re(t) {
1541
- var n = t, {
1947
+ function pa(t) {
1948
+ var i = t, {
1542
1949
  children: r,
1543
1950
  className: a = ""
1544
- } = n, i = h(n, [
1951
+ } = i, n = h(i, [
1545
1952
  "children",
1546
1953
  "className"
1547
1954
  ]);
1548
- return /* @__PURE__ */ o(
1955
+ return /* @__PURE__ */ d(
1549
1956
  "div",
1550
- k(b({
1957
+ v(m({
1551
1958
  className: `
1552
- ${l("lg", "p")}
1959
+ ${o("lg", "p")}
1553
1960
  border-b
1554
1961
  border-line-default
1555
1962
  ${a}
1556
1963
  `
1557
- }, i), {
1964
+ }, n), {
1558
1965
  children: r
1559
1966
  })
1560
1967
  );
1561
1968
  }
1562
- function Ue(t) {
1563
- var n = t, {
1969
+ function ua(t) {
1970
+ var i = t, {
1564
1971
  children: r,
1565
1972
  className: a = ""
1566
- } = n, i = h(n, [
1973
+ } = i, n = h(i, [
1567
1974
  "children",
1568
1975
  "className"
1569
1976
  ]);
1570
- return /* @__PURE__ */ o(
1977
+ return /* @__PURE__ */ d(
1571
1978
  "div",
1572
- k(b({
1979
+ v(m({
1573
1980
  className: `
1574
- ${l("lg", "p")}
1981
+ ${o("lg", "p")}
1575
1982
  border-t
1576
1983
  border-line-default
1577
1984
  flex
1578
1985
  justify-end
1579
- ${l("sm", "gap")}
1986
+ ${o("sm", "gap")}
1580
1987
  ${a}
1581
1988
  `
1582
- }, i), {
1989
+ }, n), {
1583
1990
  children: r
1584
1991
  })
1585
1992
  );
1586
1993
  }
1587
- function qe({ children: r, className: a }) {
1588
- return /* @__PURE__ */ o(
1994
+ function ma({ children: r, className: a }) {
1995
+ return /* @__PURE__ */ d(
1589
1996
  "div",
1590
1997
  {
1591
- className: d(
1998
+ className: l(
1592
1999
  "flex-shrink-0 flex items-center",
1593
- l("sm", "gap"),
2000
+ o("sm", "gap"),
1594
2001
  a
1595
2002
  ),
1596
2003
  children: r
1597
2004
  }
1598
2005
  );
1599
2006
  }
1600
- function Pe({
2007
+ function ba({
1601
2008
  children: r,
1602
2009
  className: a
1603
2010
  }) {
1604
- return /* @__PURE__ */ o(
2011
+ return /* @__PURE__ */ d(
1605
2012
  "nav",
1606
2013
  {
1607
- className: d(
2014
+ className: l(
1608
2015
  "flex-1 flex items-center justify-center",
1609
- l("base", "gap"),
2016
+ o("base", "gap"),
1610
2017
  "hidden md:flex",
1611
2018
  // Hidden on mobile, visible on desktop
1612
2019
  a
@@ -1616,48 +2023,48 @@ function Pe({
1616
2023
  }
1617
2024
  );
1618
2025
  }
1619
- function _e(i) {
1620
- var t = i, {
2026
+ function ga(n) {
2027
+ var t = n, {
1621
2028
  className: r = ""
1622
2029
  } = t, a = h(t, [
1623
2030
  "className"
1624
2031
  ]);
1625
- return /* @__PURE__ */ o(
2032
+ return /* @__PURE__ */ d(
1626
2033
  "div",
1627
- b({
2034
+ m({
1628
2035
  role: "separator",
1629
2036
  className: `
1630
2037
  h-px
1631
2038
  bg-line-default
1632
- ${l("sm", "my")}
2039
+ ${o("sm", "my")}
1633
2040
  ${r}
1634
2041
  `
1635
2042
  }, a)
1636
2043
  );
1637
2044
  }
1638
- function Ke(t) {
1639
- var n = t, {
2045
+ function xa(t) {
2046
+ var i = t, {
1640
2047
  orientation: r = "horizontal",
1641
2048
  className: a = ""
1642
- } = n, i = h(n, [
2049
+ } = i, n = h(i, [
1643
2050
  "orientation",
1644
2051
  "className"
1645
2052
  ]);
1646
- return r === "vertical" ? /* @__PURE__ */ o(
2053
+ return r === "vertical" ? /* @__PURE__ */ d(
1647
2054
  "div",
1648
- b({
1649
- className: d("w-px", "h-6", "bg-line-default", "mx-auto", a),
2055
+ m({
2056
+ className: l("w-px", "h-6", "bg-line-default", "mx-auto", a),
1650
2057
  role: "separator",
1651
2058
  "aria-orientation": "vertical"
1652
- }, i)
1653
- ) : /* @__PURE__ */ o(
2059
+ }, n)
2060
+ ) : /* @__PURE__ */ d(
1654
2061
  "div",
1655
- b({
1656
- className: d(
2062
+ m({
2063
+ className: l(
1657
2064
  "w-full",
1658
2065
  "h-px",
1659
2066
  "bg-line-default",
1660
- l("sm", "my"),
2067
+ o("sm", "my"),
1661
2068
  // my-2 (8px) para consistência com gap-2 usado em outros lugares
1662
2069
  "flex-shrink-0",
1663
2070
  // Prevenir que separator encolha
@@ -1670,127 +2077,127 @@ function Ke(t) {
1670
2077
  willChange: "auto",
1671
2078
  transform: "none"
1672
2079
  }
1673
- }, i)
2080
+ }, n)
1674
2081
  );
1675
2082
  }
1676
- function Xe(n) {
1677
- var s = n, { column: r, row: a, className: i = "" } = s, t = h(s, ["column", "row", "className"]);
2083
+ function ya(i) {
2084
+ var s = i, { column: r, row: a, className: n = "" } = s, t = h(s, ["column", "row", "className"]);
1678
2085
  const c = r.key in a ? a[r.key] : void 0;
1679
- return /* @__PURE__ */ o(
2086
+ return /* @__PURE__ */ d(
1680
2087
  "td",
1681
- k(b({
1682
- className: `${l("lg", "px")} ${l("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${i}`
2088
+ v(m({
2089
+ className: `${o("lg", "px")} ${o("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
1683
2090
  }, t), {
1684
2091
  children: r.render ? r.render(c, a) : String(c != null ? c : "")
1685
2092
  })
1686
2093
  );
1687
2094
  }
1688
- function Ge({
2095
+ function ha({
1689
2096
  items: r,
1690
2097
  orientation: a = "vertical",
1691
- className: i = ""
2098
+ className: n = ""
1692
2099
  }) {
1693
- return a === "horizontal" ? /* @__PURE__ */ o("div", { className: `flex items-start ${i}`, children: r.map((t, n) => {
1694
- const s = t.status || (n === 0 ? "active" : n < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = n === r.length - 1;
1695
- return /* @__PURE__ */ o("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center flex-1", children: [
1696
- /* @__PURE__ */ o(
2100
+ return a === "horizontal" ? /* @__PURE__ */ d("div", { className: `flex items-start ${n}`, children: r.map((t, i) => {
2101
+ const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
2102
+ return /* @__PURE__ */ d("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center flex-1", children: [
2103
+ /* @__PURE__ */ d(
1697
2104
  "div",
1698
- k(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
2105
+ v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
1699
2106
  className: `
1700
2107
  flex
1701
2108
  items-center
1702
2109
  justify-center
1703
2110
  w-10
1704
2111
  h-10
1705
- ${S("full")}
2112
+ ${M("full")}
1706
2113
  border-2
1707
2114
  ${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"}
1708
2115
  `,
1709
- children: t.icon || (s === "completed" ? /* @__PURE__ */ o(G, { className: "h-4 w-4" }) : n + 1)
2116
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
1710
2117
  })
1711
2118
  ),
1712
- !c && /* @__PURE__ */ o(
2119
+ !c && /* @__PURE__ */ d(
1713
2120
  "div",
1714
2121
  {
1715
2122
  className: `
1716
2123
  w-full
1717
2124
  h-0.5
1718
- ${l("sm", "mt")}
2125
+ ${o("sm", "mt")}
1719
2126
  ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1720
2127
  `
1721
2128
  }
1722
2129
  ),
1723
- /* @__PURE__ */ T(
2130
+ /* @__PURE__ */ C(
1724
2131
  "div",
1725
2132
  {
1726
- className: `${l("base", "mt")} text-center ${l("base", "px")}`,
2133
+ className: `${o("base", "mt")} text-center ${o("base", "px")}`,
1727
2134
  children: [
1728
- t.timestamp && /* @__PURE__ */ o(
2135
+ t.timestamp && /* @__PURE__ */ d(
1729
2136
  "p",
1730
2137
  {
1731
- className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
2138
+ className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
1732
2139
  children: t.timestamp
1733
2140
  }
1734
2141
  ),
1735
- /* @__PURE__ */ o("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
1736
- t.description && /* @__PURE__ */ o(
2142
+ /* @__PURE__ */ d("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2143
+ t.description && /* @__PURE__ */ d(
1737
2144
  "p",
1738
2145
  {
1739
- className: `text-xs text-fg-secondary ${l("xs", "mt")}`,
2146
+ className: `text-xs text-fg-secondary ${o("xs", "mt")}`,
1740
2147
  children: t.description
1741
2148
  }
1742
2149
  ),
1743
- t.content && /* @__PURE__ */ o("div", { className: l("sm", "mt"), children: t.content })
2150
+ t.content && /* @__PURE__ */ d("div", { className: o("sm", "mt"), children: t.content })
1744
2151
  ]
1745
2152
  }
1746
2153
  )
1747
2154
  ] }) }, t.id);
1748
- }) }) : /* @__PURE__ */ o("div", { className: `${l("none", "space-y")} ${i}`, children: r.map((t, n) => {
1749
- const s = t.status || (n === 0 ? "active" : n < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = n === r.length - 1;
1750
- return /* @__PURE__ */ T(
2155
+ }) }) : /* @__PURE__ */ d("div", { className: `${o("none", "space-y")} ${n}`, children: r.map((t, i) => {
2156
+ const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
2157
+ return /* @__PURE__ */ C(
1751
2158
  "div",
1752
2159
  {
1753
- className: `flex items-start ${l("base", "gap")}`,
2160
+ className: `flex items-start ${o("base", "gap")}`,
1754
2161
  children: [
1755
- /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
1756
- /* @__PURE__ */ o(
2162
+ /* @__PURE__ */ C("div", { className: "flex flex-col items-center", children: [
2163
+ /* @__PURE__ */ d(
1757
2164
  "div",
1758
- k(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
2165
+ v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
1759
2166
  className: `
1760
2167
  flex
1761
2168
  items-center
1762
2169
  justify-center
1763
2170
  w-10
1764
2171
  h-10
1765
- ${S("full")}
2172
+ ${M("full")}
1766
2173
  border-2
1767
2174
  ${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"}
1768
2175
  `,
1769
- children: t.icon || (s === "completed" ? /* @__PURE__ */ o(G, { className: "h-4 w-4" }) : n + 1)
2176
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
1770
2177
  })
1771
2178
  ),
1772
- !c && /* @__PURE__ */ o(
2179
+ !c && /* @__PURE__ */ d(
1773
2180
  "div",
1774
2181
  {
1775
2182
  className: `
1776
2183
  w-0.5
1777
2184
  flex-1
1778
2185
  min-h-16
1779
- ${l("sm", "mt")}
2186
+ ${o("sm", "mt")}
1780
2187
  ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1781
2188
  `
1782
2189
  }
1783
2190
  )
1784
2191
  ] }),
1785
- /* @__PURE__ */ T("div", { className: `flex-1 ${l("xl", "pb")}`, children: [
1786
- t.timestamp && /* @__PURE__ */ o(
2192
+ /* @__PURE__ */ C("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
2193
+ t.timestamp && /* @__PURE__ */ d(
1787
2194
  "p",
1788
2195
  {
1789
- className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
2196
+ className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
1790
2197
  children: t.timestamp
1791
2198
  }
1792
2199
  ),
1793
- /* @__PURE__ */ o(
2200
+ /* @__PURE__ */ d(
1794
2201
  "h3",
1795
2202
  {
1796
2203
  className: `
@@ -1801,14 +2208,14 @@ function Ge({
1801
2208
  children: t.title
1802
2209
  }
1803
2210
  ),
1804
- t.description && /* @__PURE__ */ o(
2211
+ t.description && /* @__PURE__ */ d(
1805
2212
  "p",
1806
2213
  {
1807
- className: `text-sm text-fg-secondary ${l("xs", "mt")}`,
2214
+ className: `text-sm text-fg-secondary ${o("xs", "mt")}`,
1808
2215
  children: t.description
1809
2216
  }
1810
2217
  ),
1811
- t.content && /* @__PURE__ */ o("div", { className: l("md", "mt"), children: t.content })
2218
+ t.content && /* @__PURE__ */ d("div", { className: o("md", "mt"), children: t.content })
1812
2219
  ] })
1813
2220
  ]
1814
2221
  },
@@ -1817,26 +2224,30 @@ function Ge({
1817
2224
  }) });
1818
2225
  }
1819
2226
  export {
1820
- Se as AutocompleteOption,
1821
- He as Breadcrumb,
1822
- ue as Chip,
1823
- Te as Container,
1824
- Be as DialogFooter,
1825
- Oe as DialogHeader,
1826
- Ue as DrawerFooter,
1827
- Re as DrawerHeader,
1828
- De as ErrorMessage,
1829
- qe as HeaderActions,
1830
- Pe as HeaderNavigation,
1831
- je as Info,
1832
- _e as MenuSeparator,
1833
- Ke as NavbarSeparator,
1834
- ye as Progress,
1835
- Ee as Skeleton,
1836
- ve as Spinner,
1837
- Me as Stack,
1838
- Xe as TableCell,
1839
- Ve as Text,
1840
- Ge as Timeline
2227
+ Ze as AutocompleteOption,
2228
+ ye as Badge,
2229
+ da as Breadcrumb,
2230
+ Ge as Card,
2231
+ Le as Chip,
2232
+ Xe as Container,
2233
+ fa as DialogFooter,
2234
+ ca as DialogHeader,
2235
+ ua as DrawerFooter,
2236
+ pa as DrawerHeader,
2237
+ ia as ErrorMessage,
2238
+ ma as HeaderActions,
2239
+ ba as HeaderNavigation,
2240
+ sa as Info,
2241
+ Ae as Label,
2242
+ ga as MenuSeparator,
2243
+ xa as NavbarSeparator,
2244
+ Re as Progress,
2245
+ Be as Separator,
2246
+ la as Skeleton,
2247
+ Pe as Spinner,
2248
+ Ye as Stack,
2249
+ ya as TableCell,
2250
+ oa as Text,
2251
+ ha as Timeline
1841
2252
  };
1842
2253
  //# sourceMappingURL=index.js.map