@nextui-org/theme 0.0.0-dev-v2-20240416003301 → 0.0.0-dev-v2-20240416194422

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 (156) hide show
  1. package/dist/{chunk-GGPP5I47.mjs → chunk-3FZU25GR.mjs} +1 -1
  2. package/dist/{chunk-CVU6I4IJ.mjs → chunk-4ZM6AI3H.mjs} +1 -1
  3. package/dist/{chunk-LQGOKGQV.mjs → chunk-524WVPFR.mjs} +1 -1
  4. package/dist/{chunk-RJKUWMDJ.mjs → chunk-6XJJCV76.mjs} +1 -1
  5. package/dist/{chunk-PXVLYT7W.mjs → chunk-7ELFOVMX.mjs} +1 -1
  6. package/dist/{chunk-54MP65GF.mjs → chunk-7ODIBITJ.mjs} +1 -1
  7. package/dist/chunk-7TJINK3S.mjs +390 -0
  8. package/dist/{chunk-NVOA7VPK.mjs → chunk-AC6F4DT6.mjs} +4 -4
  9. package/dist/{chunk-GNLIYZAQ.mjs → chunk-AGUZRGXC.mjs} +1 -1
  10. package/dist/{chunk-YHFDXJUF.mjs → chunk-AO2AAOEJ.mjs} +1 -1
  11. package/dist/{chunk-3BNHFA72.mjs → chunk-AT4OXKKK.mjs} +1 -1
  12. package/dist/{chunk-4JHPF6RU.mjs → chunk-CTY7IP65.mjs} +9 -9
  13. package/dist/{chunk-DXTDUHS5.mjs → chunk-CUUGEIPA.mjs} +1 -1
  14. package/dist/chunk-D2XMP2NC.mjs +6 -0
  15. package/dist/{chunk-4JBYJQSP.mjs → chunk-ECP4S2VZ.mjs} +1 -1
  16. package/dist/{chunk-B55QBA5E.mjs → chunk-FRI2VDCA.mjs} +1 -1
  17. package/dist/{chunk-6AEINX52.mjs → chunk-GMMETTYU.mjs} +2 -16
  18. package/dist/{chunk-Y5VJSYKV.mjs → chunk-GMUSZ3YF.mjs} +1 -1
  19. package/dist/{chunk-TGLAWCNS.mjs → chunk-HGSHFC5N.mjs} +1 -1
  20. package/dist/{chunk-VZI6SR6H.mjs → chunk-HUBDRSA4.mjs} +1 -2
  21. package/dist/{chunk-33DU6C7I.mjs → chunk-I6ESTKKY.mjs} +9 -9
  22. package/dist/{chunk-KNRBVI47.mjs → chunk-IP3D7KVB.mjs} +1 -1
  23. package/dist/{chunk-Q3TEEYQJ.mjs → chunk-JQTFOIV7.mjs} +1 -1
  24. package/dist/{chunk-JBHEJMGV.mjs → chunk-KCOC3H6R.mjs} +1 -1
  25. package/dist/{chunk-ID63WS74.mjs → chunk-KVPPQD2E.mjs} +1 -1
  26. package/dist/{chunk-WBNF66V7.mjs → chunk-LDBYFTHC.mjs} +1 -1
  27. package/dist/{chunk-R5KKYS3Q.mjs → chunk-MUWHEIW6.mjs} +4 -4
  28. package/dist/{chunk-2SNOAR5H.mjs → chunk-NAUU2OUH.mjs} +1 -1
  29. package/dist/chunk-NPDZ7OMC.mjs +401 -0
  30. package/dist/{chunk-2JIPA7EC.mjs → chunk-NYSEAAK5.mjs} +1 -1
  31. package/dist/{chunk-LENRVMCD.mjs → chunk-OQIS4MXV.mjs} +1 -1
  32. package/dist/{chunk-NAY2XKLY.mjs → chunk-PSEUPXFL.mjs} +1 -1
  33. package/dist/{chunk-SPRRISBY.mjs → chunk-RNAP5C4C.mjs} +1 -1
  34. package/dist/{chunk-L37EV5TN.mjs → chunk-S573WUYY.mjs} +1 -1
  35. package/dist/{chunk-777XXWYS.mjs → chunk-SEKJ6A6T.mjs} +19 -2
  36. package/dist/{chunk-YSXRNNDV.mjs → chunk-UODOTC2G.mjs} +1 -1
  37. package/dist/{chunk-77O7KLUI.mjs → chunk-V5ZTBGGO.mjs} +1 -1
  38. package/dist/{chunk-7SVPRGMK.mjs → chunk-VDRJHB4F.mjs} +5 -2
  39. package/dist/chunk-VJTX4YUQ.mjs +31 -0
  40. package/dist/{chunk-EC4F6RJF.mjs → chunk-W6DVXJB3.mjs} +1 -1
  41. package/dist/{chunk-XPLXQDB3.mjs → chunk-WAAJG22Y.mjs} +1 -1
  42. package/dist/chunk-WBQAMGXK.mjs +0 -0
  43. package/dist/{chunk-TDMF44G6.mjs → chunk-X7N3NQ6S.mjs} +1 -1
  44. package/dist/{chunk-IZ44MSSN.mjs → chunk-YSA7EQBH.mjs} +6 -45
  45. package/dist/components/accordion.js +2 -67
  46. package/dist/components/accordion.mjs +2 -3
  47. package/dist/components/autocomplete.js +2 -67
  48. package/dist/components/autocomplete.mjs +2 -3
  49. package/dist/components/avatar.d.ts +14 -4
  50. package/dist/components/avatar.js +6 -68
  51. package/dist/components/avatar.mjs +2 -3
  52. package/dist/components/badge.js +2 -67
  53. package/dist/components/badge.mjs +2 -3
  54. package/dist/components/breadcrumbs.js +2 -67
  55. package/dist/components/breadcrumbs.mjs +2 -3
  56. package/dist/components/button.d.ts +35 -35
  57. package/dist/components/button.js +10 -75
  58. package/dist/components/button.mjs +2 -3
  59. package/dist/components/calendar.d.ts +495 -0
  60. package/dist/components/calendar.js +456 -0
  61. package/dist/components/calendar.mjs +11 -0
  62. package/dist/components/card.js +2 -67
  63. package/dist/components/card.mjs +2 -3
  64. package/dist/components/checkbox.js +2 -67
  65. package/dist/components/checkbox.mjs +2 -3
  66. package/dist/components/chip.js +5 -70
  67. package/dist/components/chip.mjs +2 -3
  68. package/dist/components/circular-progress.js +2 -67
  69. package/dist/components/circular-progress.mjs +2 -3
  70. package/dist/components/code.js +2 -67
  71. package/dist/components/code.mjs +2 -3
  72. package/dist/components/date-input.d.ts +815 -0
  73. package/dist/components/date-input.js +439 -0
  74. package/dist/components/date-input.mjs +7 -0
  75. package/dist/components/date-picker.d.ts +325 -0
  76. package/dist/components/date-picker.js +81 -0
  77. package/dist/components/date-picker.mjs +9 -0
  78. package/dist/components/divider.js +2 -67
  79. package/dist/components/divider.mjs +2 -3
  80. package/dist/components/drip.d.ts +2 -32
  81. package/dist/components/drip.js +2 -67
  82. package/dist/components/drip.mjs +2 -3
  83. package/dist/components/dropdown.d.ts +4 -64
  84. package/dist/components/dropdown.js +2 -67
  85. package/dist/components/dropdown.mjs +2 -3
  86. package/dist/components/image.js +2 -67
  87. package/dist/components/image.mjs +2 -3
  88. package/dist/components/index.d.ts +4 -1
  89. package/dist/components/index.js +851 -91
  90. package/dist/components/index.mjs +72 -59
  91. package/dist/components/input.js +5 -70
  92. package/dist/components/input.mjs +2 -3
  93. package/dist/components/kbd.js +2 -67
  94. package/dist/components/kbd.mjs +2 -3
  95. package/dist/components/link.js +2 -67
  96. package/dist/components/link.mjs +2 -3
  97. package/dist/components/listbox.js +2 -67
  98. package/dist/components/listbox.mjs +2 -3
  99. package/dist/components/menu.d.ts +2 -2
  100. package/dist/components/menu.js +2 -67
  101. package/dist/components/menu.mjs +2 -3
  102. package/dist/components/modal.js +2 -67
  103. package/dist/components/modal.mjs +2 -3
  104. package/dist/components/navbar.js +2 -67
  105. package/dist/components/navbar.mjs +2 -3
  106. package/dist/components/pagination.js +2 -67
  107. package/dist/components/pagination.mjs +2 -3
  108. package/dist/components/popover.js +2 -67
  109. package/dist/components/popover.mjs +2 -3
  110. package/dist/components/progress.js +2 -67
  111. package/dist/components/progress.mjs +2 -3
  112. package/dist/components/radio.js +2 -67
  113. package/dist/components/radio.mjs +2 -3
  114. package/dist/components/scroll-shadow.js +2 -67
  115. package/dist/components/scroll-shadow.mjs +2 -3
  116. package/dist/components/select.js +10 -75
  117. package/dist/components/select.mjs +2 -3
  118. package/dist/components/skeleton.js +2 -67
  119. package/dist/components/skeleton.mjs +2 -3
  120. package/dist/components/slider.js +2 -67
  121. package/dist/components/slider.mjs +2 -3
  122. package/dist/components/snippet.js +2 -67
  123. package/dist/components/snippet.mjs +2 -3
  124. package/dist/components/spacer.js +2 -67
  125. package/dist/components/spacer.mjs +2 -3
  126. package/dist/components/spinner.js +2 -67
  127. package/dist/components/spinner.mjs +2 -3
  128. package/dist/components/table.js +2 -67
  129. package/dist/components/table.mjs +2 -3
  130. package/dist/components/tabs.d.ts +115 -0
  131. package/dist/components/tabs.js +20 -68
  132. package/dist/components/tabs.mjs +2 -3
  133. package/dist/components/toggle.js +2 -67
  134. package/dist/components/toggle.mjs +2 -3
  135. package/dist/components/user.d.ts +1 -1
  136. package/dist/components/user.js +2 -67
  137. package/dist/components/user.mjs +2 -3
  138. package/dist/default-layout.js +1 -2
  139. package/dist/default-layout.mjs +1 -1
  140. package/dist/index.d.ts +5 -2
  141. package/dist/index.js +1051 -384
  142. package/dist/index.mjs +76 -67
  143. package/dist/plugin.js +3 -145
  144. package/dist/plugin.mjs +3 -4
  145. package/dist/types.d.ts +1 -11
  146. package/dist/types.js +0 -64
  147. package/dist/types.mjs +1 -8
  148. package/dist/utils/theme.d.ts +1 -3
  149. package/dist/utils/theme.js +0 -110
  150. package/dist/utils/theme.mjs +1 -6
  151. package/dist/utils/tv.js +2 -67
  152. package/dist/utils/tv.mjs +1 -2
  153. package/package.json +2 -2
  154. package/dist/chunk-DGMET46Q.mjs +0 -63
  155. package/dist/chunk-WA5F6AED.mjs +0 -57
  156. /package/dist/{chunk-T6HAGWX5.mjs → chunk-UVXYPGDZ.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/kbd.ts
6
6
  var kbd = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/progress.ts
6
6
  var progress = tv(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -0,0 +1,390 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+
5
+ // src/components/date-input.ts
6
+ var dateInput = tv({
7
+ slots: {
8
+ base: "group flex flex-col",
9
+ label: [
10
+ "block subpixel-antialiased text-small text-default-600",
11
+ "group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
12
+ "group-data-[invalid=true]:text-danger"
13
+ ],
14
+ inputWrapper: [
15
+ "relative px-3 gap-3 w-full inline-flex flex-row items-center",
16
+ "cursor-text tap-highlight-transparent shadow-sm"
17
+ ],
18
+ input: "flex h-full gap-x-0.5 w-full font-normal",
19
+ innerWrapper: [
20
+ "flex items-center text-default-400 w-full gap-x-2 h-6",
21
+ "group-data-[invalid=true]:text-danger"
22
+ ],
23
+ segment: [
24
+ "group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
25
+ "inline-block outline-none focus:shadow-sm rounded-md",
26
+ "text-foreground-500 data-[editable=true]:text-foreground",
27
+ "data-[editable=true]:data-[placeholder=true]:text-foreground-500",
28
+ "data-[invalid=true]:text-danger-300 data-[invalid=true]:data-[editable=true]:text-danger",
29
+ "data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
30
+ "data-[invalid=true]:data-[editable=true]:focus:text-danger"
31
+ ],
32
+ helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
33
+ description: "text-tiny text-foreground-400",
34
+ errorMessage: "text-tiny text-danger"
35
+ },
36
+ variants: {
37
+ variant: {
38
+ flat: {
39
+ inputWrapper: [
40
+ "bg-default-100",
41
+ "hover:bg-default-200",
42
+ "focus-within:hover:bg-default-100",
43
+ "group-data-[invalid=true]:bg-danger-50",
44
+ "group-data-[invalid=true]:hover:bg-danger-100",
45
+ "group-data-[invalid=true]:focus-within:hover:bg-danger-50"
46
+ ]
47
+ },
48
+ faded: {
49
+ inputWrapper: [
50
+ "bg-default-100",
51
+ "border-medium",
52
+ "border-default-200",
53
+ "hover:border-default-400",
54
+ "group-data-[invalid=true]:bg-danger-50",
55
+ "group-data-[invalid=true]:hover:bg-danger-100",
56
+ "group-data-[invalid=true]:focus-within:hover:bg-danger-50"
57
+ ]
58
+ },
59
+ bordered: {
60
+ inputWrapper: [
61
+ "border-medium",
62
+ "border-default-200",
63
+ "hover:border-default-400",
64
+ "focus-within:border-default-foreground",
65
+ "focus-within:hover:border-default-foreground",
66
+ "group-data-[invalid=true]:border-danger",
67
+ "group-data-[invalid=true]:hover:border-danger",
68
+ "group-data-[invalid=true]:focus-within:hover:border-danger"
69
+ ]
70
+ },
71
+ underlined: {
72
+ inputWrapper: [
73
+ "px-1",
74
+ "pb-1",
75
+ "gap-0",
76
+ "relative",
77
+ "box-border",
78
+ "border-b-medium",
79
+ "shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
80
+ "border-default-200",
81
+ "!rounded-none",
82
+ "hover:border-default-300",
83
+ "after:content-['']",
84
+ "after:w-0",
85
+ "after:origin-center",
86
+ "after:bg-default-foreground",
87
+ "after:absolute",
88
+ "after:left-1/2",
89
+ "after:-translate-x-1/2",
90
+ "after:-bottom-[2px]",
91
+ "after:h-[2px]",
92
+ "focus-within:after:w-full",
93
+ "group-data-[invalid=true]:after:bg-danger"
94
+ ]
95
+ }
96
+ },
97
+ color: {
98
+ default: {
99
+ segment: "focus:bg-default-400/50 data-[editable=true]:focus:text-default-foreground"
100
+ },
101
+ primary: {
102
+ segment: "focus:bg-primary-400/50 data-[editable=true]:focus:text-primary"
103
+ },
104
+ secondary: {
105
+ segment: "focus:bg-secondary-400/50 data-[editable=true]:focus:text-secondary"
106
+ },
107
+ success: {
108
+ segment: "focus:bg-success-400/50 dark:focus:bg-success-400/20 data-[editable=true]:focus:text-success"
109
+ },
110
+ warning: {
111
+ segment: "focus:bg-warning-400/50 dark:focus:bg-warning-400/20 data-[editable=true]:focus:text-warning"
112
+ },
113
+ danger: {
114
+ segment: "focus:bg-danger-400/50 dark:focus:bg-danger-400/20 data-[editable=true]:focus:text-danger"
115
+ }
116
+ },
117
+ size: {
118
+ sm: {
119
+ label: "text-tiny",
120
+ input: "text-small",
121
+ inputWrapper: "h-8 min-h-8 px-2 rounded-small"
122
+ },
123
+ md: {
124
+ input: "text-small",
125
+ inputWrapper: "h-10 min-h-10 rounded-medium",
126
+ clearButton: "text-large"
127
+ },
128
+ lg: {
129
+ input: "text-medium",
130
+ inputWrapper: "h-12 min-h-12 rounded-large"
131
+ }
132
+ },
133
+ radius: {
134
+ none: {
135
+ inputWrapper: "rounded-none"
136
+ },
137
+ sm: {
138
+ inputWrapper: "rounded-small"
139
+ },
140
+ md: {
141
+ inputWrapper: "rounded-medium"
142
+ },
143
+ lg: {
144
+ inputWrapper: "rounded-large"
145
+ },
146
+ full: {
147
+ inputWrapper: "rounded-full"
148
+ }
149
+ },
150
+ labelPlacement: {
151
+ outside: {
152
+ base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
153
+ label: "w-full text-foreground",
154
+ helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
155
+ },
156
+ "outside-left": {
157
+ base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
158
+ label: "relative text-foreground",
159
+ inputWrapper: "relative flex-1",
160
+ helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
161
+ },
162
+ inside: {
163
+ label: "w-full text-tiny cursor-text",
164
+ inputWrapper: "flex-col items-start justify-center gap-0"
165
+ }
166
+ },
167
+ fullWidth: {
168
+ true: {
169
+ base: "w-full",
170
+ inputWrapper: "w-full"
171
+ }
172
+ },
173
+ isDisabled: {
174
+ true: {
175
+ base: "opacity-disabled pointer-events-none",
176
+ inputWrapper: "pointer-events-none",
177
+ label: "pointer-events-none"
178
+ }
179
+ },
180
+ disableAnimation: {
181
+ true: {
182
+ label: "transition-none",
183
+ input: "transition-none",
184
+ inputWrapper: "transition-none"
185
+ },
186
+ false: {
187
+ label: [
188
+ "!ease-out",
189
+ "!duration-200",
190
+ "will-change-auto",
191
+ "motion-reduce:transition-none",
192
+ "transition-[color,opacity]"
193
+ ],
194
+ inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
195
+ segment: "transition-colors motion-reduce:transition-none"
196
+ }
197
+ }
198
+ },
199
+ defaultVariants: {
200
+ variant: "flat",
201
+ color: "default",
202
+ size: "md",
203
+ fullWidth: true,
204
+ labelPlacement: "inside",
205
+ isDisabled: false,
206
+ disableAnimation: false
207
+ },
208
+ compoundVariants: [
209
+ {
210
+ variant: "flat",
211
+ color: "primary",
212
+ class: {
213
+ innerWrapper: "text-primary",
214
+ inputWrapper: ["bg-primary-50", "hover:bg-primary-100", "focus-within:bg-primary-50"],
215
+ segment: "text-primary-300 data-[editable=true]:data-[placeholder=true]:text-primary-300 data-[editable=true]:text-primary",
216
+ label: "text-primary"
217
+ }
218
+ },
219
+ {
220
+ variant: "flat",
221
+ color: "secondary",
222
+ class: {
223
+ innerWrapper: "text-secondary",
224
+ inputWrapper: ["bg-secondary-50", "hover:bg-secondary-100", "focus-within:bg-secondary-50"],
225
+ segment: "text-secondary-300 data-[editable=true]:data-[placeholder=true]:text-secondary-300 data-[editable=true]:text-secondary",
226
+ label: "text-secondary"
227
+ }
228
+ },
229
+ {
230
+ variant: "flat",
231
+ color: "success",
232
+ class: {
233
+ innerWrapper: "text-success-600 dark:text-success",
234
+ inputWrapper: ["bg-success-50", "hover:bg-success-100", "focus-within:bg-success-50"],
235
+ segment: "text-success-400 data-[editable=true]:data-[placeholder=true]:text-success-400 data-[editable=true]:text-success-600 data-[editable=true]:focus:text-success-600",
236
+ label: "text-success-600 dark:text-success"
237
+ }
238
+ },
239
+ {
240
+ variant: "flat",
241
+ color: "warning",
242
+ class: {
243
+ innerWrapper: "text-warning-600 dark:text-warning",
244
+ inputWrapper: ["bg-warning-50", "hover:bg-warning-100", "focus-within:bg-warning-50"],
245
+ segment: "text-warning-400 data-[editable=true]:data-[placeholder=true]:text-warning-400 data-[editable=true]:text-warning-600 data-[editable=true]:focus:text-warning-600",
246
+ label: "text-warning-600 dark:text-warning"
247
+ }
248
+ },
249
+ {
250
+ variant: "flat",
251
+ color: "danger",
252
+ class: {
253
+ innerWrapper: "text-danger",
254
+ inputWrapper: ["bg-danger-50", "hover:bg-danger-100", "focus-within:bg-danger-50"],
255
+ segment: "text-danger-300 data-[editable=true]:data-[placeholder=true]:text-danger-300 data-[editable=true]:text-danger",
256
+ label: "text-danger"
257
+ }
258
+ },
259
+ {
260
+ variant: ["bordered", "faded"],
261
+ color: "primary",
262
+ class: {
263
+ innerWrapper: "text-primary",
264
+ inputWrapper: ["focus-within:border-primary", "focus-within:hover:border-primary"],
265
+ label: "text-primary"
266
+ }
267
+ },
268
+ {
269
+ variant: ["bordered", "faded"],
270
+ color: "secondary",
271
+ class: {
272
+ innerWrapper: "text-secondary",
273
+ inputWrapper: ["focus-within:border-secondary", "focus-within:hover:border-secondary"],
274
+ label: "text-secondary"
275
+ }
276
+ },
277
+ {
278
+ variant: ["bordered", "faded"],
279
+ color: "success",
280
+ class: {
281
+ innerWrapper: "text-success",
282
+ inputWrapper: ["focus-within:border-success", "focus-within:hover:border-success"],
283
+ label: "text-success"
284
+ }
285
+ },
286
+ {
287
+ variant: ["bordered", "faded"],
288
+ color: "warning",
289
+ class: {
290
+ innerWrapper: "text-warning",
291
+ inputWrapper: ["focus-within:border-warning", "focus-within:hover:border-warning"],
292
+ label: "text-warning"
293
+ }
294
+ },
295
+ {
296
+ variant: ["bordered", "faded"],
297
+ color: "danger",
298
+ class: {
299
+ innerWrapper: "text-danger",
300
+ inputWrapper: ["focus-within:border-danger", "focus-within:hover:border-danger"],
301
+ label: "text-danger"
302
+ }
303
+ },
304
+ {
305
+ variant: "underlined",
306
+ color: "primary",
307
+ class: {
308
+ innerWrapper: "text-primary",
309
+ inputWrapper: "after:bg-primary",
310
+ label: "text-primary"
311
+ }
312
+ },
313
+ {
314
+ variant: "underlined",
315
+ color: "secondary",
316
+ class: {
317
+ innerWrapper: "text-secondary",
318
+ inputWrapper: "after:bg-secondary",
319
+ label: "text-secondary"
320
+ }
321
+ },
322
+ {
323
+ variant: "underlined",
324
+ color: "success",
325
+ class: {
326
+ innerWrapper: "text-success",
327
+ inputWrapper: "after:bg-success",
328
+ label: "text-success"
329
+ }
330
+ },
331
+ {
332
+ variant: "underlined",
333
+ color: "warning",
334
+ class: {
335
+ innerWrapper: "text-warning",
336
+ inputWrapper: "after:bg-warning",
337
+ label: "text-warning"
338
+ }
339
+ },
340
+ {
341
+ variant: "underlined",
342
+ color: "danger",
343
+ class: {
344
+ innerWrapper: "text-danger",
345
+ inputWrapper: "after:bg-danger",
346
+ label: "text-danger"
347
+ }
348
+ },
349
+ {
350
+ labelPlacement: "inside",
351
+ size: "sm",
352
+ class: {
353
+ inputWrapper: "h-12 py-1.5 px-3"
354
+ }
355
+ },
356
+ {
357
+ labelPlacement: "inside",
358
+ size: "md",
359
+ class: {
360
+ inputWrapper: "h-14 py-2"
361
+ }
362
+ },
363
+ {
364
+ labelPlacement: "inside",
365
+ size: "lg",
366
+ class: {
367
+ label: "text-small",
368
+ inputWrapper: "h-16 py-2.5 gap-0"
369
+ }
370
+ },
371
+ {
372
+ disableAnimation: false,
373
+ variant: ["faded", "bordered"],
374
+ class: {
375
+ inputWrapper: "transition-colors motion-reduce:transition-none"
376
+ }
377
+ },
378
+ {
379
+ disableAnimation: false,
380
+ variant: "underlined",
381
+ class: {
382
+ inputWrapper: "after:transition-width motion-reduce:after:transition-none"
383
+ }
384
+ }
385
+ ]
386
+ });
387
+
388
+ export {
389
+ dateInput
390
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-GMMETTYU.mjs";
7
7
  import {
8
8
  ringClasses
9
9
  } from "./chunk-XHQUSKIE.mjs";
@@ -401,7 +401,7 @@ var chip = tv({
401
401
  hasEndContent: false,
402
402
  size: "sm",
403
403
  class: {
404
- base: "w-5 h-5 min-w-unit-5 min-h-5"
404
+ base: "w-5 h-5 min-w-5 min-h-5"
405
405
  }
406
406
  },
407
407
  {
@@ -410,7 +410,7 @@ var chip = tv({
410
410
  hasEndContent: false,
411
411
  size: "md",
412
412
  class: {
413
- base: "w-6 h-6 min-w-unit-6 min-h-6"
413
+ base: "w-6 h-6 min-w-6 min-h-6"
414
414
  }
415
415
  },
416
416
  {
@@ -419,7 +419,7 @@ var chip = tv({
419
419
  hasEndContent: false,
420
420
  size: "lg",
421
421
  class: {
422
- base: "w-7 h-7 min-w-unit-7 min-h-7"
422
+ base: "w-7 h-7 min-w-7 min-h-7"
423
423
  }
424
424
  },
425
425
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/drip.ts
6
6
  var drip = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/skeleton.ts
6
6
  var skeleton = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/autocomplete.ts
6
6
  var autocomplete = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -22,8 +22,8 @@ var select = tv({
22
22
  ],
23
23
  mainWrapper: "w-full flex flex-col",
24
24
  trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
25
- innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
26
- selectorIcon: "absolute right-3 rtl:left-3 rtl:right-[unset] w-unit-4 h-unit-4",
25
+ innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
26
+ selectorIcon: "absolute right-3 rtl:left-3 rtl:right-[unset] w-4 h-4",
27
27
  spinner: "absolute right-3 rtl:left-3 rtl:right-[unset]",
28
28
  value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
29
29
  listboxWrapper: "scroll-py-6 max-h-64 w-full",
@@ -99,15 +99,15 @@ var select = tv({
99
99
  size: {
100
100
  sm: {
101
101
  label: "text-tiny",
102
- trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
102
+ trigger: "h-8 min-h-8 px-2 rounded-small",
103
103
  value: "text-small"
104
104
  },
105
105
  md: {
106
- trigger: "h-unit-10 min-h-unit-10 rounded-medium",
106
+ trigger: "h-10 min-h-10 rounded-medium",
107
107
  value: "text-small"
108
108
  },
109
109
  lg: {
110
- trigger: "h-unit-12 min-h-unit-12 rounded-large",
110
+ trigger: "h-12 min-h-12 rounded-large",
111
111
  value: "text-medium"
112
112
  }
113
113
  },
@@ -506,14 +506,14 @@ var select = tv({
506
506
  labelPlacement: "inside",
507
507
  size: "sm",
508
508
  class: {
509
- trigger: "h-12 min-h-unit-12 py-1.5 px-3"
509
+ trigger: "h-12 min-h-12 py-1.5 px-3"
510
510
  }
511
511
  },
512
512
  {
513
513
  labelPlacement: "inside",
514
514
  size: "md",
515
515
  class: {
516
- trigger: "h-14 min-h-unit-14 py-2"
516
+ trigger: "h-14 min-h-14 py-2"
517
517
  }
518
518
  },
519
519
  {
@@ -521,7 +521,7 @@ var select = tv({
521
521
  size: "lg",
522
522
  class: {
523
523
  label: "text-small",
524
- trigger: "h-16 min-h-unit-16 py-2.5 gap-0"
524
+ trigger: "h-16 min-h-16 py-2.5 gap-0"
525
525
  }
526
526
  },
527
527
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -0,0 +1,6 @@
1
+ // src/utils/theme.ts
2
+ var isBaseTheme = (theme) => theme === "light" || theme === "dark";
3
+
4
+ export {
5
+ isBaseTheme
6
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
 
5
5
  // src/components/scroll-shadow.ts
6
6
  var verticalShadow = [
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-GMMETTYU.mjs";
7
7
 
8
8
  // src/components/snippet.ts
9
9
  var snippet = tv({
@@ -1,7 +1,3 @@
1
- import {
2
- mappedSpacingScaleKeys
3
- } from "./chunk-WA5F6AED.mjs";
4
-
5
1
  // src/utils/tv.ts
6
2
  import { tv as tvBase } from "tailwind-variants";
7
3
  var COMMON_UNITS = ["small", "medium", "large"];
@@ -15,7 +11,7 @@ var tv = (options, config) => {
15
11
  theme: {
16
12
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
17
13
  opacity: ["disabled"],
18
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
14
+ spacing: ["divider"],
19
15
  borderWidth: COMMON_UNITS,
20
16
  borderRadius: COMMON_UNITS
21
17
  },
@@ -23,17 +19,7 @@ var tv = (options, config) => {
23
19
  ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
24
20
  shadow: [{ shadow: COMMON_UNITS }],
25
21
  "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
26
- "bg-image": ["bg-stripe-gradient"],
27
- "min-w": [
28
- {
29
- "min-w": ["unit", ...mappedSpacingScaleKeys]
30
- }
31
- ],
32
- "min-h": [
33
- {
34
- "min-h": ["unit", ...mappedSpacingScaleKeys]
35
- }
36
- ]
22
+ "bg-image": ["bg-stripe-gradient"]
37
23
  }
38
24
  }
39
25
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-GMMETTYU.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-GMMETTYU.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,8 +1,7 @@
1
1
  // src/default-layout.ts
2
2
  var defaultLayout = {
3
- spacingUnit: 4,
4
- disabledOpacity: ".5",
5
3
  dividerWeight: "1px",
4
+ disabledOpacity: ".5",
6
5
  fontSize: {
7
6
  tiny: "0.75rem",
8
7
  small: "0.875rem",