maz-ui 3.23.4 → 3.24.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.
Files changed (151) hide show
  1. package/components/MazAvatar.mjs +1 -1
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +3 -3
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCarousel.mjs +1 -1
  7. package/components/MazCheckbox.mjs +9 -9
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.d.ts +6 -6
  10. package/components/MazDialogPromise.mjs +1 -1
  11. package/components/MazDrawer.mjs +1 -1
  12. package/components/MazDropdown.d.ts +4 -0
  13. package/components/MazDropdown.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.d.ts +1 -0
  18. package/components/MazInputTags.mjs +1 -1
  19. package/components/MazPhoneNumberInput.mjs +1 -1
  20. package/components/MazPicker.mjs +1 -1
  21. package/components/MazRadioButtons.mjs +49 -38
  22. package/components/MazSelect.mjs +1 -1
  23. package/components/MazSlider.mjs +1 -1
  24. package/components/MazTabsBar.mjs +1 -1
  25. package/components/assets/MazAvatar.css +1 -1
  26. package/components/assets/MazBtn.css +1 -1
  27. package/components/assets/MazCard.css +1 -1
  28. package/components/assets/MazCheckbox.css +1 -1
  29. package/components/assets/MazDropdown.css +1 -1
  30. package/components/assets/MazInput.css +1 -1
  31. package/components/assets/MazInputPrice.css +1 -1
  32. package/components/assets/MazInputTags.css +1 -1
  33. package/components/assets/MazPhoneNumberInput.css +1 -1
  34. package/components/assets/MazPicker.css +1 -1
  35. package/components/assets/MazPickerCalendar.css +1 -1
  36. package/components/assets/MazRadioButtons.css +1 -1
  37. package/components/assets/MazSelect.css +1 -1
  38. package/components/assets/MazSlider.css +1 -1
  39. package/components/chunks/{MazAvatar-1636f58b.mjs → MazAvatar-a0310614.mjs} +7 -7
  40. package/components/chunks/{MazBottomSheet-c24f92f8.mjs → MazBottomSheet-656778f3.mjs} +1 -1
  41. package/components/chunks/{MazBtn-2d1d1ba5.mjs → MazBtn-1abd74e1.mjs} +3 -3
  42. package/components/chunks/{MazBtn-683effc1.mjs → MazBtn-1b5325b4.mjs} +3 -3
  43. package/components/chunks/{MazBtn-5e426592.mjs → MazBtn-28eb4f51.mjs} +3 -3
  44. package/components/chunks/{MazBtn-1e61862b.mjs → MazBtn-4242d8bf.mjs} +3 -3
  45. package/components/chunks/MazBtn-54c46d7a.mjs +153 -0
  46. package/components/chunks/MazBtn-55bdce06.mjs +153 -0
  47. package/components/chunks/MazBtn-5b3c390b.mjs +153 -0
  48. package/components/chunks/{MazBtn-3d74f737.mjs → MazBtn-5c7f35e9.mjs} +3 -3
  49. package/components/chunks/{MazBtn-4a447126.mjs → MazBtn-6df3ecd9.mjs} +3 -3
  50. package/components/chunks/{MazBtn-7706b2da.mjs → MazBtn-7313b190.mjs} +9 -9
  51. package/components/chunks/{MazBtn-555928ed.mjs → MazBtn-8d15228e.mjs} +3 -3
  52. package/components/chunks/{MazBtn-6ce4cfd3.mjs → MazBtn-ab3967b5.mjs} +1 -1
  53. package/components/chunks/{MazBtn-124f3700.mjs → MazBtn-edeb8105.mjs} +3 -3
  54. package/components/chunks/MazBtn-fbc2b2c9.mjs +153 -0
  55. package/components/chunks/{MazCard-bcc36489.mjs → MazCard-cb88998a.mjs} +3 -3
  56. package/components/chunks/{MazCarousel-6da75122.mjs → MazCarousel-4a1f2f1b.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-3a2b48b4.mjs → MazCheckbox-0df95780.mjs} +6 -6
  58. package/components/chunks/{MazCheckbox-040dc2c4.mjs → MazCheckbox-4ccd0b53.mjs} +6 -6
  59. package/components/chunks/{MazDialog-44eda544.mjs → MazDialog-e80585a6.mjs} +1 -1
  60. package/components/chunks/{MazDialogPromise-eec5acde.mjs → MazDialogPromise-0769de39.mjs} +2 -2
  61. package/components/chunks/{MazDrawer-b628b37e.mjs → MazDrawer-ff505fb8.mjs} +1 -1
  62. package/components/chunks/MazDropdown-0dea4e44.mjs +352 -0
  63. package/components/chunks/{MazGallery-6b8ecedf.mjs → MazGallery-eb620533.mjs} +1 -1
  64. package/components/chunks/{MazIcon-95e31ff8.mjs → MazIcon-b0ad5b4c.mjs} +1 -1
  65. package/components/chunks/{MazInput-1ed4f946.mjs → MazInput-14d96bc3.mjs} +2 -2
  66. package/components/chunks/{MazInput-c51881ea.mjs → MazInput-a4884812.mjs} +2 -2
  67. package/components/chunks/{MazInput-8a217995.mjs → MazInput-d0d28579.mjs} +3 -3
  68. package/components/chunks/{MazInputPrice-cd348d46.mjs → MazInputPrice-a94b17c3.mjs} +2 -2
  69. package/components/chunks/MazInputTags-d8514b7b.mjs +595 -0
  70. package/components/chunks/{MazLazyImg-47d3449a.mjs → MazLazyImg-632c3f0c.mjs} +2 -2
  71. package/components/chunks/{MazPhoneNumberInput-e1bf46f9.mjs → MazPhoneNumberInput-b32334b7.mjs} +138 -135
  72. package/components/chunks/{MazPicker-e4620d8b.mjs → MazPicker-9b2f5212.mjs} +49 -49
  73. package/components/chunks/{MazPickerCalendar-da62262c.mjs → MazPickerCalendar-fd08a0bd.mjs} +7 -7
  74. package/components/chunks/{MazPickerHeader-a2e041eb.mjs → MazPickerHeader-b353cef2.mjs} +1 -1
  75. package/components/chunks/{MazPickerMonthSwitcher-5bf8bd08.mjs → MazPickerMonthSwitcher-ec404758.mjs} +2 -2
  76. package/components/chunks/{MazPickerShortcuts-7f95430e.mjs → MazPickerShortcuts-e9c8b46e.mjs} +2 -2
  77. package/components/chunks/{MazPickerTime-717402ae.mjs → MazPickerTime-a94a2ad1.mjs} +2 -2
  78. package/components/chunks/{MazPickerYearSwitcher-85f97b6d.mjs → MazPickerYearSwitcher-4ab742f7.mjs} +3 -3
  79. package/components/chunks/{MazSelect-6ff6bb96.mjs → MazSelect-a0d29d46.mjs} +3 -3
  80. package/components/chunks/{MazSpinner-51aa73ca.mjs → MazSpinner-05b867f0.mjs} +1 -1
  81. package/components/chunks/MazSpinner-151ca8af.mjs +39 -0
  82. package/components/chunks/{MazSpinner-059ee1d2.mjs → MazSpinner-37cda5f1.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-6d1d24d5.mjs → MazSpinner-38548063.mjs} +1 -1
  84. package/components/chunks/MazSpinner-3b9cd6bd.mjs +39 -0
  85. package/components/chunks/MazSpinner-691d6fe4.mjs +39 -0
  86. package/components/chunks/MazSpinner-70afb16b.mjs +39 -0
  87. package/components/chunks/MazSpinner-8ecee924.mjs +39 -0
  88. package/components/chunks/MazSpinner-9fc0d858.mjs +39 -0
  89. package/components/chunks/{MazSpinner-13403729.mjs → MazSpinner-a936fb87.mjs} +1 -1
  90. package/components/chunks/MazSpinner-d37b29f0.mjs +39 -0
  91. package/components/chunks/{MazSpinner-054f948c.mjs → MazSpinner-ea39af30.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-452a1534.mjs → MazSpinner-ef90ca5e.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-4c02cfd2.mjs → MazSpinner-f54688d1.mjs} +1 -1
  94. package/components/chunks/MazSpinner-fa0d644a.mjs +39 -0
  95. package/components/chunks/{MazSpinner-d9ef329f.mjs → MazSpinner-fa796159.mjs} +1 -1
  96. package/components/chunks/{MazTabsBar-27965f16.mjs → MazTabsBar-3fc93e3c.mjs} +1 -1
  97. package/components/chunks/{MazTransitionExpand-cd24498f.mjs → MazTransitionExpand-9d45da0e.mjs} +1 -1
  98. package/css/main.css +1 -1
  99. package/modules/assets/MazBtn.css +1 -1
  100. package/modules/assets/index.css +1 -1
  101. package/modules/chunks/{MazBtn-760c3b29.mjs → MazBtn-6d482774.mjs} +3 -3
  102. package/modules/chunks/{MazBtn-2f302422.cjs → MazBtn-9e80b611.cjs} +1 -1
  103. package/modules/chunks/{MazIcon-599a907f.cjs → MazIcon-84d2e299.cjs} +1 -1
  104. package/modules/chunks/{MazIcon-0bd6b78e.mjs → MazIcon-c59e858b.mjs} +1 -1
  105. package/modules/chunks/{MazSpinner-6ffa8db1.cjs → MazSpinner-108d3dc0.cjs} +1 -1
  106. package/modules/chunks/{MazSpinner-03bd76bd.mjs → MazSpinner-dcb0164b.mjs} +1 -1
  107. package/modules/chunks/check-circle-59c383ed.mjs +30 -0
  108. package/modules/chunks/check-circle-8c27a70a.cjs +1 -0
  109. package/modules/chunks/exclamation-circle-a33311d2.cjs +1 -0
  110. package/modules/chunks/exclamation-circle-e2620aab.mjs +30 -0
  111. package/modules/chunks/exclamation-triangle-21bf116a.mjs +30 -0
  112. package/modules/chunks/exclamation-triangle-df9f85b0.cjs +1 -0
  113. package/modules/chunks/index-4ffeaf8e.cjs +124 -0
  114. package/modules/chunks/{index-6a90ef88.mjs → index-67003347.mjs} +598 -508
  115. package/modules/chunks/information-circle-9fe4430a.cjs +1 -0
  116. package/modules/chunks/information-circle-b8051b19.mjs +30 -0
  117. package/modules/index.cjs +1 -1
  118. package/modules/index.mjs +18 -17
  119. package/nuxt/index.d.mts +5 -0
  120. package/nuxt/index.d.ts +5 -0
  121. package/nuxt/index.json +1 -1
  122. package/nuxt/index.mjs +14 -0
  123. package/nuxt/runtime/plugins/maz-icon-path.mjs +2 -1
  124. package/package.json +4 -4
  125. package/tailwindcss/tailwind.config.ts +0 -1
  126. package/types/components/MazBtn.vue.d.ts +3 -3
  127. package/types/components/MazDialogPromise.vue.d.ts +6 -6
  128. package/types/components/MazDropdown.vue.d.ts +4 -0
  129. package/types/components/MazInputTags.vue.d.ts +1 -0
  130. package/types/modules/composables/index.d.ts +1 -0
  131. package/types/modules/composables/use-timer.d.ts +12 -0
  132. package/types/modules/plugins/aos/index.d.ts +12 -12
  133. package/types/modules/plugins/toaster/MazToast.vue.d.ts +6 -6
  134. package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -1
  135. package/components/chunks/MazBtn-571454f6.mjs +0 -153
  136. package/components/chunks/MazBtn-6905cc39.mjs +0 -153
  137. package/components/chunks/MazBtn-74656d5b.mjs +0 -153
  138. package/components/chunks/MazBtn-a7a913dd.mjs +0 -153
  139. package/components/chunks/MazBtn-fb3c7af8.mjs +0 -153
  140. package/components/chunks/MazDropdown-6f2248b0.mjs +0 -345
  141. package/components/chunks/MazInputTags-aa95fae7.mjs +0 -446
  142. package/components/chunks/MazSpinner-6e7c4705.mjs +0 -39
  143. package/components/chunks/MazSpinner-7895f54f.mjs +0 -39
  144. package/components/chunks/MazSpinner-7eee202e.mjs +0 -39
  145. package/components/chunks/MazSpinner-805e14a6.mjs +0 -39
  146. package/components/chunks/MazSpinner-85080b43.mjs +0 -39
  147. package/components/chunks/MazSpinner-c67b05bb.mjs +0 -39
  148. package/components/chunks/MazSpinner-caa33afc.mjs +0 -39
  149. package/components/chunks/MazSpinner-cb8fbe9a.mjs +0 -39
  150. package/modules/chunks/index-794680d2.cjs +0 -124
  151. package/types/modules/plugins/toaster/timer.d.ts +0 -11
