@nextui-org/theme 2.1.9 → 2.1.11

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 (162) hide show
  1. package/dist/{chunk-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
  2. package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
  3. package/dist/{chunk-F76574GG.mjs → chunk-6RI6HHSE.mjs} +126 -46
  4. package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
  5. package/dist/chunk-76A2UI6G.mjs +243 -0
  6. package/dist/chunk-AQDGQGUV.mjs +391 -0
  7. package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
  8. package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
  9. package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
  10. package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
  11. package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
  12. package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
  13. package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
  14. package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
  15. package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
  16. package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
  17. package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
  18. package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
  19. package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
  20. package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
  21. package/dist/{chunk-PJV3MWBL.mjs → chunk-KNUJMWVH.mjs} +185 -52
  22. package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
  23. package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
  24. package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
  25. package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
  26. package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
  27. package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
  28. package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
  29. package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
  30. package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
  31. package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
  32. package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
  33. package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
  34. package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
  35. package/dist/chunk-WBUVHAJX.mjs +37 -0
  36. package/dist/chunk-WHT6K6RC.mjs +58 -0
  37. package/dist/chunk-WNVF6X3M.mjs +171 -0
  38. package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
  39. package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
  40. package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
  41. package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
  42. package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
  43. package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
  44. package/dist/components/accordion.js +27 -34
  45. package/dist/components/accordion.mjs +3 -3
  46. package/dist/components/autocomplete.d.ts +180 -0
  47. package/dist/components/autocomplete.js +165 -0
  48. package/dist/components/autocomplete.mjs +8 -0
  49. package/dist/components/avatar.js +28 -35
  50. package/dist/components/avatar.mjs +3 -3
  51. package/dist/components/badge.d.ts +7 -7
  52. package/dist/components/badge.js +29 -36
  53. package/dist/components/badge.mjs +3 -3
  54. package/dist/components/breadcrumbs.d.ts +816 -0
  55. package/dist/components/breadcrumbs.js +357 -0
  56. package/dist/components/breadcrumbs.mjs +14 -0
  57. package/dist/components/button.d.ts +7 -7
  58. package/dist/components/button.js +104 -39
  59. package/dist/components/button.mjs +3 -3
  60. package/dist/components/card.js +26 -33
  61. package/dist/components/card.mjs +3 -3
  62. package/dist/components/checkbox.js +25 -32
  63. package/dist/components/checkbox.mjs +3 -3
  64. package/dist/components/chip.js +26 -33
  65. package/dist/components/chip.mjs +3 -3
  66. package/dist/components/circular-progress.js +25 -32
  67. package/dist/components/circular-progress.mjs +2 -2
  68. package/dist/components/code.js +25 -32
  69. package/dist/components/code.mjs +3 -3
  70. package/dist/components/divider.js +25 -32
  71. package/dist/components/divider.mjs +2 -2
  72. package/dist/components/drip.d.ts +29 -3
  73. package/dist/components/drip.js +25 -32
  74. package/dist/components/drip.mjs +2 -2
  75. package/dist/components/dropdown.d.ts +103 -35
  76. package/dist/components/dropdown.js +25 -32
  77. package/dist/components/dropdown.mjs +3 -3
  78. package/dist/components/image.js +25 -32
  79. package/dist/components/image.mjs +2 -2
  80. package/dist/components/index.d.ts +4 -1
  81. package/dist/components/index.js +1213 -218
  82. package/dist/components/index.mjs +62 -48
  83. package/dist/components/input.d.ts +37 -44
  84. package/dist/components/input.js +208 -82
  85. package/dist/components/input.mjs +3 -3
  86. package/dist/components/kbd.js +25 -32
  87. package/dist/components/kbd.mjs +2 -2
  88. package/dist/components/link.js +25 -32
  89. package/dist/components/link.mjs +3 -3
  90. package/dist/components/listbox.d.ts +1 -1
  91. package/dist/components/listbox.js +41 -34
  92. package/dist/components/listbox.mjs +3 -3
  93. package/dist/components/menu.d.ts +119 -40
  94. package/dist/components/menu.js +41 -34
  95. package/dist/components/menu.mjs +3 -3
  96. package/dist/components/modal.js +25 -32
  97. package/dist/components/modal.mjs +3 -3
  98. package/dist/components/navbar.js +29 -33
  99. package/dist/components/navbar.mjs +3 -3
  100. package/dist/components/pagination.js +46 -36
  101. package/dist/components/pagination.mjs +3 -3
  102. package/dist/components/popover.d.ts +136 -132
  103. package/dist/components/popover.js +98 -94
  104. package/dist/components/popover.mjs +3 -3
  105. package/dist/components/progress.js +25 -32
  106. package/dist/components/progress.mjs +2 -2
  107. package/dist/components/radio.js +26 -33
  108. package/dist/components/radio.mjs +3 -3
  109. package/dist/components/scroll-shadow.js +25 -32
  110. package/dist/components/scroll-shadow.mjs +2 -2
  111. package/dist/components/select.d.ts +40 -54
  112. package/dist/components/select.js +149 -76
  113. package/dist/components/select.mjs +3 -3
  114. package/dist/components/skeleton.js +26 -33
  115. package/dist/components/skeleton.mjs +2 -2
  116. package/dist/components/slider.d.ts +1024 -0
  117. package/dist/components/slider.js +504 -0
  118. package/dist/components/slider.mjs +12 -0
  119. package/dist/components/snippet.js +25 -32
  120. package/dist/components/snippet.mjs +3 -3
  121. package/dist/components/spacer.js +25 -32
  122. package/dist/components/spacer.mjs +2 -2
  123. package/dist/components/spinner.js +25 -32
  124. package/dist/components/spinner.mjs +2 -2
  125. package/dist/components/table.js +25 -32
  126. package/dist/components/table.mjs +3 -3
  127. package/dist/components/tabs.js +25 -32
  128. package/dist/components/tabs.mjs +3 -3
  129. package/dist/components/toggle.js +25 -32
  130. package/dist/components/toggle.mjs +3 -3
  131. package/dist/components/user.d.ts +45 -29
  132. package/dist/components/user.js +25 -32
  133. package/dist/components/user.mjs +3 -3
  134. package/dist/default-layout.js +4 -1
  135. package/dist/default-layout.mjs +1 -1
  136. package/dist/index.d.ts +5 -2
  137. package/dist/index.js +1403 -387
  138. package/dist/index.mjs +69 -53
  139. package/dist/plugin.js +24 -5
  140. package/dist/plugin.mjs +6 -6
  141. package/dist/types.d.ts +8 -0
  142. package/dist/utilities/index.d.ts +10 -0
  143. package/dist/utilities/index.js +10 -0
  144. package/dist/utilities/index.mjs +2 -2
  145. package/dist/utilities/transition.d.ts +10 -0
  146. package/dist/utilities/transition.js +10 -0
  147. package/dist/utilities/transition.mjs +1 -1
  148. package/dist/utils/classes.d.ts +13 -1
  149. package/dist/utils/classes.js +10 -0
  150. package/dist/utils/classes.mjs +3 -1
  151. package/dist/utils/index.d.ts +1 -1
  152. package/dist/utils/index.js +10 -0
  153. package/dist/utils/index.mjs +3 -1
  154. package/dist/utils/theme.js +4 -3
  155. package/dist/utils/theme.mjs +1 -1
  156. package/dist/utils/tv.d.ts +2 -2
  157. package/dist/utils/tv.js +25 -32
  158. package/dist/utils/tv.mjs +1 -1
  159. package/package.json +9 -9
  160. package/dist/chunk-6AEINX52.mjs +0 -44
  161. package/dist/chunk-SN5GEHHN.mjs +0 -160
  162. /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
@@ -82,39 +82,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
82
 
83
83
  // src/utils/tv.ts
84
84
  var COMMON_UNITS = ["small", "medium", "large"];
85
- var tv = (options, config) => {
86
- var _a, _b, _c;
87
- return (0, import_tailwind_variants.tv)(options, {
88
- ...config,
89
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
90
- twMergeConfig: {
91
- ...config == null ? void 0 : config.twMergeConfig,
92
- theme: {
93
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
- opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
96
- borderWidth: COMMON_UNITS,
97
- borderRadius: COMMON_UNITS
98
- },
99
- classGroups: {
100
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
- shadow: [{ shadow: COMMON_UNITS }],
102
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
103
- "bg-image": ["bg-stripe-gradient"],
104
- "min-w": [
105
- {
106
- "min-w": ["unit", ...mappedSpacingScaleKeys]
107
- }
108
- ],
109
- "min-h": [
110
- {
111
- "min-h": ["unit", ...mappedSpacingScaleKeys]
112
- }
113
- ]
114
- }
85
+ var tv = (0, import_tailwind_variants.createTV)({
86
+ twMerge: true,
87
+ twMergeConfig: {
88
+ theme: {
89
+ opacity: ["disabled"],
90
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
91
+ borderWidth: COMMON_UNITS,
92
+ borderRadius: COMMON_UNITS
93
+ },
94
+ classGroups: {
95
+ shadow: [{ shadow: COMMON_UNITS }],
96
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
97
+ "bg-image": ["bg-stripe-gradient"],
98
+ "min-w": [
99
+ {
100
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
101
+ }
102
+ ],
103
+ "min-h": [
104
+ {
105
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
106
+ }
107
+ ]
115
108
  }
116
- });
117
- };
109
+ }
110
+ });
118
111
 
119
112
  // src/utils/classes.ts
120
113
  var dataFocusVisibleClasses = [
@@ -203,107 +196,118 @@ var colorVariants = {
203
196
  var popover = tv({
204
197
  slots: {
205
198
  base: [
206
- "z-10",
199
+ "z-0",
207
200
  "relative",
201
+ "bg-transparent",
202
+ "before:content-['']",
203
+ "before:hidden",
204
+ "before:z-[-1]",
205
+ "before:absolute",
206
+ "before:rotate-45",
207
+ "before:w-2.5",
208
+ "before:h-2.5",
209
+ "before:rounded-sm",
210
+ "data-[arrow=true]:before:block",
211
+ "data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
212
+ "data-[placement=top]:before:left-1/2",
213
+ "data-[placement=top]:before:-translate-x-1/2",
214
+ "data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
215
+ "data-[placement=top-start]:before:left-3",
216
+ "data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
217
+ "data-[placement=top-end]:before:right-3",
218
+ "data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
219
+ "data-[placement=bottom]:before:left-1/2",
220
+ "data-[placement=bottom]:before:-translate-x-1/2",
221
+ "data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
222
+ "data-[placement=bottom-start]:before:left-3",
223
+ "data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
224
+ "data-[placement=bottom-end]:before:right-3",
225
+ "data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]",
226
+ "data-[placement=left]:before:top-1/2",
227
+ "data-[placement=left]:before:-translate-y-1/2",
228
+ "data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
229
+ "data-[placement=left-start]:before:top-1/4",
230
+ "data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
231
+ "data-[placement=left-end]:before:bottom-1/4",
232
+ "data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]",
233
+ "data-[placement=right]:before:top-1/2",
234
+ "data-[placement=right]:before:-translate-y-1/2",
235
+ "data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
236
+ "data-[placement=right-start]:before:top-1/4",
237
+ "data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
238
+ "data-[placement=right-end]:before:bottom-1/4",
239
+ ...dataFocusVisibleClasses
240
+ ],
241
+ content: [
242
+ "z-10",
243
+ "px-2.5",
244
+ "py-1",
245
+ "w-full",
208
246
  "inline-flex",
209
247
  "flex-col",
210
248
  "items-center",
211
249
  "justify-center",
212
250
  "box-border",
213
251
  "subpixel-antialiased",
214
- "px-4",
215
- "py-1",
216
252
  "outline-none",
217
- "box-border",
218
- ...dataFocusVisibleClasses
253
+ "box-border"
219
254
  ],
220
255
  trigger: ["z-10"],
221
256
  backdrop: ["hidden"],
222
- arrow: [
223
- "z-[-1]",
224
- "absolute",
225
- "rotate-45",
226
- "w-2.5",
227
- "h-2.5",
228
- "rounded-sm",
229
- "data-[placement=top]:-bottom-1",
230
- "data-[placement=top]:-translate-x-1/2",
231
- "data-[placement=top-start]:-bottom-1",
232
- "data-[placement=top-start]:-translate-x-8",
233
- "data-[placement=top-end]:-bottom-1",
234
- "data-[placement=top-end]:translate-x-6",
235
- "data-[placement=bottom]:-top-1",
236
- "data-[placement=bottom]:-translate-x-1/2",
237
- "data-[placement=bottom-start]:-top-1",
238
- "data-[placement=bottom-start]:-translate-x-8",
239
- "data-[placement=bottom-end]:-top-1",
240
- "data-[placement=bottom-end]:translate-x-6",
241
- "data-[placement=left]:-right-1",
242
- "data-[placement=left]:-translate-y-1/2",
243
- "data-[placement=left-start]:-right-1",
244
- "data-[placement=left-start]:-translate-y-3",
245
- "data-[placement=left-end]:-right-1",
246
- "data-[placement=left-end]:translate-y-0.5",
247
- "data-[placement=right]:-left-1",
248
- "data-[placement=right]:-translate-y-1/2",
249
- "data-[placement=right-start]:-left-1",
250
- "data-[placement=right-start]:-translate-y-3",
251
- "data-[placement=right-end]:-left-1",
252
- "data-[placement=right-end]:translate-y-0.5"
253
- ]
257
+ arrow: []
254
258
  },
255
259
  variants: {
256
260
  size: {
257
- sm: { base: "text-tiny" },
258
- md: { base: "text-small" },
259
- lg: { base: "text-medium" }
261
+ sm: { content: "text-tiny" },
262
+ md: { content: "text-small" },
263
+ lg: { content: "text-medium" }
260
264
  },
261
265
  color: {
262
266
  default: {
263
- base: "bg-content1",
264
- arrow: "shadow-small bg-content1"
267
+ base: "before:bg-content1 before:shadow-small",
268
+ content: "bg-content1"
265
269
  },
266
270
  foreground: {
267
- base: colorVariants.solid.foreground,
268
- arrow: "bg-foreground"
271
+ base: "before:bg-foreground",
272
+ content: colorVariants.solid.foreground
269
273
  },
270
274
  primary: {
271
- base: colorVariants.solid.primary,
272
- arrow: "bg-primary"
275
+ base: "before:bg-primary",
276
+ content: colorVariants.solid.primary
273
277
  },
274
278
  secondary: {
275
- base: colorVariants.solid.secondary,
276
- arrow: "bg-secondary"
279
+ base: "before:bg-secondary",
280
+ content: colorVariants.solid.secondary
277
281
  },
278
282
  success: {
279
- base: colorVariants.solid.success,
280
- arrow: "bg-success"
283
+ base: "before:bg-success",
284
+ content: colorVariants.solid.success
281
285
  },
282
286
  warning: {
283
- base: colorVariants.solid.warning,
284
- arrow: "bg-warning"
287
+ base: "before:bg-warning",
288
+ content: colorVariants.solid.warning
285
289
  },
286
290
  danger: {
287
- base: colorVariants.solid.danger,
288
- arrow: "bg-danger"
291
+ base: "before:bg-danger",
292
+ content: colorVariants.solid.danger
289
293
  }
290
294
  },
291
295
  radius: {
292
- none: { base: "rounded-none" },
293
- sm: { base: "rounded-small" },
294
- md: { base: "rounded-medium" },
295
- lg: { base: "rounded-large" },
296
- full: { base: "rounded-full" }
296
+ none: { content: "rounded-none" },
297
+ sm: { content: "rounded-small" },
298
+ md: { content: "rounded-medium" },
299
+ lg: { content: "rounded-large" },
300
+ full: { content: "rounded-full" }
297
301
  },
298
302
  shadow: {
299
303
  sm: {
300
- base: "shadow-small"
304
+ content: "shadow-small"
301
305
  },
302
306
  md: {
303
- base: "shadow-medium"
307
+ content: "shadow-medium"
304
308
  },
305
309
  lg: {
306
- base: "shadow-large"
310
+ content: "shadow-large"
307
311
  }
308
312
  },
309
313
  backdrop: {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  popover
3
- } from "../chunk-SN5GEHHN.mjs";
3
+ } from "../chunk-WNVF6X3M.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-6AEINX52.mjs";
8
- import "../chunk-T7JNS25F.mjs";
7
+ import "../chunk-WBUVHAJX.mjs";
8
+ import "../chunk-XHQUSKIE.mjs";
9
9
  import "../chunk-WA5F6AED.mjs";
10
10
  export {
11
11
  popover
@@ -82,39 +82,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
82
 
83
83
  // src/utils/tv.ts
84
84
  var COMMON_UNITS = ["small", "medium", "large"];
85
- var tv = (options, config) => {
86
- var _a, _b, _c;
87
- return (0, import_tailwind_variants.tv)(options, {
88
- ...config,
89
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
90
- twMergeConfig: {
91
- ...config == null ? void 0 : config.twMergeConfig,
92
- theme: {
93
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
- opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
96
- borderWidth: COMMON_UNITS,
97
- borderRadius: COMMON_UNITS
98
- },
99
- classGroups: {
100
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
- shadow: [{ shadow: COMMON_UNITS }],
102
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
103
- "bg-image": ["bg-stripe-gradient"],
104
- "min-w": [
105
- {
106
- "min-w": ["unit", ...mappedSpacingScaleKeys]
107
- }
108
- ],
109
- "min-h": [
110
- {
111
- "min-h": ["unit", ...mappedSpacingScaleKeys]
112
- }
113
- ]
114
- }
85
+ var tv = (0, import_tailwind_variants.createTV)({
86
+ twMerge: true,
87
+ twMergeConfig: {
88
+ theme: {
89
+ opacity: ["disabled"],
90
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
91
+ borderWidth: COMMON_UNITS,
92
+ borderRadius: COMMON_UNITS
93
+ },
94
+ classGroups: {
95
+ shadow: [{ shadow: COMMON_UNITS }],
96
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
97
+ "bg-image": ["bg-stripe-gradient"],
98
+ "min-w": [
99
+ {
100
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
101
+ }
102
+ ],
103
+ "min-h": [
104
+ {
105
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
106
+ }
107
+ ]
115
108
  }
116
- });
117
- };
109
+ }
110
+ });
118
111
 
119
112
  // src/components/progress.ts
120
113
  var progress = tv(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  progress
3
- } from "../chunk-LQGOKGQV.mjs";
4
- import "../chunk-6AEINX52.mjs";
3
+ } from "../chunk-XHQNEGB6.mjs";
4
+ import "../chunk-WBUVHAJX.mjs";
5
5
  import "../chunk-WA5F6AED.mjs";
6
6
  export {
7
7
  progress
@@ -83,39 +83,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
83
83
 
84
84
  // src/utils/tv.ts
85
85
  var COMMON_UNITS = ["small", "medium", "large"];
86
- var tv = (options, config) => {
87
- var _a, _b, _c;
88
- return (0, import_tailwind_variants.tv)(options, {
89
- ...config,
90
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
91
- twMergeConfig: {
92
- ...config == null ? void 0 : config.twMergeConfig,
93
- theme: {
94
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
95
- opacity: ["disabled"],
96
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
97
- borderWidth: COMMON_UNITS,
98
- borderRadius: COMMON_UNITS
99
- },
100
- classGroups: {
101
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
102
- shadow: [{ shadow: COMMON_UNITS }],
103
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
104
- "bg-image": ["bg-stripe-gradient"],
105
- "min-w": [
106
- {
107
- "min-w": ["unit", ...mappedSpacingScaleKeys]
108
- }
109
- ],
110
- "min-h": [
111
- {
112
- "min-h": ["unit", ...mappedSpacingScaleKeys]
113
- }
114
- ]
115
- }
86
+ var tv = (0, import_tailwind_variants.createTV)({
87
+ twMerge: true,
88
+ twMergeConfig: {
89
+ theme: {
90
+ opacity: ["disabled"],
91
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
92
+ borderWidth: COMMON_UNITS,
93
+ borderRadius: COMMON_UNITS
94
+ },
95
+ classGroups: {
96
+ shadow: [{ shadow: COMMON_UNITS }],
97
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
98
+ "bg-image": ["bg-stripe-gradient"],
99
+ "min-w": [
100
+ {
101
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
102
+ }
103
+ ],
104
+ "min-h": [
105
+ {
106
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
107
+ }
108
+ ]
116
109
  }
117
- });
118
- };
110
+ }
111
+ });
119
112
 
120
113
  // src/utils/classes.ts
121
114
  var groupDataFocusVisibleClasses = [
@@ -219,7 +212,7 @@ var radio = tv({
219
212
  isInvalid: {
220
213
  true: {
221
214
  control: "bg-danger text-danger-foreground",
222
- wrapper: "border-danger data-[selected=true]:border-danger",
215
+ wrapper: "border-danger group-data-[selected=true]:border-danger",
223
216
  label: "text-danger",
224
217
  description: "text-danger-300"
225
218
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  radio,
3
3
  radioGroup
4
- } from "../chunk-EQIZ7W7V.mjs";
4
+ } from "../chunk-WYVG7NY6.mjs";
5
5
  import "../chunk-CMYR6AOY.mjs";
6
6
  import "../chunk-K7LK7NCE.mjs";
7
7
  import "../chunk-2PIR7DFM.mjs";
8
- import "../chunk-6AEINX52.mjs";
9
- import "../chunk-T7JNS25F.mjs";
8
+ import "../chunk-WBUVHAJX.mjs";
9
+ import "../chunk-XHQUSKIE.mjs";
10
10
  import "../chunk-WA5F6AED.mjs";
11
11
  export {
12
12
  radio,
@@ -82,39 +82,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
82
 
83
83
  // src/utils/tv.ts
84
84
  var COMMON_UNITS = ["small", "medium", "large"];
85
- var tv = (options, config) => {
86
- var _a, _b, _c;
87
- return (0, import_tailwind_variants.tv)(options, {
88
- ...config,
89
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
90
- twMergeConfig: {
91
- ...config == null ? void 0 : config.twMergeConfig,
92
- theme: {
93
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
- opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
96
- borderWidth: COMMON_UNITS,
97
- borderRadius: COMMON_UNITS
98
- },
99
- classGroups: {
100
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
- shadow: [{ shadow: COMMON_UNITS }],
102
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
103
- "bg-image": ["bg-stripe-gradient"],
104
- "min-w": [
105
- {
106
- "min-w": ["unit", ...mappedSpacingScaleKeys]
107
- }
108
- ],
109
- "min-h": [
110
- {
111
- "min-h": ["unit", ...mappedSpacingScaleKeys]
112
- }
113
- ]
114
- }
85
+ var tv = (0, import_tailwind_variants.createTV)({
86
+ twMerge: true,
87
+ twMergeConfig: {
88
+ theme: {
89
+ opacity: ["disabled"],
90
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
91
+ borderWidth: COMMON_UNITS,
92
+ borderRadius: COMMON_UNITS
93
+ },
94
+ classGroups: {
95
+ shadow: [{ shadow: COMMON_UNITS }],
96
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
97
+ "bg-image": ["bg-stripe-gradient"],
98
+ "min-w": [
99
+ {
100
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
101
+ }
102
+ ],
103
+ "min-h": [
104
+ {
105
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
106
+ }
107
+ ]
115
108
  }
116
- });
117
- };
109
+ }
110
+ });
118
111
 
119
112
  // src/components/scroll-shadow.ts
120
113
  var verticalShadow = [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  scrollShadow
3
- } from "../chunk-4JBYJQSP.mjs";
4
- import "../chunk-6AEINX52.mjs";
3
+ } from "../chunk-VGHVBXXT.mjs";
4
+ import "../chunk-WBUVHAJX.mjs";
5
5
  import "../chunk-WA5F6AED.mjs";
6
6
  export {
7
7
  scrollShadow