@bricks-toolkit/toolkit 0.1.0 → 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 (385) hide show
  1. package/README.md +9 -9
  2. package/dist/{components/Button/Button.types.d.ts → Button.types-BsQYqZml.d.ts} +8 -5
  3. package/dist/Button.types-D-srlWFf.d.mts +27 -0
  4. package/dist/{components/TextInput/TextInput.types.d.ts → TextInput.types-DRI8HQza.d.mts} +8 -5
  5. package/dist/TextInput.types-DRI8HQza.d.ts +32 -0
  6. package/dist/{components/Tooltip/Tooltip.types.d.ts → Tooltip.types-PbUasE3C.d.mts} +9 -6
  7. package/dist/Tooltip.types-PbUasE3C.d.ts +36 -0
  8. package/dist/avatar/index.cjs +11 -0
  9. package/dist/{components/Avatar/Avatar.types.d.ts → avatar/index.d.mts} +10 -5
  10. package/dist/avatar/index.d.ts +29 -0
  11. package/dist/avatar/index.mjs +2 -0
  12. package/dist/badge/index.cjs +11 -0
  13. package/dist/{components/Badge/Badge.types.d.ts → badge/index.d.mts} +20 -6
  14. package/dist/badge/index.d.ts +57 -0
  15. package/dist/badge/index.mjs +2 -0
  16. package/dist/breadcrumbs/index.cjs +11 -0
  17. package/dist/{components/Breadcrumbs/Breadcrumbs.types.d.ts → breadcrumbs/index.d.mts} +10 -5
  18. package/dist/breadcrumbs/index.d.ts +32 -0
  19. package/dist/breadcrumbs/index.mjs +2 -0
  20. package/dist/button/index.cjs +13 -0
  21. package/dist/button/index.d.mts +8 -0
  22. package/dist/button/index.d.ts +8 -0
  23. package/dist/button/index.mjs +4 -0
  24. package/dist/card/index.cjs +31 -0
  25. package/dist/card/index.d.mts +42 -0
  26. package/dist/card/index.d.ts +42 -0
  27. package/dist/card/index.mjs +2 -0
  28. package/dist/checkbox/index.cjs +11 -0
  29. package/dist/{components/Checkbox/Checkbox.types.d.ts → checkbox/index.d.mts} +9 -4
  30. package/dist/checkbox/index.d.ts +36 -0
  31. package/dist/checkbox/index.mjs +2 -0
  32. package/dist/chunk-2POU3NX4.mjs +192 -0
  33. package/dist/chunk-32SKYPQW.mjs +156 -0
  34. package/dist/chunk-446OJWC6.mjs +285 -0
  35. package/dist/chunk-4DA7CRNV.mjs +376 -0
  36. package/dist/chunk-4DR57X7U.mjs +182 -0
  37. package/dist/chunk-4QSDPHPI.mjs +285 -0
  38. package/dist/chunk-56ILK7Y4.cjs +315 -0
  39. package/dist/chunk-5J3OMAO4.cjs +222 -0
  40. package/dist/chunk-5RKET2JO.cjs +287 -0
  41. package/dist/chunk-65UZC3FK.mjs +312 -0
  42. package/dist/chunk-6CC5KIA5.cjs +148 -0
  43. package/dist/chunk-6R3OYBQ6.cjs +209 -0
  44. package/dist/chunk-6UO72EJA.cjs +2 -0
  45. package/dist/chunk-6ZCY4O5M.mjs +63 -0
  46. package/dist/chunk-7364SUK6.mjs +359 -0
  47. package/dist/chunk-7DDDQ3RH.cjs +66 -0
  48. package/dist/chunk-7PDGAIC3.cjs +189 -0
  49. package/dist/chunk-7R5JRJ2W.cjs +255 -0
  50. package/dist/chunk-7WNJ7L4Z.mjs +335 -0
  51. package/dist/chunk-AJXVELXK.cjs +218 -0
  52. package/dist/chunk-ARTXRQO6.mjs +1 -0
  53. package/dist/chunk-B4OV5GRT.cjs +510 -0
  54. package/dist/chunk-B5MYGYJY.mjs +122 -0
  55. package/dist/chunk-BBVWG5GH.cjs +75 -0
  56. package/dist/chunk-BVBCAAES.mjs +35 -0
  57. package/dist/chunk-CBA54EY4.mjs +508 -0
  58. package/dist/chunk-CMER5LO3.mjs +330 -0
  59. package/dist/chunk-DHC5LI2P.cjs +338 -0
  60. package/dist/chunk-DMLPA65B.mjs +107 -0
  61. package/dist/chunk-DN2GFJF4.mjs +175 -0
  62. package/dist/chunk-ECLNLPOR.cjs +70 -0
  63. package/dist/chunk-EV463QT5.cjs +53 -0
  64. package/dist/chunk-FOVJHEWH.mjs +51 -0
  65. package/dist/chunk-G4HVY6FM.mjs +203 -0
  66. package/dist/chunk-H77YWN3L.mjs +220 -0
  67. package/dist/chunk-HIWJDLIS.cjs +124 -0
  68. package/dist/chunk-HQGDSOSN.mjs +274 -0
  69. package/dist/chunk-JKPNJ4PZ.mjs +313 -0
  70. package/dist/chunk-JV6AWBN5.mjs +113 -0
  71. package/dist/chunk-KA35BV7V.mjs +207 -0
  72. package/dist/chunk-KLBABQEJ.cjs +378 -0
  73. package/dist/chunk-L5VQZZVR.cjs +3197 -0
  74. package/dist/chunk-LTG6YP5I.cjs +69 -0
  75. package/dist/chunk-MVUNJPGH.cjs +184 -0
  76. package/dist/chunk-NMJ5CVZH.cjs +2 -0
  77. package/dist/chunk-NRCNRHXL.cjs +109 -0
  78. package/dist/chunk-NRZIXK35.cjs +276 -0
  79. package/dist/chunk-OCPFOFJ4.mjs +3195 -0
  80. package/dist/chunk-OEU5VG3D.cjs +362 -0
  81. package/dist/chunk-OPOCCRJG.cjs +193 -0
  82. package/dist/chunk-OQPCL5XX.mjs +187 -0
  83. package/dist/chunk-PCYGJNEQ.cjs +280 -0
  84. package/dist/chunk-PJH2KEWK.mjs +200 -0
  85. package/dist/chunk-PJWELBN2.cjs +115 -0
  86. package/dist/chunk-Q3IFXFFD.cjs +202 -0
  87. package/dist/chunk-R72GDCWE.cjs +314 -0
  88. package/dist/chunk-RAD5VJHR.mjs +146 -0
  89. package/dist/chunk-RYWDZHKG.mjs +274 -0
  90. package/dist/chunk-S7VEND5Z.cjs +162 -0
  91. package/dist/chunk-SBNNV6FE.mjs +1 -0
  92. package/dist/chunk-SFUOCZJY.mjs +187 -0
  93. package/dist/chunk-SHQ2MPBE.mjs +73 -0
  94. package/dist/chunk-TIVSMCXZ.mjs +253 -0
  95. package/dist/chunk-TNGW5YHA.cjs +37 -0
  96. package/dist/chunk-VC7MOPU6.cjs +287 -0
  97. package/dist/chunk-VHVFRWF5.mjs +64 -0
  98. package/dist/chunk-VKQDW7C2.mjs +336 -0
  99. package/dist/chunk-VRZFAKSV.cjs +177 -0
  100. package/dist/chunk-W2ZAPLQH.cjs +337 -0
  101. package/dist/chunk-XFNRKHHF.cjs +332 -0
  102. package/dist/chunk-Y3NTKFUE.mjs +66 -0
  103. package/dist/chunk-Y6AN7AWX.cjs +205 -0
  104. package/dist/chunk-YMMNWJT6.cjs +134 -0
  105. package/dist/chunk-YOTCXSXL.mjs +132 -0
  106. package/dist/combo-box/index.cjs +11 -0
  107. package/dist/{components/ComboBox/ComboBox.types.d.ts → combo-box/index.d.mts} +10 -5
  108. package/dist/combo-box/index.d.ts +62 -0
  109. package/dist/combo-box/index.mjs +2 -0
  110. package/dist/date-picker/index.cjs +11 -0
  111. package/dist/date-picker/index.d.mts +32 -0
  112. package/dist/date-picker/index.d.ts +32 -0
  113. package/dist/date-picker/index.mjs +2 -0
  114. package/dist/dialog/index.cjs +27 -0
  115. package/dist/{components/Dialog/Dialog.types.d.ts → dialog/index.d.mts} +16 -7
  116. package/dist/dialog/index.d.ts +61 -0
  117. package/dist/dialog/index.mjs +2 -0
  118. package/dist/dropdown-menu/index.cjs +27 -0
  119. package/dist/dropdown-menu/index.d.mts +34 -0
  120. package/dist/dropdown-menu/index.d.ts +34 -0
  121. package/dist/dropdown-menu/index.mjs +2 -0
  122. package/dist/email/index.cjs +11 -0
  123. package/dist/{components/Email/Email.types.d.ts → email/index.d.mts} +10 -5
  124. package/dist/email/index.d.ts +38 -0
  125. package/dist/email/index.mjs +2 -0
  126. package/dist/file-upload/index.cjs +11 -0
  127. package/dist/file-upload/index.d.mts +27 -0
  128. package/dist/file-upload/index.d.ts +27 -0
  129. package/dist/file-upload/index.mjs +2 -0
  130. package/dist/header/index.cjs +14 -0
  131. package/dist/{components/Header/Header.types.d.ts → header/index.d.mts} +11 -2
  132. package/dist/header/index.d.ts +28 -0
  133. package/dist/header/index.mjs +5 -0
  134. package/dist/icon-button/index.cjs +13 -0
  135. package/dist/icon-button/index.d.mts +16 -0
  136. package/dist/icon-button/index.d.ts +16 -0
  137. package/dist/icon-button/index.mjs +4 -0
  138. package/dist/image/index.cjs +12 -0
  139. package/dist/{components/Image/Image.types.d.ts → image/index.d.mts} +10 -2
  140. package/dist/image/index.d.ts +48 -0
  141. package/dist/image/index.mjs +3 -0
  142. package/dist/index.cjs +839 -0
  143. package/dist/index.d.mts +141 -0
  144. package/dist/index.d.ts +141 -75
  145. package/dist/index.mjs +601 -0
  146. package/dist/link/index.cjs +11 -0
  147. package/dist/{components/Link/Link.types.d.ts → link/index.d.mts} +10 -5
  148. package/dist/link/index.d.ts +25 -0
  149. package/dist/link/index.mjs +2 -0
  150. package/dist/loader/index.cjs +11 -0
  151. package/dist/{components/Loader/Loader.types.d.ts → loader/index.d.mts} +8 -4
  152. package/dist/loader/index.d.ts +21 -0
  153. package/dist/loader/index.mjs +2 -0
  154. package/dist/modal/index.cjs +27 -0
  155. package/dist/{components/Modal/Modal.types.d.ts → modal/index.d.mts} +25 -9
  156. package/dist/modal/index.d.ts +116 -0
  157. package/dist/modal/index.mjs +2 -0
  158. package/dist/multi-select/index.cjs +11 -0
  159. package/dist/{components/MultiSelect/MultiSelect.types.d.ts → multi-select/index.d.mts} +9 -5
  160. package/dist/multi-select/index.d.ts +59 -0
  161. package/dist/multi-select/index.mjs +2 -0
  162. package/dist/otp-input/index.cjs +11 -0
  163. package/dist/{components/OtpInput/OtpInput.types.d.ts → otp-input/index.d.mts} +8 -4
  164. package/dist/otp-input/index.d.ts +57 -0
  165. package/dist/otp-input/index.mjs +2 -0
  166. package/dist/password-input/index.cjs +11 -0
  167. package/dist/password-input/index.d.mts +32 -0
  168. package/dist/password-input/index.d.ts +32 -0
  169. package/dist/password-input/index.mjs +2 -0
  170. package/dist/phone/index.cjs +11 -0
  171. package/dist/{components/Phone/Phone.types.d.ts → phone/index.d.mts} +11 -6
  172. package/dist/phone/index.d.ts +41 -0
  173. package/dist/phone/index.mjs +2 -0
  174. package/dist/radio-button/index.cjs +11 -0
  175. package/dist/{components/RadioButton/RadioButton.types.d.ts → radio-button/index.d.mts} +9 -4
  176. package/dist/radio-button/index.d.ts +56 -0
  177. package/dist/radio-button/index.mjs +2 -0
  178. package/dist/search-input/index.cjs +12 -0
  179. package/dist/search-input/index.d.mts +22 -0
  180. package/dist/search-input/index.d.ts +22 -0
  181. package/dist/search-input/index.mjs +3 -0
  182. package/dist/select/index.cjs +11 -0
  183. package/dist/{components/Select/Select.types.d.ts → select/index.d.mts} +11 -6
  184. package/dist/select/index.d.ts +36 -0
  185. package/dist/select/index.mjs +2 -0
  186. package/dist/sidebar/index.cjs +11 -0
  187. package/dist/{components/Sidebar/Sidebar.types.d.ts → sidebar/index.d.mts} +15 -6
  188. package/dist/sidebar/index.d.ts +96 -0
  189. package/dist/sidebar/index.mjs +2 -0
  190. package/dist/skeleton/index.cjs +27 -0
  191. package/dist/skeleton/index.d.mts +76 -0
  192. package/dist/skeleton/index.d.ts +76 -0
  193. package/dist/skeleton/index.mjs +2 -0
  194. package/dist/styles.css +5075 -0
  195. package/dist/styles.d.mts +2 -0
  196. package/dist/styles.d.ts +2 -0
  197. package/dist/table/index.cjs +15 -0
  198. package/dist/{components/Table/Table.types.d.ts → table/index.d.mts} +16 -9
  199. package/dist/table/index.d.ts +92 -0
  200. package/dist/table/index.mjs +2 -0
  201. package/dist/tabs/index.cjs +14 -0
  202. package/dist/tabs/index.d.mts +26 -0
  203. package/dist/tabs/index.d.ts +26 -0
  204. package/dist/tabs/index.mjs +5 -0
  205. package/dist/text-input/index.cjs +11 -0
  206. package/dist/text-input/index.d.mts +7 -0
  207. package/dist/text-input/index.d.ts +7 -0
  208. package/dist/text-input/index.mjs +2 -0
  209. package/dist/theme-provider/index.cjs +14 -0
  210. package/dist/{components/ThemeProvider/ThemeProvider.types.d.ts → theme-provider/index.d.mts} +16 -6
  211. package/dist/theme-provider/index.d.ts +122 -0
  212. package/dist/theme-provider/index.mjs +1 -0
  213. package/dist/time-picker/index.cjs +11 -0
  214. package/dist/time-picker/index.d.mts +32 -0
  215. package/dist/time-picker/index.d.ts +32 -0
  216. package/dist/time-picker/index.mjs +2 -0
  217. package/dist/toaster/index.cjs +11 -0
  218. package/dist/{components/Toaster/Toaster.types.d.ts → toaster/index.d.mts} +9 -4
  219. package/dist/toaster/index.d.ts +28 -0
  220. package/dist/toaster/index.mjs +2 -0
  221. package/dist/tooltip/index.cjs +12 -0
  222. package/dist/tooltip/index.d.mts +7 -0
  223. package/dist/tooltip/index.d.ts +7 -0
  224. package/dist/tooltip/index.mjs +3 -0
  225. package/package.json +78 -95
  226. package/dist/components/Accordion/Accordion.d.ts +0 -5
  227. package/dist/components/Accordion/Accordion.types.d.ts +0 -32
  228. package/dist/components/Accordion/index.d.ts +0 -2
  229. package/dist/components/Avatar/Avatar.d.ts +0 -2
  230. package/dist/components/Avatar/Avatar.stories.d.ts +0 -11
  231. package/dist/components/Avatar/Avatar.test.d.ts +0 -1
  232. package/dist/components/Avatar/index.d.ts +0 -2
  233. package/dist/components/Badge/Badge.d.ts +0 -11
  234. package/dist/components/Badge/Badge.stories.d.ts +0 -21
  235. package/dist/components/Badge/Badge.test.d.ts +0 -1
  236. package/dist/components/Badge/index.d.ts +0 -2
  237. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  238. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -13
  239. package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
  240. package/dist/components/Breadcrumbs/index.d.ts +0 -2
  241. package/dist/components/Button/Button.d.ts +0 -2
  242. package/dist/components/Button/Button.stories.d.ts +0 -20
  243. package/dist/components/Button/Button.test.d.ts +0 -1
  244. package/dist/components/Button/index.d.ts +0 -2
  245. package/dist/components/Card/Card.d.ts +0 -25
  246. package/dist/components/Card/Card.stories.d.ts +0 -8
  247. package/dist/components/Card/Card.test.d.ts +0 -1
  248. package/dist/components/Card/Card.types.d.ts +0 -14
  249. package/dist/components/Card/index.d.ts +0 -2
  250. package/dist/components/Checkbox/Checkbox.d.ts +0 -2
  251. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -16
  252. package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
  253. package/dist/components/Checkbox/index.d.ts +0 -2
  254. package/dist/components/ComboBox/ComboBox.d.ts +0 -2
  255. package/dist/components/ComboBox/ComboBox.stories.d.ts +0 -12
  256. package/dist/components/ComboBox/ComboBox.test.d.ts +0 -1
  257. package/dist/components/ComboBox/index.d.ts +0 -2
  258. package/dist/components/DatePicker/DatePicker.d.ts +0 -2
  259. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -25
  260. package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
  261. package/dist/components/DatePicker/DatePicker.types.d.ts +0 -27
  262. package/dist/components/DatePicker/index.d.ts +0 -2
  263. package/dist/components/Dialog/Dialog.d.ts +0 -6
  264. package/dist/components/Dialog/Dialog.stories.d.ts +0 -9
  265. package/dist/components/Dialog/Dialog.test.d.ts +0 -1
  266. package/dist/components/Dialog/index.d.ts +0 -2
  267. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -7
  268. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -9
  269. package/dist/components/DropdownMenu/DropdownMenu.test.d.ts +0 -1
  270. package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +0 -24
  271. package/dist/components/DropdownMenu/index.d.ts +0 -2
  272. package/dist/components/Email/Email.d.ts +0 -2
  273. package/dist/components/Email/Email.stories.d.ts +0 -11
  274. package/dist/components/Email/Email.test.d.ts +0 -1
  275. package/dist/components/Email/index.d.ts +0 -2
  276. package/dist/components/FileUpload/FileUpload.d.ts +0 -2
  277. package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -10
  278. package/dist/components/FileUpload/FileUpload.test.d.ts +0 -1
  279. package/dist/components/FileUpload/FileUpload.types.d.ts +0 -22
  280. package/dist/components/FileUpload/index.d.ts +0 -2
  281. package/dist/components/Header/Header.d.ts +0 -7
  282. package/dist/components/Header/Header.stories.d.ts +0 -8
  283. package/dist/components/Header/Header.test.d.ts +0 -1
  284. package/dist/components/Header/index.d.ts +0 -2
  285. package/dist/components/IconButton/IconButton.d.ts +0 -2
  286. package/dist/components/IconButton/IconButton.stories.d.ts +0 -17
  287. package/dist/components/IconButton/IconButton.types.d.ts +0 -10
  288. package/dist/components/IconButton/index.d.ts +0 -2
  289. package/dist/components/Image/Image.d.ts +0 -6
  290. package/dist/components/Image/Image.stories.d.ts +0 -13
  291. package/dist/components/Image/Image.test.d.ts +0 -1
  292. package/dist/components/Image/index.d.ts +0 -2
  293. package/dist/components/Link/Link.d.ts +0 -2
  294. package/dist/components/Link/Link.stories.d.ts +0 -15
  295. package/dist/components/Link/Link.test.d.ts +0 -1
  296. package/dist/components/Link/index.d.ts +0 -2
  297. package/dist/components/Loader/Loader.d.ts +0 -2
  298. package/dist/components/Loader/Loader.stories.d.ts +0 -12
  299. package/dist/components/Loader/Loader.test.d.ts +0 -1
  300. package/dist/components/Loader/index.d.ts +0 -2
  301. package/dist/components/Modal/Modal.d.ts +0 -14
  302. package/dist/components/Modal/Modal.stories.d.ts +0 -14
  303. package/dist/components/Modal/Modal.test.d.ts +0 -1
  304. package/dist/components/Modal/index.d.ts +0 -2
  305. package/dist/components/MultiSelect/MultiSelect.d.ts +0 -2
  306. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -15
  307. package/dist/components/MultiSelect/MultiSelect.test.d.ts +0 -1
  308. package/dist/components/MultiSelect/index.d.ts +0 -2
  309. package/dist/components/OtpInput/OtpInput.d.ts +0 -2
  310. package/dist/components/OtpInput/OtpInput.stories.d.ts +0 -10
  311. package/dist/components/OtpInput/OtpInput.test.d.ts +0 -1
  312. package/dist/components/OtpInput/index.d.ts +0 -2
  313. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
  314. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -23
  315. package/dist/components/PasswordInput/PasswordInput.test.d.ts +0 -1
  316. package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -27
  317. package/dist/components/PasswordInput/index.d.ts +0 -2
  318. package/dist/components/Phone/Phone.d.ts +0 -2
  319. package/dist/components/Phone/Phone.stories.d.ts +0 -11
  320. package/dist/components/Phone/Phone.test.d.ts +0 -1
  321. package/dist/components/Phone/countries.d.ts +0 -8
  322. package/dist/components/Phone/index.d.ts +0 -2
  323. package/dist/components/RadioButton/RadioButton.d.ts +0 -2
  324. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -21
  325. package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
  326. package/dist/components/RadioButton/index.d.ts +0 -2
  327. package/dist/components/SearchInput/SearchInput.d.ts +0 -6
  328. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -8
  329. package/dist/components/SearchInput/SearchInput.test.d.ts +0 -1
  330. package/dist/components/SearchInput/SearchInput.types.d.ts +0 -12
  331. package/dist/components/SearchInput/index.d.ts +0 -2
  332. package/dist/components/Select/Select.d.ts +0 -2
  333. package/dist/components/Select/Select.stories.d.ts +0 -12
  334. package/dist/components/Select/Select.test.d.ts +0 -1
  335. package/dist/components/Select/index.d.ts +0 -2
  336. package/dist/components/Sidebar/Sidebar.d.ts +0 -7
  337. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -10
  338. package/dist/components/Sidebar/Sidebar.test.d.ts +0 -1
  339. package/dist/components/Sidebar/index.d.ts +0 -2
  340. package/dist/components/Skeleton/Skeleton.d.ts +0 -26
  341. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -13
  342. package/dist/components/Skeleton/Skeleton.types.d.ts +0 -47
  343. package/dist/components/Skeleton/index.d.ts +0 -2
  344. package/dist/components/Stepper/Stepper.d.ts +0 -2
  345. package/dist/components/Stepper/Stepper.stories.d.ts +0 -23
  346. package/dist/components/Stepper/Stepper.test.d.ts +0 -1
  347. package/dist/components/Stepper/Stepper.types.d.ts +0 -47
  348. package/dist/components/Stepper/index.d.ts +0 -2
  349. package/dist/components/Table/Pagination.d.ts +0 -3
  350. package/dist/components/Table/Table.d.ts +0 -3
  351. package/dist/components/Table/Table.stories.d.ts +0 -13
  352. package/dist/components/Table/Table.test.d.ts +0 -1
  353. package/dist/components/Table/index.d.ts +0 -3
  354. package/dist/components/Tabs/Tabs.d.ts +0 -2
  355. package/dist/components/Tabs/Tabs.stories.d.ts +0 -17
  356. package/dist/components/Tabs/Tabs.test.d.ts +0 -1
  357. package/dist/components/Tabs/Tabs.types.d.ts +0 -21
  358. package/dist/components/Tabs/index.d.ts +0 -2
  359. package/dist/components/TextInput/TextInput.d.ts +0 -2
  360. package/dist/components/TextInput/TextInput.stories.d.ts +0 -25
  361. package/dist/components/TextInput/TextInput.test.d.ts +0 -1
  362. package/dist/components/TextInput/index.d.ts +0 -2
  363. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -8
  364. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -16
  365. package/dist/components/ThemeProvider/ThemeProvider.test.d.ts +0 -1
  366. package/dist/components/ThemeProvider/index.d.ts +0 -2
  367. package/dist/components/TimePicker/TimePicker.d.ts +0 -2
  368. package/dist/components/TimePicker/TimePicker.stories.d.ts +0 -23
  369. package/dist/components/TimePicker/TimePicker.test.d.ts +0 -1
  370. package/dist/components/TimePicker/TimePicker.types.d.ts +0 -27
  371. package/dist/components/TimePicker/index.d.ts +0 -2
  372. package/dist/components/Toaster/Toaster.d.ts +0 -2
  373. package/dist/components/Toaster/Toaster.stories.d.ts +0 -13
  374. package/dist/components/Toaster/Toaster.test.d.ts +0 -1
  375. package/dist/components/Toaster/index.d.ts +0 -2
  376. package/dist/components/Toggle/Toggle.d.ts +0 -2
  377. package/dist/components/Toggle/Toggle.stories.d.ts +0 -11
  378. package/dist/components/Toggle/Toggle.types.d.ts +0 -10
  379. package/dist/components/Toggle/index.d.ts +0 -2
  380. package/dist/components/Tooltip/Tooltip.d.ts +0 -2
  381. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
  382. package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
  383. package/dist/components/Tooltip/index.d.ts +0 -2
  384. package/dist/utils/cn.d.ts +0 -2
  385. package/dist/utils/index.d.ts +0 -1
