@banzamel/mineralui 0.9.0 → 0.10.0

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 (783) hide show
  1. package/README.md +152 -151
  2. package/dist/AmericanExpressIcon-Bpk-Yz4y.js +1794 -0
  3. package/dist/AmericanExpressIcon-Bpk-Yz4y.js.map +1 -0
  4. package/dist/AmericanExpressIcon-Duhw7WXn.cjs +2 -0
  5. package/dist/AmericanExpressIcon-Duhw7WXn.cjs.map +1 -0
  6. package/dist/AppShell-BGFVRml6.js +659 -0
  7. package/dist/AppShell-BGFVRml6.js.map +1 -0
  8. package/dist/AppShell-ButYSI7U.cjs +2 -0
  9. package/dist/AppShell-ButYSI7U.cjs.map +1 -0
  10. package/dist/ArrowDownIcon-DzDirevG.js +21 -0
  11. package/dist/ArrowDownIcon-DzDirevG.js.map +1 -0
  12. package/dist/ArrowDownIcon-EfyFLBHR.cjs +2 -0
  13. package/dist/ArrowDownIcon-EfyFLBHR.cjs.map +1 -0
  14. package/dist/Avatar-Ba4TdSXp.cjs +2 -0
  15. package/dist/Avatar-Ba4TdSXp.cjs.map +1 -0
  16. package/dist/Avatar-BzokUdR4.js +50 -0
  17. package/dist/Avatar-BzokUdR4.js.map +1 -0
  18. package/dist/Badge-BF8-zXDl.js +15 -0
  19. package/dist/Badge-BF8-zXDl.js.map +1 -0
  20. package/dist/Badge-CivRCrzY.cjs +2 -0
  21. package/dist/Badge-CivRCrzY.cjs.map +1 -0
  22. package/dist/BrandMoreIcons-Cb4cXa_M.cjs +2 -0
  23. package/dist/BrandMoreIcons-Cb4cXa_M.cjs.map +1 -0
  24. package/dist/BrandMoreIcons-DnusZA-G.js +825 -0
  25. package/dist/BrandMoreIcons-DnusZA-G.js.map +1 -0
  26. package/dist/Button-BUd8Dkdx.cjs +2 -0
  27. package/dist/Button-BUd8Dkdx.cjs.map +1 -0
  28. package/dist/Button-BnxXh7zp.js +52 -0
  29. package/dist/Button-BnxXh7zp.js.map +1 -0
  30. package/dist/CalendarBoard-DidNBym4.js +998 -0
  31. package/dist/CalendarBoard-DidNBym4.js.map +1 -0
  32. package/dist/CalendarBoard-DvGimf8K.cjs +2 -0
  33. package/dist/CalendarBoard-DvGimf8K.cjs.map +1 -0
  34. package/dist/CalendarIcon-D74I9hJl.cjs +2 -0
  35. package/dist/CalendarIcon-D74I9hJl.cjs.map +1 -0
  36. package/dist/CalendarIcon-gvWV3ioD.js +29 -0
  37. package/dist/CalendarIcon-gvWV3ioD.js.map +1 -0
  38. package/dist/Card-AbIdSFmm.cjs +2 -0
  39. package/dist/Card-AbIdSFmm.cjs.map +1 -0
  40. package/dist/Card-B_4TR7gc.js +55 -0
  41. package/dist/Card-B_4TR7gc.js.map +1 -0
  42. package/dist/CardGrid-Cm0qx9ue.cjs +2 -0
  43. package/dist/CardGrid-Cm0qx9ue.cjs.map +1 -0
  44. package/dist/CardGrid-nqnCwmTD.js +581 -0
  45. package/dist/CardGrid-nqnCwmTD.js.map +1 -0
  46. package/dist/Checkbox-B4t7uzS2.js +60 -0
  47. package/dist/Checkbox-B4t7uzS2.js.map +1 -0
  48. package/dist/Checkbox-BXetIDRT.cjs +2 -0
  49. package/dist/Checkbox-BXetIDRT.cjs.map +1 -0
  50. package/dist/ChevronDownIcon-BDiyHPT4.js +15 -0
  51. package/dist/ChevronDownIcon-BDiyHPT4.js.map +1 -0
  52. package/dist/ChevronDownIcon-CkT_O5e5.cjs +2 -0
  53. package/dist/ChevronDownIcon-CkT_O5e5.cjs.map +1 -0
  54. package/dist/ChevronLeftIcon-DVwatRi0.cjs +2 -0
  55. package/dist/ChevronLeftIcon-DVwatRi0.cjs.map +1 -0
  56. package/dist/ChevronLeftIcon-lTktpFVi.js +15 -0
  57. package/dist/ChevronLeftIcon-lTktpFVi.js.map +1 -0
  58. package/dist/ChevronRightIcon-1oaUsxM2.js +15 -0
  59. package/dist/ChevronRightIcon-1oaUsxM2.js.map +1 -0
  60. package/dist/ChevronRightIcon-Bxqjb5s0.cjs +2 -0
  61. package/dist/ChevronRightIcon-Bxqjb5s0.cjs.map +1 -0
  62. package/dist/ClockIcon-CTHDAJUU.js +19 -0
  63. package/dist/ClockIcon-CTHDAJUU.js.map +1 -0
  64. package/dist/ClockIcon-DeDZlnTQ.cjs +2 -0
  65. package/dist/ClockIcon-DeDZlnTQ.cjs.map +1 -0
  66. package/dist/CloseIcon-5btDsUxB.cjs +2 -0
  67. package/dist/CloseIcon-5btDsUxB.cjs.map +1 -0
  68. package/dist/CloseIcon-DGl8CDLK.js +15 -0
  69. package/dist/CloseIcon-DGl8CDLK.js.map +1 -0
  70. package/dist/ColorPicker-BqE5PvW5.js +457 -0
  71. package/dist/ColorPicker-BqE5PvW5.js.map +1 -0
  72. package/dist/ColorPicker-DlrPaM8W.cjs +2 -0
  73. package/dist/ColorPicker-DlrPaM8W.cjs.map +1 -0
  74. package/dist/DropdownMenu-Bf1l4spO.js +139 -0
  75. package/dist/DropdownMenu-Bf1l4spO.js.map +1 -0
  76. package/dist/DropdownMenu-CvUG4QEC.cjs +2 -0
  77. package/dist/DropdownMenu-CvUG4QEC.cjs.map +1 -0
  78. package/dist/FileExtIcons-BecWBncW.js +145 -0
  79. package/dist/FileExtIcons-BecWBncW.js.map +1 -0
  80. package/dist/FileExtIcons-FTFddWmg.cjs +2 -0
  81. package/dist/FileExtIcons-FTFddWmg.cjs.map +1 -0
  82. package/dist/FolderOpenIcon-BAxBjkbK.js +31 -0
  83. package/dist/FolderOpenIcon-BAxBjkbK.js.map +1 -0
  84. package/dist/FolderOpenIcon-D2fsAXLM.cjs +2 -0
  85. package/dist/FolderOpenIcon-D2fsAXLM.cjs.map +1 -0
  86. package/dist/Heading-CALsycVL.cjs +2 -0
  87. package/dist/Heading-CALsycVL.cjs.map +1 -0
  88. package/dist/Heading-DtcgehrI.js +17 -0
  89. package/dist/Heading-DtcgehrI.js.map +1 -0
  90. package/dist/I18nProvider-CAnFu85r.js +69 -0
  91. package/dist/I18nProvider-CAnFu85r.js.map +1 -0
  92. package/dist/I18nProvider-CiYjTmgv.cjs +2 -0
  93. package/dist/I18nProvider-CiYjTmgv.cjs.map +1 -0
  94. package/dist/Icon-B-s6VJr5.cjs +2 -0
  95. package/dist/Icon-B-s6VJr5.cjs.map +1 -0
  96. package/dist/Icon-B848Vysm.js +45 -0
  97. package/dist/Icon-B848Vysm.js.map +1 -0
  98. package/dist/InputFile-C6Y-y8CQ.cjs +2 -0
  99. package/dist/InputFile-C6Y-y8CQ.cjs.map +1 -0
  100. package/dist/InputFile-DicC8Tbv.js +1356 -0
  101. package/dist/InputFile-DicC8Tbv.js.map +1 -0
  102. package/dist/InputSearch-BO_j0nAW.js +218 -0
  103. package/dist/InputSearch-BO_j0nAW.js.map +1 -0
  104. package/dist/InputSearch-Bk5YFz09.cjs +2 -0
  105. package/dist/InputSearch-Bk5YFz09.cjs.map +1 -0
  106. package/dist/Kbd-qcCkiDkW.js +55 -0
  107. package/dist/Kbd-qcCkiDkW.js.map +1 -0
  108. package/dist/Kbd-wmU-rhWO.cjs +2 -0
  109. package/dist/Kbd-wmU-rhWO.cjs.map +1 -0
  110. package/dist/Link-D3lmTu3R.js +30 -0
  111. package/dist/Link-D3lmTu3R.js.map +1 -0
  112. package/dist/Link-DSIStgFG.cjs +2 -0
  113. package/dist/Link-DSIStgFG.cjs.map +1 -0
  114. package/dist/MPagination-C-Ff4orL.js +103 -0
  115. package/dist/MPagination-C-Ff4orL.js.map +1 -0
  116. package/dist/MPagination-CVy14D9v.cjs +2 -0
  117. package/dist/MPagination-CVy14D9v.cjs.map +1 -0
  118. package/dist/MasonryItem-BsD5OuYt.js +368 -0
  119. package/dist/MasonryItem-BsD5OuYt.js.map +1 -0
  120. package/dist/MasonryItem-CBxzCuRr.cjs +2 -0
  121. package/dist/MasonryItem-CBxzCuRr.cjs.map +1 -0
  122. package/dist/MenuIcon-mX5bSTAp.js +20 -0
  123. package/dist/MenuIcon-mX5bSTAp.js.map +1 -0
  124. package/dist/MenuIcon-x1LjLPWp.cjs +2 -0
  125. package/dist/MenuIcon-x1LjLPWp.cjs.map +1 -0
  126. package/dist/Modal-BDDrW5HI.js +56 -0
  127. package/dist/Modal-BDDrW5HI.js.map +1 -0
  128. package/dist/Modal-DrtVZtb1.cjs +2 -0
  129. package/dist/Modal-DrtVZtb1.cjs.map +1 -0
  130. package/dist/NeutralIcon-BPZ3coWv.js +67 -0
  131. package/dist/NeutralIcon-BPZ3coWv.js.map +1 -0
  132. package/dist/NeutralIcon-CScIXs8_.cjs +2 -0
  133. package/dist/NeutralIcon-CScIXs8_.cjs.map +1 -0
  134. package/dist/PhoneIcon-CPGZ1D2-.cjs +2 -0
  135. package/dist/PhoneIcon-CPGZ1D2-.cjs.map +1 -0
  136. package/dist/PhoneIcon-DXlB7Uz0.js +38 -0
  137. package/dist/PhoneIcon-DXlB7Uz0.js.map +1 -0
  138. package/dist/Popconfirm-BJtyFjdY.js +200 -0
  139. package/dist/Popconfirm-BJtyFjdY.js.map +1 -0
  140. package/dist/Popconfirm-DQqBq_OP.cjs +2 -0
  141. package/dist/Popconfirm-DQqBq_OP.cjs.map +1 -0
  142. package/dist/Popover-BLYlu0jf.js +95 -0
  143. package/dist/Popover-BLYlu0jf.js.map +1 -0
  144. package/dist/Popover-BfCYHGUU.cjs +2 -0
  145. package/dist/Popover-BfCYHGUU.cjs.map +1 -0
  146. package/dist/Portal-CeUZ2xET.cjs +2 -0
  147. package/dist/Portal-CeUZ2xET.cjs.map +1 -0
  148. package/dist/Portal-s54PuE_l.js +10 -0
  149. package/dist/Portal-s54PuE_l.js.map +1 -0
  150. package/dist/QrCode-CP1sYiXF.js +371 -0
  151. package/dist/QrCode-CP1sYiXF.js.map +1 -0
  152. package/dist/QrCode-scUXUrNj.cjs +2 -0
  153. package/dist/QrCode-scUXUrNj.cjs.map +1 -0
  154. package/dist/SearchIcon-DDahNpBX.js +24 -0
  155. package/dist/SearchIcon-DDahNpBX.js.map +1 -0
  156. package/dist/SearchIcon-DeKs76RI.cjs +2 -0
  157. package/dist/SearchIcon-DeKs76RI.cjs.map +1 -0
  158. package/dist/Slider-BgHTWUXS.cjs +2 -0
  159. package/dist/Slider-BgHTWUXS.cjs.map +1 -0
  160. package/dist/Slider-BvnJPPAf.js +75 -0
  161. package/dist/Slider-BvnJPPAf.js.map +1 -0
  162. package/dist/Stack-DzFHpLMS.cjs +2 -0
  163. package/dist/Stack-DzFHpLMS.cjs.map +1 -0
  164. package/dist/Stack-xUXSOKqN.js +40 -0
  165. package/dist/Stack-xUXSOKqN.js.map +1 -0
  166. package/dist/StarFillIcon-D4HEOD6y.cjs +2 -0
  167. package/dist/StarFillIcon-D4HEOD6y.cjs.map +1 -0
  168. package/dist/StarFillIcon-tMWVk8tT.js +25 -0
  169. package/dist/StarFillIcon-tMWVk8tT.js.map +1 -0
  170. package/dist/Surface-BVk3r7ws.cjs +2 -0
  171. package/dist/Surface-BVk3r7ws.cjs.map +1 -0
  172. package/dist/Surface-E8hELelv.js +40 -0
  173. package/dist/Surface-E8hELelv.js.map +1 -0
  174. package/dist/Text-DOVuH0uw.js +39 -0
  175. package/dist/Text-DOVuH0uw.js.map +1 -0
  176. package/dist/Text-DUuY1RDL.cjs +2 -0
  177. package/dist/Text-DUuY1RDL.cjs.map +1 -0
  178. package/dist/ThemeProvider-CCWDIXiA.cjs +2 -0
  179. package/dist/ThemeProvider-CCWDIXiA.cjs.map +1 -0
  180. package/dist/ThemeProvider-COEImCNH.js +132 -0
  181. package/dist/ThemeProvider-COEImCNH.js.map +1 -0
  182. package/dist/TimePicker-BXbuLCDX.js +1204 -0
  183. package/dist/TimePicker-BXbuLCDX.js.map +1 -0
  184. package/dist/TimePicker-DDhkqier.cjs +2 -0
  185. package/dist/TimePicker-DDhkqier.cjs.map +1 -0
  186. package/dist/ToastProvider-DRz62qKU.cjs +2 -0
  187. package/dist/ToastProvider-DRz62qKU.cjs.map +1 -0
  188. package/dist/ToastProvider-Dlgk48v1.js +234 -0
  189. package/dist/ToastProvider-Dlgk48v1.js.map +1 -0
  190. package/dist/Toggle-BACN6Wrk.cjs +2 -0
  191. package/dist/Toggle-BACN6Wrk.cjs.map +1 -0
  192. package/dist/Toggle-D9M7aDWh.js +140 -0
  193. package/dist/Toggle-D9M7aDWh.js.map +1 -0
  194. package/dist/ZoomInIcon-CtoKX0Ri.cjs +2 -0
  195. package/dist/ZoomInIcon-CtoKX0Ri.cjs.map +1 -0
  196. package/dist/ZoomInIcon-UNvzc9zU.js +113 -0
  197. package/dist/ZoomInIcon-UNvzc9zU.js.map +1 -0
  198. package/dist/appearanceProps-65LbXIeI.cjs +2 -0
  199. package/dist/appearanceProps-65LbXIeI.cjs.map +1 -0
  200. package/dist/appearanceProps-8tN47e1u.js +8 -0
  201. package/dist/appearanceProps-8tN47e1u.js.map +1 -0
  202. package/dist/cards.cjs +2 -0
  203. package/dist/cards.d.ts +3 -0
  204. package/dist/cards.js +8 -0
  205. package/dist/cn-BIeeqGZv.js +8 -0
  206. package/dist/cn-BIeeqGZv.js.map +1 -0
  207. package/dist/cn-BOmEz3Rt.cjs +2 -0
  208. package/dist/cn-BOmEz3Rt.cjs.map +1 -0
  209. package/dist/components/cards/Card/Card.d.ts +5 -0
  210. package/dist/components/cards/Card/Card.types.d.ts +16 -0
  211. package/dist/components/cards/Card/index.d.ts +2 -0
  212. package/dist/components/cards/CardBusiness/CardBusiness.d.ts +2 -0
  213. package/dist/components/cards/CardBusiness/CardBusiness.types.d.ts +33 -0
  214. package/dist/components/cards/CardBusiness/index.d.ts +2 -0
  215. package/dist/components/cards/CardGrid/CardGrid.d.ts +2 -0
  216. package/dist/components/cards/CardGrid/CardGrid.types.d.ts +27 -0
  217. package/dist/components/cards/CardGrid/index.d.ts +2 -0
  218. package/dist/components/cards/CardPayment/CardPayment.d.ts +2 -0
  219. package/dist/components/cards/CardPayment/CardPayment.types.d.ts +13 -0
  220. package/dist/components/cards/CardPayment/index.d.ts +2 -0
  221. package/dist/components/cards/CardService/CardService.d.ts +2 -0
  222. package/dist/components/cards/CardService/CardService.types.d.ts +37 -0
  223. package/dist/components/cards/CardService/index.d.ts +2 -0
  224. package/dist/components/cards/index.d.ts +10 -0
  225. package/dist/components/controls/Button/Button.d.ts +2 -0
  226. package/dist/components/controls/Button/Button.types.d.ts +22 -0
  227. package/dist/components/controls/Button/index.d.ts +2 -0
  228. package/dist/components/controls/Checkbox/Checkbox.d.ts +3 -0
  229. package/dist/components/controls/Checkbox/Checkbox.types.d.ts +24 -0
  230. package/dist/components/controls/Checkbox/index.d.ts +2 -0
  231. package/dist/components/controls/Radio/Radio.d.ts +3 -0
  232. package/dist/components/controls/Radio/Radio.types.d.ts +47 -0
  233. package/dist/components/controls/Radio/RadioContext.d.ts +3 -0
  234. package/dist/components/controls/Radio/RadioGroup.d.ts +2 -0
  235. package/dist/components/controls/Radio/index.d.ts +3 -0
  236. package/dist/components/controls/Slider/Slider.d.ts +2 -0
  237. package/dist/components/controls/Slider/Slider.types.d.ts +17 -0
  238. package/dist/components/controls/Slider/index.d.ts +2 -0
  239. package/dist/components/controls/Toggle/Toggle.d.ts +2 -0
  240. package/dist/components/controls/Toggle/Toggle.types.d.ts +20 -0
  241. package/dist/components/controls/Toggle/index.d.ts +2 -0
  242. package/dist/components/controls/index.d.ts +10 -0
  243. package/dist/components/data/CalendarBoard/CalendarBoard.d.ts +7 -0
  244. package/dist/components/data/CalendarBoard/CalendarBoard.types.d.ts +117 -0
  245. package/dist/components/data/CalendarBoard/index.d.ts +2 -0
  246. package/dist/components/data/DataTable/DataTable.d.ts +2 -0
  247. package/dist/components/data/DataTable/DataTable.types.d.ts +34 -0
  248. package/dist/components/data/DataTable/index.d.ts +2 -0
  249. package/dist/components/data/TaskList/TaskList.d.ts +2 -0
  250. package/dist/components/data/TaskList/TaskList.types.d.ts +14 -0
  251. package/dist/components/data/TaskList/index.d.ts +2 -0
  252. package/dist/components/data/TreeView/TreeView.d.ts +2 -0
  253. package/dist/components/data/TreeView/TreeView.types.d.ts +63 -0
  254. package/dist/components/data/TreeView/index.d.ts +2 -0
  255. package/dist/components/data/index.d.ts +8 -0
  256. package/dist/components/display/Accordion/Accordion.d.ts +3 -0
  257. package/dist/components/display/Accordion/Accordion.types.d.ts +16 -0
  258. package/dist/components/display/Accordion/index.d.ts +2 -0
  259. package/dist/components/display/Collapsible/Collapsible.d.ts +2 -0
  260. package/dist/components/display/Collapsible/Collapsible.types.d.ts +10 -0
  261. package/dist/components/display/Collapsible/index.d.ts +2 -0
  262. package/dist/components/display/ColorPicker/ColorPicker.d.ts +2 -0
  263. package/dist/components/display/ColorPicker/ColorPicker.types.d.ts +11 -0
  264. package/dist/components/display/ColorPicker/index.d.ts +2 -0
  265. package/dist/components/display/CountUp/CountUp.d.ts +2 -0
  266. package/dist/components/display/CountUp/CountUp.types.d.ts +10 -0
  267. package/dist/components/display/CountUp/index.d.ts +2 -0
  268. package/dist/components/display/ProgressBar/ProgressBar.d.ts +2 -0
  269. package/dist/components/display/ProgressBar/ProgressBar.types.d.ts +12 -0
  270. package/dist/components/display/ProgressBar/index.d.ts +2 -0
  271. package/dist/components/display/QrCode/QrCode.d.ts +2 -0
  272. package/dist/components/display/QrCode/QrCode.types.d.ts +8 -0
  273. package/dist/components/display/QrCode/index.d.ts +2 -0
  274. package/dist/components/display/Rating/Rating.d.ts +2 -0
  275. package/dist/components/display/Rating/Rating.types.d.ts +10 -0
  276. package/dist/components/display/Rating/index.d.ts +2 -0
  277. package/dist/components/display/TimeAgo/TimeAgo.d.ts +2 -0
  278. package/dist/components/display/TimeAgo/TimeAgo.types.d.ts +11 -0
  279. package/dist/components/display/TimeAgo/index.d.ts +2 -0
  280. package/dist/components/display/index.d.ts +16 -0
  281. package/dist/components/dropdowns/Autocomplete/Autocomplete.d.ts +2 -0
  282. package/dist/components/dropdowns/Autocomplete/Autocomplete.types.d.ts +38 -0
  283. package/dist/components/dropdowns/Autocomplete/index.d.ts +2 -0
  284. package/dist/components/dropdowns/DatePicker/DatePicker.d.ts +2 -0
  285. package/dist/components/dropdowns/DatePicker/DatePicker.types.d.ts +33 -0
  286. package/dist/components/dropdowns/DatePicker/index.d.ts +2 -0
  287. package/dist/components/dropdowns/DateRangePicker/DateRangePicker.d.ts +2 -0
  288. package/dist/components/dropdowns/DateRangePicker/DateRangePicker.types.d.ts +50 -0
  289. package/dist/components/dropdowns/DateRangePicker/index.d.ts +2 -0
  290. package/dist/components/dropdowns/Select/Select.d.ts +2 -0
  291. package/dist/components/dropdowns/Select/Select.types.d.ts +39 -0
  292. package/dist/components/dropdowns/Select/index.d.ts +2 -0
  293. package/dist/components/dropdowns/TimePicker/TimePicker.d.ts +2 -0
  294. package/dist/components/dropdowns/TimePicker/TimePicker.types.d.ts +30 -0
  295. package/dist/components/dropdowns/TimePicker/index.d.ts +2 -0
  296. package/dist/components/dropdowns/index.d.ts +10 -0
  297. package/dist/components/feedback/Alert/Alert.d.ts +2 -0
  298. package/dist/components/feedback/Alert/Alert.types.d.ts +9 -0
  299. package/dist/components/feedback/Alert/index.d.ts +2 -0
  300. package/dist/components/feedback/Badge/Badge.d.ts +2 -0
  301. package/dist/components/feedback/Badge/Badge.types.d.ts +9 -0
  302. package/dist/components/feedback/Badge/index.d.ts +2 -0
  303. package/dist/components/feedback/Banner/Banner.d.ts +2 -0
  304. package/dist/components/feedback/Banner/Banner.types.d.ts +12 -0
  305. package/dist/components/feedback/Banner/index.d.ts +2 -0
  306. package/dist/components/feedback/Loader/Loader.d.ts +2 -0
  307. package/dist/components/feedback/Loader/Loader.types.d.ts +9 -0
  308. package/dist/components/feedback/Loader/index.d.ts +2 -0
  309. package/dist/components/feedback/Spinner/Spinner.d.ts +2 -0
  310. package/dist/components/feedback/Spinner/Spinner.types.d.ts +7 -0
  311. package/dist/components/feedback/Spinner/index.d.ts +2 -0
  312. package/dist/components/feedback/Tag/Tag.d.ts +2 -0
  313. package/dist/components/feedback/Tag/Tag.types.d.ts +12 -0
  314. package/dist/components/feedback/Tag/index.d.ts +2 -0
  315. package/dist/components/feedback/Toast/Toast.types.d.ts +27 -0
  316. package/dist/components/feedback/Toast/ToastContext.d.ts +3 -0
  317. package/dist/components/feedback/Toast/ToastItem.d.ts +5 -0
  318. package/dist/components/feedback/Toast/ToastProvider.d.ts +4 -0
  319. package/dist/components/feedback/Toast/index.d.ts +3 -0
  320. package/dist/components/feedback/index.d.ts +14 -0
  321. package/dist/components/form/Form/Form.d.ts +2 -0
  322. package/dist/components/form/Form/Form.types.d.ts +42 -0
  323. package/dist/components/form/Form/FormContext.d.ts +3 -0
  324. package/dist/components/form/Form/index.d.ts +5 -0
  325. package/dist/components/form/Form/useFormField.d.ts +13 -0
  326. package/dist/components/form/index.d.ts +2 -0
  327. package/dist/components/inputs/Input/Input.d.ts +3 -0
  328. package/dist/components/inputs/Input/Input.types.d.ts +49 -0
  329. package/dist/components/inputs/Input/index.d.ts +2 -0
  330. package/dist/components/inputs/InputCreditCard/InputCreditCard.d.ts +3 -0
  331. package/dist/components/inputs/InputCreditCard/InputCreditCard.types.d.ts +12 -0
  332. package/dist/components/inputs/InputCreditCard/index.d.ts +2 -0
  333. package/dist/components/inputs/InputCurrency/InputCurrency.d.ts +3 -0
  334. package/dist/components/inputs/InputCurrency/InputCurrency.types.d.ts +13 -0
  335. package/dist/components/inputs/InputCurrency/index.d.ts +2 -0
  336. package/dist/components/inputs/InputEmail/InputEmail.d.ts +3 -0
  337. package/dist/components/inputs/InputEmail/InputEmail.types.d.ts +8 -0
  338. package/dist/components/inputs/InputEmail/index.d.ts +2 -0
  339. package/dist/components/inputs/InputFile/CropEditor.d.ts +11 -0
  340. package/dist/components/inputs/InputFile/InputFile.d.ts +3 -0
  341. package/dist/components/inputs/InputFile/InputFile.types.d.ts +29 -0
  342. package/dist/components/inputs/InputFile/index.d.ts +2 -0
  343. package/dist/components/inputs/InputGroup/InputGroup.d.ts +3 -0
  344. package/dist/components/inputs/InputGroup/InputGroup.types.d.ts +14 -0
  345. package/dist/components/inputs/InputGroup/index.d.ts +2 -0
  346. package/dist/components/inputs/InputIBAN/InputIBAN.d.ts +3 -0
  347. package/dist/components/inputs/InputIBAN/InputIBAN.types.d.ts +10 -0
  348. package/dist/components/inputs/InputIBAN/index.d.ts +2 -0
  349. package/dist/components/inputs/InputName/InputName.d.ts +3 -0
  350. package/dist/components/inputs/InputName/InputName.types.d.ts +10 -0
  351. package/dist/components/inputs/InputName/index.d.ts +2 -0
  352. package/dist/components/inputs/InputNumber/InputNumber.d.ts +3 -0
  353. package/dist/components/inputs/InputNumber/InputNumber.types.d.ts +10 -0
  354. package/dist/components/inputs/InputNumber/index.d.ts +2 -0
  355. package/dist/components/inputs/InputOTP/InputOTP.d.ts +3 -0
  356. package/dist/components/inputs/InputOTP/InputOTP.types.d.ts +15 -0
  357. package/dist/components/inputs/InputOTP/index.d.ts +2 -0
  358. package/dist/components/inputs/InputPassword/InputPassword.d.ts +3 -0
  359. package/dist/components/inputs/InputPassword/InputPassword.types.d.ts +7 -0
  360. package/dist/components/inputs/InputPassword/index.d.ts +2 -0
  361. package/dist/components/inputs/InputPhone/InputPhone.d.ts +3 -0
  362. package/dist/components/inputs/InputPhone/InputPhone.types.d.ts +10 -0
  363. package/dist/components/inputs/InputPhone/index.d.ts +2 -0
  364. package/dist/components/inputs/InputPostCode/InputPostCode.d.ts +3 -0
  365. package/dist/components/inputs/InputPostCode/InputPostCode.types.d.ts +12 -0
  366. package/dist/components/inputs/InputPostCode/index.d.ts +2 -0
  367. package/dist/components/inputs/InputSearch/InputSearch.d.ts +3 -0
  368. package/dist/components/inputs/InputSearch/InputSearch.types.d.ts +5 -0
  369. package/dist/components/inputs/InputSearch/index.d.ts +2 -0
  370. package/dist/components/inputs/InputSlider/InputSlider.d.ts +3 -0
  371. package/dist/components/inputs/InputSlider/InputSlider.types.d.ts +12 -0
  372. package/dist/components/inputs/InputSlider/index.d.ts +2 -0
  373. package/dist/components/inputs/InputTaxId/InputTaxId.d.ts +3 -0
  374. package/dist/components/inputs/InputTaxId/InputTaxId.types.d.ts +11 -0
  375. package/dist/components/inputs/InputTaxId/index.d.ts +2 -0
  376. package/dist/components/inputs/Textarea/Textarea.d.ts +3 -0
  377. package/dist/components/inputs/Textarea/Textarea.types.d.ts +41 -0
  378. package/dist/components/inputs/Textarea/index.d.ts +2 -0
  379. package/dist/components/inputs/index.d.ts +34 -0
  380. package/dist/components/layout/AppShell/AppShell.d.ts +4 -0
  381. package/dist/components/layout/AppShell/AppShell.types.d.ts +7 -0
  382. package/dist/components/layout/AppShell/index.d.ts +2 -0
  383. package/dist/components/layout/Container/Container.d.ts +2 -0
  384. package/dist/components/layout/Container/Container.types.d.ts +10 -0
  385. package/dist/components/layout/Container/index.d.ts +2 -0
  386. package/dist/components/layout/Divider/Divider.d.ts +2 -0
  387. package/dist/components/layout/Divider/Divider.types.d.ts +9 -0
  388. package/dist/components/layout/Divider/index.d.ts +2 -0
  389. package/dist/components/layout/Grid/Grid.d.ts +2 -0
  390. package/dist/components/layout/Grid/Grid.types.d.ts +10 -0
  391. package/dist/components/layout/Grid/index.d.ts +2 -0
  392. package/dist/components/layout/Inline/Inline.d.ts +2 -0
  393. package/dist/components/layout/Inline/Inline.types.d.ts +15 -0
  394. package/dist/components/layout/Inline/index.d.ts +2 -0
  395. package/dist/components/layout/MBreadcrumb/MBreadcrumb.d.ts +2 -0
  396. package/dist/components/layout/MBreadcrumb/MBreadcrumb.types.d.ts +11 -0
  397. package/dist/components/layout/MBreadcrumb/index.d.ts +2 -0
  398. package/dist/components/layout/MFooter/MFooter.d.ts +2 -0
  399. package/dist/components/layout/MFooter/MFooter.types.d.ts +11 -0
  400. package/dist/components/layout/MFooter/index.d.ts +2 -0
  401. package/dist/components/layout/MGrid/MGrid.d.ts +3 -0
  402. package/dist/components/layout/MGrid/MGrid.types.d.ts +21 -0
  403. package/dist/components/layout/MGrid/index.d.ts +2 -0
  404. package/dist/components/layout/MHeader/MHeader.d.ts +2 -0
  405. package/dist/components/layout/MHeader/MHeader.types.d.ts +13 -0
  406. package/dist/components/layout/MHeader/index.d.ts +2 -0
  407. package/dist/components/layout/MNavbar/MNavbar.d.ts +2 -0
  408. package/dist/components/layout/MNavbar/MNavbar.types.d.ts +18 -0
  409. package/dist/components/layout/MNavbar/index.d.ts +2 -0
  410. package/dist/components/layout/MNavs/MNavs.d.ts +2 -0
  411. package/dist/components/layout/MNavs/MNavs.types.d.ts +19 -0
  412. package/dist/components/layout/MNavs/index.d.ts +2 -0
  413. package/dist/components/layout/MPagination/MPagination.d.ts +2 -0
  414. package/dist/components/layout/MPagination/MPagination.types.d.ts +10 -0
  415. package/dist/components/layout/MPagination/index.d.ts +2 -0
  416. package/dist/components/layout/MSidebar/MSidebar.d.ts +9 -0
  417. package/dist/components/layout/MSidebar/MSidebar.types.d.ts +60 -0
  418. package/dist/components/layout/MSidebar/index.d.ts +2 -0
  419. package/dist/components/layout/MSubNav/MSubNav.d.ts +2 -0
  420. package/dist/components/layout/MSubNav/MSubNav.types.d.ts +14 -0
  421. package/dist/components/layout/MSubNav/index.d.ts +2 -0
  422. package/dist/components/layout/MTabs/MTabs.d.ts +2 -0
  423. package/dist/components/layout/MTabs/MTabs.types.d.ts +28 -0
  424. package/dist/components/layout/MTabs/index.d.ts +2 -0
  425. package/dist/components/layout/Section/Section.d.ts +2 -0
  426. package/dist/components/layout/Section/Section.types.d.ts +13 -0
  427. package/dist/components/layout/Section/index.d.ts +2 -0
  428. package/dist/components/layout/Stack/Stack.d.ts +2 -0
  429. package/dist/components/layout/Stack/Stack.types.d.ts +11 -0
  430. package/dist/components/layout/Stack/index.d.ts +2 -0
  431. package/dist/components/layout/Surface/Surface.d.ts +2 -0
  432. package/dist/components/layout/Surface/Surface.types.d.ts +13 -0
  433. package/dist/components/layout/Surface/index.d.ts +2 -0
  434. package/dist/components/layout/index.d.ts +36 -0
  435. package/dist/components/media/Avatar/Avatar.d.ts +2 -0
  436. package/dist/components/media/Avatar/Avatar.types.d.ts +19 -0
  437. package/dist/components/media/Avatar/index.d.ts +2 -0
  438. package/dist/components/media/Carousel/Carousel.d.ts +2 -0
  439. package/dist/components/media/Carousel/Carousel.types.d.ts +12 -0
  440. package/dist/components/media/Carousel/index.d.ts +2 -0
  441. package/dist/components/media/Gallery/Gallery.d.ts +2 -0
  442. package/dist/components/media/Gallery/Gallery.types.d.ts +14 -0
  443. package/dist/components/media/Gallery/index.d.ts +2 -0
  444. package/dist/components/media/Image/Image.d.ts +2 -0
  445. package/dist/components/media/Image/Image.types.d.ts +13 -0
  446. package/dist/components/media/Image/index.d.ts +2 -0
  447. package/dist/components/media/Masonry/Masonry.d.ts +2 -0
  448. package/dist/components/media/Masonry/Masonry.types.d.ts +7 -0
  449. package/dist/components/media/Masonry/index.d.ts +2 -0
  450. package/dist/components/media/MasonryItem/MasonryItem.d.ts +3 -0
  451. package/dist/components/media/MasonryItem/MasonryItem.types.d.ts +14 -0
  452. package/dist/components/media/MasonryItem/index.d.ts +2 -0
  453. package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.d.ts +2 -0
  454. package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.types.d.ts +19 -0
  455. package/dist/components/media/ShowcaseCarousel/index.d.ts +2 -0
  456. package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.d.ts +3 -0
  457. package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.types.d.ts +16 -0
  458. package/dist/components/media/ShowcaseCarouselItem/index.d.ts +2 -0
  459. package/dist/components/media/index.d.ts +16 -0
  460. package/dist/components/overlays/Drawer/Drawer.d.ts +5 -0
  461. package/dist/components/overlays/Drawer/Drawer.types.d.ts +17 -0
  462. package/dist/components/overlays/Drawer/index.d.ts +2 -0
  463. package/dist/components/overlays/DropdownMenu/DropdownMenu.d.ts +9 -0
  464. package/dist/components/overlays/DropdownMenu/DropdownMenu.types.d.ts +32 -0
  465. package/dist/components/overlays/DropdownMenu/index.d.ts +2 -0
  466. package/dist/components/overlays/Modal/Modal.d.ts +2 -0
  467. package/dist/components/overlays/Modal/Modal.types.d.ts +12 -0
  468. package/dist/components/overlays/Modal/index.d.ts +2 -0
  469. package/dist/components/overlays/Popconfirm/Popconfirm.d.ts +2 -0
  470. package/dist/components/overlays/Popconfirm/Popconfirm.types.d.ts +18 -0
  471. package/dist/components/overlays/Popconfirm/index.d.ts +2 -0
  472. package/dist/components/overlays/Tooltip/Tooltip.d.ts +2 -0
  473. package/dist/components/overlays/Tooltip/Tooltip.types.d.ts +9 -0
  474. package/dist/components/overlays/Tooltip/index.d.ts +2 -0
  475. package/dist/components/overlays/index.d.ts +10 -0
  476. package/dist/components/primitives/Popover/Popover.d.ts +2 -0
  477. package/dist/components/primitives/Popover/Popover.types.d.ts +14 -0
  478. package/dist/components/primitives/Popover/index.d.ts +2 -0
  479. package/dist/components/primitives/Portal/Portal.d.ts +2 -0
  480. package/dist/components/primitives/Portal/Portal.types.d.ts +5 -0
  481. package/dist/components/primitives/Portal/index.d.ts +2 -0
  482. package/dist/components/primitives/index.d.ts +4 -0
  483. package/dist/components/typography/Code/Code.d.ts +2 -0
  484. package/dist/components/typography/Code/Code.types.d.ts +7 -0
  485. package/dist/components/typography/Code/index.d.ts +2 -0
  486. package/dist/components/typography/Heading/Heading.d.ts +281 -0
  487. package/dist/components/typography/Heading/Heading.types.d.ts +9 -0
  488. package/dist/components/typography/Heading/index.d.ts +2 -0
  489. package/dist/components/typography/Kbd/Kbd.d.ts +2 -0
  490. package/dist/components/typography/Kbd/Kbd.types.d.ts +6 -0
  491. package/dist/components/typography/Kbd/index.d.ts +2 -0
  492. package/dist/components/typography/Link/Link.d.ts +2 -0
  493. package/dist/components/typography/Link/Link.types.d.ts +15 -0
  494. package/dist/components/typography/Link/index.d.ts +2 -0
  495. package/dist/components/typography/List/List.d.ts +4 -0
  496. package/dist/components/typography/List/List.types.d.ts +8 -0
  497. package/dist/components/typography/List/index.d.ts +2 -0
  498. package/dist/components/typography/SubText/SubText.d.ts +2 -0
  499. package/dist/components/typography/SubText/SubText.types.d.ts +9 -0
  500. package/dist/components/typography/SubText/index.d.ts +2 -0
  501. package/dist/components/typography/Text/Text.d.ts +2 -0
  502. package/dist/components/typography/Text/Text.types.d.ts +16 -0
  503. package/dist/components/typography/Text/index.d.ts +2 -0
  504. package/dist/components/typography/index.d.ts +14 -0
  505. package/dist/controls.cjs +2 -0
  506. package/dist/controls.d.ts +3 -0
  507. package/dist/controls.js +6 -0
  508. package/dist/creditCards-CUM63Oia.cjs +2 -0
  509. package/dist/creditCards-CUM63Oia.cjs.map +1 -0
  510. package/dist/creditCards-pLOxJ6gs.js +129 -0
  511. package/dist/creditCards-pLOxJ6gs.js.map +1 -0
  512. package/dist/data.cjs +2 -0
  513. package/dist/data.d.ts +3 -0
  514. package/dist/data.js +16 -0
  515. package/dist/dateUtils-D3rghkxq.js +67 -0
  516. package/dist/dateUtils-D3rghkxq.js.map +1 -0
  517. package/dist/dateUtils-a8oMntCI.cjs +2 -0
  518. package/dist/dateUtils-a8oMntCI.cjs.map +1 -0
  519. package/dist/display.cjs +2 -0
  520. package/dist/display.d.ts +3 -0
  521. package/dist/display.js +6 -0
  522. package/dist/dropdowns.cjs +2 -0
  523. package/dist/dropdowns.d.ts +3 -0
  524. package/dist/dropdowns.js +4 -0
  525. package/dist/feedback.cjs +2 -0
  526. package/dist/feedback.d.ts +3 -0
  527. package/dist/feedback.js +6 -0
  528. package/dist/form.cjs +2 -0
  529. package/dist/form.d.ts +3 -0
  530. package/dist/form.js +3 -0
  531. package/dist/formatters-C3tjM3rj.cjs +2 -0
  532. package/dist/formatters-C3tjM3rj.cjs.map +1 -0
  533. package/dist/formatters-CtZdwLSU.js +89 -0
  534. package/dist/formatters-CtZdwLSU.js.map +1 -0
  535. package/dist/i18n/I18nProvider.d.ts +18 -0
  536. package/dist/i18n/index.d.ts +2 -0
  537. package/dist/i18n.cjs +2 -0
  538. package/dist/i18n.d.ts +2 -0
  539. package/dist/i18n.entry.d.ts +1 -0
  540. package/dist/i18n.js +3 -0
  541. package/dist/icons/Icon.d.ts +2 -0
  542. package/dist/icons/Icon.types.d.ts +8 -0
  543. package/dist/icons/glyphs/AmericanExpressIcon.d.ts +3 -0
  544. package/dist/icons/glyphs/ArrowDownIcon.d.ts +2 -0
  545. package/dist/icons/glyphs/ArrowLeftIcon.d.ts +2 -0
  546. package/dist/icons/glyphs/ArrowRightIcon.d.ts +2 -0
  547. package/dist/icons/glyphs/ArrowUpDownIcon.d.ts +2 -0
  548. package/dist/icons/glyphs/ArrowUpIcon.d.ts +2 -0
  549. package/dist/icons/glyphs/BankIcon.d.ts +2 -0
  550. package/dist/icons/glyphs/BellIcon.d.ts +2 -0
  551. package/dist/icons/glyphs/BoltIcon.d.ts +2 -0
  552. package/dist/icons/glyphs/BoxIcon.d.ts +2 -0
  553. package/dist/icons/glyphs/BrandIcons.d.ts +21 -0
  554. package/dist/icons/glyphs/BrandMoreIcons.d.ts +27 -0
  555. package/dist/icons/glyphs/BugIcon.d.ts +2 -0
  556. package/dist/icons/glyphs/BuildingIcon.d.ts +2 -0
  557. package/dist/icons/glyphs/CalendarIcon.d.ts +2 -0
  558. package/dist/icons/glyphs/CameraIcon.d.ts +2 -0
  559. package/dist/icons/glyphs/CartIcon.d.ts +2 -0
  560. package/dist/icons/glyphs/ChartIcon.d.ts +2 -0
  561. package/dist/icons/glyphs/ChatIcon.d.ts +2 -0
  562. package/dist/icons/glyphs/ChatsIcon.d.ts +2 -0
  563. package/dist/icons/glyphs/CheckCircleIcon.d.ts +2 -0
  564. package/dist/icons/glyphs/CheckIcon.d.ts +2 -0
  565. package/dist/icons/glyphs/ChevronDownIcon.d.ts +2 -0
  566. package/dist/icons/glyphs/ChevronLeftIcon.d.ts +2 -0
  567. package/dist/icons/glyphs/ChevronRightIcon.d.ts +2 -0
  568. package/dist/icons/glyphs/ChevronUpIcon.d.ts +2 -0
  569. package/dist/icons/glyphs/ClickIcon.d.ts +2 -0
  570. package/dist/icons/glyphs/ClipboardIcon.d.ts +2 -0
  571. package/dist/icons/glyphs/ClockIcon.d.ts +2 -0
  572. package/dist/icons/glyphs/CloseIcon.d.ts +2 -0
  573. package/dist/icons/glyphs/CommentIcon.d.ts +2 -0
  574. package/dist/icons/glyphs/CopyIcon.d.ts +2 -0
  575. package/dist/icons/glyphs/CopyrightIcon.d.ts +2 -0
  576. package/dist/icons/glyphs/CreditCardIcon.d.ts +2 -0
  577. package/dist/icons/glyphs/CubeIcon.d.ts +2 -0
  578. package/dist/icons/glyphs/DashboardIcon.d.ts +2 -0
  579. package/dist/icons/glyphs/DatabaseIcon.d.ts +2 -0
  580. package/dist/icons/glyphs/DeviceMonitorIcon.d.ts +2 -0
  581. package/dist/icons/glyphs/DevicePhoneIcon.d.ts +2 -0
  582. package/dist/icons/glyphs/DeviceTabletIcon.d.ts +2 -0
  583. package/dist/icons/glyphs/DocCopyIcon.d.ts +2 -0
  584. package/dist/icons/glyphs/DocIcon.d.ts +2 -0
  585. package/dist/icons/glyphs/DocPlusIcon.d.ts +2 -0
  586. package/dist/icons/glyphs/DollarIcon.d.ts +2 -0
  587. package/dist/icons/glyphs/DownloadIcon.d.ts +2 -0
  588. package/dist/icons/glyphs/EditIcon.d.ts +2 -0
  589. package/dist/icons/glyphs/EllipsisVerticalIcon.d.ts +2 -0
  590. package/dist/icons/glyphs/ErrorIcon.d.ts +2 -0
  591. package/dist/icons/glyphs/EuroIcon.d.ts +2 -0
  592. package/dist/icons/glyphs/ExternalLinkIcon.d.ts +2 -0
  593. package/dist/icons/glyphs/EyeIcon.d.ts +2 -0
  594. package/dist/icons/glyphs/EyeOffIcon.d.ts +2 -0
  595. package/dist/icons/glyphs/FileArchiveIcon.d.ts +2 -0
  596. package/dist/icons/glyphs/FileCodeIcon.d.ts +2 -0
  597. package/dist/icons/glyphs/FileExtIcons.d.ts +27 -0
  598. package/dist/icons/glyphs/FileIcon.d.ts +2 -0
  599. package/dist/icons/glyphs/FileImageIcon.d.ts +2 -0
  600. package/dist/icons/glyphs/FilePdfIcon.d.ts +2 -0
  601. package/dist/icons/glyphs/FileTextIcon.d.ts +2 -0
  602. package/dist/icons/glyphs/FileVideoIcon.d.ts +2 -0
  603. package/dist/icons/glyphs/FilterIcon.d.ts +2 -0
  604. package/dist/icons/glyphs/FlagArIcon.d.ts +2 -0
  605. package/dist/icons/glyphs/FlagBrIcon.d.ts +2 -0
  606. package/dist/icons/glyphs/FlagCaIcon.d.ts +2 -0
  607. package/dist/icons/glyphs/FlagCnIcon.d.ts +2 -0
  608. package/dist/icons/glyphs/FlagCzIcon.d.ts +2 -0
  609. package/dist/icons/glyphs/FlagDeIcon.d.ts +2 -0
  610. package/dist/icons/glyphs/FlagEsIcon.d.ts +2 -0
  611. package/dist/icons/glyphs/FlagFrIcon.d.ts +2 -0
  612. package/dist/icons/glyphs/FlagGbIcon.d.ts +2 -0
  613. package/dist/icons/glyphs/FlagInIcon.d.ts +2 -0
  614. package/dist/icons/glyphs/FlagItIcon.d.ts +2 -0
  615. package/dist/icons/glyphs/FlagJpIcon.d.ts +2 -0
  616. package/dist/icons/glyphs/FlagMxIcon.d.ts +2 -0
  617. package/dist/icons/glyphs/FlagPlIcon.d.ts +2 -0
  618. package/dist/icons/glyphs/FlagRuIcon.d.ts +2 -0
  619. package/dist/icons/glyphs/FlagSkIcon.d.ts +2 -0
  620. package/dist/icons/glyphs/FlagUaIcon.d.ts +2 -0
  621. package/dist/icons/glyphs/FlagUsIcon.d.ts +2 -0
  622. package/dist/icons/glyphs/FolderIcon.d.ts +2 -0
  623. package/dist/icons/glyphs/FolderOpenIcon.d.ts +2 -0
  624. package/dist/icons/glyphs/FolderPlusIcon.d.ts +2 -0
  625. package/dist/icons/glyphs/FormIcon.d.ts +2 -0
  626. package/dist/icons/glyphs/GalleryIcon.d.ts +2 -0
  627. package/dist/icons/glyphs/GlobeIcon.d.ts +2 -0
  628. package/dist/icons/glyphs/GroupIcon.d.ts +2 -0
  629. package/dist/icons/glyphs/HeartFillIcon.d.ts +2 -0
  630. package/dist/icons/glyphs/HeartIcon.d.ts +2 -0
  631. package/dist/icons/glyphs/HelpIcon.d.ts +2 -0
  632. package/dist/icons/glyphs/HomeIcon.d.ts +2 -0
  633. package/dist/icons/glyphs/IdCardIcon.d.ts +2 -0
  634. package/dist/icons/glyphs/ImageIcon.d.ts +2 -0
  635. package/dist/icons/glyphs/InfoIcon.d.ts +2 -0
  636. package/dist/icons/glyphs/KanbanIcon.d.ts +2 -0
  637. package/dist/icons/glyphs/LayoutIcon.d.ts +2 -0
  638. package/dist/icons/glyphs/LightbulbIcon.d.ts +2 -0
  639. package/dist/icons/glyphs/LinkIcon.d.ts +2 -0
  640. package/dist/icons/glyphs/LockIcon.d.ts +2 -0
  641. package/dist/icons/glyphs/LockOpenIcon.d.ts +2 -0
  642. package/dist/icons/glyphs/MagicIcon.d.ts +2 -0
  643. package/dist/icons/glyphs/MailIcon.d.ts +2 -0
  644. package/dist/icons/glyphs/MailOpenIcon.d.ts +2 -0
  645. package/dist/icons/glyphs/MenuIcon.d.ts +2 -0
  646. package/dist/icons/glyphs/MinusIcon.d.ts +2 -0
  647. package/dist/icons/glyphs/MoonIcon.d.ts +2 -0
  648. package/dist/icons/glyphs/MoreIcon.d.ts +3 -0
  649. package/dist/icons/glyphs/NeutralIcon.d.ts +2 -0
  650. package/dist/icons/glyphs/PaletteIcon.d.ts +2 -0
  651. package/dist/icons/glyphs/PhoneIcon.d.ts +2 -0
  652. package/dist/icons/glyphs/PinIcon.d.ts +2 -0
  653. package/dist/icons/glyphs/PlusIcon.d.ts +2 -0
  654. package/dist/icons/glyphs/ProtectIcon.d.ts +2 -0
  655. package/dist/icons/glyphs/PuzzleIcon.d.ts +2 -0
  656. package/dist/icons/glyphs/RefreshIcon.d.ts +2 -0
  657. package/dist/icons/glyphs/SearchIcon.d.ts +2 -0
  658. package/dist/icons/glyphs/SendIcon.d.ts +2 -0
  659. package/dist/icons/glyphs/SettingsIcon.d.ts +2 -0
  660. package/dist/icons/glyphs/SidebarIcon.d.ts +2 -0
  661. package/dist/icons/glyphs/Signal1Icon.d.ts +2 -0
  662. package/dist/icons/glyphs/Signal2Icon.d.ts +2 -0
  663. package/dist/icons/glyphs/Signal3Icon.d.ts +2 -0
  664. package/dist/icons/glyphs/Signal4Icon.d.ts +2 -0
  665. package/dist/icons/glyphs/SlidersIcon.d.ts +2 -0
  666. package/dist/icons/glyphs/SortIcon.d.ts +2 -0
  667. package/dist/icons/glyphs/StarFillIcon.d.ts +2 -0
  668. package/dist/icons/glyphs/StarIcon.d.ts +2 -0
  669. package/dist/icons/glyphs/SuccessIcon.d.ts +2 -0
  670. package/dist/icons/glyphs/SunIcon.d.ts +2 -0
  671. package/dist/icons/glyphs/TagIcon.d.ts +2 -0
  672. package/dist/icons/glyphs/TeamIcon.d.ts +2 -0
  673. package/dist/icons/glyphs/TerminalIcon.d.ts +2 -0
  674. package/dist/icons/glyphs/TranslateIcon.d.ts +2 -0
  675. package/dist/icons/glyphs/TrashIcon.d.ts +2 -0
  676. package/dist/icons/glyphs/UploadIcon.d.ts +2 -0
  677. package/dist/icons/glyphs/UserIcon.d.ts +2 -0
  678. package/dist/icons/glyphs/UsersIcon.d.ts +2 -0
  679. package/dist/icons/glyphs/WarningIcon.d.ts +2 -0
  680. package/dist/icons/glyphs/WindowIcon.d.ts +2 -0
  681. package/dist/icons/glyphs/ZoomInIcon.d.ts +2 -0
  682. package/dist/icons/glyphs/ZoomOutIcon.d.ts +2 -0
  683. package/dist/icons/glyphs/fileMark.d.ts +9 -0
  684. package/dist/icons/index.d.ts +142 -0
  685. package/dist/icons.cjs +2 -0
  686. package/dist/icons.d.ts +2 -0
  687. package/dist/icons.entry.d.ts +3 -0
  688. package/dist/icons.js +20 -0
  689. package/dist/index.cjs +2 -4
  690. package/dist/index.d.ts +183 -3062
  691. package/dist/index.js +63 -8896
  692. package/dist/inputs.cjs +2 -0
  693. package/dist/inputs.d.ts +3 -0
  694. package/dist/inputs.js +6 -0
  695. package/dist/layout.cjs +2 -0
  696. package/dist/layout.d.ts +3 -0
  697. package/dist/layout.js +9 -0
  698. package/dist/layoutProps-CY4cnDrW.js +29 -0
  699. package/dist/layoutProps-CY4cnDrW.js.map +1 -0
  700. package/dist/layoutProps-Dw_ZW6ot.cjs +2 -0
  701. package/dist/layoutProps-Dw_ZW6ot.cjs.map +1 -0
  702. package/dist/locale-C_PRdyIv.cjs +2 -0
  703. package/dist/locale-C_PRdyIv.cjs.map +1 -0
  704. package/dist/locale-DofwII5P.js +58 -0
  705. package/dist/locale-DofwII5P.js.map +1 -0
  706. package/dist/media.cjs +2 -0
  707. package/dist/media.d.ts +3 -0
  708. package/dist/media.js +7 -0
  709. package/dist/overlays.cjs +2 -0
  710. package/dist/overlays.d.ts +3 -0
  711. package/dist/overlays.js +8 -0
  712. package/dist/primitives.cjs +2 -0
  713. package/dist/primitives.d.ts +3 -0
  714. package/dist/primitives.js +4 -0
  715. package/dist/style-runtime.cjs +2 -0
  716. package/dist/style-runtime.js +2 -0
  717. package/dist/styles.css +1 -1
  718. package/dist/theme/ThemeProvider.d.ts +20 -0
  719. package/dist/theme/index.d.ts +3 -0
  720. package/dist/theme/types.d.ts +50 -0
  721. package/dist/theme.cjs +2 -0
  722. package/dist/theme.d.ts +2 -0
  723. package/dist/theme.entry.d.ts +1 -0
  724. package/dist/theme.js +3 -0
  725. package/dist/typography.cjs +2 -0
  726. package/dist/typography.d.ts +3 -0
  727. package/dist/typography.js +6 -0
  728. package/dist/useClickOutside-CS-Mc6ne.cjs +2 -0
  729. package/dist/useClickOutside-CS-Mc6ne.cjs.map +1 -0
  730. package/dist/useClickOutside-Dcye4Ut0.js +16 -0
  731. package/dist/useClickOutside-Dcye4Ut0.js.map +1 -0
  732. package/dist/useDebounce-C3jbJOKC.cjs +2 -0
  733. package/dist/useDebounce-C3jbJOKC.cjs.map +1 -0
  734. package/dist/useDebounce-D-v3IRXp.js +21 -0
  735. package/dist/useDebounce-D-v3IRXp.js.map +1 -0
  736. package/dist/useFormField-Bz4d7m8u.cjs +2 -0
  737. package/dist/useFormField-Bz4d7m8u.cjs.map +1 -0
  738. package/dist/useFormField-jOnRqGD2.js +166 -0
  739. package/dist/useFormField-jOnRqGD2.js.map +1 -0
  740. package/dist/useGhostText-BNcH5o9H.js +51 -0
  741. package/dist/useGhostText-BNcH5o9H.js.map +1 -0
  742. package/dist/useGhostText-CoYhBGCg.cjs +2 -0
  743. package/dist/useGhostText-CoYhBGCg.cjs.map +1 -0
  744. package/dist/useInteractionEffect-B5_UpgTt.js +40 -0
  745. package/dist/useInteractionEffect-B5_UpgTt.js.map +1 -0
  746. package/dist/useInteractionEffect-BaJeiUns.cjs +2 -0
  747. package/dist/useInteractionEffect-BaJeiUns.cjs.map +1 -0
  748. package/dist/useKeyboardNav-CmUKtJag.js +43 -0
  749. package/dist/useKeyboardNav-CmUKtJag.js.map +1 -0
  750. package/dist/useKeyboardNav-DJtFz7Fx.cjs +2 -0
  751. package/dist/useKeyboardNav-DJtFz7Fx.cjs.map +1 -0
  752. package/dist/useReveal-Fg-i8hhZ.js +23 -0
  753. package/dist/useReveal-Fg-i8hhZ.js.map +1 -0
  754. package/dist/useReveal-p1cSTlUT.cjs +2 -0
  755. package/dist/useReveal-p1cSTlUT.cjs.map +1 -0
  756. package/dist/utils/appearanceProps.d.ts +6 -0
  757. package/dist/utils/cn.d.ts +1 -0
  758. package/dist/utils/creditCards.d.ts +16 -0
  759. package/dist/utils/dateUtils.d.ts +17 -0
  760. package/dist/utils/formatters.d.ts +21 -0
  761. package/dist/utils/layoutProps.d.ts +25 -0
  762. package/dist/utils/locale.d.ts +13 -0
  763. package/dist/utils/postalCodes.d.ts +21 -0
  764. package/dist/utils/relativeTime.d.ts +16 -0
  765. package/dist/utils/useClickOutside.d.ts +2 -0
  766. package/dist/utils/useControllableString.d.ts +7 -0
  767. package/dist/utils/useDebounce.d.ts +2 -0
  768. package/dist/utils/useGhostText.d.ts +28 -0
  769. package/dist/utils/useInteractionEffect.d.ts +15 -0
  770. package/dist/utils/useKeyboardNav.d.ts +14 -0
  771. package/dist/utils/useReveal.d.ts +2 -0
  772. package/dist/utils/validators.d.ts +19 -0
  773. package/dist/utils.cjs +2 -0
  774. package/dist/utils.d.ts +2 -0
  775. package/dist/utils.entry.d.ts +20 -0
  776. package/dist/utils.js +13 -0
  777. package/dist/validators-B7cSTrU_.cjs +2 -0
  778. package/dist/validators-B7cSTrU_.cjs.map +1 -0
  779. package/dist/validators-Y1nYXhNR.js +378 -0
  780. package/dist/validators-Y1nYXhNR.js.map +1 -0
  781. package/package.json +226 -1
  782. package/dist/index.cjs.map +0 -1
  783. package/dist/index.js.map +0 -1
