maz-ui 3.46.1-beta.4 → 3.46.1-beta.6
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/MazAccordion.d.ts +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +5 -4
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +61 -61
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +4 -0
- package/components/MazDropdown.mjs +98 -93
- package/components/MazIcon.mjs +55 -67
- 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/MazLink.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +33 -33
- package/components/MazTable.d.ts +33 -4
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazDropdown.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/MazPicker.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/chunks/{MazBottomSheet-DQTlEDlz.mjs → MazBottomSheet-DeAah_or.mjs} +1 -1
- package/components/chunks/MazBtn-BV212IYv.mjs +118 -0
- package/components/chunks/MazBtn-BXvObcWn.mjs +118 -0
- package/components/chunks/MazBtn-C2dJYsnq.mjs +118 -0
- package/components/chunks/MazBtn-C2htID_X.mjs +118 -0
- package/components/chunks/MazBtn-C4xZC-A2.mjs +118 -0
- package/components/chunks/MazBtn-C5IbN0rp.mjs +123 -0
- package/components/chunks/MazBtn-CEFfMm7k.mjs +118 -0
- package/components/chunks/MazBtn-CESOVC-a.mjs +118 -0
- package/components/chunks/MazBtn-CLFly8Ie.mjs +118 -0
- package/components/chunks/MazBtn-CRpqDW12.mjs +118 -0
- package/components/chunks/MazBtn-D2H26ExI.mjs +118 -0
- package/components/chunks/MazBtn-y4vRRWDg.mjs +118 -0
- package/components/chunks/MazBtn-zMzxqcCs.mjs +126 -0
- package/components/chunks/{MazCard-BapktHxt.mjs → MazCard-BF-2_gZV.mjs} +1 -1
- package/components/chunks/{MazCarousel-DYdWCLk7.mjs → MazCarousel-DVBUt8NL.mjs} +1 -1
- package/components/chunks/{MazCheckbox-m1322Y67.mjs → MazCheckbox-CEfJco3U.mjs} +32 -32
- package/components/chunks/MazCheckbox-CeVxgVY8.mjs +146 -0
- package/components/chunks/{MazCheckbox-DOYkVPMK.mjs → MazCheckbox-mgtQBs4K.mjs} +32 -32
- package/components/chunks/{MazDialog-DbEp5ZrT.mjs → MazDialog-fn7vXgBg.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-B2WdAwbv.mjs → MazDialogPromise-C8dpQb5k.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-BFyvL-vh.mjs → MazExpandAnimation-Bkw_wFTi.mjs} +1 -1
- package/components/chunks/{MazGallery-HtChfMa_.mjs → MazGallery-CXJsK5ve.mjs} +2 -2
- package/components/chunks/MazIcon-BXX3RaoN.mjs +101 -0
- package/components/chunks/MazIcon-BbvBov5G.mjs +106 -0
- package/components/chunks/MazIcon-DjMuw8Bz.mjs +101 -0
- package/components/chunks/MazInput-AcA93-8Q.mjs +291 -0
- package/components/chunks/{MazInput-fbdOvhry.mjs → MazInput-Dnwxraz4.mjs} +1 -1
- package/components/chunks/MazInputNumber-OY_UqCMs.mjs +593 -0
- package/components/chunks/{MazInputPrice-Y6lalrWq.mjs → MazInputPrice-DvVAZa12.mjs} +1 -1
- package/components/chunks/{MazInputTags-DVYW4SbE.mjs → MazInputTags-DKlGT2IB.mjs} +205 -240
- package/components/chunks/{MazLink-HJI1YmdA.mjs → MazLink-Dl9ePCGm.mjs} +1 -1
- package/components/chunks/MazLoadingBar-By1umvdC.mjs +32 -0
- package/components/chunks/MazPagination-BL9LU84U.mjs +362 -0
- package/components/chunks/{MazPhoneNumberInput-BbeofPj5.mjs → MazPhoneNumberInput-C7gUk5lg.mjs} +3 -3
- package/components/chunks/{MazPicker-BPH4sy2Q.mjs → MazPicker-Dhm3u2MN.mjs} +620 -652
- package/components/chunks/{MazPickerMonthSwitcher-Ca4BqrF-.mjs → MazPickerMonthSwitcher-ck8cl1-N.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bs2RMdC_.mjs → MazPickerShortcuts-hEpUqVC-.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-Bg_0ecwk.mjs → MazPickerYearSwitcher-CmMxOc69.mjs} +1 -1
- package/components/chunks/MazSelect-CGsMRdr7.mjs +568 -0
- package/components/chunks/{MazSelect-CUo_OXDp.mjs → MazSelect-ed445MXs.mjs} +2 -2
- package/components/chunks/{MazSpinner-BAHWcgal.mjs → MazSpinner-Akyx5wgU.mjs} +1 -1
- package/components/chunks/MazSpinner-B2dsE23u.mjs +37 -0
- package/components/chunks/{MazSpinner-D9K-TsT7.mjs → MazSpinner-BCOeuzTB.mjs} +1 -1
- package/components/chunks/MazSpinner-BakExtKd.mjs +37 -0
- package/components/chunks/{MazSpinner-Cl4Yy1dv.mjs → MazSpinner-C9meLNrb.mjs} +1 -1
- package/components/chunks/{MazSpinner-CShEq13p.mjs → MazSpinner-CKOy0M1T.mjs} +1 -1
- package/components/chunks/MazSpinner-CL6orjX7.mjs +37 -0
- package/components/chunks/{MazSpinner-2KA4ECS_.mjs → MazSpinner-CQTq0J6f.mjs} +1 -1
- package/components/chunks/{MazSpinner-BLp7sE5i.mjs → MazSpinner-CeZk8jA9.mjs} +1 -1
- package/components/chunks/MazSpinner-CqS3onAE.mjs +37 -0
- package/components/chunks/{MazSpinner-AyzqowuD.mjs → MazSpinner-D1zj-581.mjs} +1 -1
- package/components/chunks/MazSpinner-DJ2t85tY.mjs +37 -0
- package/components/chunks/{MazSpinner-BhFMGOGc.mjs → MazSpinner-DbaTlD5B.mjs} +1 -1
- package/components/chunks/MazSpinner-DgJ9tVv_.mjs +37 -0
- package/components/chunks/{MazSpinner-CLfp6QHS.mjs → MazSpinner-DoKvoICM.mjs} +1 -1
- package/components/chunks/MazSpinner-Oy4E193R.mjs +37 -0
- package/components/chunks/{MazStepper-BmCk5RfP.mjs → MazStepper-DRWtYHZR.mjs} +1 -1
- package/components/chunks/MazTable-QwG-Kh88.mjs +692 -0
- package/components/chunks/MazTableCell-BSNyqTSX.mjs +23 -0
- package/components/chunks/MazTableRow-CgubMdrX.mjs +30 -0
- package/components/chunks/MazTableTitle-h4dattYD.mjs +23 -0
- package/components/chunks/{MazTransitionExpand-D9pcEmUk.mjs → MazTransitionExpand-BvqRDM9d.mjs} +1 -1
- package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
- package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-DeAZcD0R.cjs +9 -0
- package/modules/chunks/MazBtn-DvffpPyV.mjs +118 -0
- package/modules/chunks/MazIcon-BiwOZEZl.cjs +1 -0
- package/modules/chunks/MazIcon-D2B0umvn.mjs +101 -0
- package/modules/chunks/{MazSpinner-zX9CPyJB.cjs → MazSpinner-CZIYnX05.cjs} +1 -1
- package/modules/chunks/{MazSpinner-g6fliUmS.mjs → MazSpinner-Csgl_Uho.mjs} +1 -1
- package/modules/chunks/index-B6Pf_QhC.cjs +149 -0
- package/modules/chunks/{index-Bpj_Jr6I.mjs → index-C34aEXzu.mjs} +319 -314
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazAccordion.vue.d.ts +1 -1
- package/types/components/MazBtn.vue.d.ts +5 -4
- package/types/components/MazCardSpotlight.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +4 -0
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +33 -4
- package/components/chunks/MazBtn-B2A4nNWi.mjs +0 -150
- package/components/chunks/MazBtn-BTxqbijR.mjs +0 -158
- package/components/chunks/MazBtn-BYAmxCNV.mjs +0 -150
- package/components/chunks/MazBtn-BkBaNYfi.mjs +0 -150
- package/components/chunks/MazBtn-BkT-9nbu.mjs +0 -150
- package/components/chunks/MazBtn-C6b9OPzf.mjs +0 -150
- package/components/chunks/MazBtn-CAioWjHE.mjs +0 -150
- package/components/chunks/MazBtn-CTDhJ_fQ.mjs +0 -155
- package/components/chunks/MazBtn-CofOhh-q.mjs +0 -150
- package/components/chunks/MazBtn-CwkvhgML.mjs +0 -150
- package/components/chunks/MazBtn-DHFCbHI5.mjs +0 -150
- package/components/chunks/MazBtn-DgmsRNq_.mjs +0 -150
- package/components/chunks/MazIcon-BDGxCy9M.mjs +0 -118
- package/components/chunks/MazIcon-YNJa-F5Z.mjs +0 -113
- package/components/chunks/MazIcon-wDqK0Xre.mjs +0 -113
- package/components/chunks/MazInputNumber-mu9wEfTT.mjs +0 -625
- package/components/chunks/MazPagination-BOUDMaJO.mjs +0 -394
- package/components/chunks/MazSpinner-C91Lm_Xp.mjs +0 -37
- package/components/chunks/MazSpinner-CCIMQLA1.mjs +0 -37
- package/components/chunks/MazSpinner-Ch7Qhq1M.mjs +0 -37
- package/components/chunks/MazSpinner-D7CMPaDb.mjs +0 -37
- package/components/chunks/MazSpinner-D8uk4SQh.mjs +0 -37
- package/components/chunks/MazSpinner-JgB1pud8.mjs +0 -37
- package/components/chunks/MazSpinner-mCkWhiVE.mjs +0 -37
- package/components/chunks/MazTable-CPfwUOOM.mjs +0 -2003
- package/modules/chunks/MazBtn-B5URGSZl.cjs +0 -9
- package/modules/chunks/MazBtn-DRuL8cjg.mjs +0 -150
- package/modules/chunks/MazIcon-BskR2yy9.cjs +0 -1
- package/modules/chunks/MazIcon-CKc-vAA8.mjs +0 -113
- package/modules/chunks/index-BLdtEKD5.cjs +0 -149
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
+
import { _ as D } from "./MazInputPrice-DvVAZa12.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const L = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, N = /* @__PURE__ */ M({
|
|
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(b) {
|
|
31
|
+
const n = b, z = v(() => import("./MazSpinner-BakExtKd.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), p = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = 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" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, P) => (l(), a(r(y.value), {
|
|
37
|
+
disabled: p.value || void 0,
|
|
38
|
+
class: s(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
F.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": p.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: T.value
|
|
59
|
+
}, {
|
|
60
|
+
default: O(() => [
|
|
61
|
+
t(`
|
|
62
|
+
@slot left-icon - The icon to display on the left of the button
|
|
63
|
+
`),
|
|
64
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
65
|
+
typeof e.leftIcon == "string" ? (l(), a(d(c), {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: e.leftIcon,
|
|
68
|
+
class: s([i.value])
|
|
69
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: s([i.value])
|
|
72
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
73
|
+
], !0),
|
|
74
|
+
t(`
|
|
75
|
+
@slot icon - The icon to display on the fab button
|
|
76
|
+
`),
|
|
77
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
78
|
+
typeof e.icon == "string" ? (l(), a(d(c), {
|
|
79
|
+
key: 0,
|
|
80
|
+
name: e.icon,
|
|
81
|
+
class: s([i.value])
|
|
82
|
+
}, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: s([i.value])
|
|
85
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
86
|
+
], !0) : t("v-if", !0),
|
|
87
|
+
t(`
|
|
88
|
+
@slot default - The content of the button
|
|
89
|
+
`),
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
91
|
+
t(`
|
|
92
|
+
@slot left-icon - The icon to display on the left of the button
|
|
93
|
+
`),
|
|
94
|
+
m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
95
|
+
typeof e.rightIcon == "string" ? (l(), a(d(c), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: e.rightIcon,
|
|
98
|
+
class: s([i.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: s([i.value])
|
|
102
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
103
|
+
], !0) : t("v-if", !0),
|
|
104
|
+
B.value ? (l(), R("div", L, [
|
|
105
|
+
A(d(z), {
|
|
106
|
+
size: "2em",
|
|
107
|
+
color: e.color
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])) : t("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["disabled", "class", "type"]));
|
|
114
|
+
}
|
|
115
|
+
}), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-5aedac30"]]);
|
|
116
|
+
export {
|
|
117
|
+
q as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
+
import { _ as D } from "./MazTable-QwG-Kh88.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const L = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, N = /* @__PURE__ */ M({
|
|
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(b) {
|
|
31
|
+
const n = b, z = v(() => import("./MazSpinner-C9meLNrb.mjs")), c = v(() => import("./MazIcon-DjMuw8Bz.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), p = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = 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" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, P) => (l(), a(r(y.value), {
|
|
37
|
+
disabled: p.value || void 0,
|
|
38
|
+
class: s(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
F.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": p.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: T.value
|
|
59
|
+
}, {
|
|
60
|
+
default: O(() => [
|
|
61
|
+
t(`
|
|
62
|
+
@slot left-icon - The icon to display on the left of the button
|
|
63
|
+
`),
|
|
64
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
65
|
+
typeof e.leftIcon == "string" ? (l(), a(d(c), {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: e.leftIcon,
|
|
68
|
+
class: s([i.value])
|
|
69
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: s([i.value])
|
|
72
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
73
|
+
], !0),
|
|
74
|
+
t(`
|
|
75
|
+
@slot icon - The icon to display on the fab button
|
|
76
|
+
`),
|
|
77
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
78
|
+
typeof e.icon == "string" ? (l(), a(d(c), {
|
|
79
|
+
key: 0,
|
|
80
|
+
name: e.icon,
|
|
81
|
+
class: s([i.value])
|
|
82
|
+
}, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: s([i.value])
|
|
85
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
86
|
+
], !0) : t("v-if", !0),
|
|
87
|
+
t(`
|
|
88
|
+
@slot default - The content of the button
|
|
89
|
+
`),
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
91
|
+
t(`
|
|
92
|
+
@slot left-icon - The icon to display on the left of the button
|
|
93
|
+
`),
|
|
94
|
+
m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
95
|
+
typeof e.rightIcon == "string" ? (l(), a(d(c), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: e.rightIcon,
|
|
98
|
+
class: s([i.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: s([i.value])
|
|
102
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
103
|
+
], !0) : t("v-if", !0),
|
|
104
|
+
B.value ? (l(), R("div", L, [
|
|
105
|
+
A(d(z), {
|
|
106
|
+
size: "2em",
|
|
107
|
+
color: e.color
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])) : t("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["disabled", "class", "type"]));
|
|
114
|
+
}
|
|
115
|
+
}), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-5aedac30"]]);
|
|
116
|
+
export {
|
|
117
|
+
q as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
+
import { _ as D } from "./MazCard-BF-2_gZV.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const L = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, N = /* @__PURE__ */ M({
|
|
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(b) {
|
|
31
|
+
const n = b, z = v(() => import("./MazSpinner-BCOeuzTB.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), p = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = 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" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, P) => (l(), a(r(y.value), {
|
|
37
|
+
disabled: p.value || void 0,
|
|
38
|
+
class: s(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
F.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": p.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: T.value
|
|
59
|
+
}, {
|
|
60
|
+
default: O(() => [
|
|
61
|
+
t(`
|
|
62
|
+
@slot left-icon - The icon to display on the left of the button
|
|
63
|
+
`),
|
|
64
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
65
|
+
typeof e.leftIcon == "string" ? (l(), a(d(c), {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: e.leftIcon,
|
|
68
|
+
class: s([i.value])
|
|
69
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: s([i.value])
|
|
72
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
73
|
+
], !0),
|
|
74
|
+
t(`
|
|
75
|
+
@slot icon - The icon to display on the fab button
|
|
76
|
+
`),
|
|
77
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
78
|
+
typeof e.icon == "string" ? (l(), a(d(c), {
|
|
79
|
+
key: 0,
|
|
80
|
+
name: e.icon,
|
|
81
|
+
class: s([i.value])
|
|
82
|
+
}, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: s([i.value])
|
|
85
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
86
|
+
], !0) : t("v-if", !0),
|
|
87
|
+
t(`
|
|
88
|
+
@slot default - The content of the button
|
|
89
|
+
`),
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
91
|
+
t(`
|
|
92
|
+
@slot left-icon - The icon to display on the left of the button
|
|
93
|
+
`),
|
|
94
|
+
m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
95
|
+
typeof e.rightIcon == "string" ? (l(), a(d(c), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: e.rightIcon,
|
|
98
|
+
class: s([i.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: s([i.value])
|
|
102
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
103
|
+
], !0) : t("v-if", !0),
|
|
104
|
+
B.value ? (l(), R("div", L, [
|
|
105
|
+
A(d(z), {
|
|
106
|
+
size: "2em",
|
|
107
|
+
color: e.color
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])) : t("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["disabled", "class", "type"]));
|
|
114
|
+
}
|
|
115
|
+
}), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-5aedac30"]]);
|
|
116
|
+
export {
|
|
117
|
+
q as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
+
import { _ as D } from "./MazPhoneNumberInput-C7gUk5lg.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const L = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, N = /* @__PURE__ */ M({
|
|
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(b) {
|
|
31
|
+
const n = b, z = v(() => import("./MazSpinner-Oy4E193R.mjs")), c = v(() => import("./MazIcon-BXX3RaoN.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), p = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = 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" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, P) => (l(), a(r(y.value), {
|
|
37
|
+
disabled: p.value || void 0,
|
|
38
|
+
class: s(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
F.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": p.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: T.value
|
|
59
|
+
}, {
|
|
60
|
+
default: O(() => [
|
|
61
|
+
t(`
|
|
62
|
+
@slot left-icon - The icon to display on the left of the button
|
|
63
|
+
`),
|
|
64
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
65
|
+
typeof e.leftIcon == "string" ? (l(), a(d(c), {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: e.leftIcon,
|
|
68
|
+
class: s([i.value])
|
|
69
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: s([i.value])
|
|
72
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
73
|
+
], !0),
|
|
74
|
+
t(`
|
|
75
|
+
@slot icon - The icon to display on the fab button
|
|
76
|
+
`),
|
|
77
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
78
|
+
typeof e.icon == "string" ? (l(), a(d(c), {
|
|
79
|
+
key: 0,
|
|
80
|
+
name: e.icon,
|
|
81
|
+
class: s([i.value])
|
|
82
|
+
}, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: s([i.value])
|
|
85
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
86
|
+
], !0) : t("v-if", !0),
|
|
87
|
+
t(`
|
|
88
|
+
@slot default - The content of the button
|
|
89
|
+
`),
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
91
|
+
t(`
|
|
92
|
+
@slot left-icon - The icon to display on the left of the button
|
|
93
|
+
`),
|
|
94
|
+
m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
95
|
+
typeof e.rightIcon == "string" ? (l(), a(d(c), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: e.rightIcon,
|
|
98
|
+
class: s([i.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: s([i.value])
|
|
102
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
103
|
+
], !0) : t("v-if", !0),
|
|
104
|
+
B.value ? (l(), R("div", L, [
|
|
105
|
+
A(d(z), {
|
|
106
|
+
size: "2em",
|
|
107
|
+
color: e.color
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])) : t("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["disabled", "class", "type"]));
|
|
114
|
+
}
|
|
115
|
+
}), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-5aedac30"]]);
|
|
116
|
+
export {
|
|
117
|
+
q as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
+
import { _ as D } from "./MazInput-Dnwxraz4.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const L = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, N = /* @__PURE__ */ M({
|
|
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(b) {
|
|
31
|
+
const n = b, z = v(() => import("./MazSpinner-DoKvoICM.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), p = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = 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" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, P) => (l(), a(r(y.value), {
|
|
37
|
+
disabled: p.value || void 0,
|
|
38
|
+
class: s(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
F.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": p.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: T.value
|
|
59
|
+
}, {
|
|
60
|
+
default: O(() => [
|
|
61
|
+
t(`
|
|
62
|
+
@slot left-icon - The icon to display on the left of the button
|
|
63
|
+
`),
|
|
64
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
65
|
+
typeof e.leftIcon == "string" ? (l(), a(d(c), {
|
|
66
|
+
key: 0,
|
|
67
|
+
name: e.leftIcon,
|
|
68
|
+
class: s([i.value])
|
|
69
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: s([i.value])
|
|
72
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
73
|
+
], !0),
|
|
74
|
+
t(`
|
|
75
|
+
@slot icon - The icon to display on the fab button
|
|
76
|
+
`),
|
|
77
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
78
|
+
typeof e.icon == "string" ? (l(), a(d(c), {
|
|
79
|
+
key: 0,
|
|
80
|
+
name: e.icon,
|
|
81
|
+
class: s([i.value])
|
|
82
|
+
}, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: s([i.value])
|
|
85
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
86
|
+
], !0) : t("v-if", !0),
|
|
87
|
+
t(`
|
|
88
|
+
@slot default - The content of the button
|
|
89
|
+
`),
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
91
|
+
t(`
|
|
92
|
+
@slot left-icon - The icon to display on the left of the button
|
|
93
|
+
`),
|
|
94
|
+
m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
95
|
+
typeof e.rightIcon == "string" ? (l(), a(d(c), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: e.rightIcon,
|
|
98
|
+
class: s([i.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: s([i.value])
|
|
102
|
+
}, null, 8, ["class"])) : t("v-if", !0)
|
|
103
|
+
], !0) : t("v-if", !0),
|
|
104
|
+
B.value ? (l(), R("div", L, [
|
|
105
|
+
A(d(z), {
|
|
106
|
+
size: "2em",
|
|
107
|
+
color: e.color
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])) : t("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["disabled", "class", "type"]));
|
|
114
|
+
}
|
|
115
|
+
}), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-5aedac30"]]);
|
|
116
|
+
export {
|
|
117
|
+
q as default
|
|
118
|
+
};
|