@nextui-org/theme 0.0.0-canary-20240429052129

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 (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/colors.d.ts +1 -0
  4. package/colors.js +1 -0
  5. package/dist/animations/index.d.ts +71 -0
  6. package/dist/animations/index.js +98 -0
  7. package/dist/animations/index.mjs +6 -0
  8. package/dist/chunk-2PIR7DFM.mjs +77 -0
  9. package/dist/chunk-3FZU25GR.mjs +33 -0
  10. package/dist/chunk-3LKKH4AR.mjs +17 -0
  11. package/dist/chunk-4Z22WXZX.mjs +21 -0
  12. package/dist/chunk-4ZM6AI3H.mjs +366 -0
  13. package/dist/chunk-6XJJCV76.mjs +243 -0
  14. package/dist/chunk-726LN7M3.mjs +20 -0
  15. package/dist/chunk-7ODIBITJ.mjs +172 -0
  16. package/dist/chunk-7TJINK3S.mjs +390 -0
  17. package/dist/chunk-AC6F4DT6.mjs +485 -0
  18. package/dist/chunk-AGUZRGXC.mjs +12 -0
  19. package/dist/chunk-AO2AAOEJ.mjs +56 -0
  20. package/dist/chunk-AT4OXKKK.mjs +58 -0
  21. package/dist/chunk-CMYR6AOY.mjs +0 -0
  22. package/dist/chunk-CQY2A2EX.mjs +401 -0
  23. package/dist/chunk-CTY7IP65.mjs +723 -0
  24. package/dist/chunk-CUUGEIPA.mjs +474 -0
  25. package/dist/chunk-D2XMP2NC.mjs +6 -0
  26. package/dist/chunk-DCEG5LGX.mjs +17 -0
  27. package/dist/chunk-DI2L75XK.mjs +22 -0
  28. package/dist/chunk-DMASP6FA.mjs +74 -0
  29. package/dist/chunk-ECP4S2VZ.mjs +36 -0
  30. package/dist/chunk-FRI2VDCA.mjs +306 -0
  31. package/dist/chunk-G4RCK475.mjs +155 -0
  32. package/dist/chunk-GHZ36ATJ.mjs +17 -0
  33. package/dist/chunk-GMMETTYU.mjs +30 -0
  34. package/dist/chunk-HPFX3B3F.mjs +59 -0
  35. package/dist/chunk-HUBDRSA4.mjs +49 -0
  36. package/dist/chunk-I6ESTKKY.mjs +422 -0
  37. package/dist/chunk-IAS3SFA4.mjs +42 -0
  38. package/dist/chunk-IP3D7KVB.mjs +181 -0
  39. package/dist/chunk-JQTFOIV7.mjs +108 -0
  40. package/dist/chunk-JUEOCLA3.mjs +17 -0
  41. package/dist/chunk-K7LK7NCE.mjs +0 -0
  42. package/dist/chunk-KA5SSSWD.mjs +177 -0
  43. package/dist/chunk-KCOC3H6R.mjs +98 -0
  44. package/dist/chunk-KUNVFLXJ.mjs +41 -0
  45. package/dist/chunk-KVPPQD2E.mjs +231 -0
  46. package/dist/chunk-L2OL7R23.mjs +17 -0
  47. package/dist/chunk-LDBYFTHC.mjs +134 -0
  48. package/dist/chunk-LKKSQVZ6.mjs +163 -0
  49. package/dist/chunk-M3MKSQ42.mjs +124 -0
  50. package/dist/chunk-M63AFAHO.mjs +0 -0
  51. package/dist/chunk-MUWHEIW6.mjs +831 -0
  52. package/dist/chunk-NAUU2OUH.mjs +23 -0
  53. package/dist/chunk-NYSEAAK5.mjs +214 -0
  54. package/dist/chunk-OQIS4MXV.mjs +205 -0
  55. package/dist/chunk-OR5PUD24.mjs +17 -0
  56. package/dist/chunk-PSEUPXFL.mjs +122 -0
  57. package/dist/chunk-QZTWGJ72.mjs +16 -0
  58. package/dist/chunk-RNAP5C4C.mjs +406 -0
  59. package/dist/chunk-S573WUYY.mjs +381 -0
  60. package/dist/chunk-SEKJ6A6T.mjs +396 -0
  61. package/dist/chunk-T3GWIVAM.mjs +17 -0
  62. package/dist/chunk-UODOTC2G.mjs +21 -0
  63. package/dist/chunk-UVXYPGDZ.mjs +0 -0
  64. package/dist/chunk-V5ZTBGGO.mjs +42 -0
  65. package/dist/chunk-VDRJHB4F.mjs +187 -0
  66. package/dist/chunk-VFJ7C5ZV.mjs +391 -0
  67. package/dist/chunk-VJTX4YUQ.mjs +31 -0
  68. package/dist/chunk-W6DVXJB3.mjs +21 -0
  69. package/dist/chunk-WAAJG22Y.mjs +90 -0
  70. package/dist/chunk-WBQAMGXK.mjs +0 -0
  71. package/dist/chunk-WQEDQHKX.mjs +0 -0
  72. package/dist/chunk-X7N3NQ6S.mjs +158 -0
  73. package/dist/chunk-XHQUSKIE.mjs +60 -0
  74. package/dist/chunk-YJLQTC7L.mjs +0 -0
  75. package/dist/chunk-YSA7EQBH.mjs +237 -0
  76. package/dist/chunk-YZYGFPNK.mjs +17 -0
  77. package/dist/colors/blue.d.ts +14 -0
  78. package/dist/colors/blue.js +41 -0
  79. package/dist/colors/blue.mjs +6 -0
  80. package/dist/colors/common.d.ts +103 -0
  81. package/dist/colors/common.js +155 -0
  82. package/dist/colors/common.mjs +14 -0
  83. package/dist/colors/cyan.d.ts +14 -0
  84. package/dist/colors/cyan.js +41 -0
  85. package/dist/colors/cyan.mjs +6 -0
  86. package/dist/colors/green.d.ts +14 -0
  87. package/dist/colors/green.js +41 -0
  88. package/dist/colors/green.mjs +6 -0
  89. package/dist/colors/index.d.ts +109 -0
  90. package/dist/colors/index.js +335 -0
  91. package/dist/colors/index.mjs +24 -0
  92. package/dist/colors/pink.d.ts +14 -0
  93. package/dist/colors/pink.js +41 -0
  94. package/dist/colors/pink.mjs +6 -0
  95. package/dist/colors/purple.d.ts +14 -0
  96. package/dist/colors/purple.js +41 -0
  97. package/dist/colors/purple.mjs +6 -0
  98. package/dist/colors/red.d.ts +14 -0
  99. package/dist/colors/red.js +41 -0
  100. package/dist/colors/red.mjs +6 -0
  101. package/dist/colors/semantic.d.ts +10 -0
  102. package/dist/colors/semantic.js +327 -0
  103. package/dist/colors/semantic.mjs +20 -0
  104. package/dist/colors/types.d.ts +39 -0
  105. package/dist/colors/types.js +18 -0
  106. package/dist/colors/types.mjs +1 -0
  107. package/dist/colors/yellow.d.ts +14 -0
  108. package/dist/colors/yellow.js +41 -0
  109. package/dist/colors/yellow.mjs +6 -0
  110. package/dist/colors/zinc.d.ts +14 -0
  111. package/dist/colors/zinc.js +41 -0
  112. package/dist/colors/zinc.mjs +6 -0
  113. package/dist/colors.d.ts +4 -0
  114. package/dist/colors.js +335 -0
  115. package/dist/colors.mjs +25 -0
  116. package/dist/components/accordion.d.ts +402 -0
  117. package/dist/components/accordion.js +154 -0
  118. package/dist/components/accordion.mjs +13 -0
  119. package/dist/components/autocomplete.d.ts +180 -0
  120. package/dist/components/autocomplete.js +107 -0
  121. package/dist/components/autocomplete.mjs +7 -0
  122. package/dist/components/avatar.d.ts +572 -0
  123. package/dist/components/avatar.js +320 -0
  124. package/dist/components/avatar.mjs +13 -0
  125. package/dist/components/badge.d.ts +484 -0
  126. package/dist/components/badge.js +501 -0
  127. package/dist/components/badge.mjs +11 -0
  128. package/dist/components/breadcrumbs.d.ts +816 -0
  129. package/dist/components/breadcrumbs.js +299 -0
  130. package/dist/components/breadcrumbs.mjs +13 -0
  131. package/dist/components/button.d.ts +393 -0
  132. package/dist/components/button.js +556 -0
  133. package/dist/components/button.mjs +13 -0
  134. package/dist/components/calendar.d.ts +495 -0
  135. package/dist/components/calendar.js +456 -0
  136. package/dist/components/calendar.mjs +11 -0
  137. package/dist/components/card.d.ts +550 -0
  138. package/dist/components/card.js +213 -0
  139. package/dist/components/card.mjs +11 -0
  140. package/dist/components/checkbox.d.ts +773 -0
  141. package/dist/components/checkbox.js +271 -0
  142. package/dist/components/checkbox.mjs +13 -0
  143. package/dist/components/chip.d.ts +737 -0
  144. package/dist/components/chip.js +611 -0
  145. package/dist/components/chip.mjs +11 -0
  146. package/dist/components/circular-progress.d.ts +430 -0
  147. package/dist/components/circular-progress.js +139 -0
  148. package/dist/components/circular-progress.mjs +7 -0
  149. package/dist/components/code.d.ts +165 -0
  150. package/dist/components/code.js +162 -0
  151. package/dist/components/code.mjs +11 -0
  152. package/dist/components/date-input.d.ts +815 -0
  153. package/dist/components/date-input.js +439 -0
  154. package/dist/components/date-input.mjs +7 -0
  155. package/dist/components/date-picker.d.ts +325 -0
  156. package/dist/components/date-picker.js +81 -0
  157. package/dist/components/date-picker.mjs +9 -0
  158. package/dist/components/divider.d.ts +52 -0
  159. package/dist/components/divider.js +70 -0
  160. package/dist/components/divider.mjs +7 -0
  161. package/dist/components/drip.d.ts +14 -0
  162. package/dist/components/drip.js +61 -0
  163. package/dist/components/drip.mjs +7 -0
  164. package/dist/components/dropdown.d.ts +417 -0
  165. package/dist/components/dropdown.js +424 -0
  166. package/dist/components/dropdown.mjs +17 -0
  167. package/dist/components/image.d.ts +355 -0
  168. package/dist/components/image.js +183 -0
  169. package/dist/components/image.mjs +7 -0
  170. package/dist/components/index.d.ts +41 -0
  171. package/dist/components/index.js +8804 -0
  172. package/dist/components/index.mjs +194 -0
  173. package/dist/components/input.d.ts +942 -0
  174. package/dist/components/input.js +893 -0
  175. package/dist/components/input.mjs +11 -0
  176. package/dist/components/kbd.d.ts +51 -0
  177. package/dist/components/kbd.js +82 -0
  178. package/dist/components/kbd.mjs +7 -0
  179. package/dist/components/link.d.ts +232 -0
  180. package/dist/components/link.js +164 -0
  181. package/dist/components/link.mjs +13 -0
  182. package/dist/components/listbox.d.ts +3 -0
  183. package/dist/components/listbox.js +531 -0
  184. package/dist/components/listbox.mjs +16 -0
  185. package/dist/components/menu.d.ts +512 -0
  186. package/dist/components/menu.js +531 -0
  187. package/dist/components/menu.mjs +15 -0
  188. package/dist/components/modal.d.ts +765 -0
  189. package/dist/components/modal.js +236 -0
  190. package/dist/components/modal.mjs +11 -0
  191. package/dist/components/navbar.d.ts +463 -0
  192. package/dist/components/navbar.js +260 -0
  193. package/dist/components/navbar.mjs +11 -0
  194. package/dist/components/pagination.d.ts +587 -0
  195. package/dist/components/pagination.js +532 -0
  196. package/dist/components/pagination.mjs +11 -0
  197. package/dist/components/popover.d.ts +715 -0
  198. package/dist/components/popover.js +303 -0
  199. package/dist/components/popover.mjs +11 -0
  200. package/dist/components/progress.d.ts +294 -0
  201. package/dist/components/progress.js +173 -0
  202. package/dist/components/progress.mjs +7 -0
  203. package/dist/components/radio.d.ts +708 -0
  204. package/dist/components/radio.js +220 -0
  205. package/dist/components/radio.mjs +13 -0
  206. package/dist/components/scroll-shadow.d.ts +82 -0
  207. package/dist/components/scroll-shadow.js +85 -0
  208. package/dist/components/scroll-shadow.mjs +7 -0
  209. package/dist/components/select.d.ts +901 -0
  210. package/dist/components/select.js +778 -0
  211. package/dist/components/select.mjs +11 -0
  212. package/dist/components/skeleton.d.ts +105 -0
  213. package/dist/components/skeleton.js +105 -0
  214. package/dist/components/skeleton.mjs +7 -0
  215. package/dist/components/slider.d.ts +1024 -0
  216. package/dist/components/slider.js +446 -0
  217. package/dist/components/slider.mjs +11 -0
  218. package/dist/components/snippet.d.ts +415 -0
  219. package/dist/components/snippet.js +426 -0
  220. package/dist/components/snippet.mjs +11 -0
  221. package/dist/components/spacer.d.ts +52 -0
  222. package/dist/components/spacer.js +70 -0
  223. package/dist/components/spacer.mjs +7 -0
  224. package/dist/components/spinner.d.ts +564 -0
  225. package/dist/components/spinner.js +171 -0
  226. package/dist/components/spinner.mjs +7 -0
  227. package/dist/components/table.d.ts +777 -0
  228. package/dist/components/table.js +286 -0
  229. package/dist/components/table.mjs +11 -0
  230. package/dist/components/tabs.d.ts +772 -0
  231. package/dist/components/tabs.js +522 -0
  232. package/dist/components/tabs.mjs +11 -0
  233. package/dist/components/toggle.d.ts +485 -0
  234. package/dist/components/toggle.js +228 -0
  235. package/dist/components/toggle.mjs +11 -0
  236. package/dist/components/user.d.ts +81 -0
  237. package/dist/components/user.js +78 -0
  238. package/dist/components/user.mjs +11 -0
  239. package/dist/default-layout.d.ts +8 -0
  240. package/dist/default-layout.js +75 -0
  241. package/dist/default-layout.mjs +10 -0
  242. package/dist/index.d.ts +52 -0
  243. package/dist/index.js +9585 -0
  244. package/dist/index.mjs +252 -0
  245. package/dist/plugin.d.ts +12 -0
  246. package/dist/plugin.js +775 -0
  247. package/dist/plugin.mjs +28 -0
  248. package/dist/types.d.ts +138 -0
  249. package/dist/types.js +18 -0
  250. package/dist/types.mjs +1 -0
  251. package/dist/utilities/custom.d.ts +22 -0
  252. package/dist/utilities/custom.js +44 -0
  253. package/dist/utilities/custom.mjs +6 -0
  254. package/dist/utilities/index.d.ts +83 -0
  255. package/dist/utilities/index.js +128 -0
  256. package/dist/utilities/index.mjs +9 -0
  257. package/dist/utilities/scrollbar-hide.d.ts +24 -0
  258. package/dist/utilities/scrollbar-hide.js +43 -0
  259. package/dist/utilities/scrollbar-hide.mjs +6 -0
  260. package/dist/utilities/transition.d.ts +58 -0
  261. package/dist/utilities/transition.js +83 -0
  262. package/dist/utilities/transition.mjs +8 -0
  263. package/dist/utils/classes.d.ts +34 -0
  264. package/dist/utils/classes.js +91 -0
  265. package/dist/utils/classes.mjs +20 -0
  266. package/dist/utils/index.d.ts +4 -0
  267. package/dist/utils/index.js +169 -0
  268. package/dist/utils/index.mjs +26 -0
  269. package/dist/utils/object.d.ts +12 -0
  270. package/dist/utils/object.js +73 -0
  271. package/dist/utils/object.mjs +10 -0
  272. package/dist/utils/theme.d.ts +9 -0
  273. package/dist/utils/theme.js +30 -0
  274. package/dist/utils/theme.mjs +6 -0
  275. package/dist/utils/tv.d.ts +5 -0
  276. package/dist/utils/tv.js +54 -0
  277. package/dist/utils/tv.mjs +6 -0
  278. package/dist/utils/types.d.ts +10 -0
  279. package/dist/utils/types.js +18 -0
  280. package/dist/utils/types.mjs +1 -0
  281. package/dist/utils/variants.d.ts +67 -0
  282. package/dist/utils/variants.js +101 -0
  283. package/dist/utils/variants.mjs +6 -0
  284. package/package.json +100 -0
  285. package/plugin.d.ts +1 -0
  286. package/plugin.js +1 -0
@@ -0,0 +1,485 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * Toggle (Switch) wrapper **Tailwind Variants** component
7
+ *
8
+ * const {base, wrapper, thumb, thumbIcon, label, startContent, endContent} = toggle({...})
9
+ *
10
+ * @example
11
+ * <label
12
+ * className={base())}
13
+ * data-selected={true/false}
14
+ * data-pressed={true/false}
15
+ * data-focus={true/false}
16
+ * data-hover={true/false}
17
+ * data-focus-visible={true/false}
18
+ * >
19
+ * <input/> // hidden input
20
+ * <span className={wrapper()} aria-hidden="true">
21
+ * <svg className={startContent()}>...</svg>
22
+ * <span className={thumb()}>
23
+ * <svg className={thumbIcon()}>...</svg>
24
+ * </span>
25
+ * <svg className={endContent()}>...</svg>
26
+ * </span>
27
+ * <span className={label()}>Label</span>
28
+ * </label>
29
+ */
30
+ declare const toggle: tailwind_variants.TVReturnType<{
31
+ color: {
32
+ default: {
33
+ wrapper: string[];
34
+ };
35
+ primary: {
36
+ wrapper: string[];
37
+ };
38
+ secondary: {
39
+ wrapper: string[];
40
+ };
41
+ success: {
42
+ wrapper: string[];
43
+ };
44
+ warning: {
45
+ wrapper: string[];
46
+ };
47
+ danger: {
48
+ wrapper: string[];
49
+ };
50
+ };
51
+ size: {
52
+ sm: {
53
+ wrapper: string;
54
+ thumb: string[];
55
+ endContent: string;
56
+ startContent: string;
57
+ label: string;
58
+ };
59
+ md: {
60
+ wrapper: string;
61
+ thumb: string[];
62
+ endContent: string;
63
+ startContent: string;
64
+ label: string;
65
+ };
66
+ lg: {
67
+ wrapper: string;
68
+ thumb: string[];
69
+ endContent: string;
70
+ startContent: string;
71
+ label: string;
72
+ };
73
+ };
74
+ isDisabled: {
75
+ true: {
76
+ base: string;
77
+ };
78
+ };
79
+ disableAnimation: {
80
+ true: {
81
+ wrapper: string;
82
+ thumb: string;
83
+ };
84
+ false: {
85
+ wrapper: string;
86
+ thumb: string;
87
+ startContent: string[];
88
+ endContent: string[];
89
+ };
90
+ };
91
+ }, {
92
+ base: string;
93
+ wrapper: string[];
94
+ thumb: string[];
95
+ startContent: string;
96
+ endContent: string;
97
+ thumbIcon: string;
98
+ label: string;
99
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
100
+ color: {
101
+ default: {
102
+ wrapper: string[];
103
+ };
104
+ primary: {
105
+ wrapper: string[];
106
+ };
107
+ secondary: {
108
+ wrapper: string[];
109
+ };
110
+ success: {
111
+ wrapper: string[];
112
+ };
113
+ warning: {
114
+ wrapper: string[];
115
+ };
116
+ danger: {
117
+ wrapper: string[];
118
+ };
119
+ };
120
+ size: {
121
+ sm: {
122
+ wrapper: string;
123
+ thumb: string[];
124
+ endContent: string;
125
+ startContent: string;
126
+ label: string;
127
+ };
128
+ md: {
129
+ wrapper: string;
130
+ thumb: string[];
131
+ endContent: string;
132
+ startContent: string;
133
+ label: string;
134
+ };
135
+ lg: {
136
+ wrapper: string;
137
+ thumb: string[];
138
+ endContent: string;
139
+ startContent: string;
140
+ label: string;
141
+ };
142
+ };
143
+ isDisabled: {
144
+ true: {
145
+ base: string;
146
+ };
147
+ };
148
+ disableAnimation: {
149
+ true: {
150
+ wrapper: string;
151
+ thumb: string;
152
+ };
153
+ false: {
154
+ wrapper: string;
155
+ thumb: string;
156
+ startContent: string[];
157
+ endContent: string[];
158
+ };
159
+ };
160
+ }, {
161
+ color: {
162
+ default: {
163
+ wrapper: string[];
164
+ };
165
+ primary: {
166
+ wrapper: string[];
167
+ };
168
+ secondary: {
169
+ wrapper: string[];
170
+ };
171
+ success: {
172
+ wrapper: string[];
173
+ };
174
+ warning: {
175
+ wrapper: string[];
176
+ };
177
+ danger: {
178
+ wrapper: string[];
179
+ };
180
+ };
181
+ size: {
182
+ sm: {
183
+ wrapper: string;
184
+ thumb: string[];
185
+ endContent: string;
186
+ startContent: string;
187
+ label: string;
188
+ };
189
+ md: {
190
+ wrapper: string;
191
+ thumb: string[];
192
+ endContent: string;
193
+ startContent: string;
194
+ label: string;
195
+ };
196
+ lg: {
197
+ wrapper: string;
198
+ thumb: string[];
199
+ endContent: string;
200
+ startContent: string;
201
+ label: string;
202
+ };
203
+ };
204
+ isDisabled: {
205
+ true: {
206
+ base: string;
207
+ };
208
+ };
209
+ disableAnimation: {
210
+ true: {
211
+ wrapper: string;
212
+ thumb: string;
213
+ };
214
+ false: {
215
+ wrapper: string;
216
+ thumb: string;
217
+ startContent: string[];
218
+ endContent: string[];
219
+ };
220
+ };
221
+ }>, {
222
+ color: {
223
+ default: {
224
+ wrapper: string[];
225
+ };
226
+ primary: {
227
+ wrapper: string[];
228
+ };
229
+ secondary: {
230
+ wrapper: string[];
231
+ };
232
+ success: {
233
+ wrapper: string[];
234
+ };
235
+ warning: {
236
+ wrapper: string[];
237
+ };
238
+ danger: {
239
+ wrapper: string[];
240
+ };
241
+ };
242
+ size: {
243
+ sm: {
244
+ wrapper: string;
245
+ thumb: string[];
246
+ endContent: string;
247
+ startContent: string;
248
+ label: string;
249
+ };
250
+ md: {
251
+ wrapper: string;
252
+ thumb: string[];
253
+ endContent: string;
254
+ startContent: string;
255
+ label: string;
256
+ };
257
+ lg: {
258
+ wrapper: string;
259
+ thumb: string[];
260
+ endContent: string;
261
+ startContent: string;
262
+ label: string;
263
+ };
264
+ };
265
+ isDisabled: {
266
+ true: {
267
+ base: string;
268
+ };
269
+ };
270
+ disableAnimation: {
271
+ true: {
272
+ wrapper: string;
273
+ thumb: string;
274
+ };
275
+ false: {
276
+ wrapper: string;
277
+ thumb: string;
278
+ startContent: string[];
279
+ endContent: string[];
280
+ };
281
+ };
282
+ }, {
283
+ base: string;
284
+ wrapper: string[];
285
+ thumb: string[];
286
+ startContent: string;
287
+ endContent: string;
288
+ thumbIcon: string;
289
+ label: string;
290
+ }, tailwind_variants.TVReturnType<{
291
+ color: {
292
+ default: {
293
+ wrapper: string[];
294
+ };
295
+ primary: {
296
+ wrapper: string[];
297
+ };
298
+ secondary: {
299
+ wrapper: string[];
300
+ };
301
+ success: {
302
+ wrapper: string[];
303
+ };
304
+ warning: {
305
+ wrapper: string[];
306
+ };
307
+ danger: {
308
+ wrapper: string[];
309
+ };
310
+ };
311
+ size: {
312
+ sm: {
313
+ wrapper: string;
314
+ thumb: string[];
315
+ endContent: string;
316
+ startContent: string;
317
+ label: string;
318
+ };
319
+ md: {
320
+ wrapper: string;
321
+ thumb: string[];
322
+ endContent: string;
323
+ startContent: string;
324
+ label: string;
325
+ };
326
+ lg: {
327
+ wrapper: string;
328
+ thumb: string[];
329
+ endContent: string;
330
+ startContent: string;
331
+ label: string;
332
+ };
333
+ };
334
+ isDisabled: {
335
+ true: {
336
+ base: string;
337
+ };
338
+ };
339
+ disableAnimation: {
340
+ true: {
341
+ wrapper: string;
342
+ thumb: string;
343
+ };
344
+ false: {
345
+ wrapper: string;
346
+ thumb: string;
347
+ startContent: string[];
348
+ endContent: string[];
349
+ };
350
+ };
351
+ }, {
352
+ base: string;
353
+ wrapper: string[];
354
+ thumb: string[];
355
+ startContent: string;
356
+ endContent: string;
357
+ thumbIcon: string;
358
+ label: string;
359
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
360
+ color: {
361
+ default: {
362
+ wrapper: string[];
363
+ };
364
+ primary: {
365
+ wrapper: string[];
366
+ };
367
+ secondary: {
368
+ wrapper: string[];
369
+ };
370
+ success: {
371
+ wrapper: string[];
372
+ };
373
+ warning: {
374
+ wrapper: string[];
375
+ };
376
+ danger: {
377
+ wrapper: string[];
378
+ };
379
+ };
380
+ size: {
381
+ sm: {
382
+ wrapper: string;
383
+ thumb: string[];
384
+ endContent: string;
385
+ startContent: string;
386
+ label: string;
387
+ };
388
+ md: {
389
+ wrapper: string;
390
+ thumb: string[];
391
+ endContent: string;
392
+ startContent: string;
393
+ label: string;
394
+ };
395
+ lg: {
396
+ wrapper: string;
397
+ thumb: string[];
398
+ endContent: string;
399
+ startContent: string;
400
+ label: string;
401
+ };
402
+ };
403
+ isDisabled: {
404
+ true: {
405
+ base: string;
406
+ };
407
+ };
408
+ disableAnimation: {
409
+ true: {
410
+ wrapper: string;
411
+ thumb: string;
412
+ };
413
+ false: {
414
+ wrapper: string;
415
+ thumb: string;
416
+ startContent: string[];
417
+ endContent: string[];
418
+ };
419
+ };
420
+ }, {
421
+ color: {
422
+ default: {
423
+ wrapper: string[];
424
+ };
425
+ primary: {
426
+ wrapper: string[];
427
+ };
428
+ secondary: {
429
+ wrapper: string[];
430
+ };
431
+ success: {
432
+ wrapper: string[];
433
+ };
434
+ warning: {
435
+ wrapper: string[];
436
+ };
437
+ danger: {
438
+ wrapper: string[];
439
+ };
440
+ };
441
+ size: {
442
+ sm: {
443
+ wrapper: string;
444
+ thumb: string[];
445
+ endContent: string;
446
+ startContent: string;
447
+ label: string;
448
+ };
449
+ md: {
450
+ wrapper: string;
451
+ thumb: string[];
452
+ endContent: string;
453
+ startContent: string;
454
+ label: string;
455
+ };
456
+ lg: {
457
+ wrapper: string;
458
+ thumb: string[];
459
+ endContent: string;
460
+ startContent: string;
461
+ label: string;
462
+ };
463
+ };
464
+ isDisabled: {
465
+ true: {
466
+ base: string;
467
+ };
468
+ };
469
+ disableAnimation: {
470
+ true: {
471
+ wrapper: string;
472
+ thumb: string;
473
+ };
474
+ false: {
475
+ wrapper: string;
476
+ thumb: string;
477
+ startContent: string[];
478
+ endContent: string[];
479
+ };
480
+ };
481
+ }>, unknown, unknown, undefined>>;
482
+ type ToggleVariantProps = VariantProps<typeof toggle>;
483
+ type ToggleSlots = keyof ReturnType<typeof toggle>;
484
+
485
+ export { ToggleSlots, ToggleVariantProps, toggle };
@@ -0,0 +1,228 @@
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/toggle.ts
21
+ var toggle_exports = {};
22
+ __export(toggle_exports, {
23
+ toggle: () => toggle
24
+ });
25
+ module.exports = __toCommonJS(toggle_exports);
26
+
27
+ // src/utils/tv.ts
28
+ var import_tailwind_variants = require("tailwind-variants");
29
+ var COMMON_UNITS = ["small", "medium", "large"];
30
+ var tv = (options, config) => {
31
+ var _a, _b, _c;
32
+ return (0, import_tailwind_variants.tv)(options, {
33
+ ...config,
34
+ twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
35
+ twMergeConfig: {
36
+ ...config == null ? void 0 : config.twMergeConfig,
37
+ theme: {
38
+ ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
39
+ opacity: ["disabled"],
40
+ spacing: ["divider"],
41
+ borderWidth: COMMON_UNITS,
42
+ borderRadius: COMMON_UNITS
43
+ },
44
+ classGroups: {
45
+ ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
46
+ shadow: [{ shadow: COMMON_UNITS }],
47
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
48
+ "bg-image": ["bg-stripe-gradient"]
49
+ }
50
+ }
51
+ });
52
+ };
53
+
54
+ // src/utils/classes.ts
55
+ var groupDataFocusVisibleClasses = [
56
+ "outline-none",
57
+ "group-data-[focus-visible=true]:z-10",
58
+ "group-data-[focus-visible=true]:ring-2",
59
+ "group-data-[focus-visible=true]:ring-focus",
60
+ "group-data-[focus-visible=true]:ring-offset-2",
61
+ "group-data-[focus-visible=true]:ring-offset-background"
62
+ ];
63
+
64
+ // src/components/toggle.ts
65
+ var toggle = tv({
66
+ slots: {
67
+ base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",
68
+ wrapper: [
69
+ "px-1",
70
+ "relative",
71
+ "inline-flex",
72
+ "items-center",
73
+ "justify-start",
74
+ "flex-shrink-0",
75
+ "overflow-hidden",
76
+ "bg-default-200",
77
+ "rounded-full",
78
+ ...groupDataFocusVisibleClasses
79
+ ],
80
+ thumb: [
81
+ "z-10",
82
+ "flex",
83
+ "items-center",
84
+ "justify-center",
85
+ "bg-white",
86
+ "shadow-small",
87
+ "rounded-full",
88
+ "origin-right"
89
+ ],
90
+ startContent: "z-0 absolute left-1.5 rtl:right-1.5 rtl:left-[unset] text-current",
91
+ endContent: "z-0 absolute right-1.5 rtl:left-1.5 rtl:right-[unset] text-default-600",
92
+ thumbIcon: "text-black",
93
+ label: "relative text-foreground select-none"
94
+ },
95
+ variants: {
96
+ color: {
97
+ default: {
98
+ wrapper: [
99
+ "group-data-[selected=true]:bg-default-400",
100
+ "group-data-[selected=true]:text-default-foreground"
101
+ ]
102
+ },
103
+ primary: {
104
+ wrapper: [
105
+ "group-data-[selected=true]:bg-primary",
106
+ "group-data-[selected=true]:text-primary-foreground"
107
+ ]
108
+ },
109
+ secondary: {
110
+ wrapper: [
111
+ "group-data-[selected=true]:bg-secondary",
112
+ "group-data-[selected=true]:text-secondary-foreground"
113
+ ]
114
+ },
115
+ success: {
116
+ wrapper: [
117
+ "group-data-[selected=true]:bg-success",
118
+ "group-data-[selected=true]:text-success-foreground"
119
+ ]
120
+ },
121
+ warning: {
122
+ wrapper: [
123
+ "group-data-[selected=true]:bg-warning",
124
+ "group-data-[selected=true]:text-warning-foreground"
125
+ ]
126
+ },
127
+ danger: {
128
+ wrapper: [
129
+ "group-data-[selected=true]:bg-danger",
130
+ "data-[selected=true]:text-danger-foreground"
131
+ ]
132
+ }
133
+ },
134
+ size: {
135
+ sm: {
136
+ wrapper: "w-10 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
137
+ thumb: [
138
+ "w-4 h-4 text-tiny",
139
+ "group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
140
+ ],
141
+ endContent: "text-tiny",
142
+ startContent: "text-tiny",
143
+ label: "text-small"
144
+ },
145
+ md: {
146
+ wrapper: "w-12 h-7 mr-2 rtl:ml-2 rtl:mr-[unset]",
147
+ thumb: [
148
+ "w-5 h-5 text-small",
149
+ "group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
150
+ ],
151
+ endContent: "text-small",
152
+ startContent: "text-small",
153
+ label: "text-medium"
154
+ },
155
+ lg: {
156
+ wrapper: "w-14 h-8 mr-2 rtl:ml-2 rtl:mr-[unset]",
157
+ thumb: [
158
+ "w-6 h-6 text-medium",
159
+ "group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
160
+ ],
161
+ endContent: "text-medium",
162
+ startContent: "text-medium",
163
+ label: "text-large"
164
+ }
165
+ },
166
+ isDisabled: {
167
+ true: {
168
+ base: "opacity-disabled pointer-events-none"
169
+ }
170
+ },
171
+ disableAnimation: {
172
+ true: {
173
+ wrapper: "transition-none",
174
+ thumb: "transition-none"
175
+ },
176
+ false: {
177
+ wrapper: "transition-background",
178
+ thumb: "transition-all",
179
+ startContent: [
180
+ "opacity-0",
181
+ "scale-50",
182
+ "transition-transform-opacity",
183
+ "group-data-[selected=true]:scale-100",
184
+ "group-data-[selected=true]:opacity-100"
185
+ ],
186
+ endContent: [
187
+ "opacity-100",
188
+ "transition-transform-opacity",
189
+ "group-data-[selected=true]:translate-x-3",
190
+ "group-data-[selected=true]:opacity-0"
191
+ ]
192
+ }
193
+ }
194
+ },
195
+ defaultVariants: {
196
+ color: "primary",
197
+ size: "md",
198
+ isDisabled: false,
199
+ disableAnimation: false
200
+ },
201
+ compoundVariants: [
202
+ {
203
+ disableAnimation: false,
204
+ size: "sm",
205
+ class: {
206
+ thumb: ["group-data-[pressed=true]:w-5", "group-data-[selected]:group-data-[pressed]:ml-3"]
207
+ }
208
+ },
209
+ {
210
+ disableAnimation: false,
211
+ size: "md",
212
+ class: {
213
+ thumb: ["group-data-[pressed=true]:w-6", "group-data-[selected]:group-data-[pressed]:ml-4"]
214
+ }
215
+ },
216
+ {
217
+ disableAnimation: false,
218
+ size: "lg",
219
+ class: {
220
+ thumb: ["group-data-[pressed=true]:w-7", "group-data-[selected]:group-data-[pressed]:ml-5"]
221
+ }
222
+ }
223
+ ]
224
+ });
225
+ // Annotate the CommonJS export names for ESM import in node:
226
+ 0 && (module.exports = {
227
+ toggle
228
+ });
@@ -0,0 +1,11 @@
1
+ import {
2
+ toggle
3
+ } from "../chunk-7ODIBITJ.mjs";
4
+ import "../chunk-CMYR6AOY.mjs";
5
+ import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-2PIR7DFM.mjs";
7
+ import "../chunk-GMMETTYU.mjs";
8
+ import "../chunk-XHQUSKIE.mjs";
9
+ export {
10
+ toggle
11
+ };