maz-ui 4.0.0-beta.8 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
  3. package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
  4. package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
  5. package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
  6. package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
  7. package/dist/assets/MazCard.Dv02b2P6.css +1 -0
  8. package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
  9. package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
  10. package/dist/assets/MazCheckbox.Di88TJ3e.css +1 -0
  11. package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
  12. package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
  13. package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
  14. package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
  15. package/dist/assets/MazDropzone._2HwHowu.css +1 -0
  16. package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
  17. package/dist/assets/MazInput.BvuxfP9k.css +1 -0
  18. package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
  19. package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
  20. package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
  21. package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
  22. package/dist/assets/MazLink.CFscNMFr.css +1 -0
  23. package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
  24. package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
  25. package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
  26. package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
  27. package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
  28. package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.D7JXgA3q.css} +1 -1
  29. package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
  30. package/dist/assets/{MazPickerYearSwitcher.Cn-nS-Vv.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
  31. package/dist/assets/MazPopover.DIE65uVT.css +1 -0
  32. package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
  33. package/dist/assets/MazRadio.B0B3P1QS.css +1 -0
  34. package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
  35. package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
  36. package/dist/assets/MazSelect.DIwjMD31.css +1 -0
  37. package/dist/assets/{MazSelectCountry.CdNTQPhr.css → MazSelectCountry.B0tlbfgr.css} +1 -1
  38. package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
  39. package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
  40. package/dist/assets/MazStepper.C9R7g43I.css +1 -0
  41. package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
  42. package/dist/assets/MazTable.Cq7FEz09.css +1 -0
  43. package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
  44. package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
  45. package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
  46. package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
  47. package/dist/assets/{PhoneInput.DBLH22G1.css → PhoneInput.DkOXlrI9.css} +1 -1
  48. package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
  49. package/dist/assets/{toast.CC2VQab8.css → toast.BDNNJSjj.css} +1 -1
  50. package/dist/chunks/{MazDatePicker.De3Ltb2F.js → MazDatePicker.B1B6gUrC.js} +49 -37
  51. package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +23 -13
  52. package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +16 -10
  53. package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
  54. package/dist/chunks/{MazInputPhoneNumber.DBncAmC5.js → MazInputPhoneNumber.CDy6n_Qj.js} +25 -17
  55. package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
  56. package/dist/chunks/{MazPickerCalendar.DKXNI8O4.js → MazPickerCalendar.BSBQciuG.js} +8 -8
  57. package/dist/chunks/{MazPickerCalendarMonth.DKBqgrNp.js → MazPickerCalendarMonth.CFJHTFp5.js} +14 -14
  58. package/dist/chunks/{MazPickerCalendarSwitcher.CzIZol3Z.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
  59. package/dist/chunks/{MazPickerContainer.Mrh-Q52I.js → MazPickerContainer.CRPzAbRt.js} +4 -6
  60. package/dist/chunks/{MazPickerHeader.Bm9vIrtB.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
  61. package/dist/chunks/{MazPickerMonthSwitcher.BSD2GtY6.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
  62. package/dist/chunks/{MazPickerTime.D0hilq5b.js → MazPickerTime.EZK1foEx.js} +1 -1
  63. package/dist/chunks/{MazPickerYearSwitcher.BIUYJMvj.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
  64. package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
  65. package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
  66. package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
  67. package/dist/chunks/{PhoneInput.iFkRoIFk.js → PhoneInput.DukRZp5u.js} +20 -27
  68. package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
  69. package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
  70. package/dist/chunks/debounce.DhXdop6X.js +11 -0
  71. package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
  72. package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
  73. package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
  74. package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
  75. package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
  76. package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
  77. package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
  78. package/dist/chunks/{pristine.ylgbwjxO.js → pristine.DMG3eBuN.js} +6 -6
  79. package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
  80. package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
  81. package/dist/chunks/types.D0Bp_UhS.js +6 -0
  82. package/dist/chunks/{useStringMatching.D5UvsCUS.js → useStringMatching.DzSigyZ7.js} +40 -14
  83. package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
  84. package/dist/components/MazAccordion.vue.d.ts +36 -0
  85. package/dist/components/MazAnimatedCounter.js +5 -5
  86. package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
  87. package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
  88. package/dist/components/MazAnimatedText.js +4 -4
  89. package/dist/components/MazAnimatedText.vue.d.ts +57 -0
  90. package/dist/components/MazAvatar.vue.d.ts +99 -0
  91. package/dist/components/MazBackdrop.js +70 -31
  92. package/dist/components/MazBackdrop.vue.d.ts +91 -0
  93. package/dist/components/MazBadge.js +5 -4
  94. package/dist/components/MazBadge.vue.d.ts +61 -0
  95. package/dist/components/MazBottomSheet.vue.d.ts +35 -0
  96. package/dist/components/MazBtn.js +6 -5
  97. package/dist/components/MazBtn.vue.d.ts +105 -0
  98. package/dist/components/MazCard.js +3 -3
  99. package/dist/components/MazCard.vue.d.ts +77 -0
  100. package/dist/components/MazCardSpotlight.js +2 -2
  101. package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
  102. package/dist/components/MazCarousel.js +12 -9
  103. package/dist/components/MazCarousel.vue.d.ts +48 -0
  104. package/dist/components/MazChart.vue.d.ts +53 -0
  105. package/dist/components/MazCheckbox.js +2 -2
  106. package/dist/components/MazCheckbox.vue.d.ts +55 -0
  107. package/dist/components/MazChecklist.js +7 -7
  108. package/dist/components/MazChecklist.vue.d.ts +87 -0
  109. package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
  110. package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
  111. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  112. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
  113. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
  114. package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
  115. package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
  116. package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
  117. package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
  118. package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
  119. package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
  120. package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
  121. package/dist/components/MazDatePicker/types.d.ts +14 -0
  122. package/dist/components/MazDatePicker/utils.d.ts +61 -0
  123. package/dist/components/MazDatePicker.js +1 -1
  124. package/dist/components/MazDatePicker.vue.d.ts +547 -0
  125. package/dist/components/MazDialog.js +9 -16
  126. package/dist/components/MazDialog.vue.d.ts +247 -0
  127. package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
  128. package/dist/components/MazDialogConfirm.js +2 -2
  129. package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
  130. package/dist/components/MazDrawer.vue.d.ts +52 -0
  131. package/dist/components/MazDropdown.js +1 -1
  132. package/dist/components/MazDropdown.vue.d.ts +249 -0
  133. package/dist/components/MazDropzone.js +6 -6
  134. package/dist/components/MazDropzone.vue.d.ts +305 -0
  135. package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
  136. package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
  137. package/dist/components/MazGallery.js +4 -4
  138. package/dist/components/MazGallery.vue.d.ts +85 -0
  139. package/dist/components/MazIcon.vue.d.ts +26 -0
  140. package/dist/components/MazInput.js +4 -4
  141. package/dist/components/MazInput.vue.d.ts +225 -0
  142. package/dist/components/MazInputCode.js +2 -2
  143. package/dist/components/MazInputCode.vue.d.ts +49 -0
  144. package/dist/components/MazInputNumber.js +1 -1
  145. package/dist/components/MazInputNumber.vue.d.ts +125 -0
  146. package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
  147. package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
  148. package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
  149. package/dist/components/MazInputPhoneNumber.js +1 -1
  150. package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
  151. package/dist/components/MazInputPrice.js +1 -1
  152. package/dist/components/MazInputPrice.vue.d.ts +48 -0
  153. package/dist/components/MazInputTags.js +6 -6
  154. package/dist/components/MazInputTags.vue.d.ts +51 -0
  155. package/dist/components/MazLazyImg.js +2 -2
  156. package/dist/components/MazLazyImg.vue.d.ts +78 -0
  157. package/dist/components/MazLink.js +2 -2
  158. package/dist/components/MazLink.vue.d.ts +115 -0
  159. package/dist/components/MazLoadingBar.vue.d.ts +12 -0
  160. package/dist/components/MazPagination.js +3 -3
  161. package/dist/components/MazPagination.vue.d.ts +83 -0
  162. package/dist/components/MazPopover.js +98 -222
  163. package/dist/components/MazPopover.vue.d.ts +256 -0
  164. package/dist/components/MazPullToRefresh.js +7 -7
  165. package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
  166. package/dist/components/MazRadio.js +2 -2
  167. package/dist/components/MazRadio.vue.d.ts +55 -0
  168. package/dist/components/MazRadioButtons.js +8 -7
  169. package/dist/components/MazRadioButtons.vue.d.ts +69 -0
  170. package/dist/components/MazReadingProgressBar.js +8 -8
  171. package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
  172. package/dist/components/MazSelect.js +17 -14
  173. package/dist/components/MazSelect.vue.d.ts +178 -0
  174. package/dist/components/MazSelectCountry.js +19 -18
  175. package/dist/components/MazSelectCountry.vue.d.ts +171 -0
  176. package/dist/components/MazSlider/utils.d.ts +15 -0
  177. package/dist/components/MazSlider.js +36 -36
  178. package/dist/components/MazSlider.vue.d.ts +31 -0
  179. package/dist/components/MazSpinner.js +3 -4
  180. package/dist/components/MazSpinner.vue.d.ts +15 -0
  181. package/dist/components/MazStepper.js +2 -2
  182. package/dist/components/MazStepper.vue.d.ts +60 -0
  183. package/dist/components/MazSwitch.js +1 -1
  184. package/dist/components/MazSwitch.vue.d.ts +69 -0
  185. package/dist/components/MazTable.js +3 -3
  186. package/dist/components/MazTable.vue.d.ts +324 -0
  187. package/dist/components/MazTableCell.js +1 -1
  188. package/dist/components/MazTableCell.vue.d.ts +17 -0
  189. package/dist/components/MazTableRow.js +6 -5
  190. package/dist/components/MazTableRow.vue.d.ts +23 -0
  191. package/dist/components/MazTableTitle.js +1 -1
  192. package/dist/components/MazTableTitle.vue.d.ts +17 -0
  193. package/dist/components/MazTabs.vue.d.ts +30 -0
  194. package/dist/components/MazTabsBar.js +4 -4
  195. package/dist/components/MazTabsBar.vue.d.ts +96 -0
  196. package/dist/components/MazTabsContent.js +1 -1
  197. package/dist/components/MazTabsContent.vue.d.ts +17 -0
  198. package/dist/components/MazTabsContentItem.js +6 -7
  199. package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
  200. package/dist/components/MazTextarea.js +6 -6
  201. package/dist/components/MazTextarea.vue.d.ts +88 -0
  202. package/dist/components/constantes.d.ts +2 -0
  203. package/dist/components/index.d.ts +109 -0
  204. package/dist/components/index.js +8 -8
  205. package/dist/components/types.d.ts +4 -0
  206. package/dist/composables/index.d.ts +21 -0
  207. package/dist/composables/index.js +3 -1
  208. package/dist/composables/useAos.d.ts +2 -0
  209. package/dist/composables/useBreakpoints.d.ts +38 -0
  210. package/dist/composables/useDialog.d.ts +2 -0
  211. package/dist/composables/useDisplayNames.d.ts +101 -0
  212. package/dist/composables/useDisplayNames.js +20 -28
  213. package/dist/composables/useDropzone.d.ts +27 -0
  214. package/dist/composables/useDropzone.js +6 -6
  215. package/dist/composables/useFormField.d.ts +16 -0
  216. package/dist/composables/useFormField.js +3 -3
  217. package/dist/composables/useFormValidator/config.d.ts +7 -0
  218. package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
  219. package/dist/composables/useFormValidator/state-management.d.ts +72 -0
  220. package/dist/composables/useFormValidator/types.d.ts +98 -0
  221. package/dist/composables/useFormValidator/validation.d.ts +37 -0
  222. package/dist/composables/useFormValidator.d.ts +23 -0
  223. package/dist/composables/useFormValidator.js +19 -3
  224. package/dist/composables/useFreezeValue.d.ts +5 -0
  225. package/dist/composables/useIdleTimeout.d.ts +5 -0
  226. package/dist/composables/useIdleTimeout.js +27 -27
  227. package/dist/composables/useInjectStrict.d.ts +2 -0
  228. package/dist/composables/useInstanceUniqId.d.ts +4 -0
  229. package/dist/composables/useInstanceUniqId.js +3 -2
  230. package/dist/composables/useMountComponent.d.ts +14 -0
  231. package/dist/composables/useReadingTime.d.ts +25 -0
  232. package/dist/composables/useStringMatching.d.ts +5 -0
  233. package/dist/composables/useStringMatching.js +1 -1
  234. package/dist/composables/useSwipe.d.ts +14 -0
  235. package/dist/composables/useSwipe.js +22 -22
  236. package/dist/composables/useTimer.d.ts +30 -0
  237. package/dist/composables/useToast.d.ts +22 -0
  238. package/dist/composables/useUserVisibility.d.ts +5 -0
  239. package/dist/composables/useUserVisibility.js +8 -8
  240. package/dist/composables/useWait.d.ts +2 -0
  241. package/dist/composables/useWindowSize.d.ts +32 -0
  242. package/dist/composables/useWindowSize.js +2 -2
  243. package/dist/css/main.css +1 -1
  244. package/dist/directives/index.d.ts +5 -0
  245. package/dist/directives/index.js +2 -2
  246. package/dist/directives/vClickOutside.d.ts +36 -0
  247. package/dist/directives/vClickOutside.js +1 -1
  248. package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
  249. package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
  250. package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
  251. package/dist/directives/vFullscreenImg.d.ts +11 -0
  252. package/dist/directives/vFullscreenImg.js +1 -1
  253. package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
  254. package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
  255. package/dist/directives/vLazyImg/types.d.ts +29 -0
  256. package/dist/directives/vLazyImg.d.ts +12 -0
  257. package/dist/directives/vTooltip.d.ts +54 -0
  258. package/dist/directives/vTooltip.js +15 -23
  259. package/dist/directives/vZoomImg/style.d.ts +1 -0
  260. package/dist/directives/vZoomImg/svgs.d.ts +3 -0
  261. package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
  262. package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
  263. package/dist/directives/vZoomImg.d.ts +10 -0
  264. package/dist/index.d.ts +1 -0
  265. package/dist/plugins/aos.d.ts +81 -0
  266. package/dist/plugins/aos.js +5 -5
  267. package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
  268. package/dist/plugins/dialog.d.ts +26 -0
  269. package/dist/plugins/dialog.js +1 -1
  270. package/dist/plugins/index.d.ts +5 -0
  271. package/dist/plugins/maz-ui.d.ts +43 -0
  272. package/dist/plugins/maz-ui.js +245 -371
  273. package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
  274. package/dist/plugins/toast/ToastHandler.d.ts +29 -0
  275. package/dist/plugins/toast/types.d.ts +104 -0
  276. package/dist/plugins/toast.d.ts +25 -0
  277. package/dist/plugins/toast.js +8 -6
  278. package/dist/plugins/wait.d.ts +33 -0
  279. package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
  280. package/dist/resolvers/MazComponentsResolver.js +516 -10
  281. package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
  282. package/dist/resolvers/MazDirectivesResolver.js +2 -2
  283. package/dist/resolvers/MazModulesResolver.d.ts +11 -0
  284. package/dist/resolvers/MazModulesResolver.js +8 -5
  285. package/dist/resolvers/index.d.ts +3 -0
  286. package/dist/tailwindcss/index.d.ts +6 -0
  287. package/dist/tailwindcss/tailwind.config.d.ts +89 -0
  288. package/dist/tailwindcss/utils/colors.d.ts +7 -0
  289. package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
  290. package/dist/tailwindcss/variables/colors.d.ts +20 -0
  291. package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
  292. package/dist/tailwindcss/variables/utilities.d.ts +17 -0
  293. package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
  294. package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
  295. package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
  296. package/dist/types/components/MazCard.vue.d.ts +1 -1
  297. package/dist/types/components/MazCarousel.vue.d.ts +8 -5
  298. package/dist/types/components/MazChecklist.vue.d.ts +5 -5
  299. package/dist/types/components/MazDatePicker/utils.d.ts +7 -6
  300. package/dist/types/components/MazDatePicker.vue.d.ts +37 -33
  301. package/dist/types/components/MazDialog.vue.d.ts +10 -19
  302. package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +8 -6
  303. package/dist/types/components/MazDialogConfirm.vue.d.ts +18 -12
  304. package/dist/types/components/MazDropdown.vue.d.ts +10 -3
  305. package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
  306. package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
  307. package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +1 -1
  308. package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +2 -0
  309. package/dist/types/components/MazInputPhoneNumber.vue.d.ts +11 -12
  310. package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
  311. package/dist/types/components/MazInputTags.vue.d.ts +1 -1
  312. package/dist/types/components/MazLink.vue.d.ts +1 -1
  313. package/dist/types/components/MazPopover.vue.d.ts +13 -8
  314. package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
  315. package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  316. package/dist/types/components/MazSelect.vue.d.ts +13 -6
  317. package/dist/types/components/MazSelectCountry.vue.d.ts +9 -9
  318. package/dist/types/components/MazTable.vue.d.ts +5 -5
  319. package/dist/types/components/MazTableRow.vue.d.ts +2 -0
  320. package/dist/types/components/types.d.ts +1 -0
  321. package/dist/types/composables/index.d.ts +1 -0
  322. package/dist/types/composables/useDisplayNames.d.ts +60 -6
  323. package/dist/types/composables/useFormField.d.ts +16 -18
  324. package/dist/types/composables/useFormValidator/config.d.ts +2 -2
  325. package/dist/types/composables/useFormValidator/dom-events.d.ts +4 -4
  326. package/dist/types/composables/useFormValidator/state-management.d.ts +40 -22
  327. package/dist/types/composables/useFormValidator/types.d.ts +15 -15
  328. package/dist/types/composables/useFormValidator/validation.d.ts +10 -16
  329. package/dist/types/composables/useFormValidator.d.ts +2 -2
  330. package/dist/types/composables/useIdleTimeout.d.ts +1 -1
  331. package/dist/types/composables/useSwipe.d.ts +1 -1
  332. package/dist/types/composables/useUserVisibility.d.ts +1 -1
  333. package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
  334. package/dist/types/directives/vZoomImg.d.ts +1 -1
  335. package/dist/types/plugins/maz-ui.d.ts +5 -5
  336. package/package.json +46 -36
  337. package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
  338. package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
  339. package/dist/assets/MazBtn.DUBbj2mt.css +0 -1
  340. package/dist/assets/MazCard.C6nDaeIC.css +0 -1
  341. package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
  342. package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
  343. package/dist/assets/MazCheckbox.CFqw9ybT.css +0 -1
  344. package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
  345. package/dist/assets/MazDatePicker.8GyrtM-j.css +0 -1
  346. package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
  347. package/dist/assets/MazDropzone.-8lzCrxJ.css +0 -1
  348. package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
  349. package/dist/assets/MazInput.BcUsJg7p.css +0 -1
  350. package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
  351. package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +0 -1
  352. package/dist/assets/MazInputTags.DzTGy9z3.css +0 -1
  353. package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
  354. package/dist/assets/MazLink.wJoKRsCP.css +0 -1
  355. package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
  356. package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +0 -1
  357. package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +0 -1
  358. package/dist/assets/MazPopover.DzCAfuWw.css +0 -1
  359. package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
  360. package/dist/assets/MazRadio.XGYnbTuB.css +0 -1
  361. package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
  362. package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
  363. package/dist/assets/MazSelect.Cljh3PVV.css +0 -1
  364. package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
  365. package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
  366. package/dist/assets/MazStepper.DtWZmm-f.css +0 -1
  367. package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
  368. package/dist/assets/MazTable.DMlQdImb.css +0 -1
  369. package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
  370. package/dist/assets/MazTextarea.DME7BHS5.css +0 -1
  371. package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
  372. package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
  373. package/dist/chunks/de.B15Maq8Z.js +0 -82
  374. package/dist/chunks/debounce.Brzkn9pm.js +0 -11
  375. package/dist/chunks/en.Q_4-KljL.js +0 -157
  376. package/dist/chunks/es.BV1TlfTw.js +0 -82
  377. package/dist/chunks/fr.BVPG-7Dk.js +0 -82
  378. package/dist/chunks/it.Be9xhI4P.js +0 -82
  379. package/dist/chunks/ja.CWU7KYEA.js +0 -82
  380. package/dist/chunks/pt.CfaFSxVt.js +0 -82
  381. package/dist/chunks/sleep.BLRH1qZG.js +0 -6
  382. package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
  383. package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
  384. package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
@@ -0,0 +1,256 @@
1
+ import { Placement } from '@floating-ui/vue';
2
+ import { HTMLAttributes } from 'vue';
3
+ import { MazColor } from './types';
4
+ type __VLS_Props = MazPopoverProps;
5
+ export type MazPopoverPosition = Placement | 'auto';
6
+ export type MazPopoverPreferPosition = Placement;
7
+ export type MazPopoverFallbackPosition = Placement;
8
+ export type MazPopoverTrigger = 'click' | 'hover' | 'manual' | 'adaptive';
9
+ export type MazPopoverRole = 'dialog' | 'tooltip' | 'menu';
10
+ export interface MazPopoverProps {
11
+ /**
12
+ * Controls the popover open state
13
+ * @model
14
+ * @type {boolean}
15
+ * @default false
16
+ */
17
+ modelValue?: boolean;
18
+ /**
19
+ * Position of the popover relative to trigger
20
+ * @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
21
+ * @default auto
22
+ * @description Position of the popover relative to trigger
23
+ */
24
+ position?: MazPopoverPosition;
25
+ /**
26
+ * Preferred position of the popover relative to trigger when auto position is used
27
+ * @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
28
+ * @default 'bottom-start'
29
+ * @description Preferred position of the popover relative to trigger
30
+ */
31
+ preferPosition?: MazPopoverPreferPosition;
32
+ /**
33
+ * Fallback position of the popover relative to trigger when prefer position is not visible
34
+ * @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
35
+ * @default auto
36
+ * @description Fallback position of the popover relative to trigger
37
+ */
38
+ fallbackPosition?: MazPopoverFallbackPosition;
39
+ /**
40
+ * How the popover is triggered
41
+ * @values click, hover, manual, adaptive
42
+ * @default click
43
+ * @description How the popover is triggered. 'adaptive' uses hover on desktop and click on mobile
44
+ */
45
+ trigger?: MazPopoverTrigger;
46
+ /**
47
+ * ARIA role for accessibility
48
+ * @values dialog, tooltip
49
+ * @default dialog
50
+ * @description ARIA role for accessibility
51
+ */
52
+ role?: MazPopoverRole;
53
+ /**
54
+ * ARIA label for the popover
55
+ * @default undefined
56
+ */
57
+ ariaLabel?: string;
58
+ /**
59
+ * Announce content changes to screen readers
60
+ * @default false
61
+ */
62
+ announceChanges?: boolean;
63
+ /**
64
+ * Disables the popover
65
+ * @default false
66
+ * @description Disables the popover
67
+ */
68
+ disabled?: boolean;
69
+ /**
70
+ * Distance between trigger and popover in pixels
71
+ * @default 8
72
+ */
73
+ offset?: number;
74
+ /**
75
+ * Delay before showing/hiding in milliseconds
76
+ * @default 0
77
+ */
78
+ delay?: number;
79
+ /**
80
+ * Delay before closing on hover in milliseconds
81
+ * @default 150
82
+ */
83
+ hoverDelay?: number;
84
+ /**
85
+ * CSS transition name for animations
86
+ * @default popover
87
+ */
88
+ transition?: 'scale-pop' | 'scale-fade' | string;
89
+ /**
90
+ * Teleport target selector
91
+ * @default body
92
+ */
93
+ teleportTo?: string;
94
+ /**
95
+ * Additional CSS classes for the overlay wrapper
96
+ * @default undefined
97
+ */
98
+ overlayClass?: HTMLAttributes['class'];
99
+ /**
100
+ * Additional CSS classes for the popover panel
101
+ * @default undefined
102
+ */
103
+ panelClass?: HTMLAttributes['class'];
104
+ /**
105
+ * Inline styles for the popover panel
106
+ * @default undefined
107
+ */
108
+ panelStyle?: HTMLAttributes['style'];
109
+ /**
110
+ * Close popover when clicking outside
111
+ * @default true
112
+ */
113
+ closeOnClickOutside?: boolean;
114
+ /**
115
+ * Close popover when pressing Escape key
116
+ * @default true
117
+ */
118
+ closeOnEscape?: boolean;
119
+ /**
120
+ * Prevent auto-close (ignores click outside and escape key)
121
+ * @default false
122
+ */
123
+ persistent?: boolean;
124
+ /**
125
+ * Custom ID for the popover element
126
+ * @default undefined
127
+ */
128
+ id?: string;
129
+ /**
130
+ * ARIA labelledby attribute for accessibility
131
+ * @default undefined
132
+ */
133
+ ariaLabelledby?: string;
134
+ /**
135
+ * ARIA describedby attribute for accessibility
136
+ * @default undefined
137
+ */
138
+ ariaDescribedby?: string;
139
+ /**
140
+ * Color variant of the popover
141
+ * @values primary, secondary, accent, info, success, warning, destructive, contrast, background
142
+ * @default background
143
+ */
144
+ color?: MazColor | 'background';
145
+ /**
146
+ * Trap focus inside the popover
147
+ * @default true
148
+ */
149
+ trapFocus?: boolean;
150
+ /**
151
+ * Keep popover open when hovering over the panel
152
+ * @default false
153
+ */
154
+ keepOpenOnHover?: boolean;
155
+ /**
156
+ * The popover will be full width of the trigger
157
+ * @default false
158
+ */
159
+ block?: boolean;
160
+ /**
161
+ * CSS selector or element reference to use for positioning calculations
162
+ * @description When provided, the popover will position relative to this element instead of the trigger
163
+ * Useful for components with labels where you want to position relative to the actual input
164
+ * @type {string | HTMLElement}
165
+ * @default undefined
166
+ * @example "input" or "#my-input" or HTMLElement
167
+ */
168
+ positionReference?: string | HTMLElement;
169
+ }
170
+ declare function open(): void;
171
+ declare function close(): void;
172
+ declare function toggle(): void;
173
+ type __VLS_PublicProps = {
174
+ modelValue?: boolean;
175
+ } & __VLS_Props;
176
+ declare function __VLS_template(): {
177
+ attrs: Partial<{}>;
178
+ slots: {
179
+ trigger?(_: {
180
+ open: typeof open;
181
+ close: typeof close;
182
+ toggle: typeof toggle;
183
+ isOpen: boolean;
184
+ trigger: "click" | "hover" | "manual";
185
+ }): any;
186
+ default?(_: {
187
+ open: typeof open;
188
+ close: typeof close;
189
+ toggle: typeof toggle;
190
+ isOpen: true;
191
+ }): any;
192
+ };
193
+ refs: {
194
+ trigger: HTMLDivElement;
195
+ panel: HTMLDivElement;
196
+ };
197
+ rootEl: any;
198
+ };
199
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
200
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
201
+ /**
202
+ * Open the popover
203
+ * @description Programmatically open the popover
204
+ * @usage `mazPopoverInstance.value?.open()`
205
+ */
206
+ open: typeof open;
207
+ /**
208
+ * Close the popover
209
+ * @description Programmatically close the popover
210
+ * @usage `mazPopoverInstance.value?.close()`
211
+ */
212
+ close: typeof close;
213
+ /**
214
+ * Toggle the popover
215
+ * @description Programmatically toggle the popover open/close state
216
+ * @usage `mazPopoverInstance.value?.toggle()`
217
+ */
218
+ toggle: typeof toggle;
219
+ /**
220
+ * Check if the popover is open
221
+ * @type {ComputedRef<boolean>}
222
+ * @description Reactive reference to the popover open state
223
+ * @usage `const isPopoverOpen = mazPopoverInstance.value?.isOpen`
224
+ */
225
+ isOpen: import('vue').ComputedRef<boolean>;
226
+ /**
227
+ * Update the popover position
228
+ * @description Manually recalculate and update the popover position
229
+ * @usage `mazPopoverInstance.value?.updatePosition()`
230
+ */
231
+ updatePosition: () => void;
232
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
233
+ close: () => any;
234
+ toggle: (value: boolean) => any;
235
+ open: () => any;
236
+ "update:model-value": (value: boolean) => any;
237
+ "update:modelValue": (value: boolean) => any;
238
+ "after-close-animation": () => any;
239
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
240
+ onClose?: (() => any) | undefined;
241
+ onToggle?: ((value: boolean) => any) | undefined;
242
+ onOpen?: (() => any) | undefined;
243
+ "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
244
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
245
+ "onAfter-close-animation"?: (() => any) | undefined;
246
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
247
+ trigger: HTMLDivElement;
248
+ panel: HTMLDivElement;
249
+ }, any>;
250
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
251
+ export default _default;
252
+ type __VLS_WithTemplateSlots<T, S> = T & {
253
+ new (): {
254
+ $slots: S;
255
+ };
256
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, defineAsyncComponent, computed, ref, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, createCommentVNode, renderSlot, normalizeStyle, createElementVNode, createVNode, unref } from "vue";
2
- import { i as isClient } from "../chunks/isClient.WI4oSt66.js";
2
+ import { e as e$1 } from "../chunks/isClient.8V3qjGdO.js";
3
3
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
4
- import '../assets/MazPullToRefresh.BQ64UvzA.css';function isStandaloneMode() {
5
- if (!isClient())
4
+ import '../assets/MazPullToRefresh.C0HGlupm.css';function e() {
5
+ if (!e$1())
6
6
  return !1;
7
- const nav = navigator, isStandalone = globalThis.matchMedia("(display-mode: standalone)").matches;
8
- return nav.standalone || isStandalone;
7
+ const a = navigator, n = globalThis.matchMedia("(display-mode: standalone)").matches;
8
+ return a.standalone || n;
9
9
  }
10
10
  const _hoisted_1 = {
11
11
  key: 0,
@@ -31,7 +31,7 @@ const _hoisted_1 = {
31
31
  emits: ["loaded", "start", "error", "finish", "response"],
32
32
  setup(__props, { emit: __emit }) {
33
33
  const props = __props, emits = __emit, MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), isDisabled = computed(
34
- () => props.disabled || props.onClick === void 0 || props.standaloneMode && isClient() && !isStandaloneMode()
34
+ () => props.disabled || props.onClick === void 0 || props.standaloneMode && e$1() && !e()
35
35
  ), margin = ref({
36
36
  top: 0,
37
37
  bottom: 0
@@ -144,7 +144,7 @@ const _hoisted_1 = {
144
144
  renderSlot(_ctx.$slots, "default", {}, void 0, !0)
145
145
  ], 2));
146
146
  }
147
- }), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67a0e41a"]]);
147
+ }), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-515facf3"]]);
148
148
  export {
149
149
  MazPullToRefresh as default
150
150
  };
@@ -0,0 +1,52 @@
1
+ import { MazColor } from './types';
2
+ export interface MazPullToRefreshProps {
3
+ distance?: number;
4
+ offset?: number;
5
+ onClick?: () => unknown;
6
+ containerSelector?: string;
7
+ headerClass?: string;
8
+ spinnerColor?: MazColor;
9
+ disabled?: boolean;
10
+ standaloneMode?: boolean;
11
+ }
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ 'pull-before'?(_: {}): any;
16
+ 'pull-ready'?(_: {}): any;
17
+ 'pull-loading'?(_: {}): any;
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<MazPullToRefreshProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ error: (...args: any[]) => void;
26
+ loaded: (...args: any[]) => void;
27
+ start: (...args: any[]) => void;
28
+ response: (...args: any[]) => void;
29
+ finish: (...args: any[]) => void;
30
+ }, string, import('vue').PublicProps, Readonly<MazPullToRefreshProps> & Readonly<{
31
+ onError?: ((...args: any[]) => any) | undefined;
32
+ onLoaded?: ((...args: any[]) => any) | undefined;
33
+ onStart?: ((...args: any[]) => any) | undefined;
34
+ onResponse?: ((...args: any[]) => any) | undefined;
35
+ onFinish?: ((...args: any[]) => any) | undefined;
36
+ }>, {
37
+ onClick: () => unknown;
38
+ disabled: boolean;
39
+ offset: number;
40
+ distance: number;
41
+ containerSelector: string;
42
+ headerClass: string;
43
+ spinnerColor: MazColor;
44
+ standaloneMode: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, mergeProps, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
3
3
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
4
- import '../assets/MazRadio.XGYnbTuB.css';const _hoisted_1 = ["for", "aria-checked"], _hoisted_2 = ["id", "value", "disabled", "name", "checked"], _hoisted_3 = { class: "m-radio__text" }, _sfc_main = /* @__PURE__ */ defineComponent({
4
+ import '../assets/MazRadio.B0B3P1QS.css';const _hoisted_1 = ["for", "aria-checked"], _hoisted_2 = ["id", "value", "disabled", "name", "checked"], _hoisted_3 = { class: "m-radio__text" }, _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazRadio",
6
6
  props: {
7
7
  style: { default: void 0 },
@@ -97,7 +97,7 @@ import '../assets/MazRadio.XGYnbTuB.css';const _hoisted_1 = ["for", "aria-checke
97
97
  ])
98
98
  ], 46, _hoisted_1));
99
99
  }
