maz-ui 4.0.0-beta.33 → 4.0.0-beta.37

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 (345) hide show
  1. package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
  2. package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
  3. package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
  4. package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
  5. package/dist/assets/MazCard.Dv02b2P6.css +1 -0
  6. package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
  7. package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
  8. package/dist/assets/{MazCheckbox.aH1IKnrR.css → MazCheckbox.Di88TJ3e.css} +1 -1
  9. package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
  10. package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
  11. package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
  12. package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
  13. package/dist/assets/MazDropzone._2HwHowu.css +1 -0
  14. package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
  15. package/dist/assets/MazInput.BvuxfP9k.css +1 -0
  16. package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
  17. package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
  18. package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
  19. package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
  20. package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
  21. package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
  22. package/dist/assets/{MazPickerCalendarSwitcher.CI9Vw1sJ.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
  23. package/dist/assets/{MazPickerHeader.C4W93yMD.css → MazPickerHeader.D7JXgA3q.css} +1 -1
  24. package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
  25. package/dist/assets/{MazPickerYearSwitcher.CFiH13QC.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
  26. package/dist/assets/MazPopover.DIE65uVT.css +1 -0
  27. package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
  28. package/dist/assets/{MazRadio.aTHM-mpx.css → MazRadio.B0B3P1QS.css} +1 -1
  29. package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
  30. package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
  31. package/dist/assets/MazSelect.DIwjMD31.css +1 -0
  32. package/dist/assets/{MazSelectCountry.EW8fKXFX.css → MazSelectCountry.B0tlbfgr.css} +1 -1
  33. package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
  34. package/dist/assets/{MazStepper.BD2gDGAX.css → MazStepper.C9R7g43I.css} +1 -1
  35. package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
  36. package/dist/assets/MazTable.Cq7FEz09.css +1 -0
  37. package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
  38. package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
  39. package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
  40. package/dist/assets/{PhoneInput.DCWA_-gC.css → PhoneInput.DkOXlrI9.css} +1 -1
  41. package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
  42. package/dist/assets/{toast.DH9mbkvs.css → toast.BDNNJSjj.css} +1 -1
  43. package/dist/chunks/{MazDatePicker.bKFpslPf.js → MazDatePicker.B1B6gUrC.js} +24 -24
  44. package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +3 -1
  45. package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.X8ygqBUZ.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +8 -7
  46. 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
  47. package/dist/chunks/{MazInputPhoneNumber.BVHi0OiN.js → MazInputPhoneNumber.CDy6n_Qj.js} +10 -10
  48. 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
  49. package/dist/chunks/{MazPickerCalendar.lLfvUtrb.js → MazPickerCalendar.BSBQciuG.js} +1 -1
  50. package/dist/chunks/{MazPickerCalendarMonth.Djzgo1tF.js → MazPickerCalendarMonth.CFJHTFp5.js} +10 -10
  51. package/dist/chunks/{MazPickerCalendarSwitcher.Bf24kKw6.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
  52. package/dist/chunks/{MazPickerContainer.7hYHiOaa.js → MazPickerContainer.CRPzAbRt.js} +1 -1
  53. package/dist/chunks/{MazPickerHeader.B00RAQPS.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
  54. package/dist/chunks/{MazPickerMonthSwitcher.B2ZgNJWy.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
  55. package/dist/chunks/{MazPickerTime.Bd4khA2e.js → MazPickerTime.EZK1foEx.js} +1 -1
  56. package/dist/chunks/{MazPickerYearSwitcher.BIy9xGIw.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
  57. 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
  58. 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
  59. 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
  60. package/dist/chunks/{PhoneInput.D9vRIgS6.js → PhoneInput.DukRZp5u.js} +4 -4
  61. package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
  62. package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
  63. package/dist/chunks/debounce.DhXdop6X.js +11 -0
  64. package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
  65. package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
  66. package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
  67. package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
  68. package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
  69. package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
  70. package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
  71. package/dist/chunks/{pristine.CxBZzgUG.js → pristine.DMG3eBuN.js} +2 -2
  72. package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
  73. package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
  74. package/dist/chunks/{useStringMatching.BBezu-6J.js → useStringMatching.DzSigyZ7.js} +27 -27
  75. package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
  76. package/dist/components/MazAccordion.vue.d.ts +36 -0
  77. package/dist/components/MazAnimatedCounter.js +5 -5
  78. package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
  79. package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
  80. package/dist/components/MazAnimatedText.js +4 -4
  81. package/dist/components/MazAnimatedText.vue.d.ts +57 -0
  82. package/dist/components/MazAvatar.vue.d.ts +99 -0
  83. package/dist/components/MazBackdrop.js +70 -31
  84. package/dist/components/MazBackdrop.vue.d.ts +91 -0
  85. package/dist/components/MazBadge.vue.d.ts +61 -0
  86. package/dist/components/MazBottomSheet.vue.d.ts +35 -0
  87. package/dist/components/MazBtn.js +2 -2
  88. package/dist/components/MazBtn.vue.d.ts +105 -0
  89. package/dist/components/MazCard.js +3 -3
  90. package/dist/components/MazCard.vue.d.ts +77 -0
  91. package/dist/components/MazCardSpotlight.js +2 -2
  92. package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
  93. package/dist/components/MazCarousel.js +3 -3
  94. package/dist/components/MazCarousel.vue.d.ts +48 -0
  95. package/dist/components/MazChart.vue.d.ts +53 -0
  96. package/dist/components/MazCheckbox.js +2 -2
  97. package/dist/components/MazCheckbox.vue.d.ts +55 -0
  98. package/dist/components/MazChecklist.js +7 -7
  99. package/dist/components/MazChecklist.vue.d.ts +87 -0
  100. package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
  101. package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
  102. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  103. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
  104. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
  105. package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
  106. package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
  107. package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
  108. package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
  109. package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
  110. package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
  111. package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
  112. package/dist/components/MazDatePicker/types.d.ts +14 -0
  113. package/dist/components/MazDatePicker/utils.d.ts +61 -0
  114. package/dist/components/MazDatePicker.js +1 -1
  115. package/dist/components/MazDatePicker.vue.d.ts +547 -0
  116. package/dist/components/MazDialog.js +9 -16
  117. package/dist/components/MazDialog.vue.d.ts +247 -0
  118. package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
  119. package/dist/components/MazDialogConfirm.js +2 -2
  120. package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
  121. package/dist/components/MazDrawer.vue.d.ts +52 -0
  122. package/dist/components/MazDropdown.js +1 -1
  123. package/dist/components/MazDropdown.vue.d.ts +249 -0
  124. package/dist/components/MazDropzone.js +6 -6
  125. package/dist/components/MazDropzone.vue.d.ts +305 -0
  126. package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
  127. package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
  128. package/dist/components/MazGallery.js +4 -4
  129. package/dist/components/MazGallery.vue.d.ts +85 -0
  130. package/dist/components/MazIcon.vue.d.ts +26 -0
  131. package/dist/components/MazInput.js +4 -4
  132. package/dist/components/MazInput.vue.d.ts +225 -0
  133. package/dist/components/MazInputCode.js +2 -2
  134. package/dist/components/MazInputCode.vue.d.ts +49 -0
  135. package/dist/components/MazInputNumber.js +1 -1
  136. package/dist/components/MazInputNumber.vue.d.ts +125 -0
  137. package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
  138. package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
  139. package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
  140. package/dist/components/MazInputPhoneNumber.js +1 -1
  141. package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
  142. package/dist/components/MazInputPrice.js +1 -1
  143. package/dist/components/MazInputPrice.vue.d.ts +48 -0
  144. package/dist/components/MazInputTags.js +6 -6
  145. package/dist/components/MazInputTags.vue.d.ts +51 -0
  146. package/dist/components/MazLazyImg.js +2 -2
  147. package/dist/components/MazLazyImg.vue.d.ts +78 -0
  148. package/dist/components/MazLink.vue.d.ts +115 -0
  149. package/dist/components/MazLoadingBar.vue.d.ts +12 -0
  150. package/dist/components/MazPagination.js +3 -3
  151. package/dist/components/MazPagination.vue.d.ts +83 -0
  152. package/dist/components/MazPopover.js +12 -12
  153. package/dist/components/MazPopover.vue.d.ts +256 -0
  154. package/dist/components/MazPullToRefresh.js +7 -7
  155. package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
  156. package/dist/components/MazRadio.js +2 -2
  157. package/dist/components/MazRadio.vue.d.ts +55 -0
  158. package/dist/components/MazRadioButtons.js +2 -2
  159. package/dist/components/MazRadioButtons.vue.d.ts +69 -0
  160. package/dist/components/MazReadingProgressBar.js +8 -8
  161. package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
  162. package/dist/components/MazSelect.js +10 -10
  163. package/dist/components/MazSelect.vue.d.ts +178 -0
  164. package/dist/components/MazSelectCountry.js +15 -15
  165. package/dist/components/MazSelectCountry.vue.d.ts +171 -0
  166. package/dist/components/MazSlider/utils.d.ts +15 -0
  167. package/dist/components/MazSlider.js +36 -36
  168. package/dist/components/MazSlider.vue.d.ts +31 -0
  169. package/dist/components/MazSpinner.vue.d.ts +15 -0
  170. package/dist/components/MazStepper.js +2 -2
  171. package/dist/components/MazStepper.vue.d.ts +60 -0
  172. package/dist/components/MazSwitch.js +1 -1
  173. package/dist/components/MazSwitch.vue.d.ts +69 -0
  174. package/dist/components/MazTable.js +3 -3
  175. package/dist/components/MazTable.vue.d.ts +324 -0
  176. package/dist/components/MazTableCell.js +1 -1
  177. package/dist/components/MazTableCell.vue.d.ts +17 -0
  178. package/dist/components/MazTableRow.js +6 -5
  179. package/dist/components/MazTableRow.vue.d.ts +23 -0
  180. package/dist/components/MazTableTitle.js +1 -1
  181. package/dist/components/MazTableTitle.vue.d.ts +17 -0
  182. package/dist/components/MazTabs.vue.d.ts +30 -0
  183. package/dist/components/MazTabsBar.js +4 -4
  184. package/dist/components/MazTabsBar.vue.d.ts +96 -0
  185. package/dist/components/MazTabsContent.js +1 -1
  186. package/dist/components/MazTabsContent.vue.d.ts +17 -0
  187. package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
  188. package/dist/components/MazTextarea.js +6 -6
  189. package/dist/components/MazTextarea.vue.d.ts +88 -0
  190. package/dist/components/constantes.d.ts +2 -0
  191. package/dist/components/index.d.ts +109 -0
  192. package/dist/components/index.js +8 -8
  193. package/dist/components/types.d.ts +4 -0
  194. package/dist/composables/index.d.ts +21 -0
  195. package/dist/composables/index.js +1 -1
  196. package/dist/composables/useAos.d.ts +2 -0
  197. package/dist/composables/useBreakpoints.d.ts +38 -0
  198. package/dist/composables/useDialog.d.ts +2 -0
  199. package/dist/composables/useDisplayNames.d.ts +101 -0
  200. package/dist/composables/useDisplayNames.js +10 -16
  201. package/dist/composables/useDropzone.d.ts +27 -0
  202. package/dist/composables/useDropzone.js +2 -2
  203. package/dist/composables/useFormField.d.ts +16 -0
  204. package/dist/composables/useFormField.js +2 -2
  205. package/dist/composables/useFormValidator/config.d.ts +7 -0
  206. package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
  207. package/dist/composables/useFormValidator/state-management.d.ts +72 -0
  208. package/dist/composables/useFormValidator/types.d.ts +98 -0
  209. package/dist/composables/useFormValidator/validation.d.ts +37 -0
  210. package/dist/composables/useFormValidator.d.ts +23 -0
  211. package/dist/composables/useFormValidator.js +1 -1
  212. package/dist/composables/useFreezeValue.d.ts +5 -0
  213. package/dist/composables/useIdleTimeout.d.ts +5 -0
  214. package/dist/composables/useIdleTimeout.js +27 -27
  215. package/dist/composables/useInjectStrict.d.ts +2 -0
  216. package/dist/composables/useInstanceUniqId.d.ts +4 -0
  217. package/dist/composables/useMountComponent.d.ts +14 -0
  218. package/dist/composables/useReadingTime.d.ts +25 -0
  219. package/dist/composables/useStringMatching.d.ts +5 -0
  220. package/dist/composables/useStringMatching.js +1 -1
  221. package/dist/composables/useSwipe.d.ts +14 -0
  222. package/dist/composables/useSwipe.js +22 -22
  223. package/dist/composables/useTimer.d.ts +30 -0
  224. package/dist/composables/useToast.d.ts +22 -0
  225. package/dist/composables/useUserVisibility.d.ts +5 -0
  226. package/dist/composables/useUserVisibility.js +8 -8
  227. package/dist/composables/useWait.d.ts +2 -0
  228. package/dist/composables/useWindowSize.d.ts +32 -0
  229. package/dist/composables/useWindowSize.js +2 -2
  230. package/dist/css/main.css +1 -1
  231. package/dist/directives/index.d.ts +5 -0
  232. package/dist/directives/index.js +2 -2
  233. package/dist/directives/vClickOutside.d.ts +36 -0
  234. package/dist/directives/vClickOutside.js +1 -1
  235. package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
  236. package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
  237. package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
  238. package/dist/directives/vFullscreenImg.d.ts +11 -0
  239. package/dist/directives/vFullscreenImg.js +1 -1
  240. package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
  241. package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
  242. package/dist/directives/vLazyImg/types.d.ts +29 -0
  243. package/dist/directives/vLazyImg.d.ts +12 -0
  244. package/dist/directives/vTooltip.d.ts +54 -0
  245. package/dist/directives/vZoomImg/style.d.ts +1 -0
  246. package/dist/directives/vZoomImg/svgs.d.ts +3 -0
  247. package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
  248. package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
  249. package/dist/directives/vZoomImg.d.ts +10 -0
  250. package/dist/index.d.ts +1 -0
  251. package/dist/plugins/aos.d.ts +81 -0
  252. package/dist/plugins/aos.js +5 -5
  253. package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
  254. package/dist/plugins/dialog.d.ts +26 -0
  255. package/dist/plugins/dialog.js +1 -1
  256. package/dist/plugins/index.d.ts +5 -0
  257. package/dist/plugins/maz-ui.d.ts +43 -0
  258. package/dist/plugins/maz-ui.js +211 -373
  259. package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
  260. package/dist/plugins/toast/ToastHandler.d.ts +29 -0
  261. package/dist/plugins/toast/types.d.ts +104 -0
  262. package/dist/plugins/toast.d.ts +25 -0
  263. package/dist/plugins/toast.js +2 -2
  264. package/dist/plugins/wait.d.ts +33 -0
  265. package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
  266. package/dist/resolvers/MazComponentsResolver.js +2 -2
  267. package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
  268. package/dist/resolvers/MazDirectivesResolver.js +2 -2
  269. package/dist/resolvers/MazModulesResolver.d.ts +11 -0
  270. package/dist/resolvers/MazModulesResolver.js +3 -3
  271. package/dist/resolvers/index.d.ts +3 -0
  272. package/dist/tailwindcss/index.d.ts +6 -0
  273. package/dist/tailwindcss/tailwind.config.d.ts +89 -0
  274. package/dist/tailwindcss/utils/colors.d.ts +7 -0
  275. package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
  276. package/dist/tailwindcss/variables/colors.d.ts +20 -0
  277. package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
  278. package/dist/tailwindcss/variables/utilities.d.ts +17 -0
  279. package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
  280. package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
  281. package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
  282. package/dist/types/components/MazCarousel.vue.d.ts +4 -4
  283. package/dist/types/components/MazChecklist.vue.d.ts +5 -5
  284. package/dist/types/components/MazDatePicker/utils.d.ts +2 -2
  285. package/dist/types/components/MazDatePicker.vue.d.ts +1 -1
  286. package/dist/types/components/MazDialog.vue.d.ts +10 -19
  287. package/dist/types/components/MazDialogConfirm.vue.d.ts +7 -11
  288. package/dist/types/components/MazDropdown.vue.d.ts +9 -2
  289. package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
  290. package/dist/types/components/MazInputPhoneNumber.vue.d.ts +4 -4
  291. package/dist/types/components/MazInputPrice.vue.d.ts +1 -1
  292. package/dist/types/components/MazSelect.vue.d.ts +3 -3
  293. package/dist/types/components/MazSelectCountry.vue.d.ts +4 -4
  294. package/dist/types/components/MazTable.vue.d.ts +5 -5
  295. package/dist/types/components/MazTableRow.vue.d.ts +2 -0
  296. package/dist/types/composables/useDisplayNames.d.ts +60 -1
  297. package/dist/types/composables/useFormValidator.d.ts +1 -1
  298. package/dist/types/composables/useIdleTimeout.d.ts +1 -1
  299. package/dist/types/composables/useSwipe.d.ts +1 -1
  300. package/dist/types/composables/useUserVisibility.d.ts +1 -1
  301. package/dist/types/plugins/maz-ui.d.ts +5 -5
  302. package/package.json +30 -18
  303. package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
  304. package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
  305. package/dist/assets/MazBtn.BYOKMl_2.css +0 -1
  306. package/dist/assets/MazCard.D0ksni8A.css +0 -1
  307. package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
  308. package/dist/assets/MazCarousel.D4zTkRsG.css +0 -1
  309. package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
  310. package/dist/assets/MazDatePicker.BUVI9tfN.css +0 -1
  311. package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
  312. package/dist/assets/MazDropzone.C2SunLAI.css +0 -1
  313. package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
  314. package/dist/assets/MazInput.BPhjbYZG.css +0 -1
  315. package/dist/assets/MazInputCode.FA2z4HQd.css +0 -1
  316. package/dist/assets/MazInputPhoneNumber.DQKElfIM.css +0 -1
  317. package/dist/assets/MazInputTags.KNTpDHof.css +0 -1
  318. package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
  319. package/dist/assets/MazPickerCalendarMonth.BRoEh_ad.css +0 -1
  320. package/dist/assets/MazPickerMonthSwitcher.D9lfVzYo.css +0 -1
  321. package/dist/assets/MazPopover.BkR4UUzj.css +0 -1
  322. package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
  323. package/dist/assets/MazRadioButtons.DN_rAzT9.css +0 -1
  324. package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
  325. package/dist/assets/MazSelect.DuRAHZGW.css +0 -1
  326. package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
  327. package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
  328. package/dist/assets/MazTable.DMlQdImb.css +0 -1
  329. package/dist/assets/MazTableRow.DgBXpK9J.css +0 -1
  330. package/dist/assets/MazTextarea.li9dWBax.css +0 -1
  331. package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
  332. package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
  333. package/dist/chunks/de.B15Maq8Z.js +0 -82
  334. package/dist/chunks/debounce.Brzkn9pm.js +0 -11
  335. package/dist/chunks/en.Q_4-KljL.js +0 -157
  336. package/dist/chunks/es.BV1TlfTw.js +0 -82
  337. package/dist/chunks/fr.BVPG-7Dk.js +0 -82
  338. package/dist/chunks/it.Be9xhI4P.js +0 -82
  339. package/dist/chunks/ja.CWU7KYEA.js +0 -82
  340. package/dist/chunks/pascalCase.GdDKKQ-O.js +0 -19
  341. package/dist/chunks/pt.CfaFSxVt.js +0 -82
  342. package/dist/chunks/sleep.BLRH1qZG.js +0 -6
  343. package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
  344. package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
  345. package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
@@ -0,0 +1,26 @@
1
+ import { CountryCode } from 'libphonenumber-js';
2
+ export interface CountryOption {
3
+ code: CountryCode;
4
+ dialCode: string;
5
+ name: string;
6
+ }
7
+ declare function getBrowserLocale(): {
8
+ locale: string;
9
+ browserLocale: string;
10
+ } | undefined;
11
+ declare function getCountryList(locale?: string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): CountryOption[] | undefined;
12
+ declare function fetchCountryCode(): Promise<{
13
+ data: CountryCode;
14
+ error: undefined;
15
+ } | {
16
+ data: undefined;
17
+ error: Error;
18
+ }>;
19
+ declare function sanitizePhoneNumber(input?: string | undefined | null): string;
20
+ export declare function useMazInputPhoneNumber(): {
21
+ fetchCountryCode: typeof fetchCountryCode;
22
+ getBrowserLocale: typeof getBrowserLocale;
23
+ getCountryList: typeof getCountryList;
24
+ sanitizePhoneNumber: typeof sanitizePhoneNumber;
25
+ };
26
+ export {};
@@ -1,4 +1,4 @@
1
- import { M } from "../chunks/MazInputPhoneNumber.BVHi0OiN.js";
1
+ import { M } from "../chunks/MazInputPhoneNumber.CDy6n_Qj.js";
2
2
  import "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
3
3
  export {
4
4
  M as default
@@ -0,0 +1,421 @@
1
+ import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
2
+ import { CountryCallingCode, CountryCode, NationalNumber, NumberType } from 'libphonenumber-js';
3
+ import { HTMLAttributes } from 'vue';
4
+ import { MazPopoverProps } from './MazPopover.vue';
5
+ import { MazColor, MazSize } from './types';
6
+ export interface MazInputPhoneNumberData {
7
+ isValid: boolean;
8
+ isPossible?: boolean;
9
+ countryCode?: CountryCode | undefined | null;
10
+ parsedCountryCode?: CountryCode | undefined | null;
11
+ countryCallingCode?: CountryCallingCode;
12
+ nationalNumber?: NationalNumber;
13
+ type?: NumberType;
14
+ formatInternational?: string;
15
+ formatNational?: string;
16
+ uri?: string;
17
+ e164?: string;
18
+ rfc3966?: string;
19
+ possibleCountries?: CountryCode[];
20
+ phoneNumber?: string | undefined | null;
21
+ }
22
+ export interface MazInputPhoneNumberProps {
23
+ /**
24
+ * Style attribut of the component root element
25
+ * @type {HTMLAttributes['style']}
26
+ */
27
+ style?: HTMLAttributes['style'];
28
+ /**
29
+ * Class attribut of the component root element
30
+ * @type {HTMLAttributes['class']}
31
+ */
32
+ class?: HTMLAttributes['class'];
33
+ /**
34
+ * The current value of the input field in international format (e.g. +33612345678)
35
+ * @model
36
+ * @type {string | undefined | null}
37
+ * @example "+33612345678"
38
+ */
39
+ modelValue?: string | undefined | null;
40
+ /**
41
+ * The selected country code (e.g. "FR")
42
+ * @model
43
+ * @type {CountryCode | undefined | null}
44
+ * @example "FR"
45
+ */
46
+ countryCode?: CountryCode | undefined | null;
47
+ /**
48
+ * Unique identifier for the component
49
+ * @type {string}
50
+ * @example "phone-input-1"
51
+ */
52
+ id?: string;
53
+ /**
54
+ * Text displayed when the input is empty
55
+ * @type {string}
56
+ * @example "Enter your phone number"
57
+ */
58
+ placeholder?: string;
59
+ /**
60
+ * Label displayed above the input
61
+ * @type {string}
62
+ * @example "Phone Number"
63
+ */
64
+ label?: string;
65
+ /**
66
+ * List of country codes to place first in the select list
67
+ * @type {CountryCode[]}
68
+ * @example ["FR", "BE", "GE"]
69
+ */
70
+ preferredCountries?: CountryCode[];
71
+ /**
72
+ * List of country codes to be removed from the select list
73
+ * @type {CountryCode[]}
74
+ * @example ["FR", "BE", "GE"]
75
+ */
76
+ ignoredCountries?: CountryCode[];
77
+ /**
78
+ * List of country codes to only have the countries selected in the select list
79
+ * @type {CountryCode[]}
80
+ * @example ["FR", "BE", "GE"]
81
+ */
82
+ onlyCountries?: CountryCode[];
83
+ /**
84
+ * Locale strings of the component
85
+ * The default values are the translations of the MazUiTranslations plugin
86
+ * @type {Partial<MazUiTranslationsNestedSchema['inputPhoneNumber']>}
87
+ * @default {
88
+ * countrySelect: {
89
+ * error: 'Choose country',
90
+ * placeholder: 'Country code',
91
+ * searchPlaceholder: 'Search the country',
92
+ * },
93
+ * phoneInput: {
94
+ * placeholder: 'Phone number',
95
+ * example: 'Example: {example}',
96
+ * },
97
+ * }
98
+ */
99
+ translations?: Partial<MazUiTranslationsNestedSchema['inputPhoneNumber']>;
100
+ /**
101
+ * Position where the list of countries will be opened
102
+ * @type {MazPopoverProps['position']}
103
+ * @values top left, top right, bottom left, bottom right
104
+ * @default "bottom left"
105
+ */
106
+ listPosition?: MazPopoverProps['position'];
107
+ /**
108
+ * Component color applied
109
+ * @type {MazColor}
110
+ * @values primary, secondary, accent, info, success, warning, destructive, contrast
111
+ * @default "primary"
112
+ */
113
+ color?: MazColor;
114
+ /**
115
+ * Component size applied
116
+ * @type {MazSize}
117
+ * @values xs, sm, md, lg, xl, mini
118
+ * @default "md"
119
+ */
120
+ size?: MazSize;
121
+ /**
122
+ * Remove flags in country list
123
+ * @default false
124
+ */
125
+ hideFlags?: boolean;
126
+ /**
127
+ * Disable input
128
+ * @default false
129
+ */
130
+ disabled?: boolean;
131
+ /**
132
+ * Show the phone number example
133
+ * @default true
134
+ */
135
+ example?: boolean;
136
+ /**
137
+ * Disable search input in country list
138
+ * @default true
139
+ */
140
+ search?: boolean;
141
+ /**
142
+ * Threshold of the search input in country list where 1 is a perfect match and 0 is a match with any character
143
+ * @type {number}
144
+ * @default 0.75
145
+ */
146
+ searchThreshold?: number;
147
+ /**
148
+ * If true, the browser locale will be used
149
+ * @default true
150
+ */
151
+ useBrowserLocale?: boolean;
152
+ /**
153
+ * The component will make a request (https://ipwho.is) to get the location of the user and use it to set the default country code
154
+ * @default false
155
+ */
156
+ fetchCountry?: boolean;
157
+ /**
158
+ * Hide the country selector
159
+ * @default false
160
+ */
161
+ hideCountrySelect?: boolean;
162
+ /**
163
+ * Show country calling code in the country list
164
+ * @default false
165
+ */
166
+ showCodeInList?: boolean;
167
+ /**
168
+ * Replace country names
169
+ * @type {Record<CountryCode, string>}
170
+ */
171
+ customCountriesList?: Record<CountryCode, string>;
172
+ /**
173
+ * Disabled auto-format when phone is valid
174
+ * @default 'blur'
175
+ */
176
+ autoFormat?: 'blur' | 'typing' | 'disabled' | false;
177
+ /**
178
+ * Locale of country list
179
+ * @example "fr-FR"
180
+ */
181
+ countryLocale?: string;
182
+ /**
183
+ * Disable validation error UI
184
+ * @default true
185
+ */
186
+ validationError?: boolean;
187
+ /**
188
+ * Disable validation success UI
189
+ * @default true
190
+ */
191
+ validationSuccess?: boolean;
192
+ /**
193
+ * Add success UI
194
+ * @default false
195
+ */
196
+ success?: boolean;
197
+ /**
198
+ * Add error UI
199
+ * @default false
200
+ */
201
+ error?: boolean;
202
+ /**
203
+ * Will replace the calling code by the country name in the country selector
204
+ * @default false
205
+ */
206
+ displayCountryName?: boolean;
207
+ /**
208
+ * The input will be displayed in full width
209
+ * @default false
210
+ */
211
+ block?: boolean;
212
+ /**
213
+ * Orientation of the inputs in the component
214
+ * @type {'row' | 'col' | 'responsive'}
215
+ * @values row, col, responsive
216
+ * @default "responsive"
217
+ */
218
+ orientation?: 'row' | 'col' | 'responsive';
219
+ /**
220
+ * Meta attributes of the country input
221
+ * @type {Record<string, unknown>}
222
+ * @default { autocomplete: 'off', name: 'country' }
223
+ */
224
+ countrySelectAttributes?: Record<string, unknown>;
225
+ /**
226
+ * Meta attributes of the phone number input
227
+ * @type {Record<string, unknown>}
228
+ * @default { autocomplete: 'tel', name: 'phone', inputmode: 'tel' }
229
+ */
230
+ phoneInputAttributes?: Record<string, unknown> & {
231
+ name: string;
232
+ inputmode: HTMLAttributes['inputmode'];
233
+ autocomplete: string;
234
+ };
235
+ }
236
+ /** Models */
237
+ declare const phoneNumber: import('vue').Ref<string | null | undefined, string | null | undefined>;
238
+ declare const selectedCountry: import('vue').Ref<CountryCode | undefined, CountryCode | undefined>;
239
+ declare const results: import('vue').Ref<{
240
+ isValid: boolean;
241
+ isPossible?: boolean | undefined;
242
+ countryCode?: CountryCode | null | undefined;
243
+ parsedCountryCode?: CountryCode | null | undefined;
244
+ countryCallingCode?: CountryCallingCode | undefined;
245
+ nationalNumber?: NationalNumber | undefined;
246
+ type?: NumberType;
247
+ formatInternational?: string | undefined;
248
+ formatNational?: string | undefined;
249
+ uri?: string | undefined;
250
+ e164?: string | undefined;
251
+ rfc3966?: string | undefined;
252
+ possibleCountries?: CountryCode[] | undefined;
253
+ phoneNumber?: string | undefined | null | undefined;
254
+ }, MazInputPhoneNumberData | {
255
+ isValid: boolean;
256
+ isPossible?: boolean | undefined;
257
+ countryCode?: CountryCode | null | undefined;
258
+ parsedCountryCode?: CountryCode | null | undefined;
259
+ countryCallingCode?: CountryCallingCode | undefined;
260
+ nationalNumber?: NationalNumber | undefined;
261
+ type?: NumberType;
262
+ formatInternational?: string | undefined;
263
+ formatNational?: string | undefined;
264
+ uri?: string | undefined;
265
+ e164?: string | undefined;
266
+ rfc3966?: string | undefined;
267
+ possibleCountries?: CountryCode[] | undefined;
268
+ phoneNumber?: string | undefined | null | undefined;
269
+ }>;
270
+ /** Inject */
271
+ export interface MazInputPhoneNumberInjectedData {
272
+ selectedCountry: typeof selectedCountry;
273
+ phoneNumber: typeof phoneNumber;
274
+ results: typeof results;
275
+ }
276
+ declare function __VLS_template(): {
277
+ attrs: Partial<{}>;
278
+ slots: {
279
+ 'no-results'?(_: {}): any;
280
+ 'selector-flag'?(_: {
281
+ countryCode: CountryCode | undefined;
282
+ }): any;
283
+ 'country-list-flag'?(_: {
284
+ countryCode: CountryCode;
285
+ option: import('./MazInputPhoneNumber/useMazInputPhoneNumber').CountryOption;
286
+ isSelected: boolean;
287
+ }): any;
288
+ };
289
+ refs: {
290
+ PhoneInputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
291
+ modelValue?: string | undefined | null;
292
+ } & Omit<import('./MazInput.vue').MazInputProps<import('./MazInput.vue').MazInputValue>, "modelValue"> & {
293
+ id: string;
294
+ locales: {
295
+ placeholder: string;
296
+ example: string | undefined;
297
+ };
298
+ example: boolean;
299
+ hasRadius: boolean;
300
+ autoFormat: "blur" | "typing" | "disabled" | false;
301
+ }> & Readonly<{
302
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
303
+ }>, {
304
+ focus: () => void;
305
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
306
+ "update:modelValue": (value: string | null | undefined) => any;
307
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
308
+ input: import('vue').ShallowUnwrapRef<{}> | null;
309
+ }, any, import('vue').ComponentProvideOptions, {
310
+ P: {};
311
+ B: {};
312
+ D: {};
313
+ C: {};
314
+ M: {};
315
+ Defaults: {};
316
+ }, Readonly<{
317
+ modelValue?: string | undefined | null;
318
+ } & Omit<import('./MazInput.vue').MazInputProps<import('./MazInput.vue').MazInputValue>, "modelValue"> & {
319
+ id: string;
320
+ locales: {
321
+ placeholder: string;
322
+ example: string | undefined;
323
+ };
324
+ example: boolean;
325
+ hasRadius: boolean;
326
+ autoFormat: "blur" | "typing" | "disabled" | false;
327
+ }> & Readonly<{
328
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
329
+ }>, {
330
+ focus: () => void;
331
+ }, {}, {}, {}, {}> | null;
332
+ };
333
+ rootEl: any;
334
+ };
335
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
336
+ declare const __VLS_component: import('vue').DefineComponent<MazInputPhoneNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
337
+ data: (results: MazInputPhoneNumberData) => any;
338
+ "update:model-value": (value: string | null | undefined) => any;
339
+ "country-code": (countryCode?: CountryCode | null | undefined) => any;
340
+ "update:country-code": (countryCode?: CountryCode | null | undefined) => any;
341
+ }, string, import('vue').PublicProps, Readonly<MazInputPhoneNumberProps> & Readonly<{
342
+ onData?: ((results: MazInputPhoneNumberData) => any) | undefined;
343
+ "onUpdate:model-value"?: ((value: string | null | undefined) => any) | undefined;
344
+ "onCountry-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
345
+ "onUpdate:country-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
346
+ }>, {
347
+ size: MazSize;
348
+ search: boolean;
349
+ color: MazColor;
350
+ disabled: boolean;
351
+ orientation: "row" | "col" | "responsive";
352
+ example: boolean;
353
+ useBrowserLocale: boolean;
354
+ listPosition: import('./MazPopover.vue').MazPopoverPosition;
355
+ searchThreshold: number;
356
+ hideFlags: boolean;
357
+ showCodeInList: boolean;
358
+ autoFormat: "blur" | "typing" | "disabled" | false;
359
+ hideCountrySelect: boolean;
360
+ customCountriesList: Record<CountryCode, string>;
361
+ countryLocale: string;
362
+ validationError: boolean;
363
+ validationSuccess: boolean;
364
+ displayCountryName: boolean;
365
+ countrySelectAttributes: Record<string, unknown>;
366
+ phoneInputAttributes: Record<string, unknown> & {
367
+ name: string;
368
+ inputmode: HTMLAttributes["inputmode"];
369
+ autocomplete: string;
370
+ };
371
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
372
+ PhoneInputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
373
+ modelValue?: string | undefined | null;
374
+ } & Omit<import('./MazInput.vue').MazInputProps<import('./MazInput.vue').MazInputValue>, "modelValue"> & {
375
+ id: string;
376
+ locales: {
377
+ placeholder: string;
378
+ example: string | undefined;
379
+ };
380
+ example: boolean;
381
+ hasRadius: boolean;
382
+ autoFormat: "blur" | "typing" | "disabled" | false;
383
+ }> & Readonly<{
384
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
385
+ }>, {
386
+ focus: () => void;
387
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
388
+ "update:modelValue": (value: string | null | undefined) => any;
389
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
390
+ input: import('vue').ShallowUnwrapRef<{}> | null;
391
+ }, any, import('vue').ComponentProvideOptions, {
392
+ P: {};
393
+ B: {};
394
+ D: {};
395
+ C: {};
396
+ M: {};
397
+ Defaults: {};
398
+ }, Readonly<{
399
+ modelValue?: string | undefined | null;
400
+ } & Omit<import('./MazInput.vue').MazInputProps<import('./MazInput.vue').MazInputValue>, "modelValue"> & {
401
+ id: string;
402
+ locales: {
403
+ placeholder: string;
404
+ example: string | undefined;
405
+ };
406
+ example: boolean;
407
+ hasRadius: boolean;
408
+ autoFormat: "blur" | "typing" | "disabled" | false;
409
+ }> & Readonly<{
410
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
411
+ }>, {
412
+ focus: () => void;
413
+ }, {}, {}, {}, {}> | null;
414
+ }, any>;
415
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
416
+ export default _default;
417
+ type __VLS_WithTemplateSlots<T, S> = T & {
418
+ new (): {
419
+ $slots: S;
420
+ };
421
+ };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js";
1
+ import { _ as _sfc_main } from "../chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -0,0 +1,48 @@
1
+ import { FilterCurrencyOptions } from '@maz-ui/utils/helpers/formatCurrency';
2
+ export interface MazInputPriceProps {
3
+ /** @model The value of the input */
4
+ modelValue?: number;
5
+ /** The currency to use */
6
+ currency?: string;
7
+ /** The locale to use */
8
+ locale?: string;
9
+ /** The minimum value that the input can accept */
10
+ min?: number;
11
+ /** The maximum value that the input can accept */
12
+ max?: number;
13
+ /** The input will be displayed without icon */
14
+ noIcon?: boolean;
15
+ /** The input will be displayed in full width */
16
+ block?: boolean;
17
+ /** Will display the input in error state. */
18
+ error?: boolean;
19
+ /** The hint text to display below the input. */
20
+ hint?: string;
21
+ /** Will display the input in success state. */
22
+ success?: boolean;
23
+ /** Will display the input in warning state. */
24
+ warning?: boolean;
25
+ /** Options for the currency helper - [see](https://maz-ui.com/utils/currency) */
26
+ currencyOptions?: Omit<FilterCurrencyOptions, 'currency'>;
27
+ }
28
+ declare const _default: import('vue').DefineComponent<MazInputPriceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ blur: (value: Event) => any;
30
+ focus: (value: Event) => any;
31
+ input: (value: number | undefined) => any;
32
+ "update:model-value": (value: number | undefined) => any;
33
+ formatted: (value: string | undefined) => any;
34
+ }, string, import('vue').PublicProps, Readonly<MazInputPriceProps> & Readonly<{
35
+ onBlur?: ((value: Event) => any) | undefined;
36
+ onFocus?: ((value: Event) => any) | undefined;
37
+ onInput?: ((value: number | undefined) => any) | undefined;
38
+ "onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
39
+ onFormatted?: ((value: string | undefined) => any) | undefined;
40
+ }>, {
41
+ max: number;
42
+ min: number;
43
+ currency: string;
44
+ locale: string;
45
+ modelValue: number;
46
+ noIcon: boolean;
47
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
+ export default _default;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, TransitionGroup, withCtx, Fragment, renderList, withModifiers, unref, createTextVNode, toDisplayString, mergeProps, withKeys } from "vue";
2
2
  import { MazTrash } from "@maz-ui/icons";
3
- import { t as truthyFilter } from "../chunks/truthyFilter.C2WOKUCG.js";
3
+ import { r } from "../chunks/truthyFilter.DZvXmxeK.js";
4
4
  import MazBtn from "./MazBtn.js";
5
5
  import MazInput from "./MazInput.js";
6
6
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
7
- import '../assets/MazInputTags.KNTpDHof.css';const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ import '../assets/MazInputTags.is2jSJk-.css';const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  inheritAttrs: !1,
9
9
  __name: "MazInputTags",
10
10
  props: {
@@ -35,8 +35,8 @@ import '../assets/MazInputTags.KNTpDHof.css';const _sfc_main = /* @__PURE__ */ d
35
35
  function addTags(event) {
36
36
  if (inputValue.value) {
37
37
  lastIdToDelete.value = void 0, event.preventDefault();
38
- const newValues = inputValue.value.trim().split(",").map((value) => value.trim() === "," ? void 0 : value.trim()).filter(truthyFilter).filter(
39
- (value) => !props.modelValue?.filter(truthyFilter)?.some((tag) => tag === value)
38
+ const newValues = inputValue.value.trim().split(",").map((value) => value.trim() === "," ? void 0 : value.trim()).filter(r).filter(
39
+ (value) => !props.modelValue?.filter(r)?.some((tag) => tag === value)
40
40
  );
41
41
  emits(
42
42
  "update:model-value",
@@ -78,7 +78,7 @@ import '../assets/MazInputTags.KNTpDHof.css';const _sfc_main = /* @__PURE__ */ d
78
78
  }
79
79
  const buttonSize = computed(() => props.size === "mini" || props.size === "xs" ? "mini" : props.size === "sm" ? "xs" : props.size === "md" ? "sm" : props.size === "lg" ? "md" : props.size === "xl" ? "lg" : props.size);
80
80
  return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
81
- class: normalizeClass(["m-input-tags m-reset-css maz-border-divider-400", [borderStyle.value, `--${_ctx.color}`, `--${_ctx.size}`, props.class, { "--block": _ctx.block }]]),
81
+ class: normalizeClass(["m-input-tags m-reset-css", [borderStyle.value, `--${_ctx.color}`, `--${_ctx.size}`, props.class, { "--block": _ctx.block }]]),
82
82
  style: normalizeStyle(_ctx.style),
83
83
  onFocusCapture: _cache[4] || (_cache[4] = ($event) => isFocused.value = !0),
84
84
  onBlurCapture: _cache[5] || (_cache[5] = ($event) => isFocused.value = !1)
@@ -139,7 +139,7 @@ import '../assets/MazInputTags.KNTpDHof.css';const _sfc_main = /* @__PURE__ */ d
139
139
  }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
140
140
  ], 38));
141
141
  }
142
- }), MazInputTags = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8a1d0e47"]]);
142
+ }), MazInputTags = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a90f8b0e"]]);
143
143
  export {
144
144
  MazInputTags as default
145
145
  };
