maz-ui 3.19.0 → 3.19.2

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.
Files changed (113) hide show
  1. package/components/MazAvatar.mjs +1 -1
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCarousel.mjs +1 -1
  6. package/components/MazCheckbox.mjs +1 -1
  7. package/components/MazDialog.mjs +1 -1
  8. package/components/MazDialogPromise.mjs +1 -1
  9. package/components/MazDrawer.mjs +1 -1
  10. package/components/MazFullscreenLoader.d.ts +27 -19
  11. package/components/MazGallery.mjs +1 -1
  12. package/components/MazIcon.mjs +3 -2
  13. package/components/MazInput.mjs +1 -1
  14. package/components/MazInputNumber.mjs +5 -4
  15. package/components/MazInputPrice.mjs +1 -1
  16. package/components/MazInputTags.mjs +1 -1
  17. package/components/MazLazyImg.mjs +1 -1
  18. package/components/MazPhoneNumberInput.mjs +1 -1
  19. package/components/MazPicker/utils.d.ts +1 -4
  20. package/components/MazPicker.mjs +1 -1
  21. package/components/MazRadioButtons.mjs +2 -1
  22. package/components/MazSelect.mjs +1 -1
  23. package/components/MazSlider.mjs +2 -1
  24. package/components/MazStepper.d.ts +1 -1
  25. package/components/MazStepper.mjs +1 -1
  26. package/components/MazSwitch.mjs +2 -1
  27. package/components/MazTabs.mjs +2 -1
  28. package/components/MazTabsBar.mjs +1 -1
  29. package/components/MazTabsContentItem.mjs +1 -1
  30. package/components/MazTextarea.mjs +2 -1
  31. package/components/assets/MazLazyImg.css +1 -1
  32. package/components/assets/MazPickerCalendar.css +1 -1
  33. package/components/chunks/{MazAvatar-68e2d653.mjs → MazAvatar-a65c81e3.mjs} +2 -2
  34. package/components/chunks/{MazBottomSheet-1fd128d5.mjs → MazBottomSheet-b78adb87.mjs} +3 -2
  35. package/components/chunks/{MazBtn-ebaa1574.mjs → MazBtn-000f9f66.mjs} +3 -3
  36. package/components/chunks/{MazBtn-8d0f8eb2.mjs → MazBtn-0d8e3249.mjs} +4 -4
  37. package/components/chunks/{MazBtn-8b76a9b9.mjs → MazBtn-16ab35fe.mjs} +4 -4
  38. package/components/chunks/{MazBtn-7963cdc8.mjs → MazBtn-18894690.mjs} +4 -4
  39. package/components/chunks/{MazBtn-83e85ae7.mjs → MazBtn-21743551.mjs} +4 -4
  40. package/components/chunks/{MazBtn-740fa3f9.mjs → MazBtn-2703c9bd.mjs} +2 -2
  41. package/components/chunks/{MazBtn-113db7ce.mjs → MazBtn-54c47489.mjs} +4 -4
  42. package/components/chunks/{MazBtn-80a95ca3.mjs → MazBtn-57cb16a1.mjs} +4 -4
  43. package/components/chunks/{MazBtn-aed16fa9.mjs → MazBtn-5a37bfef.mjs} +4 -4
  44. package/components/chunks/{MazBtn-9449d9aa.mjs → MazBtn-67e1fe7b.mjs} +4 -4
  45. package/components/chunks/{MazBtn-290141e9.mjs → MazBtn-6e16fbca.mjs} +4 -4
  46. package/components/chunks/{MazBtn-360120f0.mjs → MazBtn-9333e80f.mjs} +4 -4
  47. package/components/chunks/{MazBtn-cd553cc1.mjs → MazBtn-9d312f09.mjs} +4 -4
  48. package/components/chunks/MazBtn-a776eb42.mjs +184 -0
  49. package/components/chunks/{MazBtn-9e23a622.mjs → MazBtn-bf133cbc.mjs} +4 -4
  50. package/components/chunks/{MazCard-f0b1207f.mjs → MazCard-d9369776.mjs} +4 -4
  51. package/components/chunks/{MazCarousel-e6c83219.mjs → MazCarousel-06ca7c0b.mjs} +2 -2
  52. package/components/chunks/{MazDialog-5c53a6d7.mjs → MazDialog-d5f6a7d8.mjs} +1 -1
  53. package/components/chunks/{MazDialogPromise-e0a178ee.mjs → MazDialogPromise-23cb2e40.mjs} +2 -2
  54. package/components/chunks/{MazDrawer-682859a4.mjs → MazDrawer-7d6428cf.mjs} +1 -1
  55. package/components/chunks/{MazGallery-345cb883.mjs → MazGallery-c80e96f6.mjs} +2 -2
  56. package/{modules/chunks/MazIcon-c5f0f47e.mjs → components/chunks/MazIcon-81176bfa.mjs} +4 -3
  57. package/components/chunks/{MazIcon-146f73d3.mjs → MazIcon-bda198b4.mjs} +3 -2
  58. package/components/chunks/{MazInput-c67999b0.mjs → MazInput-129c8695.mjs} +2 -2
  59. package/components/chunks/{MazInput-4775c6de.mjs → MazInput-15f3e149.mjs} +3 -3
  60. package/components/chunks/{MazInput-0424a850.mjs → MazInput-2a43e4a6.mjs} +3 -3
  61. package/components/chunks/{MazInput-4b908386.mjs → MazInput-8e284503.mjs} +2 -2
  62. package/components/chunks/{MazInputPrice-50e3ea5d.mjs → MazInputPrice-e88dec74.mjs} +4 -3
  63. package/components/chunks/{MazInputTags-801c15dc.mjs → MazInputTags-872a6fae.mjs} +5 -4
  64. package/components/chunks/{MazLazyImg-a206909b.mjs → MazLazyImg-51c16f47.mjs} +6 -6
  65. package/components/chunks/{MazLazyImg-13052d11.mjs → MazLazyImg-8d49fa48.mjs} +5 -5
  66. package/components/chunks/{MazPhoneNumberInput-37eb2437.mjs → MazPhoneNumberInput-901c4fa6.mjs} +5 -4
  67. package/components/chunks/{MazPicker-25765233.mjs → MazPicker-6fc29a1c.mjs} +22 -26
  68. package/components/chunks/{MazPickerCalendar-1547bd78.mjs → MazPickerCalendar-6271c78d.mjs} +29 -24
  69. package/components/chunks/{MazPickerHeader-04d6a61f.mjs → MazPickerHeader-4f70f191.mjs} +1 -1
  70. package/components/chunks/{MazPickerMonthSwitcher-791ebc99.mjs → MazPickerMonthSwitcher-674ce015.mjs} +4 -3
  71. package/components/chunks/{MazPickerShortcuts-4bdeae6a.mjs → MazPickerShortcuts-2242854f.mjs} +4 -3
  72. package/components/chunks/{MazPickerTime-0ca05476.mjs → MazPickerTime-bb97786b.mjs} +4 -3
  73. package/components/chunks/{MazPickerYearSwitcher-a338777f.mjs → MazPickerYearSwitcher-47e5444b.mjs} +5 -4
  74. package/components/chunks/{MazSelect-9270ae9c.mjs → MazSelect-1f4d1193.mjs} +6 -5
  75. package/components/chunks/{MazSelect-13d3fe3a.mjs → MazSelect-c5c3f874.mjs} +6 -5
  76. package/components/chunks/MazSpinner-213b3866.mjs +46 -0
  77. package/components/chunks/{MazSpinner-3e5a5ee0.mjs → MazSpinner-232086b5.mjs} +1 -1
  78. package/components/chunks/{MazSpinner-c4d67909.mjs → MazSpinner-25ddb933.mjs} +1 -1
  79. package/components/chunks/{MazSpinner-5be09a6a.mjs → MazSpinner-2cbf1c0a.mjs} +1 -1
  80. package/components/chunks/{MazSpinner-450e5795.mjs → MazSpinner-2fac70be.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-07d6be3a.mjs → MazSpinner-467d514f.mjs} +1 -1
  82. package/components/chunks/MazSpinner-47025e56.mjs +46 -0
  83. package/components/chunks/{MazSpinner-24e65651.mjs → MazSpinner-5368411e.mjs} +1 -1
  84. package/components/chunks/MazSpinner-5fdafc97.mjs +46 -0
  85. package/components/chunks/{MazSpinner-bfd1f135.mjs → MazSpinner-6025406b.mjs} +1 -1
  86. package/components/chunks/{MazSpinner-33f756c4.mjs → MazSpinner-6c664898.mjs} +1 -1
  87. package/components/chunks/MazSpinner-819a5b00.mjs +46 -0
  88. package/components/chunks/{MazSpinner-50959d38.mjs → MazSpinner-984d259a.mjs} +1 -1
  89. package/components/chunks/MazSpinner-a74389bd.mjs +46 -0
  90. package/components/chunks/{MazSpinner-ac676f71.mjs → MazSpinner-bed2bced.mjs} +1 -1
  91. package/components/chunks/{MazSpinner-5baeb3f0.mjs → MazSpinner-d6625983.mjs} +1 -1
  92. package/components/chunks/{MazStepper-d61114a7.mjs → MazStepper-293b4be5.mjs} +4 -3
  93. package/components/chunks/{MazTabsBar-6f1ed175.mjs → MazTabsBar-6dffbdde.mjs} +2 -2
  94. package/components/chunks/{MazTransitionExpand-e408307c.mjs → MazTransitionExpand-648e21e0.mjs} +1 -1
  95. package/components/chunks/{MazTransitionExpand-bf4cb245.mjs → MazTransitionExpand-f3018af6.mjs} +1 -1
  96. package/modules/chunks/{MazBtn-c57ccb54.mjs → MazBtn-f4c8698d.mjs} +4 -4
  97. package/{components/chunks/MazIcon-00892ac4.mjs → modules/chunks/MazIcon-2c79b9d8.mjs} +4 -3
  98. package/modules/chunks/{MazSpinner-bb0e791a.mjs → MazSpinner-331f6dc8.mjs} +1 -1
  99. package/modules/chunks/{index-7220b7e8.mjs → index-1c3e48da.mjs} +58 -31
  100. package/modules/index.mjs +1 -1
  101. package/nuxt/index.json +1 -1
  102. package/package.json +7 -7
  103. package/types/components/MazFullscreenLoader.vue.d.ts +27 -19
  104. package/types/components/MazPicker/utils.d.ts +1 -4
  105. package/types/components/MazStepper.vue.d.ts +1 -1
  106. package/types/modules/composables/use-theme-handler.d.ts +6 -3
  107. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +54 -88
  108. package/components/chunks/MazBtn-a2eeb3f8.mjs +0 -184
  109. package/components/chunks/MazSpinner-559fb831.mjs +0 -46
  110. package/components/chunks/MazSpinner-7e5fb76c.mjs +0 -46
  111. package/components/chunks/MazSpinner-d5f2c266.mjs +0 -46
  112. package/components/chunks/MazSpinner-e4d7bbe9.mjs +0 -46
  113. package/components/chunks/MazSpinner-f40ee2c7.mjs +0 -46
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
- import { _ as _export_sfc } from "./MazDialog-5c53a6d7.mjs";
3
+ import { _ as _export_sfc } from "./MazDrawer-7d6428cf.mjs";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  noElevation: { type: Boolean, default: false }
47
47
  },
