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