maz-ui 3.22.3 → 3.23.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 (243) hide show
  1. package/components/MazAvatar.mjs +2 -2
  2. package/components/MazBackdrop.mjs +67 -107
  3. package/components/MazBadge.mjs +41 -50
  4. package/components/MazBottomSheet.mjs +2 -2
  5. package/components/MazBtn.mjs +2 -2
  6. package/components/MazCard.mjs +2 -2
  7. package/components/MazCarousel.mjs +2 -2
  8. package/components/MazChart.mjs +53 -63
  9. package/components/MazCheckbox.mjs +84 -128
  10. package/components/MazDialog.mjs +2 -2
  11. package/components/MazDialogPromise.mjs +3 -3
  12. package/components/MazDrawer.mjs +2 -2
  13. package/components/MazDropdown.mjs +2 -2
  14. package/components/MazDropzone.mjs +2 -2
  15. package/components/MazFullscreenLoader.mjs +14 -18
  16. package/components/MazGallery.d.ts +41 -0
  17. package/components/MazGallery.mjs +370 -567
  18. package/components/MazIcon.mjs +76 -140
  19. package/components/MazInput.mjs +2 -2
  20. package/components/MazInputNumber.mjs +72 -99
  21. package/components/MazInputPrice.mjs +2 -2
  22. package/components/MazInputTags.mjs +2 -2
  23. package/components/MazLazyImg.mjs +2 -2
  24. package/components/MazPhoneNumberInput.mjs +2 -2
  25. package/components/MazPicker.mjs +2 -2
  26. package/components/MazRadio.mjs +65 -94
  27. package/components/MazRadioButtons.mjs +64 -78
  28. package/components/MazSelect.mjs +2 -2
  29. package/components/MazSlider.mjs +213 -325
  30. package/components/MazSpinner.mjs +25 -34
  31. package/components/MazStepper.mjs +2 -2
  32. package/components/MazSwitch.mjs +43 -60
  33. package/components/MazTabs.mjs +16 -25
  34. package/components/MazTabsBar.mjs +2 -2
  35. package/components/MazTabsContent.mjs +34 -43
  36. package/components/MazTabsContentItem.mjs +49 -63
  37. package/components/MazTextarea.mjs +124 -169
  38. package/components/MazTransitionExpand.mjs +36 -54
  39. package/components/assets/MazBackdrop.css +1 -1
  40. package/components/assets/MazBottomSheet.css +1 -1
  41. package/components/assets/MazDialog.css +1 -1
  42. package/components/assets/MazDialogPromise.css +1 -1
  43. package/components/assets/MazDrawer.css +1 -1
  44. package/components/assets/MazGallery.css +1 -1
  45. package/components/assets/MazPhoneNumberInput.css +1 -1
  46. package/components/assets/MazSelect.css +1 -1
  47. package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
  48. package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
  49. package/components/chunks/MazBtn-124f3700.mjs +153 -0
  50. package/components/chunks/MazBtn-1e61862b.mjs +153 -0
  51. package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
  52. package/components/chunks/MazBtn-3d74f737.mjs +153 -0
  53. package/components/chunks/MazBtn-4a447126.mjs +153 -0
  54. package/components/chunks/MazBtn-555928ed.mjs +153 -0
  55. package/components/chunks/MazBtn-571454f6.mjs +153 -0
  56. package/components/chunks/MazBtn-5e426592.mjs +153 -0
  57. package/components/chunks/MazBtn-6905cc39.mjs +153 -0
  58. package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
  59. package/components/chunks/MazBtn-74656d5b.mjs +153 -0
  60. package/components/chunks/MazBtn-7706b2da.mjs +158 -0
  61. package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
  62. package/components/chunks/MazBtn-ba27c61d.mjs +153 -0
  63. package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
  64. package/components/chunks/MazCard-bcc36489.mjs +214 -0
  65. package/components/chunks/MazCarousel-6da75122.mjs +107 -0
  66. package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
  67. package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
  68. package/components/chunks/MazDialog-44eda544.mjs +250 -0
  69. package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
  70. package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
  71. package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
  72. package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
  73. package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
  74. package/components/chunks/MazIcon-52a76873.mjs +101 -0
  75. package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
  76. package/components/chunks/MazInput-1ed4f946.mjs +283 -0
  77. package/components/chunks/MazInput-c51881ea.mjs +278 -0
  78. package/components/chunks/MazInput-e1373eaf.mjs +271 -0
  79. package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
  80. package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
  81. package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
  82. package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
  83. package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
  84. package/components/chunks/MazPicker-c85774e5.mjs +1140 -0
  85. package/components/chunks/MazPickerCalendar-f5bbea58.mjs +532 -0
  86. package/components/chunks/MazPickerHeader-31a3619b.mjs +186 -0
  87. package/components/chunks/MazPickerMonthSwitcher-aaa759b9.mjs +97 -0
  88. package/components/chunks/MazPickerShortcuts-d0623e2d.mjs +74 -0
  89. package/components/chunks/MazPickerTime-de9cfc63.mjs +219 -0
  90. package/components/chunks/MazPickerYearSwitcher-746c84fc.mjs +106 -0
  91. package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
  92. package/components/chunks/MazSpinner-054f948c.mjs +39 -0
  93. package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
  94. package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
  95. package/components/chunks/MazSpinner-13403729.mjs +39 -0
  96. package/components/chunks/MazSpinner-44011019.mjs +39 -0
  97. package/components/chunks/MazSpinner-452a1534.mjs +39 -0
  98. package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
  99. package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
  100. package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
  101. package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
  102. package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
  103. package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
  104. package/components/chunks/MazSpinner-85080b43.mjs +39 -0
  105. package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
  106. package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
  107. package/components/chunks/MazSpinner-b065168a.mjs +39 -0
  108. package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
  109. package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
  110. package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
  111. package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
  112. package/components/chunks/MazStepper-39f018f3.mjs +191 -0
  113. package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
  114. package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
  115. package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
  116. package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
  117. package/components/chunks/check-31d7ba2f.mjs +30 -0
  118. package/components/chunks/check-c9b483c0.mjs +30 -0
  119. package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
  120. package/components/chunks/chevron-down-2b60111a.mjs +30 -0
  121. package/components/chunks/chevron-left-39b4621e.mjs +30 -0
  122. package/components/chunks/chevron-right-949a60fa.mjs +30 -0
  123. package/components/chunks/debounce-19c516b6.mjs +11 -0
  124. package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
  125. package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
  126. package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
  127. package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
  128. package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
  129. package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
  130. package/components/chunks/minus-e71140e1.mjs +30 -0
  131. package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
  132. package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
  133. package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
  134. package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
  135. package/components/chunks/plus-c20544c3.mjs +30 -0
  136. package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
  137. package/components/chunks/x-mark-7761acf4.mjs +29 -0
  138. package/modules/chunks/MazBtn-82a868df.mjs +153 -0
  139. package/modules/chunks/MazIcon-169747b4.mjs +96 -0
  140. package/modules/chunks/MazSpinner-3febbfdc.mjs +39 -0
  141. package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
  142. package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
  143. package/modules/chunks/index-d9a25303.mjs +1628 -0
  144. package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
  145. package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
  146. package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
  147. package/modules/index.mjs +45 -44
  148. package/nuxt/index.json +1 -1
  149. package/nuxt/types.d.mts +3 -2
  150. package/nuxt/types.d.ts +3 -2
  151. package/package.json +11 -7
  152. package/types/components/MazGallery.vue.d.ts +41 -0
  153. package/types/modules/index.d.ts +1 -0
  154. package/types/modules/resolvers/index.d.ts +2 -0
  155. package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
  156. package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
  157. package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
  158. package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
  159. package/components/chunks/MazBtn-31c6b731.mjs +0 -184
  160. package/components/chunks/MazBtn-48382169.mjs +0 -184
  161. package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
  162. package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
  163. package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
  164. package/components/chunks/MazBtn-b42e3575.mjs +0 -184
  165. package/components/chunks/MazBtn-b56a7278.mjs +0 -184
  166. package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
  167. package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
  168. package/components/chunks/MazBtn-d92908b2.mjs +0 -191
  169. package/components/chunks/MazBtn-f48da79c.mjs +0 -184
  170. package/components/chunks/MazBtn-f7e94b59.mjs +0 -184
  171. package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
  172. package/components/chunks/MazCard-01b81dd2.mjs +0 -237
  173. package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
  174. package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
  175. package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
  176. package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
  177. package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
  178. package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
  179. package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
  180. package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
  181. package/components/chunks/MazGallery-a8f6748b.mjs +0 -812
  182. package/components/chunks/MazIcon-b779da0a.mjs +0 -159
  183. package/components/chunks/MazIcon-bda198b4.mjs +0 -165
  184. package/components/chunks/MazInput-713b00d0.mjs +0 -326
  185. package/components/chunks/MazInput-b9386887.mjs +0 -341
  186. package/components/chunks/MazInput-c33627dd.mjs +0 -334
  187. package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
  188. package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
  189. package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
  190. package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
  191. package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
  192. package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
  193. package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
  194. package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
  195. package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
  196. package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
  197. package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
  198. package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
  199. package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
  200. package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
  201. package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
  202. package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
  203. package/components/chunks/MazSpinner-3155378b.mjs +0 -46
  204. package/components/chunks/MazSpinner-339a9006.mjs +0 -46
  205. package/components/chunks/MazSpinner-53979e96.mjs +0 -46
  206. package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
  207. package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
  208. package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
  209. package/components/chunks/MazSpinner-8859d658.mjs +0 -46
  210. package/components/chunks/MazSpinner-8e180605.mjs +0 -52
  211. package/components/chunks/MazSpinner-98dd1f9d.mjs +0 -46
  212. package/components/chunks/MazSpinner-9950424b.mjs +0 -46
  213. package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
  214. package/components/chunks/MazSpinner-cb491238.mjs +0 -46
  215. package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
  216. package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
  217. package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
  218. package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
  219. package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
  220. package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
  221. package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
  222. package/components/chunks/MazTransitionExpand-f293b830.mjs +0 -57
  223. package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
  224. package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
  225. package/components/chunks/check-8da249b1.mjs +0 -32
  226. package/components/chunks/check-f2fcce10.mjs +0 -32
  227. package/components/chunks/chevron-down-a78b9604.mjs +0 -32
  228. package/components/chunks/chevron-left-3365d59b.mjs +0 -32
  229. package/components/chunks/chevron-right-02f9e837.mjs +0 -32
  230. package/components/chunks/debounce-7d66ffa9.mjs +0 -12
  231. package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
  232. package/components/chunks/minus-c9cdee90.mjs +0 -32
  233. package/components/chunks/no-photography-7f2be516.mjs +0 -4
  234. package/components/chunks/plus-b1b0a5a8.mjs +0 -32
  235. package/components/chunks/x-mark-3b05101b.mjs +0 -31
  236. package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
  237. package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
  238. package/modules/chunks/MazIcon-988edef7.mjs +0 -159
  239. package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
  240. package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
  241. package/modules/chunks/index-b1625fc2.mjs +0 -2315
  242. package/modules/chunks/no-photography-7f2be516.mjs +0 -4
  243. package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
