maz-ui 3.49.0 → 3.49.2
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/MazAnimatedCounter.mjs +78 -73
- package/components/MazAnimatedElement.mjs +12 -12
- package/components/MazAnimatedText.mjs +5 -5
- 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/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +128 -123
- 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.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAnimatedElement.css +1 -1
- package/components/assets/MazAnimatedText.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.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/MazPicker.css +1 -1
- package/components/chunks/{MazBottomSheet-CNFupuJS.mjs → MazBottomSheet-CIXEEUpN.mjs} +1 -1
- package/components/chunks/MazBtn-9Jk8ZkBq.mjs +103 -0
- package/components/chunks/{MazBtn-BJNzz7YT.mjs → MazBtn-BHD7Xbr_.mjs} +3 -3
- package/components/chunks/{MazBtn-CKDJOBcC.mjs → MazBtn-BT4o0zLa.mjs} +2 -2
- package/components/chunks/{MazBtn-D53RC3KP.mjs → MazBtn-Ba8ff2Nu.mjs} +3 -3
- package/components/chunks/{MazBtn-DYURBZtp.mjs → MazBtn-Bdhu8JTk.mjs} +2 -2
- package/components/chunks/{MazBtn-BO1U1gVG.mjs → MazBtn-CbTqLKv1.mjs} +3 -3
- package/components/chunks/MazBtn-DAzJbcTl.mjs +103 -0
- package/components/chunks/{MazBtn-CP-m-KDm.mjs → MazBtn-DCGXwqRM.mjs} +3 -3
- package/components/chunks/MazBtn-DGIjSCP2.mjs +103 -0
- package/components/chunks/{MazBtn-CUoFOAML.mjs → MazBtn-DXinft-p.mjs} +3 -3
- package/components/chunks/MazBtn-DnpSuILi.mjs +103 -0
- package/components/chunks/{MazBtn-BugQGoO-.mjs → MazBtn-GYr50Ap4.mjs} +3 -3
- package/components/chunks/{MazBtn-Cyn7ObTB.mjs → MazBtn-IBh1tCot.mjs} +3 -3
- package/components/chunks/{MazBtn-MvFibIXn.mjs → MazBtn-UDAwHekF.mjs} +3 -3
- package/components/chunks/{MazCard-D-q6vhWd.mjs → MazCard-CQBFy8r_.mjs} +4 -4
- package/components/chunks/{MazCarousel-Z4XypOn_.mjs → MazCarousel-Bcn7nKDo.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DJi0g4uK.mjs → MazCheckbox-B8Rnqa6O.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DafMJoEw.mjs → MazCheckbox-Br41Nrq7.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BImOZ1aM.mjs → MazCheckbox-t4i9eR04.mjs} +1 -1
- package/components/chunks/{MazChecklist-DaEf6wix.mjs → MazChecklist-DLr57bfX.mjs} +1 -1
- package/components/chunks/{MazDialog-PVsds2Mw.mjs → MazDialog-ak7mSNff.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BdtiOZGU.mjs → MazDialogPromise-JvS9f5Of.mjs} +2 -2
- package/components/chunks/{MazDrawer-CMHe_JEh.mjs → MazDrawer-CTsb4x_4.mjs} +1 -1
- package/components/chunks/{MazDropdown-DpGSAqe0.mjs → MazDropdown-BxMokXYe.mjs} +1 -1
- package/components/chunks/{MazGallery-BtuCo-H0.mjs → MazGallery-C7Zp1iYc.mjs} +2 -2
- package/components/chunks/MazIcon-C47uJeFY.mjs +4 -0
- package/components/chunks/{MazIcon-Bnebkvf6.mjs → MazIcon-mGVzj6Xw.mjs} +1 -1
- package/components/chunks/{MazInput-C3QweR84.mjs → MazInput-BK2OXh6D.mjs} +73 -84
- package/components/chunks/{MazInput-DvaaM9Iq.mjs → MazInput-BWHAOFtO.mjs} +66 -77
- package/components/chunks/{MazInput-DjvBbUZl.mjs → MazInput-C2_KlBtJ.mjs} +67 -78
- package/components/chunks/{MazInputNumber-D904Pg1R.mjs → MazInputNumber-Bw6O0AGT.mjs} +104 -115
- package/components/chunks/{MazInputPrice-CQiJFPWB.mjs → MazInputPrice-BCM9ga_h.mjs} +104 -115
- package/components/chunks/{MazInputTags-BPSG1X1a.mjs → MazInputTags-B0B93sN-.mjs} +127 -138
- package/components/chunks/{MazLink-DnnBkVEE.mjs → MazLink-PEtIzV5x.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-Dm14PSs6.mjs → MazLoadingBar-BjzRnYVR.mjs} +1 -1
- package/components/chunks/{MazPagination-CuCKS1Qr.mjs → MazPagination-DKseqKmF.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-CKpP3yWz.mjs → MazPhoneNumberInput-CPm6LjfT.mjs} +354 -365
- package/components/chunks/MazPicker-BHBE1cC_.mjs +2482 -0
- package/components/chunks/{MazPickerMonthSwitcher-BDxk_Msi.mjs → MazPickerMonthSwitcher-CXfxTBNH.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DtHvsdEW.mjs → MazPickerShortcuts-BLuYu65Q.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DXkaTXFw.mjs → MazPickerYearSwitcher-CpSOH48Y.mjs} +1 -1
- package/components/chunks/{MazSelect-VAPsGKXy.mjs → MazSelect-CdSRiSW9.mjs} +3 -3
- package/components/chunks/{MazSelect-cthYMQqx.mjs → MazSelect-uHsahxjj.mjs} +188 -199
- package/components/chunks/{MazSpinner-Ba5WXlbx.mjs → MazSpinner-B3mUm5mz.mjs} +1 -1
- package/components/chunks/MazSpinner-B698e0ut.mjs +34 -0
- package/components/chunks/{MazSpinner-B5j5EaKc.mjs → MazSpinner-BEW98Fow.mjs} +1 -1
- package/components/chunks/{MazSpinner-94rvbsAk.mjs → MazSpinner-BqMt92KT.mjs} +1 -1
- package/components/chunks/{MazSpinner-DtFpBxRT.mjs → MazSpinner-Bs8Z0Ewo.mjs} +1 -1
- package/components/chunks/MazSpinner-C2OD6LW3.mjs +34 -0
- package/components/chunks/MazSpinner-C3zQC9oz.mjs +34 -0
- package/components/chunks/MazSpinner-C5pIord0.mjs +34 -0
- package/components/chunks/MazSpinner-C8KOYxzi.mjs +34 -0
- package/components/chunks/{MazSpinner-DLR4lVAu.mjs → MazSpinner-C8zfJPRU.mjs} +1 -1
- package/components/chunks/{MazSpinner-BLh6PkZJ.mjs → MazSpinner-C_uLffb-.mjs} +1 -1
- package/components/chunks/{MazSpinner-C2mutMJX.mjs → MazSpinner-Cu7WoA4N.mjs} +1 -1
- package/components/chunks/MazSpinner-CyqPQ7SW.mjs +34 -0
- package/components/chunks/MazSpinner-DV634NYb.mjs +34 -0
- package/components/chunks/MazSpinner-DW_14RuN.mjs +34 -0
- package/components/chunks/{MazSpinner-SnOek826.mjs → MazSpinner-DwQiUPTZ.mjs} +1 -1
- package/components/chunks/MazSpinner-zV6qnXaD.mjs +34 -0
- package/components/chunks/{MazTable-BuFlCw1p.mjs → MazTable-B5BMpCK1.mjs} +1 -1
- package/components/chunks/{MazTableCell-C6oDOvNH.mjs → MazTableCell-7Ahz87mm.mjs} +1 -1
- package/components/chunks/{MazTableRow-BBS8sW7w.mjs → MazTableRow-B0JiP3mV.mjs} +1 -1
- package/components/chunks/{MazTableTitle-D7J-0k_j.mjs → MazTableTitle-BdajfMLo.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-BlcqxvGq.mjs → MazTransitionExpand-BO_9-l3g.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-BjiQC2PC.mjs → MazBtn-CvuJewxV.mjs} +3 -3
- package/modules/chunks/{MazBtn-BnQrui8R.cjs → MazBtn-eZwyrxMU.cjs} +1 -1
- package/modules/chunks/{MazIcon-DwFVj44O.mjs → MazIcon-CeCRHfan.mjs} +1 -1
- package/modules/chunks/{MazIcon-D4oz63T8.cjs → MazIcon-u9VBpDx8.cjs} +1 -1
- package/modules/chunks/{MazSpinner-B18bQ49b.cjs → MazSpinner-BY5lnQ7u.cjs} +1 -1
- package/modules/chunks/{MazSpinner-7nqeVBxW.mjs → MazSpinner-DdDJ5vzJ.mjs} +1 -1
- package/modules/chunks/{index-D8S1X6Fy.mjs → index--62sMUK_.mjs} +4 -4
- package/modules/chunks/{index-IBifh-oY.cjs → index-Bq7zqUSE.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/components/chunks/MazBtn-DiYly5sp.mjs +0 -103
- package/components/chunks/MazBtn-Dlx6nLm2.mjs +0 -103
- package/components/chunks/MazBtn-MJYP-poo.mjs +0 -103
- package/components/chunks/MazBtn-tS9ACNLi.mjs +0 -103
- package/components/chunks/MazIcon-C7ZMosGw.mjs +0 -4
- package/components/chunks/MazPicker-g10_1sY_.mjs +0 -2493
- package/components/chunks/MazSpinner-C7TbmneX.mjs +0 -34
- package/components/chunks/MazSpinner-CcshuKK9.mjs +0 -34
- package/components/chunks/MazSpinner-D2J_jdkK.mjs +0 -34
- package/components/chunks/MazSpinner-DIzWfhcT.mjs +0 -34
- package/components/chunks/MazSpinner-DP019rLG.mjs +0 -34
- package/components/chunks/MazSpinner-DXCofnqs.mjs +0 -34
- package/components/chunks/MazSpinner-DmeOhZXm.mjs +0 -34
- package/components/chunks/MazSpinner-ZDRUpUqo.mjs +0 -34
- package/components/chunks/MazSpinner-qRqfN8k4.mjs +0 -34
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazDialogPromise-BdtiOZGU.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const O = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, A = /* @__PURE__ */ C({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-DXCofnqs.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
-
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
-
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
-
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn m-reset-css", [
|
|
37
|
-
`--${e.size}`,
|
|
38
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
-
g.value,
|
|
40
|
-
B.value,
|
|
41
|
-
k.value,
|
|
42
|
-
{
|
|
43
|
-
"--block": e.block,
|
|
44
|
-
"--no-underline": e.noUnderline,
|
|
45
|
-
"--fab": e.fab,
|
|
46
|
-
"--loading": e.loading,
|
|
47
|
-
"--disabled": p.value,
|
|
48
|
-
"--rounded": e.rounded,
|
|
49
|
-
"--no-rounded": e.noRounded,
|
|
50
|
-
"--no-padding": e.noPadding,
|
|
51
|
-
"--no-elevation": e.noElevation
|
|
52
|
-
}
|
|
53
|
-
]]),
|
|
54
|
-
style: S([`--justify: ${e.justify}`]),
|
|
55
|
-
type: h.value
|
|
56
|
-
}, {
|
|
57
|
-
default: j(() => [
|
|
58
|
-
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
-
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
-
key: 0,
|
|
61
|
-
name: e.leftIcon,
|
|
62
|
-
class: a([s.value])
|
|
63
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: a([s.value])
|
|
66
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
-
], !0),
|
|
68
|
-
i(e.$slots, "icon", {}, () => [
|
|
69
|
-
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: e.icon,
|
|
72
|
-
class: a([s.value])
|
|
73
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: a([s.value])
|
|
76
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
-
], !0),
|
|
78
|
-
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
-
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
-
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: e.rightIcon,
|
|
83
|
-
class: a([s.value])
|
|
84
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: a([s.value])
|
|
87
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
-
], !0),
|
|
89
|
-
I.value ? (t(), M("div", O, [
|
|
90
|
-
E(u(v), {
|
|
91
|
-
size: "2em",
|
|
92
|
-
color: e.color
|
|
93
|
-
}, null, 8, ["color"])
|
|
94
|
-
])) : d("v-if", !0)
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
/* FORWARDED */
|
|
98
|
-
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
-
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-5acb3b32"]]);
|
|
101
|
-
export {
|
|
102
|
-
R as default
|
|
103
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazCarousel-Z4XypOn_.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const O = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, A = /* @__PURE__ */ C({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-D2J_jdkK.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
-
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
-
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
-
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn m-reset-css", [
|
|
37
|
-
`--${e.size}`,
|
|
38
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
-
g.value,
|
|
40
|
-
B.value,
|
|
41
|
-
k.value,
|
|
42
|
-
{
|
|
43
|
-
"--block": e.block,
|
|
44
|
-
"--no-underline": e.noUnderline,
|
|
45
|
-
"--fab": e.fab,
|
|
46
|
-
"--loading": e.loading,
|
|
47
|
-
"--disabled": p.value,
|
|
48
|
-
"--rounded": e.rounded,
|
|
49
|
-
"--no-rounded": e.noRounded,
|
|
50
|
-
"--no-padding": e.noPadding,
|
|
51
|
-
"--no-elevation": e.noElevation
|
|
52
|
-
}
|
|
53
|
-
]]),
|
|
54
|
-
style: S([`--justify: ${e.justify}`]),
|
|
55
|
-
type: h.value
|
|
56
|
-
}, {
|
|
57
|
-
default: j(() => [
|
|
58
|
-
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
-
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
-
key: 0,
|
|
61
|
-
name: e.leftIcon,
|
|
62
|
-
class: a([s.value])
|
|
63
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: a([s.value])
|
|
66
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
-
], !0),
|
|
68
|
-
i(e.$slots, "icon", {}, () => [
|
|
69
|
-
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: e.icon,
|
|
72
|
-
class: a([s.value])
|
|
73
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: a([s.value])
|
|
76
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
-
], !0),
|
|
78
|
-
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
-
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
-
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: e.rightIcon,
|
|
83
|
-
class: a([s.value])
|
|
84
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: a([s.value])
|
|
87
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
-
], !0),
|
|
89
|
-
I.value ? (t(), M("div", O, [
|
|
90
|
-
E(u(v), {
|
|
91
|
-
size: "2em",
|
|
92
|
-
color: e.color
|
|
93
|
-
}, null, 8, ["color"])
|
|
94
|
-
])) : d("v-if", !0)
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
/* FORWARDED */
|
|
98
|
-
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
-
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-5acb3b32"]]);
|
|
101
|
-
export {
|
|
102
|
-
R as default
|
|
103
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazChecklist-DaEf6wix.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const O = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, A = /* @__PURE__ */ C({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-DIzWfhcT.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
-
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
-
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
-
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn m-reset-css", [
|
|
37
|
-
`--${e.size}`,
|
|
38
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
-
g.value,
|
|
40
|
-
B.value,
|
|
41
|
-
k.value,
|
|
42
|
-
{
|
|
43
|
-
"--block": e.block,
|
|
44
|
-
"--no-underline": e.noUnderline,
|
|
45
|
-
"--fab": e.fab,
|
|
46
|
-
"--loading": e.loading,
|
|
47
|
-
"--disabled": p.value,
|
|
48
|
-
"--rounded": e.rounded,
|
|
49
|
-
"--no-rounded": e.noRounded,
|
|
50
|
-
"--no-padding": e.noPadding,
|
|
51
|
-
"--no-elevation": e.noElevation
|
|
52
|
-
}
|
|
53
|
-
]]),
|
|
54
|
-
style: S([`--justify: ${e.justify}`]),
|
|
55
|
-
type: h.value
|
|
56
|
-
}, {
|
|
57
|
-
default: j(() => [
|
|
58
|
-
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
-
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
-
key: 0,
|
|
61
|
-
name: e.leftIcon,
|
|
62
|
-
class: a([s.value])
|
|
63
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: a([s.value])
|
|
66
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
-
], !0),
|
|
68
|
-
i(e.$slots, "icon", {}, () => [
|
|
69
|
-
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: e.icon,
|
|
72
|
-
class: a([s.value])
|
|
73
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: a([s.value])
|
|
76
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
-
], !0),
|
|
78
|
-
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
-
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
-
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: e.rightIcon,
|
|
83
|
-
class: a([s.value])
|
|
84
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: a([s.value])
|
|
87
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
-
], !0),
|
|
89
|
-
I.value ? (t(), M("div", O, [
|
|
90
|
-
E(u(v), {
|
|
91
|
-
size: "2em",
|
|
92
|
-
color: e.color
|
|
93
|
-
}, null, 8, ["color"])
|
|
94
|
-
])) : d("v-if", !0)
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
/* FORWARDED */
|
|
98
|
-
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
-
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-5acb3b32"]]);
|
|
101
|
-
export {
|
|
102
|
-
R as default
|
|
103
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazInputPrice-CQiJFPWB.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const O = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, A = /* @__PURE__ */ C({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-C7TbmneX.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
-
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
-
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
-
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn m-reset-css", [
|
|
37
|
-
`--${e.size}`,
|
|
38
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
-
g.value,
|
|
40
|
-
B.value,
|
|
41
|
-
k.value,
|
|
42
|
-
{
|
|
43
|
-
"--block": e.block,
|
|
44
|
-
"--no-underline": e.noUnderline,
|
|
45
|
-
"--fab": e.fab,
|
|
46
|
-
"--loading": e.loading,
|
|
47
|
-
"--disabled": p.value,
|
|
48
|
-
"--rounded": e.rounded,
|
|
49
|
-
"--no-rounded": e.noRounded,
|
|
50
|
-
"--no-padding": e.noPadding,
|
|
51
|
-
"--no-elevation": e.noElevation
|
|
52
|
-
}
|
|
53
|
-
]]),
|
|
54
|
-
style: S([`--justify: ${e.justify}`]),
|
|
55
|
-
type: h.value
|
|
56
|
-
}, {
|
|
57
|
-
default: j(() => [
|
|
58
|
-
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
-
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
-
key: 0,
|
|
61
|
-
name: e.leftIcon,
|
|
62
|
-
class: a([s.value])
|
|
63
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: a([s.value])
|
|
66
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
-
], !0),
|
|
68
|
-
i(e.$slots, "icon", {}, () => [
|
|
69
|
-
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: e.icon,
|
|
72
|
-
class: a([s.value])
|
|
73
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: a([s.value])
|
|
76
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
-
], !0),
|
|
78
|
-
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
-
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
-
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: e.rightIcon,
|
|
83
|
-
class: a([s.value])
|
|
84
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: a([s.value])
|
|
87
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
-
], !0),
|
|
89
|
-
I.value ? (t(), M("div", O, [
|
|
90
|
-
E(u(v), {
|
|
91
|
-
size: "2em",
|
|
92
|
-
color: e.color
|
|
93
|
-
}, null, 8, ["color"])
|
|
94
|
-
])) : d("v-if", !0)
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
/* FORWARDED */
|
|
98
|
-
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
-
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-5acb3b32"]]);
|
|
101
|
-
export {
|
|
102
|
-
R as default
|
|
103
|
-
};
|