@fabio.caffarello/react-design-system 4.0.0 → 4.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,38 +1,38 @@
1
- var le = Object.defineProperty, oe = Object.defineProperties;
2
- var ce = Object.getOwnPropertyDescriptors;
3
- var P = Object.getOwnPropertySymbols;
4
- var X = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
- var O = (e, t, r) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, u = (e, t) => {
6
- for (var r in t || (t = {}))
7
- X.call(t, r) && O(e, r, t[r]);
8
- if (P)
9
- for (var r of P(t))
10
- q.call(t, r) && O(e, r, t[r]);
1
+ var ge = Object.defineProperty, xe = Object.defineProperties;
2
+ var be = Object.getOwnPropertyDescriptors;
3
+ var B = Object.getOwnPropertySymbols;
4
+ var ee = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
5
+ var X = (e, a, r) => a in e ? ge(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, u = (e, a) => {
6
+ for (var r in a || (a = {}))
7
+ ee.call(a, r) && X(e, r, a[r]);
8
+ if (B)
9
+ for (var r of B(a))
10
+ ae.call(a, r) && X(e, r, a[r]);
11
11
  return e;
12
- }, y = (e, t) => oe(e, ce(t));
13
- var m = (e, t) => {
12
+ }, y = (e, a) => xe(e, be(a));
13
+ var b = (e, a) => {
14
14
  var r = {};
15
- for (var a in e)
16
- X.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
17
- if (e != null && P)
18
- for (var a of P(e))
19
- t.indexOf(a) < 0 && q.call(e, a) && (r[a] = e[a]);
15
+ for (var t in e)
16
+ ee.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
17
+ if (e != null && B)
18
+ for (var t of B(e))
19
+ a.indexOf(t) < 0 && ae.call(e, t) && (r[t] = e[t]);
20
20
  return r;
21
21
  };
22
- var G = (e, t, r) => O(e, typeof t != "symbol" ? t + "" : t, r);
23
- import { jsx as l, jsxs as v } from "react/jsx-runtime";
24
- import * as T from "react";
25
- import ae, { memo as H, forwardRef as D } from "react";
26
- import { clsx as de } from "clsx";
27
- import { twMerge as ue } from "tailwind-merge";
28
- import { cva as fe } from "class-variance-authority";
29
- import { X as pe, AlertCircle as me, Loader2 as ge, CheckCircle2 as Y } from "lucide-react";
22
+ var te = (e, a, r) => X(e, typeof a != "symbol" ? a + "" : a, r);
23
+ import { jsx as l, jsxs as v, Fragment as re } from "react/jsx-runtime";
24
+ import * as V from "react";
25
+ import ce, { memo as M, forwardRef as j } from "react";
26
+ import { clsx as he } from "clsx";
27
+ import { twMerge as ye } from "tailwind-merge";
28
+ import { cva as ve } from "class-variance-authority";
29
+ import { Loader2 as we, X as Ne, AlertCircle as Se, CheckCircle2 as ne } from "lucide-react";
30
30
  class F {
31
31
  /**
32
32
  * Create a radius token
33
33
  */
34
- static create(t) {
35
- const a = {
34
+ static create(a) {
35
+ const t = {
36
36
  none: {
37
37
  px: 0,
38
38
  tailwind: "rounded-none",
@@ -73,17 +73,17 @@ class F {
73
73
  tailwind: "rounded-full",
74
74
  description: "Full radius for circular elements"
75
75
  }
76
- }[t];
76
+ }[a];
77
77
  return {
78
- value: a.px,
79
- rem: `${a.px / 16}rem`,
80
- px: `${a.px}px`,
81
- tailwind: a.tailwind,
82
- description: a.description
78
+ value: t.px,
79
+ rem: `${t.px / 16}rem`,
80
+ px: `${t.px}px`,
81
+ tailwind: t.tailwind,
82
+ description: t.description
83
83
  };
84
84
  }
85
85
  }
86
- const xe = {
86
+ const $e = {
87
87
  none: F.create("none"),
88
88
  sm: F.create("sm"),
89
89
  md: F.create("md"),
@@ -93,27 +93,27 @@ const xe = {
93
93
  "3xl": F.create("3xl"),
94
94
  full: F.create("full")
95
95
  };
96
- function C(e) {
97
- return xe[e].tailwind;
96
+ function $(e) {
97
+ return $e[e].tailwind;
98
98
  }
99
- class S {
99
+ class k {
100
100
  // 4px base
101
101
  /**
102
102
  * Create a spacing token from scale value
103
103
  */
104
- static create(t) {
105
- const r = t * this.BASE_UNIT, a = r / 16;
104
+ static create(a) {
105
+ const r = a * this.BASE_UNIT, t = r / 16;
106
106
  return {
107
107
  value: r,
108
- rem: `${a}rem`,
108
+ rem: `${t}rem`,
109
109
  px: `${r}px`,
110
- tailwind: this.getTailwindClass(t)
110
+ tailwind: this.getTailwindClass(a)
111
111
  };
112
112
  }
113
113
  /**
114
114
  * Get Tailwind class for spacing value
115
115
  */
116
- static getTailwindClass(t) {
116
+ static getTailwindClass(a) {
117
117
  return {
118
118
  0: "0",
119
119
  0.5: "0.5",
@@ -160,49 +160,49 @@ class S {
160
160
  // 320px
161
161
  96: "96"
162
162
  // 384px
163
- }[t] || String(t);
163
+ }[a] || String(a);
164
164
  }
165
165
  }
166
- G(S, "BASE_UNIT", 4);
167
- const be = {
166
+ te(k, "BASE_UNIT", 4);
167
+ const ke = {
168
168
  // Micro spacing (0-14px)
169
- none: S.create(0),
170
- "0.5": S.create(0.5),
169
+ none: k.create(0),
170
+ "0.5": k.create(0.5),
171
171
  // 2px (half-step)
172
- xs: S.create(1),
172
+ xs: k.create(1),
173
173
  // 4px
174
- "1.5": S.create(1.5),
174
+ "1.5": k.create(1.5),
175
175
  // 6px (half-step)
176
- sm: S.create(2),
176
+ sm: k.create(2),
177
177
  // 8px
178
- "2.5": S.create(2.5),
178
+ "2.5": k.create(2.5),
179
179
  // 10px (half-step)
180
- md: S.create(3),
180
+ md: k.create(3),
181
181
  // 12px
182
- "3.5": S.create(3.5),
182
+ "3.5": k.create(3.5),
183
183
  // 14px (half-step)
184
184
  // Standard spacing (16-32px)
185
- base: S.create(4),
185
+ base: k.create(4),
186
186
  // 16px
187
- lg: S.create(6),
187
+ lg: k.create(6),
188
188
  // 24px
189
- xl: S.create(8),
189
+ xl: k.create(8),
190
190
  // 32px
191
191
  // Large spacing (40-64px)
192
- "2xl": S.create(10),
192
+ "2xl": k.create(10),
193
193
  // 40px
194
- "3xl": S.create(12),
194
+ "3xl": k.create(12),
195
195
  // 48px
196
- "4xl": S.create(16),
196
+ "4xl": k.create(16),
197
197
  // 64px
198
198
  // Extra large spacing (80px+)
199
- "5xl": S.create(20),
199
+ "5xl": k.create(20),
200
200
  // 80px
201
- "6xl": S.create(24)
201
+ "6xl": k.create(24)
202
202
  // 96px
203
203
  };
204
- function i(e, t = "p") {
205
- const a = be[e].tailwind;
204
+ function i(e, a = "p") {
205
+ const t = ke[e].tailwind;
206
206
  return `${{
207
207
  p: "p",
208
208
  m: "m",
@@ -223,14 +223,14 @@ function i(e, t = "p") {
223
223
  "gap-y": "gap-y",
224
224
  "space-x": "space-x",
225
225
  "space-y": "space-y"
226
- }[t]}-${a}`;
226
+ }[a]}-${t}`;
227
227
  }
228
- class $ {
228
+ class C {
229
229
  /**
230
230
  * Create font size token
231
231
  */
232
- static createFontSize(t) {
233
- const a = {
232
+ static createFontSize(a) {
233
+ const t = {
234
234
  "2xs": { px: 10, tailwind: "text-2xs" },
235
235
  // micro-text (badge counters, mini chips)
236
236
  xs: { px: 12, tailwind: "text-xs" },
@@ -243,103 +243,103 @@ class $ {
243
243
  "4xl": { px: 36, tailwind: "text-4xl" },
244
244
  "5xl": { px: 48, tailwind: "text-5xl" },
245
245
  "6xl": { px: 60, tailwind: "text-6xl" }
246
- }[t];
246
+ }[a];
247
247
  return {
248
- value: a.px,
249
- rem: `${a.px / 16}rem`,
250
- px: `${a.px}px`,
251
- tailwind: a.tailwind
248
+ value: t.px,
249
+ rem: `${t.px / 16}rem`,
250
+ px: `${t.px}px`,
251
+ tailwind: t.tailwind
252
252
  };
253
253
  }
254
254
  /**
255
255
  * Create line height token
256
256
  */
257
- static createLineHeight(t) {
258
- const a = {
257
+ static createLineHeight(a) {
258
+ const t = {
259
259
  none: { value: 1, tailwind: "leading-none" },
260
260
  tight: { value: 1.25, tailwind: "leading-tight" },
261
261
  snug: { value: 1.375, tailwind: "leading-snug" },
262
262
  normal: { value: 1.5, tailwind: "leading-normal" },
263
263
  relaxed: { value: 1.625, tailwind: "leading-relaxed" },
264
264
  loose: { value: 2, tailwind: "leading-loose" }
265
- }[t];
265
+ }[a];
266
266
  return {
267
- value: a.value,
268
- tailwind: a.tailwind
267
+ value: t.value,
268
+ tailwind: t.tailwind
269
269
  };
270
270
  }
271
271
  /**
272
272
  * Create font weight token
273
273
  */
274
- static createFontWeight(t) {
275
- const a = {
274
+ static createFontWeight(a) {
275
+ const t = {
276
276
  light: { value: 300, tailwind: "font-light" },
277
277
  normal: { value: 400, tailwind: "font-normal" },
278
278
  medium: { value: 500, tailwind: "font-medium" },
279
279
  semibold: { value: 600, tailwind: "font-semibold" },
280
280
  bold: { value: 700, tailwind: "font-bold" }
281
- }[t];
281
+ }[a];
282
282
  return {
283
- value: a.value,
284
- tailwind: a.tailwind
283
+ value: t.value,
284
+ tailwind: t.tailwind
285
285
  };
286
286
  }
287
287
  /**
288
288
  * Create complete typography token
289
289
  */
290
- static create(t, r = "normal", a = "normal") {
290
+ static create(a, r = "normal", t = "normal") {
291
291
  return {
292
- fontSize: this.createFontSize(t),
292
+ fontSize: this.createFontSize(a),
293
293
  lineHeight: this.createLineHeight(r),
294
- fontWeight: this.createFontWeight(a)
294
+ fontWeight: this.createFontWeight(t)
295
295
  };
296
296
  }
297
297
  }
298
- $.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
299
- const U = {
298
+ C.createFontWeight("light"), C.createFontWeight("normal"), C.createFontWeight("medium"), C.createFontWeight("semibold"), C.createFontWeight("bold");
299
+ const G = {
300
300
  // Headings
301
- h1: $.create("4xl", "tight", "bold"),
302
- h2: $.create("3xl", "tight", "bold"),
303
- h3: $.create("2xl", "snug", "semibold"),
304
- h4: $.create("xl", "snug", "semibold"),
305
- h5: $.create("lg", "normal", "medium"),
306
- h6: $.create("base", "normal", "medium"),
301
+ h1: C.create("4xl", "tight", "bold"),
302
+ h2: C.create("3xl", "tight", "bold"),
303
+ h3: C.create("2xl", "snug", "semibold"),
304
+ h4: C.create("xl", "snug", "semibold"),
305
+ h5: C.create("lg", "normal", "medium"),
306
+ h6: C.create("base", "normal", "medium"),
307
307
  // Body text
308
- body: $.create("base", "relaxed", "normal"),
309
- bodySmall: $.create("sm", "relaxed", "normal"),
310
- bodyLarge: $.create("lg", "relaxed", "normal"),
308
+ body: C.create("base", "relaxed", "normal"),
309
+ bodySmall: C.create("sm", "relaxed", "normal"),
310
+ bodyLarge: C.create("lg", "relaxed", "normal"),
311
311
  // UI elements
312
- label: $.create("sm", "normal", "medium"),
313
- caption: $.create("xs", "normal", "normal"),
314
- button: $.create("base", "normal", "medium")
312
+ label: C.create("sm", "normal", "medium"),
313
+ caption: C.create("xs", "normal", "normal"),
314
+ button: C.create("base", "normal", "medium")
315
315
  };
316
- function R(e) {
317
- const t = U[e];
318
- return `${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`;
316
+ function D(e) {
317
+ const a = G[e];
318
+ return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
319
319
  }
320
- function k(e) {
321
- return U[e].fontSize.tailwind;
320
+ function S(e) {
321
+ return G[e].fontSize.tailwind;
322
322
  }
323
- function z(e) {
324
- return U[e].fontWeight.tailwind;
323
+ function O(e) {
324
+ return G[e].fontWeight.tailwind;
325
325
  }
326
- function n(...e) {
327
- return ue(de(e));
326
+ function s(...e) {
327
+ return ye(he(e));
328
328
  }
329
- const V = (e, t) => {
330
- const r = fe(e, t);
331
- return ((a) => {
332
- const s = r(a);
333
- return n(s);
329
+ const L = (e, a) => {
330
+ const r = ve(e, a);
331
+ return ((t) => {
332
+ const n = r(t);
333
+ return s(n);
334
334
  });
335
- }, he = V(
335
+ }, Ce = L(
336
336
  // Base classes
337
- n(
337
+ s(
338
338
  "inline-flex",
339
339
  "items-center",
340
340
  "justify-center",
341
- z("label"),
342
- C("md"),
341
+ O("label"),
342
+ $("md"),
343
343
  "border"
344
344
  ),
345
345
  {
@@ -354,20 +354,20 @@ const V = (e, t) => {
354
354
  secondary: ""
355
355
  },
356
356
  size: {
357
- sm: n(
357
+ sm: s(
358
358
  i("1.5", "px"),
359
359
  i("0.5", "py"),
360
- k("caption")
360
+ S("caption")
361
361
  ),
362
- md: n(
362
+ md: s(
363
363
  i("sm", "px"),
364
364
  i("xs", "py"),
365
- k("caption")
365
+ S("caption")
366
366
  ),
367
- lg: n(
367
+ lg: s(
368
368
  i("sm", "px"),
369
369
  i("xs", "py"),
370
- k("bodySmall")
370
+ S("bodySmall")
371
371
  )
372
372
  },
373
373
  style: {
@@ -380,32 +380,32 @@ const V = (e, t) => {
380
380
  {
381
381
  variant: "success",
382
382
  style: "solid",
383
- class: n("bg-success-bg", "text-success-dark", "border-success")
383
+ class: s("bg-success-bg", "text-success-dark", "border-success")
384
384
  },
385
385
  {
386
386
  variant: "warning",
387
387
  style: "solid",
388
- class: n("bg-warning-bg", "text-warning-dark", "border-warning")
388
+ class: s("bg-warning-bg", "text-warning-dark", "border-warning")
389
389
  },
390
390
  {
391
391
  variant: "error",
392
392
  style: "solid",
393
- class: n("bg-error-bg", "text-error-dark", "border-error")
393
+ class: s("bg-error-bg", "text-error-dark", "border-error")
394
394
  },
395
395
  {
396
396
  variant: "info",
397
397
  style: "solid",
398
- class: n("bg-info-bg", "text-info-dark", "border-info")
398
+ class: s("bg-info-bg", "text-info-dark", "border-info")
399
399
  },
400
400
  {
401
401
  variant: "neutral",
402
402
  style: "solid",
403
- class: n("bg-surface-muted", "text-fg-primary", "border-line-default")
403
+ class: s("bg-surface-muted", "text-fg-primary", "border-line-default")
404
404
  },
405
405
  {
406
406
  variant: "primary",
407
407
  style: "solid",
408
- class: n(
408
+ class: s(
409
409
  "bg-surface-brand-subtle",
410
410
  "text-fg-brand-emphasis",
411
411
  "border-line-brand"
@@ -417,7 +417,7 @@ const V = (e, t) => {
417
417
  // bg-pink-300: secondary solid badge — no semantic equivalent
418
418
  // (would shift 2 shades to bg-surface-secondary). Kept literal until
419
419
  // secondary brand surface palette expands beyond DEFAULT.
420
- class: n(
420
+ class: s(
421
421
  "bg-pink-300",
422
422
  "text-fg-brand-secondary-emphasis",
423
423
  "border-line-secondary"
@@ -427,37 +427,37 @@ const V = (e, t) => {
427
427
  {
428
428
  variant: "success",
429
429
  style: "outline",
430
- class: n("bg-transparent", "border-success", "text-fg-success")
430
+ class: s("bg-transparent", "border-success", "text-fg-success")
431
431
  },
432
432
  {
433
433
  variant: "warning",
434
434
  style: "outline",
435
- class: n("bg-transparent", "border-warning", "text-fg-warning")
435
+ class: s("bg-transparent", "border-warning", "text-fg-warning")
436
436
  },
437
437
  {
438
438
  variant: "error",
439
439
  style: "outline",
440
- class: n("bg-transparent", "border-error", "text-fg-error")
440
+ class: s("bg-transparent", "border-error", "text-fg-error")
441
441
  },
442
442
  {
443
443
  variant: "info",
444
444
  style: "outline",
445
- class: n("bg-transparent", "border-info", "text-fg-info")
445
+ class: s("bg-transparent", "border-info", "text-fg-info")
446
446
  },
447
447
  {
448
448
  variant: "neutral",
449
449
  style: "outline",
450
- class: n("bg-transparent", "border-line-default", "text-fg-secondary")
450
+ class: s("bg-transparent", "border-line-default", "text-fg-secondary")
451
451
  },
452
452
  {
453
453
  variant: "primary",
454
454
  style: "outline",
455
- class: n("bg-transparent", "border-line-brand", "text-fg-brand")
455
+ class: s("bg-transparent", "border-line-brand", "text-fg-brand")
456
456
  },
457
457
  {
458
458
  variant: "secondary",
459
459
  style: "outline",
460
- class: n(
460
+ class: s(
461
461
  "bg-transparent",
462
462
  "border-line-secondary",
463
463
  "text-fg-brand-secondary"
@@ -470,16 +470,16 @@ const V = (e, t) => {
470
470
  style: "solid"
471
471
  }
472
472
  }
473
- ), ye = H(
474
- D(function(h, p) {
475
- var g = h, {
476
- variant: t = "neutral",
473
+ ), Ee = M(
474
+ j(function(x, p) {
475
+ var m = x, {
476
+ variant: a = "neutral",
477
477
  size: r = "md",
478
- style: a = "solid",
479
- className: s = "",
478
+ style: t = "solid",
479
+ className: n = "",
480
480
  children: o,
481
481
  "aria-label": c
482
- } = g, d = m(g, [
482
+ } = m, d = b(m, [
483
483
  "variant",
484
484
  "size",
485
485
  "style",
@@ -487,15 +487,15 @@ const V = (e, t) => {
487
487
  "children",
488
488
  "aria-label"
489
489
  ]);
490
- const b = n(he({ variant: t, size: r, style: a }), s);
490
+ const h = s(Ce({ variant: a, size: r, style: t }), n);
491
491
  let f;
492
492
  if (c)
493
493
  f = c;
494
494
  else if (typeof o == "string")
495
495
  f = o;
496
496
  else if (typeof o == "object" && o !== null && "props" in o) {
497
- const x = o.props;
498
- x != null && x.children && typeof x.children == "string" && (f = x.children);
497
+ const g = o.props;
498
+ g != null && g.children && typeof g.children == "string" && (f = g.children);
499
499
  }
500
500
  return /* @__PURE__ */ l(
501
501
  "span",
@@ -503,132 +503,434 @@ const V = (e, t) => {
503
503
  ref: p,
504
504
  role: "status",
505
505
  "aria-label": f,
506
- className: b
506
+ className: h
507
507
  }, d), {
508
508
  children: o
509
509
  })
510
510
  );
511
511
  })
512
512
  );
513
- ye.displayName = "Badge";
514
- function Z(e, t) {
513
+ Ee.displayName = "Badge";
514
+ function se(e, a) {
515
515
  if (typeof e == "function")
516
- return e(t);
517
- e != null && (e.current = t);
516
+ return e(a);
517
+ e != null && (e.current = a);
518
518
  }
519
- function ve(...e) {
520
- return (t) => {
519
+ function Te(...e) {
520
+ return (a) => {
521
521
  let r = !1;
522
- const a = e.map((s) => {
523
- const o = Z(s, t);
522
+ const t = e.map((n) => {
523
+ const o = se(n, a);
524
524
  return !r && typeof o == "function" && (r = !0), o;
525
525
  });
526
526
  if (r)
527
527
  return () => {
528
- for (let s = 0; s < a.length; s++) {
529
- const o = a[s];
530
- typeof o == "function" ? o() : Z(e[s], null);
528
+ for (let n = 0; n < t.length; n++) {
529
+ const o = t[n];
530
+ typeof o == "function" ? o() : se(e[n], null);
531
531
  }
532
532
  };
533
533
  };
534
534
  }
535
- function we(...e) {
536
- return T.useCallback(ve(...e), e);
535
+ function Ve(...e) {
536
+ return V.useCallback(Te(...e), e);
537
537
  }
538
538
  // @__NO_SIDE_EFFECTS__
539
- function Ne(e) {
540
- const t = T.forwardRef((r, a) => {
541
- var x;
542
- let f = r, { children: s } = f, o = m(f, ["children"]), c = null, d = !1;
539
+ function Ae(e) {
540
+ const a = V.forwardRef((r, t) => {
541
+ var g;
542
+ let f = r, { children: n } = f, o = b(f, ["children"]), c = null, d = !1;
543
543
  const p = [];
544
- J(s) && typeof W == "function" && (s = W(s._payload)), T.Children.forEach(s, (w) => {
544
+ ie(n) && typeof I == "function" && (n = I(n._payload)), V.Children.forEach(n, (w) => {
545
545
  var N;
546
- if (Te(w)) {
546
+ if (Re(w)) {
547
547
  d = !0;
548
- const L = w;
549
- let E = "child" in L.props ? L.props.child : L.props.children;
550
- J(E) && typeof W == "function" && (E = W(E._payload)), c = Ce(L, E), p.push((N = c == null ? void 0 : c.props) == null ? void 0 : N.children);
548
+ const E = w;
549
+ let T = "child" in E.props ? E.props.child : E.props.children;
550
+ ie(T) && typeof I == "function" && (T = I(T._payload)), c = Fe(E, T), p.push((N = c == null ? void 0 : c.props) == null ? void 0 : N.children);
551
551
  } else
552
552
  p.push(w);
553
- }), c ? c = T.cloneElement(c, void 0, p) : (
553
+ }), c ? c = V.cloneElement(c, void 0, p) : (
554
554
  // A `Slottable` was found but it didn't resolve to a single element (e.g.
555
555
  // it wrapped multiple elements, text, or a render-prop `child` that
556
556
  // wasn't an element). Don't fall back to treating the `Slottable` wrapper
557
557
  // itself as the slot target — throw a descriptive error below instead.
558
- !d && T.Children.count(s) === 1 && T.isValidElement(s) && (c = s)
558
+ !d && V.Children.count(n) === 1 && V.isValidElement(n) && (c = n)
559
559
  );
560
- const h = c ? Ee(c) : void 0, g = we(a, h);
560
+ const x = c ? je(c) : void 0, m = Ve(t, x);
561
561
  if (!c) {
562
- if (s || s === 0)
562
+ if (n || n === 0)
563
563
  throw new Error(
564
- d ? Fe(e) : Ve(e)
564
+ d ? He(e) : Me(e)
565
565
  );
566
- return s;
566
+ return n;
567
567
  }
568
- const b = ke(o, (x = c.props) != null ? x : {});
569
- return c.type !== T.Fragment && (b.ref = a ? g : h), T.cloneElement(c, b);
568
+ const h = De(o, (g = c.props) != null ? g : {});
569
+ return c.type !== V.Fragment && (h.ref = t ? m : x), V.cloneElement(c, h);
570
570
  });
571
- return t.displayName = `${e}.Slot`, t;
571
+ return a.displayName = `${e}.Slot`, a;
572
+ }
573
+ var de = /* @__PURE__ */ Ae("Slot"), ue = /* @__PURE__ */ Symbol.for("radix.slottable");
574
+ // @__NO_SIDE_EFFECTS__
575
+ function Le(e) {
576
+ const a = (r) => "child" in r ? r.children(r.child) : r.children;
577
+ return a.displayName = `${e}.Slottable`, a.__radixId = ue, a;
572
578
  }
573
- var Se = /* @__PURE__ */ Ne("Slot"), $e = /* @__PURE__ */ Symbol.for("radix.slottable"), Ce = (e, t) => {
579
+ var ze = /* @__PURE__ */ Le("Slottable"), Fe = (e, a) => {
574
580
  if ("child" in e.props) {
575
581
  const r = e.props.child;
576
- return T.isValidElement(r) ? T.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
582
+ return V.isValidElement(r) ? V.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
577
583
  }
578
- return T.isValidElement(t) ? t : null;
584
+ return V.isValidElement(a) ? a : null;
579
585
  };
580
- function ke(e, t) {
581
- const r = u({}, t);
582
- for (const a in t) {
583
- const s = e[a], o = t[a];
584
- /^on[A-Z]/.test(a) ? s && o ? r[a] = (...d) => {
586
+ function De(e, a) {
587
+ const r = u({}, a);
588
+ for (const t in a) {
589
+ const n = e[t], o = a[t];
590
+ /^on[A-Z]/.test(t) ? n && o ? r[t] = (...d) => {
585
591
  const p = o(...d);
586
- return s(...d), p;
587
- } : s && (r[a] = s) : a === "style" ? r[a] = u(u({}, s), o) : a === "className" && (r[a] = [s, o].filter(Boolean).join(" "));
592
+ return n(...d), p;
593
+ } : n && (r[t] = n) : t === "style" ? r[t] = u(u({}, n), o) : t === "className" && (r[t] = [n, o].filter(Boolean).join(" "));
588
594
  }
589
595
  return u(u({}, e), r);
590
596
  }
591
- function Ee(e) {
592
- var a, s;
593
- let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning;
594
- return r ? e.ref : (t = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
597
+ function je(e) {
598
+ var t, n;
599
+ let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = a && "isReactWarning" in a && a.isReactWarning;
600
+ return r ? e.ref : (a = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = a && "isReactWarning" in a && a.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
595
601
  }
596
- function Te(e) {
597
- return T.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === $e;
602
+ function Re(e) {
603
+ return V.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ue;
598
604
  }
599
- var Le = /* @__PURE__ */ Symbol.for("react.lazy");
600
- function J(e) {
601
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Le && "_payload" in e && Ae(e._payload);
605
+ var _e = /* @__PURE__ */ Symbol.for("react.lazy");
606
+ function ie(e) {
607
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === _e && "_payload" in e && Oe(e._payload);
602
608
  }
603
- function Ae(e) {
609
+ function Oe(e) {
604
610
  return typeof e == "object" && e !== null && "then" in e;
605
611
  }
606
- var Ve = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, Fe = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, W = T[" use ".trim().toString()];
607
- const Q = V(
612
+ var Me = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, He = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, I = V[" use ".trim().toString()];
613
+ const Pe = L("motion-safe:animate-spin", {
614
+ variants: {
615
+ size: {
616
+ sm: "h-4 w-4",
617
+ md: "h-5 w-5",
618
+ lg: "h-8 w-8"
619
+ },
620
+ variant: {
621
+ primary: "text-fg-brand",
622
+ secondary: "text-fg-brand-secondary",
623
+ neutral: "text-fg-secondary"
624
+ }
625
+ },
626
+ defaultVariants: {
627
+ size: "md",
628
+ variant: "primary"
629
+ }
630
+ }), fe = M(function(c) {
631
+ var d = c, {
632
+ size: a = "md",
633
+ variant: r = "primary",
634
+ label: t,
635
+ className: n = ""
636
+ } = d, o = b(d, [
637
+ "size",
638
+ "variant",
639
+ "label",
640
+ "className"
641
+ ]);
642
+ return /* @__PURE__ */ v(
643
+ "div",
644
+ y(u({
645
+ className: s("inline-flex", "items-center", n),
646
+ role: "status",
647
+ "aria-label": t || "Loading",
648
+ "aria-live": "polite"
649
+ }, o), {
650
+ children: [
651
+ /* @__PURE__ */ l(
652
+ we,
653
+ {
654
+ className: s(Pe({ size: a, variant: r })),
655
+ "aria-hidden": "true"
656
+ }
657
+ ),
658
+ t && /* @__PURE__ */ l(
659
+ "span",
660
+ {
661
+ className: s(
662
+ i("sm", "ml"),
663
+ S("bodySmall"),
664
+ "text-fg-secondary",
665
+ "sr-only"
666
+ ),
667
+ children: t
668
+ }
669
+ )
670
+ ]
671
+ })
672
+ );
673
+ });
674
+ fe.displayName = "Spinner";
675
+ const We = L(
676
+ // Base classes
677
+ s(
678
+ "inline-flex",
679
+ "items-center",
680
+ "justify-center",
681
+ D("button").split(" ")[2] || "font-medium",
682
+ // Extract font-medium
683
+ $("md"),
684
+ "transition-colors",
685
+ "focus:outline-none",
686
+ "focus:ring-2",
687
+ "focus:ring-offset-2",
688
+ "disabled:opacity-50",
689
+ "disabled:cursor-not-allowed"
690
+ ),
691
+ {
692
+ variants: {
693
+ variant: {
694
+ primary: s(
695
+ "bg-surface-brand-strong",
696
+ "text-fg-inverse",
697
+ "hover:opacity-90",
698
+ "focus:ring-line-brand"
699
+ ),
700
+ secondary: s(
701
+ "bg-surface-secondary",
702
+ "text-fg-inverse",
703
+ "hover:opacity-90",
704
+ "focus:ring-line-secondary"
705
+ ),
706
+ error: s(
707
+ "bg-error",
708
+ "text-fg-inverse",
709
+ "hover:opacity-90",
710
+ "focus:ring-error"
711
+ ),
712
+ outline: s(
713
+ "border-2",
714
+ "border-line-default",
715
+ "bg-transparent",
716
+ "text-fg-primary",
717
+ "hover:bg-surface-hover",
718
+ "focus:ring-line-focus"
719
+ ),
720
+ ghost: s(
721
+ "bg-transparent",
722
+ "text-fg-primary",
723
+ "hover:bg-surface-hover",
724
+ "focus:ring-line-focus"
725
+ ),
726
+ iconOnly: s(
727
+ "bg-transparent",
728
+ "text-fg-primary",
729
+ "hover:bg-surface-hover",
730
+ "focus:ring-line-focus",
731
+ i("none", "p")
732
+ ),
733
+ // Textual call-to-action — brand-coloured text, underline on
734
+ // hover, no chrome (no surface, no border). Padding is zeroed
735
+ // out per size in compoundVariants so the bounding box hugs
736
+ // the text (height intrinsic). Issue #156.
737
+ //
738
+ // Focus ring: `focus:ring-line-focus` keeps the same focus
739
+ // family the other no-chrome variants use (ghost, outline,
740
+ // iconOnly). The base's `focus:ring-2` + `focus:ring-offset-2`
741
+ // produce a 2px ring 2px away from the text bounding box; the
742
+ // 2px offset is rendered in surface-base so the ring contrasts
743
+ // against surface (≥3:1 for WCAG 2.4.11, verified) rather than
744
+ // colliding with the brand-coloured text. The element keeps
745
+ // `getRadiusClass("md")` from the base, which is invisible
746
+ // without chrome but rounds the focus ring corners.
747
+ //
748
+ // hover:underline pairs with `underline-offset-4` so the
749
+ // underline that appears on hover sits clear of the descenders
750
+ // (WCAG-aligned with link best practice). At rest the link
751
+ // carries no underline — the brand colour alone signals
752
+ // affordance, matching the shadcn convention this variant is
753
+ // modelled on (see issue body).
754
+ //
755
+ // disabled: inherits opacity-50 + cursor-not-allowed from the
756
+ // base. We do NOT special-case `disabled:no-underline` because
757
+ // a disabled link should still receive the same visual
758
+ // treatment as a disabled chrome variant — the opacity and
759
+ // cursor signal the disabled state.
760
+ link: s(
761
+ "bg-transparent",
762
+ "text-fg-brand",
763
+ "underline-offset-4",
764
+ "hover:underline",
765
+ "focus:ring-line-focus"
766
+ )
767
+ },
768
+ size: {
769
+ sm: s(
770
+ i("md", "px"),
771
+ i("1.5", "py"),
772
+ S("bodySmall"),
773
+ i("1.5", "gap")
774
+ ),
775
+ md: s(
776
+ i("base", "px"),
777
+ i("sm", "py"),
778
+ S("body"),
779
+ i("sm", "gap")
780
+ ),
781
+ lg: s(
782
+ i("lg", "px"),
783
+ i("md", "py"),
784
+ S("bodyLarge"),
785
+ i("2.5", "gap")
786
+ )
787
+ }
788
+ },
789
+ compoundVariants: [
790
+ // IconOnly variant has different sizing
791
+ {
792
+ variant: "iconOnly",
793
+ size: "sm",
794
+ class: s("h-8", "w-8", i("none", "p"))
795
+ },
796
+ {
797
+ variant: "iconOnly",
798
+ size: "md",
799
+ class: s("h-10", "w-10", i("none", "p"))
800
+ },
801
+ {
802
+ variant: "iconOnly",
803
+ size: "lg",
804
+ class: s("h-12", "w-12", i("none", "p"))
805
+ },
806
+ // Link variant zeroes the size's padding via compoundVariants so
807
+ // the override runs AFTER the size block's `px-N`/`py-N` and
808
+ // twMerge picks the zero value (`cn` joins variant before
809
+ // compound). The size's typography and gap survive — the link's
810
+ // text scales with size and icons still get gap-N when present.
811
+ // Issue #156.
812
+ {
813
+ variant: "link",
814
+ size: "sm",
815
+ class: s(i("none", "px"), i("none", "py"))
816
+ },
817
+ {
818
+ variant: "link",
819
+ size: "md",
820
+ class: s(i("none", "px"), i("none", "py"))
821
+ },
822
+ {
823
+ variant: "link",
824
+ size: "lg",
825
+ class: s(i("none", "px"), i("none", "py"))
826
+ }
827
+ ],
828
+ defaultVariants: {
829
+ variant: "primary",
830
+ size: "md"
831
+ }
832
+ }
833
+ );
834
+ function U({
835
+ children: e,
836
+ position: a
837
+ }) {
838
+ return e ? /* @__PURE__ */ l(
839
+ "span",
840
+ {
841
+ className: `inline-flex items-center ${a === "left" ? i("none", "mr") : i("none", "ml")}`,
842
+ children: e
843
+ }
844
+ ) : null;
845
+ }
846
+ const Be = M(
847
+ j(function(T, E) {
848
+ var z = T, {
849
+ variant: a = "primary",
850
+ size: r = "md",
851
+ isLoading: t = !1,
852
+ loadingText: n,
853
+ loadingIcon: o,
854
+ leftIcon: c,
855
+ rightIcon: d,
856
+ fullWidth: p = !1,
857
+ asChild: x = !1,
858
+ as: m,
859
+ className: h = "",
860
+ disabled: f = !1,
861
+ children: g,
862
+ "aria-label": w
863
+ } = z, N = b(z, [
864
+ "variant",
865
+ "size",
866
+ "isLoading",
867
+ "loadingText",
868
+ "loadingIcon",
869
+ "leftIcon",
870
+ "rightIcon",
871
+ "fullWidth",
872
+ "asChild",
873
+ "as",
874
+ "className",
875
+ "disabled",
876
+ "children",
877
+ "aria-label"
878
+ ]);
879
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && x && m !== void 0 && m !== "button" && console.warn(
880
+ "[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning."
881
+ );
882
+ const P = x ? de : m != null ? m : "button", W = s(
883
+ We({ variant: a, size: r }),
884
+ p && "w-full",
885
+ h
886
+ ), K = (a === "iconOnly" || !g && (c || d)) && !w && !g ? "Button" : w, me = o || /* @__PURE__ */ l(fe, { size: r === "sm" ? "sm" : r === "lg" ? "lg" : "md", variant: a === "error" ? "primary" : a === "primary" || a === "secondary" ? "neutral" : "primary" }), J = !x && (m === void 0 || m === "button") && !N.type ? "button" : void 0, Q = u(u({
887
+ className: W,
888
+ disabled: f || t,
889
+ "aria-busy": t,
890
+ "aria-label": K,
891
+ "aria-disabled": f || t
892
+ }, J ? { type: J } : {}), N);
893
+ return x ? /* @__PURE__ */ v(P, y(u({ ref: E }, Q), { children: [
894
+ c && /* @__PURE__ */ l(U, { position: "left", children: c }),
895
+ /* @__PURE__ */ l(ze, { children: g }),
896
+ d && /* @__PURE__ */ l(U, { position: "right", children: d })
897
+ ] })) : /* @__PURE__ */ l(P, y(u({ ref: E }, Q), { children: t ? /* @__PURE__ */ v(re, { children: [
898
+ me,
899
+ n && /* @__PURE__ */ l("span", { className: i("sm", "ml"), children: n }),
900
+ !n && g && /* @__PURE__ */ l("span", { className: `${i("sm", "ml")} opacity-0`, children: g })
901
+ ] }) : /* @__PURE__ */ v(re, { children: [
902
+ c && /* @__PURE__ */ l(U, { position: "left", children: c }),
903
+ g,
904
+ d && /* @__PURE__ */ l(U, { position: "right", children: d })
905
+ ] }) }));
906
+ })
907
+ );
908
+ Be.displayName = "Button";
909
+ const le = L(
608
910
  // Base classes
609
- n(
911
+ s(
610
912
  "inline-flex",
611
913
  "items-center",
612
914
  "font-medium",
613
- C("full"),
915
+ $("full"),
614
916
  i("xs", "gap")
615
917
  ),
616
918
  {
617
919
  variants: {
618
920
  variant: {
619
- default: n(
921
+ default: s(
620
922
  "bg-surface-muted",
621
923
  "text-fg-primary",
622
924
  "border",
623
925
  "border-line-default"
624
926
  ),
625
- outlined: n(
927
+ outlined: s(
626
928
  "bg-transparent",
627
929
  "text-fg-primary",
628
930
  "border",
629
931
  "border-line-default"
630
932
  ),
631
- filled: n(
933
+ filled: s(
632
934
  "bg-surface-brand-strong",
633
935
  "text-fg-inverse",
634
936
  "border",
@@ -636,24 +938,24 @@ const Q = V(
636
938
  )
637
939
  },
638
940
  size: {
639
- sm: n(
941
+ sm: s(
640
942
  i("xs", "px"),
641
943
  i("xs", "py"),
642
- k("caption")
944
+ S("caption")
643
945
  ),
644
- md: n(
946
+ md: s(
645
947
  i("sm", "px"),
646
948
  i("xs", "py"),
647
- k("bodySmall")
949
+ S("bodySmall")
648
950
  ),
649
- lg: n(
951
+ lg: s(
650
952
  i("md", "px"),
651
953
  i("sm", "py"),
652
- k("body")
954
+ S("body")
653
955
  )
654
956
  },
655
957
  selected: {
656
- true: n(
958
+ true: s(
657
959
  "bg-surface-brand-strong",
658
960
  "text-fg-inverse",
659
961
  "border",
@@ -693,85 +995,85 @@ const Q = V(
693
995
  disabled: !1
694
996
  }
695
997
  }
696
- ), Re = D(function(t, r) {
998
+ ), Ie = j(function(a, r) {
697
999
  const {
698
- children: a,
699
- variant: s = "default",
1000
+ children: t,
1001
+ variant: n = "default",
700
1002
  size: o = "md",
701
1003
  selected: c = !1,
702
1004
  disabled: d = !1,
703
1005
  className: p = "",
704
- "aria-label": h,
705
- tabIndex: g,
706
- asChild: b = !1
707
- } = t, x = (() => {
708
- if (h) return h;
709
- if (typeof a == "string") return a;
710
- if (typeof a == "object" && a !== null && "props" in a) {
711
- const A = a.props;
1006
+ "aria-label": x,
1007
+ tabIndex: m,
1008
+ asChild: h = !1
1009
+ } = a, g = (() => {
1010
+ if (x) return x;
1011
+ if (typeof t == "string") return t;
1012
+ if (typeof t == "object" && t !== null && "props" in t) {
1013
+ const A = t.props;
712
1014
  if (A != null && A.children && typeof A.children == "string")
713
1015
  return A.children;
714
1016
  }
715
1017
  })();
716
- if (b)
1018
+ if (h)
717
1019
  return /* @__PURE__ */ l(
718
- Se,
1020
+ de,
719
1021
  {
720
1022
  ref: r,
721
- className: n(
722
- Q({ variant: s, size: o, selected: c, disabled: d }),
1023
+ className: s(
1024
+ le({ variant: n, size: o, selected: c, disabled: d }),
723
1025
  p
724
1026
  ),
725
- "aria-label": h,
1027
+ "aria-label": x,
726
1028
  "aria-disabled": d || void 0,
727
- tabIndex: g,
728
- children: a
1029
+ tabIndex: m,
1030
+ children: t
729
1031
  }
730
1032
  );
731
- const { onRemove: w, onClick: N, count: L } = t, E = N !== void 0, M = E && !d, re = (A) => {
1033
+ const { onRemove: w, onClick: N, count: E } = a, T = N !== void 0, z = T && !d, P = (A) => {
732
1034
  d || (A.key === "Enter" || A.key === " ") && (A.preventDefault(), N == null || N());
733
- }, K = L !== void 0, se = c || s === "filled", ne = K ? /* @__PURE__ */ l(
1035
+ }, W = E !== void 0, Y = c || n === "filled", K = W ? /* @__PURE__ */ l(
734
1036
  "span",
735
1037
  {
736
- "aria-hidden": E || void 0,
737
- className: n(
1038
+ "aria-hidden": T || void 0,
1039
+ className: s(
738
1040
  "inline-flex",
739
1041
  "items-center",
740
1042
  "justify-center",
741
1043
  "tabular-nums",
742
1044
  "leading-none",
743
- C("full"),
1045
+ $("full"),
744
1046
  i("xs", "px"),
745
1047
  i("0.5", "py"),
746
- k("caption"),
747
- z("label"),
748
- se ? n("bg-surface-base", "text-fg-brand-emphasis") : n("bg-surface-brand-strong", "text-fg-inverse")
1048
+ S("caption"),
1049
+ O("label"),
1050
+ Y ? s("bg-surface-base", "text-fg-brand-emphasis") : s("bg-surface-brand-strong", "text-fg-inverse")
749
1051
  ),
750
- children: L
1052
+ children: E
751
1053
  }
752
- ) : null, ie = K && x !== void 0 ? `${x}, ${L}` : x;
1054
+ ) : null, Z = W && g !== void 0 ? `${g}, ${E}` : g;
753
1055
  return /* @__PURE__ */ v(
754
1056
  "div",
755
1057
  {
756
1058
  ref: r,
757
- className: n(
758
- Q({ variant: s, size: o, selected: c, disabled: d }),
1059
+ className: s(
1060
+ le({ variant: n, size: o, selected: c, disabled: d }),
759
1061
  w && i("xs", "pr"),
760
1062
  p
761
1063
  ),
762
1064
  "aria-disabled": d,
763
1065
  children: [
764
- E ? /* @__PURE__ */ l(
1066
+ T ? /* @__PURE__ */ l(
765
1067
  "button",
766
1068
  {
767
1069
  type: "button",
768
1070
  onClick: d ? void 0 : N,
769
- onKeyDown: re,
1071
+ onKeyDown: P,
770
1072
  disabled: d,
771
1073
  "aria-pressed": c ? !0 : void 0,
772
- "aria-label": h || ie,
773
- tabIndex: g !== void 0 ? g : M ? 0 : void 0,
774
- className: n(
1074
+ "aria-label": x || Z,
1075
+ tabIndex: m !== void 0 ? m : z ? 0 : void 0,
1076
+ className: s(
775
1077
  "flex-1",
776
1078
  "bg-transparent",
777
1079
  "border-0",
@@ -783,12 +1085,12 @@ const Q = V(
783
1085
  "focus:ring-2",
784
1086
  "focus:ring-line-focus",
785
1087
  "focus:ring-offset-2",
786
- C("full")
1088
+ $("full")
787
1089
  ),
788
- children: a
1090
+ children: t
789
1091
  }
790
- ) : /* @__PURE__ */ l("span", { children: a }),
791
- ne,
1092
+ ) : /* @__PURE__ */ l("span", { children: t }),
1093
+ K,
792
1094
  w && !d && /* @__PURE__ */ l(
793
1095
  "button",
794
1096
  {
@@ -796,10 +1098,10 @@ const Q = V(
796
1098
  onClick: (A) => {
797
1099
  A.stopPropagation(), w();
798
1100
  },
799
- className: n(
1101
+ className: s(
800
1102
  i("xs", "ml"),
801
1103
  "hover:bg-tint-hover",
802
- C("full"),
1104
+ $("full"),
803
1105
  i("xs", "p"),
804
1106
  "transition-colors",
805
1107
  "focus:outline-none",
@@ -807,101 +1109,101 @@ const Q = V(
807
1109
  "focus:ring-line-focus",
808
1110
  "focus:ring-offset-1"
809
1111
  ),
810
- "aria-label": `Remove ${x || "chip"}`,
811
- children: /* @__PURE__ */ l(pe, { className: "h-3 w-3", "aria-hidden": "true" })
1112
+ "aria-label": `Remove ${g || "chip"}`,
1113
+ children: /* @__PURE__ */ l(Ne, { className: "h-3 w-3", "aria-hidden": "true" })
812
1114
  }
813
1115
  )
814
1116
  ]
815
1117
  }
816
1118
  );
817
1119
  });
818
- Re.displayName = "Chip";
819
- function Na(s) {
820
- var o = s, {
1120
+ Ie.displayName = "Chip";
1121
+ function La(n) {
1122
+ var o = n, {
821
1123
  message: e,
822
- id: t,
1124
+ id: a,
823
1125
  className: r = ""
824
- } = o, a = m(o, [
1126
+ } = o, t = b(o, [
825
1127
  "message",
826
1128
  "id",
827
1129
  "className"
828
1130
  ]);
829
1131
  const c = [
830
1132
  i("xs", "mt"),
831
- k("bodySmall"),
1133
+ S("bodySmall"),
832
1134
  "text-fg-error",
833
1135
  "flex",
834
1136
  "items-center",
835
1137
  i("xs", "gap")
836
- ], d = n(...c, r);
837
- return /* @__PURE__ */ v("div", y(u({ role: "alert", id: t, className: d, "aria-live": "polite" }, a), { children: [
838
- /* @__PURE__ */ l(me, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
1138
+ ], d = s(...c, r);
1139
+ return /* @__PURE__ */ v("div", y(u({ role: "alert", id: a, className: d, "aria-live": "polite" }, t), { children: [
1140
+ /* @__PURE__ */ l(Se, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
839
1141
  /* @__PURE__ */ l("span", { children: e })
840
1142
  ] }));
841
1143
  }
842
- function Sa(a) {
843
- var s = a, {
1144
+ function za(t) {
1145
+ var n = t, {
844
1146
  variant: e = "info",
845
- className: t
846
- } = s, r = m(s, [
1147
+ className: a
1148
+ } = n, r = b(n, [
847
1149
  "variant",
848
1150
  "className"
849
1151
  ]);
850
1152
  const o = {
851
- warning: n("bg-warning-bg", "text-warning-dark", "border-warning"),
852
- error: n("bg-error-bg", "text-error-dark", "border-error"),
853
- info: n("bg-info-bg", "text-info-dark", "border-info")
1153
+ warning: s("bg-warning-bg", "text-warning-dark", "border-warning"),
1154
+ error: s("bg-error-bg", "text-error-dark", "border-error"),
1155
+ info: s("bg-info-bg", "text-info-dark", "border-info")
854
1156
  };
855
1157
  return /* @__PURE__ */ l(
856
1158
  "div",
857
1159
  u({
858
1160
  role: "alert",
859
- className: n(
1161
+ className: s(
860
1162
  "border",
861
1163
  i("base", "px"),
862
1164
  i("sm", "py"),
863
- C("lg"),
1165
+ $("lg"),
864
1166
  o[e],
865
- t
1167
+ a
866
1168
  )
867
1169
  }, r)
868
1170
  );
869
1171
  }
870
- const je = n(
1172
+ const Ue = s(
871
1173
  "block",
872
- k("label"),
873
- z("label"),
1174
+ S("label"),
1175
+ O("label"),
874
1176
  "text-fg-primary"
875
- ), De = {
1177
+ ), Ke = {
876
1178
  default: "",
877
- required: n(
1179
+ required: s(
878
1180
  "after:content-['*']",
879
1181
  `after:${i("0.5", "ml")}`,
880
1182
  "after:text-fg-error"
881
1183
  ),
882
- optional: n(
1184
+ optional: s(
883
1185
  "after:content-['(optional)']",
884
1186
  `after:${i("xs", "ml")}`,
885
1187
  "after:text-fg-tertiary",
886
1188
  "after:font-normal"
887
1189
  )
888
- }, _e = H(
889
- D(function(c, o) {
890
- var d = c, { variant: t = "default", className: r = "", children: a } = d, s = m(d, ["variant", "className", "children"]);
891
- const p = n(
892
- je,
893
- De[t],
1190
+ }, Xe = M(
1191
+ j(function(c, o) {
1192
+ var d = c, { variant: a = "default", className: r = "", children: t } = d, n = b(d, ["variant", "className", "children"]);
1193
+ const p = s(
1194
+ Ue,
1195
+ Ke[a],
894
1196
  r
895
1197
  );
896
- return /* @__PURE__ */ l("label", y(u({ ref: o, className: p }, s), { children: a }));
1198
+ return /* @__PURE__ */ l("label", y(u({ ref: o, className: p }, n), { children: t }));
897
1199
  })
898
1200
  );
899
- _e.displayName = "Label";
900
- class j {
1201
+ Xe.displayName = "Label";
1202
+ class R {
901
1203
  /**
902
1204
  * Create a shadow token
903
1205
  */
904
- static create(t) {
1206
+ static create(a) {
905
1207
  return {
906
1208
  none: {
907
1209
  value: "none",
@@ -938,22 +1240,22 @@ class j {
938
1240
  tailwind: "shadow-inner",
939
1241
  description: "Inner shadow for inset elements"
940
1242
  }
941
- }[t];
1243
+ }[a];
942
1244
  }
943
1245
  }
944
- const ze = {
945
- none: j.create("none"),
946
- sm: j.create("sm"),
947
- md: j.create("md"),
948
- lg: j.create("lg"),
949
- xl: j.create("xl"),
950
- "2xl": j.create("2xl"),
951
- inner: j.create("inner")
1246
+ const qe = {
1247
+ none: R.create("none"),
1248
+ sm: R.create("sm"),
1249
+ md: R.create("md"),
1250
+ lg: R.create("lg"),
1251
+ xl: R.create("xl"),
1252
+ "2xl": R.create("2xl"),
1253
+ inner: R.create("inner")
952
1254
  };
953
- function B(e) {
954
- return ze[e].tailwind;
1255
+ function q(e) {
1256
+ return qe[e].tailwind;
955
1257
  }
956
- const Me = V("w-full", {
1258
+ const Ge = L("w-full", {
957
1259
  variants: {
958
1260
  size: {
959
1261
  sm: "h-1",
@@ -973,7 +1275,7 @@ const Me = V("w-full", {
973
1275
  size: "md",
974
1276
  variant: "primary"
975
1277
  }
976
- }), ee = V("transition-all", {
1278
+ }), oe = L("transition-all", {
977
1279
  variants: {
978
1280
  variant: {
979
1281
  primary: "bg-surface-brand",
@@ -987,17 +1289,17 @@ const Me = V("w-full", {
987
1289
  defaultVariants: {
988
1290
  variant: "primary"
989
1291
  }
990
- }), He = D(function(b, g) {
991
- var f = b, {
992
- value: t,
1292
+ }), Ye = j(function(h, m) {
1293
+ var f = h, {
1294
+ value: a,
993
1295
  max: r = 100,
994
- variant: a = "primary",
995
- size: s = "md",
1296
+ variant: t = "primary",
1297
+ size: n = "md",
996
1298
  showLabel: o = !1,
997
1299
  label: c,
998
1300
  "aria-label": d,
999
1301
  className: p = ""
1000
- } = f, h = m(f, [
1302
+ } = f, x = b(f, [
1001
1303
  "value",
1002
1304
  "max",
1003
1305
  "variant",
@@ -1007,12 +1309,12 @@ const Me = V("w-full", {
1007
1309
  "aria-label",
1008
1310
  "className"
1009
1311
  ]);
1010
- const x = t === void 0, w = x ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), N = d || (x ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
1011
- return /* @__PURE__ */ v("div", y(u({ ref: g, className: n("w-full", p) }, h), { children: [
1012
- o && (c || !x) && /* @__PURE__ */ v(
1312
+ const g = a === void 0, w = g ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), N = d || (g ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
1313
+ return /* @__PURE__ */ v("div", y(u({ ref: m, className: s("w-full", p) }, x), { children: [
1314
+ o && (c || !g) && /* @__PURE__ */ v(
1013
1315
  "div",
1014
1316
  {
1015
- className: n(
1317
+ className: s(
1016
1318
  "flex",
1017
1319
  "items-center",
1018
1320
  "justify-between",
@@ -1022,19 +1324,19 @@ const Me = V("w-full", {
1022
1324
  c && /* @__PURE__ */ l(
1023
1325
  "span",
1024
1326
  {
1025
- className: n(
1026
- k("bodySmall"),
1027
- z("label"),
1327
+ className: s(
1328
+ S("bodySmall"),
1329
+ O("label"),
1028
1330
  "text-fg-primary"
1029
1331
  ),
1030
1332
  children: c
1031
1333
  }
1032
1334
  ),
1033
- !x && w !== void 0 && /* @__PURE__ */ v(
1335
+ !g && w !== void 0 && /* @__PURE__ */ v(
1034
1336
  "span",
1035
1337
  {
1036
- className: n(
1037
- k("bodySmall"),
1338
+ className: s(
1339
+ S("bodySmall"),
1038
1340
  "text-fg-secondary"
1039
1341
  ),
1040
1342
  children: [
@@ -1050,28 +1352,28 @@ const Me = V("w-full", {
1050
1352
  "div",
1051
1353
  {
1052
1354
  role: "progressbar",
1053
- "aria-valuemin": x ? void 0 : 0,
1054
- "aria-valuemax": x ? void 0 : r,
1055
- "aria-valuenow": x ? void 0 : t,
1355
+ "aria-valuemin": g ? void 0 : 0,
1356
+ "aria-valuemax": g ? void 0 : r,
1357
+ "aria-valuenow": g ? void 0 : a,
1056
1358
  "aria-label": N,
1057
- "aria-busy": x,
1058
- className: n(
1359
+ "aria-busy": g,
1360
+ className: s(
1059
1361
  "relative",
1060
1362
  "w-full",
1061
1363
  "overflow-hidden",
1062
- Me({ size: s, variant: a }),
1063
- C("full")
1364
+ Ge({ size: n, variant: t }),
1365
+ $("full")
1064
1366
  ),
1065
- children: x ? /* @__PURE__ */ l(
1367
+ children: g ? /* @__PURE__ */ l(
1066
1368
  "div",
1067
1369
  {
1068
- className: n(
1370
+ className: s(
1069
1371
  "absolute",
1070
1372
  "top-0",
1071
1373
  "left-0",
1072
1374
  "bottom-0",
1073
- ee({ variant: a }),
1074
- C("full"),
1375
+ oe({ variant: t }),
1376
+ $("full"),
1075
1377
  "motion-reduce:animate-none"
1076
1378
  ),
1077
1379
  style: {
@@ -1082,10 +1384,10 @@ const Me = V("w-full", {
1082
1384
  ) : /* @__PURE__ */ l(
1083
1385
  "div",
1084
1386
  {
1085
- className: n(
1387
+ className: s(
1086
1388
  "h-full",
1087
- ee({ variant: a }),
1088
- C("full"),
1389
+ oe({ variant: t }),
1390
+ $("full"),
1089
1391
  "transition-all",
1090
1392
  "duration-300",
1091
1393
  "ease-out"
@@ -1100,57 +1402,57 @@ const Me = V("w-full", {
1100
1402
  )
1101
1403
  ] }));
1102
1404
  });
1103
- He.displayName = "Progress";
1104
- const Ie = {
1405
+ Ye.displayName = "Progress";
1406
+ const Ze = {
1105
1407
  horizontal: "w-full border-t",
1106
1408
  vertical: "h-full border-l self-stretch"
1107
- }, Pe = {
1409
+ }, Je = {
1108
1410
  solid: "border-solid",
1109
1411
  dashed: "border-dashed",
1110
1412
  dotted: "border-dotted"
1111
- }, We = H(function(o) {
1413
+ }, Qe = M(function(o) {
1112
1414
  var c = o, {
1113
- orientation: t = "horizontal",
1415
+ orientation: a = "horizontal",
1114
1416
  variant: r = "solid",
1115
- className: a = ""
1116
- } = c, s = m(c, [
1417
+ className: t = ""
1418
+ } = c, n = b(c, [
1117
1419
  "orientation",
1118
1420
  "variant",
1119
1421
  "className"
1120
1422
  ]);
1121
- const d = n(
1423
+ const d = s(
1122
1424
  "border-0",
1123
1425
  "border-line-default",
1124
- Ie[t],
1125
- Pe[r],
1126
- a
1426
+ Ze[a],
1427
+ Je[r],
1428
+ t
1127
1429
  );
1128
- return t === "vertical" ? /* @__PURE__ */ l(
1430
+ return a === "vertical" ? /* @__PURE__ */ l(
1129
1431
  "div",
1130
1432
  u({
1131
1433
  className: d,
1132
1434
  role: "separator",
1133
1435
  "aria-orientation": "vertical"
1134
- }, s)
1436
+ }, n)
1135
1437
  ) : /* @__PURE__ */ l(
1136
1438
  "hr",
1137
1439
  u({
1138
1440
  className: d,
1139
1441
  role: "separator",
1140
1442
  "aria-orientation": "horizontal"
1141
- }, s)
1443
+ }, n)
1142
1444
  );
1143
1445
  });
1144
- We.displayName = "Separator";
1145
- function $a(d) {
1446
+ Qe.displayName = "Separator";
1447
+ function Fa(d) {
1146
1448
  var p = d, {
1147
1449
  variant: e = "text",
1148
- width: t,
1450
+ width: a,
1149
1451
  height: r,
1150
- lines: a = 1,
1151
- className: s = "",
1452
+ lines: t = 1,
1453
+ className: n = "",
1152
1454
  "aria-label": o
1153
- } = p, c = m(p, [
1455
+ } = p, c = b(p, [
1154
1456
  "variant",
1155
1457
  "width",
1156
1458
  "height",
@@ -1158,31 +1460,31 @@ function $a(d) {
1158
1460
  "className",
1159
1461
  "aria-label"
1160
1462
  ]);
1161
- const h = [
1463
+ const x = [
1162
1464
  "motion-safe:animate-pulse",
1163
1465
  "bg-surface-muted",
1164
- C("sm")
1165
- ], g = {
1466
+ $("sm")
1467
+ ], m = {
1166
1468
  text: "h-4",
1167
1469
  card: "h-32",
1168
1470
  list: "h-12",
1169
- circle: C("full")
1170
- }, b = n(...h, g[e], s), f = {};
1171
- t && (f.width = t), r && (f.height = r);
1172
- const x = o || `Loading ${e} content`;
1173
- return e === "text" && a > 1 ? /* @__PURE__ */ l(
1471
+ circle: $("full")
1472
+ }, h = s(...x, m[e], n), f = {};
1473
+ a && (f.width = a), r && (f.height = r);
1474
+ const g = o || `Loading ${e} content`;
1475
+ return e === "text" && t > 1 ? /* @__PURE__ */ l(
1174
1476
  "div",
1175
1477
  y(u({
1176
1478
  className: i("sm", "space-y"),
1177
1479
  role: "status",
1178
1480
  "aria-busy": "true",
1179
- "aria-label": x
1481
+ "aria-label": g
1180
1482
  }, c), {
1181
- children: Array.from({ length: a }).map((w, N) => /* @__PURE__ */ l(
1483
+ children: Array.from({ length: t }).map((w, N) => /* @__PURE__ */ l(
1182
1484
  "div",
1183
1485
  {
1184
- className: b,
1185
- style: N === a - 1 ? { width: "75%" } : f,
1486
+ className: h,
1487
+ style: N === t - 1 ? { width: "75%" } : f,
1186
1488
  "aria-hidden": "true"
1187
1489
  },
1188
1490
  N
@@ -1191,77 +1493,15 @@ function $a(d) {
1191
1493
  ) : /* @__PURE__ */ l(
1192
1494
  "div",
1193
1495
  u({
1194
- className: b,
1496
+ className: h,
1195
1497
  style: f,
1196
1498
  role: "status",
1197
1499
  "aria-busy": "true",
1198
- "aria-label": x
1500
+ "aria-label": g
1199
1501
  }, c)
1200
1502
  );
1201
1503
  }
1202
- const Oe = V("motion-safe:animate-spin", {
1203
- variants: {
1204
- size: {
1205
- sm: "h-4 w-4",
1206
- md: "h-5 w-5",
1207
- lg: "h-8 w-8"
1208
- },
1209
- variant: {
1210
- primary: "text-fg-brand",
1211
- secondary: "text-fg-brand-secondary",
1212
- neutral: "text-fg-secondary"
1213
- }
1214
- },
1215
- defaultVariants: {
1216
- size: "md",
1217
- variant: "primary"
1218
- }
1219
- }), Be = H(function(c) {
1220
- var d = c, {
1221
- size: t = "md",
1222
- variant: r = "primary",
1223
- label: a,
1224
- className: s = ""
1225
- } = d, o = m(d, [
1226
- "size",
1227
- "variant",
1228
- "label",
1229
- "className"
1230
- ]);
1231
- return /* @__PURE__ */ v(
1232
- "div",
1233
- y(u({
1234
- className: n("inline-flex", "items-center", s),
1235
- role: "status",
1236
- "aria-label": a || "Loading",
1237
- "aria-live": "polite"
1238
- }, o), {
1239
- children: [
1240
- /* @__PURE__ */ l(
1241
- ge,
1242
- {
1243
- className: n(Oe({ size: t, variant: r })),
1244
- "aria-hidden": "true"
1245
- }
1246
- ),
1247
- a && /* @__PURE__ */ l(
1248
- "span",
1249
- {
1250
- className: n(
1251
- i("sm", "ml"),
1252
- k("bodySmall"),
1253
- "text-fg-secondary",
1254
- "sr-only"
1255
- ),
1256
- children: a
1257
- }
1258
- )
1259
- ]
1260
- })
1261
- );
1262
- });
1263
- Be.displayName = "Spinner";
1264
- const Ue = {
1504
+ const ea = {
1265
1505
  primary: {
1266
1506
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1267
1507
  light: "text-indigo-400",
@@ -1313,16 +1553,16 @@ const Ue = {
1313
1553
  contrast: "text-fg-inverse"
1314
1554
  }
1315
1555
  };
1316
- function Ke(h, p) {
1317
- var g = h, {
1556
+ function aa(x, p) {
1557
+ var m = x, {
1318
1558
  variant: e = "paragraph",
1319
- bold: t,
1559
+ bold: a,
1320
1560
  italic: r,
1321
- className: a,
1322
- as: s,
1561
+ className: t,
1562
+ as: n,
1323
1563
  colorRole: o = "neutral",
1324
1564
  colorShade: c = "dark"
1325
- } = g, d = m(g, [
1565
+ } = m, d = b(m, [
1326
1566
  "variant",
1327
1567
  "bold",
1328
1568
  "italic",
@@ -1331,10 +1571,10 @@ function Ke(h, p) {
1331
1571
  "colorRole",
1332
1572
  "colorShade"
1333
1573
  ]);
1334
- const b = [];
1574
+ const h = [];
1335
1575
  let f;
1336
- if (s)
1337
- f = s;
1576
+ if (n)
1577
+ f = n;
1338
1578
  else
1339
1579
  switch (e) {
1340
1580
  case "heading":
@@ -1347,25 +1587,25 @@ function Ke(h, p) {
1347
1587
  f = "p";
1348
1588
  break;
1349
1589
  }
1350
- return e === "heading" ? b.push(R("h2")) : e === "body" || e === "paragraph" ? b.push(R("body")) : e === "bodySmall" ? b.push(R("bodySmall")) : e === "bodyLarge" ? b.push(R("bodyLarge")) : e === "caption" ? b.push(R("caption")) : e === "label" ? b.push(R("label")) : b.push(R("body")), t && b.push("font-bold"), r && b.push("italic"), b.push(Ue[o][c]), /* @__PURE__ */ l(f, u({ ref: p, className: n(...b, a) }, d));
1590
+ return e === "heading" ? h.push(D("h2")) : e === "body" || e === "paragraph" ? h.push(D("body")) : e === "bodySmall" ? h.push(D("bodySmall")) : e === "bodyLarge" ? h.push(D("bodyLarge")) : e === "caption" ? h.push(D("caption")) : e === "label" ? h.push(D("label")) : h.push(D("body")), a && h.push("font-bold"), r && h.push("italic"), h.push(ea[o][c]), /* @__PURE__ */ l(f, u({ ref: p, className: s(...h, t) }, d));
1351
1591
  }
1352
- const _ = D(Ke), Xe = {
1592
+ const _ = j(aa), ta = {
1353
1593
  sm: "max-w-screen-sm",
1354
1594
  md: "max-w-screen-md",
1355
1595
  lg: "max-w-screen-lg",
1356
1596
  xl: "max-w-screen-xl",
1357
1597
  "2xl": "max-w-screen-2xl",
1358
1598
  full: "max-w-full"
1359
- }, qe = ae.forwardRef(
1599
+ }, ra = ce.forwardRef(
1360
1600
  (p, d) => {
1361
- var h = p, {
1601
+ var x = p, {
1362
1602
  className: e,
1363
- maxWidth: t = "lg",
1603
+ maxWidth: a = "lg",
1364
1604
  paddingX: r = "base",
1365
- paddingY: a = "base",
1366
- center: s = !0,
1605
+ paddingY: t = "base",
1606
+ center: n = !0,
1367
1607
  children: o
1368
- } = h, c = m(h, [
1608
+ } = x, c = b(x, [
1369
1609
  "className",
1370
1610
  "maxWidth",
1371
1611
  "paddingX",
@@ -1377,12 +1617,12 @@ const _ = D(Ke), Xe = {
1377
1617
  "div",
1378
1618
  y(u({
1379
1619
  ref: d,
1380
- className: n(
1620
+ className: s(
1381
1621
  "w-full",
1382
- Xe[t],
1622
+ ta[a],
1383
1623
  i(r, "px"),
1384
- i(a, "py"),
1385
- s && "mx-auto",
1624
+ i(t, "py"),
1625
+ n && "mx-auto",
1386
1626
  e
1387
1627
  )
1388
1628
  }, c), {
@@ -1391,17 +1631,17 @@ const _ = D(Ke), Xe = {
1391
1631
  );
1392
1632
  }
1393
1633
  );
1394
- qe.displayName = "Container";
1395
- const Ge = ae.forwardRef(
1634
+ ra.displayName = "Container";
1635
+ const na = ce.forwardRef(
1396
1636
  (p, d) => {
1397
- var h = p, {
1637
+ var x = p, {
1398
1638
  className: e,
1399
- spacing: t = "base",
1639
+ spacing: a = "base",
1400
1640
  align: r = "stretch",
1401
- justify: a = "start",
1402
- direction: s = "column",
1641
+ justify: t = "start",
1642
+ direction: n = "column",
1403
1643
  children: o
1404
- } = h, c = m(h, [
1644
+ } = x, c = b(x, [
1405
1645
  "className",
1406
1646
  "spacing",
1407
1647
  "align",
@@ -1409,7 +1649,7 @@ const Ge = ae.forwardRef(
1409
1649
  "direction",
1410
1650
  "children"
1411
1651
  ]);
1412
- const g = s === "column" ? i(t, "gap-y") : i(t, "gap-x"), b = {
1652
+ const m = n === "column" ? i(a, "gap-y") : i(a, "gap-x"), h = {
1413
1653
  start: "items-start",
1414
1654
  center: "items-center",
1415
1655
  end: "items-end",
@@ -1426,12 +1666,12 @@ const Ge = ae.forwardRef(
1426
1666
  "div",
1427
1667
  y(u({
1428
1668
  ref: d,
1429
- className: n(
1669
+ className: s(
1430
1670
  "flex",
1431
- s === "column" ? "flex-col" : "flex-row",
1432
- g,
1433
- b[r],
1434
- f[a],
1671
+ n === "column" ? "flex-col" : "flex-row",
1672
+ m,
1673
+ h[r],
1674
+ f[t],
1435
1675
  e
1436
1676
  )
1437
1677
  }, c), {
@@ -1440,13 +1680,13 @@ const Ge = ae.forwardRef(
1440
1680
  );
1441
1681
  }
1442
1682
  );
1443
- Ge.displayName = "Stack";
1444
- function Ye(s) {
1445
- var o = s, {
1683
+ na.displayName = "Stack";
1684
+ function sa(n) {
1685
+ var o = n, {
1446
1686
  items: e,
1447
- separator: t = "/",
1687
+ separator: a = "/",
1448
1688
  className: r = ""
1449
- } = o, a = m(o, [
1689
+ } = o, t = b(o, [
1450
1690
  "items",
1451
1691
  "separator",
1452
1692
  "className"
@@ -1455,32 +1695,32 @@ function Ye(s) {
1455
1695
  "flex",
1456
1696
  "items-center",
1457
1697
  i("sm", "space-x"),
1458
- k("bodySmall")
1459
- ], d = n(...c, r);
1460
- return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d }, a), { children: /* @__PURE__ */ l(
1698
+ S("bodySmall")
1699
+ ], d = s(...c, r);
1700
+ return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
1461
1701
  "ol",
1462
1702
  {
1463
- className: n("flex", "items-center", i("sm", "space-x")),
1464
- children: e.map((p, h) => {
1465
- const g = h === e.length - 1;
1703
+ className: s("flex", "items-center", i("sm", "space-x")),
1704
+ children: e.map((p, x) => {
1705
+ const m = x === e.length - 1;
1466
1706
  return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
1467
- h > 0 && /* @__PURE__ */ l(
1707
+ x > 0 && /* @__PURE__ */ l(
1468
1708
  "span",
1469
1709
  {
1470
- className: n(
1710
+ className: s(
1471
1711
  i("sm", "mx"),
1472
1712
  "text-fg-tertiary"
1473
1713
  ),
1474
1714
  "aria-hidden": "true",
1475
- children: t
1715
+ children: a
1476
1716
  }
1477
1717
  ),
1478
- g ? /* @__PURE__ */ l(
1718
+ m ? /* @__PURE__ */ l(
1479
1719
  "span",
1480
1720
  {
1481
- className: n(
1721
+ className: s(
1482
1722
  "text-fg-primary",
1483
- z("label")
1723
+ O("label")
1484
1724
  ),
1485
1725
  "aria-current": "page",
1486
1726
  children: p.label
@@ -1489,15 +1729,15 @@ function Ye(s) {
1489
1729
  "a",
1490
1730
  {
1491
1731
  href: p.href,
1492
- className: n(
1732
+ className: s(
1493
1733
  "inline-flex",
1494
1734
  "items-center",
1495
1735
  i("xs", "px"),
1496
1736
  i("xs", "pt"),
1497
1737
  "border-b-2",
1498
1738
  "border-transparent",
1499
- k("bodySmall"),
1500
- z("label"),
1739
+ S("bodySmall"),
1740
+ O("label"),
1501
1741
  "transition-colors",
1502
1742
  "text-fg-secondary",
1503
1743
  "hover:border-line-emphasis",
@@ -1506,37 +1746,37 @@ function Ye(s) {
1506
1746
  children: p.label
1507
1747
  }
1508
1748
  ) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
1509
- ] }, h);
1749
+ ] }, x);
1510
1750
  })
1511
1751
  }
1512
1752
  ) }));
1513
1753
  }
1514
- function Ze(a) {
1515
- var s = a, { children: e, className: t } = s, r = m(s, ["children", "className"]);
1754
+ function ia(t) {
1755
+ var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
1516
1756
  return /* @__PURE__ */ l(
1517
1757
  "div",
1518
1758
  y(u({
1519
- className: n(
1759
+ className: s(
1520
1760
  "grid items-start",
1521
1761
  i("1.5", "gap"),
1522
1762
  i("base", "mb"),
1523
1763
  "[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
1524
1764
  "[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
1525
- t
1765
+ a
1526
1766
  )
1527
1767
  }, r), {
1528
1768
  children: e
1529
1769
  })
1530
1770
  );
1531
1771
  }
1532
- function Je(c) {
1772
+ function la(c) {
1533
1773
  var d = c, {
1534
1774
  children: e,
1535
- icon: t,
1775
+ icon: a,
1536
1776
  badge: r,
1537
- as: a = "h2",
1538
- className: s
1539
- } = d, o = m(d, [
1777
+ as: t = "h2",
1778
+ className: n
1779
+ } = d, o = b(d, [
1540
1780
  "children",
1541
1781
  "icon",
1542
1782
  "badge",
@@ -1544,38 +1784,38 @@ function Je(c) {
1544
1784
  "className"
1545
1785
  ]);
1546
1786
  return /* @__PURE__ */ v(
1547
- a,
1787
+ t,
1548
1788
  y(u({
1549
- className: n(
1789
+ className: s(
1550
1790
  "text-base font-semibold text-fg-primary",
1551
1791
  "flex items-center",
1552
1792
  i("sm", "gap"),
1553
- s
1793
+ n
1554
1794
  )
1555
1795
  }, o), {
1556
1796
  children: [
1557
- t ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: t }) : null,
1797
+ a ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: a }) : null,
1558
1798
  /* @__PURE__ */ l("span", { children: e }),
1559
1799
  r ? /* @__PURE__ */ l("span", { className: "inline-flex", children: r }) : null
1560
1800
  ]
1561
1801
  })
1562
1802
  );
1563
1803
  }
1564
- function Qe(a) {
1565
- var s = a, {
1804
+ function oa(t) {
1805
+ var n = t, {
1566
1806
  children: e,
1567
- className: t
1568
- } = s, r = m(s, [
1807
+ className: a
1808
+ } = n, r = b(n, [
1569
1809
  "children",
1570
1810
  "className"
1571
1811
  ]);
1572
- return /* @__PURE__ */ l("p", y(u({ className: n("text-sm text-fg-secondary", t) }, r), { children: e }));
1812
+ return /* @__PURE__ */ l("p", y(u({ className: s("text-sm text-fg-secondary", a) }, r), { children: e }));
1573
1813
  }
1574
- function ea(a) {
1575
- var s = a, {
1814
+ function ca(t) {
1815
+ var n = t, {
1576
1816
  children: e,
1577
- className: t
1578
- } = s, r = m(s, [
1817
+ className: a
1818
+ } = n, r = b(n, [
1579
1819
  "children",
1580
1820
  "className"
1581
1821
  ]);
@@ -1583,31 +1823,31 @@ function ea(a) {
1583
1823
  "div",
1584
1824
  y(u({
1585
1825
  "data-card-actions": "",
1586
- className: n(
1826
+ className: s(
1587
1827
  "flex items-center self-start",
1588
1828
  i("sm", "gap"),
1589
- t
1829
+ a
1590
1830
  )
1591
1831
  }, r), {
1592
1832
  children: e
1593
1833
  })
1594
1834
  );
1595
1835
  }
1596
- function aa(a) {
1597
- var s = a, { children: e, className: t } = s, r = m(s, ["children", "className"]);
1598
- return /* @__PURE__ */ l("div", y(u({ className: n(t) }, r), { children: e }));
1836
+ function da(t) {
1837
+ var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
1838
+ return /* @__PURE__ */ l("div", y(u({ className: s(a) }, r), { children: e }));
1599
1839
  }
1600
- function ta(h) {
1601
- var g = h, {
1840
+ function ua(x) {
1841
+ var m = x, {
1602
1842
  variant: e = "default",
1603
- padding: t = "medium",
1843
+ padding: a = "medium",
1604
1844
  className: r = "",
1605
- onClick: a,
1606
- "aria-label": s,
1845
+ onClick: t,
1846
+ "aria-label": n,
1607
1847
  "aria-labelledby": o,
1608
1848
  asSection: c = !1,
1609
1849
  children: d
1610
- } = g, p = m(g, [
1850
+ } = m, p = b(m, [
1611
1851
  "variant",
1612
1852
  "padding",
1613
1853
  "className",
@@ -1617,27 +1857,27 @@ function ta(h) {
1617
1857
  "asSection",
1618
1858
  "children"
1619
1859
  ]);
1620
- typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !s && !o && console.warn(
1860
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !n && !o && console.warn(
1621
1861
  "[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation."
1622
1862
  );
1623
- const b = V(
1624
- n(
1863
+ const h = L(
1864
+ s(
1625
1865
  "bg-surface-base",
1626
- C("lg"),
1866
+ $("lg"),
1627
1867
  "border",
1628
1868
  "border-line-default",
1629
- B("sm")
1869
+ q("sm")
1630
1870
  ),
1631
1871
  {
1632
1872
  variants: {
1633
1873
  variant: {
1634
1874
  default: "",
1635
- hover: n(
1636
- `hover:${B("md")}`,
1875
+ hover: s(
1876
+ `hover:${q("md")}`,
1637
1877
  "transition-shadow",
1638
1878
  "cursor-pointer"
1639
1879
  ),
1640
- selected: n("border-line-brand", B("md"))
1880
+ selected: s("border-line-brand", q("md"))
1641
1881
  },
1642
1882
  padding: {
1643
1883
  none: "",
@@ -1651,66 +1891,66 @@ function ta(h) {
1651
1891
  padding: "medium"
1652
1892
  }
1653
1893
  }
1654
- ), f = a !== void 0, x = f ? "button" : void 0, w = f ? 0 : void 0, N = n(b({ variant: e, padding: t }), r), E = u({
1894
+ ), f = t !== void 0, g = f ? "button" : void 0, w = f ? 0 : void 0, N = s(h({ variant: e, padding: a }), r), T = u({
1655
1895
  className: N,
1656
- role: x,
1896
+ role: g,
1657
1897
  tabIndex: w,
1658
- onClick: a,
1659
- onKeyDown: f ? (M) => {
1660
- f && (M.key === "Enter" || M.key === " ") && (M.preventDefault(), a == null || a());
1898
+ onClick: t,
1899
+ onKeyDown: f ? (z) => {
1900
+ f && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), t == null || t());
1661
1901
  } : void 0,
1662
- "aria-label": s,
1902
+ "aria-label": n,
1663
1903
  "aria-labelledby": o
1664
1904
  }, p);
1665
- return c ? /* @__PURE__ */ l("section", y(u({}, E), { children: d })) : /* @__PURE__ */ l("div", y(u({}, E), { children: d }));
1905
+ return c ? /* @__PURE__ */ l("section", y(u({}, T), { children: d })) : /* @__PURE__ */ l("div", y(u({}, T), { children: d }));
1666
1906
  }
1667
- const te = H(ta);
1668
- te.displayName = "Card";
1669
- const I = te;
1670
- I.Header = Ze;
1671
- I.Title = Je;
1672
- I.Subtitle = Qe;
1673
- I.Actions = ea;
1674
- I.Body = aa;
1675
- function Ca(a) {
1676
- var s = a, {
1907
+ const pe = M(ua);
1908
+ pe.displayName = "Card";
1909
+ const H = pe;
1910
+ H.Header = ia;
1911
+ H.Title = la;
1912
+ H.Subtitle = oa;
1913
+ H.Actions = ca;
1914
+ H.Body = da;
1915
+ function Da(t) {
1916
+ var n = t, {
1677
1917
  children: e,
1678
- className: t = ""
1679
- } = s, r = m(s, [
1918
+ className: a = ""
1919
+ } = n, r = b(n, [
1680
1920
  "children",
1681
1921
  "className"
1682
1922
  ]);
1683
1923
  return /* @__PURE__ */ l(
1684
1924
  "div",
1685
1925
  y(u({
1686
- className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${t}`
1926
+ className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
1687
1927
  }, r), {
1688
1928
  children: e
1689
1929
  })
1690
1930
  );
1691
1931
  }
1692
- function ka(a) {
1693
- var s = a, {
1932
+ function ja(t) {
1933
+ var n = t, {
1694
1934
  children: e,
1695
- className: t = ""
1696
- } = s, r = m(s, [
1935
+ className: a = ""
1936
+ } = n, r = b(n, [
1697
1937
  "children",
1698
1938
  "className"
1699
1939
  ]);
1700
1940
  return /* @__PURE__ */ l(
1701
1941
  "div",
1702
1942
  y(u({
1703
- className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${t}`
1943
+ className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
1704
1944
  }, r), {
1705
1945
  children: e
1706
1946
  })
1707
1947
  );
1708
1948
  }
1709
- function Ea(a) {
1710
- var s = a, {
1949
+ function Ra(t) {
1950
+ var n = t, {
1711
1951
  children: e,
1712
- className: t = ""
1713
- } = s, r = m(s, [
1952
+ className: a = ""
1953
+ } = n, r = b(n, [
1714
1954
  "children",
1715
1955
  "className"
1716
1956
  ]);
@@ -1721,18 +1961,18 @@ function Ea(a) {
1721
1961
  ${i("lg", "p")}
1722
1962
  border-b
1723
1963
  border-line-default
1724
- ${t}
1964
+ ${a}
1725
1965
  `
1726
1966
  }, r), {
1727
1967
  children: e
1728
1968
  })
1729
1969
  );
1730
1970
  }
1731
- function Ta(a) {
1732
- var s = a, {
1971
+ function _a(t) {
1972
+ var n = t, {
1733
1973
  children: e,
1734
- className: t = ""
1735
- } = s, r = m(s, [
1974
+ className: a = ""
1975
+ } = n, r = b(n, [
1736
1976
  "children",
1737
1977
  "className"
1738
1978
  ]);
@@ -1746,38 +1986,38 @@ function Ta(a) {
1746
1986
  flex
1747
1987
  justify-end
1748
1988
  ${i("sm", "gap")}
1749
- ${t}
1989
+ ${a}
1750
1990
  `
1751
1991
  }, r), {
1752
1992
  children: e
1753
1993
  })
1754
1994
  );
1755
1995
  }
1756
- function La(o) {
1996
+ function Oa(o) {
1757
1997
  var c = o, {
1758
1998
  label: e,
1759
- children: t,
1999
+ children: a,
1760
2000
  wrap: r = !0,
1761
- className: a
1762
- } = c, s = m(c, [
2001
+ className: t
2002
+ } = c, n = b(c, [
1763
2003
  "label",
1764
2004
  "children",
1765
2005
  "wrap",
1766
2006
  "className"
1767
2007
  ]);
1768
- const p = !(s["aria-label"] != null || s["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
2008
+ const p = !(n["aria-label"] != null || n["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
1769
2009
  return /* @__PURE__ */ v(
1770
2010
  "div",
1771
2011
  y(u({
1772
2012
  role: "group",
1773
2013
  "aria-label": p,
1774
- className: n(
2014
+ className: s(
1775
2015
  "flex items-center",
1776
2016
  r ? "flex-wrap" : "flex-nowrap",
1777
2017
  i("sm", "gap"),
1778
- a
2018
+ t
1779
2019
  )
1780
- }, s), {
2020
+ }, n), {
1781
2021
  children: [
1782
2022
  e ? (
1783
2023
  // shrink-0 keeps the label a stable leading unit: in the wrapping
@@ -1785,45 +2025,45 @@ function La(o) {
1785
2025
  // chips overflow — it stays on one line and the chips wrap around it.
1786
2026
  /* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
1787
2027
  ) : null,
1788
- t
2028
+ a
1789
2029
  ]
1790
2030
  })
1791
2031
  );
1792
2032
  }
1793
- function Aa({ children: e, className: t }) {
2033
+ function Ma({ children: e, className: a }) {
1794
2034
  return /* @__PURE__ */ l(
1795
2035
  "div",
1796
2036
  {
1797
- className: n(
2037
+ className: s(
1798
2038
  "flex-shrink-0 flex items-center",
1799
2039
  i("sm", "gap"),
1800
- t
2040
+ a
1801
2041
  ),
1802
2042
  children: e
1803
2043
  }
1804
2044
  );
1805
2045
  }
1806
- function Va({
2046
+ function Ha({
1807
2047
  children: e,
1808
- className: t
2048
+ className: a
1809
2049
  }) {
1810
2050
  return /* @__PURE__ */ l(
1811
2051
  "nav",
1812
2052
  {
1813
- className: n(
2053
+ className: s(
1814
2054
  "flex-1 flex items-center justify-center",
1815
2055
  i("base", "gap"),
1816
2056
  "hidden md:flex",
1817
2057
  // Hidden on mobile, visible on desktop
1818
- t
2058
+ a
1819
2059
  ),
1820
2060
  "aria-label": "Main navigation",
1821
2061
  children: e
1822
2062
  }
1823
2063
  );
1824
2064
  }
1825
- const ra = V(
1826
- n(
2065
+ const fa = L(
2066
+ s(
1827
2067
  "w-full flex flex-col",
1828
2068
  i("2xl", "py"),
1829
2069
  // 40px vertical breathing room
@@ -1837,7 +2077,7 @@ const ra = V(
1837
2077
  variant: {
1838
2078
  plain: "",
1839
2079
  gradient: "hero-gradient",
1840
- "gradient-glow": n("hero-gradient", "hero-glow")
2080
+ "gradient-glow": s("hero-gradient", "hero-glow")
1841
2081
  },
1842
2082
  align: {
1843
2083
  start: "text-left",
@@ -1849,27 +2089,27 @@ const ra = V(
1849
2089
  align: "start"
1850
2090
  }
1851
2091
  }
1852
- ), sa = {
2092
+ ), pa = {
1853
2093
  start: "items-start",
1854
2094
  center: "items-center"
1855
- }, na = {
2095
+ }, ma = {
1856
2096
  start: "justify-start",
1857
2097
  center: "justify-center"
1858
- }, ia = D(
1859
- function(w, x) {
2098
+ }, ga = j(
2099
+ function(w, g) {
1860
2100
  var N = w, {
1861
- kicker: t,
2101
+ kicker: a,
1862
2102
  title: r,
1863
- description: a,
1864
- actions: s,
2103
+ description: t,
2104
+ actions: n,
1865
2105
  kpis: o,
1866
2106
  meta: c,
1867
2107
  variant: d = "plain",
1868
2108
  align: p = "start",
1869
- className: h,
1870
- "aria-label": g,
1871
- "aria-labelledby": b
1872
- } = N, f = m(N, [
2109
+ className: x,
2110
+ "aria-label": m,
2111
+ "aria-labelledby": h
2112
+ } = N, f = b(N, [
1873
2113
  "kicker",
1874
2114
  "title",
1875
2115
  "description",
@@ -1882,28 +2122,28 @@ const ra = V(
1882
2122
  "aria-label",
1883
2123
  "aria-labelledby"
1884
2124
  ]);
1885
- const L = g != null || b != null, E = g != null ? g : typeof r == "string" ? r : void 0;
1886
- return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !L && typeof r != "string" && console.warn(
2125
+ const E = m != null || h != null, T = m != null ? m : typeof r == "string" ? r : void 0;
2126
+ return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !E && typeof r != "string" && console.warn(
1887
2127
  "[HeroSection] A non-string `title` was provided without `aria-label` or `aria-labelledby`. The hero <section> landmark will have no accessible name. Pass `aria-label`, or set `aria-labelledby` to your title's id."
1888
2128
  ), /* @__PURE__ */ v(
1889
2129
  "section",
1890
2130
  y(u({
1891
- ref: x,
1892
- className: n(ra({ variant: d, align: p }), h),
1893
- "aria-label": E,
1894
- "aria-labelledby": b
2131
+ ref: g,
2132
+ className: s(fa({ variant: d, align: p }), x),
2133
+ "aria-label": T,
2134
+ "aria-labelledby": h
1895
2135
  }, f), {
1896
2136
  children: [
1897
2137
  /* @__PURE__ */ v(
1898
2138
  "div",
1899
2139
  {
1900
- className: n(
2140
+ className: s(
1901
2141
  "flex flex-col",
1902
2142
  i("md", "gap-y"),
1903
- sa[p]
2143
+ pa[p]
1904
2144
  ),
1905
2145
  children: [
1906
- t ? /* @__PURE__ */ l(
2146
+ a ? /* @__PURE__ */ l(
1907
2147
  _,
1908
2148
  {
1909
2149
  as: "span",
@@ -1911,7 +2151,7 @@ const ra = V(
1911
2151
  colorRole: "primary",
1912
2152
  colorShade: "DEFAULT",
1913
2153
  className: "text-sm font-semibold tracking-wide uppercase",
1914
- children: t
2154
+ children: a
1915
2155
  }
1916
2156
  ) : null,
1917
2157
  /* @__PURE__ */ l(
@@ -1923,7 +2163,7 @@ const ra = V(
1923
2163
  children: r
1924
2164
  }
1925
2165
  ),
1926
- a ? /* @__PURE__ */ l(
2166
+ t ? /* @__PURE__ */ l(
1927
2167
  _,
1928
2168
  {
1929
2169
  as: "p",
@@ -1931,21 +2171,21 @@ const ra = V(
1931
2171
  colorRole: "neutral",
1932
2172
  colorShade: "DEFAULT",
1933
2173
  className: "max-w-2xl text-base leading-relaxed sm:text-lg",
1934
- children: a
2174
+ children: t
1935
2175
  }
1936
2176
  ) : null
1937
2177
  ]
1938
2178
  }
1939
2179
  ),
1940
- s ? /* @__PURE__ */ l(
2180
+ n ? /* @__PURE__ */ l(
1941
2181
  "div",
1942
2182
  {
1943
- className: n(
2183
+ className: s(
1944
2184
  "flex flex-wrap",
1945
2185
  i("sm", "gap"),
1946
- na[p]
2186
+ ma[p]
1947
2187
  ),
1948
- children: s
2188
+ children: n
1949
2189
  }
1950
2190
  ) : null,
1951
2191
  o ? /* @__PURE__ */ l("div", { className: "w-full", children: o }) : null,
@@ -1965,11 +2205,11 @@ const ra = V(
1965
2205
  );
1966
2206
  }
1967
2207
  );
1968
- ia.displayName = "HeroSection";
1969
- function Fa(r) {
1970
- var a = r, {
2208
+ ga.displayName = "HeroSection";
2209
+ function Pa(r) {
2210
+ var t = r, {
1971
2211
  className: e = ""
1972
- } = a, t = m(a, [
2212
+ } = t, a = b(t, [
1973
2213
  "className"
1974
2214
  ]);
1975
2215
  return /* @__PURE__ */ l(
@@ -1982,28 +2222,28 @@ function Fa(r) {
1982
2222
  ${i("sm", "my")}
1983
2223
  ${e}
1984
2224
  `
1985
- }, t)
2225
+ }, a)
1986
2226
  );
1987
2227
  }
1988
- function Ra(a) {
1989
- var s = a, {
2228
+ function Wa(t) {
2229
+ var n = t, {
1990
2230
  orientation: e = "horizontal",
1991
- className: t = ""
1992
- } = s, r = m(s, [
2231
+ className: a = ""
2232
+ } = n, r = b(n, [
1993
2233
  "orientation",
1994
2234
  "className"
1995
2235
  ]);
1996
2236
  return e === "vertical" ? /* @__PURE__ */ l(
1997
2237
  "div",
1998
2238
  u({
1999
- className: n("w-px", "h-6", "bg-line-default", "mx-auto", t),
2239
+ className: s("w-px", "h-6", "bg-line-default", "mx-auto", a),
2000
2240
  role: "separator",
2001
2241
  "aria-orientation": "vertical"
2002
2242
  }, r)
2003
2243
  ) : /* @__PURE__ */ l(
2004
2244
  "div",
2005
2245
  u({
2006
- className: n(
2246
+ className: s(
2007
2247
  "w-full",
2008
2248
  "h-px",
2009
2249
  "bg-line-default",
@@ -2011,7 +2251,7 @@ function Ra(a) {
2011
2251
  // my-2 (8px) para consistência com gap-2 usado em outros lugares
2012
2252
  "flex-shrink-0",
2013
2253
  // Prevenir que separator encolha
2014
- t
2254
+ a
2015
2255
  ),
2016
2256
  role: "separator",
2017
2257
  "aria-orientation": "horizontal",
@@ -2023,14 +2263,14 @@ function Ra(a) {
2023
2263
  }, r)
2024
2264
  );
2025
2265
  }
2026
- const la = V(
2266
+ const xa = L(
2027
2267
  // Base classes
2028
- n("w-full", "flex", "flex-col", i("sm", "gap")),
2268
+ s("w-full", "flex", "flex-col", i("sm", "gap")),
2029
2269
  {
2030
2270
  variants: {
2031
2271
  variant: {
2032
- default: n(i("base", "mb")),
2033
- compact: n(i("sm", "mb"))
2272
+ default: s(i("base", "mb")),
2273
+ compact: s(i("sm", "mb"))
2034
2274
  }
2035
2275
  },
2036
2276
  defaultVariants: {
@@ -2038,15 +2278,15 @@ const la = V(
2038
2278
  }
2039
2279
  }
2040
2280
  );
2041
- function ja(d) {
2281
+ function Ba(d) {
2042
2282
  var p = d, {
2043
2283
  title: e,
2044
- description: t,
2284
+ description: a,
2045
2285
  breadcrumb: r,
2046
- actions: a,
2047
- variant: s = "default",
2286
+ actions: t,
2287
+ variant: n = "default",
2048
2288
  className: o
2049
- } = p, c = m(p, [
2289
+ } = p, c = b(p, [
2050
2290
  "title",
2051
2291
  "description",
2052
2292
  "breadcrumb",
@@ -2054,8 +2294,8 @@ function ja(d) {
2054
2294
  "variant",
2055
2295
  "className"
2056
2296
  ]);
2057
- return /* @__PURE__ */ v("div", y(u({ className: n(la({ variant: s }), o) }, c), { children: [
2058
- r && r.length > 0 && /* @__PURE__ */ l(Ye, { items: r }),
2297
+ return /* @__PURE__ */ v("div", y(u({ className: s(xa({ variant: n }), o) }, c), { children: [
2298
+ r && r.length > 0 && /* @__PURE__ */ l(sa, { items: r }),
2059
2299
  /* @__PURE__ */ v(
2060
2300
  "div",
2061
2301
  {
@@ -2071,13 +2311,13 @@ function ja(d) {
2071
2311
  children: e
2072
2312
  }
2073
2313
  ),
2074
- t && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: t })
2314
+ a && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: a })
2075
2315
  ] }),
2076
- a && /* @__PURE__ */ l(
2316
+ t && /* @__PURE__ */ l(
2077
2317
  "div",
2078
2318
  {
2079
2319
  className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
2080
- children: a
2320
+ children: t
2081
2321
  }
2082
2322
  )
2083
2323
  ]
@@ -2085,25 +2325,25 @@ function ja(d) {
2085
2325
  )
2086
2326
  ] }));
2087
2327
  }
2088
- const oa = {
2328
+ const ba = {
2089
2329
  start: "items-start text-left",
2090
2330
  center: "items-center text-center"
2091
- }, ca = {
2331
+ }, ha = {
2092
2332
  neutral: "text-fg-tertiary",
2093
2333
  success: "text-fg-success",
2094
2334
  warning: "text-fg-warning",
2095
2335
  error: "text-fg-error"
2096
2336
  };
2097
- function Da(p) {
2098
- var h = p, {
2337
+ function Ia(p) {
2338
+ var x = p, {
2099
2339
  value: e,
2100
- label: t,
2340
+ label: a,
2101
2341
  hint: r,
2102
- icon: a,
2103
- align: s = "start",
2342
+ icon: t,
2343
+ align: n = "start",
2104
2344
  tone: o = "neutral",
2105
2345
  className: c
2106
- } = h, d = m(h, [
2346
+ } = x, d = b(x, [
2107
2347
  "value",
2108
2348
  "label",
2109
2349
  "hint",
@@ -2112,21 +2352,21 @@ function Da(p) {
2112
2352
  "tone",
2113
2353
  "className"
2114
2354
  ]);
2115
- const g = e == null;
2355
+ const m = e == null;
2116
2356
  return /* @__PURE__ */ v(
2117
2357
  "div",
2118
2358
  y(u({
2119
- className: n(
2359
+ className: s(
2120
2360
  "bg-surface-base flex-1 flex flex-col",
2121
2361
  i("base", "p"),
2122
2362
  i("xs", "gap-y"),
2123
- oa[s],
2363
+ ba[n],
2124
2364
  c
2125
2365
  )
2126
2366
  }, d), {
2127
2367
  children: [
2128
- a ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: a }) : null,
2129
- g ? /* @__PURE__ */ l(
2368
+ t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
2369
+ m ? /* @__PURE__ */ l(
2130
2370
  "span",
2131
2371
  {
2132
2372
  "aria-label": "No data",
@@ -2134,24 +2374,24 @@ function Da(p) {
2134
2374
  children: "—"
2135
2375
  }
2136
2376
  ) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
2137
- /* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: t }),
2138
- r ? /* @__PURE__ */ l("span", { className: n("text-xs", ca[o]), children: r }) : null
2377
+ /* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
2378
+ r ? /* @__PURE__ */ l("span", { className: s("text-xs", ha[o]), children: r }) : null
2139
2379
  ]
2140
2380
  })
2141
2381
  );
2142
2382
  }
2143
- const da = {
2383
+ const ya = {
2144
2384
  2: "md:grid-cols-2",
2145
2385
  3: "md:grid-cols-3",
2146
2386
  4: "md:grid-cols-4"
2147
2387
  };
2148
- function _a(o) {
2388
+ function Ua(o) {
2149
2389
  var c = o, {
2150
2390
  layout: e = "grid",
2151
- cols: t = 4,
2391
+ cols: a = 4,
2152
2392
  className: r,
2153
- children: a
2154
- } = c, s = m(c, [
2393
+ children: t
2394
+ } = c, n = b(c, [
2155
2395
  "layout",
2156
2396
  "cols",
2157
2397
  "className",
@@ -2161,41 +2401,41 @@ function _a(o) {
2161
2401
  return /* @__PURE__ */ l(
2162
2402
  "div",
2163
2403
  y(u({
2164
- className: n(
2404
+ className: s(
2165
2405
  "bg-line-default border border-line-default overflow-hidden gap-px",
2166
- C("lg"),
2167
- d ? `grid grid-cols-2 ${da[t]}` : "flex",
2406
+ $("lg"),
2407
+ d ? `grid grid-cols-2 ${ya[a]}` : "flex",
2168
2408
  r
2169
2409
  )
2170
- }, s), {
2171
- children: a
2410
+ }, n), {
2411
+ children: t
2172
2412
  })
2173
2413
  );
2174
2414
  }
2175
- function za(s) {
2176
- var o = s, { column: e, row: t, className: r = "" } = o, a = m(o, ["column", "row", "className"]);
2177
- const c = e.key in t ? t[e.key] : void 0;
2415
+ function Ka(n) {
2416
+ var o = n, { column: e, row: a, className: r = "" } = o, t = b(o, ["column", "row", "className"]);
2417
+ const c = e.key in a ? a[e.key] : void 0;
2178
2418
  return /* @__PURE__ */ l(
2179
2419
  "td",
2180
2420
  y(u({
2181
2421
  className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
2182
- }, a), {
2183
- children: e.render ? e.render(c, t) : String(c != null ? c : "")
2422
+ }, t), {
2423
+ children: e.render ? e.render(c, a) : String(c != null ? c : "")
2184
2424
  })
2185
2425
  );
2186
2426
  }
2187
- const ua = V(n("flex items-center", "border-b"), {
2427
+ const va = L(s("flex items-center", "border-b"), {
2188
2428
  variants: {
2189
2429
  variant: {
2190
- default: n("border-line-default", i("base", "gap-x")),
2191
- sub: n("border-line-muted", i("sm", "gap-x"))
2430
+ default: s("border-line-default", i("base", "gap-x")),
2431
+ sub: s("border-line-muted", i("sm", "gap-x"))
2192
2432
  }
2193
2433
  },
2194
2434
  defaultVariants: {
2195
2435
  variant: "default"
2196
2436
  }
2197
- }), fa = V(
2198
- n(
2437
+ }), wa = L(
2438
+ s(
2199
2439
  "relative -mb-px inline-flex items-center",
2200
2440
  i("xs", "gap-x"),
2201
2441
  "border-b-2 border-transparent",
@@ -2204,25 +2444,25 @@ const ua = V(n("flex items-center", "border-b"), {
2204
2444
  "focus-visible:ring-2",
2205
2445
  "focus-visible:ring-line-focus",
2206
2446
  "focus-visible:ring-offset-2",
2207
- C("sm")
2447
+ $("sm")
2208
2448
  ),
2209
2449
  {
2210
2450
  variants: {
2211
2451
  variant: {
2212
- default: n(
2452
+ default: s(
2213
2453
  i("sm", "px"),
2214
2454
  i("sm", "py"),
2215
- k("body")
2455
+ S("body")
2216
2456
  ),
2217
- sub: n(
2457
+ sub: s(
2218
2458
  i("sm", "px"),
2219
2459
  i("xs", "py"),
2220
- k("bodySmall")
2460
+ S("bodySmall")
2221
2461
  )
2222
2462
  },
2223
2463
  active: {
2224
- true: n("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
2225
- false: n(
2464
+ true: s("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
2465
+ false: s(
2226
2466
  "text-fg-secondary",
2227
2467
  "hover:text-fg-primary",
2228
2468
  "hover:border-line-muted"
@@ -2234,7 +2474,7 @@ const ua = V(n("flex items-center", "border-b"), {
2234
2474
  {
2235
2475
  variant: "sub",
2236
2476
  active: !1,
2237
- class: n("text-fg-tertiary", "hover:text-fg-secondary")
2477
+ class: s("text-fg-tertiary", "hover:text-fg-secondary")
2238
2478
  }
2239
2479
  ],
2240
2480
  defaultVariants: {
@@ -2242,21 +2482,21 @@ const ua = V(n("flex items-center", "border-b"), {
2242
2482
  active: !1
2243
2483
  }
2244
2484
  }
2245
- ), pa = n(
2485
+ ), Na = s(
2246
2486
  "inline-flex items-center justify-center",
2247
- C("full"),
2487
+ $("full"),
2248
2488
  i("xs", "px"),
2249
2489
  "bg-surface-muted text-fg-secondary text-xs"
2250
- ), ma = D(
2251
- function(h, p) {
2252
- var g = h, {
2253
- items: t,
2490
+ ), Sa = j(
2491
+ function(x, p) {
2492
+ var m = x, {
2493
+ items: a,
2254
2494
  variant: r = "default",
2255
- linkComponent: a,
2256
- className: s,
2495
+ linkComponent: t,
2496
+ className: n,
2257
2497
  "aria-label": o,
2258
2498
  "aria-labelledby": c
2259
- } = g, d = m(g, [
2499
+ } = m, d = b(m, [
2260
2500
  "items",
2261
2501
  "variant",
2262
2502
  "linkComponent",
@@ -2267,42 +2507,42 @@ const ua = V(n("flex items-center", "border-b"), {
2267
2507
  typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !c && console.warn(
2268
2508
  '[TabsAsLinks] renders a <nav> landmark and should have an accessible name. Pass `aria-label` (e.g. "Painel") or `aria-labelledby` — multiple unnamed navs on a page are ambiguous to screen readers.'
2269
2509
  );
2270
- const b = a != null ? a : "a";
2510
+ const h = t != null ? t : "a";
2271
2511
  return /* @__PURE__ */ l(
2272
2512
  "nav",
2273
2513
  y(u({
2274
2514
  ref: p,
2275
- className: n(ua({ variant: r }), s),
2515
+ className: s(va({ variant: r }), n),
2276
2516
  "aria-label": o,
2277
2517
  "aria-labelledby": c
2278
2518
  }, d), {
2279
- children: t.map((f, x) => /* @__PURE__ */ v(
2280
- b,
2519
+ children: a.map((f, g) => /* @__PURE__ */ v(
2520
+ h,
2281
2521
  {
2282
2522
  href: f.href,
2283
2523
  "aria-current": f.active ? "page" : void 0,
2284
2524
  "data-active": f.active ? "true" : void 0,
2285
- className: fa({ variant: r, active: !!f.active }),
2525
+ className: wa({ variant: r, active: !!f.active }),
2286
2526
  children: [
2287
2527
  f.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: f.icon }) : null,
2288
2528
  /* @__PURE__ */ l("span", { children: f.label }),
2289
- f.count !== void 0 ? /* @__PURE__ */ l("span", { className: pa, children: f.count }) : null
2529
+ f.count !== void 0 ? /* @__PURE__ */ l("span", { className: Na, children: f.count }) : null
2290
2530
  ]
2291
2531
  },
2292
- f.href || x
2532
+ f.href || g
2293
2533
  ))
2294
2534
  })
2295
2535
  );
2296
2536
  }
2297
2537
  );
2298
- ma.displayName = "TabsAsLinks";
2299
- function Ma({
2538
+ Sa.displayName = "TabsAsLinks";
2539
+ function Xa({
2300
2540
  items: e,
2301
- orientation: t = "vertical",
2541
+ orientation: a = "vertical",
2302
2542
  className: r = ""
2303
2543
  }) {
2304
- return t === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((a, s) => {
2305
- const o = a.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = s === e.length - 1;
2544
+ return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, n) => {
2545
+ const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
2306
2546
  return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
2307
2547
  /* @__PURE__ */ l(
2308
2548
  "div",
@@ -2313,11 +2553,11 @@ function Ma({
2313
2553
  justify-center
2314
2554
  w-10
2315
2555
  h-10
2316
- ${C("full")}
2556
+ ${$("full")}
2317
2557
  border-2
2318
2558
  ${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"}
2319
2559
  `,
2320
- children: a.icon || (o === "completed" ? /* @__PURE__ */ l(Y, { className: "h-4 w-4" }) : s + 1)
2560
+ children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
2321
2561
  })
2322
2562
  ),
2323
2563
  !c && /* @__PURE__ */ l(
@@ -2336,28 +2576,28 @@ function Ma({
2336
2576
  {
2337
2577
  className: `${i("base", "mt")} text-center ${i("base", "px")}`,
2338
2578
  children: [
2339
- a.timestamp && /* @__PURE__ */ l(
2579
+ t.timestamp && /* @__PURE__ */ l(
2340
2580
  "p",
2341
2581
  {
2342
2582
  className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
2343
- children: a.timestamp
2583
+ children: t.timestamp
2344
2584
  }
2345
2585
  ),
2346
- /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: a.title }),
2347
- a.description && /* @__PURE__ */ l(
2586
+ /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2587
+ t.description && /* @__PURE__ */ l(
2348
2588
  "p",
2349
2589
  {
2350
2590
  className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
2351
- children: a.description
2591
+ children: t.description
2352
2592
  }
2353
2593
  ),
2354
- a.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: a.content })
2594
+ t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
2355
2595
  ]
2356
2596
  }
2357
2597
  )
2358
- ] }) }, a.id);
2359
- }) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((a, s) => {
2360
- const o = a.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = s === e.length - 1;
2598
+ ] }) }, t.id);
2599
+ }) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, n) => {
2600
+ const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
2361
2601
  return /* @__PURE__ */ v(
2362
2602
  "div",
2363
2603
  {
@@ -2373,11 +2613,11 @@ function Ma({
2373
2613
  justify-center
2374
2614
  w-10
2375
2615
  h-10
2376
- ${C("full")}
2616
+ ${$("full")}
2377
2617
  border-2
2378
2618
  ${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"}
2379
2619
  `,
2380
- children: a.icon || (o === "completed" ? /* @__PURE__ */ l(Y, { className: "h-4 w-4" }) : s + 1)
2620
+ children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
2381
2621
  })
2382
2622
  ),
2383
2623
  !c && /* @__PURE__ */ l(
@@ -2394,11 +2634,11 @@ function Ma({
2394
2634
  )
2395
2635
  ] }),
2396
2636
  /* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
2397
- a.timestamp && /* @__PURE__ */ l(
2637
+ t.timestamp && /* @__PURE__ */ l(
2398
2638
  "p",
2399
2639
  {
2400
2640
  className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
2401
- children: a.timestamp
2641
+ children: t.timestamp
2402
2642
  }
2403
2643
  ),
2404
2644
  /* @__PURE__ */ l(
@@ -2409,59 +2649,60 @@ function Ma({
2409
2649
  font-semibold
2410
2650
  ${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
2411
2651
  `,
2412
- children: a.title
2652
+ children: t.title
2413
2653
  }
2414
2654
  ),
2415
- a.description && /* @__PURE__ */ l(
2655
+ t.description && /* @__PURE__ */ l(
2416
2656
  "p",
2417
2657
  {
2418
2658
  className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
2419
- children: a.description
2659
+ children: t.description
2420
2660
  }
2421
2661
  ),
2422
- a.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: a.content })
2662
+ t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
2423
2663
  ] })
2424
2664
  ]
2425
2665
  },
2426
- a.id
2666
+ t.id
2427
2667
  );
2428
2668
  }) });
2429
2669
  }
2430
2670
  export {
2431
- ye as Badge,
2432
- Ye as Breadcrumb,
2433
- I as Card,
2434
- ea as CardActions,
2435
- aa as CardBody,
2436
- Ze as CardHeader,
2437
- Qe as CardSubtitle,
2438
- Je as CardTitle,
2439
- Re as Chip,
2440
- qe as Container,
2441
- ka as DialogFooter,
2442
- Ca as DialogHeader,
2443
- Ta as DrawerFooter,
2444
- Ea as DrawerHeader,
2445
- Na as ErrorMessage,
2446
- La as FilterChips,
2447
- Aa as HeaderActions,
2448
- Va as HeaderNavigation,
2449
- ia as HeroSection,
2450
- Sa as Info,
2451
- _e as Label,
2452
- Fa as MenuSeparator,
2453
- Ra as NavbarSeparator,
2454
- ja as PageHeader,
2455
- He as Progress,
2456
- We as Separator,
2457
- $a as Skeleton,
2458
- Be as Spinner,
2459
- Ge as Stack,
2460
- Da as Stat,
2461
- _a as StatGroup,
2462
- za as TableCell,
2463
- ma as TabsAsLinks,
2671
+ Ee as Badge,
2672
+ sa as Breadcrumb,
2673
+ Be as Button,
2674
+ H as Card,
2675
+ ca as CardActions,
2676
+ da as CardBody,
2677
+ ia as CardHeader,
2678
+ oa as CardSubtitle,
2679
+ la as CardTitle,
2680
+ Ie as Chip,
2681
+ ra as Container,
2682
+ ja as DialogFooter,
2683
+ Da as DialogHeader,
2684
+ _a as DrawerFooter,
2685
+ Ra as DrawerHeader,
2686
+ La as ErrorMessage,
2687
+ Oa as FilterChips,
2688
+ Ma as HeaderActions,
2689
+ Ha as HeaderNavigation,
2690
+ ga as HeroSection,
2691
+ za as Info,
2692
+ Xe as Label,
2693
+ Pa as MenuSeparator,
2694
+ Wa as NavbarSeparator,
2695
+ Ba as PageHeader,
2696
+ Ye as Progress,
2697
+ Qe as Separator,
2698
+ Fa as Skeleton,
2699
+ fe as Spinner,
2700
+ na as Stack,
2701
+ Ia as Stat,
2702
+ Ua as StatGroup,
2703
+ Ka as TableCell,
2704
+ Sa as TabsAsLinks,
2464
2705
  _ as Text,
2465
- Ma as Timeline
2706
+ Xa as Timeline
2466
2707
  };
2467
2708
  //# sourceMappingURL=index.js.map