48
48
  setup(__props) {
49
- const props = __props;
50
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-24e65651.mjs"));
51
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-5368411e.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
52
51
  const { href, to } = useAttrs();
53
52
  const slots = useSlots();
53
+ const props = __props;
54
54
  onBeforeMount(() => {
55
55
  if (props.icon && !props.fab) {
56
56
  console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
- import { _ as _export_sfc } from "./MazSelect-9270ae9c.mjs";
3
+ import { _ as _export_sfc } from "./MazPicker-6fc29a1c.mjs";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  noElevation: { type: Boolean, default: false }
47
47
  },
48
48
  setup(__props) {
49
- const props = __props;
50
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-3e5a5ee0.mjs"));
51
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-232086b5.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
52
51
  const { href, to } = useAttrs();
53
52
  const slots = useSlots();
53
+ const props = __props;
54
54
  onBeforeMount(() => {
55
55
  if (props.icon && !props.fab) {
56
56
  console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
- import { _ as _export_sfc } from "./MazDialogPromise-e0a178ee.mjs";
3
+ import { _ as _export_sfc } from "./MazDialogPromise-23cb2e40.mjs";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  noElevation: { type: Boolean, default: false }
47
47
  },
48
48
  setup(__props) {
49
- const props = __props;
50
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-c4d67909.mjs"));
51
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-25ddb933.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
52
51
  const { href, to } = useAttrs();
53
52
  const slots = useSlots();
53
+ const props = __props;
54
54
  onBeforeMount(() => {
55
55
  if (props.icon && !props.fab) {
56
56
  console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
- import { _ as _export_sfc } from "./MazInput-4b908386.mjs";
3
+ import { _ as _export_sfc } from "./MazInput-8e284503.mjs";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  noElevation: { type: Boolean, default: false }
47
47
  },
48
48
  setup(__props) {
49
- const props = __props;
50
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-5be09a6a.mjs"));
51
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-2cbf1c0a.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
52
51
  const { href, to } = useAttrs();
53
52
  const slots = useSlots();
53
+ const props = __props;
54
54
  onBeforeMount(() => {
55
55
  if (props.icon && !props.fab) {
56
56
  console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
@@ -0,0 +1,184 @@
1
+ import "../assets/MazBtn.css";
2
+ import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
+ import { _ as _export_sfc } from "./MazTabsBar-6dffbdde.mjs";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "MazBtn",
6
+ props: {
7
+ variant: {
8
+ type: String,
9
+ default: "button",
10
+ validator: (value) => {
11
+ return ["button", "link"].includes(value);
12
+ }
13
+ },
14
+ size: {
15
+ type: String,
16
+ default: "md",
17
+ validator: (value) => {
18
+ return ["mini", "xs", "sm", "md", "lg", "xl"].includes(value);
19
+ }
20
+ },
21
+ color: {
22
+ type: String,
23
+ default: "primary"
24
+ },
25
+ type: {
26
+ type: String,
27
+ default: "button",
28
+ validator: (value) => {
29
+ return ["button", "submit", "reset"].includes(value);
30
+ }
31
+ },
32
+ rounded: { type: Boolean, default: false },
33
+ noRounded: { type: Boolean, default: false },
34
+ outline: { type: Boolean, default: false },
35
+ pastel: { type: Boolean, default: false },
36
+ block: { type: Boolean, default: false },
37
+ noUnderline: { type: Boolean, default: false },
38
+ noLeading: { type: Boolean, default: false },
39
+ loading: { type: Boolean, default: false },
40
+ disabled: { type: Boolean, default: false },
41
+ fab: { type: Boolean, default: false },
42
+ icon: { type: String, default: void 0 },
43
+ leftIcon: { type: String, default: void 0 },
44
+ rightIcon: { type: String, default: void 0 },
45
+ noPadding: { type: Boolean, default: false },
46
+ noElevation: { type: Boolean, default: false }
47
+ },
48
+ setup(__props) {
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-47025e56.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-81176bfa.mjs"));
51
+ const { href, to } = useAttrs();
52
+ const slots = useSlots();
53
+ const props = __props;
54
+ onBeforeMount(() => {
55
+ if (props.icon && !props.fab) {
56
+ console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
57
+ }
58
+ });
59
+ const component = computed(() => {
60
+ if (href)
61
+ return "a";
62
+ else if (to)
63
+ return "router-link";
64
+ return "button";
65
+ });
66
+ const btnColorClass = computed(
67
+ () => props.pastel ? `--${props.color}-pastel` : props.outline ? `--${props.color}-outline` : `--${props.color}`
68
+ );
69
+ const isDisabled = computed(
70
+ () => (props.loading || props.disabled) && component.value === "button"
71
+ );
72
+ const cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer");
73
+ const variantClass = computed(() => `--is-${props.variant}`);
74
+ const hasLoader = computed(() => props.loading && props.variant === "button");
75
+ const hasLeftIcon = computed(() => !!slots["left-icon"] || props.leftIcon);
76
+ const hasRightIcon = computed(() => !!slots["right-icon"] || props.rightIcon);
77
+ const hasIcon = computed(() => hasLeftIcon.value || hasRightIcon.value);
78
+ const hasFabIcon = computed(() => props.fab && props.icon);
79
+ const btnType = computed(() => component.value === "button" ? props.type : void 0);
80
+ return (_ctx, _cache) => {
81
+ return openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps(_ctx.$attrs, {
82
+ disabled: isDisabled.value,
83
+ class: ["m-btn", [
84
+ `--${__props.size}`,
85
+ btnColorClass.value,
86
+ cursorClass.value,
87
+ variantClass.value,
88
+ {
89
+ "--block": __props.block,
90
+ "--no-underline": __props.noUnderline,
91
+ "--no-leading": __props.noLeading,
92
+ "--fab": __props.fab,
93
+ "--loading": __props.loading,
94
+ "--disabled": isDisabled.value,
95
+ "--icon": hasIcon.value,
96
+ "--rounded": __props.rounded,
97
+ "--no-rounded": __props.noRounded,
98
+ "--no-padding": __props.noPadding,
99
+ "--no-elevation": __props.noElevation
100
+ }
101
+ ]],
102
+ type: btnType.value
103
+ }), {
104
+ default: withCtx(() => [
105
+ hasLeftIcon.value ? (openBlock(), createElementBlock(
106
+ "div",
107
+ {
108
+ key: 0,
109
+ class: normalizeClass(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
110
+ },
111
+ [
112
+ renderSlot(_ctx.$slots, "left-icon", {}, () => [
113
+ __props.leftIcon ? (openBlock(), createBlock(unref(MazIcon), {
114
+ key: 0,
115
+ name: __props.leftIcon
116
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true)
117
+ ], true)
118
+ ],
119
+ 2
120
+ /* CLASS */
121
+ )) : createCommentVNode("v-if", true),
122
+ hasFabIcon.value ? (openBlock(), createElementBlock(
123
+ "div",
124
+ {
125
+ key: 1,
126
+ class: normalizeClass(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
127
+ },
128
+ [
129
+ renderSlot(_ctx.$slots, "icon", {}, () => [
130
+ __props.icon ? (openBlock(), createBlock(unref(MazIcon), {
131
+ key: 0,
132
+ name: __props.icon
133
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true)
134
+ ], true)
135
+ ],
136
+ 2
137
+ /* CLASS */
138
+ )) : createCommentVNode("v-if", true),
139
+ createElementVNode(
140
+ "span",
141
+ {
142
+ class: normalizeClass(["maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
143
+ },
144
+ [
145
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
146
+ ],
147
+ 2
148
+ /* CLASS */
149
+ ),
150
+ hasRightIcon.value ? (openBlock(), createElementBlock(
151
+ "div",
152
+ {
153
+ key: 2,
154
+ class: normalizeClass(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": hasLoader.value }])
155
+ },
156
+ [
157
+ renderSlot(_ctx.$slots, "right-icon", {}, () => [
158
+ __props.rightIcon ? (openBlock(), createBlock(unref(MazIcon), {
159
+ key: 0,
160
+ name: __props.rightIcon
161
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true)
162
+ ], true)
163
+ ],
164
+ 2
165
+ /* CLASS */
166
+ )) : createCommentVNode("v-if", true),
167
+ hasLoader.value ? (openBlock(), createBlock(unref(MazSpinner), {
168
+ key: 3,
169
+ size: "2em",
170
+ color: __props.color,
171
+ class: "maz-absolute"
172
+ }, null, 8, ["color"])) : createCommentVNode("v-if", true)
173
+ ]),
174
+ _: 3
175
+ /* FORWARDED */
176
+ }, 16, ["disabled", "class", "type"]);
177
+ };
178
+ }
179
+ });
180
+ const MazBtn_vue_vue_type_style_index_0_scoped_054acd3d_lang = "";
181
+ const MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-054acd3d"]]);
182
+ export {
183
+ MazBtn as default
184
+ };
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
3
- import { _ as _export_sfc } from "./MazCard-f0b1207f.mjs";
3
+ import { _ as _export_sfc } from "./MazCard-d9369776.mjs";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  noElevation: { type: Boolean, default: false }
47
47
  },
48
48
  setup(__props) {
49
- const props = __props;
50
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-5baeb3f0.mjs"));
51
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
49
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-d6625983.mjs"));
50
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
52
51
  const { href, to } = useAttrs();
53
52
  const slots = useSlots();
53
+ const props = __props;
54
54
  onBeforeMount(() => {
55
55
  if (props.icon && !props.fab) {
56
56
  console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
@@ -68,11 +68,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  collapseOpen: { type: Boolean, default: false }
69
69
  },
70
70
  setup(__props) {
71
- const props = __props;
72
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-9e23a622.mjs"));
73
- const MazGallery = defineAsyncComponent(() => import("./MazGallery-345cb883.mjs"));
74
- const MazTransitionExpand = defineAsyncComponent(() => import("./MazTransitionExpand-e408307c.mjs"));
71
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-bf133cbc.mjs"));
72
+ const MazGallery = defineAsyncComponent(() => import("./MazGallery-c80e96f6.mjs"));
73
+ const MazTransitionExpand = defineAsyncComponent(() => import("./MazTransitionExpand-648e21e0.mjs"));
75
74
  const ChevronDownIcon = defineAsyncComponent(() => import("./chevron-down-7a070b10.mjs"));
75
+ const props = __props;
76
76
  const slots = useSlots();
77
77
  const isOpen = ref(props.collapsable ? props.collapseOpen : true);
78
78
  watch(
@@ -20,10 +20,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  noScrollBtn: { type: Boolean, default: false }
21
21
  },
22
22
  setup(__props) {
23
- const props = __props;
24
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-113db7ce.mjs"));
23
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-54c47489.mjs"));
25
24
  const ChevronLeftIcon = defineAsyncComponent(() => import("./chevron-left-7ab9664d.mjs"));
26
25
  const ChevronRightIcon = defineAsyncComponent(() => import("./chevron-right-d300cd13.mjs"));
26
+ const props = __props;
27
27
  const slots = useSlots();
28
28
  const isScrolled = ref(false);
29
29
  const isScrolledMax = ref(false);
@@ -195,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
195
195
  "open"
196
196
  ],
197
197
  setup(__props) {
198
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-9449d9aa.mjs"));
198
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-57cb16a1.mjs"));
199
199
  const XIcon = defineAsyncComponent(() => import("./x-mark-6dd31278.mjs"));
200
200
  const attrs = useAttrs();
201
201
  const backdropAttrs = computed(() => ({
@@ -235,7 +235,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
235
235
  "open"
236
236
  ],
237
237
  setup(__props) {
238
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-360120f0.mjs"));
238
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-9333e80f.mjs"));
239
239
  const XIcon = defineAsyncComponent(() => import("./x-mark-6dd31278.mjs"));
240
240
  const attrs = useAttrs();
241
241
  const backdropAttrs = computed(() => ({
@@ -336,8 +336,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
336
336
  buttons: { type: Array, default: () => [] }
337
337
  },
338
338
  setup(__props) {
339
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-9333e80f.mjs"));
339
340
  const props = __props;
340
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-360120f0.mjs"));
341
341
  const { dialogState: dialogState2, rejectDialog, resolveDialog } = useMazDialogPromise();
342
342
  const currentModal = computed(
343
343
  () => dialogState2.value.find(({ id }) => id === props.identifier)
@@ -184,7 +184,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
184
184
  },
185
185
  emits: ["open", "close", "update:model-value"],
186
186
  setup(__props) {
187
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-8b76a9b9.mjs"));
187
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-67e1fe7b.mjs"));
188
188
  const XIcon = defineAsyncComponent(() => import("./x-mark-6dd31278.mjs"));
189
189
  return (_ctx, _cache) => {
190
190
  return openBlock(), createBlock(MazBackdrop, mergeProps(_ctx.$attrs, {
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  import "../assets/MazGallery.css";
8
8
  import { defineComponent, defineAsyncComponent, onBeforeMount, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, withDirectives, unref, toDisplayString, createCommentVNode, createVNode } from "vue";
9
- import { _ as _export_sfc } from "./MazCard-f0b1207f.mjs";
9
+ import { _ as _export_sfc } from "./MazCard-d9369776.mjs";
10
10
  const style = `
11
11
  .maz-zoom-img {
12
12
  position: fixed;
@@ -670,8 +670,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
670
670
  scale: { type: Boolean, default: true }
671
671
  },
672
672
  setup(__props) {
673
- const props = __props;
674
673
  const NoPhotographyIcon = defineAsyncComponent(() => import("./no-photography-bc9a1f6a.mjs"));
674
+ const props = __props;
675
675
  onBeforeMount(() => {
676
676
  if (props.imagesShownCount > 5)
677
677
  console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, onMounted, watchEffect, openBlock, createElementBlock, Fragment, createCommentVNode, mergeProps, nextTick } from "vue";
2
- import { i as injectStrict } from "./index-7220b7e8.mjs";
2
+ import { i as injectStrict } from "./MazTabsBar-6dffbdde.mjs";
3
3
  const _hoisted_1 = ["innerHTML"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "MazIcon",
@@ -15,8 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  }
16
16
  },
17
17
  emits: ["loaded", "unloaded", "error"],
18
- setup(__props, { emit: emits }) {
19
- const props = __props;
18
+ setup(__props, { emit: __emit }) {
20
19
  const cache = {};
21
20
  const svgElSource = ref();
22
21
  const svgElem = ref();
@@ -27,6 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
26
  return void 0;
28
27
  }
29
28
  };
29
+ const props = __props;
30
+ const emits = __emit;
30
31
  const iconPath = computed(() => props.path ?? getMazIconPath());
31
32
  const fullSrc = computed(() => {
32
33
  if (props.src) {
@@ -21,8 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  }
22
22
  },
23
23
  emits: ["loaded", "unloaded", "error"],
24
- setup(__props, { emit: emits }) {
25
- const props = __props;
24
+ setup(__props, { emit: __emit }) {
26
25
  const cache = {};
27
26
  const svgElSource = ref();
28
27
  const svgElem = ref();
@@ -33,6 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
32
  return void 0;
34
33
  }
35
34
  };
35
+ const props = __props;
36
+ const emits = __emit;
36
37
  const iconPath = computed(() => props.path ?? getMazIconPath());
37
38
  const fullSrc = computed(() => {
38
39
  if (props.src) {
@@ -19,8 +19,8 @@ const useInstanceUniqId = ({
19
19
  }) => {
20
20
  return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
21
21
  };
22
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-740fa3f9.mjs"));
23
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
22
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-2703c9bd.mjs"));
23
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
24
24
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
25
25
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
26
26
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazInput.css";
2
2
  import { defineComponent, ref, getCurrentInstance, onMounted, computed, defineAsyncComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, createCommentVNode, withDirectives, mergeProps, toHandlers, vModelDynamic, createTextVNode, toDisplayString, createBlock, withModifiers, withCtx } from "vue";
3
- import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-37eb2437.mjs";
3
+ import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-901c4fa6.mjs";
4
4
  function debounce(func, delay) {
5
5
  let timeoutId;
6
6
  return (...args) => {
@@ -12,8 +12,8 @@ function debounce(func, delay) {
12
12
  }, delay);
13
13
  };
14
14
  }
15
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-8d0f8eb2.mjs"));
16
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
15
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-0d8e3249.mjs"));
16
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
17
17
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
18
18
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
19
19
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -1,7 +1,7 @@
1
1
  import "../assets/MazInput.css";
2
2
  import { computed, defineComponent, ref, getCurrentInstance, onMounted, defineAsyncComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, createCommentVNode, withDirectives, mergeProps, toHandlers, vModelDynamic, createTextVNode, toDisplayString, createBlock, withModifiers, withCtx } from "vue";
3
3
  import { d as debounce } from "./debounce-b08199da.mjs";
4
- import { _ as _export_sfc } from "./MazPicker-25765233.mjs";
4
+ import { _ as _export_sfc } from "./MazPicker-6fc29a1c.mjs";
5
5
  const useInstanceUniqId = ({
6
6
  componentName,
7
7
  instance,
@@ -9,8 +9,8 @@ const useInstanceUniqId = ({
9
9
  }) => {
10
10
  return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
11
11
  };
12
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-80a95ca3.mjs"));
13
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
12
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-6e16fbca.mjs"));
13
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
14
14
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
15
15
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
16
16
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -18,8 +18,8 @@ const useInstanceUniqId = ({
18
18
  }) => {
19
19
  return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
20
20
  };
21
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-cd553cc1.mjs"));
22
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
21
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-9d312f09.mjs"));
22
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
23
23
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
24
24
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
25
25
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -53,8 +53,8 @@ const useInstanceUniqId = ({
53
53
  }) => {
54
54
  return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
55
55
  };
56
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-aed16fa9.mjs"));
57
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
56
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-5a37bfef.mjs"));
57
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
58
58
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
59
59
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
60
60
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -419,8 +419,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
419
419
  noIcon: { type: Boolean, default: false }
420
420
  },
421
421
  emits: ["update:model-value", "formatted"],
422
- setup(__props, { emit: emits }) {
422
+ setup(__props, { emit: __emit }) {
423
423
  const props = __props;
424
+ const emits = __emit;
424
425
  const isActive = ref(false);
425
426
  const valueString = computed(() => {
426
427
  return getAdjustedPrice(props.modelValue).toString();
@@ -18,8 +18,8 @@ const useInstanceUniqId = ({
18
18
  }) => {
19
19
  return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
20
20
  };
21
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-7963cdc8.mjs"));
22
- const MazIcon = defineAsyncComponent(() => import("./MazIcon-146f73d3.mjs"));
21
+ const MazBtn = defineAsyncComponent(() => import("./MazBtn-18894690.mjs"));
22
+ const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
23
23
  const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
24
24
  const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
25
25
  const CheckIcon = defineAsyncComponent(() => import("./check-b1507ce9.mjs"));
@@ -409,11 +409,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
409
409
  }
410
410
  },
411
411
  emits: ["update:model-value"],
412
- setup(__props, { emit: emits }) {
412
+ setup(__props, { emit: __emit }) {
413
+ const MazBtn2 = defineAsyncComponent(() => import("./MazBtn-18894690.mjs"));
413
414
  const props = __props;
414
- const MazBtn2 = defineAsyncComponent(() => import("./MazBtn-7963cdc8.mjs"));
415
415
  const isFocused = ref(false);
416
416
  const inputValue = ref();
417
+ const emits = __emit;
417
418
  const addTags = (event) => {
418
419
  if (inputValue.value) {
419
420
  event.preventDefault();
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  import "../assets/MazLazyImg.css";
8
8
  import { defineComponent, defineAsyncComponent, computed, withDirectives, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, mergeProps, createVNode, unref, createCommentVNode, renderSlot } from "vue";
9
- import { _ as _export_sfc } from "./MazAvatar-68e2d653.mjs";
9
+ import { _ as _export_sfc } from "./MazAvatar-a65c81e3.mjs";
10
10
  const EMPTY_PHOTO = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
11
11
  const DEFAULT_OPTIONS = {
12
12
  baseClass: "m-lazy-img",
@@ -249,7 +249,7 @@ const vLazyImg = {
249
249
  instance.remove(el, binding);
250
250
  }
251
251
  };
252
- const _hoisted_1 = ["data-srcset", "media"];
252
+ const _hoisted_1 = ["data-lazy-srcset", "media"];
253
253
  const _hoisted_2 = {
254
254
  key: 0,
255
255
  class: "m-lazy-img-component-loader"
@@ -267,8 +267,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
267
267
  },
268
268
  emits: ["intersecting", "loading", "loaded", "error"],
269
269
  setup(__props) {
270
+ const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-819a5b00.mjs"));
270
271
  const props = __props;
271
- const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-559fb831.mjs"));
272
272
  const sources = computed(() => {
273
273
  var _a;
274
274
  return typeof props.image === "string" ? [{ srcset: props.image }] : (_a = props.image) == null ? void 0 : _a.sources;
@@ -286,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
286
  renderList(sources.value, ({ srcset, media }, sourceIndex) => {
287
287
  return openBlock(), createElementBlock("source", {
288
288
  key: sourceIndex,
289
- "data-srcset": srcset,
289
+ "data-lazy-srcset": srcset,
290
290
  media
291
291
  }, null, 8, _hoisted_1);
292
292
  }),
@@ -325,8 +325,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
325
325
  };
326
326
  }
327
327
  });
328
- const MazLazyImg_vue_vue_type_style_index_0_scoped_8de682eb_lang = "";
329
- const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8de682eb"]]);
328
+ const MazLazyImg_vue_vue_type_style_index_0_scoped_d4086686_lang = "";
329
+ const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4086686"]]);
330
330
  export {
331
331
  MazLazyImg as default
332
332
  };