@fabio.caffarello/react-design-system 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 K = Object.getOwnPropertySymbols;
4
+ var ee = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
5
+ var G = (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) && G(e, r, a[r]);
8
+ if (K)
9
+ for (var r of K(a))
10
+ ae.call(a, r) && G(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 h = (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 && K)
18
+ for (var t of K(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";
30
- class F {
22
+ var te = (e, a, r) => G(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 A from "react";
25
+ import ce, { memo as H, forwardRef as _ } 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
+ class j {
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,47 +73,47 @@ 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 = {
87
- none: F.create("none"),
88
- sm: F.create("sm"),
89
- md: F.create("md"),
90
- lg: F.create("lg"),
91
- xl: F.create("xl"),
92
- "2xl": F.create("2xl"),
93
- "3xl": F.create("3xl"),
94
- full: F.create("full")
86
+ const $e = {
87
+ none: j.create("none"),
88
+ sm: j.create("sm"),
89
+ md: j.create("md"),
90
+ lg: j.create("lg"),
91
+ xl: j.create("xl"),
92
+ "2xl": j.create("2xl"),
93
+ "3xl": j.create("3xl"),
94
+ full: j.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 C {
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(C, "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: C.create(0),
170
+ "0.5": C.create(0.5),
171
171
  // 2px (half-step)
172
- xs: S.create(1),
172
+ xs: C.create(1),
173
173
  // 4px
174
- "1.5": S.create(1.5),
174
+ "1.5": C.create(1.5),
175
175
  // 6px (half-step)
176
- sm: S.create(2),
176
+ sm: C.create(2),
177
177
  // 8px
178
- "2.5": S.create(2.5),
178
+ "2.5": C.create(2.5),
179
179
  // 10px (half-step)
180
- md: S.create(3),
180
+ md: C.create(3),
181
181
  // 12px
182
- "3.5": S.create(3.5),
182
+ "3.5": C.create(3.5),
183
183
  // 14px (half-step)
184
184
  // Standard spacing (16-32px)
185
- base: S.create(4),
185
+ base: C.create(4),
186
186
  // 16px
187
- lg: S.create(6),
187
+ lg: C.create(6),
188
188
  // 24px
189
- xl: S.create(8),
189
+ xl: C.create(8),
190
190
  // 32px
191
191
  // Large spacing (40-64px)
192
- "2xl": S.create(10),
192
+ "2xl": C.create(10),
193
193
  // 40px
194
- "3xl": S.create(12),
194
+ "3xl": C.create(12),
195
195
  // 48px
196
- "4xl": S.create(16),
196
+ "4xl": C.create(16),
197
197
  // 64px
198
198
  // Extra large spacing (80px+)
199
- "5xl": S.create(20),
199
+ "5xl": C.create(20),
200
200
  // 80px
201
- "6xl": S.create(24)
201
+ "6xl": C.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 E {
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
+ E.createFontWeight("light"), E.createFontWeight("normal"), E.createFontWeight("medium"), E.createFontWeight("semibold"), E.createFontWeight("bold");
299
+ const Z = {
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: E.create("4xl", "tight", "bold"),
302
+ h2: E.create("3xl", "tight", "bold"),
303
+ h3: E.create("2xl", "snug", "semibold"),
304
+ h4: E.create("xl", "snug", "semibold"),
305
+ h5: E.create("lg", "normal", "medium"),
306
+ h6: E.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: E.create("base", "relaxed", "normal"),
309
+ bodySmall: E.create("sm", "relaxed", "normal"),
310
+ bodyLarge: E.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: E.create("sm", "normal", "medium"),
313
+ caption: E.create("xs", "normal", "normal"),
314
+ button: E.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 = Z[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 Z[e].fontSize.tailwind;
322
322
  }
323
- function z(e) {
324
- return U[e].fontWeight.tailwind;
323
+ function B(e) {
324
+ return Z[e].fontWeight.tailwind;
325
325
  }
326
326
  function n(...e) {
327
- return ue(de(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);
329
+ const L = (e, a) => {
330
+ const r = ve(e, a);
331
+ return ((t) => {
332
+ const s = r(t);
333
333
  return n(s);
334
334
  });
335
- }, he = V(
335
+ }, Ce = L(
336
336
  // Base classes
337
337
  n(
338
338
  "inline-flex",
339
339
  "items-center",
340
340
  "justify-center",
341
- z("label"),
342
- C("md"),
341
+ B("label"),
342
+ $("md"),
343
343
  "border"
344
344
  ),
345
345
  {
@@ -357,17 +357,17 @@ const V = (e, t) => {
357
357
  sm: n(
358
358
  i("1.5", "px"),
359
359
  i("0.5", "py"),
360
- k("caption")
360
+ S("caption")
361
361
  ),
362
362
  md: n(
363
363
  i("sm", "px"),
364
364
  i("xs", "py"),
365
- k("caption")
365
+ S("caption")
366
366
  ),
367
367
  lg: n(
368
368
  i("sm", "px"),
369
369
  i("xs", "py"),
370
- k("bodySmall")
370
+ S("bodySmall")
371
371
  )
372
372
  },
373
373
  style: {
@@ -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 = H(
474
+ _(function(x, p) {
475
+ var m = x, {
476
+ variant: a = "neutral",
477
477
  size: r = "md",
478
- style: a = "solid",
478
+ style: t = "solid",
479
479
  className: s = "",
480
- children: o,
481
- "aria-label": c
482
- } = g, d = m(g, [
480
+ children: c,
481
+ "aria-label": o
482
+ } = m, d = h(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 b = n(Ce({ variant: a, size: r, style: t }), s);
491
491
  let f;
492
- if (c)
493
- f = c;
494
- else if (typeof o == "string")
492
+ if (o)
495
493
  f = o;
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);
494
+ else if (typeof c == "string")
495
+ f = c;
496
+ else if (typeof c == "object" && c !== null && "props" in c) {
497
+ const g = c.props;
498
+ g != null && g.children && typeof g.children == "string" && (f = g.children);
499
499
  }
500
500
  return /* @__PURE__ */ l(
501
501
  "span",
@@ -505,112 +505,414 @@ const V = (e, t) => {
505
505
  "aria-label": f,
506
506
  className: b
507
507
  }, d), {
508
- children: o
508
+ children: c
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);
524
- return !r && typeof o == "function" && (r = !0), o;
522
+ const t = e.map((s) => {
523
+ const c = se(s, a);
524
+ return !r && typeof c == "function" && (r = !0), c;
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 s = 0; s < t.length; s++) {
529
+ const c = t[s];
530
+ typeof c == "function" ? c() : se(e[s], 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 A.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 = A.forwardRef((r, t) => {
541
+ var g;
542
+ let f = r, { children: s } = f, c = h(f, ["children"]), o = null, d = !1;
543
543
  const p = [];
544
- J(s) && typeof W == "function" && (s = W(s._payload)), T.Children.forEach(s, (w) => {
544
+ ie(s) && typeof q == "function" && (s = q(s._payload)), A.Children.forEach(s, (w) => {
545
545
  var N;
546
- if (Te(w)) {
546
+ if (ze(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 T = w;
549
+ let k = "child" in T.props ? T.props.child : T.props.children;
550
+ ie(k) && typeof q == "function" && (k = q(k._payload)), o = De(T, k), p.push((N = o == null ? void 0 : o.props) == null ? void 0 : N.children);
551
551
  } else
552
552
  p.push(w);
553
- }), c ? c = T.cloneElement(c, void 0, p) : (
553
+ }), o ? o = A.cloneElement(o, 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 && A.Children.count(s) === 1 && A.isValidElement(s) && (o = s)
559
559
  );
560
- const h = c ? Ee(c) : void 0, g = we(a, h);
561
- if (!c) {
560
+ const x = o ? je(o) : void 0, m = Ve(t, x);
561
+ if (!o) {
562
562
  if (s || s === 0)
563
563
  throw new Error(
564
- d ? Fe(e) : Ve(e)
564
+ d ? Be(e) : Me(e)
565
565
  );
566
566
  return s;
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 b = _e(c, (g = o.props) != null ? g : {});
569
+ return o.type !== A.Fragment && (b.ref = t ? m : x), A.cloneElement(o, b);
570
570
  });
571
- return t.displayName = `${e}.Slot`, t;
571
+ return a.displayName = `${e}.Slot`, a;
572
572
  }
573
- var Se = /* @__PURE__ */ Ne("Slot"), $e = /* @__PURE__ */ Symbol.for("radix.slottable"), Ce = (e, t) => {
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;
578
+ }
579
+ var Fe = /* @__PURE__ */ Le("Slottable"), De = (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 A.isValidElement(r) ? A.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
577
583
  }
578
- return T.isValidElement(t) ? t : null;
584
+ return A.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) => {
585
- const p = o(...d);
586
+ function _e(e, a) {
587
+ const r = u({}, a);
588
+ for (const t in a) {
589
+ const s = e[t], c = a[t];
590
+ /^on[A-Z]/.test(t) ? s && c ? r[t] = (...d) => {
591
+ const p = c(...d);
586
592
  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(" "));
593
+ } : s && (r[t] = s) : t === "style" ? r[t] = u(u({}, s), c) : t === "className" && (r[t] = [s, c].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, s;
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 = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.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 ze(e) {
603
+ return A.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 Re = /* @__PURE__ */ Symbol.for("react.lazy");
606
+ function ie(e) {
607
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Re && "_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\`.`, Be = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, q = A[" use ".trim().toString()];
613
+ const He = 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 = H(function(o) {
631
+ var d = o, {
632
+ size: a = "md",
633
+ variant: r = "primary",
634
+ label: t,
635
+ className: s = ""
636
+ } = d, c = h(d, [
637
+ "size",
638
+ "variant",
639
+ "label",
640
+ "className"
641
+ ]);
642
+ return /* @__PURE__ */ v(
643
+ "div",
644
+ y(u({
645
+ className: n("inline-flex", "items-center", s),
646
+ role: "status",
647
+ "aria-label": t || "Loading",
648
+ "aria-live": "polite"
649
+ }, c), {
650
+ children: [
651
+ /* @__PURE__ */ l(
652
+ we,
653
+ {
654
+ className: n(He({ size: a, variant: r })),
655
+ "aria-hidden": "true"
656
+ }
657
+ ),
658
+ t && /* @__PURE__ */ l(
659
+ "span",
660
+ {
661
+ className: n(
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 Pe = L(
676
+ // Base classes
677
+ n(
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: n(
695
+ "bg-surface-brand-strong",
696
+ "text-fg-inverse",
697
+ "hover:opacity-90",
698
+ "focus:ring-line-brand"
699
+ ),
700
+ secondary: n(
701
+ "bg-surface-secondary",
702
+ "text-fg-inverse",
703
+ "hover:opacity-90",
704
+ "focus:ring-line-secondary"
705
+ ),
706
+ error: n(
707
+ "bg-error",
708
+ "text-fg-inverse",
709
+ "hover:opacity-90",
710
+ "focus:ring-error"
711
+ ),
712
+ outline: n(
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: n(
721
+ "bg-transparent",
722
+ "text-fg-primary",
723
+ "hover:bg-surface-hover",
724
+ "focus:ring-line-focus"
725
+ ),
726
+ iconOnly: n(
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: n(
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: n(
770
+ i("md", "px"),
771
+ i("1.5", "py"),
772
+ S("bodySmall"),
773
+ i("1.5", "gap")
774
+ ),
775
+ md: n(
776
+ i("base", "px"),
777
+ i("sm", "py"),
778
+ S("body"),
779
+ i("sm", "gap")
780
+ ),
781
+ lg: n(
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: n("h-8", "w-8", i("none", "p"))
795
+ },
796
+ {
797
+ variant: "iconOnly",
798
+ size: "md",
799
+ class: n("h-10", "w-10", i("none", "p"))
800
+ },
801
+ {
802
+ variant: "iconOnly",
803
+ size: "lg",
804
+ class: n("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: n(i("none", "px"), i("none", "py"))
816
+ },
817
+ {
818
+ variant: "link",
819
+ size: "md",
820
+ class: n(i("none", "px"), i("none", "py"))
821
+ },
822
+ {
823
+ variant: "link",
824
+ size: "lg",
825
+ class: n(i("none", "px"), i("none", "py"))
826
+ }
827
+ ],
828
+ defaultVariants: {
829
+ variant: "primary",
830
+ size: "md"
831
+ }
832
+ }
833
+ );
834
+ function X({
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 Ie = H(
847
+ _(function(k, T) {
848
+ var F = k, {
849
+ variant: a = "primary",
850
+ size: r = "md",
851
+ isLoading: t = !1,
852
+ loadingText: s,
853
+ loadingIcon: c,
854
+ leftIcon: o,
855
+ rightIcon: d,
856
+ fullWidth: p = !1,
857
+ asChild: x = !1,
858
+ as: m,
859
+ className: b = "",
860
+ disabled: f = !1,
861
+ children: g,
862
+ "aria-label": w
863
+ } = F, N = h(F, [
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 z = x ? de : m != null ? m : "button", R = n(
883
+ Pe({ variant: a, size: r }),
884
+ p && "w-full",
885
+ b
886
+ ), I = (a === "iconOnly" || !g && (o || d)) && !w && !g ? "Button" : w, me = c || /* @__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: R,
888
+ disabled: f || t,
889
+ "aria-busy": t,
890
+ "aria-label": I,
891
+ "aria-disabled": f || t
892
+ }, J ? { type: J } : {}), N);
893
+ return x ? /* @__PURE__ */ v(z, y(u({ ref: T }, Q), { children: [
894
+ o && /* @__PURE__ */ l(X, { position: "left", children: o }),
895
+ /* @__PURE__ */ l(Fe, { children: g }),
896
+ d && /* @__PURE__ */ l(X, { position: "right", children: d })
897
+ ] })) : /* @__PURE__ */ l(z, y(u({ ref: T }, Q), { children: t ? /* @__PURE__ */ v(re, { children: [
898
+ me,
899
+ s && /* @__PURE__ */ l("span", { className: i("sm", "ml"), children: s }),
900
+ !s && g && /* @__PURE__ */ l("span", { className: `${i("sm", "ml")} opacity-0`, children: g })
901
+ ] }) : /* @__PURE__ */ v(re, { children: [
902
+ o && /* @__PURE__ */ l(X, { position: "left", children: o }),
903
+ g,
904
+ d && /* @__PURE__ */ l(X, { position: "right", children: d })
905
+ ] }) }));
906
+ })
907
+ );
908
+ Ie.displayName = "Button";
909
+ const le = L(
608
910
  // Base classes
609
911
  n(
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
  {
@@ -639,17 +941,17 @@ const Q = V(
639
941
  sm: n(
640
942
  i("xs", "px"),
641
943
  i("xs", "py"),
642
- k("caption")
944
+ S("caption")
643
945
  ),
644
946
  md: n(
645
947
  i("sm", "px"),
646
948
  i("xs", "py"),
647
- k("bodySmall")
949
+ S("bodySmall")
648
950
  ),
649
951
  lg: n(
650
952
  i("md", "px"),
651
953
  i("sm", "py"),
652
- k("body")
954
+ S("body")
653
955
  )
654
956
  },
655
957
  selected: {
@@ -693,84 +995,84 @@ const Q = V(
693
995
  disabled: !1
694
996
  }
695
997
  }
696
- ), Re = D(function(t, r) {
998
+ ), We = _(function(a, r) {
697
999
  const {
698
- children: a,
1000
+ children: t,
699
1001
  variant: s = "default",
700
- size: o = "md",
701
- selected: c = !1,
1002
+ size: c = "md",
1003
+ selected: o = !1,
702
1004
  disabled: d = !1,
703
1005
  className: p = "",
704
- "aria-label": h,
705
- tabIndex: g,
1006
+ "aria-label": x,
1007
+ tabIndex: m,
706
1008
  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;
712
- if (A != null && A.children && typeof A.children == "string")
713
- return A.children;
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 V = t.props;
1014
+ if (V != null && V.children && typeof V.children == "string")
1015
+ return V.children;
714
1016
  }
715
1017
  })();
716
1018
  if (b)
717
1019
  return /* @__PURE__ */ l(
718
- Se,
1020
+ de,
719
1021
  {
720
1022
  ref: r,
721
1023
  className: n(
722
- Q({ variant: s, size: o, selected: c, disabled: d }),
1024
+ le({ variant: s, size: c, selected: o, 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) => {
732
- d || (A.key === "Enter" || A.key === " ") && (A.preventDefault(), N == null || N());
733
- }, K = L !== void 0, se = c || s === "filled", ne = K ? /* @__PURE__ */ l(
1033
+ const { onRemove: w, onClick: N, count: T } = a, k = N !== void 0, F = k && !d, z = (V) => {
1034
+ d || (V.key === "Enter" || V.key === " ") && (V.preventDefault(), N == null || N());
1035
+ }, R = T !== void 0, P = o || s === "filled", I = R ? /* @__PURE__ */ l(
734
1036
  "span",
735
1037
  {
736
- "aria-hidden": E || void 0,
1038
+ "aria-hidden": k || void 0,
737
1039
  className: n(
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
+ B("label"),
1050
+ P ? n("bg-surface-base", "text-fg-brand-emphasis") : n("bg-surface-brand-strong", "text-fg-inverse")
749
1051
  ),
750
- children: L
1052
+ children: T
751
1053
  }
752
- ) : null, ie = K && x !== void 0 ? `${x}, ${L}` : x;
1054
+ ) : null, U = R && g !== void 0 ? `${g}, ${T}` : g;
753
1055
  return /* @__PURE__ */ v(
754
1056
  "div",
755
1057
  {
756
1058
  ref: r,
757
1059
  className: n(
758
- Q({ variant: s, size: o, selected: c, disabled: d }),
1060
+ le({ variant: s, size: c, selected: o, 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
+ k ? /* @__PURE__ */ l(
765
1067
  "button",
766
1068
  {
767
1069
  type: "button",
768
1070
  onClick: d ? void 0 : N,
769
- onKeyDown: re,
1071
+ onKeyDown: z,
770
1072
  disabled: d,
771
- "aria-pressed": c ? !0 : void 0,
772
- "aria-label": h || ie,
773
- tabIndex: g !== void 0 ? g : M ? 0 : void 0,
1073
+ "aria-pressed": o ? !0 : void 0,
1074
+ "aria-label": x || U,
1075
+ tabIndex: m !== void 0 ? m : F ? 0 : void 0,
774
1076
  className: n(
775
1077
  "flex-1",
776
1078
  "bg-transparent",
@@ -783,23 +1085,23 @@ 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
+ I,
792
1094
  w && !d && /* @__PURE__ */ l(
793
1095
  "button",
794
1096
  {
795
1097
  type: "button",
796
- onClick: (A) => {
797
- A.stopPropagation(), w();
1098
+ onClick: (V) => {
1099
+ V.stopPropagation(), w();
798
1100
  },
799
1101
  className: n(
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,47 +1109,47 @@ 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
+ We.displayName = "Chip";
1121
+ function _a(s) {
1122
+ var c = s, {
821
1123
  message: e,
822
- id: t,
1124
+ id: a,
823
1125
  className: r = ""
824
- } = o, a = m(o, [
1126
+ } = c, t = h(c, [
825
1127
  "message",
826
1128
  "id",
827
1129
  "className"
828
1130
  ]);
829
- const c = [
1131
+ const o = [
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 = n(...o, 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 ja(t) {
1145
+ var s = t, {
844
1146
  variant: e = "info",
845
- className: t
846
- } = s, r = m(s, [
1147
+ className: a
1148
+ } = s, r = h(s, [
847
1149
  "variant",
848
1150
  "className"
849
1151
  ]);
850
- const o = {
1152
+ const c = {
851
1153
  warning: n("bg-warning-bg", "text-warning-dark", "border-warning"),
852
1154
  error: n("bg-error-bg", "text-error-dark", "border-error"),
853
1155
  info: n("bg-info-bg", "text-info-dark", "border-info")
@@ -860,19 +1162,210 @@ function Sa(a) {
860
1162
  "border",
861
1163
  i("base", "px"),
862
1164
  i("sm", "py"),
863
- C("lg"),
864
- o[e],
865
- t
1165
+ $("lg"),
1166
+ c[e],
1167
+ a
866
1168
  )
867
1169
  }, r)
868
1170
  );
869
1171
  }
870
- const je = n(
1172
+ const Ue = L(
1173
+ n(
1174
+ "w-full",
1175
+ $("md"),
1176
+ "transition-colors",
1177
+ "focus:outline-none",
1178
+ "focus:ring-2",
1179
+ "focus:ring-offset-2",
1180
+ "disabled:opacity-50",
1181
+ "disabled:cursor-not-allowed"
1182
+ ),
1183
+ {
1184
+ variants: {
1185
+ variant: {
1186
+ default: n(
1187
+ "border-0",
1188
+ "border-b-2",
1189
+ "border-line-default",
1190
+ "focus:border-line-focus"
1191
+ ),
1192
+ outlined: n(
1193
+ "border",
1194
+ "border-line-default",
1195
+ "focus:border-line-focus"
1196
+ ),
1197
+ filled: n(
1198
+ "bg-surface-muted",
1199
+ "border-0",
1200
+ "focus:bg-surface-base",
1201
+ "focus:ring-2",
1202
+ "focus:ring-line-focus"
1203
+ )
1204
+ },
1205
+ size: {
1206
+ sm: n(
1207
+ "h-8",
1208
+ S("bodySmall"),
1209
+ i("md", "px")
1210
+ ),
1211
+ md: n(
1212
+ "h-10",
1213
+ S("body"),
1214
+ i("base", "px")
1215
+ ),
1216
+ lg: n(
1217
+ "h-12",
1218
+ S("bodyLarge"),
1219
+ i("lg", "px")
1220
+ )
1221
+ },
1222
+ state: {
1223
+ default: "",
1224
+ error: n("border-error", "focus:border-error", "focus:ring-error"),
1225
+ success: n(
1226
+ "border-success",
1227
+ "focus:border-success",
1228
+ "focus:ring-success"
1229
+ )
1230
+ }
1231
+ },
1232
+ defaultVariants: {
1233
+ variant: "outlined",
1234
+ size: "md",
1235
+ state: "default"
1236
+ }
1237
+ }
1238
+ );
1239
+ function Ke({
1240
+ error: e,
1241
+ success: a,
1242
+ helperText: r,
1243
+ errorId: t,
1244
+ helperId: s
1245
+ }) {
1246
+ const c = n(
1247
+ i("xs", "mt"),
1248
+ D("caption"),
1249
+ e && "text-fg-error",
1250
+ a && "text-fg-success",
1251
+ !e && !a && "text-fg-secondary"
1252
+ );
1253
+ return /* @__PURE__ */ l(
1254
+ "div",
1255
+ {
1256
+ id: t || s,
1257
+ className: c,
1258
+ role: e || a ? "alert" : void 0,
1259
+ children: r || (e ? "Error" : a ? "Success" : "")
1260
+ }
1261
+ );
1262
+ }
1263
+ const qe = _(
1264
+ function(T, N) {
1265
+ var k = T, {
1266
+ id: a,
1267
+ label: r,
1268
+ error: t = !1,
1269
+ success: s = !1,
1270
+ helperText: c,
1271
+ size: o = "md",
1272
+ variant: d = "outlined",
1273
+ leftIcon: p,
1274
+ rightIcon: x,
1275
+ rightSlot: m,
1276
+ className: b = "",
1277
+ disabled: f = !1,
1278
+ type: g = "text"
1279
+ } = k, w = h(k, [
1280
+ "id",
1281
+ "label",
1282
+ "error",
1283
+ "success",
1284
+ "helperText",
1285
+ "size",
1286
+ "variant",
1287
+ "leftIcon",
1288
+ "rightIcon",
1289
+ "rightSlot",
1290
+ "className",
1291
+ "disabled",
1292
+ "type"
1293
+ ]);
1294
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && r && !a && console.warn(
1295
+ "[InputBase] `label` was provided without an `id`. The <label> cannot bind to the input (InputBase does not auto-generate an id — that needs a client hook). Pass an `id`, or use the interactive `Input` which auto-generates one."
1296
+ );
1297
+ const F = t ? "error" : s ? "success" : "default", z = t && a ? `${a}-error` : void 0, R = c && a ? `${a}-helper` : void 0, P = o === "sm" ? "h-4 w-4" : o === "lg" ? "h-5 w-5" : "h-4 w-4", I = o === "sm" ? "top-2" : o === "lg" ? "top-3.5" : "top-2.5", U = n(
1298
+ Ue({ variant: d, size: o, state: F }),
1299
+ // Icon padding — `pl-9` / `pr-9` aren't on the spacing scale (no
1300
+ // semantic key for 36px) so they stay raw at the `sm` size; md/lg use
1301
+ // the getter. Mirrors the original Input contract.
1302
+ p && (o === "sm" ? "pl-9" : i(o === "lg" ? "3xl" : "2xl", "pl")),
1303
+ (x || m) && (o === "sm" ? "pr-9" : i(o === "lg" ? "3xl" : "2xl", "pr")),
1304
+ b
1305
+ ), V = n(
1306
+ "block",
1307
+ D("label"),
1308
+ i("xs", "mb"),
1309
+ f && "opacity-50"
1310
+ );
1311
+ return /* @__PURE__ */ v("div", { className: "w-full", children: [
1312
+ r && /* @__PURE__ */ l("label", { htmlFor: a, className: V, children: r }),
1313
+ /* @__PURE__ */ v("div", { className: "relative", children: [
1314
+ p && /* @__PURE__ */ l(
1315
+ "div",
1316
+ {
1317
+ className: `absolute left-3 ${I} text-fg-secondary opacity-60 pointer-events-none`,
1318
+ children: /* @__PURE__ */ l("div", { className: P, children: p })
1319
+ }
1320
+ ),
1321
+ /* @__PURE__ */ l(
1322
+ "input",
1323
+ u({
1324
+ id: a,
1325
+ ref: N,
1326
+ type: g,
1327
+ className: U,
1328
+ disabled: f,
1329
+ "aria-invalid": t,
1330
+ "aria-required": w.required,
1331
+ "aria-describedby": z || R,
1332
+ suppressHydrationWarning: !0
1333
+ }, w)
1334
+ ),
1335
+ (x || m) && /* @__PURE__ */ l(
1336
+ "div",
1337
+ {
1338
+ className: `absolute right-3 top-0 bottom-0 flex items-center ${i("xs", "gap")}`,
1339
+ children: m != null ? m : /* @__PURE__ */ l(
1340
+ "div",
1341
+ {
1342
+ className: `text-fg-secondary opacity-60 pointer-events-none ${P}`,
1343
+ children: x
1344
+ }
1345
+ )
1346
+ }
1347
+ )
1348
+ ] }),
1349
+ (t || s || c) && /* @__PURE__ */ l(
1350
+ Ke,
1351
+ {
1352
+ error: t,
1353
+ success: s,
1354
+ helperText: c,
1355
+ errorId: z,
1356
+ helperId: R
1357
+ }
1358
+ )
1359
+ ] });
1360
+ }
1361
+ );
1362
+ qe.displayName = "InputBase";
1363
+ const Xe = n(
871
1364
  "block",
872
- k("label"),
873
- z("label"),
1365
+ S("label"),
1366
+ B("label"),
874
1367
  "text-fg-primary"
875
- ), De = {
1368
+ ), Ge = {
876
1369
  default: "",
877
1370
  required: n(
878
1371
  "after:content-['*']",
@@ -885,23 +1378,23 @@ const je = n(
885
1378
  "after:text-fg-tertiary",
886
1379
  "after:font-normal"
887
1380
  )
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"]);
1381
+ }, Ye = H(
1382
+ _(function(o, c) {
1383
+ var d = o, { variant: a = "default", className: r = "", children: t } = d, s = h(d, ["variant", "className", "children"]);
891
1384
  const p = n(
892
- je,
893
- De[t],
1385
+ Xe,
1386
+ Ge[a],
894
1387
  r
895
1388
  );
896
- return /* @__PURE__ */ l("label", y(u({ ref: o, className: p }, s), { children: a }));
1389
+ return /* @__PURE__ */ l("label", y(u({ ref: c, className: p }, s), { children: t }));
897
1390
  })
898
1391
  );
899
- _e.displayName = "Label";
900
- class j {
1392
+ Ye.displayName = "Label";
1393
+ class O {
901
1394
  /**
902
1395
  * Create a shadow token
903
1396
  */
904
- static create(t) {
1397
+ static create(a) {
905
1398
  return {
906
1399
  none: {
907
1400
  value: "none",
@@ -938,22 +1431,22 @@ class j {
938
1431
  tailwind: "shadow-inner",
939
1432
  description: "Inner shadow for inset elements"
940
1433
  }
941
- }[t];
1434
+ }[a];
942
1435
  }
943
1436
  }
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")
1437
+ const Ze = {
1438
+ none: O.create("none"),
1439
+ sm: O.create("sm"),
1440
+ md: O.create("md"),
1441
+ lg: O.create("lg"),
1442
+ xl: O.create("xl"),
1443
+ "2xl": O.create("2xl"),
1444
+ inner: O.create("inner")
952
1445
  };
953
- function B(e) {
954
- return ze[e].tailwind;
1446
+ function Y(e) {
1447
+ return Ze[e].tailwind;
955
1448
  }
956
- const Me = V("w-full", {
1449
+ const Je = L("w-full", {
957
1450
  variants: {
958
1451
  size: {
959
1452
  sm: "h-1",
@@ -973,7 +1466,7 @@ const Me = V("w-full", {
973
1466
  size: "md",
974
1467
  variant: "primary"
975
1468
  }
976
- }), ee = V("transition-all", {
1469
+ }), oe = L("transition-all", {
977
1470
  variants: {
978
1471
  variant: {
979
1472
  primary: "bg-surface-brand",
@@ -987,17 +1480,17 @@ const Me = V("w-full", {
987
1480
  defaultVariants: {
988
1481
  variant: "primary"
989
1482
  }
990
- }), He = D(function(b, g) {
1483
+ }), Qe = _(function(b, m) {
991
1484
  var f = b, {
992
- value: t,
1485
+ value: a,
993
1486
  max: r = 100,
994
- variant: a = "primary",
1487
+ variant: t = "primary",
995
1488
  size: s = "md",
996
- showLabel: o = !1,
997
- label: c,
1489
+ showLabel: c = !1,
1490
+ label: o,
998
1491
  "aria-label": d,
999
1492
  className: p = ""
1000
- } = f, h = m(f, [
1493
+ } = f, x = h(f, [
1001
1494
  "value",
1002
1495
  "max",
1003
1496
  "variant",
@@ -1007,9 +1500,9 @@ const Me = V("w-full", {
1007
1500
  "aria-label",
1008
1501
  "className"
1009
1502
  ]);
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(
1503
+ 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)}%`);
1504
+ return /* @__PURE__ */ v("div", y(u({ ref: m, className: n("w-full", p) }, x), { children: [
1505
+ c && (o || !g) && /* @__PURE__ */ v(
1013
1506
  "div",
1014
1507
  {
1015
1508
  className: n(
@@ -1019,22 +1512,22 @@ const Me = V("w-full", {
1019
1512
  i("xs", "mb")
1020
1513
  ),
1021
1514
  children: [
1022
- c && /* @__PURE__ */ l(
1515
+ o && /* @__PURE__ */ l(
1023
1516
  "span",
1024
1517
  {
1025
1518
  className: n(
1026
- k("bodySmall"),
1027
- z("label"),
1519
+ S("bodySmall"),
1520
+ B("label"),
1028
1521
  "text-fg-primary"
1029
1522
  ),
1030
- children: c
1523
+ children: o
1031
1524
  }
1032
1525
  ),
1033
- !x && w !== void 0 && /* @__PURE__ */ v(
1526
+ !g && w !== void 0 && /* @__PURE__ */ v(
1034
1527
  "span",
1035
1528
  {
1036
1529
  className: n(
1037
- k("bodySmall"),
1530
+ S("bodySmall"),
1038
1531
  "text-fg-secondary"
1039
1532
  ),
1040
1533
  children: [
@@ -1050,19 +1543,19 @@ const Me = V("w-full", {
1050
1543
  "div",
1051
1544
  {
1052
1545
  role: "progressbar",
1053
- "aria-valuemin": x ? void 0 : 0,
1054
- "aria-valuemax": x ? void 0 : r,
1055
- "aria-valuenow": x ? void 0 : t,
1546
+ "aria-valuemin": g ? void 0 : 0,
1547
+ "aria-valuemax": g ? void 0 : r,
1548
+ "aria-valuenow": g ? void 0 : a,
1056
1549
  "aria-label": N,
1057
- "aria-busy": x,
1550
+ "aria-busy": g,
1058
1551
  className: n(
1059
1552
  "relative",
1060
1553
  "w-full",
1061
1554
  "overflow-hidden",
1062
- Me({ size: s, variant: a }),
1063
- C("full")
1555
+ Je({ size: s, variant: t }),
1556
+ $("full")
1064
1557
  ),
1065
- children: x ? /* @__PURE__ */ l(
1558
+ children: g ? /* @__PURE__ */ l(
1066
1559
  "div",
1067
1560
  {
1068
1561
  className: n(
@@ -1070,8 +1563,8 @@ const Me = V("w-full", {
1070
1563
  "top-0",
1071
1564
  "left-0",
1072
1565
  "bottom-0",
1073
- ee({ variant: a }),
1074
- C("full"),
1566
+ oe({ variant: t }),
1567
+ $("full"),
1075
1568
  "motion-reduce:animate-none"
1076
1569
  ),
1077
1570
  style: {
@@ -1084,8 +1577,8 @@ const Me = V("w-full", {
1084
1577
  {
1085
1578
  className: n(
1086
1579
  "h-full",
1087
- ee({ variant: a }),
1088
- C("full"),
1580
+ oe({ variant: t }),
1581
+ $("full"),
1089
1582
  "transition-all",
1090
1583
  "duration-300",
1091
1584
  "ease-out"
@@ -1100,20 +1593,20 @@ const Me = V("w-full", {
1100
1593
  )
1101
1594
  ] }));
1102
1595
  });
1103
- He.displayName = "Progress";
1104
- const Ie = {
1596
+ Qe.displayName = "Progress";
1597
+ const ea = {
1105
1598
  horizontal: "w-full border-t",
1106
1599
  vertical: "h-full border-l self-stretch"
1107
- }, Pe = {
1600
+ }, aa = {
1108
1601
  solid: "border-solid",
1109
1602
  dashed: "border-dashed",
1110
1603
  dotted: "border-dotted"
1111
- }, We = H(function(o) {
1112
- var c = o, {
1113
- orientation: t = "horizontal",
1604
+ }, ta = H(function(c) {
1605
+ var o = c, {
1606
+ orientation: a = "horizontal",
1114
1607
  variant: r = "solid",
1115
- className: a = ""
1116
- } = c, s = m(c, [
1608
+ className: t = ""
1609
+ } = o, s = h(o, [
1117
1610
  "orientation",
1118
1611
  "variant",
1119
1612
  "className"
@@ -1121,11 +1614,11 @@ const Ie = {
1121
1614
  const d = n(
1122
1615
  "border-0",
1123
1616
  "border-line-default",
1124
- Ie[t],
1125
- Pe[r],
1126
- a
1617
+ ea[a],
1618
+ aa[r],
1619
+ t
1127
1620
  );
1128
- return t === "vertical" ? /* @__PURE__ */ l(
1621
+ return a === "vertical" ? /* @__PURE__ */ l(
1129
1622
  "div",
1130
1623
  u({
1131
1624
  className: d,
@@ -1141,16 +1634,16 @@ const Ie = {
1141
1634
  }, s)
1142
1635
  );
1143
1636
  });
1144
- We.displayName = "Separator";
1145
- function $a(d) {
1637
+ ta.displayName = "Separator";
1638
+ function za(d) {
1146
1639
  var p = d, {
1147
1640
  variant: e = "text",
1148
- width: t,
1641
+ width: a,
1149
1642
  height: r,
1150
- lines: a = 1,
1643
+ lines: t = 1,
1151
1644
  className: s = "",
1152
- "aria-label": o
1153
- } = p, c = m(p, [
1645
+ "aria-label": c
1646
+ } = p, o = h(p, [
1154
1647
  "variant",
1155
1648
  "width",
1156
1649
  "height",
@@ -1158,31 +1651,31 @@ function $a(d) {
1158
1651
  "className",
1159
1652
  "aria-label"
1160
1653
  ]);
1161
- const h = [
1654
+ const x = [
1162
1655
  "motion-safe:animate-pulse",
1163
1656
  "bg-surface-muted",
1164
- C("sm")
1165
- ], g = {
1657
+ $("sm")
1658
+ ], m = {
1166
1659
  text: "h-4",
1167
1660
  card: "h-32",
1168
1661
  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(
1662
+ circle: $("full")
1663
+ }, b = n(...x, m[e], s), f = {};
1664
+ a && (f.width = a), r && (f.height = r);
1665
+ const g = c || `Loading ${e} content`;
1666
+ return e === "text" && t > 1 ? /* @__PURE__ */ l(
1174
1667
  "div",
1175
1668
  y(u({
1176
1669
  className: i("sm", "space-y"),
1177
1670
  role: "status",
1178
1671
  "aria-busy": "true",
1179
- "aria-label": x
1180
- }, c), {
1181
- children: Array.from({ length: a }).map((w, N) => /* @__PURE__ */ l(
1672
+ "aria-label": g
1673
+ }, o), {
1674
+ children: Array.from({ length: t }).map((w, N) => /* @__PURE__ */ l(
1182
1675
  "div",
1183
1676
  {
1184
1677
  className: b,
1185
- style: N === a - 1 ? { width: "75%" } : f,
1678
+ style: N === t - 1 ? { width: "75%" } : f,
1186
1679
  "aria-hidden": "true"
1187
1680
  },
1188
1681
  N
@@ -1195,73 +1688,11 @@ function $a(d) {
1195
1688
  style: f,
1196
1689
  role: "status",
1197
1690
  "aria-busy": "true",
1198
- "aria-label": x
1199
- }, c)
1691
+ "aria-label": g
1692
+ }, o)
1200
1693
  );
1201
1694
  }
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 = {
1695
+ const ra = {
1265
1696
  primary: {
1266
1697
  // exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
1267
1698
  light: "text-indigo-400",
@@ -1313,16 +1744,16 @@ const Ue = {
1313
1744
  contrast: "text-fg-inverse"
1314
1745
  }
1315
1746
  };
1316
- function Ke(h, p) {
1317
- var g = h, {
1747
+ function na(x, p) {
1748
+ var m = x, {
1318
1749
  variant: e = "paragraph",
1319
- bold: t,
1750
+ bold: a,
1320
1751
  italic: r,
1321
- className: a,
1752
+ className: t,
1322
1753
  as: s,
1323
- colorRole: o = "neutral",
1324
- colorShade: c = "dark"
1325
- } = g, d = m(g, [
1754
+ colorRole: c = "neutral",
1755
+ colorShade: o = "dark"
1756
+ } = m, d = h(m, [
1326
1757
  "variant",
1327
1758
  "bold",
1328
1759
  "italic",
@@ -1347,25 +1778,25 @@ function Ke(h, p) {
1347
1778
  f = "p";
1348
1779
  break;
1349
1780
  }
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));
1781
+ return e === "heading" ? b.push(D("h2")) : e === "body" || e === "paragraph" ? b.push(D("body")) : e === "bodySmall" ? b.push(D("bodySmall")) : e === "bodyLarge" ? b.push(D("bodyLarge")) : e === "caption" ? b.push(D("caption")) : e === "label" ? b.push(D("label")) : b.push(D("body")), a && b.push("font-bold"), r && b.push("italic"), b.push(ra[c][o]), /* @__PURE__ */ l(f, u({ ref: p, className: n(...b, t) }, d));
1351
1782
  }
1352
- const _ = D(Ke), Xe = {
1783
+ const M = _(na), sa = {
1353
1784
  sm: "max-w-screen-sm",
1354
1785
  md: "max-w-screen-md",
1355
1786
  lg: "max-w-screen-lg",
1356
1787
  xl: "max-w-screen-xl",
1357
1788
  "2xl": "max-w-screen-2xl",
1358
1789
  full: "max-w-full"
1359
- }, qe = ae.forwardRef(
1790
+ }, ia = ce.forwardRef(
1360
1791
  (p, d) => {
1361
- var h = p, {
1792
+ var x = p, {
1362
1793
  className: e,
1363
- maxWidth: t = "lg",
1794
+ maxWidth: a = "lg",
1364
1795
  paddingX: r = "base",
1365
- paddingY: a = "base",
1796
+ paddingY: t = "base",
1366
1797
  center: s = !0,
1367
- children: o
1368
- } = h, c = m(h, [
1798
+ children: c
1799
+ } = x, o = h(x, [
1369
1800
  "className",
1370
1801
  "maxWidth",
1371
1802
  "paddingX",
@@ -1379,29 +1810,29 @@ const _ = D(Ke), Xe = {
1379
1810
  ref: d,
1380
1811
  className: n(
1381
1812
  "w-full",
1382
- Xe[t],
1813
+ sa[a],
1383
1814
  i(r, "px"),
1384
- i(a, "py"),
1815
+ i(t, "py"),
1385
1816
  s && "mx-auto",
1386
1817
  e
1387
1818
  )
1388
- }, c), {
1389
- children: o
1819
+ }, o), {
1820
+ children: c
1390
1821
  })
1391
1822
  );
1392
1823
  }
1393
1824
  );
1394
- qe.displayName = "Container";
1395
- const Ge = ae.forwardRef(
1825
+ ia.displayName = "Container";
1826
+ const la = ce.forwardRef(
1396
1827
  (p, d) => {
1397
- var h = p, {
1828
+ var x = p, {
1398
1829
  className: e,
1399
- spacing: t = "base",
1830
+ spacing: a = "base",
1400
1831
  align: r = "stretch",
1401
- justify: a = "start",
1832
+ justify: t = "start",
1402
1833
  direction: s = "column",
1403
- children: o
1404
- } = h, c = m(h, [
1834
+ children: c
1835
+ } = x, o = h(x, [
1405
1836
  "className",
1406
1837
  "spacing",
1407
1838
  "align",
@@ -1409,7 +1840,7 @@ const Ge = ae.forwardRef(
1409
1840
  "direction",
1410
1841
  "children"
1411
1842
  ]);
1412
- const g = s === "column" ? i(t, "gap-y") : i(t, "gap-x"), b = {
1843
+ const m = s === "column" ? i(a, "gap-y") : i(a, "gap-x"), b = {
1413
1844
  start: "items-start",
1414
1845
  center: "items-center",
1415
1846
  end: "items-end",
@@ -1429,42 +1860,42 @@ const Ge = ae.forwardRef(
1429
1860
  className: n(
1430
1861
  "flex",
1431
1862
  s === "column" ? "flex-col" : "flex-row",
1432
- g,
1863
+ m,
1433
1864
  b[r],
1434
- f[a],
1865
+ f[t],
1435
1866
  e
1436
1867
  )
1437
- }, c), {
1438
- children: o
1868
+ }, o), {
1869
+ children: c
1439
1870
  })
1440
1871
  );
1441
1872
  }
1442
1873
  );
1443
- Ge.displayName = "Stack";
1444
- function Ye(s) {
1445
- var o = s, {
1874
+ la.displayName = "Stack";
1875
+ function oa(s) {
1876
+ var c = s, {
1446
1877
  items: e,
1447
- separator: t = "/",
1878
+ separator: a = "/",
1448
1879
  className: r = ""
1449
- } = o, a = m(o, [
1880
+ } = c, t = h(c, [
1450
1881
  "items",
1451
1882
  "separator",
1452
1883
  "className"
1453
1884
  ]);
1454
- const c = [
1885
+ const o = [
1455
1886
  "flex",
1456
1887
  "items-center",
1457
1888
  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(
1889
+ S("bodySmall")
1890
+ ], d = n(...o, r);
1891
+ return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
1461
1892
  "ol",
1462
1893
  {
1463
1894
  className: n("flex", "items-center", i("sm", "space-x")),
1464
- children: e.map((p, h) => {
1465
- const g = h === e.length - 1;
1895
+ children: e.map((p, x) => {
1896
+ const m = x === e.length - 1;
1466
1897
  return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
1467
- h > 0 && /* @__PURE__ */ l(
1898
+ x > 0 && /* @__PURE__ */ l(
1468
1899
  "span",
1469
1900
  {
1470
1901
  className: n(
@@ -1472,15 +1903,15 @@ function Ye(s) {
1472
1903
  "text-fg-tertiary"
1473
1904
  ),
1474
1905
  "aria-hidden": "true",
1475
- children: t
1906
+ children: a
1476
1907
  }
1477
1908
  ),
1478
- g ? /* @__PURE__ */ l(
1909
+ m ? /* @__PURE__ */ l(
1479
1910
  "span",
1480
1911
  {
1481
1912
  className: n(
1482
1913
  "text-fg-primary",
1483
- z("label")
1914
+ B("label")
1484
1915
  ),
1485
1916
  "aria-current": "page",
1486
1917
  children: p.label
@@ -1496,8 +1927,8 @@ function Ye(s) {
1496
1927
  i("xs", "pt"),
1497
1928
  "border-b-2",
1498
1929
  "border-transparent",
1499
- k("bodySmall"),
1500
- z("label"),
1930
+ S("bodySmall"),
1931
+ B("label"),
1501
1932
  "transition-colors",
1502
1933
  "text-fg-secondary",
1503
1934
  "hover:border-line-emphasis",
@@ -1506,13 +1937,13 @@ function Ye(s) {
1506
1937
  children: p.label
1507
1938
  }
1508
1939
  ) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
1509
- ] }, h);
1940
+ ] }, x);
1510
1941
  })
1511
1942
  }
1512
1943
  ) }));
1513
1944
  }
1514
- function Ze(a) {
1515
- var s = a, { children: e, className: t } = s, r = m(s, ["children", "className"]);
1945
+ function ca(t) {
1946
+ var s = t, { children: e, className: a } = s, r = h(s, ["children", "className"]);
1516
1947
  return /* @__PURE__ */ l(
1517
1948
  "div",
1518
1949
  y(u({
@@ -1522,21 +1953,21 @@ function Ze(a) {
1522
1953
  i("base", "mb"),
1523
1954
  "[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
1524
1955
  "[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
1525
- t
1956
+ a
1526
1957
  )
1527
1958
  }, r), {
1528
1959
  children: e
1529
1960
  })
1530
1961
  );
1531
1962
  }
1532
- function Je(c) {
1533
- var d = c, {
1963
+ function da(o) {
1964
+ var d = o, {
1534
1965
  children: e,
1535
- icon: t,
1966
+ icon: a,
1536
1967
  badge: r,
1537
- as: a = "h2",
1968
+ as: t = "h2",
1538
1969
  className: s
1539
- } = d, o = m(d, [
1970
+ } = d, c = h(d, [
1540
1971
  "children",
1541
1972
  "icon",
1542
1973
  "badge",
@@ -1544,7 +1975,7 @@ function Je(c) {
1544
1975
  "className"
1545
1976
  ]);
1546
1977
  return /* @__PURE__ */ v(
1547
- a,
1978
+ t,
1548
1979
  y(u({
1549
1980
  className: n(
1550
1981
  "text-base font-semibold text-fg-primary",
@@ -1552,30 +1983,30 @@ function Je(c) {
1552
1983
  i("sm", "gap"),
1553
1984
  s
1554
1985
  )
1555
- }, o), {
1986
+ }, c), {
1556
1987
  children: [
1557
- t ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: t }) : null,
1988
+ a ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: a }) : null,
1558
1989
  /* @__PURE__ */ l("span", { children: e }),
1559
1990
  r ? /* @__PURE__ */ l("span", { className: "inline-flex", children: r }) : null
1560
1991
  ]
1561
1992
  })
1562
1993
  );
1563
1994
  }
1564
- function Qe(a) {
1565
- var s = a, {
1995
+ function ua(t) {
1996
+ var s = t, {
1566
1997
  children: e,
1567
- className: t
1568
- } = s, r = m(s, [
1998
+ className: a
1999
+ } = s, r = h(s, [
1569
2000
  "children",
1570
2001
  "className"
1571
2002
  ]);
1572
- return /* @__PURE__ */ l("p", y(u({ className: n("text-sm text-fg-secondary", t) }, r), { children: e }));
2003
+ return /* @__PURE__ */ l("p", y(u({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
1573
2004
  }
1574
- function ea(a) {
1575
- var s = a, {
2005
+ function fa(t) {
2006
+ var s = t, {
1576
2007
  children: e,
1577
- className: t
1578
- } = s, r = m(s, [
2008
+ className: a
2009
+ } = s, r = h(s, [
1579
2010
  "children",
1580
2011
  "className"
1581
2012
  ]);
@@ -1586,28 +2017,28 @@ function ea(a) {
1586
2017
  className: n(
1587
2018
  "flex items-center self-start",
1588
2019
  i("sm", "gap"),
1589
- t
2020
+ a
1590
2021
  )
1591
2022
  }, r), {
1592
2023
  children: e
1593
2024
  })
1594
2025
  );
1595
2026
  }
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 }));
2027
+ function pa(t) {
2028
+ var s = t, { children: e, className: a } = s, r = h(s, ["children", "className"]);
2029
+ return /* @__PURE__ */ l("div", y(u({ className: n(a) }, r), { children: e }));
1599
2030
  }
1600
- function ta(h) {
1601
- var g = h, {
2031
+ function ma(x) {
2032
+ var m = x, {
1602
2033
  variant: e = "default",
1603
- padding: t = "medium",
2034
+ padding: a = "medium",
1604
2035
  className: r = "",
1605
- onClick: a,
2036
+ onClick: t,
1606
2037
  "aria-label": s,
1607
- "aria-labelledby": o,
1608
- asSection: c = !1,
2038
+ "aria-labelledby": c,
2039
+ asSection: o = !1,
1609
2040
  children: d
1610
- } = g, p = m(g, [
2041
+ } = m, p = h(m, [
1611
2042
  "variant",
1612
2043
  "padding",
1613
2044
  "className",
@@ -1617,27 +2048,27 @@ function ta(h) {
1617
2048
  "asSection",
1618
2049
  "children"
1619
2050
  ]);
1620
- typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !s && !o && console.warn(
2051
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !s && !c && console.warn(
1621
2052
  "[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
2053
  );
1623
- const b = V(
2054
+ const b = L(
1624
2055
  n(
1625
2056
  "bg-surface-base",
1626
- C("lg"),
2057
+ $("lg"),
1627
2058
  "border",
1628
2059
  "border-line-default",
1629
- B("sm")
2060
+ Y("sm")
1630
2061
  ),
1631
2062
  {
1632
2063
  variants: {
1633
2064
  variant: {
1634
2065
  default: "",
1635
2066
  hover: n(
1636
- `hover:${B("md")}`,
2067
+ `hover:${Y("md")}`,
1637
2068
  "transition-shadow",
1638
2069
  "cursor-pointer"
1639
2070
  ),
1640
- selected: n("border-line-brand", B("md"))
2071
+ selected: n("border-line-brand", Y("md"))
1641
2072
  },
1642
2073
  padding: {
1643
2074
  none: "",
@@ -1651,66 +2082,66 @@ function ta(h) {
1651
2082
  padding: "medium"
1652
2083
  }
1653
2084
  }
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({
2085
+ ), f = t !== void 0, g = f ? "button" : void 0, w = f ? 0 : void 0, N = n(b({ variant: e, padding: a }), r), k = u({
1655
2086
  className: N,
1656
- role: x,
2087
+ role: g,
1657
2088
  tabIndex: w,
1658
- onClick: a,
1659
- onKeyDown: f ? (M) => {
1660
- f && (M.key === "Enter" || M.key === " ") && (M.preventDefault(), a == null || a());
2089
+ onClick: t,
2090
+ onKeyDown: f ? (F) => {
2091
+ f && (F.key === "Enter" || F.key === " ") && (F.preventDefault(), t == null || t());
1661
2092
  } : void 0,
1662
2093
  "aria-label": s,
1663
- "aria-labelledby": o
2094
+ "aria-labelledby": c
1664
2095
  }, p);
1665
- return c ? /* @__PURE__ */ l("section", y(u({}, E), { children: d })) : /* @__PURE__ */ l("div", y(u({}, E), { children: d }));
2096
+ return o ? /* @__PURE__ */ l("section", y(u({}, k), { children: d })) : /* @__PURE__ */ l("div", y(u({}, k), { children: d }));
1666
2097
  }
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, {
2098
+ const pe = H(ma);
2099
+ pe.displayName = "Card";
2100
+ const W = pe;
2101
+ W.Header = ca;
2102
+ W.Title = da;
2103
+ W.Subtitle = ua;
2104
+ W.Actions = fa;
2105
+ W.Body = pa;
2106
+ function Ra(t) {
2107
+ var s = t, {
1677
2108
  children: e,
1678
- className: t = ""
1679
- } = s, r = m(s, [
2109
+ className: a = ""
2110
+ } = s, r = h(s, [
1680
2111
  "children",
1681
2112
  "className"
1682
2113
  ]);
1683
2114
  return /* @__PURE__ */ l(
1684
2115
  "div",
1685
2116
  y(u({
1686
- className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${t}`
2117
+ className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
1687
2118
  }, r), {
1688
2119
  children: e
1689
2120
  })
1690
2121
  );
1691
2122
  }
1692
- function ka(a) {
1693
- var s = a, {
2123
+ function Oa(t) {
2124
+ var s = t, {
1694
2125
  children: e,
1695
- className: t = ""
1696
- } = s, r = m(s, [
2126
+ className: a = ""
2127
+ } = s, r = h(s, [
1697
2128
  "children",
1698
2129
  "className"
1699
2130
  ]);
1700
2131
  return /* @__PURE__ */ l(
1701
2132
  "div",
1702
2133
  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}`
2134
+ className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
1704
2135
  }, r), {
1705
2136
  children: e
1706
2137
  })
1707
2138
  );
1708
2139
  }
1709
- function Ea(a) {
1710
- var s = a, {
2140
+ function Ma(t) {
2141
+ var s = t, {
1711
2142
  children: e,
1712
- className: t = ""
1713
- } = s, r = m(s, [
2143
+ className: a = ""
2144
+ } = s, r = h(s, [
1714
2145
  "children",
1715
2146
  "className"
1716
2147
  ]);
@@ -1721,18 +2152,18 @@ function Ea(a) {
1721
2152
  ${i("lg", "p")}
1722
2153
  border-b
1723
2154
  border-line-default
1724
- ${t}
2155
+ ${a}
1725
2156
  `
1726
2157
  }, r), {
1727
2158
  children: e
1728
2159
  })
1729
2160
  );
1730
2161
  }
1731
- function Ta(a) {
1732
- var s = a, {
2162
+ function Ba(t) {
2163
+ var s = t, {
1733
2164
  children: e,
1734
- className: t = ""
1735
- } = s, r = m(s, [
2165
+ className: a = ""
2166
+ } = s, r = h(s, [
1736
2167
  "children",
1737
2168
  "className"
1738
2169
  ]);
@@ -1746,20 +2177,20 @@ function Ta(a) {
1746
2177
  flex
1747
2178
  justify-end
1748
2179
  ${i("sm", "gap")}
1749
- ${t}
2180
+ ${a}
1750
2181
  `
1751
2182
  }, r), {
1752
2183
  children: e
1753
2184
  })
1754
2185
  );
1755
2186
  }
1756
- function La(o) {
1757
- var c = o, {
2187
+ function Ha(c) {
2188
+ var o = c, {
1758
2189
  label: e,
1759
- children: t,
2190
+ children: a,
1760
2191
  wrap: r = !0,
1761
- className: a
1762
- } = c, s = m(c, [
2192
+ className: t
2193
+ } = o, s = h(o, [
1763
2194
  "label",
1764
2195
  "children",
1765
2196
  "wrap",
@@ -1775,7 +2206,7 @@ function La(o) {
1775
2206
  "flex items-center",
1776
2207
  r ? "flex-wrap" : "flex-nowrap",
1777
2208
  i("sm", "gap"),
1778
- a
2209
+ t
1779
2210
  )
1780
2211
  }, s), {
1781
2212
  children: [
@@ -1785,27 +2216,27 @@ function La(o) {
1785
2216
  // chips overflow — it stays on one line and the chips wrap around it.
1786
2217
  /* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
1787
2218
  ) : null,
1788
- t
2219
+ a
1789
2220
  ]
1790
2221
  })
1791
2222
  );
1792
2223
  }
1793
- function Aa({ children: e, className: t }) {
2224
+ function Pa({ children: e, className: a }) {
1794
2225
  return /* @__PURE__ */ l(
1795
2226
  "div",
1796
2227
  {
1797
2228
  className: n(
1798
2229
  "flex-shrink-0 flex items-center",
1799
2230
  i("sm", "gap"),
1800
- t
2231
+ a
1801
2232
  ),
1802
2233
  children: e
1803
2234
  }
1804
2235
  );
1805
2236
  }
1806
- function Va({
2237
+ function Ia({
1807
2238
  children: e,
1808
- className: t
2239
+ className: a
1809
2240
  }) {
1810
2241
  return /* @__PURE__ */ l(
1811
2242
  "nav",
@@ -1815,14 +2246,14 @@ function Va({
1815
2246
  i("base", "gap"),
1816
2247
  "hidden md:flex",
1817
2248
  // Hidden on mobile, visible on desktop
1818
- t
2249
+ a
1819
2250
  ),
1820
2251
  "aria-label": "Main navigation",
1821
2252
  children: e
1822
2253
  }
1823
2254
  );
1824
2255
  }
1825
- const ra = V(
2256
+ const ga = L(
1826
2257
  n(
1827
2258
  "w-full flex flex-col",
1828
2259
  i("2xl", "py"),
@@ -1849,27 +2280,27 @@ const ra = V(
1849
2280
  align: "start"
1850
2281
  }
1851
2282
  }
1852
- ), sa = {
2283
+ ), xa = {
1853
2284
  start: "items-start",
1854
2285
  center: "items-center"
1855
- }, na = {
2286
+ }, ba = {
1856
2287
  start: "justify-start",
1857
2288
  center: "justify-center"
1858
- }, ia = D(
1859
- function(w, x) {
2289
+ }, ha = _(
2290
+ function(w, g) {
1860
2291
  var N = w, {
1861
- kicker: t,
2292
+ kicker: a,
1862
2293
  title: r,
1863
- description: a,
2294
+ description: t,
1864
2295
  actions: s,
1865
- kpis: o,
1866
- meta: c,
2296
+ kpis: c,
2297
+ meta: o,
1867
2298
  variant: d = "plain",
1868
2299
  align: p = "start",
1869
- className: h,
1870
- "aria-label": g,
2300
+ className: x,
2301
+ "aria-label": m,
1871
2302
  "aria-labelledby": b
1872
- } = N, f = m(N, [
2303
+ } = N, f = h(N, [
1873
2304
  "kicker",
1874
2305
  "title",
1875
2306
  "description",
@@ -1882,15 +2313,15 @@ const ra = V(
1882
2313
  "aria-label",
1883
2314
  "aria-labelledby"
1884
2315
  ]);
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(
2316
+ const T = m != null || b != null, k = m != null ? m : typeof r == "string" ? r : void 0;
2317
+ return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !T && typeof r != "string" && console.warn(
1887
2318
  "[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
2319
  ), /* @__PURE__ */ v(
1889
2320
  "section",
1890
2321
  y(u({
1891
- ref: x,
1892
- className: n(ra({ variant: d, align: p }), h),
1893
- "aria-label": E,
2322
+ ref: g,
2323
+ className: n(ga({ variant: d, align: p }), x),
2324
+ "aria-label": k,
1894
2325
  "aria-labelledby": b
1895
2326
  }, f), {
1896
2327
  children: [
@@ -1900,22 +2331,22 @@ const ra = V(
1900
2331
  className: n(
1901
2332
  "flex flex-col",
1902
2333
  i("md", "gap-y"),
1903
- sa[p]
2334
+ xa[p]
1904
2335
  ),
1905
2336
  children: [
1906
- t ? /* @__PURE__ */ l(
1907
- _,
2337
+ a ? /* @__PURE__ */ l(
2338
+ M,
1908
2339
  {
1909
2340
  as: "span",
1910
2341
  variant: "caption",
1911
2342
  colorRole: "primary",
1912
2343
  colorShade: "DEFAULT",
1913
2344
  className: "text-sm font-semibold tracking-wide uppercase",
1914
- children: t
2345
+ children: a
1915
2346
  }
1916
2347
  ) : null,
1917
2348
  /* @__PURE__ */ l(
1918
- _,
2349
+ M,
1919
2350
  {
1920
2351
  as: "h1",
1921
2352
  variant: "heading",
@@ -1923,15 +2354,15 @@ const ra = V(
1923
2354
  children: r
1924
2355
  }
1925
2356
  ),
1926
- a ? /* @__PURE__ */ l(
1927
- _,
2357
+ t ? /* @__PURE__ */ l(
2358
+ M,
1928
2359
  {
1929
2360
  as: "p",
1930
2361
  variant: "body",
1931
2362
  colorRole: "neutral",
1932
2363
  colorShade: "DEFAULT",
1933
2364
  className: "max-w-2xl text-base leading-relaxed sm:text-lg",
1934
- children: a
2365
+ children: t
1935
2366
  }
1936
2367
  ) : null
1937
2368
  ]
@@ -1943,21 +2374,21 @@ const ra = V(
1943
2374
  className: n(
1944
2375
  "flex flex-wrap",
1945
2376
  i("sm", "gap"),
1946
- na[p]
2377
+ ba[p]
1947
2378
  ),
1948
2379
  children: s
1949
2380
  }
1950
2381
  ) : null,
1951
- o ? /* @__PURE__ */ l("div", { className: "w-full", children: o }) : null,
1952
- c ? /* @__PURE__ */ l(
1953
- _,
2382
+ c ? /* @__PURE__ */ l("div", { className: "w-full", children: c }) : null,
2383
+ o ? /* @__PURE__ */ l(
2384
+ M,
1954
2385
  {
1955
2386
  as: "p",
1956
2387
  variant: "caption",
1957
2388
  colorRole: "neutral",
1958
2389
  colorShade: "light",
1959
2390
  className: "text-sm",
1960
- children: c
2391
+ children: o
1961
2392
  }
1962
2393
  ) : null
1963
2394
  ]
@@ -1965,11 +2396,11 @@ const ra = V(
1965
2396
  );
1966
2397
  }
1967
2398
  );
1968
- ia.displayName = "HeroSection";
1969
- function Fa(r) {
1970
- var a = r, {
2399
+ ha.displayName = "HeroSection";
2400
+ function Wa(r) {
2401
+ var t = r, {
1971
2402
  className: e = ""
1972
- } = a, t = m(a, [
2403
+ } = t, a = h(t, [
1973
2404
  "className"
1974
2405
  ]);
1975
2406
  return /* @__PURE__ */ l(
@@ -1982,21 +2413,21 @@ function Fa(r) {
1982
2413
  ${i("sm", "my")}
1983
2414
  ${e}
1984
2415
  `
1985
- }, t)
2416
+ }, a)
1986
2417
  );
1987
2418
  }
1988
- function Ra(a) {
1989
- var s = a, {
2419
+ function Ua(t) {
2420
+ var s = t, {
1990
2421
  orientation: e = "horizontal",
1991
- className: t = ""
1992
- } = s, r = m(s, [
2422
+ className: a = ""
2423
+ } = s, r = h(s, [
1993
2424
  "orientation",
1994
2425
  "className"
1995
2426
  ]);
1996
2427
  return e === "vertical" ? /* @__PURE__ */ l(
1997
2428
  "div",
1998
2429
  u({
1999
- className: n("w-px", "h-6", "bg-line-default", "mx-auto", t),
2430
+ className: n("w-px", "h-6", "bg-line-default", "mx-auto", a),
2000
2431
  role: "separator",
2001
2432
  "aria-orientation": "vertical"
2002
2433
  }, r)
@@ -2011,7 +2442,7 @@ function Ra(a) {
2011
2442
  // my-2 (8px) para consistência com gap-2 usado em outros lugares
2012
2443
  "flex-shrink-0",
2013
2444
  // Prevenir que separator encolha
2014
- t
2445
+ a
2015
2446
  ),
2016
2447
  role: "separator",
2017
2448
  "aria-orientation": "horizontal",
@@ -2023,7 +2454,7 @@ function Ra(a) {
2023
2454
  }, r)
2024
2455
  );
2025
2456
  }
2026
- const la = V(
2457
+ const ya = L(
2027
2458
  // Base classes
2028
2459
  n("w-full", "flex", "flex-col", i("sm", "gap")),
2029
2460
  {
@@ -2038,15 +2469,15 @@ const la = V(
2038
2469
  }
2039
2470
  }
2040
2471
  );
2041
- function ja(d) {
2472
+ function Ka(d) {
2042
2473
  var p = d, {
2043
2474
  title: e,
2044
- description: t,
2475
+ description: a,
2045
2476
  breadcrumb: r,
2046
- actions: a,
2477
+ actions: t,
2047
2478
  variant: s = "default",
2048
- className: o
2049
- } = p, c = m(p, [
2479
+ className: c
2480
+ } = p, o = h(p, [
2050
2481
  "title",
2051
2482
  "description",
2052
2483
  "breadcrumb",
@@ -2054,8 +2485,8 @@ function ja(d) {
2054
2485
  "variant",
2055
2486
  "className"
2056
2487
  ]);
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 }),
2488
+ return /* @__PURE__ */ v("div", y(u({ className: n(ya({ variant: s }), c) }, o), { children: [
2489
+ r && r.length > 0 && /* @__PURE__ */ l(oa, { items: r }),
2059
2490
  /* @__PURE__ */ v(
2060
2491
  "div",
2061
2492
  {
@@ -2063,7 +2494,7 @@ function ja(d) {
2063
2494
  children: [
2064
2495
  /* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
2065
2496
  /* @__PURE__ */ l(
2066
- _,
2497
+ M,
2067
2498
  {
2068
2499
  variant: "heading",
2069
2500
  as: "h1",
@@ -2071,13 +2502,13 @@ function ja(d) {
2071
2502
  children: e
2072
2503
  }
2073
2504
  ),
2074
- t && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: t })
2505
+ a && /* @__PURE__ */ l(M, { variant: "body", className: "text-fg-secondary", children: a })
2075
2506
  ] }),
2076
- a && /* @__PURE__ */ l(
2507
+ t && /* @__PURE__ */ l(
2077
2508
  "div",
2078
2509
  {
2079
2510
  className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
2080
- children: a
2511
+ children: t
2081
2512
  }
2082
2513
  )
2083
2514
  ]
@@ -2085,25 +2516,25 @@ function ja(d) {
2085
2516
  )
2086
2517
  ] }));
2087
2518
  }
2088
- const oa = {
2519
+ const va = {
2089
2520
  start: "items-start text-left",
2090
2521
  center: "items-center text-center"
2091
- }, ca = {
2522
+ }, wa = {
2092
2523
  neutral: "text-fg-tertiary",
2093
2524
  success: "text-fg-success",
2094
2525
  warning: "text-fg-warning",
2095
2526
  error: "text-fg-error"
2096
2527
  };
2097
- function Da(p) {
2098
- var h = p, {
2528
+ function qa(p) {
2529
+ var x = p, {
2099
2530
  value: e,
2100
- label: t,
2531
+ label: a,
2101
2532
  hint: r,
2102
- icon: a,
2533
+ icon: t,
2103
2534
  align: s = "start",
2104
- tone: o = "neutral",
2105
- className: c
2106
- } = h, d = m(h, [
2535
+ tone: c = "neutral",
2536
+ className: o
2537
+ } = x, d = h(x, [
2107
2538
  "value",
2108
2539
  "label",
2109
2540
  "hint",
@@ -2112,7 +2543,7 @@ function Da(p) {
2112
2543
  "tone",
2113
2544
  "className"
2114
2545
  ]);
2115
- const g = e == null;
2546
+ const m = e == null;
2116
2547
  return /* @__PURE__ */ v(
2117
2548
  "div",
2118
2549
  y(u({
@@ -2120,13 +2551,13 @@ function Da(p) {
2120
2551
  "bg-surface-base flex-1 flex flex-col",
2121
2552
  i("base", "p"),
2122
2553
  i("xs", "gap-y"),
2123
- oa[s],
2124
- c
2554
+ va[s],
2555
+ o
2125
2556
  )
2126
2557
  }, d), {
2127
2558
  children: [
2128
- a ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: a }) : null,
2129
- g ? /* @__PURE__ */ l(
2559
+ t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
2560
+ m ? /* @__PURE__ */ l(
2130
2561
  "span",
2131
2562
  {
2132
2563
  "aria-label": "No data",
@@ -2134,24 +2565,24 @@ function Da(p) {
2134
2565
  children: "—"
2135
2566
  }
2136
2567
  ) : /* @__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
2568
+ /* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
2569
+ r ? /* @__PURE__ */ l("span", { className: n("text-xs", wa[c]), children: r }) : null
2139
2570
  ]
2140
2571
  })
2141
2572
  );
2142
2573
  }
2143
- const da = {
2574
+ const Na = {
2144
2575
  2: "md:grid-cols-2",
2145
2576
  3: "md:grid-cols-3",
2146
2577
  4: "md:grid-cols-4"
2147
2578
  };
2148
- function _a(o) {
2149
- var c = o, {
2579
+ function Xa(c) {
2580
+ var o = c, {
2150
2581
  layout: e = "grid",
2151
- cols: t = 4,
2582
+ cols: a = 4,
2152
2583
  className: r,
2153
- children: a
2154
- } = c, s = m(c, [
2584
+ children: t
2585
+ } = o, s = h(o, [
2155
2586
  "layout",
2156
2587
  "cols",
2157
2588
  "className",
@@ -2163,28 +2594,28 @@ function _a(o) {
2163
2594
  y(u({
2164
2595
  className: n(
2165
2596
  "bg-line-default border border-line-default overflow-hidden gap-px",
2166
- C("lg"),
2167
- d ? `grid grid-cols-2 ${da[t]}` : "flex",
2597
+ $("lg"),
2598
+ d ? `grid grid-cols-2 ${Na[a]}` : "flex",
2168
2599
  r
2169
2600
  )
2170
2601
  }, s), {
2171
- children: a
2602
+ children: t
2172
2603
  })
2173
2604
  );
2174
2605
  }
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;
2606
+ function Ga(s) {
2607
+ var c = s, { column: e, row: a, className: r = "" } = c, t = h(c, ["column", "row", "className"]);
2608
+ const o = e.key in a ? a[e.key] : void 0;
2178
2609
  return /* @__PURE__ */ l(
2179
2610
  "td",
2180
2611
  y(u({
2181
2612
  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 : "")
2613
+ }, t), {
2614
+ children: e.render ? e.render(o, a) : String(o != null ? o : "")
2184
2615
  })
2185
2616
  );
2186
2617
  }
2187
- const ua = V(n("flex items-center", "border-b"), {
2618
+ const Sa = L(n("flex items-center", "border-b"), {
2188
2619
  variants: {
2189
2620
  variant: {
2190
2621
  default: n("border-line-default", i("base", "gap-x")),
@@ -2194,7 +2625,7 @@ const ua = V(n("flex items-center", "border-b"), {
2194
2625
  defaultVariants: {
2195
2626
  variant: "default"
2196
2627
  }
2197
- }), fa = V(
2628
+ }), $a = L(
2198
2629
  n(
2199
2630
  "relative -mb-px inline-flex items-center",
2200
2631
  i("xs", "gap-x"),
@@ -2204,7 +2635,7 @@ const ua = V(n("flex items-center", "border-b"), {
2204
2635
  "focus-visible:ring-2",
2205
2636
  "focus-visible:ring-line-focus",
2206
2637
  "focus-visible:ring-offset-2",
2207
- C("sm")
2638
+ $("sm")
2208
2639
  ),
2209
2640
  {
2210
2641
  variants: {
@@ -2212,12 +2643,12 @@ const ua = V(n("flex items-center", "border-b"), {
2212
2643
  default: n(
2213
2644
  i("sm", "px"),
2214
2645
  i("sm", "py"),
2215
- k("body")
2646
+ S("body")
2216
2647
  ),
2217
2648
  sub: n(
2218
2649
  i("sm", "px"),
2219
2650
  i("xs", "py"),
2220
- k("bodySmall")
2651
+ S("bodySmall")
2221
2652
  )
2222
2653
  },
2223
2654
  active: {
@@ -2242,21 +2673,21 @@ const ua = V(n("flex items-center", "border-b"), {
2242
2673
  active: !1
2243
2674
  }
2244
2675
  }
2245
- ), pa = n(
2676
+ ), ka = n(
2246
2677
  "inline-flex items-center justify-center",
2247
- C("full"),
2678
+ $("full"),
2248
2679
  i("xs", "px"),
2249
2680
  "bg-surface-muted text-fg-secondary text-xs"
2250
- ), ma = D(
2251
- function(h, p) {
2252
- var g = h, {
2253
- items: t,
2681
+ ), Ca = _(
2682
+ function(x, p) {
2683
+ var m = x, {
2684
+ items: a,
2254
2685
  variant: r = "default",
2255
- linkComponent: a,
2686
+ linkComponent: t,
2256
2687
  className: s,
2257
- "aria-label": o,
2258
- "aria-labelledby": c
2259
- } = g, d = m(g, [
2688
+ "aria-label": c,
2689
+ "aria-labelledby": o
2690
+ } = m, d = h(m, [
2260
2691
  "items",
2261
2692
  "variant",
2262
2693
  "linkComponent",
@@ -2264,70 +2695,70 @@ const ua = V(n("flex items-center", "border-b"), {
2264
2695
  "aria-label",
2265
2696
  "aria-labelledby"
2266
2697
  ]);
2267
- typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !c && console.warn(
2698
+ typeof process != "undefined" && process.env.NODE_ENV !== "production" && !c && !o && console.warn(
2268
2699
  '[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
2700
  );
2270
- const b = a != null ? a : "a";
2701
+ const b = t != null ? t : "a";
2271
2702
  return /* @__PURE__ */ l(
2272
2703
  "nav",
2273
2704
  y(u({
2274
2705
  ref: p,
2275
- className: n(ua({ variant: r }), s),
2276
- "aria-label": o,
2277
- "aria-labelledby": c
2706
+ className: n(Sa({ variant: r }), s),
2707
+ "aria-label": c,
2708
+ "aria-labelledby": o
2278
2709
  }, d), {
2279
- children: t.map((f, x) => /* @__PURE__ */ v(
2710
+ children: a.map((f, g) => /* @__PURE__ */ v(
2280
2711
  b,
2281
2712
  {
2282
2713
  href: f.href,
2283
2714
  "aria-current": f.active ? "page" : void 0,
2284
2715
  "data-active": f.active ? "true" : void 0,
2285
- className: fa({ variant: r, active: !!f.active }),
2716
+ className: $a({ variant: r, active: !!f.active }),
2286
2717
  children: [
2287
2718
  f.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: f.icon }) : null,
2288
2719
  /* @__PURE__ */ l("span", { children: f.label }),
2289
- f.count !== void 0 ? /* @__PURE__ */ l("span", { className: pa, children: f.count }) : null
2720
+ f.count !== void 0 ? /* @__PURE__ */ l("span", { className: ka, children: f.count }) : null
2290
2721
  ]
2291
2722
  },
2292
- f.href || x
2723
+ f.href || g
2293
2724
  ))
2294
2725
  })
2295
2726
  );
2296
2727
  }
2297
2728
  );
2298
- ma.displayName = "TabsAsLinks";
2299
- function Ma({
2729
+ Ca.displayName = "TabsAsLinks";
2730
+ function Ya({
2300
2731
  items: e,
2301
- orientation: t = "vertical",
2732
+ orientation: a = "vertical",
2302
2733
  className: r = ""
2303
2734
  }) {
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;
2735
+ return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, s) => {
2736
+ const c = t.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = s === e.length - 1;
2306
2737
  return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
2307
2738
  /* @__PURE__ */ l(
2308
2739
  "div",
2309
- y(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
2740
+ y(u({}, c === "default" ? { "data-marker": "pending" } : {}), {
2310
2741
  className: `
2311
2742
  flex
2312
2743
  items-center
2313
2744
  justify-center
2314
2745
  w-10
2315
2746
  h-10
2316
- ${C("full")}
2747
+ ${$("full")}
2317
2748
  border-2
2318
- ${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"}
2749
+ ${c === "completed" ? "bg-success border-success text-fg-inverse" : c === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : c === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2319
2750
  `,
2320
- children: a.icon || (o === "completed" ? /* @__PURE__ */ l(Y, { className: "h-4 w-4" }) : s + 1)
2751
+ children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : s + 1)
2321
2752
  })
2322
2753
  ),
2323
- !c && /* @__PURE__ */ l(
2754
+ !o && /* @__PURE__ */ l(
2324
2755
  "div",
2325
2756
  {
2326
2757
  className: `
2327
2758
  w-full
2328
2759
  h-0.5
2329
2760
  ${i("sm", "mt")}
2330
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
2761
+ ${c === "completed" ? "bg-success" : "bg-line-emphasis"}
2331
2762
  `
2332
2763
  }
2333
2764
  ),
@@ -2336,28 +2767,28 @@ function Ma({
2336
2767
  {
2337
2768
  className: `${i("base", "mt")} text-center ${i("base", "px")}`,
2338
2769
  children: [
2339
- a.timestamp && /* @__PURE__ */ l(
2770
+ t.timestamp && /* @__PURE__ */ l(
2340
2771
  "p",
2341
2772
  {
2342
2773
  className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
2343
- children: a.timestamp
2774
+ children: t.timestamp
2344
2775
  }
2345
2776
  ),
2346
- /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: a.title }),
2347
- a.description && /* @__PURE__ */ l(
2777
+ /* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
2778
+ t.description && /* @__PURE__ */ l(
2348
2779
  "p",
2349
2780
  {
2350
2781
  className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
2351
- children: a.description
2782
+ children: t.description
2352
2783
  }
2353
2784
  ),
2354
- a.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: a.content })
2785
+ t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
2355
2786
  ]
2356
2787
  }
2357
2788
  )
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;
2789
+ ] }) }, t.id);
2790
+ }) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, s) => {
2791
+ const c = t.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = s === e.length - 1;
2361
2792
  return /* @__PURE__ */ v(
2362
2793
  "div",
2363
2794
  {
@@ -2366,21 +2797,21 @@ function Ma({
2366
2797
  /* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
2367
2798
  /* @__PURE__ */ l(
2368
2799
  "div",
2369
- y(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
2800
+ y(u({}, c === "default" ? { "data-marker": "pending" } : {}), {
2370
2801
  className: `
2371
2802
  flex
2372
2803
  items-center
2373
2804
  justify-center
2374
2805
  w-10
2375
2806
  h-10
2376
- ${C("full")}
2807
+ ${$("full")}
2377
2808
  border-2
2378
- ${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"}
2809
+ ${c === "completed" ? "bg-success border-success text-fg-inverse" : c === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : c === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
2379
2810
  `,
2380
- children: a.icon || (o === "completed" ? /* @__PURE__ */ l(Y, { className: "h-4 w-4" }) : s + 1)
2811
+ children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : s + 1)
2381
2812
  })
2382
2813
  ),
2383
- !c && /* @__PURE__ */ l(
2814
+ !o && /* @__PURE__ */ l(
2384
2815
  "div",
2385
2816
  {
2386
2817
  className: `
@@ -2388,17 +2819,17 @@ function Ma({
2388
2819
  flex-1
2389
2820
  min-h-16
2390
2821
  ${i("sm", "mt")}
2391
- ${o === "completed" ? "bg-success" : "bg-line-emphasis"}
2822
+ ${c === "completed" ? "bg-success" : "bg-line-emphasis"}
2392
2823
  `
2393
2824
  }
2394
2825
  )
2395
2826
  ] }),
2396
2827
  /* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
2397
- a.timestamp && /* @__PURE__ */ l(
2828
+ t.timestamp && /* @__PURE__ */ l(
2398
2829
  "p",
2399
2830
  {
2400
2831
  className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
2401
- children: a.timestamp
2832
+ children: t.timestamp
2402
2833
  }
2403
2834
  ),
2404
2835
  /* @__PURE__ */ l(
@@ -2407,61 +2838,63 @@ function Ma({
2407
2838
  className: `
2408
2839
  text-base
2409
2840
  font-semibold
2410
- ${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
2841
+ ${c === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
2411
2842
  `,
2412
- children: a.title
2843
+ children: t.title
2413
2844
  }
2414
2845
  ),
2415
- a.description && /* @__PURE__ */ l(
2846
+ t.description && /* @__PURE__ */ l(
2416
2847
  "p",
2417
2848
  {
2418
2849
  className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
2419
- children: a.description
2850
+ children: t.description
2420
2851
  }
2421
2852
  ),
2422
- a.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: a.content })
2853
+ t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
2423
2854
  ] })
2424
2855
  ]
2425
2856
  },
2426
- a.id
2857
+ t.id
2427
2858
  );
2428
2859
  }) });
2429
2860
  }
2430
2861
  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,
2464
- _ as Text,
2465
- Ma as Timeline
2862
+ Ee as Badge,
2863
+ oa as Breadcrumb,
2864
+ Ie as Button,
2865
+ W as Card,
2866
+ fa as CardActions,
2867
+ pa as CardBody,
2868
+ ca as CardHeader,
2869
+ ua as CardSubtitle,
2870
+ da as CardTitle,
2871
+ We as Chip,
2872
+ ia as Container,
2873
+ Oa as DialogFooter,
2874
+ Ra as DialogHeader,
2875
+ Ba as DrawerFooter,
2876
+ Ma as DrawerHeader,
2877
+ _a as ErrorMessage,
2878
+ Ha as FilterChips,
2879
+ Pa as HeaderActions,
2880
+ Ia as HeaderNavigation,
2881
+ ha as HeroSection,
2882
+ ja as Info,
2883
+ qe as InputBase,
2884
+ Ye as Label,
2885
+ Wa as MenuSeparator,
2886
+ Ua as NavbarSeparator,
2887
+ Ka as PageHeader,
2888
+ Qe as Progress,
2889
+ ta as Separator,
2890
+ za as Skeleton,
2891
+ fe as Spinner,
2892
+ la as Stack,
2893
+ qa as Stat,
2894
+ Xa as StatGroup,
2895
+ Ga as TableCell,
2896
+ Ca as TabsAsLinks,
2897
+ M as Text,
2898
+ Ya as Timeline
2466
2899
  };
2467
2900
  //# sourceMappingURL=index.js.map