@banzamel/mineralui 0.10.3 → 1.0.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 (1465) hide show
  1. package/README.md +23 -250
  2. package/dist/MArrowDownIcon-BslRpwqk.js +15 -0
  3. package/dist/MArrowDownIcon-BslRpwqk.js.map +1 -0
  4. package/dist/MArrowDownIcon-DjLz-A0I.cjs +2 -0
  5. package/dist/MArrowDownIcon-DjLz-A0I.cjs.map +1 -0
  6. package/dist/MArrowUpIcon-CjLbBZOW.cjs +2 -0
  7. package/dist/MArrowUpIcon-CjLbBZOW.cjs.map +1 -0
  8. package/dist/MArrowUpIcon-CudFd1sD.js +15 -0
  9. package/dist/MArrowUpIcon-CudFd1sD.js.map +1 -0
  10. package/dist/MAvatar-B_YPaZt9.js +55 -0
  11. package/dist/MAvatar-B_YPaZt9.js.map +1 -0
  12. package/dist/MAvatar-lzW37S2c.cjs +2 -0
  13. package/dist/MAvatar-lzW37S2c.cjs.map +1 -0
  14. package/dist/MBadge-jh7HI3jR.js +17 -0
  15. package/dist/MBadge-jh7HI3jR.js.map +1 -0
  16. package/dist/MBadge-lezDpe-x.cjs +2 -0
  17. package/dist/MBadge-lezDpe-x.cjs.map +1 -0
  18. package/dist/MBoltIcon-B1P4i_X4.js +98 -0
  19. package/dist/MBoltIcon-B1P4i_X4.js.map +1 -0
  20. package/dist/MBoltIcon-DB6JHWMo.cjs +2 -0
  21. package/dist/MBoltIcon-DB6JHWMo.cjs.map +1 -0
  22. package/dist/MButton-BIWj6T2J.js +111 -0
  23. package/dist/MButton-BIWj6T2J.js.map +1 -0
  24. package/dist/MButton-DOtMjOTz.cjs +2 -0
  25. package/dist/MButton-DOtMjOTz.cjs.map +1 -0
  26. package/dist/MCalendarIcon-CgFKAojj.cjs +2 -0
  27. package/dist/MCalendarIcon-CgFKAojj.cjs.map +1 -0
  28. package/dist/MCalendarIcon-Csj_JV9i.js +29 -0
  29. package/dist/MCalendarIcon-Csj_JV9i.js.map +1 -0
  30. package/dist/MCard-BBBA2UVf.cjs +2 -0
  31. package/dist/MCard-BBBA2UVf.cjs.map +1 -0
  32. package/dist/MCard-ViJ2Lf73.js +65 -0
  33. package/dist/MCard-ViJ2Lf73.js.map +1 -0
  34. package/dist/MCheckbox-DhDggBnO.js +59 -0
  35. package/dist/MCheckbox-DhDggBnO.js.map +1 -0
  36. package/dist/MCheckbox-Vbr4IhEn.cjs +2 -0
  37. package/dist/MCheckbox-Vbr4IhEn.cjs.map +1 -0
  38. package/dist/MChevronDownIcon-CE25HFYo.cjs +2 -0
  39. package/dist/MChevronDownIcon-CE25HFYo.cjs.map +1 -0
  40. package/dist/MChevronDownIcon-CPXk51nE.js +15 -0
  41. package/dist/MChevronDownIcon-CPXk51nE.js.map +1 -0
  42. package/dist/MChevronRightIcon-BozfuNpv.js +21 -0
  43. package/dist/MChevronRightIcon-BozfuNpv.js.map +1 -0
  44. package/dist/MChevronRightIcon-QbfE-b7g.cjs +2 -0
  45. package/dist/MChevronRightIcon-QbfE-b7g.cjs.map +1 -0
  46. package/dist/MClockIcon-2NNldTuA.cjs +2 -0
  47. package/dist/MClockIcon-2NNldTuA.cjs.map +1 -0
  48. package/dist/MClockIcon-D4K6fmV9.js +19 -0
  49. package/dist/MClockIcon-D4K6fmV9.js.map +1 -0
  50. package/dist/MCloseIcon-BKH33Q51.cjs +2 -0
  51. package/dist/MCloseIcon-BKH33Q51.cjs.map +1 -0
  52. package/dist/MCloseIcon-BQv01JOS.js +15 -0
  53. package/dist/MCloseIcon-BQv01JOS.js.map +1 -0
  54. package/dist/MDropdownMenu-BcRbNfoR.js +186 -0
  55. package/dist/MDropdownMenu-BcRbNfoR.js.map +1 -0
  56. package/dist/MDropdownMenu-DOxSG00i.cjs +2 -0
  57. package/dist/MDropdownMenu-DOxSG00i.cjs.map +1 -0
  58. package/dist/MFileExtIcons-DzACx_eM.cjs +2 -0
  59. package/dist/MFileExtIcons-DzACx_eM.cjs.map +1 -0
  60. package/dist/MFileExtIcons-H7zvI8AL.js +145 -0
  61. package/dist/MFileExtIcons-H7zvI8AL.js.map +1 -0
  62. package/dist/MFolderOpenIcon-35Lmw91g.cjs +2 -0
  63. package/dist/MFolderOpenIcon-35Lmw91g.cjs.map +1 -0
  64. package/dist/MFolderOpenIcon-DFahkqXu.js +31 -0
  65. package/dist/MFolderOpenIcon-DFahkqXu.js.map +1 -0
  66. package/dist/MI18nProvider-4ji0oN3U.cjs +2 -0
  67. package/dist/MI18nProvider-4ji0oN3U.cjs.map +1 -0
  68. package/dist/MI18nProvider-VH14CI8u.js +72 -0
  69. package/dist/MI18nProvider-VH14CI8u.js.map +1 -0
  70. package/dist/MIcon-BPr09_p4.js +49 -0
  71. package/dist/MIcon-BPr09_p4.js.map +1 -0
  72. package/dist/MIcon-CX5beo32.cjs +2 -0
  73. package/dist/MIcon-CX5beo32.cjs.map +1 -0
  74. package/dist/MInput-CjsJRLaz.cjs +2 -0
  75. package/dist/MInput-CjsJRLaz.cjs.map +1 -0
  76. package/dist/MInput-DYEAqxod.js +186 -0
  77. package/dist/MInput-DYEAqxod.js.map +1 -0
  78. package/dist/MInputSearch-CQZ-ccri.cjs +2 -0
  79. package/dist/MInputSearch-CQZ-ccri.cjs.map +1 -0
  80. package/dist/MInputSearch-CrVrpYsR.js +43 -0
  81. package/dist/MInputSearch-CrVrpYsR.js.map +1 -0
  82. package/dist/MLink-BfRaT8NU.js +29 -0
  83. package/dist/MLink-BfRaT8NU.js.map +1 -0
  84. package/dist/MLink-CAaK6SOG.cjs +2 -0
  85. package/dist/MLink-CAaK6SOG.cjs.map +1 -0
  86. package/dist/MMenuIcon-B13EvS3i.js +20 -0
  87. package/dist/MMenuIcon-B13EvS3i.js.map +1 -0
  88. package/dist/MMenuIcon-TZ9iJAXz.cjs +2 -0
  89. package/dist/MMenuIcon-TZ9iJAXz.cjs.map +1 -0
  90. package/dist/MPagination-C8txsdB6.cjs +2 -0
  91. package/dist/MPagination-C8txsdB6.cjs.map +1 -0
  92. package/dist/MPagination-RupoyjxR.js +113 -0
  93. package/dist/MPagination-RupoyjxR.js.map +1 -0
  94. package/dist/MPopover-BE73Iock.cjs +2 -0
  95. package/dist/MPopover-BE73Iock.cjs.map +1 -0
  96. package/dist/MPopover-C7ZJz7Uj.js +95 -0
  97. package/dist/MPopover-C7ZJz7Uj.js.map +1 -0
  98. package/dist/MPortal-BzordRff.js +10 -0
  99. package/dist/MPortal-BzordRff.js.map +1 -0
  100. package/dist/MPortal-d1mwLhwx.cjs +2 -0
  101. package/dist/MPortal-d1mwLhwx.cjs.map +1 -0
  102. package/dist/MRating-0-_XBF-T.js +38 -0
  103. package/dist/MRating-0-_XBF-T.js.map +1 -0
  104. package/dist/MRating-B-fQMZ8c.cjs +2 -0
  105. package/dist/MRating-B-fQMZ8c.cjs.map +1 -0
  106. package/dist/MSearchIcon-Bb-f5JdO.cjs +2 -0
  107. package/dist/MSearchIcon-Bb-f5JdO.cjs.map +1 -0
  108. package/dist/MSearchIcon-COQaC0mk.js +24 -0
  109. package/dist/MSearchIcon-COQaC0mk.js.map +1 -0
  110. package/dist/MSkeleton-7YJwDcvl.cjs +2 -0
  111. package/dist/MSkeleton-7YJwDcvl.cjs.map +1 -0
  112. package/dist/MSkeleton-QQ57uNaL.js +39 -0
  113. package/dist/MSkeleton-QQ57uNaL.js.map +1 -0
  114. package/dist/MSlider-KyOhqE6d.js +75 -0
  115. package/dist/MSlider-KyOhqE6d.js.map +1 -0
  116. package/dist/MSlider-VFCviEUW.cjs +2 -0
  117. package/dist/MSlider-VFCviEUW.cjs.map +1 -0
  118. package/dist/MSortIcon-3mD9vpMX.cjs +2 -0
  119. package/dist/MSortIcon-3mD9vpMX.cjs.map +1 -0
  120. package/dist/MSortIcon-DGHyltKa.js +84 -0
  121. package/dist/MSortIcon-DGHyltKa.js.map +1 -0
  122. package/dist/MStack-CQLO9e-3.js +39 -0
  123. package/dist/MStack-CQLO9e-3.js.map +1 -0
  124. package/dist/MStack-SPM68IMq.cjs +2 -0
  125. package/dist/MStack-SPM68IMq.cjs.map +1 -0
  126. package/dist/MStarFillIcon-B2H1b7mD.cjs +2 -0
  127. package/dist/MStarFillIcon-B2H1b7mD.cjs.map +1 -0
  128. package/dist/MStarFillIcon-w67ZD64c.js +25 -0
  129. package/dist/MStarFillIcon-w67ZD64c.js.map +1 -0
  130. package/dist/MTag-BbIqugpb.js +37 -0
  131. package/dist/MTag-BbIqugpb.js.map +1 -0
  132. package/dist/MTag-CXAmy8tJ.cjs +2 -0
  133. package/dist/MTag-CXAmy8tJ.cjs.map +1 -0
  134. package/dist/MText-BxAcAs-j.cjs +2 -0
  135. package/dist/MText-BxAcAs-j.cjs.map +1 -0
  136. package/dist/MText-CzceD0k5.js +43 -0
  137. package/dist/MText-CzceD0k5.js.map +1 -0
  138. package/dist/MThemeProvider-9JHArSd7.cjs +2 -0
  139. package/dist/MThemeProvider-9JHArSd7.cjs.map +1 -0
  140. package/dist/MThemeProvider-DUuTvWdm.js +132 -0
  141. package/dist/MThemeProvider-DUuTvWdm.js.map +1 -0
  142. package/dist/MTooltip-CKS_zgzR.js +57 -0
  143. package/dist/MTooltip-CKS_zgzR.js.map +1 -0
  144. package/dist/MTooltip-CXXYU-j1.cjs +2 -0
  145. package/dist/MTooltip-CXXYU-j1.cjs.map +1 -0
  146. package/dist/MZoomInIcon-BcpTfzRD.cjs +2 -0
  147. package/dist/MZoomInIcon-BcpTfzRD.cjs.map +1 -0
  148. package/dist/MZoomInIcon-CK2aJhDg.js +169 -0
  149. package/dist/MZoomInIcon-CK2aJhDg.js.map +1 -0
  150. package/dist/cards-Bw7aZCIy.cjs +2 -0
  151. package/dist/cards-Bw7aZCIy.cjs.map +1 -0
  152. package/dist/cards-CYzgOCG5.js +613 -0
  153. package/dist/cards-CYzgOCG5.js.map +1 -0
  154. package/dist/cards.cjs +1 -1
  155. package/dist/cards.d.ts +0 -2
  156. package/dist/cards.js +3 -3
  157. package/dist/cn-B_veu23e.js +8 -0
  158. package/dist/cn-B_veu23e.js.map +1 -0
  159. package/dist/cn-CpRt8Xjj.cjs +2 -0
  160. package/dist/cn-CpRt8Xjj.cjs.map +1 -0
  161. package/dist/components/cards/MCard/MCard.d.ts +5 -0
  162. package/dist/components/cards/MCard/MCard.types.d.ts +17 -0
  163. package/dist/components/cards/MCard/index.d.ts +2 -0
  164. package/dist/components/cards/MCardCourse/MCardCourse.d.ts +2 -0
  165. package/dist/components/cards/MCardCourse/MCardCourse.types.d.ts +36 -0
  166. package/dist/components/cards/MCardCourse/index.d.ts +2 -0
  167. package/dist/components/cards/MCardEvent/MCardEvent.d.ts +2 -0
  168. package/dist/components/cards/MCardEvent/MCardEvent.types.d.ts +27 -0
  169. package/dist/components/cards/MCardEvent/index.d.ts +2 -0
  170. package/dist/components/cards/MCardGrid/MCardGrid.d.ts +2 -0
  171. package/dist/components/cards/MCardGrid/MCardGrid.types.d.ts +27 -0
  172. package/dist/components/cards/MCardGrid/index.d.ts +2 -0
  173. package/dist/components/cards/MCardOffer/MCardOffer.d.ts +2 -0
  174. package/dist/components/cards/MCardOffer/MCardOffer.types.d.ts +31 -0
  175. package/dist/components/cards/MCardOffer/index.d.ts +2 -0
  176. package/dist/components/cards/MCardPayment/MCardPayment.d.ts +2 -0
  177. package/dist/components/cards/MCardPayment/MCardPayment.types.d.ts +13 -0
  178. package/dist/components/cards/MCardPayment/index.d.ts +2 -0
  179. package/dist/components/cards/MCardProduct/MCardProduct.d.ts +2 -0
  180. package/dist/components/cards/MCardProduct/MCardProduct.types.d.ts +28 -0
  181. package/dist/components/cards/MCardProduct/index.d.ts +2 -0
  182. package/dist/components/cards/MCardWidget/MCardWidget.d.ts +2 -0
  183. package/dist/components/cards/MCardWidget/MCardWidget.types.d.ts +12 -0
  184. package/dist/components/cards/MCardWidget/index.d.ts +2 -0
  185. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.d.ts +2 -0
  186. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.types.d.ts +44 -0
  187. package/dist/components/cards/ServiceCardsShared/index.d.ts +2 -0
  188. package/dist/components/cards/index.d.ts +16 -10
  189. package/dist/components/controls/MButton/MButton.d.ts +2 -0
  190. package/dist/components/controls/MButton/MButton.types.d.ts +30 -0
  191. package/dist/components/controls/MButton/index.d.ts +2 -0
  192. package/dist/components/controls/MButtonGroup/MButtonGroup.d.ts +2 -0
  193. package/dist/components/controls/MButtonGroup/MButtonGroup.types.d.ts +13 -0
  194. package/dist/components/controls/MButtonGroup/MButtonGroupContext.d.ts +9 -0
  195. package/dist/components/controls/MButtonGroup/index.d.ts +4 -0
  196. package/dist/components/controls/MCheckbox/MCheckbox.d.ts +3 -0
  197. package/dist/components/controls/MCheckbox/MCheckbox.types.d.ts +23 -0
  198. package/dist/components/controls/MCheckbox/index.d.ts +2 -0
  199. package/dist/components/controls/MLoadMore/MLoadMore.d.ts +2 -0
  200. package/dist/components/controls/MLoadMore/MLoadMore.types.d.ts +17 -0
  201. package/dist/components/controls/MLoadMore/index.d.ts +2 -0
  202. package/dist/components/controls/MRadio/MRadio.d.ts +3 -0
  203. package/dist/components/controls/MRadio/MRadio.types.d.ts +44 -0
  204. package/dist/components/controls/MRadio/MRadioGroup.d.ts +2 -0
  205. package/dist/components/controls/MRadio/RadioContext.d.ts +3 -0
  206. package/dist/components/controls/MRadio/index.d.ts +3 -0
  207. package/dist/components/controls/MScrollTop/MScrollTop.d.ts +2 -0
  208. package/dist/components/controls/MScrollTop/MScrollTop.types.d.ts +9 -0
  209. package/dist/components/controls/MScrollTop/index.d.ts +2 -0
  210. package/dist/components/controls/MSlider/MSlider.d.ts +2 -0
  211. package/dist/components/controls/MSlider/MSlider.types.d.ts +17 -0
  212. package/dist/components/controls/MSlider/index.d.ts +2 -0
  213. package/dist/components/controls/MSocialButton/MSocialButton.d.ts +2 -0
  214. package/dist/components/controls/MSocialButton/MSocialButton.icons.d.ts +9 -0
  215. package/dist/components/controls/MSocialButton/MSocialButton.types.d.ts +10 -0
  216. package/dist/components/controls/MSocialButton/index.d.ts +2 -0
  217. package/dist/components/controls/MToggle/MToggle.d.ts +2 -0
  218. package/dist/components/controls/MToggle/MToggle.types.d.ts +19 -0
  219. package/dist/components/controls/MToggle/index.d.ts +2 -0
  220. package/dist/components/controls/index.d.ts +18 -10
  221. package/dist/components/data/MDataTable/MDataTable.d.ts +2 -0
  222. package/dist/components/data/MDataTable/MDataTable.types.d.ts +34 -0
  223. package/dist/components/data/MDataTable/index.d.ts +2 -0
  224. package/dist/components/data/MTaskList/MTaskList.d.ts +2 -0
  225. package/dist/components/data/MTaskList/MTaskList.types.d.ts +14 -0
  226. package/dist/components/data/MTaskList/index.d.ts +2 -0
  227. package/dist/components/data/MTreeView/MTreeView.d.ts +2 -0
  228. package/dist/components/data/MTreeView/MTreeView.types.d.ts +63 -0
  229. package/dist/components/data/MTreeView/index.d.ts +2 -0
  230. package/dist/components/data/index.d.ts +6 -8
  231. package/dist/components/display/MAccordion/MAccordion.d.ts +3 -0
  232. package/dist/components/display/MAccordion/MAccordion.types.d.ts +17 -0
  233. package/dist/components/display/MAccordion/index.d.ts +2 -0
  234. package/dist/components/display/MCollapsible/MCollapsible.d.ts +2 -0
  235. package/dist/components/display/MCollapsible/MCollapsible.types.d.ts +10 -0
  236. package/dist/components/display/MCollapsible/index.d.ts +2 -0
  237. package/dist/components/display/MColorPicker/MColorPicker.d.ts +2 -0
  238. package/dist/components/display/MColorPicker/MColorPicker.types.d.ts +12 -0
  239. package/dist/components/display/MColorPicker/index.d.ts +2 -0
  240. package/dist/components/display/MCountUp/MCountUp.d.ts +2 -0
  241. package/dist/components/display/MCountUp/MCountUp.types.d.ts +10 -0
  242. package/dist/components/display/MCountUp/index.d.ts +2 -0
  243. package/dist/components/display/MEmptyState/MEmptyState.d.ts +2 -0
  244. package/dist/components/display/MEmptyState/MEmptyState.types.d.ts +12 -0
  245. package/dist/components/display/MEmptyState/index.d.ts +2 -0
  246. package/dist/components/display/MProgressBar/MProgressBar.d.ts +2 -0
  247. package/dist/components/display/MProgressBar/MProgressBar.types.d.ts +12 -0
  248. package/dist/components/display/MProgressBar/index.d.ts +2 -0
  249. package/dist/components/display/MRating/MRating.d.ts +2 -0
  250. package/dist/components/display/MRating/MRating.types.d.ts +10 -0
  251. package/dist/components/display/MRating/index.d.ts +2 -0
  252. package/dist/components/display/MTimeAgo/MTimeAgo.d.ts +2 -0
  253. package/dist/components/display/MTimeAgo/MTimeAgo.types.d.ts +11 -0
  254. package/dist/components/display/MTimeAgo/index.d.ts +2 -0
  255. package/dist/components/display/index.d.ts +16 -16
  256. package/dist/components/dropdowns/MAutocomplete/MAutocomplete.d.ts +2 -0
  257. package/dist/components/dropdowns/MAutocomplete/MAutocomplete.types.d.ts +36 -0
  258. package/dist/components/dropdowns/MAutocomplete/index.d.ts +2 -0
  259. package/dist/components/dropdowns/MDatePicker/MDatePicker.d.ts +2 -0
  260. package/dist/components/dropdowns/MDatePicker/MDatePicker.types.d.ts +42 -0
  261. package/dist/components/dropdowns/MDatePicker/index.d.ts +2 -0
  262. package/dist/components/dropdowns/MDateRangePicker/MDateRangePicker.d.ts +2 -0
  263. package/dist/components/dropdowns/MDateRangePicker/MDateRangePicker.types.d.ts +50 -0
  264. package/dist/components/dropdowns/MDateRangePicker/index.d.ts +2 -0
  265. package/dist/components/dropdowns/MSelect/MSelect.d.ts +2 -0
  266. package/dist/components/dropdowns/MSelect/MSelect.types.d.ts +38 -0
  267. package/dist/components/dropdowns/MSelect/index.d.ts +2 -0
  268. package/dist/components/dropdowns/MTimePicker/MTimePicker.d.ts +2 -0
  269. package/dist/components/dropdowns/MTimePicker/MTimePicker.types.d.ts +30 -0
  270. package/dist/components/dropdowns/MTimePicker/index.d.ts +2 -0
  271. package/dist/components/dropdowns/index.d.ts +10 -10
  272. package/dist/components/feedback/MAlert/MAlert.d.ts +2 -0
  273. package/dist/components/feedback/MAlert/MAlert.types.d.ts +8 -0
  274. package/dist/components/feedback/MAlert/index.d.ts +2 -0
  275. package/dist/components/feedback/MBadge/MBadge.d.ts +2 -0
  276. package/dist/components/feedback/MBadge/MBadge.types.d.ts +11 -0
  277. package/dist/components/feedback/MBadge/index.d.ts +2 -0
  278. package/dist/components/feedback/MBanner/MBanner.d.ts +2 -0
  279. package/dist/components/feedback/MBanner/MBanner.types.d.ts +12 -0
  280. package/dist/components/feedback/MBanner/index.d.ts +2 -0
  281. package/dist/components/feedback/MLoader/MLoader.d.ts +2 -0
  282. package/dist/components/feedback/MLoader/MLoader.types.d.ts +9 -0
  283. package/dist/components/feedback/MLoader/index.d.ts +2 -0
  284. package/dist/components/feedback/MSkeleton/MSkeleton.d.ts +2 -0
  285. package/dist/components/feedback/MSkeleton/MSkeleton.types.d.ts +20 -0
  286. package/dist/components/feedback/MSkeleton/index.d.ts +2 -0
  287. package/dist/components/feedback/MSpinner/MSpinner.d.ts +2 -0
  288. package/dist/components/feedback/MSpinner/MSpinner.types.d.ts +7 -0
  289. package/dist/components/feedback/MSpinner/index.d.ts +2 -0
  290. package/dist/components/feedback/MTag/MTag.d.ts +2 -0
  291. package/dist/components/feedback/MTag/MTag.types.d.ts +13 -0
  292. package/dist/components/feedback/MTag/index.d.ts +2 -0
  293. package/dist/components/feedback/MToast/MToast.types.d.ts +27 -0
  294. package/dist/components/feedback/MToast/MToastContext.d.ts +3 -0
  295. package/dist/components/feedback/MToast/MToastItem.d.ts +5 -0
  296. package/dist/components/feedback/MToast/MToastProvider.d.ts +4 -0
  297. package/dist/components/feedback/MToast/index.d.ts +3 -0
  298. package/dist/components/feedback/index.d.ts +16 -14
  299. package/dist/components/feedback/statusIcons.d.ts +2 -0
  300. package/dist/components/form/MForm/FormContext.d.ts +3 -0
  301. package/dist/components/form/MForm/MForm.d.ts +2 -0
  302. package/dist/components/form/MForm/MForm.types.d.ts +39 -0
  303. package/dist/components/form/MForm/index.d.ts +5 -0
  304. package/dist/components/form/MForm/useFormField.d.ts +13 -0
  305. package/dist/components/form/index.d.ts +2 -2
  306. package/dist/components/inputs/MInput/MInput.d.ts +3 -0
  307. package/dist/components/inputs/MInput/MInput.types.d.ts +48 -0
  308. package/dist/components/inputs/MInput/index.d.ts +2 -0
  309. package/dist/components/inputs/MInputCreditCard/MInputCreditCard.d.ts +3 -0
  310. package/dist/components/inputs/MInputCreditCard/MInputCreditCard.types.d.ts +12 -0
  311. package/dist/components/inputs/MInputCreditCard/index.d.ts +2 -0
  312. package/dist/components/inputs/MInputCurrency/MInputCurrency.d.ts +3 -0
  313. package/dist/components/inputs/MInputCurrency/MInputCurrency.types.d.ts +13 -0
  314. package/dist/components/inputs/MInputCurrency/index.d.ts +2 -0
  315. package/dist/components/inputs/MInputDate/MInputDate.d.ts +3 -0
  316. package/dist/components/inputs/MInputDate/MInputDate.types.d.ts +13 -0
  317. package/dist/components/inputs/MInputDate/index.d.ts +2 -0
  318. package/dist/components/inputs/MInputEmail/MInputEmail.d.ts +3 -0
  319. package/dist/components/inputs/MInputEmail/MInputEmail.types.d.ts +8 -0
  320. package/dist/components/inputs/MInputEmail/index.d.ts +2 -0
  321. package/dist/components/inputs/MInputFile/MCropEditor.d.ts +11 -0
  322. package/dist/components/inputs/MInputFile/MInputFile.d.ts +3 -0
  323. package/dist/components/inputs/MInputFile/MInputFile.types.d.ts +31 -0
  324. package/dist/components/inputs/MInputFile/index.d.ts +2 -0
  325. package/dist/components/inputs/MInputGroup/MInputGroup.d.ts +3 -0
  326. package/dist/components/inputs/MInputGroup/MInputGroup.types.d.ts +14 -0
  327. package/dist/components/inputs/MInputGroup/index.d.ts +2 -0
  328. package/dist/components/inputs/MInputIBAN/MInputIBAN.d.ts +3 -0
  329. package/dist/components/inputs/MInputIBAN/MInputIBAN.types.d.ts +10 -0
  330. package/dist/components/inputs/MInputIBAN/index.d.ts +2 -0
  331. package/dist/components/inputs/MInputName/MInputName.d.ts +3 -0
  332. package/dist/components/inputs/MInputName/MInputName.types.d.ts +10 -0
  333. package/dist/components/inputs/MInputName/index.d.ts +2 -0
  334. package/dist/components/inputs/MInputNumber/MInputNumber.d.ts +3 -0
  335. package/dist/components/inputs/MInputNumber/MInputNumber.types.d.ts +10 -0
  336. package/dist/components/inputs/MInputNumber/index.d.ts +2 -0
  337. package/dist/components/inputs/MInputOTP/MInputOTP.d.ts +3 -0
  338. package/dist/components/inputs/MInputOTP/MInputOTP.types.d.ts +17 -0
  339. package/dist/components/inputs/MInputOTP/index.d.ts +2 -0
  340. package/dist/components/inputs/MInputPassword/MInputPassword.d.ts +3 -0
  341. package/dist/components/inputs/MInputPassword/MInputPassword.types.d.ts +7 -0
  342. package/dist/components/inputs/MInputPassword/index.d.ts +2 -0
  343. package/dist/components/inputs/MInputPhone/MInputPhone.d.ts +3 -0
  344. package/dist/components/inputs/MInputPhone/MInputPhone.types.d.ts +10 -0
  345. package/dist/components/inputs/MInputPhone/index.d.ts +2 -0
  346. package/dist/components/inputs/MInputPostCode/MInputPostCode.d.ts +3 -0
  347. package/dist/components/inputs/MInputPostCode/MInputPostCode.types.d.ts +12 -0
  348. package/dist/components/inputs/MInputPostCode/index.d.ts +2 -0
  349. package/dist/components/inputs/MInputSearch/MInputSearch.d.ts +3 -0
  350. package/dist/components/inputs/MInputSearch/MInputSearch.types.d.ts +5 -0
  351. package/dist/components/inputs/MInputSearch/index.d.ts +2 -0
  352. package/dist/components/inputs/MInputSlider/MInputSlider.d.ts +3 -0
  353. package/dist/components/inputs/MInputSlider/MInputSlider.types.d.ts +12 -0
  354. package/dist/components/inputs/MInputSlider/index.d.ts +2 -0
  355. package/dist/components/inputs/MInputTaxId/MInputTaxId.d.ts +3 -0
  356. package/dist/components/inputs/MInputTaxId/MInputTaxId.types.d.ts +11 -0
  357. package/dist/components/inputs/MInputTaxId/index.d.ts +2 -0
  358. package/dist/components/inputs/MTextarea/MTextarea.d.ts +3 -0
  359. package/dist/components/inputs/MTextarea/MTextarea.types.d.ts +40 -0
  360. package/dist/components/inputs/MTextarea/index.d.ts +2 -0
  361. package/dist/components/inputs/index.d.ts +36 -34
  362. package/dist/components/layout/MAppShell/MAppShell.d.ts +4 -0
  363. package/dist/components/layout/MAppShell/MAppShell.types.d.ts +7 -0
  364. package/dist/components/layout/MAppShell/index.d.ts +2 -0
  365. package/dist/components/layout/MContainer/MContainer.d.ts +2 -0
  366. package/dist/components/layout/MContainer/MContainer.types.d.ts +10 -0
  367. package/dist/components/layout/MContainer/index.d.ts +2 -0
  368. package/dist/components/layout/MDivider/MDivider.d.ts +2 -0
  369. package/dist/components/layout/MDivider/MDivider.types.d.ts +9 -0
  370. package/dist/components/layout/MDivider/index.d.ts +2 -0
  371. package/dist/components/layout/MFooter/MFooter.d.ts +1 -1
  372. package/dist/components/layout/MFooter/MFooter.types.d.ts +2 -2
  373. package/dist/components/layout/MGrid/MGrid.d.ts +1 -1
  374. package/dist/components/layout/MHeader/MHeader.d.ts +1 -1
  375. package/dist/components/layout/MHeader/MHeader.types.d.ts +4 -4
  376. package/dist/components/layout/MHeader/index.d.ts +1 -1
  377. package/dist/components/layout/MInline/MInline.d.ts +2 -0
  378. package/dist/components/layout/MInline/MInline.types.d.ts +15 -0
  379. package/dist/components/layout/MInline/index.d.ts +2 -0
  380. package/dist/components/layout/MNavbar/MNavbar.d.ts +1 -1
  381. package/dist/components/layout/MNavbar/MNavbar.types.d.ts +2 -6
  382. package/dist/components/layout/MNavbar/index.d.ts +1 -1
  383. package/dist/components/layout/MNavs/MNavs.d.ts +1 -1
  384. package/dist/components/layout/MNavs/MNavs.types.d.ts +0 -2
  385. package/dist/components/layout/MSection/MSection.d.ts +2 -0
  386. package/dist/components/layout/MSection/MSection.types.d.ts +13 -0
  387. package/dist/components/layout/MSection/index.d.ts +2 -0
  388. package/dist/components/layout/MSidebar/MSidebar.types.d.ts +2 -2
  389. package/dist/components/layout/MSimpleGrid/MSimpleGrid.d.ts +2 -0
  390. package/dist/components/layout/MSimpleGrid/MSimpleGrid.types.d.ts +10 -0
  391. package/dist/components/layout/MSimpleGrid/index.d.ts +2 -0
  392. package/dist/components/layout/MStack/MStack.d.ts +2 -0
  393. package/dist/components/layout/MStack/MStack.types.d.ts +11 -0
  394. package/dist/components/layout/MStack/index.d.ts +2 -0
  395. package/dist/components/layout/MSurface/MSurface.d.ts +2 -0
  396. package/dist/components/layout/MSurface/MSurface.types.d.ts +13 -0
  397. package/dist/components/layout/MSurface/index.d.ts +2 -0
  398. package/dist/components/layout/MTabs/MTabs.d.ts +1 -1
  399. package/dist/components/layout/MTabs/MTabs.types.d.ts +3 -5
  400. package/dist/components/layout/index.d.ts +18 -20
  401. package/dist/components/media/MAvatar/MAvatar.d.ts +2 -0
  402. package/dist/components/media/MAvatar/MAvatar.types.d.ts +23 -0
  403. package/dist/components/media/MAvatar/index.d.ts +2 -0
  404. package/dist/components/media/MCarousel/MCarousel.d.ts +2 -0
  405. package/dist/components/media/MCarousel/MCarousel.types.d.ts +12 -0
  406. package/dist/components/media/MCarousel/index.d.ts +2 -0
  407. package/dist/components/media/MGallery/MGallery.d.ts +2 -0
  408. package/dist/components/media/MGallery/MGallery.types.d.ts +14 -0
  409. package/dist/components/media/MGallery/index.d.ts +2 -0
  410. package/dist/components/media/MImage/MImage.d.ts +2 -0
  411. package/dist/components/media/MImage/MImage.types.d.ts +15 -0
  412. package/dist/components/media/MImage/index.d.ts +2 -0
  413. package/dist/components/media/index.d.ts +8 -16
  414. package/dist/components/media/mediaInteraction.d.ts +5 -0
  415. package/dist/components/overlays/MDrawer/MDrawer.d.ts +5 -0
  416. package/dist/components/overlays/MDrawer/MDrawer.types.d.ts +17 -0
  417. package/dist/components/overlays/MDrawer/index.d.ts +2 -0
  418. package/dist/components/overlays/MDropdownMenu/MDropdownMenu.d.ts +9 -0
  419. package/dist/components/overlays/MDropdownMenu/MDropdownMenu.types.d.ts +34 -0
  420. package/dist/components/overlays/MDropdownMenu/index.d.ts +2 -0
  421. package/dist/components/overlays/MModal/MModal.d.ts +2 -0
  422. package/dist/components/overlays/MModal/MModal.types.d.ts +12 -0
  423. package/dist/components/overlays/MModal/index.d.ts +2 -0
  424. package/dist/components/overlays/MPopconfirm/MPopconfirm.d.ts +2 -0
  425. package/dist/components/overlays/MPopconfirm/MPopconfirm.types.d.ts +18 -0
  426. package/dist/components/overlays/MPopconfirm/index.d.ts +2 -0
  427. package/dist/components/overlays/MSheet/MSheet.d.ts +2 -0
  428. package/dist/components/overlays/MSheet/MSheet.types.d.ts +12 -0
  429. package/dist/components/overlays/MSheet/index.d.ts +2 -0
  430. package/dist/components/overlays/MTooltip/MTooltip.d.ts +2 -0
  431. package/dist/components/overlays/MTooltip/MTooltip.types.d.ts +9 -0
  432. package/dist/components/overlays/MTooltip/index.d.ts +2 -0
  433. package/dist/components/overlays/index.d.ts +12 -10
  434. package/dist/components/primitives/MPopover/MPopover.d.ts +2 -0
  435. package/dist/components/primitives/MPopover/MPopover.types.d.ts +14 -0
  436. package/dist/components/primitives/MPopover/index.d.ts +2 -0
  437. package/dist/components/primitives/MPortal/MPortal.d.ts +2 -0
  438. package/dist/components/primitives/MPortal/MPortal.types.d.ts +5 -0
  439. package/dist/components/primitives/MPortal/index.d.ts +2 -0
  440. package/dist/components/primitives/index.d.ts +4 -4
  441. package/dist/components/typography/MCode/MCode.d.ts +2 -0
  442. package/dist/components/typography/MCode/MCode.types.d.ts +6 -0
  443. package/dist/components/typography/MCode/index.d.ts +2 -0
  444. package/dist/components/typography/MHeading/MHeading.d.ts +282 -0
  445. package/dist/components/typography/MHeading/MHeading.types.d.ts +13 -0
  446. package/dist/components/typography/MHeading/index.d.ts +2 -0
  447. package/dist/components/typography/MKbd/MKbd.d.ts +2 -0
  448. package/dist/components/typography/MKbd/MKbd.types.d.ts +6 -0
  449. package/dist/components/typography/MKbd/index.d.ts +2 -0
  450. package/dist/components/typography/MLink/MLink.d.ts +2 -0
  451. package/dist/components/typography/MLink/MLink.types.d.ts +13 -0
  452. package/dist/components/typography/MLink/index.d.ts +2 -0
  453. package/dist/components/typography/MList/MList.d.ts +4 -0
  454. package/dist/components/typography/MList/MList.types.d.ts +7 -0
  455. package/dist/components/typography/MList/index.d.ts +2 -0
  456. package/dist/components/typography/MSubText/MSubText.d.ts +2 -0
  457. package/dist/components/typography/MSubText/MSubText.types.d.ts +12 -0
  458. package/dist/components/typography/MSubText/index.d.ts +2 -0
  459. package/dist/components/typography/MText/MText.d.ts +2 -0
  460. package/dist/components/typography/MText/MText.types.d.ts +17 -0
  461. package/dist/components/typography/MText/index.d.ts +2 -0
  462. package/dist/components/typography/index.d.ts +14 -14
  463. package/dist/controls-1nIh1Ih1.js +450 -0
  464. package/dist/controls-1nIh1Ih1.js.map +1 -0
  465. package/dist/controls-2pkUWkOa.cjs +2 -0
  466. package/dist/controls-2pkUWkOa.cjs.map +1 -0
  467. package/dist/controls.cjs +1 -1
  468. package/dist/controls.d.ts +0 -2
  469. package/dist/controls.js +5 -5
  470. package/dist/creditCards-BVKi47yn.cjs +2 -0
  471. package/dist/creditCards-BVKi47yn.cjs.map +1 -0
  472. package/dist/creditCards-Bk9rsMJf.js +129 -0
  473. package/dist/creditCards-Bk9rsMJf.js.map +1 -0
  474. package/dist/data-BGEuiFne.cjs +2 -0
  475. package/dist/data-BGEuiFne.cjs.map +1 -0
  476. package/dist/data-CYb66BuD.js +423 -0
  477. package/dist/data-CYb66BuD.js.map +1 -0
  478. package/dist/data.cjs +1 -1
  479. package/dist/data.d.ts +0 -2
  480. package/dist/data.js +2 -2
  481. package/dist/dateUtils-5jacfR5Q.cjs +2 -0
  482. package/dist/dateUtils-5jacfR5Q.cjs.map +1 -0
  483. package/dist/dateUtils-BYfEWGkb.js +107 -0
  484. package/dist/dateUtils-BYfEWGkb.js.map +1 -0
  485. package/dist/display-BEw4iW6N.js +416 -0
  486. package/dist/display-BEw4iW6N.js.map +1 -0
  487. package/dist/display-BVeaSZDJ.cjs +2 -0
  488. package/dist/display-BVeaSZDJ.cjs.map +1 -0
  489. package/dist/display.cjs +1 -1
  490. package/dist/display.d.ts +0 -2
  491. package/dist/display.js +3 -3
  492. package/dist/dropdowns-CsUSxR0u.cjs +2 -0
  493. package/dist/dropdowns-CsUSxR0u.cjs.map +1 -0
  494. package/dist/dropdowns-DiEsLPoq.js +1729 -0
  495. package/dist/dropdowns-DiEsLPoq.js.map +1 -0
  496. package/dist/dropdowns.cjs +1 -1
  497. package/dist/dropdowns.d.ts +0 -2
  498. package/dist/dropdowns.js +2 -2
  499. package/dist/feedback-BOPPNYr5.js +217 -0
  500. package/dist/feedback-BOPPNYr5.js.map +1 -0
  501. package/dist/feedback-vTRXpBZw.cjs +2 -0
  502. package/dist/feedback-vTRXpBZw.cjs.map +1 -0
  503. package/dist/feedback.cjs +1 -1
  504. package/dist/feedback.d.ts +0 -2
  505. package/dist/feedback.js +6 -3
  506. package/dist/form-C7T4heU2.js +167 -0
  507. package/dist/form-C7T4heU2.js.map +1 -0
  508. package/dist/form-DFx61JJJ.cjs +2 -0
  509. package/dist/form-DFx61JJJ.cjs.map +1 -0
  510. package/dist/form.cjs +1 -1
  511. package/dist/form.d.ts +1 -3
  512. package/dist/form.js +2 -2
  513. package/dist/formatters-bW67hwbX.cjs +2 -0
  514. package/dist/formatters-bW67hwbX.cjs.map +1 -0
  515. package/dist/formatters-qn3Mj74v.js +92 -0
  516. package/dist/formatters-qn3Mj74v.js.map +1 -0
  517. package/dist/i18n/MI18nProvider.d.ts +19 -0
  518. package/dist/i18n/frameworkTexts.d.ts +90 -0
  519. package/dist/i18n/index.d.ts +2 -2
  520. package/dist/i18n.cjs +1 -1
  521. package/dist/i18n.js +1 -1
  522. package/dist/icons/MIcon.d.ts +2 -0
  523. package/dist/icons/MIcon.types.d.ts +8 -0
  524. package/dist/icons/glyphs/MAmericanExpressIcon.d.ts +3 -0
  525. package/dist/icons/glyphs/MArrowDownIcon.d.ts +2 -0
  526. package/dist/icons/glyphs/MArrowLeftIcon.d.ts +2 -0
  527. package/dist/icons/glyphs/MArrowRightIcon.d.ts +2 -0
  528. package/dist/icons/glyphs/MArrowUpDownIcon.d.ts +2 -0
  529. package/dist/icons/glyphs/MArrowUpIcon.d.ts +2 -0
  530. package/dist/icons/glyphs/MAttachIcon.d.ts +2 -0
  531. package/dist/icons/glyphs/MBankIcon.d.ts +2 -0
  532. package/dist/icons/glyphs/MBellIcon.d.ts +2 -0
  533. package/dist/icons/glyphs/MBoltIcon.d.ts +2 -0
  534. package/dist/icons/glyphs/MBoxIcon.d.ts +2 -0
  535. package/dist/icons/glyphs/MBrandIcons.d.ts +21 -0
  536. package/dist/icons/glyphs/MBrandMoreIcons.d.ts +31 -0
  537. package/dist/icons/glyphs/MBugIcon.d.ts +2 -0
  538. package/dist/icons/glyphs/MBuildingIcon.d.ts +2 -0
  539. package/dist/icons/glyphs/MCalendarIcon.d.ts +2 -0
  540. package/dist/icons/glyphs/MCameraIcon.d.ts +2 -0
  541. package/dist/icons/glyphs/MCartIcon.d.ts +2 -0
  542. package/dist/icons/glyphs/MChartIcon.d.ts +2 -0
  543. package/dist/icons/glyphs/MChatIcon.d.ts +2 -0
  544. package/dist/icons/glyphs/MChatsIcon.d.ts +2 -0
  545. package/dist/icons/glyphs/MCheckCircleIcon.d.ts +2 -0
  546. package/dist/icons/glyphs/MCheckIcon.d.ts +2 -0
  547. package/dist/icons/glyphs/MChevronDownIcon.d.ts +2 -0
  548. package/dist/icons/glyphs/MChevronLeftIcon.d.ts +2 -0
  549. package/dist/icons/glyphs/MChevronRightIcon.d.ts +2 -0
  550. package/dist/icons/glyphs/MChevronUpIcon.d.ts +2 -0
  551. package/dist/icons/glyphs/MClickIcon.d.ts +2 -0
  552. package/dist/icons/glyphs/MClipboardIcon.d.ts +2 -0
  553. package/dist/icons/glyphs/MClockIcon.d.ts +2 -0
  554. package/dist/icons/glyphs/MCloseIcon.d.ts +2 -0
  555. package/dist/icons/glyphs/MCommentIcon.d.ts +2 -0
  556. package/dist/icons/glyphs/MCopyIcon.d.ts +2 -0
  557. package/dist/icons/glyphs/MCopyrightIcon.d.ts +2 -0
  558. package/dist/icons/glyphs/MCreditCardIcon.d.ts +2 -0
  559. package/dist/icons/glyphs/MCubeIcon.d.ts +2 -0
  560. package/dist/icons/glyphs/MDashboardIcon.d.ts +2 -0
  561. package/dist/icons/glyphs/MDatabaseIcon.d.ts +2 -0
  562. package/dist/icons/glyphs/MDeviceMonitorIcon.d.ts +2 -0
  563. package/dist/icons/glyphs/MDevicePhoneIcon.d.ts +2 -0
  564. package/dist/icons/glyphs/MDeviceTabletIcon.d.ts +2 -0
  565. package/dist/icons/glyphs/MDocCopyIcon.d.ts +2 -0
  566. package/dist/icons/glyphs/MDocIcon.d.ts +2 -0
  567. package/dist/icons/glyphs/MDocPlusIcon.d.ts +2 -0
  568. package/dist/icons/glyphs/MDollarIcon.d.ts +2 -0
  569. package/dist/icons/glyphs/MDownloadIcon.d.ts +2 -0
  570. package/dist/icons/glyphs/MEditIcon.d.ts +2 -0
  571. package/dist/icons/glyphs/MEllipsisHorizontalIcon.d.ts +2 -0
  572. package/dist/icons/glyphs/MEllipsisVerticalIcon.d.ts +2 -0
  573. package/dist/icons/glyphs/MErrorIcon.d.ts +2 -0
  574. package/dist/icons/glyphs/MEuroIcon.d.ts +2 -0
  575. package/dist/icons/glyphs/MExternalLinkIcon.d.ts +2 -0
  576. package/dist/icons/glyphs/MEyeIcon.d.ts +2 -0
  577. package/dist/icons/glyphs/MEyeOffIcon.d.ts +2 -0
  578. package/dist/icons/glyphs/MFileArchiveIcon.d.ts +2 -0
  579. package/dist/icons/glyphs/MFileCodeIcon.d.ts +2 -0
  580. package/dist/icons/glyphs/MFileExtIcons.d.ts +27 -0
  581. package/dist/icons/glyphs/MFileIcon.d.ts +2 -0
  582. package/dist/icons/glyphs/MFileImageIcon.d.ts +2 -0
  583. package/dist/icons/glyphs/MFileMark.d.ts +9 -0
  584. package/dist/icons/glyphs/MFilePdfIcon.d.ts +2 -0
  585. package/dist/icons/glyphs/MFileTextIcon.d.ts +2 -0
  586. package/dist/icons/glyphs/MFileVideoIcon.d.ts +2 -0
  587. package/dist/icons/glyphs/MFilterIcon.d.ts +2 -0
  588. package/dist/icons/glyphs/MFlagArIcon.d.ts +2 -0
  589. package/dist/icons/glyphs/MFlagBrIcon.d.ts +2 -0
  590. package/dist/icons/glyphs/MFlagCaIcon.d.ts +2 -0
  591. package/dist/icons/glyphs/MFlagCnIcon.d.ts +2 -0
  592. package/dist/icons/glyphs/MFlagCzIcon.d.ts +2 -0
  593. package/dist/icons/glyphs/MFlagDeIcon.d.ts +2 -0
  594. package/dist/icons/glyphs/MFlagEsIcon.d.ts +2 -0
  595. package/dist/icons/glyphs/MFlagFrIcon.d.ts +2 -0
  596. package/dist/icons/glyphs/MFlagGbIcon.d.ts +2 -0
  597. package/dist/icons/glyphs/MFlagInIcon.d.ts +2 -0
  598. package/dist/icons/glyphs/MFlagItIcon.d.ts +2 -0
  599. package/dist/icons/glyphs/MFlagJpIcon.d.ts +2 -0
  600. package/dist/icons/glyphs/MFlagMxIcon.d.ts +2 -0
  601. package/dist/icons/glyphs/MFlagPlIcon.d.ts +2 -0
  602. package/dist/icons/glyphs/MFlagRuIcon.d.ts +2 -0
  603. package/dist/icons/glyphs/MFlagSkIcon.d.ts +2 -0
  604. package/dist/icons/glyphs/MFlagUaIcon.d.ts +2 -0
  605. package/dist/icons/glyphs/MFlagUsIcon.d.ts +2 -0
  606. package/dist/icons/glyphs/MFolderIcon.d.ts +2 -0
  607. package/dist/icons/glyphs/MFolderOpenIcon.d.ts +2 -0
  608. package/dist/icons/glyphs/MFolderPlusIcon.d.ts +2 -0
  609. package/dist/icons/glyphs/MFormIcon.d.ts +2 -0
  610. package/dist/icons/glyphs/MGalleryIcon.d.ts +2 -0
  611. package/dist/icons/glyphs/MGlobeIcon.d.ts +2 -0
  612. package/dist/icons/glyphs/MGroupIcon.d.ts +2 -0
  613. package/dist/icons/glyphs/MHeartFillIcon.d.ts +2 -0
  614. package/dist/icons/glyphs/MHeartIcon.d.ts +2 -0
  615. package/dist/icons/glyphs/MHelpIcon.d.ts +2 -0
  616. package/dist/icons/glyphs/MHomeIcon.d.ts +2 -0
  617. package/dist/icons/glyphs/MIdCardIcon.d.ts +2 -0
  618. package/dist/icons/glyphs/MImageIcon.d.ts +2 -0
  619. package/dist/icons/glyphs/MInfoIcon.d.ts +2 -0
  620. package/dist/icons/glyphs/MKanbanIcon.d.ts +2 -0
  621. package/dist/icons/glyphs/MLayoutIcon.d.ts +2 -0
  622. package/dist/icons/glyphs/MLightbulbIcon.d.ts +2 -0
  623. package/dist/icons/glyphs/MLinkIcon.d.ts +2 -0
  624. package/dist/icons/glyphs/MLockIcon.d.ts +2 -0
  625. package/dist/icons/glyphs/MLockOpenIcon.d.ts +2 -0
  626. package/dist/icons/glyphs/MMagicIcon.d.ts +2 -0
  627. package/dist/icons/glyphs/MMailIcon.d.ts +2 -0
  628. package/dist/icons/glyphs/MMailOpenIcon.d.ts +2 -0
  629. package/dist/icons/glyphs/MMenuIcon.d.ts +2 -0
  630. package/dist/icons/glyphs/MMinusIcon.d.ts +2 -0
  631. package/dist/icons/glyphs/MMoonIcon.d.ts +2 -0
  632. package/dist/icons/glyphs/MNeutralIcon.d.ts +2 -0
  633. package/dist/icons/glyphs/MPaletteIcon.d.ts +2 -0
  634. package/dist/icons/glyphs/MPhoneIcon.d.ts +2 -0
  635. package/dist/icons/glyphs/MPinIcon.d.ts +2 -0
  636. package/dist/icons/glyphs/MPlusIcon.d.ts +2 -0
  637. package/dist/icons/glyphs/MProtectIcon.d.ts +2 -0
  638. package/dist/icons/glyphs/MPuzzleIcon.d.ts +2 -0
  639. package/dist/icons/glyphs/MQrCodeIcon.d.ts +2 -0
  640. package/dist/icons/glyphs/MRefreshIcon.d.ts +2 -0
  641. package/dist/icons/glyphs/MSearchIcon.d.ts +2 -0
  642. package/dist/icons/glyphs/MSendIcon.d.ts +2 -0
  643. package/dist/icons/glyphs/MSettingsIcon.d.ts +2 -0
  644. package/dist/icons/glyphs/MSidebarIcon.d.ts +2 -0
  645. package/dist/icons/glyphs/MSignal1Icon.d.ts +2 -0
  646. package/dist/icons/glyphs/MSignal2Icon.d.ts +2 -0
  647. package/dist/icons/glyphs/MSignal3Icon.d.ts +2 -0
  648. package/dist/icons/glyphs/MSignal4Icon.d.ts +2 -0
  649. package/dist/icons/glyphs/MSlidersIcon.d.ts +2 -0
  650. package/dist/icons/glyphs/MSortIcon.d.ts +2 -0
  651. package/dist/icons/glyphs/MStarFillIcon.d.ts +2 -0
  652. package/dist/icons/glyphs/MStarIcon.d.ts +2 -0
  653. package/dist/icons/glyphs/MSuccessIcon.d.ts +2 -0
  654. package/dist/icons/glyphs/MSunIcon.d.ts +2 -0
  655. package/dist/icons/glyphs/MTagIcon.d.ts +2 -0
  656. package/dist/icons/glyphs/MTeamIcon.d.ts +2 -0
  657. package/dist/icons/glyphs/MTerminalIcon.d.ts +2 -0
  658. package/dist/icons/glyphs/MTranslateIcon.d.ts +2 -0
  659. package/dist/icons/glyphs/MTrashIcon.d.ts +2 -0
  660. package/dist/icons/glyphs/MUploadIcon.d.ts +2 -0
  661. package/dist/icons/glyphs/MUserIcon.d.ts +2 -0
  662. package/dist/icons/glyphs/MUsersIcon.d.ts +2 -0
  663. package/dist/icons/glyphs/MWarningIcon.d.ts +2 -0
  664. package/dist/icons/glyphs/MWindowIcon.d.ts +2 -0
  665. package/dist/icons/glyphs/MZoomInIcon.d.ts +2 -0
  666. package/dist/icons/glyphs/MZoomOutIcon.d.ts +2 -0
  667. package/dist/icons/index.d.ts +144 -142
  668. package/dist/icons.cjs +1 -1
  669. package/dist/icons.entry-BBIBT_e2.cjs +2 -0
  670. package/dist/icons.entry-BBIBT_e2.cjs.map +1 -0
  671. package/dist/icons.entry-CbJp27gc.js +2640 -0
  672. package/dist/icons.entry-CbJp27gc.js.map +1 -0
  673. package/dist/icons.entry.d.ts +0 -2
  674. package/dist/icons.js +18 -19
  675. package/dist/illustrations/MIllustration.d.ts +2 -0
  676. package/dist/illustrations/MIllustration.types.d.ts +14 -0
  677. package/dist/illustrations/index.d.ts +38 -0
  678. package/dist/illustrations/scenes/MAnalyticsIllustration.d.ts +2 -0
  679. package/dist/illustrations/scenes/MCalendarBoardIllustration.d.ts +2 -0
  680. package/dist/illustrations/scenes/MCalendarIllustration.d.ts +2 -0
  681. package/dist/illustrations/scenes/MChatIllustration.d.ts +2 -0
  682. package/dist/illustrations/scenes/MCookieConsentIllustration.d.ts +2 -0
  683. package/dist/illustrations/scenes/MCountUpIllustration.d.ts +2 -0
  684. package/dist/illustrations/scenes/MDashboardIllustration.d.ts +2 -0
  685. package/dist/illustrations/scenes/MDataTableIllustration.d.ts +2 -0
  686. package/dist/illustrations/scenes/MDatePickerIllustration.d.ts +2 -0
  687. package/dist/illustrations/scenes/MDateRangePickerIllustration.d.ts +2 -0
  688. package/dist/illustrations/scenes/MEmptyStateIllustration.d.ts +2 -0
  689. package/dist/illustrations/scenes/MErrorIllustration.d.ts +2 -0
  690. package/dist/illustrations/scenes/MFileManagerIllustration.d.ts +2 -0
  691. package/dist/illustrations/scenes/MFormsIllustration.d.ts +2 -0
  692. package/dist/illustrations/scenes/MGalleryIllustration.d.ts +2 -0
  693. package/dist/illustrations/scenes/MI18nIllustration.d.ts +2 -0
  694. package/dist/illustrations/scenes/MIconsIllustration.d.ts +2 -0
  695. package/dist/illustrations/scenes/MMailIllustration.d.ts +2 -0
  696. package/dist/illustrations/scenes/MMasonryIllustration.d.ts +2 -0
  697. package/dist/illustrations/scenes/MNavbarIllustration.d.ts +2 -0
  698. package/dist/illustrations/scenes/MNotFoundIllustration.d.ts +2 -0
  699. package/dist/illustrations/scenes/MNotificationsIllustration.d.ts +2 -0
  700. package/dist/illustrations/scenes/MOnboardingIllustration.d.ts +2 -0
  701. package/dist/illustrations/scenes/MQrCodeIllustration.d.ts +2 -0
  702. package/dist/illustrations/scenes/MSearchIllustration.d.ts +2 -0
  703. package/dist/illustrations/scenes/MSecurityIllustration.d.ts +2 -0
  704. package/dist/illustrations/scenes/MSettingsIllustration.d.ts +2 -0
  705. package/dist/illustrations/scenes/MShowcaseIllustration.d.ts +2 -0
  706. package/dist/illustrations/scenes/MSidebarIllustration.d.ts +2 -0
  707. package/dist/illustrations/scenes/MSuccessIllustration.d.ts +2 -0
  708. package/dist/illustrations/scenes/MTaskListIllustration.d.ts +2 -0
  709. package/dist/illustrations/scenes/MTeamIllustration.d.ts +2 -0
  710. package/dist/illustrations/scenes/MTimeAgoIllustration.d.ts +2 -0
  711. package/dist/illustrations/scenes/MTopbarIllustration.d.ts +2 -0
  712. package/dist/illustrations/scenes/MUploadIllustration.d.ts +2 -0
  713. package/dist/illustrations/scenes/MWalletIllustration.d.ts +2 -0
  714. package/dist/illustrations.cjs +3 -0
  715. package/dist/illustrations.d.ts +2 -0
  716. package/dist/illustrations.entry-CaBqXBpd.js +4759 -0
  717. package/dist/illustrations.entry-CaBqXBpd.js.map +1 -0
  718. package/dist/illustrations.entry-D5StzALw.cjs +2 -0
  719. package/dist/illustrations.entry-D5StzALw.cjs.map +1 -0
  720. package/dist/illustrations.entry.d.ts +1 -0
  721. package/dist/illustrations.js +4 -0
  722. package/dist/index.cjs +1 -1
  723. package/dist/index.d.ts +24 -165
  724. package/dist/index.js +64 -62
  725. package/dist/inputs-6TRTzH12.cjs +2 -0
  726. package/dist/inputs-6TRTzH12.cjs.map +1 -0
  727. package/dist/inputs-Bd_5Xg49.js +1553 -0
  728. package/dist/inputs-Bd_5Xg49.js.map +1 -0
  729. package/dist/inputs.cjs +1 -1
  730. package/dist/inputs.d.ts +0 -2
  731. package/dist/inputs.js +4 -3
  732. package/dist/layout-DgxSN0QV.js +698 -0
  733. package/dist/layout-DgxSN0QV.js.map +1 -0
  734. package/dist/layout-DsxgXjK_.cjs +2 -0
  735. package/dist/layout-DsxgXjK_.cjs.map +1 -0
  736. package/dist/layout.cjs +1 -1
  737. package/dist/layout.d.ts +0 -2
  738. package/dist/layout.js +5 -5
  739. package/dist/layoutProps-CAv0VWdN.cjs +2 -0
  740. package/dist/layoutProps-CAv0VWdN.cjs.map +1 -0
  741. package/dist/layoutProps-D8exMwKp.js +28 -0
  742. package/dist/layoutProps-D8exMwKp.js.map +1 -0
  743. package/dist/licensing-C80xLz-j.cjs +2 -0
  744. package/dist/licensing-C80xLz-j.cjs.map +1 -0
  745. package/dist/licensing-DsWLXZiM.js +28 -0
  746. package/dist/licensing-DsWLXZiM.js.map +1 -0
  747. package/dist/locale-BJucQij_.js +32 -0
  748. package/dist/locale-BJucQij_.js.map +1 -0
  749. package/dist/locale-CjYHLr1l.cjs +2 -0
  750. package/dist/locale-CjYHLr1l.cjs.map +1 -0
  751. package/dist/media-V8oypokY.js +171 -0
  752. package/dist/media-V8oypokY.js.map +1 -0
  753. package/dist/media-uvYa5r3D.cjs +2 -0
  754. package/dist/media-uvYa5r3D.cjs.map +1 -0
  755. package/dist/media.cjs +1 -1
  756. package/dist/media.d.ts +0 -2
  757. package/dist/media.js +3 -3
  758. package/dist/overlays-BjO2sRrU.cjs +2 -0
  759. package/dist/overlays-BjO2sRrU.cjs.map +1 -0
  760. package/dist/overlays-DnMM32yB.js +360 -0
  761. package/dist/overlays-DnMM32yB.js.map +1 -0
  762. package/dist/overlays.cjs +1 -1
  763. package/dist/overlays.d.ts +0 -2
  764. package/dist/overlays.js +4 -4
  765. package/dist/primitives.cjs +1 -1
  766. package/dist/primitives.d.ts +0 -2
  767. package/dist/primitives.js +3 -3
  768. package/dist/relativeTime-FdokPH7W.js +91 -0
  769. package/dist/relativeTime-FdokPH7W.js.map +1 -0
  770. package/dist/relativeTime-oubkDkrk.cjs +2 -0
  771. package/dist/relativeTime-oubkDkrk.cjs.map +1 -0
  772. package/dist/style-runtime.cjs +1 -1
  773. package/dist/style-runtime.js +1 -1
  774. package/dist/styles.css +1 -1
  775. package/dist/theme/MTheme.types.d.ts +49 -0
  776. package/dist/theme/MThemeProvider.d.ts +19 -0
  777. package/dist/theme/index.d.ts +3 -3
  778. package/dist/theme.cjs +1 -1
  779. package/dist/theme.js +2 -2
  780. package/dist/typography-Bcn3mZPw.js +63 -0
  781. package/dist/typography-Bcn3mZPw.js.map +1 -0
  782. package/dist/typography-Cy_-zrZI.cjs +2 -0
  783. package/dist/typography-Cy_-zrZI.cjs.map +1 -0
  784. package/dist/typography.cjs +1 -1
  785. package/dist/typography.d.ts +0 -2
  786. package/dist/typography.js +4 -5
  787. package/dist/useGhostText-BpSSyl8G.js +68 -0
  788. package/dist/useGhostText-BpSSyl8G.js.map +1 -0
  789. package/dist/useGhostText-BrRYBrV_.cjs +2 -0
  790. package/dist/useGhostText-BrRYBrV_.cjs.map +1 -0
  791. package/dist/useInteractionEffect-B5_UpgTt.js.map +1 -1
  792. package/dist/useInteractionEffect-BaJeiUns.cjs.map +1 -1
  793. package/dist/useReveal-BB9OaMDU.js +23 -0
  794. package/dist/useReveal-BB9OaMDU.js.map +1 -0
  795. package/dist/useReveal-D1YuWN9z.cjs +2 -0
  796. package/dist/useReveal-D1YuWN9z.cjs.map +1 -0
  797. package/dist/utils/appearanceProps.d.ts +3 -4
  798. package/dist/utils/colorRgbVar.d.ts +1 -0
  799. package/dist/utils/dateUtils.d.ts +11 -0
  800. package/dist/utils/formatters.d.ts +1 -0
  801. package/dist/utils/layoutProps.d.ts +16 -18
  802. package/dist/utils/licensing.d.ts +11 -0
  803. package/dist/utils/locale.d.ts +0 -11
  804. package/dist/utils/overlayBadge.d.ts +10 -0
  805. package/dist/utils/socialPlatforms.d.ts +7 -0
  806. package/dist/utils/useInteractionEffect.d.ts +2 -2
  807. package/dist/utils/validators.d.ts +8 -0
  808. package/dist/utils.cjs +1 -1
  809. package/dist/utils.entry.d.ts +10 -6
  810. package/dist/utils.js +12 -12
  811. package/dist/validators-CA-TznrL.cjs +2 -0
  812. package/dist/validators-CA-TznrL.cjs.map +1 -0
  813. package/dist/validators-CAahqOcq.js +393 -0
  814. package/dist/validators-CAahqOcq.js.map +1 -0
  815. package/package.json +20 -15
  816. package/dist/AmericanExpressIcon-Bpk-Yz4y.js +0 -1794
  817. package/dist/AmericanExpressIcon-Bpk-Yz4y.js.map +0 -1
  818. package/dist/AmericanExpressIcon-Duhw7WXn.cjs +0 -2
  819. package/dist/AmericanExpressIcon-Duhw7WXn.cjs.map +0 -1
  820. package/dist/AppShell-BGFVRml6.js +0 -659
  821. package/dist/AppShell-BGFVRml6.js.map +0 -1
  822. package/dist/AppShell-ButYSI7U.cjs +0 -2
  823. package/dist/AppShell-ButYSI7U.cjs.map +0 -1
  824. package/dist/ArrowDownIcon-DzDirevG.js +0 -21
  825. package/dist/ArrowDownIcon-DzDirevG.js.map +0 -1
  826. package/dist/ArrowDownIcon-EfyFLBHR.cjs +0 -2
  827. package/dist/ArrowDownIcon-EfyFLBHR.cjs.map +0 -1
  828. package/dist/Avatar-Ba4TdSXp.cjs +0 -2
  829. package/dist/Avatar-Ba4TdSXp.cjs.map +0 -1
  830. package/dist/Avatar-BzokUdR4.js +0 -50
  831. package/dist/Avatar-BzokUdR4.js.map +0 -1
  832. package/dist/Badge-BF8-zXDl.js +0 -15
  833. package/dist/Badge-BF8-zXDl.js.map +0 -1
  834. package/dist/Badge-CivRCrzY.cjs +0 -2
  835. package/dist/Badge-CivRCrzY.cjs.map +0 -1
  836. package/dist/BrandMoreIcons-Cb4cXa_M.cjs +0 -2
  837. package/dist/BrandMoreIcons-Cb4cXa_M.cjs.map +0 -1
  838. package/dist/BrandMoreIcons-DnusZA-G.js +0 -825
  839. package/dist/BrandMoreIcons-DnusZA-G.js.map +0 -1
  840. package/dist/Button-BUd8Dkdx.cjs +0 -2
  841. package/dist/Button-BUd8Dkdx.cjs.map +0 -1
  842. package/dist/Button-BnxXh7zp.js +0 -52
  843. package/dist/Button-BnxXh7zp.js.map +0 -1
  844. package/dist/CalendarBoard-DidNBym4.js +0 -998
  845. package/dist/CalendarBoard-DidNBym4.js.map +0 -1
  846. package/dist/CalendarBoard-DvGimf8K.cjs +0 -2
  847. package/dist/CalendarBoard-DvGimf8K.cjs.map +0 -1
  848. package/dist/CalendarIcon-D74I9hJl.cjs +0 -2
  849. package/dist/CalendarIcon-D74I9hJl.cjs.map +0 -1
  850. package/dist/CalendarIcon-gvWV3ioD.js +0 -29
  851. package/dist/CalendarIcon-gvWV3ioD.js.map +0 -1
  852. package/dist/Card-AbIdSFmm.cjs +0 -2
  853. package/dist/Card-AbIdSFmm.cjs.map +0 -1
  854. package/dist/Card-B_4TR7gc.js +0 -55
  855. package/dist/Card-B_4TR7gc.js.map +0 -1
  856. package/dist/CardGrid-Dvu64wUg.cjs +0 -2
  857. package/dist/CardGrid-Dvu64wUg.cjs.map +0 -1
  858. package/dist/CardGrid-mHLkd1pL.js +0 -581
  859. package/dist/CardGrid-mHLkd1pL.js.map +0 -1
  860. package/dist/Checkbox-B4t7uzS2.js +0 -60
  861. package/dist/Checkbox-B4t7uzS2.js.map +0 -1
  862. package/dist/Checkbox-BXetIDRT.cjs +0 -2
  863. package/dist/Checkbox-BXetIDRT.cjs.map +0 -1
  864. package/dist/ChevronDownIcon-BDiyHPT4.js +0 -15
  865. package/dist/ChevronDownIcon-BDiyHPT4.js.map +0 -1
  866. package/dist/ChevronDownIcon-CkT_O5e5.cjs +0 -2
  867. package/dist/ChevronDownIcon-CkT_O5e5.cjs.map +0 -1
  868. package/dist/ChevronLeftIcon-DVwatRi0.cjs +0 -2
  869. package/dist/ChevronLeftIcon-DVwatRi0.cjs.map +0 -1
  870. package/dist/ChevronLeftIcon-lTktpFVi.js +0 -15
  871. package/dist/ChevronLeftIcon-lTktpFVi.js.map +0 -1
  872. package/dist/ChevronRightIcon-1oaUsxM2.js +0 -15
  873. package/dist/ChevronRightIcon-1oaUsxM2.js.map +0 -1
  874. package/dist/ChevronRightIcon-Bxqjb5s0.cjs +0 -2
  875. package/dist/ChevronRightIcon-Bxqjb5s0.cjs.map +0 -1
  876. package/dist/ClockIcon-CTHDAJUU.js +0 -19
  877. package/dist/ClockIcon-CTHDAJUU.js.map +0 -1
  878. package/dist/ClockIcon-DeDZlnTQ.cjs +0 -2
  879. package/dist/ClockIcon-DeDZlnTQ.cjs.map +0 -1
  880. package/dist/CloseIcon-5btDsUxB.cjs +0 -2
  881. package/dist/CloseIcon-5btDsUxB.cjs.map +0 -1
  882. package/dist/CloseIcon-DGl8CDLK.js +0 -15
  883. package/dist/CloseIcon-DGl8CDLK.js.map +0 -1
  884. package/dist/ColorPicker-BqE5PvW5.js +0 -457
  885. package/dist/ColorPicker-BqE5PvW5.js.map +0 -1
  886. package/dist/ColorPicker-DlrPaM8W.cjs +0 -2
  887. package/dist/ColorPicker-DlrPaM8W.cjs.map +0 -1
  888. package/dist/DropdownMenu-Bf1l4spO.js +0 -139
  889. package/dist/DropdownMenu-Bf1l4spO.js.map +0 -1
  890. package/dist/DropdownMenu-CvUG4QEC.cjs +0 -2
  891. package/dist/DropdownMenu-CvUG4QEC.cjs.map +0 -1
  892. package/dist/FileExtIcons-BecWBncW.js +0 -145
  893. package/dist/FileExtIcons-BecWBncW.js.map +0 -1
  894. package/dist/FileExtIcons-FTFddWmg.cjs +0 -2
  895. package/dist/FileExtIcons-FTFddWmg.cjs.map +0 -1
  896. package/dist/FolderOpenIcon-BAxBjkbK.js +0 -31
  897. package/dist/FolderOpenIcon-BAxBjkbK.js.map +0 -1
  898. package/dist/FolderOpenIcon-D2fsAXLM.cjs +0 -2
  899. package/dist/FolderOpenIcon-D2fsAXLM.cjs.map +0 -1
  900. package/dist/Heading-CALsycVL.cjs +0 -2
  901. package/dist/Heading-CALsycVL.cjs.map +0 -1
  902. package/dist/Heading-DtcgehrI.js +0 -17
  903. package/dist/Heading-DtcgehrI.js.map +0 -1
  904. package/dist/I18nProvider-CAnFu85r.js +0 -69
  905. package/dist/I18nProvider-CAnFu85r.js.map +0 -1
  906. package/dist/I18nProvider-CiYjTmgv.cjs +0 -2
  907. package/dist/I18nProvider-CiYjTmgv.cjs.map +0 -1
  908. package/dist/Icon-B-s6VJr5.cjs +0 -2
  909. package/dist/Icon-B-s6VJr5.cjs.map +0 -1
  910. package/dist/Icon-B848Vysm.js +0 -45
  911. package/dist/Icon-B848Vysm.js.map +0 -1
  912. package/dist/InputFile-C6Y-y8CQ.cjs +0 -2
  913. package/dist/InputFile-C6Y-y8CQ.cjs.map +0 -1
  914. package/dist/InputFile-DicC8Tbv.js +0 -1356
  915. package/dist/InputFile-DicC8Tbv.js.map +0 -1
  916. package/dist/InputSearch-BO_j0nAW.js +0 -218
  917. package/dist/InputSearch-BO_j0nAW.js.map +0 -1
  918. package/dist/InputSearch-Bk5YFz09.cjs +0 -2
  919. package/dist/InputSearch-Bk5YFz09.cjs.map +0 -1
  920. package/dist/Kbd-qcCkiDkW.js +0 -55
  921. package/dist/Kbd-qcCkiDkW.js.map +0 -1
  922. package/dist/Kbd-wmU-rhWO.cjs +0 -2
  923. package/dist/Kbd-wmU-rhWO.cjs.map +0 -1
  924. package/dist/Link-D3lmTu3R.js +0 -30
  925. package/dist/Link-D3lmTu3R.js.map +0 -1
  926. package/dist/Link-DSIStgFG.cjs +0 -2
  927. package/dist/Link-DSIStgFG.cjs.map +0 -1
  928. package/dist/MPagination-C-Ff4orL.js +0 -103
  929. package/dist/MPagination-C-Ff4orL.js.map +0 -1
  930. package/dist/MPagination-CVy14D9v.cjs +0 -2
  931. package/dist/MPagination-CVy14D9v.cjs.map +0 -1
  932. package/dist/MasonryItem-BsD5OuYt.js +0 -368
  933. package/dist/MasonryItem-BsD5OuYt.js.map +0 -1
  934. package/dist/MasonryItem-CBxzCuRr.cjs +0 -2
  935. package/dist/MasonryItem-CBxzCuRr.cjs.map +0 -1
  936. package/dist/MenuIcon-mX5bSTAp.js +0 -20
  937. package/dist/MenuIcon-mX5bSTAp.js.map +0 -1
  938. package/dist/MenuIcon-x1LjLPWp.cjs +0 -2
  939. package/dist/MenuIcon-x1LjLPWp.cjs.map +0 -1
  940. package/dist/Modal-BDDrW5HI.js +0 -56
  941. package/dist/Modal-BDDrW5HI.js.map +0 -1
  942. package/dist/Modal-DrtVZtb1.cjs +0 -2
  943. package/dist/Modal-DrtVZtb1.cjs.map +0 -1
  944. package/dist/NeutralIcon-BPZ3coWv.js +0 -67
  945. package/dist/NeutralIcon-BPZ3coWv.js.map +0 -1
  946. package/dist/NeutralIcon-CScIXs8_.cjs +0 -2
  947. package/dist/NeutralIcon-CScIXs8_.cjs.map +0 -1
  948. package/dist/PhoneIcon-CPGZ1D2-.cjs +0 -2
  949. package/dist/PhoneIcon-CPGZ1D2-.cjs.map +0 -1
  950. package/dist/PhoneIcon-DXlB7Uz0.js +0 -38
  951. package/dist/PhoneIcon-DXlB7Uz0.js.map +0 -1
  952. package/dist/Popconfirm-BJtyFjdY.js +0 -200
  953. package/dist/Popconfirm-BJtyFjdY.js.map +0 -1
  954. package/dist/Popconfirm-DQqBq_OP.cjs +0 -2
  955. package/dist/Popconfirm-DQqBq_OP.cjs.map +0 -1
  956. package/dist/Popover-BLYlu0jf.js +0 -95
  957. package/dist/Popover-BLYlu0jf.js.map +0 -1
  958. package/dist/Popover-BfCYHGUU.cjs +0 -2
  959. package/dist/Popover-BfCYHGUU.cjs.map +0 -1
  960. package/dist/Portal-CeUZ2xET.cjs +0 -2
  961. package/dist/Portal-CeUZ2xET.cjs.map +0 -1
  962. package/dist/Portal-s54PuE_l.js +0 -10
  963. package/dist/Portal-s54PuE_l.js.map +0 -1
  964. package/dist/QrCode-CP1sYiXF.js +0 -371
  965. package/dist/QrCode-CP1sYiXF.js.map +0 -1
  966. package/dist/QrCode-scUXUrNj.cjs +0 -2
  967. package/dist/QrCode-scUXUrNj.cjs.map +0 -1
  968. package/dist/SearchIcon-DDahNpBX.js +0 -24
  969. package/dist/SearchIcon-DDahNpBX.js.map +0 -1
  970. package/dist/SearchIcon-DeKs76RI.cjs +0 -2
  971. package/dist/SearchIcon-DeKs76RI.cjs.map +0 -1
  972. package/dist/Slider-BgHTWUXS.cjs +0 -2
  973. package/dist/Slider-BgHTWUXS.cjs.map +0 -1
  974. package/dist/Slider-BvnJPPAf.js +0 -75
  975. package/dist/Slider-BvnJPPAf.js.map +0 -1
  976. package/dist/Stack-DzFHpLMS.cjs +0 -2
  977. package/dist/Stack-DzFHpLMS.cjs.map +0 -1
  978. package/dist/Stack-xUXSOKqN.js +0 -40
  979. package/dist/Stack-xUXSOKqN.js.map +0 -1
  980. package/dist/StarFillIcon-D4HEOD6y.cjs +0 -2
  981. package/dist/StarFillIcon-D4HEOD6y.cjs.map +0 -1
  982. package/dist/StarFillIcon-tMWVk8tT.js +0 -25
  983. package/dist/StarFillIcon-tMWVk8tT.js.map +0 -1
  984. package/dist/Surface-BVk3r7ws.cjs +0 -2
  985. package/dist/Surface-BVk3r7ws.cjs.map +0 -1
  986. package/dist/Surface-E8hELelv.js +0 -40
  987. package/dist/Surface-E8hELelv.js.map +0 -1
  988. package/dist/Text-DOVuH0uw.js +0 -39
  989. package/dist/Text-DOVuH0uw.js.map +0 -1
  990. package/dist/Text-DUuY1RDL.cjs +0 -2
  991. package/dist/Text-DUuY1RDL.cjs.map +0 -1
  992. package/dist/ThemeProvider-CCWDIXiA.cjs +0 -2
  993. package/dist/ThemeProvider-CCWDIXiA.cjs.map +0 -1
  994. package/dist/ThemeProvider-COEImCNH.js +0 -132
  995. package/dist/ThemeProvider-COEImCNH.js.map +0 -1
  996. package/dist/TimePicker-BXbuLCDX.js +0 -1204
  997. package/dist/TimePicker-BXbuLCDX.js.map +0 -1
  998. package/dist/TimePicker-DDhkqier.cjs +0 -2
  999. package/dist/TimePicker-DDhkqier.cjs.map +0 -1
  1000. package/dist/ToastProvider-DRz62qKU.cjs +0 -2
  1001. package/dist/ToastProvider-DRz62qKU.cjs.map +0 -1
  1002. package/dist/ToastProvider-Dlgk48v1.js +0 -234
  1003. package/dist/ToastProvider-Dlgk48v1.js.map +0 -1
  1004. package/dist/Toggle-BACN6Wrk.cjs +0 -2
  1005. package/dist/Toggle-BACN6Wrk.cjs.map +0 -1
  1006. package/dist/Toggle-D9M7aDWh.js +0 -140
  1007. package/dist/Toggle-D9M7aDWh.js.map +0 -1
  1008. package/dist/ZoomInIcon-CtoKX0Ri.cjs +0 -2
  1009. package/dist/ZoomInIcon-CtoKX0Ri.cjs.map +0 -1
  1010. package/dist/ZoomInIcon-UNvzc9zU.js +0 -113
  1011. package/dist/ZoomInIcon-UNvzc9zU.js.map +0 -1
  1012. package/dist/appearanceProps-65LbXIeI.cjs +0 -2
  1013. package/dist/appearanceProps-65LbXIeI.cjs.map +0 -1
  1014. package/dist/appearanceProps-8tN47e1u.js +0 -8
  1015. package/dist/appearanceProps-8tN47e1u.js.map +0 -1
  1016. package/dist/cn-BIeeqGZv.js +0 -8
  1017. package/dist/cn-BIeeqGZv.js.map +0 -1
  1018. package/dist/cn-BOmEz3Rt.cjs +0 -2
  1019. package/dist/cn-BOmEz3Rt.cjs.map +0 -1
  1020. package/dist/components/cards/Card/Card.d.ts +0 -5
  1021. package/dist/components/cards/Card/Card.types.d.ts +0 -16
  1022. package/dist/components/cards/Card/index.d.ts +0 -2
  1023. package/dist/components/cards/CardBusiness/CardBusiness.d.ts +0 -2
  1024. package/dist/components/cards/CardBusiness/CardBusiness.types.d.ts +0 -33
  1025. package/dist/components/cards/CardBusiness/index.d.ts +0 -2
  1026. package/dist/components/cards/CardGrid/CardGrid.d.ts +0 -2
  1027. package/dist/components/cards/CardGrid/CardGrid.types.d.ts +0 -27
  1028. package/dist/components/cards/CardGrid/index.d.ts +0 -2
  1029. package/dist/components/cards/CardPayment/CardPayment.d.ts +0 -2
  1030. package/dist/components/cards/CardPayment/CardPayment.types.d.ts +0 -13
  1031. package/dist/components/cards/CardPayment/index.d.ts +0 -2
  1032. package/dist/components/cards/CardService/CardService.d.ts +0 -2
  1033. package/dist/components/cards/CardService/CardService.types.d.ts +0 -37
  1034. package/dist/components/cards/CardService/index.d.ts +0 -2
  1035. package/dist/components/controls/Button/Button.d.ts +0 -2
  1036. package/dist/components/controls/Button/Button.types.d.ts +0 -22
  1037. package/dist/components/controls/Button/index.d.ts +0 -2
  1038. package/dist/components/controls/Checkbox/Checkbox.d.ts +0 -3
  1039. package/dist/components/controls/Checkbox/Checkbox.types.d.ts +0 -24
  1040. package/dist/components/controls/Checkbox/index.d.ts +0 -2
  1041. package/dist/components/controls/Radio/Radio.d.ts +0 -3
  1042. package/dist/components/controls/Radio/Radio.types.d.ts +0 -47
  1043. package/dist/components/controls/Radio/RadioContext.d.ts +0 -3
  1044. package/dist/components/controls/Radio/RadioGroup.d.ts +0 -2
  1045. package/dist/components/controls/Radio/index.d.ts +0 -3
  1046. package/dist/components/controls/Slider/Slider.d.ts +0 -2
  1047. package/dist/components/controls/Slider/Slider.types.d.ts +0 -17
  1048. package/dist/components/controls/Slider/index.d.ts +0 -2
  1049. package/dist/components/controls/Toggle/Toggle.d.ts +0 -2
  1050. package/dist/components/controls/Toggle/Toggle.types.d.ts +0 -20
  1051. package/dist/components/controls/Toggle/index.d.ts +0 -2
  1052. package/dist/components/data/CalendarBoard/CalendarBoard.d.ts +0 -7
  1053. package/dist/components/data/CalendarBoard/CalendarBoard.types.d.ts +0 -117
  1054. package/dist/components/data/CalendarBoard/index.d.ts +0 -2
  1055. package/dist/components/data/DataTable/DataTable.d.ts +0 -2
  1056. package/dist/components/data/DataTable/DataTable.types.d.ts +0 -34
  1057. package/dist/components/data/DataTable/index.d.ts +0 -2
  1058. package/dist/components/data/TaskList/TaskList.d.ts +0 -2
  1059. package/dist/components/data/TaskList/TaskList.types.d.ts +0 -14
  1060. package/dist/components/data/TaskList/index.d.ts +0 -2
  1061. package/dist/components/data/TreeView/TreeView.d.ts +0 -2
  1062. package/dist/components/data/TreeView/TreeView.types.d.ts +0 -63
  1063. package/dist/components/data/TreeView/index.d.ts +0 -2
  1064. package/dist/components/display/Accordion/Accordion.d.ts +0 -3
  1065. package/dist/components/display/Accordion/Accordion.types.d.ts +0 -16
  1066. package/dist/components/display/Accordion/index.d.ts +0 -2
  1067. package/dist/components/display/Collapsible/Collapsible.d.ts +0 -2
  1068. package/dist/components/display/Collapsible/Collapsible.types.d.ts +0 -10
  1069. package/dist/components/display/Collapsible/index.d.ts +0 -2
  1070. package/dist/components/display/ColorPicker/ColorPicker.d.ts +0 -2
  1071. package/dist/components/display/ColorPicker/ColorPicker.types.d.ts +0 -11
  1072. package/dist/components/display/ColorPicker/index.d.ts +0 -2
  1073. package/dist/components/display/CountUp/CountUp.d.ts +0 -2
  1074. package/dist/components/display/CountUp/CountUp.types.d.ts +0 -10
  1075. package/dist/components/display/CountUp/index.d.ts +0 -2
  1076. package/dist/components/display/ProgressBar/ProgressBar.d.ts +0 -2
  1077. package/dist/components/display/ProgressBar/ProgressBar.types.d.ts +0 -12
  1078. package/dist/components/display/ProgressBar/index.d.ts +0 -2
  1079. package/dist/components/display/QrCode/QrCode.d.ts +0 -2
  1080. package/dist/components/display/QrCode/QrCode.types.d.ts +0 -8
  1081. package/dist/components/display/QrCode/index.d.ts +0 -2
  1082. package/dist/components/display/Rating/Rating.d.ts +0 -2
  1083. package/dist/components/display/Rating/Rating.types.d.ts +0 -10
  1084. package/dist/components/display/Rating/index.d.ts +0 -2
  1085. package/dist/components/display/TimeAgo/TimeAgo.d.ts +0 -2
  1086. package/dist/components/display/TimeAgo/TimeAgo.types.d.ts +0 -11
  1087. package/dist/components/display/TimeAgo/index.d.ts +0 -2
  1088. package/dist/components/dropdowns/Autocomplete/Autocomplete.d.ts +0 -2
  1089. package/dist/components/dropdowns/Autocomplete/Autocomplete.types.d.ts +0 -38
  1090. package/dist/components/dropdowns/Autocomplete/index.d.ts +0 -2
  1091. package/dist/components/dropdowns/DatePicker/DatePicker.d.ts +0 -2
  1092. package/dist/components/dropdowns/DatePicker/DatePicker.types.d.ts +0 -33
  1093. package/dist/components/dropdowns/DatePicker/index.d.ts +0 -2
  1094. package/dist/components/dropdowns/DateRangePicker/DateRangePicker.d.ts +0 -2
  1095. package/dist/components/dropdowns/DateRangePicker/DateRangePicker.types.d.ts +0 -50
  1096. package/dist/components/dropdowns/DateRangePicker/index.d.ts +0 -2
  1097. package/dist/components/dropdowns/Select/Select.d.ts +0 -2
  1098. package/dist/components/dropdowns/Select/Select.types.d.ts +0 -39
  1099. package/dist/components/dropdowns/Select/index.d.ts +0 -2
  1100. package/dist/components/dropdowns/TimePicker/TimePicker.d.ts +0 -2
  1101. package/dist/components/dropdowns/TimePicker/TimePicker.types.d.ts +0 -30
  1102. package/dist/components/dropdowns/TimePicker/index.d.ts +0 -2
  1103. package/dist/components/feedback/Alert/Alert.d.ts +0 -2
  1104. package/dist/components/feedback/Alert/Alert.types.d.ts +0 -9
  1105. package/dist/components/feedback/Alert/index.d.ts +0 -2
  1106. package/dist/components/feedback/Badge/Badge.d.ts +0 -2
  1107. package/dist/components/feedback/Badge/Badge.types.d.ts +0 -9
  1108. package/dist/components/feedback/Badge/index.d.ts +0 -2
  1109. package/dist/components/feedback/Banner/Banner.d.ts +0 -2
  1110. package/dist/components/feedback/Banner/Banner.types.d.ts +0 -12
  1111. package/dist/components/feedback/Banner/index.d.ts +0 -2
  1112. package/dist/components/feedback/Loader/Loader.d.ts +0 -2
  1113. package/dist/components/feedback/Loader/Loader.types.d.ts +0 -9
  1114. package/dist/components/feedback/Loader/index.d.ts +0 -2
  1115. package/dist/components/feedback/Spinner/Spinner.d.ts +0 -2
  1116. package/dist/components/feedback/Spinner/Spinner.types.d.ts +0 -7
  1117. package/dist/components/feedback/Spinner/index.d.ts +0 -2
  1118. package/dist/components/feedback/Tag/Tag.d.ts +0 -2
  1119. package/dist/components/feedback/Tag/Tag.types.d.ts +0 -12
  1120. package/dist/components/feedback/Tag/index.d.ts +0 -2
  1121. package/dist/components/feedback/Toast/Toast.types.d.ts +0 -27
  1122. package/dist/components/feedback/Toast/ToastContext.d.ts +0 -3
  1123. package/dist/components/feedback/Toast/ToastItem.d.ts +0 -5
  1124. package/dist/components/feedback/Toast/ToastProvider.d.ts +0 -4
  1125. package/dist/components/feedback/Toast/index.d.ts +0 -3
  1126. package/dist/components/form/Form/Form.d.ts +0 -2
  1127. package/dist/components/form/Form/Form.types.d.ts +0 -42
  1128. package/dist/components/form/Form/FormContext.d.ts +0 -3
  1129. package/dist/components/form/Form/index.d.ts +0 -5
  1130. package/dist/components/form/Form/useFormField.d.ts +0 -13
  1131. package/dist/components/inputs/Input/Input.d.ts +0 -3
  1132. package/dist/components/inputs/Input/Input.types.d.ts +0 -49
  1133. package/dist/components/inputs/Input/index.d.ts +0 -2
  1134. package/dist/components/inputs/InputCreditCard/InputCreditCard.d.ts +0 -3
  1135. package/dist/components/inputs/InputCreditCard/InputCreditCard.types.d.ts +0 -12
  1136. package/dist/components/inputs/InputCreditCard/index.d.ts +0 -2
  1137. package/dist/components/inputs/InputCurrency/InputCurrency.d.ts +0 -3
  1138. package/dist/components/inputs/InputCurrency/InputCurrency.types.d.ts +0 -13
  1139. package/dist/components/inputs/InputCurrency/index.d.ts +0 -2
  1140. package/dist/components/inputs/InputEmail/InputEmail.d.ts +0 -3
  1141. package/dist/components/inputs/InputEmail/InputEmail.types.d.ts +0 -8
  1142. package/dist/components/inputs/InputEmail/index.d.ts +0 -2
  1143. package/dist/components/inputs/InputFile/CropEditor.d.ts +0 -11
  1144. package/dist/components/inputs/InputFile/InputFile.d.ts +0 -3
  1145. package/dist/components/inputs/InputFile/InputFile.types.d.ts +0 -29
  1146. package/dist/components/inputs/InputFile/index.d.ts +0 -2
  1147. package/dist/components/inputs/InputGroup/InputGroup.d.ts +0 -3
  1148. package/dist/components/inputs/InputGroup/InputGroup.types.d.ts +0 -14
  1149. package/dist/components/inputs/InputGroup/index.d.ts +0 -2
  1150. package/dist/components/inputs/InputIBAN/InputIBAN.d.ts +0 -3
  1151. package/dist/components/inputs/InputIBAN/InputIBAN.types.d.ts +0 -10
  1152. package/dist/components/inputs/InputIBAN/index.d.ts +0 -2
  1153. package/dist/components/inputs/InputName/InputName.d.ts +0 -3
  1154. package/dist/components/inputs/InputName/InputName.types.d.ts +0 -10
  1155. package/dist/components/inputs/InputName/index.d.ts +0 -2
  1156. package/dist/components/inputs/InputNumber/InputNumber.d.ts +0 -3
  1157. package/dist/components/inputs/InputNumber/InputNumber.types.d.ts +0 -10
  1158. package/dist/components/inputs/InputNumber/index.d.ts +0 -2
  1159. package/dist/components/inputs/InputOTP/InputOTP.d.ts +0 -3
  1160. package/dist/components/inputs/InputOTP/InputOTP.types.d.ts +0 -15
  1161. package/dist/components/inputs/InputOTP/index.d.ts +0 -2
  1162. package/dist/components/inputs/InputPassword/InputPassword.d.ts +0 -3
  1163. package/dist/components/inputs/InputPassword/InputPassword.types.d.ts +0 -7
  1164. package/dist/components/inputs/InputPassword/index.d.ts +0 -2
  1165. package/dist/components/inputs/InputPhone/InputPhone.d.ts +0 -3
  1166. package/dist/components/inputs/InputPhone/InputPhone.types.d.ts +0 -10
  1167. package/dist/components/inputs/InputPhone/index.d.ts +0 -2
  1168. package/dist/components/inputs/InputPostCode/InputPostCode.d.ts +0 -3
  1169. package/dist/components/inputs/InputPostCode/InputPostCode.types.d.ts +0 -12
  1170. package/dist/components/inputs/InputPostCode/index.d.ts +0 -2
  1171. package/dist/components/inputs/InputSearch/InputSearch.d.ts +0 -3
  1172. package/dist/components/inputs/InputSearch/InputSearch.types.d.ts +0 -5
  1173. package/dist/components/inputs/InputSearch/index.d.ts +0 -2
  1174. package/dist/components/inputs/InputSlider/InputSlider.d.ts +0 -3
  1175. package/dist/components/inputs/InputSlider/InputSlider.types.d.ts +0 -12
  1176. package/dist/components/inputs/InputSlider/index.d.ts +0 -2
  1177. package/dist/components/inputs/InputTaxId/InputTaxId.d.ts +0 -3
  1178. package/dist/components/inputs/InputTaxId/InputTaxId.types.d.ts +0 -11
  1179. package/dist/components/inputs/InputTaxId/index.d.ts +0 -2
  1180. package/dist/components/inputs/Textarea/Textarea.d.ts +0 -3
  1181. package/dist/components/inputs/Textarea/Textarea.types.d.ts +0 -41
  1182. package/dist/components/inputs/Textarea/index.d.ts +0 -2
  1183. package/dist/components/layout/AppShell/AppShell.d.ts +0 -4
  1184. package/dist/components/layout/AppShell/AppShell.types.d.ts +0 -7
  1185. package/dist/components/layout/AppShell/index.d.ts +0 -2
  1186. package/dist/components/layout/Container/Container.d.ts +0 -2
  1187. package/dist/components/layout/Container/Container.types.d.ts +0 -10
  1188. package/dist/components/layout/Container/index.d.ts +0 -2
  1189. package/dist/components/layout/Divider/Divider.d.ts +0 -2
  1190. package/dist/components/layout/Divider/Divider.types.d.ts +0 -9
  1191. package/dist/components/layout/Divider/index.d.ts +0 -2
  1192. package/dist/components/layout/Grid/Grid.d.ts +0 -2
  1193. package/dist/components/layout/Grid/Grid.types.d.ts +0 -10
  1194. package/dist/components/layout/Grid/index.d.ts +0 -2
  1195. package/dist/components/layout/Inline/Inline.d.ts +0 -2
  1196. package/dist/components/layout/Inline/Inline.types.d.ts +0 -15
  1197. package/dist/components/layout/Inline/index.d.ts +0 -2
  1198. package/dist/components/layout/MSubNav/MSubNav.d.ts +0 -2
  1199. package/dist/components/layout/MSubNav/MSubNav.types.d.ts +0 -14
  1200. package/dist/components/layout/MSubNav/index.d.ts +0 -2
  1201. package/dist/components/layout/Section/Section.d.ts +0 -2
  1202. package/dist/components/layout/Section/Section.types.d.ts +0 -13
  1203. package/dist/components/layout/Section/index.d.ts +0 -2
  1204. package/dist/components/layout/Stack/Stack.d.ts +0 -2
  1205. package/dist/components/layout/Stack/Stack.types.d.ts +0 -11
  1206. package/dist/components/layout/Stack/index.d.ts +0 -2
  1207. package/dist/components/layout/Surface/Surface.d.ts +0 -2
  1208. package/dist/components/layout/Surface/Surface.types.d.ts +0 -13
  1209. package/dist/components/layout/Surface/index.d.ts +0 -2
  1210. package/dist/components/media/Avatar/Avatar.d.ts +0 -2
  1211. package/dist/components/media/Avatar/Avatar.types.d.ts +0 -19
  1212. package/dist/components/media/Avatar/index.d.ts +0 -2
  1213. package/dist/components/media/Carousel/Carousel.d.ts +0 -2
  1214. package/dist/components/media/Carousel/Carousel.types.d.ts +0 -12
  1215. package/dist/components/media/Carousel/index.d.ts +0 -2
  1216. package/dist/components/media/Gallery/Gallery.d.ts +0 -2
  1217. package/dist/components/media/Gallery/Gallery.types.d.ts +0 -14
  1218. package/dist/components/media/Gallery/index.d.ts +0 -2
  1219. package/dist/components/media/Image/Image.d.ts +0 -2
  1220. package/dist/components/media/Image/Image.types.d.ts +0 -13
  1221. package/dist/components/media/Image/index.d.ts +0 -2
  1222. package/dist/components/media/Masonry/Masonry.d.ts +0 -2
  1223. package/dist/components/media/Masonry/Masonry.types.d.ts +0 -7
  1224. package/dist/components/media/Masonry/index.d.ts +0 -2
  1225. package/dist/components/media/MasonryItem/MasonryItem.d.ts +0 -3
  1226. package/dist/components/media/MasonryItem/MasonryItem.types.d.ts +0 -14
  1227. package/dist/components/media/MasonryItem/index.d.ts +0 -2
  1228. package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.d.ts +0 -2
  1229. package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.types.d.ts +0 -19
  1230. package/dist/components/media/ShowcaseCarousel/index.d.ts +0 -2
  1231. package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.d.ts +0 -3
  1232. package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.types.d.ts +0 -16
  1233. package/dist/components/media/ShowcaseCarouselItem/index.d.ts +0 -2
  1234. package/dist/components/overlays/Drawer/Drawer.d.ts +0 -5
  1235. package/dist/components/overlays/Drawer/Drawer.types.d.ts +0 -17
  1236. package/dist/components/overlays/Drawer/index.d.ts +0 -2
  1237. package/dist/components/overlays/DropdownMenu/DropdownMenu.d.ts +0 -9
  1238. package/dist/components/overlays/DropdownMenu/DropdownMenu.types.d.ts +0 -32
  1239. package/dist/components/overlays/DropdownMenu/index.d.ts +0 -2
  1240. package/dist/components/overlays/Modal/Modal.d.ts +0 -2
  1241. package/dist/components/overlays/Modal/Modal.types.d.ts +0 -12
  1242. package/dist/components/overlays/Modal/index.d.ts +0 -2
  1243. package/dist/components/overlays/Popconfirm/Popconfirm.d.ts +0 -2
  1244. package/dist/components/overlays/Popconfirm/Popconfirm.types.d.ts +0 -18
  1245. package/dist/components/overlays/Popconfirm/index.d.ts +0 -2
  1246. package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -2
  1247. package/dist/components/overlays/Tooltip/Tooltip.types.d.ts +0 -9
  1248. package/dist/components/overlays/Tooltip/index.d.ts +0 -2
  1249. package/dist/components/primitives/Popover/Popover.d.ts +0 -2
  1250. package/dist/components/primitives/Popover/Popover.types.d.ts +0 -14
  1251. package/dist/components/primitives/Popover/index.d.ts +0 -2
  1252. package/dist/components/primitives/Portal/Portal.d.ts +0 -2
  1253. package/dist/components/primitives/Portal/Portal.types.d.ts +0 -5
  1254. package/dist/components/primitives/Portal/index.d.ts +0 -2
  1255. package/dist/components/typography/Code/Code.d.ts +0 -2
  1256. package/dist/components/typography/Code/Code.types.d.ts +0 -7
  1257. package/dist/components/typography/Code/index.d.ts +0 -2
  1258. package/dist/components/typography/Heading/Heading.d.ts +0 -281
  1259. package/dist/components/typography/Heading/Heading.types.d.ts +0 -9
  1260. package/dist/components/typography/Heading/index.d.ts +0 -2
  1261. package/dist/components/typography/Kbd/Kbd.d.ts +0 -2
  1262. package/dist/components/typography/Kbd/Kbd.types.d.ts +0 -6
  1263. package/dist/components/typography/Kbd/index.d.ts +0 -2
  1264. package/dist/components/typography/Link/Link.d.ts +0 -2
  1265. package/dist/components/typography/Link/Link.types.d.ts +0 -15
  1266. package/dist/components/typography/Link/index.d.ts +0 -2
  1267. package/dist/components/typography/List/List.d.ts +0 -4
  1268. package/dist/components/typography/List/List.types.d.ts +0 -8
  1269. package/dist/components/typography/List/index.d.ts +0 -2
  1270. package/dist/components/typography/SubText/SubText.d.ts +0 -2
  1271. package/dist/components/typography/SubText/SubText.types.d.ts +0 -9
  1272. package/dist/components/typography/SubText/index.d.ts +0 -2
  1273. package/dist/components/typography/Text/Text.d.ts +0 -2
  1274. package/dist/components/typography/Text/Text.types.d.ts +0 -16
  1275. package/dist/components/typography/Text/index.d.ts +0 -2
  1276. package/dist/creditCards-CUM63Oia.cjs +0 -2
  1277. package/dist/creditCards-CUM63Oia.cjs.map +0 -1
  1278. package/dist/creditCards-pLOxJ6gs.js +0 -129
  1279. package/dist/creditCards-pLOxJ6gs.js.map +0 -1
  1280. package/dist/dateUtils-D3rghkxq.js +0 -67
  1281. package/dist/dateUtils-D3rghkxq.js.map +0 -1
  1282. package/dist/dateUtils-a8oMntCI.cjs +0 -2
  1283. package/dist/dateUtils-a8oMntCI.cjs.map +0 -1
  1284. package/dist/formatters-C3tjM3rj.cjs +0 -2
  1285. package/dist/formatters-C3tjM3rj.cjs.map +0 -1
  1286. package/dist/formatters-CtZdwLSU.js +0 -89
  1287. package/dist/formatters-CtZdwLSU.js.map +0 -1
  1288. package/dist/i18n/I18nProvider.d.ts +0 -18
  1289. package/dist/icons/Icon.d.ts +0 -2
  1290. package/dist/icons/Icon.types.d.ts +0 -8
  1291. package/dist/icons/glyphs/AmericanExpressIcon.d.ts +0 -3
  1292. package/dist/icons/glyphs/ArrowDownIcon.d.ts +0 -2
  1293. package/dist/icons/glyphs/ArrowLeftIcon.d.ts +0 -2
  1294. package/dist/icons/glyphs/ArrowRightIcon.d.ts +0 -2
  1295. package/dist/icons/glyphs/ArrowUpDownIcon.d.ts +0 -2
  1296. package/dist/icons/glyphs/ArrowUpIcon.d.ts +0 -2
  1297. package/dist/icons/glyphs/BankIcon.d.ts +0 -2
  1298. package/dist/icons/glyphs/BellIcon.d.ts +0 -2
  1299. package/dist/icons/glyphs/BoltIcon.d.ts +0 -2
  1300. package/dist/icons/glyphs/BoxIcon.d.ts +0 -2
  1301. package/dist/icons/glyphs/BrandIcons.d.ts +0 -21
  1302. package/dist/icons/glyphs/BrandMoreIcons.d.ts +0 -27
  1303. package/dist/icons/glyphs/BugIcon.d.ts +0 -2
  1304. package/dist/icons/glyphs/BuildingIcon.d.ts +0 -2
  1305. package/dist/icons/glyphs/CalendarIcon.d.ts +0 -2
  1306. package/dist/icons/glyphs/CameraIcon.d.ts +0 -2
  1307. package/dist/icons/glyphs/CartIcon.d.ts +0 -2
  1308. package/dist/icons/glyphs/ChartIcon.d.ts +0 -2
  1309. package/dist/icons/glyphs/ChatIcon.d.ts +0 -2
  1310. package/dist/icons/glyphs/ChatsIcon.d.ts +0 -2
  1311. package/dist/icons/glyphs/CheckCircleIcon.d.ts +0 -2
  1312. package/dist/icons/glyphs/CheckIcon.d.ts +0 -2
  1313. package/dist/icons/glyphs/ChevronDownIcon.d.ts +0 -2
  1314. package/dist/icons/glyphs/ChevronLeftIcon.d.ts +0 -2
  1315. package/dist/icons/glyphs/ChevronRightIcon.d.ts +0 -2
  1316. package/dist/icons/glyphs/ChevronUpIcon.d.ts +0 -2
  1317. package/dist/icons/glyphs/ClickIcon.d.ts +0 -2
  1318. package/dist/icons/glyphs/ClipboardIcon.d.ts +0 -2
  1319. package/dist/icons/glyphs/ClockIcon.d.ts +0 -2
  1320. package/dist/icons/glyphs/CloseIcon.d.ts +0 -2
  1321. package/dist/icons/glyphs/CommentIcon.d.ts +0 -2
  1322. package/dist/icons/glyphs/CopyIcon.d.ts +0 -2
  1323. package/dist/icons/glyphs/CopyrightIcon.d.ts +0 -2
  1324. package/dist/icons/glyphs/CreditCardIcon.d.ts +0 -2
  1325. package/dist/icons/glyphs/CubeIcon.d.ts +0 -2
  1326. package/dist/icons/glyphs/DashboardIcon.d.ts +0 -2
  1327. package/dist/icons/glyphs/DatabaseIcon.d.ts +0 -2
  1328. package/dist/icons/glyphs/DeviceMonitorIcon.d.ts +0 -2
  1329. package/dist/icons/glyphs/DevicePhoneIcon.d.ts +0 -2
  1330. package/dist/icons/glyphs/DeviceTabletIcon.d.ts +0 -2
  1331. package/dist/icons/glyphs/DocCopyIcon.d.ts +0 -2
  1332. package/dist/icons/glyphs/DocIcon.d.ts +0 -2
  1333. package/dist/icons/glyphs/DocPlusIcon.d.ts +0 -2
  1334. package/dist/icons/glyphs/DollarIcon.d.ts +0 -2
  1335. package/dist/icons/glyphs/DownloadIcon.d.ts +0 -2
  1336. package/dist/icons/glyphs/EditIcon.d.ts +0 -2
  1337. package/dist/icons/glyphs/EllipsisVerticalIcon.d.ts +0 -2
  1338. package/dist/icons/glyphs/ErrorIcon.d.ts +0 -2
  1339. package/dist/icons/glyphs/EuroIcon.d.ts +0 -2
  1340. package/dist/icons/glyphs/ExternalLinkIcon.d.ts +0 -2
  1341. package/dist/icons/glyphs/EyeIcon.d.ts +0 -2
  1342. package/dist/icons/glyphs/EyeOffIcon.d.ts +0 -2
  1343. package/dist/icons/glyphs/FileArchiveIcon.d.ts +0 -2
  1344. package/dist/icons/glyphs/FileCodeIcon.d.ts +0 -2
  1345. package/dist/icons/glyphs/FileExtIcons.d.ts +0 -27
  1346. package/dist/icons/glyphs/FileIcon.d.ts +0 -2
  1347. package/dist/icons/glyphs/FileImageIcon.d.ts +0 -2
  1348. package/dist/icons/glyphs/FilePdfIcon.d.ts +0 -2
  1349. package/dist/icons/glyphs/FileTextIcon.d.ts +0 -2
  1350. package/dist/icons/glyphs/FileVideoIcon.d.ts +0 -2
  1351. package/dist/icons/glyphs/FilterIcon.d.ts +0 -2
  1352. package/dist/icons/glyphs/FlagArIcon.d.ts +0 -2
  1353. package/dist/icons/glyphs/FlagBrIcon.d.ts +0 -2
  1354. package/dist/icons/glyphs/FlagCaIcon.d.ts +0 -2
  1355. package/dist/icons/glyphs/FlagCnIcon.d.ts +0 -2
  1356. package/dist/icons/glyphs/FlagCzIcon.d.ts +0 -2
  1357. package/dist/icons/glyphs/FlagDeIcon.d.ts +0 -2
  1358. package/dist/icons/glyphs/FlagEsIcon.d.ts +0 -2
  1359. package/dist/icons/glyphs/FlagFrIcon.d.ts +0 -2
  1360. package/dist/icons/glyphs/FlagGbIcon.d.ts +0 -2
  1361. package/dist/icons/glyphs/FlagInIcon.d.ts +0 -2
  1362. package/dist/icons/glyphs/FlagItIcon.d.ts +0 -2
  1363. package/dist/icons/glyphs/FlagJpIcon.d.ts +0 -2
  1364. package/dist/icons/glyphs/FlagMxIcon.d.ts +0 -2
  1365. package/dist/icons/glyphs/FlagPlIcon.d.ts +0 -2
  1366. package/dist/icons/glyphs/FlagRuIcon.d.ts +0 -2
  1367. package/dist/icons/glyphs/FlagSkIcon.d.ts +0 -2
  1368. package/dist/icons/glyphs/FlagUaIcon.d.ts +0 -2
  1369. package/dist/icons/glyphs/FlagUsIcon.d.ts +0 -2
  1370. package/dist/icons/glyphs/FolderIcon.d.ts +0 -2
  1371. package/dist/icons/glyphs/FolderOpenIcon.d.ts +0 -2
  1372. package/dist/icons/glyphs/FolderPlusIcon.d.ts +0 -2
  1373. package/dist/icons/glyphs/FormIcon.d.ts +0 -2
  1374. package/dist/icons/glyphs/GalleryIcon.d.ts +0 -2
  1375. package/dist/icons/glyphs/GlobeIcon.d.ts +0 -2
  1376. package/dist/icons/glyphs/GroupIcon.d.ts +0 -2
  1377. package/dist/icons/glyphs/HeartFillIcon.d.ts +0 -2
  1378. package/dist/icons/glyphs/HeartIcon.d.ts +0 -2
  1379. package/dist/icons/glyphs/HelpIcon.d.ts +0 -2
  1380. package/dist/icons/glyphs/HomeIcon.d.ts +0 -2
  1381. package/dist/icons/glyphs/IdCardIcon.d.ts +0 -2
  1382. package/dist/icons/glyphs/ImageIcon.d.ts +0 -2
  1383. package/dist/icons/glyphs/InfoIcon.d.ts +0 -2
  1384. package/dist/icons/glyphs/KanbanIcon.d.ts +0 -2
  1385. package/dist/icons/glyphs/LayoutIcon.d.ts +0 -2
  1386. package/dist/icons/glyphs/LightbulbIcon.d.ts +0 -2
  1387. package/dist/icons/glyphs/LinkIcon.d.ts +0 -2
  1388. package/dist/icons/glyphs/LockIcon.d.ts +0 -2
  1389. package/dist/icons/glyphs/LockOpenIcon.d.ts +0 -2
  1390. package/dist/icons/glyphs/MagicIcon.d.ts +0 -2
  1391. package/dist/icons/glyphs/MailIcon.d.ts +0 -2
  1392. package/dist/icons/glyphs/MailOpenIcon.d.ts +0 -2
  1393. package/dist/icons/glyphs/MenuIcon.d.ts +0 -2
  1394. package/dist/icons/glyphs/MinusIcon.d.ts +0 -2
  1395. package/dist/icons/glyphs/MoonIcon.d.ts +0 -2
  1396. package/dist/icons/glyphs/MoreIcon.d.ts +0 -3
  1397. package/dist/icons/glyphs/NeutralIcon.d.ts +0 -2
  1398. package/dist/icons/glyphs/PaletteIcon.d.ts +0 -2
  1399. package/dist/icons/glyphs/PhoneIcon.d.ts +0 -2
  1400. package/dist/icons/glyphs/PinIcon.d.ts +0 -2
  1401. package/dist/icons/glyphs/PlusIcon.d.ts +0 -2
  1402. package/dist/icons/glyphs/ProtectIcon.d.ts +0 -2
  1403. package/dist/icons/glyphs/PuzzleIcon.d.ts +0 -2
  1404. package/dist/icons/glyphs/RefreshIcon.d.ts +0 -2
  1405. package/dist/icons/glyphs/SearchIcon.d.ts +0 -2
  1406. package/dist/icons/glyphs/SendIcon.d.ts +0 -2
  1407. package/dist/icons/glyphs/SettingsIcon.d.ts +0 -2
  1408. package/dist/icons/glyphs/SidebarIcon.d.ts +0 -2
  1409. package/dist/icons/glyphs/Signal1Icon.d.ts +0 -2
  1410. package/dist/icons/glyphs/Signal2Icon.d.ts +0 -2
  1411. package/dist/icons/glyphs/Signal3Icon.d.ts +0 -2
  1412. package/dist/icons/glyphs/Signal4Icon.d.ts +0 -2
  1413. package/dist/icons/glyphs/SlidersIcon.d.ts +0 -2
  1414. package/dist/icons/glyphs/SortIcon.d.ts +0 -2
  1415. package/dist/icons/glyphs/StarFillIcon.d.ts +0 -2
  1416. package/dist/icons/glyphs/StarIcon.d.ts +0 -2
  1417. package/dist/icons/glyphs/SuccessIcon.d.ts +0 -2
  1418. package/dist/icons/glyphs/SunIcon.d.ts +0 -2
  1419. package/dist/icons/glyphs/TagIcon.d.ts +0 -2
  1420. package/dist/icons/glyphs/TeamIcon.d.ts +0 -2
  1421. package/dist/icons/glyphs/TerminalIcon.d.ts +0 -2
  1422. package/dist/icons/glyphs/TranslateIcon.d.ts +0 -2
  1423. package/dist/icons/glyphs/TrashIcon.d.ts +0 -2
  1424. package/dist/icons/glyphs/UploadIcon.d.ts +0 -2
  1425. package/dist/icons/glyphs/UserIcon.d.ts +0 -2
  1426. package/dist/icons/glyphs/UsersIcon.d.ts +0 -2
  1427. package/dist/icons/glyphs/WarningIcon.d.ts +0 -2
  1428. package/dist/icons/glyphs/WindowIcon.d.ts +0 -2
  1429. package/dist/icons/glyphs/ZoomInIcon.d.ts +0 -2
  1430. package/dist/icons/glyphs/ZoomOutIcon.d.ts +0 -2
  1431. package/dist/icons/glyphs/fileMark.d.ts +0 -9
  1432. package/dist/layoutProps-CY4cnDrW.js +0 -29
  1433. package/dist/layoutProps-CY4cnDrW.js.map +0 -1
  1434. package/dist/layoutProps-Dw_ZW6ot.cjs +0 -2
  1435. package/dist/layoutProps-Dw_ZW6ot.cjs.map +0 -1
  1436. package/dist/locale-C_PRdyIv.cjs +0 -2
  1437. package/dist/locale-C_PRdyIv.cjs.map +0 -1
  1438. package/dist/locale-DofwII5P.js +0 -58
  1439. package/dist/locale-DofwII5P.js.map +0 -1
  1440. package/dist/theme/ThemeProvider.d.ts +0 -20
  1441. package/dist/theme/types.d.ts +0 -50
  1442. package/dist/useClickOutside-CS-Mc6ne.cjs +0 -2
  1443. package/dist/useClickOutside-CS-Mc6ne.cjs.map +0 -1
  1444. package/dist/useClickOutside-Dcye4Ut0.js +0 -16
  1445. package/dist/useClickOutside-Dcye4Ut0.js.map +0 -1
  1446. package/dist/useDebounce-C3jbJOKC.cjs +0 -2
  1447. package/dist/useDebounce-C3jbJOKC.cjs.map +0 -1
  1448. package/dist/useDebounce-D-v3IRXp.js +0 -21
  1449. package/dist/useDebounce-D-v3IRXp.js.map +0 -1
  1450. package/dist/useFormField-Bz4d7m8u.cjs +0 -2
  1451. package/dist/useFormField-Bz4d7m8u.cjs.map +0 -1
  1452. package/dist/useFormField-jOnRqGD2.js +0 -166
  1453. package/dist/useFormField-jOnRqGD2.js.map +0 -1
  1454. package/dist/useGhostText-BNcH5o9H.js +0 -51
  1455. package/dist/useGhostText-BNcH5o9H.js.map +0 -1
  1456. package/dist/useGhostText-CoYhBGCg.cjs +0 -2
  1457. package/dist/useGhostText-CoYhBGCg.cjs.map +0 -1
  1458. package/dist/useReveal-Fg-i8hhZ.js +0 -23
  1459. package/dist/useReveal-Fg-i8hhZ.js.map +0 -1
  1460. package/dist/useReveal-p1cSTlUT.cjs +0 -2
  1461. package/dist/useReveal-p1cSTlUT.cjs.map +0 -1
  1462. package/dist/validators-B7cSTrU_.cjs +0 -2
  1463. package/dist/validators-B7cSTrU_.cjs.map +0 -1
  1464. package/dist/validators-Y1nYXhNR.js +0 -378
  1465. package/dist/validators-Y1nYXhNR.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ const e=require(`./MCloseIcon-BKH33Q51.cjs`),t=require(`./MZoomInIcon-BcpTfzRD.cjs`),n=require(`./MChevronDownIcon-CE25HFYo.cjs`),r=require(`./MCalendarIcon-CgFKAojj.cjs`),i=require(`./MFileExtIcons-DzACx_eM.cjs`),a=require(`./cn-CpRt8Xjj.cjs`),o=require(`./validators-CA-TznrL.cjs`),s=require(`./creditCards-BVKi47yn.cjs`),c=require(`./formatters-bW67hwbX.cjs`),l=require(`./useGhostText-BrRYBrV_.cjs`),u=require(`./useInteractionEffect-BaJeiUns.cjs`),d=require(`./MButton-DOtMjOTz.cjs`),f=require(`./MCheckbox-Vbr4IhEn.cjs`),p=require(`./MSlider-VFCviEUW.cjs`),m=require(`./MInput-CjsJRLaz.cjs`);let h=require(`react`),g=require(`react/jsx-runtime`);var _=(0,h.forwardRef)(function({value:e,defaultValue:t,name:n,id:r,placeholder:i,disabled:o=!1,readOnly:s=!1,required:c=!1,autoFocus:u=!1,rows:f=3,autoResize:p=!1,minRows:_,maxRows:v,variant:y=`outlined`,size:b=`md`,color:x,fullWidth:S=!1,label:C,helperText:w,errorText:T,error:E=!1,success:D=!1,maxLength:O,showCharCount:k=!1,ghostOptions:A,ghostMinChars:j=2,onGhostAccept:M,loading:N=!1,onChange:P,onFocus:F,onBlur:I,className:L,style:R,textareaClassName:z,labelClassName:B},V){let[H,U]=(0,h.useState)(!1),W=(0,h.useRef)(null),{currentValue:G,setCurrentValue:K}=m.n(e,t),q=l.t({options:A??[],value:G,minChars:j}),J=E||!!T,ee=J?`color-error`:x?`color-${x}`:void 0,Y=V??W,X=(0,h.useCallback)(()=>{let e=typeof Y==`function`?null:Y?.current;if(!e||!p)return;e.style.height=`auto`;let t=parseFloat(getComputedStyle(e).lineHeight)||20,n=_?_*t:0,r=v?v*t:1/0,i=Math.min(Math.max(e.scrollHeight,n),r);e.style.height=`${i}px`,e.style.overflowY=e.scrollHeight>i?`auto`:`hidden`},[p,_,v,Y]);(0,h.useEffect)(()=>{X()},[G,X]);let te=(0,h.useCallback)(e=>{U(!0),F?.(e)},[F]),Z=(0,h.useCallback)(e=>{U(!1),I?.(e)},[I]),Q=(0,h.useCallback)(e=>{K(e.target.value),P?.(e),q.reset()},[P,K,q.reset]),ne=(0,h.useCallback)(e=>{if(A&&q.hint&&q.onKeyDown(e)){let e=q.accept();K(e.value),M?.(e.value);let t=typeof Y==`function`?null:Y?.current;t&&((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set)?.call(t,e.value),t.dispatchEvent(new Event(`input`,{bubbles:!0})));return}},[A,q,K,M,Y]),re=a.t(`container`,`field-${y}`,`field-${b}`,H&&`focused`,J&&`error`,D&&!J&&`success`,o&&`disabled`);return(0,g.jsxs)(`div`,{className:a.t(`textarea`,ee,S&&`full-width`,L),style:R,children:[C&&(0,g.jsx)(`label`,{htmlFor:r,className:a.t(`field-label`,H&&`focused`,J&&`error`,D&&!J&&`success`,c&&`required`,B),children:C}),(0,g.jsxs)(`div`,{className:re,children:[A?(0,g.jsxs)(`div`,{className:`ghost-text-field ghost-text-field-multi`,children:[(0,g.jsx)(`textarea`,{ref:Y,name:n,id:r,placeholder:i,disabled:o,readOnly:s,required:c,autoFocus:u,rows:p?_??f:f,maxLength:O,value:G,className:a.t(`field`,z),onChange:Q,onFocus:te,onBlur:Z,onKeyDown:ne,"aria-invalid":J||void 0,"aria-describedby":T?`${r}-error`:w?`${r}-helper`:void 0}),H&&q.hint&&(0,g.jsxs)(`span`,{className:`ghost-text-overlay`,"aria-hidden":`true`,children:[(0,g.jsx)(`span`,{className:`ghost-text-typed`,children:G}),(0,g.jsx)(`span`,{className:`ghost-text-hint`,children:q.hint})]})]}):(0,g.jsx)(`textarea`,{ref:Y,name:n,id:r,placeholder:i,disabled:o,readOnly:s,required:c,autoFocus:u,rows:p?_??f:f,maxLength:O,value:G,className:a.t(`field`,z),onChange:Q,onFocus:te,onBlur:Z,"aria-invalid":J||void 0,"aria-describedby":T?`${r}-error`:w?`${r}-helper`:void 0}),N&&(0,g.jsx)(d.r,{size:`sm`,color:x,className:`textarea-spinner`})]}),(T||w||k)&&(0,g.jsxs)(`div`,{className:`bottom-row`,children:[(0,g.jsxs)(`span`,{children:[T&&(0,g.jsx)(`span`,{id:r?`${r}-error`:void 0,className:`field-error`,role:`alert`,children:T}),!T&&w&&(0,g.jsx)(`span`,{id:r?`${r}-helper`:void 0,className:`field-helper`,children:w})]}),k&&O&&(0,g.jsxs)(`span`,{className:a.t(`char-count`,G.length>O&&`over`),children:[G.length,`/`,O]})]})]})});function v(e){let t=0;return e.length>=8&&t++,e.length>=12&&t++,/[a-z]/.test(e)&&/[A-Z]/.test(e)&&t++,/\d/.test(e)&&t++,/[^a-zA-Z0-9]/.test(e)&&t++,t<=1?`weak`:t<=2?`fair`:t<=3?`good`:`strong`}var y={weak:`Weak`,fair:`Fair`,good:`Good`,strong:`Strong`},b=(0,h.forwardRef)(function({showToggle:e=!0,showStrength:n=!1,onStrengthChange:r,value:i,defaultValue:o,onChange:s,className:c,...l},u){let[d,f]=(0,h.useState)(!1),[p,_]=(0,h.useState)(o?.toString()??``),b=i===void 0?p:i.toString(),x=v(b);(0,h.useEffect)(()=>{r?.(x)},[x,r]);let S=(0,h.useCallback)(e=>{i===void 0&&_(e.target.value),s?.(e)},[s,i]),C=e?(0,g.jsx)(`button`,{type:`button`,className:`password toggle`,onClick:()=>f(e=>!e),tabIndex:-1,"aria-label":d?`Hide password`:`Show password`,children:d?(0,g.jsx)(t.n,{}):(0,g.jsx)(t.r,{})}):void 0;return(0,g.jsxs)(`div`,{className:a.t(`password input`,c),children:[(0,g.jsx)(m.t,{...l,ref:u,type:d?`text`:`password`,value:b,onChange:S,endIcon:C}),n&&b.length>0&&(0,g.jsxs)(`div`,{className:`password strength row`,children:[(0,g.jsx)(`div`,{className:`password strength bar`,children:[0,1,2,3].map(e=>(0,g.jsx)(`div`,{className:a.t(`password strength segment`,e<[`weak`,`fair`,`good`,`strong`].indexOf(x)+1&&`strength-${x}`)},e))}),(0,g.jsx)(`span`,{className:a.t(`password strength label`,`strength-${x}`),children:y[x]})]})]})});function x(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function S(e,t){let n=10**t;return Math.round(e*n)/n}var C=(0,h.forwardRef)(function({min:e,max:r,step:i=1,showStepper:o=!0,precision:s=0,allowNegative:c=!0,onValueChange:l,value:u,defaultValue:d,onChange:f,onKeyDown:p,onBlur:_,disabled:v=!1,className:y,...b},C){let[w,T]=(0,h.useState)(d?.toString()??``),E=u===void 0?w:u.toString(),D=(0,h.useRef)(null),O=(0,h.useRef)(E);(0,h.useEffect)(()=>{O.current=E},[E]);let k=(0,h.useCallback)(e=>{u===void 0&&T(e);let t=parseFloat(e);l?.(isNaN(t)?null:t)},[u,l]),A=(0,h.useCallback)(t=>{let n=S(x((parseFloat(O.current)||0)+i*t,e,r),s);O.current=n.toString(),k(n.toString())},[i,e,r,s,k]),j=(0,h.useCallback)(e=>{A(e),D.current=setInterval(()=>A(e),150)},[A]),M=(0,h.useCallback)(()=>{D.current&&=(clearInterval(D.current),null)},[]);(0,h.useEffect)(()=>M,[M]);let N=(0,h.useCallback)(e=>{let t=e.target.value.replace(c?/[^\d.,-]/g:/[^\d.,]/g,``);O.current=t,k(t),f?.(e)},[f,c,k]),P=(0,h.useCallback)(t=>{let n=parseFloat(O.current);if(!isNaN(n)){let t=S(x(n,e,r),s);O.current=t.toString(),k(t.toString())}_?.(t)},[e,r,s,k,_]),F=(0,h.useCallback)(e=>{e.key===`ArrowUp`?(e.preventDefault(),A(1)):e.key===`ArrowDown`&&(e.preventDefault(),A(-1)),p?.(e)},[A,p]),I=o&&!v?(0,g.jsxs)(`div`,{className:`number stepper`,children:[(0,g.jsx)(`button`,{type:`button`,className:`number step button`,onPointerDown:e=>{e.preventDefault(),j(1)},onPointerUp:M,onPointerLeave:M,onPointerCancel:M,tabIndex:-1,"aria-label":`Increment`,children:(0,g.jsx)(t.d,{})}),(0,g.jsx)(`button`,{type:`button`,className:`number step button`,onPointerDown:e=>{e.preventDefault(),j(-1)},onPointerUp:M,onPointerLeave:M,onPointerCancel:M,tabIndex:-1,"aria-label":`Decrement`,children:(0,g.jsx)(n.t,{})})]}):void 0;return(0,g.jsx)(m.t,{...b,ref:C,type:`text`,inputMode:`decimal`,value:E,onChange:N,onBlur:P,onKeyDown:F,endIcon:I,disabled:v,className:a.t(`number input`,y)})}),w=(0,h.forwardRef)(function({validateOnBlur:e=!0,validateOnChange:n=!1,showValidIcon:r=!0,onValidationChange:i,value:a,defaultValue:s,onChange:c,onBlur:l,error:u,errorText:d,success:f,placeholder:p=`email@example.com`,..._},v){let[y,b]=(0,h.useState)(s?.toString()??``),[x,S]=(0,h.useState)({valid:!0}),[C,w]=(0,h.useState)(!1),T=a===void 0?y:a.toString(),E=(0,h.useCallback)(e=>{let t=o.i(e);return S(t),i?.(t),t},[i]),D=(0,h.useCallback)(e=>{a===void 0&&b(e.target.value),n&&C&&E(e.target.value),c?.(e)},[c,a,n,C,E]),O=(0,h.useCallback)(t=>{w(!0),e&&t.target.value&&E(t.target.value),l?.(t)},[l,e,E]),k=u||C&&!x.valid,A=d||(C&&!x.valid?x.error:void 0),j=!k&&f!==void 0?f:C&&x.valid&&T.length>0,M=r&&j?(0,g.jsx)(`span`,{className:`validation-icon`,children:(0,g.jsx)(t.f,{})}):void 0;return(0,g.jsx)(m.t,{..._,ref:v,type:`email`,value:T,onChange:D,onBlur:O,error:k,errorText:A,success:j,placeholder:p,startIcon:(0,g.jsx)(t.u,{}),endIcon:M})}),T=(0,h.forwardRef)(function({countryCode:e=`PL`,showCountryCode:n=!0,formatOnChange:r=!0,validateOnBlur:i=!0,onValidationChange:s,onValueChange:l,value:u,defaultValue:d,onChange:f,onBlur:p,error:_,errorText:v,placeholder:y=`123 456 789`,className:b,...x},S){let[C,w]=(0,h.useState)(d?.toString()??``),[T,E]=(0,h.useState)({valid:!0}),[D,O]=(0,h.useState)(!1),k=u===void 0?C:u.toString(),A=(0,h.useCallback)(t=>{let n=c.u(t.target.value),i=r?c.s(n,{countryCode:e}):n;u===void 0&&w(i),l?.(n,i),f?.(t)},[f,u,r,e,l]),j=(0,h.useCallback)(t=>{if(O(!0),i&&k){let t=o.d(c.u(k),e);E(t),s?.(t)}p?.(t)},[p,i,k,e,s]),M=n?(0,g.jsx)(`span`,{className:`phone prefix`,children:{PL:`+48`,DE:`+49`,US:`+1`,GB:`+44`,FR:`+33`,CZ:`+420`,SK:`+421`}[e.toUpperCase()]??`+${e}`}):void 0,N=_||D&&!T.valid,P=v||(D&&!T.valid?T.error:void 0);return(0,g.jsx)(m.t,{...x,ref:S,type:`tel`,value:k,onChange:A,onBlur:j,error:N,errorText:P,placeholder:y,startIcon:n?M:(0,g.jsx)(t.l,{}),className:a.t(`phone input`,b)})}),E=(0,h.forwardRef)(function({autoCapitalize:e=!0,allowNumbers:n=!1,allowSpecialChars:r=!1,minWords:i,validateOnBlur:a=!0,onValidationChange:o,value:s,defaultValue:l,onChange:u,onBlur:d,error:f,errorText:p,placeholder:_=`Jan Kowalski`,...v},y){let[b,x]=(0,h.useState)(l?.toString()??``),[S,C]=(0,h.useState)({valid:!0}),[w,T]=(0,h.useState)(!1),E=s===void 0?b:s.toString(),D=(0,h.useCallback)(t=>{let i=t;return n||(i=i.replace(/\d/g,``)),r||(i=i.replace(/[^a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s'-]/g,``)),e&&(i=c.n(i)),i},[n,r,e]),O=(0,h.useCallback)(e=>{let t=D(e.target.value);s===void 0&&x(t),u?.(e)},[u,s,D]),k=(0,h.useCallback)(e=>{if(T(!0),a&&E){let e=E.trim().split(/\s+/).filter(Boolean);if(i&&e.length<i){let e={valid:!1,error:`Enter at least ${i} word${i>1?`s`:``}`};C(e),o?.(e)}else{let e={valid:!0};C(e),o?.(e)}}d?.(e)},[d,a,E,i,o]),A=f||w&&!S.valid,j=p||(w&&!S.valid?S.error:void 0);return(0,g.jsx)(m.t,{...v,ref:y,type:`text`,value:E,onChange:O,onBlur:k,error:A,errorText:j,placeholder:_,startIcon:(0,g.jsx)(t.o,{})})});function D(e){return e?.replace(/[^a-zA-Z]/g,``).toUpperCase().slice(0,2)||void 0}function O(e,t){let n=e.replace(/[^a-zA-Z0-9]/g,``).toUpperCase(),r=D(t);return r?`${r}${n.replace(/^[A-Z]{0,2}/,``)}`:n}function k(e,t,n=!0){let r=O(e,t);return n?c.a(r):r}function A(e){let t=D(e);return t?`${t}00 0000 0000 0000 0000 0000 0000`:`PL00 0000 0000 0000 0000 0000 0000`}var j=(0,h.forwardRef)(function({countryCode:e,formatOnChange:n=!0,validateOnBlur:r=!0,showValidIcon:i=!0,onValidationChange:a,onValueChange:s,value:l,defaultValue:u,onChange:d,onBlur:f,error:p,errorText:_,success:v,placeholder:y,...b},x){let[S,C]=(0,h.useState)(()=>k(u?.toString()??``,e,n)),[w,T]=(0,h.useState)({valid:!0}),[E,D]=(0,h.useState)(!1),j=l===void 0?S:k(l.toString(),e,n);(0,h.useEffect)(()=>{l===void 0&&C(t=>k(t,e,n))},[e,n,l]);let M=(0,h.useCallback)(t=>{let r=O(c.d(t.target.value),e),i=n?c.a(r):r;l===void 0&&C(i),s?.(r,i),d?.(t)},[e,d,l,n,s]),N=(0,h.useCallback)(t=>{if(D(!0),r&&j){let t=o.a(O(c.d(j),e));T(t),a?.(t)}f?.(t)},[e,f,r,j,a]),P=p||E&&!w.valid,F=_||(E&&!w.valid?w.error:void 0),I=!P&&(v===void 0?E&&w.valid&&j.length>0:v),L=i&&I?(0,g.jsx)(`span`,{className:`validation-icon`,children:(0,g.jsx)(t.f,{})}):void 0;return(0,g.jsx)(m.t,{...b,ref:x,type:`text`,value:j,onChange:M,onBlur:N,error:P,errorText:F,success:I,placeholder:y??A(e),startIcon:(0,g.jsx)(t.a,{}),endIcon:L,maxLength:42})}),M={NIP:o.c,PESEL:o.l,REGON:o.f},N={NIP:13,PESEL:11,REGON:14},P={NIP:`123-456-78-19`,PESEL:`00000000000`,REGON:`000000000`},F=(0,h.forwardRef)(function({taxIdType:e,formatOnChange:n=!0,validateOnBlur:r=!0,showValidIcon:i=!0,onValidationChange:a,onValueChange:o,value:s,defaultValue:l,onChange:u,onBlur:d,error:f,errorText:p,success:_,placeholder:v,...y},b){let[x,S]=(0,h.useState)(l?.toString()??``),[C,w]=(0,h.useState)({valid:!0}),[T,E]=(0,h.useState)(!1),D=s===void 0?x:s.toString(),O=(0,h.useCallback)(t=>{let r=c.u(t.target.value),i=n&&e===`NIP`?c.o(r):r;s===void 0&&S(i),o?.(r),u?.(t)},[u,s,n,e,o]),k=(0,h.useCallback)(t=>{if(E(!0),r&&D){let t=M[e],n=t(c.u(D));w(n),a?.(n)}d?.(t)},[d,r,D,e,a]),A=f||T&&!C.valid,j=p||(T&&!C.valid?C.error:void 0),F=!A&&(_===void 0?T&&C.valid&&D.length>0:_),I=i&&F?(0,g.jsx)(`span`,{className:`validation-icon`,children:(0,g.jsx)(t.f,{})}):void 0;return(0,g.jsx)(m.t,{...y,ref:b,type:`text`,inputMode:`numeric`,value:D,onChange:O,onBlur:k,error:A,errorText:j,success:F,placeholder:v??P[e],startIcon:(0,g.jsx)(t.i,{}),endIcon:I,maxLength:N[e]})}),I=(0,h.forwardRef)(function({currency:e,currencySymbol:t,currencyPosition:n=`end`,decimalSeparator:r=`,`,thousandSeparator:i=` `,precision:o=2,min:s,max:l,allowNegative:u=!1,onValueChange:d,value:f,defaultValue:p,onChange:_,onBlur:v,placeholder:y=`0,00`,startIcon:b,endIcon:x,className:S,...C},w){let[T,E]=(0,h.useState)(p?.toString()??``),D=f===void 0?T:f.toString(),O=t??e??``,k=(0,h.useCallback)(e=>{let t=e.target.value,n=``,a=!1;for(let e of t)e>=`0`&&e<=`9`?n+=e:(e===`,`||e===`.`)&&!a?(n+=r,a=!0):e===`-`&&u&&n.length===0&&(n+=`-`);let s=c.r(n,{decimalSeparator:r,thousandSeparator:i,precision:o});f===void 0&&E(s);let l=c.c(s,i,r);d?.(l),_?.(e)},[_,f,r,i,o,u,d]),A=(0,h.useCallback)(e=>{let t=c.c(D,i,r);if(t!==null){s!==void 0&&t<s&&(t=s),l!==void 0&&t>l&&(t=l);let e=c.r(t.toFixed(o).replace(`.`,r),{decimalSeparator:r,thousandSeparator:i,precision:o});f===void 0&&E(e),d?.(t)}v?.(e)},[D,s,l,o,r,i,f,d,v]),j=O?(0,g.jsx)(`span`,{className:`currency symbol`,children:O}):void 0;return(0,g.jsx)(m.t,{...C,ref:w,type:`text`,inputMode:`decimal`,value:D,onChange:k,onBlur:A,placeholder:y,startIcon:n===`start`?j:b,endIcon:n===`end`?j:x,className:a.t(`currency input`,S)})}),L={"DD/MM/YYYY":`DD{s}MM{s}YYYY`,"MM/DD/YYYY":`MM{s}DD{s}YYYY`,"YYYY/MM/DD":`YYYY{s}MM{s}DD`},R=(0,h.forwardRef)(function({format:e=`DD/MM/YYYY`,separator:t=`/`,minDate:n,maxDate:i,validateOnBlur:a=!0,validateOnChange:s=!1,onDateChange:l,onValidationChange:u,value:d,defaultValue:f,onChange:p,onBlur:_,onKeyDown:v,onClear:y,error:b,errorText:x,placeholder:S,className:C,...w},T){let[E,D]=(0,h.useState)(f?.toString()??``),[O,k]=(0,h.useState)({valid:!0}),[A,j]=(0,h.useState)(!1),M=(0,h.useRef)(!1),N=d===void 0?E:d.toString();(0,h.useEffect)(()=>{if(M.current){M.current=!1;return}if(!N){k({valid:!0}),j(!1);return}k(o.r(N,{format:e,minDate:n,maxDate:i}))},[N,e,i,n]);let P=(0,h.useCallback)(t=>{let r=o.r(t,{format:e,minDate:n,maxDate:i});return k(r),u?.(r),r},[e,n,i,u]),F=(0,h.useCallback)(t=>{c.u(t).length===8?l?.(o.n(t,e),t):l?.(null,t)},[e,l]),I=(0,h.useCallback)(n=>{let r=c.u(n.target.value);if(r.length>8)return;let i=c.i(r,e,t);M.current=!0,d===void 0&&D(i),F(i),s&&A&&P(i),p?.(n)},[p,d,e,t,s,A,P,F]),R=(0,h.useCallback)(()=>{M.current=!0,d===void 0&&D(``),k({valid:!0}),j(!1),l?.(null,``),y?.()},[d,l,y]),z=(0,h.useCallback)(e=>{j(!0),a&&N&&P(N),_?.(e)},[_,a,N,P]),B=(0,h.useCallback)(e=>{if([`Backspace`,`Delete`,`Tab`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)){v?.(e);return}if(e.ctrlKey||e.metaKey){v?.(e);return}/^\d$/.test(e.key)||e.preventDefault(),v?.(e)},[v]),V=b||A&&!O.valid,H=x||(A&&!O.valid?O.error:void 0);return(0,g.jsx)(m.t,{...w,ref:T,type:`text`,inputMode:`numeric`,value:N,onChange:I,onBlur:z,onKeyDown:B,onClear:R,error:V,errorText:H,placeholder:S??L[e].replace(/\{s\}/g,t),startIcon:(0,g.jsx)(r.t,{}),maxLength:10,className:C})});function z({value:e}){let t=s.n(e);return(0,g.jsx)(`span`,{className:a.t(`credit-card-brand-badge`,`credit-brand`,t.brand),children:t.iconLabel})}var B=(0,h.forwardRef)(function({validateOnBlur:e=!0,validateOnChange:n=!1,showBrandIcon:r=!0,showValidIcon:i=!0,onValidationChange:o,onCardBrandChange:c,onValueChange:l,value:u,defaultValue:d,onChange:f,onBlur:p,error:_,errorText:v,success:y,placeholder:b=`4242 4242 4242 4242`,className:x,...S},C){let[w,T]=(0,h.useState)(()=>s.r(d?.toString()??``)),[E,D]=(0,h.useState)({valid:!0}),[O,k]=(0,h.useState)(!1),A=u===void 0?w:s.r(u.toString()),j=(0,h.useCallback)(e=>{let t=s.a(e);return D(t),o?.(t),t},[o]),M=(0,h.useCallback)(e=>{let t=s.r(e.target.value),r=s.n(t);u===void 0&&T(t),c?.(r.brand),l?.(s.i(t),t,r.brand),n&&O&&j(t),f?.(e)},[c,f,l,j,O,n,u]),N=(0,h.useCallback)(t=>{k(!0),e&&A&&j(A),p?.(t)},[A,p,j,e]),P=_||O&&!E.valid,F=v||(O&&!E.valid?E.error:void 0),I=!P&&y!==void 0?y:O&&E.valid&&s.i(A).length>0,L=i&&I?(0,g.jsx)(`span`,{className:`credit valid validation-icon credit-card-valid-icon`,"aria-hidden":`true`,children:(0,g.jsx)(t.f,{})}):void 0;return(0,g.jsx)(m.t,{...S,ref:C,type:`text`,inputMode:`numeric`,value:A,onChange:M,onBlur:N,error:P,errorText:F,success:I,placeholder:b,startIcon:r?(0,g.jsx)(z,{value:A}):void 0,endIcon:L,className:a.t(`credit-card input`,x)})});function V(e){return typeof e==`object`&&!!e&&!(0,h.isValidElement)(e)&&`type`in e}function H(e,t,n,r){if(!V(e))return(0,g.jsx)(`div`,{className:a.t(`addon`,`custom`,t),children:e},`${t}-${n}`);let i=e;return i.type===`button`?(0,g.jsx)(d.t,{variant:`ghost`,color:r,size:`sm`,className:a.t(`addon`,t,`addon-button`),onClick:i.onClick,clickEffect:`none`,children:i.content},`${t}-${n}`):i.type===`checkbox`?(0,g.jsx)(`div`,{className:a.t(`addon`,t,`checkbox`),children:(0,g.jsx)(f.t,{size:`sm`,clickEffect:`none`,checked:i.checked,onChange:e=>i.onCheckedChange?.(e.target.checked),className:`addon-checkbox`})},`${t}-${n}`):(0,g.jsx)(`span`,{className:a.t(`addon`,t),children:i.content},`${t}-${n}`)}function U(e){return e==null?[]:Array.isArray(e)?e:[e]}var W=(0,h.forwardRef)(function({prepend:t,append:n,type:r=`text`,value:i,defaultValue:o,name:s,id:c,placeholder:l,disabled:f=!1,readOnly:p=!1,required:_=!1,autoFocus:v=!1,autoComplete:y,inputMode:b,size:x=`md`,fullWidth:S=!1,label:C,helperText:w,errorText:T,color:E=`primary`,error:D=!1,maxLength:O,clearable:k=!1,onChange:A,onFocus:j,onBlur:M,onKeyDown:N,onClear:P,loading:F=!1,clickEffect:I=`ripple`,rippleColor:L,className:R,style:z,inputClassName:B,labelClassName:V},W){let[G,K]=(0,h.useState)(!1),q=(0,h.useRef)(null),{effectClassName:J,effectLayer:ee,handlePointerDown:Y}=u.t({effect:I,disabled:f||p,color:L}),X=D||!!T,te=X?`color-error`:`color-${E}`,{currentValue:Z,setCurrentValue:Q}=m.n(i,o),ne=Z.length>0,re=(0,h.useCallback)(e=>{K(!0),j?.(e)},[j]),$=(0,h.useCallback)(e=>{K(!1),M?.(e)},[M]),ie=(0,h.useCallback)(e=>{Q(e.target.value),A?.(e)},[A,Q]),ae=(0,h.useCallback)(()=>{Q(``);let e=W?.current??q.current;e&&((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0}))),P?.(),e?.focus()},[P,W,Q]),oe=U(t),se=U(n);return(0,g.jsxs)(`div`,{className:a.t(`input-group`,te,S&&`full-width`,R),style:z,children:[C&&(0,g.jsx)(`label`,{htmlFor:c,className:a.t(`field-label`,G&&`focused`,X&&`error`,_&&`required`,V),children:C}),(0,g.jsxs)(`div`,{className:a.t(`container`,`field-${x}`,G&&`focused`,X&&`has-error`,f&&`disabled`,J),onPointerDown:Y,children:[ee,oe.map((e,t)=>H(e,`prepend`,t,E)),(0,g.jsx)(`input`,{ref:W??q,type:r,value:Z,name:s,id:c,placeholder:l,disabled:f,readOnly:p,required:_,autoFocus:v,autoComplete:y,inputMode:b,maxLength:O,className:a.t(`field`,B),onChange:ie,onFocus:re,onBlur:$,onKeyDown:N,"aria-invalid":X||void 0,"aria-describedby":T?`${c}-error`:w?`${c}-helper`:void 0}),F&&(0,g.jsx)(`span`,{className:`spinner-addon`,children:(0,g.jsx)(d.r,{size:`sm`,color:E})}),k&&ne&&!F&&!f&&(0,g.jsx)(`button`,{type:`button`,className:`clear-btn clear-btn-base`,onClick:ae,tabIndex:-1,"aria-label":`Clear input`,children:(0,g.jsx)(e.t,{})}),se.map((e,t)=>H(e,`append`,t,E))]}),(T||w)&&(0,g.jsxs)(`div`,{className:`bottom`,children:[T&&(0,g.jsx)(`span`,{id:c?`${c}-error`:void 0,className:`field-error`,role:`alert`,children:T}),!T&&w&&(0,g.jsx)(`span`,{id:c?`${c}-helper`:void 0,className:`field-helper`,children:w})]})]})}),G=(0,h.forwardRef)(function({country:e,defaultCountry:t=`PL`,selectableCountry:n=!0,validateOnBlur:r=!0,validateOnChange:i=!1,onCountryChange:s,onValidationChange:c,onValueChange:l,value:u,defaultValue:d,onChange:f,onBlur:p,error:m,errorText:_,helperText:v,placeholder:y,className:b,disabled:x=!1,...S},C){let[w,T]=(0,h.useState)(t.toUpperCase()),[E,D]=(0,h.useState)(()=>o.h(d?.toString()??``,e??t)),[O,k]=(0,h.useState)({valid:!0}),[A,j]=(0,h.useState)(!1),M=(e??w).toUpperCase(),N=(0,h.useMemo)(()=>o.g(M),[M]),P=u===void 0?E:o.h(u.toString(),M),F=(0,h.useCallback)((e,t)=>{let n=o.y(e,t);return k(n),c?.(n),n},[c]),I=(0,h.useCallback)(e=>{let t=o.h(e.target.value,M);u===void 0&&D(t),l?.(t.replace(/\s|-/g,``),t,M),i&&A&&F(t,M),f?.(e)},[M,f,l,F,A,i,u]),L=(0,h.useCallback)(e=>{j(!0),r&&P&&F(P,M),p?.(e)},[M,P,p,F,r]),R=(0,h.useCallback)(t=>{let n=t.target.value.toUpperCase(),r=o.h(P,n);e===void 0&&T(n),u===void 0&&D(r),s?.(n),A&&F(r,n)},[e,P,s,F,A,u]),z=m||A&&!O.valid,B=_||(A&&!O.valid?O.error:void 0);return(0,g.jsx)(W,{...S,ref:C,type:`text`,inputMode:N.inputMode,value:P,onChange:I,onBlur:L,error:z,errorText:B,helperText:B?void 0:v??`Format: ${N.example}`,placeholder:y??N.placeholder,maxLength:N.maxLength,disabled:x,prepend:n?(0,g.jsx)(`div`,{className:`country-select-wrap`,children:(0,g.jsx)(`select`,{className:`country-select`,value:M,onChange:R,disabled:x,"aria-label":`Postal code country`,children:o._.map(e=>(0,g.jsx)(`option`,{value:e.value,children:e.value},e.value))})}):{type:`text`,content:M},className:a.t(`input-post-code`,b)})}),K=(0,h.forwardRef)(function({length:t=6,value:n,onChange:r,autoFocus:i=!1,disabled:o=!1,color:s=`primary`,size:c=`md`,error:l=!1,errorText:u,clearable:d=!1,label:f,onClear:p,className:m,..._},v){let[y,b]=(0,h.useState)(``),x=n===void 0?y:n,S=(0,h.useRef)([]),C=l?`color-error`:`color-${s}`,w=(0,h.useCallback)(e=>{n===void 0&&b(e),r?.(e)},[n,r]),T=(0,h.useCallback)(e=>{let n=Math.max(0,Math.min(e,t-1));S.current[n]?.focus()},[t]);(0,h.useEffect)(()=>{i&&T(0)},[i,T]);let E=(0,h.useCallback)((e,n)=>{if(!/^\d$/.test(n))return;let r=x.split(``);for(;r.length<=e;)r.push(``);r[e]=n,w(r.join(``)),e<t-1&&T(e+1)},[x,t,w,T]),D=(0,h.useCallback)((e,n)=>{if(n.key===`Backspace`){n.preventDefault();let t=x.split(``);t[e]?(t[e]=``,w(t.join(``))):e>0&&(t[e-1]=``,w(t.join(``)),T(e-1))}else n.key===`ArrowLeft`?(n.preventDefault(),e>0&&T(e-1)):n.key===`ArrowRight`&&(n.preventDefault(),e<t-1&&T(e+1))},[x,t,w,T]),O=(0,h.useCallback)(e=>{e.preventDefault();let n=e.clipboardData.getData(`text`).replace(/\D/g,``).slice(0,t);n&&(w(n),T(Math.min(n.length,t-1)))},[t,w,T]),k=(0,h.useCallback)(()=>{w(``),p?.(),T(0)},[T,p,w]);return(0,g.jsxs)(`div`,{ref:v,className:a.t(`otp input`,C,c,o&&`disabled`,m),..._,children:[f&&(0,g.jsx)(`div`,{className:`otp label`,children:f}),(0,g.jsxs)(`div`,{className:`otp control`,children:[(0,g.jsx)(`div`,{className:`otp slots`,onPaste:O,children:Array.from({length:t},(e,t)=>(0,g.jsx)(`input`,{ref:e=>{S.current[t]=e},type:`text`,inputMode:`numeric`,maxLength:1,value:x[t]||``,disabled:o,className:a.t(`otp slot`,x[t]&&`filled`),"aria-label":`Digit ${t+1}`,onChange:e=>{E(t,e.target.value.slice(-1))},onKeyDown:e=>D(t,e),onFocus:e=>e.target.select()},t))}),d&&x.length>0&&!o&&(0,g.jsx)(`button`,{type:`button`,className:`otp clear clear-btn-base`,onClick:k,"aria-label":`Clear code`,children:(0,g.jsx)(e.t,{})})]}),l&&u&&(0,g.jsx)(`div`,{className:`otp error`,children:u})]})});function q(e,t,n){return Math.min(n,Math.max(t,e))}function J(e,t){let n=10**t;return Math.round(e*n)/n}var ee=(0,h.forwardRef)(function({min:e=0,max:t=100,step:n=1,value:r,onChange:i,precision:o=0,marks:s,showInput:c=!0,color:l=`primary`,size:u=`md`,disabled:d=!1,label:f,className:m,..._},v){let[y,b]=(0,h.useState)(e),x=r===void 0?y:r,S=(0,h.useCallback)(n=>{let a=J(q(n,e,t),o);r===void 0&&b(a),i?.(a)},[e,t,o,r,i]),C=(0,h.useCallback)(e=>S(e),[S]),w=(0,h.useCallback)(e=>{let t=e.target.value;if(t===``||t===`-`)return;let n=parseFloat(t);isNaN(n)||S(n)},[S]),T=(0,h.useCallback)(()=>{S(x)},[x,S]);return(0,g.jsxs)(`div`,{ref:v,className:a.t(`slider input`,u,d&&`disabled`,m),..._,children:[f&&(0,g.jsx)(`div`,{className:`slider label`,children:f}),(0,g.jsxs)(`div`,{className:`slider row`,children:[(0,g.jsx)(p.t,{min:e,max:t,step:n,value:x,onChange:C,marks:s,color:l,disabled:d}),c&&(0,g.jsx)(`input`,{type:`text`,inputMode:`decimal`,className:a.t(`slider field`,`color-${l}`),value:x,onChange:w,onBlur:T,disabled:d,"aria-label":f||`MSlider value`})]})]})});function Y({file:e,shape:n,outputSize:r,quality:i,onCrop:a,onCancel:o}){let s=(0,h.useRef)(null),c=(0,h.useRef)(null),l=(0,h.useRef)(null),[u,f]=(0,h.useState)(``),[m,_]=(0,h.useState)(1),[v,y]=(0,h.useState)({x:0,y:0}),[b,x]=(0,h.useState)(!1),S=(0,h.useRef)({x:0,y:0,ox:0,oy:0});(0,h.useEffect)(()=>{let t=URL.createObjectURL(e);return f(t),()=>URL.revokeObjectURL(t)},[e]),(0,h.useEffect)(()=>{if(!u)return;let e=new Image;e.onload=()=>{l.current=e;let t=280/Math.min(e.width,e.height);_(t),y({x:(280-e.width*t)/2,y:(280-e.height*t)/2})},e.src=u},[u]);let C=(0,h.useCallback)(e=>{e.preventDefault(),x(!0),S.current={x:e.clientX,y:e.clientY,ox:v.x,oy:v.y},e.target.setPointerCapture(e.pointerId)},[v]),w=(0,h.useCallback)(e=>{b&&y({x:S.current.ox+(e.clientX-S.current.x),y:S.current.oy+(e.clientY-S.current.y)})},[b]),T=(0,h.useCallback)(()=>{x(!1)},[]),E=(0,h.useCallback)(e=>{e.preventDefault();let t=e.deltaY>0?.95:1.05,n=Math.max(.1,Math.min(m*t,10));y({x:140-(140-v.x)*(n/m),y:140-(140-v.y)*(n/m)}),_(n)},[m,v]),D=(0,h.useCallback)(e=>{y({x:140-(140-v.x)*(e/m),y:140-(140-v.y)*(e/m)}),_(e)},[m,v]),O=(0,h.useCallback)(()=>{let t=l.current,o=s.current;if(!t||!o)return;o.width=r,o.height=r;let c=o.getContext(`2d`);if(!c)return;let u=r/280;n===`circle`&&(c.beginPath(),c.arc(r/2,r/2,r/2,0,Math.PI*2),c.closePath(),c.clip()),c.drawImage(t,v.x*u,v.y*u,t.width*m*u,t.height*m*u),o.toBlob(t=>{if(!t)return;let n=e.name.replace(/.*\./,``),r=e.name.replace(/\.[^.]+$/,``)+`_cropped.`+n;a(new File([t],r,{type:t.type}))},e.type.startsWith(`image/png`)?`image/png`:`image/jpeg`,i)},[e,v,m,r,i,n,a]),k=Math.round((m-.1)/4.9*100),A=(0,h.useCallback)(e=>{D(.1+e/100*4.9)},[D]);return(0,g.jsxs)(`div`,{className:`crop editor`,children:[(0,g.jsxs)(`div`,{ref:c,className:`crop viewport ${n}`,onPointerDown:C,onPointerMove:w,onPointerUp:T,onWheel:E,children:[u&&(0,g.jsx)(`img`,{src:u,alt:``,className:`crop image`,draggable:!1,style:{transform:`translate(${v.x}px, ${v.y}px) scale(${m})`,transformOrigin:`0 0`}}),(0,g.jsx)(`div`,{className:`crop overlay ${n}`})]}),(0,g.jsxs)(`div`,{className:`crop zoom`,children:[(0,g.jsx)(t.t,{className:`crop zoom icon`,"aria-hidden":`true`}),(0,g.jsx)(p.t,{min:0,max:100,step:1,value:k,onChange:A,color:`primary`,className:`crop zoom slider`})]}),(0,g.jsxs)(`div`,{className:`crop actions`,children:[(0,g.jsx)(d.t,{variant:`ghost`,size:`sm`,color:`neutral`,onClick:o,children:`Cancel`}),(0,g.jsx)(d.t,{variant:`ghost`,size:`sm`,color:`primary`,onClick:O,children:`Crop`})]}),(0,g.jsx)(`canvas`,{ref:s,style:{display:`none`}})]})}function X(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function te(e){let t=e.lastIndexOf(`.`);return t>=0?e.slice(t+1).toUpperCase():``}function Z(e){return e.type.startsWith(`image/`)}function Q({ext:e}){let n=e.toLowerCase();return n===`pdf`?(0,g.jsx)(i.k,{className:`file type icon`,"aria-hidden":`true`}):[`png`,`jpg`,`jpeg`,`gif`,`webp`,`svg`].includes(n)?(0,g.jsx)(i.O,{className:`file type icon`,"aria-hidden":`true`}):[`json`].includes(n)?(0,g.jsx)(i.l,{className:`file type icon`,"aria-hidden":`true`}):[`js`,`jsx`,`ts`,`tsx`,`html`,`css`,`php`,`xml`].includes(n)?(0,g.jsx)(i.D,{className:`file type icon`,"aria-hidden":`true`}):[`txt`].includes(n)?(0,g.jsx)(i.A,{className:`file type icon`,"aria-hidden":`true`}):[`md`].includes(n)?(0,g.jsx)(i.d,{className:`file type icon`,"aria-hidden":`true`}):[`docs`,`doc`,`docx`].includes(n)?(0,g.jsx)(i.r,{className:`file type icon`,"aria-hidden":`true`}):[`odt`].includes(n)?(0,g.jsx)(i.m,{className:`file type icon`,"aria-hidden":`true`}):[`csv`,`xls`,`xlsx`].includes(n)?(0,g.jsx)(i.w,{className:`file type icon`,"aria-hidden":`true`}):[`zip`].includes(n)?(0,g.jsx)(i.E,{className:`file type icon`,"aria-hidden":`true`}):[`rar`,`7z`,`tar`,`gz`].includes(n)?(0,g.jsx)(t.s,{className:`file type icon`,"aria-hidden":`true`}):[`mp3`,`wav`,`ogg`].includes(n)?(0,g.jsx)(i.f,{className:`file type icon`,"aria-hidden":`true`}):[`mp4`,`mov`,`avi`,`mkv`,`webm`].includes(n)?(0,g.jsx)(i.p,{className:`file type icon`,"aria-hidden":`true`}):[`exe`,`msi`,`bat`].includes(n)?(0,g.jsx)(i.i,{className:`file type icon`,"aria-hidden":`true`}):(0,g.jsx)(i.j,{className:`file type icon`,"aria-hidden":`true`})}var ne=(0,h.forwardRef)(function({accept:n,multiple:r=!1,maxSize:i,maxFiles:o,onChange:s,label:c,helperText:l,errorText:u,error:d=!1,disabled:f=!1,color:p=`primary`,size:m=`md`,preview:_=!0,clearable:v=!1,icon:y,placeholder:b=`Drop files here or click to browse`,dropText:x=`Drop files here`,fullWidth:S=!1,crop:C,onClear:w,className:T,...E},D){let[O,k]=(0,h.useState)(!1),[A,j]=(0,h.useState)([]),[M,N]=(0,h.useState)(``),[P,F]=(0,h.useState)(null),I=(0,h.useRef)(null),L=(0,h.useRef)(0),R=C?typeof C==`boolean`?{shape:`square`,outputSize:256,quality:.92}:{shape:C.shape??`square`,outputSize:C.outputSize??256,quality:C.quality??.92}:null,z=(0,h.useMemo)(()=>A.map(e=>Z(e)?URL.createObjectURL(e):null),[A]);(0,h.useEffect)(()=>()=>{z.forEach(e=>{e&&URL.revokeObjectURL(e)})},[z]);let B=(0,h.useCallback)(e=>{let t=Array.from(e);if(n){let e=n.split(`,`).map(e=>e.trim().toLowerCase());t=t.filter(t=>{let n=`.`+t.name.split(`.`).pop()?.toLowerCase(),r=t.type.toLowerCase();return e.some(e=>e===n||e===r||e.endsWith(`/*`)&&r.startsWith(e.slice(0,-1)))})}if(i&&t.filter(e=>e.size>i).length){N(`Max file size: ${X(i)}`);return}if(o&&t.length>o){N(`Max ${o} file${o>1?`s`:``}`);return}if(N(``),R&&t.length===1&&Z(t[0])){F(t[0]);return}j(t),s?.(t)},[n,i,o,s,R]),V=(0,h.useCallback)(e=>{F(null),j([e]),s?.([e])},[s]),H=(0,h.useCallback)(()=>{F(null)},[]),U=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!f&&(L.current++,k(!0))},[f]),W=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),L.current--,L.current<=0&&(L.current=0,k(!1))},[]),G=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),K=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),L.current=0,k(!1),!f&&e.dataTransfer.files.length&&B(e.dataTransfer.files)},[f,B]),q=(0,h.useCallback)(()=>{f||I.current?.click()},[f]),J=(0,h.useCallback)(e=>{e.target.files?.length&&B(e.target.files)},[B]),ee=(0,h.useCallback)(e=>{let t=z[e];t&&URL.revokeObjectURL(t);let n=A.filter((t,n)=>n!==e);j(n),s?.(n)},[A,z,s]),ne=(0,h.useCallback)(()=>{z.forEach(e=>{e&&URL.revokeObjectURL(e)}),F(null),j([]),N(``),I.current&&(I.current.value=``),s?.([]),w?.()},[z,s,w]),re=u||M,$=d||!!M;return(0,g.jsxs)(`div`,{ref:D,className:a.t(`file input`,$?`color-error`:`color-${p}`,m,S&&`full-width`,f&&`disabled`,T),...E,children:[(c||v&&A.length>0&&!f)&&(0,g.jsxs)(`div`,{className:`file header`,children:[c&&(0,g.jsx)(`div`,{className:`file label`,children:c}),v&&A.length>0&&!f&&(0,g.jsx)(`button`,{type:`button`,className:`file clear clear-btn-base`,onClick:ne,"aria-label":`Clear files`,children:(0,g.jsx)(e.t,{"aria-hidden":`true`})})]}),(0,g.jsxs)(`div`,{className:a.t(`file dropzone`,O&&`dragging`,$&&`error`),onClick:q,onDragEnter:U,onDragLeave:W,onDragOver:G,onDrop:K,role:`button`,tabIndex:f?-1:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),q())},"aria-label":c||b,children:[(0,g.jsx)(`input`,{ref:I,type:`file`,accept:n,multiple:r,onChange:J,tabIndex:-1,className:`file hidden`}),(0,g.jsxs)(`div`,{className:`file content`,children:[y&&(0,g.jsx)(`div`,{className:`file icon`,children:y}),!y&&(0,g.jsx)(t.c,{className:`file icon default`,"aria-hidden":`true`}),(0,g.jsx)(`div`,{className:`file text`,children:O?x:b}),n&&(0,g.jsx)(`div`,{className:`file accept`,children:n})]})]}),P&&R&&(0,g.jsx)(Y,{file:P,shape:R.shape,outputSize:R.outputSize,quality:R.quality,onCrop:V,onCancel:H}),l&&!$&&(0,g.jsx)(`div`,{className:`file helper`,children:l}),$&&re&&(0,g.jsx)(`div`,{className:`file error`,children:re}),_&&A.length>0&&!P&&(0,g.jsx)(`div`,{className:`file preview`,children:A.map((t,n)=>(0,g.jsxs)(`div`,{className:`file item`,children:[(0,g.jsx)(`div`,{className:`file thumb`,children:z[n]?(0,g.jsx)(`img`,{src:z[n],alt:t.name,className:`file image`}):(0,g.jsx)(Q,{ext:te(t.name)})}),(0,g.jsxs)(`div`,{className:`file info`,children:[(0,g.jsx)(`span`,{className:`file name`,children:t.name}),(0,g.jsx)(`span`,{className:`file size`,children:X(t.size)})]}),(0,g.jsx)(`button`,{type:`button`,className:`file remove`,onClick:e=>{e.stopPropagation(),ee(n)},"aria-label":`Remove ${t.name}`,children:(0,g.jsx)(e.t,{"aria-hidden":`true`})})]},`${t.name}-${n}`))})]})});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return j}});
2
+ //# sourceMappingURL=inputs-6TRTzH12.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputs-6TRTzH12.cjs","names":[],"sources":["../src/components/inputs/MTextarea/MTextarea.tsx","../src/components/inputs/MInputPassword/MInputPassword.tsx","../src/components/inputs/MInputNumber/MInputNumber.tsx","../src/components/inputs/MInputEmail/MInputEmail.tsx","../src/components/inputs/MInputPhone/MInputPhone.tsx","../src/components/inputs/MInputName/MInputName.tsx","../src/components/inputs/MInputIBAN/MInputIBAN.tsx","../src/components/inputs/MInputTaxId/MInputTaxId.tsx","../src/components/inputs/MInputCurrency/MInputCurrency.tsx","../src/components/inputs/MInputDate/MInputDate.tsx","../src/components/inputs/MInputCreditCard/MInputCreditCard.tsx","../src/components/inputs/MInputGroup/MInputGroup.tsx","../src/components/inputs/MInputPostCode/MInputPostCode.tsx","../src/components/inputs/MInputOTP/MInputOTP.tsx","../src/components/inputs/MInputSlider/MInputSlider.tsx","../src/components/inputs/MInputFile/MCropEditor.tsx","../src/components/inputs/MInputFile/MInputFile.tsx"],"sourcesContent":["import {useState, useRef, useCallback, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MTextareaProps} from './MTextarea.types'\nimport {cn} from '../../../utils/cn'\nimport {useControllableString} from '../../../utils/useControllableString'\nimport {useGhostText} from '../../../utils/useGhostText'\nimport {MSpinner} from '../../feedback'\nimport './MTextarea.css'\n\n// Render the multiline text input with optional auto-resize behavior.\nexport const MTextarea = forwardRef<HTMLTextAreaElement, MTextareaProps>(function MTextarea(\n {\n value,\n defaultValue,\n name,\n id,\n placeholder,\n disabled = false,\n readOnly = false,\n required = false,\n autoFocus = false,\n rows = 3,\n autoResize = false,\n minRows,\n maxRows,\n variant = 'outlined',\n size = 'md',\n color,\n fullWidth = false,\n label,\n helperText,\n errorText,\n error = false,\n success = false,\n maxLength,\n showCharCount = false,\n ghostOptions,\n ghostMinChars = 2,\n onGhostAccept,\n loading = false,\n onChange,\n onFocus,\n onBlur,\n className,\n style,\n textareaClassName,\n labelClassName,\n },\n ref\n) {\n const [focused, setFocused] = useState(false)\n const textareaRef = useRef<HTMLTextAreaElement>(null)\n\n const {currentValue, setCurrentValue} = useControllableString(value, defaultValue)\n const ghost = useGhostText({\n options: ghostOptions ?? [],\n value: currentValue,\n minChars: ghostMinChars,\n })\n const hasError = error || !!errorText\n const resolvedColorClass = hasError ? 'color-error' : color ? `color-${color}` : undefined\n const resolvedRef = ref ?? textareaRef\n\n // Resize the textarea to fit content while respecting min and max row limits.\n const adjustHeight = useCallback(() => {\n const el = typeof resolvedRef === 'function' ? null : resolvedRef?.current\n if (!el || !autoResize) return\n\n el.style.height = 'auto'\n const lineHeight = parseFloat(getComputedStyle(el).lineHeight) || 20\n const minH = minRows ? minRows * lineHeight : 0\n const maxH = maxRows ? maxRows * lineHeight : Infinity\n const newHeight = Math.min(Math.max(el.scrollHeight, minH), maxH)\n el.style.height = `${newHeight}px`\n el.style.overflowY = el.scrollHeight > newHeight ? 'auto' : 'hidden'\n }, [autoResize, minRows, maxRows, resolvedRef])\n\n useEffect(() => {\n adjustHeight()\n }, [currentValue, adjustHeight])\n\n // Mirror focus state so wrapper styling stays consistent with MInput.\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setFocused(true)\n onFocus?.(e)\n },\n [onFocus]\n )\n\n // Clear focus styling before delegating blur handling.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setFocused(false)\n onBlur?.(e)\n },\n [onBlur]\n )\n\n // Keep uncontrolled usage working without blocking controlled integrations.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setCurrentValue(e.target.value)\n onChange?.(e)\n ghost.reset()\n },\n [onChange, setCurrentValue, ghost.reset]\n )\n\n // Intercept keyboard events for ghost text acceptance.\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (ghostOptions && ghost.hint) {\n const accepted = ghost.onKeyDown(e)\n if (accepted) {\n const result = ghost.accept()\n setCurrentValue(result.value)\n onGhostAccept?.(result.value)\n const el = typeof resolvedRef === 'function' ? null : resolvedRef?.current\n if (el) {\n const nativeSet = Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, 'value')?.set\n nativeSet?.call(el, result.value)\n el.dispatchEvent(new Event('input', {bubbles: true}))\n }\n return\n }\n }\n },\n [ghostOptions, ghost, setCurrentValue, onGhostAccept, resolvedRef]\n )\n\n const containerClasses = cn(\n 'container',\n `field-${variant}`,\n `field-${size}`,\n focused && 'focused',\n hasError && 'error',\n success && !hasError && 'success',\n disabled && 'disabled'\n )\n\n return (\n <div className={cn('textarea', resolvedColorClass, fullWidth && 'full-width', className)} style={style}>\n {label && (\n <label\n htmlFor={id}\n className={cn(\n 'field-label',\n focused && 'focused',\n hasError && 'error',\n success && !hasError && 'success',\n required && 'required',\n labelClassName\n )}\n >\n {label}\n </label>\n )}\n\n <div className={containerClasses}>\n {ghostOptions ? (\n <div className=\"ghost-text-field ghost-text-field-multi\">\n <textarea\n ref={resolvedRef as React.Ref<HTMLTextAreaElement>}\n name={name}\n id={id}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n autoFocus={autoFocus}\n rows={autoResize ? (minRows ?? rows) : rows}\n maxLength={maxLength}\n value={currentValue}\n className={cn('field', textareaClassName)}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n aria-invalid={hasError || undefined}\n aria-describedby={errorText ? `${id}-error` : helperText ? `${id}-helper` : undefined}\n />\n {focused && ghost.hint && (\n <span className=\"ghost-text-overlay\" aria-hidden=\"true\">\n <span className=\"ghost-text-typed\">{currentValue}</span>\n <span className=\"ghost-text-hint\">{ghost.hint}</span>\n </span>\n )}\n </div>\n ) : (\n <textarea\n ref={resolvedRef as React.Ref<HTMLTextAreaElement>}\n name={name}\n id={id}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n autoFocus={autoFocus}\n rows={autoResize ? (minRows ?? rows) : rows}\n maxLength={maxLength}\n value={currentValue}\n className={cn('field', textareaClassName)}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n aria-invalid={hasError || undefined}\n aria-describedby={errorText ? `${id}-error` : helperText ? `${id}-helper` : undefined}\n />\n )}\n {loading && <MSpinner size=\"sm\" color={color} className=\"textarea-spinner\" />}\n </div>\n\n {(errorText || helperText || showCharCount) && (\n <div className=\"bottom-row\">\n <span>\n {errorText && (\n <span id={id ? `${id}-error` : undefined} className=\"field-error\" role=\"alert\">\n {errorText}\n </span>\n )}\n {!errorText && helperText && (\n <span id={id ? `${id}-helper` : undefined} className=\"field-helper\">\n {helperText}\n </span>\n )}\n </span>\n {showCharCount && maxLength && (\n <span className={cn('char-count', currentValue.length > maxLength && 'over')}>\n {currentValue.length}/{maxLength}\n </span>\n )}\n </div>\n )}\n </div>\n )\n})\n","import {useState, useCallback, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputPasswordProps, MPasswordStrength} from './MInputPassword.types'\nimport {MInput} from '../MInput'\nimport {MEyeIcon, MEyeOffIcon} from '../../../icons'\nimport {cn} from '../../../utils/cn'\nimport './MInputPassword.css'\n\n// Approximate password strength with simple UI-focused heuristics.\nfunction calcStrength(value: string): MPasswordStrength {\n let score = 0\n if (value.length >= 8) score++\n if (value.length >= 12) score++\n if (/[a-z]/.test(value) && /[A-Z]/.test(value)) score++\n if (/\\d/.test(value)) score++\n if (/[^a-zA-Z0-9]/.test(value)) score++\n\n if (score <= 1) return 'weak'\n if (score <= 2) return 'fair'\n if (score <= 3) return 'good'\n return 'strong'\n}\n\nconst STRENGTH_LABELS: Record<MPasswordStrength, string> = {\n weak: 'Weak',\n fair: 'Fair',\n good: 'Good',\n strong: 'Strong',\n}\n\n// Extend the base input with password visibility and optional strength feedback.\nexport const MInputPassword = forwardRef<HTMLInputElement, MInputPasswordProps>(function MInputPassword(\n {showToggle = true, showStrength = false, onStrengthChange, value, defaultValue, onChange, className, ...rest},\n ref\n) {\n const [visible, setVisible] = useState(false)\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const currentValue = value !== undefined ? value.toString() : internalValue\n const strength = calcStrength(currentValue)\n\n useEffect(() => {\n onStrengthChange?.(strength)\n }, [strength, onStrengthChange])\n\n // Keep uncontrolled usage working while reporting changes to the caller.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (value === undefined) {\n setInternalValue(e.target.value)\n }\n onChange?.(e)\n },\n [onChange, value]\n )\n\n const toggleIcon = showToggle ? (\n <button\n type=\"button\"\n className=\"password toggle\"\n onClick={() => setVisible((v) => !v)}\n tabIndex={-1}\n aria-label={visible ? 'Hide password' : 'Show password'}\n >\n {visible ? <MEyeOffIcon /> : <MEyeIcon />}\n </button>\n ) : undefined\n\n return (\n <div className={cn('password input', className)}>\n <MInput\n {...rest}\n ref={ref}\n type={visible ? 'text' : 'password'}\n value={currentValue}\n onChange={handleChange}\n endIcon={toggleIcon}\n />\n {showStrength && currentValue.length > 0 && (\n <div className=\"password strength row\">\n <div className=\"password strength bar\">\n {[0, 1, 2, 3].map((i) => (\n <div\n key={i}\n className={cn(\n 'password strength segment',\n i < ['weak', 'fair', 'good', 'strong'].indexOf(strength) + 1 &&\n `strength-${strength}`\n )}\n />\n ))}\n </div>\n <span className={cn('password strength label', `strength-${strength}`)}>\n {STRENGTH_LABELS[strength]}\n </span>\n </div>\n )}\n </div>\n )\n})\n","import {useState, useCallback, useRef, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputNumberProps} from './MInputNumber.types'\nimport {MInput} from '../MInput'\nimport {cn} from '../../../utils/cn'\nimport {MChevronDownIcon, MChevronUpIcon} from '../../../icons'\nimport './MInputNumber.css'\n\n// Keep numeric values inside optional min and max bounds.\nfunction clampValue(val: number, min?: number, max?: number): number {\n if (min !== undefined && val < min) return min\n if (max !== undefined && val > max) return max\n return val\n}\n\n// Prevent floating-point drift when step values use decimal precision.\nfunction roundToPrecision(val: number, precision: number): number {\n const factor = Math.pow(10, precision)\n return Math.round(val * factor) / factor\n}\n\n// Extend the base input with stepping, clamping and keyboard increment support.\nexport const MInputNumber = forwardRef<HTMLInputElement, MInputNumberProps>(function MInputNumber(\n {\n min,\n max,\n step = 1,\n showStepper = true,\n precision = 0,\n allowNegative = true,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onKeyDown,\n onBlur,\n disabled = false,\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const currentValue = value !== undefined ? value.toString() : internalValue\n const intervalRef = useRef<ReturnType<typeof setInterval>>(null)\n const currentValueRef = useRef(currentValue)\n\n useEffect(() => {\n currentValueRef.current = currentValue\n }, [currentValue])\n\n // Keep the displayed string and numeric callback in sync.\n const updateValue = useCallback(\n (newVal: string) => {\n if (value === undefined) {\n setInternalValue(newVal)\n }\n const num = parseFloat(newVal)\n onValueChange?.(isNaN(num) ? null : num)\n },\n [value, onValueChange]\n )\n\n // Move the current value by one step in the requested direction.\n const increment = useCallback(\n (direction: 1 | -1) => {\n const current = parseFloat(currentValueRef.current) || 0\n const newVal = roundToPrecision(clampValue(current + step * direction, min, max), precision)\n currentValueRef.current = newVal.toString()\n updateValue(newVal.toString())\n },\n [step, min, max, precision, updateValue]\n )\n\n // Repeat stepping while the pointer is held on a stepper button.\n const startHold = useCallback(\n (direction: 1 | -1) => {\n increment(direction)\n intervalRef.current = setInterval(() => increment(direction), 150)\n },\n [increment]\n )\n\n // Clear the hold timer when the pointer is released.\n const stopHold = useCallback(() => {\n if (intervalRef.current) {\n clearInterval(intervalRef.current)\n intervalRef.current = null\n }\n }, [])\n\n useEffect(() => stopHold, [stopHold])\n\n // Filter user input down to numeric characters before storing it.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const raw = e.target.value\n const filtered = raw.replace(allowNegative ? /[^\\d.,-]/g : /[^\\d.,]/g, '')\n currentValueRef.current = filtered\n updateValue(filtered)\n onChange?.(e)\n },\n [onChange, allowNegative, updateValue]\n )\n\n // Snap the entered value back into range when the field loses focus.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const num = parseFloat(currentValueRef.current)\n if (!isNaN(num)) {\n const clamped = roundToPrecision(clampValue(num, min, max), precision)\n currentValueRef.current = clamped.toString()\n updateValue(clamped.toString())\n }\n onBlur?.(e)\n },\n [min, max, precision, updateValue, onBlur]\n )\n\n // Support ArrowUp and ArrowDown as a keyboard stepper.\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'ArrowUp') {\n e.preventDefault()\n increment(1)\n } else if (e.key === 'ArrowDown') {\n e.preventDefault()\n increment(-1)\n }\n onKeyDown?.(e)\n },\n [increment, onKeyDown]\n )\n\n const stepper =\n showStepper && !disabled ? (\n <div className=\"number stepper\">\n <button\n type=\"button\"\n className=\"number step button\"\n onPointerDown={(event) => {\n event.preventDefault()\n startHold(1)\n }}\n onPointerUp={stopHold}\n onPointerLeave={stopHold}\n onPointerCancel={stopHold}\n tabIndex={-1}\n aria-label=\"Increment\"\n >\n <MChevronUpIcon />\n </button>\n <button\n type=\"button\"\n className=\"number step button\"\n onPointerDown={(event) => {\n event.preventDefault()\n startHold(-1)\n }}\n onPointerUp={stopHold}\n onPointerLeave={stopHold}\n onPointerCancel={stopHold}\n tabIndex={-1}\n aria-label=\"Decrement\"\n >\n <MChevronDownIcon />\n </button>\n </div>\n ) : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode=\"decimal\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n endIcon={stepper}\n disabled={disabled}\n className={cn('number input', className)}\n />\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputEmailProps} from './MInputEmail.types'\nimport {MInput} from '../MInput'\nimport {validateEmail} from '../../../utils/validators'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MCheckIcon, MMailIcon} from '../../../icons'\n\n// Extend the base input with email validation and optional success feedback.\nexport const MInputEmail = forwardRef<HTMLInputElement, MInputEmailProps>(function MInputEmail(\n {\n validateOnBlur = true,\n validateOnChange = false,\n showValidIcon = true,\n onValidationChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n success,\n placeholder = 'email@example.com',\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n // Reuse the shared email validator and surface the latest result upstream.\n const runValidation = useCallback(\n (val: string) => {\n const result = validateEmail(val)\n setValidation(result)\n onValidationChange?.(result)\n return result\n },\n [onValidationChange]\n )\n\n // Validate while typing only when the component is configured to do so.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (value === undefined) {\n setInternalValue(e.target.value)\n }\n if (validateOnChange && touched) {\n runValidation(e.target.value)\n }\n onChange?.(e)\n },\n [onChange, value, validateOnChange, touched, runValidation]\n )\n\n // Validate optional email input on blur once the user has interacted with it.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && e.target.value) {\n runValidation(e.target.value)\n }\n onBlur?.(e)\n },\n [onBlur, validateOnBlur, runValidation]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n const isSuccess =\n !isError && success !== undefined ? success : touched && validation.valid && currentValue.length > 0\n\n const validIcon =\n showValidIcon && isSuccess ? (\n <span className=\"validation-icon\">\n <MCheckIcon />\n </span>\n ) : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"email\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n success={isSuccess}\n placeholder={placeholder}\n startIcon={<MMailIcon />}\n endIcon={validIcon}\n />\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputPhoneProps} from './MInputPhone.types'\nimport {MInput} from '../MInput'\nimport {cn} from '../../../utils/cn'\nimport {validatePhone} from '../../../utils/validators'\nimport {formatPhone, stripNonDigits} from '../../../utils/formatters'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MPhoneIcon} from '../../../icons'\nimport './MInputPhone.css'\n\n// Extend the base input with country-aware phone formatting and validation.\nexport const MInputPhone = forwardRef<HTMLInputElement, MInputPhoneProps>(function MInputPhone(\n {\n countryCode = 'PL',\n showCountryCode = true,\n formatOnChange = true,\n validateOnBlur = true,\n onValidationChange,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n placeholder = '123 456 789',\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n // Keep the emitted raw digits and the displayed formatted value aligned.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const digits = stripNonDigits(e.target.value)\n const formatted = formatOnChange ? formatPhone(digits, {countryCode}) : digits\n\n if (value === undefined) {\n setInternalValue(formatted)\n }\n onValueChange?.(digits, formatted)\n onChange?.(e)\n },\n [onChange, value, formatOnChange, countryCode, onValueChange]\n )\n\n // Validate the raw number on blur using country-specific length rules.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && currentValue) {\n const result = validatePhone(stripNonDigits(currentValue), countryCode)\n setValidation(result)\n onValidationChange?.(result)\n }\n onBlur?.(e)\n },\n [onBlur, validateOnBlur, currentValue, countryCode, onValidationChange]\n )\n\n const COUNTRY_PREFIXES: Record<string, string> = {\n PL: '+48',\n DE: '+49',\n US: '+1',\n GB: '+44',\n FR: '+33',\n CZ: '+420',\n SK: '+421',\n }\n\n const prefix = showCountryCode ? (\n <span className=\"phone prefix\">{COUNTRY_PREFIXES[countryCode.toUpperCase()] ?? `+${countryCode}`}</span>\n ) : undefined\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"tel\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n placeholder={placeholder}\n startIcon={showCountryCode ? prefix : <MPhoneIcon />}\n className={cn('phone input', className)}\n />\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputNameProps} from './MInputName.types'\nimport {MInput} from '../MInput'\nimport {capitalizeWords} from '../../../utils/formatters'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MUserIcon} from '../../../icons'\n\n// Extend the base input with name-friendly filtering and optional word-count validation.\nexport const MInputName = forwardRef<HTMLInputElement, MInputNameProps>(function MInputName(\n {\n autoCapitalize = true,\n allowNumbers = false,\n allowSpecialChars = false,\n minWords,\n validateOnBlur = true,\n onValidationChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n placeholder = 'Jan Kowalski',\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n // Normalize user input according to the configured name rules.\n const filterValue = useCallback(\n (raw: string): string => {\n let filtered = raw\n if (!allowNumbers) {\n filtered = filtered.replace(/\\d/g, '')\n }\n if (!allowSpecialChars) {\n filtered = filtered.replace(/[^a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ\\s'-]/g, '')\n }\n if (autoCapitalize) {\n filtered = capitalizeWords(filtered)\n }\n return filtered\n },\n [allowNumbers, allowSpecialChars, autoCapitalize]\n )\n\n // Store the filtered value while still delegating the original change event.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const filtered = filterValue(e.target.value)\n if (value === undefined) {\n setInternalValue(filtered)\n }\n onChange?.(e)\n },\n [onChange, value, filterValue]\n )\n\n // Validate the minimum word count after the user leaves the field.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && currentValue) {\n const words = currentValue.trim().split(/\\s+/).filter(Boolean)\n if (minWords && words.length < minWords) {\n const result: ValidationResult = {\n valid: false,\n error: `Enter at least ${minWords} word${minWords > 1 ? 's' : ''}`,\n }\n setValidation(result)\n onValidationChange?.(result)\n } else {\n const result: ValidationResult = {valid: true}\n setValidation(result)\n onValidationChange?.(result)\n }\n }\n onBlur?.(e)\n },\n [onBlur, validateOnBlur, currentValue, minWords, onValidationChange]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n placeholder={placeholder}\n startIcon={<MUserIcon />}\n />\n )\n})\n","import {useState, useCallback, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputIBANProps} from './MInputIBAN.types'\nimport {MInput} from '../MInput'\nimport {validateIBAN} from '../../../utils/validators'\nimport {formatIBAN, unformatIBAN} from '../../../utils/formatters'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MBankIcon, MCheckIcon} from '../../../icons'\n\nfunction normalizeCountryCode(countryCode?: string): string | undefined {\n const normalized = countryCode\n ?.replace(/[^a-zA-Z]/g, '')\n .toUpperCase()\n .slice(0, 2)\n return normalized || undefined\n}\n\nfunction normalizeIbanValue(value: string, countryCode?: string): string {\n const clean = value.replace(/[^a-zA-Z0-9]/g, '').toUpperCase()\n const normalizedCountryCode = normalizeCountryCode(countryCode)\n\n if (!normalizedCountryCode) {\n return clean\n }\n\n return `${normalizedCountryCode}${clean.replace(/^[A-Z]{0,2}/, '')}`\n}\n\nfunction formatIbanDisplayValue(value: string, countryCode?: string, formatOnChange: boolean = true): string {\n const normalized = normalizeIbanValue(value, countryCode)\n return formatOnChange ? formatIBAN(normalized) : normalized\n}\n\nfunction buildIbanPlaceholder(countryCode?: string): string {\n const normalizedCountryCode = normalizeCountryCode(countryCode)\n return normalizedCountryCode\n ? `${normalizedCountryCode}00 0000 0000 0000 0000 0000 0000`\n : 'PL00 0000 0000 0000 0000 0000 0000'\n}\n\n// Extend the base input with IBAN formatting and checksum validation.\nexport const MInputIBAN = forwardRef<HTMLInputElement, MInputIBANProps>(function MInputIBAN(\n {\n countryCode,\n formatOnChange = true,\n validateOnBlur = true,\n showValidIcon = true,\n onValidationChange,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n success,\n placeholder,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(() =>\n formatIbanDisplayValue(defaultValue?.toString() ?? '', countryCode, formatOnChange)\n )\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue =\n value !== undefined ? formatIbanDisplayValue(value.toString(), countryCode, formatOnChange) : internalValue\n\n useEffect(() => {\n if (value !== undefined) return\n setInternalValue((prev) => formatIbanDisplayValue(prev, countryCode, formatOnChange))\n }, [countryCode, formatOnChange, value])\n\n // Keep raw and formatted IBAN values aligned for consumers and display.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const clean = normalizeIbanValue(unformatIBAN(e.target.value), countryCode)\n const formatted = formatOnChange ? formatIBAN(clean) : clean\n\n if (value === undefined) {\n setInternalValue(formatted)\n }\n onValueChange?.(clean, formatted)\n onChange?.(e)\n },\n [countryCode, onChange, value, formatOnChange, onValueChange]\n )\n\n // Validate the normalized IBAN once the user leaves the field.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && currentValue) {\n const result = validateIBAN(normalizeIbanValue(unformatIBAN(currentValue), countryCode))\n setValidation(result)\n onValidationChange?.(result)\n }\n onBlur?.(e)\n },\n [countryCode, onBlur, validateOnBlur, currentValue, onValidationChange]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n const isSuccess =\n !isError && (success !== undefined ? success : touched && validation.valid && currentValue.length > 0)\n\n const validIcon =\n showValidIcon && isSuccess ? (\n <span className=\"validation-icon\">\n <MCheckIcon />\n </span>\n ) : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n success={isSuccess}\n placeholder={placeholder ?? buildIbanPlaceholder(countryCode)}\n startIcon={<MBankIcon />}\n endIcon={validIcon}\n maxLength={34 + 8}\n />\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputTaxIdProps, MTaxIdType} from './MInputTaxId.types'\nimport {MInput} from '../MInput'\nimport {validateNIP, validatePESEL, validateREGON} from '../../../utils/validators'\nimport {formatNIP, stripNonDigits} from '../../../utils/formatters'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MCheckIcon, MIdCardIcon} from '../../../icons'\n\nconst VALIDATORS: Record<MTaxIdType, (v: string) => ValidationResult> = {\n NIP: validateNIP,\n PESEL: validatePESEL,\n REGON: validateREGON,\n}\n\nconst MAX_LENGTHS: Record<MTaxIdType, number> = {\n NIP: 13,\n PESEL: 11,\n REGON: 14,\n}\n\nconst PLACEHOLDERS: Record<MTaxIdType, string> = {\n NIP: '123-456-78-19',\n PESEL: '00000000000',\n REGON: '000000000',\n}\n\n// Extend the base input with NIP, PESEL and REGON formatting and validation.\nexport const MInputTaxId = forwardRef<HTMLInputElement, MInputTaxIdProps>(function MInputTaxId(\n {\n taxIdType,\n formatOnChange = true,\n validateOnBlur = true,\n showValidIcon = true,\n onValidationChange,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n success,\n placeholder,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n // Normalize the visible value based on the selected identifier type.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const digits = stripNonDigits(e.target.value)\n const formatted = formatOnChange && taxIdType === 'NIP' ? formatNIP(digits) : digits\n\n if (value === undefined) {\n setInternalValue(formatted)\n }\n onValueChange?.(digits)\n onChange?.(e)\n },\n [onChange, value, formatOnChange, taxIdType, onValueChange]\n )\n\n // Validate the stripped numeric value against the active identifier rules.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && currentValue) {\n const validator = VALIDATORS[taxIdType]\n const result = validator(stripNonDigits(currentValue))\n setValidation(result)\n onValidationChange?.(result)\n }\n onBlur?.(e)\n },\n [onBlur, validateOnBlur, currentValue, taxIdType, onValidationChange]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n const isSuccess =\n !isError && (success !== undefined ? success : touched && validation.valid && currentValue.length > 0)\n\n const validIcon =\n showValidIcon && isSuccess ? (\n <span className=\"validation-icon\">\n <MCheckIcon />\n </span>\n ) : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode=\"numeric\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n success={isSuccess}\n placeholder={placeholder ?? PLACEHOLDERS[taxIdType]}\n startIcon={<MIdCardIcon />}\n endIcon={validIcon}\n maxLength={MAX_LENGTHS[taxIdType]}\n />\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputCurrencyProps} from './MInputCurrency.types'\nimport {MInput} from '../MInput'\nimport {cn} from '../../../utils/cn'\nimport {formatCurrency, parseCurrencyToNumber} from '../../../utils/formatters'\nimport './MInputCurrency.css'\n\n// Extend the base input with currency formatting and numeric callbacks.\nexport const MInputCurrency = forwardRef<HTMLInputElement, MInputCurrencyProps>(function MInputCurrency(\n {\n currency,\n currencySymbol,\n currencyPosition = 'end',\n decimalSeparator = ',',\n thousandSeparator = ' ',\n precision = 2,\n min,\n max,\n allowNegative = false,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n placeholder = '0,00',\n startIcon,\n endIcon,\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n const symbol = currencySymbol ?? currency ?? ''\n\n // Filter user input down to one decimal separator and an optional minus sign.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const raw = e.target.value\n let filtered = ''\n let hasDecimal = false\n for (const ch of raw) {\n if (ch >= '0' && ch <= '9') {\n filtered += ch\n } else if ((ch === ',' || ch === '.') && !hasDecimal) {\n filtered += decimalSeparator\n hasDecimal = true\n } else if (ch === '-' && allowNegative && filtered.length === 0) {\n filtered += '-'\n }\n }\n\n const formatted = formatCurrency(filtered, {decimalSeparator, thousandSeparator, precision})\n\n if (value === undefined) {\n setInternalValue(formatted)\n }\n\n const num = parseCurrencyToNumber(formatted, thousandSeparator, decimalSeparator)\n onValueChange?.(num)\n onChange?.(e)\n },\n [onChange, value, decimalSeparator, thousandSeparator, precision, allowNegative, onValueChange]\n )\n\n // Clamp the numeric value on blur and snap it to the configured precision.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n let num = parseCurrencyToNumber(currentValue, thousandSeparator, decimalSeparator)\n if (num !== null) {\n if (min !== undefined && num < min) num = min\n if (max !== undefined && num > max) num = max\n const fixed = num.toFixed(precision).replace('.', decimalSeparator)\n const formatted = formatCurrency(fixed, {decimalSeparator, thousandSeparator, precision})\n if (value === undefined) {\n setInternalValue(formatted)\n }\n onValueChange?.(num)\n }\n onBlur?.(e)\n },\n [currentValue, min, max, precision, decimalSeparator, thousandSeparator, value, onValueChange, onBlur]\n )\n\n const symbolEl = symbol ? <span className=\"currency symbol\">{symbol}</span> : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode=\"decimal\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n placeholder={placeholder}\n startIcon={currencyPosition === 'start' ? symbolEl : startIcon}\n endIcon={currencyPosition === 'end' ? symbolEl : endIcon}\n className={cn('currency input', className)}\n />\n )\n})\n","import {useState, useCallback, useEffect, useRef, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputDateProps} from './MInputDate.types'\nimport {MInput} from '../MInput'\nimport {stripNonDigits, formatDateInput} from '../../../utils/formatters'\nimport {validateDate, parseDateString} from '../../../utils/validators'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MCalendarIcon} from '../../../icons'\n\nconst FORMAT_PLACEHOLDER: Record<string, string> = {\n 'DD/MM/YYYY': 'DD{s}MM{s}YYYY',\n 'MM/DD/YYYY': 'MM{s}DD{s}YYYY',\n 'YYYY/MM/DD': 'YYYY{s}MM{s}DD',\n}\n\n// Specialized date input with auto-formatting, parsing and validation.\n// Displays in DD/MM/YYYY (or other format) and emits a Date object.\nexport const MInputDate = forwardRef<HTMLInputElement, MInputDateProps>(function MInputDate(\n {\n format = 'DD/MM/YYYY',\n separator = '/',\n minDate,\n maxDate,\n validateOnBlur = true,\n validateOnChange = false,\n onDateChange,\n onValidationChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n onKeyDown,\n onClear,\n error,\n errorText,\n placeholder,\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(defaultValue?.toString() ?? '')\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n const internalChangeRef = useRef(false)\n\n const currentValue = value !== undefined ? value.toString() : internalValue\n\n useEffect(() => {\n if (internalChangeRef.current) {\n internalChangeRef.current = false\n return\n }\n\n if (!currentValue) {\n setValidation({valid: true})\n setTouched(false)\n return\n }\n\n setValidation(validateDate(currentValue, {format, minDate, maxDate}))\n }, [currentValue, format, maxDate, minDate])\n\n const runValidation = useCallback(\n (val: string) => {\n const result = validateDate(val, {format, minDate, maxDate})\n setValidation(result)\n onValidationChange?.(result)\n return result\n },\n [format, minDate, maxDate, onValidationChange]\n )\n\n const emitDate = useCallback(\n (formatted: string) => {\n const digits = stripNonDigits(formatted)\n if (digits.length === 8) {\n onDateChange?.(parseDateString(formatted, format), formatted)\n } else {\n onDateChange?.(null, formatted)\n }\n },\n [format, onDateChange]\n )\n\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const digits = stripNonDigits(e.target.value)\n if (digits.length > 8) return\n\n const formatted = formatDateInput(digits, format, separator)\n internalChangeRef.current = true\n\n if (value === undefined) {\n setInternalValue(formatted)\n }\n\n emitDate(formatted)\n\n if (validateOnChange && touched) {\n runValidation(formatted)\n }\n\n onChange?.(e)\n },\n [onChange, value, format, separator, validateOnChange, touched, runValidation, emitDate]\n )\n\n const handleClear = useCallback(() => {\n internalChangeRef.current = true\n if (value === undefined) {\n setInternalValue('')\n }\n setValidation({valid: true})\n setTouched(false)\n onDateChange?.(null, '')\n onClear?.()\n }, [value, onDateChange, onClear])\n\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n if (validateOnBlur && currentValue) {\n runValidation(currentValue)\n }\n onBlur?.(e)\n },\n [onBlur, validateOnBlur, currentValue, runValidation]\n )\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (['Backspace', 'Delete', 'Tab', 'ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(e.key)) {\n onKeyDown?.(e)\n return\n }\n if (e.ctrlKey || e.metaKey) {\n onKeyDown?.(e)\n return\n }\n if (!/^\\d$/.test(e.key)) {\n e.preventDefault()\n }\n onKeyDown?.(e)\n },\n [onKeyDown]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode=\"numeric\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n error={isError}\n errorText={resolvedErrorText}\n placeholder={placeholder ?? FORMAT_PLACEHOLDER[format].replace(/\\{s\\}/g, separator)}\n startIcon={<MCalendarIcon />}\n maxLength={10}\n className={className}\n />\n )\n})\n","import {forwardRef, useCallback, useState} from 'react'\nimport type * as React from 'react'\nimport type {MInputCreditCardProps} from './MInputCreditCard.types'\nimport {MInput} from '../MInput'\nimport {cn} from '../../../utils/cn'\nimport {detectCardBrand, formatCardNumber, stripCardNumber, validateCardNumber} from '../../../utils/creditCards'\nimport type {ValidationResult} from '../../../utils/validators'\nimport {MCheckIcon} from '../../../icons'\nimport './MInputCreditCard.css'\n\nfunction CardBrandBadge({value}: {value: string}) {\n const brand = detectCardBrand(value)\n\n return <span className={cn('credit-card-brand-badge', 'credit-brand', brand.brand)}>{brand.iconLabel}</span>\n}\n\n// Extend the base input with payment card detection, formatting and checksum validation.\nexport const MInputCreditCard = forwardRef<HTMLInputElement, MInputCreditCardProps>(function MInputCreditCard(\n {\n validateOnBlur = true,\n validateOnChange = false,\n showBrandIcon = true,\n showValidIcon = true,\n onValidationChange,\n onCardBrandChange,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n success,\n placeholder = '4242 4242 4242 4242',\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(() => formatCardNumber(defaultValue?.toString() ?? ''))\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentValue = value !== undefined ? formatCardNumber(value.toString()) : internalValue\n const runValidation = useCallback(\n (formattedValue: string) => {\n const result = validateCardNumber(formattedValue)\n setValidation(result)\n onValidationChange?.(result)\n return result\n },\n [onValidationChange]\n )\n\n // Keep the visible card number grouped while exposing raw digits to the caller.\n const handleChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const formattedValue = formatCardNumber(event.target.value)\n const nextBrand = detectCardBrand(formattedValue)\n\n if (value === undefined) {\n setInternalValue(formattedValue)\n }\n\n onCardBrandChange?.(nextBrand.brand)\n onValueChange?.(stripCardNumber(formattedValue), formattedValue, nextBrand.brand)\n\n if (validateOnChange && touched) {\n runValidation(formattedValue)\n }\n\n onChange?.(event)\n },\n [onCardBrandChange, onChange, onValueChange, runValidation, touched, validateOnChange, value]\n )\n\n // Validate after the user leaves the field so checksum feedback stays predictable.\n const handleBlur = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n\n if (validateOnBlur && currentValue) {\n runValidation(currentValue)\n }\n\n onBlur?.(event)\n },\n [currentValue, onBlur, runValidation, validateOnBlur]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n const isSuccess =\n !isError && success !== undefined\n ? success\n : touched && validation.valid && stripCardNumber(currentValue).length > 0\n\n const validIcon =\n showValidIcon && isSuccess ? (\n <span className=\"credit valid validation-icon credit-card-valid-icon\" aria-hidden=\"true\">\n <MCheckIcon />\n </span>\n ) : undefined\n\n return (\n <MInput\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode=\"numeric\"\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n success={isSuccess}\n placeholder={placeholder}\n startIcon={showBrandIcon ? <CardBrandBadge value={currentValue} /> : undefined}\n endIcon={validIcon}\n className={cn('credit-card input', className)}\n />\n )\n})\n","import {useState, useRef, useCallback, forwardRef, isValidElement} from 'react'\nimport type * as React from 'react'\nimport type {MInputGroupProps, MInputGroupAddon, MInputGroupSlot} from './MInputGroup.types'\nimport {cn} from '../../../utils/cn'\nimport {useControllableString} from '../../../utils/useControllableString'\nimport {useInteractionEffect} from '../../../utils/useInteractionEffect'\nimport {MButton, MCheckbox} from '../../controls'\nimport {MSpinner} from '../../feedback'\nimport {MCloseIcon} from '../../../icons'\nimport './MInputGroup.css'\n\n// Detect structured addon configs while leaving raw React nodes untouched.\nfunction isAddonObject(slot: MInputGroupSlot): slot is MInputGroupAddon {\n return typeof slot === 'object' && slot !== null && !isValidElement(slot) && 'type' in slot\n}\n\n// Render one prepend or append slot based on its declared addon type.\nfunction renderSlot(slot: MInputGroupSlot, position: 'prepend' | 'append', index: number, color: string) {\n if (!isAddonObject(slot)) {\n return (\n <div key={`${position}-${index}`} className={cn('addon', 'custom', position)}>\n {slot}\n </div>\n )\n }\n\n const addon = slot\n\n if (addon.type === 'button') {\n return (\n <MButton\n key={`${position}-${index}`}\n variant=\"ghost\"\n color={color as any}\n size=\"sm\"\n className={cn('addon', position, 'addon-button')}\n onClick={addon.onClick}\n clickEffect=\"none\"\n >\n {addon.content}\n </MButton>\n )\n }\n\n if (addon.type === 'checkbox') {\n return (\n <div key={`${position}-${index}`} className={cn('addon', position, 'checkbox')}>\n <MCheckbox\n size=\"sm\"\n clickEffect=\"none\"\n checked={addon.checked}\n onChange={(e) => addon.onCheckedChange?.(e.target.checked)}\n className=\"addon-checkbox\"\n />\n </div>\n )\n }\n\n // text or icon\n return (\n <span key={`${position}-${index}`} className={cn('addon', position)}>\n {addon.content}\n </span>\n )\n}\n\n// Normalize the public slot API to a flat array for predictable rendering.\nfunction normalizeSlots(slots?: MInputGroupSlot | MInputGroupSlot[]): MInputGroupSlot[] {\n if (slots === undefined || slots === null) return []\n if (Array.isArray(slots)) return slots\n return [slots]\n}\n\n// Render a grouped input with prepend and append content around a shared field.\nexport const MInputGroup = forwardRef<HTMLInputElement, MInputGroupProps>(function MInputGroup(\n {\n prepend,\n append,\n type = 'text',\n value,\n defaultValue,\n name,\n id,\n placeholder,\n disabled = false,\n readOnly = false,\n required = false,\n autoFocus = false,\n autoComplete,\n inputMode,\n size = 'md',\n fullWidth = false,\n label,\n helperText,\n errorText,\n color = 'primary',\n error = false,\n maxLength,\n clearable = false,\n onChange,\n onFocus,\n onBlur,\n onKeyDown,\n onClear,\n loading = false,\n clickEffect = 'ripple',\n rippleColor,\n className,\n style,\n inputClassName,\n labelClassName,\n },\n ref\n) {\n const [focused, setFocused] = useState(false)\n const inputRef = useRef<HTMLInputElement>(null)\n const {effectClassName, effectLayer, handlePointerDown} = useInteractionEffect<HTMLDivElement>({\n effect: clickEffect,\n disabled: disabled || readOnly,\n color: rippleColor,\n })\n\n const hasError = error || !!errorText\n const resolvedColorClass = hasError ? 'color-error' : `color-${color}`\n const {currentValue, setCurrentValue} = useControllableString(value, defaultValue)\n const hasContent = currentValue.length > 0\n\n // Mirror focus state so the wrapper can style the group consistently.\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setFocused(true)\n onFocus?.(e)\n },\n [onFocus]\n )\n\n // Clear wrapper focus styling before delegating blur handling.\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setFocused(false)\n onBlur?.(e)\n },\n [onBlur]\n )\n\n // Keep uncontrolled usage working without blocking controlled integrations.\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setCurrentValue(e.target.value)\n onChange?.(e)\n },\n [onChange, setCurrentValue]\n )\n\n // Reset the field value while preserving focus and controlled integrations.\n const handleClear = useCallback(() => {\n setCurrentValue('')\n\n const input = (ref as React.RefObject<HTMLInputElement>)?.current ?? inputRef.current\n if (input) {\n const nativeSet = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set\n nativeSet?.call(input, '')\n input.dispatchEvent(new Event('input', {bubbles: true}))\n }\n\n onClear?.()\n input?.focus()\n }, [onClear, ref, setCurrentValue])\n\n const prependSlots = normalizeSlots(prepend)\n const appendSlots = normalizeSlots(append)\n\n return (\n <div className={cn('input-group', resolvedColorClass, fullWidth && 'full-width', className)} style={style}>\n {label && (\n <label\n htmlFor={id}\n className={cn(\n 'field-label',\n focused && 'focused',\n hasError && 'error',\n required && 'required',\n labelClassName\n )}\n >\n {label}\n </label>\n )}\n\n <div\n className={cn(\n 'container',\n `field-${size}`,\n focused && 'focused',\n hasError && 'has-error',\n disabled && 'disabled',\n effectClassName\n )}\n onPointerDown={handlePointerDown}\n >\n {effectLayer}\n {prependSlots.map((slot, i) => renderSlot(slot, 'prepend', i, color))}\n\n <input\n ref={ref ?? inputRef}\n type={type}\n value={currentValue}\n name={name}\n id={id}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n autoFocus={autoFocus}\n autoComplete={autoComplete}\n inputMode={inputMode}\n maxLength={maxLength}\n className={cn('field', inputClassName)}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={onKeyDown}\n aria-invalid={hasError || undefined}\n aria-describedby={errorText ? `${id}-error` : helperText ? `${id}-helper` : undefined}\n />\n\n {loading && (\n <span className={'spinner-addon'}>\n <MSpinner size=\"sm\" color={color} />\n </span>\n )}\n\n {clearable && hasContent && !loading && !disabled && (\n <button\n type=\"button\"\n className=\"clear-btn clear-btn-base\"\n onClick={handleClear}\n tabIndex={-1}\n aria-label=\"Clear input\"\n >\n <MCloseIcon />\n </button>\n )}\n\n {appendSlots.map((slot, i) => renderSlot(slot, 'append', i, color))}\n </div>\n\n {(errorText || helperText) && (\n <div className={'bottom'}>\n {errorText && (\n <span id={id ? `${id}-error` : undefined} className={'field-error'} role=\"alert\">\n {errorText}\n </span>\n )}\n {!errorText && helperText && (\n <span id={id ? `${id}-helper` : undefined} className={'field-helper'}>\n {helperText}\n </span>\n )}\n </div>\n )}\n </div>\n )\n})\n","import {forwardRef, useCallback, useMemo, useState} from 'react'\nimport type * as React from 'react'\nimport type {MInputPostCodeProps} from './MInputPostCode.types'\nimport {MInputGroup} from '../MInputGroup'\nimport {cn} from '../../../utils/cn'\nimport {formatPostCode, getPostCodeRule, postCodeCountries, validatePostCode} from '../../../utils/postalCodes'\nimport type {ValidationResult} from '../../../utils/validators'\nimport './MInputPostCode.css'\n\n// Extend the grouped input with country-aware postal code masking and validation.\nexport const MInputPostCode = forwardRef<HTMLInputElement, MInputPostCodeProps>(function MInputPostCode(\n {\n country,\n defaultCountry = 'PL',\n selectableCountry = true,\n validateOnBlur = true,\n validateOnChange = false,\n onCountryChange,\n onValidationChange,\n onValueChange,\n value,\n defaultValue,\n onChange,\n onBlur,\n error,\n errorText,\n helperText,\n placeholder,\n className,\n disabled = false,\n ...rest\n },\n ref\n) {\n const [internalCountry, setInternalCountry] = useState(defaultCountry.toUpperCase())\n const [internalValue, setInternalValue] = useState(() =>\n formatPostCode(defaultValue?.toString() ?? '', country ?? defaultCountry)\n )\n const [validation, setValidation] = useState<ValidationResult>({valid: true})\n const [touched, setTouched] = useState(false)\n\n const currentCountry = (country ?? internalCountry).toUpperCase()\n const currentRule = useMemo(() => getPostCodeRule(currentCountry), [currentCountry])\n const currentValue = value !== undefined ? formatPostCode(value.toString(), currentCountry) : internalValue\n\n const runValidation = useCallback(\n (formattedValue: string, nextCountry: string) => {\n const result = validatePostCode(formattedValue, nextCountry)\n setValidation(result)\n onValidationChange?.(result)\n return result\n },\n [onValidationChange]\n )\n\n // Keep the visible postal code aligned with the selected country rule.\n const handleChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const formattedValue = formatPostCode(event.target.value, currentCountry)\n\n if (value === undefined) {\n setInternalValue(formattedValue)\n }\n\n onValueChange?.(formattedValue.replace(/\\s|-/g, ''), formattedValue, currentCountry)\n\n if (validateOnChange && touched) {\n runValidation(formattedValue, currentCountry)\n }\n\n onChange?.(event)\n },\n [currentCountry, onChange, onValueChange, runValidation, touched, validateOnChange, value]\n )\n\n // Re-run validation after blur so the visible formatting and error state stay in sync.\n const handleBlur = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true)\n\n if (validateOnBlur && currentValue) {\n runValidation(currentValue, currentCountry)\n }\n\n onBlur?.(event)\n },\n [currentCountry, currentValue, onBlur, runValidation, validateOnBlur]\n )\n\n // Switch the formatter and validation rule whenever the selected country changes.\n const handleCountryChange = useCallback(\n (event: React.ChangeEvent<HTMLSelectElement>) => {\n const nextCountry = event.target.value.toUpperCase()\n const formattedValue = formatPostCode(currentValue, nextCountry)\n\n if (country === undefined) {\n setInternalCountry(nextCountry)\n }\n\n if (value === undefined) {\n setInternalValue(formattedValue)\n }\n\n onCountryChange?.(nextCountry)\n\n if (touched) {\n runValidation(formattedValue, nextCountry)\n }\n },\n [country, currentValue, onCountryChange, runValidation, touched, value]\n )\n\n const isError = error || (touched && !validation.valid)\n const resolvedErrorText = errorText || (touched && !validation.valid ? validation.error : undefined)\n\n return (\n <MInputGroup\n {...rest}\n ref={ref}\n type=\"text\"\n inputMode={currentRule.inputMode}\n value={currentValue}\n onChange={handleChange}\n onBlur={handleBlur}\n error={isError}\n errorText={resolvedErrorText}\n helperText={resolvedErrorText ? undefined : (helperText ?? `Format: ${currentRule.example}`)}\n placeholder={placeholder ?? currentRule.placeholder}\n maxLength={currentRule.maxLength}\n disabled={disabled}\n prepend={\n selectableCountry ? (\n <div className=\"country-select-wrap\">\n <select\n className=\"country-select\"\n value={currentCountry}\n onChange={handleCountryChange}\n disabled={disabled}\n aria-label=\"Postal code country\"\n >\n {postCodeCountries.map((option) => (\n <option key={option.value} value={option.value}>\n {option.value}\n </option>\n ))}\n </select>\n </div>\n ) : (\n {type: 'text', content: currentCountry}\n )\n }\n className={cn('input-post-code', className)}\n />\n )\n})\n","import {useState, useCallback, useRef, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputOTPProps} from './MInputOTP.types'\nimport {cn} from '../../../utils/cn'\nimport {MCloseIcon} from '../../../icons'\nimport './MInputOTP.css'\n\nexport const MInputOTP = forwardRef<HTMLDivElement, MInputOTPProps>(function MInputOTP(\n {\n length = 6,\n value,\n onChange,\n autoFocus = false,\n disabled = false,\n color = 'primary',\n size = 'md',\n error = false,\n errorText,\n clearable = false,\n label,\n onClear,\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState('')\n const currentValue = value !== undefined ? value : internalValue\n const inputsRef = useRef<(HTMLInputElement | null)[]>([])\n const resolvedColorClass = error ? 'color-error' : `color-${color}`\n\n const updateValue = useCallback(\n (newVal: string) => {\n if (value === undefined) setInternalValue(newVal)\n onChange?.(newVal)\n },\n [value, onChange]\n )\n\n const focusSlot = useCallback(\n (index: number) => {\n const clamped = Math.max(0, Math.min(index, length - 1))\n inputsRef.current[clamped]?.focus()\n },\n [length]\n )\n\n useEffect(() => {\n if (autoFocus) focusSlot(0)\n }, [autoFocus, focusSlot])\n\n const handleInput = useCallback(\n (index: number, char: string) => {\n if (!/^\\d$/.test(char)) return\n const chars = currentValue.split('')\n while (chars.length <= index) chars.push('')\n chars[index] = char\n updateValue(chars.join(''))\n if (index < length - 1) focusSlot(index + 1)\n },\n [currentValue, length, updateValue, focusSlot]\n )\n\n const handleKeyDown = useCallback(\n (index: number, e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Backspace') {\n e.preventDefault()\n const chars = currentValue.split('')\n if (chars[index]) {\n chars[index] = ''\n updateValue(chars.join(''))\n } else if (index > 0) {\n chars[index - 1] = ''\n updateValue(chars.join(''))\n focusSlot(index - 1)\n }\n } else if (e.key === 'ArrowLeft') {\n e.preventDefault()\n if (index > 0) focusSlot(index - 1)\n } else if (e.key === 'ArrowRight') {\n e.preventDefault()\n if (index < length - 1) focusSlot(index + 1)\n }\n },\n [currentValue, length, updateValue, focusSlot]\n )\n\n const handlePaste = useCallback(\n (e: React.ClipboardEvent) => {\n e.preventDefault()\n const pasted = e.clipboardData.getData('text').replace(/\\D/g, '').slice(0, length)\n if (pasted) {\n updateValue(pasted)\n focusSlot(Math.min(pasted.length, length - 1))\n }\n },\n [length, updateValue, focusSlot]\n )\n\n const handleClear = useCallback(() => {\n updateValue('')\n onClear?.()\n focusSlot(0)\n }, [focusSlot, onClear, updateValue])\n\n return (\n <div\n ref={ref}\n className={cn('otp input', resolvedColorClass, size, disabled && 'disabled', className)}\n {...rest}\n >\n {label && <div className=\"otp label\">{label}</div>}\n <div className=\"otp control\">\n <div className=\"otp slots\" onPaste={handlePaste}>\n {Array.from({length}, (_, i) => (\n <input\n key={i}\n ref={(el) => {\n inputsRef.current[i] = el\n }}\n type=\"text\"\n inputMode=\"numeric\"\n maxLength={1}\n value={currentValue[i] || ''}\n disabled={disabled}\n className={cn('otp slot', currentValue[i] && 'filled')}\n aria-label={`Digit ${i + 1}`}\n onChange={(e) => {\n const char = e.target.value.slice(-1)\n handleInput(i, char)\n }}\n onKeyDown={(e) => handleKeyDown(i, e)}\n onFocus={(e) => e.target.select()}\n />\n ))}\n </div>\n {clearable && currentValue.length > 0 && !disabled && (\n <button\n type=\"button\"\n className=\"otp clear clear-btn-base\"\n onClick={handleClear}\n aria-label=\"Clear code\"\n >\n <MCloseIcon />\n </button>\n )}\n </div>\n {error && errorText && <div className=\"otp error\">{errorText}</div>}\n </div>\n )\n})\n","import {useState, useCallback, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputSliderProps} from './MInputSlider.types'\nimport {MSlider} from '../../controls'\nimport {cn} from '../../../utils/cn'\nimport './MInputSlider.css'\n\nfunction clampValue(val: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, val))\n}\n\nfunction roundToPrecision(val: number, precision: number): number {\n const factor = Math.pow(10, precision)\n return Math.round(val * factor) / factor\n}\n\nexport const MInputSlider = forwardRef<HTMLDivElement, MInputSliderProps>(function MInputSlider(\n {\n min = 0,\n max = 100,\n step = 1,\n value,\n onChange,\n precision = 0,\n marks,\n showInput = true,\n color = 'primary',\n size = 'md',\n disabled = false,\n label,\n className,\n ...rest\n },\n ref\n) {\n const [internalValue, setInternalValue] = useState(min)\n const currentValue = value !== undefined ? value : internalValue\n\n const update = useCallback(\n (newVal: number) => {\n const clamped = roundToPrecision(clampValue(newVal, min, max), precision)\n if (value === undefined) setInternalValue(clamped)\n onChange?.(clamped)\n },\n [min, max, precision, value, onChange]\n )\n\n const handleSliderChange = useCallback((val: number) => update(val), [update])\n\n const handleInputChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const raw = e.target.value\n if (raw === '' || raw === '-') return\n const num = parseFloat(raw)\n if (!isNaN(num)) update(num)\n },\n [update]\n )\n\n const handleBlur = useCallback(() => {\n update(currentValue)\n }, [currentValue, update])\n\n return (\n <div ref={ref} className={cn('slider input', size, disabled && 'disabled', className)} {...rest}>\n {label && <div className=\"slider label\">{label}</div>}\n <div className=\"slider row\">\n <MSlider\n min={min}\n max={max}\n step={step}\n value={currentValue}\n onChange={handleSliderChange}\n marks={marks}\n color={color}\n disabled={disabled}\n />\n {showInput && (\n <input\n type=\"text\"\n inputMode=\"decimal\"\n className={cn('slider field', `color-${color}`)}\n value={currentValue}\n onChange={handleInputChange}\n onBlur={handleBlur}\n disabled={disabled}\n aria-label={label || 'MSlider value'}\n />\n )}\n </div>\n </div>\n )\n})\n","import {useState, useRef, useCallback, useEffect} from 'react'\nimport type * as React from 'react'\nimport type {MInputFileCropShape} from './MInputFile.types'\nimport {MButton, MSlider} from '../../controls'\nimport {MZoomInIcon} from '../../../icons'\nimport './MCropEditor.css'\n\ninterface MCropEditorProps {\n file: File\n shape: MInputFileCropShape\n outputSize: number\n quality: number\n onCrop: (cropped: File) => void\n onCancel: () => void\n}\n\nexport function MCropEditor({file, shape, outputSize, quality, onCrop, onCancel}: MCropEditorProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null)\n const containerRef = useRef<HTMLDivElement>(null)\n const imgRef = useRef<HTMLImageElement | null>(null)\n const [imgSrc, setImgSrc] = useState('')\n const [scale, setScale] = useState(1)\n const [offset, setOffset] = useState({x: 0, y: 0})\n const [dragging, setDragging] = useState(false)\n const dragStart = useRef({x: 0, y: 0, ox: 0, oy: 0})\n\n useEffect(() => {\n const url = URL.createObjectURL(file)\n setImgSrc(url)\n return () => URL.revokeObjectURL(url)\n }, [file])\n\n useEffect(() => {\n if (!imgSrc) return\n const img = new Image()\n img.onload = () => {\n imgRef.current = img\n const minDim = Math.min(img.width, img.height)\n const containerSize = 280\n const initialScale = containerSize / minDim\n setScale(initialScale)\n setOffset({\n x: (containerSize - img.width * initialScale) / 2,\n y: (containerSize - img.height * initialScale) / 2,\n })\n }\n img.src = imgSrc\n }, [imgSrc])\n\n const handlePointerDown = useCallback(\n (e: React.PointerEvent) => {\n e.preventDefault()\n setDragging(true)\n dragStart.current = {x: e.clientX, y: e.clientY, ox: offset.x, oy: offset.y}\n ;(e.target as HTMLElement).setPointerCapture(e.pointerId)\n },\n [offset]\n )\n\n const handlePointerMove = useCallback(\n (e: React.PointerEvent) => {\n if (!dragging) return\n setOffset({\n x: dragStart.current.ox + (e.clientX - dragStart.current.x),\n y: dragStart.current.oy + (e.clientY - dragStart.current.y),\n })\n },\n [dragging]\n )\n\n const handlePointerUp = useCallback(() => {\n setDragging(false)\n }, [])\n\n const handleWheel = useCallback(\n (e: React.WheelEvent) => {\n e.preventDefault()\n const containerSize = 280\n const cx = containerSize / 2\n const cy = containerSize / 2\n\n const delta = e.deltaY > 0 ? 0.95 : 1.05\n const newScale = Math.max(0.1, Math.min(scale * delta, 10))\n\n setOffset({\n x: cx - (cx - offset.x) * (newScale / scale),\n y: cy - (cy - offset.y) * (newScale / scale),\n })\n setScale(newScale)\n },\n [scale, offset]\n )\n\n const handleSliderChange = useCallback(\n (newScale: number) => {\n const containerSize = 280\n const cx = containerSize / 2\n const cy = containerSize / 2\n\n setOffset({\n x: cx - (cx - offset.x) * (newScale / scale),\n y: cy - (cy - offset.y) * (newScale / scale),\n })\n setScale(newScale)\n },\n [scale, offset]\n )\n\n const exportCrop = useCallback(() => {\n const img = imgRef.current\n const canvas = canvasRef.current\n if (!img || !canvas) return\n\n const containerSize = 280\n canvas.width = outputSize\n canvas.height = outputSize\n const ctx = canvas.getContext('2d')\n if (!ctx) return\n\n const ratio = outputSize / containerSize\n\n if (shape === 'circle') {\n ctx.beginPath()\n ctx.arc(outputSize / 2, outputSize / 2, outputSize / 2, 0, Math.PI * 2)\n ctx.closePath()\n ctx.clip()\n }\n\n ctx.drawImage(img, offset.x * ratio, offset.y * ratio, img.width * scale * ratio, img.height * scale * ratio)\n\n canvas.toBlob(\n (blob) => {\n if (!blob) return\n const ext = file.name.replace(/.*\\./, '')\n const name = file.name.replace(/\\.[^.]+$/, '') + '_cropped.' + ext\n const cropped = new File([blob], name, {type: blob.type})\n onCrop(cropped)\n },\n file.type.startsWith('image/png') ? 'image/png' : 'image/jpeg',\n quality\n )\n }, [file, offset, scale, outputSize, quality, shape, onCrop])\n\n // Convert scale to 0-100 range for MSlider and back\n const sliderValue = Math.round(((scale - 0.1) / (5 - 0.1)) * 100)\n\n const handleSliderValueChange = useCallback(\n (value: number) => {\n const newScale = 0.1 + (value / 100) * (5 - 0.1)\n handleSliderChange(newScale)\n },\n [handleSliderChange]\n )\n\n return (\n <div className=\"crop editor\">\n <div\n ref={containerRef}\n className={`crop viewport ${shape}`}\n onPointerDown={handlePointerDown}\n onPointerMove={handlePointerMove}\n onPointerUp={handlePointerUp}\n onWheel={handleWheel}\n >\n {imgSrc && (\n <img\n src={imgSrc}\n alt=\"\"\n className=\"crop image\"\n draggable={false}\n style={{\n transform: `translate(${offset.x}px, ${offset.y}px) scale(${scale})`,\n transformOrigin: '0 0',\n }}\n />\n )}\n <div className={`crop overlay ${shape}`} />\n </div>\n\n <div className=\"crop zoom\">\n <MZoomInIcon className=\"crop zoom icon\" aria-hidden=\"true\" />\n <MSlider\n min={0}\n max={100}\n step={1}\n value={sliderValue}\n onChange={handleSliderValueChange}\n color=\"primary\"\n className=\"crop zoom slider\"\n />\n </div>\n\n <div className=\"crop actions\">\n <MButton variant=\"ghost\" size=\"sm\" color=\"neutral\" onClick={onCancel}>\n Cancel\n </MButton>\n <MButton variant=\"ghost\" size=\"sm\" color=\"primary\" onClick={exportCrop}>\n Crop\n </MButton>\n </div>\n\n <canvas ref={canvasRef} style={{display: 'none'}} />\n </div>\n )\n}\n","import {useState, useCallback, useRef, useMemo, useEffect, forwardRef} from 'react'\nimport type * as React from 'react'\nimport type {MInputFileProps, MInputFileCropOptions} from './MInputFile.types'\nimport {MCropEditor} from './MCropEditor'\nimport {cn} from '../../../utils/cn'\nimport {\n MCloseIcon,\n MFileArchiveIcon,\n MFileCodeIcon,\n MFileDocsIcon,\n MFileExeIcon,\n MFileIcon,\n MFileImageIcon,\n MFileJsonIcon,\n MFileMdIcon,\n MFileMp3Icon,\n MFileMp4Icon,\n MFileOdtIcon,\n MFilePdfIcon,\n MFileTextIcon,\n MFileXlsIcon,\n MFileZipIcon,\n MUploadIcon,\n} from '../../../icons'\nimport './MInputFile.css'\n\nfunction formatSize(bytes: number): string {\n if (bytes < 1024) return `${bytes} B`\n if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`\n return `${(bytes / (1024 * 1024)).toFixed(1)} MB`\n}\n\nfunction fileExtension(name: string): string {\n const dot = name.lastIndexOf('.')\n return dot >= 0 ? name.slice(dot + 1).toUpperCase() : ''\n}\n\nfunction isImage(file: File): boolean {\n return file.type.startsWith('image/')\n}\n\nfunction FileTypeIcon({ext}: {ext: string}) {\n const name = ext.toLowerCase()\n\n if (name === 'pdf') return <MFilePdfIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].includes(name)) {\n return <MFileImageIcon className=\"file type icon\" aria-hidden=\"true\" />\n }\n if (['json'].includes(name)) return <MFileJsonIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['js', 'jsx', 'ts', 'tsx', 'html', 'css', 'php', 'xml'].includes(name)) {\n return <MFileCodeIcon className=\"file type icon\" aria-hidden=\"true\" />\n }\n if (['txt'].includes(name)) return <MFileTextIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['md'].includes(name)) return <MFileMdIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['docs', 'doc', 'docx'].includes(name)) return <MFileDocsIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['odt'].includes(name)) return <MFileOdtIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['csv', 'xls', 'xlsx'].includes(name)) return <MFileXlsIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['zip'].includes(name)) return <MFileZipIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['rar', '7z', 'tar', 'gz'].includes(name))\n return <MFileArchiveIcon className=\"file type icon\" aria-hidden=\"true\" />\n if (['mp3', 'wav', 'ogg'].includes(name)) return <MFileMp3Icon className=\"file type icon\" aria-hidden=\"true\" />\n if (['mp4', 'mov', 'avi', 'mkv', 'webm'].includes(name)) {\n return <MFileMp4Icon className=\"file type icon\" aria-hidden=\"true\" />\n }\n if (['exe', 'msi', 'bat'].includes(name)) return <MFileExeIcon className=\"file type icon\" aria-hidden=\"true\" />\n\n return <MFileIcon className=\"file type icon\" aria-hidden=\"true\" />\n}\n\nexport const MInputFile = forwardRef<HTMLDivElement, MInputFileProps>(function MInputFile(\n {\n accept,\n multiple = false,\n maxSize,\n maxFiles,\n onChange,\n label,\n helperText,\n errorText,\n error = false,\n disabled = false,\n color = 'primary',\n size = 'md',\n preview = true,\n clearable = false,\n icon,\n placeholder = 'Drop files here or click to browse',\n dropText = 'Drop files here',\n fullWidth = false,\n crop,\n onClear,\n className,\n ...rest\n },\n ref\n) {\n const [dragging, setDragging] = useState(false)\n const [files, setFiles] = useState<File[]>([])\n const [fileError, setFileError] = useState('')\n const [cropFile, setCropFile] = useState<File | null>(null)\n const inputRef = useRef<HTMLInputElement>(null)\n const dragCounter = useRef(0)\n\n const cropOptions: MInputFileCropOptions | null = crop\n ? typeof crop === 'boolean'\n ? {shape: 'square', outputSize: 256, quality: 0.92}\n : {shape: crop.shape ?? 'square', outputSize: crop.outputSize ?? 256, quality: crop.quality ?? 0.92}\n : null\n\n const objectUrls = useMemo(() => {\n return files.map((f) => (isImage(f) ? URL.createObjectURL(f) : null))\n }, [files])\n\n useEffect(() => {\n return () => {\n objectUrls.forEach((url) => {\n if (url) URL.revokeObjectURL(url)\n })\n }\n }, [objectUrls])\n\n const processFiles = useCallback(\n (incoming: FileList | File[]) => {\n let accepted = Array.from(incoming)\n\n if (accept) {\n const patterns = accept.split(',').map((s) => s.trim().toLowerCase())\n accepted = accepted.filter((f) => {\n const ext = '.' + f.name.split('.').pop()?.toLowerCase()\n const mime = f.type.toLowerCase()\n return patterns.some(\n (p) => p === ext || p === mime || (p.endsWith('/*') && mime.startsWith(p.slice(0, -1)))\n )\n })\n }\n\n if (maxSize) {\n const oversized = accepted.filter((f) => f.size > maxSize)\n if (oversized.length) {\n setFileError(`Max file size: ${formatSize(maxSize)}`)\n return\n }\n }\n\n if (maxFiles && accepted.length > maxFiles) {\n setFileError(`Max ${maxFiles} file${maxFiles > 1 ? 's' : ''}`)\n return\n }\n\n setFileError('')\n\n if (cropOptions && accepted.length === 1 && isImage(accepted[0])) {\n setCropFile(accepted[0])\n return\n }\n\n setFiles(accepted)\n onChange?.(accepted)\n },\n [accept, maxSize, maxFiles, onChange, cropOptions]\n )\n\n const handleCropDone = useCallback(\n (cropped: File) => {\n setCropFile(null)\n setFiles([cropped])\n onChange?.([cropped])\n },\n [onChange]\n )\n\n const handleCropCancel = useCallback(() => {\n setCropFile(null)\n }, [])\n\n const handleDragEnter = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault()\n e.stopPropagation()\n if (disabled) return\n dragCounter.current++\n setDragging(true)\n },\n [disabled]\n )\n\n const handleDragLeave = useCallback((e: React.DragEvent) => {\n e.preventDefault()\n e.stopPropagation()\n dragCounter.current--\n if (dragCounter.current <= 0) {\n dragCounter.current = 0\n setDragging(false)\n }\n }, [])\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault()\n e.stopPropagation()\n }, [])\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault()\n e.stopPropagation()\n dragCounter.current = 0\n setDragging(false)\n if (disabled) return\n if (e.dataTransfer.files.length) {\n processFiles(e.dataTransfer.files)\n }\n },\n [disabled, processFiles]\n )\n\n const handleClick = useCallback(() => {\n if (!disabled) inputRef.current?.click()\n }, [disabled])\n\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (e.target.files?.length) {\n processFiles(e.target.files)\n }\n },\n [processFiles]\n )\n\n const removeFile = useCallback(\n (index: number) => {\n const url = objectUrls[index]\n if (url) URL.revokeObjectURL(url)\n const next = files.filter((_, i) => i !== index)\n setFiles(next)\n onChange?.(next)\n },\n [files, objectUrls, onChange]\n )\n\n const clearFiles = useCallback(() => {\n objectUrls.forEach((url) => {\n if (url) URL.revokeObjectURL(url)\n })\n setCropFile(null)\n setFiles([])\n setFileError('')\n if (inputRef.current) {\n inputRef.current.value = ''\n }\n onChange?.([])\n onClear?.()\n }, [objectUrls, onChange, onClear])\n\n const displayError = errorText || fileError\n const hasError = error || !!fileError\n const resolvedColorClass = hasError ? 'color-error' : `color-${color}`\n\n return (\n <div\n ref={ref}\n className={cn(\n 'file input',\n resolvedColorClass,\n size,\n fullWidth && 'full-width',\n disabled && 'disabled',\n className\n )}\n {...rest}\n >\n {(label || (clearable && files.length > 0 && !disabled)) && (\n <div className=\"file header\">\n {label && <div className=\"file label\">{label}</div>}\n {clearable && files.length > 0 && !disabled && (\n <button\n type=\"button\"\n className=\"file clear clear-btn-base\"\n onClick={clearFiles}\n aria-label=\"Clear files\"\n >\n <MCloseIcon aria-hidden=\"true\" />\n </button>\n )}\n </div>\n )}\n\n <div\n className={cn('file dropzone', dragging && 'dragging', hasError && 'error')}\n onClick={handleClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n role=\"button\"\n tabIndex={disabled ? -1 : 0}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n handleClick()\n }\n }}\n aria-label={label || placeholder}\n >\n <input\n ref={inputRef}\n type=\"file\"\n accept={accept}\n multiple={multiple}\n onChange={handleChange}\n tabIndex={-1}\n className=\"file hidden\"\n />\n\n <div className=\"file content\">\n {icon && <div className=\"file icon\">{icon}</div>}\n {!icon && <MUploadIcon className=\"file icon default\" aria-hidden=\"true\" />}\n <div className=\"file text\">{dragging ? dropText : placeholder}</div>\n {accept && <div className=\"file accept\">{accept}</div>}\n </div>\n </div>\n\n {cropFile && cropOptions && (\n <MCropEditor\n file={cropFile}\n shape={cropOptions.shape!}\n outputSize={cropOptions.outputSize!}\n quality={cropOptions.quality!}\n onCrop={handleCropDone}\n onCancel={handleCropCancel}\n />\n )}\n\n {helperText && !hasError && <div className=\"file helper\">{helperText}</div>}\n {hasError && displayError && <div className=\"file error\">{displayError}</div>}\n\n {preview && files.length > 0 && !cropFile && (\n <div className=\"file preview\">\n {files.map((file, i) => (\n <div key={`${file.name}-${i}`} className=\"file item\">\n <div className=\"file thumb\">\n {objectUrls[i] ? (\n <img src={objectUrls[i]!} alt={file.name} className=\"file image\" />\n ) : (\n <FileTypeIcon ext={fileExtension(file.name)} />\n )}\n </div>\n <div className=\"file info\">\n <span className=\"file name\">{file.name}</span>\n <span className=\"file size\">{formatSize(file.size)}</span>\n </div>\n <button\n type=\"button\"\n className=\"file remove\"\n onClick={(e) => {\n e.stopPropagation()\n removeFile(i)\n }}\n aria-label={`Remove ${file.name}`}\n >\n <MCloseIcon aria-hidden=\"true\" />\n </button>\n </div>\n ))}\n </div>\n )}\n </div>\n )\n})\n"],"mappings":"4oBAUA,IAAa,GAAA,EAAA,EAAA,YAA4D,SACrE,CACI,QACA,eACA,OACA,KACA,cACA,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,OAAO,EACP,aAAa,GACb,UACA,UACA,UAAU,WACV,OAAO,KACP,QACA,YAAY,GACZ,QACA,aACA,YACA,QAAQ,GACR,UAAU,GACV,YACA,gBAAgB,GAChB,eACA,gBAAgB,EAChB,gBACA,UAAU,GACV,WACA,UACA,SACA,YACA,QACA,oBACA,kBAEJ,EACF,CACE,GAAM,CAAC,EAAS,IAAA,EAAA,EAAA,UAAuB,GAAM,CACvC,GAAA,EAAA,EAAA,QAA0C,KAAK,CAE/C,CAAC,eAAc,mBAAmB,EAAA,EAAsB,EAAO,EAAa,CAC5E,EAAQ,EAAA,EAAa,CACvB,QAAS,GAAgB,EAAE,CAC3B,MAAO,EACP,SAAU,EACb,CAAC,CACI,EAAW,GAAS,CAAC,CAAC,EACtB,GAAqB,EAAW,cAAgB,EAAQ,SAAS,IAAU,IAAA,GAC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