@banzamel/mineralui 1.6.3 → 1.7.1

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 (306) hide show
  1. package/README.md +1 -1
  2. package/dist/{MAvatar-BVJh6kgW.cjs → MAvatar-CV3xJOmx.cjs} +2 -2
  3. package/dist/{MAvatar-BVJh6kgW.cjs.map → MAvatar-CV3xJOmx.cjs.map} +1 -1
  4. package/dist/{MBadge-B4x-Lx7e.cjs → MBadge-BoxsfX_h.cjs} +2 -2
  5. package/dist/{MBadge-B4x-Lx7e.cjs.map → MBadge-BoxsfX_h.cjs.map} +1 -1
  6. package/dist/{MButton-DrkVdRDy.cjs → MButton-B9k45kH-.cjs} +2 -2
  7. package/dist/{MButton-DrkVdRDy.cjs.map → MButton-B9k45kH-.cjs.map} +1 -1
  8. package/dist/{MCheckbox-C40ESQRe.cjs → MCheckbox-CdDWGVp3.cjs} +2 -2
  9. package/dist/{MCheckbox-C40ESQRe.cjs.map → MCheckbox-CdDWGVp3.cjs.map} +1 -1
  10. package/dist/MDataTable-C3v15no3.cjs +2 -0
  11. package/dist/MDataTable-C3v15no3.cjs.map +1 -0
  12. package/dist/MDataTable-C_XiTGTF.js +297 -0
  13. package/dist/MDataTable-C_XiTGTF.js.map +1 -0
  14. package/dist/{MDrawer-DFkrFrnD.cjs → MDrawer-BtA_Xgj0.cjs} +2 -2
  15. package/dist/{MDrawer-DFkrFrnD.cjs.map → MDrawer-BtA_Xgj0.cjs.map} +1 -1
  16. package/dist/{MDropdownMenu-D79Cm5aS.js → MDropdownMenu-BWgf92rJ.js} +5 -5
  17. package/dist/MDropdownMenu-BWgf92rJ.js.map +1 -0
  18. package/dist/MDropdownMenu-mGE19gCi.cjs +2 -0
  19. package/dist/MDropdownMenu-mGE19gCi.cjs.map +1 -0
  20. package/dist/{MGalleryIllustration-BB3DoCl_.cjs → MGalleryIllustration-D2agVuZM.cjs} +2 -2
  21. package/dist/{MGalleryIllustration-BB3DoCl_.cjs.map → MGalleryIllustration-D2agVuZM.cjs.map} +1 -1
  22. package/dist/{MHeading-BhCNoJeW.cjs → MHeading-BQCe_JhE.cjs} +2 -2
  23. package/dist/{MHeading-BhCNoJeW.cjs.map → MHeading-BQCe_JhE.cjs.map} +1 -1
  24. package/dist/{MI18nProvider-B2sE0x5D.cjs → MI18nProvider-CqAwaswx.cjs} +2 -2
  25. package/dist/{MI18nProvider-B2sE0x5D.cjs.map → MI18nProvider-CqAwaswx.cjs.map} +1 -1
  26. package/dist/{MImage-gwFphZk2.js → MImage-I0LPhcqF.js} +75 -69
  27. package/dist/MImage-I0LPhcqF.js.map +1 -0
  28. package/dist/MImage-hnSqIPaC.cjs +2 -0
  29. package/dist/MImage-hnSqIPaC.cjs.map +1 -0
  30. package/dist/{MInline-CHrh3PHH.cjs → MInline-FEXWkr71.cjs} +2 -2
  31. package/dist/{MInline-CHrh3PHH.cjs.map → MInline-FEXWkr71.cjs.map} +1 -1
  32. package/dist/{MInput-DYqV3-rQ.cjs → MInput-5-alcVsu.cjs} +2 -2
  33. package/dist/{MInput-DYqV3-rQ.cjs.map → MInput-5-alcVsu.cjs.map} +1 -1
  34. package/dist/{MInput-bzSwK880.js → MInput-CNSvoRiu.js} +2 -1
  35. package/dist/{MInput-bzSwK880.js.map → MInput-CNSvoRiu.js.map} +1 -1
  36. package/dist/{MInputCVC-BHpMHTO5.js → MInputCVC-BgougfgN.js} +3 -3
  37. package/dist/{MInputCVC-BHpMHTO5.js.map → MInputCVC-BgougfgN.js.map} +1 -1
  38. package/dist/{MInputCVC-5NkYSxV8.cjs → MInputCVC-CRWp1fYi.cjs} +2 -2
  39. package/dist/{MInputCVC-5NkYSxV8.cjs.map → MInputCVC-CRWp1fYi.cjs.map} +1 -1
  40. package/dist/{MInputSearch-Dh4C3Tz5.js → MInputSearch-BwR-BPh2.js} +2 -2
  41. package/dist/{MInputSearch-Dh4C3Tz5.js.map → MInputSearch-BwR-BPh2.js.map} +1 -1
  42. package/dist/{MInputSearch-DfoenJIm.cjs → MInputSearch-X9yNPuTf.cjs} +2 -2
  43. package/dist/{MInputSearch-DfoenJIm.cjs.map → MInputSearch-X9yNPuTf.cjs.map} +1 -1
  44. package/dist/{MLink-CY45UR_j.cjs → MLink-BakLkpKp.cjs} +2 -2
  45. package/dist/{MLink-CY45UR_j.cjs.map → MLink-BakLkpKp.cjs.map} +1 -1
  46. package/dist/{MModal-DT5BBgNZ.cjs → MModal-BYuPCSLG.cjs} +2 -2
  47. package/dist/{MModal-DT5BBgNZ.cjs.map → MModal-BYuPCSLG.cjs.map} +1 -1
  48. package/dist/{MModal-BDTAgnrm.js → MModal-K73juXhN.js} +2 -2
  49. package/dist/{MModal-BDTAgnrm.js.map → MModal-K73juXhN.js.map} +1 -1
  50. package/dist/{MPagination-CZEJMJzZ.cjs → MPagination-B8BcGks_.cjs} +2 -2
  51. package/dist/{MPagination-CZEJMJzZ.cjs.map → MPagination-B8BcGks_.cjs.map} +1 -1
  52. package/dist/{MPagination-CTnaW5AW.js → MPagination-BdBpF3Px.js} +1 -1
  53. package/dist/{MPagination-CTnaW5AW.js.map → MPagination-BdBpF3Px.js.map} +1 -1
  54. package/dist/{MPopover-B4IUb9f0.cjs → MPopover-DfEiRuM9.cjs} +2 -2
  55. package/dist/{MPopover-B4IUb9f0.cjs.map → MPopover-DfEiRuM9.cjs.map} +1 -1
  56. package/dist/{MPortal-Bi24xTGW.cjs → MPortal-CuBXhhl_.cjs} +2 -2
  57. package/dist/{MPortal-Bi24xTGW.cjs.map → MPortal-CuBXhhl_.cjs.map} +1 -1
  58. package/dist/{MQrCode-ByfmG33y.cjs → MQrCode-BXXTLtBP.cjs} +2 -2
  59. package/dist/{MQrCode-ByfmG33y.cjs.map → MQrCode-BXXTLtBP.cjs.map} +1 -1
  60. package/dist/{MSkeleton-DGhtNmpI.js → MSkeleton-BP7H_lsX.js} +2 -2
  61. package/dist/{MSkeleton-DGhtNmpI.js.map → MSkeleton-BP7H_lsX.js.map} +1 -1
  62. package/dist/{MSkeleton-5j1h9s95.cjs → MSkeleton-QO2sI-Ni.cjs} +2 -2
  63. package/dist/{MSkeleton-5j1h9s95.cjs.map → MSkeleton-QO2sI-Ni.cjs.map} +1 -1
  64. package/dist/{MSlider-Ch3VjAJC.cjs → MSlider-fhvfj0ft.cjs} +2 -2
  65. package/dist/{MSlider-Ch3VjAJC.cjs.map → MSlider-fhvfj0ft.cjs.map} +1 -1
  66. package/dist/{MSparkline-B6qpt5WM.cjs → MSparkline-CcM1n7Kh.cjs} +2 -2
  67. package/dist/{MSparkline-B6qpt5WM.cjs.map → MSparkline-CcM1n7Kh.cjs.map} +1 -1
  68. package/dist/{MStack-Bh-R2opf.cjs → MStack-Dy8Zl6FW.cjs} +2 -2
  69. package/dist/{MStack-Bh-R2opf.cjs.map → MStack-Dy8Zl6FW.cjs.map} +1 -1
  70. package/dist/{MSubText-C-70zn0m.cjs → MSubText-C1unzaCF.cjs} +2 -2
  71. package/dist/{MSubText-C-70zn0m.cjs.map → MSubText-C1unzaCF.cjs.map} +1 -1
  72. package/dist/{MSurface-DJYSftdM.js → MSurface-f_3vN0sd.js} +1 -1
  73. package/dist/{MSurface-DJYSftdM.js.map → MSurface-f_3vN0sd.js.map} +1 -1
  74. package/dist/{MSurface-CpiV1-7f.cjs → MSurface-wVqTsi1m.cjs} +2 -2
  75. package/dist/{MSurface-CpiV1-7f.cjs.map → MSurface-wVqTsi1m.cjs.map} +1 -1
  76. package/dist/MTabs-Dg31d-_D.js +89 -0
  77. package/dist/MTabs-Dg31d-_D.js.map +1 -0
  78. package/dist/MTabs-DuLqttVp.cjs +2 -0
  79. package/dist/MTabs-DuLqttVp.cjs.map +1 -0
  80. package/dist/{MTag-Y4Tswmli.cjs → MTag-CeLhZhqT.cjs} +2 -2
  81. package/dist/{MTag-Y4Tswmli.cjs.map → MTag-CeLhZhqT.cjs.map} +1 -1
  82. package/dist/{MText-DEJddMB5.cjs → MText-BbEkc0Ik.cjs} +2 -2
  83. package/dist/{MText-DEJddMB5.cjs.map → MText-BbEkc0Ik.cjs.map} +1 -1
  84. package/dist/{MTimeAgo-DxZGVo2Y.cjs → MTimeAgo-Dd0JQRGj.cjs} +2 -2
  85. package/dist/{MTimeAgo-DxZGVo2Y.cjs.map → MTimeAgo-Dd0JQRGj.cjs.map} +1 -1
  86. package/dist/{MToggle-C8vYRzpC.cjs → MToggle-BZSwJw_z.cjs} +2 -2
  87. package/dist/{MToggle-C8vYRzpC.cjs.map → MToggle-BZSwJw_z.cjs.map} +1 -1
  88. package/dist/{MTooltip-kSTMMpvu.cjs → MTooltip-BE0GcseJ.cjs} +2 -2
  89. package/dist/{MTooltip-kSTMMpvu.cjs.map → MTooltip-BE0GcseJ.cjs.map} +1 -1
  90. package/dist/{arduino-Eif5KI8O.js → arduino-5iMB2x4D.js} +1 -1
  91. package/dist/{arduino-Eif5KI8O.js.map → arduino-5iMB2x4D.js.map} +1 -1
  92. package/dist/{arduino-CXUo7Bjy.cjs → arduino-C1gw-z1N.cjs} +1 -1
  93. package/dist/{arduino-CXUo7Bjy.cjs.map → arduino-C1gw-z1N.cjs.map} +1 -1
  94. package/dist/{bash-CCF_TYbb.js → bash-CNKpaaFe.js} +1 -1
  95. package/dist/{bash-CCF_TYbb.js.map → bash-CNKpaaFe.js.map} +1 -1
  96. package/dist/{bash-W4h3o_nx.cjs → bash-wzZkpJC-.cjs} +1 -1
  97. package/dist/{bash-W4h3o_nx.cjs.map → bash-wzZkpJC-.cjs.map} +1 -1
  98. package/dist/{c-DVgkp6T3.js → c-BKjXPJPn.js} +1 -1
  99. package/dist/{c-DVgkp6T3.js.map → c-BKjXPJPn.js.map} +1 -1
  100. package/dist/{c-Dm60JY-W.cjs → c-BSPjDa0P.cjs} +1 -1
  101. package/dist/{c-Dm60JY-W.cjs.map → c-BSPjDa0P.cjs.map} +1 -1
  102. package/dist/{cards-fn61xD_5.js → cards-BYX8bM2l.js} +457 -307
  103. package/dist/cards-BYX8bM2l.js.map +1 -0
  104. package/dist/cards-lCx9oEVk.cjs +2 -0
  105. package/dist/cards-lCx9oEVk.cjs.map +1 -0
  106. package/dist/cards.cjs +1 -1
  107. package/dist/cards.js +3 -3
  108. package/dist/components/cards/MCardGrid/MCardGrid.d.ts +1 -1
  109. package/dist/components/cards/MCardGrid/MCardGrid.types.d.ts +21 -5
  110. package/dist/components/cards/MCardTile/MCardTile.d.ts +2 -0
  111. package/dist/components/cards/MCardTile/MCardTile.types.d.ts +28 -0
  112. package/dist/components/cards/MCardTile/index.d.ts +2 -0
  113. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.d.ts +1 -1
  114. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.types.d.ts +1 -3
  115. package/dist/components/cards/index.d.ts +2 -0
  116. package/dist/components/data/MCalendarBoard/MCalendarBoard.d.ts +8 -7
  117. package/dist/components/data/MCalendarBoard/MCalendarBoard.types.d.ts +75 -6
  118. package/dist/components/data/MCalendarBoard/index.d.ts +2 -2
  119. package/dist/components/data/MDataTable/MDataTable.d.ts +1 -1
  120. package/dist/components/data/MDataTable/MDataTable.types.d.ts +23 -0
  121. package/dist/components/data/MTreeView/MTreeView.d.ts +1 -1
  122. package/dist/components/data/MTreeView/MTreeView.types.d.ts +9 -1
  123. package/dist/components/data/index.d.ts +2 -2
  124. package/dist/components/display/MBlur/MBlur.d.ts +2 -0
  125. package/dist/components/display/MBlur/MBlur.types.d.ts +13 -0
  126. package/dist/components/display/MBlur/index.d.ts +2 -0
  127. package/dist/components/display/index.d.ts +2 -0
  128. package/dist/components/inputs/MInputIBAN/MInputIBAN.types.d.ts +3 -3
  129. package/dist/components/inputs/MInputPhone/MInputPhone.types.d.ts +2 -0
  130. package/dist/components/layout/MGrid/MGrid.d.ts +2 -2
  131. package/dist/components/layout/MGrid/MGrid.types.d.ts +2 -0
  132. package/dist/components/media/MImage/MImage.d.ts +1 -1
  133. package/dist/components/media/MImage/MImage.types.d.ts +6 -1
  134. package/dist/components/media/MMediaLightbox/MMediaLightbox.d.ts +1 -1
  135. package/dist/components/overlays/MTooltip/MTooltip.types.d.ts +2 -2
  136. package/dist/{controls-C5PtrGZf.cjs → controls-CZCxbJgq.cjs} +2 -2
  137. package/dist/{controls-C5PtrGZf.cjs.map → controls-CZCxbJgq.cjs.map} +1 -1
  138. package/dist/controls.cjs +1 -1
  139. package/dist/{core-CB9-PTLK.js → core-B8VC-Umz.js} +1 -1
  140. package/dist/{core-CB9-PTLK.js.map → core-B8VC-Umz.js.map} +1 -1
  141. package/dist/{core-AKWkE8Bx.cjs → core-w629c4ND.cjs} +1 -1
  142. package/dist/{core-AKWkE8Bx.cjs.map → core-w629c4ND.cjs.map} +1 -1
  143. package/dist/{cpp-DyKt1H8n.cjs → cpp-LIcuHkFj.cjs} +1 -1
  144. package/dist/{cpp-DyKt1H8n.cjs.map → cpp-LIcuHkFj.cjs.map} +1 -1
  145. package/dist/{cpp-OOenfB17.js → cpp-bNWmO1Au.js} +1 -1
  146. package/dist/{cpp-OOenfB17.js.map → cpp-bNWmO1Au.js.map} +1 -1
  147. package/dist/creditCards-D_HwRUBz.cjs +2 -0
  148. package/dist/creditCards-D_HwRUBz.cjs.map +1 -0
  149. package/dist/{creditCards-CCysEwry.js → creditCards-D_iWmtG6.js} +14 -8
  150. package/dist/creditCards-D_iWmtG6.js.map +1 -0
  151. package/dist/{css-DxVbPJLu.cjs → css-D6fGBtGV.cjs} +1 -1
  152. package/dist/{css-DxVbPJLu.cjs.map → css-D6fGBtGV.cjs.map} +1 -1
  153. package/dist/{css-u5LSEAra.js → css-h_5aJA6y.js} +1 -1
  154. package/dist/{css-u5LSEAra.js.map → css-h_5aJA6y.js.map} +1 -1
  155. package/dist/data-CcS-eYye.cjs +2 -0
  156. package/dist/data-CcS-eYye.cjs.map +1 -0
  157. package/dist/data-DT1ncDx_.js +2997 -0
  158. package/dist/data-DT1ncDx_.js.map +1 -0
  159. package/dist/data.cjs +1 -1
  160. package/dist/data.js +3 -3
  161. package/dist/{display-BafEcBK_.cjs → display-BxVd6MMK.cjs} +3 -3
  162. package/dist/display-BxVd6MMK.cjs.map +1 -0
  163. package/dist/{display-Zxj9YHu_.js → display-CtVfcztO.js} +47 -18
  164. package/dist/display-CtVfcztO.js.map +1 -0
  165. package/dist/display.cjs +1 -1
  166. package/dist/display.js +4 -4
  167. package/dist/dropdowns-BgpcQ9Hq.cjs +2 -0
  168. package/dist/dropdowns-BgpcQ9Hq.cjs.map +1 -0
  169. package/dist/{dropdowns-Bw8obCYl.js → dropdowns-C58ur0qF.js} +582 -555
  170. package/dist/dropdowns-C58ur0qF.js.map +1 -0
  171. package/dist/dropdowns.cjs +1 -1
  172. package/dist/dropdowns.js +1 -1
  173. package/dist/{feedback-Di0SEpRe.cjs → feedback-BJiO6j28.cjs} +2 -2
  174. package/dist/{feedback-Di0SEpRe.cjs.map → feedback-BJiO6j28.cjs.map} +1 -1
  175. package/dist/{feedback-8H3bmQw5.js → feedback-q3oO-E_X.js} +5 -5
  176. package/dist/{feedback-8H3bmQw5.js.map → feedback-q3oO-E_X.js.map} +1 -1
  177. package/dist/feedback.cjs +1 -1
  178. package/dist/feedback.js +2 -2
  179. package/dist/{form-BYz99Py5.cjs → form-D7OKrCBM.cjs} +2 -2
  180. package/dist/{form-BYz99Py5.cjs.map → form-D7OKrCBM.cjs.map} +1 -1
  181. package/dist/{form-JHlvtP9r.js → form-DIOkVhd9.js} +2 -2
  182. package/dist/{form-JHlvtP9r.js.map → form-DIOkVhd9.js.map} +1 -1
  183. package/dist/form.cjs +1 -1
  184. package/dist/form.js +1 -1
  185. package/dist/{frameworkTexts-CvxcWRXp.js → frameworkTexts-Bzd6bn9s.js} +3 -1
  186. package/dist/frameworkTexts-Bzd6bn9s.js.map +1 -0
  187. package/dist/frameworkTexts-CJHzJHsg.cjs +2 -0
  188. package/dist/frameworkTexts-CJHzJHsg.cjs.map +1 -0
  189. package/dist/i18n/frameworkTexts.d.ts +2 -0
  190. package/dist/i18n.cjs +1 -1
  191. package/dist/icons-CfpYxnfg.js.map +1 -1
  192. package/dist/{icons-DWMgDKgt.cjs → icons-lUQfZ4Jr.cjs} +2 -2
  193. package/dist/{icons-DWMgDKgt.cjs.map → icons-lUQfZ4Jr.cjs.map} +1 -1
  194. package/dist/icons.cjs +1 -1
  195. package/dist/illustrations.cjs +1 -1
  196. package/dist/index.cjs +1 -1
  197. package/dist/index.js +43 -42
  198. package/dist/inputs-DOO1tKK9.cjs +2 -0
  199. package/dist/inputs-DOO1tKK9.cjs.map +1 -0
  200. package/dist/{inputs-Bcwd_UTr.js → inputs-Dwjwa_SJ.js} +545 -439
  201. package/dist/inputs-Dwjwa_SJ.js.map +1 -0
  202. package/dist/inputs.cjs +1 -1
  203. package/dist/inputs.js +5 -5
  204. package/dist/{javascript-CXjsxb-I.js → javascript-BnTECToz.js} +1 -1
  205. package/dist/{javascript-CXjsxb-I.js.map → javascript-BnTECToz.js.map} +1 -1
  206. package/dist/{javascript-CzjCTQxn.cjs → javascript-Oy5hkezl.cjs} +1 -1
  207. package/dist/{javascript-CzjCTQxn.cjs.map → javascript-Oy5hkezl.cjs.map} +1 -1
  208. package/dist/{json-9Qq5guN0.cjs → json-BP8eqPWc.cjs} +1 -1
  209. package/dist/{json-9Qq5guN0.cjs.map → json-BP8eqPWc.cjs.map} +1 -1
  210. package/dist/{json-CyV5VF8D.js → json-Ci-bDynf.js} +1 -1
  211. package/dist/{json-CyV5VF8D.js.map → json-Ci-bDynf.js.map} +1 -1
  212. package/dist/layout-B3S9bvaP.cjs +2 -0
  213. package/dist/layout-B3S9bvaP.cjs.map +1 -0
  214. package/dist/{layout-BpEnTocp.js → layout-BqDbW0Qn.js} +265 -347
  215. package/dist/layout-BqDbW0Qn.js.map +1 -0
  216. package/dist/layout.cjs +1 -1
  217. package/dist/layout.js +7 -6
  218. package/dist/{licensing-ezfo7ZTh.cjs → licensing-Df1Z1rnQ.cjs} +2 -2
  219. package/dist/{licensing-ezfo7ZTh.cjs.map → licensing-Df1Z1rnQ.cjs.map} +1 -1
  220. package/dist/{locale-CZyqh3ON.cjs → locale-Ba2yreFR.cjs} +2 -2
  221. package/dist/{locale-CZyqh3ON.cjs.map → locale-Ba2yreFR.cjs.map} +1 -1
  222. package/dist/{media-ClgUKDca.cjs → media-C5atCcc6.cjs} +2 -2
  223. package/dist/{media-ClgUKDca.cjs.map → media-C5atCcc6.cjs.map} +1 -1
  224. package/dist/{media-C3M0npGW.js → media-DdshnqJ1.js} +3 -3
  225. package/dist/{media-C3M0npGW.js.map → media-DdshnqJ1.js.map} +1 -1
  226. package/dist/media.cjs +1 -1
  227. package/dist/media.js +2 -2
  228. package/dist/{overlays-DrSGzbbA.cjs → overlays-BC_6IATL.cjs} +2 -2
  229. package/dist/{overlays-DrSGzbbA.cjs.map → overlays-BC_6IATL.cjs.map} +1 -1
  230. package/dist/{overlays-CGlqD3rl.js → overlays-zUoV_Jy7.js} +2 -2
  231. package/dist/{overlays-CGlqD3rl.js.map → overlays-zUoV_Jy7.js.map} +1 -1
  232. package/dist/overlays.cjs +1 -1
  233. package/dist/overlays.js +3 -3
  234. package/dist/{php-Br75m0HU.cjs → php-Cwjc-ZYq.cjs} +1 -1
  235. package/dist/{php-Br75m0HU.cjs.map → php-Cwjc-ZYq.cjs.map} +1 -1
  236. package/dist/{php-deNqvHeU.js → php-DJ5j7KZU.js} +1 -1
  237. package/dist/{php-deNqvHeU.js.map → php-DJ5j7KZU.js.map} +1 -1
  238. package/dist/primitives.cjs +1 -1
  239. package/dist/style-runtime.cjs +1 -1
  240. package/dist/style-runtime.js +1 -1
  241. package/dist/styles.css +1 -1
  242. package/dist/{theme-CgS-bND3.cjs → theme-Bb_NAEiZ.cjs} +2 -2
  243. package/dist/{theme-CgS-bND3.cjs.map → theme-Bb_NAEiZ.cjs.map} +1 -1
  244. package/dist/theme.cjs +1 -1
  245. package/dist/{typescript-jNfCpQvl.js → typescript-DUexJ4gh.js} +1 -1
  246. package/dist/{typescript-jNfCpQvl.js.map → typescript-DUexJ4gh.js.map} +1 -1
  247. package/dist/{typescript-CRgqVaw_.cjs → typescript-QKlfKtex.cjs} +1 -1
  248. package/dist/{typescript-CRgqVaw_.cjs.map → typescript-QKlfKtex.cjs.map} +1 -1
  249. package/dist/{typography-Zo4Usx9I.cjs → typography-CRKIyR-B.cjs} +2 -2
  250. package/dist/{typography-Zo4Usx9I.cjs.map → typography-CRKIyR-B.cjs.map} +1 -1
  251. package/dist/typography.cjs +1 -1
  252. package/dist/{useGhostText-tv1LiSPs.cjs → useGhostText-mibV4s1-.cjs} +2 -2
  253. package/dist/{useGhostText-tv1LiSPs.cjs.map → useGhostText-mibV4s1-.cjs.map} +1 -1
  254. package/dist/{useInteractionEffect-D1ZdNbKU.cjs → useInteractionEffect-CtXlbjhC.cjs} +2 -2
  255. package/dist/{useInteractionEffect-D1ZdNbKU.cjs.map → useInteractionEffect-CtXlbjhC.cjs.map} +1 -1
  256. package/dist/{useKeyboardNav-CkIlAagq.cjs → useKeyboardNav-CCUoRMgm.cjs} +2 -2
  257. package/dist/{useKeyboardNav-CkIlAagq.cjs.map → useKeyboardNav-CCUoRMgm.cjs.map} +1 -1
  258. package/dist/utils/creditCards.d.ts +1 -0
  259. package/dist/utils/validators.d.ts +2 -0
  260. package/dist/utils.cjs +1 -1
  261. package/dist/utils.js +3 -3
  262. package/dist/{validators-H8tNxb8O.js → validators-D5OCyV2h.js} +23 -20
  263. package/dist/validators-D5OCyV2h.js.map +1 -0
  264. package/dist/{validators-BeNTD8mf.cjs → validators-DRhikiAi.cjs} +2 -2
  265. package/dist/validators-DRhikiAi.cjs.map +1 -0
  266. package/dist/{xml-C_ksWBRH.cjs → xml-DEtyywwU.cjs} +1 -1
  267. package/dist/{xml-C_ksWBRH.cjs.map → xml-DEtyywwU.cjs.map} +1 -1
  268. package/dist/{xml-0Th6YIDv.js → xml-DlZghN7m.js} +1 -1
  269. package/dist/{xml-0Th6YIDv.js.map → xml-DlZghN7m.js.map} +1 -1
  270. package/package.json +1 -1
  271. package/dist/MDataTable-Bx7W-Ari.cjs +0 -2
  272. package/dist/MDataTable-Bx7W-Ari.cjs.map +0 -1
  273. package/dist/MDataTable-ByvNQqNP.js +0 -149
  274. package/dist/MDataTable-ByvNQqNP.js.map +0 -1
  275. package/dist/MDropdownMenu-BmfXSc46.cjs +0 -2
  276. package/dist/MDropdownMenu-BmfXSc46.cjs.map +0 -1
  277. package/dist/MDropdownMenu-D79Cm5aS.js.map +0 -1
  278. package/dist/MImage-L_zgfWRY.cjs +0 -2
  279. package/dist/MImage-L_zgfWRY.cjs.map +0 -1
  280. package/dist/MImage-gwFphZk2.js.map +0 -1
  281. package/dist/cards-BiYdorB0.cjs +0 -2
  282. package/dist/cards-BiYdorB0.cjs.map +0 -1
  283. package/dist/cards-fn61xD_5.js.map +0 -1
  284. package/dist/creditCards-CCysEwry.js.map +0 -1
  285. package/dist/creditCards-ljs044xt.cjs +0 -2
  286. package/dist/creditCards-ljs044xt.cjs.map +0 -1
  287. package/dist/data-Bw9FSZ80.cjs +0 -2
  288. package/dist/data-Bw9FSZ80.cjs.map +0 -1
  289. package/dist/data-CMSIr_Ac.js +0 -2527
  290. package/dist/data-CMSIr_Ac.js.map +0 -1
  291. package/dist/display-BafEcBK_.cjs.map +0 -1
  292. package/dist/display-Zxj9YHu_.js.map +0 -1
  293. package/dist/dropdowns-Bw8obCYl.js.map +0 -1
  294. package/dist/dropdowns-DN7j1HhE.cjs +0 -2
  295. package/dist/dropdowns-DN7j1HhE.cjs.map +0 -1
  296. package/dist/frameworkTexts-CvxcWRXp.js.map +0 -1
  297. package/dist/frameworkTexts-abkS5XZK.cjs +0 -2
  298. package/dist/frameworkTexts-abkS5XZK.cjs.map +0 -1
  299. package/dist/inputs-Bcwd_UTr.js.map +0 -1
  300. package/dist/inputs-FP545Yri.cjs +0 -2
  301. package/dist/inputs-FP545Yri.cjs.map +0 -1
  302. package/dist/layout-BpEnTocp.js.map +0 -1
  303. package/dist/layout-rtlHrjDb.cjs +0 -2
  304. package/dist/layout-rtlHrjDb.cjs.map +0 -1
  305. package/dist/validators-BeNTD8mf.cjs.map +0 -1
  306. package/dist/validators-H8tNxb8O.js.map +0 -1
