@bricks-toolkit/toolkit 0.1.1 → 0.1.2

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 (332) hide show
  1. package/README.md +9 -9
  2. package/dist/avatar/index.cjs +11 -1
  3. package/dist/avatar/index.mjs +2 -1
  4. package/dist/badge/index.cjs +11 -1
  5. package/dist/badge/index.mjs +2 -1
  6. package/dist/breadcrumbs/index.cjs +11 -1
  7. package/dist/breadcrumbs/index.mjs +2 -1
  8. package/dist/button/index.cjs +13 -2
  9. package/dist/button/index.mjs +4 -2
  10. package/dist/card/index.cjs +31 -1
  11. package/dist/card/index.mjs +2 -1
  12. package/dist/checkbox/index.cjs +11 -1
  13. package/dist/checkbox/index.mjs +2 -1
  14. package/dist/chunk-2POU3NX4.mjs +192 -0
  15. package/dist/chunk-32SKYPQW.mjs +156 -0
  16. package/dist/chunk-446OJWC6.mjs +285 -0
  17. package/dist/chunk-4DA7CRNV.mjs +376 -0
  18. package/dist/chunk-4DR57X7U.mjs +182 -0
  19. package/dist/chunk-4QSDPHPI.mjs +285 -0
  20. package/dist/chunk-56ILK7Y4.cjs +315 -0
  21. package/dist/chunk-5J3OMAO4.cjs +222 -0
  22. package/dist/chunk-5RKET2JO.cjs +287 -0
  23. package/dist/chunk-65UZC3FK.mjs +312 -0
  24. package/dist/chunk-6CC5KIA5.cjs +148 -0
  25. package/dist/chunk-6R3OYBQ6.cjs +209 -0
  26. package/dist/chunk-6UO72EJA.cjs +2 -0
  27. package/dist/chunk-6ZCY4O5M.mjs +63 -0
  28. package/dist/chunk-7364SUK6.mjs +359 -0
  29. package/dist/chunk-7DDDQ3RH.cjs +66 -0
  30. package/dist/chunk-7PDGAIC3.cjs +189 -0
  31. package/dist/chunk-7R5JRJ2W.cjs +255 -0
  32. package/dist/chunk-7WNJ7L4Z.mjs +335 -0
  33. package/dist/chunk-AJXVELXK.cjs +218 -0
  34. package/dist/chunk-ARTXRQO6.mjs +1 -0
  35. package/dist/chunk-B4OV5GRT.cjs +510 -0
  36. package/dist/chunk-B5MYGYJY.mjs +122 -0
  37. package/dist/chunk-BBVWG5GH.cjs +75 -0
  38. package/dist/chunk-BVBCAAES.mjs +35 -0
  39. package/dist/chunk-CBA54EY4.mjs +508 -0
  40. package/dist/chunk-CMER5LO3.mjs +330 -0
  41. package/dist/chunk-DHC5LI2P.cjs +338 -0
  42. package/dist/chunk-DMLPA65B.mjs +107 -0
  43. package/dist/chunk-DN2GFJF4.mjs +175 -0
  44. package/dist/chunk-ECLNLPOR.cjs +70 -0
  45. package/dist/chunk-EV463QT5.cjs +53 -0
  46. package/dist/chunk-FOVJHEWH.mjs +51 -0
  47. package/dist/chunk-G4HVY6FM.mjs +203 -0
  48. package/dist/chunk-H77YWN3L.mjs +220 -0
  49. package/dist/chunk-HIWJDLIS.cjs +124 -0
  50. package/dist/chunk-HQGDSOSN.mjs +274 -0
  51. package/dist/chunk-JKPNJ4PZ.mjs +313 -0
  52. package/dist/chunk-JV6AWBN5.mjs +113 -0
  53. package/dist/chunk-KA35BV7V.mjs +207 -0
  54. package/dist/chunk-KLBABQEJ.cjs +378 -0
  55. package/dist/chunk-L5VQZZVR.cjs +3197 -0
  56. package/dist/chunk-LTG6YP5I.cjs +69 -0
  57. package/dist/chunk-MVUNJPGH.cjs +184 -0
  58. package/dist/chunk-NMJ5CVZH.cjs +2 -0
  59. package/dist/chunk-NRCNRHXL.cjs +109 -0
  60. package/dist/chunk-NRZIXK35.cjs +276 -0
  61. package/dist/chunk-OCPFOFJ4.mjs +3195 -0
  62. package/dist/chunk-OEU5VG3D.cjs +362 -0
  63. package/dist/chunk-OPOCCRJG.cjs +193 -0
  64. package/dist/chunk-OQPCL5XX.mjs +187 -0
  65. package/dist/chunk-PCYGJNEQ.cjs +280 -0
  66. package/dist/chunk-PJH2KEWK.mjs +200 -0
  67. package/dist/chunk-PJWELBN2.cjs +115 -0
  68. package/dist/chunk-Q3IFXFFD.cjs +202 -0
  69. package/dist/chunk-R72GDCWE.cjs +314 -0
  70. package/dist/chunk-RAD5VJHR.mjs +146 -0
  71. package/dist/chunk-RYWDZHKG.mjs +274 -0
  72. package/dist/chunk-S7VEND5Z.cjs +162 -0
  73. package/dist/chunk-SBNNV6FE.mjs +1 -0
  74. package/dist/chunk-SFUOCZJY.mjs +187 -0
  75. package/dist/chunk-SHQ2MPBE.mjs +73 -0
  76. package/dist/chunk-TIVSMCXZ.mjs +253 -0
  77. package/dist/chunk-TNGW5YHA.cjs +37 -0
  78. package/dist/chunk-VC7MOPU6.cjs +287 -0
  79. package/dist/chunk-VHVFRWF5.mjs +64 -0
  80. package/dist/chunk-VKQDW7C2.mjs +336 -0
  81. package/dist/chunk-VRZFAKSV.cjs +177 -0
  82. package/dist/chunk-W2ZAPLQH.cjs +337 -0
  83. package/dist/chunk-XFNRKHHF.cjs +332 -0
  84. package/dist/chunk-Y3NTKFUE.mjs +66 -0
  85. package/dist/chunk-Y6AN7AWX.cjs +205 -0
  86. package/dist/chunk-YMMNWJT6.cjs +134 -0
  87. package/dist/chunk-YOTCXSXL.mjs +132 -0
  88. package/dist/combo-box/index.cjs +11 -1
  89. package/dist/combo-box/index.mjs +2 -1
  90. package/dist/date-picker/index.cjs +11 -2
  91. package/dist/date-picker/index.mjs +2 -2
  92. package/dist/dialog/index.cjs +27 -1
  93. package/dist/dialog/index.mjs +2 -1
  94. package/dist/dropdown-menu/index.cjs +27 -1
  95. package/dist/dropdown-menu/index.mjs +2 -1
  96. package/dist/email/index.cjs +11 -2
  97. package/dist/email/index.mjs +2 -2
  98. package/dist/file-upload/index.cjs +11 -1
  99. package/dist/file-upload/index.mjs +2 -1
  100. package/dist/header/index.cjs +14 -2
  101. package/dist/header/index.mjs +5 -2
  102. package/dist/icon-button/index.cjs +13 -2
  103. package/dist/icon-button/index.mjs +4 -2
  104. package/dist/image/index.cjs +12 -1
  105. package/dist/image/index.mjs +3 -1
  106. package/dist/index.cjs +839 -2
  107. package/dist/index.d.ts +141 -75
  108. package/dist/index.mjs +601 -2
  109. package/dist/link/index.cjs +11 -1
  110. package/dist/link/index.mjs +2 -1
  111. package/dist/loader/index.cjs +11 -2
  112. package/dist/loader/index.mjs +2 -2
  113. package/dist/modal/index.cjs +27 -1
  114. package/dist/modal/index.mjs +2 -1
  115. package/dist/multi-select/index.cjs +11 -2
  116. package/dist/multi-select/index.mjs +2 -2
  117. package/dist/otp-input/index.cjs +11 -1
  118. package/dist/otp-input/index.mjs +2 -1
  119. package/dist/password-input/index.cjs +11 -2
  120. package/dist/password-input/index.mjs +2 -2
  121. package/dist/phone/index.cjs +11 -2
  122. package/dist/phone/index.mjs +2 -2
  123. package/dist/radio-button/index.cjs +11 -1
  124. package/dist/radio-button/index.mjs +2 -1
  125. package/dist/search-input/index.cjs +12 -2
  126. package/dist/search-input/index.mjs +3 -2
  127. package/dist/select/index.cjs +11 -2
  128. package/dist/select/index.mjs +2 -2
  129. package/dist/sidebar/index.cjs +11 -1
  130. package/dist/sidebar/index.mjs +2 -1
  131. package/dist/skeleton/index.cjs +27 -1
  132. package/dist/skeleton/index.mjs +2 -1
  133. package/dist/styles.css +5074 -1
  134. package/dist/table/index.cjs +15 -1
  135. package/dist/table/index.mjs +2 -1
  136. package/dist/tabs/index.cjs +14 -2
  137. package/dist/tabs/index.mjs +5 -2
  138. package/dist/text-input/index.cjs +11 -2
  139. package/dist/text-input/index.mjs +2 -2
  140. package/dist/theme-provider/index.cjs +14 -1
  141. package/dist/theme-provider/index.mjs +1 -1
  142. package/dist/time-picker/index.cjs +11 -2
  143. package/dist/time-picker/index.mjs +2 -2
  144. package/dist/toaster/index.cjs +11 -1
  145. package/dist/toaster/index.mjs +2 -1
  146. package/dist/tooltip/index.cjs +12 -1
  147. package/dist/tooltip/index.mjs +3 -1
  148. package/package.json +122 -141
  149. package/dist/components/Accordion/Accordion.d.ts +0 -5
  150. package/dist/components/Accordion/Accordion.types.d.ts +0 -32
  151. package/dist/components/Accordion/index.d.ts +0 -2
  152. package/dist/components/Avatar/Avatar.d.ts +0 -2
  153. package/dist/components/Avatar/Avatar.stories.d.ts +0 -11
  154. package/dist/components/Avatar/Avatar.test.d.ts +0 -1
  155. package/dist/components/Avatar/Avatar.types.d.ts +0 -24
  156. package/dist/components/Avatar/index.d.ts +0 -2
  157. package/dist/components/Badge/Badge.d.ts +0 -11
  158. package/dist/components/Badge/Badge.stories.d.ts +0 -21
  159. package/dist/components/Badge/Badge.test.d.ts +0 -1
  160. package/dist/components/Badge/Badge.types.d.ts +0 -43
  161. package/dist/components/Badge/index.d.ts +0 -2
  162. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  163. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -13
  164. package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
  165. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -27
  166. package/dist/components/Breadcrumbs/index.d.ts +0 -2
  167. package/dist/components/Button/Button.d.ts +0 -2
  168. package/dist/components/Button/Button.stories.d.ts +0 -20
  169. package/dist/components/Button/Button.test.d.ts +0 -1
  170. package/dist/components/Button/Button.types.d.ts +0 -24
  171. package/dist/components/Button/index.d.ts +0 -2
  172. package/dist/components/Card/Card.d.ts +0 -25
  173. package/dist/components/Card/Card.stories.d.ts +0 -8
  174. package/dist/components/Card/Card.test.d.ts +0 -1
  175. package/dist/components/Card/Card.types.d.ts +0 -14
  176. package/dist/components/Card/index.d.ts +0 -2
  177. package/dist/components/Checkbox/Checkbox.d.ts +0 -2
  178. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -16
  179. package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
  180. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -31
  181. package/dist/components/Checkbox/index.d.ts +0 -2
  182. package/dist/components/ComboBox/ComboBox.d.ts +0 -2
  183. package/dist/components/ComboBox/ComboBox.stories.d.ts +0 -12
  184. package/dist/components/ComboBox/ComboBox.test.d.ts +0 -1
  185. package/dist/components/ComboBox/ComboBox.types.d.ts +0 -57
  186. package/dist/components/ComboBox/index.d.ts +0 -2
  187. package/dist/components/DatePicker/DatePicker.d.ts +0 -2
  188. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -25
  189. package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
  190. package/dist/components/DatePicker/DatePicker.types.d.ts +0 -27
  191. package/dist/components/DatePicker/index.d.ts +0 -2
  192. package/dist/components/Dialog/Dialog.d.ts +0 -6
  193. package/dist/components/Dialog/Dialog.stories.d.ts +0 -9
  194. package/dist/components/Dialog/Dialog.test.d.ts +0 -1
  195. package/dist/components/Dialog/Dialog.types.d.ts +0 -52
  196. package/dist/components/Dialog/index.d.ts +0 -2
  197. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -7
  198. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -9
  199. package/dist/components/DropdownMenu/DropdownMenu.test.d.ts +0 -1
  200. package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +0 -24
  201. package/dist/components/DropdownMenu/index.d.ts +0 -2
  202. package/dist/components/Email/Email.d.ts +0 -2
  203. package/dist/components/Email/Email.stories.d.ts +0 -11
  204. package/dist/components/Email/Email.test.d.ts +0 -1
  205. package/dist/components/Email/Email.types.d.ts +0 -33
  206. package/dist/components/Email/index.d.ts +0 -2
  207. package/dist/components/FileUpload/FileUpload.d.ts +0 -2
  208. package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -10
  209. package/dist/components/FileUpload/FileUpload.test.d.ts +0 -1
  210. package/dist/components/FileUpload/FileUpload.types.d.ts +0 -22
  211. package/dist/components/FileUpload/index.d.ts +0 -2
  212. package/dist/components/Header/Header.d.ts +0 -7
  213. package/dist/components/Header/Header.stories.d.ts +0 -8
  214. package/dist/components/Header/Header.test.d.ts +0 -1
  215. package/dist/components/Header/Header.types.d.ts +0 -19
  216. package/dist/components/Header/index.d.ts +0 -2
  217. package/dist/components/IconButton/IconButton.d.ts +0 -2
  218. package/dist/components/IconButton/IconButton.stories.d.ts +0 -17
  219. package/dist/components/IconButton/IconButton.types.d.ts +0 -10
  220. package/dist/components/IconButton/index.d.ts +0 -2
  221. package/dist/components/Image/Image.d.ts +0 -6
  222. package/dist/components/Image/Image.stories.d.ts +0 -13
  223. package/dist/components/Image/Image.test.d.ts +0 -1
  224. package/dist/components/Image/Image.types.d.ts +0 -40
  225. package/dist/components/Image/index.d.ts +0 -2
  226. package/dist/components/Link/Link.d.ts +0 -2
  227. package/dist/components/Link/Link.stories.d.ts +0 -15
  228. package/dist/components/Link/Link.test.d.ts +0 -1
  229. package/dist/components/Link/Link.types.d.ts +0 -20
  230. package/dist/components/Link/index.d.ts +0 -2
  231. package/dist/components/Loader/Loader.d.ts +0 -2
  232. package/dist/components/Loader/Loader.stories.d.ts +0 -12
  233. package/dist/components/Loader/Loader.test.d.ts +0 -1
  234. package/dist/components/Loader/Loader.types.d.ts +0 -17
  235. package/dist/components/Loader/index.d.ts +0 -2
  236. package/dist/components/Modal/Modal.d.ts +0 -14
  237. package/dist/components/Modal/Modal.stories.d.ts +0 -14
  238. package/dist/components/Modal/Modal.test.d.ts +0 -1
  239. package/dist/components/Modal/Modal.types.d.ts +0 -100
  240. package/dist/components/Modal/index.d.ts +0 -2
  241. package/dist/components/MultiSelect/MultiSelect.d.ts +0 -2
  242. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -15
  243. package/dist/components/MultiSelect/MultiSelect.test.d.ts +0 -1
  244. package/dist/components/MultiSelect/MultiSelect.types.d.ts +0 -55
  245. package/dist/components/MultiSelect/index.d.ts +0 -2
  246. package/dist/components/OtpInput/OtpInput.d.ts +0 -2
  247. package/dist/components/OtpInput/OtpInput.stories.d.ts +0 -10
  248. package/dist/components/OtpInput/OtpInput.test.d.ts +0 -1
  249. package/dist/components/OtpInput/OtpInput.types.d.ts +0 -53
  250. package/dist/components/OtpInput/index.d.ts +0 -2
  251. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
  252. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -23
  253. package/dist/components/PasswordInput/PasswordInput.test.d.ts +0 -1
  254. package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -27
  255. package/dist/components/PasswordInput/index.d.ts +0 -2
  256. package/dist/components/Phone/Phone.d.ts +0 -2
  257. package/dist/components/Phone/Phone.stories.d.ts +0 -11
  258. package/dist/components/Phone/Phone.test.d.ts +0 -1
  259. package/dist/components/Phone/Phone.types.d.ts +0 -36
  260. package/dist/components/Phone/countries.d.ts +0 -8
  261. package/dist/components/Phone/index.d.ts +0 -2
  262. package/dist/components/RadioButton/RadioButton.d.ts +0 -2
  263. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -21
  264. package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
  265. package/dist/components/RadioButton/RadioButton.types.d.ts +0 -51
  266. package/dist/components/RadioButton/index.d.ts +0 -2
  267. package/dist/components/SearchInput/SearchInput.d.ts +0 -6
  268. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -8
  269. package/dist/components/SearchInput/SearchInput.test.d.ts +0 -1
  270. package/dist/components/SearchInput/SearchInput.types.d.ts +0 -12
  271. package/dist/components/SearchInput/index.d.ts +0 -2
  272. package/dist/components/Select/Select.d.ts +0 -2
  273. package/dist/components/Select/Select.stories.d.ts +0 -12
  274. package/dist/components/Select/Select.test.d.ts +0 -1
  275. package/dist/components/Select/Select.types.d.ts +0 -31
  276. package/dist/components/Select/index.d.ts +0 -2
  277. package/dist/components/Sidebar/Sidebar.d.ts +0 -7
  278. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -10
  279. package/dist/components/Sidebar/Sidebar.test.d.ts +0 -1
  280. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -87
  281. package/dist/components/Sidebar/index.d.ts +0 -2
  282. package/dist/components/Skeleton/Skeleton.d.ts +0 -26
  283. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -13
  284. package/dist/components/Skeleton/Skeleton.types.d.ts +0 -47
  285. package/dist/components/Skeleton/index.d.ts +0 -2
  286. package/dist/components/Stepper/Stepper.d.ts +0 -2
  287. package/dist/components/Stepper/Stepper.stories.d.ts +0 -23
  288. package/dist/components/Stepper/Stepper.test.d.ts +0 -1
  289. package/dist/components/Stepper/Stepper.types.d.ts +0 -47
  290. package/dist/components/Stepper/index.d.ts +0 -2
  291. package/dist/components/Table/Pagination.d.ts +0 -3
  292. package/dist/components/Table/Table.d.ts +0 -3
  293. package/dist/components/Table/Table.stories.d.ts +0 -13
  294. package/dist/components/Table/Table.test.d.ts +0 -1
  295. package/dist/components/Table/Table.types.d.ts +0 -85
  296. package/dist/components/Table/index.d.ts +0 -3
  297. package/dist/components/Tabs/Tabs.d.ts +0 -2
  298. package/dist/components/Tabs/Tabs.stories.d.ts +0 -17
  299. package/dist/components/Tabs/Tabs.test.d.ts +0 -1
  300. package/dist/components/Tabs/Tabs.types.d.ts +0 -21
  301. package/dist/components/Tabs/index.d.ts +0 -2
  302. package/dist/components/TextInput/TextInput.d.ts +0 -2
  303. package/dist/components/TextInput/TextInput.stories.d.ts +0 -25
  304. package/dist/components/TextInput/TextInput.test.d.ts +0 -1
  305. package/dist/components/TextInput/TextInput.types.d.ts +0 -29
  306. package/dist/components/TextInput/index.d.ts +0 -2
  307. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -8
  308. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -16
  309. package/dist/components/ThemeProvider/ThemeProvider.test.d.ts +0 -1
  310. package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +0 -112
  311. package/dist/components/ThemeProvider/index.d.ts +0 -2
  312. package/dist/components/TimePicker/TimePicker.d.ts +0 -2
  313. package/dist/components/TimePicker/TimePicker.stories.d.ts +0 -23
  314. package/dist/components/TimePicker/TimePicker.test.d.ts +0 -1
  315. package/dist/components/TimePicker/TimePicker.types.d.ts +0 -27
  316. package/dist/components/TimePicker/index.d.ts +0 -2
  317. package/dist/components/Toaster/Toaster.d.ts +0 -2
  318. package/dist/components/Toaster/Toaster.stories.d.ts +0 -13
  319. package/dist/components/Toaster/Toaster.test.d.ts +0 -1
  320. package/dist/components/Toaster/Toaster.types.d.ts +0 -23
  321. package/dist/components/Toaster/index.d.ts +0 -2
  322. package/dist/components/Toggle/Toggle.d.ts +0 -2
  323. package/dist/components/Toggle/Toggle.stories.d.ts +0 -11
  324. package/dist/components/Toggle/Toggle.types.d.ts +0 -10
  325. package/dist/components/Toggle/index.d.ts +0 -2
  326. package/dist/components/Tooltip/Tooltip.d.ts +0 -2
  327. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
  328. package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
  329. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -33
  330. package/dist/components/Tooltip/index.d.ts +0 -2
  331. package/dist/utils/cn.d.ts +0 -2
  332. package/dist/utils/index.d.ts +0 -1