@@ -0,0 +1,1204 @@
1
+ import { t as e } from "./CloseIcon-DGl8CDLK.js";
2
+ import { t } from "./ChevronLeftIcon-lTktpFVi.js";
3
+ import { t as n } from "./ChevronRightIcon-1oaUsxM2.js";
4
+ import { t as r } from "./ChevronDownIcon-BDiyHPT4.js";
5
+ import { t as i } from "./CalendarIcon-gvWV3ioD.js";
6
+ import { t as a } from "./ClockIcon-CTHDAJUU.js";
7
+ import { t as o } from "./cn-BIeeqGZv.js";
8
+ import { a as s, c, d as l, f as u, i as ee, l as d, o as f, p, r as m, s as te, t as h, u as g } from "./dateUtils-D3rghkxq.js";
9
+ import { n as _ } from "./useDebounce-D-v3IRXp.js";
10
+ import { t as ne } from "./useKeyboardNav-CmUKtJag.js";
11
+ import { t as re } from "./Popover-BLYlu0jf.js";
12
+ import { t as ie } from "./appearanceProps-8tN47e1u.js";
13
+ import { n as v, r as ae, t as y } from "./locale-DofwII5P.js";
14
+ import { useCallback as b, useEffect as oe, useMemo as x, useRef as se, useState as S } from "react";
15
+ import { Fragment as ce, jsx as C, jsxs as w } from "react/jsx-runtime";
16
+ //#region src/components/dropdowns/Select/Select.tsx
17
+ function T({ options: t, value: n, defaultValue: i, onChange: a, multiple: s = !1, searchable: c = !1, placeholder: l = "Select...", disabled: u = !1, name: ee, id: d, variant: f = "outlined", size: p = "md", color: m, fcolor: te, fullWidth: h = !1, label: g, helperText: _, errorText: v, error: ae = !1, required: y = !1, loading: oe = !1, clearable: ce = !1, maxHeight: T = 300, noOptionsText: le = "No options", renderOption: ue, renderValue: de, className: E, style: D }) {
18
+ let [O, k] = S(!1), [fe, A] = S(i ?? (s ? [] : "")), [j, M] = S(""), N = se(null), P = n === void 0 ? fe : n, F = ae || !!v, I = x(() => Array.isArray(P) ? P : P ? [P] : [], [P]), L = x(() => t.filter((e) => I.includes(e.value)), [t, I]), R = x(() => {
19
+ if (!c || !j) return t;
20
+ let e = j.toLowerCase();
21
+ return t.filter((t) => t.label.toLowerCase().includes(e));
22
+ }, [
23
+ t,
24
+ c,
25
+ j
26
+ ]), z = x(() => {
27
+ let e = /* @__PURE__ */ new Map();
28
+ for (let t of R) {
29
+ let n = t.group ?? "";
30
+ e.has(n) || e.set(n, []), e.get(n).push(t);
31
+ }
32
+ return e;
33
+ }, [R]), B = R, V = b((e) => {
34
+ let t = B[e];
35
+ if (!(!t || t.disabled)) if (s) {
36
+ let e = Array.isArray(P) ? P : [], r = e.includes(t.value) ? e.filter((e) => e !== t.value) : [...e, t.value];
37
+ n === void 0 && A(r), a?.(r);
38
+ } else n === void 0 && A(t.value), a?.(t.value), k(!1), M("");
39
+ }, [
40
+ B,
41
+ s,
42
+ P,
43
+ n,
44
+ a
45
+ ]), { activeIndex: H, setActiveIndex: U, resetIndex: W, onKeyDown: pe } = ne({
46
+ itemCount: B.length,
47
+ onSelect: V,
48
+ onClose: () => {
49
+ k(!1), M("");
50
+ },
51
+ isOpen: O
52
+ }), me = b(() => {
53
+ u || (k((e) => !e), W());
54
+ }, [u, W]), G = b((e) => {
55
+ e.stopPropagation();
56
+ let t = s ? [] : "";
57
+ n === void 0 && A(t), a?.(t);
58
+ }, [
59
+ s,
60
+ n,
61
+ a
62
+ ]), K = x(() => de && L.length > 0 ? de(s ? L : L[0]) : s && L.length > 0 ? /* @__PURE__ */ C("span", {
63
+ className: "tags",
64
+ children: L.map((e) => /* @__PURE__ */ C("span", {
65
+ className: "m-tag",
66
+ children: e.label
67
+ }, e.value))
68
+ }) : !s && L.length > 0 ? L[0].label : /* @__PURE__ */ C("span", {
69
+ className: "placeholder",
70
+ children: l
71
+ }), [
72
+ L,
73
+ s,
74
+ de,
75
+ l
76
+ ]);
77
+ return /* @__PURE__ */ w("div", {
78
+ className: o("select", m && `color-${m}`, ...ie({ fcolor: te }), h && "full-width", E),
79
+ style: D,
80
+ children: [
81
+ g && /* @__PURE__ */ C("label", {
82
+ htmlFor: d,
83
+ className: o("label", O && "focused", F && "error", y && "required"),
84
+ children: g
85
+ }),
86
+ /* @__PURE__ */ w("div", {
87
+ ref: N,
88
+ className: o("trigger", f, p, O && "focused", F && "error", u && "disabled"),
89
+ onClick: me,
90
+ onKeyDown: pe,
91
+ tabIndex: u ? -1 : 0,
92
+ role: "combobox",
93
+ "aria-expanded": O,
94
+ "aria-haspopup": "listbox",
95
+ "aria-invalid": F || void 0,
96
+ id: d,
97
+ children: [
98
+ /* @__PURE__ */ C("span", {
99
+ className: "value",
100
+ children: K
101
+ }),
102
+ oe && /* @__PURE__ */ C("span", { className: "spinner" }),
103
+ ce && I.length > 0 && !oe && !u && /* @__PURE__ */ C("button", {
104
+ type: "button",
105
+ className: "clear-btn",
106
+ onClick: G,
107
+ tabIndex: -1,
108
+ "aria-label": "Clear selection",
109
+ children: /* @__PURE__ */ C(e, {})
110
+ }),
111
+ /* @__PURE__ */ C("span", {
112
+ className: o("arrow", O && "open"),
113
+ "aria-hidden": "true",
114
+ children: /* @__PURE__ */ C(r, {})
115
+ })
116
+ ]
117
+ }),
118
+ ee && /* @__PURE__ */ C("input", {
119
+ type: "hidden",
120
+ name: ee,
121
+ value: Array.isArray(P) ? P.join(",") : P
122
+ }),
123
+ /* @__PURE__ */ C(re, {
124
+ className: "select-popover",
125
+ open: O,
126
+ anchorRef: N,
127
+ onClose: () => {
128
+ k(!1), M("");
129
+ },
130
+ matchWidth: !0,
131
+ placement: "bottom-start",
132
+ children: /* @__PURE__ */ w("div", {
133
+ style: { maxHeight: T },
134
+ className: "dropdown",
135
+ children: [c && /* @__PURE__ */ C("div", {
136
+ className: "search-box",
137
+ children: /* @__PURE__ */ C("input", {
138
+ type: "text",
139
+ className: "search-input",
140
+ placeholder: "Search...",
141
+ value: j,
142
+ onChange: (e) => {
143
+ M(e.target.value), U(0);
144
+ },
145
+ onKeyDown: pe,
146
+ autoFocus: !0
147
+ })
148
+ }), B.length === 0 ? /* @__PURE__ */ C("div", {
149
+ className: "no-options",
150
+ children: le
151
+ }) : /* @__PURE__ */ C("div", {
152
+ className: "options-list",
153
+ role: "listbox",
154
+ children: [...z.entries()].map(([e, t]) => /* @__PURE__ */ w("div", { children: [e && /* @__PURE__ */ C("div", {
155
+ className: "group-header",
156
+ children: e
157
+ }), t.map((e) => {
158
+ let t = B.indexOf(e), n = t === H, r = I.includes(e.value);
159
+ return /* @__PURE__ */ w("div", {
160
+ className: o("option", n && "active", r && "selected", e.disabled && "disabled"),
161
+ onClick: () => !e.disabled && V(t),
162
+ onMouseEnter: () => U(t),
163
+ role: "option",
164
+ "aria-selected": r,
165
+ "aria-disabled": e.disabled,
166
+ children: [s && /* @__PURE__ */ C("span", {
167
+ className: o("check", r && "checked"),
168
+ "aria-hidden": "true"
169
+ }), ue ? ue(e, n, r) : e.label]
170
+ }, e.value);
171
+ })] }, e))
172
+ })]
173
+ })
174
+ }),
175
+ (v || _) && /* @__PURE__ */ C("div", {
176
+ className: "bottom-row",
177
+ children: v ? /* @__PURE__ */ C("span", {
178
+ className: "error-text",
179
+ role: "alert",
180
+ children: v
181
+ }) : /* @__PURE__ */ C("span", {
182
+ className: "helper-text",
183
+ children: _
184
+ })
185
+ })
186
+ ]
187
+ });
188
+ }
189
+ //#endregion
190
+ //#region src/components/dropdowns/Autocomplete/Autocomplete.tsx
191
+ function le(e) {
192
+ return typeof e == "string" ? e : String(e);
193
+ }
194
+ function ue(e) {
195
+ return typeof e == "string" ? e : String(e);
196
+ }
197
+ function de(e, t, n) {
198
+ if (!t) return e;
199
+ let r = t.toLowerCase();
200
+ return e.filter((e) => n(e).toLowerCase().includes(r));
201
+ }
202
+ function E({ options: t, value: n, onChange: r, getOptionLabel: i = le, getOptionValue: a = ue, filterOptions: s, multiple: c = !1, freeSolo: l = !1, debounceMs: u = 0, onInputChange: ee, loading: d = !1, loadingText: f = "Loading...", noOptionsText: p = "No options", placeholder: m = "Type to search...", disabled: te = !1, name: h, id: g, variant: v = "outlined", size: ae = "md", color: y, fcolor: oe, fullWidth: ce = !1, label: T, helperText: E, errorText: D, error: O = !1, required: k = !1, clearable: fe = !1, maxHeight: A = 300, renderOption: j, renderTags: M, className: N, style: P }) {
203
+ let [F, I] = S(!1), [L, R] = S(""), z = se(null), B = se(null), V = O || !!D, H = x(() => n == null ? [] : Array.isArray(n) ? n.filter((e) => e != null) : [n], [n]), U = x(() => s ? s(t, L) : de(t, L, i), [
204
+ t,
205
+ L,
206
+ s,
207
+ i
208
+ ]), W = _((e) => ee?.(e), u), pe = b((e) => {
209
+ R(e.target.value), W(e.target.value), F || I(!0);
210
+ }, [F, W]), me = b((e) => {
211
+ let t = U[e];
212
+ if (t) if (c) {
213
+ let e = [...H], n = a(t), i = e.findIndex((e) => a(e) === n);
214
+ i >= 0 ? e.splice(i, 1) : e.push(t), r?.(e), R(""), B.current?.focus();
215
+ } else r?.(t), R(i(t)), I(!1);
216
+ }, [
217
+ U,
218
+ c,
219
+ H,
220
+ a,
221
+ i,
222
+ r
223
+ ]), G = b((e) => {
224
+ let t = [...H];
225
+ t.splice(e, 1), r?.(c ? t : t[0] ?? "");
226
+ }, [
227
+ H,
228
+ r,
229
+ c
230
+ ]), { activeIndex: K, setActiveIndex: he, resetIndex: q, onKeyDown: J } = ne({
231
+ itemCount: U.length,
232
+ onSelect: me,
233
+ onClose: () => I(!1),
234
+ isOpen: F
235
+ }), Y = b((e) => {
236
+ if (e.key === "Enter" && l && K < 0 && L) {
237
+ r?.(L), I(!1);
238
+ return;
239
+ }
240
+ if (e.key === "Backspace" && c && !L && H.length > 0) {
241
+ G(H.length - 1);
242
+ return;
243
+ }
244
+ J(e);
245
+ }, [
246
+ l,
247
+ K,
248
+ L,
249
+ c,
250
+ H,
251
+ r,
252
+ J,
253
+ G
254
+ ]), ge = b((e) => {
255
+ e.stopPropagation(), R(""), r?.(c ? [] : ""), B.current?.focus();
256
+ }, [c, r]);
257
+ return /* @__PURE__ */ w("div", {
258
+ className: o("autocomplete", y && `color-${y}`, ...ie({ fcolor: oe }), ce && "full-width", N),
259
+ style: P,
260
+ children: [
261
+ T && /* @__PURE__ */ C("label", {
262
+ htmlFor: g,
263
+ className: o("label", F && "focused", V && "error", k && "required"),
264
+ children: T
265
+ }),
266
+ /* @__PURE__ */ w("div", {
267
+ ref: z,
268
+ className: o("input-wrapper", v, ae, F && "focused", V && "error", te && "disabled"),
269
+ onClick: () => B.current?.focus(),
270
+ children: [
271
+ c && H.length > 0 && (M ? M(H, G) : /* @__PURE__ */ C("span", {
272
+ className: "tags",
273
+ children: H.map((t, n) => /* @__PURE__ */ w("span", {
274
+ className: "m-tag",
275
+ children: [i(t), /* @__PURE__ */ C("button", {
276
+ type: "button",
277
+ className: "m-tag-remove",
278
+ onClick: (e) => {
279
+ e.stopPropagation(), G(n);
280
+ },
281
+ tabIndex: -1,
282
+ children: /* @__PURE__ */ C(e, {})
283
+ })]
284
+ }, a(t)))
285
+ })),
286
+ /* @__PURE__ */ C("input", {
287
+ ref: B,
288
+ type: "text",
289
+ className: "input",
290
+ value: L,
291
+ onChange: pe,
292
+ onFocus: () => {
293
+ I(!0), q();
294
+ },
295
+ onKeyDown: Y,
296
+ placeholder: H.length > 0 ? "" : m,
297
+ disabled: te,
298
+ id: g,
299
+ "aria-expanded": F,
300
+ "aria-haspopup": "listbox",
301
+ "aria-invalid": V || void 0,
302
+ autoComplete: "off"
303
+ }),
304
+ d && /* @__PURE__ */ C("span", { className: "spinner" }),
305
+ fe && (H.length > 0 || L) && !d && !te && /* @__PURE__ */ C("button", {
306
+ type: "button",
307
+ className: "clear-btn",
308
+ onClick: ge,
309
+ tabIndex: -1,
310
+ children: /* @__PURE__ */ C(e, {})
311
+ })
312
+ ]
313
+ }),
314
+ h && /* @__PURE__ */ C("input", {
315
+ type: "hidden",
316
+ name: h,
317
+ value: H.map(a).join(",")
318
+ }),
319
+ /* @__PURE__ */ C(re, {
320
+ className: o("autocomplete-popover", y && `color-${y}`),
321
+ open: F && (U.length > 0 || d),
322
+ anchorRef: z,
323
+ onClose: () => I(!1),
324
+ matchWidth: !0,
325
+ placement: "bottom-start",
326
+ children: /* @__PURE__ */ C("div", {
327
+ style: { maxHeight: A },
328
+ className: "dropdown",
329
+ children: d ? /* @__PURE__ */ C("div", {
330
+ className: "loading-msg",
331
+ children: f
332
+ }) : U.length === 0 ? /* @__PURE__ */ C("div", {
333
+ className: "no-options",
334
+ children: p
335
+ }) : /* @__PURE__ */ C("div", {
336
+ className: "options-list",
337
+ role: "listbox",
338
+ children: U.map((e, t) => {
339
+ let n = t === K, r = H.some((t) => a(t) === a(e));
340
+ return /* @__PURE__ */ C("div", {
341
+ className: o("option", n && "active", r && "selected"),
342
+ onClick: () => me(t),
343
+ onMouseEnter: () => he(t),
344
+ role: "option",
345
+ "aria-selected": r,
346
+ children: j ? j(e, n) : i(e)
347
+ }, a(e));
348
+ })
349
+ })
350
+ })
351
+ }),
352
+ (D || E) && /* @__PURE__ */ C("div", {
353
+ className: "bottom-row",
354
+ children: D ? /* @__PURE__ */ C("span", {
355
+ className: "error-text",
356
+ role: "alert",
357
+ children: D
358
+ }) : /* @__PURE__ */ C("span", {
359
+ className: "helper-text",
360
+ children: E
361
+ })
362
+ })
363
+ ]
364
+ });
365
+ }
366
+ //#endregion
367
+ //#region src/components/dropdowns/DatePicker/DatePicker.tsx
368
+ function D(e) {
369
+ if (!e) return null;
370
+ if (e instanceof Date) return e;
371
+ let t = new Date(e);
372
+ return isNaN(t.getTime()) ? null : t;
373
+ }
374
+ function O({ value: r, defaultValue: a, onChange: u, format: f = "dd.MM.yyyy", locale: _, min: ne, max: v, disabledDates: T, placeholder: le, disabled: ue = !1, readOnly: de = !1, name: E, id: O, variant: k = "outlined", size: fe = "md", fcolor: A, label: j, helperText: M, errorText: N, error: P = !1, required: F = !1, clearable: I = !1, inline: L = !1, showTodayButton: R = !0, firstDayOfWeek: z = 1, fullWidth: B = !1, className: V, style: H }) {
375
+ let U = ae(_), [W, pe] = S(!1), [me, G] = S(D(a)), [K, he] = S(""), q = D(r) ?? me, [J, Y] = S(() => {
376
+ let e = q ?? /* @__PURE__ */ new Date();
377
+ return new Date(e.getFullYear(), e.getMonth(), 1);
378
+ }), [ge, _e] = S("days"), ve = se(null), ye = D(ne), X = D(v), Z = P || !!N;
379
+ oe(() => {
380
+ q && Y(new Date(q.getFullYear(), q.getMonth(), 1));
381
+ }, [q]);
382
+ let be = x(() => K || (q ? s(q, f) : ""), [
383
+ q,
384
+ f,
385
+ K
386
+ ]), xe = y(U), Se = te(U, z), Q = c(U), Ce = b((e) => d(e, ye, X) ? Array.isArray(T) ? T.some((t) => g(t, e)) : typeof T == "function" ? T(e) : !1 : !0, [
387
+ ye,
388
+ X,
389
+ T
390
+ ]), we = b((e) => {
391
+ Ce(e) || (r === void 0 && G(e), he(""), Y(new Date(e.getFullYear(), e.getMonth(), 1)), u?.(e), L || pe(!1));
392
+ }, [
393
+ L,
394
+ Ce,
395
+ u,
396
+ r
397
+ ]), Te = b((e) => {
398
+ he(e.target.value);
399
+ }, []), Ee = b(() => {
400
+ if (!K) return;
401
+ let e = l(K, f);
402
+ e && !Ce(e) && we(e), he("");
403
+ }, [
404
+ f,
405
+ we,
406
+ K,
407
+ Ce
408
+ ]), De = b((e) => {
409
+ e.stopPropagation(), r === void 0 && G(null), he(""), u?.(null);
410
+ }, [u, r]), Oe = b(() => {
411
+ we(p(/* @__PURE__ */ new Date()));
412
+ }, [we]), $ = x(() => {
413
+ let e = J.getFullYear(), t = J.getMonth(), n = m(e, t), r = ee(e, t);
414
+ z === 1 && (r = r === 0 ? 6 : r - 1);
415
+ let i = [], a = t === 0 ? 11 : t - 1, o = t === 0 ? e - 1 : e, s = m(o, a);
416
+ for (let e = r - 1; e >= 0; e--) i.push({
417
+ date: new Date(o, a, s - e),
418
+ currentMonth: !1
419
+ });
420
+ for (let r = 1; r <= n; r++) i.push({
421
+ date: new Date(e, t, r),
422
+ currentMonth: !0
423
+ });
424
+ let c = 42 - i.length, l = t === 11 ? 0 : t + 1, u = t === 11 ? e + 1 : e;
425
+ for (let e = 1; e <= c; e++) i.push({
426
+ date: new Date(u, l, e),
427
+ currentMonth: !1
428
+ });
429
+ return i;
430
+ }, [z, J]), ke = p(/* @__PURE__ */ new Date()), Ae = () => /* @__PURE__ */ w("div", {
431
+ className: "calendar",
432
+ children: [
433
+ /* @__PURE__ */ w("div", {
434
+ className: "calendar-header",
435
+ children: [
436
+ /* @__PURE__ */ C("button", {
437
+ type: "button",
438
+ className: "nav-btn",
439
+ onClick: () => Y(h(J, -1)),
440
+ "aria-label": xe.previousMonth,
441
+ children: /* @__PURE__ */ C(t, {})
442
+ }),
443
+ /* @__PURE__ */ w("button", {
444
+ type: "button",
445
+ className: "header-title",
446
+ onClick: () => _e((e) => e === "days" ? "months" : "days"),
447
+ children: [
448
+ Q[J.getMonth()],
449
+ " ",
450
+ J.getFullYear()
451
+ ]
452
+ }),
453
+ /* @__PURE__ */ C("button", {
454
+ type: "button",
455
+ className: "nav-btn",
456
+ onClick: () => Y(h(J, 1)),
457
+ "aria-label": xe.nextMonth,
458
+ children: /* @__PURE__ */ C(n, {})
459
+ })
460
+ ]
461
+ }),
462
+ ge === "days" ? /* @__PURE__ */ w(ce, { children: [/* @__PURE__ */ C("div", {
463
+ className: "day-names",
464
+ children: Se.map((e) => /* @__PURE__ */ C("span", {
465
+ className: "day-name",
466
+ children: e
467
+ }, e))
468
+ }), /* @__PURE__ */ C("div", {
469
+ className: "day-grid",
470
+ children: $.map(({ date: e, currentMonth: t }, n) => {
471
+ let r = q ? g(e, q) : !1, i = g(e, ke), a = Ce(e);
472
+ return /* @__PURE__ */ C("button", {
473
+ type: "button",
474
+ className: o("day", !t && "other-month", i && "today", r && "selected", a && "disabled"),
475
+ onClick: () => we(e),
476
+ disabled: a,
477
+ tabIndex: -1,
478
+ children: e.getDate()
479
+ }, `${e.toISOString()}-${n}`);
480
+ })
481
+ })] }) : /* @__PURE__ */ C("div", {
482
+ className: "month-grid",
483
+ children: Q.map((e, t) => /* @__PURE__ */ C("button", {
484
+ type: "button",
485
+ className: o("month-cell", J.getMonth() === t && "selected"),
486
+ onClick: () => {
487
+ Y(new Date(J.getFullYear(), t, 1)), _e("days");
488
+ },
489
+ children: e.slice(0, 3)
490
+ }, e))
491
+ }),
492
+ R && /* @__PURE__ */ C("div", {
493
+ className: "footer",
494
+ children: /* @__PURE__ */ C("button", {
495
+ type: "button",
496
+ className: "today-btn",
497
+ onClick: Oe,
498
+ children: xe.today
499
+ })
500
+ })
501
+ ]
502
+ });
503
+ return L ? /* @__PURE__ */ w("div", {
504
+ className: o("date-picker", ...ie({ fcolor: A }), B && "full-width", V),
505
+ style: H,
506
+ children: [j && /* @__PURE__ */ C("label", {
507
+ className: o("label", Z && "error", F && "required"),
508
+ children: j
509
+ }), Ae()]
510
+ }) : /* @__PURE__ */ w("div", {
511
+ className: o("date-picker", ...ie({ fcolor: A }), B && "full-width", V),
512
+ style: H,
513
+ children: [
514
+ j && /* @__PURE__ */ C("label", {
515
+ htmlFor: O,
516
+ className: o("label", W && "focused", Z && "error", F && "required"),
517
+ children: j
518
+ }),
519
+ /* @__PURE__ */ w("div", {
520
+ ref: ve,
521
+ className: o("trigger", k, fe, W && "focused", Z && "error", ue && "disabled"),
522
+ onClick: () => !ue && !de && pe(!0),
523
+ children: [
524
+ /* @__PURE__ */ C("span", {
525
+ className: "icon",
526
+ children: /* @__PURE__ */ C(i, {})
527
+ }),
528
+ /* @__PURE__ */ C("input", {
529
+ type: "text",
530
+ className: "input",
531
+ value: be,
532
+ onChange: Te,
533
+ onBlur: Ee,
534
+ placeholder: le ?? f.toLowerCase(),
535
+ disabled: ue,
536
+ readOnly: de,
537
+ id: O,
538
+ "aria-invalid": Z || void 0
539
+ }),
540
+ I && q && !ue && /* @__PURE__ */ C("button", {
541
+ type: "button",
542
+ className: "clear-btn",
543
+ onClick: De,
544
+ tabIndex: -1,
545
+ "aria-label": xe.clear,
546
+ children: /* @__PURE__ */ C(e, {})
547
+ })
548
+ ]
549
+ }),
550
+ E && q && /* @__PURE__ */ C("input", {
551
+ type: "hidden",
552
+ name: E,
553
+ value: q.toISOString().split("T")[0]
554
+ }),
555
+ /* @__PURE__ */ C(re, {
556
+ className: "date-picker-popover",
557
+ open: W,
558
+ anchorRef: ve,
559
+ onClose: () => pe(!1),
560
+ placement: "bottom-start",
561
+ children: Ae()
562
+ }),
563
+ (N || M) && /* @__PURE__ */ C("div", {
564
+ className: "bottom-row",
565
+ children: N ? /* @__PURE__ */ C("span", {
566
+ className: "error-text",
567
+ role: "alert",
568
+ children: N
569
+ }) : /* @__PURE__ */ C("span", {
570
+ className: "helper-text",
571
+ children: M
572
+ })
573
+ })
574
+ ]
575
+ });
576
+ }
577
+ //#endregion
578
+ //#region src/components/dropdowns/DateRangePicker/DateRangePicker.tsx
579
+ function k(e) {
580
+ if (!e) return null;
581
+ if (e instanceof Date) return p(e);
582
+ let t = new Date(e);
583
+ return isNaN(t.getTime()) ? null : p(t);
584
+ }
585
+ function fe(e, t) {
586
+ return e.getTime() <= t.getTime() ? {
587
+ start: e,
588
+ end: t
589
+ } : {
590
+ start: t,
591
+ end: e
592
+ };
593
+ }
594
+ function A(e, t, n) {
595
+ if (!t || !n) return !1;
596
+ let r = e.getTime();
597
+ return r > t.getTime() && r < n.getTime();
598
+ }
599
+ function j(e, t, n) {
600
+ return e && t ? `${s(e, n)} - ${s(t, n)}` : e ? `${s(e, n)} - ...` : "";
601
+ }
602
+ function M(e) {
603
+ return new Date(e.getFullYear(), e.getMonth(), 1);
604
+ }
605
+ function N(e) {
606
+ return new Date(e.getFullYear(), e.getMonth() + 1, 0);
607
+ }
608
+ function P(e) {
609
+ let t = p(/* @__PURE__ */ new Date());
610
+ return t.setDate(t.getDate() - (e - 1)), t;
611
+ }
612
+ function F(e) {
613
+ let t = p(/* @__PURE__ */ new Date());
614
+ return new Date(t.getFullYear(), t.getMonth() - e, t.getDate());
615
+ }
616
+ function I(e) {
617
+ let t = p(/* @__PURE__ */ new Date()), n = new Date(t.getFullYear(), t.getMonth() - 1, 1), r = v(e) === "pl" ? {
618
+ today: "Dzisiaj",
619
+ days2: "2 dni",
620
+ days3: "3 dni",
621
+ days7: "7 dni",
622
+ days14: "14 dni",
623
+ days31: "31 dni",
624
+ thisMonth: "Ten miesiąc",
625
+ previousMonth: "Poprzedni miesiąc",
626
+ months2: "2 miesiące",
627
+ months3: "3 miesiące",
628
+ months6: "6 miesięcy",
629
+ year1: "1 rok"
630
+ } : {
631
+ today: "Today",
632
+ days2: "2 days",
633
+ days3: "3 days",
634
+ days7: "7 days",
635
+ days14: "14 days",
636
+ days31: "31 days",
637
+ thisMonth: "This month",
638
+ previousMonth: "Previous month",
639
+ months2: "2 months",
640
+ months3: "3 months",
641
+ months6: "6 months",
642
+ year1: "1 year"
643
+ };
644
+ return [
645
+ {
646
+ label: r.today,
647
+ value: {
648
+ start: t,
649
+ end: t
650
+ }
651
+ },
652
+ {
653
+ label: r.days2,
654
+ value: {
655
+ start: P(2),
656
+ end: t
657
+ }
658
+ },
659
+ {
660
+ label: r.days3,
661
+ value: {
662
+ start: P(3),
663
+ end: t
664
+ }
665
+ },
666
+ {
667
+ label: r.days7,
668
+ value: {
669
+ start: P(7),
670
+ end: t
671
+ }
672
+ },
673
+ {
674
+ label: r.days14,
675
+ value: {
676
+ start: P(14),
677
+ end: t
678
+ }
679
+ },
680
+ {
681
+ label: r.days31,
682
+ value: {
683
+ start: P(31),
684
+ end: t
685
+ }
686
+ },
687
+ {
688
+ label: r.thisMonth,
689
+ value: {
690
+ start: M(t),
691
+ end: N(t)
692
+ }
693
+ },
694
+ {
695
+ label: r.previousMonth,
696
+ value: {
697
+ start: M(n),
698
+ end: N(n)
699
+ }
700
+ },
701
+ {
702
+ label: r.months2,
703
+ value: {
704
+ start: F(2),
705
+ end: t
706
+ }
707
+ },
708
+ {
709
+ label: r.months3,
710
+ value: {
711
+ start: F(3),
712
+ end: t
713
+ }
714
+ },
715
+ {
716
+ label: r.months6,
717
+ value: {
718
+ start: F(6),
719
+ end: t
720
+ }
721
+ },
722
+ {
723
+ label: r.year1,
724
+ value: {
725
+ start: F(12),
726
+ end: t
727
+ }
728
+ }
729
+ ];
730
+ }
731
+ function L(e, t) {
732
+ let n = e.getFullYear(), r = e.getMonth(), i = m(n, r), a = ee(n, r);
733
+ t === 1 && (a = a === 0 ? 6 : a - 1);
734
+ let o = [], s = r === 0 ? 11 : r - 1, c = r === 0 ? n - 1 : n, l = m(c, s);
735
+ for (let e = a - 1; e >= 0; --e) o.push({
736
+ date: new Date(c, s, l - e),
737
+ currentMonth: !1
738
+ });
739
+ for (let e = 1; e <= i; e += 1) o.push({
740
+ date: new Date(n, r, e),
741
+ currentMonth: !0
742
+ });
743
+ let u = 42 - o.length, d = r === 11 ? 0 : r + 1, f = r === 11 ? n + 1 : n;
744
+ for (let e = 1; e <= u; e += 1) o.push({
745
+ date: new Date(f, d, e),
746
+ currentMonth: !1
747
+ });
748
+ return o;
749
+ }
750
+ function R({ value: r, defaultValue: a, onChange: l, format: u = "dd.MM.yyyy", locale: ee, min: f, max: m, disabledDates: _, placeholder: ne, disabled: v = !1, readOnly: ce = !1, name: T, id: le, variant: ue = "outlined", size: de = "md", fcolor: E, label: D, helperText: O, errorText: M, error: N = !1, required: P = !1, clearable: F = !1, inline: R = !1, showTodayButton: z = !0, presets: B = !1, presetsSidebar: V = !1, firstDayOfWeek: H = 1, fullWidth: U = !1, allowSameDay: W = !0, className: pe, style: me }) {
751
+ let G = ae(ee), K = r ? {
752
+ start: k(r.start),
753
+ end: k(r.end)
754
+ } : null, [he, q] = S(() => ({
755
+ start: k(a?.start),
756
+ end: k(a?.end)
757
+ })), [J, Y] = S(null), [ge, _e] = S(!1), ve = se(null), ye = K ?? he, X = ye.start, Z = ye.end, be = k(f), xe = k(m), Se = N || !!M, Q = y(G), Ce = te(G, H), we = c(G), Te = x(() => B === !0 || V && !B ? I(G) : Array.isArray(B) ? B : [], [
758
+ G,
759
+ B,
760
+ V
761
+ ]), [Ee, De] = S(() => {
762
+ let e = X ?? /* @__PURE__ */ new Date();
763
+ return new Date(e.getFullYear(), e.getMonth(), 1);
764
+ });
765
+ oe(() => {
766
+ X && De(new Date(X.getFullYear(), X.getMonth(), 1));
767
+ }, [X]);
768
+ let Oe = b((e) => d(e, be, xe) ? Array.isArray(_) ? _.some((t) => g(t, e)) : typeof _ == "function" ? _(e) : !1 : !0, [
769
+ _,
770
+ xe,
771
+ be
772
+ ]), $ = b((e) => {
773
+ r === void 0 && q(e), l?.(e);
774
+ }, [l, r]), ke = b((e) => {
775
+ if (!Oe(e)) {
776
+ if (!X || X && Z) {
777
+ $({
778
+ start: e,
779
+ end: null
780
+ }), Y(null);
781
+ return;
782
+ }
783
+ !W && g(e, X) || ($(fe(X, e)), Y(null), R || _e(!1));
784
+ }
785
+ }, [
786
+ W,
787
+ $,
788
+ Z,
789
+ R,
790
+ Oe,
791
+ X
792
+ ]), Ae = b((e) => {
793
+ e.stopPropagation(), $({
794
+ start: null,
795
+ end: null
796
+ }), Y(null);
797
+ }, [$]), je = b(() => {
798
+ let e = p(/* @__PURE__ */ new Date());
799
+ Oe(e) || ($({
800
+ start: e,
801
+ end: e
802
+ }), De(new Date(e.getFullYear(), e.getMonth(), 1)), Y(null), R || _e(!1));
803
+ }, [
804
+ $,
805
+ R,
806
+ Oe
807
+ ]), Me = b((e) => {
808
+ let t = k(e.value.start), n = k(e.value.end);
809
+ if (!t || !n) return;
810
+ let r = fe(t, n);
811
+ Oe(r.start) || Oe(r.end) || ($(r), De(new Date(r.start.getFullYear(), r.start.getMonth(), 1)), Y(null), R || _e(!1));
812
+ }, [
813
+ $,
814
+ R,
815
+ Oe
816
+ ]), Ne = X && !Z ? J : null, Pe = Ee, Fe = h(Ee, 1), Ie = p(/* @__PURE__ */ new Date()), Le = x(() => j(X, Z, u), [
817
+ Z,
818
+ u,
819
+ X
820
+ ]), Re = x(() => [Pe, Fe].map((e) => ({
821
+ monthDate: e,
822
+ days: L(e, H)
823
+ })), [
824
+ H,
825
+ Pe,
826
+ Fe
827
+ ]), ze = X && Z ? `${s(X, u)} - ${s(Z, u)}` : X ? `${s(X, u)} - ...` : ne ?? Q.defaultRangePlaceholder, Be = V && Te.length > 0, Ve = !V && Te.length > 0, He = () => /* @__PURE__ */ C("div", {
828
+ className: "presets-sidebar",
829
+ children: Te.map((e) => /* @__PURE__ */ C("button", {
830
+ type: "button",
831
+ className: "preset-sidebar-btn",
832
+ onClick: () => Me(e),
833
+ children: e.label
834
+ }, e.label))
835
+ }), Ue = () => /* @__PURE__ */ w("div", {
836
+ className: "calendar-body",
837
+ children: [
838
+ /* @__PURE__ */ w("div", {
839
+ className: "calendar-top",
840
+ children: [/* @__PURE__ */ w("div", {
841
+ className: "calendar-caption",
842
+ children: [/* @__PURE__ */ w("span", {
843
+ className: "caption-title",
844
+ children: [
845
+ we[Pe.getMonth()],
846
+ " ",
847
+ Pe.getFullYear()
848
+ ]
849
+ }), /* @__PURE__ */ C("span", {
850
+ className: "caption-subtitle",
851
+ children: Q.rangeSubtitle
852
+ })]
853
+ }), /* @__PURE__ */ w("div", {
854
+ className: "nav-actions",
855
+ children: [/* @__PURE__ */ C("button", {
856
+ type: "button",
857
+ className: "nav-btn",
858
+ onClick: () => De(h(Ee, -1)),
859
+ "aria-label": Q.previousMonth,
860
+ children: /* @__PURE__ */ C(t, {})
861
+ }), /* @__PURE__ */ C("button", {
862
+ type: "button",
863
+ className: "nav-btn",
864
+ onClick: () => De(h(Ee, 1)),
865
+ "aria-label": Q.nextMonth,
866
+ children: /* @__PURE__ */ C(n, {})
867
+ })]
868
+ })]
869
+ }),
870
+ Ve && /* @__PURE__ */ C("div", {
871
+ className: "presets",
872
+ children: Te.map((e) => /* @__PURE__ */ C("button", {
873
+ type: "button",
874
+ className: "preset-btn",
875
+ onClick: () => Me(e),
876
+ children: e.label
877
+ }, e.label))
878
+ }),
879
+ /* @__PURE__ */ C("div", {
880
+ className: "months",
881
+ children: Re.map(({ monthDate: e, days: t }) => /* @__PURE__ */ w("div", {
882
+ className: "month-panel",
883
+ children: [
884
+ /* @__PURE__ */ w("div", {
885
+ className: "month-title",
886
+ children: [
887
+ we[e.getMonth()],
888
+ " ",
889
+ e.getFullYear()
890
+ ]
891
+ }),
892
+ /* @__PURE__ */ C("div", {
893
+ className: "day-names",
894
+ children: Ce.map((t) => /* @__PURE__ */ C("span", {
895
+ className: "day-name",
896
+ children: t
897
+ }, `${e.toISOString()}-${t}`))
898
+ }),
899
+ /* @__PURE__ */ C("div", {
900
+ className: "day-grid",
901
+ children: t.map(({ date: t, currentMonth: n }, r) => {
902
+ let i = Oe(t), a = X ? g(t, X) : !1, s = Z ? g(t, Z) : !1, c = A(t, X, Z), l = !Z && X && Ne ? fe(X, Ne) : null, u = l ? A(t, l.start, l.end) : !1, ee = l ? g(t, l.start) || g(t, l.end) : !1;
903
+ return /* @__PURE__ */ C("button", {
904
+ type: "button",
905
+ className: o("day", !n && "other-month", g(t, Ie) && "today", a && "range-start selected", s && "range-end selected", c && "in-range", u && !ee && "preview-range", i && "disabled"),
906
+ onClick: () => ke(t),
907
+ onMouseEnter: () => X && !Z && Y(t),
908
+ onFocus: () => X && !Z && Y(t),
909
+ disabled: i,
910
+ tabIndex: -1,
911
+ children: t.getDate()
912
+ }, `${e.toISOString()}-${r}`);
913
+ })
914
+ })
915
+ ]
916
+ }, e.toISOString()))
917
+ }),
918
+ /* @__PURE__ */ w("div", {
919
+ className: "footer",
920
+ children: [/* @__PURE__ */ C("span", {
921
+ className: "summary",
922
+ children: ze
923
+ }), /* @__PURE__ */ w("div", {
924
+ className: "footer-actions",
925
+ children: [F && (X || Z) && /* @__PURE__ */ C("button", {
926
+ type: "button",
927
+ className: "footer-btn",
928
+ onClick: (e) => {
929
+ e.preventDefault(), $({
930
+ start: null,
931
+ end: null
932
+ }), Y(null);
933
+ },
934
+ children: Q.clear
935
+ }), z && /* @__PURE__ */ C("button", {
936
+ type: "button",
937
+ className: "footer-btn",
938
+ onClick: je,
939
+ children: Q.today
940
+ })]
941
+ })]
942
+ })
943
+ ]
944
+ }), We = () => /* @__PURE__ */ w("div", {
945
+ className: o("date-range-calendar", Be && "with-sidebar"),
946
+ children: [Be && He(), Ue()]
947
+ });
948
+ return R ? /* @__PURE__ */ w("div", {
949
+ className: o("date-range-picker", ...ie({ fcolor: E }), U && "full-width", pe),
950
+ style: me,
951
+ children: [D && /* @__PURE__ */ C("label", {
952
+ className: o("label", Se && "error", P && "required"),
953
+ children: D
954
+ }), We()]
955
+ }) : /* @__PURE__ */ w("div", {
956
+ className: o("date-range-picker", ...ie({ fcolor: E }), U && "full-width", pe),
957
+ style: me,
958
+ children: [
959
+ D && /* @__PURE__ */ C("label", {
960
+ htmlFor: le,
961
+ className: o("label", ge && "focused", Se && "error", P && "required"),
962
+ children: D
963
+ }),
964
+ /* @__PURE__ */ w("div", {
965
+ ref: ve,
966
+ className: o("trigger", ue, de, ge && "focused", Se && "error", v && "disabled"),
967
+ onClick: () => !v && !ce && _e(!0),
968
+ children: [
969
+ /* @__PURE__ */ C("span", {
970
+ className: "icon",
971
+ children: /* @__PURE__ */ C(i, {})
972
+ }),
973
+ /* @__PURE__ */ C("input", {
974
+ type: "text",
975
+ className: "input",
976
+ value: Le,
977
+ placeholder: ne ?? Q.defaultRangePlaceholder,
978
+ disabled: v,
979
+ readOnly: !0,
980
+ id: le,
981
+ "aria-invalid": Se || void 0
982
+ }),
983
+ F && (X || Z) && !v && /* @__PURE__ */ C("button", {
984
+ type: "button",
985
+ className: "clear-btn",
986
+ onClick: Ae,
987
+ tabIndex: -1,
988
+ "aria-label": Q.clear,
989
+ children: /* @__PURE__ */ C(e, {})
990
+ })
991
+ ]
992
+ }),
993
+ T && X && Z && /* @__PURE__ */ C("input", {
994
+ type: "hidden",
995
+ name: T,
996
+ value: `${X.toISOString().split("T")[0]}:${Z.toISOString().split("T")[0]}`
997
+ }),
998
+ /* @__PURE__ */ C(re, {
999
+ className: "date-range-picker-popover",
1000
+ open: ge,
1001
+ anchorRef: ve,
1002
+ onClose: () => {
1003
+ _e(!1), Y(null);
1004
+ },
1005
+ placement: "bottom-start",
1006
+ children: We()
1007
+ }),
1008
+ (M || O) && /* @__PURE__ */ C("div", {
1009
+ className: "bottom-row",
1010
+ children: M ? /* @__PURE__ */ C("span", {
1011
+ className: "error-text",
1012
+ role: "alert",
1013
+ children: M
1014
+ }) : /* @__PURE__ */ C("span", {
1015
+ className: "helper-text",
1016
+ children: O
1017
+ })
1018
+ })
1019
+ ]
1020
+ });
1021
+ }
1022
+ //#endregion
1023
+ //#region src/components/dropdowns/TimePicker/TimePicker.tsx
1024
+ function z(e, t) {
1025
+ return e.hours === t.hours ? e.minutes === t.minutes ? e.seconds - t.seconds : e.minutes - t.minutes : e.hours - t.hours;
1026
+ }
1027
+ function B(e, t, n) {
1028
+ return (!t || z(e, t) >= 0) && (!n || z(e, n) <= 0);
1029
+ }
1030
+ function V({ value: t, defaultValue: n, onChange: r, format: i = "24h", showSeconds: s = !1, minuteStep: c = 1, min: l, max: ee, placeholder: d, disabled: p = !1, readOnly: m = !1, name: te, id: h, variant: g = "outlined", size: _ = "md", fcolor: ne, label: v, helperText: ae, errorText: y, error: oe = !1, required: ce = !1, clearable: T = !1, fullWidth: le = !1, className: ue, style: de }) {
1031
+ let [E, D] = S(!1), [O, k] = S(n ?? ""), fe = se(null), A = t === void 0 ? O : t, j = oe || !!y, M = u(A), N = u(l ?? ""), P = u(ee ?? ""), F = x(() => {
1032
+ let e = [], t = i === "12h" ? 12 : 23, n = i === "12h" ? 1 : 0;
1033
+ for (let r = n; r <= t; r++) e.push(r);
1034
+ return e;
1035
+ }, [i]), I = x(() => {
1036
+ let e = [];
1037
+ for (let t = 0; t < 60; t += c) e.push(t);
1038
+ return e;
1039
+ }, [c]), L = x(() => {
1040
+ if (!s) return [];
1041
+ let e = [];
1042
+ for (let t = 0; t < 60; t++) e.push(t);
1043
+ return e;
1044
+ }, [s]), R = b((e, t, n = 0) => B({
1045
+ hours: e,
1046
+ minutes: t,
1047
+ seconds: n
1048
+ }, N, P), [P, N]), z = b((e, n, i = 0) => {
1049
+ if (!R(e, n, i)) return;
1050
+ let a = f(e, n, i, s);
1051
+ t === void 0 && k(a), r?.(a);
1052
+ }, [
1053
+ R,
1054
+ r,
1055
+ s,
1056
+ t
1057
+ ]), V = b((e) => {
1058
+ let n = e.target.value;
1059
+ t === void 0 && k(n);
1060
+ }, [t]), U = b(() => {
1061
+ let e = u(A);
1062
+ if (e && B(e, N, P)) {
1063
+ let n = f(e.hours, e.minutes, e.seconds, s);
1064
+ t === void 0 && k(n), r?.(n);
1065
+ }
1066
+ }, [
1067
+ A,
1068
+ P,
1069
+ N,
1070
+ r,
1071
+ s,
1072
+ t
1073
+ ]), W = b((e) => {
1074
+ e.stopPropagation(), t === void 0 && k(""), r?.("");
1075
+ }, [r, t]);
1076
+ return /* @__PURE__ */ w("div", {
1077
+ className: o("time picker", ...ie({ fcolor: ne }), le && "full-width", ue),
1078
+ style: de,
1079
+ children: [
1080
+ v && /* @__PURE__ */ C("label", {
1081
+ htmlFor: h,
1082
+ className: o("time label", E && "focused", j && "error", ce && "required"),
1083
+ children: v
1084
+ }),
1085
+ /* @__PURE__ */ w("div", {
1086
+ ref: fe,
1087
+ className: o("time trigger", g, _, E && "focused", j && "error", p && "disabled"),
1088
+ onClick: () => !p && !m && D(!0),
1089
+ children: [
1090
+ /* @__PURE__ */ C("span", {
1091
+ className: "time icon",
1092
+ children: /* @__PURE__ */ C(a, {})
1093
+ }),
1094
+ /* @__PURE__ */ C("input", {
1095
+ type: "text",
1096
+ className: "time input",
1097
+ value: A,
1098
+ onChange: V,
1099
+ onBlur: U,
1100
+ placeholder: d ?? (s ? "HH:MM:SS" : "HH:MM"),
1101
+ disabled: p,
1102
+ readOnly: m,
1103
+ id: h,
1104
+ "aria-invalid": j || void 0
1105
+ }),
1106
+ T && A && !p && /* @__PURE__ */ C("button", {
1107
+ type: "button",
1108
+ className: "time clear",
1109
+ onClick: W,
1110
+ tabIndex: -1,
1111
+ "aria-label": "Clear time",
1112
+ children: /* @__PURE__ */ C(e, {})
1113
+ })
1114
+ ]
1115
+ }),
1116
+ te && /* @__PURE__ */ C("input", {
1117
+ type: "hidden",
1118
+ name: te,
1119
+ value: A
1120
+ }),
1121
+ /* @__PURE__ */ C(re, {
1122
+ className: "time picker popover",
1123
+ open: E,
1124
+ anchorRef: fe,
1125
+ onClose: () => D(!1),
1126
+ placement: "bottom-start",
1127
+ children: /* @__PURE__ */ w("div", {
1128
+ className: "time columns",
1129
+ children: [
1130
+ /* @__PURE__ */ C(H, {
1131
+ items: F,
1132
+ selected: M?.hours,
1133
+ onSelect: (e) => z(e, M?.minutes ?? 0, M?.seconds ?? 0),
1134
+ isDisabled: (e) => !R(e, M?.minutes ?? 0, M?.seconds ?? 0),
1135
+ label: "Hr"
1136
+ }),
1137
+ /* @__PURE__ */ C(H, {
1138
+ items: I,
1139
+ selected: M?.minutes,
1140
+ onSelect: (e) => z(M?.hours ?? 0, e, M?.seconds ?? 0),
1141
+ isDisabled: (e) => !R(M?.hours ?? 0, e, M?.seconds ?? 0),
1142
+ label: "Min"
1143
+ }),
1144
+ s && /* @__PURE__ */ C(H, {
1145
+ items: L,
1146
+ selected: M?.seconds,
1147
+ onSelect: (e) => z(M?.hours ?? 0, M?.minutes ?? 0, e),
1148
+ isDisabled: (e) => !R(M?.hours ?? 0, M?.minutes ?? 0, e),
1149
+ label: "Sec"
1150
+ })
1151
+ ]
1152
+ })
1153
+ }),
1154
+ (y || ae) && /* @__PURE__ */ C("div", {
1155
+ className: "time bottom",
1156
+ children: y ? /* @__PURE__ */ C("span", {
1157
+ className: "time error",
1158
+ role: "alert",
1159
+ children: y
1160
+ }) : /* @__PURE__ */ C("span", {
1161
+ className: "time helper",
1162
+ children: ae
1163
+ })
1164
+ })
1165
+ ]
1166
+ });
1167
+ }
1168
+ function H({ items: e, selected: t, onSelect: n, isDisabled: r, label: i }) {
1169
+ let a = se(null);
1170
+ oe(() => {
1171
+ if (t === void 0 || !a.current) return;
1172
+ let e = a.current.querySelector(`[data-value="${t}"]`);
1173
+ if (e) {
1174
+ let t = a.current;
1175
+ t.scrollTop = e.offsetTop - t.clientHeight / 2 + e.offsetHeight / 2;
1176
+ }
1177
+ }, [t]);
1178
+ let s = (e) => e.toString().padStart(2, "0");
1179
+ return /* @__PURE__ */ w("div", {
1180
+ className: "time column",
1181
+ children: [/* @__PURE__ */ C("div", {
1182
+ className: "time column label",
1183
+ children: i
1184
+ }), /* @__PURE__ */ C("div", {
1185
+ ref: a,
1186
+ className: "time column list",
1187
+ children: e.map((e) => {
1188
+ let i = r?.(e) ?? !1;
1189
+ return /* @__PURE__ */ C("button", {
1190
+ type: "button",
1191
+ "data-value": e,
1192
+ className: o("time column item", e === t && "selected", i && "disabled"),
1193
+ onClick: () => n(e),
1194
+ disabled: i,
1195
+ children: s(e)
1196
+ }, e);
1197
+ })
1198
+ })]
1199
+ });
1200
+ }
1201
+ //#endregion
1202
+ export { T as a, E as i, R as n, O as r, V as t };
1203
+
1204
+ //# sourceMappingURL=TimePicker-BXbuLCDX.js.map