package/dist/index.cjs ADDED
@@ -0,0 +1,839 @@
1
+ 'use strict';
2
+
3
+ var chunkPCYGJNEQ_cjs = require('./chunk-PCYGJNEQ.cjs');
4
+ var chunk7DDDQ3RH_cjs = require('./chunk-7DDDQ3RH.cjs');
5
+ var chunkLTG6YP5I_cjs = require('./chunk-LTG6YP5I.cjs');
6
+ require('./chunk-NMJ5CVZH.cjs');
7
+ var chunkY6AN7AWX_cjs = require('./chunk-Y6AN7AWX.cjs');
8
+ var chunkXFNRKHHF_cjs = require('./chunk-XFNRKHHF.cjs');
9
+ var chunkDHC5LI2P_cjs = require('./chunk-DHC5LI2P.cjs');
10
+ var chunkYMMNWJT6_cjs = require('./chunk-YMMNWJT6.cjs');
11
+ var chunkQ3IFXFFD_cjs = require('./chunk-Q3IFXFFD.cjs');
12
+ var chunkEV463QT5_cjs = require('./chunk-EV463QT5.cjs');
13
+ var chunkPJWELBN2_cjs = require('./chunk-PJWELBN2.cjs');
14
+ var chunkTNGW5YHA_cjs = require('./chunk-TNGW5YHA.cjs');
15
+ var chunkS7VEND5Z_cjs = require('./chunk-S7VEND5Z.cjs');
16
+ var chunk56ILK7Y4_cjs = require('./chunk-56ILK7Y4.cjs');
17
+ var chunkNRZIXK35_cjs = require('./chunk-NRZIXK35.cjs');
18
+ var chunk5RKET2JO_cjs = require('./chunk-5RKET2JO.cjs');
19
+ var chunkB4OV5GRT_cjs = require('./chunk-B4OV5GRT.cjs');
20
+ var chunkVRZFAKSV_cjs = require('./chunk-VRZFAKSV.cjs');
21
+ var chunk7R5JRJ2W_cjs = require('./chunk-7R5JRJ2W.cjs');
22
+ var chunkOEU5VG3D_cjs = require('./chunk-OEU5VG3D.cjs');
23
+ var chunkKLBABQEJ_cjs = require('./chunk-KLBABQEJ.cjs');
24
+ var chunkW2ZAPLQH_cjs = require('./chunk-W2ZAPLQH.cjs');
25
+ var chunkOPOCCRJG_cjs = require('./chunk-OPOCCRJG.cjs');
26
+ var chunkAJXVELXK_cjs = require('./chunk-AJXVELXK.cjs');
27
+ var chunkVC7MOPU6_cjs = require('./chunk-VC7MOPU6.cjs');
28
+ var chunk6R3OYBQ6_cjs = require('./chunk-6R3OYBQ6.cjs');
29
+ var chunkBBVWG5GH_cjs = require('./chunk-BBVWG5GH.cjs');
30
+ var chunkMVUNJPGH_cjs = require('./chunk-MVUNJPGH.cjs');
31
+ var chunkHIWJDLIS_cjs = require('./chunk-HIWJDLIS.cjs');
32
+ var chunk5J3OMAO4_cjs = require('./chunk-5J3OMAO4.cjs');
33
+ var chunkNRCNRHXL_cjs = require('./chunk-NRCNRHXL.cjs');
34
+ require('./chunk-6UO72EJA.cjs');
35
+ var chunk6CC5KIA5_cjs = require('./chunk-6CC5KIA5.cjs');
36
+ var chunkR72GDCWE_cjs = require('./chunk-R72GDCWE.cjs');
37
+ var chunkECLNLPOR_cjs = require('./chunk-ECLNLPOR.cjs');
38
+ var chunk7PDGAIC3_cjs = require('./chunk-7PDGAIC3.cjs');
39
+ var chunkL5VQZZVR_cjs = require('./chunk-L5VQZZVR.cjs');
40
+ var react = require('react');
41
+ var jsxRuntime = require('react/jsx-runtime');
42
+ var outline = require('@heroicons/react/24/outline');
43
+
44
+ function deriveStatus(index, currentStep, override) {
45
+ if (override) return override;
46
+ if (index < currentStep) return "completed";
47
+ if (index === currentStep) return "active";
48
+ return "upcoming";
49
+ }
50
+ var indicatorSizeClasses = {
51
+ sm: "w-7 h-7 text-xs",
52
+ md: "w-9 h-9 text-sm",
53
+ lg: "w-11 h-11 text-base"
54
+ };
55
+ var connectorOffsetH = {
56
+ sm: "mt-[14px]",
57
+ // half of h-7 = 28/2
58
+ md: "mt-[18px]",
59
+ // half of h-9 = 36/2
60
+ lg: "mt-[22px]"
61
+ // half of h-11 = 44/2
62
+ };
63
+ var connectorOffsetV = {
64
+ sm: "ml-[13px]",
65
+ // (28-2)/2 = 13
66
+ md: "ml-[17px]",
67
+ // (36-2)/2 = 17
68
+ lg: "ml-[21px]"
69
+ // (44-2)/2 = 21
70
+ };
71
+ var labelSizeClasses = {
72
+ sm: "text-xs",
73
+ md: "text-sm",
74
+ lg: "text-base"
75
+ };
76
+ var descSizeClasses = {
77
+ sm: "text-[10px]",
78
+ md: "text-xs",
79
+ lg: "text-sm"
80
+ };
81
+ var indicatorClasses = {
82
+ default: {
83
+ completed: "bg-primary text-text-inverse shadow-md shadow-primary/30 ring-2 ring-primary/20 ring-offset-2 ring-offset-surface",
84
+ active: "bg-primary text-text-inverse shadow-lg shadow-primary/40 ring-2 ring-primary/30 ring-offset-2 ring-offset-surface scale-110",
85
+ upcoming: "bg-surface-secondary text-text-muted border border-border ring-2 ring-transparent ring-offset-2 ring-offset-surface",
86
+ error: "bg-error text-text-inverse shadow-md shadow-error/30 ring-2 ring-error/20 ring-offset-2 ring-offset-surface"
87
+ },
88
+ filled: {
89
+ completed: "bg-primary text-text-inverse shadow-md shadow-primary/30",
90
+ active: "bg-gradient-to-br from-primary to-accent text-text-inverse shadow-lg shadow-primary/40 scale-110",
91
+ upcoming: "bg-surface-secondary text-text-muted",
92
+ error: "bg-error text-text-inverse shadow-md shadow-error/30"
93
+ },
94
+ outlined: {
95
+ completed: "bg-transparent border-2 border-primary text-primary ring-2 ring-primary/10 ring-offset-2 ring-offset-surface",
96
+ active: "bg-primary/10 border-2 border-primary text-primary ring-2 ring-primary/20 ring-offset-2 ring-offset-surface scale-110",
97
+ upcoming: "bg-transparent border-2 border-border text-text-muted",
98
+ error: "bg-transparent border-2 border-error text-error ring-2 ring-error/10"
99
+ },
100
+ minimal: {
101
+ completed: "bg-primary/15 text-primary",
102
+ active: "bg-primary text-text-inverse shadow-md shadow-primary/30 scale-110",
103
+ upcoming: "bg-surface-secondary text-text-muted",
104
+ error: "bg-error/15 text-error"
105
+ }
106
+ };
107
+ function connectorColorClass(status) {
108
+ if (status === "completed") return "bg-primary";
109
+ if (status === "error") return "bg-error";
110
+ return "bg-border";
111
+ }
112
+ function CheckIcon({ className }) {
113
+ return /* @__PURE__ */ jsxRuntime.jsx(
114
+ "svg",
115
+ {
116
+ xmlns: "http://www.w3.org/2000/svg",
117
+ viewBox: "0 0 20 20",
118
+ fill: "currentColor",
119
+ className,
120
+ "aria-hidden": "true",
121
+ children: /* @__PURE__ */ jsxRuntime.jsx(
122
+ "path",
123
+ {
124
+ fillRule: "evenodd",
125
+ d: "M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",
126
+ clipRule: "evenodd"
127
+ }
128
+ )
129
+ }
130
+ );
131
+ }
132
+ function ErrorIcon({ className }) {
133
+ return /* @__PURE__ */ jsxRuntime.jsx(
134
+ "svg",
135
+ {
136
+ xmlns: "http://www.w3.org/2000/svg",
137
+ viewBox: "0 0 20 20",
138
+ fill: "currentColor",
139
+ className,
140
+ "aria-hidden": "true",
141
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 8.586L7.707 6.293a1 1 0 00-1.414 1.414L8.586 10l-2.293 2.293a1 1 0 101.414 1.414L10 11.414l2.293 2.293a1 1 0 001.414-1.414L11.414 10l2.293-2.293a1 1 0 00-1.414-1.414L10 8.586z" })
142
+ }
143
+ );
144
+ }
145
+ function StepIndicator({ step, index, status, variant, size }) {
146
+ const iconSize = { sm: "w-3 h-3", md: "w-4 h-4", lg: "w-5 h-5" };
147
+ let content;
148
+ if (status === "completed" && !step.icon) {
149
+ content = /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: iconSize[size] });
150
+ } else if (status === "error" && !step.icon) {
151
+ content = /* @__PURE__ */ jsxRuntime.jsx(ErrorIcon, { className: iconSize[size] });
152
+ } else if (step.icon) {
153
+ content = step.icon;
154
+ } else {
155
+ content = /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold leading-none", children: index + 1 });
156
+ }
157
+ return /* @__PURE__ */ jsxRuntime.jsxs(
158
+ "div",
159
+ {
160
+ className: chunkL5VQZZVR_cjs.cn(
161
+ "relative shrink-0 flex items-center justify-center rounded-full",
162
+ "transition-all duration-300 ease-out",
163
+ indicatorSizeClasses[size],
164
+ indicatorClasses[variant][status]
165
+ ),
166
+ "aria-current": status === "active" ? "step" : void 0,
167
+ children: [
168
+ content,
169
+ status === "active" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-0 rounded-full animate-ping opacity-20 bg-primary" })
170
+ ]
171
+ }
172
+ );
173
+ }
174
+ var Stepper = react.forwardRef(function Stepper2({
175
+ steps,
176
+ currentStep: externalCurrentStep,
177
+ onChange,
178
+ variant = "default",
179
+ size = "md",
180
+ orientation = "horizontal",
181
+ clickable = false,
182
+ showContent = true,
183
+ className,
184
+ connectorClassName,
185
+ stepClassName,
186
+ ...rest
187
+ }, ref) {
188
+ const [internalStep, setInternalStep] = react.useState(0);
189
+ const isControlled = externalCurrentStep !== void 0;
190
+ const currentStep = isControlled ? externalCurrentStep : internalStep;
191
+ const handleStepClick = (index, disabled) => {
192
+ if (!clickable || disabled) return;
193
+ if (!isControlled) setInternalStep(index);
194
+ onChange?.(index);
195
+ };
196
+ const isHorizontal = orientation === "horizontal";
197
+ const activeStep = steps[currentStep];
198
+ return /* @__PURE__ */ jsxRuntime.jsxs(
199
+ "div",
200
+ {
201
+ ref,
202
+ className: chunkL5VQZZVR_cjs.cn("w-full", isHorizontal ? "flex flex-col gap-6" : "flex gap-6", className),
203
+ ...rest,
204
+ children: [
205
+ isHorizontal ? (
206
+ /*
207
+ * HORIZONTAL layout
208
+ * The track is: [step] [connector] [step] [connector] [step]
209
+ * All siblings in one flex-row so the connector sits BETWEEN steps.
210
+ * Each step is flex-col (circle on top, label below).
211
+ * The connector uses mt-[X] to vertically center itself with the circle.
212
+ */
213
+ /* @__PURE__ */ jsxRuntime.jsx("div", { role: "list", "aria-label": "Progress steps", className: "flex flex-row items-start w-full", children: steps.map((step, index) => {
214
+ const status = deriveStatus(index, currentStep, step.status);
215
+ const isLast = index === steps.length - 1;
216
+ const isClickable = clickable && !step.disabled;
217
+ return /* @__PURE__ */ jsxRuntime.jsxs(
218
+ "div",
219
+ {
220
+ role: "listitem",
221
+ className: chunkL5VQZZVR_cjs.cn("flex flex-row items-start", isLast ? "shrink-0" : "flex-1"),
222
+ children: [
223
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkL5VQZZVR_cjs.cn("flex flex-col items-center gap-2 shrink-0", stepClassName), children: [
224
+ /* @__PURE__ */ jsxRuntime.jsx(
225
+ "button",
226
+ {
227
+ type: "button",
228
+ onClick: () => {
229
+ handleStepClick(index, step.disabled);
230
+ },
231
+ disabled: !isClickable,
232
+ "aria-disabled": !isClickable || step.disabled,
233
+ className: chunkL5VQZZVR_cjs.cn(
234
+ "block focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 rounded-full",
235
+ isClickable ? "cursor-pointer hover:opacity-80 transition-opacity" : "cursor-default"
236
+ ),
237
+ children: /* @__PURE__ */ jsxRuntime.jsx(
238
+ StepIndicator,
239
+ {
240
+ step,
241
+ index,
242
+ status,
243
+ variant,
244
+ size
245
+ }
246
+ )
247
+ }
248
+ ),
249
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center text-center max-w-[80px]", children: [
250
+ /* @__PURE__ */ jsxRuntime.jsx(
251
+ "span",
252
+ {
253
+ className: chunkL5VQZZVR_cjs.cn(
254
+ "font-semibold leading-tight transition-colors duration-200",
255
+ labelSizeClasses[size],
256
+ status === "active" && "text-primary",
257
+ status === "completed" && "text-text",
258
+ status === "upcoming" && "text-text-muted",
259
+ status === "error" && "text-error"
260
+ ),
261
+ children: step.label
262
+ }
263
+ ),
264
+ step.description && /* @__PURE__ */ jsxRuntime.jsx(
265
+ "span",
266
+ {
267
+ className: chunkL5VQZZVR_cjs.cn(
268
+ "text-text-muted leading-tight mt-0.5",
269
+ descSizeClasses[size],
270
+ status === "active" && "text-text-secondary"
271
+ ),
272
+ children: step.description
273
+ }
274
+ )
275
+ ] })
276
+ ] }),
277
+ !isLast && /* @__PURE__ */ jsxRuntime.jsx(
278
+ "div",
279
+ {
280
+ className: chunkL5VQZZVR_cjs.cn(
281
+ "flex-1 h-[2px] rounded-full transition-all duration-500",
282
+ connectorOffsetH[size],
283
+ connectorColorClass(status),
284
+ connectorClassName
285
+ ),
286
+ "aria-hidden": "true"
287
+ }
288
+ )
289
+ ]
290
+ },
291
+ step.id
292
+ );
293
+ }) })
294
+ ) : (
295
+ /*
296
+ * VERTICAL layout
297
+ * Each step is: [circle | label]
298
+ * [vertical line]
299
+ * The line is a sibling BELOW the circle row, offset left to align under the circle center.
300
+ */
301
+ /* @__PURE__ */ jsxRuntime.jsx("div", { role: "list", "aria-label": "Progress steps", className: "flex flex-col items-start", children: steps.map((step, index) => {
302
+ const status = deriveStatus(index, currentStep, step.status);
303
+ const isLast = index === steps.length - 1;
304
+ const isClickable = clickable && !step.disabled;
305
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "listitem", className: chunkL5VQZZVR_cjs.cn("flex flex-col", stepClassName), children: [
306
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-start gap-3", children: [
307
+ /* @__PURE__ */ jsxRuntime.jsx(
308
+ "button",
309
+ {
310
+ type: "button",
311
+ onClick: () => {
312
+ handleStepClick(index, step.disabled);
313
+ },
314
+ disabled: !isClickable,
315
+ "aria-disabled": !isClickable || step.disabled,
316
+ className: chunkL5VQZZVR_cjs.cn(
317
+ "block shrink-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 rounded-full",
318
+ isClickable ? "cursor-pointer hover:opacity-80 transition-opacity" : "cursor-default"
319
+ ),
320
+ children: /* @__PURE__ */ jsxRuntime.jsx(
321
+ StepIndicator,
322
+ {
323
+ step,
324
+ index,
325
+ status,
326
+ variant,
327
+ size
328
+ }
329
+ )
330
+ }
331
+ ),
332
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start pt-1", children: [
333
+ /* @__PURE__ */ jsxRuntime.jsx(
334
+ "span",
335
+ {
336
+ className: chunkL5VQZZVR_cjs.cn(
337
+ "font-semibold leading-tight transition-colors duration-200",
338
+ labelSizeClasses[size],
339
+ status === "active" && "text-primary",
340
+ status === "completed" && "text-text",
341
+ status === "upcoming" && "text-text-muted",
342
+ status === "error" && "text-error"
343
+ ),
344
+ children: step.label
345
+ }
346
+ ),
347
+ step.description && /* @__PURE__ */ jsxRuntime.jsx(
348
+ "span",
349
+ {
350
+ className: chunkL5VQZZVR_cjs.cn(
351
+ "text-text-muted leading-tight mt-0.5",
352
+ descSizeClasses[size],
353
+ status === "active" && "text-text-secondary"
354
+ ),
355
+ children: step.description
356
+ }
357
+ )
358
+ ] })
359
+ ] }),
360
+ !isLast && /* @__PURE__ */ jsxRuntime.jsx(
361
+ "div",
362
+ {
363
+ className: chunkL5VQZZVR_cjs.cn(
364
+ "w-[2px] min-h-[28px] rounded-full transition-all duration-500 my-1",
365
+ connectorOffsetV[size],
366
+ connectorColorClass(status),
367
+ connectorClassName
368
+ ),
369
+ "aria-hidden": "true"
370
+ }
371
+ )
372
+ ] }, step.id);
373
+ }) })
374
+ ),
375
+ showContent && activeStep?.content && /* @__PURE__ */ jsxRuntime.jsx(
376
+ "div",
377
+ {
378
+ role: "region",
379
+ "aria-live": "polite",
380
+ className: "w-full rounded-lg border border-border bg-surface p-5 shadow-sm",
381
+ children: activeStep.content
382
+ }
383
+ )
384
+ ]
385
+ }
386
+ );
387
+ });
388
+ Stepper.displayName = "Stepper";
389
+ var sizeClasses = {
390
+ sm: {
391
+ track: "w-8 h-4",
392
+ thumb: "w-3 h-3 translate-x-0.5 peer-checked:translate-x-[1.125rem]"
393
+ },
394
+ md: {
395
+ track: "w-11 h-6",
396
+ thumb: "w-5 h-5 translate-x-0.5 peer-checked:translate-x-[1.375rem]"
397
+ },
398
+ lg: {
399
+ track: "w-14 h-8",
400
+ thumb: "w-7 h-7 translate-x-0.5 peer-checked:translate-x-[1.625rem]"
401
+ }
402
+ };
403
+ var stateClasses = {
404
+ default: "peer-checked:bg-primary",
405
+ error: "peer-checked:bg-error",
406
+ success: "peer-checked:bg-success",
407
+ warning: "peer-checked:bg-warning"
408
+ };
409
+ var Toggle = react.forwardRef(
410
+ ({ className, size = "md", state = "default", label, helperText, errorText, disabled, ...props }, ref) => {
411
+ const { track: trackSize, thumb: thumbSize } = sizeClasses[size];
412
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkL5VQZZVR_cjs.cn("flex flex-col gap-1.5", className), children: [
413
+ /* @__PURE__ */ jsxRuntime.jsxs(
414
+ "label",
415
+ {
416
+ className: chunkL5VQZZVR_cjs.cn(
417
+ "relative inline-flex items-center cursor-pointer select-none",
418
+ disabled && "cursor-not-allowed"
419
+ ),
420
+ children: [
421
+ /* @__PURE__ */ jsxRuntime.jsx(
422
+ "input",
423
+ {
424
+ type: "checkbox",
425
+ ref,
426
+ className: "sr-only peer",
427
+ disabled,
428
+ ...props
429
+ }
430
+ ),
431
+ /* @__PURE__ */ jsxRuntime.jsx(
432
+ "div",
433
+ {
434
+ className: chunkL5VQZZVR_cjs.cn(
435
+ "rounded-full transition-colors duration-200 bg-border peer-focus:ring-2 peer-focus:ring-primary/20",
436
+ trackSize,
437
+ stateClasses[state],
438
+ disabled && "opacity-50"
439
+ )
440
+ }
441
+ ),
442
+ /* @__PURE__ */ jsxRuntime.jsx(
443
+ "div",
444
+ {
445
+ className: chunkL5VQZZVR_cjs.cn(
446
+ "absolute top-0.5 left-0 bg-white rounded-full transition-transform duration-200 shadow-sm",
447
+ thumbSize
448
+ )
449
+ }
450
+ ),
451
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkL5VQZZVR_cjs.cn("ml-3 text-sm font-medium text-text", disabled && "opacity-50"), children: label })
452
+ ]
453
+ }
454
+ ),
455
+ (errorText !== void 0 || helperText !== void 0) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: chunkL5VQZZVR_cjs.cn("text-xs", errorText ? "text-error" : "text-text-muted"), children: errorText ?? helperText })
456
+ ] });
457
+ }
458
+ );
459
+ Toggle.displayName = "Toggle";
460
+ var AccordionContext = react.createContext(void 0);
461
+ var AccordionItemIndexContext = react.createContext(void 0);
462
+ var AccordionItemContext = react.createContext(void 0);
463
+ var AccordionItem = ({
464
+ children,
465
+ className,
466
+ isOpen: controlledIsOpen,
467
+ onToggle,
468
+ disabled = false
469
+ }) => {
470
+ const groupContext = react.useContext(AccordionContext);
471
+ const index = react.useContext(AccordionItemIndexContext);
472
+ const [internalIsOpen, setInternalIsOpen] = react.useState(false);
473
+ const isGrouped = groupContext !== void 0 && index !== void 0;
474
+ const isOpen = controlledIsOpen ?? (isGrouped ? groupContext.openIndices.includes(index) : internalIsOpen);
475
+ const toggle = react.useCallback(() => {
476
+ if (disabled) return;
477
+ if (onToggle) {
478
+ onToggle();
479
+ } else if (isGrouped) {
480
+ groupContext.toggleIndex(index);
481
+ } else {
482
+ setInternalIsOpen((prev) => !prev);
483
+ }
484
+ }, [disabled, onToggle, isGrouped, groupContext, index]);
485
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionItemContext.Provider, { value: { isOpen, toggle, disabled }, children: /* @__PURE__ */ jsxRuntime.jsx(
486
+ "div",
487
+ {
488
+ className: chunkL5VQZZVR_cjs.cn("border border-border rounded-lg overflow-hidden mb-2 last:mb-0", className),
489
+ children
490
+ }
491
+ ) });
492
+ };
493
+ var AccordionTrigger = ({
494
+ children,
495
+ className,
496
+ hideChevron = false,
497
+ icon,
498
+ rightContent
499
+ }) => {
500
+ const itemContext = react.useContext(AccordionItemContext);
501
+ if (!itemContext) {
502
+ throw new Error("AccordionTrigger must be used within an AccordionItem");
503
+ }
504
+ const { isOpen, toggle, disabled } = itemContext;
505
+ return /* @__PURE__ */ jsxRuntime.jsxs(
506
+ "div",
507
+ {
508
+ className: chunkL5VQZZVR_cjs.cn(
509
+ "flex items-center justify-between bg-surface transition-colors",
510
+ !disabled && "hover:bg-interaction-hover",
511
+ isOpen && "border-b border-border",
512
+ className
513
+ ),
514
+ children: [
515
+ /* @__PURE__ */ jsxRuntime.jsxs(
516
+ "button",
517
+ {
518
+ type: "button",
519
+ className: chunkL5VQZZVR_cjs.cn(
520
+ "flex flex-1 items-center gap-3 p-4 cursor-pointer select-none focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary/20 text-left",
521
+ disabled && "cursor-not-allowed opacity-50"
522
+ ),
523
+ onClick: toggle,
524
+ disabled,
525
+ "aria-expanded": isOpen,
526
+ children: [
527
+ !hideChevron && (icon ?? /* @__PURE__ */ jsxRuntime.jsx(
528
+ outline.ChevronDownIcon,
529
+ {
530
+ className: chunkL5VQZZVR_cjs.cn(
531
+ "w-5 h-5 transition-transform duration-200 text-text-muted",
532
+ isOpen && "rotate-180"
533
+ )
534
+ }
535
+ )),
536
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-text", children })
537
+ ]
538
+ }
539
+ ),
540
+ rightContent && /* @__PURE__ */ jsxRuntime.jsx(
541
+ "div",
542
+ {
543
+ className: "flex items-center p-4",
544
+ role: "presentation",
545
+ onClick: (e) => {
546
+ e.stopPropagation();
547
+ },
548
+ onKeyDown: (e) => {
549
+ if (e.key === "Enter" || e.key === " ") {
550
+ e.stopPropagation();
551
+ }
552
+ },
553
+ children: rightContent
554
+ }
555
+ )
556
+ ]
557
+ }
558
+ );
559
+ };
560
+ var AccordionContent = ({
561
+ children,
562
+ className
563
+ }) => {
564
+ const itemContext = react.useContext(AccordionItemContext);
565
+ if (!itemContext) {
566
+ throw new Error("AccordionContent must be used within an AccordionItem");
567
+ }
568
+ const { isOpen } = itemContext;
569
+ if (!isOpen) return null;
570
+ return /* @__PURE__ */ jsxRuntime.jsx(
571
+ "div",
572
+ {
573
+ className: chunkL5VQZZVR_cjs.cn(
574
+ "p-4 bg-surface animate-in fade-in slide-in-from-top-2 duration-200",
575
+ className
576
+ ),
577
+ children
578
+ }
579
+ );
580
+ };
581
+ var Accordion = ({
582
+ children,
583
+ className,
584
+ allowMultiple = false,
585
+ defaultOpenIndices = []
586
+ }) => {
587
+ const [openIndices, setOpenIndices] = react.useState(defaultOpenIndices);
588
+ const toggleIndex = react.useCallback(
589
+ (index) => {
590
+ setOpenIndices((prev) => {
591
+ if (prev.includes(index)) {
592
+ return prev.filter((i) => i !== index);
593
+ }
594
+ return allowMultiple ? [...prev, index] : [index];
595
+ });
596
+ },
597
+ [allowMultiple]
598
+ );
599
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionContext.Provider, { value: { openIndices, toggleIndex }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkL5VQZZVR_cjs.cn("w-full", className), children: react.Children.map(children, (child, index) => /* @__PURE__ */ jsxRuntime.jsx(AccordionItemIndexContext.Provider, { value: index, children: child }, index)) }) });
600
+ };
601
+
602
+ Object.defineProperty(exports, "Modal", {
603
+ enumerable: true,
604
+ get: function () { return chunkPCYGJNEQ_cjs.Modal; }
605
+ });
606
+ Object.defineProperty(exports, "ModalBody", {
607
+ enumerable: true,
608
+ get: function () { return chunkPCYGJNEQ_cjs.ModalBody; }
609
+ });
610
+ Object.defineProperty(exports, "ModalCloseButton", {
611
+ enumerable: true,
612
+ get: function () { return chunkPCYGJNEQ_cjs.ModalCloseButton; }
613
+ });
614
+ Object.defineProperty(exports, "ModalFooter", {
615
+ enumerable: true,
616
+ get: function () { return chunkPCYGJNEQ_cjs.ModalFooter; }
617
+ });
618
+ Object.defineProperty(exports, "ModalHeader", {
619
+ enumerable: true,
620
+ get: function () { return chunkPCYGJNEQ_cjs.ModalHeader; }
621
+ });
622
+ Object.defineProperty(exports, "SearchInput", {
623
+ enumerable: true,
624
+ get: function () { return chunk7DDDQ3RH_cjs.SearchInput; }
625
+ });
626
+ Object.defineProperty(exports, "ThemeProvider", {
627
+ enumerable: true,
628
+ get: function () { return chunkLTG6YP5I_cjs.ThemeProvider; }
629
+ });
630
+ Object.defineProperty(exports, "useTheme", {
631
+ enumerable: true,
632
+ get: function () { return chunkLTG6YP5I_cjs.useTheme; }
633
+ });
634
+ Object.defineProperty(exports, "Tabs", {
635
+ enumerable: true,
636
+ get: function () { return chunkY6AN7AWX_cjs.Tabs; }
637
+ });
638
+ Object.defineProperty(exports, "TextInput", {
639
+ enumerable: true,
640
+ get: function () { return chunkXFNRKHHF_cjs.TextInput; }
641
+ });
642
+ Object.defineProperty(exports, "TimePicker", {
643
+ enumerable: true,
644
+ get: function () { return chunkDHC5LI2P_cjs.TimePicker; }
645
+ });
646
+ Object.defineProperty(exports, "Toaster", {
647
+ enumerable: true,
648
+ get: function () { return chunkYMMNWJT6_cjs.Toaster; }
649
+ });
650
+ Object.defineProperty(exports, "Sidebar", {
651
+ enumerable: true,
652
+ get: function () { return chunkQ3IFXFFD_cjs.Sidebar; }
653
+ });
654
+ Object.defineProperty(exports, "Header", {
655
+ enumerable: true,
656
+ get: function () { return chunkEV463QT5_cjs.Header; }
657
+ });
658
+ Object.defineProperty(exports, "Image", {
659
+ enumerable: true,
660
+ get: function () { return chunkPJWELBN2_cjs.Image; }
661
+ });
662
+ Object.defineProperty(exports, "IconButton", {
663
+ enumerable: true,
664
+ get: function () { return chunkTNGW5YHA_cjs.IconButton; }
665
+ });
666
+ Object.defineProperty(exports, "Skeleton", {
667
+ enumerable: true,
668
+ get: function () { return chunkS7VEND5Z_cjs.Skeleton; }
669
+ });
670
+ Object.defineProperty(exports, "SkeletonAvatar", {
671
+ enumerable: true,
672
+ get: function () { return chunkS7VEND5Z_cjs.SkeletonAvatar; }
673
+ });
674
+ Object.defineProperty(exports, "SkeletonCard", {
675
+ enumerable: true,
676
+ get: function () { return chunkS7VEND5Z_cjs.SkeletonCard; }
677
+ });
678
+ Object.defineProperty(exports, "SkeletonTable", {
679
+ enumerable: true,
680
+ get: function () { return chunkS7VEND5Z_cjs.SkeletonTable; }
681
+ });
682
+ Object.defineProperty(exports, "SkeletonText", {
683
+ enumerable: true,
684
+ get: function () { return chunkS7VEND5Z_cjs.SkeletonText; }
685
+ });
686
+ Object.defineProperty(exports, "MultiSelect", {
687
+ enumerable: true,
688
+ get: function () { return chunk56ILK7Y4_cjs.MultiSelect; }
689
+ });
690
+ Object.defineProperty(exports, "OtpInput", {
691
+ enumerable: true,
692
+ get: function () { return chunkNRZIXK35_cjs.OtpInput; }
693
+ });
694
+ Object.defineProperty(exports, "PasswordInput", {
695
+ enumerable: true,
696
+ get: function () { return chunk5RKET2JO_cjs.PasswordInput; }
697
+ });
698
+ Object.defineProperty(exports, "Phone", {
699
+ enumerable: true,
700
+ get: function () { return chunkB4OV5GRT_cjs.Phone; }
701
+ });
702
+ Object.defineProperty(exports, "RadioButton", {
703
+ enumerable: true,
704
+ get: function () { return chunkVRZFAKSV_cjs.RadioButton; }
705
+ });
706
+ Object.defineProperty(exports, "Select", {
707
+ enumerable: true,
708
+ get: function () { return chunk7R5JRJ2W_cjs.Select; }
709
+ });
710
+ Object.defineProperty(exports, "Pagination", {
711
+ enumerable: true,
712
+ get: function () { return chunkOEU5VG3D_cjs.Pagination; }
713
+ });
714
+ Object.defineProperty(exports, "Table", {
715
+ enumerable: true,
716
+ get: function () { return chunkOEU5VG3D_cjs.Table; }
717
+ });
718
+ Object.defineProperty(exports, "ComboBox", {
719
+ enumerable: true,
720
+ get: function () { return chunkKLBABQEJ_cjs.ComboBox; }
721
+ });
722
+ Object.defineProperty(exports, "DatePicker", {
723
+ enumerable: true,
724
+ get: function () { return chunkW2ZAPLQH_cjs.DatePicker; }
725
+ });
726
+ Object.defineProperty(exports, "Dialog", {
727
+ enumerable: true,
728
+ get: function () { return chunkOPOCCRJG_cjs.Dialog; }
729
+ });
730
+ Object.defineProperty(exports, "DialogBody", {
731
+ enumerable: true,
732
+ get: function () { return chunkOPOCCRJG_cjs.DialogBody; }
733
+ });
734
+ Object.defineProperty(exports, "DialogCloseButton", {
735
+ enumerable: true,
736
+ get: function () { return chunkOPOCCRJG_cjs.DialogCloseButton; }
737
+ });
738
+ Object.defineProperty(exports, "DialogFooter", {
739
+ enumerable: true,
740
+ get: function () { return chunkOPOCCRJG_cjs.DialogFooter; }
741
+ });
742
+ Object.defineProperty(exports, "DialogHeader", {
743
+ enumerable: true,
744
+ get: function () { return chunkOPOCCRJG_cjs.DialogHeader; }
745
+ });
746
+ Object.defineProperty(exports, "DropdownMenu", {
747
+ enumerable: true,
748
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenu; }
749
+ });
750
+ Object.defineProperty(exports, "DropdownMenuContent", {
751
+ enumerable: true,
752
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuContent; }
753
+ });
754
+ Object.defineProperty(exports, "DropdownMenuItem", {
755
+ enumerable: true,
756
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuItem; }
757
+ });
758
+ Object.defineProperty(exports, "DropdownMenuSeparator", {
759
+ enumerable: true,
760
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuSeparator; }
761
+ });
762
+ Object.defineProperty(exports, "DropdownMenuTrigger", {
763
+ enumerable: true,
764
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuTrigger; }
765
+ });
766
+ Object.defineProperty(exports, "Email", {
767
+ enumerable: true,
768
+ get: function () { return chunkVC7MOPU6_cjs.Email; }
769
+ });
770
+ Object.defineProperty(exports, "FileUpload", {
771
+ enumerable: true,
772
+ get: function () { return chunk6R3OYBQ6_cjs.FileUpload; }
773
+ });
774
+ Object.defineProperty(exports, "Link", {
775
+ enumerable: true,
776
+ get: function () { return chunkBBVWG5GH_cjs.Link; }
777
+ });
778
+ Object.defineProperty(exports, "Loader", {
779
+ enumerable: true,
780
+ get: function () { return chunkMVUNJPGH_cjs.Loader; }
781
+ });
782
+ Object.defineProperty(exports, "Avatar", {
783
+ enumerable: true,
784
+ get: function () { return chunkHIWJDLIS_cjs.Avatar; }
785
+ });
786
+ Object.defineProperty(exports, "Badge", {
787
+ enumerable: true,
788
+ get: function () { return chunk5J3OMAO4_cjs.Badge; }
789
+ });
790
+ Object.defineProperty(exports, "Breadcrumbs", {
791
+ enumerable: true,
792
+ get: function () { return chunkNRCNRHXL_cjs.Breadcrumbs; }
793
+ });
794
+ Object.defineProperty(exports, "Button", {
795
+ enumerable: true,
796
+ get: function () { return chunk6CC5KIA5_cjs.Button; }
797
+ });
798
+ Object.defineProperty(exports, "Tooltip", {
799
+ enumerable: true,
800
+ get: function () { return chunkR72GDCWE_cjs.Tooltip; }
801
+ });
802
+ Object.defineProperty(exports, "Card", {
803
+ enumerable: true,
804
+ get: function () { return chunkECLNLPOR_cjs.Card; }
805
+ });
806
+ Object.defineProperty(exports, "CardContent", {
807
+ enumerable: true,
808
+ get: function () { return chunkECLNLPOR_cjs.CardContent; }
809
+ });
810
+ Object.defineProperty(exports, "CardDescription", {
811
+ enumerable: true,
812
+ get: function () { return chunkECLNLPOR_cjs.CardDescription; }
813
+ });
814
+ Object.defineProperty(exports, "CardFooter", {
815
+ enumerable: true,
816
+ get: function () { return chunkECLNLPOR_cjs.CardFooter; }
817
+ });
818
+ Object.defineProperty(exports, "CardHeader", {
819
+ enumerable: true,
820
+ get: function () { return chunkECLNLPOR_cjs.CardHeader; }
821
+ });
822
+ Object.defineProperty(exports, "CardTitle", {
823
+ enumerable: true,
824
+ get: function () { return chunkECLNLPOR_cjs.CardTitle; }
825
+ });
826
+ Object.defineProperty(exports, "Checkbox", {
827
+ enumerable: true,
828
+ get: function () { return chunk7PDGAIC3_cjs.Checkbox; }
829
+ });
830
+ Object.defineProperty(exports, "cn", {
831
+ enumerable: true,
832
+ get: function () { return chunkL5VQZZVR_cjs.cn; }
833
+ });
834
+ exports.Accordion = Accordion;
835
+ exports.AccordionContent = AccordionContent;
836
+ exports.AccordionItem = AccordionItem;
837
+ exports.AccordionTrigger = AccordionTrigger;
838
+ exports.Stepper = Stepper;
839
+ exports.Toggle = Toggle;