maz-ui 3.47.2-beta.9 → 3.48.1-beta.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 (296) hide show
  1. package/components/MazAccordion.mjs +76 -77
  2. package/components/MazAnimatedCounter.mjs +7 -7
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBackdrop.d.ts +21 -13
  5. package/components/MazBackdrop.mjs +107 -82
  6. package/components/MazBadge.mjs +2 -2
  7. package/components/MazBottomSheet.d.ts +11 -24
  8. package/components/MazBottomSheet.mjs +1 -1
  9. package/components/MazBtn.mjs +1 -1
  10. package/components/MazCard.mjs +1 -1
  11. package/components/MazCardSpotlight.mjs +7 -7
  12. package/components/MazCarousel.mjs +1 -1
  13. package/components/MazChart.mjs +13 -13
  14. package/components/MazCheckbox.mjs +36 -37
  15. package/components/MazChecklist.mjs +1 -1
  16. package/components/MazCircularProgressBar.d.ts +18 -0
  17. package/components/MazCircularProgressBar.mjs +40 -38
  18. package/components/MazDialog.d.ts +20 -31
  19. package/components/MazDialog.mjs +1 -1
  20. package/components/MazDialogPromise.d.ts +3 -3
  21. package/components/MazDialogPromise.mjs +1 -1
  22. package/components/MazDrawer.d.ts +7 -4
  23. package/components/MazDrawer.mjs +2 -194
  24. package/components/MazDropdown.mjs +1 -1
  25. package/components/MazDropzone.mjs +1 -1
  26. package/components/MazExpandAnimation.mjs +8 -8
  27. package/components/MazFullscreenLoader.mjs +2 -40
  28. package/components/MazGallery.mjs +1 -1
  29. package/components/MazIcon.mjs +9 -8
  30. package/components/MazInput.d.ts +2 -0
  31. package/components/MazInput.mjs +1 -1
  32. package/components/MazInputCode.mjs +2 -2
  33. package/components/MazInputNumber.mjs +1 -1
  34. package/components/MazInputPrice.mjs +1 -1
  35. package/components/MazInputTags.mjs +1 -1
  36. package/components/MazLazyImg.mjs +1 -1
  37. package/components/MazLink.d.ts +2 -2
  38. package/components/MazLink.mjs +6 -6
  39. package/components/MazLoadingBar.mjs +17 -17
  40. package/components/MazPagination.mjs +1 -1
  41. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  42. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
  43. package/components/MazPhoneNumberInput/types.d.ts +4 -2
  44. package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
  45. package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  46. package/components/MazPhoneNumberInput.mjs +1 -1
  47. package/components/MazPicker.mjs +1 -1
  48. package/components/MazPullToRefresh.mjs +1 -1
  49. package/components/MazRadio.mjs +18 -19
  50. package/components/MazRadioButtons.mjs +2 -2
  51. package/components/MazReadingProgressBar.mjs +15 -15
  52. package/components/MazSelect.d.ts +1 -1
  53. package/components/MazSelect.mjs +1 -1
  54. package/components/MazSlider.mjs +31 -31
  55. package/components/MazSpinner.mjs +7 -7
  56. package/components/MazStepper.d.ts +1 -1
  57. package/components/MazStepper.mjs +1 -1
  58. package/components/MazSwitch.mjs +19 -20
  59. package/components/MazTable.mjs +1 -1
  60. package/components/MazTableCell.mjs +12 -12
  61. package/components/MazTableRow.mjs +6 -6
  62. package/components/MazTableTitle.mjs +11 -11
  63. package/components/MazTabs.d.ts +3 -3
  64. package/components/MazTabs.mjs +7 -7
  65. package/components/MazTabsBar.mjs +1 -1
  66. package/components/MazTabsContent.mjs +4 -4
  67. package/components/MazTabsContentItem.mjs +10 -10
  68. package/components/MazTextarea.d.ts +26 -48
  69. package/components/MazTextarea.mjs +4 -5
  70. package/components/MazTransitionExpand.mjs +10 -10
  71. package/components/assets/MazAccordion.css +1 -1
  72. package/components/assets/MazAnimatedCounter.css +1 -1
  73. package/components/assets/MazAvatar.css +1 -1
  74. package/components/assets/MazBackdrop.css +1 -1
  75. package/components/assets/MazBadge.css +1 -1
  76. package/components/assets/MazBottomSheet.css +1 -1
  77. package/components/assets/MazBtn.css +1 -1
  78. package/components/assets/MazCard.css +1 -1
  79. package/components/assets/MazCardSpotlight.css +1 -1
  80. package/components/assets/MazCarousel.css +1 -1
  81. package/components/assets/MazCheckbox.css +1 -1
  82. package/components/assets/MazChecklist.css +1 -1
  83. package/components/assets/MazCircularProgressBar.css +1 -1
  84. package/components/assets/MazDialog.css +1 -1
  85. package/components/assets/MazDialogPromise.css +1 -1
  86. package/components/assets/MazDrawer.css +1 -1
  87. package/components/assets/MazDropdown.css +1 -1
  88. package/components/assets/MazDropzone.css +1 -1
  89. package/components/assets/MazExpandAnimation.css +1 -1
  90. package/components/assets/MazFullscreenLoader.css +1 -1
  91. package/components/assets/MazGallery.css +1 -1
  92. package/components/assets/MazInput.css +1 -1
  93. package/components/assets/MazInputCode.css +1 -1
  94. package/components/assets/MazInputNumber.css +1 -1
  95. package/components/assets/MazInputPrice.css +1 -1
  96. package/components/assets/MazInputTags.css +1 -1
  97. package/components/assets/MazLazyImg.css +1 -1
  98. package/components/assets/MazLink.css +1 -1
  99. package/components/assets/MazLoadingBar.css +1 -1
  100. package/components/assets/MazPagination.css +1 -1
  101. package/components/assets/MazPhoneNumberInput.css +1 -1
  102. package/components/assets/MazPicker.css +1 -1
  103. package/components/assets/MazPickerYearSwitcher.css +1 -1
  104. package/components/assets/MazPullToRefresh.css +1 -1
  105. package/components/assets/MazRadio.css +1 -1
  106. package/components/assets/MazRadioButtons.css +1 -1
  107. package/components/assets/MazReadingProgressBar.css +1 -1
  108. package/components/assets/MazSelect.css +1 -1
  109. package/components/assets/MazSlider.css +1 -1
  110. package/components/assets/MazSpinner.css +1 -1
  111. package/components/assets/MazStepper.css +1 -1
  112. package/components/assets/MazSwitch.css +1 -1
  113. package/components/assets/MazTable.css +1 -1
  114. package/components/assets/MazTableCell.css +1 -1
  115. package/components/assets/MazTableRow.css +1 -1
  116. package/components/assets/MazTableTitle.css +1 -1
  117. package/components/assets/MazTabsBar.css +1 -1
  118. package/components/assets/MazTabsContentItem.css +1 -1
  119. package/components/assets/MazTextarea.css +1 -1
  120. package/components/assets/MazTransitionExpand.css +1 -1
  121. package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
  122. package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
  123. package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
  124. package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
  125. package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
  126. package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
  127. package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
  128. package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
  129. package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
  130. package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
  131. package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
  132. package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
  133. package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
  134. package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
  135. package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
  136. package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
  137. package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
  138. package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
  139. package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
  140. package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
  141. package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
  142. package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
  143. package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
  144. package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
  145. package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
  146. package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
  147. package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
  148. package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
  149. package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
  150. package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
  151. package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
  152. package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
  153. package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
  154. package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
  155. package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
  156. package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
  157. package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
  158. package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
  159. package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
  160. package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
  161. package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
  162. package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
  163. package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
  164. package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
  165. package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
  166. package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
  167. package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
  168. package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
  169. package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
  170. package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
  171. package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
  172. package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
  173. package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
  174. package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
  175. package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
  176. package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
  177. package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
  178. package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
  179. package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
  180. package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
  181. package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
  182. package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
  183. package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
  184. package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
  185. package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
  186. package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
  187. package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
  188. package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
  189. package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
  190. package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
  191. package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
  192. package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
  193. package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
  194. package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
  195. package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
  196. package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
  197. package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
  198. package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
  199. package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
  200. package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
  201. package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
  202. package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
  203. package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
  204. package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
  205. package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
  206. package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
  207. package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
  208. package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
  209. package/css/main.css +1 -1
  210. package/modules/assets/MazBtn.css +1 -1
  211. package/modules/assets/MazSpinner.css +1 -1
  212. package/modules/assets/index.css +1 -1
  213. package/modules/chunks/MazBtn-12ldn-IH.cjs +1 -0
  214. package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-A18R0ZiR.mjs} +4 -4
  215. package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-D-FWXW5H.mjs} +12 -11
  216. package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-biM0ap4E.cjs} +1 -1
  217. package/modules/chunks/MazSpinner-BJJ4mYvt.cjs +1 -0
  218. package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-wVcTxosW.mjs} +7 -7
  219. package/modules/chunks/index-BJbzM3Z0.cjs +124 -0
  220. package/modules/chunks/{index-Kry9j5uD.mjs → index-DGys9TOt.mjs} +1187 -951
  221. package/modules/index.cjs +1 -1
  222. package/modules/index.mjs +47 -46
  223. package/nuxt/index.json +1 -1
  224. package/package.json +5 -3
  225. package/tailwindcss/tailwind.css +0 -6
  226. package/tailwindcss/utils/colors.ts +9 -5
  227. package/tailwindcss/variables/utilities.ts +3 -0
  228. package/types/components/MazBackdrop.vue.d.ts +21 -13
  229. package/types/components/MazBottomSheet.vue.d.ts +11 -24
  230. package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
  231. package/types/components/MazDialog.vue.d.ts +20 -31
  232. package/types/components/MazDialogPromise.vue.d.ts +3 -3
  233. package/types/components/MazDrawer.vue.d.ts +7 -4
  234. package/types/components/MazInput.vue.d.ts +2 -0
  235. package/types/components/MazLink.vue.d.ts +2 -2
  236. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  237. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
  238. package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
  239. package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
  240. package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  241. package/types/components/MazSelect.vue.d.ts +1 -1
  242. package/types/components/MazStepper.vue.d.ts +1 -1
  243. package/types/components/MazTabs.vue.d.ts +3 -3
  244. package/types/components/MazTextarea.vue.d.ts +26 -48
  245. package/types/modules/composables/useFormValidator/types.d.ts +2 -2
  246. package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
  247. package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
  248. package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
  249. package/types/modules/directives/closable.d.ts +1 -1
  250. package/types/modules/directives/tooltip/index.d.ts +21 -0
  251. package/types/tailwindcss/tailwind.config.d.ts +2 -2
  252. package/types/tailwindcss/utils/colors.d.ts +1 -1
  253. package/types/tailwindcss/variables/utilities.d.ts +3 -0
  254. package/components/MazPhoneNumberInput.d.ts +0 -240
  255. package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
  256. package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
  257. package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
  258. package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
  259. package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
  260. package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
  261. package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
  262. package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
  263. package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
  264. package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
  265. package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
  266. package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
  267. package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
  268. package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
  269. package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
  270. package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
  271. package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
  272. package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
  273. package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
  274. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
  275. package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
  276. package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
  277. package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
  278. package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
  279. package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
  280. package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
  281. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
  282. package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
  283. package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
  284. package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
  285. package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
  286. package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
  287. package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
  288. package/components/chunks/MazTableRow-CIO-x6Lb.mjs +0 -30
  289. package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
  290. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
  291. package/modules/chunks/MazBtn-0CRjeBvn.mjs +0 -103
  292. package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
  293. package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
  294. package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
  295. package/modules/chunks/index-DvromXrX.cjs +0 -124
  296. package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
