@fabio.caffarello/react-design-system 2.1.0 → 3.1.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,37 +1,113 @@
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) => {
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]);
11
- return r;
12
- }, v = (r, a) => ee(r, ae(a));
13
- var x = (r, a) => {
14
- var i = {};
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]);
20
- return i;
1
+ var ne = Object.defineProperty, ie = Object.defineProperties;
2
+ var se = Object.getOwnPropertyDescriptors;
3
+ var _ = Object.getOwnPropertySymbols;
4
+ var K = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
+ var H = (t, a, n) => a in t ? ne(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, b = (t, a) => {
6
+ for (var n in a || (a = {}))
7
+ K.call(a, n) && H(t, n, a[n]);
8
+ if (_)
9
+ for (var n of _(a))
10
+ X.call(a, n) && H(t, n, a[n]);
11
+ return t;
12
+ }, w = (t, a) => ie(t, se(a));
13
+ var y = (t, a) => {
14
+ var n = {};
15
+ for (var r in t)
16
+ K.call(t, r) && a.indexOf(r) < 0 && (n[r] = t[r]);
17
+ if (t != null && _)
18
+ for (var r of _(t))
19
+ a.indexOf(r) < 0 && X.call(t, r) && (n[r] = t[r]);
20
+ return n;
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 Y = (t, a, n) => H(t, typeof a != "symbol" ? a + "" : a, n);
23
+ import { jsx as o, jsxs as T } from "react/jsx-runtime";
24
+ import * as S from "react";
25
+ import ee, { forwardRef as O, memo as le } from "react";
26
+ import { X as oe, AlertCircle as ce, Loader2 as de, CheckCircle2 as Z } from "lucide-react";
27
+ import { clsx as fe } from "clsx";
28
+ import { twMerge as pe } from "tailwind-merge";
29
+ import { cva as ue } from "class-variance-authority";
30
+ function G(t, a) {
31
+ if (typeof t == "function")
32
+ return t(a);
33
+ t != null && (t.current = a);
34
+ }
35
+ function me(...t) {
36
+ return (a) => {
37
+ let n = !1;
38
+ const r = t.map((i) => {
39
+ const s = G(i, a);
40
+ return !n && typeof s == "function" && (n = !0), s;
41
+ });
42
+ if (n)
43
+ return () => {
44
+ for (let i = 0; i < r.length; i++) {
45
+ const s = r[i];
46
+ typeof s == "function" ? s() : G(t[i], null);
47
+ }
48
+ };
49
+ };
50
+ }
51
+ var be = /* @__PURE__ */ Symbol.for("react.lazy"), V = S[" use ".trim().toString()];
52
+ function ge(t) {
53
+ return typeof t == "object" && t !== null && "then" in t;
54
+ }
55
+ function ae(t) {
56
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === be && "_payload" in t && ge(t._payload);
57
+ }
58
+ // @__NO_SIDE_EFFECTS__
59
+ function xe(t) {
60
+ const a = /* @__PURE__ */ ye(t), n = S.forwardRef((r, i) => {
61
+ let m = r, { children: s } = m, c = y(m, ["children"]);
62
+ ae(s) && typeof V == "function" && (s = V(s._payload));
63
+ const d = S.Children.toArray(s), p = d.find(ve);
64
+ if (p) {
65
+ const u = p.props.children, x = d.map((h) => h === p ? S.Children.count(u) > 1 ? S.Children.only(null) : S.isValidElement(u) ? u.props.children : null : h);
66
+ return /* @__PURE__ */ o(a, w(b({}, c), { ref: i, children: S.isValidElement(u) ? S.cloneElement(u, void 0, x) : null }));
67
+ }
68
+ return /* @__PURE__ */ o(a, w(b({}, c), { ref: i, children: s }));
69
+ });
70
+ return n.displayName = `${t}.Slot`, n;
71
+ }
72
+ var he = /* @__PURE__ */ xe("Slot");
73
+ // @__NO_SIDE_EFFECTS__
74
+ function ye(t) {
75
+ const a = S.forwardRef((n, r) => {
76
+ let c = n, { children: i } = c, s = y(c, ["children"]);
77
+ if (ae(i) && typeof V == "function" && (i = V(i._payload)), S.isValidElement(i)) {
78
+ const d = $e(i), p = ke(s, i.props);
79
+ return i.type !== S.Fragment && (p.ref = r ? me(r, d) : d), S.cloneElement(i, p);
80
+ }
81
+ return S.Children.count(i) > 1 ? S.Children.only(null) : null;
82
+ });
83
+ return a.displayName = `${t}.SlotClone`, a;
84
+ }
85
+ var we = /* @__PURE__ */ Symbol("radix.slottable");
86
+ function ve(t) {
87
+ return S.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === we;
88
+ }
89
+ function ke(t, a) {
90
+ const n = b({}, a);
91
+ for (const r in a) {
92
+ const i = t[r], s = a[r];
93
+ /^on[A-Z]/.test(r) ? i && s ? n[r] = (...d) => {
94
+ const p = s(...d);
95
+ return i(...d), p;
96
+ } : i && (n[r] = i) : r === "style" ? n[r] = b(b({}, i), s) : r === "className" && (n[r] = [i, s].filter(Boolean).join(" "));
97
+ }
98
+ return b(b({}, t), n);
99
+ }
100
+ function $e(t) {
101
+ var r, i;
102
+ let a = (r = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning;
103
+ return n ? t.ref : (a = (i = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : i.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
104
+ }
105
+ class I {
30
106
  /**
31
107
  * Create a radius token
32
108
  */
33
109
  static create(a) {
34
- const t = {
110
+ const r = {
35
111
  none: {
36
112
  px: 0,
37
113
  tailwind: "rounded-none",
@@ -74,38 +150,38 @@ class C {
74
150
  }
75
151
  }[a];
76
152
  return {
77
- value: t.px,
78
- rem: `${t.px / 16}rem`,
79
- px: `${t.px}px`,
80
- tailwind: t.tailwind,
81
- description: t.description
153
+ value: r.px,
154
+ rem: `${r.px / 16}rem`,
155
+ px: `${r.px}px`,
156
+ tailwind: r.tailwind,
157
+ description: r.description
82
158
  };
83
159
  }
84
160
  }
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")
161
+ const Ne = {
162
+ none: I.create("none"),
163
+ sm: I.create("sm"),
164
+ md: I.create("md"),
165
+ lg: I.create("lg"),
166
+ xl: I.create("xl"),
167
+ "2xl": I.create("2xl"),
168
+ "3xl": I.create("3xl"),
169
+ full: I.create("full")
94
170
  };
95
- function T(r) {
96
- return ce[r].tailwind;
171
+ function F(t) {
172
+ return Ne[t].tailwind;
97
173
  }
98
- class y {
174
+ class v {
99
175
  // 4px base
100
176
  /**
101
177
  * Create a spacing token from scale value
102
178
  */
103
179
  static create(a) {
104
- const i = a * this.BASE_UNIT, t = i / 16;
180
+ const n = a * this.BASE_UNIT, r = n / 16;
105
181
  return {
106
- value: i,
107
- rem: `${t}rem`,
108
- px: `${i}px`,
182
+ value: n,
183
+ rem: `${r}rem`,
184
+ px: `${n}px`,
109
185
  tailwind: this.getTailwindClass(a)
110
186
  };
111
187
  }
@@ -162,46 +238,46 @@ class y {
162
238
  }[a] || String(a);
163
239
  }
164
240
  }
165
- K(y, "BASE_UNIT", 4);
166
- const de = {
241
+ Y(v, "BASE_UNIT", 4);
242
+ const Se = {
167
243
  // Micro spacing (0-14px)
168
- none: y.create(0),
169
- "0.5": y.create(0.5),
244
+ none: v.create(0),
245
+ "0.5": v.create(0.5),
170
246
  // 2px (half-step)
171
- xs: y.create(1),
247
+ xs: v.create(1),
172
248
  // 4px
173
- "1.5": y.create(1.5),
249
+ "1.5": v.create(1.5),
174
250
  // 6px (half-step)
175
- sm: y.create(2),
251
+ sm: v.create(2),
176
252
  // 8px
177
- "2.5": y.create(2.5),
253
+ "2.5": v.create(2.5),
178
254
  // 10px (half-step)
179
- md: y.create(3),
255
+ md: v.create(3),
180
256
  // 12px
181
- "3.5": y.create(3.5),
257
+ "3.5": v.create(3.5),
182
258
  // 14px (half-step)
183
259
  // Standard spacing (16-32px)
184
- base: y.create(4),
260
+ base: v.create(4),
185
261
  // 16px
186
- lg: y.create(6),
262
+ lg: v.create(6),
187
263
  // 24px
188
- xl: y.create(8),
264
+ xl: v.create(8),
189
265
  // 32px
190
266
  // Large spacing (40-64px)
191
- "2xl": y.create(10),
267
+ "2xl": v.create(10),
192
268
  // 40px
193
- "3xl": y.create(12),
269
+ "3xl": v.create(12),
194
270
  // 48px
195
- "4xl": y.create(16),
271
+ "4xl": v.create(16),
196
272
  // 64px
197
273
  // Extra large spacing (80px+)
198
- "5xl": y.create(20),
274
+ "5xl": v.create(20),
199
275
  // 80px
200
- "6xl": y.create(24)
276
+ "6xl": v.create(24)
201
277
  // 96px
202
278
  };
203
- function s(r, a = "p") {
204
- const t = de[r].tailwind;
279
+ function l(t, a = "p") {
280
+ const r = Se[t].tailwind;
205
281
  return `${{
206
282
  p: "p",
207
283
  m: "m",
@@ -222,14 +298,14 @@ function s(r, a = "p") {
222
298
  "gap-y": "gap-y",
223
299
  "space-x": "space-x",
224
300
  "space-y": "space-y"
225
- }[a]}-${t}`;
301
+ }[a]}-${r}`;
226
302
  }
227
- class w {
303
+ class k {
228
304
  /**
229
305
  * Create font size token
230
306
  */
231
307
  static createFontSize(a) {
232
- const t = {
308
+ const r = {
233
309
  "2xs": { px: 10, tailwind: "text-2xs" },
234
310
  // micro-text (badge counters, mini chips)
235
311
  xs: { px: 12, tailwind: "text-xs" },
@@ -244,17 +320,17 @@ class w {
244
320
  "6xl": { px: 60, tailwind: "text-6xl" }
245
321
  }[a];
246
322
  return {
247
- value: t.px,
248
- rem: `${t.px / 16}rem`,
249
- px: `${t.px}px`,
250
- tailwind: t.tailwind
323
+ value: r.px,
324
+ rem: `${r.px / 16}rem`,
325
+ px: `${r.px}px`,
326
+ tailwind: r.tailwind
251
327
  };
252
328
  }
253
329
  /**
254
330
  * Create line height token
255
331
  */
256
332
  static createLineHeight(a) {
257
- const t = {
333
+ const r = {
258
334
  none: { value: 1, tailwind: "leading-none" },
259
335
  tight: { value: 1.25, tailwind: "leading-tight" },
260
336
  snug: { value: 1.375, tailwind: "leading-snug" },
@@ -263,15 +339,15 @@ class w {
263
339
  loose: { value: 2, tailwind: "leading-loose" }
264
340
  }[a];
265
341
  return {
266
- value: t.value,
267
- tailwind: t.tailwind
342
+ value: r.value,
343
+ tailwind: r.tailwind
268
344
  };
269
345
  }
270
346
  /**
271
347
  * Create font weight token
272
348
  */
273
349
  static createFontWeight(a) {
274
- const t = {
350
+ const r = {
275
351
  light: { value: 300, tailwind: "font-light" },
276
352
  normal: { value: 400, tailwind: "font-normal" },
277
353
  medium: { value: 500, tailwind: "font-medium" },
@@ -279,83 +355,83 @@ class w {
279
355
  bold: { value: 700, tailwind: "font-bold" }
280
356
  }[a];
281
357
  return {
282
- value: t.value,
283
- tailwind: t.tailwind
358
+ value: r.value,
359
+ tailwind: r.tailwind
284
360
  };
285
361
  }
286
362
  /**
287
363
  * Create complete typography token
288
364
  */
289
- static create(a, i = "normal", t = "normal") {
365
+ static create(a, n = "normal", r = "normal") {
290
366
  return {
291
367
  fontSize: this.createFontSize(a),
292
- lineHeight: this.createLineHeight(i),
293
- fontWeight: this.createFontWeight(t)
368
+ lineHeight: this.createLineHeight(n),
369
+ fontWeight: this.createFontWeight(r)
294
370
  };
295
371
  }
296
372
  }
297
- w.createFontWeight("light"), w.createFontWeight("normal"), w.createFontWeight("medium"), w.createFontWeight("semibold"), w.createFontWeight("bold");
298
- const B = {
373
+ k.createFontWeight("light"), k.createFontWeight("normal"), k.createFontWeight("medium"), k.createFontWeight("semibold"), k.createFontWeight("bold");
374
+ const U = {
299
375
  // 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"),
376
+ h1: k.create("4xl", "tight", "bold"),
377
+ h2: k.create("3xl", "tight", "bold"),
378
+ h3: k.create("2xl", "snug", "semibold"),
379
+ h4: k.create("xl", "snug", "semibold"),
380
+ h5: k.create("lg", "normal", "medium"),
381
+ h6: k.create("base", "normal", "medium"),
306
382
  // Body text
307
- body: w.create("base", "relaxed", "normal"),
308
- bodySmall: w.create("sm", "relaxed", "normal"),
309
- bodyLarge: w.create("lg", "relaxed", "normal"),
383
+ body: k.create("base", "relaxed", "normal"),
384
+ bodySmall: k.create("sm", "relaxed", "normal"),
385
+ bodyLarge: k.create("lg", "relaxed", "normal"),
310
386
  // UI elements
311
- label: w.create("sm", "normal", "medium"),
312
- caption: w.create("xs", "normal", "normal"),
313
- button: w.create("base", "normal", "medium")
387
+ label: k.create("sm", "normal", "medium"),
388
+ caption: k.create("xs", "normal", "normal"),
389
+ button: k.create("base", "normal", "medium")
314
390
  };
315
- function W(r) {
316
- const a = B[r];
391
+ function R(t) {
392
+ const a = U[t];
317
393
  return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
318
394
  }
319
- function L(r) {
320
- return B[r].fontSize.tailwind;
395
+ function E(t) {
396
+ return U[t].fontSize.tailwind;
321
397
  }
322
- function U(r) {
323
- return B[r].fontWeight.tailwind;
398
+ function B(t) {
399
+ return U[t].fontWeight.tailwind;
324
400
  }
325
- function d(...r) {
326
- return le(se(r));
401
+ function f(...t) {
402
+ return pe(fe(t));
327
403
  }
328
- const H = (r, a) => {
329
- const i = oe(r, a);
330
- return ((t) => {
331
- const n = i(t);
332
- return d(n);
404
+ const P = (t, a) => {
405
+ const n = ue(t, a);
406
+ return ((r) => {
407
+ const i = n(r);
408
+ return f(i);
333
409
  });
334
- }, fe = H(
410
+ }, Q = P(
335
411
  // Base classes
336
- d(
412
+ f(
337
413
  "inline-flex",
338
414
  "items-center",
339
415
  "font-medium",
340
- T("full"),
341
- s("xs", "gap")
416
+ F("full"),
417
+ l("xs", "gap")
342
418
  ),
343
419
  {
344
420
  variants: {
345
421
  variant: {
346
- default: d(
422
+ default: f(
347
423
  "bg-surface-muted",
348
424
  "text-fg-primary",
349
425
  "border",
350
426
  "border-line-default"
351
427
  ),
352
- outlined: d(
428
+ outlined: f(
353
429
  "bg-transparent",
354
430
  "text-fg-primary",
355
431
  "border",
356
432
  "border-line-default"
357
433
  ),
358
- filled: d(
434
+ filled: f(
359
435
  "bg-surface-brand-strong",
360
436
  "text-fg-inverse",
361
437
  "border",
@@ -363,24 +439,24 @@ const H = (r, a) => {
363
439
  )
364
440
  },
365
441
  size: {
366
- sm: d(
367
- s("xs", "px"),
368
- s("xs", "py"),
369
- L("caption")
442
+ sm: f(
443
+ l("xs", "px"),
444
+ l("xs", "py"),
445
+ E("caption")
370
446
  ),
371
- md: d(
372
- s("sm", "px"),
373
- s("xs", "py"),
374
- L("bodySmall")
447
+ md: f(
448
+ l("sm", "px"),
449
+ l("xs", "py"),
450
+ E("bodySmall")
375
451
  ),
376
- lg: d(
377
- s("md", "px"),
378
- s("sm", "py"),
379
- L("body")
452
+ lg: f(
453
+ l("md", "px"),
454
+ l("sm", "py"),
455
+ E("body")
380
456
  )
381
457
  },
382
458
  selected: {
383
- true: d(
459
+ true: f(
384
460
  "bg-surface-brand-strong",
385
461
  "text-fg-inverse",
386
462
  "border",
@@ -420,68 +496,70 @@ const H = (r, a) => {
420
496
  disabled: !1
421
497
  }
422
498
  }
423
- ), pe = V(function(N, h) {
424
- var M = N, {
425
- children: a,
499
+ ), Te = O(function(a, n) {
500
+ const {
501
+ children: r,
426
502
  variant: i = "default",
427
- size: t = "md",
428
- onRemove: n,
429
- selected: o = !1,
430
- disabled: c = !1,
431
- className: f = "",
503
+ size: s = "md",
504
+ selected: c = !1,
505
+ disabled: d = !1,
506
+ className: p = "",
432
507
  "aria-label": m,
433
- onClick: p,
434
- tabIndex: b
435
- } = M, g = x(M, [
436
- "children",
437
- "variant",
438
- "size",
439
- "onRemove",
440
- "selected",
441
- "disabled",
442
- "className",
443
- "aria-label",
444
- "onClick",
445
- "tabIndex"
446
- ]);
447
- const R = (() => {
508
+ tabIndex: u,
509
+ asChild: x = !1
510
+ } = a, $ = (() => {
448
511
  if (m) return m;
449
- if (typeof a == "string") return a;
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;
512
+ if (typeof r == "string") return r;
513
+ if (typeof r == "object" && r !== null && "props" in r) {
514
+ const M = r.props;
515
+ if (M != null && M.children && typeof M.children == "string")
516
+ return M.children;
454
517
  }
455
- })(), q = p !== void 0, Q = q && !c, Z = (S) => {
456
- c || (S.key === "Enter" || S.key === " ") && (S.preventDefault(), p == null || p());
518
+ })();
519
+ if (x)
520
+ return /* @__PURE__ */ o(
521
+ he,
522
+ {
523
+ ref: n,
524
+ className: f(
525
+ Q({ variant: i, size: s, selected: c, disabled: d }),
526
+ p
527
+ ),
528
+ "aria-label": m,
529
+ "aria-disabled": d || void 0,
530
+ tabIndex: u,
531
+ children: r
532
+ }
533
+ );
534
+ const { onRemove: C, onClick: L } = a, q = L !== void 0, te = q && !d, re = (M) => {
535
+ d || (M.key === "Enter" || M.key === " ") && (M.preventDefault(), L == null || L());
457
536
  };
458
- return /* @__PURE__ */ $(
537
+ return /* @__PURE__ */ T(
459
538
  "div",
460
- v(u({
461
- ref: h,
462
- className: d(
463
- fe({ variant: i, size: t, selected: o, disabled: c }),
464
- n && s("xs", "pr"),
465
- f
539
+ {
540
+ ref: n,
541
+ className: f(
542
+ Q({ variant: i, size: s, selected: c, disabled: d }),
543
+ C && l("xs", "pr"),
544
+ p
466
545
  ),
467
- "aria-disabled": c
468
- }, g), {
546
+ "aria-disabled": d,
469
547
  children: [
470
- q ? /* @__PURE__ */ l(
548
+ q ? /* @__PURE__ */ o(
471
549
  "button",
472
550
  {
473
551
  type: "button",
474
- onClick: c ? void 0 : p,
475
- onKeyDown: Z,
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,
480
- className: d(
552
+ onClick: d ? void 0 : L,
553
+ onKeyDown: re,
554
+ disabled: d,
555
+ "aria-pressed": c ? !0 : void 0,
556
+ "aria-label": m || $,
557
+ tabIndex: u !== void 0 ? u : te ? 0 : void 0,
558
+ className: f(
481
559
  "flex-1",
482
560
  "bg-transparent",
483
561
  "border-0",
484
- s("none", "p"),
562
+ l("none", "p"),
485
563
  "text-inherit",
486
564
  "text-left",
487
565
  "cursor-pointer",
@@ -489,124 +567,162 @@ const H = (r, a) => {
489
567
  "focus:ring-2",
490
568
  "focus:ring-line-focus",
491
569
  "focus:ring-offset-2",
492
- T("full")
570
+ F("full")
493
571
  ),
494
- children: a
572
+ children: r
495
573
  }
496
- ) : /* @__PURE__ */ l("span", { children: a }),
497
- n && !c && /* @__PURE__ */ l(
574
+ ) : /* @__PURE__ */ o("span", { children: r }),
575
+ C && !d && /* @__PURE__ */ o(
498
576
  "button",
499
577
  {
500
578
  type: "button",
501
- onClick: (S) => {
502
- S.stopPropagation(), n();
579
+ onClick: (M) => {
580
+ M.stopPropagation(), C();
503
581
  },
504
- className: d(
505
- s("xs", "ml"),
582
+ className: f(
583
+ l("xs", "ml"),
506
584
  "hover:bg-tint-hover",
507
- T("full"),
508
- s("xs", "p"),
585
+ F("full"),
586
+ l("xs", "p"),
509
587
  "transition-colors",
510
588
  "focus:outline-none",
511
589
  "focus:ring-2",
512
590
  "focus:ring-line-focus",
513
591
  "focus:ring-offset-1"
514
592
  ),
515
- "aria-label": `Remove ${R || "chip"}`,
516
- children: /* @__PURE__ */ l(re, { className: "h-3 w-3", "aria-hidden": "true" })
593
+ "aria-label": `Remove ${$ || "chip"}`,
594
+ children: /* @__PURE__ */ o(oe, { className: "h-3 w-3", "aria-hidden": "true" })
517
595
  }
518
596
  )
519
597
  ]
520
- })
598
+ }
521
599
  );
522
600
  });
523
- pe.displayName = "Chip";
524
- function Ae(n) {
525
- var o = n, {
526
- message: r,
601
+ Te.displayName = "Chip";
602
+ function Xe(i) {
603
+ var s = i, {
604
+ message: t,
527
605
  id: a,
528
- className: i = ""
529
- } = o, t = x(o, [
606
+ className: n = ""
607
+ } = s, r = y(s, [
530
608
  "message",
531
609
  "id",
532
610
  "className"
533
611
  ]);
534
612
  const c = [
535
- s("xs", "mt"),
536
- L("bodySmall"),
613
+ l("xs", "mt"),
614
+ E("bodySmall"),
537
615
  "text-fg-error",
538
616
  "flex",
539
617
  "items-center",
540
- s("xs", "gap")
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 })
618
+ l("xs", "gap")
619
+ ], d = f(...c, n);
620
+ return /* @__PURE__ */ T("div", w(b({ role: "alert", id: a, className: d, "aria-live": "polite" }, r), { children: [
621
+ /* @__PURE__ */ o(ce, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
622
+ /* @__PURE__ */ o("span", { children: t })
545
623
  ] }));
546
624
  }
547
- function We(t) {
548
- var n = t, {
549
- variant: r = "info",
625
+ function Ye(r) {
626
+ var i = r, {
627
+ variant: t = "info",
550
628
  className: a
551
- } = n, i = x(n, [
629
+ } = i, n = y(i, [
552
630
  "variant",
553
631
  "className"
554
632
  ]);
555
- const o = {
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")
633
+ const s = {
634
+ warning: f("bg-warning-bg", "text-warning-dark", "border-warning"),
635
+ error: f("bg-error-bg", "text-error-dark", "border-error"),
636
+ info: f("bg-info-bg", "text-info-dark", "border-info")
559
637
  };
560
- return /* @__PURE__ */ l(
638
+ return /* @__PURE__ */ o(
561
639
  "div",
562
- u({
640
+ b({
563
641
  role: "alert",
564
- className: d(
642
+ className: f(
565
643
  "border",
566
- s("base", "px"),
567
- s("sm", "py"),
568
- T("lg"),
569
- o[r],
644
+ l("base", "px"),
645
+ l("sm", "py"),
646
+ F("lg"),
647
+ s[t],
570
648
  a
571
649
  )
572
- }, i)
650
+ }, n)
573
651
  );
574
652
  }
575
- function e(r, a, i) {
576
- const t = ue(r), n = me(r);
653
+ function g(t, a, n) {
654
+ const r = Ce(t), i = Me(t);
577
655
  return {
578
- hex: r,
579
- rgb: t,
580
- hsl: n,
581
- cssVar: `var(--color-${a}-${i})`,
582
- tailwind: `${a}-${i}`
656
+ hex: t,
657
+ rgb: r,
658
+ hsl: i,
659
+ cssVar: `var(--color-${a}-${n})`,
660
+ tailwind: `${a}-${n}`
583
661
  };
584
662
  }
585
- function ue(r) {
586
- const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
663
+ function Ce(t) {
664
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
587
665
  return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
588
666
  }
589
- function me(r) {
590
- const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
667
+ function Me(t) {
668
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
591
669
  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);
593
- 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) {
598
- case i:
599
- f = ((t - n) / b + (t < n ? 6 : 0)) / 6;
670
+ const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, r, i), c = Math.min(n, r, i);
671
+ let d = 0, p = 0;
672
+ const m = (s + c) / 2;
673
+ if (s !== c) {
674
+ const u = s - c;
675
+ switch (p = m > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
676
+ case n:
677
+ d = ((r - i) / u + (r < i ? 6 : 0)) / 6;
600
678
  break;
601
- case t:
602
- f = ((n - i) / b + 2) / 6;
679
+ case r:
680
+ d = ((i - n) / u + 2) / 6;
681
+ break;
682
+ case i:
683
+ d = ((n - r) / u + 4) / 6;
603
684
  break;
685
+ }
686
+ }
687
+ return `${Math.round(d * 360)}, ${Math.round(p * 100)}%, ${Math.round(m * 100)}%`;
688
+ }
689
+ 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);
690
+ 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);
691
+ function e(t, a, n) {
692
+ const r = Fe(t), i = Le(t);
693
+ return {
694
+ hex: t,
695
+ rgb: r,
696
+ hsl: i,
697
+ cssVar: `var(--color-${a}-${n})`,
698
+ tailwind: `${a}-${n}`
699
+ };
700
+ }
701
+ function Fe(t) {
702
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
703
+ return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
704
+ }
705
+ function Le(t) {
706
+ const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
707
+ if (!a) return "0, 0%, 0%";
708
+ const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, r, i), c = Math.min(n, r, i);
709
+ let d = 0, p = 0;
710
+ const m = (s + c) / 2;
711
+ if (s !== c) {
712
+ const u = s - c;
713
+ switch (p = m > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
604
714
  case n:
605
- f = ((i - t) / b + 4) / 6;
715
+ d = ((r - i) / u + (r < i ? 6 : 0)) / 6;
716
+ break;
717
+ case r:
718
+ d = ((i - n) / u + 2) / 6;
719
+ break;
720
+ case i:
721
+ d = ((n - r) / u + 4) / 6;
606
722
  break;
607
723
  }
608
724
  }
609
- return `${Math.round(f * 360)}, ${Math.round(m * 100)}%, ${Math.round(p * 100)}%`;
725
+ return `${Math.round(d * 360)}, ${Math.round(p * 100)}%, ${Math.round(m * 100)}%`;
610
726
  }
611
727
  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);
612
728
  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);
@@ -627,7 +743,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
627
743
  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);
628
744
  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);
629
745
  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);
630
- class D {
746
+ class j {
631
747
  /**
632
748
  * Create a shadow token
633
749
  */
@@ -671,13 +787,13 @@ class D {
671
787
  }[a];
672
788
  }
673
789
  }
674
- D.create("none"), D.create("sm"), D.create("md"), D.create("lg"), D.create("xl"), D.create("2xl"), D.create("inner");
675
- class F {
790
+ j.create("none"), j.create("sm"), j.create("md"), j.create("lg"), j.create("xl"), j.create("2xl"), j.create("inner");
791
+ class z {
676
792
  /**
677
793
  * Create a border width token
678
794
  */
679
795
  static createWidth(a) {
680
- const t = {
796
+ const r = {
681
797
  none: {
682
798
  px: 0,
683
799
  tailwind: "border-0"
@@ -700,29 +816,29 @@ class F {
700
816
  }
701
817
  }[a];
702
818
  return {
703
- value: t.px,
704
- px: `${t.px}px`,
705
- tailwind: t.tailwind
819
+ value: r.px,
820
+ px: `${r.px}px`,
821
+ tailwind: r.tailwind
706
822
  };
707
823
  }
708
824
  /**
709
825
  * Create a complete border token
710
826
  */
711
- static create(a, i = "solid") {
827
+ static create(a, n = "solid") {
712
828
  return {
713
829
  width: this.createWidth(a),
714
- style: i,
715
- description: `${a} ${i} border`
830
+ style: n,
831
+ description: `${a} ${n} border`
716
832
  };
717
833
  }
718
834
  }
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");
720
- class E {
835
+ 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");
836
+ class D {
721
837
  /**
722
838
  * Create breakpoint token
723
839
  */
724
840
  static create(a) {
725
- const t = {
841
+ const r = {
726
842
  sm: { minWidth: 640, tailwind: "sm" },
727
843
  md: { minWidth: 768, tailwind: "md" },
728
844
  lg: { minWidth: 1024, tailwind: "lg" },
@@ -731,20 +847,20 @@ class E {
731
847
  }[a];
732
848
  return {
733
849
  name: a,
734
- minWidth: t.minWidth,
735
- px: `${t.minWidth}px`,
736
- rem: `${t.minWidth / 16}rem`,
737
- tailwind: t.tailwind
850
+ minWidth: r.minWidth,
851
+ px: `${r.minWidth}px`,
852
+ rem: `${r.minWidth / 16}rem`,
853
+ tailwind: r.tailwind
738
854
  };
739
855
  }
740
856
  }
741
- E.create("sm"), E.create("md"), E.create("lg"), E.create("xl"), E.create("2xl");
742
- class A {
857
+ D.create("sm"), D.create("md"), D.create("lg"), D.create("xl"), D.create("2xl");
858
+ class W {
743
859
  /**
744
860
  * Create an animation token
745
861
  */
746
- static create(a, i = "ease-in-out") {
747
- const t = {
862
+ static create(a, n = "ease-in-out") {
863
+ const r = {
748
864
  fast: {
749
865
  value: "150ms",
750
866
  ms: 150,
@@ -765,7 +881,7 @@ class A {
765
881
  ms: 500,
766
882
  tailwind: "duration-500"
767
883
  }
768
- }, n = {
884
+ }, i = {
769
885
  "ease-in": {
770
886
  value: "cubic-bezier(0.4, 0, 1, 1)",
771
887
  tailwind: "ease-in",
@@ -788,31 +904,31 @@ class A {
788
904
  }
789
905
  };
790
906
  return {
791
- duration: t[a],
792
- easing: n[i]
907
+ duration: r[a],
908
+ easing: i[n]
793
909
  };
794
910
  }
795
911
  /**
796
912
  * Create a transition token
797
913
  */
798
- static createTransition(a, i = "base", t = "ease-in-out") {
799
- const n = this.create(i, t), o = Array.isArray(a) ? a.join(", ") : a, c = [
800
- n.duration.tailwind,
801
- n.easing.tailwind
914
+ static createTransition(a, n = "base", r = "ease-in-out") {
915
+ const i = this.create(n, r), s = Array.isArray(a) ? a.join(", ") : a, c = [
916
+ i.duration.tailwind,
917
+ i.easing.tailwind
802
918
  ].join(" ");
803
919
  return {
804
- property: o,
805
- duration: n.duration.value,
806
- timingFunction: n.easing.value,
920
+ property: s,
921
+ duration: i.duration.value,
922
+ timingFunction: i.easing.value,
807
923
  tailwind: c
808
924
  };
809
925
  }
810
926
  }
811
- A.create("fast"), A.create("base"), A.create("slow"), A.create("slower"), A.createTransition(
927
+ W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
812
928
  ["color", "background-color", "border-color"],
813
929
  "base"
814
- ), A.createTransition("opacity", "fast"), A.createTransition("transform", "base"), A.createTransition("all", "base");
815
- class z {
930
+ ), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
931
+ class A {
816
932
  /**
817
933
  * Create a z-index token
818
934
  */
@@ -866,13 +982,13 @@ class z {
866
982
  }[a];
867
983
  }
868
984
  }
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 {
985
+ A.create("base"), A.create("dropdown"), A.create("sticky"), A.create("fixed"), A.create("modal-backdrop"), A.create("modal"), A.create("popover"), A.create("tooltip"), A.create("toast");
986
+ class N {
871
987
  /**
872
988
  * Create an opacity token
873
989
  */
874
990
  static create(a) {
875
- const i = a / 100, t = {
991
+ const n = a / 100, r = {
876
992
  0: "Fully transparent",
877
993
  5: "Very light overlay",
878
994
  10: "Light overlay",
@@ -891,7 +1007,7 @@ class k {
891
1007
  };
892
1008
  return {
893
1009
  value: a,
894
- decimal: i,
1010
+ decimal: n,
895
1011
  tailwind: {
896
1012
  0: "opacity-0",
897
1013
  5: "opacity-5",
@@ -909,12 +1025,12 @@ class k {
909
1025
  95: "opacity-95",
910
1026
  100: "opacity-100"
911
1027
  }[a],
912
- description: t[a]
1028
+ description: r[a]
913
1029
  };
914
1030
  }
915
1031
  }
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", {
1032
+ 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);
1033
+ const ze = P("w-full", {
918
1034
  variants: {
919
1035
  size: {
920
1036
  sm: "h-1",
@@ -934,7 +1050,7 @@ const be = H("w-full", {
934
1050
  size: "md",
935
1051
  variant: "primary"
936
1052
  }
937
- }), G = H("transition-all", {
1053
+ }), J = P("transition-all", {
938
1054
  variants: {
939
1055
  variant: {
940
1056
  primary: "bg-surface-brand",
@@ -948,17 +1064,17 @@ const be = H("w-full", {
948
1064
  defaultVariants: {
949
1065
  variant: "primary"
950
1066
  }
951
- }), ge = V(function(g, b) {
952
- var h = g, {
1067
+ }), Ae = O(function(x, u) {
1068
+ var h = x, {
953
1069
  value: a,
954
- max: i = 100,
955
- variant: t = "primary",
956
- size: n = "md",
957
- showLabel: o = !1,
1070
+ max: n = 100,
1071
+ variant: r = "primary",
1072
+ size: i = "md",
1073
+ showLabel: s = !1,
958
1074
  label: c,
959
- "aria-label": f,
960
- className: m = ""
961
- } = h, p = x(h, [
1075
+ "aria-label": d,
1076
+ className: p = ""
1077
+ } = h, m = y(h, [
962
1078
  "value",
963
1079
  "max",
964
1080
  "variant",
@@ -968,38 +1084,38 @@ const be = H("w-full", {
968
1084
  "aria-label",
969
1085
  "className"
970
1086
  ]);
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__ */ $(
1087
+ const $ = a === void 0, C = $ ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), L = d || ($ ? "Loading in progress" : `Progress: ${C == null ? void 0 : C.toFixed(0)}%`);
1088
+ return /* @__PURE__ */ T("div", w(b({ ref: u, className: f("w-full", p) }, m), { children: [
1089
+ s && (c || !$) && /* @__PURE__ */ T(
974
1090
  "div",
975
1091
  {
976
- className: d(
1092
+ className: f(
977
1093
  "flex",
978
1094
  "items-center",
979
1095
  "justify-between",
980
- s("xs", "mb")
1096
+ l("xs", "mb")
981
1097
  ),
982
1098
  children: [
983
- c && /* @__PURE__ */ l(
1099
+ c && /* @__PURE__ */ o(
984
1100
  "span",
985
1101
  {
986
- className: d(
987
- L("bodySmall"),
988
- U("label"),
1102
+ className: f(
1103
+ E("bodySmall"),
1104
+ B("label"),
989
1105
  "text-fg-primary"
990
1106
  ),
991
1107
  children: c
992
1108
  }
993
1109
  ),
994
- !N && M !== void 0 && /* @__PURE__ */ $(
1110
+ !$ && C !== void 0 && /* @__PURE__ */ T(
995
1111
  "span",
996
1112
  {
997
- className: d(
998
- L("bodySmall"),
1113
+ className: f(
1114
+ E("bodySmall"),
999
1115
  "text-fg-secondary"
1000
1116
  ),
1001
1117
  children: [
1002
- M.toFixed(0),
1118
+ C.toFixed(0),
1003
1119
  "%"
1004
1120
  ]
1005
1121
  }
@@ -1007,32 +1123,32 @@ const be = H("w-full", {
1007
1123
  ]
1008
1124
  }
1009
1125
  ),
1010
- /* @__PURE__ */ l(
1126
+ /* @__PURE__ */ o(
1011
1127
  "div",
1012
1128
  {
1013
1129
  role: "progressbar",
1014
- "aria-valuemin": N ? void 0 : 0,
1015
- "aria-valuemax": N ? void 0 : i,
1016
- "aria-valuenow": N ? void 0 : a,
1017
- "aria-label": j,
1018
- "aria-busy": N,
1019
- className: d(
1130
+ "aria-valuemin": $ ? void 0 : 0,
1131
+ "aria-valuemax": $ ? void 0 : n,
1132
+ "aria-valuenow": $ ? void 0 : a,
1133
+ "aria-label": L,
1134
+ "aria-busy": $,
1135
+ className: f(
1020
1136
  "relative",
1021
1137
  "w-full",
1022
1138
  "overflow-hidden",
1023
- be({ size: n, variant: t }),
1024
- T("full")
1139
+ ze({ size: i, variant: r }),
1140
+ F("full")
1025
1141
  ),
1026
- children: N ? /* @__PURE__ */ l(
1142
+ children: $ ? /* @__PURE__ */ o(
1027
1143
  "div",
1028
1144
  {
1029
- className: d(
1145
+ className: f(
1030
1146
  "absolute",
1031
1147
  "top-0",
1032
1148
  "left-0",
1033
1149
  "bottom-0",
1034
- G({ variant: t }),
1035
- T("full"),
1150
+ J({ variant: r }),
1151
+ F("full"),
1036
1152
  "motion-reduce:animate-none"
1037
1153
  ),
1038
1154
  style: {
@@ -1040,19 +1156,19 @@ const be = H("w-full", {
1040
1156
  animation: "progress-indeterminate 1.5s ease-in-out infinite"
1041
1157
  }
1042
1158
  }
1043
- ) : /* @__PURE__ */ l(
1159
+ ) : /* @__PURE__ */ o(
1044
1160
  "div",
1045
1161
  {
1046
- className: d(
1162
+ className: f(
1047
1163
  "h-full",
1048
- G({ variant: t }),
1049
- T("full"),
1164
+ J({ variant: r }),
1165
+ F("full"),
1050
1166
  "transition-all",
1051
1167
  "duration-300",
1052
1168
  "ease-out"
1053
1169
  ),
1054
1170
  style: {
1055
- width: `${M}%`
1171
+ width: `${C}%`
1056
1172
  },
1057
1173
  "aria-hidden": "true"
1058
1174
  }
@@ -1061,16 +1177,16 @@ const be = H("w-full", {
1061
1177
  )
1062
1178
  ] }));
1063
1179
  });
1064
- ge.displayName = "Progress";
1065
- function De(f) {
1066
- var m = f, {
1067
- variant: r = "text",
1180
+ Ae.displayName = "Progress";
1181
+ function Ze(d) {
1182
+ var p = d, {
1183
+ variant: t = "text",
1068
1184
  width: a,
1069
- height: i,
1070
- lines: t = 1,
1071
- className: n = "",
1072
- "aria-label": o
1073
- } = m, c = x(m, [
1185
+ height: n,
1186
+ lines: r = 1,
1187
+ className: i = "",
1188
+ "aria-label": s
1189
+ } = p, c = y(p, [
1074
1190
  "variant",
1075
1191
  "width",
1076
1192
  "height",
@@ -1078,48 +1194,48 @@ function De(f) {
1078
1194
  "className",
1079
1195
  "aria-label"
1080
1196
  ]);
1081
- const p = [
1197
+ const m = [
1082
1198
  "motion-safe:animate-pulse",
1083
1199
  "bg-surface-muted",
1084
- T("sm")
1085
- ], b = {
1200
+ F("sm")
1201
+ ], u = {
1086
1202
  text: "h-4",
1087
1203
  card: "h-32",
1088
1204
  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(
1205
+ circle: F("full")
1206
+ }, x = f(...m, u[t], i), h = {};
1207
+ a && (h.width = a), n && (h.height = n);
1208
+ const $ = s || `Loading ${t} content`;
1209
+ return t === "text" && r > 1 ? /* @__PURE__ */ o(
1094
1210
  "div",
1095
- v(u({
1096
- className: s("sm", "space-y"),
1211
+ w(b({
1212
+ className: l("sm", "space-y"),
1097
1213
  role: "status",
1098
1214
  "aria-busy": "true",
1099
- "aria-label": N
1215
+ "aria-label": $
1100
1216
  }, c), {
1101
- children: Array.from({ length: t }).map((M, j) => /* @__PURE__ */ l(
1217
+ children: Array.from({ length: r }).map((C, L) => /* @__PURE__ */ o(
1102
1218
  "div",
1103
1219
  {
1104
- className: g,
1105
- style: j === t - 1 ? { width: "75%" } : h,
1220
+ className: x,
1221
+ style: L === r - 1 ? { width: "75%" } : h,
1106
1222
  "aria-hidden": "true"
1107
1223
  },
1108
- j
1224
+ L
1109
1225
  ))
1110
1226
  })
1111
- ) : /* @__PURE__ */ l(
1227
+ ) : /* @__PURE__ */ o(
1112
1228
  "div",
1113
- u({
1114
- className: g,
1229
+ b({
1230
+ className: x,
1115
1231
  style: h,
1116
1232
  role: "status",
1117
1233
  "aria-busy": "true",
1118
- "aria-label": N
1234
+ "aria-label": $
1119
1235
  }, c)
1120
1236
  );
1121
1237
  }
1122
- const xe = H("motion-safe:animate-spin", {
1238
+ const Ee = P("motion-safe:animate-spin", {
1123
1239
  variants: {
1124
1240
  size: {
1125
1241
  sm: "h-4 w-4",
@@ -1136,52 +1252,52 @@ const xe = H("motion-safe:animate-spin", {
1136
1252
  size: "md",
1137
1253
  variant: "primary"
1138
1254
  }
1139
- }), he = te(function(c) {
1140
- var f = c, {
1255
+ }), Ie = le(function(c) {
1256
+ var d = c, {
1141
1257
  size: a = "md",
1142
- variant: i = "primary",
1143
- label: t,
1144
- className: n = ""
1145
- } = f, o = x(f, [
1258
+ variant: n = "primary",
1259
+ label: r,
1260
+ className: i = ""
1261
+ } = d, s = y(d, [
1146
1262
  "size",
1147
1263
  "variant",
1148
1264
  "label",
1149
1265
  "className"
1150
1266
  ]);
1151
- return /* @__PURE__ */ $(
1267
+ return /* @__PURE__ */ T(
1152
1268
  "div",
1153
- v(u({
1154
- className: d("inline-flex", "items-center", n),
1269
+ w(b({
1270
+ className: f("inline-flex", "items-center", i),
1155
1271
  role: "status",
1156
- "aria-label": t || "Loading",
1272
+ "aria-label": r || "Loading",
1157
1273
  "aria-live": "polite"
1158
- }, o), {
1274
+ }, s), {
1159
1275
  children: [
1160
- /* @__PURE__ */ l(
1161
- ne,
1276
+ /* @__PURE__ */ o(
1277
+ de,
1162
1278
  {
1163
- className: d(xe({ size: a, variant: i })),
1279
+ className: f(Ee({ size: a, variant: n })),
1164
1280
  "aria-hidden": "true"
1165
1281
  }
1166
1282
  ),
1167
- t && /* @__PURE__ */ l(
1283
+ r && /* @__PURE__ */ o(
1168
1284
  "span",
1169
1285
  {
1170
- className: d(
1171
- s("sm", "ml"),
1172
- L("bodySmall"),
1286
+ className: f(
1287
+ l("sm", "ml"),
1288
+ E("bodySmall"),
1173
1289
  "text-fg-secondary",
1174
1290
  "sr-only"
1175
1291
  ),
1176
- children: t
1292
+ children: r
1177
1293
  }
1178
1294
  )
1179
1295
  ]
1180
1296
  })
1181
1297
  );
1182
1298
  });
1183
- he.displayName = "Spinner";
1184
- const ye = {
1299
+ Ie.displayName = "Spinner";
1300
+ const We = {
1185
1301
  primary: {
1186
1302
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1187
1303
  light: "text-indigo-400",
@@ -1233,16 +1349,16 @@ const ye = {
1233
1349
  contrast: "text-fg-inverse"
1234
1350
  }
1235
1351
  };
1236
- function we(p, m) {
1237
- var b = p, {
1238
- variant: r = "paragraph",
1352
+ function Re(m, p) {
1353
+ var u = m, {
1354
+ variant: t = "paragraph",
1239
1355
  bold: a,
1240
- italic: i,
1241
- className: t,
1242
- as: n,
1243
- colorRole: o = "neutral",
1356
+ italic: n,
1357
+ className: r,
1358
+ as: i,
1359
+ colorRole: s = "neutral",
1244
1360
  colorShade: c = "dark"
1245
- } = b, f = x(b, [
1361
+ } = u, d = y(u, [
1246
1362
  "variant",
1247
1363
  "bold",
1248
1364
  "italic",
@@ -1251,12 +1367,12 @@ function we(p, m) {
1251
1367
  "colorRole",
1252
1368
  "colorShade"
1253
1369
  ]);
1254
- const g = [];
1370
+ const x = [];
1255
1371
  let h;
1256
- if (n)
1257
- h = n;
1372
+ if (i)
1373
+ h = i;
1258
1374
  else
1259
- switch (r) {
1375
+ switch (t) {
1260
1376
  case "heading":
1261
1377
  h = "h2";
1262
1378
  break;
@@ -1267,25 +1383,25 @@ function we(p, m) {
1267
1383
  h = "p";
1268
1384
  break;
1269
1385
  }
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));
1386
+ return t === "heading" ? x.push(R("h2")) : t === "body" || t === "paragraph" ? x.push(R("body")) : t === "bodySmall" ? x.push(R("bodySmall")) : t === "bodyLarge" ? x.push(R("bodyLarge")) : t === "caption" ? x.push(R("caption")) : t === "label" ? x.push(R("label")) : x.push(R("body")), a && x.push("font-bold"), n && x.push("italic"), x.push(We[s][c]), /* @__PURE__ */ o(h, b({ ref: p, className: f(...x, r) }, d));
1271
1387
  }
1272
- const je = V(we), ve = {
1388
+ const Ge = O(Re), je = {
1273
1389
  sm: "max-w-screen-sm",
1274
1390
  md: "max-w-screen-md",
1275
1391
  lg: "max-w-screen-lg",
1276
1392
  xl: "max-w-screen-xl",
1277
1393
  "2xl": "max-w-screen-2xl",
1278
1394
  full: "max-w-full"
1279
- }, ke = Y.forwardRef(
1280
- (m, f) => {
1281
- var p = m, {
1282
- className: r,
1395
+ }, De = ee.forwardRef(
1396
+ (p, d) => {
1397
+ var m = p, {
1398
+ className: t,
1283
1399
  maxWidth: a = "lg",
1284
- paddingX: i = "base",
1285
- paddingY: t = "base",
1286
- center: n = !0,
1287
- children: o
1288
- } = p, c = x(p, [
1400
+ paddingX: n = "base",
1401
+ paddingY: r = "base",
1402
+ center: i = !0,
1403
+ children: s
1404
+ } = m, c = y(m, [
1289
1405
  "className",
1290
1406
  "maxWidth",
1291
1407
  "paddingX",
@@ -1293,35 +1409,35 @@ const je = V(we), ve = {
1293
1409
  "center",
1294
1410
  "children"
1295
1411
  ]);
1296
- return /* @__PURE__ */ l(
1412
+ return /* @__PURE__ */ o(
1297
1413
  "div",
1298
- v(u({
1299
- ref: f,
1300
- className: d(
1414
+ w(b({
1415
+ ref: d,
1416
+ className: f(
1301
1417
  "w-full",
1302
- ve[a],
1303
- s(i, "px"),
1304
- s(t, "py"),
1305
- n && "mx-auto",
1306
- r
1418
+ je[a],
1419
+ l(n, "px"),
1420
+ l(r, "py"),
1421
+ i && "mx-auto",
1422
+ t
1307
1423
  )
1308
1424
  }, c), {
1309
- children: o
1425
+ children: s
1310
1426
  })
1311
1427
  );
1312
1428
  }
1313
1429
  );
1314
- ke.displayName = "Container";
1315
- const Ne = Y.forwardRef(
1316
- (m, f) => {
1317
- var p = m, {
1318
- className: r,
1430
+ De.displayName = "Container";
1431
+ const _e = ee.forwardRef(
1432
+ (p, d) => {
1433
+ var m = p, {
1434
+ className: t,
1319
1435
  spacing: a = "base",
1320
- align: i = "stretch",
1321
- justify: t = "start",
1322
- direction: n = "column",
1323
- children: o
1324
- } = p, c = x(p, [
1436
+ align: n = "stretch",
1437
+ justify: r = "start",
1438
+ direction: i = "column",
1439
+ children: s
1440
+ } = m, c = y(m, [
1325
1441
  "className",
1326
1442
  "spacing",
1327
1443
  "align",
@@ -1329,7 +1445,7 @@ const Ne = Y.forwardRef(
1329
1445
  "direction",
1330
1446
  "children"
1331
1447
  ]);
1332
- const b = n === "column" ? s(a, "gap-y") : s(a, "gap-x"), g = {
1448
+ const u = i === "column" ? l(a, "gap-y") : l(a, "gap-x"), x = {
1333
1449
  start: "items-start",
1334
1450
  center: "items-center",
1335
1451
  end: "items-end",
@@ -1342,65 +1458,65 @@ const Ne = Y.forwardRef(
1342
1458
  around: "justify-around",
1343
1459
  evenly: "justify-evenly"
1344
1460
  };
1345
- return /* @__PURE__ */ l(
1461
+ return /* @__PURE__ */ o(
1346
1462
  "div",
1347
- v(u({
1348
- ref: f,
1349
- className: d(
1463
+ w(b({
1464
+ ref: d,
1465
+ className: f(
1350
1466
  "flex",
1351
- n === "column" ? "flex-col" : "flex-row",
1352
- b,
1353
- g[i],
1354
- h[t],
1355
- r
1467
+ i === "column" ? "flex-col" : "flex-row",
1468
+ u,
1469
+ x[n],
1470
+ h[r],
1471
+ t
1356
1472
  )
1357
1473
  }, c), {
1358
- children: o
1474
+ children: s
1359
1475
  })
1360
1476
  );
1361
1477
  }
1362
1478
  );
1363
- Ne.displayName = "Stack";
1364
- const $e = V(
1365
- function({ option: a, isHighlighted: i, onSelect: t }, n) {
1366
- const o = () => {
1367
- a.disabled || t(a);
1479
+ _e.displayName = "Stack";
1480
+ const Ve = O(
1481
+ function({ option: a, isHighlighted: n, onSelect: r }, i) {
1482
+ const s = () => {
1483
+ a.disabled || r(a);
1368
1484
  };
1369
- return /* @__PURE__ */ $(
1485
+ return /* @__PURE__ */ T(
1370
1486
  "div",
1371
1487
  {
1372
- ref: n,
1488
+ ref: i,
1373
1489
  role: "option",
1374
- "aria-selected": i,
1490
+ "aria-selected": n,
1375
1491
  "aria-disabled": a.disabled,
1376
- onClick: o,
1492
+ onClick: s,
1377
1493
  className: `
1378
1494
  flex
1379
1495
  items-center
1380
- ${s("sm", "gap")}
1381
- ${s("sm", "px")}
1382
- ${s("sm", "py")}
1496
+ ${l("sm", "gap")}
1497
+ ${l("sm", "px")}
1498
+ ${l("sm", "py")}
1383
1499
  text-sm
1384
1500
  cursor-pointer
1385
1501
  transition-colors
1386
- ${i ? "bg-surface-active" : ""}
1502
+ ${n ? "bg-surface-active" : ""}
1387
1503
  ${a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover"}
1388
1504
  `,
1389
1505
  children: [
1390
- a.icon && /* @__PURE__ */ l("span", { className: "flex-shrink-0", children: a.icon }),
1391
- /* @__PURE__ */ l("span", { className: "flex-1", children: a.label })
1506
+ a.icon && /* @__PURE__ */ o("span", { className: "flex-shrink-0", children: a.icon }),
1507
+ /* @__PURE__ */ o("span", { className: "flex-1", children: a.label })
1392
1508
  ]
1393
1509
  }
1394
1510
  );
1395
1511
  }
1396
1512
  );
1397
- $e.displayName = "AutocompleteOption";
1398
- function Ee(n) {
1399
- var o = n, {
1400
- items: r,
1513
+ Ve.displayName = "AutocompleteOption";
1514
+ function Qe(i) {
1515
+ var s = i, {
1516
+ items: t,
1401
1517
  separator: a = "/",
1402
- className: i = ""
1403
- } = o, t = x(o, [
1518
+ className: n = ""
1519
+ } = s, r = y(s, [
1404
1520
  "items",
1405
1521
  "separator",
1406
1522
  "className"
@@ -1408,218 +1524,218 @@ function Ee(n) {
1408
1524
  const c = [
1409
1525
  "flex",
1410
1526
  "items-center",
1411
- s("sm", "space-x"),
1412
- L("bodySmall")
1413
- ], f = d(...c, i);
1414
- return /* @__PURE__ */ l("nav", v(u({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ l(
1527
+ l("sm", "space-x"),
1528
+ E("bodySmall")
1529
+ ], d = f(...c, n);
1530
+ return /* @__PURE__ */ o("nav", w(b({ "aria-label": "Breadcrumb", className: d }, r), { children: /* @__PURE__ */ o(
1415
1531
  "ol",
1416
1532
  {
1417
- className: d("flex", "items-center", s("sm", "space-x")),
1418
- 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(
1533
+ className: f("flex", "items-center", l("sm", "space-x")),
1534
+ children: t.map((p, m) => {
1535
+ const u = m === t.length - 1;
1536
+ return /* @__PURE__ */ T("li", { className: "flex items-center", children: [
1537
+ m > 0 && /* @__PURE__ */ o(
1422
1538
  "span",
1423
1539
  {
1424
- className: d(
1425
- s("sm", "mx"),
1540
+ className: f(
1541
+ l("sm", "mx"),
1426
1542
  "text-fg-tertiary"
1427
1543
  ),
1428
1544
  "aria-hidden": "true",
1429
1545
  children: a
1430
1546
  }
1431
1547
  ),
1432
- b ? /* @__PURE__ */ l(
1548
+ u ? /* @__PURE__ */ o(
1433
1549
  "span",
1434
1550
  {
1435
- className: d(
1551
+ className: f(
1436
1552
  "text-fg-primary",
1437
- U("label")
1553
+ B("label")
1438
1554
  ),
1439
1555
  "aria-current": "page",
1440
- children: m.label
1556
+ children: p.label
1441
1557
  }
1442
- ) : m.href ? /* @__PURE__ */ l(
1558
+ ) : p.href ? /* @__PURE__ */ o(
1443
1559
  "a",
1444
1560
  {
1445
- href: m.href,
1446
- className: d(
1561
+ href: p.href,
1562
+ className: f(
1447
1563
  "inline-flex",
1448
1564
  "items-center",
1449
- s("xs", "px"),
1450
- s("xs", "pt"),
1565
+ l("xs", "px"),
1566
+ l("xs", "pt"),
1451
1567
  "border-b-2",
1452
1568
  "border-transparent",
1453
- L("bodySmall"),
1454
- U("label"),
1569
+ E("bodySmall"),
1570
+ B("label"),
1455
1571
  "transition-colors",
1456
1572
  "text-fg-secondary",
1457
1573
  "hover:border-line-emphasis",
1458
1574
  "hover:text-fg-primary"
1459
1575
  ),
1460
- children: m.label
1576
+ children: p.label
1461
1577
  }
1462
- ) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: m.label })
1463
- ] }, p);
1578
+ ) : /* @__PURE__ */ o("span", { className: "text-fg-secondary", children: p.label })
1579
+ ] }, m);
1464
1580
  })
1465
1581
  }
1466
1582
  ) }));
1467
1583
  }
1468
- function Ie(t) {
1469
- var n = t, {
1470
- children: r,
1584
+ function Je(r) {
1585
+ var i = r, {
1586
+ children: t,
1471
1587
  className: a = ""
1472
- } = n, i = x(n, [
1588
+ } = i, n = y(i, [
1473
1589
  "children",
1474
1590
  "className"
1475
1591
  ]);
1476
- return /* @__PURE__ */ l(
1592
+ return /* @__PURE__ */ o(
1477
1593
  "div",
1478
- v(u({
1479
- className: `flex flex-col ${s("1.5", "space-y")} ${s("lg", "p")} ${s("base", "pb")} ${a}`
1480
- }, i), {
1481
- children: r
1594
+ w(b({
1595
+ className: `flex flex-col ${l("1.5", "space-y")} ${l("lg", "p")} ${l("base", "pb")} ${a}`
1596
+ }, n), {
1597
+ children: t
1482
1598
  })
1483
1599
  );
1484
1600
  }
1485
- function Ve(t) {
1486
- var n = t, {
1487
- children: r,
1601
+ function ea(r) {
1602
+ var i = r, {
1603
+ children: t,
1488
1604
  className: a = ""
1489
- } = n, i = x(n, [
1605
+ } = i, n = y(i, [
1490
1606
  "children",
1491
1607
  "className"
1492
1608
  ]);
1493
- return /* @__PURE__ */ l(
1609
+ return /* @__PURE__ */ o(
1494
1610
  "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}`
1497
- }, i), {
1498
- children: r
1611
+ w(b({
1612
+ className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${l("sm", "space-x")} ${l("lg", "p")} ${l("base", "pt")} ${a}`
1613
+ }, n), {
1614
+ children: t
1499
1615
  })
1500
1616
  );
1501
1617
  }
1502
- function He(t) {
1503
- var n = t, {
1504
- children: r,
1618
+ function aa(r) {
1619
+ var i = r, {
1620
+ children: t,
1505
1621
  className: a = ""
1506
- } = n, i = x(n, [
1622
+ } = i, n = y(i, [
1507
1623
  "children",
1508
1624
  "className"
1509
1625
  ]);
1510
- return /* @__PURE__ */ l(
1626
+ return /* @__PURE__ */ o(
1511
1627
  "div",
1512
- v(u({
1628
+ w(b({
1513
1629
  className: `
1514
- ${s("lg", "p")}
1630
+ ${l("lg", "p")}
1515
1631
  border-b
1516
1632
  border-line-default
1517
1633
  ${a}
1518
1634
  `
1519
- }, i), {
1520
- children: r
1635
+ }, n), {
1636
+ children: t
1521
1637
  })
1522
1638
  );
1523
1639
  }
1524
- function Oe(t) {
1525
- var n = t, {
1526
- children: r,
1640
+ function ta(r) {
1641
+ var i = r, {
1642
+ children: t,
1527
1643
  className: a = ""
1528
- } = n, i = x(n, [
1644
+ } = i, n = y(i, [
1529
1645
  "children",
1530
1646
  "className"
1531
1647
  ]);
1532
- return /* @__PURE__ */ l(
1648
+ return /* @__PURE__ */ o(
1533
1649
  "div",
1534
- v(u({
1650
+ w(b({
1535
1651
  className: `
1536
- ${s("lg", "p")}
1652
+ ${l("lg", "p")}
1537
1653
  border-t
1538
1654
  border-line-default
1539
1655
  flex
1540
1656
  justify-end
1541
- ${s("sm", "gap")}
1657
+ ${l("sm", "gap")}
1542
1658
  ${a}
1543
1659
  `
1544
- }, i), {
1545
- children: r
1660
+ }, n), {
1661
+ children: t
1546
1662
  })
1547
1663
  );
1548
1664
  }
1549
- function Ue({ children: r, className: a }) {
1550
- return /* @__PURE__ */ l(
1665
+ function ra({ children: t, className: a }) {
1666
+ return /* @__PURE__ */ o(
1551
1667
  "div",
1552
1668
  {
1553
- className: d(
1669
+ className: f(
1554
1670
  "flex-shrink-0 flex items-center",
1555
- s("sm", "gap"),
1671
+ l("sm", "gap"),
1556
1672
  a
1557
1673
  ),
1558
- children: r
1674
+ children: t
1559
1675
  }
1560
1676
  );
1561
1677
  }
1562
- function Be({
1563
- children: r,
1678
+ function na({
1679
+ children: t,
1564
1680
  className: a
1565
1681
  }) {
1566
- return /* @__PURE__ */ l(
1682
+ return /* @__PURE__ */ o(
1567
1683
  "nav",
1568
1684
  {
1569
- className: d(
1685
+ className: f(
1570
1686
  "flex-1 flex items-center justify-center",
1571
- s("base", "gap"),
1687
+ l("base", "gap"),
1572
1688
  "hidden md:flex",
1573
1689
  // Hidden on mobile, visible on desktop
1574
1690
  a
1575
1691
  ),
1576
1692
  "aria-label": "Main navigation",
1577
- children: r
1693
+ children: t
1578
1694
  }
1579
1695
  );
1580
1696
  }
1581
- function Re(i) {
1582
- var t = i, {
1583
- className: r = ""
1584
- } = t, a = x(t, [
1697
+ function ia(n) {
1698
+ var r = n, {
1699
+ className: t = ""
1700
+ } = r, a = y(r, [
1585
1701
  "className"
1586
1702
  ]);
1587
- return /* @__PURE__ */ l(
1703
+ return /* @__PURE__ */ o(
1588
1704
  "div",
1589
- u({
1705
+ b({
1590
1706
  role: "separator",
1591
1707
  className: `
1592
1708
  h-px
1593
1709
  bg-line-default
1594
- ${s("sm", "my")}
1595
- ${r}
1710
+ ${l("sm", "my")}
1711
+ ${t}
1596
1712
  `
1597
1713
  }, a)
1598
1714
  );
1599
1715
  }
1600
- function qe(t) {
1601
- var n = t, {
1602
- orientation: r = "horizontal",
1716
+ function sa(r) {
1717
+ var i = r, {
1718
+ orientation: t = "horizontal",
1603
1719
  className: a = ""
1604
- } = n, i = x(n, [
1720
+ } = i, n = y(i, [
1605
1721
  "orientation",
1606
1722
  "className"
1607
1723
  ]);
1608
- return r === "vertical" ? /* @__PURE__ */ l(
1724
+ return t === "vertical" ? /* @__PURE__ */ o(
1609
1725
  "div",
1610
- u({
1611
- className: d("w-px", "h-6", "bg-line-default", "mx-auto", a),
1726
+ b({
1727
+ className: f("w-px", "h-6", "bg-line-default", "mx-auto", a),
1612
1728
  role: "separator",
1613
1729
  "aria-orientation": "vertical"
1614
- }, i)
1615
- ) : /* @__PURE__ */ l(
1730
+ }, n)
1731
+ ) : /* @__PURE__ */ o(
1616
1732
  "div",
1617
- u({
1618
- className: d(
1733
+ b({
1734
+ className: f(
1619
1735
  "w-full",
1620
1736
  "h-px",
1621
1737
  "bg-line-default",
1622
- s("sm", "my"),
1738
+ l("sm", "my"),
1623
1739
  // my-2 (8px) para consistência com gap-2 usado em outros lugares
1624
1740
  "flex-shrink-0",
1625
1741
  // Prevenir que separator encolha
@@ -1632,173 +1748,173 @@ function qe(t) {
1632
1748
  willChange: "auto",
1633
1749
  transform: "none"
1634
1750
  }
1635
- }, i)
1751
+ }, n)
1636
1752
  );
1637
1753
  }
1638
- function Pe(n) {
1639
- var o = n, { column: r, row: a, className: i = "" } = o, t = x(o, ["column", "row", "className"]);
1640
- const c = r.key in a ? a[r.key] : void 0;
1641
- return /* @__PURE__ */ l(
1754
+ function la(i) {
1755
+ var s = i, { column: t, row: a, className: n = "" } = s, r = y(s, ["column", "row", "className"]);
1756
+ const c = t.key in a ? a[t.key] : void 0;
1757
+ return /* @__PURE__ */ o(
1642
1758
  "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}`
1645
- }, t), {
1646
- children: r.render ? r.render(c, a) : String(c != null ? c : "")
1759
+ w(b({
1760
+ className: `${l("lg", "px")} ${l("base", "py")} whitespace-nowrap text-sm text-fg-primary ${t.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
1761
+ }, r), {
1762
+ children: t.render ? t.render(c, a) : String(c != null ? c : "")
1647
1763
  })
1648
1764
  );
1649
1765
  }
1650
- function _e({
1651
- items: r,
1766
+ function oa({
1767
+ items: t,
1652
1768
  orientation: a = "vertical",
1653
- className: i = ""
1769
+ className: n = ""
1654
1770
  }) {
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(
1771
+ return a === "horizontal" ? /* @__PURE__ */ o("div", { className: `flex items-start ${n}`, children: t.map((r, i) => {
1772
+ const s = r.status || (i === 0 ? "active" : i < t.findIndex((d) => d.status === "active") ? "completed" : "default"), c = i === t.length - 1;
1773
+ return /* @__PURE__ */ o("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center flex-1", children: [
1774
+ /* @__PURE__ */ o(
1659
1775
  "div",
1660
- v(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
1776
+ w(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
1661
1777
  className: `
1662
1778
  flex
1663
1779
  items-center
1664
1780
  justify-center
1665
1781
  w-10
1666
1782
  h-10
1667
- ${T("full")}
1783
+ ${F("full")}
1668
1784
  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"}
1785
+ ${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
1786
  `,
1671
- children: t.icon || (o === "completed" ? /* @__PURE__ */ l(X, { className: "h-4 w-4" }) : n + 1)
1787
+ children: r.icon || (s === "completed" ? /* @__PURE__ */ o(Z, { className: "h-4 w-4" }) : i + 1)
1672
1788
  })
1673
1789
  ),
1674
- !c && /* @__PURE__ */ l(
1790
+ !c && /* @__PURE__ */ o(
1675
1791
  "div",
1676
1792
  {
1677
1793
  className: `
1678
1794
  w-full
1679
1795
  h-0.5
1680
- ${s("sm", "mt")}
1681
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
1796
+ ${l("sm", "mt")}
1797
+ ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1682
1798
  `
1683
1799
  }
1684
1800
  ),
1685
- /* @__PURE__ */ $(
1801
+ /* @__PURE__ */ T(
1686
1802
  "div",
1687
1803
  {
1688
- className: `${s("base", "mt")} text-center ${s("base", "px")}`,
1804
+ className: `${l("base", "mt")} text-center ${l("base", "px")}`,
1689
1805
  children: [
1690
- t.timestamp && /* @__PURE__ */ l(
1806
+ r.timestamp && /* @__PURE__ */ o(
1691
1807
  "p",
1692
1808
  {
1693
- className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
1694
- children: t.timestamp
1809
+ className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
1810
+ children: r.timestamp
1695
1811
  }
1696
1812
  ),
1697
- /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
1698
- t.description && /* @__PURE__ */ l(
1813
+ /* @__PURE__ */ o("h3", { className: "text-sm font-semibold text-fg-primary", children: r.title }),
1814
+ r.description && /* @__PURE__ */ o(
1699
1815
  "p",
1700
1816
  {
1701
- className: `text-xs text-fg-secondary ${s("xs", "mt")}`,
1702
- children: t.description
1817
+ className: `text-xs text-fg-secondary ${l("xs", "mt")}`,
1818
+ children: r.description
1703
1819
  }
1704
1820
  ),
1705
- t.content && /* @__PURE__ */ l("div", { className: s("sm", "mt"), children: t.content })
1821
+ r.content && /* @__PURE__ */ o("div", { className: l("sm", "mt"), children: r.content })
1706
1822
  ]
1707
1823
  }
1708
1824
  )
1709
- ] }) }, 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__ */ $(
1825
+ ] }) }, r.id);
1826
+ }) }) : /* @__PURE__ */ o("div", { className: `${l("none", "space-y")} ${n}`, children: t.map((r, i) => {
1827
+ const s = r.status || (i === 0 ? "active" : i < t.findIndex((d) => d.status === "active") ? "completed" : "default"), c = i === t.length - 1;
1828
+ return /* @__PURE__ */ T(
1713
1829
  "div",
1714
1830
  {
1715
- className: `flex items-start ${s("base", "gap")}`,
1831
+ className: `flex items-start ${l("base", "gap")}`,
1716
1832
  children: [
1717
- /* @__PURE__ */ $("div", { className: "flex flex-col items-center", children: [
1718
- /* @__PURE__ */ l(
1833
+ /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
1834
+ /* @__PURE__ */ o(
1719
1835
  "div",
1720
- v(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
1836
+ w(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
1721
1837
  className: `
1722
1838
  flex
1723
1839
  items-center
1724
1840
  justify-center
1725
1841
  w-10
1726
1842
  h-10
1727
- ${T("full")}
1843
+ ${F("full")}
1728
1844
  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"}
1845
+ ${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
1846
  `,
1731
- children: t.icon || (o === "completed" ? /* @__PURE__ */ l(X, { className: "h-4 w-4" }) : n + 1)
1847
+ children: r.icon || (s === "completed" ? /* @__PURE__ */ o(Z, { className: "h-4 w-4" }) : i + 1)
1732
1848
  })
1733
1849
  ),
1734
- !c && /* @__PURE__ */ l(
1850
+ !c && /* @__PURE__ */ o(
1735
1851
  "div",
1736
1852
  {
1737
1853
  className: `
1738
1854
  w-0.5
1739
1855
  flex-1
1740
1856
  min-h-16
1741
- ${s("sm", "mt")}
1742
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
1857
+ ${l("sm", "mt")}
1858
+ ${s === "completed" ? "bg-success" : "bg-line-emphasis"}
1743
1859
  `
1744
1860
  }
1745
1861
  )
1746
1862
  ] }),
1747
- /* @__PURE__ */ $("div", { className: `flex-1 ${s("xl", "pb")}`, children: [
1748
- t.timestamp && /* @__PURE__ */ l(
1863
+ /* @__PURE__ */ T("div", { className: `flex-1 ${l("xl", "pb")}`, children: [
1864
+ r.timestamp && /* @__PURE__ */ o(
1749
1865
  "p",
1750
1866
  {
1751
- className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
1752
- children: t.timestamp
1867
+ className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
1868
+ children: r.timestamp
1753
1869
  }
1754
1870
  ),
1755
- /* @__PURE__ */ l(
1871
+ /* @__PURE__ */ o(
1756
1872
  "h3",
1757
1873
  {
1758
1874
  className: `
1759
1875
  text-base
1760
1876
  font-semibold
1761
- ${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
1877
+ ${s === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
1762
1878
  `,
1763
- children: t.title
1879
+ children: r.title
1764
1880
  }
1765
1881
  ),
1766
- t.description && /* @__PURE__ */ l(
1882
+ r.description && /* @__PURE__ */ o(
1767
1883
  "p",
1768
1884
  {
1769
- className: `text-sm text-fg-secondary ${s("xs", "mt")}`,
1770
- children: t.description
1885
+ className: `text-sm text-fg-secondary ${l("xs", "mt")}`,
1886
+ children: r.description
1771
1887
  }
1772
1888
  ),
1773
- t.content && /* @__PURE__ */ l("div", { className: s("md", "mt"), children: t.content })
1889
+ r.content && /* @__PURE__ */ o("div", { className: l("md", "mt"), children: r.content })
1774
1890
  ] })
1775
1891
  ]
1776
1892
  },
1777
- t.id
1893
+ r.id
1778
1894
  );
1779
1895
  }) });
1780
1896
  }
1781
1897
  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
1898
+ Ve as AutocompleteOption,
1899
+ Qe as Breadcrumb,
1900
+ Te as Chip,
1901
+ De as Container,
1902
+ ea as DialogFooter,
1903
+ Je as DialogHeader,
1904
+ ta as DrawerFooter,
1905
+ aa as DrawerHeader,
1906
+ Xe as ErrorMessage,
1907
+ ra as HeaderActions,
1908
+ na as HeaderNavigation,
1909
+ Ye as Info,
1910
+ ia as MenuSeparator,
1911
+ sa as NavbarSeparator,
1912
+ Ae as Progress,
1913
+ Ze as Skeleton,
1914
+ Ie as Spinner,
1915
+ _e as Stack,
1916
+ la as TableCell,
1917
+ Ge as Text,
1918
+ oa as Timeline
1803
1919
  };
1804
1920
  //# sourceMappingURL=index.js.map