@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,134 @@
1
+ 'use strict';
2
+
3
+ var chunkL5VQZZVR_cjs = require('./chunk-L5VQZZVR.cjs');
4
+ var react = require('react');
5
+ var outline = require('@heroicons/react/24/outline');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var statusIcons = {
9
+ success: /* @__PURE__ */ jsxRuntime.jsx(outline.CheckCircleIcon, { className: "w-5 h-5" }),
10
+ error: /* @__PURE__ */ jsxRuntime.jsx(outline.ExclamationCircleIcon, { className: "w-5 h-5" }),
11
+ warning: /* @__PURE__ */ jsxRuntime.jsx(outline.ExclamationTriangleIcon, { className: "w-5 h-5" }),
12
+ info: /* @__PURE__ */ jsxRuntime.jsx(outline.InformationCircleIcon, { className: "w-5 h-5" })
13
+ };
14
+ var solidIconBg = {
15
+ success: "bg-white/20",
16
+ error: "bg-white/20",
17
+ warning: "bg-white/20",
18
+ info: "bg-white/20"
19
+ };
20
+ var subtleIconBg = {
21
+ success: "bg-success/20 text-success",
22
+ error: "bg-error/20 text-error",
23
+ warning: "bg-warning/20 text-warning",
24
+ info: "bg-info/20 text-info"
25
+ };
26
+ var accentIconBg = {
27
+ success: "bg-success/10 text-success",
28
+ error: "bg-error/10 text-error",
29
+ warning: "bg-warning/10 text-warning",
30
+ info: "bg-info/10 text-info"
31
+ };
32
+ var variantClasses = {
33
+ solid: {
34
+ success: "bg-success text-text border-transparent shadow-[0_8px_32px_rgba(16,185,129,0.3)]",
35
+ error: "bg-error text-text border-transparent shadow-[0_8px_32px_rgba(239,68,68,0.3)]",
36
+ warning: "bg-warning text-text border-transparent shadow-[0_8px_32px_rgba(245,158,11,0.3)]",
37
+ info: "bg-info text-text border-transparent shadow-[0_8px_32px_rgba(59,130,246,0.3)]"
38
+ },
39
+ subtle: {
40
+ success: "bg-success/10 text-text border-success/25 shadow-[0_8px_32px_rgba(16,185,129,0.12)]",
41
+ error: "bg-error/10 text-text border-error/25 shadow-[0_8px_32px_rgba(239,68,68,0.12)]",
42
+ warning: "bg-warning/10 text-text border-warning/25 shadow-[0_8px_32px_rgba(245,158,11,0.12)]",
43
+ info: "bg-info/10 text-text border-info/25 shadow-[0_8px_32px_rgba(59,130,246,0.12)]"
44
+ },
45
+ "left-accent": {
46
+ success: "bg-surface border-border border-l-success shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
47
+ error: "bg-surface border-border border-l-error shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
48
+ warning: "bg-surface border-border border-l-warning shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
49
+ info: "bg-surface border-border border-l-info shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text"
50
+ }
51
+ };
52
+ var statusTitleColor = {
53
+ success: "text-success",
54
+ error: "text-error",
55
+ warning: "text-warning",
56
+ info: "text-info"
57
+ };
58
+ var Toaster = react.forwardRef((props, ref) => {
59
+ const {
60
+ title,
61
+ description,
62
+ status = "info",
63
+ variant = "solid",
64
+ isClosable = true,
65
+ onClose,
66
+ className
67
+ } = props;
68
+ const isSolid = variant === "solid";
69
+ const isLeftAccent = variant === "left-accent";
70
+ const iconBgClass = isSolid ? solidIconBg[status] : isLeftAccent ? accentIconBg[status] : subtleIconBg[status];
71
+ return /* @__PURE__ */ jsxRuntime.jsxs(
72
+ "div",
73
+ {
74
+ ref,
75
+ role: "alert",
76
+ className: chunkL5VQZZVR_cjs.cn(
77
+ "relative flex w-full min-w-80 max-w-sm items-start gap-3 px-4 py-3.5 rounded-xl border overflow-hidden transition-all duration-200",
78
+ isLeftAccent && "border-l-4 rounded-l-none",
79
+ variantClasses[variant][status],
80
+ className
81
+ ),
82
+ children: [
83
+ /* @__PURE__ */ jsxRuntime.jsx(
84
+ "div",
85
+ {
86
+ className: chunkL5VQZZVR_cjs.cn(
87
+ "flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg mt-0.5",
88
+ iconBgClass
89
+ ),
90
+ children: statusIcons[status]
91
+ }
92
+ ),
93
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0 pt-0.5", children: [
94
+ title && /* @__PURE__ */ jsxRuntime.jsx(
95
+ "p",
96
+ {
97
+ className: chunkL5VQZZVR_cjs.cn(
98
+ "text-sm font-bold leading-tight tracking-wide",
99
+ !isSolid && statusTitleColor[status]
100
+ ),
101
+ children: title
102
+ }
103
+ ),
104
+ description && /* @__PURE__ */ jsxRuntime.jsx(
105
+ "p",
106
+ {
107
+ className: chunkL5VQZZVR_cjs.cn(
108
+ "text-sm leading-relaxed mt-0.5",
109
+ isSolid ? "opacity-90" : "text-text-secondary"
110
+ ),
111
+ children: description
112
+ }
113
+ )
114
+ ] }),
115
+ isClosable && /* @__PURE__ */ jsxRuntime.jsx(
116
+ "button",
117
+ {
118
+ type: "button",
119
+ onClick: onClose,
120
+ className: chunkL5VQZZVR_cjs.cn(
121
+ "flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md transition-all duration-150 active:scale-90",
122
+ isSolid ? "hover:bg-white/20 text-text-inverse" : "hover:bg-black/10 dark:hover:bg-white/10 text-text-secondary hover:text-text"
123
+ ),
124
+ "aria-label": "Close",
125
+ children: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "w-4 h-4 stroke-2" })
126
+ }
127
+ )
128
+ ]
129
+ }
130
+ );
131
+ });
132
+ Toaster.displayName = "Toaster";
133
+
134
+ exports.Toaster = Toaster;
@@ -0,0 +1,132 @@
1
+ import { cn } from './chunk-OCPFOFJ4.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { XMarkIcon, InformationCircleIcon, ExclamationTriangleIcon, ExclamationCircleIcon, CheckCircleIcon } from '@heroicons/react/24/outline';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ var statusIcons = {
7
+ success: /* @__PURE__ */ jsx(CheckCircleIcon, { className: "w-5 h-5" }),
8
+ error: /* @__PURE__ */ jsx(ExclamationCircleIcon, { className: "w-5 h-5" }),
9
+ warning: /* @__PURE__ */ jsx(ExclamationTriangleIcon, { className: "w-5 h-5" }),
10
+ info: /* @__PURE__ */ jsx(InformationCircleIcon, { className: "w-5 h-5" })
11
+ };
12
+ var solidIconBg = {
13
+ success: "bg-white/20",
14
+ error: "bg-white/20",
15
+ warning: "bg-white/20",
16
+ info: "bg-white/20"
17
+ };
18
+ var subtleIconBg = {
19
+ success: "bg-success/20 text-success",
20
+ error: "bg-error/20 text-error",
21
+ warning: "bg-warning/20 text-warning",
22
+ info: "bg-info/20 text-info"
23
+ };
24
+ var accentIconBg = {
25
+ success: "bg-success/10 text-success",
26
+ error: "bg-error/10 text-error",
27
+ warning: "bg-warning/10 text-warning",
28
+ info: "bg-info/10 text-info"
29
+ };
30
+ var variantClasses = {
31
+ solid: {
32
+ success: "bg-success text-text border-transparent shadow-[0_8px_32px_rgba(16,185,129,0.3)]",
33
+ error: "bg-error text-text border-transparent shadow-[0_8px_32px_rgba(239,68,68,0.3)]",
34
+ warning: "bg-warning text-text border-transparent shadow-[0_8px_32px_rgba(245,158,11,0.3)]",
35
+ info: "bg-info text-text border-transparent shadow-[0_8px_32px_rgba(59,130,246,0.3)]"
36
+ },
37
+ subtle: {
38
+ success: "bg-success/10 text-text border-success/25 shadow-[0_8px_32px_rgba(16,185,129,0.12)]",
39
+ error: "bg-error/10 text-text border-error/25 shadow-[0_8px_32px_rgba(239,68,68,0.12)]",
40
+ warning: "bg-warning/10 text-text border-warning/25 shadow-[0_8px_32px_rgba(245,158,11,0.12)]",
41
+ info: "bg-info/10 text-text border-info/25 shadow-[0_8px_32px_rgba(59,130,246,0.12)]"
42
+ },
43
+ "left-accent": {
44
+ success: "bg-surface border-border border-l-success shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
45
+ error: "bg-surface border-border border-l-error shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
46
+ warning: "bg-surface border-border border-l-warning shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
47
+ info: "bg-surface border-border border-l-info shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text"
48
+ }
49
+ };
50
+ var statusTitleColor = {
51
+ success: "text-success",
52
+ error: "text-error",
53
+ warning: "text-warning",
54
+ info: "text-info"
55
+ };
56
+ var Toaster = forwardRef((props, ref) => {
57
+ const {
58
+ title,
59
+ description,
60
+ status = "info",
61
+ variant = "solid",
62
+ isClosable = true,
63
+ onClose,
64
+ className
65
+ } = props;
66
+ const isSolid = variant === "solid";
67
+ const isLeftAccent = variant === "left-accent";
68
+ const iconBgClass = isSolid ? solidIconBg[status] : isLeftAccent ? accentIconBg[status] : subtleIconBg[status];
69
+ return /* @__PURE__ */ jsxs(
70
+ "div",
71
+ {
72
+ ref,
73
+ role: "alert",
74
+ className: cn(
75
+ "relative flex w-full min-w-80 max-w-sm items-start gap-3 px-4 py-3.5 rounded-xl border overflow-hidden transition-all duration-200",
76
+ isLeftAccent && "border-l-4 rounded-l-none",
77
+ variantClasses[variant][status],
78
+ className
79
+ ),
80
+ children: [
81
+ /* @__PURE__ */ jsx(
82
+ "div",
83
+ {
84
+ className: cn(
85
+ "flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg mt-0.5",
86
+ iconBgClass
87
+ ),
88
+ children: statusIcons[status]
89
+ }
90
+ ),
91
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 pt-0.5", children: [
92
+ title && /* @__PURE__ */ jsx(
93
+ "p",
94
+ {
95
+ className: cn(
96
+ "text-sm font-bold leading-tight tracking-wide",
97
+ !isSolid && statusTitleColor[status]
98
+ ),
99
+ children: title
100
+ }
101
+ ),
102
+ description && /* @__PURE__ */ jsx(
103
+ "p",
104
+ {
105
+ className: cn(
106
+ "text-sm leading-relaxed mt-0.5",
107
+ isSolid ? "opacity-90" : "text-text-secondary"
108
+ ),
109
+ children: description
110
+ }
111
+ )
112
+ ] }),
113
+ isClosable && /* @__PURE__ */ jsx(
114
+ "button",
115
+ {
116
+ type: "button",
117
+ onClick: onClose,
118
+ className: cn(
119
+ "flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md transition-all duration-150 active:scale-90",
120
+ isSolid ? "hover:bg-white/20 text-text-inverse" : "hover:bg-black/10 dark:hover:bg-white/10 text-text-secondary hover:text-text"
121
+ ),
122
+ "aria-label": "Close",
123
+ children: /* @__PURE__ */ jsx(XMarkIcon, { className: "w-4 h-4 stroke-2" })
124
+ }
125
+ )
126
+ ]
127
+ }
128
+ );
129
+ });
130
+ Toaster.displayName = "Toaster";
131
+
132
+ export { Toaster };
@@ -1 +1,11 @@
1
- 'use strict';var react=require('react'),solid=require('@heroicons/react/20/solid'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function r(...u){return tailwindMerge.twMerge(clsx.clsx(u))}var ve={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Ce={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},P={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-4 py-3 text-lg"},ke={default:"border-border focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/40",error:"border-error focus-within:ring-2 focus-within:ring-error/20",success:"border-success focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning focus-within:ring-2 focus-within:ring-warning/20"},Ne={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"};function Be(u,d,s,a){if(u==="error"&&d)return d;if(u==="success"&&s)return s;if(u==="warning"&&a)return a}var Ee=react.forwardRef(function({options:d,value:s,onChange:a,multiple:l=false,searchable:m=true,clearable:q=false,label:D,required:A=false,helperText:M,errorMessage:Q,successMessage:U,warningMessage:X,state:g="default",size:C="md",fullWidth:G=true,placeholder:J="Select\u2026",noOptionsMessage:W="No options",wrapperClassName:Y,inputClassName:Z,listClassName:_,labelClassName:ee,helperClassName:H,disabled:f,id:te,className:ne,...re},k){let oe=react.useId(),w=te??oe,N=`${w}-listbox`,K=`${w}-helper`,T=`${w}-state`,[o,B]=react.useState(false),[R,h]=react.useState(""),[x,p]=react.useState(-1),L=react.useRef(null),V=react.useRef(null),i=react.useMemo(()=>s==null?[]:Array.isArray(s)?s:[s],[s]),se=o&&m?R:i.map(e=>d.find(t=>t.value===e)?.label??e).join(", "),y=o&&m&&R.length>0?d.filter(e=>e.label.toLowerCase().includes(R.toLowerCase())):d;react.useEffect(()=>{let e=t=>{L.current&&!L.current.contains(t.target)&&(B(false),h(""));};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[]);let E=react.useCallback(()=>{f||(B(true),h(""),p(-1));},[f]),I=react.useCallback(()=>{B(false),h(""),p(-1);},[]),O=react.useCallback(e=>{if(!e.disabled)if(l){let t=i.includes(e.value)?i.filter(c=>c!==e.value):[...i,e.value];a?.(t);}else a?.(e.value),I();},[l,i,a,I]),ae=react.useCallback(()=>{a?.(l?[]:""),h(""),V.current?.focus();},[l,a]),ie=e=>{h(e.target.value),p(-1),o||B(true);},le=e=>{if(!f)switch(e.key){case "ArrowDown":e.preventDefault(),o?p(t=>t<y.length-1?t+1:t):E();break;case "ArrowUp":e.preventDefault(),p(t=>t>0?t-1:0);break;case "Enter":if(e.preventDefault(),!o)E();else if(x>=0&&x<y.length){let t=y[x];t!=null&&O(t);}break;case "Escape":e.preventDefault(),I();break;case "Tab":I();break;}},z=Be(g,Q,U,X),ce=[M?K:null,z?T:null].filter(Boolean).join(" ")||void 0,ue=q&&i.length>0&&!f,de=e=>i.includes(e);return jsxRuntime.jsxs("div",{className:r("flex flex-col gap-1",G?"w-full":"w-fit",o&&"z-[60]",Y,ne),children:[D!=null&&jsxRuntime.jsxs("label",{htmlFor:w,className:r("font-black leading-none text-text uppercase tracking-widest",Ce[C],ee),children:[D,A&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{ref:L,className:"relative",onKeyDown:le,children:[jsxRuntime.jsxs("div",{className:r("flex items-center w-full rounded-md border bg-surface shadow-sm transition-all duration-normal",ve[C],ke[g],f&&"cursor-not-allowed opacity-50 bg-surface-secondary"),children:[jsxRuntime.jsx("input",{...re,ref:e=>{V.current=e,typeof k=="function"?k(e):k!=null&&(k.current=e);},id:w,role:"combobox",type:"text",autoComplete:"off","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":N,"aria-autocomplete":m?"list":"none","aria-activedescendant":x>=0?`${N}-opt-${String(x)}`:void 0,"aria-invalid":g==="error"?true:void 0,"aria-required":A,"aria-describedby":ce,disabled:f,readOnly:!m,placeholder:i.length===0?J:void 0,value:se,onChange:m?ie:void 0,onFocus:E,onClick:E,className:r("flex-1 min-w-0 bg-transparent outline-none placeholder:text-text-muted transition-all duration-normal",!m&&"cursor-pointer select-none",Z)}),jsxRuntime.jsxs("div",{className:"flex items-center gap-0.5 ml-1 shrink-0",children:[ue&&jsxRuntime.jsx("button",{type:"button","aria-label":"Clear selection",onMouseDown:e=>{e.preventDefault();},onClick:ae,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:r("text-text-muted transition-transform duration-200",o&&"rotate-180"),children:jsxRuntime.jsx(solid.ChevronDownIcon,{className:"w-4 h-4"})})]})]}),o&&jsxRuntime.jsx("ul",{id:N,role:"listbox","aria-multiselectable":l,"aria-label":D??"Options",className:r("absolute z-dropdown mt-1 w-full bg-surface border border-border rounded-lg shadow-lg overflow-y-auto max-h-60 py-1.5 animate-in fade-in zoom-in-95 duration-normal",_),children:y.length===0?jsxRuntime.jsx("li",{className:r("text-text-muted italic select-none font-medium",P[C]),children:W}):y.map((e,t)=>{let c=de(e.value),me=t===x;return jsxRuntime.jsxs("li",{id:`${N}-opt-${String(t)}`,role:"option","aria-selected":c,"aria-disabled":e.disabled,onMouseDown:v=>{v.preventDefault();},onClick:()=>{O(e);},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),O(e));},onMouseEnter:()=>{p(t);},className:r("flex items-center gap-2 cursor-pointer select-none transition-all duration-fast font-medium",P[C],me&&!e.disabled&&"bg-hover",c&&"text-primary font-bold",e.disabled&&"cursor-not-allowed opacity-40"),children:[l&&jsxRuntime.jsx("span",{className:r("shrink-0 w-4 h-4 rounded-sm border flex items-center justify-center transition-all duration-normal",c?"bg-primary border-primary":"border-border"),"aria-hidden":"true",children:c&&jsxRuntime.jsx(solid.CheckIcon,{className:"w-2.5 h-2.5 text-text-inverse"})}),!l&&jsxRuntime.jsx("span",{className:"w-4 shrink-0","aria-hidden":"true",children:c&&jsxRuntime.jsx(solid.CheckIcon,{className:"w-4 h-4 text-primary"})}),e.label]},e.value)})})]}),M!=null&&jsxRuntime.jsx("p",{id:K,className:r("text-xs leading-tight text-text-muted font-medium",H),children:M}),z!=null&&jsxRuntime.jsx("p",{id:T,role:g==="error"?"alert":void 0,className:r("text-xs leading-tight font-medium",Ne[g],H),children:z})]})});Ee.displayName="ComboBox";exports.ComboBox=Ee;
1
+ 'use strict';
2
+
3
+ var chunkKLBABQEJ_cjs = require('../chunk-KLBABQEJ.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ComboBox", {
9
+ enumerable: true,
10
+ get: function () { return chunkKLBABQEJ_cjs.ComboBox; }
11
+ });
@@ -1 +1,2 @@
1
- import {forwardRef,useId,useState,useRef,useMemo,useEffect,useCallback}from'react';import {XMarkIcon,ChevronDownIcon,CheckIcon}from'@heroicons/react/20/solid';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';function r(...u){return twMerge(clsx(u))}var ve={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Ce={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},P={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-4 py-3 text-lg"},ke={default:"border-border focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/40",error:"border-error focus-within:ring-2 focus-within:ring-error/20",success:"border-success focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning focus-within:ring-2 focus-within:ring-warning/20"},Ne={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"};function Be(u,d,s,a){if(u==="error"&&d)return d;if(u==="success"&&s)return s;if(u==="warning"&&a)return a}var Ee=forwardRef(function({options:d,value:s,onChange:a,multiple:l=false,searchable:m=true,clearable:q=false,label:D,required:A=false,helperText:M,errorMessage:Q,successMessage:U,warningMessage:X,state:g="default",size:C="md",fullWidth:G=true,placeholder:J="Select\u2026",noOptionsMessage:W="No options",wrapperClassName:Y,inputClassName:Z,listClassName:_,labelClassName:ee,helperClassName:H,disabled:f,id:te,className:ne,...re},k){let oe=useId(),w=te??oe,N=`${w}-listbox`,K=`${w}-helper`,T=`${w}-state`,[o,B]=useState(false),[R,h]=useState(""),[x,p]=useState(-1),L=useRef(null),V=useRef(null),i=useMemo(()=>s==null?[]:Array.isArray(s)?s:[s],[s]),se=o&&m?R:i.map(e=>d.find(t=>t.value===e)?.label??e).join(", "),y=o&&m&&R.length>0?d.filter(e=>e.label.toLowerCase().includes(R.toLowerCase())):d;useEffect(()=>{let e=t=>{L.current&&!L.current.contains(t.target)&&(B(false),h(""));};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[]);let E=useCallback(()=>{f||(B(true),h(""),p(-1));},[f]),I=useCallback(()=>{B(false),h(""),p(-1);},[]),O=useCallback(e=>{if(!e.disabled)if(l){let t=i.includes(e.value)?i.filter(c=>c!==e.value):[...i,e.value];a?.(t);}else a?.(e.value),I();},[l,i,a,I]),ae=useCallback(()=>{a?.(l?[]:""),h(""),V.current?.focus();},[l,a]),ie=e=>{h(e.target.value),p(-1),o||B(true);},le=e=>{if(!f)switch(e.key){case "ArrowDown":e.preventDefault(),o?p(t=>t<y.length-1?t+1:t):E();break;case "ArrowUp":e.preventDefault(),p(t=>t>0?t-1:0);break;case "Enter":if(e.preventDefault(),!o)E();else if(x>=0&&x<y.length){let t=y[x];t!=null&&O(t);}break;case "Escape":e.preventDefault(),I();break;case "Tab":I();break;}},z=Be(g,Q,U,X),ce=[M?K:null,z?T:null].filter(Boolean).join(" ")||void 0,ue=q&&i.length>0&&!f,de=e=>i.includes(e);return jsxs("div",{className:r("flex flex-col gap-1",G?"w-full":"w-fit",o&&"z-[60]",Y,ne),children:[D!=null&&jsxs("label",{htmlFor:w,className:r("font-black leading-none text-text uppercase tracking-widest",Ce[C],ee),children:[D,A&&jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxs("div",{ref:L,className:"relative",onKeyDown:le,children:[jsxs("div",{className:r("flex items-center w-full rounded-md border bg-surface shadow-sm transition-all duration-normal",ve[C],ke[g],f&&"cursor-not-allowed opacity-50 bg-surface-secondary"),children:[jsx("input",{...re,ref:e=>{V.current=e,typeof k=="function"?k(e):k!=null&&(k.current=e);},id:w,role:"combobox",type:"text",autoComplete:"off","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":N,"aria-autocomplete":m?"list":"none","aria-activedescendant":x>=0?`${N}-opt-${String(x)}`:void 0,"aria-invalid":g==="error"?true:void 0,"aria-required":A,"aria-describedby":ce,disabled:f,readOnly:!m,placeholder:i.length===0?J:void 0,value:se,onChange:m?ie:void 0,onFocus:E,onClick:E,className:r("flex-1 min-w-0 bg-transparent outline-none placeholder:text-text-muted transition-all duration-normal",!m&&"cursor-pointer select-none",Z)}),jsxs("div",{className:"flex items-center gap-0.5 ml-1 shrink-0",children:[ue&&jsx("button",{type:"button","aria-label":"Clear selection",onMouseDown:e=>{e.preventDefault();},onClick:ae,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast",children:jsx(XMarkIcon,{className:"w-3.5 h-3.5"})}),jsx("span",{"aria-hidden":"true",className:r("text-text-muted transition-transform duration-200",o&&"rotate-180"),children:jsx(ChevronDownIcon,{className:"w-4 h-4"})})]})]}),o&&jsx("ul",{id:N,role:"listbox","aria-multiselectable":l,"aria-label":D??"Options",className:r("absolute z-dropdown mt-1 w-full bg-surface border border-border rounded-lg shadow-lg overflow-y-auto max-h-60 py-1.5 animate-in fade-in zoom-in-95 duration-normal",_),children:y.length===0?jsx("li",{className:r("text-text-muted italic select-none font-medium",P[C]),children:W}):y.map((e,t)=>{let c=de(e.value),me=t===x;return jsxs("li",{id:`${N}-opt-${String(t)}`,role:"option","aria-selected":c,"aria-disabled":e.disabled,onMouseDown:v=>{v.preventDefault();},onClick:()=>{O(e);},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),O(e));},onMouseEnter:()=>{p(t);},className:r("flex items-center gap-2 cursor-pointer select-none transition-all duration-fast font-medium",P[C],me&&!e.disabled&&"bg-hover",c&&"text-primary font-bold",e.disabled&&"cursor-not-allowed opacity-40"),children:[l&&jsx("span",{className:r("shrink-0 w-4 h-4 rounded-sm border flex items-center justify-center transition-all duration-normal",c?"bg-primary border-primary":"border-border"),"aria-hidden":"true",children:c&&jsx(CheckIcon,{className:"w-2.5 h-2.5 text-text-inverse"})}),!l&&jsx("span",{className:"w-4 shrink-0","aria-hidden":"true",children:c&&jsx(CheckIcon,{className:"w-4 h-4 text-primary"})}),e.label]},e.value)})})]}),M!=null&&jsx("p",{id:K,className:r("text-xs leading-tight text-text-muted font-medium",H),children:M}),z!=null&&jsx("p",{id:T,role:g==="error"?"alert":void 0,className:r("text-xs leading-tight font-medium",Ne[g],H),children:z})]})});Ee.displayName="ComboBox";export{Ee as ComboBox};
1
+ export { ComboBox } from '../chunk-4DA7CRNV.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1,2 +1,11 @@
1
- 'use strict';var react=require('react'),outline=require('@heroicons/react/24/outline'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function s(...r){return tailwindMerge.twMerge(clsx.clsx(r))}var re={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},te={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},ne={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",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",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},oe={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},se={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},ie="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function ae(r,t,n){let o={xs:"pl-6",sm:"pl-8",md:"pl-9",lg:"pl-10",xl:"pl-11"},u={xs:"pr-6",sm:"pr-8",md:"pr-9",lg:"pr-10",xl:"pr-11"},a=[];return r&&a.push(o[n]),t&&a.push(u[n]),a.join(" ")}function de(r,t,n,o){if(r==="error"&&t)return t;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function z({children:r,side:t,size:n,pointerEvents:o=false}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:s("absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",!o&&"pointer-events-none",t==="left"?"left-3":"right-3",{xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"}[n]),children:r})}function A({children:r,side:t}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:s("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",t==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var V=react.forwardRef(function({label:t,required:n=false,helperText:o,errorMessage:u,successMessage:a,warningMessage:E,variant:w="default",size:d="md",state:c="default",fullWidth:k=true,leftElement:D,rightElement:g,prefix:f,suffix:p,wrapperClassName:B,inputGroupClassName:M,inputClassName:H,labelClassName:j,helperClassName:v,id:L,disabled:T,className:F,clearable:$,isLoading:b,value:x,onChange:h,...O},i){let W=react.useId(),m=L??W,R=`${m}-helper`,N=`${m}-state`,y=$&&typeof x=="string"&&x.length>0,S=D!==void 0,C=g!==void 0||!!y||!!b,P=de(c,u,a,E),X=[o?R:null,P?N:null].filter(Boolean).join(" ")||void 0,q=()=>{if(i&&typeof i!="function"&&i.current){let I=Reflect.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set;I&&Reflect.apply(I,i.current,[""]);let Q=new Event("input",{bubbles:true});i.current.dispatchEvent(Q);}else h&&h({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},G=()=>b?jsxRuntime.jsxs("svg",{className:"animate-spin h-full w-full text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",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"})]}):y?jsxRuntime.jsx("button",{type:"button",onClick:q,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast","aria-label":"Clear input",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-full h-full",strokeWidth:2.5})}):g,J=jsxRuntime.jsx("input",{ref:i,id:m,disabled:!!T||!!b,type:"date",value:x,onChange:h,"aria-invalid":c==="error"?true:void 0,"aria-describedby":X,"aria-required":n,className:s("w-full transition-colors duration-150",re[d],ne[w],oe[c][w],ie,ae(S,C,d),H),...O});return jsxRuntime.jsxs("div",{className:s("flex flex-col gap-1",k?"w-full":"w-fit",B,F),children:[t!==void 0&&jsxRuntime.jsxs("label",{htmlFor:m,className:s("font-black leading-none text-text uppercase tracking-widest",te[d],j),children:[t,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:s("flex items-stretch",k?"w-full":"w-fit",M),children:[f!==void 0&&jsxRuntime.jsx(A,{side:"left",children:f}),jsxRuntime.jsxs("div",{className:"relative flex flex-1 items-center",children:[S&&jsxRuntime.jsx(z,{side:"left",size:d,children:D}),jsxRuntime.jsx("div",{className:s("flex-1",f!==void 0&&p!==void 0?"[&>input]:rounded-none":f!==void 0?"[&>input]:rounded-l-none":p!==void 0?"[&>input]:rounded-r-none":""),children:J}),C&&jsxRuntime.jsx(z,{side:"right",size:d,pointerEvents:!g&&!!y,children:G()})]}),p!==void 0&&jsxRuntime.jsx(A,{side:"right",children:p})]}),o!==void 0&&jsxRuntime.jsx("p",{id:R,className:s("text-xs leading-tight text-text-muted font-medium",v),children:o}),P!==void 0&&jsxRuntime.jsx("p",{id:N,role:c==="error"?"alert":void 0,className:s("text-xs leading-tight mt-1 font-medium",se[c],v),children:P})]})});V.displayName="DatePicker";
2
- exports.DatePicker=V;
1
+ 'use strict';
2
+
3
+ var chunkW2ZAPLQH_cjs = require('../chunk-W2ZAPLQH.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "DatePicker", {
9
+ enumerable: true,
10
+ get: function () { return chunkW2ZAPLQH_cjs.DatePicker; }
11
+ });
@@ -1,2 +1,2 @@
1
- import {forwardRef,useId}from'react';import {XMarkIcon}from'@heroicons/react/24/outline';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';function s(...r){return twMerge(clsx(r))}var re={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},te={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},ne={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",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",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},oe={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},se={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},ie="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function ae(r,t,n){let o={xs:"pl-6",sm:"pl-8",md:"pl-9",lg:"pl-10",xl:"pl-11"},u={xs:"pr-6",sm:"pr-8",md:"pr-9",lg:"pr-10",xl:"pr-11"},a=[];return r&&a.push(o[n]),t&&a.push(u[n]),a.join(" ")}function de(r,t,n,o){if(r==="error"&&t)return t;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function z({children:r,side:t,size:n,pointerEvents:o=false}){return jsx("span",{"aria-hidden":"true",className:s("absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",!o&&"pointer-events-none",t==="left"?"left-3":"right-3",{xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"}[n]),children:r})}function A({children:r,side:t}){return jsx("span",{"aria-hidden":"true",className:s("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",t==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var V=forwardRef(function({label:t,required:n=false,helperText:o,errorMessage:u,successMessage:a,warningMessage:E,variant:w="default",size:d="md",state:c="default",fullWidth:k=true,leftElement:D,rightElement:g,prefix:f,suffix:p,wrapperClassName:B,inputGroupClassName:M,inputClassName:H,labelClassName:j,helperClassName:v,id:L,disabled:T,className:F,clearable:$,isLoading:b,value:x,onChange:h,...O},i){let W=useId(),m=L??W,R=`${m}-helper`,N=`${m}-state`,y=$&&typeof x=="string"&&x.length>0,S=D!==void 0,C=g!==void 0||!!y||!!b,P=de(c,u,a,E),X=[o?R:null,P?N:null].filter(Boolean).join(" ")||void 0,q=()=>{if(i&&typeof i!="function"&&i.current){let I=Reflect.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set;I&&Reflect.apply(I,i.current,[""]);let Q=new Event("input",{bubbles:true});i.current.dispatchEvent(Q);}else h&&h({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},G=()=>b?jsxs("svg",{className:"animate-spin h-full w-full text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsx("path",{className:"opacity-75",fill:"currentColor",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"})]}):y?jsx("button",{type:"button",onClick:q,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast","aria-label":"Clear input",children:jsx(XMarkIcon,{className:"w-full h-full",strokeWidth:2.5})}):g,J=jsx("input",{ref:i,id:m,disabled:!!T||!!b,type:"date",value:x,onChange:h,"aria-invalid":c==="error"?true:void 0,"aria-describedby":X,"aria-required":n,className:s("w-full transition-colors duration-150",re[d],ne[w],oe[c][w],ie,ae(S,C,d),H),...O});return jsxs("div",{className:s("flex flex-col gap-1",k?"w-full":"w-fit",B,F),children:[t!==void 0&&jsxs("label",{htmlFor:m,className:s("font-black leading-none text-text uppercase tracking-widest",te[d],j),children:[t,n&&jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxs("div",{className:s("flex items-stretch",k?"w-full":"w-fit",M),children:[f!==void 0&&jsx(A,{side:"left",children:f}),jsxs("div",{className:"relative flex flex-1 items-center",children:[S&&jsx(z,{side:"left",size:d,children:D}),jsx("div",{className:s("flex-1",f!==void 0&&p!==void 0?"[&>input]:rounded-none":f!==void 0?"[&>input]:rounded-l-none":p!==void 0?"[&>input]:rounded-r-none":""),children:J}),C&&jsx(z,{side:"right",size:d,pointerEvents:!g&&!!y,children:G()})]}),p!==void 0&&jsx(A,{side:"right",children:p})]}),o!==void 0&&jsx("p",{id:R,className:s("text-xs leading-tight text-text-muted font-medium",v),children:o}),P!==void 0&&jsx("p",{id:N,role:c==="error"?"alert":void 0,className:s("text-xs leading-tight mt-1 font-medium",se[c],v),children:P})]})});V.displayName="DatePicker";
2
- export{V as DatePicker};
1
+ export { DatePicker } from '../chunk-7WNJ7L4Z.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1 +1,27 @@
1
- 'use strict';var react=require('react'),outline=require('@heroicons/react/24/outline'),reactDom=require('react-dom'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var S={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full m-0 rounded-none h-full"};function V({isOpen:e,onClose:t,children:y,size:m="md",isCentered:v=false,closeOnOverlayClick:w=true,closeOnEsc:c=true,trapFocus:f=true,lockScroll:u=true,contentClassName:D,overlayClassName:E,showBackdrop:h=true,isModal:o=true,ariaLabel:P,ariaLabelledby:C,ariaDescribedby:R}){let s=react.useRef(null),x=react.useRef(null),d=react.useCallback(()=>{t();},[t]);return react.useEffect(()=>{if(e){x.current=document.activeElement,o&&u&&(document.body.style.overflow="hidden");let a=r=>{if(c&&r.key==="Escape"){d();return}if(o&&f&&r.key==="Tab"){let i=s.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!i||i.length===0)return;let p=i[0],b=i[i.length-1];r.shiftKey?document.activeElement===p&&(b.focus(),r.preventDefault()):document.activeElement===b&&(p.focus(),r.preventDefault());}};return document.addEventListener("keydown",a),o&&setTimeout(()=>{let r=s.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');r!=null?r.focus():s.current?.focus();},0),()=>{document.removeEventListener("keydown",a),o&&u&&(document.body.style.overflow=""),x.current?.focus();}}},[e,c,d,u,f,o]),e?reactDom.createPortal(jsxRuntime.jsx("div",{role:"presentation",className:n("fixed inset-0 z-50 flex items-start justify-center p-4 sm:p-6 overflow-y-auto transition-opacity duration-300",h&&"bg-black/60 backdrop-blur-sm",!o&&"pointer-events-none",v&&"items-center",E),onClick:a=>{w&&a.target===a.currentTarget&&d();},children:jsxRuntime.jsx("div",{ref:s,role:"dialog",tabIndex:-1,"aria-modal":o?"true":"false","aria-label":P,"aria-labelledby":C,"aria-describedby":R,className:n("relative w-full mx-auto bg-surface rounded-xl shadow-lg border border-border transition-all duration-300 transform scale-100 opacity-100 flex flex-col",m!=="full"&&"max-h-[90vh]",!o&&"pointer-events-auto",S[m],D),children:y})}),document.body):null}function j({children:e,className:t}){return jsxRuntime.jsx("div",{className:n("px-6 py-5 border-b border-border/60",t),children:jsxRuntime.jsx("h2",{className:"text-xl font-bold text-text uppercase tracking-wider",children:e})})}function A({children:e,className:t}){return jsxRuntime.jsx("div",{className:n("px-6 py-6 overflow-y-auto flex-1 text-text-secondary leading-relaxed font-medium",t),children:e})}function M({children:e,className:t}){return jsxRuntime.jsx("div",{className:n("px-6 py-4 bg-surface-secondary border-t border-border flex items-center justify-end gap-3 rounded-b-xl",t),children:e})}function G({onClick:e,className:t}){return jsxRuntime.jsx("button",{type:"button",onClick:e,className:n("absolute top-4 right-4 p-2 text-text-muted hover:text-text hover:bg-hover rounded-lg transition-all duration-fast",t),"aria-label":"Close dialog",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-5 h-5"})})}exports.Dialog=V;exports.DialogBody=A;exports.DialogCloseButton=G;exports.DialogFooter=M;exports.DialogHeader=j;
1
+ 'use strict';
2
+
3
+ var chunkOPOCCRJG_cjs = require('../chunk-OPOCCRJG.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Dialog", {
9
+ enumerable: true,
10
+ get: function () { return chunkOPOCCRJG_cjs.Dialog; }
11
+ });
12
+ Object.defineProperty(exports, "DialogBody", {
13
+ enumerable: true,
14
+ get: function () { return chunkOPOCCRJG_cjs.DialogBody; }
15
+ });
16
+ Object.defineProperty(exports, "DialogCloseButton", {
17
+ enumerable: true,
18
+ get: function () { return chunkOPOCCRJG_cjs.DialogCloseButton; }
19
+ });
20
+ Object.defineProperty(exports, "DialogFooter", {
21
+ enumerable: true,
22
+ get: function () { return chunkOPOCCRJG_cjs.DialogFooter; }
23
+ });
24
+ Object.defineProperty(exports, "DialogHeader", {
25
+ enumerable: true,
26
+ get: function () { return chunkOPOCCRJG_cjs.DialogHeader; }
27
+ });
@@ -1 +1,2 @@
1
- import {useRef,useCallback,useEffect}from'react';import {XMarkIcon}from'@heroicons/react/24/outline';import {createPortal}from'react-dom';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';function n(...e){return twMerge(clsx(e))}var S={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full m-0 rounded-none h-full"};function V({isOpen:e,onClose:t,children:y,size:m="md",isCentered:v=false,closeOnOverlayClick:w=true,closeOnEsc:c=true,trapFocus:f=true,lockScroll:u=true,contentClassName:D,overlayClassName:E,showBackdrop:h=true,isModal:o=true,ariaLabel:P,ariaLabelledby:C,ariaDescribedby:R}){let s=useRef(null),x=useRef(null),d=useCallback(()=>{t();},[t]);return useEffect(()=>{if(e){x.current=document.activeElement,o&&u&&(document.body.style.overflow="hidden");let a=r=>{if(c&&r.key==="Escape"){d();return}if(o&&f&&r.key==="Tab"){let i=s.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!i||i.length===0)return;let p=i[0],b=i[i.length-1];r.shiftKey?document.activeElement===p&&(b.focus(),r.preventDefault()):document.activeElement===b&&(p.focus(),r.preventDefault());}};return document.addEventListener("keydown",a),o&&setTimeout(()=>{let r=s.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');r!=null?r.focus():s.current?.focus();},0),()=>{document.removeEventListener("keydown",a),o&&u&&(document.body.style.overflow=""),x.current?.focus();}}},[e,c,d,u,f,o]),e?createPortal(jsx("div",{role:"presentation",className:n("fixed inset-0 z-50 flex items-start justify-center p-4 sm:p-6 overflow-y-auto transition-opacity duration-300",h&&"bg-black/60 backdrop-blur-sm",!o&&"pointer-events-none",v&&"items-center",E),onClick:a=>{w&&a.target===a.currentTarget&&d();},children:jsx("div",{ref:s,role:"dialog",tabIndex:-1,"aria-modal":o?"true":"false","aria-label":P,"aria-labelledby":C,"aria-describedby":R,className:n("relative w-full mx-auto bg-surface rounded-xl shadow-lg border border-border transition-all duration-300 transform scale-100 opacity-100 flex flex-col",m!=="full"&&"max-h-[90vh]",!o&&"pointer-events-auto",S[m],D),children:y})}),document.body):null}function j({children:e,className:t}){return jsx("div",{className:n("px-6 py-5 border-b border-border/60",t),children:jsx("h2",{className:"text-xl font-bold text-text uppercase tracking-wider",children:e})})}function A({children:e,className:t}){return jsx("div",{className:n("px-6 py-6 overflow-y-auto flex-1 text-text-secondary leading-relaxed font-medium",t),children:e})}function M({children:e,className:t}){return jsx("div",{className:n("px-6 py-4 bg-surface-secondary border-t border-border flex items-center justify-end gap-3 rounded-b-xl",t),children:e})}function G({onClick:e,className:t}){return jsx("button",{type:"button",onClick:e,className:n("absolute top-4 right-4 p-2 text-text-muted hover:text-text hover:bg-hover rounded-lg transition-all duration-fast",t),"aria-label":"Close dialog",children:jsx(XMarkIcon,{className:"w-5 h-5"})})}export{V as Dialog,A as DialogBody,G as DialogCloseButton,M as DialogFooter,j as DialogHeader};
1
+ export { Dialog, DialogBody, DialogCloseButton, DialogFooter, DialogHeader } from '../chunk-OQPCL5XX.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1 +1,27 @@
1
- 'use strict';var t=require('react'),solid=require('@heroicons/react/20/solid'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);function w(...n){return tailwindMerge.twMerge(clsx.clsx(n))}var v=t__namespace.createContext(null);function M(){let n=t__namespace.useContext(v);if(!n)throw new Error("DropdownMenu components must be used within a DropdownMenu");return n}var R=({children:n,open:s,onOpenChange:o,className:m})=>{let[i,u]=t__namespace.useState(false),[e,d]=t__namespace.useState(null),l=s??i,a=t__namespace.useCallback(r=>{u(r),o?.(r);},[o]);return t__namespace.useEffect(()=>{if(!l)return;let r=p=>{e&&!e.contains(p.target)&&!p.target.closest("[data-dropdown-content]")&&a(false);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[l,a,e]),t__namespace.useEffect(()=>{if(!l)return;let r=p=>{p.key==="Escape"&&(a(false),e?.focus());};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r);}},[l,a,e]),jsxRuntime.jsx(v.Provider,{value:{open:l,setOpen:a,triggerElement:e,setTriggerElement:d},children:jsxRuntime.jsx("div",{className:w("relative inline-block",m),children:n})})},y={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-11 px-5 text-base"},h={default:"bg-surface border border-border text-text shadow-sm hover:bg-hover focus:ring-2 focus:ring-primary/40",subtle:"bg-surface-secondary text-text hover:bg-active",ghost:"bg-transparent text-text-secondary hover:bg-hover"},C=t__namespace.forwardRef(({children:n,className:s,size:o="md",variant:m="default",onClick:i,...u},e)=>{let{open:d,setOpen:l,setTriggerElement:a}=M(),r=t__namespace.useCallback(g=>{a(g),typeof e=="function"?e(g):e&&(e.current=g);},[e,a]),p=g=>{l(!d),i?.(g);};return jsxRuntime.jsxs("button",{ref:r,type:"button","aria-expanded":d,"aria-haspopup":"menu",className:w("inline-flex items-center justify-center rounded-md font-bold uppercase tracking-widest transition-all duration-normal focus:outline-none disabled:opacity-50 disabled:pointer-events-none",y[o],h[m],s),onClick:p,...u,children:[n,jsxRuntime.jsx(solid.ChevronDownIcon,{className:w("ml-2 h-4 w-4 transition-transform duration-200",d&&"rotate-180")})]})}),T=t__namespace.forwardRef(({children:n,className:s,align:o="left",width:m=220,...i},u)=>{let{open:e}=M();return e?jsxRuntime.jsx("div",{ref:u,"data-dropdown-content":true,role:"menu",style:{width:m},className:w("absolute top-full z-dropdown mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-surface p-1.5 text-text shadow-lg ring-1 ring-border/5 animate-in fade-in zoom-in-95 duration-normal",{left:"left-0",right:"right-0",center:"left-1/2 -translate-x-1/2"}[o],s),...i,children:n}):null}),L=t__namespace.forwardRef(({children:n,className:s,disabled:o,destructive:m,icon:i,shortcut:u,onClick:e,...d},l)=>{let{setOpen:a}=M(),r=f=>{o||(e?.(f),a(false));},p=f=>{o||(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),e?.(f),a(false));};return jsxRuntime.jsxs("div",{ref:l,role:"menuitem","aria-disabled":o,tabIndex:o?-1:0,className:w("relative flex cursor-default select-none items-center rounded-sm px-3 py-2 text-sm outline-none transition-all duration-fast focus:bg-hover data-disabled:pointer-events-none data-disabled:opacity-50 hover:bg-hover font-medium",m&&"text-error hover:bg-error/10 hover:text-error",o&&"opacity-50 pointer-events-none",s),onClick:r,onKeyDown:p,...d,children:[i&&jsxRuntime.jsx("span",{className:"mr-2 flex h-4 w-4 items-center justify-center",children:i}),jsxRuntime.jsx("span",{className:"flex-1",children:n}),u&&jsxRuntime.jsx("span",{className:"ml-auto text-xs tracking-widest text-text-muted font-bold",children:u})]})}),H=({className:n,...s})=>jsxRuntime.jsx("div",{className:w("-mx-1.5 my-1 h-px bg-divider",n),...s});R.displayName="DropdownMenu";C.displayName="DropdownMenuTrigger";T.displayName="DropdownMenuContent";L.displayName="DropdownMenuItem";H.displayName="DropdownMenuSeparator";exports.DropdownMenu=R;exports.DropdownMenuContent=T;exports.DropdownMenuItem=L;exports.DropdownMenuSeparator=H;exports.DropdownMenuTrigger=C;
1
+ 'use strict';
2
+
3
+ var chunkAJXVELXK_cjs = require('../chunk-AJXVELXK.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "DropdownMenu", {
9
+ enumerable: true,
10
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenu; }
11
+ });
12
+ Object.defineProperty(exports, "DropdownMenuContent", {
13
+ enumerable: true,
14
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuContent; }
15
+ });
16
+ Object.defineProperty(exports, "DropdownMenuItem", {
17
+ enumerable: true,
18
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuItem; }
19
+ });
20
+ Object.defineProperty(exports, "DropdownMenuSeparator", {
21
+ enumerable: true,
22
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuSeparator; }
23
+ });
24
+ Object.defineProperty(exports, "DropdownMenuTrigger", {
25
+ enumerable: true,
26
+ get: function () { return chunkAJXVELXK_cjs.DropdownMenuTrigger; }
27
+ });
@@ -1 +1,2 @@
1
- import*as t from'react';import {ChevronDownIcon}from'@heroicons/react/20/solid';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';function w(...n){return twMerge(clsx(n))}var v=t.createContext(null);function M(){let n=t.useContext(v);if(!n)throw new Error("DropdownMenu components must be used within a DropdownMenu");return n}var R=({children:n,open:s,onOpenChange:o,className:m})=>{let[i,u]=t.useState(false),[e,d]=t.useState(null),l=s??i,a=t.useCallback(r=>{u(r),o?.(r);},[o]);return t.useEffect(()=>{if(!l)return;let r=p=>{e&&!e.contains(p.target)&&!p.target.closest("[data-dropdown-content]")&&a(false);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[l,a,e]),t.useEffect(()=>{if(!l)return;let r=p=>{p.key==="Escape"&&(a(false),e?.focus());};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r);}},[l,a,e]),jsx(v.Provider,{value:{open:l,setOpen:a,triggerElement:e,setTriggerElement:d},children:jsx("div",{className:w("relative inline-block",m),children:n})})},y={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-11 px-5 text-base"},h={default:"bg-surface border border-border text-text shadow-sm hover:bg-hover focus:ring-2 focus:ring-primary/40",subtle:"bg-surface-secondary text-text hover:bg-active",ghost:"bg-transparent text-text-secondary hover:bg-hover"},C=t.forwardRef(({children:n,className:s,size:o="md",variant:m="default",onClick:i,...u},e)=>{let{open:d,setOpen:l,setTriggerElement:a}=M(),r=t.useCallback(g=>{a(g),typeof e=="function"?e(g):e&&(e.current=g);},[e,a]),p=g=>{l(!d),i?.(g);};return jsxs("button",{ref:r,type:"button","aria-expanded":d,"aria-haspopup":"menu",className:w("inline-flex items-center justify-center rounded-md font-bold uppercase tracking-widest transition-all duration-normal focus:outline-none disabled:opacity-50 disabled:pointer-events-none",y[o],h[m],s),onClick:p,...u,children:[n,jsx(ChevronDownIcon,{className:w("ml-2 h-4 w-4 transition-transform duration-200",d&&"rotate-180")})]})}),T=t.forwardRef(({children:n,className:s,align:o="left",width:m=220,...i},u)=>{let{open:e}=M();return e?jsx("div",{ref:u,"data-dropdown-content":true,role:"menu",style:{width:m},className:w("absolute top-full z-dropdown mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-surface p-1.5 text-text shadow-lg ring-1 ring-border/5 animate-in fade-in zoom-in-95 duration-normal",{left:"left-0",right:"right-0",center:"left-1/2 -translate-x-1/2"}[o],s),...i,children:n}):null}),L=t.forwardRef(({children:n,className:s,disabled:o,destructive:m,icon:i,shortcut:u,onClick:e,...d},l)=>{let{setOpen:a}=M(),r=f=>{o||(e?.(f),a(false));},p=f=>{o||(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),e?.(f),a(false));};return jsxs("div",{ref:l,role:"menuitem","aria-disabled":o,tabIndex:o?-1:0,className:w("relative flex cursor-default select-none items-center rounded-sm px-3 py-2 text-sm outline-none transition-all duration-fast focus:bg-hover data-disabled:pointer-events-none data-disabled:opacity-50 hover:bg-hover font-medium",m&&"text-error hover:bg-error/10 hover:text-error",o&&"opacity-50 pointer-events-none",s),onClick:r,onKeyDown:p,...d,children:[i&&jsx("span",{className:"mr-2 flex h-4 w-4 items-center justify-center",children:i}),jsx("span",{className:"flex-1",children:n}),u&&jsx("span",{className:"ml-auto text-xs tracking-widest text-text-muted font-bold",children:u})]})}),H=({className:n,...s})=>jsx("div",{className:w("-mx-1.5 my-1 h-px bg-divider",n),...s});R.displayName="DropdownMenu";C.displayName="DropdownMenuTrigger";T.displayName="DropdownMenuContent";L.displayName="DropdownMenuItem";H.displayName="DropdownMenuSeparator";export{R as DropdownMenu,T as DropdownMenuContent,L as DropdownMenuItem,H as DropdownMenuSeparator,C as DropdownMenuTrigger};
1
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from '../chunk-2POU3NX4.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1,2 +1,11 @@
1
- 'use strict';var react=require('react'),solid=require('@heroicons/react/20/solid'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function t(...r){return tailwindMerge.twMerge(clsx.clsx(r))}var ee={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},re={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},te={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none",unstyled:"border-0 bg-transparent p-0 focus:outline-none"},ne={default:{default:"border-border focus:border-primary",filled:"focus:border-primary",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error",filled:"bg-error/5 focus:border-error",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success",filled:"bg-success/5 focus:border-success",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning",filled:"bg-warning/5 border-warning focus:border-warning",flushed:"border-warning focus:border-warning",unstyled:""}},se={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"};function oe(r,n,a,s){if(r==="error"&&n)return n;if(r==="success"&&a)return a;if(r==="warning"&&s)return s}function V({children:r,side:n}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",n==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var ae=react.forwardRef(function({label:n,required:a=false,helperText:s,errorMessage:M,successMessage:z,warningMessage:A,variant:b="default",size:g="md",state:i="default",fullWidth:x=true,leftElement:h,rightElement:y,prefix:w,suffix:v,wrapperClassName:B,inputGroupClassName:P,inputClassName:H,labelClassName:j,helperClassName:E,id:L,disabled:N,className:T,clearable:D,isLoading:u,multiple:F=false,autoCapitalize:O="none",autoComplete:$="email",spellCheck:X=false,value:l,onChange:f,...q},o){let G=react.useId(),c=L??G,R=`${c}-helper`,C=`${c}-state`,m=D&&(typeof l=="string"||typeof l=="number")&&String(l).length>0,S=h!==void 0,I=y!==void 0||!!m||!!u,p=oe(i,M,z,A),J=[s?R:null,p?C:null].filter(Boolean).join(" ")||void 0,K=()=>{if(o&&typeof o!="function"&&o.current){Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(o.current,"");let k=new Event("input",{bubbles:true});o.current.dispatchEvent(k);}else f&&f({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},Q=()=>u?jsxRuntime.jsxs("svg",{className:"animate-spin h-5 w-5 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",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"})]}):m?jsxRuntime.jsx("button",{type:"button",onClick:K,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","aria-label":"Clear input",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-5 h-5"})}):y;return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",x?"w-full":"w-fit",B,T),children:[n!==void 0&&jsxRuntime.jsxs("label",{htmlFor:c,className:t("font-black leading-none text-text mb-2 uppercase tracking-widest",re[g],j),children:[n,a&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch transition-all duration-150 overflow-hidden",te[b],ne[i][b],x?"w-full":"w-fit","focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",N&&"opacity-50 cursor-not-allowed bg-surface-secondary",P),children:[w!==void 0&&jsxRuntime.jsx(V,{side:"left",children:w}),jsxRuntime.jsxs("div",{className:"flex flex-1 items-center min-w-0",children:[S&&jsxRuntime.jsx("div",{className:"pl-3 shrink-0 flex items-center justify-center",children:h}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 h-full",children:jsxRuntime.jsx("input",{ref:o,...q,id:c,disabled:!!N||!!u,type:"email",multiple:F,autoCapitalize:O,autoComplete:$,spellCheck:X,value:l,onChange:f,"aria-invalid":i==="error"?true:void 0,"aria-describedby":J,"aria-required":a,className:t("w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",ee[g],H),style:{paddingLeft:S?"0.5rem":void 0,paddingRight:I||m?"0.5rem":void 0}})}),I&&jsxRuntime.jsx("div",{className:"pr-3 shrink-0 flex items-center justify-center text-text-secondary",style:{width:"2.5rem"},children:Q()})]}),v!==void 0&&jsxRuntime.jsx(V,{side:"right",children:v})]}),s!==void 0&&jsxRuntime.jsx("p",{id:R,className:t("text-xs leading-tight text-text-muted",E),children:s}),p!==void 0&&jsxRuntime.jsx("p",{id:C,role:i==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 ",se[i],E),children:p})]})});ae.displayName="Email";
2
- exports.Email=ae;
1
+ 'use strict';
2
+
3
+ var chunkVC7MOPU6_cjs = require('../chunk-VC7MOPU6.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Email", {
9
+ enumerable: true,
10
+ get: function () { return chunkVC7MOPU6_cjs.Email; }
11
+ });
@@ -1,2 +1,2 @@
1
- import {forwardRef,useId}from'react';import {XMarkIcon}from'@heroicons/react/20/solid';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';function t(...r){return twMerge(clsx(r))}var ee={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},re={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},te={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none",unstyled:"border-0 bg-transparent p-0 focus:outline-none"},ne={default:{default:"border-border focus:border-primary",filled:"focus:border-primary",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error",filled:"bg-error/5 focus:border-error",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success",filled:"bg-success/5 focus:border-success",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning",filled:"bg-warning/5 border-warning focus:border-warning",flushed:"border-warning focus:border-warning",unstyled:""}},se={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"};function oe(r,n,a,s){if(r==="error"&&n)return n;if(r==="success"&&a)return a;if(r==="warning"&&s)return s}function V({children:r,side:n}){return jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",n==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var ae=forwardRef(function({label:n,required:a=false,helperText:s,errorMessage:M,successMessage:z,warningMessage:A,variant:b="default",size:g="md",state:i="default",fullWidth:x=true,leftElement:h,rightElement:y,prefix:w,suffix:v,wrapperClassName:B,inputGroupClassName:P,inputClassName:H,labelClassName:j,helperClassName:E,id:L,disabled:N,className:T,clearable:D,isLoading:u,multiple:F=false,autoCapitalize:O="none",autoComplete:$="email",spellCheck:X=false,value:l,onChange:f,...q},o){let G=useId(),c=L??G,R=`${c}-helper`,C=`${c}-state`,m=D&&(typeof l=="string"||typeof l=="number")&&String(l).length>0,S=h!==void 0,I=y!==void 0||!!m||!!u,p=oe(i,M,z,A),J=[s?R:null,p?C:null].filter(Boolean).join(" ")||void 0,K=()=>{if(o&&typeof o!="function"&&o.current){Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(o.current,"");let k=new Event("input",{bubbles:true});o.current.dispatchEvent(k);}else f&&f({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},Q=()=>u?jsxs("svg",{className:"animate-spin h-5 w-5 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsx("path",{className:"opacity-75",fill:"currentColor",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"})]}):m?jsx("button",{type:"button",onClick:K,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","aria-label":"Clear input",children:jsx(XMarkIcon,{className:"w-5 h-5"})}):y;return jsxs("div",{className:t("flex flex-col gap-1",x?"w-full":"w-fit",B,T),children:[n!==void 0&&jsxs("label",{htmlFor:c,className:t("font-black leading-none text-text mb-2 uppercase tracking-widest",re[g],j),children:[n,a&&jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxs("div",{className:t("flex items-stretch transition-all duration-150 overflow-hidden",te[b],ne[i][b],x?"w-full":"w-fit","focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",N&&"opacity-50 cursor-not-allowed bg-surface-secondary",P),children:[w!==void 0&&jsx(V,{side:"left",children:w}),jsxs("div",{className:"flex flex-1 items-center min-w-0",children:[S&&jsx("div",{className:"pl-3 shrink-0 flex items-center justify-center",children:h}),jsx("div",{className:"flex-1 min-w-0 h-full",children:jsx("input",{ref:o,...q,id:c,disabled:!!N||!!u,type:"email",multiple:F,autoCapitalize:O,autoComplete:$,spellCheck:X,value:l,onChange:f,"aria-invalid":i==="error"?true:void 0,"aria-describedby":J,"aria-required":a,className:t("w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",ee[g],H),style:{paddingLeft:S?"0.5rem":void 0,paddingRight:I||m?"0.5rem":void 0}})}),I&&jsx("div",{className:"pr-3 shrink-0 flex items-center justify-center text-text-secondary",style:{width:"2.5rem"},children:Q()})]}),v!==void 0&&jsx(V,{side:"right",children:v})]}),s!==void 0&&jsx("p",{id:R,className:t("text-xs leading-tight text-text-muted",E),children:s}),p!==void 0&&jsx("p",{id:C,role:i==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 ",se[i],E),children:p})]})});ae.displayName="Email";
2
- export{ae as Email};
1
+ export { Email } from '../chunk-4QSDPHPI.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1 +1,11 @@
1
- 'use strict';var react=require('react'),outline=require('@heroicons/react/24/outline'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function r(...m){return tailwindMerge.twMerge(clsx.clsx(m))}var ee={sm:"p-4 text-sm",md:"p-8 text-sm",lg:"p-12 text-base"},te={sm:"text-xs",md:"text-sm",lg:"text-sm"},re={default:"border-border hover:border-primary-hover bg-surface focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary",error:"border-error bg-error/5 focus-within:ring-2 focus-within:ring-error/20",success:"border-success bg-success/5 focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning bg-warning/5 focus-within:ring-2 focus-within:ring-warning/20"},E={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},ne=react.forwardRef(function({label:g,required:F=false,helperText:x,errorMessage:C,successMessage:M,warningMessage:U,size:h="md",state:t="default",fullWidth:I=true,wrapperClassName:N,labelClassName:R,helperClassName:v,dropzoneClassName:L,icon:k,maxSize:i,maxFiles:c,onFilesSelected:y,accept:p,multiple:H,disabled:n,id:T,className:A,...S},l){let K=react.useId(),d=T??K,f=react.useRef(null),[$,u]=react.useState(false),P=e=>{e.preventDefault(),n||u(true);},z=()=>{u(false);},O=e=>{if(e.preventDefault(),u(false),n)return;let o=Array.from(e.dataTransfer.files);b(o);},V=e=>{e.target.files&&b(Array.from(e.target.files));},b=e=>{let o=e;c&&e.length>c&&(o=e.slice(0,c)),i&&(o=o.filter(G=>G.size<=i)),y&&y(o);},w=()=>{f.current&&f.current.click();},B=`${d}-helper`,j=`${d}-state`,D=t==="error"?C:t==="success"?M:t==="warning"?U:void 0,q=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),w());};return jsxRuntime.jsxs("div",{className:r("flex flex-col gap-1.5",I?"w-full":"w-fit",N,A),children:[g&&jsxRuntime.jsxs("label",{htmlFor:d,className:r("font-black leading-none text-text uppercase tracking-widest",te[h],R),children:[g,F&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{onDragOver:P,onDragLeave:z,onDrop:O,onClick:w,onKeyDown:q,role:"button",tabIndex:n?-1:0,"aria-disabled":n,className:r("relative flex flex-col items-center justify-center border-2 border-dashed rounded-lg transition-all cursor-pointer group",ee[h],re[t],$&&"border-primary bg-primary/5 scale-[1.01] shadow-md",n&&"opacity-50 cursor-not-allowed bg-surface-secondary border-border",L),children:[jsxRuntime.jsx("input",{...S,ref:e=>{f.current=e,typeof l=="function"?l(e):l&&(l.current=e);},id:d,type:"file",accept:p,multiple:H,disabled:n,onChange:V,className:"sr-only"}),jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center pointer-events-none",children:[k??jsxRuntime.jsx(outline.CloudArrowUpIcon,{className:r("w-10 h-10 mb-2 transition-all duration-normal group-hover:scale-110",t==="default"?"text-text-muted":E[t])}),jsxRuntime.jsx("span",{className:"font-bold text-text transition-colors group-hover:text-primary",children:"Click to upload or drag and drop"}),jsxRuntime.jsxs("span",{className:"text-xs text-text-muted font-medium",children:[p?`Available formats: ${p}`:"Any file type",i&&` (Max ${String(Math.round(i/1024/1024))}MB)`]})]})]}),x&&jsxRuntime.jsx("p",{id:B,className:r("text-xs text-text-muted font-medium mt-1",v),children:x}),D&&jsxRuntime.jsx("p",{id:j,role:t==="error"?"alert":void 0,className:r("text-xs font-bold mt-1",E[t],v),children:D})]})});ne.displayName="FileUpload";exports.FileUpload=ne;
1
+ 'use strict';
2
+
3
+ var chunk6R3OYBQ6_cjs = require('../chunk-6R3OYBQ6.cjs');
4
+ require('../chunk-L5VQZZVR.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "FileUpload", {
9
+ enumerable: true,
10
+ get: function () { return chunk6R3OYBQ6_cjs.FileUpload; }
11
+ });
@@ -1 +1,2 @@
1
- import {forwardRef,useId,useRef,useState}from'react';import {CloudArrowUpIcon}from'@heroicons/react/24/outline';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';function r(...m){return twMerge(clsx(m))}var ee={sm:"p-4 text-sm",md:"p-8 text-sm",lg:"p-12 text-base"},te={sm:"text-xs",md:"text-sm",lg:"text-sm"},re={default:"border-border hover:border-primary-hover bg-surface focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary",error:"border-error bg-error/5 focus-within:ring-2 focus-within:ring-error/20",success:"border-success bg-success/5 focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning bg-warning/5 focus-within:ring-2 focus-within:ring-warning/20"},E={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},ne=forwardRef(function({label:g,required:F=false,helperText:x,errorMessage:C,successMessage:M,warningMessage:U,size:h="md",state:t="default",fullWidth:I=true,wrapperClassName:N,labelClassName:R,helperClassName:v,dropzoneClassName:L,icon:k,maxSize:i,maxFiles:c,onFilesSelected:y,accept:p,multiple:H,disabled:n,id:T,className:A,...S},l){let K=useId(),d=T??K,f=useRef(null),[$,u]=useState(false),P=e=>{e.preventDefault(),n||u(true);},z=()=>{u(false);},O=e=>{if(e.preventDefault(),u(false),n)return;let o=Array.from(e.dataTransfer.files);b(o);},V=e=>{e.target.files&&b(Array.from(e.target.files));},b=e=>{let o=e;c&&e.length>c&&(o=e.slice(0,c)),i&&(o=o.filter(G=>G.size<=i)),y&&y(o);},w=()=>{f.current&&f.current.click();},B=`${d}-helper`,j=`${d}-state`,D=t==="error"?C:t==="success"?M:t==="warning"?U:void 0,q=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),w());};return jsxs("div",{className:r("flex flex-col gap-1.5",I?"w-full":"w-fit",N,A),children:[g&&jsxs("label",{htmlFor:d,className:r("font-black leading-none text-text uppercase tracking-widest",te[h],R),children:[g,F&&jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxs("div",{onDragOver:P,onDragLeave:z,onDrop:O,onClick:w,onKeyDown:q,role:"button",tabIndex:n?-1:0,"aria-disabled":n,className:r("relative flex flex-col items-center justify-center border-2 border-dashed rounded-lg transition-all cursor-pointer group",ee[h],re[t],$&&"border-primary bg-primary/5 scale-[1.01] shadow-md",n&&"opacity-50 cursor-not-allowed bg-surface-secondary border-border",L),children:[jsx("input",{...S,ref:e=>{f.current=e,typeof l=="function"?l(e):l&&(l.current=e);},id:d,type:"file",accept:p,multiple:H,disabled:n,onChange:V,className:"sr-only"}),jsxs("div",{className:"flex flex-col items-center gap-2 text-center pointer-events-none",children:[k??jsx(CloudArrowUpIcon,{className:r("w-10 h-10 mb-2 transition-all duration-normal group-hover:scale-110",t==="default"?"text-text-muted":E[t])}),jsx("span",{className:"font-bold text-text transition-colors group-hover:text-primary",children:"Click to upload or drag and drop"}),jsxs("span",{className:"text-xs text-text-muted font-medium",children:[p?`Available formats: ${p}`:"Any file type",i&&` (Max ${String(Math.round(i/1024/1024))}MB)`]})]})]}),x&&jsx("p",{id:B,className:r("text-xs text-text-muted font-medium mt-1",v),children:x}),D&&jsx("p",{id:j,role:t==="error"?"alert":void 0,className:r("text-xs font-bold mt-1",E[t],v),children:D})]})});ne.displayName="FileUpload";export{ne as FileUpload};
1
+ export { FileUpload } from '../chunk-KA35BV7V.mjs';
2
+ import '../chunk-OCPFOFJ4.mjs';
@@ -1,2 +1,14 @@
1
- 'use strict';var clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),react=require('react'),reactDom=require('react-dom'),jsxRuntime=require('react/jsx-runtime'),outline=require('@heroicons/react/24/outline');function r(...p){return tailwindMerge.twMerge(clsx.clsx(p))}var ae=150,ye={top:"-translate-x-1/2 -translate-y-full",bottom:"-translate-x-1/2",left:"-translate-x-full -translate-y-1/2",right:"-translate-y-1/2"},ve={top:"top-full left-1/2 -translate-x-1/2",bottom:"bottom-full left-1/2 -translate-x-1/2",left:"left-full top-1/2 -translate-y-1/2",right:"right-full top-1/2 -translate-y-1/2"},we={top:"border-l-transparent border-r-transparent border-b-transparent",bottom:"border-l-transparent border-r-transparent border-t-transparent",left:"border-t-transparent border-b-transparent border-r-transparent",right:"border-t-transparent border-b-transparent border-l-transparent"},Te={top:"translate-y-1",bottom:"-translate-y-1",left:"translate-x-1",right:"-translate-x-1"},Re={sm:"px-2 py-1 text-xs rounded-md",md:"px-3 py-1.5 text-sm rounded-lg",lg:"px-4 py-2 text-sm rounded-xl"},Be={dark:["bg-gray-900 text-gray-50","shadow-[0_4px_16px_rgba(0,0,0,0.35)]","ring-1 ring-white/10"].join(" "),primary:["bg-gradient-to-b from-blue-500 to-blue-600 text-white","shadow-[0_4px_16px_rgba(59,130,246,0.45)]","ring-1 ring-blue-400/30"].join(" "),light:["bg-white text-gray-800","border border-gray-200/80","shadow-[0_4px_16px_rgba(0,0,0,0.10)]"].join(" ")},Ee={dark:{top:"border-t-gray-900",bottom:"border-b-gray-900",left:"border-l-gray-900",right:"border-r-gray-900"},primary:{top:"border-t-blue-600",bottom:"border-b-blue-500",left:"border-l-blue-600",right:"border-r-blue-500"},light:{top:"border-t-gray-200",bottom:"border-b-gray-200",left:"border-l-gray-200",right:"border-r-gray-200"}};function le({content:p,children:x,placement:t="top",trigger:n="hover",showDelay:s=0,hideDelay:d=100,size:o="md",variant:m="dark",open:H,disabled:a=false,maxWidth:z=240,className:M,wrapperClassName:V}){let[F,w]=react.useState(false),[L,T]=react.useState(false),[S,B]=react.useState(false),[U,de]=react.useState({top:0,left:0}),[E,me]=react.useState(t),y=H!==void 0,u=y?H:F,K=react.useRef(null),$=react.useRef(null),j=react.useRef(null),q=react.useRef(null),N=react.useRef(null),G=react.useId(),i=react.useCallback(()=>{j.current&&clearTimeout(j.current),q.current&&clearTimeout(q.current),N.current&&clearTimeout(N.current);},[]),Q=react.useCallback(()=>{if(a||y)return;i();let e=()=>{w(true);};s>0?j.current=setTimeout(e,s):e();},[a,y,i,s]),Y=react.useCallback(()=>{y||(i(),q.current=setTimeout(()=>{w(false);},d));},[y,i,d]),Z=react.useCallback(()=>{a||y||w(e=>!e);},[a,y]);react.useEffect(()=>{let e=null;return u&&!a?(i(),e=requestAnimationFrame(()=>{T(true),e=requestAnimationFrame(()=>{B(true);});})):(e=requestAnimationFrame(()=>{B(false);}),N.current=setTimeout(()=>{T(false);},ae)),()=>{e&&cancelAnimationFrame(e),N.current&&clearTimeout(N.current);}},[u,a,i]);let ee=react.useCallback(()=>{if(!K.current||!u)return;let e=K.current.getBoundingClientRect(),l=$.current,b=8,f=t,te=g=>{switch(g){case "top":return {t:e.top-b,l:e.left+e.width/2};case "bottom":return {t:e.bottom+b,l:e.left+e.width/2};case "left":return {t:e.top+e.height/2,l:e.left-b};case "right":return {t:e.top+e.height/2,l:e.right+b}}},re=te(t),I=re.t,A=re.l;if(l){let g=l.getBoundingClientRect(),h=12;if(t==="top"&&e.top-g.height-b<h?f="bottom":t==="bottom"&&e.bottom+g.height+b>window.innerHeight-h?f="top":t==="left"&&e.left-g.width-b<h?f="right":t==="right"&&e.right+g.width+b>window.innerWidth-h&&(f="left"),f!==t){let se=te(f);I=se.t,A=se.l;}let oe=g.width/2,ne=g.height/2;f==="top"||f==="bottom"?A=Math.max(h+oe,Math.min(window.innerWidth-h-oe,A)):I=Math.max(h+ne,Math.min(window.innerHeight-h-ne,I));}me(f),de({top:I,left:A});},[u,t]);react.useLayoutEffect(()=>{if(!u)return;let e=null,l=()=>{e=requestAnimationFrame(ee);};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,true),()=>{e!==null&&cancelAnimationFrame(e),window.removeEventListener("resize",l),window.removeEventListener("scroll",l,true);}},[u,ee]),react.useEffect(()=>{if(!u)return;let e=l=>{l.key==="Escape"&&(i(),w(false));};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e);}},[u,i]),react.useEffect(()=>i,[i]);let v={};(n==="hover"||n==="focus")&&(v.onFocus=Q,v.onBlur=Y),n==="hover"?(v.onMouseEnter=Q,v.onMouseLeave=Y):n==="click"&&(v.onClick=Z),v.onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&Z();};let ue=x;return jsxRuntime.jsxs("span",{ref:K,className:r("relative inline-flex isolate z-0",V),"aria-describedby":u&&!a?G:void 0,...v,children:[jsxRuntime.jsx("span",{className:"relative z-0",children:ue}),L&&!a&&reactDom.createPortal(jsxRuntime.jsx("div",{ref:$,className:r("pointer-events-none fixed z-[9999]",ye[E]),style:{top:U.top,left:U.left},children:jsxRuntime.jsxs("div",{id:G,role:"tooltip",style:{maxWidth:z,transitionDuration:`${ae.toString()}ms`},className:r("relative min-w-max whitespace-normal break-words","font-sans font-medium tracking-tight text-center leading-snug","transition-[opacity,transform] ease-out",S?"opacity-100 translate-x-0 translate-y-0":["opacity-0",Te[E]].join(" "),Be[m],Re[o],M),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:r("absolute border-[6px]","drop-shadow-sm",ve[E],we[E],Ee[m][E])}),p]})}),document.body)]})}var Ce={xs:"h-6 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-11 px-6 text-base",xl:"h-12 px-8 text-lg"},Pe={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"},ke={primary:"bg-primary text-text-inverse hover:bg-primary-hover hover:shadow-xl hover:shadow-primary/20 active:scale-95 border border-transparent shadow-md focus-visible:ring-primary/40 transition-all duration-normal",secondary:"bg-secondary text-text hover:bg-secondary-hover border border-transparent focus-visible:ring-primary/40",outline:"bg-transparent text-text border border-border hover:bg-hover hover:text-text focus-visible:ring-primary/40",ghost:"bg-transparent text-text border border-transparent hover:bg-hover hover:text-text focus-visible:ring-primary/40",danger:"bg-error text-text-inverse hover:bg-error/90 border border-transparent shadow-sm focus-visible:ring-error/40",success:"bg-success text-text-inverse hover:bg-success/90 border border-transparent shadow-sm focus-visible:ring-success/40",warning:"bg-warning text-text-inverse hover:bg-warning/90 border border-transparent shadow-sm focus-visible:ring-warning/40",info:"bg-info text-text-inverse hover:bg-info/90 border border-transparent shadow-sm focus-visible:ring-info/40"},He="opacity-50 cursor-not-allowed shadow-none",O=react.forwardRef(function({children:x,className:t,variant:n="primary",size:s="md",fullWidth:d=false,isLoading:o=false,loadingText:m,disabled:H=false,leftIcon:a,rightIcon:z,tooltip:M,tooltipPlacement:V="top",type:F="button",...w},L){let T=H||o,S=jsxRuntime.jsxs("div",{className:r("relative flex items-center justify-center",Pe[s]),children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full border-1 border-current opacity-20 animate-ping"}),jsxRuntime.jsxs("svg",{className:"animate-spin relative z-10 w-full h-full",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"status",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-90",fill:"currentColor",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"})]})]}),B=jsxRuntime.jsx("button",{ref:L,type:F,disabled:T,"aria-disabled":T,"aria-busy":o,className:r("relative inline-flex items-center justify-center gap-2 font-bold rounded-md transition-[background-color,border-color,color,box-shadow,transform,opacity] duration-normal focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-surface",Ce[s],ke[n],d?"w-full":"",T?He:"",t),...w,children:o&&m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,jsxRuntime.jsx("span",{children:m})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:r("inline-flex shrink-0",o&&"invisible opacity-0"),children:a}),jsxRuntime.jsx("span",{className:r("truncate flex items-center justify-center",o&&"invisible opacity-0"),children:x}),z&&jsxRuntime.jsx("span",{className:r("inline-flex shrink-0",o&&"invisible opacity-0"),children:z}),o&&!m&&jsxRuntime.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:S})]})});return M?jsxRuntime.jsx(le,{content:M,placement:V,wrapperClassName:d?"w-full":"",children:B}):B});O.displayName="Button";var Me={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-11 h-11",xl:"w-12 h-12"},W=react.forwardRef(({icon:p,"aria-label":x,isRound:t,className:n,size:s="md",...d},o)=>jsxRuntime.jsx(O,{ref:o,size:s,className:r("p-0 flex-shrink-0 min-w-0",Me[s],t&&"rounded-full",n),"aria-label":x,...d,children:p}));W.displayName="IconButton";var pe=({logo:p,children:x,actions:t,userSection:n,isSticky:s=true,className:d,glass:o=false,onMenuToggle:m})=>jsxRuntime.jsxs("header",{className:r("h-16 flex items-center justify-between px-6 bg-surface border-b border-border transition-all duration-normal",s&&"sticky top-0 z-index-sticky",o&&"glass",d),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[m&&jsxRuntime.jsx(W,{icon:jsxRuntime.jsx(outline.Bars3Icon,{className:"w-5 h-5"}),"aria-label":"Toggle Menu",variant:"ghost",size:"sm",onClick:m,className:"lg:hidden"}),p&&jsxRuntime.jsx("div",{className:"flex items-center",children:p})]}),jsxRuntime.jsx("div",{className:"flex-1 max-w-xl px-8 hidden md:block",children:x}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[t&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:t}),n&&jsxRuntime.jsx("div",{className:"flex items-center pl-2 ml-2 border-l border-border h-8",children:n})]})]});pe.displayName="Header";
2
- exports.Header=pe;
1
+ 'use strict';
2
+
3
+ var chunkEV463QT5_cjs = require('../chunk-EV463QT5.cjs');
4
+ require('../chunk-TNGW5YHA.cjs');
5
+ require('../chunk-6CC5KIA5.cjs');
6
+ require('../chunk-R72GDCWE.cjs');
7
+ require('../chunk-L5VQZZVR.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "Header", {
12
+ enumerable: true,
13
+ get: function () { return chunkEV463QT5_cjs.Header; }
14
+ });