@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,831 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-GMMETTYU.mjs";
4
+ import {
5
+ dataFocusVisibleClasses,
6
+ groupDataFocusVisibleClasses
7
+ } from "./chunk-XHQUSKIE.mjs";
8
+
9
+ // src/components/input.ts
10
+ var input = tv({
11
+ slots: {
12
+ base: "group flex flex-col",
13
+ label: [
14
+ "absolute",
15
+ "z-10",
16
+ "pointer-events-none",
17
+ "origin-top-left",
18
+ "rtl:origin-top-right",
19
+ "subpixel-antialiased",
20
+ "block",
21
+ "text-small",
22
+ "text-foreground-500"
23
+ ],
24
+ mainWrapper: "h-full",
25
+ inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
26
+ innerWrapper: "inline-flex w-full items-center h-full box-border",
27
+ input: [
28
+ "w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
29
+ "data-[has-start-content=true]:ps-1.5",
30
+ "data-[has-end-content=true]:pe-1.5"
31
+ ],
32
+ clearButton: [
33
+ "p-2",
34
+ "-m-2",
35
+ "z-10",
36
+ "hidden",
37
+ "absolute",
38
+ "right-3",
39
+ "rtl:right-auto",
40
+ "rtl:left-3",
41
+ "appearance-none",
42
+ "outline-none",
43
+ "select-none",
44
+ "opacity-0",
45
+ "hover:!opacity-100",
46
+ "cursor-pointer",
47
+ "active:!opacity-70",
48
+ "rounded-full",
49
+ ...dataFocusVisibleClasses
50
+ ],
51
+ helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
52
+ description: "text-tiny text-foreground-400",
53
+ errorMessage: "text-tiny text-danger"
54
+ },
55
+ variants: {
56
+ variant: {
57
+ flat: {
58
+ inputWrapper: [
59
+ "bg-default-100",
60
+ "data-[hover=true]:bg-default-200",
61
+ "group-data-[focus=true]:bg-default-100"
62
+ ]
63
+ },
64
+ faded: {
65
+ inputWrapper: [
66
+ "bg-default-100",
67
+ "border-medium",
68
+ "border-default-200",
69
+ "data-[hover=true]:border-default-400"
70
+ ],
71
+ value: "group-data-[has-value=true]:text-default-foreground"
72
+ },
73
+ bordered: {
74
+ inputWrapper: [
75
+ "border-medium",
76
+ "border-default-200",
77
+ "data-[hover=true]:border-default-400",
78
+ "group-data-[focus=true]:border-default-foreground"
79
+ ]
80
+ },
81
+ underlined: {
82
+ inputWrapper: [
83
+ "!px-1",
84
+ "!pb-0",
85
+ "!gap-0",
86
+ "relative",
87
+ "box-border",
88
+ "border-b-medium",
89
+ "shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
90
+ "border-default-200",
91
+ "!rounded-none",
92
+ "hover:border-default-300",
93
+ "after:content-['']",
94
+ "after:w-0",
95
+ "after:origin-center",
96
+ "after:bg-default-foreground",
97
+ "after:absolute",
98
+ "after:left-1/2",
99
+ "after:-translate-x-1/2",
100
+ "after:-bottom-[2px]",
101
+ "after:h-[2px]",
102
+ "group-data-[focus=true]:after:w-full"
103
+ ],
104
+ innerWrapper: "pb-1",
105
+ label: "group-data-[filled-within=true]:text-foreground"
106
+ }
107
+ },
108
+ color: {
109
+ default: {},
110
+ primary: {},
111
+ secondary: {},
112
+ success: {},
113
+ warning: {},
114
+ danger: {}
115
+ },
116
+ size: {
117
+ sm: {
118
+ label: "text-tiny",
119
+ inputWrapper: "h-8 min-h-8 px-2 rounded-small",
120
+ input: "text-small",
121
+ clearButton: "text-medium"
122
+ },
123
+ md: {
124
+ inputWrapper: "h-10 min-h-10 rounded-medium",
125
+ input: "text-small",
126
+ clearButton: "text-large"
127
+ },
128
+ lg: {
129
+ inputWrapper: "h-12 min-h-12 rounded-large",
130
+ input: "text-medium",
131
+ clearButton: "text-large"
132
+ }
133
+ },
134
+ radius: {
135
+ none: {
136
+ inputWrapper: "rounded-none"
137
+ },
138
+ sm: {
139
+ inputWrapper: "rounded-small"
140
+ },
141
+ md: {
142
+ inputWrapper: "rounded-medium"
143
+ },
144
+ lg: {
145
+ inputWrapper: "rounded-large"
146
+ },
147
+ full: {
148
+ inputWrapper: "rounded-full"
149
+ }
150
+ },
151
+ labelPlacement: {
152
+ outside: {
153
+ mainWrapper: "flex flex-col"
154
+ },
155
+ "outside-left": {
156
+ base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
157
+ inputWrapper: "flex-1",
158
+ mainWrapper: "flex flex-col",
159
+ label: "relative text-foreground pr-2 rtl:pr-0 rtl:pl-2"
160
+ },
161
+ inside: {
162
+ label: "text-tiny cursor-text",
163
+ inputWrapper: "flex-col items-start justify-center gap-0",
164
+ innerWrapper: "group-data-[has-label=true]:items-end"
165
+ }
166
+ },
167
+ fullWidth: {
168
+ true: {
169
+ base: "w-full"
170
+ }
171
+ },
172
+ isClearable: {
173
+ true: {
174
+ input: "peer pr-6 rtl:pr-0 rtl:pl-6",
175
+ clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
176
+ }
177
+ },
178
+ isDisabled: {
179
+ true: {
180
+ base: "opacity-disabled pointer-events-none",
181
+ inputWrapper: "pointer-events-none",
182
+ label: "pointer-events-none"
183
+ }
184
+ },
185
+ isInvalid: {
186
+ true: {
187
+ label: "!text-danger",
188
+ input: "!placeholder:text-danger !text-danger"
189
+ }
190
+ },
191
+ isRequired: {
192
+ true: {
193
+ label: "after:content-['*'] after:text-danger after:ml-0.5"
194
+ }
195
+ },
196
+ isMultiline: {
197
+ true: {
198
+ label: "relative",
199
+ inputWrapper: "!h-auto",
200
+ innerWrapper: "items-start group-data-[has-label=true]:items-start",
201
+ input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
202
+ }
203
+ },
204
+ disableAnimation: {
205
+ true: {
206
+ input: "transition-none",
207
+ inputWrapper: "transition-none",
208
+ label: "transition-none"
209
+ },
210
+ false: {
211
+ inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
212
+ label: [
213
+ "will-change-auto",
214
+ "!duration-200",
215
+ "!ease-out",
216
+ "motion-reduce:transition-none",
217
+ "transition-[transform,color,left,opacity]"
218
+ ],
219
+ clearButton: ["transition-opacity", "motion-reduce:transition-none"]
220
+ }
221
+ }
222
+ },
223
+ defaultVariants: {
224
+ variant: "flat",
225
+ color: "default",
226
+ size: "md",
227
+ fullWidth: true,
228
+ labelPlacement: "inside",
229
+ isDisabled: false,
230
+ isMultiline: false,
231
+ disableAnimation: false
232
+ },
233
+ compoundVariants: [
234
+ {
235
+ variant: "flat",
236
+ color: "default",
237
+ class: {
238
+ input: "group-data-[has-value=true]:text-default-foreground"
239
+ }
240
+ },
241
+ {
242
+ variant: "flat",
243
+ color: "primary",
244
+ class: {
245
+ inputWrapper: [
246
+ "bg-primary-50",
247
+ "data-[hover=true]:bg-primary-100",
248
+ "text-primary",
249
+ "group-data-[focus=true]:bg-primary-50",
250
+ "placeholder:text-primary"
251
+ ],
252
+ input: "placeholder:text-primary",
253
+ label: "text-primary"
254
+ }
255
+ },
256
+ {
257
+ variant: "flat",
258
+ color: "secondary",
259
+ class: {
260
+ inputWrapper: [
261
+ "bg-secondary-50",
262
+ "text-secondary",
263
+ "data-[hover=true]:bg-secondary-100",
264
+ "group-data-[focus=true]:bg-secondary-50",
265
+ "placeholder:text-secondary"
266
+ ],
267
+ input: "placeholder:text-secondary",
268
+ label: "text-secondary"
269
+ }
270
+ },
271
+ {
272
+ variant: "flat",
273
+ color: "success",
274
+ class: {
275
+ inputWrapper: [
276
+ "bg-success-50",
277
+ "text-success-600",
278
+ "dark:text-success",
279
+ "placeholder:text-success-600",
280
+ "dark:placeholder:text-success",
281
+ "data-[hover=true]:bg-success-100",
282
+ "group-data-[focus=true]:bg-success-50"
283
+ ],
284
+ input: "placeholder:text-success-600 dark:placeholder:text-success",
285
+ label: "text-success-600 dark:text-success"
286
+ }
287
+ },
288
+ {
289
+ variant: "flat",
290
+ color: "warning",
291
+ class: {
292
+ inputWrapper: [
293
+ "bg-warning-50",
294
+ "text-warning-600",
295
+ "dark:text-warning",
296
+ "placeholder:text-warning-600",
297
+ "dark:placeholder:text-warning",
298
+ "data-[hover=true]:bg-warning-100",
299
+ "group-data-[focus=true]:bg-warning-50"
300
+ ],
301
+ input: "placeholder:text-warning-600 dark:placeholder:text-warning",
302
+ label: "text-warning-600 dark:text-warning"
303
+ }
304
+ },
305
+ {
306
+ variant: "flat",
307
+ color: "danger",
308
+ class: {
309
+ inputWrapper: [
310
+ "bg-danger-50",
311
+ "text-danger",
312
+ "dark:text-danger-500",
313
+ "placeholder:text-danger",
314
+ "dark:placeholder:text-danger-500",
315
+ "data-[hover=true]:bg-danger-100",
316
+ "group-data-[focus=true]:bg-danger-50"
317
+ ],
318
+ input: "placeholder:text-danger dark:placeholder:text-danger-500",
319
+ label: "text-danger dark:text-danger-500"
320
+ }
321
+ },
322
+ {
323
+ variant: "faded",
324
+ color: "primary",
325
+ class: {
326
+ label: "text-primary",
327
+ inputWrapper: "data-[hover=true]:border-primary focus-within:border-primary"
328
+ }
329
+ },
330
+ {
331
+ variant: "faded",
332
+ color: "secondary",
333
+ class: {
334
+ label: "text-secondary",
335
+ inputWrapper: "data-[hover=true]:border-secondary focus-within:border-secondary"
336
+ }
337
+ },
338
+ {
339
+ variant: "faded",
340
+ color: "success",
341
+ class: {
342
+ label: "text-success",
343
+ inputWrapper: "data-[hover=true]:border-success focus-within:border-success"
344
+ }
345
+ },
346
+ {
347
+ variant: "faded",
348
+ color: "warning",
349
+ class: {
350
+ label: "text-warning",
351
+ inputWrapper: "data-[hover=true]:border-warning focus-within:border-warning"
352
+ }
353
+ },
354
+ {
355
+ variant: "faded",
356
+ color: "danger",
357
+ class: {
358
+ label: "text-danger",
359
+ inputWrapper: "data-[hover=true]:border-danger focus-within:border-danger"
360
+ }
361
+ },
362
+ {
363
+ variant: "underlined",
364
+ color: "default",
365
+ class: {
366
+ input: "group-data-[has-value=true]:text-foreground"
367
+ }
368
+ },
369
+ {
370
+ variant: "underlined",
371
+ color: "primary",
372
+ class: {
373
+ inputWrapper: "after:bg-primary",
374
+ label: "text-primary"
375
+ }
376
+ },
377
+ {
378
+ variant: "underlined",
379
+ color: "secondary",
380
+ class: {
381
+ inputWrapper: "after:bg-secondary",
382
+ label: "text-secondary"
383
+ }
384
+ },
385
+ {
386
+ variant: "underlined",
387
+ color: "success",
388
+ class: {
389
+ inputWrapper: "after:bg-success",
390
+ label: "text-success"
391
+ }
392
+ },
393
+ {
394
+ variant: "underlined",
395
+ color: "warning",
396
+ class: {
397
+ inputWrapper: "after:bg-warning",
398
+ label: "text-warning"
399
+ }
400
+ },
401
+ {
402
+ variant: "underlined",
403
+ color: "danger",
404
+ class: {
405
+ inputWrapper: "after:bg-danger",
406
+ label: "text-danger"
407
+ }
408
+ },
409
+ {
410
+ variant: "bordered",
411
+ color: "primary",
412
+ class: {
413
+ inputWrapper: "group-data-[focus=true]:border-primary",
414
+ label: "text-primary"
415
+ }
416
+ },
417
+ {
418
+ variant: "bordered",
419
+ color: "secondary",
420
+ class: {
421
+ inputWrapper: "group-data-[focus=true]:border-secondary",
422
+ label: "text-secondary"
423
+ }
424
+ },
425
+ {
426
+ variant: "bordered",
427
+ color: "success",
428
+ class: {
429
+ inputWrapper: "group-data-[focus=true]:border-success",
430
+ label: "text-success"
431
+ }
432
+ },
433
+ {
434
+ variant: "bordered",
435
+ color: "warning",
436
+ class: {
437
+ inputWrapper: "group-data-[focus=true]:border-warning",
438
+ label: "text-warning"
439
+ }
440
+ },
441
+ {
442
+ variant: "bordered",
443
+ color: "danger",
444
+ class: {
445
+ inputWrapper: "group-data-[focus=true]:border-danger",
446
+ label: "text-danger"
447
+ }
448
+ },
449
+ {
450
+ labelPlacement: "inside",
451
+ color: "default",
452
+ class: {
453
+ label: "group-data-[filled-within=true]:text-default-600"
454
+ }
455
+ },
456
+ {
457
+ labelPlacement: "outside",
458
+ color: "default",
459
+ class: {
460
+ label: "group-data-[filled-within=true]:text-foreground"
461
+ }
462
+ },
463
+ {
464
+ radius: "full",
465
+ size: ["sm"],
466
+ class: {
467
+ inputWrapper: "px-3"
468
+ }
469
+ },
470
+ {
471
+ radius: "full",
472
+ size: "md",
473
+ class: {
474
+ inputWrapper: "px-4"
475
+ }
476
+ },
477
+ {
478
+ radius: "full",
479
+ size: "lg",
480
+ class: {
481
+ inputWrapper: "px-5"
482
+ }
483
+ },
484
+ {
485
+ disableAnimation: false,
486
+ variant: ["faded", "bordered"],
487
+ class: {
488
+ inputWrapper: "transition-colors motion-reduce:transition-none"
489
+ }
490
+ },
491
+ {
492
+ disableAnimation: false,
493
+ variant: "underlined",
494
+ class: {
495
+ inputWrapper: "after:transition-width motion-reduce:after:transition-none"
496
+ }
497
+ },
498
+ {
499
+ variant: ["flat", "faded"],
500
+ class: {
501
+ inputWrapper: [
502
+ ...groupDataFocusVisibleClasses
503
+ ]
504
+ }
505
+ },
506
+ {
507
+ isInvalid: true,
508
+ variant: "flat",
509
+ class: {
510
+ inputWrapper: [
511
+ "bg-danger-50",
512
+ "data-[hover=true]:bg-danger-100",
513
+ "group-data-[focus=true]:bg-danger-50"
514
+ ]
515
+ }
516
+ },
517
+ {
518
+ isInvalid: true,
519
+ variant: "bordered",
520
+ class: {
521
+ inputWrapper: "!border-danger group-data-[focus=true]:border-danger"
522
+ }
523
+ },
524
+ {
525
+ isInvalid: true,
526
+ variant: "underlined",
527
+ class: {
528
+ inputWrapper: "after:bg-danger"
529
+ }
530
+ },
531
+ {
532
+ labelPlacement: "inside",
533
+ size: "sm",
534
+ class: {
535
+ inputWrapper: "h-12 py-1.5 px-3"
536
+ }
537
+ },
538
+ {
539
+ labelPlacement: "inside",
540
+ size: "md",
541
+ class: {
542
+ inputWrapper: "h-14 py-2"
543
+ }
544
+ },
545
+ {
546
+ labelPlacement: "inside",
547
+ size: "lg",
548
+ class: {
549
+ label: "text-small",
550
+ inputWrapper: "h-16 py-2.5 gap-0"
551
+ }
552
+ },
553
+ {
554
+ labelPlacement: "inside",
555
+ size: "sm",
556
+ variant: ["bordered", "faded"],
557
+ class: {
558
+ inputWrapper: "py-1"
559
+ }
560
+ },
561
+ {
562
+ labelPlacement: ["inside", "outside"],
563
+ class: {
564
+ label: ["group-data-[filled-within=true]:pointer-events-auto"]
565
+ }
566
+ },
567
+ {
568
+ labelPlacement: ["outside", "outside-left"],
569
+ class: {
570
+ input: "h-full"
571
+ }
572
+ },
573
+ {
574
+ labelPlacement: "outside",
575
+ isMultiline: false,
576
+ class: {
577
+ base: "group relative justify-end",
578
+ label: [
579
+ "pb-0",
580
+ "z-20",
581
+ "top-1/2",
582
+ "-translate-y-1/2",
583
+ "group-data-[filled-within=true]:left-0"
584
+ ]
585
+ }
586
+ },
587
+ {
588
+ labelPlacement: ["inside"],
589
+ class: {
590
+ label: ["group-data-[filled-within=true]:scale-85"]
591
+ }
592
+ },
593
+ {
594
+ labelPlacement: ["inside"],
595
+ variant: "flat",
596
+ class: {
597
+ innerWrapper: "pb-0.5"
598
+ }
599
+ },
600
+ {
601
+ variant: "underlined",
602
+ size: "sm",
603
+ class: {
604
+ innerWrapper: "pb-1"
605
+ }
606
+ },
607
+ {
608
+ variant: "underlined",
609
+ size: ["md", "lg"],
610
+ class: {
611
+ innerWrapper: "pb-1.5"
612
+ }
613
+ },
614
+ {
615
+ labelPlacement: "inside",
616
+ size: ["sm", "md"],
617
+ class: {
618
+ label: "text-small"
619
+ }
620
+ },
621
+ {
622
+ labelPlacement: "inside",
623
+ isMultiline: false,
624
+ size: "sm",
625
+ class: {
626
+ label: [
627
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
628
+ ]
629
+ }
630
+ },
631
+ {
632
+ labelPlacement: "inside",
633
+ isMultiline: false,
634
+ size: "md",
635
+ class: {
636
+ label: [
637
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
638
+ ]
639
+ }
640
+ },
641
+ {
642
+ labelPlacement: "inside",
643
+ isMultiline: false,
644
+ size: "lg",
645
+ class: {
646
+ label: [
647
+ "text-medium",
648
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
649
+ ]
650
+ }
651
+ },
652
+ {
653
+ labelPlacement: "inside",
654
+ variant: ["faded", "bordered"],
655
+ isMultiline: false,
656
+ size: "sm",
657
+ class: {
658
+ label: [
659
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
660
+ ]
661
+ }
662
+ },
663
+ {
664
+ labelPlacement: "inside",
665
+ variant: ["faded", "bordered"],
666
+ isMultiline: false,
667
+ size: "md",
668
+ class: {
669
+ label: [
670
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
671
+ ]
672
+ }
673
+ },
674
+ {
675
+ labelPlacement: "inside",
676
+ variant: ["faded", "bordered"],
677
+ isMultiline: false,
678
+ size: "lg",
679
+ class: {
680
+ label: [
681
+ "text-medium",
682
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
683
+ ]
684
+ }
685
+ },
686
+ {
687
+ labelPlacement: "inside",
688
+ variant: "underlined",
689
+ isMultiline: false,
690
+ size: "sm",
691
+ class: {
692
+ label: [
693
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
694
+ ]
695
+ }
696
+ },
697
+ {
698
+ labelPlacement: "inside",
699
+ variant: "underlined",
700
+ isMultiline: false,
701
+ size: "md",
702
+ class: {
703
+ label: [
704
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
705
+ ]
706
+ }
707
+ },
708
+ {
709
+ labelPlacement: "inside",
710
+ variant: "underlined",
711
+ size: "lg",
712
+ isMultiline: false,
713
+ class: {
714
+ label: [
715
+ "text-medium",
716
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
717
+ ]
718
+ }
719
+ },
720
+ {
721
+ labelPlacement: "outside",
722
+ size: "sm",
723
+ isMultiline: false,
724
+ class: {
725
+ label: [
726
+ "left-2",
727
+ "text-tiny",
728
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
729
+ ],
730
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
731
+ }
732
+ },
733
+ {
734
+ labelPlacement: "outside",
735
+ size: "md",
736
+ isMultiline: false,
737
+ class: {
738
+ label: [
739
+ "left-3",
740
+ "rtl:left-auto",
741
+ "rtl:right-3",
742
+ "text-small",
743
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
744
+ ],
745
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
746
+ }
747
+ },
748
+ {
749
+ labelPlacement: "outside",
750
+ size: "lg",
751
+ isMultiline: false,
752
+ class: {
753
+ label: [
754
+ "left-3",
755
+ "rtl:left-auto",
756
+ "rtl:right-3",
757
+ "text-medium",
758
+ "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
759
+ ],
760
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
761
+ }
762
+ },
763
+ {
764
+ labelPlacement: "outside-left",
765
+ size: "sm",
766
+ class: {
767
+ label: "group-data-[has-helper=true]:pt-2"
768
+ }
769
+ },
770
+ {
771
+ labelPlacement: "outside-left",
772
+ size: "md",
773
+ class: {
774
+ label: "group-data-[has-helper=true]:pt-3"
775
+ }
776
+ },
777
+ {
778
+ labelPlacement: "outside-left",
779
+ size: "lg",
780
+ class: {
781
+ label: "group-data-[has-helper=true]:pt-4"
782
+ }
783
+ },
784
+ {
785
+ labelPlacement: ["outside", "outside-left"],
786
+ isMultiline: true,
787
+ class: {
788
+ inputWrapper: "py-2"
789
+ }
790
+ },
791
+ {
792
+ labelPlacement: "outside",
793
+ isMultiline: true,
794
+ class: {
795
+ label: "pb-1.5"
796
+ }
797
+ },
798
+ {
799
+ labelPlacement: "inside",
800
+ isMultiline: true,
801
+ class: {
802
+ label: "pb-0.5",
803
+ input: "pt-0"
804
+ }
805
+ },
806
+ {
807
+ isMultiline: true,
808
+ disableAnimation: false,
809
+ class: {
810
+ input: "transition-height !duration-100 motion-reduce:transition-none"
811
+ }
812
+ },
813
+ {
814
+ labelPlacement: ["inside", "outside"],
815
+ class: {
816
+ label: ["pe-2", "max-w-full", "text-ellipsis", "overflow-hidden"]
817
+ }
818
+ },
819
+ {
820
+ isMultiline: true,
821
+ radius: "full",
822
+ class: {
823
+ inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
824
+ }
825
+ }
826
+ ]
827
+ });
828
+
829
+ export {
830
+ input
831
+ };