@fabio.caffarello/react-design-system 2.1.0 → 3.0.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,32 @@
1
- var J = Object.defineProperty, ee = Object.defineProperties;
2
- var ae = Object.getOwnPropertyDescriptors;
3
- var I = Object.getOwnPropertySymbols;
4
- var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
- var O = (r, a, i) => a in r ? J(r, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[a] = i, u = (r, a) => {
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
6
  for (var i in a || (a = {}))
7
- P.call(a, i) && O(r, i, a[i]);
8
- if (I)
9
- for (var i of I(a))
10
- _.call(a, i) && O(r, i, a[i]);
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]);
11
11
  return r;
12
- }, v = (r, a) => ee(r, ae(a));
13
- var x = (r, a) => {
12
+ }, k = (r, a) => ae(r, te(a));
13
+ var h = (r, a) => {
14
14
  var i = {};
15
15
  for (var t in r)
16
- P.call(r, t) && a.indexOf(t) < 0 && (i[t] = r[t]);
17
- if (r != null && I)
18
- for (var t of I(r))
19
- a.indexOf(t) < 0 && _.call(r, t) && (i[t] = r[t]);
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
20
  return i;
21
21
  };
22
- var K = (r, a, i) => O(r, typeof a != "symbol" ? a + "" : a, i);
23
- import { jsxs as $, jsx as l } from "react/jsx-runtime";
24
- import Y, { forwardRef as V, memo as te } from "react";
25
- import { X as re, AlertCircle as ie, Loader2 as ne, CheckCircle2 as X } from "lucide-react";
26
- import { clsx as se } from "clsx";
27
- import { twMerge as le } from "tailwind-merge";
28
- import { cva as oe } from "class-variance-authority";
29
- class C {
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 {
30
30
  /**
31
31
  * Create a radius token
32
32
  */
@@ -82,20 +82,20 @@ class C {
82
82
  };
83
83
  }
84
84
  }
85
- const ce = {
86
- none: C.create("none"),
87
- sm: C.create("sm"),
88
- md: C.create("md"),
89
- lg: C.create("lg"),
90
- xl: C.create("xl"),
91
- "2xl": C.create("2xl"),
92
- "3xl": C.create("3xl"),
93
- full: C.create("full")
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")
94
94
  };