@@ -0,0 +1,287 @@
1
+ 'use strict';
2
+
3
+ var chunkL5VQZZVR_cjs = require('./chunk-L5VQZZVR.cjs');
4
+ var react = require('react');
5
+ var solid = require('@heroicons/react/20/solid');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var sizeClasses = {
9
+ xs: "h-6 px-2 text-xs",
10
+ sm: "h-8 px-3 text-sm",
11
+ md: "h-10 px-3 text-sm",
12
+ lg: "h-11 px-4 text-base",
13
+ xl: "h-12 px-4 text-lg"
14
+ };
15
+ var labelSizeClasses = {
16
+ xs: "text-xs",
17
+ sm: "text-xs",
18
+ md: "text-sm",
19
+ lg: "text-sm",
20
+ xl: "text-base"
21
+ };
22
+ var variantClasses = {
23
+ default: "rounded-md border border-border bg-surface shadow-sm focus:outline-none",
24
+ filled: "rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none",
25
+ flushed: "rounded-none border-0 border-b border-border bg-transparent focus:outline-none",
26
+ unstyled: "border-0 bg-transparent p-0 focus:outline-none"
27
+ };
28
+ var stateVariantClasses = {
29
+ default: {
30
+ default: "border-border focus:border-primary",
31
+ filled: "focus:border-primary",
32
+ flushed: "border-border focus:border-primary",
33
+ unstyled: ""
34
+ },
35
+ error: {
36
+ default: "border-error focus:border-error",
37
+ filled: "bg-error/5 focus:border-error",
38
+ flushed: "border-error focus:border-error",
39
+ unstyled: ""
40
+ },
41
+ success: {
42
+ default: "border-success focus:border-success",
43
+ filled: "bg-success/5 focus:border-success",
44
+ flushed: "border-success focus:border-success",
45
+ unstyled: ""
46
+ },
47
+ warning: {
48
+ default: "border-warning focus:border-warning",
49
+ filled: "bg-warning/5 border-warning focus:border-warning",
50
+ flushed: "border-warning focus:border-warning",
51
+ unstyled: ""
52
+ }
53
+ };
54
+ var stateMessageClasses = {
55
+ default: "text-text-muted",
56
+ error: "text-error",
57
+ success: "text-success",
58
+ warning: "text-warning"
59
+ };
60
+ function getStateMessage(state, errorMessage, successMessage, warningMessage) {
61
+ if (state === "error" && errorMessage) return errorMessage;
62
+ if (state === "success" && successMessage) return successMessage;
63
+ if (state === "warning" && warningMessage) return warningMessage;
64
+ return void 0;
65
+ }
66
+ function Addon({ children, side }) {
67
+ return /* @__PURE__ */ jsxRuntime.jsx(
68
+ "span",
69
+ {
70
+ "aria-hidden": "true",
71
+ className: chunkL5VQZZVR_cjs.cn(
72
+ "inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",
73
+ side === "left" ? "rounded-l-md border-r-0" : "rounded-r-md border-l-0"
74
+ ),
75
+ children
76
+ }
77
+ );
78
+ }
79
+ var Email = react.forwardRef(function Email2({
80
+ label,
81
+ required = false,
82
+ helperText,
83
+ errorMessage,
84
+ successMessage,
85
+ warningMessage,
86
+ variant = "default",
87
+ size = "md",
88
+ state = "default",
89
+ fullWidth = true,
90
+ leftElement,
91
+ rightElement,
92
+ prefix,
93
+ suffix,
94
+ wrapperClassName,
95
+ inputGroupClassName,
96
+ inputClassName,
97
+ labelClassName,
98
+ helperClassName,
99
+ id: idProp,
100
+ disabled,
101
+ className,
102
+ clearable,
103
+ isLoading,
104
+ multiple = false,
105
+ autoCapitalize = "none",
106
+ autoComplete = "email",
107
+ spellCheck = false,
108
+ value,
109
+ onChange,
110
+ ...rest
111
+ }, ref) {
112
+ const generatedId = react.useId();
113
+ const inputId = idProp ?? generatedId;
114
+ const helperId = `${inputId}-helper`;
115
+ const stateMessageId = `${inputId}-state`;
116
+ const isValueString = typeof value === "string" || typeof value === "number";
117
+ const showClear = clearable && isValueString && String(value).length > 0;
118
+ const hasLeftElement = leftElement !== void 0;
119
+ const hasRightElement = rightElement !== void 0 || Boolean(showClear) || Boolean(isLoading);
120
+ const stateMessage = getStateMessage(state, errorMessage, successMessage, warningMessage);
121
+ const describedBy = [helperText ? helperId : null, stateMessage ? stateMessageId : null].filter(Boolean).join(" ") || void 0;
122
+ const handleClear = () => {
123
+ if (ref && typeof ref !== "function" && ref.current) {
124
+ Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(
125
+ ref.current,
126
+ ""
127
+ );
128
+ const event = new Event("input", { bubbles: true });
129
+ ref.current.dispatchEvent(event);
130
+ } else if (onChange) {
131
+ const e = {
132
+ target: { value: "" },
133
+ currentTarget: { value: "" },
134
+ preventDefault: () => {
135
+ },
136
+ stopPropagation: () => {
137
+ }
138
+ };
139
+ onChange(e);
140
+ }
141
+ };
142
+ const renderRightIcon = () => {
143
+ if (isLoading) {
144
+ return /* @__PURE__ */ jsxRuntime.jsxs(
145
+ "svg",
146
+ {
147
+ className: "animate-spin h-5 w-5 text-text-muted",
148
+ xmlns: "http://www.w3.org/2000/svg",
149
+ fill: "none",
150
+ viewBox: "0 0 24 24",
151
+ children: [
152
+ /* @__PURE__ */ jsxRuntime.jsx(
153
+ "circle",
154
+ {
155
+ className: "opacity-25",
156
+ cx: "12",
157
+ cy: "12",
158
+ r: "10",
159
+ stroke: "currentColor",
160
+ strokeWidth: "4"
161
+ }
162
+ ),
163
+ /* @__PURE__ */ jsxRuntime.jsx(
164
+ "path",
165
+ {
166
+ className: "opacity-75",
167
+ fill: "currentColor",
168
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
169
+ }
170
+ )
171
+ ]
172
+ }
173
+ );
174
+ }
175
+ if (showClear) {
176
+ return /* @__PURE__ */ jsxRuntime.jsx(
177
+ "button",
178
+ {
179
+ type: "button",
180
+ onClick: handleClear,
181
+ className: "flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-interaction-hover p-0.5 transition w-6 h-6 border-0 bg-transparent cursor-pointer",
182
+ "aria-label": "Clear input",
183
+ children: /* @__PURE__ */ jsxRuntime.jsx(solid.XMarkIcon, { className: "w-5 h-5" })
184
+ }
185
+ );
186
+ }
187
+ return rightElement;
188
+ };
189
+ return /* @__PURE__ */ jsxRuntime.jsxs(
190
+ "div",
191
+ {
192
+ className: chunkL5VQZZVR_cjs.cn(
193
+ "flex flex-col gap-1",
194
+ fullWidth ? "w-full" : "w-fit",
195
+ wrapperClassName,
196
+ className
197
+ ),
198
+ children: [
199
+ label !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
200
+ "label",
201
+ {
202
+ htmlFor: inputId,
203
+ className: chunkL5VQZZVR_cjs.cn(
204
+ "font-black leading-none text-text mb-2 uppercase tracking-widest",
205
+ labelSizeClasses[size],
206
+ labelClassName
207
+ ),
208
+ children: [
209
+ label,
210
+ required && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "ml-1 text-error", children: "*" })
211
+ ]
212
+ }
213
+ ),
214
+ /* @__PURE__ */ jsxRuntime.jsxs(
215
+ "div",
216
+ {
217
+ className: chunkL5VQZZVR_cjs.cn(
218
+ "flex items-stretch transition-all duration-150 overflow-hidden",
219
+ variantClasses[variant],
220
+ stateVariantClasses[state][variant],
221
+ fullWidth ? "w-full" : "w-fit",
222
+ "focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",
223
+ disabled && "opacity-50 cursor-not-allowed bg-surface-secondary",
224
+ inputGroupClassName
225
+ ),
226
+ children: [
227
+ prefix !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(Addon, { side: "left", children: prefix }),
228
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 items-center min-w-0", children: [
229
+ hasLeftElement && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pl-3 shrink-0 flex items-center justify-center", children: leftElement }),
230
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 min-w-0 h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
231
+ "input",
232
+ {
233
+ ref,
234
+ ...rest,
235
+ id: inputId,
236
+ disabled: Boolean(disabled) || Boolean(isLoading),
237
+ type: "email",
238
+ multiple,
239
+ autoCapitalize,
240
+ autoComplete,
241
+ spellCheck,
242
+ value,
243
+ onChange,
244
+ "aria-invalid": state === "error" ? true : void 0,
245
+ "aria-describedby": describedBy,
246
+ "aria-required": required,
247
+ className: chunkL5VQZZVR_cjs.cn(
248
+ "w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",
249
+ sizeClasses[size],
250
+ inputClassName
251
+ ),
252
+ style: {
253
+ paddingLeft: hasLeftElement ? "0.5rem" : void 0,
254
+ paddingRight: hasRightElement || showClear ? "0.5rem" : void 0
255
+ }
256
+ }
257
+ ) }),
258
+ hasRightElement && /* @__PURE__ */ jsxRuntime.jsx(
259
+ "div",
260
+ {
261
+ className: "pr-3 shrink-0 flex items-center justify-center text-text-secondary",
262
+ style: { width: "2.5rem" },
263
+ children: renderRightIcon()
264
+ }
265
+ )
266
+ ] }),
267
+ suffix !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(Addon, { side: "right", children: suffix })
268
+ ]
269
+ }
270
+ ),
271
+ helperText !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helperId, className: chunkL5VQZZVR_cjs.cn("text-xs leading-tight text-text-muted", helperClassName), children: helperText }),
272
+ stateMessage !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
273
+ "p",
274
+ {
275
+ id: stateMessageId,
276
+ role: state === "error" ? "alert" : void 0,
277
+ className: chunkL5VQZZVR_cjs.cn("text-xs leading-tight mt-1 ", stateMessageClasses[state], helperClassName),
278
+ children: stateMessage
279
+ }
280
+ )
281
+ ]
282
+ }
283
+ );
284
+ });
285
+ Email.displayName = "Email";
286
+
287
+ exports.Email = Email;
@@ -0,0 +1,64 @@
1
+ import { TextInput } from './chunk-CMER5LO3.mjs';
2
+ import { forwardRef, useState, useEffect } from 'react';
3
+ import { MagnifyingGlassIcon } from '@heroicons/react/24/outline';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var SearchInput = forwardRef(
7
+ ({
8
+ debounce = 300,
9
+ onDebouncedChange,
10
+ onChange,
11
+ value: valueProp,
12
+ defaultValue,
13
+ clearable = true,
14
+ leftElement,
15
+ ...rest
16
+ }, ref) => {
17
+ const [innerValue, setInnerValue] = useState(
18
+ valueProp ?? defaultValue ?? ""
19
+ );
20
+ const [prevValueProp, setPrevValueProp] = useState(valueProp);
21
+ const [lastEmittedValue, setLastEmittedValue] = useState(
22
+ String(valueProp ?? defaultValue ?? "")
23
+ );
24
+ if (valueProp !== prevValueProp) {
25
+ setInnerValue(valueProp ?? "");
26
+ setPrevValueProp(valueProp);
27
+ setLastEmittedValue(String(valueProp ?? ""));
28
+ }
29
+ useEffect(() => {
30
+ if (String(innerValue) === lastEmittedValue) return;
31
+ const timer = setTimeout(() => {
32
+ if (onDebouncedChange) {
33
+ onDebouncedChange(String(innerValue));
34
+ setLastEmittedValue(String(innerValue));
35
+ }
36
+ }, debounce);
37
+ return () => {
38
+ clearTimeout(timer);
39
+ };
40
+ }, [innerValue, debounce, onDebouncedChange, lastEmittedValue]);
41
+ const handleChange = (e) => {
42
+ setInnerValue(e.target.value);
43
+ if (onChange) {
44
+ onChange(e);
45
+ }
46
+ };
47
+ const defaultSearchIcon = /* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "w-[18px] h-[18px] text-text-muted" });
48
+ return /* @__PURE__ */ jsx(
49
+ TextInput,
50
+ {
51
+ ...rest,
52
+ ref,
53
+ value: innerValue,
54
+ onChange: handleChange,
55
+ clearable,
56
+ leftElement: leftElement ?? defaultSearchIcon,
57
+ type: "text"
58
+ }
59
+ );
60
+ }
61
+ );
62
+ SearchInput.displayName = "SearchInput";
63
+
64
+ export { SearchInput };
@@ -0,0 +1,336 @@
1
+ import { cn } from './chunk-OCPFOFJ4.mjs';
2
+ import { forwardRef, useId } from 'react';
3
+ import { XMarkIcon } from '@heroicons/react/24/outline';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var sizeClasses = {
7
+ xs: "h-6 px-2 text-xs",
8
+ sm: "h-8 px-3 text-sm",
9
+ md: "h-10 px-3 text-sm",
10
+ lg: "h-11 px-4 text-base",
11
+ xl: "h-12 px-4 text-lg"
12
+ };
13
+ var labelSizeClasses = {
14
+ xs: "text-xs",
15
+ sm: "text-xs",
16
+ md: "text-sm",
17
+ lg: "text-sm",
18
+ xl: "text-base"
19
+ };
20
+ var variantClasses = {
21
+ default: "rounded-md border border-border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",
22
+ filled: "rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",
23
+ flushed: "rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",
24
+ unstyled: "border-0 bg-transparent p-0 focus:outline-none focus:ring-0"
25
+ };
26
+ var stateVariantClasses = {
27
+ default: {
28
+ default: "border-border focus:border-primary focus:ring-primary/40",
29
+ filled: "focus:border-primary focus:ring-primary/40",
30
+ flushed: "border-border focus:border-primary",
31
+ unstyled: ""
32
+ },
33
+ error: {
34
+ default: "border-error focus:border-error focus:ring-error/20",
35
+ filled: "bg-error/5 focus:border-error focus:ring-error/20",
36
+ flushed: "border-error focus:border-error",
37
+ unstyled: ""
38
+ },
39
+ success: {
40
+ default: "border-success focus:border-success focus:ring-success/20",
41
+ filled: "bg-success/5 focus:border-success focus:ring-success/20",
42
+ flushed: "border-success focus:border-success",
43
+ unstyled: ""
44
+ },
45
+ warning: {
46
+ default: "border-warning focus:border-warning focus:ring-warning/20",
47
+ filled: "bg-warning/5 focus:border-warning focus:ring-warning/20",
48
+ flushed: "border-warning focus:border-warning",
49
+ unstyled: ""
50
+ }
51
+ };
52
+ var stateMessageClasses = {
53
+ default: "text-text-muted",
54
+ error: "text-error font-medium",
55
+ success: "text-success font-medium",
56
+ warning: "text-warning font-medium"
57
+ };
58
+ var disabledClasses = "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";
59
+ function getAddonPadding(hasLeft, hasRight, size) {
60
+ const leftPad = {
61
+ xs: "pl-6",
62
+ sm: "pl-8",
63
+ md: "pl-9",
64
+ lg: "pl-10",
65
+ xl: "pl-11"
66
+ };
67
+ const rightPad = {
68
+ xs: "pr-8",
69
+ sm: "pr-10",
70
+ md: "pr-11",
71
+ lg: "pr-12",
72
+ xl: "pr-12"
73
+ };
74
+ const parts = [];
75
+ if (hasLeft) parts.push(leftPad[size]);
76
+ if (hasRight) parts.push(rightPad[size]);
77
+ return parts.join(" ");
78
+ }
79
+ function getStateMessage(state, errorMessage, successMessage, warningMessage) {
80
+ if (state === "error" && errorMessage) return errorMessage;
81
+ if (state === "success" && successMessage) return successMessage;
82
+ if (state === "warning" && warningMessage) return warningMessage;
83
+ return void 0;
84
+ }
85
+ function AddonIcon({
86
+ children,
87
+ side,
88
+ size,
89
+ pointerEvents = false
90
+ }) {
91
+ const iconSizeClasses = {
92
+ xs: "w-3.5 h-3.5",
93
+ sm: "w-4 h-4",
94
+ md: "w-4 h-4",
95
+ lg: "w-5 h-5",
96
+ xl: "w-5 h-5"
97
+ };
98
+ return /* @__PURE__ */ jsx(
99
+ "span",
100
+ {
101
+ "aria-hidden": "true",
102
+ className: cn(
103
+ "absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",
104
+ !pointerEvents && "pointer-events-none",
105
+ side === "left" ? "left-3" : "right-3",
106
+ iconSizeClasses[size]
107
+ ),
108
+ children
109
+ }
110
+ );
111
+ }
112
+ function Addon({ children, side }) {
113
+ return /* @__PURE__ */ jsx(
114
+ "span",
115
+ {
116
+ "aria-hidden": "true",
117
+ className: cn(
118
+ "inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",
119
+ side === "left" ? "rounded-l-md border-r-0" : "rounded-r-md border-l-0"
120
+ ),
121
+ children
122
+ }
123
+ );
124
+ }
125
+ var TimePicker = forwardRef(function TimePicker2({
126
+ label,
127
+ required = false,
128
+ helperText,
129
+ errorMessage,
130
+ successMessage,
131
+ warningMessage,
132
+ variant = "default",
133
+ size = "md",
134
+ state = "default",
135
+ fullWidth = true,
136
+ leftElement,
137
+ rightElement,
138
+ prefix,
139
+ suffix,
140
+ wrapperClassName,
141
+ inputGroupClassName,
142
+ inputClassName,
143
+ labelClassName,
144
+ helperClassName,
145
+ id: idProp,
146
+ disabled,
147
+ className,
148
+ clearable,
149
+ isLoading,
150
+ value,
151
+ onChange,
152
+ ...rest
153
+ }, ref) {
154
+ const generatedId = useId();
155
+ const inputId = idProp ?? generatedId;
156
+ const helperId = `${inputId}-helper`;
157
+ const stateMessageId = `${inputId}-state`;
158
+ const isValueString = typeof value === "string";
159
+ const showClear = clearable && isValueString && value.length > 0;
160
+ const hasLeftElement = leftElement !== void 0;
161
+ const hasRightElement = rightElement !== void 0 || Boolean(showClear) || Boolean(isLoading);
162
+ const stateMessage = getStateMessage(state, errorMessage, successMessage, warningMessage);
163
+ const describedBy = [helperText ? helperId : null, stateMessage ? stateMessageId : null].filter(Boolean).join(" ") || void 0;
164
+ const handleClear = () => {
165
+ if (ref && typeof ref !== "function" && ref.current) {
166
+ const descriptor = Reflect.getOwnPropertyDescriptor(
167
+ window.HTMLInputElement.prototype,
168
+ "value"
169
+ );
170
+ const nativeInputValueSetter = descriptor?.set;
171
+ if (nativeInputValueSetter) {
172
+ Reflect.apply(nativeInputValueSetter, ref.current, [""]);
173
+ }
174
+ const event = new Event("input", { bubbles: true });
175
+ ref.current.dispatchEvent(event);
176
+ } else if (onChange) {
177
+ const e = {
178
+ target: { value: "" },
179
+ currentTarget: { value: "" },
180
+ preventDefault: () => {
181
+ },
182
+ stopPropagation: () => {
183
+ }
184
+ };
185
+ onChange(e);
186
+ }
187
+ };
188
+ const renderRightIcon = () => {
189
+ if (isLoading) {
190
+ return /* @__PURE__ */ jsxs(
191
+ "svg",
192
+ {
193
+ className: "animate-spin h-full w-full text-text-muted",
194
+ xmlns: "http://www.w3.org/2000/svg",
195
+ fill: "none",
196
+ viewBox: "0 0 24 24",
197
+ children: [
198
+ /* @__PURE__ */ jsx(
199
+ "circle",
200
+ {
201
+ className: "opacity-25",
202
+ cx: "12",
203
+ cy: "12",
204
+ r: "10",
205
+ stroke: "currentColor",
206
+ strokeWidth: "4"
207
+ }
208
+ ),
209
+ /* @__PURE__ */ jsx(
210
+ "path",
211
+ {
212
+ className: "opacity-75",
213
+ fill: "currentColor",
214
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
215
+ }
216
+ )
217
+ ]
218
+ }
219
+ );
220
+ }
221
+ if (showClear) {
222
+ return /* @__PURE__ */ jsx(
223
+ "button",
224
+ {
225
+ type: "button",
226
+ onClick: handleClear,
227
+ className: "pointer-events-auto flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast",
228
+ "aria-label": "Clear time",
229
+ children: /* @__PURE__ */ jsx(XMarkIcon, { className: "w-full h-full", strokeWidth: 2.5 })
230
+ }
231
+ );
232
+ }
233
+ return rightElement;
234
+ };
235
+ const inputElement = /* @__PURE__ */ jsx(
236
+ "input",
237
+ {
238
+ ref,
239
+ id: inputId,
240
+ disabled: Boolean(disabled) || Boolean(isLoading),
241
+ type: "time",
242
+ value,
243
+ onChange,
244
+ "aria-invalid": state === "error" ? true : void 0,
245
+ "aria-describedby": describedBy,
246
+ "aria-required": required,
247
+ className: cn(
248
+ "w-full transition-colors duration-150",
249
+ "[&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-60 hover:[&::-webkit-calendar-picker-indicator]:opacity-100",
250
+ sizeClasses[size],
251
+ variantClasses[variant],
252
+ stateVariantClasses[state][variant],
253
+ disabledClasses,
254
+ getAddonPadding(hasLeftElement, hasRightElement, size),
255
+ inputClassName
256
+ ),
257
+ ...rest
258
+ }
259
+ );
260
+ return /* @__PURE__ */ jsxs(
261
+ "div",
262
+ {
263
+ className: cn(
264
+ "flex flex-col gap-1",
265
+ fullWidth ? "w-full" : "w-fit",
266
+ wrapperClassName,
267
+ className
268
+ ),
269
+ children: [
270
+ label !== void 0 && /* @__PURE__ */ jsxs(
271
+ "label",
272
+ {
273
+ htmlFor: inputId,
274
+ className: cn(
275
+ "font-black leading-none text-text uppercase tracking-widest",
276
+ labelSizeClasses[size],
277
+ labelClassName
278
+ ),
279
+ children: [
280
+ label,
281
+ required && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ml-1 text-error", children: "*" })
282
+ ]
283
+ }
284
+ ),
285
+ /* @__PURE__ */ jsxs(
286
+ "div",
287
+ {
288
+ className: cn("flex items-stretch", fullWidth ? "w-full" : "w-fit", inputGroupClassName),
289
+ children: [
290
+ prefix !== void 0 && /* @__PURE__ */ jsx(Addon, { side: "left", children: prefix }),
291
+ /* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 items-center", children: [
292
+ hasLeftElement && /* @__PURE__ */ jsx(AddonIcon, { side: "left", size, children: leftElement }),
293
+ /* @__PURE__ */ jsx(
294
+ "div",
295
+ {
296
+ className: cn(
297
+ "flex-1",
298
+ prefix !== void 0 && suffix !== void 0 ? "[&>input]:rounded-none" : prefix !== void 0 ? "[&>input]:rounded-l-none" : suffix !== void 0 ? "[&>input]:rounded-r-none" : ""
299
+ ),
300
+ children: inputElement
301
+ }
302
+ ),
303
+ hasRightElement && /* @__PURE__ */ jsx(AddonIcon, { side: "right", size, pointerEvents: !rightElement && Boolean(showClear), children: renderRightIcon() })
304
+ ] }),
305
+ suffix !== void 0 && /* @__PURE__ */ jsx(Addon, { side: "right", children: suffix })
306
+ ]
307
+ }
308
+ ),
309
+ helperText !== void 0 && /* @__PURE__ */ jsx(
310
+ "p",
311
+ {
312
+ id: helperId,
313
+ className: cn("text-xs leading-tight text-text-muted font-medium", helperClassName),
314
+ children: helperText
315
+ }
316
+ ),
317
+ stateMessage !== void 0 && /* @__PURE__ */ jsx(
318
+ "p",
319
+ {
320
+ id: stateMessageId,
321
+ role: state === "error" ? "alert" : void 0,
322
+ className: cn(
323
+ "text-xs leading-tight mt-1 font-medium",
324
+ stateMessageClasses[state],
325
+ helperClassName
326
+ ),
327
+ children: stateMessage
328
+ }
329
+ )
330
+ ]
331
+ }
332
+ );
333
+ });
334
+ TimePicker.displayName = "TimePicker";
335
+
336
+ export { TimePicker };