@@ -79,7 +79,7 @@ const re = ({
79
79
  },
80
80
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
81
81
  setup(e, { emit: r }) {
82
- const l = m(() => import("./MazBtn-124f3700.mjs")), d = m(() => import("./MazIcon-52a76873.mjs")), p = m(() => import("./eye-slash-fa42a017.mjs")), C = m(() => import("./eye-dc12ce09.mjs")), M = m(() => import("./check-c9b483c0.mjs")), t = e, c = r, v = z(!1), f = z(!1), I = z(), q = Q(), N = re({
82
+ const l = m(() => import("./MazBtn-edeb8105.mjs")), d = m(() => import("./MazIcon-52a76873.mjs")), p = m(() => import("./eye-slash-fa42a017.mjs")), C = m(() => import("./eye-dc12ce09.mjs")), M = m(() => import("./check-c9b483c0.mjs")), t = e, c = r, v = z(!1), f = z(!1), I = z(), q = Q(), N = re({
83
83
  componentName: "MazInput",
84
84
  instance: q,
85
85
  providedId: t.id
@@ -276,7 +276,7 @@ const me = (e, r) => {
276
276
  for (const [d, p] of r)
277
277
  l[d] = p;
278
278
  return l;
279
- }, be = /* @__PURE__ */ me(fe, [["__scopeId", "data-v-32fa5093"]]);
279
+ }, be = /* @__PURE__ */ me(fe, [["__scopeId", "data-v-4ef81f77"]]);
280
280
  export {
281
281
  be as M,
282
282
  me as _
@@ -80,7 +80,7 @@ const ie = ({
80
80
  },
81
81
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
82
82
  setup(e, { emit: u }) {
83
- const d = f(() => import("./MazBtn-6ce4cfd3.mjs")), y = f(() => import("./MazIcon-52a76873.mjs")), $ = f(() => import("./eye-slash-fa42a017.mjs")), C = f(() => import("./eye-dc12ce09.mjs")), M = f(() => import("./check-c9b483c0.mjs")), t = e, s = u, v = h(!1), c = h(!1), x = h(), q = Q(), N = ie({
83
+ const d = f(() => import("./MazBtn-ab3967b5.mjs")), y = f(() => import("./MazIcon-52a76873.mjs")), $ = f(() => import("./eye-slash-fa42a017.mjs")), C = f(() => import("./eye-dc12ce09.mjs")), M = f(() => import("./check-c9b483c0.mjs")), t = e, s = u, v = h(!1), c = h(!1), x = h(), q = Q(), N = ie({
84
84
  componentName: "MazInput",
85
85
  instance: q,
86
86
  providedId: t.id
@@ -272,7 +272,7 @@ const ie = ({
272
272
  ));
273
273
  }
274
274
  });
275
- const ge = /* @__PURE__ */ oe(me, [["__scopeId", "data-v-32fa5093"]]);
275
+ const ge = /* @__PURE__ */ oe(me, [["__scopeId", "data-v-4ef81f77"]]);
276
276
  export {
277
277
  ge as default
278
278
  };
@@ -1,7 +1,7 @@
1
1
  import "../assets/MazInput.css";
2
2
  import { computed as n, defineComponent as K, defineAsyncComponent as c, ref as p, getCurrentInstance as Q, onMounted as W, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as h, normalizeStyle as Y, createElementVNode as z, renderSlot as B, createVNode as b, unref as r, createCommentVNode as i, withDirectives as Z, mergeProps as _, toHandlers as ee, vModelDynamic as te, createTextVNode as ae, toDisplayString as le, createBlock as w, withModifiers as ne, withCtx as V } from "vue";
3
3
  import { d as oe } from "./debounce-19c516b6.mjs";
4
- import { _ as re } from "./MazPicker-e4620d8b.mjs";
4
+ import { _ as re } from "./MazPicker-9b2f5212.mjs";
5
5
  const ie = ({
6
6
  componentName: e,
7
7
  instance: d,
@@ -73,7 +73,7 @@ const ie = ({
73
73
  },
74
74
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
75
75
  setup(e, { emit: d }) {
76
- const m = c(() => import("./MazBtn-683effc1.mjs")), k = c(() => import("./MazIcon-52a76873.mjs")), $ = c(() => import("./eye-slash-fa42a017.mjs")), C = c(() => import("./eye-dc12ce09.mjs")), M = c(() => import("./check-c9b483c0.mjs")), t = e, u = d, y = p(!1), s = p(!1), x = p(), q = Q(), N = ie({
76
+ const m = c(() => import("./MazBtn-1b5325b4.mjs")), k = c(() => import("./MazIcon-52a76873.mjs")), $ = c(() => import("./eye-slash-fa42a017.mjs")), C = c(() => import("./eye-dc12ce09.mjs")), M = c(() => import("./check-c9b483c0.mjs")), t = e, u = d, y = p(!1), s = p(!1), x = p(), q = Q(), N = ie({
77
77
  componentName: "MazInput",
78
78
  instance: q,
79
79
  providedId: t.id
@@ -265,7 +265,7 @@ const ie = ({
265
265
  ));
266
266
  }
267
267
  });
268
- const pe = /* @__PURE__ */ re(me, [["__scopeId", "data-v-32fa5093"]]);
268
+ const pe = /* @__PURE__ */ re(me, [["__scopeId", "data-v-4ef81f77"]]);
269
269
  export {
270
270
  pe as default
271
271
  };
@@ -107,7 +107,7 @@ const me = ({
107
107
  },
108
108
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
109
109
  setup(e, { emit: l }) {
110
- const r = g(() => import("./MazBtn-571454f6.mjs")), i = g(() => import("./MazIcon-52a76873.mjs")), c = g(() => import("./eye-slash-fa42a017.mjs")), V = g(() => import("./eye-dc12ce09.mjs")), S = g(() => import("./check-c9b483c0.mjs")), t = e, s = l, p = k(!1), m = k(!1), o = k(), n = Q(), b = me({
110
+ const r = g(() => import("./MazBtn-8d15228e.mjs")), i = g(() => import("./MazIcon-52a76873.mjs")), c = g(() => import("./eye-slash-fa42a017.mjs")), V = g(() => import("./eye-dc12ce09.mjs")), S = g(() => import("./check-c9b483c0.mjs")), t = e, s = l, p = k(!1), m = k(!1), o = k(), n = Q(), b = me({
111
111
  componentName: "MazInput",
112
112
  instance: n,
113
113
  providedId: t.id
@@ -304,7 +304,7 @@ const he = (e, l) => {
304
304
  for (const [i, c] of l)
305
305
  r[i] = c;
306
306
  return r;
307
- }, ze = /* @__PURE__ */ he(ge, [["__scopeId", "data-v-32fa5093"]]), we = /* @__PURE__ */ z(
307
+ }, ze = /* @__PURE__ */ he(ge, [["__scopeId", "data-v-4ef81f77"]]), we = /* @__PURE__ */ z(
308
308
  "svg",
309
309
  {
310
310
  xmlns: "http://www.w3.org/2000/svg",
@@ -0,0 +1,595 @@
1
+ import "../assets/MazInputTags.css";
2
+ import { computed as n, defineComponent as P, defineAsyncComponent as S, ref as V, getCurrentInstance as ae, onMounted as le, useSlots as R, openBlock as r, createElementBlock as y, normalizeClass as k, normalizeStyle as ne, createElementVNode as C, renderSlot as x, createVNode as w, unref as m, createCommentVNode as d, withDirectives as oe, mergeProps as O, toHandlers as re, vModelDynamic as ie, createTextVNode as U, toDisplayString as j, createBlock as B, withModifiers as J, withCtx as $, useAttrs as ue, onBeforeMount as se, resolveDynamicComponent as de, TransitionGroup as ce, Fragment as fe, renderList as me, withKeys as F } from "vue";
3
+ function ve(e, c) {
4
+ let a;
5
+ return function(...v) {
6
+ clearTimeout(a), a = setTimeout(() => {
7
+ e.apply(this, v);
8
+ }, c);
9
+ };
10
+ }
11
+ const ye = ({
12
+ componentName: e,
13
+ instance: c,
14
+ providedId: a
15
+ }) => n(() => a ?? `${e}-${c == null ? void 0 : c.uid}`), be = {
16
+ key: 0,
17
+ class: "m-input-wrapper-left"
18
+ }, ge = { class: "m-input-wrapper-input" }, pe = ["id", "type", "name", "placeholder", "aria-label", "disabled", "readonly", "required"], ze = { key: 0 }, he = {
19
+ key: 1,
20
+ class: "m-input-wrapper-right"
21
+ }, Be = /* @__PURE__ */ P({
22
+ inheritAttrs: !1,
23
+ __name: "MazInput",
24
+ props: {
25
+ style: { type: [String, Array, Object], default: void 0 },
26
+ class: { type: String, default: void 0 },
27
+ modelValue: {
28
+ type: [String, Number, Boolean],
29
+ default: void 0
30
+ },
31
+ placeholder: { type: String, default: void 0 },
32
+ color: {
33
+ type: String,
34
+ default: "primary"
35
+ },
36
+ label: { type: String, default: void 0 },
37
+ name: { type: String, default: "input" },
38
+ type: {
39
+ type: String,
40
+ default: "text",
41
+ validator: (e) => [
42
+ "text",
43
+ "date",
44
+ "number",
45
+ "tel",
46
+ "search",
47
+ "url",
48
+ "password",
49
+ "month",
50
+ "time",
51
+ "week",
52
+ "email"
53
+ ].includes(e)
54
+ },
55
+ required: { type: Boolean, default: !1 },
56
+ disabled: { type: Boolean, default: !1 },
57
+ readonly: { type: Boolean, default: !1 },
58
+ id: { type: String, default: void 0 },
59
+ error: { type: Boolean, default: !1 },
60
+ success: { type: Boolean, default: !1 },
61
+ warning: { type: Boolean, default: !1 },
62
+ hint: { type: String, default: void 0 },
63
+ inputClasses: { type: String, default: void 0 },
64
+ noBorder: { type: Boolean, default: !1 },
65
+ noRadius: { type: Boolean, default: !1 },
66
+ size: {
67
+ type: String,
68
+ default: "md",
69
+ validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
70
+ },
71
+ debounce: { type: Boolean, default: !1 },
72
+ debounceDelay: { type: Number, default: 500 },
73
+ validButton: { type: Boolean, default: !1 },
74
+ validButtonLoading: { type: Boolean, default: !1 },
75
+ autoFocus: { type: Boolean, default: !1 },
76
+ borderActive: { type: Boolean, default: !1 },
77
+ leftIcon: { type: String, default: void 0 },
78
+ rightIcon: { type: String, default: void 0 }
79
+ },
80
+ emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
81
+ setup(e, { emit: c }) {
82
+ const a = S(() => Promise.resolve().then(() => Ie)), v = S(() => import("./MazIcon-52a76873.mjs")), f = S(() => import("./eye-slash-fa42a017.mjs")), h = S(() => import("./eye-dc12ce09.mjs")), o = S(() => import("./check-c9b483c0.mjs")), t = e, p = c, b = V(!1), u = V(!1), i = V(), s = ae(), I = ye({
83
+ componentName: "MazInput",
84
+ instance: s,
85
+ providedId: t.id
86
+ });
87
+ le(() => {
88
+ var l;
89
+ t.autoFocus && ((l = i.value) == null || l.focus());
90
+ });
91
+ const M = n(() => t.class), T = n(() => t.type === "password"), A = n(() => b.value ? "text" : t.type), L = n(() => {
92
+ if (!t.noBorder) {
93
+ if (t.error)
94
+ return "maz-border-danger";
95
+ if (t.success)
96
+ return "maz-border-success";
97
+ if (t.warning)
98
+ return "maz-border-warning";
99
+ if (u.value || t.borderActive) {
100
+ if (t.color === "black")
101
+ return "maz-border-black";
102
+ if (t.color === "danger")
103
+ return "maz-border-danger";
104
+ if (t.color === "info")
105
+ return "maz-border-info";
106
+ if (t.color === "primary")
107
+ return "maz-border-primary";
108
+ if (t.color === "secondary")
109
+ return "maz-border-secondary";
110
+ if (t.color === "success")
111
+ return "maz-border-success";
112
+ if (t.color === "warning")
113
+ return "maz-border-warning";
114
+ if (t.color === "white")
115
+ return "maz-border-white";
116
+ }
117
+ return "--default-border";
118
+ }
119
+ }), z = R(), q = n(() => {
120
+ const { required: l, placeholder: g } = t;
121
+ if (g)
122
+ return l ? `${g} *` : g;
123
+ }), G = n(() => t.modelValue !== void 0 && t.modelValue !== ""), E = n({
124
+ get: () => t.modelValue,
125
+ set: (l) => te(l)
126
+ }), H = n(() => (!!t.label || !!t.hint) && (u.value || !!G.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), X = n(() => !!t.label || !!t.hint), Q = () => !!z["right-icon"] || T.value || !!z["valid-button"] || t.validButton || !!t.rightIcon, W = () => !!z["left-icon"] || !!t.leftIcon, Y = (l) => {
127
+ p("focus", l), u.value = !0;
128
+ }, Z = (l) => {
129
+ p("blur", l), u.value = !1;
130
+ }, _ = (l) => p("change", l), ee = ve((l) => {
131
+ p("update:model-value", l);
132
+ }, t.debounceDelay), te = (l) => {
133
+ if (t.debounce)
134
+ return ee(l);
135
+ p("update:model-value", l);
136
+ };
137
+ return (l, g) => (r(), y(
138
+ "div",
139
+ {
140
+ class: k(["m-input", [
141
+ {
142
+ "--is-focused": u.value || e.borderActive,
143
+ "--should-up": H.value,
144
+ "--has-label": X.value,
145
+ "--is-disabled": e.disabled,
146
+ "--is-readonly": e.readonly,
147
+ "--has-z-2": e.error || e.warning || e.success,
148
+ "--has-state": e.error || e.warning || e.success
149
+ },
150
+ M.value,
151
+ `--${e.color}`,
152
+ `--${e.size}`
153
+ ]]),
154
+ style: ne(e.style)
155
+ },
156
+ [
157
+ C(
158
+ "div",
159
+ {
160
+ class: k(["m-input-wrapper", [e.inputClasses, L.value, { "maz-rounded": !e.noRadius }]])
161
+ },
162
+ [
163
+ W() ? (r(), y("div", be, [
164
+ l.$slots["left-icon"] || e.leftIcon ? x(l.$slots, "left-icon", { key: 0 }, () => [
165
+ w(m(v), {
166
+ name: e.leftIcon,
167
+ class: "maz-text-xl maz-text-muted"
168
+ }, null, 8, ["name"])
169
+ ], !0) : d("v-if", !0)
170
+ ])) : d("v-if", !0),
171
+ C("div", ge, [
172
+ oe(C("input", O({
173
+ id: m(I),
174
+ ref_key: "input",
175
+ ref: i,
176
+ "onUpdate:modelValue": g[0] || (g[0] = (N) => E.value = N),
177
+ type: A.value,
178
+ name: e.name
179
+ }, l.$attrs, {
180
+ placeholder: q.value,
181
+ "aria-label": e.label || e.placeholder,
182
+ disabled: e.disabled,
183
+ readonly: e.readonly,
184
+ required: e.required,
185
+ class: "m-input-input"
186
+ }, re({
187
+ blur: Z,
188
+ focus: Y,
189
+ change: _
190
+ }, !0), {
191
+ onClick: g[1] || (g[1] = (N) => l.$emit("click", N))
192
+ }), null, 16, pe), [
193
+ [ie, E.value]
194
+ ]),
195
+ e.label || e.hint ? (r(), y(
196
+ "span",
197
+ {
198
+ key: 0,
199
+ ref: "label",
200
+ class: k(["m-input-label", [
201
+ {
202
+ "maz-text-danger-600": e.error,
203
+ "maz-text-success-600": e.success,
204
+ "maz-text-warning-600": e.warning
205
+ }
206
+ ]])
207
+ },
208
+ [
209
+ U(
210
+ j(e.hint || e.label) + " ",
211
+ 1
212
+ /* TEXT */
213
+ ),
214
+ e.required ? (r(), y("sup", ze, "*")) : d("v-if", !0)
215
+ ],
216
+ 2
217
+ /* CLASS */
218
+ )) : d("v-if", !0)
219
+ ]),
220
+ Q() ? (r(), y("div", he, [
221
+ l.$slots["right-icon"] || e.rightIcon ? x(l.$slots, "right-icon", { key: 0 }, () => [
222
+ w(m(v), {
223
+ name: e.rightIcon,
224
+ class: "maz-text-xl maz-text-muted"
225
+ }, null, 8, ["name"])
226
+ ], !0) : d("v-if", !0),
227
+ T.value ? (r(), B(m(a), {
228
+ key: 1,
229
+ color: "transparent",
230
+ tabindex: "-1",
231
+ size: "mini",
232
+ onClick: g[2] || (g[2] = J((N) => b.value = !b.value, ["stop"]))
233
+ }, {
234
+ default: $(() => [
235
+ b.value ? (r(), B(m(f), {
236
+ key: 0,
237
+ class: "maz-text-xl maz-text-muted"
238
+ })) : (r(), B(m(h), {
239
+ key: 1,
240
+ class: "maz-text-xl maz-text-muted"
241
+ }))
242
+ ]),
243
+ _: 1
244
+ /* STABLE */
245
+ })) : d("v-if", !0),
246
+ l.$slots["valid-button"] || e.validButton ? x(l.$slots, "valid-button", { key: 2 }, () => [
247
+ w(m(a), {
248
+ color: "transparent",
249
+ disabled: e.disabled,
250
+ tabindex: "-1",
251
+ loading: e.validButtonLoading,
252
+ class: "m-input-valid-button",
253
+ size: "mini",
254
+ type: "submit"
255
+ }, {
256
+ default: $(() => [
257
+ w(m(o), { class: "maz-text-2xl maz-text-normal" })
258
+ ]),
259
+ _: 1
260
+ /* STABLE */
261
+ }, 8, ["disabled", "loading"])
262
+ ], !0) : d("v-if", !0)
263
+ ])) : d("v-if", !0)
264
+ ],
265
+ 2
266
+ /* CLASS */
267
+ )
268
+ ],
269
+ 6
270
+ /* CLASS, STYLE */
271
+ ));
272
+ }
273
+ });
274
+ const D = (e, c) => {
275
+ const a = e.__vccOpts || e;
276
+ for (const [v, f] of c)
277
+ a[v] = f;
278
+ return a;
279
+ }, ke = /* @__PURE__ */ D(Be, [["__scopeId", "data-v-4ef81f77"]]), we = /* @__PURE__ */ P({
280
+ __name: "MazBtn",
281
+ props: {
282
+ variant: {
283
+ type: String,
284
+ default: "button",
285
+ validator: (e) => ["button", "link"].includes(e)
286
+ },
287
+ size: {
288
+ type: String,
289
+ default: "md",
290
+ validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
291
+ },
292
+ color: {
293
+ type: String,
294
+ default: "primary"
295
+ },
296
+ type: {
297
+ type: String,
298
+ default: "button",
299
+ validator: (e) => ["button", "submit", "reset"].includes(e)
300
+ },
301
+ rounded: { type: Boolean, default: !1 },
302
+ noRounded: { type: Boolean, default: !1 },
303
+ outline: { type: Boolean, default: !1 },
304
+ pastel: { type: Boolean, default: !1 },
305
+ block: { type: Boolean, default: !1 },
306
+ noUnderline: { type: Boolean, default: !1 },
307
+ noLeading: { type: Boolean, default: !1 },
308
+ loading: { type: Boolean, default: !1 },
309
+ disabled: { type: Boolean, default: !1 },
310
+ fab: { type: Boolean, default: !1 },
311
+ icon: { type: String, default: void 0 },
312
+ leftIcon: { type: String, default: void 0 },
313
+ rightIcon: { type: String, default: void 0 },
314
+ noPadding: { type: Boolean, default: !1 },
315
+ noElevation: { type: Boolean, default: !1 }
316
+ },
317
+ setup(e) {
318
+ const c = S(() => import("./MazSpinner-70afb16b.mjs")), a = S(() => import("./MazIcon-52a76873.mjs")), { href: v, to: f } = ue(), h = R(), o = e;
319
+ se(() => {
320
+ o.icon && !o.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
321
+ });
322
+ const t = n(() => v ? "a" : f ? "router-link" : "button"), p = n(
323
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
324
+ ), b = n(
325
+ () => (o.loading || o.disabled) && t.value === "button"
326
+ ), u = n(() => b.value ? "--cursor-default" : "--cursor-pointer"), i = n(() => `--is-${o.variant}`), s = n(() => o.loading && o.variant === "button"), I = n(() => !!h["left-icon"] || o.leftIcon), M = n(() => !!h["right-icon"] || o.rightIcon), T = n(() => I.value || M.value), A = n(() => o.fab && o.icon), L = n(() => t.value === "button" ? o.type : void 0);
327
+ return (z, q) => (r(), B(de(t.value), O(z.$attrs, {
328
+ disabled: b.value,
329
+ class: ["m-btn", [
330
+ `--${e.size}`,
331
+ p.value,
332
+ u.value,
333
+ i.value,
334
+ {
335
+ "--block": e.block,
336
+ "--no-underline": e.noUnderline,
337
+ "--no-leading": e.noLeading,
338
+ "--fab": e.fab,
339
+ "--loading": e.loading,
340
+ "--disabled": b.value,
341
+ "--icon": T.value,
342
+ "--rounded": e.rounded,
343
+ "--no-rounded": e.noRounded,
344
+ "--no-padding": e.noPadding,
345
+ "--no-elevation": e.noElevation
346
+ }
347
+ ]],
348
+ type: L.value
349
+ }), {
350
+ default: $(() => [
351
+ I.value ? (r(), y(
352
+ "div",
353
+ {
354
+ key: 0,
355
+ class: k(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": s.value }])
356
+ },
357
+ [
358
+ x(z.$slots, "left-icon", {}, () => [
359
+ e.leftIcon ? (r(), B(m(a), {
360
+ key: 0,
361
+ name: e.leftIcon
362
+ }, null, 8, ["name"])) : d("v-if", !0)
363
+ ], !0)
364
+ ],
365
+ 2
366
+ /* CLASS */
367
+ )) : d("v-if", !0),
368
+ A.value ? (r(), y(
369
+ "div",
370
+ {
371
+ key: 1,
372
+ class: k(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": s.value }])
373
+ },
374
+ [
375
+ x(z.$slots, "icon", {}, () => [
376
+ e.icon ? (r(), B(m(a), {
377
+ key: 0,
378
+ name: e.icon
379
+ }, null, 8, ["name"])) : d("v-if", !0)
380
+ ], !0)
381
+ ],
382
+ 2
383
+ /* CLASS */
384
+ )) : d("v-if", !0),
385
+ C(
386
+ "span",
387
+ {
388
+ class: k(["maz-flex maz-flex-center", { "maz-invisible": s.value }])
389
+ },
390
+ [
391
+ x(z.$slots, "default", {}, void 0, !0)
392
+ ],
393
+ 2
394
+ /* CLASS */
395
+ ),
396
+ M.value ? (r(), y(
397
+ "div",
398
+ {
399
+ key: 2,
400
+ class: k(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": s.value }])
401
+ },
402
+ [
403
+ x(z.$slots, "right-icon", {}, () => [
404
+ e.rightIcon ? (r(), B(m(a), {
405
+ key: 0,
406
+ name: e.rightIcon
407
+ }, null, 8, ["name"])) : d("v-if", !0)
408
+ ], !0)
409
+ ],
410
+ 2
411
+ /* CLASS */
412
+ )) : d("v-if", !0),
413
+ s.value ? (r(), B(m(c), {
414
+ key: 3,
415
+ size: "2em",
416
+ color: e.color,
417
+ class: "maz-absolute"
418
+ }, null, 8, ["color"])) : d("v-if", !0)
419
+ ]),
420
+ _: 3
421
+ /* FORWARDED */
422
+ }, 16, ["disabled", "class", "type"]));
423
+ }
424
+ });
425
+ const K = /* @__PURE__ */ D(we, [["__scopeId", "data-v-0410c0ed"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
426
+ __proto__: null,
427
+ default: K
428
+ }, Symbol.toStringTag, { value: "Module" })), Se = {
429
+ xmlns: "http://www.w3.org/2000/svg",
430
+ width: "1em",
431
+ height: "1em",
432
+ fill: "none",
433
+ viewBox: "0 0 24 24"
434
+ }, xe = /* @__PURE__ */ C(
435
+ "path",
436
+ {
437
+ stroke: "currentColor",
438
+ "stroke-linecap": "round",
439
+ "stroke-linejoin": "round",
440
+ "stroke-width": "1.5",
441
+ d: "M6 18 18 6M6 6l12 12"
442
+ },
443
+ null,
444
+ -1
445
+ /* HOISTED */
446
+ ), $e = [
447
+ xe
448
+ ];
449
+ function Me(e, c) {
450
+ return r(), y("svg", Se, [...$e]);
451
+ }
452
+ const Ve = { render: Me }, Ce = /* @__PURE__ */ P({
453
+ __name: "MazInputTags",
454
+ props: {
455
+ // Input value, can be a `Array` of `String` or `null`
456
+ modelValue: {
457
+ type: Array,
458
+ default: void 0
459
+ },
460
+ // input placeholder
461
+ placeholder: { type: String, default: void 0 },
462
+ label: { type: String, default: void 0 },
463
+ // When is `true` the input is disable
464
+ disabled: { type: Boolean, default: !1 },
465
+ // When is `true` the input has the error style (red)
466
+ error: { type: Boolean, default: !1 },
467
+ success: { type: Boolean, default: !1 },
468
+ warning: { type: Boolean, default: !1 },
469
+ size: {
470
+ type: String,
471
+ default: "md",
472
+ validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
473
+ },
474
+ color: {
475
+ type: String,
476
+ default: "primary"
477
+ }
478
+ },
479
+ emits: ["update:model-value"],
480
+ setup(e, { emit: c }) {
481
+ const a = e, v = V(!1), f = V(), h = c, o = (u) => {
482
+ if (f.value) {
483
+ u.preventDefault();
484
+ const i = f.value.trim().split(",").map((s) => s.trim() === "," ? void 0 : s.trim()).filter(Boolean);
485
+ h("update:model-value", a.modelValue ? [...a.modelValue, ...i] : [...i]), f.value = void 0;
486
+ }
487
+ }, t = n(() => {
488
+ if (a.error)
489
+ return "maz-border-danger";
490
+ if (a.success)
491
+ return "maz-border-success";
492
+ if (a.warning)
493
+ return "maz-border-warning";
494
+ if (v.value) {
495
+ if (a.color === "primary")
496
+ return "maz-border-primary";
497
+ if (a.color === "secondary")
498
+ return "maz-border-secondary";
499
+ if (a.color === "info")
500
+ return "maz-border-info";
501
+ if (a.color === "danger")
502
+ return "maz-border-danger";
503
+ if (a.color === "success")
504
+ return "maz-border-success";
505
+ if (a.color === "warning")
506
+ return "maz-border-warning";
507
+ if (a.color === "black")
508
+ return "maz-border-black";
509
+ if (a.color === "white")
510
+ return "maz-border-white";
511
+ }
512
+ return "maz-border-gray-200 dark:maz-border-color-lighter";
513
+ }), p = () => {
514
+ if (!f.value || f.value === "") {
515
+ const u = JSON.parse(JSON.stringify(a.modelValue));
516
+ u.pop(), h("update:model-value", u);
517
+ }
518
+ }, b = (u) => {
519
+ const i = JSON.parse(JSON.stringify(a.modelValue));
520
+ i.splice(u, 1), h("update:model-value", i);
521
+ };
522
+ return (u, i) => (r(), y(
523
+ "div",
524
+ {
525
+ class: k(["m-input-tags", [t.value, `--${e.color}`]]),
526
+ onFocusCapture: i[1] || (i[1] = (s) => v.value = !0),
527
+ onBlurCapture: i[2] || (i[2] = (s) => v.value = !1)
528
+ },
529
+ [
530
+ w(ce, { name: "maz-tags" }, {
531
+ default: $(() => [
532
+ (r(!0), y(
533
+ fe,
534
+ null,
535
+ me(e.modelValue, (s, I) => (r(), y("div", {
536
+ key: `tag-${I}`
537
+ }, [
538
+ w(K, {
539
+ class: "m-input-tags__tag",
540
+ disabled: e.disabled,
541
+ size: e.size,
542
+ color: e.color,
543
+ onClick: J((M) => b(I), ["stop"])
544
+ }, {
545
+ default: $(() => [
546
+ U(
547
+ j(s),
548
+ 1
549
+ /* TEXT */
550
+ )
551
+ ]),
552
+ "right-icon": $(() => [
553
+ w(m(Ve), { class: "m-input-tags__tag__icon" })
554
+ ]),
555
+ _: 2
556
+ /* DYNAMIC */
557
+ }, 1032, ["disabled", "size", "color", "onClick"])
558
+ ]))),
559
+ 128
560
+ /* KEYED_FRAGMENT */
561
+ ))
562
+ ]),
563
+ _: 1
564
+ /* STABLE */
565
+ }),
566
+ w(ke, O({
567
+ key: "input-tags",
568
+ modelValue: f.value,
569
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => f.value = s)
570
+ }, u.$attrs, {
571
+ placeholder: e.placeholder,
572
+ label: e.label,
573
+ "aria-label": e.label || e.placeholder,
574
+ error: e.error,
575
+ disabled: e.disabled,
576
+ color: e.color,
577
+ size: e.size,
578
+ "no-border": "",
579
+ class: "m-input-tags__input maz-flex-1",
580
+ onKeydown: [
581
+ F(o, ["enter"]),
582
+ F(p, ["delete"])
583
+ ]
584
+ }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "size", "onKeydown"])
585
+ ],
586
+ 34
587
+ /* CLASS, HYDRATE_EVENTS */
588
+ ));
589
+ }
590
+ });
591
+ const Ae = /* @__PURE__ */ D(Ce, [["__scopeId", "data-v-8dd143eb"]]);
592
+ export {
593
+ Ae as M,
594
+ D as _
595
+ };