@@ -1,4 +1,4 @@
1
- import { openBlock as p, createElementBlock as b, createElementVNode as c, useId as V, computed as g, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as $, normalizeStyle as k, renderSlot as h, withDirectives as E, vShow as z, mergeModels as A, useModel as x, mergeProps as I, useSlots as L, Fragment as j, renderList as F, createBlock as N, withCtx as M, unref as y, createVNode as S } from "vue";
1
+ import { openBlock as p, createElementBlock as g, createElementVNode as u, computed as $, useId as V, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as b, normalizeStyle as k, renderSlot as h, withDirectives as E, vShow as z, mergeModels as A, useModel as x, mergeProps as I, useSlots as L, Fragment as j, renderList as F, createBlock as N, withCtx as M, unref as y, createVNode as S } from "vue";
2
2
  import './assets/MazAccordion.css';const R = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -6,9 +6,9 @@ import './assets/MazAccordion.css';const R = {
6
6
  fill: "none",
7
7
  viewBox: "0 0 24 24"
8
8
  };
9
- function P(r, n) {
10
- return p(), b("svg", R, n[0] || (n[0] = [
11
- c(
9
+ function P(r, t) {
10
+ return p(), g("svg", R, t[0] || (t[0] = [
11
+ u(
12
12
  "path",
13
13
  {
14
14
  stroke: "currentColor",
@@ -26,10 +26,9 @@ function P(r, n) {
26
26
  const T = { render: P };
27
27
  function U({
28
28
  componentName: r,
29
- providedId: n
29
+ providedId: t
30
30
  }) {
31
- const o = V();
32
- return g(() => n ?? `${r}-${o}`);
31
+ return $(() => t ?? `${r}-${V().replace(/:/g, "")}`);
33
32
  }
34
33
  const q = { class: "inner" }, D = /* @__PURE__ */ w({
35
34
  __name: "MazCardSpotlight",
@@ -42,16 +41,16 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
42
41
  innerOpacity: { default: 0.95 }
43
42
  },
44
43
  setup(r) {
45
- const n = r, o = f(), a = f(), s = f(!1);
46
- function m({ clientX: d, clientY: u }) {
47
- var e, _, t;
44
+ const t = r, l = f(), o = f(), s = f(!1);
45
+ function m({ clientX: d, clientY: c }) {
46
+ var e, _, n;
48
47
  s.value = !0;
49
- const v = (e = a.value) == null ? void 0 : e.getBoundingClientRect();
50
- v && ((t = (_ = o.value) == null ? void 0 : _.animate) == null || t.call(
48
+ const v = (e = o.value) == null ? void 0 : e.getBoundingClientRect();
49
+ v && ((n = (_ = l.value) == null ? void 0 : _.animate) == null || n.call(
51
50
  _,
52
51
  [
53
52
  {
54
- transform: `translate(${d - v.left - v.width / 2}px,${u - v.top - v.height / 2}px)`
53
+ transform: `translate(${d - v.left - v.width / 2}px,${c - v.top - v.height / 2}px)`
55
54
  }
56
55
  ],
57
56
  {
@@ -60,23 +59,23 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
60
59
  }
61
60
  ));
62
61
  }
63
- const l = g(() => `var(--maz-color-${n.color}-alpha)`), i = g(() => `var(--maz-color-${n.color}-alpha-20)`);
62
+ const a = $(() => `var(--maz-color-${t.color}-alpha)`), i = $(() => `var(--maz-color-${t.color}-alpha-20)`);
64
63
  return O(() => {
65
64
  window.addEventListener("mousemove", m);
66
65
  }), B(() => {
67
66
  window.removeEventListener("mousemove", m);
68
- }), (d, u) => (p(), b(
67
+ }), (d, c) => (p(), g(
69
68
  "div",
70
69
  {
71
- class: $(["m-card-spotlight", { "maz-elevation": !d.noElevation }]),
70
+ class: b(["m-card-spotlight m-reset-css", { "maz-elevation": !d.noElevation }]),
72
71
  style: k({ backgroundColor: i.value, "--inner-opacity": d.innerOpacity })
73
72
  },
74
73
  [
75
- c("div", q, [
76
- c(
74
+ u("div", q, [
75
+ u(
77
76
  "div",
78
77
  {
79
- class: $(["content", [{ "maz-p-4": d.padding }, d.contentClass]])
78
+ class: b(["content", [{ "maz-p-4": d.padding }, d.contentClass]])
80
79
  },
81
80
  [
82
81
  h(d.$slots, "default", {}, void 0, !0)
@@ -85,13 +84,13 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
85
84
  /* CLASS */
86
85
  )
87
86
  ]),
88
- E(c(
87
+ E(u(
89
88
  "div",
90
89
  {
91
90
  ref_key: "blobElement",
92
- ref: o,
91
+ ref: l,
93
92
  class: "blob",
94
- style: k({ backgroundColor: l.value })
93
+ style: k({ backgroundColor: a.value })
95
94
  },
96
95
  null,
97
96
  4
@@ -99,11 +98,11 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
99
98
  ), [
100
99
  [z, s.value]
101
100
  ]),
102
- E(c(
101
+ E(u(
103
102
  "div",
104
103
  {
105
104
  ref_key: "fakeblobElement",
106
- ref: a,
105
+ ref: o,
107
106
  class: "fakeblob"
108
107
  },
109
108
  null,
@@ -117,12 +116,12 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
117
116
  /* CLASS, STYLE */
118
117
  ));
119
118
  }
120
- }), C = (r, n) => {
121
- const o = r.__vccOpts || r;
122
- for (const [a, s] of n)
123
- o[a] = s;
124
- return o;
125
- }, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-30c7054c"]]), W = ["aria-hidden"], G = /* @__PURE__ */ w({
119
+ }), C = (r, t) => {
120
+ const l = r.__vccOpts || r;
121
+ for (const [o, s] of t)
122
+ l[o] = s;
123
+ return l;
124
+ }, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-4f773edc"]]), W = ["aria-hidden"], G = /* @__PURE__ */ w({
126
125
  inheritAttrs: !1,
127
126
  __name: "MazExpandAnimation",
128
127
  props: /* @__PURE__ */ A({
@@ -134,44 +133,44 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
134
133
  }),
135
134
  emits: ["update:modelValue"],
136
135
  setup(r) {
137
- const n = x(r, "modelValue"), o = f(!n.value), a = f();
136
+ const t = x(r, "modelValue"), l = f(!t.value), o = f();
138
137
  function s() {
139
- n.value || (o.value = !0);
138
+ t.value || (l.value = !0);
140
139
  }
141
140
  function m() {
142
- n.value && (o.value = !1);
141
+ t.value && (l.value = !1);
143
142
  }
144
143
  return O(() => {
145
- var l, i;
146
- (l = a.value) == null || l.addEventListener("transitionstart", s, !1), (i = a.value) == null || i.addEventListener("transitionend", m, !1);
144
+ var a, i;
145
+ (a = o.value) == null || a.addEventListener("transitionstart", s, !1), (i = o.value) == null || i.addEventListener("transitionend", m, !1);
147
146
  }), B(() => {
148
- var l, i;
149
- (l = a.value) == null || l.removeEventListener("transitionstart", s, !1), (i = a.value) == null || i.removeEventListener("transitionend", m, !1);
150
- }), (l, i) => (p(), b("div", {
147
+ var a, i;
148
+ (a = o.value) == null || a.removeEventListener("transitionstart", s, !1), (i = o.value) == null || i.removeEventListener("transitionend", m, !1);
149
+ }), (a, i) => (p(), g("div", {
151
150
  ref_key: "expandAnimationRef",
152
- ref: a,
153
- class: $(["m-expand-animation", { "m-expand-animation--expanded": n.value }]),
154
- "aria-hidden": !n.value,
151
+ ref: o,
152
+ class: b(["m-expand-animation m-reset-css", { "m-expand-animation--expanded": t.value }]),
153
+ "aria-hidden": !t.value,
155
154
  role: "region",
156
- style: k([{ "--expand-animation-duration": l.duration, "--expand-animation-timing-function": l.timingFunction }])
155
+ style: k([{ "--expand-animation-duration": a.duration, "--expand-animation-timing-function": a.timingFunction }])
157
156
  }, [
158
- c(
157
+ u(
159
158
  "div",
160
- I({ class: "m-expand-animation__inner" }, l.$attrs, {
159
+ I({ class: "m-expand-animation__inner" }, a.$attrs, {
161
160
  class: {
162
- "--overflow-hidden": o.value
161
+ "--overflow-hidden": l.value
163
162
  }
164
163
  }),
165
164
  [
166
- h(l.$slots, "default", {}, void 0, !0)
165
+ h(a.$slots, "default", {}, void 0, !0)
167
166
  ],
168
167
  16
169
168
  /* FULL_PROPS */
170
169
  )
171
170
  ], 14, W));
172
171
  }
173
- }), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-3bfdfbc1"]]), K = {
174
- class: "m-accordion",
172
+ }), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-058a2912"]]), K = {
173
+ class: "m-accordion m-reset-css",
175
174
  role: "presentation"
176
175
  }, Q = ["id", "aria-controls", "aria-expanded", "onClick"], X = /* @__PURE__ */ w({
177
176
  __name: "MazAccordion",
@@ -181,68 +180,68 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
181
180
  contentClass: { default: void 0 }
182
181
  },
183
182
  emits: ["update:model-value"],
184
- setup(r, { emit: n }) {
185
- const o = r, a = n, s = U({
183
+ setup(r, { emit: t }) {
184
+ const l = r, o = t, s = U({
186
185
  componentName: "MazAccordion",
187
- providedId: o.id
188
- }), m = L(), l = g(
186
+ providedId: l.id
187
+ }), m = L(), a = $(
189
188
  () => Object.keys(m).filter((e) => e.startsWith("title-")).length
190
- ), i = f(o.modelValue), d = g({
191
- get: () => o.modelValue || i.value,
189
+ ), i = f(l.modelValue), d = $({
190
+ get: () => l.modelValue || i.value,
192
191
  set: (e) => {
193
- i.value = e, a("update:model-value", e);
192
+ i.value = e, o("update:model-value", e);
194
193
  }
195
194
  });
196
- function u(e) {
195
+ function c(e) {
197
196
  return d.value === e;
198
197
  }
199
198
  function v(e) {
200
- d.value === e ? (i.value = 0, a("update:model-value", 0)) : (i.value = e, a("update:model-value", e));
199
+ d.value === e ? (i.value = 0, o("update:model-value", 0)) : (i.value = e, o("update:model-value", e));
201
200
  }
202
- return (e, _) => (p(), b("div", K, [
203
- (p(!0), b(
201
+ return (e, _) => (p(), g("div", K, [
202
+ (p(!0), g(
204
203
  j,
205
204
  null,
206
- F(l.value, (t) => (p(), N(
205
+ F(a.value, (n) => (p(), N(
207
206
  H,
208
207
  {
209
- key: t,
208
+ key: n,
210
209
  class: "m-accordion__spotlight",
211
210
  padding: !1
212
211
  },
213
212
  {
214
213
  default: M(() => [
215
- c("button", {
216
- id: `step-${t}-${y(s)}`,
214
+ u("button", {
215
+ id: `step-${n}-${y(s)}`,
217
216
  class: "m-accordion__header",
218
- "aria-controls": `step-${t}-${y(s)}`,
219
- "aria-expanded": u(t),
220
- onClick: (Y) => v(t)
217
+ "aria-controls": `step-${n}-${y(s)}`,
218
+ "aria-expanded": c(n),
219
+ onClick: (Y) => v(n)
221
220
  }, [
222
- h(e.$slots, `title-${t}`, {
223
- isOpen: u(t)
221
+ h(e.$slots, `title-${n}`, {
222
+ isOpen: c(n)
224
223
  }, void 0, !0),
225
224
  S(y(T), {
226
- class: $(["header-icon", { "--rotate": u(t) }])
225
+ class: b(["header-icon", { "--rotate": c(n) }])
227
226
  }, null, 8, ["class"])
228
227
  ], 8, Q),
229
228
  S(J, {
230
229
  "animation-duration": "300ms",
231
- "model-value": u(t),
232
- "aria-labelledby": `step-${t}-${y(s)}`
230
+ "model-value": c(n),
231
+ "aria-labelledby": `step-${n}-${y(s)}`
233
232
  }, {
234
233
  default: M(() => [
235
- c(
234
+ u(
236
235
  "div",
237
236
  {
238
- class: $(["m-accordion__content", e.contentClass])
237
+ class: b(["m-accordion__content", e.contentClass])
239
238
  },
240
239
  [
241
240
  h(e.$slots, "content", {
242
- isOpen: u(t)
241
+ isOpen: c(n)
243
242
  }, void 0, !0),
244
- h(e.$slots, `content-${t}`, {
245
- isOpen: u(t)
243
+ h(e.$slots, `content-${n}`, {
244
+ isOpen: c(n)
246
245
  }, void 0, !0)
247
246
  ],
248
247
  2
@@ -264,7 +263,7 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
264
263
  ))
265
264
  ]));
266
265
  }
267
- }), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-052b6500"]]);
266
+ }), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-6a945de6"]]);
268
267
  export {
269
268
  ee as default
270
269
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, useSlots as x, computed as l, ref as _, watch as h, openBlock as d, createElementBlock as p, normalizeClass as y, normalizeStyle as z, createElementVNode as C, renderSlot as i, createTextVNode as o, toDisplayString as a, createCommentVNode as S } from "vue";
1
+ import { defineComponent as v, useSlots as x, computed as l, ref as _, watch as h, openBlock as d, createElementBlock as m, normalizeClass as y, normalizeStyle as z, createElementVNode as C, renderSlot as i, createTextVNode as o, toDisplayString as a, createCommentVNode as S } from "vue";
2
2
  import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k = {
3
3
  key: 0,
4
4
  class: "m-animated-counter__fix"
@@ -20,18 +20,18 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
20
20
  }, 100));
21
21
  }
22
22
  );
23
- const m = l(() => `${t.duration}ms`);
24
- return (e, c) => (d(), p(
23
+ const p = l(() => `${t.duration}ms`);
24
+ return (e, c) => (d(), m(
25
25
  "span",
26
26
  {
27
- class: y(["m-animated-counter", {
27
+ class: y(["m-animated-counter m-reset-css", {
28
28
  "--animated": f.value,
29
29
  "--prefixed": r.value,
30
30
  "--suffixed": u.value
31
31
  }]),
32
32
  style: z({
33
33
  "--count": e.count,
34
- "--animation-duration": m.value
34
+ "--animation-duration": p.value
35
35
  })
36
36
  },
37
37
  [
@@ -56,7 +56,7 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
56
56
  )
57
57
  ], !0)
58
58
  ]),
59
- r.value || u.value ? (d(), p("span", k, [
59
+ r.value || u.value ? (d(), m("span", k, [
60
60
  i(e.$slots, "prefix", {}, () => [
61
61
  o(
62
62
  a(e.prefix),
@@ -82,7 +82,7 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
82
82
  for (const [r, u] of t)
83
83
  s[r] = u;
84
84
  return s;
85
- }, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-fc78b268"]]);
85
+ }, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-c2cd744f"]]);
86
86
  export {
87
87
  V as default
88
88
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazAvatar-CZzOIbzh.mjs";
1
+ import { M as f } from "./chunks/MazAvatar-CuOWgdVG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,29 @@
1
1
  import { type HTMLAttributes } from 'vue';
2
- export interface Props {
2
+ export interface MazBackdropProps {
3
+ /** @model Modal's model value */
3
4
  modelValue?: boolean;
5
+ /** Teleport selector */
4
6
  teleportSelector?: string;
7
+ /** Function called before modal is close */
5
8
  beforeClose?: () => Promise<void> | void;
9
+ /** Persistent dialog (not closable by clicking outside and remove close button) */
6
10
  persistent?: boolean;
11
+ /** Prevent close on escape key */
7
12
  noCloseOnEscKey?: boolean;
13
+ /** Transition name */
8
14
  transitionName?: string;
15
+ /** Backdrop class */
9
16
  backdropClass?: HTMLAttributes['class'];
17
+ /** Backdrop content class */
10
18
  backdropContentClass?: HTMLAttributes['class'];
19
+ /** Add padding to the content */
20
+ contentPadding?: boolean;
21
+ /** Justify content */
22
+ justify?: 'center' | 'end' | 'start' | 'space-between' | 'space-around' | 'none';
23
+ /** Align content */
24
+ align?: 'center' | 'end' | 'start' | 'none';
25
+ /** Variant */
26
+ variant?: 'bottom-sheet' | 'dialog' | 'drawer';
11
27
  }
12
28
  declare function close(): void;
13
29
  declare function toggleModal(value: any): Promise<void>;
@@ -20,13 +36,14 @@ declare function __VLS_template(): {
20
36
  slots: {
21
37
  default?(_: {
22
38
  close: typeof close;
39
+ onBackdropClicked: typeof onBackdropClicked;
23
40
  }): any;
24
41
  };
25
42
  refs: {};
26
43
  rootEl: any;
27
44
  };
28
45
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
- declare const __VLS_component: import("vue").DefineComponent<Props, {
46
+ declare const __VLS_component: import("vue").DefineComponent<MazBackdropProps, {
30
47
  onBackdropAnimationEnter: typeof onBackdropAnimationEnter;
31
48
  onBackdropAnimationLeave: typeof onBackdropAnimationLeave;
32
49
  onBackdropClicked: typeof onBackdropClicked;
@@ -39,21 +56,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
39
56
  open: (value: void) => any;
40
57
  "update:model-value": (value: boolean) => any;
41
58
  "before-close": (value: void) => any;
42
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
59
+ }, string, import("vue").PublicProps, Readonly<MazBackdropProps> & Readonly<{
43
60
  onClose?: ((value?: void | undefined) => any) | undefined;
44
61
  onOpen?: ((value?: void | undefined) => any) | undefined;
45
62
  "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
46
63
  "onBefore-close"?: ((value?: void | undefined) => any) | undefined;
47
- }>, {
48
- modelValue: boolean;
49
- teleportSelector: string;
50
- beforeClose: () => Promise<void> | void;
51
- persistent: boolean;
52
- noCloseOnEscKey: boolean;
53
- transitionName: string;
54
- backdropClass: HTMLAttributes["class"];
55
- backdropContentClass: HTMLAttributes["class"];
56
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
65
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
66
  export default _default;
59
67
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,5 +1,9 @@
1
- import { defineComponent as A, ref as L, onMounted as V, watch as D, openBlock as f, createBlock as N, Teleport as S, createVNode as h, Transition as M, withCtx as P, createElementBlock as T, normalizeClass as p, createElementVNode as k, withModifiers as g, mergeProps as w, renderSlot as O, createCommentVNode as K } from "vue";
2
- import './assets/MazBackdrop.css';const b = "--backdrop-present", F = /* @__PURE__ */ A({
1
+ import { defineComponent as L, ref as P, onMounted as V, watch as D, nextTick as B, openBlock as h, createBlock as M, Teleport as N, createVNode as T, Transition as O, withCtx as $, createElementBlock as j, mergeProps as q, createElementVNode as v, normalizeClass as z, withModifiers as F, renderSlot as K, createCommentVNode as I } from "vue";
2
+ import './assets/MazBackdrop.css';const G = {
3
+ role: "dialog",
4
+ class: "m-backdrop-container",
5
+ "aria-modal": "true"
6
+ }, H = { class: "m-backdrop-wrapper" }, A = "--backdrop-present", J = /* @__PURE__ */ L({
3
7
  inheritAttrs: !1,
4
8
  __name: "MazBackdrop",
5
9
  props: {
@@ -9,112 +13,133 @@ import './assets/MazBackdrop.css';const b = "--backdrop-present", F = /* @__PURE
9
13
  persistent: { type: Boolean, default: !1 },
10
14
  noCloseOnEscKey: { type: Boolean, default: !1 },
11
15
  transitionName: { default: "backdrop-anim" },
12
- backdropClass: { default: void 0 },
13
- backdropContentClass: { default: void 0 }
16
+ backdropClass: { default: () => {
17
+ } },
18
+ backdropContentClass: { default: () => {
19
+ } },
20
+ contentPadding: { type: Boolean, default: !1 },
21
+ justify: { default: "none" },
22
+ align: { default: "none" },
23
+ variant: {}
14
24
  },
15
25
  emits: ["open", "close", "update:model-value", "before-close"],
16
- setup(C, { expose: v, emit: y }) {
17
- const o = C, t = y;
18
- function E() {
19
- document.documentElement.classList.add(b);
26
+ setup(t, { expose: r, emit: a }) {
27
+ const o = a;
28
+ function d() {
29
+ document.documentElement.classList.add(A);
20
30
  }
21
- async function B() {
22
- document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(b);
31
+ function w() {
32
+ document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(A);
23
33
  }
24
- const n = L(o.modelValue);
25
- function a() {
26
- d(!1);
34
+ const s = P(t.modelValue);
35
+ function l() {
36
+ k(!1);
37
+ }
38
+ async function k(e) {
39
+ var n;
40
+ e || (o("before-close"), await ((n = t.beforeClose) == null ? void 0 : n.call(t))), s.value = e;
27
41
  }
28
- async function d(e) {
29
- var r;
30
- e || (t("before-close"), await ((r = o.beforeClose) == null ? void 0 : r.call(o))), n.value = e;
42
+ function y() {
43
+ o("open");
31
44
  }
32
- function c() {
33
- t("open");
45
+ function b() {
46
+ o("update:model-value", !1), o("close"), f();
34
47
  }
35
48
  function i() {
36
- t("update:model-value", !1), t("close"), l();
49
+ t.persistent || l();
37
50
  }
38
- function u() {
39
- o.persistent || a();
51
+ function u(e) {
52
+ !t.noCloseOnEscKey && e.key === "Escape" && !t.persistent && l();
40
53
  }
41
- function s(e) {
42
- !o.noCloseOnEscKey && e.key === "Escape" && !o.persistent && a();
54
+ function C() {
55
+ d(), document.addEventListener("keyup", u, !1);
43
56
  }
44
- function m() {
45
- E(), document.addEventListener("keyup", s, !1);
57
+ function f() {
58
+ document.removeEventListener("keyup", u), w();
46
59
  }
47
- function l() {
48
- document.removeEventListener("keyup", s), B();
60
+ V(() => {
61
+ t.modelValue ? C() : f();
62
+ });
63
+ let c = null;
64
+ function S(e) {
65
+ const n = document.querySelector(e), m = n && Array.from(n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), p = m == null ? void 0 : m.filter((E) => {
66
+ const g = window.getComputedStyle(E);
67
+ return g.display !== "none" && g.visibility !== "hidden" && !E.disabled;
68
+ });
69
+ return p && p.length > 0 ? p[0] : null;
49
70
  }
50
- return V(() => {
51
- o.modelValue ? m() : l();
52
- }), D(
53
- () => o.modelValue,
54
- (e) => {
55
- n.value = e, e ? m() : l();
71
+ return D(
72
+ () => t.modelValue,
73
+ async (e) => {
74
+ if (s.value = e, e) {
75
+ C(), c = document.activeElement, await B();
76
+ const n = S(".m-backdrop-content");
77
+ n == null || n.focus();
78
+ } else
79
+ f(), await B(), c == null || c.focus();
56
80
  }
57
- ), v({
58
- onBackdropAnimationEnter: c,
59
- onBackdropAnimationLeave: i,
60
- onBackdropClicked: u,
61
- close: a,
62
- present: n,
63
- toggleModal: d,
64
- onKeyPress: s
65
- }), (e, r) => (f(), N(S, { to: e.teleportSelector }, [
66
- h(M, {
81
+ ), r({
82
+ onBackdropAnimationEnter: y,
83
+ onBackdropAnimationLeave: b,
84
+ onBackdropClicked: i,
85
+ close: l,
86
+ present: s,
87
+ toggleModal: k,
88
+ onKeyPress: u
89
+ }), (e, n) => (h(), M(N, { to: e.teleportSelector }, [
90
+ T(O, {
67
91
  appear: "",
68
92
  name: e.transitionName,
69
- onAfterEnter: c,
70
- onAfterLeave: i
93
+ onAfterEnter: y,
94
+ onAfterLeave: b
71
95
  }, {
72
- default: P(() => [
73
- n.value ? (f(), T(
96
+ default: $(() => [
97
+ s.value ? (h(), j(
74
98
  "div",
75
- {
99
+ q({
76
100
  key: 0,
77
- class: p(["m-backdrop --present", [e.backdropClass]]),
78
- tabindex: "-1",
79
- role: "dialog"
80
- },
101
+ class: "m-backdrop --present m-reset-css"
102
+ }, e.$attrs, {
103
+ class: [e.backdropClass, e.variant && `--variant-${e.variant}`, { "--persistent": e.persistent }]
104
+ }),
81
105
  [
82
- k(
83
- "button",
84
- {
85
- class: p(["m-backdrop-overlay", { "--disabled": e.persistent }]),
86
- tabindex: "-1",
87
- onClick: g(u, ["self"])
88
- },
89
- null,
90
- 2
91
- /* CLASS */
92
- ),
93
- k(
94
- "div",
95
- w({
96
- class: ["m-backdrop-content", e.backdropContentClass]
97
- }, e.$attrs, {
98
- role: "document",
99
- tabindex: "0"
100
- }),
101
- [
102
- O(e.$slots, "default", { close: a })
103
- ],
104
- 16
105
- /* FULL_PROPS */
106
- )
106
+ v("div", G, [
107
+ v("div", H, [
108
+ v(
109
+ "div",
110
+ {
111
+ class: z(["m-backdrop-content", [e.backdropContentClass, `--justify-${e.justify}`, `--align-${e.align}`, { "--padding": e.contentPadding }]]),
112
+ role: "button",
113
+ tabindex: "-1",
114
+ onClick: F(i, ["self"])
115
+ },
116
+ [
117
+ K(e.$slots, "default", {
118
+ close: l,
119
+ onBackdropClicked: i
120
+ }, void 0, !0)
121
+ ],
122
+ 2
123
+ /* CLASS */
124
+ )
125
+ ])
126
+ ])
107
127
  ],
108
- 2
109
- /* CLASS */
110
- )) : K("v-if", !0)
128
+ 16
129
+ /* FULL_PROPS */
130
+ )) : I("v-if", !0)
111
131
  ]),
112
132
  _: 3
113
133
  /* FORWARDED */
114
134
  }, 8, ["name"])
115
135
  ], 8, ["to"]));
116
136
  }
117
- });
137
+ }), Q = (t, r) => {
138
+ const a = t.__vccOpts || t;
139
+ for (const [o, d] of r)
140
+ a[o] = d;
141
+ return a;
142
+ }, W = /* @__PURE__ */ Q(J, [["__scopeId", "data-v-90448c91"]]);
118
143
  export {
119
- F as default
144
+ W as default
120
145
  };