maz-ui 3.46.1-beta.3 → 3.46.1-beta.5
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/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +0 -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 +13 -0
- package/components/MazDropdown.mjs +115 -107
- 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/MazLazyImg.d.ts +2 -0
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +2 -2
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.d.ts +4 -0
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +33 -33
- package/components/MazTable.d.ts +32 -3
- 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/MazLazyImg.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/MazSelect.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazAvatar-BXZpFUaZ.mjs → MazAvatar-BmaVqPui.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DQTlEDlz.mjs → MazBottomSheet-s9lLaK1M.mjs} +1 -1
- package/components/chunks/MazBtn-BMmuCciQ.mjs +116 -0
- package/components/chunks/MazBtn-BXdap6JU.mjs +116 -0
- package/components/chunks/MazBtn-CHABo63Y.mjs +116 -0
- package/components/chunks/MazBtn-CVB5qDjV.mjs +121 -0
- package/components/chunks/MazBtn-CXxOU7fp.mjs +116 -0
- package/components/chunks/MazBtn-CZSXnr3w.mjs +116 -0
- package/components/chunks/MazBtn-CwYBz6QO.mjs +116 -0
- package/components/chunks/MazBtn-DIE2eM-g.mjs +116 -0
- package/components/chunks/MazBtn-DKD-ZMaF.mjs +116 -0
- package/components/chunks/MazBtn-DarjZUV4.mjs +124 -0
- package/components/chunks/MazBtn-OKT5-Y4s.mjs +116 -0
- package/components/chunks/MazBtn-e3abHT2L.mjs +116 -0
- package/components/chunks/{MazCard-BapktHxt.mjs → MazCard-BaJ5Ee3I.mjs} +1 -1
- package/components/chunks/{MazCarousel-DYdWCLk7.mjs → MazCarousel-Bb4fpVqN.mjs} +1 -1
- package/components/chunks/{MazCheckbox-SCDhMssn.mjs → MazCheckbox-8n6NtRBb.mjs} +32 -32
- package/components/chunks/{MazCheckbox-q5o-NFLo.mjs → MazCheckbox-C4diNXJq.mjs} +32 -32
- package/components/chunks/{MazDialog-DbEp5ZrT.mjs → MazDialog-Bv2PzQBz.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-B2WdAwbv.mjs → MazDialogPromise-BZLP9sXZ.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-BFyvL-vh.mjs → MazExpandAnimation-Bkw_wFTi.mjs} +1 -1
- package/components/chunks/{MazGallery-HtChfMa_.mjs → MazGallery-C9secrXc.mjs} +2 -2
- package/components/chunks/MazIcon-BaJm2s8_.mjs +101 -0
- package/components/chunks/MazIcon-BbvBov5G.mjs +106 -0
- package/components/chunks/MazIcon-CudB1a0D.mjs +101 -0
- package/components/chunks/{MazInput-fbdOvhry.mjs → MazInput-B3RzuuNv.mjs} +1 -1
- package/components/chunks/{MazInputNumber-mu9wEfTT.mjs → MazInputNumber-mLgq5obR.mjs} +198 -232
- package/components/chunks/{MazInputPrice-Y6lalrWq.mjs → MazInputPrice-DhYRBqTS.mjs} +1 -1
- package/components/chunks/{MazInputTags-DVYW4SbE.mjs → MazInputTags-DinwbXaD.mjs} +201 -238
- package/components/chunks/{MazLazyImg-D2seDVoC.mjs → MazLazyImg-RHZ9wOy2.mjs} +7 -5
- package/components/chunks/{MazLazyImg-Db6BYACF.mjs → MazLazyImg-i-z6hcwF.mjs} +10 -8
- package/components/chunks/{MazLink-HJI1YmdA.mjs → MazLink-Dl9ePCGm.mjs} +1 -1
- package/components/chunks/MazPagination-Cqnr19iI.mjs +360 -0
- package/components/chunks/MazPhoneNumberInput-C3GdtqN2.mjs +1821 -0
- package/components/chunks/{MazPicker-BPH4sy2Q.mjs → MazPicker-DA92HhwS.mjs} +541 -575
- package/components/chunks/{MazPickerMonthSwitcher-Ca4BqrF-.mjs → MazPickerMonthSwitcher-CPWkw0Hq.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bs2RMdC_.mjs → MazPickerShortcuts-Fwcoqg5M.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-Bg_0ecwk.mjs → MazPickerYearSwitcher-DfSXPGfT.mjs} +1 -1
- package/components/chunks/{MazSelect-BTrnZLF5.mjs → MazSelect-DPTuyc26.mjs} +133 -129
- package/components/chunks/{MazSpinner-BAHWcgal.mjs → MazSpinner-5w4SkOOl.mjs} +1 -1
- package/components/chunks/MazSpinner-B-mc1FWS.mjs +37 -0
- package/components/chunks/{MazSpinner-CLfp6QHS.mjs → MazSpinner-BCHAzmqS.mjs} +1 -1
- package/components/chunks/{MazSpinner-2KA4ECS_.mjs → MazSpinner-BCQzF6j-.mjs} +1 -1
- package/components/chunks/MazSpinner-BEqvmPiV.mjs +37 -0
- package/components/chunks/MazSpinner-BoG1T_ZX.mjs +37 -0
- package/components/chunks/MazSpinner-BpjK60ul.mjs +37 -0
- package/components/chunks/MazSpinner-ByWRmwig.mjs +37 -0
- package/components/chunks/{MazSpinner-BhFMGOGc.mjs → MazSpinner-C2ok6AlJ.mjs} +1 -1
- package/components/chunks/{MazSpinner-38KAnd2e.mjs → MazSpinner-CFJmcsGl.mjs} +1 -1
- package/components/chunks/{MazSpinner-D9K-TsT7.mjs → MazSpinner-CVBz5HIx.mjs} +1 -1
- package/components/chunks/{MazSpinner-CShEq13p.mjs → MazSpinner-DEdQlQr1.mjs} +1 -1
- package/components/chunks/{MazSpinner-AyzqowuD.mjs → MazSpinner-DhHVVBJE.mjs} +1 -1
- package/components/chunks/MazSpinner-DuGaC-cw.mjs +37 -0
- package/components/chunks/MazSpinner-Iwon82He.mjs +37 -0
- package/components/chunks/MazSpinner-JbfjMNFL.mjs +37 -0
- package/components/chunks/MazSpinner-QgcgF5j5.mjs +37 -0
- package/components/chunks/MazSpinner-yQGVxaFm.mjs +37 -0
- package/components/chunks/{MazStepper-BmCk5RfP.mjs → MazStepper-DRWtYHZR.mjs} +1 -1
- package/components/chunks/MazTable-CrtVI-dp.mjs +2015 -0
- package/components/chunks/{MazTransitionExpand-D9pcEmUk.mjs → MazTransitionExpand-BoTQeNNf.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-BG2dUdHV.cjs +9 -0
- package/modules/chunks/MazBtn-BeqYSSYI.mjs +116 -0
- package/modules/chunks/MazIcon-BqfELHOt.mjs +101 -0
- package/modules/chunks/MazIcon-RkWxQ8JM.cjs +1 -0
- package/modules/chunks/{MazSpinner-g6fliUmS.mjs → MazSpinner-DgSRxVEo.mjs} +1 -1
- package/modules/chunks/{MazSpinner-zX9CPyJB.cjs → MazSpinner-GfL807jq.cjs} +1 -1
- package/modules/chunks/{index-BLdtEKD5.cjs → index-CE2CsQsx.cjs} +4 -4
- package/modules/chunks/{index-Bpj_Jr6I.mjs → index-aKGx1nxl.mjs} +4 -4
- 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 +0 -4
- package/types/components/MazCardSpotlight.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +13 -0
- package/types/components/MazLazyImg.vue.d.ts +2 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +2 -2
- package/types/components/MazSelect.vue.d.ts +4 -0
- package/types/components/MazTable.vue.d.ts +32 -3
- package/types/modules/helpers/country-flag-from-flagcn.d.ts +7 -0
- package/components/chunks/MazBtn-6D9MhUfI.mjs +0 -150
- package/components/chunks/MazBtn-B2A4nNWi.mjs +0 -150
- package/components/chunks/MazBtn-B9mpn5c4.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-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-DgmsRNq_.mjs +0 -150
- package/components/chunks/MazIcon-BDGxCy9M.mjs +0 -118
- package/components/chunks/MazIcon-BW5X0uLg.mjs +0 -113
- package/components/chunks/MazIcon-DiRrHbn4.mjs +0 -113
- package/components/chunks/MazPagination-BOUDMaJO.mjs +0 -394
- package/components/chunks/MazPhoneNumberInput-DjWHMKpM.mjs +0 -1579
- package/components/chunks/MazSpinner-BLp7sE5i.mjs +0 -37
- package/components/chunks/MazSpinner-C91Lm_Xp.mjs +0 -37
- package/components/chunks/MazSpinner-CCIMQLA1.mjs +0 -37
- package/components/chunks/MazSpinner-CLQy7iCO.mjs +0 -37
- package/components/chunks/MazSpinner-D7CMPaDb.mjs +0 -37
- package/components/chunks/MazSpinner-D8uk4SQh.mjs +0 -37
- package/components/chunks/MazSpinner-D_Xqx8Vb.mjs +0 -37
- package/components/chunks/MazSpinner-JgB1pud8.mjs +0 -37
- package/components/chunks/MazSpinner-gYRmfrSM.mjs +0 -37
- package/components/chunks/MazSpinner-hPbKGN5o.mjs +0 -37
- package/components/chunks/MazTable-DsZV0t--.mjs +0 -1999
- 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
|
@@ -22,9 +22,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
23
23
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
contentClass: undefined;
|
|
26
25
|
id: string;
|
|
27
26
|
modelValue: number;
|
|
27
|
+
contentClass: undefined;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
30
|
export default _default;
|
package/components/MazAvatar.mjs
CHANGED
package/components/MazBtn.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Color, Icon, Size } from './types';
|
|
2
|
-
import { type HTMLAttributes } from 'vue';
|
|
3
2
|
export type { Color, Size };
|
|
4
3
|
export interface Props {
|
|
5
4
|
/**
|
|
@@ -99,8 +98,6 @@ export interface Props {
|
|
|
99
98
|
* @default false
|
|
100
99
|
*/
|
|
101
100
|
noElevation?: boolean;
|
|
102
|
-
/** The class applied to the content wrapper (<span />) of the button */
|
|
103
|
-
contentClass?: HTMLAttributes['class'];
|
|
104
101
|
}
|
|
105
102
|
declare function __VLS_template(): {
|
|
106
103
|
slots: {
|
|
@@ -122,7 +119,6 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
122
119
|
icon: string | Icon;
|
|
123
120
|
leftIcon: string | Icon;
|
|
124
121
|
rightIcon: string | Icon;
|
|
125
|
-
contentClass: HTMLAttributes["class"];
|
|
126
122
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
127
123
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
128
124
|
export default _default;
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -47,8 +47,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
47
47
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
48
48
|
color: Color;
|
|
49
49
|
noElevation: boolean;
|
|
50
|
-
contentClass: HTMLAttributes["class"];
|
|
51
50
|
padding: boolean;
|
|
51
|
+
contentClass: HTMLAttributes["class"];
|
|
52
52
|
contentStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
53
53
|
innerOpacity: number;
|
|
54
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useId as S, computed as
|
|
1
|
+
import { useId as S, computed as n, openBlock as f, createElementBlock as h, createElementVNode as c, defineComponent as N, useCssVars as _, ref as E, unref as i, normalizeClass as m, normalizeStyle as A, mergeProps as $, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as k, createCommentVNode as j } from "vue";
|
|
2
2
|
import './assets/MazCheckbox.css';function q({
|
|
3
|
-
componentName:
|
|
3
|
+
componentName: t,
|
|
4
4
|
providedId: a
|
|
5
5
|
}) {
|
|
6
|
-
const
|
|
7
|
-
return
|
|
6
|
+
const e = S();
|
|
7
|
+
return n(() => a ?? `${t}-${e}`);
|
|
8
8
|
}
|
|
9
9
|
const F = {
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13,8 +13,8 @@ const F = {
|
|
|
13
13
|
fill: "none",
|
|
14
14
|
viewBox: "0 0 24 24"
|
|
15
15
|
};
|
|
16
|
-
function H(
|
|
17
|
-
return f(),
|
|
16
|
+
function H(t, a) {
|
|
17
|
+
return f(), h("svg", F, a[0] || (a[0] = [
|
|
18
18
|
c(
|
|
19
19
|
"path",
|
|
20
20
|
{
|
|
@@ -50,35 +50,35 @@ const K = { render: H }, O = ["for", "aria-checked"], P = ["id", "checked", "dis
|
|
|
50
50
|
hint: {}
|
|
51
51
|
},
|
|
52
52
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
53
|
-
setup(
|
|
54
|
-
_((
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
53
|
+
setup(t, { emit: a }) {
|
|
54
|
+
_((o) => ({
|
|
55
|
+
b7df6194: z.value,
|
|
56
|
+
"89a0ef50": g.value,
|
|
57
|
+
"199d7f11": w.value,
|
|
58
|
+
b0e1d658: V.value
|
|
59
59
|
}));
|
|
60
|
-
const
|
|
60
|
+
const e = t, l = a, s = q({
|
|
61
61
|
componentName: "MazCheckbox",
|
|
62
|
-
providedId:
|
|
63
|
-
}),
|
|
64
|
-
() => typeof
|
|
65
|
-
),
|
|
66
|
-
switch (
|
|
62
|
+
providedId: e.id
|
|
63
|
+
}), p = n(
|
|
64
|
+
() => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
|
|
65
|
+
), g = n(() => {
|
|
66
|
+
switch (e.size) {
|
|
67
67
|
case "xl":
|
|
68
|
-
return "2.25rem";
|
|
69
|
-
case "lg":
|
|
70
68
|
return "2rem";
|
|
69
|
+
case "lg":
|
|
70
|
+
return "1.75rem";
|
|
71
71
|
case "sm":
|
|
72
|
-
return "1.
|
|
72
|
+
return "1.25rem";
|
|
73
73
|
case "xs":
|
|
74
|
-
return "
|
|
74
|
+
return "1rem";
|
|
75
75
|
case "mini":
|
|
76
|
-
return "
|
|
76
|
+
return "0.75rem";
|
|
77
77
|
default:
|
|
78
|
-
return "1.
|
|
78
|
+
return "1.5rem";
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
81
|
-
switch (
|
|
80
|
+
}), y = n(() => {
|
|
81
|
+
switch (e.size) {
|
|
82
82
|
case "xl":
|
|
83
83
|
return "maz-text-2xl";
|
|
84
84
|
case "lg":
|
|
@@ -92,33 +92,33 @@ const K = { render: H }, O = ["for", "aria-checked"], P = ["id", "checked", "dis
|
|
|
92
92
|
default:
|
|
93
93
|
return "maz-text-lg";
|
|
94
94
|
}
|
|
95
|
-
}), z =
|
|
96
|
-
function x(
|
|
97
|
-
["Space"].includes(
|
|
95
|
+
}), z = n(() => e.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${e.color}-contrast)`), w = n(() => e.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${e.color})`), V = n(() => e.error ? "var(--maz-color-danger)" : e.warning ? "var(--maz-color-warning)" : e.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`);
|
|
96
|
+
function x(o) {
|
|
97
|
+
["Space"].includes(o.code) && (o.preventDefault(), b(e.value ?? !e.modelValue));
|
|
98
98
|
}
|
|
99
|
-
function C(
|
|
100
|
-
return typeof
|
|
99
|
+
function C(o) {
|
|
100
|
+
return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((r) => r !== o) : [...e.modelValue, o] : [o];
|
|
101
101
|
}
|
|
102
|
-
function b(
|
|
103
|
-
const r = C(
|
|
104
|
-
|
|
102
|
+
function b(o) {
|
|
103
|
+
const r = C(o);
|
|
104
|
+
l("update:model-value", r), l("change", r);
|
|
105
105
|
}
|
|
106
106
|
const u = E();
|
|
107
|
-
function B(
|
|
107
|
+
function B(o) {
|
|
108
108
|
var r;
|
|
109
|
-
(r = u.value) == null || r.dispatchEvent(new Event("blur")),
|
|
109
|
+
(r = u.value) == null || r.dispatchEvent(new Event("blur")), l("blur", o);
|
|
110
110
|
}
|
|
111
|
-
function I(
|
|
111
|
+
function I(o) {
|
|
112
112
|
var r;
|
|
113
|
-
(r = u.value) == null || r.dispatchEvent(new Event("focus")),
|
|
113
|
+
(r = u.value) == null || r.dispatchEvent(new Event("focus")), l("focus", o);
|
|
114
114
|
}
|
|
115
|
-
return (
|
|
115
|
+
return (o, r) => (f(), h("label", {
|
|
116
116
|
for: i(s),
|
|
117
|
-
class: m(["m-checkbox", [{ "--disabled":
|
|
117
|
+
class: m(["m-checkbox", [{ "--disabled": o.disabled, "--error": o.error, "--warning": o.warning, "--success": o.success }, e.class]]),
|
|
118
118
|
tabindex: "0",
|
|
119
|
-
style: A(
|
|
119
|
+
style: A(o.style),
|
|
120
120
|
role: "checkbox",
|
|
121
|
-
"aria-checked":
|
|
121
|
+
"aria-checked": p.value,
|
|
122
122
|
onKeydown: x,
|
|
123
123
|
onBlur: B,
|
|
124
124
|
onFocus: I
|
|
@@ -127,53 +127,53 @@ const K = { render: H }, O = ["for", "aria-checked"], P = ["id", "checked", "dis
|
|
|
127
127
|
id: i(s),
|
|
128
128
|
ref_key: "inputRef",
|
|
129
129
|
ref: u,
|
|
130
|
-
checked:
|
|
131
|
-
},
|
|
130
|
+
checked: p.value
|
|
131
|
+
}, o.$attrs, {
|
|
132
132
|
tabindex: "-1",
|
|
133
|
-
disabled:
|
|
134
|
-
name:
|
|
133
|
+
disabled: o.disabled,
|
|
134
|
+
name: o.name,
|
|
135
135
|
type: "checkbox",
|
|
136
136
|
onChange: r[0] || (r[0] = (d) => {
|
|
137
137
|
var v;
|
|
138
|
-
return b(
|
|
138
|
+
return b(o.value ?? ((v = d == null ? void 0 : d.target) == null ? void 0 : v.checked));
|
|
139
139
|
})
|
|
140
140
|
}), null, 16, P),
|
|
141
141
|
c("span", null, [
|
|
142
142
|
M(i(K), {
|
|
143
|
-
class: m(["check-icon",
|
|
143
|
+
class: m(["check-icon", y.value])
|
|
144
144
|
}, null, 8, ["class"])
|
|
145
145
|
]),
|
|
146
146
|
c("div", T, [
|
|
147
|
-
D(
|
|
147
|
+
D(o.$slots, "default", { value: o.value }, () => [
|
|
148
148
|
R(
|
|
149
|
-
k(
|
|
149
|
+
k(o.label),
|
|
150
150
|
1
|
|
151
151
|
/* TEXT */
|
|
152
152
|
)
|
|
153
153
|
], !0),
|
|
154
|
-
|
|
154
|
+
o.hint ? (f(), h(
|
|
155
155
|
"span",
|
|
156
156
|
{
|
|
157
157
|
key: 0,
|
|
158
158
|
class: m(["m-checkbox__hint", {
|
|
159
|
-
"--error":
|
|
160
|
-
"--success":
|
|
161
|
-
"--warning":
|
|
159
|
+
"--error": o.error,
|
|
160
|
+
"--success": o.success,
|
|
161
|
+
"--warning": o.warning
|
|
162
162
|
}])
|
|
163
163
|
},
|
|
164
|
-
k(
|
|
164
|
+
k(o.hint),
|
|
165
165
|
3
|
|
166
166
|
/* TEXT, CLASS */
|
|
167
167
|
)) : j("v-if", !0)
|
|
168
168
|
])
|
|
169
169
|
], 46, O));
|
|
170
170
|
}
|
|
171
|
-
}), G = (
|
|
172
|
-
const
|
|
173
|
-
for (const [
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
}, L = /* @__PURE__ */ G(U, [["__scopeId", "data-v-
|
|
171
|
+
}), G = (t, a) => {
|
|
172
|
+
const e = t.__vccOpts || t;
|
|
173
|
+
for (const [l, s] of a)
|
|
174
|
+
e[l] = s;
|
|
175
|
+
return e;
|
|
176
|
+
}, L = /* @__PURE__ */ G(U, [["__scopeId", "data-v-178c6a46"]]);
|
|
177
177
|
export {
|
|
178
178
|
L as default
|
|
179
179
|
};
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
|
@@ -128,7 +128,7 @@ import './assets/MazDrawer.css';const A = "--backdrop-present", U = /* @__PURE__
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
130
130
|
setup(b) {
|
|
131
|
-
const i = B(() => import("./chunks/MazBtn-
|
|
131
|
+
const i = B(() => import("./chunks/MazBtn-DarjZUV4.mjs").then((e) => e.M)), c = B(() => import("./chunks/x-mark-CnZwVvA7.mjs"));
|
|
132
132
|
return (e, t) => (r(), h(U, {
|
|
133
133
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
134
134
|
style: F({
|
|
@@ -64,6 +64,19 @@ export interface MazDropdownProps {
|
|
|
64
64
|
* @default 'Open menu dropdown'
|
|
65
65
|
*/
|
|
66
66
|
screenReaderDescription?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Class for the menu panel - useful for custom dropdown panel (background, border, etc.)
|
|
69
|
+
*/
|
|
70
|
+
menuPanelClass?: HTMLAttributes['class'];
|
|
71
|
+
/**
|
|
72
|
+
* Style for the menu panel - useful for custom dropdown panel (background, border, etc.)
|
|
73
|
+
* You may use `!important` to override the default style
|
|
74
|
+
*/
|
|
75
|
+
menuPanelStyle?: HTMLAttributes['style'];
|
|
76
|
+
/**
|
|
77
|
+
* If true, the button will have a full width
|
|
78
|
+
*/
|
|
79
|
+
block?: boolean;
|
|
67
80
|
}
|
|
68
81
|
declare function __VLS_template(): {
|
|
69
82
|
slots: {
|