100
- }), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd84ba83"]]);
100
+ }), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c9f427c1"]]);
101
101
  export {
102
102
  MazRadio as default
103
103
  };
@@ -0,0 +1,55 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor, MazSize } from './types';
3
+ export interface MazRadioProps<T = string | number | boolean> {
4
+ /** Style attribut of the component root element */
5
+ style?: HTMLAttributes['style'];
6
+ /** Class attribut of the component root element */
7
+ class?: HTMLAttributes['class'];
8
+ /** The id of the radio */
9
+ id?: string;
10
+ /** @model The value of the radio */
11
+ modelValue?: T;
12
+ /** The value of the radio */
13
+ value: T;
14
+ /** The name of the radio */
15
+ name: string;
16
+ /** The label of the radio */
17
+ label?: string;
18
+ /** The color of the radio */
19
+ color?: MazColor;
20
+ /** The size of the radio */
21
+ size?: MazSize;
22
+ /** The disabled state of the radio */
23
+ disabled?: boolean;
24
+ /** Whether there is an error with the input. */
25
+ error?: boolean;
26
+ /** Whether the input is successful. */
27
+ success?: boolean;
28
+ /** Whether there is a warning with the input. */
29
+ warning?: boolean;
30
+ /** The hint text to display below the input. */
31
+ hint?: string;
32
+ }
33
+ declare const _default: <T extends string | number | boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
34
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
35
+ readonly onBlur?: ((value: FocusEvent) => any) | undefined;
36
+ readonly onChange?: ((value: T) => any) | undefined;
37
+ readonly onFocus?: ((value: FocusEvent) => any) | undefined;
38
+ readonly "onUpdate:model-value"?: ((value: T) => any) | undefined;
39
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazRadioProps<T> & Partial<{}>> & import('vue').PublicProps;
40
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
41
+ attrs: any;
42
+ slots: {
43
+ default?(_: {
44
+ isSelected: boolean;
45
+ value: T;
46
+ }): any;
47
+ };
48
+ emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: T) => void);
49
+ }>) => import('vue').VNode & {
50
+ __ctx?: Awaited<typeof __VLS_setup>;
51
+ };
52
+ export default _default;
53
+ type __VLS_PrettifyLocal<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
@@ -1,7 +1,8 @@
1
- import { defineComponent, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, Fragment, renderList, normalizeStyle, renderSlot, createVNode, Transition, withCtx, withDirectives, unref, vShow, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, Fragment, renderList, normalizeStyle, unref, renderSlot, createVNode, Transition, withCtx, withDirectives, vShow, createTextVNode, toDisplayString } from "vue";
2
2
  import { MazCheck } from "@maz-ui/icons";
