@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,391 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+ import {
5
+ dataFocusVisibleClasses
6
+ } from "./chunk-XHQUSKIE.mjs";
7
+
8
+ // src/components/slider.ts
9
+ var slider = tv({
10
+ slots: {
11
+ base: "flex flex-col w-full gap-1",
12
+ labelWrapper: "w-full flex justify-between items-center",
13
+ label: "",
14
+ value: "",
15
+ step: [
16
+ "h-1.5",
17
+ "w-1.5",
18
+ "absolute",
19
+ "rounded-full",
20
+ "bg-default-300/50",
21
+ "data-[in-range=true]:bg-background/50"
22
+ ],
23
+ mark: [
24
+ "absolute",
25
+ "text-small",
26
+ "cursor-default",
27
+ "opacity-50",
28
+ "data-[in-range=true]:opacity-100"
29
+ ],
30
+ trackWrapper: "relative flex gap-2",
31
+ track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
32
+ filler: "h-full absolute",
33
+ thumb: [
34
+ "flex",
35
+ "justify-center",
36
+ "items-center",
37
+ "before:absolute",
38
+ "before:w-11",
39
+ "before:h-11",
40
+ "before:rounded-full",
41
+ "after:shadow-small",
42
+ "after:shadow-small",
43
+ "after:bg-background",
44
+ "data-[focused=true]:z-10",
45
+ dataFocusVisibleClasses
46
+ ],
47
+ startContent: [],
48
+ endContent: []
49
+ },
50
+ variants: {
51
+ size: {
52
+ sm: {
53
+ label: "text-small",
54
+ value: "text-small",
55
+ thumb: "w-5 h-5 after:w-4 after:h-4",
56
+ step: "data-[in-range=false]:bg-default-200"
57
+ },
58
+ md: {
59
+ thumb: "w-6 h-6 after:w-5 after:h-5",
60
+ label: "text-small",
61
+ value: "text-small"
62
+ },
63
+ lg: {
64
+ thumb: "h-7 w-7 after:w-5 after:h-5",
65
+ step: "w-2 h-2",
66
+ label: "text-medium",
67
+ value: "text-medium",
68
+ mark: "mt-2"
69
+ }
70
+ },
71
+ radius: {
72
+ none: {
73
+ thumb: "rounded-none after:rounded-none"
74
+ },
75
+ sm: {
76
+ thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
77
+ },
78
+ md: {
79
+ thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
80
+ },
81
+ lg: {
82
+ thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
83
+ },
84
+ full: {
85
+ thumb: "rounded-full after:rounded-full"
86
+ }
87
+ },
88
+ color: {
89
+ foreground: {
90
+ filler: "bg-foreground",
91
+ thumb: "bg-foreground"
92
+ },
93
+ primary: {
94
+ filler: "bg-primary",
95
+ thumb: "bg-primary"
96
+ },
97
+ secondary: {
98
+ filler: "bg-secondary",
99
+ thumb: "bg-secondary"
100
+ },
101
+ success: {
102
+ filler: "bg-success",
103
+ thumb: "bg-success"
104
+ },
105
+ warning: {
106
+ filler: "bg-warning",
107
+ thumb: "bg-warning"
108
+ },
109
+ danger: {
110
+ filler: "bg-danger",
111
+ thumb: "bg-danger"
112
+ }
113
+ },
114
+ isVertical: {
115
+ true: {
116
+ base: "w-auto h-full flex-col-reverse items-center",
117
+ trackWrapper: "flex-col h-full justify-center items-center",
118
+ filler: "w-full h-auto",
119
+ thumb: "left-1/2",
120
+ track: "h-full border-y-transparent",
121
+ labelWrapper: "flex-col justify-center items-center",
122
+ step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
123
+ mark: ["left-1/2", "ml-1", "translate-x-1/2", "translate-y-1/2"]
124
+ },
125
+ false: {
126
+ thumb: "top-1/2",
127
+ trackWrapper: "items-center",
128
+ track: "border-x-transparent",
129
+ step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
130
+ mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
131
+ }
132
+ },
133
+ isDisabled: {
134
+ false: {
135
+ thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
136
+ },
137
+ true: {
138
+ base: "opacity-disabled",
139
+ thumb: "cursor-default"
140
+ }
141
+ },
142
+ hasMarks: {
143
+ true: {
144
+ base: "mb-5"
145
+ },
146
+ false: {}
147
+ },
148
+ showOutline: {
149
+ true: {
150
+ thumb: "ring-2 ring-background"
151
+ },
152
+ false: {
153
+ thumb: "ring-transparent border-0"
154
+ }
155
+ },
156
+ hideValue: {
157
+ true: {
158
+ value: "sr-only"
159
+ }
160
+ },
161
+ hideThumb: {
162
+ true: {
163
+ thumb: "sr-only",
164
+ track: "overflow-hidden cursor-pointer"
165
+ }
166
+ },
167
+ hasSingleThumb: {
168
+ true: {},
169
+ false: {}
170
+ },
171
+ disableAnimation: {
172
+ true: {
173
+ thumb: "data-[dragging=true]:after:scale-100"
174
+ },
175
+ false: {
176
+ thumb: "after:transition-all motion-reduce:after:transition-none",
177
+ mark: "transition-opacity motion-reduce:transition-none"
178
+ }
179
+ },
180
+ disableThumbScale: {
181
+ true: {},
182
+ false: {
183
+ thumb: "data-[dragging=true]:after:scale-80"
184
+ }
185
+ }
186
+ },
187
+ compoundVariants: [
188
+ {
189
+ size: ["sm", "md"],
190
+ showOutline: false,
191
+ class: {
192
+ thumb: "shadow-small"
193
+ }
194
+ },
195
+ {
196
+ size: "sm",
197
+ color: "foreground",
198
+ class: {
199
+ step: "data-[in-range=true]:bg-foreground"
200
+ }
201
+ },
202
+ {
203
+ size: "sm",
204
+ color: "primary",
205
+ class: {
206
+ step: "data-[in-range=true]:bg-primary"
207
+ }
208
+ },
209
+ {
210
+ size: "sm",
211
+ color: "secondary",
212
+ class: {
213
+ step: "data-[in-range=true]:bg-secondary"
214
+ }
215
+ },
216
+ {
217
+ size: "sm",
218
+ color: "success",
219
+ class: {
220
+ step: "data-[in-range=true]:bg-success"
221
+ }
222
+ },
223
+ {
224
+ size: "sm",
225
+ color: "warning",
226
+ class: {
227
+ step: "data-[in-range=true]:bg-warning"
228
+ }
229
+ },
230
+ {
231
+ size: "sm",
232
+ color: "danger",
233
+ class: {
234
+ step: "data-[in-range=true]:bg-danger"
235
+ }
236
+ },
237
+ {
238
+ size: "sm",
239
+ isVertical: false,
240
+ class: {
241
+ track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
242
+ }
243
+ },
244
+ {
245
+ size: "md",
246
+ isVertical: false,
247
+ class: {
248
+ track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
249
+ }
250
+ },
251
+ {
252
+ size: "lg",
253
+ isVertical: false,
254
+ class: {
255
+ track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
256
+ }
257
+ },
258
+ {
259
+ size: "sm",
260
+ isVertical: true,
261
+ class: {
262
+ track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
263
+ }
264
+ },
265
+ {
266
+ size: "md",
267
+ isVertical: true,
268
+ class: {
269
+ track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
270
+ }
271
+ },
272
+ {
273
+ size: "lg",
274
+ isVertical: true,
275
+ class: {
276
+ track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
277
+ }
278
+ },
279
+ {
280
+ color: "foreground",
281
+ isVertical: false,
282
+ hasSingleThumb: true,
283
+ class: {
284
+ track: "border-s-foreground"
285
+ }
286
+ },
287
+ {
288
+ color: "primary",
289
+ isVertical: false,
290
+ hasSingleThumb: true,
291
+ class: {
292
+ track: "border-s-primary"
293
+ }
294
+ },
295
+ {
296
+ color: "secondary",
297
+ isVertical: false,
298
+ hasSingleThumb: true,
299
+ class: {
300
+ track: "border-s-secondary"
301
+ }
302
+ },
303
+ {
304
+ color: "success",
305
+ isVertical: false,
306
+ hasSingleThumb: true,
307
+ class: {
308
+ track: "border-s-success"
309
+ }
310
+ },
311
+ {
312
+ color: "warning",
313
+ isVertical: false,
314
+ hasSingleThumb: true,
315
+ class: {
316
+ track: "border-s-warning"
317
+ }
318
+ },
319
+ {
320
+ color: "danger",
321
+ isVertical: false,
322
+ hasSingleThumb: true,
323
+ class: {
324
+ track: "border-s-danger"
325
+ }
326
+ },
327
+ {
328
+ color: "foreground",
329
+ isVertical: true,
330
+ hasSingleThumb: true,
331
+ class: {
332
+ track: "border-b-foreground"
333
+ }
334
+ },
335
+ {
336
+ color: "primary",
337
+ isVertical: true,
338
+ hasSingleThumb: true,
339
+ class: {
340
+ track: "border-b-primary"
341
+ }
342
+ },
343
+ {
344
+ color: "secondary",
345
+ isVertical: true,
346
+ hasSingleThumb: true,
347
+ class: {
348
+ track: "border-b-secondary"
349
+ }
350
+ },
351
+ {
352
+ color: "success",
353
+ isVertical: true,
354
+ hasSingleThumb: true,
355
+ class: {
356
+ track: "border-b-success"
357
+ }
358
+ },
359
+ {
360
+ color: "warning",
361
+ isVertical: true,
362
+ hasSingleThumb: true,
363
+ class: {
364
+ track: "border-b-warning"
365
+ }
366
+ },
367
+ {
368
+ color: "danger",
369
+ isVertical: true,
370
+ hasSingleThumb: true,
371
+ class: {
372
+ track: "border-b-danger"
373
+ }
374
+ }
375
+ ],
376
+ defaultVariants: {
377
+ size: "md",
378
+ color: "primary",
379
+ radius: "full",
380
+ hideValue: false,
381
+ hideThumb: false,
382
+ isDisabled: false,
383
+ disableThumbScale: false,
384
+ disableAnimation: false,
385
+ showOutline: false
386
+ }
387
+ });
388
+
389
+ export {
390
+ slider
391
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+
5
+ // src/components/date-picker.ts
6
+ var datePicker = tv({
7
+ slots: {
8
+ base: "group w-full",
9
+ selectorButton: "-mr-2 text-inherit",
10
+ selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
11
+ popoverContent: "p-0 w-full",
12
+ calendar: "w-[var(--calendar-width)] shadow-none",
13
+ calendarContent: "w-[var(--calendar-width)]",
14
+ timeInputLabel: "font-medium",
15
+ timeInput: "px-5 pb-4 flex-wrap gap-x-6"
16
+ }
17
+ });
18
+ var dateRangePicker = tv({
19
+ extend: datePicker,
20
+ slots: {
21
+ calendar: "group",
22
+ bottomContent: "flex flex-col gap-y-2",
23
+ timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
24
+ separator: "-mx-1 text-inherit"
25
+ }
26
+ });
27
+
28
+ export {
29
+ datePicker,
30
+ dateRangePicker
31
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+
5
+ // src/components/spacer.ts
6
+ var spacer = tv({
7
+ base: "w-px h-px inline-block",
8
+ variants: {
9
+ isInline: {
10
+ true: "inline-block",
11
+ false: "block"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ isInline: false
16
+ }
17
+ });
18
+
19
+ export {
20
+ spacer
21
+ };
@@ -0,0 +1,90 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+
5
+ // src/components/circular-progress.ts
6
+ var circularProgress = tv({
7
+ slots: {
8
+ base: "flex flex-col justify-center gap-1 max-w-fit items-center",
9
+ label: "",
10
+ svgWrapper: "relative block",
11
+ svg: "z-0 relative overflow-hidden",
12
+ track: "h-full stroke-default-300/50",
13
+ indicator: "h-full stroke-current",
14
+ value: "absolute font-normal inset-0 flex items-center justify-center"
15
+ },
16
+ variants: {
17
+ color: {
18
+ default: {
19
+ svg: "text-default-400"
20
+ },
21
+ primary: {
22
+ svg: "text-primary"
23
+ },
24
+ secondary: {
25
+ svg: "text-secondary"
26
+ },
27
+ success: {
28
+ svg: "text-success"
29
+ },
30
+ warning: {
31
+ svg: "text-warning"
32
+ },
33
+ danger: {
34
+ svg: "text-danger"
35
+ }
36
+ },
37
+ size: {
38
+ sm: {
39
+ svg: "w-8 h-8",
40
+ label: "text-small",
41
+ value: "text-[0.5rem]"
42
+ },
43
+ md: {
44
+ svg: "w-10 h-10",
45
+ label: "text-small",
46
+ value: "text-[0.55rem]"
47
+ },
48
+ lg: {
49
+ svg: "w-12 h-12",
50
+ label: "text-medium",
51
+ value: "text-[0.6rem]"
52
+ }
53
+ },
54
+ isIndeterminate: {
55
+ true: {
56
+ svg: "animate-spinner-ease-spin"
57
+ }
58
+ },
59
+ isDisabled: {
60
+ true: {
61
+ base: "opacity-disabled cursor-not-allowed"
62
+ }
63
+ },
64
+ disableAnimation: {
65
+ true: {},
66
+ false: {
67
+ indicator: "transition-all !duration-500"
68
+ }
69
+ }
70
+ },
71
+ defaultVariants: {
72
+ color: "primary",
73
+ size: "md",
74
+ isDisabled: false,
75
+ disableAnimation: false
76
+ },
77
+ compoundVariants: [
78
+ {
79
+ disableAnimation: true,
80
+ isIndeterminate: false,
81
+ class: {
82
+ svg: "!transition-none motion-reduce:transition-none"
83
+ }
84
+ }
85
+ ]
86
+ });
87
+
88
+ export {
89
+ circularProgress
90
+ };
File without changes
File without changes
@@ -0,0 +1,158 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+ import {
5
+ dataFocusVisibleClasses
6
+ } from "./chunk-XHQUSKIE.mjs";
7
+
8
+ // src/components/card.ts
9
+ var card = tv({
10
+ slots: {
11
+ base: [
12
+ "flex",
13
+ "flex-col",
14
+ "relative",
15
+ "overflow-hidden",
16
+ "height-auto",
17
+ "outline-none",
18
+ "text-foreground",
19
+ "box-border",
20
+ "bg-content1",
21
+ ...dataFocusVisibleClasses
22
+ ],
23
+ header: [
24
+ "flex",
25
+ "p-3",
26
+ "z-10",
27
+ "w-full",
28
+ "justify-start",
29
+ "items-center",
30
+ "shrink-0",
31
+ "overflow-inherit",
32
+ "color-inherit",
33
+ "subpixel-antialiased"
34
+ ],
35
+ body: [
36
+ "relative",
37
+ "flex",
38
+ "flex-1",
39
+ "w-full",
40
+ "p-3",
41
+ "flex-auto",
42
+ "flex-col",
43
+ "place-content-inherit",
44
+ "align-items-inherit",
45
+ "h-auto",
46
+ "break-words",
47
+ "text-left",
48
+ "overflow-y-auto",
49
+ "subpixel-antialiased"
50
+ ],
51
+ footer: [
52
+ "p-3",
53
+ "h-auto",
54
+ "flex",
55
+ "w-full",
56
+ "items-center",
57
+ "overflow-hidden",
58
+ "color-inherit",
59
+ "subpixel-antialiased"
60
+ ]
61
+ },
62
+ variants: {
63
+ shadow: {
64
+ none: {
65
+ base: "shadow-none"
66
+ },
67
+ sm: {
68
+ base: "shadow-small"
69
+ },
70
+ md: {
71
+ base: "shadow-medium"
72
+ },
73
+ lg: {
74
+ base: "shadow-large"
75
+ }
76
+ },
77
+ radius: {
78
+ none: {
79
+ base: "rounded-none",
80
+ header: "rounded-none",
81
+ footer: "rounded-none"
82
+ },
83
+ sm: {
84
+ base: "rounded-small",
85
+ header: "rounded-t-small",
86
+ footer: "rounded-b-small"
87
+ },
88
+ md: {
89
+ base: "rounded-medium",
90
+ header: "rounded-t-medium",
91
+ footer: "rounded-b-medium"
92
+ },
93
+ lg: {
94
+ base: "rounded-large",
95
+ header: "rounded-t-large",
96
+ footer: "rounded-b-large"
97
+ }
98
+ },
99
+ fullWidth: {
100
+ true: {
101
+ base: "w-full"
102
+ }
103
+ },
104
+ isHoverable: {
105
+ true: {
106
+ base: "data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"
107
+ }
108
+ },
109
+ isPressable: {
110
+ true: { base: "cursor-pointer" }
111
+ },
112
+ isBlurred: {
113
+ true: {
114
+ base: [
115
+ "bg-background/80",
116
+ "dark:bg-background/20",
117
+ "backdrop-blur-md",
118
+ "backdrop-saturate-150"
119
+ ]
120
+ }
121
+ },
122
+ isFooterBlurred: {
123
+ true: {
124
+ footer: ["bg-background/10", "backdrop-blur", "backdrop-saturate-150"]
125
+ }
126
+ },
127
+ isDisabled: {
128
+ true: {
129
+ base: "opacity-disabled cursor-not-allowed"
130
+ }
131
+ },
132
+ disableAnimation: {
133
+ true: "",
134
+ false: { base: "transition-transform-background motion-reduce:transition-none" }
135
+ }
136
+ },
137
+ compoundVariants: [
138
+ {
139
+ isPressable: true,
140
+ disableAnimation: false,
141
+ class: "data-[pressed=true]:scale-[0.97] tap-highlight-transparent"
142
+ }
143
+ ],
144
+ defaultVariants: {
145
+ radius: "lg",
146
+ shadow: "md",
147
+ fullWidth: false,
148
+ isHoverable: false,
149
+ isPressable: false,
150
+ isDisabled: false,
151
+ disableAnimation: false,
152
+ isFooterBlurred: false
153
+ }
154
+ });
155
+
156
+ export {
157
+ card
158
+ };