maz-ui 3.22.4 → 3.23.1
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/MazAvatar.mjs +2 -2
- package/components/MazBackdrop.mjs +67 -107
- package/components/MazBadge.mjs +41 -50
- package/components/MazBottomSheet.mjs +2 -2
- package/components/MazBtn.mjs +2 -2
- package/components/MazCard.mjs +2 -2
- package/components/MazCarousel.mjs +2 -2
- package/components/MazChart.mjs +53 -63
- package/components/MazCheckbox.mjs +84 -128
- package/components/MazDialog.mjs +2 -2
- package/components/MazDialogPromise.mjs +3 -3
- package/components/MazDrawer.mjs +2 -2
- package/components/MazDropdown.mjs +2 -2
- package/components/MazDropzone.mjs +2 -2
- package/components/MazFullscreenLoader.mjs +14 -18
- package/components/MazGallery.mjs +352 -558
- package/components/MazIcon.mjs +76 -140
- package/components/MazInput.mjs +2 -2
- package/components/MazInputNumber.mjs +72 -99
- package/components/MazInputPrice.mjs +2 -2
- package/components/MazInputTags.mjs +2 -2
- package/components/MazLazyImg.mjs +2 -2
- package/components/MazPhoneNumberInput.mjs +2 -2
- package/components/MazPicker.mjs +2 -2
- package/components/MazRadio.mjs +65 -94
- package/components/MazRadioButtons.mjs +64 -78
- package/components/MazSelect.mjs +2 -2
- package/components/MazSlider.mjs +213 -325
- package/components/MazSpinner.mjs +25 -34
- package/components/MazStepper.mjs +2 -2
- package/components/MazSwitch.mjs +43 -60
- package/components/MazTabs.mjs +16 -25
- package/components/MazTabsBar.mjs +2 -2
- package/components/MazTabsContent.mjs +34 -43
- package/components/MazTabsContentItem.mjs +49 -63
- package/components/MazTextarea.mjs +124 -169
- package/components/MazTransitionExpand.mjs +36 -54
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
- package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
- package/components/chunks/MazBtn-124f3700.mjs +153 -0
- package/components/chunks/MazBtn-1e61862b.mjs +153 -0
- package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
- package/components/chunks/MazBtn-3d74f737.mjs +153 -0
- package/components/chunks/MazBtn-4a447126.mjs +153 -0
- package/components/chunks/MazBtn-555928ed.mjs +153 -0
- package/components/chunks/MazBtn-571454f6.mjs +153 -0
- package/components/chunks/MazBtn-5e426592.mjs +153 -0
- package/components/chunks/MazBtn-683effc1.mjs +153 -0
- package/components/chunks/MazBtn-6905cc39.mjs +153 -0
- package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
- package/components/chunks/MazBtn-74656d5b.mjs +153 -0
- package/components/chunks/MazBtn-7706b2da.mjs +158 -0
- package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
- package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
- package/components/chunks/MazCard-bcc36489.mjs +214 -0
- package/components/chunks/MazCarousel-6da75122.mjs +107 -0
- package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
- package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
- package/components/chunks/MazDialog-44eda544.mjs +250 -0
- package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
- package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
- package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
- package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
- package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
- package/components/chunks/MazIcon-52a76873.mjs +101 -0
- package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
- package/components/chunks/MazInput-1ed4f946.mjs +283 -0
- package/components/chunks/MazInput-8a217995.mjs +271 -0
- package/components/chunks/MazInput-c51881ea.mjs +278 -0
- package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
- package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
- package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
- package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
- package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
- package/components/chunks/MazPicker-e4620d8b.mjs +1140 -0
- package/components/chunks/MazPickerCalendar-da62262c.mjs +535 -0
- package/components/chunks/MazPickerHeader-a2e041eb.mjs +186 -0
- package/components/chunks/MazPickerMonthSwitcher-5bf8bd08.mjs +97 -0
- package/components/chunks/MazPickerShortcuts-7f95430e.mjs +74 -0
- package/components/chunks/MazPickerTime-717402ae.mjs +219 -0
- package/components/chunks/MazPickerYearSwitcher-85f97b6d.mjs +106 -0
- package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
- package/components/chunks/MazSpinner-054f948c.mjs +39 -0
- package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
- package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
- package/components/chunks/MazSpinner-13403729.mjs +39 -0
- package/components/chunks/MazSpinner-44011019.mjs +39 -0
- package/components/chunks/MazSpinner-452a1534.mjs +39 -0
- package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
- package/components/chunks/MazSpinner-51aa73ca.mjs +39 -0
- package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
- package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
- package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
- package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
- package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
- package/components/chunks/MazSpinner-85080b43.mjs +39 -0
- package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
- package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
- package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
- package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
- package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
- package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
- package/components/chunks/MazStepper-39f018f3.mjs +191 -0
- package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
- package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
- package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
- package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/components/chunks/check-31d7ba2f.mjs +30 -0
- package/components/chunks/check-c9b483c0.mjs +30 -0
- package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
- package/components/chunks/chevron-down-2b60111a.mjs +30 -0
- package/components/chunks/chevron-left-39b4621e.mjs +30 -0
- package/components/chunks/chevron-right-949a60fa.mjs +30 -0
- package/components/chunks/debounce-19c516b6.mjs +11 -0
- package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
- package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
- package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
- package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
- package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
- package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
- package/components/chunks/minus-e71140e1.mjs +30 -0
- package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
- package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
- package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
- package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
- package/components/chunks/plus-c20544c3.mjs +30 -0
- package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
- package/components/chunks/x-mark-7761acf4.mjs +29 -0
- package/modules/chunks/MazBtn-2f302422.cjs +1 -0
- package/modules/chunks/MazBtn-760c3b29.mjs +153 -0
- package/modules/chunks/MazIcon-0bd6b78e.mjs +96 -0
- package/modules/chunks/MazIcon-599a907f.cjs +1 -0
- package/modules/chunks/MazSpinner-03bd76bd.mjs +39 -0
- package/modules/chunks/MazSpinner-6ffa8db1.cjs +1 -0
- package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
- package/modules/chunks/arrow-top-right-on-square-8e4ea6e2.cjs +1 -0
- package/modules/chunks/chevron-left-36731110.cjs +1 -0
- package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
- package/modules/chunks/index-6a90ef88.mjs +1618 -0
- package/modules/chunks/index-794680d2.cjs +124 -0
- package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
- package/modules/chunks/link-c7791a2a.cjs +1 -0
- package/modules/chunks/no-photography-0f6fcaf4.cjs +1 -0
- package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
- package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
- package/modules/chunks/x-mark-a28deca5.cjs +1 -0
- package/modules/index.cjs +1 -0
- package/modules/index.mjs +42 -42
- package/nuxt/index.json +1 -1
- package/package.json +14 -4
- package/types/resolvers/index.d.ts +1 -0
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +8 -0
- package/types/utils/index.d.ts +3 -0
- package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
- package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
- package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
- package/components/chunks/MazBtn-1daf9063.mjs +0 -184
- package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
- package/components/chunks/MazBtn-31c6b731.mjs +0 -184
- package/components/chunks/MazBtn-48382169.mjs +0 -184
- package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
- package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
- package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
- package/components/chunks/MazBtn-b42e3575.mjs +0 -184
- package/components/chunks/MazBtn-b56a7278.mjs +0 -184
- package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
- package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
- package/components/chunks/MazBtn-d92908b2.mjs +0 -191
- package/components/chunks/MazBtn-f48da79c.mjs +0 -184
- package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
- package/components/chunks/MazCard-4331dca0.mjs +0 -237
- package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
- package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
- package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
- package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
- package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
- package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
- package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
- package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
- package/components/chunks/MazGallery-b2dc4286.mjs +0 -821
- package/components/chunks/MazIcon-b779da0a.mjs +0 -159
- package/components/chunks/MazIcon-bda198b4.mjs +0 -165
- package/components/chunks/MazInput-713b00d0.mjs +0 -326
- package/components/chunks/MazInput-b9386887.mjs +0 -341
- package/components/chunks/MazInput-c33627dd.mjs +0 -334
- package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
- package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
- package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
- package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
- package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
- package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
- package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
- package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
- package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
- package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
- package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
- package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
- package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
- package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
- package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
- package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
- package/components/chunks/MazSpinner-3155378b.mjs +0 -46
- package/components/chunks/MazSpinner-339a9006.mjs +0 -46
- package/components/chunks/MazSpinner-53979e96.mjs +0 -46
- package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
- package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
- package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
- package/components/chunks/MazSpinner-8859d658.mjs +0 -46
- package/components/chunks/MazSpinner-8e180605.mjs +0 -52
- package/components/chunks/MazSpinner-9950424b.mjs +0 -46
- package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
- package/components/chunks/MazSpinner-cb491238.mjs +0 -46
- package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
- package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
- package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
- package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
- package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
- package/components/chunks/MazSpinner-f1e69f29.mjs +0 -46
- package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
- package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
- package/components/chunks/MazTransitionExpand-474b00d4.mjs +0 -57
- package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
- package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
- package/components/chunks/check-8da249b1.mjs +0 -32
- package/components/chunks/check-f2fcce10.mjs +0 -32
- package/components/chunks/chevron-down-a78b9604.mjs +0 -32
- package/components/chunks/chevron-left-3365d59b.mjs +0 -32
- package/components/chunks/chevron-right-02f9e837.mjs +0 -32
- package/components/chunks/debounce-7d66ffa9.mjs +0 -12
- package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
- package/components/chunks/minus-c9cdee90.mjs +0 -32
- package/components/chunks/no-photography-7f2be516.mjs +0 -4
- package/components/chunks/plus-b1b0a5a8.mjs +0 -32
- package/components/chunks/x-mark-3b05101b.mjs +0 -31
- package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
- package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
- package/modules/chunks/MazIcon-988edef7.mjs +0 -159
- package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
- package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
- package/modules/chunks/index-b1625fc2.mjs +0 -2315
- package/modules/chunks/no-photography-7f2be516.mjs +0 -4
- package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import "./assets/MazSpinner.css";
|
|
2
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
const
|
|
4
|
-
const _hoisted_1 = ["width", "height"];
|
|
5
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
2
|
+
import { defineComponent as s, openBlock as r, createElementBlock as p, normalizeClass as a, pushScopeId as i, popScopeId as _, createElementVNode as l } from "vue";
|
|
3
|
+
const d = (e) => (i("data-v-c67298ec"), e = e(), _(), e), h = ["width", "height"], m = /* @__PURE__ */ d(() => /* @__PURE__ */ l(
|
|
6
4
|
"path",
|
|
7
5
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
8
6
|
null,
|
|
9
7
|
-1
|
|
10
8
|
/* HOISTED */
|
|
11
|
-
))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
];
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
)), u = [
|
|
10
|
+
m
|
|
11
|
+
], v = /* @__PURE__ */ s({
|
|
16
12
|
__name: "MazSpinner",
|
|
17
13
|
props: {
|
|
18
14
|
size: { type: String, default: "2em" },
|
|
@@ -21,32 +17,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
17
|
default: "primary"
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
|
-
setup(
|
|
25
|
-
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, _hoisted_3, 10, _hoisted_1);
|
|
38
|
-
};
|
|
20
|
+
setup(e) {
|
|
21
|
+
return (c, t) => (r(), p("svg", {
|
|
22
|
+
width: e.size,
|
|
23
|
+
height: e.size,
|
|
24
|
+
version: "1.1",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
x: "0px",
|
|
27
|
+
y: "0px",
|
|
28
|
+
viewBox: "0 0 50 50",
|
|
29
|
+
"xml:space": "preserve",
|
|
30
|
+
class: a(["m-spinner", `m-spinner--${e.color}`]),
|
|
31
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
32
|
+
}, u, 10, h));
|
|
39
33
|
}
|
|
40
34
|
});
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return target;
|
|
48
|
-
};
|
|
49
|
-
const MazSpinner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c67298ec"]]);
|
|
35
|
+
const g = (e, c) => {
|
|
36
|
+
const t = e.__vccOpts || e;
|
|
37
|
+
for (const [n, o] of c)
|
|
38
|
+
t[n] = o;
|
|
39
|
+
return t;
|
|
40
|
+
}, f = /* @__PURE__ */ g(v, [["__scopeId", "data-v-c67298ec"]]);
|
|
50
41
|
export {
|
|
51
|
-
|
|
42
|
+
f as default
|
|
52
43
|
};
|
package/components/MazSwitch.mjs
CHANGED
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
import "./assets/MazSwitch.css";
|
|
2
|
-
import { computed, defineComponent, useCssVars, getCurrentInstance, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, mergeProps, renderSlot, createCommentVNode } from "vue";
|
|
3
|
-
const
|
|
4
|
-
componentName,
|
|
5
|
-
instance,
|
|
6
|
-
providedId
|
|
7
|
-
}) => {
|
|
8
|
-
return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_1 = ["for", "aria-checked"];
|
|
11
|
-
const _hoisted_2 = ["id", "name", "checked", "disabled"];
|
|
12
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode(
|
|
2
|
+
import { computed as s, defineComponent as _, useCssVars as b, getCurrentInstance as v, openBlock as n, createElementBlock as i, unref as r, normalizeClass as g, createElementVNode as m, mergeProps as k, renderSlot as y, createCommentVNode as C } from "vue";
|
|
3
|
+
const w = ({
|
|
4
|
+
componentName: e,
|
|
5
|
+
instance: l,
|
|
6
|
+
providedId: a
|
|
7
|
+
}) => s(() => a ?? `${e}-${l == null ? void 0 : l.uid}`), V = ["for", "aria-checked"], z = ["id", "name", "checked", "disabled"], S = /* @__PURE__ */ m(
|
|
13
8
|
"span",
|
|
14
9
|
{ class: "m-switch__toggle" },
|
|
15
10
|
null,
|
|
16
11
|
-1
|
|
17
12
|
/* HOISTED */
|
|
18
|
-
)
|
|
19
|
-
const _hoisted_4 = {
|
|
13
|
+
), $ = {
|
|
20
14
|
key: 0,
|
|
21
15
|
class: "m-switch__label"
|
|
22
|
-
}
|
|
23
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
}, B = /* @__PURE__ */ _({
|
|
24
17
|
__name: "MazSwitch",
|
|
25
18
|
props: {
|
|
26
|
-
modelValue: { type: Boolean, required:
|
|
19
|
+
modelValue: { type: Boolean, required: !0 },
|
|
27
20
|
id: { type: String, default: void 0 },
|
|
28
|
-
disabled: { type: Boolean, default:
|
|
21
|
+
disabled: { type: Boolean, default: !1 },
|
|
29
22
|
name: { type: String, default: void 0 },
|
|
30
23
|
color: { type: String, default: "primary" }
|
|
31
24
|
},
|
|
@@ -35,53 +28,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
28
|
/* emitted on value change */
|
|
36
29
|
"change"
|
|
37
30
|
],
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
"61b7edd8":
|
|
41
|
-
|
|
31
|
+
setup(e, { emit: l }) {
|
|
32
|
+
b((o) => ({
|
|
33
|
+
"61b7edd8": h.value,
|
|
34
|
+
d86aa1f0: p.value
|
|
42
35
|
}));
|
|
43
|
-
const
|
|
44
|
-
const emits = __emit;
|
|
45
|
-
const instance = getCurrentInstance();
|
|
46
|
-
const instanceId = useInstanceUniqId({
|
|
36
|
+
const a = e, d = l, u = v(), c = w({
|
|
47
37
|
componentName: "MazCheckbox",
|
|
48
|
-
instance,
|
|
49
|
-
providedId:
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const emit = (e) => {
|
|
56
|
-
const target = e.target;
|
|
57
|
-
emits("update:model-value", (target == null ? void 0 : target.checked) ?? false);
|
|
58
|
-
emits("change", (target == null ? void 0 : target.checked) ?? false);
|
|
59
|
-
};
|
|
60
|
-
return (_ctx, _cache) => {
|
|
61
|
-
return openBlock(), createElementBlock("label", {
|
|
62
|
-
for: unref(instanceId),
|
|
63
|
-
class: normalizeClass(["m-switch", { "--is-disabled": __props.disabled }]),
|
|
64
|
-
role: "switch",
|
|
65
|
-
"aria-checked": __props.modelValue,
|
|
66
|
-
tabindex: "0"
|
|
67
|
-
}, [
|
|
68
|
-
createElementVNode("input", mergeProps({ id: unref(instanceId) }, _ctx.$attrs, {
|
|
69
|
-
type: "checkbox",
|
|
70
|
-
name: __props.name,
|
|
71
|
-
checked: __props.modelValue,
|
|
72
|
-
disabled: __props.disabled,
|
|
73
|
-
class: "m-switch__input",
|
|
74
|
-
onChange: emit
|
|
75
|
-
}), null, 16, _hoisted_2),
|
|
76
|
-
_hoisted_3,
|
|
77
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
78
|
-
renderSlot(_ctx.$slots, "default")
|
|
79
|
-
])) : createCommentVNode("v-if", true)
|
|
80
|
-
], 10, _hoisted_1);
|
|
38
|
+
instance: u,
|
|
39
|
+
providedId: a.id
|
|
40
|
+
}), h = s(() => `var(--maz-color-${a.color}-alpha)`), p = s(
|
|
41
|
+
() => a.modelValue ? `var(--maz-color-${a.color})` : "var(--maz-color-white)"
|
|
42
|
+
), f = (o) => {
|
|
43
|
+
const t = o.target;
|
|
44
|
+
d("update:model-value", (t == null ? void 0 : t.checked) ?? !1), d("change", (t == null ? void 0 : t.checked) ?? !1);
|
|
81
45
|
};
|
|
46
|
+
return (o, t) => (n(), i("label", {
|
|
47
|
+
for: r(c),
|
|
48
|
+
class: g(["m-switch", { "--is-disabled": e.disabled }]),
|
|
49
|
+
role: "switch",
|
|
50
|
+
"aria-checked": e.modelValue,
|
|
51
|
+
tabindex: "0"
|
|
52
|
+
}, [
|
|
53
|
+
m("input", k({ id: r(c) }, o.$attrs, {
|
|
54
|
+
type: "checkbox",
|
|
55
|
+
name: e.name,
|
|
56
|
+
checked: e.modelValue,
|
|
57
|
+
disabled: e.disabled,
|
|
58
|
+
class: "m-switch__input",
|
|
59
|
+
onChange: f
|
|
60
|
+
}), null, 16, z),
|
|
61
|
+
S,
|
|
62
|
+
o.$slots.default ? (n(), i("span", $, [
|
|
63
|
+
y(o.$slots, "default")
|
|
64
|
+
])) : C("v-if", !0)
|
|
65
|
+
], 10, V));
|
|
82
66
|
}
|
|
83
67
|
});
|
|
84
|
-
const MazSwitch_vue_vue_type_style_index_0_lang = "";
|
|
85
68
|
export {
|
|
86
|
-
|
|
69
|
+
B as default
|
|
87
70
|
};
|
package/components/MazTabs.mjs
CHANGED
|
@@ -1,37 +1,28 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
-
const
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as n, ref as c, computed as m, provide as d, openBlock as p, createElementBlock as i, renderSlot as f } from "vue";
|
|
2
|
+
const v = { class: "m-tabs" }, T = /* @__PURE__ */ n({
|
|
4
3
|
__name: "MazTabs",
|
|
5
4
|
props: {
|
|
6
5
|
modelValue: { type: Number, default: void 0 }
|
|
7
6
|
},
|
|
8
7
|
emits: ["update:model-value"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
get: () => props.modelValue ?? localValue.value,
|
|
15
|
-
set: (index) => {
|
|
16
|
-
localValue.value = index;
|
|
17
|
-
emits("update:model-value", index);
|
|
8
|
+
setup(o, { emit: l }) {
|
|
9
|
+
const u = o, s = l, t = c(1), a = m({
|
|
10
|
+
get: () => u.modelValue ?? t.value,
|
|
11
|
+
set: (e) => {
|
|
12
|
+
t.value = e, s("update:model-value", e);
|
|
18
13
|
}
|
|
19
14
|
});
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
return index;
|
|
15
|
+
function r(e) {
|
|
16
|
+
return a.value = e, e;
|
|
23
17
|
}
|
|
24
|
-
|
|
25
|
-
currentTab,
|
|
26
|
-
updateCurrentTab
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
renderSlot(_ctx.$slots, "default")
|
|
31
|
-
]);
|
|
32
|
-
};
|
|
18
|
+
return d("maz-tabs", {
|
|
19
|
+
currentTab: a,
|
|
20
|
+
updateCurrentTab: r
|
|
21
|
+
}), (e, _) => (p(), i("div", v, [
|
|
22
|
+
f(e.$slots, "default")
|
|
23
|
+
]));
|
|
33
24
|
}
|
|
34
25
|
});
|
|
35
26
|
export {
|
|
36
|
-
|
|
27
|
+
T as default
|
|
37
28
|
};
|
|
@@ -1,52 +1,43 @@
|
|
|
1
|
-
import { inject, defineComponent, ref, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
function
|
|
3
|
-
let
|
|
4
|
-
return function(...
|
|
5
|
-
clearTimeout(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, delay);
|
|
1
|
+
import { inject as l, defineComponent as c, ref as i, watch as s, openBlock as u, createElementBlock as m, normalizeClass as f, renderSlot as d } from "vue";
|
|
2
|
+
function v(n, e) {
|
|
3
|
+
let t;
|
|
4
|
+
return function(...o) {
|
|
5
|
+
clearTimeout(t), t = setTimeout(() => {
|
|
6
|
+
n.apply(this, o);
|
|
7
|
+
}, e);
|
|
9
8
|
};
|
|
10
9
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
if (!
|
|
14
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${
|
|
15
|
-
|
|
16
|
-
return resolved;
|
|
10
|
+
function p(n, e) {
|
|
11
|
+
const t = l(n, e);
|
|
12
|
+
if (!t)
|
|
13
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${n}`);
|
|
14
|
+
return t;
|
|
17
15
|
}
|
|
18
|
-
const
|
|
16
|
+
const h = /* @__PURE__ */ c({
|
|
19
17
|
__name: "MazTabsContent",
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
allowOverFlow();
|
|
26
|
-
};
|
|
27
|
-
const allowOverFlow = debounce(function() {
|
|
28
|
-
hideOverflow.value = false;
|
|
18
|
+
setup(n) {
|
|
19
|
+
const e = i(!1), { currentTab: t } = p("maz-tabs"), o = () => {
|
|
20
|
+
e.value = !0, r();
|
|
21
|
+
}, r = v(function() {
|
|
22
|
+
e.value = !1;
|
|
29
23
|
}, 700);
|
|
30
|
-
|
|
31
|
-
() =>
|
|
32
|
-
() =>
|
|
33
|
-
{ immediate:
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/* CLASS */
|
|
46
|
-
);
|
|
47
|
-
};
|
|
24
|
+
return s(
|
|
25
|
+
() => t.value,
|
|
26
|
+
() => o(),
|
|
27
|
+
{ immediate: !0 }
|
|
28
|
+
), (a, w) => (u(), m(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
class: f(["m-tabs-content maz-relative", { "maz-overflow-hidden": e.value }])
|
|
32
|
+
},
|
|
33
|
+
[
|
|
34
|
+
d(a.$slots, "default")
|
|
35
|
+
],
|
|
36
|
+
2
|
|
37
|
+
/* CLASS */
|
|
38
|
+
));
|
|
48
39
|
}
|
|
49
40
|
});
|
|
50
41
|
export {
|
|
51
|
-
|
|
42
|
+
h as default
|
|
52
43
|
};
|
|
@@ -1,75 +1,61 @@
|
|
|
1
1
|
import "./assets/MazTabsContentItem.css";
|
|
2
|
-
import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, renderSlot, vShow } from "vue";
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
if (!
|
|
6
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${
|
|
7
|
-
|
|
8
|
-
return resolved;
|
|
2
|
+
import { inject as _, defineComponent as p, ref as c, watch as d, computed as i, openBlock as l, createBlock as v, Transition as f, withCtx as T, withDirectives as z, createElementVNode as C, renderSlot as y, vShow as w } from "vue";
|
|
3
|
+
function I(t, n) {
|
|
4
|
+
const e = _(t, n);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${t}`);
|
|
7
|
+
return e;
|
|
9
8
|
}
|
|
10
|
-
const
|
|
9
|
+
const h = /* @__PURE__ */ p({
|
|
11
10
|
__name: "MazTabsContentItem",
|
|
12
11
|
props: {
|
|
13
|
-
tab: { type: Number, required:
|
|
12
|
+
tab: { type: Number, required: !0 }
|
|
14
13
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (typeof value === "number" && typeof oldValue === "number") {
|
|
24
|
-
const newTabIsBigger = oldValue < value;
|
|
25
|
-
transitionName.value = newTabIsBigger ? "maz-tab-transition" : "maz-tab-reverse-transition";
|
|
14
|
+
setup(t) {
|
|
15
|
+
const n = c("maz-tab-transition"), e = c(), o = t, { currentTab: r } = I("maz-tabs");
|
|
16
|
+
d(
|
|
17
|
+
() => r.value,
|
|
18
|
+
async (a, s) => {
|
|
19
|
+
if (typeof a == "number" && typeof s == "number") {
|
|
20
|
+
const b = s < a;
|
|
21
|
+
n.value = b ? "maz-tab-transition" : "maz-tab-reverse-transition";
|
|
26
22
|
}
|
|
27
23
|
},
|
|
28
|
-
{ immediate:
|
|
24
|
+
{ immediate: !0 }
|
|
29
25
|
);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
[vShow, isCurrentTab.value]
|
|
56
|
-
])
|
|
57
|
-
]),
|
|
58
|
-
_: 3
|
|
59
|
-
/* FORWARDED */
|
|
60
|
-
}, 8, ["name"]);
|
|
61
|
-
};
|
|
26
|
+
const m = i(() => o.tab - 1), u = i(() => r.value - 1 === m.value);
|
|
27
|
+
return (a, s) => (l(), v(f, {
|
|
28
|
+
name: n.value,
|
|
29
|
+
persisted: ""
|
|
30
|
+
}, {
|
|
31
|
+
default: T(() => [
|
|
32
|
+
z(C(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
ref_key: "MazTabsContentItem",
|
|
36
|
+
ref: e,
|
|
37
|
+
class: "m-tabs-content-item"
|
|
38
|
+
},
|
|
39
|
+
[
|
|
40
|
+
y(a.$slots, "default", {}, void 0, !0)
|
|
41
|
+
],
|
|
42
|
+
512
|
|
43
|
+
/* NEED_PATCH */
|
|
44
|
+
), [
|
|
45
|
+
[w, u.value]
|
|
46
|
+
])
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
/* FORWARDED */
|
|
50
|
+
}, 8, ["name"]));
|
|
62
51
|
}
|
|
63
52
|
});
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return target;
|
|
71
|
-
};
|
|
72
|
-
const MazTabsContentItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb2d5094"]]);
|
|
53
|
+
const M = (t, n) => {
|
|
54
|
+
const e = t.__vccOpts || t;
|
|
55
|
+
for (const [o, r] of n)
|
|
56
|
+
e[o] = r;
|
|
57
|
+
return e;
|
|
58
|
+
}, N = /* @__PURE__ */ M(h, [["__scopeId", "data-v-bb2d5094"]]);
|
|
73
59
|
export {
|
|
74
|
-
|
|
60
|
+
N as default
|
|
75
61
|
};
|