3
+ import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
3
4
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
4
- import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-radio-buttons m-reset-css" }, _hoisted_2 = ["for", "aria-checked", "onKeydown", "onBlur", "onFocus"], _hoisted_3 = ["id", "name", "value", "onChange"], _hoisted_4 = {
5
+ import '../assets/MazRadioButtons.CfiHq8H9.css';const _hoisted_1 = { class: "m-radio-buttons m-reset-css" }, _hoisted_2 = ["for", "aria-checked", "onKeydown", "onBlur", "onFocus"], _hoisted_3 = ["id", "name", "value", "onChange"], _hoisted_4 = {
5
6
  key: 0,
6
7
  class: "m-radio-buttons__items__checkbox"
7
8
  }, _sfc_main = /* @__PURE__ */ defineComponent({
@@ -26,7 +27,7 @@ import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-r
26
27
  setup(__props, { emit: __emit }) {
27
28
  const props = __props, emits = __emit;
28
29
  function selectOption(option) {
29
- emits("update:model-value", option.value);
30
+ emits("update:model-value", option.value), emits("change", option.value);
30
31
  }
31
32
  function isSelected(value) {
32
33
  return props.modelValue === value;
@@ -62,8 +63,8 @@ import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-r
62
63
  tabindex: "0",
63
64
  style: normalizeStyle([
64
65
  isSelected(option.value) ? {
65
- color: `hsl(var(--maz-${_ctx.color}-foreground))`,
66
- backgroundColor: `hsl(var(--maz-${_ctx.color}))`
66
+ color: `hsl(var(--maz-${unref(getColor)(_ctx.color)}-foreground))`,
67
+ backgroundColor: `hsl(var(--maz-${unref(getColor)(_ctx.color)}))`
67
68
  } : {},
68
69
  option.style
69
70
  ]),
@@ -91,7 +92,7 @@ import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-r
91
92
  "--is-selected": isSelected(option.value)
92
93
  }),
93
94
  style: normalizeStyle([
94
- isSelected(option.value) ? { backgroundColor: `hsl(var(--maz-${props.color}-600))` } : {}
95
+ isSelected(option.value) ? { backgroundColor: `hsl(var(--maz-${unref(getColor)(props.color)}-600))` } : {}
95
96
  ])
96
97
  }, [
97
98
  createVNode(Transition, { name: "maz-radio-buttons-scale" }, {
@@ -122,7 +123,7 @@ import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-r
122
123
  }, toDisplayString(_ctx.hint), 3)) : createCommentVNode("", !0)
123
124
  ]));