@@ -0,0 +1,51 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor, MazSize } from './types';
3
+ export interface MazInputTagsProps {
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
+ /** @model The modelValue of the input */
9
+ modelValue?: (string | number)[];
10
+ /** The placeholder of the input */
11
+ placeholder?: string;
12
+ /** The label of the input */
13
+ label?: string;
14
+ /** Disable the input */
15
+ disabled?: boolean;
16
+ /** Display the input with error style */
17
+ error?: boolean;
18
+ /** Display the input with success style */
19
+ success?: boolean;
20
+ /** Display the input with warning style */
21
+ warning?: boolean;
22
+ /** The size of the input */
23
+ size?: MazSize;
24
+ /** The color of the input */
25
+ color?: MazColor;
26
+ /** The input will be displayed in full width */
27
+ block?: boolean;
28
+ /** Add tags on blur */
29
+ addTagsOnBlur?: boolean;
30
+ /** The hint text to display below the input. */
31
+ hint?: string;
32
+ }
33
+ declare const _default: import('vue').DefineComponent<MazInputTagsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ "update:model-value": (value?: (string | number)[] | undefined) => any;
35
+ }, string, import('vue').PublicProps, Readonly<MazInputTagsProps> & Readonly<{
36
+ "onUpdate:model-value"?: ((value?: (string | number)[] | undefined) => any) | undefined;
37
+ }>, {
38
+ error: boolean;
39
+ success: boolean;
40
+ warning: boolean;
41
+ size: MazSize;
42
+ label: string;
43
+ style: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
44
+ class: HTMLAttributes["class"];
45
+ color: MazColor;
46
+ disabled: boolean;
47
+ placeholder: string;
48
+ modelValue: (string | number)[];
49
+ addTagsOnBlur: boolean;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, defineAsyncComponent, computed, withDirectives, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, renderSlot, Fragment, renderList, mergeProps, createVNode, unref } from "vue";
2
2
  import { d as directive } from "../chunks/lazy-img.directive.BLFnGqQa.js";
3
3
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
4
- import '../assets/MazLazyImg.NlPRN3Nk.css';const _hoisted_1 = ["data-lazy-srcset", "media"], _hoisted_2 = ["alt"], _hoisted_3 = {
4
+ import '../assets/MazLazyImg.DO7a4PDm.css';const _hoisted_1 = ["data-lazy-srcset", "media"], _hoisted_2 = ["alt"], _hoisted_3 = {
5
5
  key: 0,
6
6
  class: "m-lazy-img-component-loader"
7
7
  }, _sfc_main = /* @__PURE__ */ defineComponent({
@@ -56,7 +56,7 @@ import '../assets/MazLazyImg.NlPRN3Nk.css';const _hoisted_1 = ["data-lazy-srcset
56
56
  }]
57
57
  ]);
58
58
  }
59
- }), MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4f27ec0"]]);
59
+ }), MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e25b5767"]]);
60
60
  export {
61
61
  MazLazyImg as default
62
62
  };