maz-ui 3.47.2-beta.5 → 3.47.2-beta.7
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.mjs +91 -98
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazCircularProgressBar.mjs +48 -48
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +22 -2
- package/components/MazDropdown.mjs +1 -1
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +36 -39
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +3 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +1 -1
- package/components/MazRadio.mjs +31 -36
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +20 -23
- package/components/MazTable.d.ts +6 -0
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.d.ts +5 -1
- package/components/MazTableCell.mjs +22 -19
- package/components/MazTableRow.mjs +1 -1
- package/components/MazTableTitle.d.ts +5 -1
- package/components/MazTableTitle.mjs +16 -13
- package/components/MazTabsBar.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLoadingBar.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/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-D-0XgPWR.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-CGRvZmGd.mjs → MazBottomSheet-C9GWCGys.mjs} +1 -1
- package/components/chunks/MazBtn-B0Q6Kw8H.mjs +105 -0
- package/components/chunks/MazBtn-CMyQNKuk.mjs +105 -0
- package/components/chunks/MazBtn-DA2lg-5s.mjs +113 -0
- package/components/chunks/MazBtn-DER-sPjl.mjs +105 -0
- package/components/chunks/MazBtn-DFLIzh6y.mjs +105 -0
- package/components/chunks/MazBtn-DHfi8M3z.mjs +105 -0
- package/components/chunks/MazBtn-DKyz5Hc0.mjs +105 -0
- package/components/chunks/MazBtn-DZb-6vcl.mjs +105 -0
- package/components/chunks/MazBtn-D_K6k6A7.mjs +105 -0
- package/components/chunks/MazBtn-DnZ_pj-t.mjs +105 -0
- package/components/chunks/MazBtn-DpFjxnMy.mjs +105 -0
- package/components/chunks/MazBtn-DvfMuN3B.mjs +105 -0
- package/components/chunks/MazBtn-IPfW92RY.mjs +105 -0
- package/components/chunks/MazBtn-VU3XSEv8.mjs +110 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-BkcxQOWL.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-CSv4VpC9.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BBL0vgqe.mjs → MazCheckbox-B9iBXhoG.mjs} +63 -59
- package/components/chunks/{MazCheckbox-BTl370Qq.mjs → MazCheckbox-BHhDBSbJ.mjs} +64 -60
- package/components/chunks/{MazCheckbox-DTU2jEkC.mjs → MazCheckbox-BcwWN7iD.mjs} +63 -59
- package/components/chunks/{MazChecklist-CQv-sXP1.mjs → MazChecklist-DxtYuoEu.mjs} +116 -116
- package/components/chunks/{MazDialog-khofH-7I.mjs → MazDialog-xPCkmhrE.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-ZRA2ZrO4.mjs → MazDialogPromise-dIHWE8dO.mjs} +2 -2
- package/components/chunks/MazDropdown-7WqbXnPN.mjs +442 -0
- package/components/chunks/MazExpandAnimation-CUgYZyTw.mjs +54 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-BfdKcDIu.mjs} +39 -42
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-ndO4hRUh.mjs} +38 -41
- package/components/chunks/MazIcon-B3gy-jQ6.mjs +4 -0
- package/components/chunks/{MazIcon-BdQtfzuy.mjs → MazIcon-DVTWgYB6.mjs} +1 -1
- package/components/chunks/{MazInput-DzWkS-g8.mjs → MazInput-DG-grU7m.mjs} +1 -1
- package/components/chunks/{MazInput-eOtg1L9F.mjs → MazInput-DnmjeD0Q.mjs} +2 -2
- package/components/chunks/{MazInput-geBqeT4i.mjs → MazInput-SGx7gJ9r.mjs} +2 -2
- package/components/chunks/MazInputNumber-DoeT5Lcu.mjs +571 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CZiypHp3.mjs} +1 -1
- package/components/chunks/MazInputTags-DGAglIQb.mjs +584 -0
- package/components/chunks/{MazLink-Cd4MwIC9.mjs → MazLink-yKgOtTlk.mjs} +1 -1
- package/components/chunks/MazLoadingBar-CBNuhilE.mjs +36 -0
- package/components/chunks/MazPagination-eJFyS5Nn.mjs +329 -0
- package/components/chunks/{MazPhoneNumberInput-BTm8A0bL.mjs → MazPhoneNumberInput-rGR80IeJ.mjs} +91 -96
- package/components/chunks/{MazPicker-DwWiIYAR.mjs → MazPicker-CUpQ552W.mjs} +727 -708
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-duzi8uZ8.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-Coq4ITAj.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-vUTntpYE.mjs} +1 -1
- package/components/chunks/{MazSelect-Cnz3p3n2.mjs → MazSelect-DA1D4Aus.mjs} +85 -90
- package/components/chunks/{MazSelect-DOiqBTNY.mjs → MazSelect-DpLBpopb.mjs} +40 -45
- package/components/chunks/MazSpinner-B8vOa-3i.mjs +34 -0
- package/components/chunks/MazSpinner-BODHZQ9h.mjs +34 -0
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner-Bbagpn0P.mjs} +1 -1
- package/components/chunks/MazSpinner-BdOKUqKA.mjs +34 -0
- package/components/chunks/{MazSpinner-Dhg-s-9s.mjs → MazSpinner-Bi3tSdWr.mjs} +1 -1
- package/components/chunks/{MazSpinner-B7tPZpHw.mjs → MazSpinner-Btv2qATX.mjs} +1 -1
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-CLlK6hHp.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-CQpzVTYF.mjs} +1 -1
- package/components/chunks/MazSpinner-CR8HZnWn.mjs +34 -0
- package/components/chunks/MazSpinner-ChqoF_fX.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-D5ciNjTR.mjs} +1 -1
- package/components/chunks/{MazSpinner-B1PXhYRx.mjs → MazSpinner-DIPbNESr.mjs} +1 -1
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-DJM02T-b.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-VN2Vol2B.mjs} +1 -1
- package/components/chunks/MazSpinner-a80KrraB.mjs +34 -0
- package/components/chunks/MazSpinner-dm4RUkiD.mjs +34 -0
- package/components/chunks/MazSpinner-oLVdOGaR.mjs +34 -0
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-v0FIBDiy.mjs} +1 -1
- package/components/chunks/MazStepper-DKPl3uIk.mjs +218 -0
- package/components/chunks/{MazTable-BKdEx63E.mjs → MazTable-DBiW_J2i.mjs} +104 -100
- package/components/chunks/MazTableCell-D10vPzyI.mjs +26 -0
- package/components/chunks/{MazTableRow-bLFpjzu1.mjs → MazTableRow-CSxkhwUM.mjs} +8 -8
- package/components/chunks/MazTableTitle-BdRR_MXI.mjs +26 -0
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar-BVg2pxLA.mjs} +2 -2
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-2Ft7atX1.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-SZHtOzgz.cjs +1 -0
- package/modules/chunks/MazBtn-y5LW9A2T.mjs +105 -0
- package/modules/chunks/{MazIcon-B8BoiF7R.cjs → MazIcon-BpVDZGXl.cjs} +1 -1
- package/modules/chunks/{MazIcon-C6zDSPgJ.mjs → MazIcon-Dj66ziAh.mjs} +1 -1
- package/modules/chunks/{MazSpinner-B-4tL9pK.cjs → MazSpinner-CPT6UF2e.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BvJydaeF.mjs → MazSpinner-uMrdk_99.mjs} +1 -1
- package/modules/chunks/{index-Bf4X7amE.mjs → index-BG6gPie5.mjs} +4 -4
- package/modules/chunks/{index-F0B533E8.cjs → index-BTegnVLg.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/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazCard.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +22 -2
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +3 -1
- package/types/components/MazPullToRefresh.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/components/MazTable.vue.d.ts +6 -0
- package/types/components/MazTableCell.vue.d.ts +5 -1
- package/types/components/MazTableTitle.vue.d.ts +5 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BJxI5VQw.mjs +0 -106
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-C_BULYqZ.mjs +0 -106
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-Sj-Pq0YV.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cUQ1Tykp.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazBtn-psosbsi3.mjs +0 -106
- package/components/chunks/MazDropdown-peYVJsXv.mjs +0 -441
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazIcon-Bk4mYF1h.mjs +0 -4
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazInputTags-Dj3sW-e5.mjs +0 -585
- package/components/chunks/MazLoadingBar-DHcYPXlE.mjs +0 -32
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-C-64WJje.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DOSj2BnX.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-CozcugiL.mjs +0 -23
- package/components/chunks/MazTableTitle-Qk239mu9.mjs +0 -23
- package/modules/chunks/MazBtn-D7el03Rl.cjs +0 -1
- package/modules/chunks/MazBtn-D8uOirkn.mjs +0 -106
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as S, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as w } from "vue";
|
|
2
|
+
import { _ as E } from "./MazTable-DBiW_J2i.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, O = /* @__PURE__ */ h({
|
|
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(p) {
|
|
31
|
+
const n = p, v = m(() => import("./MazSpinner-Bi3tSdWr.mjs")), f = m(() => import("./MazIcon-DjMuw8Bz.mjs")), { href: z, to: b } = $(), c = o(() => z ? "a" : b ? "router-link" : "button"), g = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), y = o(
|
|
34
|
+
() => (n.loading || n.disabled) && c.value === "button"
|
|
35
|
+
), j = o(() => y.value ? "--cursor-default" : "--cursor-pointer"), B = o(() => `--is-${n.variant}`), k = o(() => n.loading && n.variant === "button"), C = o(() => c.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" : "md"), I = 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, A) => (t(), a(r(c.value), {
|
|
37
|
+
disabled: y.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
g.value,
|
|
42
|
+
j.value,
|
|
43
|
+
B.value,
|
|
44
|
+
I.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": y.value,
|
|
51
|
+
"--rounded": e.rounded,
|
|
52
|
+
"--no-rounded": e.noRounded,
|
|
53
|
+
"--no-padding": e.noPadding,
|
|
54
|
+
"--no-elevation": e.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: C.value
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof e.leftIcon == "string" ? (t(), a(u(f), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: e.leftIcon,
|
|
64
|
+
class: l([s.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: l([s.value])
|
|
68
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
i(e.$slots, "icon", {}, () => [
|
|
71
|
+
typeof e.icon == "string" ? (t(), a(u(f), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: e.icon,
|
|
74
|
+
class: l([s.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: l([s.value])
|
|
78
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
79
|
+
], !0),
|
|
80
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
81
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
82
|
+
typeof e.rightIcon == "string" ? (t(), a(u(f), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: e.rightIcon,
|
|
85
|
+
class: l([s.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: l([s.value])
|
|
89
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
90
|
+
], !0),
|
|
91
|
+
k.value ? (t(), M("div", F, [
|
|
92
|
+
w(u(v), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: e.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : d("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), P = /* @__PURE__ */ E(O, [["__scopeId", "data-v-95f33abf"]]);
|
|
103
|
+
export {
|
|
104
|
+
P as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as S, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as w } from "vue";
|
|
2
|
+
import { _ as E } from "./MazInputPrice-CZiypHp3.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, O = /* @__PURE__ */ h({
|
|
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(p) {
|
|
31
|
+
const n = p, v = m(() => import("./MazSpinner-VN2Vol2B.mjs")), f = m(() => import("./MazIcon-BbvBov5G.mjs")), { href: z, to: b } = $(), c = o(() => z ? "a" : b ? "router-link" : "button"), g = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), y = o(
|
|
34
|
+
() => (n.loading || n.disabled) && c.value === "button"
|
|
35
|
+
), j = o(() => y.value ? "--cursor-default" : "--cursor-pointer"), B = o(() => `--is-${n.variant}`), k = o(() => n.loading && n.variant === "button"), C = o(() => c.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" : "md"), I = 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, A) => (t(), a(r(c.value), {
|
|
37
|
+
disabled: y.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
g.value,
|
|
42
|
+
j.value,
|
|
43
|
+
B.value,
|
|
44
|
+
I.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": y.value,
|
|
51
|
+
"--rounded": e.rounded,
|
|
52
|
+
"--no-rounded": e.noRounded,
|
|
53
|
+
"--no-padding": e.noPadding,
|
|
54
|
+
"--no-elevation": e.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: C.value
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof e.leftIcon == "string" ? (t(), a(u(f), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: e.leftIcon,
|
|
64
|
+
class: l([s.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: l([s.value])
|
|
68
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
i(e.$slots, "icon", {}, () => [
|
|
71
|
+
typeof e.icon == "string" ? (t(), a(u(f), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: e.icon,
|
|
74
|
+
class: l([s.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: l([s.value])
|
|
78
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
79
|
+
], !0),
|
|
80
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
81
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
82
|
+
typeof e.rightIcon == "string" ? (t(), a(u(f), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: e.rightIcon,
|
|
85
|
+
class: l([s.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: l([s.value])
|
|
89
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
90
|
+
], !0),
|
|
91
|
+
k.value ? (t(), M("div", F, [
|
|
92
|
+
w(u(v), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: e.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : d("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), P = /* @__PURE__ */ E(O, [["__scopeId", "data-v-95f33abf"]]);
|
|
103
|
+
export {
|
|
104
|
+
P as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as b, useAttrs as S, computed as t, openBlock as o, createBlock as a, resolveDynamicComponent as d, normalizeClass as l, withCtx as $, renderSlot as f, unref as c, createCommentVNode as y, createElementBlock as M, createVNode as O } from "vue";
|
|
2
|
+
import '../assets/MazBtn.css';const w = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "m-btn-loader-container"
|
|
5
|
+
}, E = /* @__PURE__ */ h({
|
|
6
|
+
__name: "MazBtn",
|
|
7
|
+
props: {
|
|
8
|
+
variant: { default: "button" },
|
|
9
|
+
size: { default: "md" },
|
|
10
|
+
color: { default: "primary" },
|
|
11
|
+
type: { default: "button" },
|
|
12
|
+
rounded: { type: Boolean },
|
|
13
|
+
roundedSize: { default: "lg" },
|
|
14
|
+
noRounded: { type: Boolean },
|
|
15
|
+
outline: { type: Boolean },
|
|
16
|
+
pastel: { type: Boolean },
|
|
17
|
+
block: { type: Boolean },
|
|
18
|
+
noUnderline: { type: Boolean },
|
|
19
|
+
loading: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
fab: { type: Boolean },
|
|
22
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
23
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
noPadding: { type: Boolean },
|
|
26
|
+
noElevation: { type: Boolean },
|
|
27
|
+
justify: { default: "center" }
|
|
28
|
+
},
|
|
29
|
+
setup(i) {
|
|
30
|
+
const n = i, u = b(() => import("./MazSpinner-CQpzVTYF.mjs")), s = b(() => import("./MazIcon-BbvBov5G.mjs")), { href: p, to: z } = S(), m = t(() => p ? "a" : z ? "router-link" : "button"), g = t(
|
|
31
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
32
|
+
), v = t(
|
|
33
|
+
() => (n.loading || n.disabled) && m.value === "button"
|
|
34
|
+
), j = t(() => v.value ? "--cursor-default" : "--cursor-pointer"), B = t(() => `--is-${n.variant}`), k = t(() => n.loading && n.variant === "button"), C = t(() => m.value === "button" ? n.type : void 0), r = t(() => 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"), I = t(() => 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");
|
|
35
|
+
return (e, A) => (o(), a(d(m.value), {
|
|
36
|
+
disabled: v.value || void 0,
|
|
37
|
+
class: l(["m-btn", [
|
|
38
|
+
`--${e.size}`,
|
|
39
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
40
|
+
g.value,
|
|
41
|
+
j.value,
|
|
42
|
+
B.value,
|
|
43
|
+
I.value,
|
|
44
|
+
{
|
|
45
|
+
"--block": e.block,
|
|
46
|
+
"--no-underline": e.noUnderline,
|
|
47
|
+
"--fab": e.fab,
|
|
48
|
+
"--loading": e.loading,
|
|
49
|
+
"--disabled": v.value,
|
|
50
|
+
"--rounded": e.rounded,
|
|
51
|
+
"--no-rounded": e.noRounded,
|
|
52
|
+
"--no-padding": e.noPadding,
|
|
53
|
+
"--no-elevation": e.noElevation
|
|
54
|
+
}
|
|
55
|
+
]]),
|
|
56
|
+
type: C.value
|
|
57
|
+
}, {
|
|
58
|
+
default: $(() => [
|
|
59
|
+
f(e.$slots, "left-icon", {}, () => [
|
|
60
|
+
typeof e.leftIcon == "string" ? (o(), a(c(s), {
|
|
61
|
+
key: 0,
|
|
62
|
+
name: e.leftIcon,
|
|
63
|
+
class: l([r.value])
|
|
64
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (o(), a(d(e.leftIcon), {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: l([r.value])
|
|
67
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
68
|
+
], !0),
|
|
69
|
+
f(e.$slots, "icon", {}, () => [
|
|
70
|
+
typeof e.icon == "string" ? (o(), a(c(s), {
|
|
71
|
+
key: 0,
|
|
72
|
+
name: e.icon,
|
|
73
|
+
class: l([r.value])
|
|
74
|
+
}, null, 8, ["name", "class"])) : e.icon ? (o(), a(d(e.icon), {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: l([r.value])
|
|
77
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
78
|
+
], !0),
|
|
79
|
+
f(e.$slots, "default", {}, void 0, !0),
|
|
80
|
+
f(e.$slots, "right-icon", {}, () => [
|
|
81
|
+
typeof e.rightIcon == "string" ? (o(), a(c(s), {
|
|
82
|
+
key: 0,
|
|
83
|
+
name: e.rightIcon,
|
|
84
|
+
class: l([r.value])
|
|
85
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (o(), a(d(e.rightIcon), {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: l([r.value])
|
|
88
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
89
|
+
], !0),
|
|
90
|
+
k.value ? (o(), M("div", w, [
|
|
91
|
+
O(c(u), {
|
|
92
|
+
size: "2em",
|
|
93
|
+
color: e.color
|
|
94
|
+
}, null, 8, ["color"])
|
|
95
|
+
])) : y("v-if", !0)
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
/* FORWARDED */
|
|
99
|
+
}, 8, ["disabled", "class", "type"]));
|
|
100
|
+
}
|
|
101
|
+
}), F = (i, n) => {
|
|
102
|
+
const u = i.__vccOpts || i;
|
|
103
|
+
for (const [s, p] of n)
|
|
104
|
+
u[s] = p;
|
|
105
|
+
return u;
|
|
106
|
+
}, P = /* @__PURE__ */ F(E, [["__scopeId", "data-v-95f33abf"]]), N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
107
|
+
__proto__: null,
|
|
108
|
+
default: P
|
|
109
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
110
|
+
export {
|
|
111
|
+
N as M,
|
|
112
|
+
F as _
|
|
113
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as S, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as w } from "vue";
|
|
2
|
+
import { _ as E } from "./MazCarousel-CSv4VpC9.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, O = /* @__PURE__ */ h({
|
|
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(p) {
|
|
31
|
+
const n = p, v = m(() => import("./MazSpinner-ChqoF_fX.mjs")), f = m(() => import("./MazIcon-BbvBov5G.mjs")), { href: z, to: b } = $(), c = o(() => z ? "a" : b ? "router-link" : "button"), g = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), y = o(
|
|
34
|
+
() => (n.loading || n.disabled) && c.value === "button"
|
|
35
|
+
), j = o(() => y.value ? "--cursor-default" : "--cursor-pointer"), B = o(() => `--is-${n.variant}`), k = o(() => n.loading && n.variant === "button"), C = o(() => c.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" : "md"), I = 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, A) => (t(), a(r(c.value), {
|
|
37
|
+
disabled: y.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
g.value,
|
|
42
|
+
j.value,
|
|
43
|
+
B.value,
|
|
44
|
+
I.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": y.value,
|
|
51
|
+
"--rounded": e.rounded,
|
|
52
|
+
"--no-rounded": e.noRounded,
|
|
53
|
+
"--no-padding": e.noPadding,
|
|
54
|
+
"--no-elevation": e.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: C.value
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof e.leftIcon == "string" ? (t(), a(u(f), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: e.leftIcon,
|
|
64
|
+
class: l([s.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: l([s.value])
|
|
68
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
i(e.$slots, "icon", {}, () => [
|
|
71
|
+
typeof e.icon == "string" ? (t(), a(u(f), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: e.icon,
|
|
74
|
+
class: l([s.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: l([s.value])
|
|
78
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
79
|
+
], !0),
|
|
80
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
81
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
82
|
+
typeof e.rightIcon == "string" ? (t(), a(u(f), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: e.rightIcon,
|
|
85
|
+
class: l([s.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: l([s.value])
|
|
89
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
90
|
+
], !0),
|
|
91
|
+
k.value ? (t(), M("div", F, [
|
|
92
|
+
w(u(v), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: e.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : d("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), P = /* @__PURE__ */ E(O, [["__scopeId", "data-v-95f33abf"]]);
|
|
103
|
+
export {
|
|
104
|
+
P as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as S, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as w } from "vue";
|
|
2
|
+
import { _ as E } from "./MazCard-BkcxQOWL.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, O = /* @__PURE__ */ h({
|
|
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(p) {
|
|
31
|
+
const n = p, v = m(() => import("./MazSpinner-Bbagpn0P.mjs")), f = m(() => import("./MazIcon-BbvBov5G.mjs")), { href: z, to: b } = $(), c = o(() => z ? "a" : b ? "router-link" : "button"), g = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), y = o(
|
|
34
|
+
() => (n.loading || n.disabled) && c.value === "button"
|
|
35
|
+
), j = o(() => y.value ? "--cursor-default" : "--cursor-pointer"), B = o(() => `--is-${n.variant}`), k = o(() => n.loading && n.variant === "button"), C = o(() => c.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" : "md"), I = 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, A) => (t(), a(r(c.value), {
|
|
37
|
+
disabled: y.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
g.value,
|
|
42
|
+
j.value,
|
|
43
|
+
B.value,
|
|
44
|
+
I.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": y.value,
|
|
51
|
+
"--rounded": e.rounded,
|
|
52
|
+
"--no-rounded": e.noRounded,
|
|
53
|
+
"--no-padding": e.noPadding,
|
|
54
|
+
"--no-elevation": e.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: C.value
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof e.leftIcon == "string" ? (t(), a(u(f), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: e.leftIcon,
|
|
64
|
+
class: l([s.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: l([s.value])
|
|
68
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
i(e.$slots, "icon", {}, () => [
|
|
71
|
+
typeof e.icon == "string" ? (t(), a(u(f), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: e.icon,
|
|
74
|
+
class: l([s.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: l([s.value])
|
|
78
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
79
|
+
], !0),
|
|
80
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
81
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
82
|
+
typeof e.rightIcon == "string" ? (t(), a(u(f), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: e.rightIcon,
|
|
85
|
+
class: l([s.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: l([s.value])
|
|
89
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
90
|
+
], !0),
|
|
91
|
+
k.value ? (t(), M("div", F, [
|
|
92
|
+
w(u(v), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: e.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : d("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), P = /* @__PURE__ */ E(O, [["__scopeId", "data-v-95f33abf"]]);
|
|
103
|
+
export {
|
|
104
|
+
P as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as S, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as w } from "vue";
|
|
2
|
+
import { _ as E } from "./MazInput-DG-grU7m.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, O = /* @__PURE__ */ h({
|
|
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(p) {
|
|
31
|
+
const n = p, v = m(() => import("./MazSpinner-CLlK6hHp.mjs")), f = m(() => import("./MazIcon-BbvBov5G.mjs")), { href: z, to: b } = $(), c = o(() => z ? "a" : b ? "router-link" : "button"), g = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), y = o(
|
|
34
|
+
() => (n.loading || n.disabled) && c.value === "button"
|
|
35
|
+
), j = o(() => y.value ? "--cursor-default" : "--cursor-pointer"), B = o(() => `--is-${n.variant}`), k = o(() => n.loading && n.variant === "button"), C = o(() => c.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" : "md"), I = 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, A) => (t(), a(r(c.value), {
|
|
37
|
+
disabled: y.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
g.value,
|
|
42
|
+
j.value,
|
|
43
|
+
B.value,
|
|
44
|
+
I.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": y.value,
|
|
51
|
+
"--rounded": e.rounded,
|
|
52
|
+
"--no-rounded": e.noRounded,
|
|
53
|
+
"--no-padding": e.noPadding,
|
|
54
|
+
"--no-elevation": e.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: C.value
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof e.leftIcon == "string" ? (t(), a(u(f), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: e.leftIcon,
|
|
64
|
+
class: l([s.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: l([s.value])
|
|
68
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
i(e.$slots, "icon", {}, () => [
|
|
71
|
+
typeof e.icon == "string" ? (t(), a(u(f), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: e.icon,
|
|
74
|
+
class: l([s.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: l([s.value])
|
|
78
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
79
|
+
], !0),
|
|
80
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
81
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
82
|
+
typeof e.rightIcon == "string" ? (t(), a(u(f), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: e.rightIcon,
|
|
85
|
+
class: l([s.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: l([s.value])
|
|
89
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
90
|
+
], !0),
|
|
91
|
+
k.value ? (t(), M("div", F, [
|
|
92
|
+
w(u(v), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: e.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : d("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), P = /* @__PURE__ */ E(O, [["__scopeId", "data-v-95f33abf"]]);
|
|
103
|
+
export {
|
|
104
|
+
P as default
|
|
105
|
+
};
|