maz-ui 3.6.11 → 3.7.0
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/LICENSE +21 -0
- package/components/MazAvatar.mjs +113 -55
- package/components/MazAvatar.umd.js +2 -2
- package/components/MazBackdrop.mjs +49 -23
- package/components/MazBackdrop.umd.js +2 -2
- package/components/MazBadge.mjs +17 -11
- package/components/MazBadge.umd.js +2 -2
- package/components/MazBottomSheet.mjs +160 -88
- package/components/MazBottomSheet.umd.js +2 -2
- package/components/MazBtn.mjs +54 -29
- package/components/MazBtn.umd.js +2 -2
- package/components/MazCard.mjs +322 -193
- package/components/MazCard.umd.js +2 -2
- package/components/MazCarousel.mjs +123 -77
- package/components/MazCarousel.umd.js +2 -2
- package/components/MazChart.d.ts +3 -34
- package/components/MazChart.mjs +2 -2
- package/components/MazChart.umd.js +2 -2
- package/components/MazCheckbox.mjs +25 -19
- package/components/MazCheckbox.umd.js +2 -2
- package/components/MazDialog.d.ts +27 -0
- package/components/MazDialog.mjs +178 -98
- package/components/MazDialog.umd.js +2 -2
- package/components/MazDialogPromise.d.ts +1 -1
- package/components/MazDialogPromise.mjs +204 -105
- package/components/MazDialogPromise.umd.js +2 -2
- package/components/MazDrawer.mjs +149 -80
- package/components/MazDrawer.umd.js +2 -2
- package/components/MazDropzone.d.ts +2 -2
- package/components/MazDropzone.mjs +72 -42
- package/components/MazDropzone.umd.js +2 -2
- package/components/MazGallery.mjs +158 -80
- package/components/MazGallery.umd.js +2 -2
- package/components/MazIcon.mjs +27 -15
- package/components/MazIcon.umd.js +2 -2
- package/components/MazInput.mjs +183 -140
- package/components/MazInput.umd.js +2 -2
- package/components/MazInputNumber.d.ts +1 -1
- package/components/MazInputNumber.mjs +244 -193
- package/components/MazInputNumber.umd.js +2 -2
- package/components/MazInputPrice.d.ts +1 -1
- package/components/MazInputPrice.mjs +207 -156
- package/components/MazInputPrice.umd.js +2 -2
- package/components/MazInputTags.mjs +260 -195
- package/components/MazInputTags.umd.js +2 -2
- package/components/MazLazyImg.mjs +48 -21
- package/components/MazLazyImg.umd.js +2 -2
- package/components/MazPhoneNumberInput.mjs +383 -279
- package/components/MazPhoneNumberInput.umd.js +2 -2
- package/components/MazPicker.d.ts +2 -2
- package/components/MazPicker.mjs +755 -486
- package/components/MazPicker.umd.js +2 -2
- package/components/MazRadioButtons.mjs +52 -36
- package/components/MazRadioButtons.umd.js +2 -2
- package/components/MazSelect.mjs +324 -254
- package/components/MazSelect.umd.js +2 -2
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSlider.mjs +97 -45
- package/components/MazSlider.umd.js +2 -2
- package/components/MazSpinner.mjs +8 -2
- package/components/MazSpinner.umd.js +2 -2
- package/components/MazStepper.mjs +144 -84
- package/components/MazStepper.umd.js +2 -2
- package/components/MazSwitch.mjs +34 -22
- package/components/MazSwitch.umd.js +2 -2
- package/components/MazTabsBar.mjs +111 -57
- package/components/MazTabsBar.umd.js +2 -2
- package/components/MazTabsContent.mjs +14 -8
- package/components/MazTabsContent.umd.js +2 -2
- package/components/MazTabsContentItem.mjs +17 -9
- package/components/MazTabsContentItem.umd.js +2 -2
- package/components/MazTextarea.mjs +52 -40
- package/components/MazTextarea.umd.js +2 -2
- package/components/MazTransitionExpand.mjs +2 -1
- package/components/MazTransitionExpand.umd.js +2 -2
- package/components/assets/no-photography-584c6185.mjs +4 -0
- package/components/index.mjs +1 -1
- package/css/main.css +1 -1
- package/modules/assets/no-photography-584c6185.mjs +4 -0
- package/modules/maz-ui.mjs +81 -40
- package/modules/maz-ui.umd.js +2 -2
- package/package.json +37 -48
- package/components/index.umd.js +0 -35
- package/components/no_photo-410a8f01.mjs +0 -4
- package/modules/no_photo-410a8f01.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode(".m-radio-buttons[data-v-04dc546b]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.5rem}.m-radio-buttons__items[data-v-04dc546b]{cursor:pointer;border-radius:var(--maz-border-radius);padding:.5rem 1rem;font-weight:500;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}.m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected):hover{background-color:var(--maz-color-bg-light)}html.dark .m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected){background-color:var(--maz-color-bg-light)}html.dark .m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected):hover{background-color:var(--maz-color-bg-lighter)}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
3
3
|
const _hoisted_1 = ["id"];
|
|
4
4
|
const _hoisted_2 = ["id", "name", "value", "onChange"];
|
|
@@ -28,41 +28,57 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
return props.modelValue === value;
|
|
29
29
|
};
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
|
-
return openBlock(), createElementBlock(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
31
|
+
return openBlock(), createElementBlock(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
class: normalizeClass(["m-radio-buttons", [__props.orientation === "row" ? "maz-flex-row" : "maz-flex-col"]])
|
|
35
|
+
},
|
|
36
|
+
[
|
|
37
|
+
(openBlock(true), createElementBlock(
|
|
38
|
+
Fragment,
|
|
39
|
+
null,
|
|
40
|
+
renderList(__props.options, (option, i) => {
|
|
41
|
+
return openBlock(), createElementBlock("label", {
|
|
42
|
+
id: option.value.toString(),
|
|
43
|
+
key: i,
|
|
44
|
+
class: normalizeClass(["m-radio-buttons__items", {
|
|
45
|
+
"--is-selected": isSelected(option.value),
|
|
46
|
+
"maz-elevation": !__props.noElevation
|
|
47
|
+
}]),
|
|
48
|
+
style: normalizeStyle(
|
|
49
|
+
isSelected(option.value) ? {
|
|
50
|
+
color: `var(--maz-color-${__props.color}-contrast)`,
|
|
51
|
+
backgroundColor: `var(--maz-color-${__props.color})`
|
|
52
|
+
} : void 0
|
|
53
|
+
)
|
|
54
|
+
}, [
|
|
55
|
+
createElementVNode("input", {
|
|
56
|
+
id: option.value.toString(),
|
|
57
|
+
type: "radio",
|
|
58
|
+
name: __props.name,
|
|
59
|
+
value: option.value,
|
|
60
|
+
class: "maz-hidden",
|
|
61
|
+
onChange: ($event) => selectOption(option)
|
|
62
|
+
}, null, 40, _hoisted_2),
|
|
63
|
+
renderSlot(_ctx.$slots, "default", {
|
|
64
|
+
option,
|
|
65
|
+
selected: isSelected(option.value)
|
|
66
|
+
}, () => [
|
|
67
|
+
createTextVNode(
|
|
68
|
+
toDisplayString(option.label),
|
|
69
|
+
1
|
|
70
|
+
/* TEXT */
|
|
71
|
+
)
|
|
72
|
+
], true)
|
|
73
|
+
], 14, _hoisted_1);
|
|
74
|
+
}),
|
|
75
|
+
128
|
|
76
|
+
/* KEYED_FRAGMENT */
|
|
77
|
+
))
|
|
78
|
+
],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
);
|
|
66
82
|
};
|
|
67
83
|
}
|
|
68
84
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode(".m-radio-buttons[data-v-04dc546b]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.5rem}.m-radio-buttons__items[data-v-04dc546b]{cursor:pointer;border-radius:var(--maz-border-radius);padding:.5rem 1rem;font-weight:500;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}.m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected):hover{background-color:var(--maz-color-bg-light)}html.dark .m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected){background-color:var(--maz-color-bg-light)}html.dark .m-radio-buttons__items[data-v-04dc546b]:not(.--is-selected):hover{background-color:var(--maz-color-bg-lighter)}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).MazRadioButtons={},e.Vue)}(this,(function(e,o){"use strict";const t=["id"],a=["id","name","value","onChange"],l=((e,o)=>{const t=e.__vccOpts||e;for(const[a,l]of o)t[a]=l;return t})(o.defineComponent({__name:"MazRadioButtons",props:{modelValue:{type:[String,Number],default:void 0},options:{type:Array,required:!0},name:{type:String,default:"MazButtonsRadio"},color:{type:String,default:"primary"},noElevation:{type:Boolean,default:!1},orientation:{type:String,default:"row"}},emits:["update:model-value","change"],setup(e,{emit:l}){const n=e,r=e=>n.modelValue===e;return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["m-radio-buttons",["row"===e.orientation?"maz-flex-row":"maz-flex-col"]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,((i,d)=>(o.openBlock(),o.createElementBlock("label",{id:i.value.toString(),key:d,class:o.normalizeClass(["m-radio-buttons__items",{"--is-selected":r(i.value),"maz-elevation":!e.noElevation}]),style:o.normalizeStyle(r(i.value)?{color:`var(--maz-color-${e.color}-contrast)`,backgroundColor:`var(--maz-color-${e.color})`}:void 0)},[o.createElementVNode("input",{id:i.value.toString(),type:"radio",name:e.name,value:i.value,class:"maz-hidden",onChange:e=>(e=>{l("update:model-value",e.value)})(i)},null,40,a),o.renderSlot(n.$slots,"default",{option:i,selected:r(i.value)},(()=>[o.createTextVNode(o.toDisplayString(i.label),1)]),!0)],14,t)))),128))],2))}}),[["__scopeId","data-v-04dc546b"]]);e.default=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|