maz-ui 3.18.2 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +3 -2
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +5 -4
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazPhoneNumberInput/{constantes/locales.d.ts → default-locales.d.ts} +1 -2
- package/components/MazPhoneNumberInput/types.d.ts +40 -2
- package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +32 -0
- package/components/MazPhoneNumberInput.d.ts +65 -14
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/utils.d.ts +1 -4
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadioButtons.mjs +2 -1
- package/components/MazSelect.d.ts +2 -0
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +2 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +2 -1
- package/components/MazTabs.mjs +2 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContentItem.mjs +1 -1
- package/components/MazTextarea.mjs +2 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/{MazAvatar-68e2d653.mjs → MazAvatar-abb04cbe.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-1fd128d5.mjs → MazBottomSheet-b78adb87.mjs} +3 -2
- package/components/chunks/{MazBtn-ebaa1574.mjs → MazBtn-000f9f66.mjs} +3 -3
- package/components/chunks/{MazBtn-80a95ca3.mjs → MazBtn-02b39f75.mjs} +4 -4
- package/components/chunks/{MazBtn-7963cdc8.mjs → MazBtn-18894690.mjs} +4 -4
- package/components/chunks/{MazBtn-83e85ae7.mjs → MazBtn-21743551.mjs} +4 -4
- package/components/chunks/{MazBtn-740fa3f9.mjs → MazBtn-2703c9bd.mjs} +2 -2
- package/components/chunks/{MazBtn-113db7ce.mjs → MazBtn-54c47489.mjs} +4 -4
- package/components/chunks/{MazBtn-8b76a9b9.mjs → MazBtn-57cb16a1.mjs} +4 -4
- package/components/chunks/{MazBtn-aed16fa9.mjs → MazBtn-5a37bfef.mjs} +4 -4
- package/components/chunks/{MazBtn-9449d9aa.mjs → MazBtn-67e1fe7b.mjs} +4 -4
- package/components/chunks/MazBtn-6e16fbca.mjs +184 -0
- package/components/chunks/{MazBtn-360120f0.mjs → MazBtn-9333e80f.mjs} +4 -4
- package/components/chunks/{MazBtn-cd553cc1.mjs → MazBtn-9d312f09.mjs} +4 -4
- package/components/chunks/MazBtn-a776eb42.mjs +184 -0
- package/components/chunks/{MazBtn-875045b0.mjs → MazBtn-b645511d.mjs} +4 -4
- package/components/chunks/{MazBtn-9e23a622.mjs → MazBtn-bf133cbc.mjs} +4 -4
- package/components/chunks/{MazCard-f0b1207f.mjs → MazCard-d9369776.mjs} +4 -4
- package/components/chunks/{MazCarousel-e6c83219.mjs → MazCarousel-06ca7c0b.mjs} +2 -2
- package/components/chunks/{MazDialog-5c53a6d7.mjs → MazDialog-d5f6a7d8.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-e0a178ee.mjs → MazDialogPromise-23cb2e40.mjs} +2 -2
- package/components/chunks/{MazDrawer-682859a4.mjs → MazDrawer-7d6428cf.mjs} +1 -1
- package/components/chunks/{MazGallery-345cb883.mjs → MazGallery-c80e96f6.mjs} +2 -2
- package/{modules/chunks/MazIcon-1567cfaf.mjs → components/chunks/MazIcon-81176bfa.mjs} +4 -3
- package/components/chunks/{MazIcon-146f73d3.mjs → MazIcon-bda198b4.mjs} +3 -2
- package/components/chunks/{MazInput-c67999b0.mjs → MazInput-129c8695.mjs} +2 -2
- package/components/chunks/{MazInput-0424a850.mjs → MazInput-2a43e4a6.mjs} +3 -3
- package/components/chunks/{MazInput-3021f55e.mjs → MazInput-4a02a10a.mjs} +3 -3
- package/components/chunks/{MazInput-4b908386.mjs → MazInput-8e284503.mjs} +2 -2
- package/components/chunks/{MazInputPrice-50e3ea5d.mjs → MazInputPrice-e88dec74.mjs} +4 -3
- package/components/chunks/{MazInputTags-801c15dc.mjs → MazInputTags-872a6fae.mjs} +5 -4
- package/components/chunks/{MazLazyImg-a206909b.mjs → MazLazyImg-478c8d2b.mjs} +2 -2
- package/components/chunks/{MazLazyImg-13052d11.mjs → MazLazyImg-63de45ce.mjs} +1 -1
- package/components/chunks/MazPhoneNumberInput-458455bb.mjs +651 -0
- package/components/chunks/{MazPicker-25765233.mjs → MazPicker-6fc29a1c.mjs} +22 -26
- package/components/chunks/{MazPickerCalendar-1547bd78.mjs → MazPickerCalendar-6271c78d.mjs} +29 -24
- package/components/chunks/{MazPickerHeader-04d6a61f.mjs → MazPickerHeader-4f70f191.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-791ebc99.mjs → MazPickerMonthSwitcher-674ce015.mjs} +4 -3
- package/components/chunks/{MazPickerShortcuts-4bdeae6a.mjs → MazPickerShortcuts-2242854f.mjs} +4 -3
- package/components/chunks/{MazPickerTime-0ca05476.mjs → MazPickerTime-bb97786b.mjs} +4 -3
- package/components/chunks/{MazPickerYearSwitcher-a338777f.mjs → MazPickerYearSwitcher-47e5444b.mjs} +5 -4
- package/components/chunks/{MazSelect-d3d81ae8.mjs → MazSelect-2e7271f3.mjs} +55 -19
- package/components/chunks/{MazSelect-c03eaaf8.mjs → MazSelect-41a971ea.mjs} +55 -19
- package/components/chunks/{MazSpinner-559fb831.mjs → MazSpinner-232086b5.mjs} +1 -1
- package/components/chunks/{MazSpinner-c4d67909.mjs → MazSpinner-25ddb933.mjs} +1 -1
- package/components/chunks/{MazSpinner-5be09a6a.mjs → MazSpinner-2cbf1c0a.mjs} +1 -1
- package/components/chunks/{MazSpinner-450e5795.mjs → MazSpinner-2fac70be.mjs} +1 -1
- package/components/chunks/{MazSpinner-07d6be3a.mjs → MazSpinner-467d514f.mjs} +1 -1
- package/components/chunks/MazSpinner-47025e56.mjs +46 -0
- package/components/chunks/{MazSpinner-a3fe9ccb.mjs → MazSpinner-4b2a2fda.mjs} +1 -1
- package/components/chunks/{MazSpinner-24e65651.mjs → MazSpinner-5368411e.mjs} +1 -1
- package/components/chunks/MazSpinner-5921e33f.mjs +46 -0
- package/components/chunks/MazSpinner-60ca1f4c.mjs +46 -0
- package/components/chunks/{MazSpinner-33f756c4.mjs → MazSpinner-6c664898.mjs} +1 -1
- package/components/chunks/{MazSpinner-50959d38.mjs → MazSpinner-984d259a.mjs} +1 -1
- package/components/chunks/MazSpinner-a74389bd.mjs +46 -0
- package/components/chunks/{MazSpinner-ac676f71.mjs → MazSpinner-bed2bced.mjs} +1 -1
- package/components/chunks/{MazSpinner-5baeb3f0.mjs → MazSpinner-d6625983.mjs} +1 -1
- package/components/chunks/MazSpinner-f04bbd1e.mjs +46 -0
- package/components/chunks/{MazStepper-d61114a7.mjs → MazStepper-293b4be5.mjs} +4 -3
- package/components/chunks/{MazTabsBar-6f1ed175.mjs → MazTabsBar-6dffbdde.mjs} +2 -2
- package/components/chunks/{MazTransitionExpand-e408307c.mjs → MazTransitionExpand-648e21e0.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-bf4cb245.mjs → MazTransitionExpand-f3018af6.mjs} +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-bf5d1483.mjs → MazBtn-6418f038.mjs} +4 -4
- package/{components/chunks/MazIcon-00892ac4.mjs → modules/chunks/MazIcon-c43d744d.mjs} +4 -3
- package/modules/chunks/{MazSpinner-dda0b697.mjs → MazSpinner-766c5c8d.mjs} +1 -1
- package/modules/chunks/{index-a39534c8.mjs → index-71440a8c.mjs} +10 -8
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +6 -6
- package/types/components/MazPhoneNumberInput/{constantes/locales.d.ts → default-locales.d.ts} +1 -2
- package/types/components/MazPhoneNumberInput/types.d.ts +40 -2
- package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +32 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +65 -14
- package/types/components/MazPicker/utils.d.ts +1 -4
- package/types/components/MazSelect.vue.d.ts +2 -0
- package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
- package/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
- package/components/chunks/MazBtn-a2eeb3f8.mjs +0 -184
- package/components/chunks/MazBtn-b191eece.mjs +0 -184
- package/components/chunks/MazPhoneNumberInput-59aa8e06.mjs +0 -854
- package/components/chunks/MazSpinner-7e5fb76c.mjs +0 -46
- package/components/chunks/MazSpinner-87273e1f.mjs +0 -46
- package/components/chunks/MazSpinner-d5f2c266.mjs +0 -46
- package/components/chunks/MazSpinner-e4d7bbe9.mjs +0 -46
- package/components/chunks/MazSpinner-f40ee2c7.mjs +0 -46
- package/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
- package/types/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
|
@@ -205,8 +205,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
205
|
noPadding: { type: Boolean, default: false }
|
|
206
206
|
},
|
|
207
207
|
emits: ["update:model-value", "open", "close"],
|
|
208
|
-
setup(__props, { emit:
|
|
209
|
-
const MazBtn = defineAsyncComponent(() => import("./MazBtn-
|
|
208
|
+
setup(__props, { emit: __emit }) {
|
|
209
|
+
const MazBtn = defineAsyncComponent(() => import("./MazBtn-21743551.mjs"));
|
|
210
|
+
const emits = __emit;
|
|
210
211
|
return (_ctx, _cache) => {
|
|
211
212
|
return openBlock(), createBlock(
|
|
212
213
|
MazBackdrop,
|
|
@@ -45,11 +45,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
noElevation: { type: Boolean, default: false }
|
|
46
46
|
},
|
|
47
47
|
setup(__props) {
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
48
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-984d259a.mjs"));
|
|
49
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
51
50
|
const { href, to } = useAttrs();
|
|
52
51
|
const slots = useSlots();
|
|
52
|
+
const props = __props;
|
|
53
53
|
onBeforeMount(() => {
|
|
54
54
|
if (props.icon && !props.fab) {
|
|
55
55
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./
|
|
3
|
+
import { _ as _export_sfc } from "./MazSelect-41a971ea.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-60ca1f4c.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazInputTags-
|
|
3
|
+
import { _ as _export_sfc } from "./MazInputTags-872a6fae.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-2fac70be.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazBottomSheet-
|
|
3
|
+
import { _ as _export_sfc } from "./MazBottomSheet-b78adb87.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-bed2bced.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const props = __props;
|
|
50
49
|
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-53979e96.mjs"));
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazCarousel-
|
|
3
|
+
import { _ as _export_sfc } from "./MazCarousel-06ca7c0b.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-a74389bd.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./
|
|
3
|
+
import { _ as _export_sfc } from "./MazDialog-d5f6a7d8.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-467d514f.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazInputPrice-
|
|
3
|
+
import { _ as _export_sfc } from "./MazInputPrice-e88dec74.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-6c664898.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./
|
|
3
|
+
import { _ as _export_sfc } from "./MazDrawer-7d6428cf.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-5368411e.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import "../assets/MazBtn.css";
|
|
2
|
+
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
+
import { _ as _export_sfc } from "./MazPicker-6fc29a1c.mjs";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "button",
|
|
10
|
+
validator: (value) => {
|
|
11
|
+
return ["button", "link"].includes(value);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "md",
|
|
17
|
+
validator: (value) => {
|
|
18
|
+
return ["mini", "xs", "sm", "md", "lg", "xl"].includes(value);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "primary"
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "button",
|
|
28
|
+
validator: (value) => {
|
|
29
|
+
return ["button", "submit", "reset"].includes(value);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
rounded: { type: Boolean, default: false },
|
|
33
|
+
noRounded: { type: Boolean, default: false },
|
|
34
|
+
outline: { type: Boolean, default: false },
|
|
35
|
+
pastel: { type: Boolean, default: false },
|
|
36
|
+
block: { type: Boolean, default: false },
|
|
37
|
+
noUnderline: { type: Boolean, default: false },
|
|
38
|
+
noLeading: { type: Boolean, default: false },
|
|
39
|
+
loading: { type: Boolean, default: false },
|
|
40
|
+
disabled: { type: Boolean, default: false },
|
|
41
|
+
fab: { type: Boolean, default: false },
|
|
42
|
+
icon: { type: String, default: void 0 },
|
|
43
|
+
leftIcon: { type: String, default: void 0 },
|
|
44
|
+
rightIcon: { type: String, default: void 0 },
|
|
45
|
+
noPadding: { type: Boolean, default: false },
|
|
46
|
+
noElevation: { type: Boolean, default: false }
|
|
47
|
+
},
|
|
48
|
+
setup(__props) {
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-232086b5.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
51
|
+
const { href, to } = useAttrs();
|
|
52
|
+
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
|
+
onBeforeMount(() => {
|
|
55
|
+
if (props.icon && !props.fab) {
|
|
56
|
+
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const component = computed(() => {
|
|
60
|
+
if (href)
|
|
61
|
+
return "a";
|
|
62
|
+
else if (to)
|
|
63
|
+
return "router-link";
|
|
64
|
+
return "button";
|
|
65
|
+
});
|
|
66
|
+
const btnColorClass = computed(
|
|
67
|
+
() => props.pastel ? `--${props.color}-pastel` : props.outline ? `--${props.color}-outline` : `--${props.color}`
|
|
68
|
+
);
|
|
69
|
+
const isDisabled = computed(
|
|
70
|
+
() => (props.loading || props.disabled) && component.value === "button"
|
|
71
|
+
);
|
|
72
|
+
const cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer");
|
|
73
|
+
const variantClass = computed(() => `--is-${props.variant}`);
|
|
74
|
+
const hasLoader = computed(() => props.loading && props.variant === "button");
|
|
75
|
+
const hasLeftIcon = computed(() => !!slots["left-icon"] || props.leftIcon);
|
|
76
|
+
const hasRightIcon = computed(() => !!slots["right-icon"] || props.rightIcon);
|
|
77
|
+
const hasIcon = computed(() => hasLeftIcon.value || hasRightIcon.value);
|
|
78
|
+
const hasFabIcon = computed(() => props.fab && props.icon);
|
|
79
|
+
const btnType = computed(() => component.value === "button" ? props.type : void 0);
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps(_ctx.$attrs, {
|
|
82
|
+
disabled: isDisabled.value,
|
|
83
|
+
class: ["m-btn", [
|
|
84
|
+
`--${__props.size}`,
|
|
85
|
+
btnColorClass.value,
|
|
86
|
+
cursorClass.value,
|
|
87
|
+
variantClass.value,
|
|
88
|
+
{
|
|
89
|
+
"--block": __props.block,
|
|
90
|
+
"--no-underline": __props.noUnderline,
|
|
91
|
+
"--no-leading": __props.noLeading,
|
|
92
|
+
"--fab": __props.fab,
|
|
93
|
+
"--loading": __props.loading,
|
|
94
|
+
"--disabled": isDisabled.value,
|
|
95
|
+
"--icon": hasIcon.value,
|
|
96
|
+
"--rounded": __props.rounded,
|
|
97
|
+
"--no-rounded": __props.noRounded,
|
|
98
|
+
"--no-padding": __props.noPadding,
|
|
99
|
+
"--no-elevation": __props.noElevation
|
|
100
|
+
}
|
|
101
|
+
]],
|
|
102
|
+
type: btnType.value
|
|
103
|
+
}), {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
hasLeftIcon.value ? (openBlock(), createElementBlock(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
key: 0,
|
|
109
|
+
class: normalizeClass(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
110
|
+
},
|
|
111
|
+
[
|
|
112
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
113
|
+
__props.leftIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
114
|
+
key: 0,
|
|
115
|
+
name: __props.leftIcon
|
|
116
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
117
|
+
], true)
|
|
118
|
+
],
|
|
119
|
+
2
|
|
120
|
+
/* CLASS */
|
|
121
|
+
)) : createCommentVNode("v-if", true),
|
|
122
|
+
hasFabIcon.value ? (openBlock(), createElementBlock(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
key: 1,
|
|
126
|
+
class: normalizeClass(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
130
|
+
__props.icon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
131
|
+
key: 0,
|
|
132
|
+
name: __props.icon
|
|
133
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
134
|
+
], true)
|
|
135
|
+
],
|
|
136
|
+
2
|
|
137
|
+
/* CLASS */
|
|
138
|
+
)) : createCommentVNode("v-if", true),
|
|
139
|
+
createElementVNode(
|
|
140
|
+
"span",
|
|
141
|
+
{
|
|
142
|
+
class: normalizeClass(["maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
143
|
+
},
|
|
144
|
+
[
|
|
145
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
146
|
+
],
|
|
147
|
+
2
|
|
148
|
+
/* CLASS */
|
|
149
|
+
),
|
|
150
|
+
hasRightIcon.value ? (openBlock(), createElementBlock(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
key: 2,
|
|
154
|
+
class: normalizeClass(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
158
|
+
__props.rightIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
159
|
+
key: 0,
|
|
160
|
+
name: __props.rightIcon
|
|
161
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
162
|
+
], true)
|
|
163
|
+
],
|
|
164
|
+
2
|
|
165
|
+
/* CLASS */
|
|
166
|
+
)) : createCommentVNode("v-if", true),
|
|
167
|
+
hasLoader.value ? (openBlock(), createBlock(unref(MazSpinner), {
|
|
168
|
+
key: 3,
|
|
169
|
+
size: "2em",
|
|
170
|
+
color: __props.color,
|
|
171
|
+
class: "maz-absolute"
|
|
172
|
+
}, null, 8, ["color"])) : createCommentVNode("v-if", true)
|
|
173
|
+
]),
|
|
174
|
+
_: 3
|
|
175
|
+
/* FORWARDED */
|
|
176
|
+
}, 16, ["disabled", "class", "type"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const MazBtn_vue_vue_type_style_index_0_scoped_054acd3d_lang = "";
|
|
181
|
+
const MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-054acd3d"]]);
|
|
182
|
+
export {
|
|
183
|
+
MazBtn as default
|
|
184
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazDialogPromise-
|
|
3
|
+
import { _ as _export_sfc } from "./MazDialogPromise-23cb2e40.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-25ddb933.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazInput-
|
|
3
|
+
import { _ as _export_sfc } from "./MazInput-8e284503.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-2cbf1c0a.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import "../assets/MazBtn.css";
|
|
2
|
+
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
+
import { _ as _export_sfc } from "./MazTabsBar-6dffbdde.mjs";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "button",
|
|
10
|
+
validator: (value) => {
|
|
11
|
+
return ["button", "link"].includes(value);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "md",
|
|
17
|
+
validator: (value) => {
|
|
18
|
+
return ["mini", "xs", "sm", "md", "lg", "xl"].includes(value);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "primary"
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "button",
|
|
28
|
+
validator: (value) => {
|
|
29
|
+
return ["button", "submit", "reset"].includes(value);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
rounded: { type: Boolean, default: false },
|
|
33
|
+
noRounded: { type: Boolean, default: false },
|
|
34
|
+
outline: { type: Boolean, default: false },
|
|
35
|
+
pastel: { type: Boolean, default: false },
|
|
36
|
+
block: { type: Boolean, default: false },
|
|
37
|
+
noUnderline: { type: Boolean, default: false },
|
|
38
|
+
noLeading: { type: Boolean, default: false },
|
|
39
|
+
loading: { type: Boolean, default: false },
|
|
40
|
+
disabled: { type: Boolean, default: false },
|
|
41
|
+
fab: { type: Boolean, default: false },
|
|
42
|
+
icon: { type: String, default: void 0 },
|
|
43
|
+
leftIcon: { type: String, default: void 0 },
|
|
44
|
+
rightIcon: { type: String, default: void 0 },
|
|
45
|
+
noPadding: { type: Boolean, default: false },
|
|
46
|
+
noElevation: { type: Boolean, default: false }
|
|
47
|
+
},
|
|
48
|
+
setup(__props) {
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-47025e56.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-81176bfa.mjs"));
|
|
51
|
+
const { href, to } = useAttrs();
|
|
52
|
+
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
|
+
onBeforeMount(() => {
|
|
55
|
+
if (props.icon && !props.fab) {
|
|
56
|
+
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const component = computed(() => {
|
|
60
|
+
if (href)
|
|
61
|
+
return "a";
|
|
62
|
+
else if (to)
|
|
63
|
+
return "router-link";
|
|
64
|
+
return "button";
|
|
65
|
+
});
|
|
66
|
+
const btnColorClass = computed(
|
|
67
|
+
() => props.pastel ? `--${props.color}-pastel` : props.outline ? `--${props.color}-outline` : `--${props.color}`
|
|
68
|
+
);
|
|
69
|
+
const isDisabled = computed(
|
|
70
|
+
() => (props.loading || props.disabled) && component.value === "button"
|
|
71
|
+
);
|
|
72
|
+
const cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer");
|
|
73
|
+
const variantClass = computed(() => `--is-${props.variant}`);
|
|
74
|
+
const hasLoader = computed(() => props.loading && props.variant === "button");
|
|
75
|
+
const hasLeftIcon = computed(() => !!slots["left-icon"] || props.leftIcon);
|
|
76
|
+
const hasRightIcon = computed(() => !!slots["right-icon"] || props.rightIcon);
|
|
77
|
+
const hasIcon = computed(() => hasLeftIcon.value || hasRightIcon.value);
|
|
78
|
+
const hasFabIcon = computed(() => props.fab && props.icon);
|
|
79
|
+
const btnType = computed(() => component.value === "button" ? props.type : void 0);
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps(_ctx.$attrs, {
|
|
82
|
+
disabled: isDisabled.value,
|
|
83
|
+
class: ["m-btn", [
|
|
84
|
+
`--${__props.size}`,
|
|
85
|
+
btnColorClass.value,
|
|
86
|
+
cursorClass.value,
|
|
87
|
+
variantClass.value,
|
|
88
|
+
{
|
|
89
|
+
"--block": __props.block,
|
|
90
|
+
"--no-underline": __props.noUnderline,
|
|
91
|
+
"--no-leading": __props.noLeading,
|
|
92
|
+
"--fab": __props.fab,
|
|
93
|
+
"--loading": __props.loading,
|
|
94
|
+
"--disabled": isDisabled.value,
|
|
95
|
+
"--icon": hasIcon.value,
|
|
96
|
+
"--rounded": __props.rounded,
|
|
97
|
+
"--no-rounded": __props.noRounded,
|
|
98
|
+
"--no-padding": __props.noPadding,
|
|
99
|
+
"--no-elevation": __props.noElevation
|
|
100
|
+
}
|
|
101
|
+
]],
|
|
102
|
+
type: btnType.value
|
|
103
|
+
}), {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
hasLeftIcon.value ? (openBlock(), createElementBlock(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
key: 0,
|
|
109
|
+
class: normalizeClass(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
110
|
+
},
|
|
111
|
+
[
|
|
112
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
113
|
+
__props.leftIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
114
|
+
key: 0,
|
|
115
|
+
name: __props.leftIcon
|
|
116
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
117
|
+
], true)
|
|
118
|
+
],
|
|
119
|
+
2
|
|
120
|
+
/* CLASS */
|
|
121
|
+
)) : createCommentVNode("v-if", true),
|
|
122
|
+
hasFabIcon.value ? (openBlock(), createElementBlock(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
key: 1,
|
|
126
|
+
class: normalizeClass(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
130
|
+
__props.icon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
131
|
+
key: 0,
|
|
132
|
+
name: __props.icon
|
|
133
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
134
|
+
], true)
|
|
135
|
+
],
|
|
136
|
+
2
|
|
137
|
+
/* CLASS */
|
|
138
|
+
)) : createCommentVNode("v-if", true),
|
|
139
|
+
createElementVNode(
|
|
140
|
+
"span",
|
|
141
|
+
{
|
|
142
|
+
class: normalizeClass(["maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
143
|
+
},
|
|
144
|
+
[
|
|
145
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
146
|
+
],
|
|
147
|
+
2
|
|
148
|
+
/* CLASS */
|
|
149
|
+
),
|
|
150
|
+
hasRightIcon.value ? (openBlock(), createElementBlock(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
key: 2,
|
|
154
|
+
class: normalizeClass(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
158
|
+
__props.rightIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
159
|
+
key: 0,
|
|
160
|
+
name: __props.rightIcon
|
|
161
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)
|
|
162
|
+
], true)
|
|
163
|
+
],
|
|
164
|
+
2
|
|
165
|
+
/* CLASS */
|
|
166
|
+
)) : createCommentVNode("v-if", true),
|
|
167
|
+
hasLoader.value ? (openBlock(), createBlock(unref(MazSpinner), {
|
|
168
|
+
key: 3,
|
|
169
|
+
size: "2em",
|
|
170
|
+
color: __props.color,
|
|
171
|
+
class: "maz-absolute"
|
|
172
|
+
}, null, 8, ["color"])) : createCommentVNode("v-if", true)
|
|
173
|
+
]),
|
|
174
|
+
_: 3
|
|
175
|
+
/* FORWARDED */
|
|
176
|
+
}, 16, ["disabled", "class", "type"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const MazBtn_vue_vue_type_style_index_0_scoped_054acd3d_lang = "";
|
|
181
|
+
const MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-054acd3d"]]);
|
|
182
|
+
export {
|
|
183
|
+
MazBtn as default
|
|
184
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazPhoneNumberInput-
|
|
3
|
+
import { _ as _export_sfc } from "./MazPhoneNumberInput-458455bb.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-4b2a2fda.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
52
51
|
const { href, to } = useAttrs();
|
|
53
52
|
const slots = useSlots();
|
|
53
|
+
const props = __props;
|
|
54
54
|
onBeforeMount(() => {
|
|
55
55
|
if (props.icon && !props.fab) {
|
|
56
56
|
console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|