maz-ui 3.49.2 → 3.50.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.
- package/README.md +123 -43
- package/components/MazAccordion.mjs +1 -1
- package/components/MazAnimatedCounter.d.ts +9 -1
- package/components/MazAnimatedCounter.mjs +82 -63
- package/components/MazAnimatedElement.d.ts +5 -0
- package/components/MazAnimatedElement.mjs +18 -19
- package/components/MazAnimatedText.d.ts +5 -0
- package/components/MazAnimatedText.mjs +57 -75
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.mjs +1 -1
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +20 -4
- package/components/MazCircularProgressBar.mjs +173 -130
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +1 -1
- package/components/MazFullscreenLoader.mjs +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.mjs +3 -3
- package/components/MazLoadingBar.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +1 -1
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +4 -4
- package/components/MazSpinner.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +1 -1
- package/components/MazTableRow.mjs +1 -1
- package/components/MazTableTitle.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContentItem.mjs +1 -1
- package/components/MazTextarea.mjs +1 -1
- package/components/MazTransitionExpand.mjs +1 -1
- package/components/assets/{MazAnimatedCounter.css → MazAnimatedCounter.DTzaNX_Y.css} +1 -1
- package/components/assets/{MazAnimatedElement.css → MazAnimatedElement.BkcmWrHr.css} +1 -1
- package/components/assets/MazAnimatedText.B91Kt1PP.css +1 -0
- package/components/assets/{MazCircularProgressBar.css → MazCircularProgressBar.Cq-jEps6.css} +1 -1
- package/components/assets/MazSelect.KhiI70iv.css +1 -0
- package/components/assets/{MazSlider.css → MazSlider.Dlk7nygF.css} +1 -1
- package/components/assets/MazTable.zJ2YXDrE.css +1 -0
- package/components/assets/{MazTableCell.css → MazTableCell.BKBZEOQb.css} +1 -1
- package/components/assets/MazTableCell.Bmbmz3CR.css +1 -0
- package/components/assets/MazTableRow.CEdLSgbg.css +1 -0
- package/components/assets/{MazTableRow.css → MazTableRow.CtZjgh-L.css} +1 -1
- package/components/chunks/{MazAvatar-CuOWgdVG.mjs → MazAvatar.CNx-fB-w.mjs} +2 -2
- package/components/chunks/{MazBadge-tPgFsG6Y.mjs → MazBadge.AdlIDWRs.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-CIXEEUpN.mjs → MazBottomSheet.CgosU2oQ.mjs} +2 -2
- package/components/chunks/MazBtn.1qp5aQ4N.mjs +103 -0
- package/components/chunks/{MazBtn-9Jk8ZkBq.mjs → MazBtn.B6UiTgcv.mjs} +3 -3
- package/components/chunks/MazBtn.BAflMoEe.mjs +103 -0
- package/components/chunks/MazBtn.BE40HJng.mjs +103 -0
- package/components/chunks/{MazBtn-Bdhu8JTk.mjs → MazBtn.BJh0vN8h.mjs} +3 -3
- package/components/chunks/{MazBtn-Ba8ff2Nu.mjs → MazBtn.BcPKpdoJ.mjs} +3 -3
- package/components/chunks/{MazBtn-CbTqLKv1.mjs → MazBtn.BsXkp99v.mjs} +3 -3
- package/components/chunks/MazBtn.C6vJDOgv.mjs +103 -0
- package/components/chunks/MazBtn.CJYzU-Jj.mjs +103 -0
- package/components/chunks/{MazBtn-BT4o0zLa.mjs → MazBtn.CQ7scMZT.mjs} +2 -2
- package/components/chunks/MazBtn.CtfRyE0d.mjs +103 -0
- package/components/chunks/MazBtn.DWNPohkh.mjs +103 -0
- package/components/chunks/MazBtn.NVrWAz8O.mjs +103 -0
- package/components/chunks/MazBtn.h5GSnFKe.mjs +103 -0
- package/components/chunks/{MazCard-CQBFy8r_.mjs → MazCard.D4R5VJTH.mjs} +2 -2
- package/components/chunks/{MazCarousel-Bcn7nKDo.mjs → MazCarousel.tT2IPWU9.mjs} +2 -2
- package/components/chunks/{MazCheckbox-Br41Nrq7.mjs → MazCheckbox.CYeDQcMp.mjs} +4 -4
- package/components/chunks/{MazCheckbox-B8Rnqa6O.mjs → MazCheckbox.L0nhQFjM.mjs} +3 -3
- package/components/chunks/{MazCheckbox-t4i9eR04.mjs → MazCheckbox.UAnkvAoS.mjs} +3 -3
- package/components/chunks/{MazChecklist-DLr57bfX.mjs → MazChecklist.CCPcVVKg.mjs} +4 -4
- package/components/chunks/{MazDialog-ak7mSNff.mjs → MazDialog.OnoOcvOM.mjs} +2 -2
- package/components/chunks/{MazDialogPromise-JvS9f5Of.mjs → MazDialogPromise.DslEyrLO.mjs} +3 -3
- package/components/chunks/{MazDrawer-CTsb4x_4.mjs → MazDrawer.D3JH9lqE.mjs} +2 -2
- package/components/chunks/{MazDropdown-BxMokXYe.mjs → MazDropdown.CDW3gyaa.mjs} +2 -2
- package/components/chunks/{MazDropzone-n0JE92da.mjs → MazDropzone.BWN0kCz3.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-B04WMwpW.mjs → MazExpandAnimation.NRqY0IYX.mjs} +2 -2
- package/components/chunks/{MazFullscreenLoader-XF8wIEcL.mjs → MazFullscreenLoader.Bynu3Kvu.mjs} +2 -2
- package/components/chunks/{MazGallery-C7Zp1iYc.mjs → MazGallery.2XDJQmg_.mjs} +5 -5
- package/components/chunks/{MazGallery-DdZ3bFvX.mjs → MazGallery.Ck0j45dq.mjs} +4 -4
- package/components/chunks/{MazIcon-DQXhsxp8.mjs → MazIcon.B5KEO0Na.mjs} +1 -1
- package/components/chunks/{MazIcon-mGVzj6Xw.mjs → MazIcon.B5hPzeLk.mjs} +1 -1
- package/components/chunks/MazIcon.BfRXZ8qh.mjs +4 -0
- package/components/chunks/{MazInput-C2_KlBtJ.mjs → MazInput.5Zn7f5zz.mjs} +3 -3
- package/components/chunks/{MazInput-BWHAOFtO.mjs → MazInput.CwPPyy_i.mjs} +4 -4
- package/components/chunks/{MazInput-BK2OXh6D.mjs → MazInput.JrNzZZLk.mjs} +2 -2
- package/components/chunks/{MazInputNumber-Bw6O0AGT.mjs → MazInputNumber.Daeit65q.mjs} +3 -3
- package/components/chunks/{MazInputPrice-BCM9ga_h.mjs → MazInputPrice.24GEm_Lg.mjs} +2 -2
- package/components/chunks/{MazInputTags-B0B93sN-.mjs → MazInputTags.0Z_xEZiL.mjs} +3 -3
- package/components/chunks/{MazLazyImg-D9mlGTCs.mjs → MazLazyImg.BtE4rUvl.mjs} +4 -4
- package/components/chunks/{MazLazyImg-DnJyLBjr.mjs → MazLazyImg.CC9acnrW.mjs} +3 -3
- package/components/chunks/{MazLink-PEtIzV5x.mjs → MazLink.C92ctqOA.mjs} +4 -4
- package/components/chunks/{MazLoadingBar-BjzRnYVR.mjs → MazLoadingBar.LkmX0AHd.mjs} +2 -2
- package/components/chunks/{MazPagination-DKseqKmF.mjs → MazPagination.DgR9Wyv0.mjs} +3 -3
- package/components/chunks/{MazPhoneNumberInput-CPm6LjfT.mjs → MazPhoneNumberInput.BcyaW-S8.mjs} +6 -6
- package/components/chunks/{MazPicker-BHBE1cC_.mjs → MazPicker.z_H1w2TI.mjs} +4 -4
- package/components/chunks/{MazPickerMonthSwitcher-CXfxTBNH.mjs → MazPickerMonthSwitcher.D42-_FwL.mjs} +3 -3
- package/components/chunks/{MazPickerShortcuts-BLuYu65Q.mjs → MazPickerShortcuts.D1UfHxwB.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CpSOH48Y.mjs → MazPickerYearSwitcher.BfS0Lz92.mjs} +3 -3
- package/components/chunks/{MazPullToRefresh-a1rT-zWr.mjs → MazPullToRefresh.QikB7FQT.mjs} +2 -2
- package/components/chunks/{MazSelect-CdSRiSW9.mjs → MazSelect.CZ8-FJbx.mjs} +5 -5
- package/components/chunks/{MazSelect-uHsahxjj.mjs → MazSelect.ke0PdTcU.mjs} +3 -3
- package/components/chunks/{MazSpinner-B_THFs0t.mjs → MazSpinner.B2KPFXAm.mjs} +2 -2
- package/components/chunks/MazSpinner.B4nEYwaU.mjs +34 -0
- package/components/chunks/{MazSpinner-BYlkcKf0.mjs → MazSpinner.B8L6EKV9.mjs} +2 -2
- package/components/chunks/MazSpinner.B9a2gCP3.mjs +34 -0
- package/components/chunks/MazSpinner.CBjYZ4KZ.mjs +34 -0
- package/components/chunks/MazSpinner.CPsKUg_o.mjs +34 -0
- package/components/chunks/MazSpinner.CXGURuw3.mjs +34 -0
- package/components/chunks/MazSpinner.C_i8HP1F.mjs +34 -0
- package/components/chunks/{MazSpinner-BEW98Fow.mjs → MazSpinner.Ce_9sxU7.mjs} +2 -2
- package/components/chunks/MazSpinner.CmN9GG-h.mjs +34 -0
- package/components/chunks/MazSpinner.D9YU6PN7.mjs +34 -0
- package/components/chunks/MazSpinner.DJGs9ccb.mjs +34 -0
- package/components/chunks/MazSpinner.DMR3wKqs.mjs +34 -0
- package/components/chunks/MazSpinner.DP7ZDo4s.mjs +34 -0
- package/components/chunks/MazSpinner.DZT5jj-c.mjs +34 -0
- package/components/chunks/MazSpinner.DaGCwMP7.mjs +34 -0
- package/components/chunks/MazSpinner.DdHpWoUe.mjs +34 -0
- package/components/chunks/MazSpinner.Dl1PcqAK.mjs +34 -0
- package/components/chunks/MazSpinner.DnMH7xjZ.mjs +34 -0
- package/components/chunks/{MazSpinner-B698e0ut.mjs → MazSpinner.DsiBNRdi.mjs} +2 -2
- package/components/chunks/MazSpinner.J9PGgQcA.mjs +34 -0
- package/components/chunks/{MazSpinner-B3mUm5mz.mjs → MazSpinner.KYBb2I3W.mjs} +2 -2
- package/components/chunks/MazSpinner.u38Xp-ls.mjs +34 -0
- package/components/chunks/MazSpinner.wdUeBhfS.mjs +34 -0
- package/components/chunks/{MazStepper-DtAqtJjn.mjs → MazStepper.Gxu3fyI5.mjs} +4 -4
- package/components/chunks/{MazTable-B5BMpCK1.mjs → MazTable.BtL5to1U.mjs} +41 -41
- package/components/chunks/{MazTableCell-7Ahz87mm.mjs → MazTableCell.CN6g3CD7.mjs} +3 -3
- package/components/chunks/{MazTableRow-B0JiP3mV.mjs → MazTableRow.BjoUmiPj.mjs} +3 -3
- package/components/chunks/{MazTableTitle-BdajfMLo.mjs → MazTableTitle.Dh-2buat.mjs} +3 -3
- package/components/chunks/{MazTabsBar-8wchBiYF.mjs → MazTabsBar.fmCbDhYh.mjs} +2 -2
- package/components/chunks/{MazTransitionExpand-BO_9-l3g.mjs → MazTransitionExpand.DL0tmQvU.mjs} +2 -2
- package/modules/chunks/MazBtn.By2sbdh8.cjs +1 -0
- package/{components/chunks/MazBtn-BHD7Xbr_.mjs → modules/chunks/MazBtn.CA5moYsw.mjs} +3 -3
- package/modules/chunks/{MazIcon-u9VBpDx8.cjs → MazIcon.B0hxYaF0.cjs} +1 -1
- package/modules/chunks/{MazIcon-CeCRHfan.mjs → MazIcon.DBGqW7oS.mjs} +1 -1
- package/modules/chunks/MazSpinner.Ci076Hb-.cjs +1 -0
- package/{components/chunks/MazSpinner-BqMt92KT.mjs → modules/chunks/MazSpinner.Cx7mdOJ3.mjs} +2 -2
- package/modules/chunks/index.CnuH12oV.cjs +124 -0
- package/modules/chunks/{index--62sMUK_.mjs → index.DfFhxzWz.mjs} +12 -12
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +6 -6
- package/types/components/MazAnimatedCounter.vue.d.ts +9 -1
- package/types/components/MazAnimatedElement.vue.d.ts +5 -0
- package/types/components/MazAnimatedText.vue.d.ts +5 -0
- package/types/components/MazCircularProgressBar.vue.d.ts +20 -4
- package/types/modules/helpers/index.d.ts +1 -1
- package/components/assets/MazAnimatedText.css +0 -1
- package/components/assets/MazTable.css +0 -1
- package/components/chunks/MazBtn-DAzJbcTl.mjs +0 -103
- package/components/chunks/MazBtn-DCGXwqRM.mjs +0 -103
- package/components/chunks/MazBtn-DGIjSCP2.mjs +0 -103
- package/components/chunks/MazBtn-DXinft-p.mjs +0 -103
- package/components/chunks/MazBtn-DnpSuILi.mjs +0 -103
- package/components/chunks/MazBtn-GYr50Ap4.mjs +0 -103
- package/components/chunks/MazBtn-IBh1tCot.mjs +0 -103
- package/components/chunks/MazBtn-UDAwHekF.mjs +0 -103
- package/components/chunks/MazIcon-C47uJeFY.mjs +0 -4
- package/components/chunks/MazSpinner-Bs8Z0Ewo.mjs +0 -34
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +0 -34
- package/components/chunks/MazSpinner-C2OD6LW3.mjs +0 -34
- package/components/chunks/MazSpinner-C3zQC9oz.mjs +0 -34
- package/components/chunks/MazSpinner-C5pIord0.mjs +0 -34
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +0 -34
- package/components/chunks/MazSpinner-C8KOYxzi.mjs +0 -34
- package/components/chunks/MazSpinner-C8zfJPRU.mjs +0 -34
- package/components/chunks/MazSpinner-C_uLffb-.mjs +0 -34
- package/components/chunks/MazSpinner-CodOqnm1.mjs +0 -34
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +0 -34
- package/components/chunks/MazSpinner-Cu7WoA4N.mjs +0 -34
- package/components/chunks/MazSpinner-CyqPQ7SW.mjs +0 -34
- package/components/chunks/MazSpinner-DV634NYb.mjs +0 -34
- package/components/chunks/MazSpinner-DW_14RuN.mjs +0 -34
- package/components/chunks/MazSpinner-DwQiUPTZ.mjs +0 -34
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +0 -34
- package/components/chunks/MazSpinner-zV6qnXaD.mjs +0 -34
- package/modules/chunks/MazBtn-CvuJewxV.mjs +0 -103
- package/modules/chunks/MazBtn-eZwyrxMU.cjs +0 -1
- package/modules/chunks/MazSpinner-BY5lnQ7u.cjs +0 -1
- package/modules/chunks/MazSpinner-DdDJ5vzJ.mjs +0 -34
- package/modules/chunks/index-Bq7zqUSE.cjs +0 -124
- /package/components/assets/{MazAccordion.css → MazAccordion.DHZxplwt.css} +0 -0
- /package/components/assets/{MazAvatar.css → MazAvatar.CgztJYCP.css} +0 -0
- /package/components/assets/{MazBackdrop.css → MazBackdrop.DPLKrrH6.css} +0 -0
- /package/components/assets/{MazBadge.css → MazBadge.CIY0hr5U.css} +0 -0
- /package/components/assets/{MazBottomSheet.css → MazBottomSheet.BaTeNHYH.css} +0 -0
- /package/components/assets/{MazBtn.css → MazBtn.DRGAvMws.css} +0 -0
- /package/components/assets/{MazCard.css → MazCard.BVy6g9-V.css} +0 -0
- /package/components/assets/{MazCardSpotlight.css → MazCardSpotlight.CrcVk5S1.css} +0 -0
- /package/components/assets/{MazCarousel.css → MazCarousel.Bo1M1Wh3.css} +0 -0
- /package/components/assets/{MazCheckbox.css → MazCheckbox.CA7GJd2c.css} +0 -0
- /package/components/assets/{MazChecklist.css → MazChecklist.B4K89N7e.css} +0 -0
- /package/components/assets/{MazDialog.css → MazDialog.BD4tQQQl.css} +0 -0
- /package/components/assets/{MazDialogPromise.css → MazDialogPromise.BD4tQQQl.css} +0 -0
- /package/components/assets/{MazDrawer.css → MazDrawer.BdI1nBQ8.css} +0 -0
- /package/components/assets/{MazDropdown.css → MazDropdown.CtzsOmDR.css} +0 -0
- /package/components/assets/{MazDropzone.css → MazDropzone.EfEdDH2u.css} +0 -0
- /package/components/assets/{MazExpandAnimation.css → MazExpandAnimation.iDSQfAB4.css} +0 -0
- /package/components/assets/{MazFullscreenLoader.css → MazFullscreenLoader.dL5SG0Ne.css} +0 -0
- /package/components/assets/{MazGallery.css → MazGallery.CKpPdxL0.css} +0 -0
- /package/components/assets/{MazInput.css → MazInput.BAiQiFTc.css} +0 -0
- /package/components/assets/{MazInputCode.css → MazInputCode.DF9-aY4y.css} +0 -0
- /package/components/assets/{MazInputNumber.css → MazInputNumber.fr4Y-AX1.css} +0 -0
- /package/components/assets/{MazInputPrice.css → MazInputPrice.BAiQiFTc.css} +0 -0
- /package/components/assets/{MazInputTags.css → MazInputTags.CZgq4l94.css} +0 -0
- /package/components/assets/{MazLazyImg.css → MazLazyImg.TL9A0G4-.css} +0 -0
- /package/components/assets/{MazLink.css → MazLink.BBYMGbI8.css} +0 -0
- /package/components/assets/{MazLoadingBar.css → MazLoadingBar.ByRp5OgY.css} +0 -0
- /package/components/assets/{MazPagination.css → MazPagination.BGhtdKHn.css} +0 -0
- /package/components/assets/{MazPhoneNumberInput.css → MazPhoneNumberInput.tFz9umj-.css} +0 -0
- /package/components/assets/{MazPicker.css → MazPicker.BlZ4a3b1.css} +0 -0
- /package/components/assets/{MazPickerMonthSwitcher.css → MazPickerMonthSwitcher.Bnp_FbY4.css} +0 -0
- /package/components/assets/{MazPickerShortcuts.css → MazPickerShortcuts.DxPdP3Ky.css} +0 -0
- /package/components/assets/{MazPickerYearSwitcher.css → MazPickerYearSwitcher.BTPNT2u1.css} +0 -0
- /package/components/assets/{MazPullToRefresh.css → MazPullToRefresh.Bvm1bmiW.css} +0 -0
- /package/components/assets/{MazRadio.css → MazRadio.El2ThGGg.css} +0 -0
- /package/components/assets/{MazRadioButtons.css → MazRadioButtons.CB6qMCtm.css} +0 -0
- /package/components/assets/{MazReadingProgressBar.css → MazReadingProgressBar.C4x7V-Bc.css} +0 -0
- /package/components/assets/{MazSelect.css → MazSelect.DNrj4_e-.css} +0 -0
- /package/components/assets/{MazSpinner.css → MazSpinner.DQ9_cbMH.css} +0 -0
- /package/components/assets/{MazStepper.css → MazStepper.BbJJgs0b.css} +0 -0
- /package/components/assets/{MazSwitch.css → MazSwitch.DMLND-p2.css} +0 -0
- /package/components/assets/{MazTableTitle.css → MazTableTitle.DCRVBhuH.css} +0 -0
- /package/components/assets/{MazTabsBar.css → MazTabsBar.yIJ7lCu6.css} +0 -0
- /package/components/assets/{MazTabsContentItem.css → MazTabsContentItem.CIoBhqeU.css} +0 -0
- /package/components/assets/{MazTextarea.css → MazTextarea.BYPQCeL_.css} +0 -0
- /package/components/assets/{MazTransitionExpand.css → MazTransitionExpand.CvCjUYCg.css} +0 -0
- /package/components/chunks/{MazIcon-Cq1v4J3r.mjs → MazIcon.Cq1v4J3r.mjs} +0 -0
- /package/components/chunks/{_plugin-vue_export-helper-CHgC5LLL.mjs → _plugin-vue_export-helper.CHgC5LLL.mjs} +0 -0
- /package/components/chunks/{arrow-top-right-on-square-jPmYJ34F.mjs → arrow-top-right-on-square.jPmYJ34F.mjs} +0 -0
- /package/components/chunks/{arrow-up-DjSlktWl.mjs → arrow-up.DjSlktWl.mjs} +0 -0
- /package/components/chunks/{check-circle-Bf7AGSQ-.mjs → check-circle.Bf7AGSQ-.mjs} +0 -0
- /package/components/chunks/{check-BmubdHc_.mjs → check.BmubdHc_.mjs} +0 -0
- /package/components/chunks/{check-C9Q_W85g.mjs → check.C9Q_W85g.mjs} +0 -0
- /package/components/chunks/{chevron-double-left-D4-NpyrF.mjs → chevron-double-left.D4-NpyrF.mjs} +0 -0
- /package/components/chunks/{chevron-down-BkvtON3b.mjs → chevron-down.BkvtON3b.mjs} +0 -0
- /package/components/chunks/{chevron-left-BqVOLRdC.mjs → chevron-left.BqVOLRdC.mjs} +0 -0
- /package/components/chunks/{chevron-right-CbjzEeHV.mjs → chevron-right.CbjzEeHV.mjs} +0 -0
- /package/components/chunks/{ellipsis-horizontal-6n158ATI.mjs → ellipsis-horizontal.6n158ATI.mjs} +0 -0
- /package/components/chunks/{examples.mobile.json-tW3aL0qI.mjs → examples.mobile.json.tW3aL0qI.mjs} +0 -0
- /package/components/chunks/{exclamation-circle-CUk0ZajS.mjs → exclamation-circle.CUk0ZajS.mjs} +0 -0
- /package/components/chunks/{exclamation-triangle-Z6d0ygp8.mjs → exclamation-triangle.Z6d0ygp8.mjs} +0 -0
- /package/components/chunks/{eye-slash-BoO00xzs.mjs → eye-slash.BoO00xzs.mjs} +0 -0
- /package/components/chunks/{eye-f8zAUc30.mjs → eye.f8zAUc30.mjs} +0 -0
- /package/components/chunks/{inject-strict-DEDSuzCz.mjs → inject-strict.DEDSuzCz.mjs} +0 -0
- /package/components/chunks/{magnifying-glass--nBiyXot.mjs → magnifying-glass.-nBiyXot.mjs} +0 -0
- /package/components/chunks/{no-photography-BJX8HSus.mjs → no-photography.BJX8HSus.mjs} +0 -0
- /package/components/chunks/{no-photography-PGT8fxs_.mjs → no-photography.PGT8fxs_.mjs} +0 -0
- /package/components/chunks/{no-symbol-CIgKzsrB.mjs → no-symbol.CIgKzsrB.mjs} +0 -0
- /package/components/chunks/{pencil-Z-mPplOz.mjs → pencil.Z-mPplOz.mjs} +0 -0
- /package/components/chunks/{useInstanceUniqId-BkOfxhk8.mjs → useInstanceUniqId.BkOfxhk8.mjs} +0 -0
- /package/components/chunks/{x-mark-CnZwVvA7.mjs → x-mark.CnZwVvA7.mjs} +0 -0
- /package/components/chunks/{x-mark-wyoa-ywi.mjs → x-mark.wyoa-ywi.mjs} +0 -0
- /package/modules/assets/{MazBtn.css → MazBtn.DRGAvMws.css} +0 -0
- /package/modules/assets/{MazSpinner.css → MazSpinner.DQ9_cbMH.css} +0 -0
- /package/modules/assets/{index.css → index.B3s7AfaL.css} +0 -0
- /package/modules/chunks/{arrow-top-right-on-square-PZtr8Zs0.cjs → arrow-top-right-on-square.PZtr8Zs0.cjs} +0 -0
- /package/modules/chunks/{arrow-top-right-on-square-jPmYJ34F.mjs → arrow-top-right-on-square.jPmYJ34F.mjs} +0 -0
- /package/modules/chunks/{check-circle-Bf7AGSQ-.mjs → check-circle.Bf7AGSQ-.mjs} +0 -0
- /package/modules/chunks/{check-circle-D3i-p-t3.cjs → check-circle.D3i-p-t3.cjs} +0 -0
- /package/modules/chunks/{chevron-left-BqVOLRdC.mjs → chevron-left.BqVOLRdC.mjs} +0 -0
- /package/modules/chunks/{chevron-left-Byr9GkwI.cjs → chevron-left.Byr9GkwI.cjs} +0 -0
- /package/modules/chunks/{exclamation-circle-BXs0Yj0f.cjs → exclamation-circle.BXs0Yj0f.cjs} +0 -0
- /package/modules/chunks/{exclamation-circle-CUk0ZajS.mjs → exclamation-circle.CUk0ZajS.mjs} +0 -0
- /package/modules/chunks/{exclamation-triangle-BtW3be9S.cjs → exclamation-triangle.BtW3be9S.cjs} +0 -0
- /package/modules/chunks/{exclamation-triangle-Z6d0ygp8.mjs → exclamation-triangle.Z6d0ygp8.mjs} +0 -0
- /package/modules/chunks/{index-BgyjI1q8.mjs → index.BgyjI1q8.mjs} +0 -0
- /package/modules/chunks/{index-CXVZhyjw.cjs → index.CXVZhyjw.cjs} +0 -0
- /package/modules/chunks/{information-circle-89FseEuJ.cjs → information-circle.89FseEuJ.cjs} +0 -0
- /package/modules/chunks/{information-circle-C7e5b_nL.mjs → information-circle.C7e5b_nL.mjs} +0 -0
- /package/modules/chunks/{link-Br1lfjTR.mjs → link.Br1lfjTR.mjs} +0 -0
- /package/modules/chunks/{link-CUxj8BQ5.cjs → link.CUxj8BQ5.cjs} +0 -0
- /package/modules/chunks/{no-photography-BJX8HSus.mjs → no-photography.BJX8HSus.mjs} +0 -0
- /package/modules/chunks/{no-photography-CLNgmzDi.cjs → no-photography.CLNgmzDi.cjs} +0 -0
- /package/modules/chunks/{x-mark-CnZwVvA7.mjs → x-mark.CnZwVvA7.mjs} +0 -0
- /package/modules/chunks/{x-mark-DW2WXkoF.cjs → x-mark.DW2WXkoF.cjs} +0 -0
- /package/types/modules/helpers/{check-availability.d.ts → checkAvailability.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,71 +1,151 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://maz-ui.com/img/logo.svg" alt="Maz UI Logo" width="100">
|
|
3
|
+
|
|
4
|
+
<h1>Maz UI</h1>
|
|
5
|
+
<p>
|
|
6
|
+
<strong>
|
|
7
|
+
Lightweight and efficient library for Vue 3 & Nuxt 3
|
|
8
|
+
</strong>
|
|
9
|
+
</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://vuejs.org"><img src="https://img.shields.io/badge/vue-3-42b983.svg" alt="vue 3"></a>
|
|
14
|
+
<a href="https://v3.nuxtjs.org"><img src="https://img.shields.io/badge/nuxt-3-42b983.svg" alt="nuxt 3"></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/maz-ui"><img src="https://img.shields.io/npm/v/maz-ui/latest.svg" alt="npm"></a>
|
|
16
|
+
<a href="https://www.npmjs.com/package/maz-ui"><img src="https://badgen.net/npm/types/maz-ui" alt="types"></a>
|
|
17
|
+
<a href="https://npm-stat.com/charts.html?package=maz-ui"><img src="https://badgen.net/npm/dm/maz-ui" alt="Downloads"></a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="https://codeclimate.com/github/LouisMazel/maz-ui/maintainability"><img src="https://api.codeclimate.com/v1/badges/6b27047dcf150ccddfac/maintainability" alt="maintainability"></a>
|
|
22
|
+
<a href="https://codeclimate.com/github/LouisMazel/maz-ui/test_coverage"><img src="https://api.codeclimate.com/v1/badges/6b27047dcf150ccddfac/test_coverage" alt="test coverage"></a>
|
|
23
|
+
<img src="https://github.com/LouisMazel/maz-ui/actions/workflows/lib-test-unit.yml/badge.svg" alt="github actions test unit">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
<h3 align="center">
|
|
27
|
+
<a href="https://maz-ui.com">Documentation</a>
|
|
28
|
+
<span> · </span>
|
|
29
|
+
<a href="https://maz-ui.com/guide/getting-started">Getting Started</a>
|
|
30
|
+
<span> · </span>
|
|
31
|
+
<a href="https://maz-ui.com/made-with-maz-ui">Showcase</a>
|
|
32
|
+
</h3>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<picture>
|
|
36
|
+
<source media="(prefers-color-scheme: dark)" srcset="./resources/dashboard-dark.png">
|
|
37
|
+
<img src="./resources/dashboard-light.png" alt="Maz UI Demo Dashboard" width="100%" style="border-radius: 1rem;">
|
|
38
|
+
</picture>
|
|
39
|
+
<br>
|
|
40
|
+
<sub><i>Example of a dashboard built with Maz UI components</i></sub>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
## ✨ Features
|
|
44
|
+
|
|
45
|
+
- 🎯 **Cherry-pick components** - Use only what you need
|
|
46
|
+
- 🌙 **Dark mode** - Built-in dark mode support
|
|
47
|
+
- 🎨 **Themeable** - Easy to customize with CSS variables
|
|
48
|
+
- 📱 **Responsive** - Mobile-first design approach
|
|
49
|
+
- 🔧 **TypeScript** - Full type support included
|
|
50
|
+
- ⚡️ **Lightweight** - Tree-shakeable, no bloat
|
|
51
|
+
- 🔍 **SSR** - Server-side rendering ready
|
|
52
|
+
|
|
53
|
+
## 🚀 Quick Start
|
|
2
54
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
7
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
8
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
9
|
-
[](https://npm-stat.com/charts.html?package=maz-ui)
|
|
10
|
-
|
|
11
|
-
<!-- [](https://bundlephobia.com/package/maz-ui)
|
|
12
|
-
[](https://bundlephobia.com/package/maz-ui)
|
|
13
|
-
[](https://bundlephobia.com/package/maz-ui)
|
|
14
|
-
[](https://bundlephobia.com/package/maz-ui) -->
|
|
55
|
+
```bash
|
|
56
|
+
npm install maz-ui
|
|
57
|
+
```
|
|
15
58
|
|
|
16
|
-
|
|
17
|
-
[](https://codeclimate.com/github/LouisMazel/maz-ui/test_coverage)
|
|
18
|
-

|
|
59
|
+
### Vue 3
|
|
19
60
|
|
|
20
|
-
|
|
61
|
+
```ts
|
|
62
|
+
// main.ts
|
|
63
|
+
import 'maz-ui/styles'
|
|
64
|
+
```
|
|
21
65
|
|
|
22
|
-
|
|
66
|
+
#### 💡 Usage
|
|
23
67
|
|
|
24
|
-
|
|
68
|
+
Then, import and use only the components, composables, and more you need:
|
|
25
69
|
|
|
26
|
-
|
|
70
|
+
```vue
|
|
71
|
+
<template>
|
|
72
|
+
<MazBtn>Click me!</MazBtn>
|
|
73
|
+
</template>
|
|
27
74
|
|
|
28
|
-
|
|
75
|
+
<script setup lang="ts">
|
|
76
|
+
import MazBtn from 'maz-ui/components/MazBtn'
|
|
77
|
+
</script>
|
|
78
|
+
```
|
|
29
79
|
|
|
30
|
-
[
|
|
80
|
+
Use provided resolvers to enjoy auto-imports and TypeScript support: [Resolvers documentation](https://maz-ui.com/guide/getting-started#recommendations)
|
|
31
81
|
|
|
32
|
-
|
|
33
|
-
npm install maz-ui
|
|
34
|
-
```
|
|
82
|
+
### Nuxt 3
|
|
35
83
|
|
|
36
|
-
|
|
84
|
+
The Nuxt module automatically:
|
|
37
85
|
|
|
38
|
-
|
|
86
|
+
- Imports all components, plugins, composables and directives on-demand (auto-imports)
|
|
87
|
+
- Includes required styles
|
|
88
|
+
- Provides TypeScript support out of the box
|
|
39
89
|
|
|
40
|
-
|
|
41
|
-
npm install maz-ui
|
|
42
|
-
```
|
|
90
|
+
[See options and more in the documentation](https://maz-ui.com/guide/nuxt)
|
|
43
91
|
|
|
44
92
|
```ts
|
|
45
|
-
// nuxt.config.
|
|
46
|
-
|
|
93
|
+
// nuxt.config.ts
|
|
47
94
|
export default defineNuxtConfig({
|
|
48
95
|
modules: ['maz-ui/nuxt'],
|
|
49
|
-
mazUi: {
|
|
50
|
-
// Options
|
|
51
|
-
},
|
|
52
96
|
})
|
|
53
97
|
```
|
|
54
98
|
|
|
55
|
-
|
|
99
|
+
#### 💡 Usage
|
|
56
100
|
|
|
57
|
-
|
|
101
|
+
No need to import components, plugins, composables or directives, they are all auto-imported.
|
|
58
102
|
|
|
59
|
-
|
|
103
|
+
```vue
|
|
104
|
+
<template>
|
|
105
|
+
<MazBtn @click="toast.success('Hello Maz UI!')"> Click me! </MazBtn>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<script setup lang="ts">
|
|
109
|
+
const toast = useToast()
|
|
110
|
+
</script>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## 🎨 Theming Made Easy
|
|
114
|
+
|
|
115
|
+
Customize Maz UI to match your brand with our dedicated CLI tool:
|
|
60
116
|
|
|
61
117
|
```bash
|
|
62
|
-
|
|
118
|
+
# Install the CLI
|
|
119
|
+
npm install -g @mazui/cli
|
|
120
|
+
|
|
121
|
+
# Generate your theme
|
|
122
|
+
maz generate-css-vars
|
|
63
123
|
```
|
|
64
124
|
|
|
65
|
-
|
|
125
|
+
The CLI will automatically:
|
|
126
|
+
|
|
127
|
+
- Generate all color variations
|
|
128
|
+
- Create dark mode variables
|
|
129
|
+
- Output a ready-to-use CSS file
|
|
130
|
+
|
|
131
|
+
To know how configure the CLI, check [theming options](https://maz-ui.com/guide/theme) in our documentation.
|
|
132
|
+
|
|
133
|
+
## 🧰 What's included?
|
|
134
|
+
|
|
135
|
+
- 🧩 [Components](https://maz-ui.com/components/maz-btn) - Beautiful, accessible UI components
|
|
136
|
+
- 🔌 [Plugins](https://maz-ui.com/plugins/dialog) - Powerful plugins for common use cases
|
|
137
|
+
- 🎣 [Composables](https://maz-ui.com/composables/use-form-validator) - Reusable composition functions
|
|
138
|
+
- 📏 [Directives](https://maz-ui.com/directives/fullscreen-img) - Useful Vue directives
|
|
139
|
+
- 🛠️ [Helpers](https://maz-ui.com/helpers/currency) - Useful utilities for common tasks
|
|
140
|
+
|
|
141
|
+
## 🤝 Contributing
|
|
142
|
+
|
|
143
|
+
We're always looking for contributors! Check out our [contribution guide](./CONTRIBUTING.md) to get started.
|
|
66
144
|
|
|
67
|
-
|
|
145
|
+
## 📄 License
|
|
68
146
|
|
|
69
|
-
|
|
147
|
+
[MIT](./LICENSE)
|
|
70
148
|
|
|
71
|
-
|
|
149
|
+
<div align="center">
|
|
150
|
+
<sub>Built with ❤️ by <a href="https://github.com/LouisMazel">Louis Mazel</a></sub>
|
|
151
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as p, createElementBlock as g, createElementVNode as u, computed as $, useId as V, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as b, normalizeStyle as k, renderSlot as h, withDirectives as E, vShow as z, mergeModels as A, useModel as x, mergeProps as I, useSlots as L, Fragment as j, renderList as F, createBlock as N, withCtx as M, unref as y, createVNode as S } from "vue";
|
|
2
|
-
import './assets/MazAccordion.css';const R = {
|
|
2
|
+
import './assets/MazAccordion.DHZxplwt.css';const R = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
5
5
|
height: "1em",
|
|
@@ -21,6 +21,11 @@ type __VLS_Props = {
|
|
|
21
21
|
* @default 100
|
|
22
22
|
*/
|
|
23
23
|
delay?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Play the animation only once
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
once?: boolean;
|
|
24
29
|
};
|
|
25
30
|
declare function __VLS_template(): {
|
|
26
31
|
attrs: Partial<{}>;
|
|
@@ -30,13 +35,16 @@ declare function __VLS_template(): {
|
|
|
30
35
|
suffix?(_: {}): any;
|
|
31
36
|
suffix?(_: {}): any;
|
|
32
37
|
};
|
|
33
|
-
refs: {
|
|
38
|
+
refs: {
|
|
39
|
+
elementRef: HTMLSpanElement;
|
|
40
|
+
};
|
|
34
41
|
rootEl: HTMLSpanElement;
|
|
35
42
|
};
|
|
36
43
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
44
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
38
45
|
delay: number;
|
|
39
46
|
duration: number;
|
|
47
|
+
once: boolean;
|
|
40
48
|
prefix: string;
|
|
41
49
|
suffix: string;
|
|
42
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -1,94 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazAnimatedCounter.css';function
|
|
1
|
+
import { defineComponent as q, ref as y, onMounted as B, onBeforeUnmount as C, watch as T, openBlock as V, createElementBlock as $, createElementVNode as z, renderSlot as f, createTextVNode as u, toDisplayString as s } from "vue";
|
|
2
|
+
import './assets/MazAnimatedCounter.DTzaNX_Y.css';function A() {
|
|
3
3
|
return typeof document < "u";
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const F = { class: "maz-sr-only" }, I = /* @__PURE__ */ q({
|
|
6
6
|
__name: "MazAnimatedCounter",
|
|
7
7
|
props: {
|
|
8
8
|
count: {},
|
|
9
9
|
duration: { default: 1e3 },
|
|
10
10
|
prefix: { default: void 0 },
|
|
11
11
|
suffix: { default: void 0 },
|
|
12
|
-
delay: { default: 100 }
|
|
12
|
+
delay: { default: 100 },
|
|
13
|
+
once: { type: Boolean, default: !0 }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
setup(i) {
|
|
16
|
+
const t = i, r = y(0), a = y(null);
|
|
17
|
+
function c() {
|
|
18
|
+
return !A() || !window.requestAnimationFrame ? (e) => (setTimeout(e, 1e3 / 60), 0) : window.requestAnimationFrame.bind(window);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
22
|
-
|
|
20
|
+
function g(e, o, d, _) {
|
|
21
|
+
const m = c();
|
|
22
|
+
if (!A()) {
|
|
23
|
+
r.value = o;
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
e + (
|
|
30
|
-
),
|
|
26
|
+
r.value = e, setTimeout(() => {
|
|
27
|
+
const h = performance.now(), p = (x = performance.now()) => {
|
|
28
|
+
const M = x - h, v = Math.min(M / d, 1), k = (w) => w * (2 - w);
|
|
29
|
+
r.value = Math.round(
|
|
30
|
+
e + (o - e) * k(v)
|
|
31
|
+
), v < 1 && m(p);
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
-
},
|
|
33
|
+
m(p);
|
|
34
|
+
}, _);
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
function l(e, o) {
|
|
37
|
+
g(e, o, t.duration, t.delay);
|
|
38
|
+
}
|
|
39
|
+
let n = null;
|
|
40
|
+
return B(() => {
|
|
41
|
+
t.once || (n = new IntersectionObserver(([e]) => {
|
|
42
|
+
e.isIntersecting && (l(0, t.count), t.once && (n == null || n.unobserve(e.target)));
|
|
43
|
+
}), a.value && n.observe(a.value));
|
|
44
|
+
}), C(() => n == null ? void 0 : n.disconnect()), T(
|
|
45
|
+
() => t.count,
|
|
46
|
+
(e, o) => {
|
|
47
|
+
if (e === o)
|
|
39
48
|
return;
|
|
40
|
-
|
|
49
|
+
l(o ?? 0, e);
|
|
41
50
|
},
|
|
42
51
|
{ immediate: !0 }
|
|
43
|
-
), (e,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
), (e, o) => (V(), $(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
ref_key: "elementRef",
|
|
56
|
+
ref: a,
|
|
57
|
+
class: "m-animated-counter m-reset-css"
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
z("span", F, [
|
|
61
|
+
f(e.$slots, "prefix", {}, () => [
|
|
62
|
+
u(
|
|
63
|
+
s(e.prefix),
|
|
64
|
+
1
|
|
65
|
+
/* TEXT */
|
|
66
|
+
)
|
|
67
|
+
], !0),
|
|
68
|
+
u(
|
|
69
|
+
s(e.count),
|
|
70
|
+
1
|
|
71
|
+
/* TEXT */
|
|
72
|
+
),
|
|
73
|
+
f(e.$slots, "suffix", {}, () => [
|
|
74
|
+
u(
|
|
75
|
+
s(e.suffix),
|
|
76
|
+
1
|
|
77
|
+
/* TEXT */
|
|
78
|
+
)
|
|
79
|
+
], !0)
|
|
80
|
+
]),
|
|
81
|
+
f(e.$slots, "prefix", {}, () => [
|
|
82
|
+
u(
|
|
83
|
+
s(e.prefix),
|
|
48
84
|
1
|
|
49
85
|
/* TEXT */
|
|
50
86
|
)
|
|
51
87
|
], !0),
|
|
52
|
-
|
|
53
|
-
r
|
|
88
|
+
u(
|
|
89
|
+
s(r.value),
|
|
54
90
|
1
|
|
55
91
|
/* TEXT */
|
|
56
92
|
),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
f(e.$slots, "suffix", {}, () => [
|
|
94
|
+
u(
|
|
95
|
+
s(e.suffix),
|
|
60
96
|
1
|
|
61
97
|
/* TEXT */
|
|
62
98
|
)
|
|
63
99
|
], !0)
|
|
64
|
-
]
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
1
|
|
69
|
-
/* TEXT */
|
|
70
|
-
)
|
|
71
|
-
], !0),
|
|
72
|
-
o(
|
|
73
|
-
r(t.value),
|
|
74
|
-
1
|
|
75
|
-
/* TEXT */
|
|
76
|
-
),
|
|
77
|
-
u(e.$slots, "suffix", {}, () => [
|
|
78
|
-
o(
|
|
79
|
-
r(e.suffix),
|
|
80
|
-
1
|
|
81
|
-
/* TEXT */
|
|
82
|
-
)
|
|
83
|
-
], !0)
|
|
84
|
-
]));
|
|
100
|
+
],
|
|
101
|
+
512
|
|
102
|
+
/* NEED_PATCH */
|
|
103
|
+
));
|
|
85
104
|
}
|
|
86
|
-
}),
|
|
87
|
-
const
|
|
88
|
-
for (const [
|
|
89
|
-
|
|
90
|
-
return
|
|
91
|
-
},
|
|
105
|
+
}), O = (i, t) => {
|
|
106
|
+
const r = i.__vccOpts || i;
|
|
107
|
+
for (const [a, c] of t)
|
|
108
|
+
r[a] = c;
|
|
109
|
+
return r;
|
|
110
|
+
}, E = /* @__PURE__ */ O(I, [["__scopeId", "data-v-fc76f127"]]);
|
|
92
111
|
export {
|
|
93
|
-
|
|
112
|
+
E as default
|
|
94
113
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazAnimatedElement.css';const v = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as i, computed as l, ref as o, onMounted as d, onBeforeUnmount as r, openBlock as c, createElementBlock as m, normalizeStyle as u, renderSlot as f } from "vue";
|
|
2
|
+
import './assets/MazAnimatedElement.BkcmWrHr.css';const v = /* @__PURE__ */ i({
|
|
3
3
|
__name: "MazAnimatedElement",
|
|
4
4
|
props: {
|
|
5
5
|
direction: { default: "up" },
|
|
6
6
|
delay: { default: 0 },
|
|
7
|
-
duration: { default: 2e3 }
|
|
7
|
+
duration: { default: 2e3 },
|
|
8
|
+
once: { type: Boolean, default: !0 }
|
|
8
9
|
},
|
|
9
10
|
setup(a) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
t.value && e.observe(t.value);
|
|
18
|
-
}), (e, n) => (d(), m(
|
|
11
|
+
const s = l(() => `animate-slide-${a.direction}-blur`), n = o();
|
|
12
|
+
let t = null;
|
|
13
|
+
return d(() => {
|
|
14
|
+
t = new IntersectionObserver(([e]) => {
|
|
15
|
+
e.isIntersecting ? (e.target.classList.remove("--invisible"), e.target.classList.add(s.value), a.once === !0 && (t == null || t.unobserve(e.target))) : a.once === !1 && (e.target.classList.add("--invisible"), e.target.classList.remove(s.value));
|
|
16
|
+
}), n.value && t.observe(n.value);
|
|
17
|
+
}), r(() => t == null ? void 0 : t.disconnect()), (e, g) => (c(), m(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
20
|
ref_key: "element",
|
|
22
|
-
ref:
|
|
21
|
+
ref: n,
|
|
23
22
|
class: "m-animated-element m-reset-css --invisible",
|
|
24
23
|
style: u({
|
|
25
24
|
animationDuration: `${e.duration}ms`,
|
|
@@ -33,12 +32,12 @@ import './assets/MazAnimatedElement.css';const v = /* @__PURE__ */ r({
|
|
|
33
32
|
/* STYLE */
|
|
34
33
|
));
|
|
35
34
|
}
|
|
36
|
-
}), p = (a,
|
|
37
|
-
const
|
|
38
|
-
for (const [
|
|
39
|
-
t
|
|
40
|
-
return
|
|
41
|
-
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-
|
|
35
|
+
}), p = (a, s) => {
|
|
36
|
+
const n = a.__vccOpts || a;
|
|
37
|
+
for (const [t, e] of s)
|
|
38
|
+
n[t] = e;
|
|
39
|
+
return n;
|
|
40
|
+
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-d3a853a6"]]);
|
|
42
41
|
export {
|
|
43
42
|
b as default
|
|
44
43
|
};
|
|
@@ -45,6 +45,11 @@ interface MazAnimatedTextProps {
|
|
|
45
45
|
* @default 2000
|
|
46
46
|
*/
|
|
47
47
|
duration?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Play the animation only once
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
once?: boolean;
|
|
48
53
|
}
|
|
49
54
|
declare const _default: import("vue").DefineComponent<MazAnimatedTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MazAnimatedTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
55
|
export default _default;
|