@@ -1,23 +1,23 @@
1
- import { $r as e, Dr as t, Er as n, Fr as r, Ii as i, Ir as a, Li as o, Lr as s, Mi as c, Mr as l, Ni as u, Pr as d, Qr as f, Si as p, Ti as m, Yr as h, Zr as g, _n as _, bi as v, cr as y, ei as b, gn as x, ii as S, qr as C, si as w, ti as T, un as E, vn as D, yn as O } from "./icons-CfpYxnfg.js";
2
- import { t as k } from "./cn-YER3QsV1.js";
3
- import { _ as A, a as j, c as M, d as N, f as P, g as F, h as I, i as L, l as R, n as ee, r as z, y as te } from "./validators-H8tNxb8O.js";
4
- import { a as B, i as V, n as H, r as U } from "./creditCards-CCysEwry.js";
5
- import { a as ne, c as W, d as re, i as ie, n as ae, o as oe, r as se, s as ce, u as G } from "./formatters-T0vvjMtB.js";
6
- import { t as le } from "./useGhostText-DG0bzcao.js";
7
- import { t as ue } from "./useInteractionEffect-DtpbVd77.js";
8
- import { r as de, t as fe } from "./MButton-y9qXhhGt.js";
9
- import { t as pe } from "./MCheckbox-B-nT2OBE.js";
10
- import { t as me } from "./MSlider-5141rKeH.js";
11
- import { n as he, t as K } from "./MInput-bzSwK880.js";
12
- import { forwardRef as q, isValidElement as ge, useCallback as J, useEffect as Y, useMemo as _e, useRef as X, useState as Z } from "react";
1
+ import { $r as e, Dr as t, Er as n, Fr as r, Ii as i, Ir as a, Li as o, Lr as s, Mi as c, Mr as l, Ni as u, Pr as d, Qr as f, Si as p, Ti as m, Yr as h, Zr as g, _n as _, bi as v, cr as y, ei as b, gn as x, ii as S, qr as C, si as w, ti as T, un as E, vn as D } from "./icons-CfpYxnfg.js";
2
+ import { t as O } from "./cn-YER3QsV1.js";
3
+ import { _ as k, a as A, d as j, i as M, m as N, n as P, o as F, p as I, r as L, s as R, u as ee, v as z, x as B, y as V } from "./validators-D5OCyV2h.js";
4
+ import { a as H, i as te, n as U, r as ne } from "./creditCards-D_iWmtG6.js";
5
+ import { a as re, c as ie, d as W, i as ae, n as oe, o as se, r as ce, s as le, u as G } from "./formatters-T0vvjMtB.js";
6
+ import { t as ue } from "./useGhostText-DG0bzcao.js";
7
+ import { t as de } from "./useInteractionEffect-DtpbVd77.js";
8
+ import { r as fe, t as pe } from "./MButton-y9qXhhGt.js";
9
+ import { t as me } from "./MCheckbox-B-nT2OBE.js";
10
+ import { t as he } from "./MSlider-5141rKeH.js";
11
+ import { n as ge, t as K } from "./MInput-CNSvoRiu.js";
12
+ import { forwardRef as q, isValidElement as _e, useCallback as J, useEffect as Y, useMemo as ve, useRef as X, useState as Z } from "react";
13
13
  import { jsx as Q, jsxs as $ } from "react/jsx-runtime";