124
125
  }
125
- }), MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-32102767"]]);
126
+ }), MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ffe6c1e"]]);
126
127
  export {
127
128
  MazRadioButtons as default
128
129
  };
@@ -0,0 +1,69 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor } from './types';
3
+ export type MazRadioButtonsOption<T = string | number | boolean> = {
4
+ /** The label of the option */
5
+ label: string;
6
+ /** The value of the option */
7
+ value: T;
8
+ /** The classes to apply to the option */
9
+ classes?: any;
10
+ /** The style to apply to the option */
11
+ style?: HTMLAttributes['style'];
12
+ } & Record<string, unknown>;
13
+ export interface MazRadioButtonsProps<T = string | number | boolean, Option extends MazRadioButtonsOption<T> = MazRadioButtonsOption<T>> {
14
+ /** @model The value of the selected option */
15
+ modelValue?: T;
16
+ /** The options to display */
17
+ options: Option[];
18
+ /** The name of the radio group */
19
+ name?: string;
20
+ /** The color of the selected radio buttons */
21
+ color?: MazColor | 'background';
22
+ /** Add elevation to the radio buttons */
23
+ elevation?: boolean;
24
+ /**
25
+ * The orientation of the radio buttons
26
+ * @values 'row' | 'col'
27
+ * @default 'row'
28
+ */
29
+ orientation?: 'row' | 'col';
30
+ /** Disable the wrap of the radio buttons */
31
+ wrap?: boolean;
32
+ /** Make all radio buttons the same size */
33
+ equalSize?: boolean;
34
+ /** Display a selector icon */
35
+ selector?: boolean;
36
+ /** The component will be displayed in full width */
37
+ block?: boolean;
38
+ /** Whether there is an error with the input. */
39
+ error?: boolean;
40
+ /** Whether the input is successful. */
41
+ success?: boolean;
42
+ /** Whether there is a warning with the input. */
43
+ warning?: boolean;
44
+ /** The hint text to display below the input. */
45
+ hint?: string;
46
+ }
47
+ declare const _default: <T extends string | number | boolean, Option extends MazRadioButtonsOption<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
48
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
49
+ readonly onBlur?: ((value: FocusEvent) => any) | undefined;
50
+ readonly onChange?: ((value: Option["value"]) => any) | undefined;
51
+ readonly onFocus?: ((value: FocusEvent) => any) | undefined;
52
+ readonly "onUpdate:model-value"?: ((value: Option["value"]) => any) | undefined;
53
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazRadioButtonsProps<T, Option> & Partial<{}>> & import('vue').PublicProps;
54
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
55
+ attrs: any;
56
+ slots: {
57
+ default?(_: {
58
+ option: Option;
59
+ selected: boolean;
60
+ }): any;
61
+ };
62
+ emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: Option["value"]) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: Option["value"]) => void);
63
+ }>) => import('vue').VNode & {
64
+ __ctx?: Awaited<typeof __VLS_setup>;
65
+ };
66
+ export default _default;
67
+ type __VLS_PrettifyLocal<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, ref, watch, onMounted, onBeforeUnmount, createBlock, openBlock, Teleport, createElementVNode, mergeProps, normalizeStyle, normalizeClass, nextTick } from "vue";
2
2
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
3
- import '../assets/MazReadingProgressBar.CwBVXE3g.css';function throttle(func, limit) {
4
- let inThrottle = !1, lastFunc, lastRan;
5
- return function(...args) {
6
- inThrottle ? (clearTimeout(lastFunc), lastFunc = setTimeout(() => {
7
- Date.now() - lastRan >= limit && (func.apply(this, args), lastRan = Date.now());
8
- }, Math.max(limit - (Date.now() - lastRan), 0))) : (func.apply(this, args), lastRan = Date.now(), inThrottle = !0);
3
+ import '../assets/MazReadingProgressBar.dzfwQFNg.css';function i(e, a) {
4
+ let l = !1, n, t;
5
+ return function(...o) {
6
+ l ? (clearTimeout(n), n = setTimeout(() => {
7
+ Date.now() - t >= a && (e.apply(this, o), t = Date.now());
8
+ }, Math.max(a - (Date.now() - t), 0))) : (e.apply(this, o), t = Date.now(), l = !0);
9
9
  };
10
10
  }
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  immediate: !0
32
32
  }
33
33
  );