@@ -1,20 +1,16 @@
1
1
  import "./assets/MazCheckbox.css";
2
- import { computed, openBlock, createElementBlock, createElementVNode, defineComponent, useCssVars, getCurrentInstance, unref, normalizeClass, mergeProps, createVNode, renderSlot } from "vue";
3
- const useInstanceUniqId = ({
4
- componentName,
5
- instance,
6
- providedId
7
- }) => {
8
- return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
9
- };
10
- const _hoisted_1$1 = {
2
+ import { computed as r, openBlock as x, createElementBlock as b, createElementVNode as u, defineComponent as C, useCssVars as w, getCurrentInstance as S, unref as d, normalizeClass as p, mergeProps as I, createVNode as B, renderSlot as A } from "vue";
3
+ const N = ({
4
+ componentName: t,
5
+ instance: a,
6
+ providedId: n
7
+ }) => r(() => n ?? `${t}-${a == null ? void 0 : a.uid}`), $ = {
11
8
  xmlns: "http://www.w3.org/2000/svg",
12
9
  width: "1em",
13
10
  height: "1em",
14
11
  fill: "none",
15
12
  viewBox: "0 0 24 24"
16
- };
17
- const _hoisted_2$1 = /* @__PURE__ */ createElementVNode(
13
+ }, M = /* @__PURE__ */ u(
18
14
  "path",
19
15
  {
20
16
  stroke: "currentColor",
@@ -26,17 +22,13 @@ const _hoisted_2$1 = /* @__PURE__ */ createElementVNode(
26
22
  null,
27
23
  -1
28
24
  /* HOISTED */
29
- );
30
- const _hoisted_3 = [
31
- _hoisted_2$1
25
+ ), E = [
26
+ M
32
27
  ];
33
- function render(_ctx, _cache) {
34
- return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._hoisted_3]);
28
+ function j(t, a) {
29
+ return x(), b("svg", $, [...E]);
35
30
  }
36
- const CheckIcon = { render };
37
- const _hoisted_1 = ["for", "aria-checked"];
38
- const _hoisted_2 = ["id", "checked", "disabled", "name"];
39
- const _sfc_main = /* @__PURE__ */ defineComponent({
31
+ const q = { render: j }, D = ["for", "aria-checked"], H = ["id", "checked", "disabled", "name"], K = /* @__PURE__ */ C({
40
32
  __name: "MazCheckbox",
41
33
  props: {
42
34
  modelValue: {
@@ -51,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
43
  value: { type: [String, Number, Boolean], default: void 0 },
52
44
  name: { type: String, default: "m-checkbox" },
53
45
  size: { type: String, default: "md" },
54
- disabled: { type: Boolean, default: false }
46
+ disabled: { type: Boolean, default: !1 }
55
47
  },
56
48
  emits: [
57
49
  /* emitted when value change */
@@ -59,134 +51,98 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
51
  /* emited when value change */
60
52
  "change"
61
53
  ],
62
- setup(__props, { emit: __emit }) {
63
- useCssVars((_ctx) => ({
64
- "40cdf8ce": checkIconColor.value,
65
- "25e00d0a": checkboxSize.value,
66
- "5692b564": checkboxSelectedColor.value,
67
- "9df23cde": checkboxBoxShadow.value
54
+ setup(t, { emit: a }) {
55
+ w((o) => ({
56
+ "40cdf8ce": v.value,
57
+ "25e00d0a": k.value,
58
+ "5692b564": _.value,
59
+ "9df23cde": g.value
68
60
  }));
69
- const instance = getCurrentInstance();
70
- const props = __props;
71
- const emits = __emit;
72
- const instanceId = useInstanceUniqId({
61
+ const n = S(), e = t, c = a, i = N({
73
62
  componentName: "MazCheckbox",
74
- instance,
75
- providedId: props.id
76
- });
77
- const isChecked = computed(
78
- () => typeof props.value !== "boolean" && Array.isArray(props.modelValue) ? props.modelValue.includes(props.value) : typeof props.modelValue === "boolean" ? props.modelValue : false
79
- );
80
- const checkboxSize = computed(() => {
81
- switch (props.size) {
82
- case "xl": {
63
+ instance: n,
64
+ providedId: e.id
65
+ }), m = r(
66
+ () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
67
+ ), k = r(() => {
68
+ switch (e.size) {
69
+ case "xl":
83
70
  return "2.25rem";
84
- }
85
- case "lg": {
71
+ case "lg":
86
72
  return "2rem";
87
- }
88
- default: {
73
+ default:
89
74
  return "1.625rem";
90
- }
91
- case "sm": {
75
+ case "sm":
92
76
  return "1.425rem";
93
- }
94
- case "xs": {
77
+ case "xs":
95
78
  return "1.325rem";
96
- }
97
- case "mini": {
79
+ case "mini":
98
80
  return "1.2rem";
99
- }
100
81
  }
101
- });
102
- const checkIconSize = computed(() => {
103
- switch (props.size) {
104
- case "xl": {
82
+ }), y = r(() => {
83
+ switch (e.size) {
84
+ case "xl":
105
85
  return "maz-text-2xl";
106
- }
107
- case "lg": {
86
+ case "lg":
108
87
  return "maz-text-xl";
109
- }
110
- default: {
88
+ default:
111
89
  return "maz-text-lg";
112
- }
113
- case "sm": {
90
+ case "sm":
114
91
  return "maz-text-base";
115
- }
116
- case "xs": {
92
+ case "xs":
117
93
  return "maz-text-sm";
118
- }
119
- case "mini": {
94
+ case "mini":
120
95
  return "maz-text-xs";
121
- }
122
96
  }
123
- });
124
- const checkIconColor = computed(() => `var(--maz-color-${props.color}-contrast)`);
125
- const checkboxSelectedColor = computed(() => `var(--maz-color-${props.color})`);
126
- const checkboxBoxShadow = computed(
127
- () => ["black", "transparent"].includes(props.color) ? `var(--maz-color-muted)` : `var(--maz-color-${props.color}-alpha)`
97
+ }), v = r(() => `var(--maz-color-${e.color}-contrast)`), _ = r(() => `var(--maz-color-${e.color})`), g = r(
98
+ () => ["black", "transparent"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`
128
99
  );
129
- function keyboardHandler(event) {
130
- if (["Space"].includes(event.code)) {
131
- event.preventDefault();
132
- emitValue(props.value ?? !props.modelValue);
133
- }
100
+ function z(o) {
101
+ ["Space"].includes(o.code) && (o.preventDefault(), f(e.value ?? !e.modelValue));
134
102
  }
135
- function getNewValue(value) {
136
- if (typeof value === "boolean" && (typeof props.modelValue === "boolean" || props.modelValue === void 0 || props.modelValue === null)) {
137
- return props.modelValue ? false : true;
138
- } else if (Array.isArray(props.modelValue) && typeof value !== "boolean") {
139
- return props.modelValue.includes(value) ? props.modelValue.filter((v) => v !== value) : [...props.modelValue, value];
140
- } else {
141
- return [value];
142
- }
103
+ function V(o) {
104
+ return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((l) => l !== o) : [...e.modelValue, o] : [o];
143
105
  }
144
- function emitValue(value) {
145
- const newValue = getNewValue(value);
146
- emits("update:model-value", newValue);
147
- emits("change", newValue);
106
+ function f(o) {
107
+ const l = V(o);
108
+ c("update:model-value", l), c("change", l);
148
109
  }
149
- return (_ctx, _cache) => {
150
- return openBlock(), createElementBlock("label", {
151
- for: unref(instanceId),
152
- class: normalizeClass(["m-checkbox", { "--disabled": __props.disabled }]),
153
- tabindex: "0",
154
- role: "checkbox",
155
- "aria-checked": isChecked.value,
156
- onKeydown: keyboardHandler
157
- }, [
158
- createElementVNode("input", mergeProps({
159
- id: unref(instanceId),
160
- checked: isChecked.value
161
- }, _ctx.$attrs, {
162
- tabindex: "-1",
163
- disabled: __props.disabled,
164
- name: __props.name,
165
- type: "checkbox",
166
- onChange: _cache[0] || (_cache[0] = ($event) => {
167
- var _a;
168
- return emitValue(__props.value ?? ((_a = $event == null ? void 0 : $event.target) == null ? void 0 : _a.checked));
169
- })
170
- }), null, 16, _hoisted_2),
171
- createElementVNode("span", null, [
172
- createVNode(unref(CheckIcon), {
173
- class: normalizeClass(["check-icon", checkIconSize.value])
174
- }, null, 8, ["class"])
175
- ]),
176
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
177
- ], 42, _hoisted_1);
178
- };
110
+ return (o, l) => (x(), b("label", {
111
+ for: d(i),
112
+ class: p(["m-checkbox", { "--disabled": t.disabled }]),
113
+ tabindex: "0",
114
+ role: "checkbox",
115
+ "aria-checked": m.value,
116
+ onKeydown: z
117
+ }, [
118
+ u("input", I({
119
+ id: d(i),
120
+ checked: m.value
121
+ }, o.$attrs, {
122
+ tabindex: "-1",
123
+ disabled: t.disabled,
124
+ name: t.name,
125
+ type: "checkbox",
126
+ onChange: l[0] || (l[0] = (s) => {
127
+ var h;
128
+ return f(t.value ?? ((h = s == null ? void 0 : s.target) == null ? void 0 : h.checked));
129
+ })
130
+ }), null, 16, H),
131
+ u("span", null, [
132
+ B(d(q), {
133
+ class: p(["check-icon", y.value])
134
+ }, null, 8, ["class"])
135
+ ]),
136
+ A(o.$slots, "default", {}, void 0, !0)
137
+ ], 42, D));
179
138
  }
180
139
  });
181
- const MazCheckbox_vue_vue_type_style_index_0_scoped_141a5e53_lang = "";
182
- const _export_sfc = (sfc, props) => {
183
- const target = sfc.__vccOpts || sfc;
184
- for (const [key, val] of props) {
185
- target[key] = val;
186
- }
187
- return target;
188
- };
189
- const MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-141a5e53"]]);
140
+ const O = (t, a) => {
141
+ const n = t.__vccOpts || t;
142
+ for (const [e, c] of a)
143
+ n[e] = c;
144
+ return n;
145
+ }, F = /* @__PURE__ */ O(K, [["__scopeId", "data-v-141a5e53"]]);
190
146
  export {
191
- MazCheckbox as default
147
+ F as default
192
148
  };
@@ -1,4 +1,4 @@
1
- import { M } from "./chunks/MazDialog-83e54b8c.mjs";
1
+ import { M as f } from "./chunks/MazDialog-44eda544.mjs";
2
2
  export {
3
- M as default
3
+ f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { a, u } from "./chunks/MazDialogPromise-6967e821.mjs";
1
+ import { a as o, u as s } from "./chunks/MazDialogPromise-eec5acde.mjs";
2
2
  export {
3
- a as default,
4
- u as useMazDialogPromise
3
+ o as default,
4
+ s as useMazDialogPromise
5
5
  };
@@ -1,4 +1,4 @@
1
- import { a } from "./chunks/MazDrawer-d778b3d2.mjs";
1
+ import { a as f } from "./chunks/MazDrawer-b628b37e.mjs";
2
2
  export {
3
- a as default
3
+ f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a } from "./chunks/MazDropdown-6f4482d7.mjs";
1
+ import { a as f } from "./chunks/MazDropdown-6f2248b0.mjs";
2
2
  export {
3
- a as default
3
+ f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { M } from "./chunks/MazDropzone-d1bb62dc.mjs";
1
+ import { M as a } from "./chunks/MazDropzone-8cac10a6.mjs";
2
2
  import "vue";
3
3
  export {
4
- M as default
4
+ a as default
5
5
  };
@@ -1,27 +1,23 @@
1
- import { defineComponent, defineAsyncComponent, openBlock, createElementBlock, createVNode, unref, renderSlot, createCommentVNode } from "vue";
2
- const _hoisted_1 = { class: "maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-flex-col maz-gap-2 maz-bg-overlay maz-text-center maz-backdrop-blur maz-flex-center" };
3
- const _hoisted_2 = { key: 0 };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
1
+ import { defineComponent as t, defineAsyncComponent as n, openBlock as o, createElementBlock as a, createVNode as l, unref as s, renderSlot as m, createCommentVNode as c } from "vue";
2
+ const d = { class: "maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-flex-col maz-gap-2 maz-bg-overlay maz-text-center maz-backdrop-blur maz-flex-center" }, i = { key: 0 }, u = /* @__PURE__ */ t({
5
3
  __name: "MazFullscreenLoader",
6
4
  props: {
7
5
  color: { default: "primary" },
8
6
  size: { default: "3em" }
9
7
  },
10
- setup(__props) {
11
- const MazSpinner = defineAsyncComponent(() => import("./chunks/MazSpinner-8e180605.mjs"));
12
- return (_ctx, _cache) => {
13
- return openBlock(), createElementBlock("div", _hoisted_1, [
14
- createVNode(unref(MazSpinner), {
15
- color: _ctx.color,
16
- size: _ctx.size
17
- }, null, 8, ["color", "size"]),
18
- _ctx.$slots["default"] ? (openBlock(), createElementBlock("span", _hoisted_2, [
19
- renderSlot(_ctx.$slots, "default")
20
- ])) : createCommentVNode("v-if", true)
21
- ]);
22
- };
8
+ setup(p) {
9
+ const r = n(() => import("./chunks/MazSpinner-a6d61cee.mjs"));
10
+ return (e, z) => (o(), a("div", d, [
11
+ l(s(r), {
12
+ color: e.color,
13
+ size: e.size
14
+ }, null, 8, ["color", "size"]),
15
+ e.$slots.default ? (o(), a("span", i, [
16
+ m(e.$slots, "default")
17
+ ])) : c("v-if", !0)
18
+ ]));
23
19
  }
24
20
  });
25
21
  export {
26
- _sfc_main as default
22
+ u as default
27
23
  };
@@ -2,111 +2,151 @@ import { type PropType } from 'vue';
2
2
  import type { MazGalleryImage } from './types';
3
3
  export type { MazGalleryImage } from './types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ /**
6
+ * Array of string or object: `['https://via.placeholder.com/500', 'https://via.placeholder.com/600']` or `[{ slug: 'https://via.placeholder.com/500', alt: 'image descripton' }, { slug: 'https://via.placeholder.com/600', alt: 'image descripton' }]`
7
+ * */
5
8
  images: {
6
9
  type: PropType<MazGalleryImage[]>;
7
10
  default: () => never[];
8
11
  };
12
+ /** Images count shown (max: 5) */
9
13
  imagesShownCount: {
10
14
  type: NumberConstructor;
11
15
  default: number;
12
16
  };
17
+ /** Remove transparent layer with the remain count (ex: +2) */
13
18
  noRemaining: {
14
19
  type: BooleanConstructor;
15
20
  default: boolean;
16
21
  };
22
+ /** Height of gallery */
17
23
  height: {
18
24
  type: (StringConstructor | NumberConstructor)[];
19
25
  default: number;
20
26
  };
27
+ /** Remove default height */
21
28
  noHeight: {
22
29
  type: BooleanConstructor;
23
30
  default: boolean;
24
31
  };
32
+ /** Width of gallery */
25
33
  width: {
26
34
  type: (StringConstructor | NumberConstructor)[];
27
35
  default: string;
28
36
  };
37
+ /** Remove default width */
29
38
  noWidth: {
30
39
  type: BooleanConstructor;
31
40
  default: boolean;
32
41
  };
42
+ /** Disable the border radius of the gallery */
33
43
  noRadius: {
34
44
  type: BooleanConstructor;
35
45
  default: boolean;
36
46
  };
47
+ /** Disable full size display when clicking on image */
37
48
  noZoom: {
38
49
  type: BooleanConstructor;
39
50
  default: boolean;
40
51
  };
52
+ /** Layer with photography icon when no images is provided */
41
53
  hasEmptyLayer: {
42
54
  type: BooleanConstructor;
43
55
  default: boolean;
44
56
  };
57
+ /** Lazy load image - if false, images are directly loaded */
45
58
  lazy: {
46
59
  type: BooleanConstructor;
47
60
  default: boolean;
48
61
  };
62
+ /** Disable blur effect on image hover */
49
63
  blur: {
50
64
  type: BooleanConstructor;
51
65
  default: boolean;
52
66
  };
67
+ /** Disable scale animation effect on image hover */
53
68
  scale: {
54
69
  type: BooleanConstructor;
55
70
  default: boolean;
56
71
  };
72
+ /** Choose color of borders between images - Should be a CSS color or CSS variable - Ex: `#000` or `var(--maz-color-bg-light)` */
73
+ separatorColor: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
57
77
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
+ /**
79
+ * Array of string or object: `['https://via.placeholder.com/500', 'https://via.placeholder.com/600']` or `[{ slug: 'https://via.placeholder.com/500', alt: 'image descripton' }, { slug: 'https://via.placeholder.com/600', alt: 'image descripton' }]`
80
+ * */
58
81
  images: {
59
82
  type: PropType<MazGalleryImage[]>;
60
83
  default: () => never[];
61
84
  };
85
+ /** Images count shown (max: 5) */
62
86
  imagesShownCount: {
63
87
  type: NumberConstructor;
64
88
  default: number;
65
89
  };
90
+ /** Remove transparent layer with the remain count (ex: +2) */
66
91
  noRemaining: {
67
92
  type: BooleanConstructor;
68
93
  default: boolean;
69
94
  };
95
+ /** Height of gallery */
70
96
  height: {
71
97
  type: (StringConstructor | NumberConstructor)[];
72
98
  default: number;
73
99
  };
100
+ /** Remove default height */
74
101
  noHeight: {
75
102
  type: BooleanConstructor;
76
103
  default: boolean;
77
104
  };
105
+ /** Width of gallery */
78
106
  width: {
79
107
  type: (StringConstructor | NumberConstructor)[];
80
108
  default: string;
81
109
  };
110
+ /** Remove default width */
82
111
  noWidth: {
83
112
  type: BooleanConstructor;
84
113
  default: boolean;
85
114
  };
115
+ /** Disable the border radius of the gallery */
86
116
  noRadius: {
87
117
  type: BooleanConstructor;
88
118
  default: boolean;
89
119
  };
120
+ /** Disable full size display when clicking on image */
90
121
  noZoom: {
91
122
  type: BooleanConstructor;
92
123
  default: boolean;
93
124
  };
125
+ /** Layer with photography icon when no images is provided */
94
126
  hasEmptyLayer: {
95
127
  type: BooleanConstructor;
96
128
  default: boolean;
97
129
  };
130
+ /** Lazy load image - if false, images are directly loaded */
98
131
  lazy: {
99
132
  type: BooleanConstructor;
100
133
  default: boolean;
101
134
  };
135
+ /** Disable blur effect on image hover */
102
136
  blur: {
103
137
  type: BooleanConstructor;
104
138
  default: boolean;
105
139
  };
140
+ /** Disable scale animation effect on image hover */
106
141
  scale: {
107
142
  type: BooleanConstructor;
108
143
  default: boolean;
109
144
  };
145
+ /** Choose color of borders between images - Should be a CSS color or CSS variable - Ex: `#000` or `var(--maz-color-bg-light)` */
146
+ separatorColor: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
110
150
  }>>, {
111
151
  width: string | number;
112
152
  height: string | number;
@@ -121,5 +161,6 @@ declare const _default: import("vue").DefineComponent<{
121
161
  noZoom: boolean;
122
162
  hasEmptyLayer: boolean;
123
163
  scale: boolean;
164
+ separatorColor: string;
124
165
  }, {}>;
125
166
  export default _default;