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
|
@@ -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/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,10 @@ export interface Props {
|
|
|
99
98
|
* @default false
|
|
100
99
|
*/
|
|
101
100
|
noElevation?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Choose how the elements are aligned in the button
|
|
103
|
+
*/
|
|
104
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
104
105
|
}
|
|
105
106
|
declare function __VLS_template(): {
|
|
106
107
|
slots: {
|
|
@@ -122,7 +123,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
122
123
|
icon: string | Icon;
|
|
123
124
|
leftIcon: string | Icon;
|
|
124
125
|
rightIcon: string | Icon;
|
|
125
|
-
|
|
126
|
+
justify: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
126
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
127
128
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
128
129
|
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-zMzxqcCs.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({
|
|
@@ -73,6 +73,10 @@ export interface MazDropdownProps {
|
|
|
73
73
|
* You may use `!important` to override the default style
|
|
74
74
|
*/
|
|
75
75
|
menuPanelStyle?: HTMLAttributes['style'];
|
|
76
|
+
/**
|
|
77
|
+
* If true, the button will have a full width
|
|
78
|
+
*/
|
|
79
|
+
block?: boolean;
|
|
76
80
|
}
|
|
77
81
|
declare function __VLS_template(): {
|
|
78
82
|
slots: {
|