@fabio.caffarello/react-design-system 3.13.0 → 4.1.0

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