maz-ui 3.37.3 → 3.37.4
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/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -2
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -0
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- 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/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +4 -4
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
- package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
- package/components/MazPhoneNumberInput.d.ts +21 -8
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.d.ts +89 -92
- package/components/MazRadio.mjs +67 -73
- package/components/MazRadioButtons.d.ts +84 -62
- package/components/MazRadioButtons.mjs +112 -60
- package/components/MazSelect.d.ts +12 -7
- package/components/MazSelect.mjs +1 -1
- package/components/MazSwitch.d.ts +61 -67
- package/components/MazSwitch.mjs +41 -48
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.d.ts +23 -8
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBottomSheet-DZ1n4bGL.mjs → MazBottomSheet-B9OYmgyx.mjs} +1 -1
- package/components/chunks/{MazBtn-CnZU5zlG.mjs → MazBtn-4stpYG-V.mjs} +8 -8
- package/components/chunks/{MazBtn-BJs3rzUf.mjs → MazBtn-BQZOiUux.mjs} +8 -8
- package/components/chunks/{MazBtn-DLYgzr9e.mjs → MazBtn-Bgt41rUb.mjs} +11 -11
- package/components/chunks/MazBtn-CNyFbl9Y.mjs +151 -0
- package/components/chunks/{MazBtn-BTHDxDz7.mjs → MazBtn-CrNEwd_M.mjs} +8 -8
- package/components/chunks/MazBtn-CyXtFeAh.mjs +151 -0
- package/components/chunks/{MazBtn-CnkBOGKK.mjs → MazBtn-DOtOjQOl.mjs} +11 -11
- package/components/chunks/{MazBtn-IH6bjzah.mjs → MazBtn-DXC8jXNK.mjs} +8 -8
- package/components/chunks/{MazBtn-Dbe098kd.mjs → MazBtn-De3ZeaJJ.mjs} +8 -8
- package/components/chunks/{MazBtn-CDQAW3fg.mjs → MazBtn-g6VJMuer.mjs} +8 -8
- package/components/chunks/MazBtn-v1mwE1O3.mjs +151 -0
- package/components/chunks/{MazBtn-pLRsSxug.mjs → MazBtn-z9IFp0ZS.mjs} +8 -8
- package/components/chunks/{MazCard-CNE9c3L5.mjs → MazCard-E9Eg2VRn.mjs} +10 -8
- package/components/chunks/{MazCarousel-CMJgMJf1.mjs → MazCarousel-CtSpgIm6.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DJBo7Ejt.mjs → MazCheckbox-BE7eLIkK.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CM7mucQa.mjs → MazCheckbox-eSSrvpn9.mjs} +1 -1
- package/components/chunks/{MazDialog-BVqOTysP.mjs → MazDialog-CjsC6fGo.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BjciKAwR.mjs → MazDialogPromise-Blv60XZR.mjs} +2 -2
- package/components/chunks/{MazGallery-BUUq89aM.mjs → MazGallery-DRgvR7K0.mjs} +2 -2
- package/components/chunks/{MazIcon-BKfQ_rkt.mjs → MazIcon-C_IIdjqr.mjs} +1 -1
- package/components/chunks/{MazInput-Caas-0Nk.mjs → MazInput-Dn4JzYhe.mjs} +1 -1
- package/components/chunks/{MazInputNumber-CnoCQQzg.mjs → MazInputNumber-Df31nPnc.mjs} +2 -2
- package/components/chunks/{MazInputPrice---5nCUKm.mjs → MazInputPrice-DATyEiwP.mjs} +1 -1
- package/components/chunks/{MazInputTags-CipoVBP2.mjs → MazInputTags-DBzwE87F.mjs} +3 -3
- package/components/chunks/{MazPagination-CXw3yqbu.mjs → MazPagination-BU6fSHr2.mjs} +2 -2
- package/components/chunks/MazPhoneNumberInput-D8hP4ZzW.mjs +1419 -0
- package/components/chunks/{MazPicker-CfhI75aw.mjs → MazPicker-D71j9m8h.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-DnkNE-Am.mjs → MazPickerCalendar-psuBcTR7.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-Vt86yzXS.mjs → MazPickerHeader-BmqHJE0a.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-zfKhsjW1.mjs → MazPickerMonthSwitcher-DgU0pLkF.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-DUIKfOO8.mjs → MazPickerShortcuts-D9YXi3Ns.mjs} +2 -2
- package/components/chunks/{MazPickerTime-B2znRxr2.mjs → MazPickerTime-8ZqSEb_N.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CB339kof.mjs → MazPickerYearSwitcher-D-zu0tMs.mjs} +3 -3
- package/components/chunks/MazSelect-Cc8JAFML.mjs +731 -0
- package/components/chunks/{MazSpinner-DFseK3o_.mjs → MazSpinner-2-OAJWTi.mjs} +1 -1
- package/components/chunks/MazSpinner-B0xEVmcj.mjs +38 -0
- package/components/chunks/{MazSpinner-2fDI3i5h.mjs → MazSpinner-B3Gt0AEt.mjs} +1 -1
- package/components/chunks/MazSpinner-B6Z6X_KC.mjs +38 -0
- package/components/chunks/{MazSpinner-CORsBFCP.mjs → MazSpinner-BVaJBGw5.mjs} +1 -1
- package/components/chunks/{MazSpinner-CVBVegaS.mjs → MazSpinner-BVflp3wp.mjs} +1 -1
- package/components/chunks/MazSpinner-BmqyUsTZ.mjs +38 -0
- package/components/chunks/{MazSpinner-XMLkiLTL.mjs → MazSpinner-Btk7fYzq.mjs} +1 -1
- package/components/chunks/{MazSpinner-BtFWH26r.mjs → MazSpinner-CAQqdZfW.mjs} +1 -1
- package/components/chunks/MazSpinner-COqX5baD.mjs +38 -0
- package/components/chunks/{MazSpinner-Bky73siD.mjs → MazSpinner-CV3h3CKR.mjs} +1 -1
- package/components/chunks/MazSpinner-Cm5GeVV-.mjs +38 -0
- package/components/chunks/{MazSpinner-CkHAaRhk.mjs → MazSpinner-D9uDPRkX.mjs} +1 -1
- package/components/chunks/MazSpinner-DO1id61e.mjs +38 -0
- package/components/chunks/MazSpinner-K26cuR_A.mjs +38 -0
- package/components/chunks/MazSpinner-LCpiZGMP.mjs +38 -0
- package/components/chunks/MazTable-vcm_SC7e.mjs +1846 -0
- package/components/chunks/{MazTransitionExpand-BWsQP7UF.mjs → MazTransitionExpand-DXKtquVe.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-BxYYeNGe.mjs → MazBtn-CNsgLyRm.mjs} +8 -8
- package/modules/chunks/{MazBtn-CHUwa3fu.cjs → MazBtn-DmXrGuUE.cjs} +2 -2
- package/modules/chunks/{MazIcon-CnOCvJTw.mjs → MazIcon-DwRWkhhR.mjs} +1 -1
- package/modules/chunks/{MazIcon-DcbutTbM.cjs → MazIcon-rh9PwwaQ.cjs} +1 -1
- package/modules/chunks/{MazSpinner-TL9_4BOs.cjs → MazSpinner-BzucVZXm.cjs} +1 -1
- package/modules/chunks/{MazSpinner-ClFhZyF_.mjs → MazSpinner-mCJd14Kq.mjs} +1 -1
- package/modules/chunks/{index-DksGhf51.cjs → index-DHsybBwE.cjs} +1 -1
- package/modules/chunks/{index-_xAQ9uTd.mjs → index-DrSSNP9y.mjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +5 -5
- package/package.json +6 -6
- package/types/components/MazBtn.vue.d.ts +2 -2
- package/types/components/MazCard.vue.d.ts +2 -0
- package/types/components/MazInputTags.vue.d.ts +4 -4
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
- package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +21 -8
- package/types/components/MazRadio.vue.d.ts +89 -92
- package/types/components/MazRadioButtons.vue.d.ts +84 -62
- package/types/components/MazSelect.vue.d.ts +12 -7
- package/types/components/MazSwitch.vue.d.ts +61 -67
- package/types/components/MazTextarea.vue.d.ts +23 -8
- package/components/chunks/MazBtn-Cpnby6Lb.mjs +0 -151
- package/components/chunks/MazBtn-D5q0p_mK.mjs +0 -151
- package/components/chunks/MazBtn-Koayc6g_.mjs +0 -151
- package/components/chunks/MazPhoneNumberInput-BDiyO_6j.mjs +0 -1423
- package/components/chunks/MazSelect-Cr1xT89o.mjs +0 -767
- package/components/chunks/MazSpinner-CdKm_Lcp.mjs +0 -38
- package/components/chunks/MazSpinner-CkdjTE0y.mjs +0 -38
- package/components/chunks/MazSpinner-CtMh7fIX.mjs +0 -38
- package/components/chunks/MazSpinner-DECa8Pby.mjs +0 -38
- package/components/chunks/MazSpinner-DMBy6mx3.mjs +0 -38
- package/components/chunks/MazSpinner-DPmNDRtT.mjs +0 -38
- package/components/chunks/MazSpinner-Dq4o-_GM.mjs +0 -38
- package/components/chunks/MazSpinner-DyE_USVF.mjs +0 -38
- package/components/chunks/MazTable-CIlP0a61.mjs +0 -1882
|
@@ -152,7 +152,7 @@ const X = { render: U }, G = (t) => (T("data-v-46b34248"), t = t(), x(), t), H =
|
|
|
152
152
|
},
|
|
153
153
|
emits: ["update:model-value", "open", "close"],
|
|
154
154
|
setup(t, { emit: a }) {
|
|
155
|
-
const l = I(() => import("./MazBtn-
|
|
155
|
+
const l = I(() => import("./MazBtn-CrNEwd_M.mjs")), d = a;
|
|
156
156
|
return (s, n) => (c(), k(K, {
|
|
157
157
|
"transition-name": "bottom-sheet-anim",
|
|
158
158
|
"backdrop-class": "--bottom-sheet",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/MazBtn.css';
|
|
2
2
|
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
-
import { _ as D } from "./MazCarousel-
|
|
3
|
+
import { _ as D } from "./MazCarousel-CtSpgIm6.mjs";
|
|
4
4
|
const P = /* @__PURE__ */ E({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -26,17 +26,17 @@ const P = /* @__PURE__ */ E({
|
|
|
26
26
|
contentClass: { default: void 0 }
|
|
27
27
|
},
|
|
28
28
|
setup(g) {
|
|
29
|
-
const B = h(() => import("./MazSpinner-
|
|
29
|
+
const B = h(() => import("./MazSpinner-LCpiZGMP.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
|
|
30
30
|
w(() => {
|
|
31
31
|
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
32
|
});
|
|
33
33
|
const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
|
|
34
34
|
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
-
),
|
|
35
|
+
), b = l(
|
|
36
36
|
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
-
), C = l(() =>
|
|
37
|
+
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
|
|
38
38
|
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
-
disabled:
|
|
39
|
+
disabled: b.value,
|
|
40
40
|
class: s(["m-btn", [
|
|
41
41
|
`--${o.size}`,
|
|
42
42
|
z.value,
|
|
@@ -48,7 +48,7 @@ const P = /* @__PURE__ */ E({
|
|
|
48
48
|
"--no-leading": o.noLeading,
|
|
49
49
|
"--fab": o.fab,
|
|
50
50
|
"--loading": o.loading,
|
|
51
|
-
"--disabled":
|
|
51
|
+
"--disabled": b.value,
|
|
52
52
|
"--icon": M.value,
|
|
53
53
|
"--rounded": o.rounded,
|
|
54
54
|
"--no-rounded": o.noRounded,
|
|
@@ -59,7 +59,7 @@ const P = /* @__PURE__ */ E({
|
|
|
59
59
|
type: L.value
|
|
60
60
|
}, {
|
|
61
61
|
default: A(() => [
|
|
62
|
-
|
|
62
|
+
m.value ? (n(), u(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
key: 0,
|
|
@@ -145,7 +145,7 @@ const P = /* @__PURE__ */ E({
|
|
|
145
145
|
/* FORWARDED */
|
|
146
146
|
}, 8, ["disabled", "class", "type"]));
|
|
147
147
|
}
|
|
148
|
-
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-
|
|
148
|
+
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-be73a6f1"]]);
|
|
149
149
|
export {
|
|
150
150
|
V as default
|
|
151
151
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/MazBtn.css';
|
|
2
2
|
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
-
import { _ as D } from "./MazSelect-
|
|
3
|
+
import { _ as D } from "./MazSelect-Cc8JAFML.mjs";
|
|
4
4
|
const P = /* @__PURE__ */ E({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -26,17 +26,17 @@ const P = /* @__PURE__ */ E({
|
|
|
26
26
|
contentClass: { default: void 0 }
|
|
27
27
|
},
|
|
28
28
|
setup(g) {
|
|
29
|
-
const B = h(() => import("./MazSpinner-
|
|
29
|
+
const B = h(() => import("./MazSpinner-BmqyUsTZ.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
|
|
30
30
|
w(() => {
|
|
31
31
|
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
32
|
});
|
|
33
33
|
const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
|
|
34
34
|
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
-
),
|
|
35
|
+
), b = l(
|
|
36
36
|
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
-
), C = l(() =>
|
|
37
|
+
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
|
|
38
38
|
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
-
disabled:
|
|
39
|
+
disabled: b.value,
|
|
40
40
|
class: s(["m-btn", [
|
|
41
41
|
`--${o.size}`,
|
|
42
42
|
z.value,
|
|
@@ -48,7 +48,7 @@ const P = /* @__PURE__ */ E({
|
|
|
48
48
|
"--no-leading": o.noLeading,
|
|
49
49
|
"--fab": o.fab,
|
|
50
50
|
"--loading": o.loading,
|
|
51
|
-
"--disabled":
|
|
51
|
+
"--disabled": b.value,
|
|
52
52
|
"--icon": M.value,
|
|
53
53
|
"--rounded": o.rounded,
|
|
54
54
|
"--no-rounded": o.noRounded,
|
|
@@ -59,7 +59,7 @@ const P = /* @__PURE__ */ E({
|
|
|
59
59
|
type: L.value
|
|
60
60
|
}, {
|
|
61
61
|
default: A(() => [
|
|
62
|
-
|
|
62
|
+
m.value ? (n(), u(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
key: 0,
|
|
@@ -145,7 +145,7 @@ const P = /* @__PURE__ */ E({
|
|
|
145
145
|
/* FORWARDED */
|
|
146
146
|
}, 8, ["disabled", "class", "type"]));
|
|
147
147
|
}
|
|
148
|
-
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-
|
|
148
|
+
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-be73a6f1"]]);
|
|
149
149
|
export {
|
|
150
150
|
V as default
|
|
151
151
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/MazBtn.css';
|
|
2
|
-
import { defineComponent as L, defineAsyncComponent as z, useAttrs as E, useSlots as O, onBeforeMount as P, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as L, defineAsyncComponent as z, useAttrs as E, useSlots as O, onBeforeMount as P, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as d, normalizeClass as r, withCtx as R, createElementBlock as c, createCommentVNode as t, renderSlot as f, unref as p } from "vue";
|
|
3
3
|
const j = /* @__PURE__ */ L({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -25,7 +25,7 @@ const j = /* @__PURE__ */ L({
|
|
|
25
25
|
contentClass: { default: void 0 }
|
|
26
26
|
},
|
|
27
27
|
setup(u) {
|
|
28
|
-
const v = z(() => import("./MazSpinner-
|
|
28
|
+
const v = z(() => import("./MazSpinner-D9uDPRkX.mjs")), i = z(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: b, to: y } = E(), m = O(), o = u;
|
|
29
29
|
P(() => {
|
|
30
30
|
o.icon && !o.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
31
|
});
|
|
@@ -34,7 +34,7 @@ const j = /* @__PURE__ */ L({
|
|
|
34
34
|
), g = l(
|
|
35
35
|
() => (o.loading || o.disabled) && h.value === "button"
|
|
36
36
|
), C = l(() => g.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${o.variant}`), s = l(() => o.loading && o.variant === "button"), B = l(() => !!m["left-icon"] || o.leftIcon), k = l(() => !!m["right-icon"] || o.rightIcon), M = l(() => B.value || k.value), T = l(() => o.fab && (o.icon || !!m.icon)), S = l(() => h.value === "button" ? o.type : void 0);
|
|
37
|
-
return (e, D) => (n(), a(
|
|
37
|
+
return (e, D) => (n(), a(d(h.value), {
|
|
38
38
|
disabled: g.value,
|
|
39
39
|
class: r(["m-btn", [
|
|
40
40
|
`--${e.size}`,
|
|
@@ -58,7 +58,7 @@ const j = /* @__PURE__ */ L({
|
|
|
58
58
|
type: S.value
|
|
59
59
|
}, {
|
|
60
60
|
default: R(() => [
|
|
61
|
-
B.value ? (n(),
|
|
61
|
+
B.value ? (n(), c(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
key: 0,
|
|
@@ -72,13 +72,13 @@ const j = /* @__PURE__ */ L({
|
|
|
72
72
|
typeof e.leftIcon == "string" ? (n(), a(p(i), {
|
|
73
73
|
key: 0,
|
|
74
74
|
name: e.leftIcon
|
|
75
|
-
}, null, 8, ["name"])) : e.leftIcon ? (n(), a(
|
|
75
|
+
}, null, 8, ["name"])) : e.leftIcon ? (n(), a(d(e.leftIcon), { key: 1 })) : t("v-if", !0)
|
|
76
76
|
], !0)
|
|
77
77
|
],
|
|
78
78
|
2
|
|
79
79
|
/* CLASS */
|
|
80
80
|
)) : t("v-if", !0),
|
|
81
|
-
T.value ? (n(),
|
|
81
|
+
T.value ? (n(), c(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
key: 1,
|
|
@@ -92,13 +92,13 @@ const j = /* @__PURE__ */ L({
|
|
|
92
92
|
typeof e.icon == "string" ? (n(), a(p(i), {
|
|
93
93
|
key: 0,
|
|
94
94
|
name: e.icon
|
|
95
|
-
}, null, 8, ["name"])) : e.icon ? (n(), a(
|
|
95
|
+
}, null, 8, ["name"])) : e.icon ? (n(), a(d(e.icon), { key: 1 })) : t("v-if", !0)
|
|
96
96
|
], !0)
|
|
97
97
|
],
|
|
98
98
|
2
|
|
99
99
|
/* CLASS */
|
|
100
100
|
)) : t("v-if", !0),
|
|
101
|
-
e.$slots.default ? (n(),
|
|
101
|
+
e.$slots.default ? (n(), c(
|
|
102
102
|
"span",
|
|
103
103
|
{
|
|
104
104
|
key: 2,
|
|
@@ -113,7 +113,7 @@ const j = /* @__PURE__ */ L({
|
|
|
113
113
|
2
|
|
114
114
|
/* CLASS */
|
|
115
115
|
)) : t("v-if", !0),
|
|
116
|
-
k.value ? (n(),
|
|
116
|
+
k.value ? (n(), c(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
key: 3,
|
|
@@ -127,7 +127,7 @@ const j = /* @__PURE__ */ L({
|
|
|
127
127
|
typeof e.rightIcon == "string" ? (n(), a(p(i), {
|
|
128
128
|
key: 0,
|
|
129
129
|
name: e.rightIcon
|
|
130
|
-
}, null, 8, ["name"])) : e.rightIcon ? (n(), a(
|
|
130
|
+
}, null, 8, ["name"])) : e.rightIcon ? (n(), a(d(e.rightIcon), { key: 1 })) : t("v-if", !0)
|
|
131
131
|
], !0)
|
|
132
132
|
],
|
|
133
133
|
2
|
|
@@ -149,7 +149,7 @@ const j = /* @__PURE__ */ L({
|
|
|
149
149
|
for (const [b, y] of v)
|
|
150
150
|
i[b] = y;
|
|
151
151
|
return i;
|
|
152
|
-
}, A = /* @__PURE__ */ w(j, [["__scopeId", "data-v-
|
|
152
|
+
}, A = /* @__PURE__ */ w(j, [["__scopeId", "data-v-be73a6f1"]]), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
153
|
__proto__: null,
|
|
154
154
|
default: A
|
|
155
155
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import '../assets/MazBtn.css';
|
|
2
|
+
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
+
import { _ as D } from "./MazPhoneNumberInput-D8hP4ZzW.mjs";
|
|
4
|
+
const P = /* @__PURE__ */ E({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: { default: "button" },
|
|
8
|
+
size: { default: "md" },
|
|
9
|
+
color: { default: "primary" },
|
|
10
|
+
type: { default: "button" },
|
|
11
|
+
rounded: { type: Boolean },
|
|
12
|
+
noRounded: { type: Boolean },
|
|
13
|
+
outline: { type: Boolean },
|
|
14
|
+
pastel: { type: Boolean },
|
|
15
|
+
block: { type: Boolean },
|
|
16
|
+
noUnderline: { type: Boolean },
|
|
17
|
+
noLeading: { type: Boolean },
|
|
18
|
+
loading: { type: Boolean },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
fab: { type: Boolean },
|
|
21
|
+
icon: { default: void 0 },
|
|
22
|
+
leftIcon: { default: void 0 },
|
|
23
|
+
rightIcon: { default: void 0 },
|
|
24
|
+
noPadding: { type: Boolean },
|
|
25
|
+
noElevation: { type: Boolean },
|
|
26
|
+
contentClass: { default: void 0 }
|
|
27
|
+
},
|
|
28
|
+
setup(g) {
|
|
29
|
+
const B = h(() => import("./MazSpinner-K26cuR_A.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
|
|
30
|
+
w(() => {
|
|
31
|
+
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
|
+
});
|
|
33
|
+
const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
|
|
34
|
+
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
+
), b = l(
|
|
36
|
+
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
+
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
|
|
38
|
+
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
+
disabled: b.value,
|
|
40
|
+
class: s(["m-btn", [
|
|
41
|
+
`--${o.size}`,
|
|
42
|
+
z.value,
|
|
43
|
+
C.value,
|
|
44
|
+
$.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": o.block,
|
|
47
|
+
"--no-underline": o.noUnderline,
|
|
48
|
+
"--no-leading": o.noLeading,
|
|
49
|
+
"--fab": o.fab,
|
|
50
|
+
"--loading": o.loading,
|
|
51
|
+
"--disabled": b.value,
|
|
52
|
+
"--icon": M.value,
|
|
53
|
+
"--rounded": o.rounded,
|
|
54
|
+
"--no-rounded": o.noRounded,
|
|
55
|
+
"--no-padding": o.noPadding,
|
|
56
|
+
"--no-elevation": o.noElevation
|
|
57
|
+
}
|
|
58
|
+
]]),
|
|
59
|
+
type: L.value
|
|
60
|
+
}, {
|
|
61
|
+
default: A(() => [
|
|
62
|
+
m.value ? (n(), u(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
key: 0,
|
|
66
|
+
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
t(`
|
|
70
|
+
@slot left-icon - The icon to display on the left of the button
|
|
71
|
+
`),
|
|
72
|
+
d(o.$slots, "left-icon", {}, () => [
|
|
73
|
+
typeof o.leftIcon == "string" ? (n(), a(c(f), {
|
|
74
|
+
key: 0,
|
|
75
|
+
name: o.leftIcon
|
|
76
|
+
}, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
|
|
77
|
+
], !0)
|
|
78
|
+
],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
)) : t("v-if", !0),
|
|
82
|
+
T.value ? (n(), u(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
key: 1,
|
|
86
|
+
class: s(["m-btn__icon", { "maz-invisible": i.value }])
|
|
87
|
+
},
|
|
88
|
+
[
|
|
89
|
+
t(`
|
|
90
|
+
@slot icon - The icon to display on the fab button
|
|
91
|
+
`),
|
|
92
|
+
d(o.$slots, "icon", {}, () => [
|
|
93
|
+
typeof o.icon == "string" ? (n(), a(c(f), {
|
|
94
|
+
key: 0,
|
|
95
|
+
name: o.icon
|
|
96
|
+
}, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
|
|
97
|
+
], !0)
|
|
98
|
+
],
|
|
99
|
+
2
|
|
100
|
+
/* CLASS */
|
|
101
|
+
)) : t("v-if", !0),
|
|
102
|
+
o.$slots.default ? (n(), u(
|
|
103
|
+
"span",
|
|
104
|
+
{
|
|
105
|
+
key: 2,
|
|
106
|
+
class: s([{ "maz-invisible": i.value }, o.contentClass])
|
|
107
|
+
},
|
|
108
|
+
[
|
|
109
|
+
t(`
|
|
110
|
+
@slot default - The content of the button
|
|
111
|
+
`),
|
|
112
|
+
d(o.$slots, "default", {}, void 0, !0)
|
|
113
|
+
],
|
|
114
|
+
2
|
|
115
|
+
/* CLASS */
|
|
116
|
+
)) : t("v-if", !0),
|
|
117
|
+
y.value ? (n(), u(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
key: 3,
|
|
121
|
+
class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
|
|
122
|
+
},
|
|
123
|
+
[
|
|
124
|
+
t(`
|
|
125
|
+
@slot right-icon - The icon to display on the right of the button
|
|
126
|
+
`),
|
|
127
|
+
d(o.$slots, "right-icon", {}, () => [
|
|
128
|
+
typeof o.rightIcon == "string" ? (n(), a(c(f), {
|
|
129
|
+
key: 0,
|
|
130
|
+
name: o.rightIcon
|
|
131
|
+
}, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
|
|
132
|
+
], !0)
|
|
133
|
+
],
|
|
134
|
+
2
|
|
135
|
+
/* CLASS */
|
|
136
|
+
)) : t("v-if", !0),
|
|
137
|
+
i.value ? (n(), a(c(B), {
|
|
138
|
+
key: 4,
|
|
139
|
+
class: "m-btn-loader",
|
|
140
|
+
size: "2em",
|
|
141
|
+
color: o.color
|
|
142
|
+
}, null, 8, ["color"])) : t("v-if", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
/* FORWARDED */
|
|
146
|
+
}, 8, ["disabled", "class", "type"]));
|
|
147
|
+
}
|
|
148
|
+
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-be73a6f1"]]);
|
|
149
|
+
export {
|
|
150
|
+
V as default
|
|
151
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/MazBtn.css';
|
|
2
2
|
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
-
import { _ as D } from "./MazBottomSheet-
|
|
3
|
+
import { _ as D } from "./MazBottomSheet-B9OYmgyx.mjs";
|
|
4
4
|
const P = /* @__PURE__ */ E({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -26,17 +26,17 @@ const P = /* @__PURE__ */ E({
|
|
|
26
26
|
contentClass: { default: void 0 }
|
|
27
27
|
},
|
|
28
28
|
setup(g) {
|
|
29
|
-
const B = h(() => import("./MazSpinner-
|
|
29
|
+
const B = h(() => import("./MazSpinner-B6Z6X_KC.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
|
|
30
30
|
w(() => {
|
|
31
31
|
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
32
|
});
|
|
33
33
|
const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
|
|
34
34
|
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
-
),
|
|
35
|
+
), b = l(
|
|
36
36
|
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
-
), C = l(() =>
|
|
37
|
+
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
|
|
38
38
|
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
-
disabled:
|
|
39
|
+
disabled: b.value,
|
|
40
40
|
class: s(["m-btn", [
|
|
41
41
|
`--${o.size}`,
|
|
42
42
|
z.value,
|
|
@@ -48,7 +48,7 @@ const P = /* @__PURE__ */ E({
|
|
|
48
48
|
"--no-leading": o.noLeading,
|
|
49
49
|
"--fab": o.fab,
|
|
50
50
|
"--loading": o.loading,
|
|
51
|
-
"--disabled":
|
|
51
|
+
"--disabled": b.value,
|
|
52
52
|
"--icon": M.value,
|
|
53
53
|
"--rounded": o.rounded,
|
|
54
54
|
"--no-rounded": o.noRounded,
|
|
@@ -59,7 +59,7 @@ const P = /* @__PURE__ */ E({
|
|
|
59
59
|
type: L.value
|
|
60
60
|
}, {
|
|
61
61
|
default: A(() => [
|
|
62
|
-
|
|
62
|
+
m.value ? (n(), u(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
key: 0,
|
|
@@ -145,7 +145,7 @@ const P = /* @__PURE__ */ E({
|
|
|
145
145
|
/* FORWARDED */
|
|
146
146
|
}, 8, ["disabled", "class", "type"]));
|
|
147
147
|
}
|
|
148
|
-
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-
|
|
148
|
+
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-be73a6f1"]]);
|
|
149
149
|
export {
|
|
150
150
|
V as default
|
|
151
151
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import '../assets/MazBtn.css';
|
|
2
|
+
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
+
import { _ as D } from "./MazDialogPromise-Blv60XZR.mjs";
|
|
4
|
+
const P = /* @__PURE__ */ E({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: { default: "button" },
|
|
8
|
+
size: { default: "md" },
|
|
9
|
+
color: { default: "primary" },
|
|
10
|
+
type: { default: "button" },
|
|
11
|
+
rounded: { type: Boolean },
|
|
12
|
+
noRounded: { type: Boolean },
|
|
13
|
+
outline: { type: Boolean },
|
|
14
|
+
pastel: { type: Boolean },
|
|
15
|
+
block: { type: Boolean },
|
|
16
|
+
noUnderline: { type: Boolean },
|
|
17
|
+
noLeading: { type: Boolean },
|
|
18
|
+
loading: { type: Boolean },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
fab: { type: Boolean },
|
|
21
|
+
icon: { default: void 0 },
|
|
22
|
+
leftIcon: { default: void 0 },
|
|
23
|
+
rightIcon: { default: void 0 },
|
|
24
|
+
noPadding: { type: Boolean },
|
|
25
|
+
noElevation: { type: Boolean },
|
|
26
|
+
contentClass: { default: void 0 }
|
|
27
|
+
},
|
|
28
|
+
setup(g) {
|
|
29
|
+
const B = h(() => import("./MazSpinner-DO1id61e.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
|
|
30
|
+
w(() => {
|
|
31
|
+
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
|
+
});
|
|
33
|
+
const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
|
|
34
|
+
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
+
), b = l(
|
|
36
|
+
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
+
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
|
|
38
|
+
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
+
disabled: b.value,
|
|
40
|
+
class: s(["m-btn", [
|
|
41
|
+
`--${o.size}`,
|
|
42
|
+
z.value,
|
|
43
|
+
C.value,
|
|
44
|
+
$.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": o.block,
|
|
47
|
+
"--no-underline": o.noUnderline,
|
|
48
|
+
"--no-leading": o.noLeading,
|
|
49
|
+
"--fab": o.fab,
|
|
50
|
+
"--loading": o.loading,
|
|
51
|
+
"--disabled": b.value,
|
|
52
|
+
"--icon": M.value,
|
|
53
|
+
"--rounded": o.rounded,
|
|
54
|
+
"--no-rounded": o.noRounded,
|
|
55
|
+
"--no-padding": o.noPadding,
|
|
56
|
+
"--no-elevation": o.noElevation
|
|
57
|
+
}
|
|
58
|
+
]]),
|
|
59
|
+
type: L.value
|
|
60
|
+
}, {
|
|
61
|
+
default: A(() => [
|
|
62
|
+
m.value ? (n(), u(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
key: 0,
|
|
66
|
+
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
t(`
|
|
70
|
+
@slot left-icon - The icon to display on the left of the button
|
|
71
|
+
`),
|
|
72
|
+
d(o.$slots, "left-icon", {}, () => [
|
|
73
|
+
typeof o.leftIcon == "string" ? (n(), a(c(f), {
|
|
74
|
+
key: 0,
|
|
75
|
+
name: o.leftIcon
|
|
76
|
+
}, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
|
|
77
|
+
], !0)
|
|
78
|
+
],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
)) : t("v-if", !0),
|
|
82
|
+
T.value ? (n(), u(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
key: 1,
|
|
86
|
+
class: s(["m-btn__icon", { "maz-invisible": i.value }])
|
|
87
|
+
},
|
|
88
|
+
[
|
|
89
|
+
t(`
|
|
90
|
+
@slot icon - The icon to display on the fab button
|
|
91
|
+
`),
|
|
92
|
+
d(o.$slots, "icon", {}, () => [
|
|
93
|
+
typeof o.icon == "string" ? (n(), a(c(f), {
|
|
94
|
+
key: 0,
|
|
95
|
+
name: o.icon
|
|
96
|
+
}, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
|
|
97
|
+
], !0)
|
|
98
|
+
],
|
|
99
|
+
2
|
|
100
|
+
/* CLASS */
|
|
101
|
+
)) : t("v-if", !0),
|
|
102
|
+
o.$slots.default ? (n(), u(
|
|
103
|
+
"span",
|
|
104
|
+
{
|
|
105
|
+
key: 2,
|
|
106
|
+
class: s([{ "maz-invisible": i.value }, o.contentClass])
|
|
107
|
+
},
|
|
108
|
+
[
|
|
109
|
+
t(`
|
|
110
|
+
@slot default - The content of the button
|
|
111
|
+
`),
|
|
112
|
+
d(o.$slots, "default", {}, void 0, !0)
|
|
113
|
+
],
|
|
114
|
+
2
|
|
115
|
+
/* CLASS */
|
|
116
|
+
)) : t("v-if", !0),
|
|
117
|
+
y.value ? (n(), u(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
key: 3,
|
|
121
|
+
class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
|
|
122
|
+
},
|
|
123
|
+
[
|
|
124
|
+
t(`
|
|
125
|
+
@slot right-icon - The icon to display on the right of the button
|
|
126
|
+
`),
|
|
127
|
+
d(o.$slots, "right-icon", {}, () => [
|
|
128
|
+
typeof o.rightIcon == "string" ? (n(), a(c(f), {
|
|
129
|
+
key: 0,
|
|
130
|
+
name: o.rightIcon
|
|
131
|
+
}, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
|
|
132
|
+
], !0)
|
|
133
|
+
],
|
|
134
|
+
2
|
|
135
|
+
/* CLASS */
|
|
136
|
+
)) : t("v-if", !0),
|
|
137
|
+
i.value ? (n(), a(c(B), {
|
|
138
|
+
key: 4,
|
|
139
|
+
class: "m-btn-loader",
|
|
140
|
+
size: "2em",
|
|
141
|
+
color: o.color
|
|
142
|
+
}, null, 8, ["color"])) : t("v-if", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
/* FORWARDED */
|
|
146
|
+
}, 8, ["disabled", "class", "type"]));
|
|
147
|
+
}
|
|
148
|
+
}), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-be73a6f1"]]);
|
|
149
|
+
export {
|
|
150
|
+
V as default
|
|
151
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/MazBtn.css';
|
|
2
|
-
import { defineComponent as E, defineAsyncComponent as I, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as E, defineAsyncComponent as I, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as d, normalizeClass as r, withCtx as A, createElementBlock as c, createCommentVNode as t, renderSlot as f, unref as p } from "vue";
|
|
3
3
|
const D = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -25,7 +25,7 @@ const D = /* @__PURE__ */ E({
|
|
|
25
25
|
contentClass: { default: void 0 }
|
|
26
26
|
},
|
|
27
27
|
setup(u) {
|
|
28
|
-
const v = I(() => import("./MazSpinner-
|
|
28
|
+
const v = I(() => import("./MazSpinner-Btk7fYzq.mjs")), i = I(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: b, to: y } = R(), m = S(), e = u;
|
|
29
29
|
w(() => {
|
|
30
30
|
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
31
|
});
|
|
@@ -34,7 +34,7 @@ const D = /* @__PURE__ */ E({
|
|
|
34
34
|
), g = l(
|
|
35
35
|
() => (e.loading || e.disabled) && h.value === "button"
|
|
36
36
|
), C = l(() => g.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), s = l(() => e.loading && e.variant === "button"), k = l(() => !!m["left-icon"] || e.leftIcon), B = l(() => !!m["right-icon"] || e.rightIcon), M = l(() => k.value || B.value), T = l(() => e.fab && (e.icon || !!m.icon)), L = l(() => h.value === "button" ? e.type : void 0);
|
|
37
|
-
return (o, U) => (n(), a(
|
|
37
|
+
return (o, U) => (n(), a(d(h.value), {
|
|
38
38
|
disabled: g.value,
|
|
39
39
|
class: r(["m-btn", [
|
|
40
40
|
`--${o.size}`,
|
|
@@ -58,7 +58,7 @@ const D = /* @__PURE__ */ E({
|
|
|
58
58
|
type: L.value
|
|
59
59
|
}, {
|
|
60
60
|
default: A(() => [
|
|
61
|
-
k.value ? (n(),
|
|
61
|
+
k.value ? (n(), c(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
key: 0,
|
|
@@ -72,13 +72,13 @@ const D = /* @__PURE__ */ E({
|
|
|
72
72
|
typeof o.leftIcon == "string" ? (n(), a(p(i), {
|
|
73
73
|
key: 0,
|
|
74
74
|
name: o.leftIcon
|
|
75
|
-
}, null, 8, ["name"])) : o.leftIcon ? (n(), a(
|
|
75
|
+
}, null, 8, ["name"])) : o.leftIcon ? (n(), a(d(o.leftIcon), { key: 1 })) : t("v-if", !0)
|
|
76
76
|
], !0)
|
|
77
77
|
],
|
|
78
78
|
2
|
|
79
79
|
/* CLASS */
|
|
80
80
|
)) : t("v-if", !0),
|
|
81
|
-
T.value ? (n(),
|
|
81
|
+
T.value ? (n(), c(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
key: 1,
|
|
@@ -92,13 +92,13 @@ const D = /* @__PURE__ */ E({
|
|
|
92
92
|
typeof o.icon == "string" ? (n(), a(p(i), {
|
|
93
93
|
key: 0,
|
|
94
94
|
name: o.icon
|
|
95
|
-
}, null, 8, ["name"])) : o.icon ? (n(), a(
|
|
95
|
+
}, null, 8, ["name"])) : o.icon ? (n(), a(d(o.icon), { key: 1 })) : t("v-if", !0)
|
|
96
96
|
], !0)
|
|
97
97
|
],
|
|
98
98
|
2
|
|
99
99
|
/* CLASS */
|
|
100
100
|
)) : t("v-if", !0),
|
|
101
|
-
o.$slots.default ? (n(),
|
|
101
|
+
o.$slots.default ? (n(), c(
|
|
102
102
|
"span",
|
|
103
103
|
{
|
|
104
104
|
key: 2,
|
|
@@ -113,7 +113,7 @@ const D = /* @__PURE__ */ E({
|
|
|
113
113
|
2
|
|
114
114
|
/* CLASS */
|
|
115
115
|
)) : t("v-if", !0),
|
|
116
|
-
B.value ? (n(),
|
|
116
|
+
B.value ? (n(), c(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
key: 3,
|
|
@@ -127,7 +127,7 @@ const D = /* @__PURE__ */ E({
|
|
|
127
127
|
typeof o.rightIcon == "string" ? (n(), a(p(i), {
|
|
128
128
|
key: 0,
|
|
129
129
|
name: o.rightIcon
|
|
130
|
-
}, null, 8, ["name"])) : o.rightIcon ? (n(), a(
|
|
130
|
+
}, null, 8, ["name"])) : o.rightIcon ? (n(), a(d(o.rightIcon), { key: 1 })) : t("v-if", !0)
|
|
131
131
|
], !0)
|
|
132
132
|
],
|
|
133
133
|
2
|
|
@@ -149,7 +149,7 @@ const D = /* @__PURE__ */ E({
|
|
|
149
149
|
for (const [b, y] of v)
|
|
150
150
|
i[b] = y;
|
|
151
151
|
return i;
|
|
152
|
-
}, N = /* @__PURE__ */ P(D, [["__scopeId", "data-v-
|
|
152
|
+
}, N = /* @__PURE__ */ P(D, [["__scopeId", "data-v-be73a6f1"]]);
|
|
153
153
|
export {
|
|
154
154
|
N as M,
|
|
155
155
|
P as _
|