34
- const handleScroll = throttle(() => {
34
+ const handleScroll = i(() => {
35
35
  const scrollPosition = window.scrollY;
36
36
  if (scrollPosition >= 0 && scrollPosition <= elementHeight.value) {
37
37
  const progress = scrollPosition / elementHeight.value * 100;
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  ], 16)
69
69
  ], 8, ["to"]));
70
70
  }
71
- }), MazReadingProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fe8cbda7"]]);
71
+ }), MazReadingProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a180e792"]]);
72
72
  export {
73
73
  MazReadingProgressBar as default
74
74
  };
@@ -0,0 +1,55 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor } from './types';
3
+ export interface MazReadingProgressBarProps {
4
+ /**
5
+ * Height of the progress bar
6
+ * @default 4px
7
+ */
8
+ height?: string;
9
+ /**
10
+ * Color of the progress bar
11
+ * @default primary
12
+ */
13
+ color?: MazColor;
14
+ /**
15
+ * Selector of the element to teleport the progress bar
16
+ * @default body
17
+ */
18
+ teleportSelector?: string;
19
+ /**
20
+ * Selector of the element to get the height
21
+ * @default body
22
+ */
23
+ contentSelector?: string;
24
+ /**
25
+ * Offset of the progress bar
26
+ * @default 0
27
+ */
28
+ offset?: number;
29
+ /**
30
+ * Class of the progress bar
31
+ * @default undefined
32
+ */
33
+ barClass?: HTMLAttributes['class'];
34
+ /**
35
+ * Instead of using the height of the content with a selector, you can set a scroll distance
36
+ * @default undefined
37
+ */
38
+ distance?: number;
39
+ }
40
+ declare const _default: import('vue').DefineComponent<MazReadingProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
+ begin: () => any;
42
+ complete: () => any;
43
+ }, string, import('vue').PublicProps, Readonly<MazReadingProgressBarProps> & Readonly<{
44
+ onBegin?: (() => any) | undefined;
45
+ onComplete?: (() => any) | undefined;
46
+ }>, {
47
+ height: string;
48
+ color: MazColor;
49
+ offset: number;
50
+ teleportSelector: string;
51
+ distance: number;
52
+ contentSelector: string;
53
+ barClass: HTMLAttributes["class"];
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;