14
14
  //#region src/components/inputs/MTextarea/MTextarea.tsx
15
- var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i, disabled: a = !1, readOnly: o = !1, required: s = !1, autoFocus: c = !1, rows: l = 3, autoResize: u = !1, minRows: d, maxRows: f, variant: p = "outlined", size: m = "md", color: h, fullWidth: g = !1, label: _, helperText: v, errorText: y, error: b = !1, success: x = !1, maxLength: S, showCharCount: C = !1, ghostOptions: w, ghostMinChars: T = 2, onGhostAccept: E, loading: D = !1, onChange: O, onFocus: A, onBlur: j, className: M, style: N, textareaClassName: P, labelClassName: F }, I) {
16
- let [L, R] = Z(!1), ee = X(null), { currentValue: z, setCurrentValue: te } = he(e, t), B = le({
15
+ var ye = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i, disabled: a = !1, readOnly: o = !1, required: s = !1, autoFocus: c = !1, rows: l = 3, autoResize: u = !1, minRows: d, maxRows: f, variant: p = "outlined", size: m = "md", color: h, fullWidth: g = !1, label: _, helperText: v, errorText: y, error: b = !1, success: x = !1, maxLength: S, showCharCount: C = !1, ghostOptions: w, ghostMinChars: T = 2, onGhostAccept: E, loading: D = !1, onChange: k, onFocus: A, onBlur: j, className: M, style: N, textareaClassName: P, labelClassName: F }, I) {
16
+ let [L, R] = Z(!1), ee = X(null), { currentValue: z, setCurrentValue: B } = ge(e, t), V = ue({
17
17
  options: w ?? [],
18
18
  value: z,
19
19
  minChars: T
20
- }), V = b || !!y, H = V ? "color-error" : h ? `color-${h}` : void 0, U = I ?? ee, ne = J(() => {
20
+ }), H = b || !!y, te = H ? "color-error" : h ? `color-${h}` : void 0, U = I ?? ee, ne = J(() => {
21
21
  let e = typeof U == "function" ? null : U?.current;
22
22
  if (!e || !u) return;
23
23
  e.style.height = "auto";
@@ -32,38 +32,38 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
32
32
  Y(() => {
33
33
  ne();
34
34
  }, [z, ne]);
35
- let W = J((e) => {
35
+ let re = J((e) => {
36
36
  R(!0), A?.(e);
37
- }, [A]), re = J((e) => {
37
+ }, [A]), ie = J((e) => {
38
38
  R(!1), j?.(e);
39
- }, [j]), ie = J((e) => {
40
- te(e.target.value), O?.(e), B.reset();
39
+ }, [j]), W = J((e) => {
40
+ B(e.target.value), k?.(e), V.reset();
41
41
  }, [
42
- O,
43
- te,
44
- B.reset
42
+ k,
43
+ B,
44
+ V.reset
45
45
  ]), ae = J((e) => {
46
- if (w && B.hint && B.onKeyDown(e)) {
47
- let e = B.accept();
48
- te(e.value), E?.(e.value);
46
+ if (w && V.hint && V.onKeyDown(e)) {
47
+ let e = V.accept();
48
+ B(e.value), E?.(e.value);
49
49
  let t = typeof U == "function" ? null : U?.current;
50
50
  t && ((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, "value")?.set)?.call(t, e.value), t.dispatchEvent(new Event("input", { bubbles: !0 })));
51
51
  return;
52
52
  }
53
53
  }, [
54
54
  w,
55
+ V,
55
56
  B,
56
- te,
57
57
  E,
58
58
  U
59
- ]), oe = k("container", `field-${p}`, `field-${m}`, L && "focused", V && "error", x && !V && "success", a && "disabled");
59
+ ]), oe = O("container", `field-${p}`, `field-${m}`, L && "focused", H && "error", x && !H && "success", a && "disabled");
60
60
  return /* @__PURE__ */ $("div", {
61
- className: k("textarea", H, g && "full-width", M),
61
+ className: O("textarea", te, g && "full-width", M),
62
62
  style: N,
63
63
  children: [
64
64
  _ && /* @__PURE__ */ Q("label", {
65
65
  htmlFor: r,
66
- className: k("field-label", L && "focused", V && "error", x && !V && "success", s && "required", F),
66
+ className: O("field-label", L && "focused", H && "error", x && !H && "success", s && "required", F),
67
67
  children: _
68
68
  }),
69
69
  /* @__PURE__ */ $("div", {
@@ -82,14 +82,14 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
82
82
  rows: u ? d ?? l : l,
83
83
  maxLength: S,
84
84
  value: z,
85
- className: k("field", P),
86
- onChange: ie,
87
- onFocus: W,
88
- onBlur: re,
85
+ className: O("field", P),
86
+ onChange: W,
87
+ onFocus: re,
88
+ onBlur: ie,
89
89
  onKeyDown: ae,
90
- "aria-invalid": V || void 0,
90
+ "aria-invalid": H || void 0,
91
91
  "aria-describedby": y ? `${r}-error` : v ? `${r}-helper` : void 0
92
- }), L && B.hint && /* @__PURE__ */ $("span", {
92
+ }), L && V.hint && /* @__PURE__ */ $("span", {
93
93
  className: "ghost-text-overlay",
94
94
  "aria-hidden": "true",
95
95
  children: [/* @__PURE__ */ Q("span", {
@@ -97,7 +97,7 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
97
97
  children: z
98
98
  }), /* @__PURE__ */ Q("span", {
99
99
  className: "ghost-text-hint",
100
- children: B.hint
100
+ children: V.hint
101
101
  })]
102
102
  })]
103
103
  }) : /* @__PURE__ */ Q("textarea", {
@@ -112,13 +112,13 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
112
112
  rows: u ? d ?? l : l,
113
113
  maxLength: S,
114
114
  value: z,
115
- className: k("field", P),
116
- onChange: ie,
117
- onFocus: W,
118
- onBlur: re,
119
- "aria-invalid": V || void 0,
115
+ className: O("field", P),
116
+ onChange: W,
117
+ onFocus: re,
118
+ onBlur: ie,
119
+ "aria-invalid": H || void 0,
120
120
  "aria-describedby": y ? `${r}-error` : v ? `${r}-helper` : void 0
121
- }), D && /* @__PURE__ */ Q(de, {
121
+ }), D && /* @__PURE__ */ Q(fe, {
122
122
  size: "sm",
123
123
  color: h,
124
124
  className: "textarea-spinner"
@@ -136,7 +136,7 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
136
136
  className: "field-helper",
137
137
  children: v
138
138
  })] }), C && S && /* @__PURE__ */ $("span", {
139
- className: k("char-count", z.length > S && "over"),
139
+ className: O("char-count", z.length > S && "over"),
140
140
  children: [
141
141
  z.length,
142
142
  "/",
@@ -149,17 +149,17 @@ var ve = q(function({ value: e, defaultValue: t, name: n, id: r, placeholder: i,
149
149
  });
150
150
  //#endregion
151
151
  //#region src/components/inputs/MInputPassword/MInputPassword.tsx
152
- function ye(e) {
152
+ function be(e) {
153
153
  let t = 0;
154
154
  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";
155
155
  }
156
- var be = {
156
+ var xe = {
157
157
  weak: "Weak",
158
158
  fair: "Fair",
159
159
  good: "Good",
160
160
  strong: "Strong"
161
- }, xe = q(function({ showToggle: e = !0, showStrength: t = !1, onStrengthChange: n, value: r, defaultValue: i, onChange: a, className: o, ...s }, c) {
162
- let [l, u] = Z(!1), [d, f] = Z(i?.toString() ?? ""), p = r === void 0 ? d : r.toString(), m = ye(p);
161
+ }, Se = q(function({ showToggle: e = !0, showStrength: t = !1, onStrengthChange: n, value: r, defaultValue: i, onChange: a, className: o, ...s }, c) {
162
+ let [l, u] = Z(!1), [d, f] = Z(i?.toString() ?? ""), p = r === void 0 ? d : r.toString(), m = be(p);
163
163
  Y(() => {
164
164
  n?.(m);
165
165
  }, [m, n]);
@@ -174,7 +174,7 @@ var be = {
174
174
  children: Q(l ? x : _, {})
175
175
  }) : void 0;
176
176
  return /* @__PURE__ */ $("div", {
177
- className: k("password input", o),
177
+ className: O("password input", o),
178
178
  children: [/* @__PURE__ */ Q(K, {
179
179
  ...s,
180
180
  ref: c,
@@ -191,29 +191,29 @@ var be = {
191
191
  1,
192
192
  2,
193
193
  3
194
- ].map((e) => /* @__PURE__ */ Q("div", { className: k("password strength segment", e < [
194
+ ].map((e) => /* @__PURE__ */ Q("div", { className: O("password strength segment", e < [
195
195
  "weak",
196
196
  "fair",
197
197
  "good",
198
198
  "strong"
199
199
  ].indexOf(m) + 1 && `strength-${m}`) }, e))
200
200
  }), /* @__PURE__ */ Q("span", {
201
- className: k("password strength label", `strength-${m}`),
202
- children: be[m]
201
+ className: O("password strength label", `strength-${m}`),
202
+ children: xe[m]
203
203
  })]
204
204
  })]
205
205
  });
206
206
  });
207
207
  //#endregion
208
208
  //#region src/components/inputs/MInputNumber/MInputNumber.tsx
209
- function Se(e, t, n) {
209
+ function Ce(e, t, n) {
210
210
  return t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
211
211
  }
212
- function Ce(e, t) {
212
+ function we(e, t) {
213
213
  let n = 10 ** t;
214
214
  return Math.round(e * n) / n;
215
215
  }
216
- var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precision: i = 0, allowNegative: a = !0, onValueChange: o, value: s, defaultValue: l, onChange: d, onKeyDown: f, onBlur: p, disabled: m = !1, className: h, ...g }, _) {
216
+ var Te = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precision: i = 0, allowNegative: a = !0, onValueChange: o, value: s, defaultValue: l, onChange: d, onKeyDown: f, onBlur: p, disabled: m = !1, className: h, ...g }, _) {
217
217
  let [v, y] = Z(l?.toString() ?? ""), b = s === void 0 ? v : s.toString(), x = X(null), S = X(b);
218
218
  Y(() => {
219
219
  S.current = b;
@@ -223,7 +223,7 @@ var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precisio
223
223
  let t = parseFloat(e);
224
224
  o?.(isNaN(t) ? null : t);
225
225
  }, [s, o]), w = J((r) => {
226
- let a = Ce(Se((parseFloat(S.current) || 0) + n * r, e, t), i);
226
+ let a = we(Ce((parseFloat(S.current) || 0) + n * r, e, t), i);
227
227
  S.current = a.toString(), C(a.toString());
228
228
  }, [
229
229
  n,
@@ -244,10 +244,10 @@ var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precisio
244
244
  d,
245
245
  a,
246
246
  C
247
- ]), O = J((n) => {
247
+ ]), k = J((n) => {
248
248
  let r = parseFloat(S.current);
249
249
  if (!isNaN(r)) {
250
- let n = Ce(Se(r, e, t), i);
250
+ let n = we(Ce(r, e, t), i);
251
251
  S.current = n.toString(), C(n.toString());
252
252
  }
253
253
  p?.(n);
@@ -294,15 +294,15 @@ var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precisio
294
294
  inputMode: "decimal",
295
295
  value: b,
296
296
  onChange: D,
297
- onBlur: O,
297
+ onBlur: k,
298
298
  onKeyDown: A,
299
299
  endIcon: j,
300
300
  disabled: m,
301
- className: k("number input", h)
301
+ className: O("number input", h)
302
302
  });
303
- }), Te = q(function({ validateOnBlur: e = !0, validateOnChange: t = !1, showValidIcon: n = !0, onValidationChange: r, value: a, defaultValue: o, onChange: s, onBlur: c, error: l, errorText: u, success: d, placeholder: f = "email@example.com", ...m }, h) {
303
+ }), Ee = q(function({ validateOnBlur: e = !0, validateOnChange: t = !1, showValidIcon: n = !0, onValidationChange: r, value: a, defaultValue: o, onChange: s, onBlur: c, error: l, errorText: u, success: d, placeholder: f = "email@example.com", ...m }, h) {
304
304
  let [g, _] = Z(o?.toString() ?? ""), [v, y] = Z({ valid: !0 }), [b, x] = Z(!1), S = a === void 0 ? g : a.toString(), C = J((e) => {
305
- let t = L(e);
305
+ let t = F(e);
306
306
  return y(t), r?.(t), t;
307
307
  }, [r]), w = J((e) => {
308
308
  a === void 0 && _(e.target.value), t && b && C(e.target.value), s?.(e);
@@ -336,57 +336,104 @@ var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precisio
336
336
  startIcon: /* @__PURE__ */ Q(p, {}),
337
337
  endIcon: k
338
338
  });
339
- }), Ee = q(function({ countryCode: e = "PL", showCountryCode: t = !0, formatOnChange: n = !0, validateOnBlur: r = !0, onValidationChange: i, onValueChange: a, value: o, defaultValue: s, onChange: c, onBlur: l, error: u, errorText: d, placeholder: f = "123 456 789", className: p, ...m }, h) {
340
- let [g, _] = Z(s?.toString() ?? ""), [y, b] = Z({ valid: !0 }), [x, S] = Z(!1), C = o === void 0 ? g : o.toString(), w = J((t) => {
341
- let r = G(t.target.value), i = n ? ce(r, { countryCode: e }) : r;
342
- o === void 0 && _(i), a?.(r, i), c?.(t);
343
- }, [
344
- c,
345
- o,
346
- n,
347
- e,
348
- a
349
- ]), T = J((t) => {
350
- if (S(!0), r && C) {
351
- let t = N(G(C), e);
352
- b(t), i?.(t);
339
+ }), De = {
340
+ PL: "+48",
341
+ DE: "+49",
342
+ US: "+1",
343
+ GB: "+44",
344
+ FR: "+33",
345
+ CZ: "+420",
346
+ SK: "+421"
347
+ }, Oe = Object.entries(De).sort(([, e], [, t]) => t.length - e.length);
348
+ function ke(e) {
349
+ let t = e.trim().replace(/^00/, "+");
350
+ if (!t.startsWith("+")) return null;
351
+ let n = "+" + G(t);
352
+ for (let [e, t] of Oe) if (n.startsWith(t)) return {
353
+ country: e,
354
+ rest: n.slice(t.length)
355
+ };
356
+ return null;
357
+ }
358
+ function Ae(e) {
359
+ let t = e.trim();
360
+ return !t.startsWith("+") && !t.startsWith("00") ? !1 : G(t.startsWith("00") ? "+" + t.slice(2) : t).length <= 3;
361
+ }
362
+ function je(e) {
363
+ let t = e.trim();
364
+ return "+" + G(t.startsWith("00") ? t.slice(2) : t.slice(1)).slice(0, 3);
365
+ }
366
+ var Me = q(function({ countryCode: e, defaultCountryCode: t = "PL", showCountryCode: n = !0, formatOnChange: r = !0, validateOnBlur: i = !0, onValidationChange: a, onValueChange: o, onCountryChange: s, onClear: c, value: l, defaultValue: u, onChange: d, onBlur: f, error: p, errorText: m, placeholder: h = "123 456 789", className: g, ..._ }, y) {
367
+ let [b, x] = Z((e ?? t).toUpperCase()), [S, C] = Z(u?.toString() ?? ""), [w, T] = Z({ valid: !0 }), [E, D] = Z(!1), k = (e ?? b).toUpperCase(), A = l === void 0 ? S : l.toString(), j = J((t) => {
368
+ let n = t.target.value;
369
+ if (n === "") {
370
+ l === void 0 && C(""), o?.("", ""), d?.(t);
371
+ return;
353
372
  }
354
- l?.(t);
373
+ let i = ke(n);
374
+ if (i) {
375
+ let n = i.country;
376
+ e === void 0 && n !== k && (x(n), s?.(n));
377
+ let a = G(i.rest), c = r ? le(a, { countryCode: n }) : a;
378
+ l === void 0 && C(c), o?.(a, c), d?.(t);
379
+ return;
380
+ }
381
+ if (Ae(n)) {
382
+ let e = je(n);
383
+ l === void 0 && C(e), o?.(G(e), e), d?.(t);
384
+ return;
385
+ }
386
+ let a = G(n), c = r ? le(a, { countryCode: k }) : a;
387
+ l === void 0 && C(c), o?.(a, c), d?.(t);
355
388
  }, [
389
+ d,
356
390
  l,
357
391
  r,
358
- C,
392
+ k,
359
393
  e,
360
- i
361
- ]), E = t ? /* @__PURE__ */ Q("span", {
394
+ o,
395
+ s
396
+ ]), M = J((e) => {
397
+ if (D(!0), i && A) {
398
+ let e = I(G(A), k);
399
+ T(e), a?.(e);
400
+ }
401
+ f?.(e);
402
+ }, [
403
+ f,
404
+ i,
405
+ A,
406
+ k,
407
+ a
408
+ ]), N = J(() => {
409
+ l === void 0 && C(""), T({ valid: !0 }), D(!1), a?.({ valid: !0 }), o?.("", ""), c?.();
410
+ }, [
411
+ c,
412
+ o,
413
+ a,
414
+ l
415
+ ]), P = A.startsWith("+"), F = n && !P ? /* @__PURE__ */ Q("span", {
362
416
  className: "phone prefix",
363
- children: {
364
- PL: "+48",
365
- DE: "+49",
366
- US: "+1",
367
- GB: "+44",
368
- FR: "+33",
369
- CZ: "+420",
370
- SK: "+421"
371
- }[e.toUpperCase()] ?? `+${e}`
372
- }) : void 0, D = u || x && !y.valid, O = d || (x && !y.valid ? y.error : void 0);
417
+ children: De[k] ?? `+${k}`
418
+ }) : void 0, L = p || E && !w.valid, R = m || (E && !w.valid ? w.error : void 0);
373
419
  return /* @__PURE__ */ Q(K, {
374
- ...m,
375
- ref: h,
420
+ ..._,
421
+ ref: y,
376
422
  type: "tel",
377
- value: C,
378
- onChange: w,
379
- onBlur: T,
380
- error: D,
381
- errorText: O,
382
- placeholder: f,
383
- startIcon: t ? E : /* @__PURE__ */ Q(v, {}),
384
- className: k("phone input", p)
423
+ value: A,
424
+ onChange: j,
425
+ onBlur: M,
426
+ onClear: N,
427
+ error: L,
428
+ errorText: R,
429
+ placeholder: h,
430
+ startIcon: n ? F : /* @__PURE__ */ Q(v, {}),
431
+ className: O("phone input", g)
385
432
  });
386
- }), De = q(function({ autoCapitalize: e = !0, allowNumbers: t = !1, allowSpecialChars: n = !1, minWords: r, validateOnBlur: i = !0, onValidationChange: a, value: o, defaultValue: s, onChange: c, onBlur: l, error: u, errorText: d, placeholder: f = "Jan Kowalski", ...p }, m) {
433
+ }), Ne = q(function({ autoCapitalize: e = !0, allowNumbers: t = !1, allowSpecialChars: n = !1, minWords: r, validateOnBlur: i = !0, onValidationChange: a, value: o, defaultValue: s, onChange: c, onBlur: l, error: u, errorText: d, placeholder: f = "Jan Kowalski", ...p }, m) {
387
434
  let [h, g] = Z(s?.toString() ?? ""), [_, v] = Z({ valid: !0 }), [b, x] = Z(!1), S = o === void 0 ? h : o.toString(), C = J((r) => {
388
435
  let i = r;
389
- return t || (i = i.replace(/\d/g, "")), n || (i = i.replace(/[^a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s'-]/g, "")), e && (i = ae(i)), i;
436
+ return t || (i = i.replace(/\d/g, "")), n || (i = i.replace(/[^a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s'-]/g, "")), e && (i = oe(i)), i;
390
437
  }, [
391
438
  t,
392
439
  n,
@@ -434,86 +481,255 @@ var we = q(function({ min: e, max: t, step: n = 1, showStepper: r = !0, precisio
434
481
  });
435
482
  });
436
483
  //#endregion
484
+ //#region src/components/inputs/MInputGroup/MInputGroup.tsx
485
+ function Pe(e) {
486
+ return typeof e == "object" && !!e && !_e(e) && "type" in e;
487
+ }
488
+ function Fe(e, t, n, r) {
489
+ if (!Pe(e)) return /* @__PURE__ */ Q("div", {
490
+ className: O("addon", "custom", t),
491
+ children: e
492
+ }, `${t}-${n}`);
493
+ let i = e;
494
+ return i.type === "button" ? /* @__PURE__ */ Q(pe, {
495
+ variant: "ghost",
496
+ color: r,
497
+ size: "sm",
498
+ className: O("addon", t, "addon-button"),
499
+ onClick: i.onClick,
500
+ clickEffect: "none",
501
+ children: i.content
502
+ }, `${t}-${n}`) : i.type === "checkbox" ? /* @__PURE__ */ Q("div", {
503
+ className: O("addon", t, "checkbox"),
504
+ children: /* @__PURE__ */ Q(me, {
505
+ size: "sm",
506
+ clickEffect: "none",
507
+ checked: i.checked,
508
+ onChange: (e) => i.onCheckedChange?.(e.target.checked),
509
+ className: "addon-checkbox"
510
+ })
511
+ }, `${t}-${n}`) : /* @__PURE__ */ Q("span", {
512
+ className: O("addon", t),
513
+ children: i.content
514
+ }, `${t}-${n}`);
515
+ }
516
+ function Ie(e) {
517
+ return e == null ? [] : Array.isArray(e) ? e : [e];
518
+ }
519
+ var Le = q(function({ prepend: e, append: t, type: n = "text", value: r, defaultValue: i, name: a, id: s, placeholder: c, disabled: l = !1, readOnly: u = !1, required: d = !1, autoFocus: f = !1, autoComplete: p, inputMode: m, size: h = "md", fullWidth: g = !1, label: _, helperText: v, errorText: y, color: b = "primary", error: x = !1, maxLength: S, clearable: C = !1, onChange: w, onFocus: T, onBlur: E, onKeyDown: D, onClear: k, loading: A = !1, clickEffect: j = "ripple", rippleColor: M, className: N, style: P, inputClassName: F, labelClassName: I }, L) {
520
+ let [R, ee] = Z(!1), z = X(null), { effectClassName: B, effectLayer: V, handlePointerDown: H } = de({
521
+ effect: j,
522
+ disabled: l || u,
523
+ color: M
524
+ }), te = x || !!y, U = te ? "color-error" : `color-${b}`, { currentValue: ne, setCurrentValue: re } = ge(r, i), ie = ne.length > 0, W = J((e) => {
525
+ ee(!0), T?.(e);
526
+ }, [T]), ae = J((e) => {
527
+ ee(!1), E?.(e);
528
+ }, [E]), oe = J((e) => {
529
+ re(e.target.value), w?.(e);
530
+ }, [w, re]), se = J(() => {
531
+ re("");
532
+ let e = L?.current ?? z.current;
533
+ e && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 }))), k?.(), e?.focus();
534
+ }, [
535
+ k,
536
+ L,
537
+ re
538
+ ]), ce = Ie(e), le = Ie(t);
539
+ return /* @__PURE__ */ $("div", {
540
+ className: O("input-group", U, g && "full-width", N),
541
+ style: P,
542
+ children: [
543
+ _ && /* @__PURE__ */ Q("label", {
544
+ htmlFor: s,
545
+ className: O("field-label", R && "focused", te && "error", d && "required", I),
546
+ children: _
547
+ }),
548
+ /* @__PURE__ */ $("div", {
549
+ className: O("container", `field-${h}`, R && "focused", te && "has-error", l && "disabled", B),
550
+ onPointerDown: H,
551
+ children: [
552
+ V,
553
+ ce.map((e, t) => Fe(e, "prepend", t, b)),
554
+ /* @__PURE__ */ Q("input", {
555
+ ref: L ?? z,
556
+ type: n,
557
+ value: ne,
558
+ name: a,
559
+ id: s,
560
+ placeholder: c,
561
+ disabled: l,
562
+ readOnly: u,
563
+ required: d,
564
+ autoFocus: f,
565
+ autoComplete: p,
566
+ inputMode: m,
567
+ maxLength: S,
568
+ className: O("field", F),
569
+ onChange: oe,
570
+ onFocus: W,
571
+ onBlur: ae,
572
+ onKeyDown: D,
573
+ "aria-invalid": te || void 0,
574
+ "aria-describedby": y ? `${s}-error` : v ? `${s}-helper` : void 0
575
+ }),
576
+ A && /* @__PURE__ */ Q("span", {
577
+ className: "spinner-addon",
578
+ children: /* @__PURE__ */ Q(fe, {
579
+ size: "sm",
580
+ color: b
581
+ })
582
+ }),
583
+ C && ie && !A && !l && /* @__PURE__ */ Q("button", {
584
+ type: "button",
585
+ className: "clear-btn clear-btn-base",
586
+ onMouseDown: (e) => e.preventDefault(),
587
+ onClick: se,
588
+ tabIndex: -1,
589
+ "aria-label": "Clear input",
590
+ children: /* @__PURE__ */ Q(o, {})
591
+ }),
592
+ le.map((e, t) => Fe(e, "append", t, b))
593
+ ]
594
+ }),
595
+ (y || v) && /* @__PURE__ */ $("div", {
596
+ className: "bottom",
597
+ children: [y && /* @__PURE__ */ Q("span", {
598
+ id: s ? `${s}-error` : void 0,
599
+ className: "field-error",
600
+ role: "alert",
601
+ children: y
602
+ }), !y && v && /* @__PURE__ */ Q("span", {
603
+ id: s ? `${s}-helper` : void 0,
604
+ className: "field-helper",
605
+ children: v
606
+ })]
607
+ })
608
+ ]
609
+ });
610
+ });
611
+ //#endregion
437
612
  //#region src/components/inputs/MInputIBAN/MInputIBAN.tsx
438
- function Oe(e) {
439
- return e?.replace(/[^a-zA-Z]/g, "").toUpperCase().slice(0, 2) || void 0;
613
+ function Re(e) {
614
+ return e?.replace(/[^a-zA-Z]/g, "").toUpperCase().slice(0, 2) || "";
440
615
  }
441
- function ke(e, t) {
442
- let n = e.replace(/[^a-zA-Z0-9]/g, "").toUpperCase(), r = Oe(t);
443
- return r ? `${r}${n.replace(/^[A-Z]{0,2}/, "")}` : n;
616
+ function ze(e) {
617
+ let t = P(e) ?? 28;
618
+ return Math.max(t - 2, 0);
444
619
  }
445
- function Ae(e, t, n = !0) {
446
- let r = ke(e, t);
447
- return n ? ne(r) : r;
620
+ function Be(e) {
621
+ let t = ze(e), n = [], r = t;
622
+ for (; r > 0;) {
623
+ let e = Math.min(4, r);
624
+ n.push("0".repeat(e)), r -= e;
625
+ }
626
+ return n.join(" ");
448
627
  }
449
- function je(e) {
450
- let t = Oe(e);
451
- return t ? `${t}00 0000 0000 0000 0000 0000 0000` : "PL00 0000 0000 0000 0000 0000 0000";
628
+ function Ve(e) {
629
+ let t = ze(e);
630
+ return t === 0 ? 0 : t + Math.max(0, Math.ceil(t / 4) - 1);
452
631
  }
453
- var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n = !0, showValidIcon: r = !0, onValidationChange: a, onValueChange: o, value: s, defaultValue: c, onChange: l, onBlur: u, error: d, errorText: f, success: p, placeholder: m, ...h }, g) {
454
- let [_, v] = Z(() => Ae(c?.toString() ?? "", e, t)), [y, b] = Z({ valid: !0 }), [x, S] = Z(!1), C = s === void 0 ? _ : Ae(s.toString(), e, t);
455
- Y(() => {
456
- s === void 0 && v((n) => Ae(n, e, t));
632
+ var He = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n = !0, onValidationChange: r, onValueChange: i, onCountryChange: a, onClear: o, value: s, defaultValue: c, onChange: l, onBlur: u, error: d, errorText: f, helperText: p, placeholder: m, className: h, disabled: g = !1, ..._ }, v) {
633
+ let [y, b] = Z(Re(e) || "PL"), x = Re(e) || y, S = J((e, n) => {
634
+ let r = W(e).replace(/[^0-9]/g, "").slice(0, ze(n));
635
+ return r ? t ? re(r) : r : "";
636
+ }, [t]), [C, w] = Z(() => S(c?.toString() ?? "", Re(e) || "PL")), [T, E] = Z({ valid: !0 }), [D, k] = Z(!1), A = s === void 0 ? C : S(s.toString(), x), j = J(() => {
637
+ E({ valid: !0 }), k(!1), r?.({ valid: !0 });
638
+ }, [r]), M = J((e) => {
639
+ let t = S(e.target.value, x);
640
+ s === void 0 && w(t), !t && (D || !T.valid) && j(), i?.(W(t), t), l?.(e);
457
641
  }, [
458
- e,
459
- t,
642
+ S,
643
+ x,
644
+ l,
645
+ i,
646
+ j,
647
+ D,
648
+ T.valid,
460
649
  s
461
- ]);
462
- let w = J((n) => {
463
- let r = ke(re(n.target.value), e), i = t ? ne(r) : r;
464
- s === void 0 && v(i), o?.(r, i), l?.(n);
650
+ ]), N = J((e) => {
651
+ if (k(!0), n && A) {
652
+ let e = R(`${x}${W(A)}`);
653
+ E(e), r?.(e);
654
+ }
655
+ u?.(e);
465
656
  }, [
466
- e,
467
- l,
468
- s,
469
- t,
470
- o
471
- ]), T = J((t) => {
472
- if (S(!0), n && C) {
473
- let t = j(ke(re(C), e));
474
- b(t), a?.(t);
657
+ x,
658
+ A,
659
+ u,
660
+ r,
661
+ n
662
+ ]), P = J(() => {
663
+ s === void 0 && w(""), j(), i?.("", ""), o?.();
664
+ }, [
665
+ o,
666
+ i,
667
+ j,
668
+ s
669
+ ]), F = J((t) => {
670
+ let n = Re(t.target.value);
671
+ if (!n) return;
672
+ e === void 0 && b(n);
673
+ let o = S(A, n);
674
+ if (s === void 0 && w(o), i?.(W(o), o), a?.(n), D && o) {
675
+ let e = R(`${n}${W(o)}`);
676
+ E(e), r?.(e);
475
677
  }
476
- u?.(t);
477
678
  }, [
679
+ S,
478
680
  e,
479
- u,
480
- n,
481
- C,
482
- a
483
- ]), E = d || x && !y.valid, D = f || (x && !y.valid ? y.error : void 0), k = !E && (p === void 0 ? x && y.valid && C.length > 0 : p), A = r && k ? /* @__PURE__ */ Q("span", {
484
- className: "validation-icon",
485
- children: /* @__PURE__ */ Q(i, {})
486
- }) : void 0;
487
- return /* @__PURE__ */ Q(K, {
488
- ...h,
489
- ref: g,
681
+ A,
682
+ a,
683
+ r,
684
+ i,
685
+ D,
686
+ s
687
+ ]), I = d || D && !T.valid, ee = f || (D && !T.valid ? T.error : void 0), z = ve(() => L, []), B = ee ? void 0 : p ?? `Format: ${x} ${Be(x)}`;
688
+ return /* @__PURE__ */ Q(Le, {
689
+ ..._,
690
+ ref: v,
490
691
  type: "text",
491
- value: C,
492
- onChange: w,
493
- onBlur: T,
494
- error: E,
495
- errorText: D,
496
- success: k,
497
- placeholder: m ?? je(e),
498
- startIcon: /* @__PURE__ */ Q(O, {}),
499
- endIcon: A,
500
- maxLength: 42
692
+ value: A,
693
+ onChange: M,
694
+ onBlur: N,
695
+ onClear: P,
696
+ error: I,
697
+ errorText: ee,
698
+ placeholder: m ?? Be(x),
699
+ helperText: B,
700
+ disabled: g,
701
+ maxLength: Ve(x),
702
+ prepend: /* @__PURE__ */ Q("div", {
703
+ className: "country-select-wrap",
704
+ children: /* @__PURE__ */ Q("select", {
705
+ className: "country-select",
706
+ value: x,
707
+ onChange: F,
708
+ disabled: g,
709
+ "aria-label": "IBAN country",
710
+ children: z.map((e) => /* @__PURE__ */ Q("option", {
711
+ value: e,
712
+ children: e
713
+ }, e))
714
+ })
715
+ }),
716
+ className: O("input-iban", h)
501
717
  });
502
- }), Ne = {
503
- NIP: M,
504
- PESEL: R,
505
- REGON: P
506
- }, Pe = {
718
+ }), Ue = {
719
+ NIP: ee,
720
+ PESEL: j,
721
+ REGON: N
722
+ }, We = {
507
723
  NIP: 13,
508
724
  PESEL: 11,
509
725
  REGON: 14
510
- }, Fe = {
726
+ }, Ge = {
511
727
  NIP: "123-456-78-19",
512
728
  PESEL: "00000000000",
513
729
  REGON: "000000000"
514
- }, Ie = q(function({ taxIdType: e, formatOnChange: t = !0, validateOnBlur: n = !0, showValidIcon: r = !0, onValidationChange: a, onValueChange: o, value: s, defaultValue: c, onChange: l, onBlur: u, error: d, errorText: f, success: p, placeholder: m, ...h }, g) {
730
+ }, Ke = q(function({ taxIdType: e, formatOnChange: t = !0, validateOnBlur: n = !0, showValidIcon: r = !0, onValidationChange: a, onValueChange: o, value: s, defaultValue: c, onChange: l, onBlur: u, error: d, errorText: f, success: p, placeholder: m, ...h }, g) {
515
731
  let [_, v] = Z(c?.toString() ?? ""), [y, b] = Z({ valid: !0 }), [x, S] = Z(!1), C = s === void 0 ? _ : s.toString(), w = J((n) => {
516
- let r = G(n.target.value), i = t && e === "NIP" ? oe(r) : r;
732
+ let r = G(n.target.value), i = t && e === "NIP" ? se(r) : r;
517
733
  s === void 0 && v(i), o?.(r), l?.(n);
518
734
  }, [
519
735
  l,
@@ -523,7 +739,7 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
523
739
  o
524
740
  ]), T = J((t) => {
525
741
  if (S(!0), n && C) {
526
- let t = Ne[e], n = t(G(C));
742
+ let t = Ue[e], n = t(G(C));
527
743
  b(n), a?.(n);
528
744
  }
529
745
  u?.(t);
@@ -548,22 +764,22 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
548
764
  error: E,
549
765
  errorText: O,
550
766
  success: k,
551
- placeholder: m ?? Fe[e],
767
+ placeholder: m ?? Ge[e],
552
768
  startIcon: /* @__PURE__ */ Q(D, {}),
553
769
  endIcon: A,
554
- maxLength: Pe[e]
770
+ maxLength: We[e]
555
771
  });
556
- }), Le = q(function({ currency: e, currencySymbol: t, currencyPosition: n = "end", decimalSeparator: r = ",", thousandSeparator: i = " ", precision: a = 2, min: o, max: s, allowNegative: c = !1, onValueChange: l, value: u, defaultValue: d, onChange: f, onBlur: p, placeholder: m = "0,00", startIcon: h, endIcon: g, className: _, ...v }, y) {
772
+ }), qe = q(function({ currency: e, currencySymbol: t, currencyPosition: n = "end", decimalSeparator: r = ",", thousandSeparator: i = " ", precision: a = 2, min: o, max: s, allowNegative: c = !1, onValueChange: l, value: u, defaultValue: d, onChange: f, onBlur: p, placeholder: m = "0,00", startIcon: h, endIcon: g, className: _, ...v }, y) {
557
773
  let [b, x] = Z(d?.toString() ?? ""), S = u === void 0 ? b : u.toString(), C = t ?? e ?? "", w = J((e) => {
558
774
  let t = e.target.value, n = "", o = !1;
559
775
  for (let e of t) e >= "0" && e <= "9" ? n += e : (e === "," || e === ".") && !o ? (n += r, o = !0) : e === "-" && c && n.length === 0 && (n += "-");
560
- let s = se(n, {
776
+ let s = ce(n, {
561
777
  decimalSeparator: r,
562
778
  thousandSeparator: i,
563
779
  precision: a
564
780
  });
565
781
  u === void 0 && x(s);
566
- let d = W(s, i, r);
782
+ let d = ie(s, i, r);
567
783
  l?.(d), f?.(e);
568
784
  }, [
569
785
  f,
@@ -574,10 +790,10 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
574
790
  c,
575
791
  l
576
792
  ]), T = J((e) => {
577
- let t = W(S, i, r);
793
+ let t = ie(S, i, r);
578
794
  if (t !== null) {
579
795
  o !== void 0 && t < o && (t = o), s !== void 0 && t > s && (t = s);
580
- let e = se(t.toFixed(a).replace(".", r), {
796
+ let e = ce(t.toFixed(a).replace(".", r), {
581
797
  decimalSeparator: r,
582
798
  thousandSeparator: i,
583
799
  precision: a
@@ -610,13 +826,13 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
610
826
  placeholder: m,
611
827
  startIcon: n === "start" ? E : h,
612
828
  endIcon: n === "end" ? E : g,
613
- className: k("currency input", _)
829
+ className: O("currency input", _)
614
830
  });
615
- }), Re = {
831
+ }), Je = {
616
832
  "DD/MM/YYYY": "DD{s}MM{s}YYYY",
617
833
  "MM/DD/YYYY": "MM{s}DD{s}YYYY",
618
834
  "YYYY/MM/DD": "YYYY{s}MM{s}DD"
619
- }, ze = q(function({ format: e = "DD/MM/YYYY", separator: t = "/", minDate: n, maxDate: r, validateOnBlur: i = !0, validateOnChange: a = !1, onDateChange: o, onValidationChange: s, value: c, defaultValue: l, onChange: u, onBlur: d, onKeyDown: f, onClear: p, error: h, errorText: g, placeholder: _, className: v, ...y }, b) {
835
+ }, Ye = q(function({ format: e = "DD/MM/YYYY", separator: t = "/", minDate: n, maxDate: r, validateOnBlur: i = !0, validateOnChange: a = !1, onDateChange: o, onValidationChange: s, value: c, defaultValue: l, onChange: u, onBlur: d, onKeyDown: f, onClear: p, error: h, errorText: g, placeholder: _, className: v, ...y }, b) {
620
836
  let [x, S] = Z(l?.toString() ?? ""), [C, w] = Z({ valid: !0 }), [T, E] = Z(!1), D = X(!1), O = c === void 0 ? x : c.toString();
621
837
  Y(() => {
622
838
  if (D.current) {
@@ -627,7 +843,7 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
627
843
  w({ valid: !0 }), E(!1);
628
844
  return;
629
845
  }
630
- w(z(O, {
846
+ w(A(O, {
631
847
  format: e,
632
848
  minDate: n,
633
849
  maxDate: r
@@ -639,7 +855,7 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
639
855
  n
640
856
  ]);
641
857
  let k = J((t) => {
642
- let i = z(t, {
858
+ let i = A(t, {
643
859
  format: e,
644
860
  minDate: n,
645
861
  maxDate: r
@@ -650,13 +866,13 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
650
866
  n,
651
867
  r,
652
868
  s
653
- ]), A = J((t) => {
654
- G(t).length === 8 ? o?.(ee(t, e), t) : o?.(null, t);
655
- }, [e, o]), j = J((n) => {
869
+ ]), j = J((t) => {
870
+ G(t).length === 8 ? o?.(M(t, e), t) : o?.(null, t);
871
+ }, [e, o]), N = J((n) => {
656
872
  let r = G(n.target.value);
657
873
  if (r.length > 8) return;
658
- let i = ie(r, e, t);
659
- D.current = !0, c === void 0 && S(i), A(i), a && T && k(i), u?.(n);
874
+ let i = ae(r, e, t);
875
+ D.current = !0, c === void 0 && S(i), j(i), a && T && k(i), u?.(n);
660
876
  }, [
661
877
  u,
662
878
  c,
@@ -665,21 +881,21 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
665
881
  a,
666
882
  T,
667
883
  k,
668
- A
669
- ]), M = J(() => {
884
+ j
885
+ ]), P = J(() => {
670
886
  D.current = !0, c === void 0 && S(""), w({ valid: !0 }), E(!1), o?.(null, ""), p?.();
671
887
  }, [
672
888
  c,
673
889
  o,
674
890
  p
675
- ]), N = J((e) => {
891
+ ]), F = J((e) => {
676
892
  E(!0), i && O && k(O), d?.(e);
677
893
  }, [
678
894
  d,
679
895
  i,
680
896
  O,
681
897
  k
682
- ]), P = J((e) => {
898
+ ]), I = J((e) => {
683
899
  if ([
684
900
  "Backspace",
685
901
  "Delete",
@@ -697,20 +913,20 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
697
913
  return;
698
914
  }
699
915
  /^\d$/.test(e.key) || e.preventDefault(), f?.(e);
700
- }, [f]), F = h || T && !C.valid, I = g || (T && !C.valid ? C.error : void 0);
916
+ }, [f]), L = h || T && !C.valid, R = g || (T && !C.valid ? C.error : void 0);
701
917
  return /* @__PURE__ */ Q(K, {
702
918
  ...y,
703
919
  ref: b,
704
920
  type: "text",
705
921
  inputMode: "numeric",
706
922
  value: O,
707
- onChange: j,
708
- onBlur: N,
709
- onKeyDown: P,
710
- onClear: M,
711
- error: F,
712
- errorText: I,
713
- placeholder: _ ?? Re[e].replace(/\{s\}/g, t),
923
+ onChange: N,
924
+ onBlur: F,
925
+ onKeyDown: I,
926
+ onClear: P,
927
+ error: L,
928
+ errorText: R,
929
+ placeholder: _ ?? Je[e].replace(/\{s\}/g, t),
714
930
  startIcon: /* @__PURE__ */ Q(m, {}),
715
931
  maxLength: 10,
716
932
  className: v
@@ -718,251 +934,141 @@ var Me = q(function({ countryCode: e, formatOnChange: t = !0, validateOnBlur: n
718
934
  });
719
935
  //#endregion
720
936
  //#region src/components/inputs/MInputCreditCard/MInputCreditCard.tsx
721
- function Be({ value: e }) {
722
- let t = H(e);
937
+ function Xe({ value: e }) {
938
+ let t = U(e);
723
939
  return /* @__PURE__ */ Q("span", {
724
- className: k("credit-card-brand-badge", "credit-brand", t.brand),
940
+ className: O("credit-card-brand-badge", "credit-brand", t.brand),
725
941
  children: t.iconLabel
726
942
  });
727
943
  }
728
- var Ve = q(function({ validateOnBlur: e = !0, validateOnChange: t = !1, showBrandIcon: n = !0, showValidIcon: r = !0, onValidationChange: a, onCardBrandChange: o, onValueChange: s, value: c, defaultValue: l, onChange: u, onBlur: d, error: f, errorText: p, success: m, placeholder: h = "4242 4242 4242 4242", className: g, ..._ }, v) {
729
- let [y, b] = Z(() => U(l?.toString() ?? "")), [x, S] = Z({ valid: !0 }), [C, w] = Z(!1), T = c === void 0 ? y : U(c.toString()), E = J((e) => {
730
- let t = B(e);
731
- return S(t), a?.(t), t;
732
- }, [a]), D = J((e) => {
733
- let n = U(e.target.value), r = H(n);
734
- c === void 0 && b(n), o?.(r.brand), s?.(V(n), n, r.brand), t && C && E(n), u?.(e);
944
+ var Ze = q(function({ validateOnBlur: e = !0, validateOnChange: t = !1, showBrandIcon: n = !0, showValidIcon: r = !0, onValidationChange: a, onCardBrandChange: o, onValueChange: s, onClear: c, value: l, defaultValue: u, onChange: d, onBlur: f, error: p, errorText: m, success: h, placeholder: g = "4242 4242 4242 4242", className: _, ...v }, y) {
945
+ let [b, x] = Z(() => ne(u?.toString() ?? "")), [S, C] = Z({ valid: !0 }), [w, T] = Z(!1), E = l === void 0 ? b : ne(l.toString()), D = J((e) => {
946
+ let t = H(e);
947
+ return C(t), a?.(t), t;
948
+ }, [a]), k = J((e) => {
949
+ let n = ne(e.target.value), r = U(n);
950
+ l === void 0 && x(n), o?.(r.brand), s?.(te(n), n, r.brand), t && w && D(n), d?.(e);
735
951
  }, [
736
952
  o,
737
- u,
953
+ d,
738
954
  s,
739
- E,
740
- C,
955
+ D,
956
+ w,
741
957
  t,
742
- c
743
- ]), O = J((t) => {
744
- w(!0), e && T && E(T), d?.(t);
958
+ l
959
+ ]), A = J((t) => {
960
+ T(!0), e && E && D(E), f?.(t);
745
961
  }, [
746
- T,
747
- d,
748
962
  E,
963
+ f,
964
+ D,
749
965
  e
750
- ]), A = f || C && !x.valid, j = p || (C && !x.valid ? x.error : void 0), M = !A && m !== void 0 ? m : C && x.valid && V(T).length > 0, N = r && M ? /* @__PURE__ */ Q("span", {
966
+ ]), j = J(() => {
967
+ l === void 0 && x(""), C({ valid: !0 }), T(!1), a?.({ valid: !0 }), s?.("", "", "unknown"), c?.();
968
+ }, [
969
+ c,
970
+ a,
971
+ s,
972
+ l
973
+ ]), M = p || w && !S.valid, N = m || (w && !S.valid ? S.error : void 0), P = !M && h !== void 0 ? h : w && S.valid && te(E).length > 0, F = r && P ? /* @__PURE__ */ Q("span", {
751
974
  className: "credit valid validation-icon credit-card-valid-icon",
752
975
  "aria-hidden": "true",
753
976
  children: /* @__PURE__ */ Q(i, {})
754
977
  }) : void 0;
755
978
  return /* @__PURE__ */ Q(K, {
756
- ..._,
757
- ref: v,
979
+ ...v,
980
+ ref: y,
758
981
  type: "text",
759
982
  inputMode: "numeric",
760
- value: T,
761
- onChange: D,
762
- onBlur: O,
763
- error: A,
764
- errorText: j,
765
- success: M,
766
- placeholder: h,
767
- startIcon: n ? /* @__PURE__ */ Q(Be, { value: T }) : void 0,
768
- endIcon: N,
769
- className: k("credit-card input", g)
983
+ value: E,
984
+ onChange: k,
985
+ onBlur: A,
986
+ onClear: j,
987
+ error: M,
988
+ errorText: N,
989
+ success: P,
990
+ placeholder: g,
991
+ startIcon: n ? /* @__PURE__ */ Q(Xe, { value: E }) : void 0,
992
+ endIcon: F,
993
+ className: O("credit-card input", _)
770
994
  });
771
- });
772
- //#endregion
773
- //#region src/components/inputs/MInputGroup/MInputGroup.tsx
774
- function He(e) {
775
- return typeof e == "object" && !!e && !ge(e) && "type" in e;
776
- }
777
- function Ue(e, t, n, r) {
778
- if (!He(e)) return /* @__PURE__ */ Q("div", {
779
- className: k("addon", "custom", t),
780
- children: e
781
- }, `${t}-${n}`);
782
- let i = e;
783
- return i.type === "button" ? /* @__PURE__ */ Q(fe, {
784
- variant: "ghost",
785
- color: r,
786
- size: "sm",
787
- className: k("addon", t, "addon-button"),
788
- onClick: i.onClick,
789
- clickEffect: "none",
790
- children: i.content
791
- }, `${t}-${n}`) : i.type === "checkbox" ? /* @__PURE__ */ Q("div", {
792
- className: k("addon", t, "checkbox"),
793
- children: /* @__PURE__ */ Q(pe, {
794
- size: "sm",
795
- clickEffect: "none",
796
- checked: i.checked,
797
- onChange: (e) => i.onCheckedChange?.(e.target.checked),
798
- className: "addon-checkbox"
799
- })
800
- }, `${t}-${n}`) : /* @__PURE__ */ Q("span", {
801
- className: k("addon", t),
802
- children: i.content
803
- }, `${t}-${n}`);
804
- }
805
- function We(e) {
806
- return e == null ? [] : Array.isArray(e) ? e : [e];
807
- }
808
- var Ge = q(function({ prepend: e, append: t, type: n = "text", value: r, defaultValue: i, name: a, id: s, placeholder: c, disabled: l = !1, readOnly: u = !1, required: d = !1, autoFocus: f = !1, autoComplete: p, inputMode: m, size: h = "md", fullWidth: g = !1, label: _, helperText: v, errorText: y, color: b = "primary", error: x = !1, maxLength: S, clearable: C = !1, onChange: w, onFocus: T, onBlur: E, onKeyDown: D, onClear: O, loading: A = !1, clickEffect: j = "ripple", rippleColor: M, className: N, style: P, inputClassName: F, labelClassName: I }, L) {
809
- let [R, ee] = Z(!1), z = X(null), { effectClassName: te, effectLayer: B, handlePointerDown: V } = ue({
810
- effect: j,
811
- disabled: l || u,
812
- color: M
813
- }), H = x || !!y, U = H ? "color-error" : `color-${b}`, { currentValue: ne, setCurrentValue: W } = he(r, i), re = ne.length > 0, ie = J((e) => {
814
- ee(!0), T?.(e);
815
- }, [T]), ae = J((e) => {
816
- ee(!1), E?.(e);
817
- }, [E]), oe = J((e) => {
818
- W(e.target.value), w?.(e);
819
- }, [w, W]), se = J(() => {
820
- W("");
821
- let e = L?.current ?? z.current;
822
- e && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 }))), O?.(), e?.focus();
995
+ }), Qe = q(function({ country: e, defaultCountry: t = "PL", selectableCountry: n = !0, validateOnBlur: r = !0, validateOnChange: i = !1, onCountryChange: a, onValidationChange: o, onValueChange: s, onClear: c, value: l, defaultValue: u, onChange: d, onBlur: f, error: p, errorText: m, helperText: h, placeholder: g, className: _, disabled: v = !1, ...y }, b) {
996
+ let [x, S] = Z(t.toUpperCase()), [C, w] = Z(() => k(u?.toString() ?? "", e ?? t)), [T, E] = Z({ valid: !0 }), [D, A] = Z(!1), j = (e ?? x).toUpperCase(), M = ve(() => z(j), [j]), N = l === void 0 ? C : k(l.toString(), j), P = J((e, t) => {
997
+ let n = B(e, t);
998
+ return E(n), o?.(n), n;
999
+ }, [o]), F = J((e) => {
1000
+ let t = k(e.target.value, j);
1001
+ l === void 0 && w(t), s?.(t.replace(/\s|-/g, ""), t, j), i && D && P(t, j), d?.(e);
823
1002
  }, [
824
- O,
825
- L,
826
- W
827
- ]), ce = We(e), G = We(t);
828
- return /* @__PURE__ */ $("div", {
829
- className: k("input-group", U, g && "full-width", N),
830
- style: P,
831
- children: [
832
- _ && /* @__PURE__ */ Q("label", {
833
- htmlFor: s,
834
- className: k("field-label", R && "focused", H && "error", d && "required", I),
835
- children: _
836
- }),
837
- /* @__PURE__ */ $("div", {
838
- className: k("container", `field-${h}`, R && "focused", H && "has-error", l && "disabled", te),
839
- onPointerDown: V,
840
- children: [
841
- B,
842
- ce.map((e, t) => Ue(e, "prepend", t, b)),
843
- /* @__PURE__ */ Q("input", {
844
- ref: L ?? z,
845
- type: n,
846
- value: ne,
847
- name: a,
848
- id: s,
849
- placeholder: c,
850
- disabled: l,
851
- readOnly: u,
852
- required: d,
853
- autoFocus: f,
854
- autoComplete: p,
855
- inputMode: m,
856
- maxLength: S,
857
- className: k("field", F),
858
- onChange: oe,
859
- onFocus: ie,
860
- onBlur: ae,
861
- onKeyDown: D,
862
- "aria-invalid": H || void 0,
863
- "aria-describedby": y ? `${s}-error` : v ? `${s}-helper` : void 0
864
- }),
865
- A && /* @__PURE__ */ Q("span", {
866
- className: "spinner-addon",
867
- children: /* @__PURE__ */ Q(de, {
868
- size: "sm",
869
- color: b
870
- })
871
- }),
872
- C && re && !A && !l && /* @__PURE__ */ Q("button", {
873
- type: "button",
874
- className: "clear-btn clear-btn-base",
875
- onClick: se,
876
- tabIndex: -1,
877
- "aria-label": "Clear input",
878
- children: /* @__PURE__ */ Q(o, {})
879
- }),
880
- G.map((e, t) => Ue(e, "append", t, b))
881
- ]
882
- }),
883
- (y || v) && /* @__PURE__ */ $("div", {
884
- className: "bottom",
885
- children: [y && /* @__PURE__ */ Q("span", {
886
- id: s ? `${s}-error` : void 0,
887
- className: "field-error",
888
- role: "alert",
889
- children: y
890
- }), !y && v && /* @__PURE__ */ Q("span", {
891
- id: s ? `${s}-helper` : void 0,
892
- className: "field-helper",
893
- children: v
894
- })]
895
- })
896
- ]
897
- });
898
- }), Ke = q(function({ country: e, defaultCountry: t = "PL", selectableCountry: n = !0, validateOnBlur: r = !0, validateOnChange: i = !1, onCountryChange: a, onValidationChange: o, onValueChange: s, value: c, defaultValue: l, onChange: u, onBlur: d, error: f, errorText: p, helperText: m, placeholder: h, className: g, disabled: _ = !1, ...v }, y) {
899
- let [b, x] = Z(t.toUpperCase()), [S, C] = Z(() => I(l?.toString() ?? "", e ?? t)), [w, T] = Z({ valid: !0 }), [E, D] = Z(!1), O = (e ?? b).toUpperCase(), j = _e(() => F(O), [O]), M = c === void 0 ? S : I(c.toString(), O), N = J((e, t) => {
900
- let n = te(e, t);
901
- return T(n), o?.(n), n;
902
- }, [o]), P = J((e) => {
903
- let t = I(e.target.value, O);
904
- c === void 0 && C(t), s?.(t.replace(/\s|-/g, ""), t, O), i && E && N(t, O), u?.(e);
905
- }, [
906
- O,
907
- u,
1003
+ j,
1004
+ d,
908
1005
  s,
909
- N,
910
- E,
1006
+ P,
1007
+ D,
911
1008
  i,
912
- c
913
- ]), L = J((e) => {
914
- D(!0), r && M && N(M, O), d?.(e);
1009
+ l
1010
+ ]), I = J((e) => {
1011
+ A(!0), r && N && P(N, j), f?.(e);
915
1012
  }, [
916
- O,
917
- M,
918
- d,
1013
+ j,
919
1014
  N,
1015
+ f,
1016
+ P,
920
1017
  r
1018
+ ]), L = J(() => {
1019
+ l === void 0 && w(""), E({ valid: !0 }), A(!1), o?.({ valid: !0 }), s?.("", "", j), c?.();
1020
+ }, [
1021
+ c,
1022
+ o,
1023
+ s,
1024
+ l,
1025
+ j
921
1026
  ]), R = J((t) => {
922
- let n = t.target.value.toUpperCase(), r = I(M, n);
923
- e === void 0 && x(n), c === void 0 && C(r), a?.(n), E && N(r, n);
1027
+ let n = t.target.value.toUpperCase(), r = k(N, n);
1028
+ e === void 0 && S(n), l === void 0 && w(r), a?.(n), D && P(r, n);
924
1029
  }, [
925
1030
  e,
926
- M,
927
- a,
928
1031
  N,
929
- E,
930
- c
931
- ]), ee = f || E && !w.valid, z = p || (E && !w.valid ? w.error : void 0);
932
- return /* @__PURE__ */ Q(Ge, {
933
- ...v,
934
- ref: y,
1032
+ a,
1033
+ P,
1034
+ D,
1035
+ l
1036
+ ]), ee = p || D && !T.valid, H = m || (D && !T.valid ? T.error : void 0);
1037
+ return /* @__PURE__ */ Q(Le, {
1038
+ ...y,
1039
+ ref: b,
935
1040
  type: "text",
936
- inputMode: j.inputMode,
937
- value: M,
938
- onChange: P,
939
- onBlur: L,
1041
+ inputMode: M.inputMode,
1042
+ value: N,
1043
+ onChange: F,
1044
+ onBlur: I,
1045
+ onClear: L,
940
1046
  error: ee,
941
- errorText: z,
942
- helperText: z ? void 0 : m ?? `Format: ${j.example}`,
943
- placeholder: h ?? j.placeholder,
944
- maxLength: j.maxLength,
945
- disabled: _,
1047
+ errorText: H,
1048
+ helperText: H ? void 0 : h ?? `Format: ${M.example}`,
1049
+ placeholder: n ? M.placeholder : g ?? M.placeholder,
1050
+ maxLength: M.maxLength,
1051
+ disabled: v,
946
1052
  prepend: n ? /* @__PURE__ */ Q("div", {
947
1053
  className: "country-select-wrap",
948
1054
  children: /* @__PURE__ */ Q("select", {
949
1055
  className: "country-select",
950
- value: O,
1056
+ value: j,
951
1057
  onChange: R,
952
- disabled: _,
1058
+ disabled: v,
953
1059
  "aria-label": "Postal code country",
954
- children: A.map((e) => /* @__PURE__ */ Q("option", {
1060
+ children: V.map((e) => /* @__PURE__ */ Q("option", {
955
1061
  value: e.value,
956
1062
  children: e.value
957
1063
  }, e.value))
958
1064
  })
959
1065
  }) : {
960
1066
  type: "text",
961
- content: O
1067
+ content: j
962
1068
  },
963
- className: k("input-post-code", g)
1069
+ className: O("input-post-code", _)
964
1070
  });
965
- }), qe = q(function({ length: e = 6, value: t, onChange: n, autoFocus: r = !1, disabled: i = !1, color: a = "primary", size: s = "md", error: c = !1, errorText: l, clearable: u = !1, label: d, onClear: f, className: p, ...m }, h) {
1071
+ }), $e = q(function({ length: e = 6, value: t, onChange: n, autoFocus: r = !1, disabled: i = !1, color: a = "primary", size: s = "md", error: c = !1, errorText: l, clearable: u = !1, label: d, onClear: f, className: p, ...m }, h) {
966
1072
  let [g, _] = Z(""), v = t === void 0 ? g : t, y = X([]), b = c ? "color-error" : `color-${a}`, x = J((e) => {
967
1073
  t === void 0 && _(e), n?.(e);
968
1074
  }, [t, n]), S = J((t) => {
@@ -1010,7 +1116,7 @@ var Ge = q(function({ prepend: e, append: t, type: n = "text", value: r, default
1010
1116
  ]);
1011
1117
  return /* @__PURE__ */ $("div", {
1012
1118
  ref: h,
1013
- className: k("otp input", b, s, i && "disabled", p),
1119
+ className: O("otp input", b, s, i && "disabled", p),
1014
1120
  ...m,
1015
1121
  children: [
1016
1122
  d && /* @__PURE__ */ Q("div", {
@@ -1031,7 +1137,7 @@ var Ge = q(function({ prepend: e, append: t, type: n = "text", value: r, default
1031
1137
  maxLength: 1,
1032
1138
  value: v[t] || "",
1033
1139
  disabled: i,
1034
- className: k("otp slot", v[t] && "filled"),
1140
+ className: O("otp slot", v[t] && "filled"),
1035
1141
  "aria-label": `Digit ${t + 1}`,
1036
1142
  onChange: (e) => {
1037
1143
  C(t, e.target.value.slice(-1));
@@ -1056,16 +1162,16 @@ var Ge = q(function({ prepend: e, append: t, type: n = "text", value: r, default
1056
1162
  });
1057
1163
  //#endregion
1058
1164
  //#region src/components/inputs/MInputSlider/MInputSlider.tsx
1059
- function Je(e, t, n) {
1165
+ function et(e, t, n) {
1060
1166
  return Math.min(n, Math.max(t, e));
1061
1167
  }
1062
- function Ye(e, t) {
1168
+ function tt(e, t) {
1063
1169
  let n = 10 ** t;
1064
1170
  return Math.round(e * n) / n;
1065
1171
  }
1066
- var Xe = q(function({ min: e = 0, max: t = 100, step: n = 1, value: r, onChange: i, precision: a = 0, marks: o, showInput: s = !0, color: c = "primary", size: l = "md", disabled: u = !1, label: d, className: f, ...p }, m) {
1172
+ var nt = q(function({ min: e = 0, max: t = 100, step: n = 1, value: r, onChange: i, precision: a = 0, marks: o, showInput: s = !0, color: c = "primary", size: l = "md", disabled: u = !1, label: d, className: f, ...p }, m) {
1067
1173
  let [h, g] = Z(e), _ = r === void 0 ? h : r, v = J((n) => {
1068
- let o = Ye(Je(n, e, t), a);
1174
+ let o = tt(et(n, e, t), a);
1069
1175
  r === void 0 && g(o), i?.(o);
1070
1176
  }, [
1071
1177
  e,
@@ -1083,14 +1189,14 @@ var Xe = q(function({ min: e = 0, max: t = 100, step: n = 1, value: r, onChange:
1083
1189
  }, [_, v]);
1084
1190
  return /* @__PURE__ */ $("div", {
1085
1191
  ref: m,
1086
- className: k("slider input", l, u && "disabled", f),
1192
+ className: O("slider input", l, u && "disabled", f),
1087
1193
  ...p,
1088
1194
  children: [d && /* @__PURE__ */ Q("div", {
1089
1195
  className: "slider label",
1090
1196
  children: d
1091
1197
  }), /* @__PURE__ */ $("div", {
1092
1198
  className: "slider row",
1093
- children: [/* @__PURE__ */ Q(me, {
1199
+ children: [/* @__PURE__ */ Q(he, {
1094
1200
  min: e,
1095
1201
  max: t,
1096
1202
  step: n,
@@ -1102,7 +1208,7 @@ var Xe = q(function({ min: e = 0, max: t = 100, step: n = 1, value: r, onChange:
1102
1208
  }), s && /* @__PURE__ */ Q("input", {
1103
1209
  type: "text",
1104
1210
  inputMode: "decimal",
1105
- className: k("slider field", `color-${c}`),
1211
+ className: O("slider field", `color-${c}`),
1106
1212
  value: _,
1107
1213
  onChange: b,
1108
1214
  onBlur: x,
@@ -1114,7 +1220,7 @@ var Xe = q(function({ min: e = 0, max: t = 100, step: n = 1, value: r, onChange:
1114
1220
  });
1115
1221
  //#endregion
1116
1222
  //#region src/components/inputs/MInputFile/MCropEditor.tsx
1117
- function Ze({ file: e, shape: t, outputSize: n, quality: r, onCrop: i, onCancel: a }) {
1223
+ function rt({ file: e, shape: t, outputSize: n, quality: r, onCrop: i, onCancel: a }) {
1118
1224
  let o = X(null), s = X(null), c = X(null), [l, u] = Z(""), [d, f] = Z(1), [p, m] = Z({
1119
1225
  x: 0,
1120
1226
  y: 0
@@ -1214,7 +1320,7 @@ function Ze({ file: e, shape: t, outputSize: n, quality: r, onCrop: i, onCancel:
1214
1320
  children: [/* @__PURE__ */ Q(E, {
1215
1321
  className: "crop zoom icon",
1216
1322
  "aria-hidden": "true"
1217
- }), /* @__PURE__ */ Q(me, {
1323
+ }), /* @__PURE__ */ Q(he, {
1218
1324
  min: 0,
1219
1325
  max: 100,
1220
1326
  step: 1,
@@ -1226,13 +1332,13 @@ function Ze({ file: e, shape: t, outputSize: n, quality: r, onCrop: i, onCancel:
1226
1332
  }),
1227
1333
  /* @__PURE__ */ $("div", {
1228
1334
  className: "crop actions",
1229
- children: [/* @__PURE__ */ Q(fe, {
1335
+ children: [/* @__PURE__ */ Q(pe, {
1230
1336
  variant: "ghost",
1231
1337
  size: "sm",
1232
1338
  color: "neutral",
1233
1339
  onClick: a,
1234
1340
  children: "Cancel"
1235
- }), /* @__PURE__ */ Q(fe, {
1341
+ }), /* @__PURE__ */ Q(pe, {
1236
1342
  variant: "ghost",
1237
1343
  size: "sm",
1238
1344
  color: "primary",
@@ -1249,17 +1355,17 @@ function Ze({ file: e, shape: t, outputSize: n, quality: r, onCrop: i, onCancel:
1249
1355
  }
1250
1356
  //#endregion
1251
1357
  //#region src/components/inputs/MInputFile/MInputFile.tsx
1252
- function Qe(e) {
1358
+ function it(e) {
1253
1359
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1254
1360
  }
1255
- function $e(e) {
1361
+ function at(e) {
1256
1362
  let t = e.lastIndexOf(".");
1257
1363
  return t >= 0 ? e.slice(t + 1).toUpperCase() : "";
1258
1364
  }
1259
- function et(e) {
1365
+ function ot(e) {
1260
1366
  return e.type.startsWith("image/");
1261
1367
  }
1262
- function tt({ ext: i }) {
1368
+ function st({ ext: i }) {
1263
1369
  let o = i.toLowerCase();
1264
1370
  return o === "pdf" ? /* @__PURE__ */ Q(b, {
1265
1371
  className: "file type icon",
@@ -1351,8 +1457,8 @@ function tt({ ext: i }) {
1351
1457
  "aria-hidden": "true"
1352
1458
  });
1353
1459
  }
1354
- var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onChange: i, label: a, helperText: s, errorText: c, error: l = !1, disabled: u = !1, color: d = "primary", size: f = "md", preview: p = !0, clearable: m = !1, icon: h, placeholder: g = "Drop files here or click to browse", dropText: _ = "Drop files here", fullWidth: v = !1, crop: y, onClear: b, className: x, ...S }, C) {
1355
- let [T, E] = Z(!1), [D, O] = Z([]), [A, j] = Z(""), [M, N] = Z(null), P = X(null), F = X(0), I = y ? typeof y == "boolean" ? {
1460
+ var ct = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onChange: i, label: a, helperText: s, errorText: c, error: l = !1, disabled: u = !1, color: d = "primary", size: f = "md", preview: p = !0, clearable: m = !1, icon: h, placeholder: g = "Drop files here or click to browse", dropText: _ = "Drop files here", fullWidth: v = !1, crop: y, onClear: b, className: x, ...S }, C) {
1461
+ let [T, E] = Z(!1), [D, k] = Z([]), [A, j] = Z(""), [M, N] = Z(null), P = X(null), F = X(0), I = y ? typeof y == "boolean" ? {
1356
1462
  shape: "square",
1357
1463
  outputSize: 256,
1358
1464
  quality: .92
@@ -1360,7 +1466,7 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1360
1466
  shape: y.shape ?? "square",
1361
1467
  outputSize: y.outputSize ?? 256,
1362
1468
  quality: y.quality ?? .92
1363
- } : null, L = _e(() => D.map((e) => et(e) ? URL.createObjectURL(e) : null), [D]);
1469
+ } : null, L = ve(() => D.map((e) => ot(e) ? URL.createObjectURL(e) : null), [D]);
1364
1470
  Y(() => () => {
1365
1471
  L.forEach((e) => {
1366
1472
  e && URL.revokeObjectURL(e);
@@ -1376,18 +1482,18 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1376
1482
  });
1377
1483
  }
1378
1484
  if (n && a.filter((e) => e.size > n).length) {
1379
- j(`Max file size: ${Qe(n)}`);
1485
+ j(`Max file size: ${it(n)}`);
1380
1486
  return;
1381
1487
  }
1382
1488
  if (r && a.length > r) {
1383
1489
  j(`Max ${r} file${r > 1 ? "s" : ""}`);
1384
1490
  return;
1385
1491
  }
1386
- if (j(""), I && a.length === 1 && et(a[0])) {
1492
+ if (j(""), I && a.length === 1 && ot(a[0])) {
1387
1493
  N(a[0]);
1388
1494
  return;
1389
1495
  }
1390
- O(a), i?.(a);
1496
+ k(a), i?.(a);
1391
1497
  }, [
1392
1498
  e,
1393
1499
  n,
@@ -1395,42 +1501,42 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1395
1501
  i,
1396
1502
  I
1397
1503
  ]), ee = J((e) => {
1398
- N(null), O([e]), i?.([e]);
1504
+ N(null), k([e]), i?.([e]);
1399
1505
  }, [i]), z = J(() => {
1400
1506
  N(null);
1401
- }, []), te = J((e) => {
1507
+ }, []), B = J((e) => {
1402
1508
  e.preventDefault(), e.stopPropagation(), !u && (F.current++, E(!0));
1403
- }, [u]), B = J((e) => {
1509
+ }, [u]), V = J((e) => {
1404
1510
  e.preventDefault(), e.stopPropagation(), F.current--, F.current <= 0 && (F.current = 0, E(!1));
1405
- }, []), V = J((e) => {
1406
- e.preventDefault(), e.stopPropagation();
1407
1511
  }, []), H = J((e) => {
1512
+ e.preventDefault(), e.stopPropagation();
1513
+ }, []), te = J((e) => {
1408
1514
  e.preventDefault(), e.stopPropagation(), F.current = 0, E(!1), !u && e.dataTransfer.files.length && R(e.dataTransfer.files);
1409
1515
  }, [u, R]), U = J(() => {
1410
1516
  u || P.current?.click();
1411
1517
  }, [u]), ne = J((e) => {
1412
1518
  e.target.files?.length && R(e.target.files);
1413
- }, [R]), W = J((e) => {
1519
+ }, [R]), re = J((e) => {
1414
1520
  let t = L[e];
1415
1521
  t && URL.revokeObjectURL(t);
1416
1522
  let n = D.filter((t, n) => n !== e);
1417
- O(n), i?.(n);
1523
+ k(n), i?.(n);
1418
1524
  }, [
1419
1525
  D,
1420
1526
  L,
1421
1527
  i
1422
- ]), re = J(() => {
1528
+ ]), ie = J(() => {
1423
1529
  L.forEach((e) => {
1424
1530
  e && URL.revokeObjectURL(e);
1425
- }), N(null), O([]), j(""), P.current && (P.current.value = ""), i?.([]), b?.();
1531
+ }), N(null), k([]), j(""), P.current && (P.current.value = ""), i?.([]), b?.();
1426
1532
  }, [
1427
1533
  L,
1428
1534
  i,
1429
1535
  b
1430
- ]), ie = c || A, ae = l || !!A;
1536
+ ]), W = c || A, ae = l || !!A;
1431
1537
  return /* @__PURE__ */ $("div", {
1432
1538
  ref: C,
1433
- className: k("file input", ae ? "color-error" : `color-${d}`, f, v && "full-width", u && "disabled", x),
1539
+ className: O("file input", ae ? "color-error" : `color-${d}`, f, v && "full-width", u && "disabled", x),
1434
1540
  ...S,
1435
1541
  children: [
1436
1542
  (a || m && D.length > 0 && !u) && /* @__PURE__ */ $("div", {
@@ -1441,18 +1547,18 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1441
1547
  }), m && D.length > 0 && !u && /* @__PURE__ */ Q("button", {
1442
1548
  type: "button",
1443
1549
  className: "file clear clear-btn-base",
1444
- onClick: re,
1550
+ onClick: ie,
1445
1551
  "aria-label": "Clear files",
1446
1552
  children: /* @__PURE__ */ Q(o, { "aria-hidden": "true" })
1447
1553
  })]
1448
1554
  }),
1449
1555
  /* @__PURE__ */ $("div", {
1450
- className: k("file dropzone", T && "dragging", ae && "error"),
1556
+ className: O("file dropzone", T && "dragging", ae && "error"),
1451
1557
  onClick: U,
1452
- onDragEnter: te,
1453
- onDragLeave: B,
1454
- onDragOver: V,
1455
- onDrop: H,
1558
+ onDragEnter: B,
1559
+ onDragLeave: V,
1560
+ onDragOver: H,
1561
+ onDrop: te,
1456
1562
  role: "button",
1457
1563
  tabIndex: u ? -1 : 0,
1458
1564
  onKeyDown: (e) => {
@@ -1489,7 +1595,7 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1489
1595
  ]
1490
1596
  })]
1491
1597
  }),
1492
- M && I && /* @__PURE__ */ Q(Ze, {
1598
+ M && I && /* @__PURE__ */ Q(rt, {
1493
1599
  file: M,
1494
1600
  shape: I.shape,
1495
1601
  outputSize: I.outputSize,
@@ -1501,9 +1607,9 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1501
1607
  className: "file helper",
1502
1608
  children: s
1503
1609
  }),
1504
- ae && ie && /* @__PURE__ */ Q("div", {
1610
+ ae && W && /* @__PURE__ */ Q("div", {
1505
1611
  className: "file error",
1506
- children: ie
1612
+ children: W
1507
1613
  }),
1508
1614
  p && D.length > 0 && !M && /* @__PURE__ */ Q("div", {
1509
1615
  className: "file preview",
@@ -1516,7 +1622,7 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1516
1622
  src: L[t],
1517
1623
  alt: e.name,
1518
1624
  className: "file image"
1519
- }) : /* @__PURE__ */ Q(tt, { ext: $e(e.name) })
1625
+ }) : /* @__PURE__ */ Q(st, { ext: at(e.name) })
1520
1626
  }),
1521
1627
  /* @__PURE__ */ $("div", {
1522
1628
  className: "file info",
@@ -1525,14 +1631,14 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1525
1631
  children: e.name
1526
1632
  }), /* @__PURE__ */ Q("span", {
1527
1633
  className: "file size",
1528
- children: Qe(e.size)
1634
+ children: it(e.size)
1529
1635
  })]
1530
1636
  }),
1531
1637
  /* @__PURE__ */ Q("button", {
1532
1638
  type: "button",
1533
1639
  className: "file remove",
1534
1640
  onClick: (e) => {
1535
- e.stopPropagation(), W(t);
1641
+ e.stopPropagation(), re(t);
1536
1642
  },
1537
1643
  "aria-label": `Remove ${e.name}`,
1538
1644
  children: /* @__PURE__ */ Q(o, { "aria-hidden": "true" })
@@ -1544,6 +1650,6 @@ var nt = q(function({ accept: e, multiple: t = !1, maxSize: n, maxFiles: r, onCh
1544
1650
  });
1545
1651
  });
1546
1652
  //#endregion
1547
- export { Ge as a, Le as c, De as d, Ee as f, ve as g, xe as h, Ke as i, Ie as l, we as m, Xe as n, Ve as o, Te as p, qe as r, ze as s, nt as t, Me as u };
1653
+ export { Ze as a, Ke as c, Ne as d, Me as f, ye as g, Se as h, Qe as i, He as l, Te as m, nt as n, Ye as o, Ee as p, $e as r, qe as s, ct as t, Le as u };
1548
1654
 
1549
- //# sourceMappingURL=inputs-Bcwd_UTr.js.map
1655
+ //# sourceMappingURL=inputs-Dwjwa_SJ.js.map