@nextui-org/theme 2.1.9 → 2.1.10

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-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
  4. package/dist/chunk-76A2UI6G.mjs +243 -0
  5. package/dist/chunk-AQDGQGUV.mjs +391 -0
  6. package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
  7. package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
  8. package/dist/{chunk-PJV3MWBL.mjs → chunk-C3KZKKPN.mjs} +182 -49
  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-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
  22. package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
  23. package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
  24. package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
  25. package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
  26. package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
  27. package/dist/{chunk-F76574GG.mjs → chunk-SCQJ4BM3.mjs} +105 -39
  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 +1189 -208
  82. package/dist/components/index.mjs +62 -48
  83. package/dist/components/input.d.ts +34 -41
  84. package/dist/components/input.js +205 -79
  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 +30 -51
  112. package/dist/components/select.js +128 -69
  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 +1323 -321
  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
@@ -0,0 +1,357 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/breadcrumbs.ts
21
+ var breadcrumbs_exports = {};
22
+ __export(breadcrumbs_exports, {
23
+ breadcrumbItem: () => breadcrumbItem,
24
+ breadcrumbs: () => breadcrumbs
25
+ });
26
+ module.exports = __toCommonJS(breadcrumbs_exports);
27
+
28
+ // src/utils/classes.ts
29
+ var dataFocusVisibleClasses = [
30
+ "outline-none",
31
+ "data-[focus-visible=true]:z-10",
32
+ "data-[focus-visible=true]:outline-2",
33
+ "data-[focus-visible=true]:outline-focus",
34
+ "data-[focus-visible=true]:outline-offset-2"
35
+ ];
36
+
37
+ // src/utils/tv.ts
38
+ var import_tailwind_variants = require("tailwind-variants");
39
+
40
+ // src/types.ts
41
+ var spacingScaleKeys = [
42
+ "0",
43
+ "xs",
44
+ "sm",
45
+ "md",
46
+ "lg",
47
+ "xl",
48
+ "2xl",
49
+ "3xl",
50
+ "4xl",
51
+ "5xl",
52
+ "6xl",
53
+ "7xl",
54
+ "8xl",
55
+ "9xl",
56
+ "1",
57
+ "2",
58
+ "3",
59
+ "3.5",
60
+ "4",
61
+ "5",
62
+ "6",
63
+ "7",
64
+ "8",
65
+ "9",
66
+ "10",
67
+ "11",
68
+ "12",
69
+ "13",
70
+ "14",
71
+ "15",
72
+ "16",
73
+ "17",
74
+ "18",
75
+ "20",
76
+ "24",
77
+ "28",
78
+ "32",
79
+ "36",
80
+ "40",
81
+ "44",
82
+ "48",
83
+ "52",
84
+ "56",
85
+ "60",
86
+ "64",
87
+ "72",
88
+ "80",
89
+ "96"
90
+ ];
91
+ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
92
+
93
+ // src/utils/tv.ts
94
+ var COMMON_UNITS = ["small", "medium", "large"];
95
+ var tv = (0, import_tailwind_variants.createTV)({
96
+ twMerge: true,
97
+ twMergeConfig: {
98
+ theme: {
99
+ opacity: ["disabled"],
100
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
101
+ borderWidth: COMMON_UNITS,
102
+ borderRadius: COMMON_UNITS
103
+ },
104
+ classGroups: {
105
+ shadow: [{ shadow: COMMON_UNITS }],
106
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
107
+ "bg-image": ["bg-stripe-gradient"],
108
+ "min-w": [
109
+ {
110
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
111
+ }
112
+ ],
113
+ "min-h": [
114
+ {
115
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ });
121
+
122
+ // src/components/breadcrumbs.ts
123
+ var breadcrumbItem = tv({
124
+ slots: {
125
+ base: "flex items-center",
126
+ item: [
127
+ "flex gap-1 items-center",
128
+ "cursor-pointer",
129
+ "whitespace-nowrap",
130
+ "line-clamp-1",
131
+ "outline-none",
132
+ "tap-highlight-transparent",
133
+ ...dataFocusVisibleClasses
134
+ ],
135
+ separator: "text-default-400 px-1"
136
+ },
137
+ variants: {
138
+ color: {
139
+ foreground: {
140
+ item: "text-foreground/50",
141
+ separator: "text-foreground/50"
142
+ },
143
+ primary: {
144
+ item: "text-primary/80",
145
+ separator: "text-primary/80"
146
+ },
147
+ secondary: {
148
+ item: "text-secondary/80",
149
+ separator: "text-secondary/80"
150
+ },
151
+ success: {
152
+ item: "text-success/80",
153
+ separator: "text-success/80"
154
+ },
155
+ warning: {
156
+ item: "text-warning/80",
157
+ separator: "text-warning/80"
158
+ },
159
+ danger: {
160
+ item: "text-danger/80",
161
+ separator: "text-danger/80"
162
+ }
163
+ },
164
+ size: {
165
+ sm: {
166
+ item: "text-tiny"
167
+ },
168
+ md: {
169
+ item: "text-small"
170
+ },
171
+ lg: {
172
+ item: "text-medium"
173
+ }
174
+ },
175
+ underline: {
176
+ none: {
177
+ item: "no-underline"
178
+ },
179
+ hover: {
180
+ item: "hover:underline"
181
+ },
182
+ always: {
183
+ item: "underline"
184
+ },
185
+ active: {
186
+ item: "active:underline"
187
+ },
188
+ focus: {
189
+ item: "focus:underline"
190
+ }
191
+ },
192
+ isCurrent: {
193
+ true: {
194
+ item: "cursor-default"
195
+ },
196
+ false: {
197
+ item: ["hover:opacity-80", "active:opacity-disabled"]
198
+ }
199
+ },
200
+ isDisabled: {
201
+ true: {
202
+ item: "opacity-disabled pointer-events-none",
203
+ separator: "opacity-disabled"
204
+ }
205
+ },
206
+ disableAnimation: {
207
+ false: {
208
+ item: "transition-opacity"
209
+ },
210
+ true: {
211
+ item: "transition-none"
212
+ }
213
+ }
214
+ },
215
+ defaultVariants: {
216
+ size: "md",
217
+ color: "foreground",
218
+ underline: "hover",
219
+ isDisabled: false,
220
+ disableAnimation: false
221
+ },
222
+ compoundVariants: [
223
+ {
224
+ isCurrent: true,
225
+ color: "foreground",
226
+ class: {
227
+ item: "text-foreground"
228
+ }
229
+ },
230
+ {
231
+ isCurrent: true,
232
+ color: "primary",
233
+ class: {
234
+ item: "text-primary"
235
+ }
236
+ },
237
+ {
238
+ isCurrent: true,
239
+ color: "secondary",
240
+ class: {
241
+ item: "text-secondary"
242
+ }
243
+ },
244
+ {
245
+ isCurrent: true,
246
+ color: "success",
247
+ class: {
248
+ item: "text-success"
249
+ }
250
+ },
251
+ {
252
+ isCurrent: true,
253
+ color: "warning",
254
+ class: {
255
+ item: "text-warning"
256
+ }
257
+ },
258
+ {
259
+ isCurrent: true,
260
+ color: "danger",
261
+ class: {
262
+ item: "text-danger"
263
+ }
264
+ },
265
+ {
266
+ isCurrent: false,
267
+ underline: "none",
268
+ class: {
269
+ item: "no-underline"
270
+ }
271
+ },
272
+ {
273
+ underline: ["hover", "always", "active", "focus"],
274
+ class: "underline-offset-4"
275
+ }
276
+ ]
277
+ });
278
+ var breadcrumbs = tv({
279
+ slots: {
280
+ base: "",
281
+ list: "flex flex-wrap list-none",
282
+ ellipsis: "text-medium",
283
+ separator: "text-default-400 px-1"
284
+ },
285
+ variants: {
286
+ size: {
287
+ sm: {},
288
+ md: {},
289
+ lg: {}
290
+ },
291
+ radius: {
292
+ none: {
293
+ list: "rounded-none"
294
+ },
295
+ sm: {
296
+ list: "rounded-small"
297
+ },
298
+ md: {
299
+ list: "rounded-medium"
300
+ },
301
+ lg: {
302
+ list: "rounded-large"
303
+ },
304
+ full: {
305
+ list: "rounded-full"
306
+ }
307
+ },
308
+ variant: {
309
+ solid: {
310
+ list: "bg-default-100"
311
+ },
312
+ bordered: {
313
+ list: "border-medium border-default-200 shadow-sm"
314
+ },
315
+ light: {}
316
+ }
317
+ },
318
+ defaultVariants: {
319
+ size: "md",
320
+ radius: "sm",
321
+ variant: "light"
322
+ },
323
+ compoundVariants: [
324
+ {
325
+ variant: ["solid", "bordered"],
326
+ class: {
327
+ list: "max-w-fit"
328
+ }
329
+ },
330
+ {
331
+ variant: ["solid", "bordered"],
332
+ size: "sm",
333
+ class: {
334
+ list: "px-2 py-1"
335
+ }
336
+ },
337
+ {
338
+ variant: ["solid", "bordered"],
339
+ size: "md",
340
+ class: {
341
+ list: "px-2.5 py-1.5"
342
+ }
343
+ },
344
+ {
345
+ variant: ["solid", "bordered"],
346
+ size: "lg",
347
+ class: {
348
+ list: "px-3 py-2"
349
+ }
350
+ }
351
+ ]
352
+ });
353
+ // Annotate the CommonJS export names for ESM import in node:
354
+ 0 && (module.exports = {
355
+ breadcrumbItem,
356
+ breadcrumbs
357
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ breadcrumbItem,
3
+ breadcrumbs
4
+ } from "../chunk-76A2UI6G.mjs";
5
+ import "../chunk-CMYR6AOY.mjs";
6
+ import "../chunk-K7LK7NCE.mjs";
7
+ import "../chunk-2PIR7DFM.mjs";
8
+ import "../chunk-WBUVHAJX.mjs";
9
+ import "../chunk-XHQUSKIE.mjs";
10
+ import "../chunk-WA5F6AED.mjs";
11
+ export {
12
+ breadcrumbItem,
13
+ breadcrumbs
14
+ };
@@ -63,7 +63,7 @@ declare const button: tailwind_variants.TVReturnType<{
63
63
  };
64
64
  disableAnimation: {
65
65
  true: "!transition-none";
66
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
66
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
67
67
  };
68
68
  }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
69
69
  variant: {
@@ -110,7 +110,7 @@ declare const button: tailwind_variants.TVReturnType<{
110
110
  };
111
111
  disableAnimation: {
112
112
  true: "!transition-none";
113
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
113
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
114
114
  };
115
115
  }, {
116
116
  variant: {
@@ -157,7 +157,7 @@ declare const button: tailwind_variants.TVReturnType<{
157
157
  };
158
158
  disableAnimation: {
159
159
  true: "!transition-none";
160
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
160
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
161
161
  };
162
162
  }>, {
163
163
  variant: {
@@ -204,7 +204,7 @@ declare const button: tailwind_variants.TVReturnType<{
204
204
  };
205
205
  disableAnimation: {
206
206
  true: "!transition-none";
207
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
207
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
208
208
  };
209
209
  }, undefined, tailwind_variants.TVReturnType<{
210
210
  variant: {
@@ -251,7 +251,7 @@ declare const button: tailwind_variants.TVReturnType<{
251
251
  };
252
252
  disableAnimation: {
253
253
  true: "!transition-none";
254
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
254
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
255
255
  };
256
256
  }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
257
257
  variant: {
@@ -298,7 +298,7 @@ declare const button: tailwind_variants.TVReturnType<{
298
298
  };
299
299
  disableAnimation: {
300
300
  true: "!transition-none";
301
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
301
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
302
302
  };
303
303
  }, {
304
304
  variant: {
@@ -345,7 +345,7 @@ declare const button: tailwind_variants.TVReturnType<{
345
345
  };
346
346
  disableAnimation: {
347
347
  true: "!transition-none";
348
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none";
348
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none";
349
349
  };
350
350
  }>, unknown, unknown, undefined>>;
351
351
  /**
@@ -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 dataFocusVisibleClasses = [
@@ -125,6 +118,14 @@ var dataFocusVisibleClasses = [
125
118
  "data-[focus-visible=true]:outline-focus",
126
119
  "data-[focus-visible=true]:outline-offset-2"
127
120
  ];
121
+ var collapseAdjacentVariantBorders = {
122
+ default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
123
+ primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
124
+ secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
125
+ success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
126
+ warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
127
+ danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
128
+ };
128
129
 
129
130
  // src/utils/variants.ts
130
131
  var solid = {
@@ -266,7 +267,7 @@ var button = tv({
266
267
  },
267
268
  disableAnimation: {
268
269
  true: "!transition-none",
269
- false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"
270
+ false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"
270
271
  }
271
272
  },
272
273
  defaultVariants: {
@@ -489,30 +490,90 @@ var button = tv({
489
490
  color: "danger",
490
491
  class: colorVariants.ghost.danger
491
492
  },
493
+ {
494
+ isInGroup: true,
495
+ class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
496
+ },
492
497
  {
493
498
  isInGroup: true,
494
499
  size: "sm",
495
- class: "rounded-none first:rounded-l-small last:rounded-r-small"
500
+ class: "rounded-none first:rounded-s-small last:rounded-e-small"
496
501
  },
497
502
  {
498
503
  isInGroup: true,
499
504
  size: "md",
500
- class: "rounded-none first:rounded-l-medium last:rounded-r-medium"
505
+ class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
501
506
  },
502
507
  {
503
508
  isInGroup: true,
504
509
  size: "lg",
505
- class: "rounded-none first:rounded-l-large last:rounded-r-large"
510
+ class: "rounded-none first:rounded-s-large last:rounded-e-large"
506
511
  },
507
512
  {
508
513
  isInGroup: true,
509
514
  isRounded: true,
510
- class: "rounded-none first:rounded-l-full last:rounded-r-full"
515
+ class: "rounded-none first:rounded-s-full last:rounded-e-full"
516
+ },
517
+ {
518
+ isInGroup: true,
519
+ radius: "none",
520
+ class: "rounded-none first:rounded-s-none last:rounded-e-none"
511
521
  },
512
522
  {
513
523
  isInGroup: true,
514
- variant: ["bordered", "ghost"],
515
- class: "[&:not(:first-child)]:ml-[calc(theme(borderWidth.medium)*-1)]"
524
+ radius: "sm",
525
+ class: "rounded-none first:rounded-s-small last:rounded-e-small"
526
+ },
527
+ {
528
+ isInGroup: true,
529
+ radius: "md",
530
+ class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
531
+ },
532
+ {
533
+ isInGroup: true,
534
+ radius: "lg",
535
+ class: "rounded-none first:rounded-s-large last:rounded-e-large"
536
+ },
537
+ {
538
+ isInGroup: true,
539
+ radius: "full",
540
+ class: "rounded-none first:rounded-s-full last:rounded-e-full"
541
+ },
542
+ {
543
+ isInGroup: true,
544
+ variant: ["ghost", "bordered"],
545
+ color: "default",
546
+ className: collapseAdjacentVariantBorders.default
547
+ },
548
+ {
549
+ isInGroup: true,
550
+ variant: ["ghost", "bordered"],
551
+ color: "primary",
552
+ className: collapseAdjacentVariantBorders.primary
553
+ },
554
+ {
555
+ isInGroup: true,
556
+ variant: ["ghost", "bordered"],
557
+ color: "secondary",
558
+ className: collapseAdjacentVariantBorders.secondary
559
+ },
560
+ {
561
+ isInGroup: true,
562
+ variant: ["ghost", "bordered"],
563
+ color: "success",
564
+ className: collapseAdjacentVariantBorders.success
565
+ },
566
+ {
567
+ isInGroup: true,
568
+ variant: ["ghost", "bordered"],
569
+ color: "warning",
570
+ className: collapseAdjacentVariantBorders.warning
571
+ },
572
+ {
573
+ isInGroup: true,
574
+ variant: ["ghost", "bordered"],
575
+ color: "danger",
576
+ className: collapseAdjacentVariantBorders.danger
516
577
  },
517
578
  {
518
579
  isIconOnly: true,
@@ -528,6 +589,10 @@ var button = tv({
528
589
  isIconOnly: true,
529
590
  size: "lg",
530
591
  class: "min-w-unit-12 w-unit-12 h-unit-12"
592
+ },
593
+ {
594
+ variant: ["solid", "faded", "flat", "bordered", "shadow"],
595
+ class: "data-[hover=true]:opacity-hover"
531
596
  }
532
597
  ]
533
598
  });
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  button,
3
3
  buttonGroup
4
- } from "../chunk-XJU7LDVX.mjs";
4
+ } from "../chunk-Y5WLFHBC.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
  button,