95
- function T(r) {
96
- return ce[r].tailwind;
95
+ function S(r) {
96
+ return de[r].tailwind;
97
97
  }
98
- class y {
98
+ class w {
99
99
  // 4px base
100
100
  /**
101
101
  * Create a spacing token from scale value
@@ -162,46 +162,46 @@ class y {
162
162
  }[a] || String(a);
163
163
  }
164
164
  }
165
- K(y, "BASE_UNIT", 4);
166
- const de = {
165
+ X(w, "BASE_UNIT", 4);
166
+ const fe = {
167
167
  // Micro spacing (0-14px)
168
- none: y.create(0),
169
- "0.5": y.create(0.5),
168
+ none: w.create(0),
169
+ "0.5": w.create(0.5),
170
170
  // 2px (half-step)
171
- xs: y.create(1),
171
+ xs: w.create(1),
172
172
  // 4px
173
- "1.5": y.create(1.5),
173
+ "1.5": w.create(1.5),
174
174
  // 6px (half-step)
175
- sm: y.create(2),
175
+ sm: w.create(2),
176
176
  // 8px
177
- "2.5": y.create(2.5),
177
+ "2.5": w.create(2.5),
178
178
  // 10px (half-step)
179
- md: y.create(3),
179
+ md: w.create(3),
180
180
  // 12px
181
- "3.5": y.create(3.5),
181
+ "3.5": w.create(3.5),
182
182
  // 14px (half-step)
183
183
  // Standard spacing (16-32px)
184
- base: y.create(4),
184
+ base: w.create(4),
185
185
  // 16px
186
- lg: y.create(6),
186
+ lg: w.create(6),
187
187
  // 24px
188
- xl: y.create(8),
188
+ xl: w.create(8),
189
189
  // 32px
190
190
  // Large spacing (40-64px)
191
- "2xl": y.create(10),
191
+ "2xl": w.create(10),
192
192
  // 40px
193
- "3xl": y.create(12),
193
+ "3xl": w.create(12),
194
194
  // 48px
195
- "4xl": y.create(16),
195
+ "4xl": w.create(16),
196
196
  // 64px
197
197
  // Extra large spacing (80px+)
198
- "5xl": y.create(20),
198
+ "5xl": w.create(20),
199
199
  // 80px
200
- "6xl": y.create(24)
200
+ "6xl": w.create(24)
201
201
  // 96px
202
202
  };
203
- function s(r, a = "p") {
204
- const t = de[r].tailwind;
203
+ function l(r, a = "p") {
204
+ const t = fe[r].tailwind;
205
205
  return `${{
206
206
  p: "p",
207
207
  m: "m",
@@ -224,7 +224,7 @@ function s(r, a = "p") {
224
224
  "space-y": "space-y"
225
225
  }[a]}-${t}`;
226
226
  }
227
- class w {
227
+ class v {
228
228
  /**
229
229
  * Create font size token
230
230
  */
@@ -294,51 +294,51 @@ class w {
294
294
  };
295
295
  }
296
296
  }
297
- w.createFontWeight("light"), w.createFontWeight("normal"), w.createFontWeight("medium"), w.createFontWeight("semibold"), w.createFontWeight("bold");
298
- const B = {
297
+ v.createFontWeight("light"), v.createFontWeight("normal"), v.createFontWeight("medium"), v.createFontWeight("semibold"), v.createFontWeight("bold");
298
+ const U = {
299
299
  // Headings
300
- h1: w.create("4xl", "tight", "bold"),
301
- h2: w.create("3xl", "tight", "bold"),
302
- h3: w.create("2xl", "snug", "semibold"),
303
- h4: w.create("xl", "snug", "semibold"),
304
- h5: w.create("lg", "normal", "medium"),
305
- h6: w.create("base", "normal", "medium"),
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"),
306
306
  // Body text
307
- body: w.create("base", "relaxed", "normal"),
308
- bodySmall: w.create("sm", "relaxed", "normal"),
309
- bodyLarge: w.create("lg", "relaxed", "normal"),
307
+ body: v.create("base", "relaxed", "normal"),
308
+ bodySmall: v.create("sm", "relaxed", "normal"),
309
+ bodyLarge: v.create("lg", "relaxed", "normal"),
310
310
  // UI elements
311
- label: w.create("sm", "normal", "medium"),
312
- caption: w.create("xs", "normal", "normal"),
313
- button: w.create("base", "normal", "medium")
311
+ label: v.create("sm", "normal", "medium"),
312
+ caption: v.create("xs", "normal", "normal"),
313
+ button: v.create("base", "normal", "medium")
314
314
  };
315
- function W(r) {
316
- const a = B[r];
315
+ function I(r) {
316
+ const a = U[r];
317
317
  return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
318
318
  }
319
- function L(r) {
320
- return B[r].fontSize.tailwind;
319
+ function C(r) {
320
+ return U[r].fontSize.tailwind;
321
321
  }
322
- function U(r) {
323
- return B[r].fontWeight.tailwind;
322
+ function R(r) {
323
+ return U[r].fontWeight.tailwind;
324
324
  }
325
325
  function d(...r) {
326
- return le(se(r));
326
+ return oe(le(r));
327
327
  }
328
- const H = (r, a) => {
329
- const i = oe(r, a);
328
+ const O = (r, a) => {
329
+ const i = ce(r, a);
330
330
  return ((t) => {
331
331
  const n = i(t);
332
332
  return d(n);
333
333
  });
334
- }, fe = H(
334
+ }, pe = O(
335
335
  // Base classes
336
336
  d(
337
337
  "inline-flex",
338
338
  "items-center",
339
339
  "font-medium",
340
- T("full"),
341
- s("xs", "gap")
340
+ S("full"),
341
+ l("xs", "gap")
342
342
  ),
343
343
  {
344
344
  variants: {
@@ -364,19 +364,19 @@ const H = (r, a) => {
364
364
  },
365
365
  size: {
366
366
  sm: d(
367
- s("xs", "px"),
368
- s("xs", "py"),
369
- L("caption")
367
+ l("xs", "px"),
368
+ l("xs", "py"),
369
+ C("caption")
370
370
  ),
371
371
  md: d(
372
- s("sm", "px"),
373
- s("xs", "py"),
374
- L("bodySmall")
372
+ l("sm", "px"),
373
+ l("xs", "py"),
374
+ C("bodySmall")
375
375
  ),
376
376
  lg: d(
377
- s("md", "px"),
378
- s("sm", "py"),
379
- L("body")
377
+ l("md", "px"),
378
+ l("sm", "py"),
379
+ C("body")
380
380
  )
381
381
  },
382
382
  selected: {
@@ -420,19 +420,19 @@ const H = (r, a) => {
420
420
  disabled: !1
421
421
  }
422
422
  }
423
- ), pe = V(function(N, h) {
424
- var M = N, {
423
+ ), ue = H(function(N, y) {
424
+ var F = N, {
425
425
  children: a,
426
426
  variant: i = "default",
427
427
  size: t = "md",
428
428
  onRemove: n,
429
- selected: o = !1,
429
+ selected: s = !1,
430
430
  disabled: c = !1,
431
431
  className: f = "",
432
432
  "aria-label": m,
433
433
  onClick: p,
434
- tabIndex: b
435
- } = M, g = x(M, [
434
+ tabIndex: u
435
+ } = F, x = h(F, [
436
436
  "children",
437
437
  "variant",
438
438
  "size",
@@ -444,44 +444,44 @@ const H = (r, a) => {
444
444
  "onClick",
445
445
  "tabIndex"
446
446
  ]);
447
- const R = (() => {
447
+ const q = (() => {
448
448
  if (m) return m;
449
449
  if (typeof a == "string") return a;
450
450
  if (typeof a == "object" && a !== null && "props" in a) {
451
- const S = a.props;
452
- if (S != null && S.children && typeof S.children == "string")
453
- return S.children;
451
+ const M = a.props;
452
+ if (M != null && M.children && typeof M.children == "string")
453
+ return M.children;
454
454
  }
455
- })(), q = p !== void 0, Q = q && !c, Z = (S) => {
456
- c || (S.key === "Enter" || S.key === " ") && (S.preventDefault(), p == null || p());
455
+ })(), P = p !== void 0, Z = P && !c, J = (M) => {
456
+ c || (M.key === "Enter" || M.key === " ") && (M.preventDefault(), p == null || p());
457
457
  };
458
- return /* @__PURE__ */ $(
458
+ return /* @__PURE__ */ T(
459
459
  "div",
460
- v(u({
461
- ref: h,
460
+ k(b({
461
+ ref: y,
462
462
  className: d(
463
- fe({ variant: i, size: t, selected: o, disabled: c }),
464
- n && s("xs", "pr"),
463
+ pe({ variant: i, size: t, selected: s, disabled: c }),
464
+ n && l("xs", "pr"),
465
465
  f
466
466
  ),
467
467
  "aria-disabled": c
468
- }, g), {
468
+ }, x), {
469
469
  children: [
470
- q ? /* @__PURE__ */ l(
470
+ P ? /* @__PURE__ */ o(
471
471
  "button",
472
472
  {
473
473
  type: "button",
474
474
  onClick: c ? void 0 : p,
475
- onKeyDown: Z,
475
+ onKeyDown: J,
476
476
  disabled: c,
477
- "aria-pressed": o ? !0 : void 0,
478
- "aria-label": m || R,
479
- tabIndex: b !== void 0 ? b : Q ? 0 : void 0,
477
+ "aria-pressed": s ? !0 : void 0,
478
+ "aria-label": m || q,
479
+ tabIndex: u !== void 0 ? u : Z ? 0 : void 0,
480
480
  className: d(
481
481
  "flex-1",
482
482
  "bg-transparent",
483
483
  "border-0",
484
- s("none", "p"),
484
+ l("none", "p"),
485
485
  "text-inherit",
486
486
  "text-left",
487
487
  "cursor-pointer",
@@ -489,91 +489,129 @@ const H = (r, a) => {
489
489
  "focus:ring-2",
490
490
  "focus:ring-line-focus",
491
491
  "focus:ring-offset-2",
492
- T("full")
492
+ S("full")
493
493
  ),
494
494
  children: a
495
495
  }
496
- ) : /* @__PURE__ */ l("span", { children: a }),
497
- n && !c && /* @__PURE__ */ l(
496
+ ) : /* @__PURE__ */ o("span", { children: a }),
497
+ n && !c && /* @__PURE__ */ o(
498
498
  "button",
499
499
  {
500
500
  type: "button",
501
- onClick: (S) => {
502
- S.stopPropagation(), n();
501
+ onClick: (M) => {
502
+ M.stopPropagation(), n();
503
503
  },
504
504
  className: d(
505
- s("xs", "ml"),
505
+ l("xs", "ml"),
506
506
  "hover:bg-tint-hover",
507
- T("full"),
508
- s("xs", "p"),
507
+ S("full"),
508
+ l("xs", "p"),
509
509
  "transition-colors",
510
510
  "focus:outline-none",
511
511
  "focus:ring-2",
512
512
  "focus:ring-line-focus",
513
513
  "focus:ring-offset-1"
514
514
  ),
515
- "aria-label": `Remove ${R || "chip"}`,
516
- children: /* @__PURE__ */ l(re, { className: "h-3 w-3", "aria-hidden": "true" })
515
+ "aria-label": `Remove ${q || "chip"}`,
516
+ children: /* @__PURE__ */ o(ie, { className: "h-3 w-3", "aria-hidden": "true" })
517
517
  }
518
518
  )
519
519
  ]
520
520
  })
521
521
  );
522
522
  });
523
- pe.displayName = "Chip";
524
- function Ae(n) {
525
- var o = n, {
523
+ ue.displayName = "Chip";
524
+ function De(n) {
525
+ var s = n, {
526
526
  message: r,
527
527
  id: a,
528
528
  className: i = ""
529
- } = o, t = x(o, [
529
+ } = s, t = h(s, [
530
530
  "message",
531
531
  "id",
532
532
  "className"
533
533
  ]);
534
534
  const c = [
535
- s("xs", "mt"),
536
- L("bodySmall"),
535
+ l("xs", "mt"),
536
+ C("bodySmall"),
537
537
  "text-fg-error",
538
538
  "flex",
539
539
  "items-center",
540
- s("xs", "gap")
540
+ l("xs", "gap")
541
541
  ], f = d(...c, i);
542
- return /* @__PURE__ */ $("div", v(u({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
543
- /* @__PURE__ */ l(ie, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
544
- /* @__PURE__ */ l("span", { children: r })
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 })
545
545
  ] }));
546
546
  }
547
- function We(t) {
547
+ function je(t) {
548
548
  var n = t, {
549
549
  variant: r = "info",
550
550
  className: a
551
- } = n, i = x(n, [
551
+ } = n, i = h(n, [
552
552
  "variant",
553
553
  "className"
554
554
  ]);
555
- const o = {
555
+ const s = {
556
556
  warning: d("bg-warning-bg", "text-warning-dark", "border-warning"),
557
557
  error: d("bg-error-bg", "text-error-dark", "border-error"),
558
558
  info: d("bg-info-bg", "text-info-dark", "border-info")
559
559
  };
560
- return /* @__PURE__ */ l(
560
+ return /* @__PURE__ */ o(
561
561
  "div",
562
- u({
562
+ b({
563
563
  role: "alert",
564
564
  className: d(
565
565
  "border",
566
- s("base", "px"),
567
- s("sm", "py"),
568
- T("lg"),
569
- o[r],
566
+ l("base", "px"),
567
+ l("sm", "py"),
568
+ S("lg"),
569
+ s[r],
570
570
  a
571
571
  )
572
572
  }, i)
573
573
  );
574
574
  }
575
+ function g(r, a, i) {
576
+ const t = me(r), n = be(r);
577
+ return {
578
+ hex: r,
579
+ rgb: t,
580
+ hsl: n,
581
+ cssVar: `var(--color-${a}-${i})`,
582
+ tailwind: `${a}-${i}`
583
+ };
584
+ }
585
+ function me(r) {
586
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
587
+ return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
588
+ }
589
+ function be(r) {
590
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
591
+ 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;
595
+ if (s !== c) {
596
+ 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;
600
+ break;
601
+ case t:
602
+ f = ((n - i) / u + 2) / 6;
603
+ break;
604
+ case n:
605
+ f = ((i - t) / u + 4) / 6;
606
+ break;
607
+ }
608
+ }
609
+ return `${Math.round(f * 360)}, ${Math.round(m * 100)}%, ${Math.round(p * 100)}%`;
610
+ }
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);
575
613
  function e(r, a, i) {
576
- const t = ue(r), n = me(r);
614
+ const t = ge(r), n = xe(r);
577
615
  return {
578
616
  hex: r,
579
617
  rgb: t,
@@ -582,27 +620,27 @@ function e(r, a, i) {
582
620
  tailwind: `${a}-${i}`
583
621
  };
584
622
  }
585
- function ue(r) {
623
+ function ge(r) {
586
624
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
587
625
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
588
626
  }
589
- function me(r) {
627
+ function xe(r) {
590
628
  const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
591
629
  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, o = Math.max(i, t, n), c = Math.min(i, t, n);
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);
593
631
  let f = 0, m = 0;
594
- const p = (o + c) / 2;
595
- if (o !== c) {
596
- const b = o - c;
597
- switch (m = p > 0.5 ? b / (2 - o - c) : b / (o + c), o) {
632
+ const p = (s + c) / 2;
633
+ if (s !== c) {
634
+ const u = s - c;
635
+ switch (m = p > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
598
636
  case i:
599
- f = ((t - n) / b + (t < n ? 6 : 0)) / 6;
637
+ f = ((t - n) / u + (t < n ? 6 : 0)) / 6;
600
638
  break;
601
639
  case t:
602
- f = ((n - i) / b + 2) / 6;
640
+ f = ((n - i) / u + 2) / 6;
603
641
  break;
604
642
  case n:
605
- f = ((i - t) / b + 4) / 6;
643
+ f = ((i - t) / u + 4) / 6;
606
644
  break;
607
645
  }
608
646
  }
@@ -672,7 +710,7 @@ class D {
672
710
  }
673
711
  }
674
712
  D.create("none"), D.create("sm"), D.create("md"), D.create("lg"), D.create("xl"), D.create("2xl"), D.create("inner");
675
- class F {
713
+ class z {
676
714
  /**
677
715
  * Create a border width token
678
716
  */
@@ -716,7 +754,7 @@ class F {
716
754
  };
717
755
  }
718
756
  }
719
- F.create("none"), F.create("thin"), F.create("base"), F.create("medium"), F.create("thick"), F.create("thin", "dashed"), F.create("base", "dashed"), F.create("thin", "dotted"), F.create("base", "dotted");
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");
720
758
  class E {
721
759
  /**
722
760
  * Create breakpoint token
@@ -739,7 +777,7 @@ class E {
739
777
  }
740
778
  }
741
779
  E.create("sm"), E.create("md"), E.create("lg"), E.create("xl"), E.create("2xl");
742
- class A {
780
+ class W {
743
781
  /**
744
782
  * Create an animation token
745
783
  */
@@ -796,23 +834,23 @@ class A {
796
834
  * Create a transition token
797
835
  */
798
836
  static createTransition(a, i = "base", t = "ease-in-out") {
799
- const n = this.create(i, t), o = Array.isArray(a) ? a.join(", ") : a, c = [
837
+ const n = this.create(i, t), s = Array.isArray(a) ? a.join(", ") : a, c = [
800
838
  n.duration.tailwind,
801
839
  n.easing.tailwind
802
840
  ].join(" ");
803
841
  return {
804
- property: o,
842
+ property: s,
805
843
  duration: n.duration.value,
806
844
  timingFunction: n.easing.value,
807
845
  tailwind: c
808
846
  };
809
847
  }
810
848
  }
811
- A.create("fast"), A.create("base"), A.create("slow"), A.create("slower"), A.createTransition(
849
+ W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
812
850
  ["color", "background-color", "border-color"],
813
851
  "base"
814
- ), A.createTransition("opacity", "fast"), A.createTransition("transform", "base"), A.createTransition("all", "base");
815
- class z {
852
+ ), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
853
+ class L {
816
854
  /**
817
855
  * Create a z-index token
818
856
  */
@@ -866,8 +904,8 @@ class z {
866
904
  }[a];
867
905
  }
868
906
  }
869
- z.create("base"), z.create("dropdown"), z.create("sticky"), z.create("fixed"), z.create("modal-backdrop"), z.create("modal"), z.create("popover"), z.create("tooltip"), z.create("toast");
870
- class k {
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 $ {
871
909
  /**
872
910
  * Create an opacity token
873
911
  */
@@ -913,8 +951,8 @@ class k {
913
951
  };
914
952
  }
915
953
  }
916
- k.create(0), k.create(5), k.create(10), k.create(20), k.create(25), k.create(30), k.create(40), k.create(50), k.create(60), k.create(70), k.create(75), k.create(80), k.create(90), k.create(95), k.create(100);
917
- const be = H("w-full", {
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", {
918
956
  variants: {
919
957
  size: {
920
958
  sm: "h-1",
@@ -934,7 +972,7 @@ const be = H("w-full", {
934
972
  size: "md",
935
973
  variant: "primary"
936
974
  }
937
- }), G = H("transition-all", {
975
+ }), Y = O("transition-all", {
938
976
  variants: {
939
977
  variant: {
940
978
  primary: "bg-surface-brand",
@@ -948,17 +986,17 @@ const be = H("w-full", {
948
986
  defaultVariants: {
949
987
  variant: "primary"
950
988
  }
951
- }), ge = V(function(g, b) {
952
- var h = g, {
989
+ }), ye = H(function(x, u) {
990
+ var y = x, {
953
991
  value: a,
954
992
  max: i = 100,
955
993
  variant: t = "primary",
956
994
  size: n = "md",
957
- showLabel: o = !1,
995
+ showLabel: s = !1,
958
996
  label: c,
959
997
  "aria-label": f,
960
998
  className: m = ""
961
- } = h, p = x(h, [
999
+ } = y, p = h(y, [
962
1000
  "value",
963
1001
  "max",
964
1002
  "variant",
@@ -968,38 +1006,38 @@ const be = H("w-full", {
968
1006
  "aria-label",
969
1007
  "className"
970
1008
  ]);
971
- const N = a === void 0, M = N ? void 0 : Math.min(Math.max(a / i * 100, 0), 100), j = f || (N ? "Loading in progress" : `Progress: ${M == null ? void 0 : M.toFixed(0)}%`);
972
- return /* @__PURE__ */ $("div", v(u({ ref: b, className: d("w-full", m) }, p), { children: [
973
- o && (c || !N) && /* @__PURE__ */ $(
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(
974
1012
  "div",
975
1013
  {
976
1014
  className: d(
977
1015
  "flex",
978
1016
  "items-center",
979
1017
  "justify-between",
980
- s("xs", "mb")
1018
+ l("xs", "mb")
981
1019
  ),
982
1020
  children: [
983
- c && /* @__PURE__ */ l(
1021
+ c && /* @__PURE__ */ o(
984
1022
  "span",
985
1023
  {
986
1024
  className: d(
987
- L("bodySmall"),
988
- U("label"),
1025
+ C("bodySmall"),
1026
+ R("label"),
989
1027
  "text-fg-primary"
990
1028
  ),
991
1029
  children: c
992
1030
  }
993
1031
  ),
994
- !N && M !== void 0 && /* @__PURE__ */ $(
1032
+ !N && F !== void 0 && /* @__PURE__ */ T(
995
1033
  "span",
996
1034
  {
997
1035
  className: d(
998
- L("bodySmall"),
1036
+ C("bodySmall"),
999
1037
  "text-fg-secondary"
1000
1038
  ),
1001
1039
  children: [
1002
- M.toFixed(0),
1040
+ F.toFixed(0),
1003
1041
  "%"
1004
1042
  ]
1005
1043
  }
@@ -1007,7 +1045,7 @@ const be = H("w-full", {
1007
1045
  ]
1008
1046
  }
1009
1047
  ),
1010
- /* @__PURE__ */ l(
1048
+ /* @__PURE__ */ o(
1011
1049
  "div",
1012
1050
  {
1013
1051
  role: "progressbar",
@@ -1020,10 +1058,10 @@ const be = H("w-full", {
1020
1058
  "relative",
1021
1059
  "w-full",
1022
1060
  "overflow-hidden",
1023
- be({ size: n, variant: t }),
1024
- T("full")
1061
+ he({ size: n, variant: t }),
1062
+ S("full")
1025
1063
  ),
1026
- children: N ? /* @__PURE__ */ l(
1064
+ children: N ? /* @__PURE__ */ o(
1027
1065
  "div",
1028
1066
  {
1029
1067
  className: d(
@@ -1031,8 +1069,8 @@ const be = H("w-full", {
1031
1069
  "top-0",
1032
1070
  "left-0",
1033
1071
  "bottom-0",
1034
- G({ variant: t }),
1035
- T("full"),
1072
+ Y({ variant: t }),
1073
+ S("full"),
1036
1074
  "motion-reduce:animate-none"
1037
1075
  ),
1038
1076
  style: {
@@ -1040,19 +1078,19 @@ const be = H("w-full", {
1040
1078
  animation: "progress-indeterminate 1.5s ease-in-out infinite"
1041
1079
  }
1042
1080
  }
1043
- ) : /* @__PURE__ */ l(
1081
+ ) : /* @__PURE__ */ o(
1044
1082
  "div",
1045
1083
  {
1046
1084
  className: d(
1047
1085
  "h-full",
1048
- G({ variant: t }),
1049
- T("full"),
1086
+ Y({ variant: t }),
1087
+ S("full"),
1050
1088
  "transition-all",
1051
1089
  "duration-300",
1052
1090
  "ease-out"
1053
1091
  ),
1054
1092
  style: {
1055
- width: `${M}%`
1093
+ width: `${F}%`
1056
1094
  },
1057
1095
  "aria-hidden": "true"
1058
1096
  }
@@ -1061,16 +1099,16 @@ const be = H("w-full", {
1061
1099
  )
1062
1100
  ] }));
1063
1101
  });
1064
- ge.displayName = "Progress";
1065
- function De(f) {
1102
+ ye.displayName = "Progress";
1103
+ function Ee(f) {
1066
1104
  var m = f, {
1067
1105
  variant: r = "text",
1068
1106
  width: a,
1069
1107
  height: i,
1070
1108
  lines: t = 1,
1071
1109
  className: n = "",
1072
- "aria-label": o
1073
- } = m, c = x(m, [
1110
+ "aria-label": s
1111
+ } = m, c = h(m, [
1074
1112
  "variant",
1075
1113
  "width",
1076
1114
  "height",
@@ -1081,45 +1119,45 @@ function De(f) {
1081
1119
  const p = [
1082
1120
  "motion-safe:animate-pulse",
1083
1121
  "bg-surface-muted",
1084
- T("sm")
1085
- ], b = {
1122
+ S("sm")
1123
+ ], u = {
1086
1124
  text: "h-4",
1087
1125
  card: "h-32",
1088
1126
  list: "h-12",
1089
- circle: T("full")
1090
- }, g = d(...p, b[r], n), h = {};
1091
- a && (h.width = a), i && (h.height = i);
1092
- const N = o || `Loading ${r} content`;
1093
- return r === "text" && t > 1 ? /* @__PURE__ */ l(
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(
1094
1132
  "div",
1095
- v(u({
1096
- className: s("sm", "space-y"),
1133
+ k(b({
1134
+ className: l("sm", "space-y"),
1097
1135
  role: "status",
1098
1136
  "aria-busy": "true",
1099
1137
  "aria-label": N
1100
1138
  }, c), {
1101
- children: Array.from({ length: t }).map((M, j) => /* @__PURE__ */ l(
1139
+ children: Array.from({ length: t }).map((F, j) => /* @__PURE__ */ o(
1102
1140
  "div",
1103
1141
  {
1104
- className: g,
1105
- style: j === t - 1 ? { width: "75%" } : h,
1142
+ className: x,
1143
+ style: j === t - 1 ? { width: "75%" } : y,
1106
1144
  "aria-hidden": "true"
1107
1145
  },
1108
1146
  j
1109
1147
  ))
1110
1148
  })
1111
- ) : /* @__PURE__ */ l(
1149
+ ) : /* @__PURE__ */ o(
1112
1150
  "div",
1113
- u({
1114
- className: g,
1115
- style: h,
1151
+ b({
1152
+ className: x,
1153
+ style: y,
1116
1154
  role: "status",
1117
1155
  "aria-busy": "true",
1118
1156
  "aria-label": N
1119
1157
  }, c)
1120
1158
  );
1121
1159
  }
1122
- const xe = H("motion-safe:animate-spin", {
1160
+ const we = O("motion-safe:animate-spin", {
1123
1161
  variants: {
1124
1162
  size: {
1125
1163
  sm: "h-4 w-4",
@@ -1136,40 +1174,40 @@ const xe = H("motion-safe:animate-spin", {
1136
1174
  size: "md",
1137
1175
  variant: "primary"
1138
1176
  }
1139
- }), he = te(function(c) {
1177
+ }), ve = re(function(c) {
1140
1178
  var f = c, {
1141
1179
  size: a = "md",
1142
1180
  variant: i = "primary",
1143
1181
  label: t,
1144
1182
  className: n = ""
1145
- } = f, o = x(f, [
1183
+ } = f, s = h(f, [
1146
1184
  "size",
1147
1185
  "variant",
1148
1186
  "label",
1149
1187
  "className"
1150
1188
  ]);
1151
- return /* @__PURE__ */ $(
1189
+ return /* @__PURE__ */ T(
1152
1190
  "div",
1153
- v(u({
1191
+ k(b({
1154
1192
  className: d("inline-flex", "items-center", n),
1155
1193
  role: "status",
1156
1194
  "aria-label": t || "Loading",
1157
1195
  "aria-live": "polite"
1158
- }, o), {
1196
+ }, s), {
1159
1197
  children: [
1160
- /* @__PURE__ */ l(
1161
- ne,
1198
+ /* @__PURE__ */ o(
1199
+ se,
1162
1200
  {
1163
- className: d(xe({ size: a, variant: i })),
1201
+ className: d(we({ size: a, variant: i })),
1164
1202
  "aria-hidden": "true"
1165
1203
  }
1166
1204
  ),
1167
- t && /* @__PURE__ */ l(
1205
+ t && /* @__PURE__ */ o(
1168
1206
  "span",
1169
1207
  {
1170
1208
  className: d(
1171
- s("sm", "ml"),
1172
- L("bodySmall"),
1209
+ l("sm", "ml"),
1210
+ C("bodySmall"),
1173
1211
  "text-fg-secondary",
1174
1212
  "sr-only"
1175
1213
  ),
@@ -1180,8 +1218,8 @@ const xe = H("motion-safe:animate-spin", {
1180
1218
  })
1181
1219
  );
1182
1220
  });
1183
- he.displayName = "Spinner";
1184
- const ye = {
1221
+ ve.displayName = "Spinner";
1222
+ const ke = {
1185
1223
  primary: {
1186
1224
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1187
1225
  light: "text-indigo-400",
@@ -1233,16 +1271,16 @@ const ye = {
1233
1271
  contrast: "text-fg-inverse"
1234
1272
  }
1235
1273
  };
1236
- function we(p, m) {
1237
- var b = p, {
1274
+ function $e(p, m) {
1275
+ var u = p, {
1238
1276
  variant: r = "paragraph",
1239
1277
  bold: a,
1240
1278
  italic: i,
1241
1279
  className: t,
1242
1280
  as: n,
1243
- colorRole: o = "neutral",
1281
+ colorRole: s = "neutral",
1244
1282
  colorShade: c = "dark"
1245
- } = b, f = x(b, [
1283
+ } = u, f = h(u, [
1246
1284
  "variant",
1247
1285
  "bold",
1248
1286
  "italic",
@@ -1251,32 +1289,32 @@ function we(p, m) {
1251
1289
  "colorRole",
1252
1290
  "colorShade"
1253
1291
  ]);
1254
- const g = [];
1255
- let h;
1292
+ const x = [];
1293
+ let y;
1256
1294
  if (n)
1257
- h = n;
1295
+ y = n;
1258
1296
  else
1259
1297
  switch (r) {
1260
1298
  case "heading":
1261
- h = "h2";
1299
+ y = "h2";
1262
1300
  break;
1263
1301
  case "list":
1264
- h = "li";
1302
+ y = "li";
1265
1303
  break;
1266
1304
  default:
1267
- h = "p";
1305
+ y = "p";
1268
1306
  break;
1269
1307
  }
1270
- return r === "heading" ? g.push(W("h2")) : r === "body" || r === "paragraph" ? g.push(W("body")) : r === "bodySmall" ? g.push(W("bodySmall")) : r === "bodyLarge" ? g.push(W("bodyLarge")) : r === "caption" ? g.push(W("caption")) : r === "label" ? g.push(W("label")) : g.push(W("body")), a && g.push("font-bold"), i && g.push("italic"), g.push(ye[o][c]), /* @__PURE__ */ l(h, u({ ref: m, className: d(...g, t) }, f));
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));
1271
1309
  }
1272
- const je = V(we), ve = {
1310
+ const Ve = H($e), Ne = {
1273
1311
  sm: "max-w-screen-sm",
1274
1312
  md: "max-w-screen-md",
1275
1313
  lg: "max-w-screen-lg",
1276
1314
  xl: "max-w-screen-xl",
1277
1315
  "2xl": "max-w-screen-2xl",
1278
1316
  full: "max-w-full"
1279
- }, ke = Y.forwardRef(
1317
+ }, Te = Q.forwardRef(
1280
1318
  (m, f) => {
1281
1319
  var p = m, {
1282
1320
  className: r,
@@ -1284,8 +1322,8 @@ const je = V(we), ve = {
1284
1322
  paddingX: i = "base",
1285
1323
  paddingY: t = "base",
1286
1324
  center: n = !0,
1287
- children: o
1288
- } = p, c = x(p, [
1325
+ children: s
1326
+ } = p, c = h(p, [
1289
1327
  "className",
1290
1328
  "maxWidth",
1291
1329
  "paddingX",
@@ -1293,26 +1331,26 @@ const je = V(we), ve = {
1293
1331
  "center",
1294
1332
  "children"
1295
1333
  ]);
1296
- return /* @__PURE__ */ l(
1334
+ return /* @__PURE__ */ o(
1297
1335
  "div",
1298
- v(u({
1336
+ k(b({
1299
1337
  ref: f,
1300
1338
  className: d(
1301
1339
  "w-full",
1302
- ve[a],
1303
- s(i, "px"),
1304
- s(t, "py"),
1340
+ Ne[a],
1341
+ l(i, "px"),
1342
+ l(t, "py"),
1305
1343
  n && "mx-auto",
1306
1344
  r
1307
1345
  )
1308
1346
  }, c), {
1309
- children: o
1347
+ children: s
1310
1348
  })
1311
1349
  );
1312
1350
  }
1313
1351
  );
1314
- ke.displayName = "Container";
1315
- const Ne = Y.forwardRef(
1352
+ Te.displayName = "Container";
1353
+ const Me = Q.forwardRef(
1316
1354
  (m, f) => {
1317
1355
  var p = m, {
1318
1356
  className: r,
@@ -1320,8 +1358,8 @@ const Ne = Y.forwardRef(
1320
1358
  align: i = "stretch",
1321
1359
  justify: t = "start",
1322
1360
  direction: n = "column",
1323
- children: o
1324
- } = p, c = x(p, [
1361
+ children: s
1362
+ } = p, c = h(p, [
1325
1363
  "className",
1326
1364
  "spacing",
1327
1365
  "align",
@@ -1329,12 +1367,12 @@ const Ne = Y.forwardRef(
1329
1367
  "direction",
1330
1368
  "children"
1331
1369
  ]);
1332
- const b = n === "column" ? s(a, "gap-y") : s(a, "gap-x"), g = {
1370
+ const u = n === "column" ? l(a, "gap-y") : l(a, "gap-x"), x = {
1333
1371
  start: "items-start",
1334
1372
  center: "items-center",
1335
1373
  end: "items-end",
1336
1374
  stretch: "items-stretch"
1337
- }, h = {
1375
+ }, y = {
1338
1376
  start: "justify-start",
1339
1377
  center: "justify-center",
1340
1378
  end: "justify-end",
@@ -1342,44 +1380,44 @@ const Ne = Y.forwardRef(
1342
1380
  around: "justify-around",
1343
1381
  evenly: "justify-evenly"
1344
1382
  };
1345
- return /* @__PURE__ */ l(
1383
+ return /* @__PURE__ */ o(
1346
1384
  "div",
1347
- v(u({
1385
+ k(b({
1348
1386
  ref: f,
1349
1387
  className: d(
1350
1388
  "flex",
1351
1389
  n === "column" ? "flex-col" : "flex-row",
1352
- b,
1353
- g[i],
1354
- h[t],
1390
+ u,
1391
+ x[i],
1392
+ y[t],
1355
1393
  r
1356
1394
  )
1357
1395
  }, c), {
1358
- children: o
1396
+ children: s
1359
1397
  })
1360
1398
  );
1361
1399
  }
1362
1400
  );
1363
- Ne.displayName = "Stack";
1364
- const $e = V(
1401
+ Me.displayName = "Stack";
1402
+ const Se = H(
1365
1403
  function({ option: a, isHighlighted: i, onSelect: t }, n) {
1366
- const o = () => {
1404
+ const s = () => {
1367
1405
  a.disabled || t(a);
1368
1406
  };
1369
- return /* @__PURE__ */ $(
1407
+ return /* @__PURE__ */ T(
1370
1408
  "div",
1371
1409
  {
1372
1410
  ref: n,
1373
1411
  role: "option",
1374
1412
  "aria-selected": i,
1375
1413
  "aria-disabled": a.disabled,
1376
- onClick: o,
1414
+ onClick: s,
1377
1415
  className: `
1378
1416
  flex
1379
1417
  items-center
1380
- ${s("sm", "gap")}
1381
- ${s("sm", "px")}
1382
- ${s("sm", "py")}
1418
+ ${l("sm", "gap")}
1419
+ ${l("sm", "px")}
1420
+ ${l("sm", "py")}
1383
1421
  text-sm
1384
1422
  cursor-pointer
1385
1423
  transition-colors
@@ -1387,20 +1425,20 @@ const $e = V(
1387
1425
  ${a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover"}
1388
1426
  `,
1389
1427
  children: [
1390
- a.icon && /* @__PURE__ */ l("span", { className: "flex-shrink-0", children: a.icon }),
1391
- /* @__PURE__ */ l("span", { className: "flex-1", children: a.label })
1428
+ a.icon && /* @__PURE__ */ o("span", { className: "flex-shrink-0", children: a.icon }),
1429
+ /* @__PURE__ */ o("span", { className: "flex-1", children: a.label })
1392
1430
  ]
1393
1431
  }
1394
1432
  );
1395
1433
  }
1396
1434
  );
1397
- $e.displayName = "AutocompleteOption";
1398
- function Ee(n) {
1399
- var o = n, {
1435
+ Se.displayName = "AutocompleteOption";
1436
+ function He(n) {
1437
+ var s = n, {
1400
1438
  items: r,
1401
1439
  separator: a = "/",
1402
1440
  className: i = ""
1403
- } = o, t = x(o, [
1441
+ } = s, t = h(s, [
1404
1442
  "items",
1405
1443
  "separator",
1406
1444
  "className"
@@ -1408,50 +1446,50 @@ function Ee(n) {
1408
1446
  const c = [
1409
1447
  "flex",
1410
1448
  "items-center",
1411
- s("sm", "space-x"),
1412
- L("bodySmall")
1449
+ l("sm", "space-x"),
1450
+ C("bodySmall")
1413
1451
  ], f = d(...c, i);
1414
- return /* @__PURE__ */ l("nav", v(u({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ l(
1452
+ return /* @__PURE__ */ o("nav", k(b({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ o(
1415
1453
  "ol",
1416
1454
  {
1417
- className: d("flex", "items-center", s("sm", "space-x")),
1455
+ className: d("flex", "items-center", l("sm", "space-x")),
1418
1456
  children: r.map((m, p) => {
1419
- const b = p === r.length - 1;
1420
- return /* @__PURE__ */ $("li", { className: "flex items-center", children: [
1421
- p > 0 && /* @__PURE__ */ l(
1457
+ const u = p === r.length - 1;
1458
+ return /* @__PURE__ */ T("li", { className: "flex items-center", children: [
1459
+ p > 0 && /* @__PURE__ */ o(
1422
1460
  "span",
1423
1461
  {
1424
1462
  className: d(
1425
- s("sm", "mx"),
1463
+ l("sm", "mx"),
1426
1464
  "text-fg-tertiary"
1427
1465
  ),
1428
1466
  "aria-hidden": "true",
1429
1467
  children: a
1430
1468
  }
1431
1469
  ),
1432
- b ? /* @__PURE__ */ l(
1470
+ u ? /* @__PURE__ */ o(
1433
1471
  "span",
1434
1472
  {
1435
1473
  className: d(
1436
1474
  "text-fg-primary",
1437
- U("label")
1475
+ R("label")
1438
1476
  ),
1439
1477
  "aria-current": "page",
1440
1478
  children: m.label
1441
1479
  }
1442
- ) : m.href ? /* @__PURE__ */ l(
1480
+ ) : m.href ? /* @__PURE__ */ o(
1443
1481
  "a",
1444
1482
  {
1445
1483
  href: m.href,
1446
1484
  className: d(
1447
1485
  "inline-flex",
1448
1486
  "items-center",
1449
- s("xs", "px"),
1450
- s("xs", "pt"),
1487
+ l("xs", "px"),
1488
+ l("xs", "pt"),
1451
1489
  "border-b-2",
1452
1490
  "border-transparent",
1453
- L("bodySmall"),
1454
- U("label"),
1491
+ C("bodySmall"),
1492
+ R("label"),
1455
1493
  "transition-colors",
1456
1494
  "text-fg-secondary",
1457
1495
  "hover:border-line-emphasis",
@@ -1459,59 +1497,59 @@ function Ee(n) {
1459
1497
  ),
1460
1498
  children: m.label
1461
1499
  }
1462
- ) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: m.label })
1500
+ ) : /* @__PURE__ */ o("span", { className: "text-fg-secondary", children: m.label })
1463
1501
  ] }, p);
1464
1502
  })
1465
1503
  }
1466
1504
  ) }));
1467
1505
  }
1468
- function Ie(t) {
1506
+ function Oe(t) {
1469
1507
  var n = t, {
1470
1508
  children: r,
1471
1509
  className: a = ""
1472
- } = n, i = x(n, [
1510
+ } = n, i = h(n, [
1473
1511
  "children",
1474
1512
  "className"
1475
1513
  ]);
1476
- return /* @__PURE__ */ l(
1514
+ return /* @__PURE__ */ o(
1477
1515
  "div",
1478
- v(u({
1479
- className: `flex flex-col ${s("1.5", "space-y")} ${s("lg", "p")} ${s("base", "pb")} ${a}`
1516
+ k(b({
1517
+ className: `flex flex-col ${l("1.5", "space-y")} ${l("lg", "p")} ${l("base", "pb")} ${a}`
1480
1518
  }, i), {
1481
1519
  children: r
1482
1520
  })
1483
1521
  );
1484
1522
  }
1485
- function Ve(t) {
1523
+ function Be(t) {
1486
1524
  var n = t, {
1487
1525
  children: r,
1488
1526
  className: a = ""
1489
- } = n, i = x(n, [
1527
+ } = n, i = h(n, [
1490
1528
  "children",
1491
1529
  "className"
1492
1530
  ]);
1493
- return /* @__PURE__ */ l(
1531
+ return /* @__PURE__ */ o(
1494
1532
  "div",
1495
- v(u({
1496
- className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${s("sm", "space-x")} ${s("lg", "p")} ${s("base", "pt")} ${a}`
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}`
1497
1535
  }, i), {
1498
1536
  children: r
1499
1537
  })
1500
1538
  );
1501
1539
  }
1502
- function He(t) {
1540
+ function Re(t) {
1503
1541
  var n = t, {
1504
1542
  children: r,
1505
1543
  className: a = ""
1506
- } = n, i = x(n, [
1544
+ } = n, i = h(n, [
1507
1545
  "children",
1508
1546
  "className"
1509
1547
  ]);
1510
- return /* @__PURE__ */ l(
1548
+ return /* @__PURE__ */ o(
1511
1549
  "div",
1512
- v(u({
1550
+ k(b({
1513
1551
  className: `
1514
- ${s("lg", "p")}
1552
+ ${l("lg", "p")}
1515
1553
  border-b
1516
1554
  border-line-default
1517
1555
  ${a}
@@ -1521,24 +1559,24 @@ function He(t) {
1521
1559
  })
1522
1560
  );
1523
1561
  }
1524
- function Oe(t) {
1562
+ function Ue(t) {
1525
1563
  var n = t, {
1526
1564
  children: r,
1527
1565
  className: a = ""
1528
- } = n, i = x(n, [
1566
+ } = n, i = h(n, [
1529
1567
  "children",
1530
1568
  "className"
1531
1569
  ]);
1532
- return /* @__PURE__ */ l(
1570
+ return /* @__PURE__ */ o(
1533
1571
  "div",
1534
- v(u({
1572
+ k(b({
1535
1573
  className: `
1536
- ${s("lg", "p")}
1574
+ ${l("lg", "p")}
1537
1575
  border-t
1538
1576
  border-line-default
1539
1577
  flex
1540
1578
  justify-end
1541
- ${s("sm", "gap")}
1579
+ ${l("sm", "gap")}
1542
1580
  ${a}
1543
1581
  `
1544
1582
  }, i), {
@@ -1546,29 +1584,29 @@ function Oe(t) {
1546
1584
  })
1547
1585
  );
1548
1586
  }
1549
- function Ue({ children: r, className: a }) {
1550
- return /* @__PURE__ */ l(
1587
+ function qe({ children: r, className: a }) {
1588
+ return /* @__PURE__ */ o(
1551
1589
  "div",
1552
1590
  {
1553
1591
  className: d(
1554
1592
  "flex-shrink-0 flex items-center",
1555
- s("sm", "gap"),
1593
+ l("sm", "gap"),
1556
1594
  a
1557
1595
  ),
1558
1596
  children: r
1559
1597
  }
1560
1598
  );
1561
1599
  }
1562
- function Be({
1600
+ function Pe({
1563
1601
  children: r,
1564
1602
  className: a
1565
1603
  }) {
1566
- return /* @__PURE__ */ l(
1604
+ return /* @__PURE__ */ o(
1567
1605
  "nav",
1568
1606
  {
1569
1607
  className: d(
1570
1608
  "flex-1 flex items-center justify-center",
1571
- s("base", "gap"),
1609
+ l("base", "gap"),
1572
1610
  "hidden md:flex",
1573
1611
  // Hidden on mobile, visible on desktop
1574
1612
  a
@@ -1578,48 +1616,48 @@ function Be({
1578
1616
  }
1579
1617
  );
1580
1618
  }
1581
- function Re(i) {
1619
+ function _e(i) {
1582
1620
  var t = i, {
1583
1621
  className: r = ""
1584
- } = t, a = x(t, [
1622
+ } = t, a = h(t, [
1585
1623
  "className"
1586
1624
  ]);
1587
- return /* @__PURE__ */ l(
1625
+ return /* @__PURE__ */ o(
1588
1626
  "div",
1589
- u({
1627
+ b({
1590
1628
  role: "separator",
1591
1629
  className: `
1592
1630
  h-px
1593
1631
  bg-line-default
1594
- ${s("sm", "my")}
1632
+ ${l("sm", "my")}
1595
1633
  ${r}
1596
1634
  `
1597
1635
  }, a)
1598
1636
  );
1599
1637
  }
1600
- function qe(t) {
1638
+ function Ke(t) {
1601
1639
  var n = t, {
1602
1640
  orientation: r = "horizontal",
1603
1641
  className: a = ""
1604
- } = n, i = x(n, [
1642
+ } = n, i = h(n, [
1605
1643
  "orientation",
1606
1644
  "className"
1607
1645
  ]);
1608
- return r === "vertical" ? /* @__PURE__ */ l(
1646
+ return r === "vertical" ? /* @__PURE__ */ o(
1609
1647
  "div",
1610
- u({
1648
+ b({
1611
1649
  className: d("w-px", "h-6", "bg-line-default", "mx-auto", a),
1612
1650
  role: "separator",
1613
1651
  "aria-orientation": "vertical"
1614
1652
  }, i)
1615
- ) : /* @__PURE__ */ l(
1653
+ ) : /* @__PURE__ */ o(
1616
1654
  "div",
1617
- u({
1655
+ b({
1618
1656
  className: d(
1619
1657
  "w-full",
1620
1658
  "h-px",
1621
1659
  "bg-line-default",
1622
- s("sm", "my"),
1660
+ l("sm", "my"),
1623
1661
  // my-2 (8px) para consistência com gap-2 usado em outros lugares
1624
1662
  "flex-shrink-0",
1625
1663
  // Prevenir que separator encolha
@@ -1635,142 +1673,142 @@ function qe(t) {
1635
1673
  }, i)
1636
1674
  );
1637
1675
  }
1638
- function Pe(n) {
1639
- var o = n, { column: r, row: a, className: i = "" } = o, t = x(o, ["column", "row", "className"]);
1676
+ function Xe(n) {
1677
+ var s = n, { column: r, row: a, className: i = "" } = s, t = h(s, ["column", "row", "className"]);
1640
1678
  const c = r.key in a ? a[r.key] : void 0;
1641
- return /* @__PURE__ */ l(
1679
+ return /* @__PURE__ */ o(
1642
1680
  "td",
1643
- v(u({
1644
- className: `${s("lg", "px")} ${s("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${i}`
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}`
1645
1683
  }, t), {
1646
1684
  children: r.render ? r.render(c, a) : String(c != null ? c : "")
1647
1685
  })
1648
1686
  );
1649
1687
  }
1650
- function _e({
1688
+ function Ge({
1651
1689
  items: r,
1652
1690
  orientation: a = "vertical",
1653
1691
  className: i = ""
1654
1692
  }) {
1655
- return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${i}`, children: r.map((t, n) => {
1656
- const o = t.status || (n === 0 ? "active" : n < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = n === r.length - 1;
1657
- return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ $("div", { className: "flex flex-col items-center flex-1", children: [
1658
- /* @__PURE__ */ l(
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(
1659
1697
  "div",
1660
- v(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
1698
+ k(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
1661
1699
  className: `
1662
1700
  flex
1663
1701
  items-center
1664
1702
  justify-center
1665
1703
  w-10
1666
1704
  h-10
1667
- ${T("full")}
1705
+ ${S("full")}
1668
1706
  border-2
1669
- ${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
1707
+ ${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"}
1670
1708
  `,
1671
- children: t.icon || (o === "completed" ? /* @__PURE__ */ l(X, { className: "h-4 w-4" }) : n + 1)
1709
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ o(G, { className: "h-4 w-4" }) : n + 1)
1672
1710
  })
1673
1711
  ),
1674
- !c && /* @__PURE__ */ l(
1712
+ !c && /* @__PURE__ */ o(
1675
1713
  "div",
1676
1714
  {
1677
1715
  className: `
1678
1716
  w-full
1679
1717
  h-0.5
1680
- ${s("sm", "mt")}
1681
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
1718
+ ${l("sm", "mt")}
1719
+ ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1682
1720
  `
1683
1721
  }
1684
1722
  ),
1685
- /* @__PURE__ */ $(
1723
+ /* @__PURE__ */ T(
1686
1724
  "div",
1687
1725
  {
1688
- className: `${s("base", "mt")} text-center ${s("base", "px")}`,
1726
+ className: `${l("base", "mt")} text-center ${l("base", "px")}`,
1689
1727
  children: [
1690
- t.timestamp && /* @__PURE__ */ l(
1728
+ t.timestamp && /* @__PURE__ */ o(
1691
1729
  "p",
1692
1730
  {
1693
- className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
1731
+ className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
1694
1732
  children: t.timestamp
1695
1733
  }
1696
1734
  ),
1697
- /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
1698
- t.description && /* @__PURE__ */ l(
1735
+ /* @__PURE__ */ o("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
1736
+ t.description && /* @__PURE__ */ o(
1699
1737
  "p",
1700
1738
  {
1701
- className: `text-xs text-fg-secondary ${s("xs", "mt")}`,
1739
+ className: `text-xs text-fg-secondary ${l("xs", "mt")}`,
1702
1740
  children: t.description
1703
1741
  }
1704
1742
  ),
1705
- t.content && /* @__PURE__ */ l("div", { className: s("sm", "mt"), children: t.content })
1743
+ t.content && /* @__PURE__ */ o("div", { className: l("sm", "mt"), children: t.content })
1706
1744
  ]
1707
1745
  }
1708
1746
  )
1709
1747
  ] }) }, t.id);
1710
- }) }) : /* @__PURE__ */ l("div", { className: `${s("none", "space-y")} ${i}`, children: r.map((t, n) => {
1711
- const o = t.status || (n === 0 ? "active" : n < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = n === r.length - 1;
1712
- return /* @__PURE__ */ $(
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(
1713
1751
  "div",
1714
1752
  {
1715
- className: `flex items-start ${s("base", "gap")}`,
1753
+ className: `flex items-start ${l("base", "gap")}`,
1716
1754
  children: [
1717
- /* @__PURE__ */ $("div", { className: "flex flex-col items-center", children: [
1718
- /* @__PURE__ */ l(
1755
+ /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
1756
+ /* @__PURE__ */ o(
1719
1757
  "div",
1720
- v(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
1758
+ k(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
1721
1759
  className: `
1722
1760
  flex
1723
1761
  items-center
1724
1762
  justify-center
1725
1763
  w-10
1726
1764
  h-10
1727
- ${T("full")}
1765
+ ${S("full")}
1728
1766
  border-2
1729
- ${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
1767
+ ${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"}
1730
1768
  `,
1731
- children: t.icon || (o === "completed" ? /* @__PURE__ */ l(X, { className: "h-4 w-4" }) : n + 1)
1769
+ children: t.icon || (s === "completed" ? /* @__PURE__ */ o(G, { className: "h-4 w-4" }) : n + 1)
1732
1770
  })
1733
1771
  ),
1734
- !c && /* @__PURE__ */ l(
1772
+ !c && /* @__PURE__ */ o(
1735
1773
  "div",
1736
1774
  {
1737
1775
  className: `
1738
1776
  w-0.5
1739
1777
  flex-1
1740
1778
  min-h-16
1741
- ${s("sm", "mt")}
1742
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
1779
+ ${l("sm", "mt")}
1780
+ ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1743
1781
  `
1744
1782
  }
1745
1783
  )
1746
1784
  ] }),
1747
- /* @__PURE__ */ $("div", { className: `flex-1 ${s("xl", "pb")}`, children: [
1748
- t.timestamp && /* @__PURE__ */ l(
1785
+ /* @__PURE__ */ T("div", { className: `flex-1 ${l("xl", "pb")}`, children: [
1786
+ t.timestamp && /* @__PURE__ */ o(
1749
1787
  "p",
1750
1788
  {
1751
- className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
1789
+ className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
1752
1790
  children: t.timestamp
1753
1791
  }
1754
1792
  ),
1755
- /* @__PURE__ */ l(
1793
+ /* @__PURE__ */ o(
1756
1794
  "h3",
1757
1795
  {
1758
1796
  className: `
1759
1797
  text-base
1760
1798
  font-semibold
1761
- ${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
1799
+ ${s === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
1762
1800
  `,
1763
1801
  children: t.title
1764
1802
  }
1765
1803
  ),
1766
- t.description && /* @__PURE__ */ l(
1804
+ t.description && /* @__PURE__ */ o(
1767
1805
  "p",
1768
1806
  {
1769
- className: `text-sm text-fg-secondary ${s("xs", "mt")}`,
1807
+ className: `text-sm text-fg-secondary ${l("xs", "mt")}`,
1770
1808
  children: t.description
1771
1809
  }
1772
1810
  ),
1773
- t.content && /* @__PURE__ */ l("div", { className: s("md", "mt"), children: t.content })
1811
+ t.content && /* @__PURE__ */ o("div", { className: l("md", "mt"), children: t.content })
1774
1812
  ] })
1775
1813
  ]
1776
1814
  },
@@ -1779,26 +1817,26 @@ function _e({
1779
1817
  }) });
1780
1818
  }
1781
1819
  export {
1782
- $e as AutocompleteOption,
1783
- Ee as Breadcrumb,
1784
- pe as Chip,
1785
- ke as Container,
1786
- Ve as DialogFooter,
1787
- Ie as DialogHeader,
1788
- Oe as DrawerFooter,
1789
- He as DrawerHeader,
1790
- Ae as ErrorMessage,
1791
- Ue as HeaderActions,
1792
- Be as HeaderNavigation,
1793
- We as Info,
1794
- Re as MenuSeparator,
1795
- qe as NavbarSeparator,
1796
- ge as Progress,
1797
- De as Skeleton,
1798
- he as Spinner,
1799
- Ne as Stack,
1800
- Pe as TableCell,
1801
- je as Text,
1802
- _e as Timeline
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
1803
1841
  };
1804
1842
  //# sourceMappingURL=index.js.map