maz-ui 3.46.1-beta.2 → 3.46.1-beta.3
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 +52 -54
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +3 -5
- package/components/MazCircularProgressBar.mjs +3 -5
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +10 -5
- package/components/MazDropdown.mjs +158 -135
- package/components/MazInput.d.ts +2 -3
- 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.d.ts +3 -6
- 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/MazRadio.mjs +22 -24
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.d.ts +1 -3
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +14 -16
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +15 -17
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLink.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/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBottomSheet-CLqmon2R.mjs → MazBottomSheet-DQTlEDlz.mjs} +1 -1
- package/components/chunks/{MazBtn-Bv2ZJa_R.mjs → MazBtn-6D9MhUfI.mjs} +3 -3
- package/components/chunks/{MazBtn-BFG89vCa.mjs → MazBtn-B2A4nNWi.mjs} +3 -3
- package/components/chunks/MazBtn-B9mpn5c4.mjs +150 -0
- package/components/chunks/{MazBtn-C-RDq3T0.mjs → MazBtn-BTxqbijR.mjs} +2 -2
- package/components/chunks/{MazBtn-BnmcF3pl.mjs → MazBtn-BYAmxCNV.mjs} +3 -3
- package/components/chunks/{MazBtn-CenD2SP9.mjs → MazBtn-BkBaNYfi.mjs} +3 -3
- package/components/chunks/{MazBtn-Vul7kGiM.mjs → MazBtn-BkT-9nbu.mjs} +3 -3
- package/components/chunks/{MazBtn-BGoomw9I.mjs → MazBtn-C6b9OPzf.mjs} +3 -3
- package/components/chunks/{MazBtn-DDo4jEGz.mjs → MazBtn-CTDhJ_fQ.mjs} +2 -2
- package/components/chunks/{MazBtn-qFUqOv5D.mjs → MazBtn-CofOhh-q.mjs} +1 -1
- package/components/chunks/{MazBtn-K-VSnuAG.mjs → MazBtn-CwkvhgML.mjs} +3 -3
- package/components/chunks/{MazBtn-Eo1kCPXG.mjs → MazBtn-DgmsRNq_.mjs} +3 -3
- package/components/chunks/{MazCard-dFVJALiZ.mjs → MazCard-BapktHxt.mjs} +1 -1
- package/components/chunks/{MazCarousel-DRN9I_V8.mjs → MazCarousel-DYdWCLk7.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Dia9JuH9.mjs → MazCheckbox-SCDhMssn.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BOQ3rCJA.mjs → MazCheckbox-q5o-NFLo.mjs} +1 -1
- package/components/chunks/{MazDialog-C3DzTTKe.mjs → MazDialog-DbEp5ZrT.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BjfZazCh.mjs → MazDialogPromise-B2WdAwbv.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-B759bjn3.mjs → MazExpandAnimation-BFyvL-vh.mjs} +1 -1
- package/components/chunks/{MazGallery-PjwNt897.mjs → MazGallery-HtChfMa_.mjs} +2 -2
- package/components/chunks/{MazIcon-DtpY3t9J.mjs → MazIcon-BW5X0uLg.mjs} +1 -1
- package/components/chunks/{MazIcon-BJbOf-7v.mjs → MazIcon-DiRrHbn4.mjs} +1 -1
- package/components/chunks/{MazInput-5LcE-t8D.mjs → MazInput-fbdOvhry.mjs} +22 -24
- package/components/chunks/{MazInputNumber-pU7fZlIW.mjs → MazInputNumber-mu9wEfTT.mjs} +6 -8
- package/components/chunks/{MazInputPrice-UT6cliwj.mjs → MazInputPrice-Y6lalrWq.mjs} +48 -50
- package/components/chunks/{MazInputTags-BzsHx6uY.mjs → MazInputTags-DVYW4SbE.mjs} +50 -52
- package/components/chunks/{MazLink-CJ1canOj.mjs → MazLink-HJI1YmdA.mjs} +1 -1
- package/components/chunks/{MazPagination-DUKI8uvV.mjs → MazPagination-BOUDMaJO.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-ahQrhENR.mjs → MazPhoneNumberInput-DjWHMKpM.mjs} +6 -8
- package/components/chunks/{MazPicker-Cn2DxXy1.mjs → MazPicker-BPH4sy2Q.mjs} +122 -124
- package/components/chunks/{MazPickerMonthSwitcher-CdIzIOjf.mjs → MazPickerMonthSwitcher-Ca4BqrF-.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-AaUGOwAI.mjs → MazPickerShortcuts-Bs2RMdC_.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DACv6BSw.mjs → MazPickerYearSwitcher-Bg_0ecwk.mjs} +1 -1
- package/components/chunks/{MazSelect-DZ86urPA.mjs → MazSelect-BTrnZLF5.mjs} +25 -27
- package/components/chunks/{MazSpinner-CdU57yPz.mjs → MazSpinner-2KA4ECS_.mjs} +1 -1
- package/components/chunks/{MazSpinner-CeYCrySe.mjs → MazSpinner-38KAnd2e.mjs} +1 -1
- package/components/chunks/{MazSpinner-BMvssNh7.mjs → MazSpinner-AyzqowuD.mjs} +1 -1
- package/components/chunks/{MazSpinner-C6h_11fE.mjs → MazSpinner-BAHWcgal.mjs} +1 -1
- package/components/chunks/{MazSpinner-BeSrV4iQ.mjs → MazSpinner-BLp7sE5i.mjs} +1 -1
- package/components/chunks/{MazSpinner-CcJPx_Iu.mjs → MazSpinner-BhFMGOGc.mjs} +1 -1
- package/components/chunks/MazSpinner-C91Lm_Xp.mjs +37 -0
- package/components/chunks/{MazSpinner-3ooF5FSo.mjs → MazSpinner-CCIMQLA1.mjs} +1 -1
- package/components/chunks/MazSpinner-CLQy7iCO.mjs +37 -0
- package/components/chunks/{MazSpinner-DWSwrXt3.mjs → MazSpinner-CLfp6QHS.mjs} +1 -1
- package/components/chunks/{MazSpinner-2uMOZ47T.mjs → MazSpinner-CShEq13p.mjs} +1 -1
- package/components/chunks/MazSpinner-D7CMPaDb.mjs +37 -0
- package/components/chunks/MazSpinner-D8uk4SQh.mjs +37 -0
- package/components/chunks/{MazSpinner-Dr_lfVQQ.mjs → MazSpinner-D9K-TsT7.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bxtc-bgP.mjs → MazSpinner-JgB1pud8.mjs} +1 -1
- package/components/chunks/MazSpinner-hPbKGN5o.mjs +37 -0
- package/components/chunks/{MazStepper-Bnl68Adw.mjs → MazStepper-BmCk5RfP.mjs} +4 -4
- package/components/chunks/{MazTable-CverwWXf.mjs → MazTable-DsZV0t--.mjs} +7 -9
- package/components/chunks/{MazTransitionExpand-C1PC0VLx.mjs → MazTransitionExpand-D9pcEmUk.mjs} +1 -1
- package/components/types.d.ts +2 -0
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-O5zWLH6k.cjs → MazBtn-B5URGSZl.cjs} +2 -2
- package/modules/chunks/{MazBtn-VbPzVjkw.mjs → MazBtn-DRuL8cjg.mjs} +3 -3
- package/modules/chunks/{MazIcon-5tUs5Esl.cjs → MazIcon-BskR2yy9.cjs} +1 -1
- package/modules/chunks/{MazIcon-B-f-2ZQG.mjs → MazIcon-CKc-vAA8.mjs} +1 -1
- package/modules/chunks/{MazSpinner-fEByRc1j.mjs → MazSpinner-g6fliUmS.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BUSCYYJR.cjs → MazSpinner-zX9CPyJB.cjs} +1 -1
- package/modules/chunks/{index-Bos4zUyQ.cjs → index-BLdtEKD5.cjs} +4 -4
- package/modules/chunks/{index-B26Eo5t8.mjs → index-Bpj_Jr6I.mjs} +341 -343
- 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/MazBtn.vue.d.ts +2 -3
- package/types/components/MazDropdown.vue.d.ts +10 -5
- package/types/components/MazInput.vue.d.ts +2 -3
- package/types/components/MazLink.vue.d.ts +3 -6
- package/types/components/MazStepper.vue.d.ts +1 -3
- package/types/components/types.d.ts +2 -0
- package/components/chunks/MazBtn-Da2iB5Ca.mjs +0 -150
- package/components/chunks/MazSpinner-CrqkORnB.mjs +0 -37
- package/components/chunks/MazSpinner-DCpFSO05.mjs +0 -37
- package/components/chunks/MazSpinner-XWBim6LV.mjs +0 -37
- package/components/chunks/MazSpinner-ciJGzV8j.mjs +0 -37
- package/components/chunks/MazSpinner-dU5ZzoYV.mjs +0 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as b, createElementVNode as u,
|
|
1
|
+
import { openBlock as p, createElementBlock as b, createElementVNode as u, useId as A, computed as g, defineComponent as k, useCssVars as V, ref as f, onMounted as O, onUnmounted as B, normalizeClass as $, normalizeStyle as w, renderSlot as h, withDirectives as E, vShow as z, mergeModels as x, useModel as I, mergeProps as L, createCommentVNode as N, useSlots as j, Fragment as D, renderList as F, createBlock as R, withCtx as M, unref as y, createVNode as S } from "vue";
|
|
2
2
|
import './assets/MazAccordion.css';const P = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -28,12 +28,10 @@ function q({
|
|
|
28
28
|
componentName: r,
|
|
29
29
|
providedId: t
|
|
30
30
|
}) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return t ?? `${r}-${(n = A()) == null ? void 0 : n.uid}`;
|
|
34
|
-
});
|
|
31
|
+
const a = A();
|
|
32
|
+
return g(() => t ?? `${r}-${a}`);
|
|
35
33
|
}
|
|
36
|
-
const H = { class: "inner" }, W = /* @__PURE__ */
|
|
34
|
+
const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
37
35
|
__name: "MazCardSpotlight",
|
|
38
36
|
props: {
|
|
39
37
|
color: { default: "primary" },
|
|
@@ -46,14 +44,14 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
46
44
|
setup(r) {
|
|
47
45
|
V((d) => ({
|
|
48
46
|
"829b4eb4": d.innerOpacity,
|
|
49
|
-
"57453cb6":
|
|
47
|
+
"57453cb6": n.value
|
|
50
48
|
}));
|
|
51
|
-
const t = r,
|
|
49
|
+
const t = r, a = f(), l = f(), i = f(!1);
|
|
52
50
|
function m({ clientX: d, clientY: c }) {
|
|
53
|
-
var e, _,
|
|
51
|
+
var e, _, o;
|
|
54
52
|
i.value = !0;
|
|
55
53
|
const v = (e = l.value) == null ? void 0 : e.getBoundingClientRect();
|
|
56
|
-
v && ((
|
|
54
|
+
v && ((o = (_ = a.value) == null ? void 0 : _.animate) == null || o.call(
|
|
57
55
|
_,
|
|
58
56
|
[
|
|
59
57
|
{
|
|
@@ -66,7 +64,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
66
64
|
}
|
|
67
65
|
));
|
|
68
66
|
}
|
|
69
|
-
const
|
|
67
|
+
const n = g(() => `var(--maz-color-${t.color}-alpha)`), s = g(() => `var(--maz-color-${t.color}-alpha-20)`);
|
|
70
68
|
return O(() => {
|
|
71
69
|
window.addEventListener("mousemove", m);
|
|
72
70
|
}), B(() => {
|
|
@@ -95,9 +93,9 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
95
93
|
"div",
|
|
96
94
|
{
|
|
97
95
|
ref_key: "blobElement",
|
|
98
|
-
ref:
|
|
96
|
+
ref: a,
|
|
99
97
|
class: "blob",
|
|
100
|
-
style: w({ backgroundColor:
|
|
98
|
+
style: w({ backgroundColor: n.value })
|
|
101
99
|
},
|
|
102
100
|
null,
|
|
103
101
|
4
|
|
@@ -123,12 +121,12 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
123
121
|
/* CLASS, STYLE */
|
|
124
122
|
));
|
|
125
123
|
}
|
|
126
|
-
}),
|
|
127
|
-
const
|
|
124
|
+
}), C = (r, t) => {
|
|
125
|
+
const a = r.__vccOpts || r;
|
|
128
126
|
for (const [l, i] of t)
|
|
129
|
-
|
|
130
|
-
return
|
|
131
|
-
}, G = /* @__PURE__ */
|
|
127
|
+
a[l] = i;
|
|
128
|
+
return a;
|
|
129
|
+
}, G = /* @__PURE__ */ C(W, [["__scopeId", "data-v-a4cc15ae"]]), J = ["aria-hidden"], K = /* @__PURE__ */ k({
|
|
132
130
|
inheritAttrs: !1,
|
|
133
131
|
__name: "MazExpandAnimation",
|
|
134
132
|
props: /* @__PURE__ */ x({
|
|
@@ -140,24 +138,24 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
140
138
|
}),
|
|
141
139
|
emits: ["update:modelValue"],
|
|
142
140
|
setup(r) {
|
|
143
|
-
V((
|
|
144
|
-
"3628b947":
|
|
145
|
-
"239277b5":
|
|
141
|
+
V((n) => ({
|
|
142
|
+
"3628b947": n.duration,
|
|
143
|
+
"239277b5": n.timingFunction
|
|
146
144
|
}));
|
|
147
|
-
const t = I(r, "modelValue"),
|
|
145
|
+
const t = I(r, "modelValue"), a = f(!t.value), l = f();
|
|
148
146
|
function i() {
|
|
149
|
-
t.value || (
|
|
147
|
+
t.value || (a.value = !0);
|
|
150
148
|
}
|
|
151
149
|
function m() {
|
|
152
|
-
t.value && (
|
|
150
|
+
t.value && (a.value = !1);
|
|
153
151
|
}
|
|
154
152
|
return O(() => {
|
|
155
|
-
var
|
|
156
|
-
(
|
|
153
|
+
var n, s;
|
|
154
|
+
(n = l.value) == null || n.addEventListener("transitionstart", i, !1), (s = l.value) == null || s.addEventListener("transitionend", m, !1);
|
|
157
155
|
}), B(() => {
|
|
158
|
-
var
|
|
159
|
-
(
|
|
160
|
-
}), (
|
|
156
|
+
var n, s;
|
|
157
|
+
(n = l.value) == null || n.removeEventListener("transitionstart", i, !1), (s = l.value) == null || s.removeEventListener("transitionend", m, !1);
|
|
158
|
+
}), (n, s) => (p(), b("div", {
|
|
161
159
|
ref_key: "expandAnimationRef",
|
|
162
160
|
ref: l,
|
|
163
161
|
class: $(["m-expand-animation", { "m-expand-animation--expanded": t.value }]),
|
|
@@ -166,24 +164,24 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
166
164
|
}, [
|
|
167
165
|
u(
|
|
168
166
|
"div",
|
|
169
|
-
L({ class: "m-expand-animation__inner" },
|
|
167
|
+
L({ class: "m-expand-animation__inner" }, n.$attrs, {
|
|
170
168
|
class: {
|
|
171
|
-
"--overflow-hidden":
|
|
169
|
+
"--overflow-hidden": a.value
|
|
172
170
|
}
|
|
173
171
|
}),
|
|
174
172
|
[
|
|
175
173
|
N(" @slot Default Slot - Display content "),
|
|
176
|
-
h(
|
|
174
|
+
h(n.$slots, "default", {}, void 0, !0)
|
|
177
175
|
],
|
|
178
176
|
16
|
|
179
177
|
/* FULL_PROPS */
|
|
180
178
|
)
|
|
181
179
|
], 10, J));
|
|
182
180
|
}
|
|
183
|
-
}), Q = /* @__PURE__ */
|
|
181
|
+
}), Q = /* @__PURE__ */ C(K, [["__scopeId", "data-v-b7ca6b97"]]), X = {
|
|
184
182
|
class: "m-accordion",
|
|
185
183
|
role: "presentation"
|
|
186
|
-
}, Y = ["id", "aria-controls", "aria-expanded", "onClick"], Z = /* @__PURE__ */
|
|
184
|
+
}, Y = ["id", "aria-controls", "aria-expanded", "onClick"], Z = /* @__PURE__ */ k({
|
|
187
185
|
__name: "MazAccordion",
|
|
188
186
|
props: {
|
|
189
187
|
id: { default: void 0 },
|
|
@@ -192,13 +190,13 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
192
190
|
},
|
|
193
191
|
emits: ["update:model-value"],
|
|
194
192
|
setup(r, { emit: t }) {
|
|
195
|
-
const
|
|
193
|
+
const a = r, l = t, i = q({
|
|
196
194
|
componentName: "MazAccordion",
|
|
197
|
-
providedId:
|
|
198
|
-
}), m = j(),
|
|
195
|
+
providedId: a.id
|
|
196
|
+
}), m = j(), n = g(
|
|
199
197
|
() => Object.keys(m).filter((e) => e.startsWith("title-")).length
|
|
200
|
-
), s = f(
|
|
201
|
-
get: () =>
|
|
198
|
+
), s = f(a.modelValue), d = g({
|
|
199
|
+
get: () => a.modelValue || s.value,
|
|
202
200
|
set: (e) => {
|
|
203
201
|
s.value = e, l("update:model-value", e);
|
|
204
202
|
}
|
|
@@ -213,33 +211,33 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
213
211
|
(p(!0), b(
|
|
214
212
|
D,
|
|
215
213
|
null,
|
|
216
|
-
F(
|
|
214
|
+
F(n.value, (o) => (p(), R(
|
|
217
215
|
G,
|
|
218
216
|
{
|
|
219
|
-
key:
|
|
217
|
+
key: o,
|
|
220
218
|
class: "m-accordion__spotlight",
|
|
221
219
|
padding: !1
|
|
222
220
|
},
|
|
223
221
|
{
|
|
224
222
|
default: M(() => [
|
|
225
223
|
u("button", {
|
|
226
|
-
id: `step-${
|
|
224
|
+
id: `step-${o}-${y(i)}`,
|
|
227
225
|
class: "m-accordion__header",
|
|
228
|
-
"aria-controls": `step-${
|
|
229
|
-
"aria-expanded": c(
|
|
230
|
-
onClick: (ee) => v(
|
|
226
|
+
"aria-controls": `step-${o}-${y(i)}`,
|
|
227
|
+
"aria-expanded": c(o),
|
|
228
|
+
onClick: (ee) => v(o)
|
|
231
229
|
}, [
|
|
232
|
-
h(e.$slots, `title-${
|
|
233
|
-
isOpen: c(
|
|
230
|
+
h(e.$slots, `title-${o}`, {
|
|
231
|
+
isOpen: c(o)
|
|
234
232
|
}, void 0, !0),
|
|
235
233
|
S(y(U), {
|
|
236
|
-
class: $(["header-icon", { "--rotate": c(
|
|
234
|
+
class: $(["header-icon", { "--rotate": c(o) }])
|
|
237
235
|
}, null, 8, ["class"])
|
|
238
236
|
], 8, Y),
|
|
239
237
|
S(Q, {
|
|
240
238
|
"animation-duration": "300ms",
|
|
241
|
-
"model-value": c(
|
|
242
|
-
"aria-labelledby": `step-${
|
|
239
|
+
"model-value": c(o),
|
|
240
|
+
"aria-labelledby": `step-${o}-${y(i)}`
|
|
243
241
|
}, {
|
|
244
242
|
default: M(() => [
|
|
245
243
|
u(
|
|
@@ -249,10 +247,10 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
249
247
|
},
|
|
250
248
|
[
|
|
251
249
|
h(e.$slots, "content", {
|
|
252
|
-
isOpen: c(
|
|
250
|
+
isOpen: c(o)
|
|
253
251
|
}, void 0, !0),
|
|
254
|
-
h(e.$slots, `content-${
|
|
255
|
-
isOpen: c(
|
|
252
|
+
h(e.$slots, `content-${o}`, {
|
|
253
|
+
isOpen: c(o)
|
|
256
254
|
}, void 0, !0)
|
|
257
255
|
],
|
|
258
256
|
2
|
|
@@ -274,7 +272,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ C({
|
|
|
274
272
|
))
|
|
275
273
|
]));
|
|
276
274
|
}
|
|
277
|
-
}), ne = /* @__PURE__ */
|
|
275
|
+
}), ne = /* @__PURE__ */ C(Z, [["__scopeId", "data-v-052b6500"]]);
|
|
278
276
|
export {
|
|
279
277
|
ne as default
|
|
280
278
|
};
|
package/components/MazBtn.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Color, Size } from './types';
|
|
2
|
-
import { type
|
|
1
|
+
import type { Color, Icon, Size } from './types';
|
|
2
|
+
import { type HTMLAttributes } from 'vue';
|
|
3
3
|
export type { Color, Size };
|
|
4
|
-
export type Icon = FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component;
|
|
5
4
|
export interface Props {
|
|
6
5
|
/**
|
|
7
6
|
* The variant of the button - Change UI of component (link or button style)
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as S, computed as l, openBlock as f, createElementBlock as p, 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
3
|
componentName: n,
|
|
4
4
|
providedId: a
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return a ?? `${n}-${(o = S()) == null ? void 0 : o.uid}`;
|
|
9
|
-
});
|
|
6
|
+
const o = S();
|
|
7
|
+
return l(() => a ?? `${n}-${o}`);
|
|
10
8
|
}
|
|
11
9
|
const F = {
|
|
12
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as w, computed as r, defineComponent as _, useCssVars as $, useSlots as y, ref as S, watch as B, openBlock as p, createElementBlock as v, normalizeClass as P, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as m, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as k } from "vue";
|
|
2
2
|
import './assets/MazCircularProgressBar.css';function N({
|
|
3
3
|
componentName: a,
|
|
4
4
|
providedId: e
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return e ?? `${a}-${(s = w()) == null ? void 0 : s.uid}`;
|
|
9
|
-
});
|
|
6
|
+
const s = w();
|
|
7
|
+
return r(() => e ?? `${a}-${s}`);
|
|
10
8
|
}
|
|
11
9
|
const V = { class: "maz-sr-only" }, D = {
|
|
12
10
|
key: 0,
|
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-BTxqbijR.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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouteLocationRaw } from 'vue-router';
|
|
2
2
|
import type { Color } from './MazBtn.vue';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MazLinkProps } from './MazLink.vue';
|
|
4
4
|
import type { Position } from './types';
|
|
5
5
|
import { type HTMLAttributes } from 'vue';
|
|
6
6
|
export type { Color, Position };
|
|
@@ -24,10 +24,15 @@ export type MenuItem = (LinkItem & {
|
|
|
24
24
|
to?: never;
|
|
25
25
|
target?: never;
|
|
26
26
|
});
|
|
27
|
-
export interface
|
|
27
|
+
export interface MazDropdownProps {
|
|
28
|
+
/** Style object */
|
|
28
29
|
style?: HTMLAttributes['style'];
|
|
30
|
+
/** Class name */
|
|
29
31
|
class?: HTMLAttributes['class'];
|
|
30
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Menu items
|
|
34
|
+
* @default '[]'
|
|
35
|
+
*/
|
|
31
36
|
items?: MenuItem[];
|
|
32
37
|
/** Menu should be open? */
|
|
33
38
|
open?: boolean;
|
|
@@ -104,10 +109,10 @@ declare function __VLS_template(): {
|
|
|
104
109
|
attrs: Partial<{}>;
|
|
105
110
|
};
|
|
106
111
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
107
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
112
|
+
declare const __VLS_component: import("vue").DefineComponent<MazDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
108
113
|
"menuitem-clicked": (event: Event) => any;
|
|
109
114
|
"update:open": (value: boolean) => any;
|
|
110
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
115
|
+
}, string, import("vue").PublicProps, Readonly<MazDropdownProps> & Readonly<{
|
|
111
116
|
"onMenuitem-clicked"?: ((event: Event) => any) | undefined;
|
|
112
117
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
113
118
|
}>, {
|