maz-ui 3.22.4 → 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 (238) 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.mjs +352 -558
  17. package/components/MazIcon.mjs +76 -140
  18. package/components/MazInput.mjs +2 -2
  19. package/components/MazInputNumber.mjs +72 -99
  20. package/components/MazInputPrice.mjs +2 -2
  21. package/components/MazInputTags.mjs +2 -2
  22. package/components/MazLazyImg.mjs +2 -2
  23. package/components/MazPhoneNumberInput.mjs +2 -2
  24. package/components/MazPicker.mjs +2 -2
  25. package/components/MazRadio.mjs +65 -94
  26. package/components/MazRadioButtons.mjs +64 -78
  27. package/components/MazSelect.mjs +2 -2
  28. package/components/MazSlider.mjs +213 -325
  29. package/components/MazSpinner.mjs +25 -34
  30. package/components/MazStepper.mjs +2 -2
  31. package/components/MazSwitch.mjs +43 -60
  32. package/components/MazTabs.mjs +16 -25
  33. package/components/MazTabsBar.mjs +2 -2
  34. package/components/MazTabsContent.mjs +34 -43
  35. package/components/MazTabsContentItem.mjs +49 -63
  36. package/components/MazTextarea.mjs +124 -169
  37. package/components/MazTransitionExpand.mjs +36 -54
  38. package/components/assets/MazBackdrop.css +1 -1
  39. package/components/assets/MazBottomSheet.css +1 -1
  40. package/components/assets/MazDialog.css +1 -1
  41. package/components/assets/MazDialogPromise.css +1 -1
  42. package/components/assets/MazDrawer.css +1 -1
  43. package/components/assets/MazPhoneNumberInput.css +1 -1
  44. package/components/assets/MazSelect.css +1 -1
  45. package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
  46. package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
  47. package/components/chunks/MazBtn-124f3700.mjs +153 -0
  48. package/components/chunks/MazBtn-1e61862b.mjs +153 -0
  49. package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
  50. package/components/chunks/MazBtn-3d74f737.mjs +153 -0
  51. package/components/chunks/MazBtn-4a447126.mjs +153 -0
  52. package/components/chunks/MazBtn-555928ed.mjs +153 -0
  53. package/components/chunks/MazBtn-571454f6.mjs +153 -0
  54. package/components/chunks/MazBtn-5e426592.mjs +153 -0
  55. package/components/chunks/MazBtn-6905cc39.mjs +153 -0
  56. package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
  57. package/components/chunks/MazBtn-74656d5b.mjs +153 -0
  58. package/components/chunks/MazBtn-7706b2da.mjs +158 -0
  59. package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
  60. package/components/chunks/MazBtn-ba27c61d.mjs +153 -0
  61. package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
  62. package/components/chunks/MazCard-bcc36489.mjs +214 -0
  63. package/components/chunks/MazCarousel-6da75122.mjs +107 -0
  64. package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
  65. package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
  66. package/components/chunks/MazDialog-44eda544.mjs +250 -0
  67. package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
  68. package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
  69. package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
  70. package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
  71. package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
  72. package/components/chunks/MazIcon-52a76873.mjs +101 -0
  73. package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
  74. package/components/chunks/MazInput-1ed4f946.mjs +283 -0
  75. package/components/chunks/MazInput-c51881ea.mjs +278 -0
  76. package/components/chunks/MazInput-e1373eaf.mjs +271 -0
  77. package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
  78. package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
  79. package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
  80. package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
  81. package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
  82. package/components/chunks/MazPicker-c85774e5.mjs +1140 -0
  83. package/components/chunks/MazPickerCalendar-f5bbea58.mjs +532 -0
  84. package/components/chunks/MazPickerHeader-31a3619b.mjs +186 -0
  85. package/components/chunks/MazPickerMonthSwitcher-aaa759b9.mjs +97 -0
  86. package/components/chunks/MazPickerShortcuts-d0623e2d.mjs +74 -0
  87. package/components/chunks/MazPickerTime-de9cfc63.mjs +219 -0
  88. package/components/chunks/MazPickerYearSwitcher-746c84fc.mjs +106 -0
  89. package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
  90. package/components/chunks/MazSpinner-054f948c.mjs +39 -0
  91. package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
  92. package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
  93. package/components/chunks/MazSpinner-13403729.mjs +39 -0
  94. package/components/chunks/MazSpinner-44011019.mjs +39 -0
  95. package/components/chunks/MazSpinner-452a1534.mjs +39 -0
  96. package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
  97. package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
  98. package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
  99. package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
  100. package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
  101. package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
  102. package/components/chunks/MazSpinner-85080b43.mjs +39 -0
  103. package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
  104. package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
  105. package/components/chunks/MazSpinner-b065168a.mjs +39 -0
  106. package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
  107. package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
  108. package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
  109. package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
  110. package/components/chunks/MazStepper-39f018f3.mjs +191 -0
  111. package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
  112. package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
  113. package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
  114. package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
  115. package/components/chunks/check-31d7ba2f.mjs +30 -0
  116. package/components/chunks/check-c9b483c0.mjs +30 -0
  117. package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
  118. package/components/chunks/chevron-down-2b60111a.mjs +30 -0
  119. package/components/chunks/chevron-left-39b4621e.mjs +30 -0
  120. package/components/chunks/chevron-right-949a60fa.mjs +30 -0
  121. package/components/chunks/debounce-19c516b6.mjs +11 -0
  122. package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
  123. package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
  124. package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
  125. package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
  126. package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
  127. package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
  128. package/components/chunks/minus-e71140e1.mjs +30 -0
  129. package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
  130. package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
  131. package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
  132. package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
  133. package/components/chunks/plus-c20544c3.mjs +30 -0
  134. package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
  135. package/components/chunks/x-mark-7761acf4.mjs +29 -0
  136. package/modules/chunks/MazBtn-82a868df.mjs +153 -0
  137. package/modules/chunks/MazIcon-169747b4.mjs +96 -0
  138. package/modules/chunks/MazSpinner-3febbfdc.mjs +39 -0
  139. package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
  140. package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
  141. package/modules/chunks/index-d9a25303.mjs +1628 -0
  142. package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
  143. package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
  144. package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
  145. package/modules/index.mjs +45 -44
  146. package/nuxt/index.json +1 -1
  147. package/package.json +6 -2
  148. package/types/modules/index.d.ts +1 -0
  149. package/types/modules/resolvers/index.d.ts +2 -0
  150. package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
  151. package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
  152. package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
  153. package/components/chunks/MazBtn-1daf9063.mjs +0 -184
  154. package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
  155. package/components/chunks/MazBtn-31c6b731.mjs +0 -184
  156. package/components/chunks/MazBtn-48382169.mjs +0 -184
  157. package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
  158. package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
  159. package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
  160. package/components/chunks/MazBtn-b42e3575.mjs +0 -184
  161. package/components/chunks/MazBtn-b56a7278.mjs +0 -184
  162. package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
  163. package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
  164. package/components/chunks/MazBtn-d92908b2.mjs +0 -191
  165. package/components/chunks/MazBtn-f48da79c.mjs +0 -184
  166. package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
  167. package/components/chunks/MazCard-4331dca0.mjs +0 -237
  168. package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
  169. package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
  170. package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
  171. package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
  172. package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
  173. package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
  174. package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
  175. package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
  176. package/components/chunks/MazGallery-b2dc4286.mjs +0 -821
  177. package/components/chunks/MazIcon-b779da0a.mjs +0 -159
  178. package/components/chunks/MazIcon-bda198b4.mjs +0 -165
  179. package/components/chunks/MazInput-713b00d0.mjs +0 -326
  180. package/components/chunks/MazInput-b9386887.mjs +0 -341
  181. package/components/chunks/MazInput-c33627dd.mjs +0 -334
  182. package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
  183. package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
  184. package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
  185. package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
  186. package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
  187. package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
  188. package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
  189. package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
  190. package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
  191. package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
  192. package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
  193. package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
  194. package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
  195. package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
  196. package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
  197. package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
  198. package/components/chunks/MazSpinner-3155378b.mjs +0 -46
  199. package/components/chunks/MazSpinner-339a9006.mjs +0 -46
  200. package/components/chunks/MazSpinner-53979e96.mjs +0 -46
  201. package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
  202. package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
  203. package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
  204. package/components/chunks/MazSpinner-8859d658.mjs +0 -46
  205. package/components/chunks/MazSpinner-8e180605.mjs +0 -52
  206. package/components/chunks/MazSpinner-9950424b.mjs +0 -46
  207. package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
  208. package/components/chunks/MazSpinner-cb491238.mjs +0 -46
  209. package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
  210. package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
  211. package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
  212. package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
  213. package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
  214. package/components/chunks/MazSpinner-f1e69f29.mjs +0 -46
  215. package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
  216. package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
  217. package/components/chunks/MazTransitionExpand-474b00d4.mjs +0 -57
  218. package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
  219. package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
  220. package/components/chunks/check-8da249b1.mjs +0 -32
  221. package/components/chunks/check-f2fcce10.mjs +0 -32
  222. package/components/chunks/chevron-down-a78b9604.mjs +0 -32
  223. package/components/chunks/chevron-left-3365d59b.mjs +0 -32
  224. package/components/chunks/chevron-right-02f9e837.mjs +0 -32
  225. package/components/chunks/debounce-7d66ffa9.mjs +0 -12
  226. package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
  227. package/components/chunks/minus-c9cdee90.mjs +0 -32
  228. package/components/chunks/no-photography-7f2be516.mjs +0 -4
  229. package/components/chunks/plus-b1b0a5a8.mjs +0 -32
  230. package/components/chunks/x-mark-3b05101b.mjs +0 -31
  231. package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
  232. package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
  233. package/modules/chunks/MazIcon-988edef7.mjs +0 -159
  234. package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
  235. package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
  236. package/modules/chunks/index-b1625fc2.mjs +0 -2315
  237. package/modules/chunks/no-photography-7f2be516.mjs +0 -4
  238. package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
@@ -1,237 +0,0 @@
1
- import "../assets/MazCard.css";
2
- import { defineComponent, defineAsyncComponent, useSlots, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, withModifiers, withCtx, renderSlot, unref, createVNode, createCommentVNode, createElementVNode, withDirectives, vShow } from "vue";
3
- const _hoisted_1 = {
4
- key: 0,
5
- class: "m-card__gallery__wrapper"
6
- };
7
- const _hoisted_2 = { class: "maz-min-w-0 maz-flex-1" };
8
- const _hoisted_3 = {
9
- key: 0,
10
- class: "m-card__title"
11
- };
12
- const _hoisted_4 = {
13
- key: 1,
14
- class: "m-card__subtitle"
15
- };
16
- const _hoisted_5 = {
17
- key: 2,
18
- class: "m-card__content"
19
- };
20
- const _hoisted_6 = {
21
- key: 2,
22
- class: "m-card__actions maz-flex maz-p-2"
23
- };
24
- const _sfc_main = /* @__PURE__ */ defineComponent({
25
- __name: "MazCard",
26
- props: {
27
- // Images displayed
28
- images: {
29
- type: Array,
30
- default: void 0
31
- },
32
- // Card variant: Must be `column | row | row-reverse | column-reverse`
33
- orientation: {
34
- type: String,
35
- default: "column",
36
- validator: (value) => {
37
- return ["column", "row", "row-reverse", "column-reverse"].includes(value);
38
- }
39
- },
40
- // Make card a link (footer area excluded)
41
- href: { type: String, default: void 0 },
42
- // Target option of link: Muse be one of `_blank | _self | _parent | _top | framename`
43
- hrefTarget: { type: String, default: "_self" },
44
- // Footer text alignment: `right | left`
45
- footerAlign: { type: String, default: "right" },
46
- // Gallery image width
47
- galleryWidth: { type: [String, Number], default: 200 },
48
- // Gallery image height
49
- galleryHeight: { type: [String, Number], default: 150 },
50
- // Enable "zoom" image on click (can't be used when the card has a link)
51
- zoom: { type: Boolean, default: false },
52
- // Set elevation to card (box-shadow)
53
- elevation: { type: Boolean, default: true },
54
- // Set radius to card (box-shadow)
55
- radius: { type: Boolean, default: true },
56
- // Set border to card
57
- bordered: { type: Boolean, default: false },
58
- // Number of images shown in the gallery
59
- imagesShowCount: { type: Number, default: 3 },
60
- // Remove transparent layer with the remain count (ex: +2)
61
- noRemaining: { type: Boolean, default: true },
62
- // scale animation on hover (only linked cards)
63
- scale: { type: Boolean, default: true },
64
- wrapperClass: { type: String, default: void 0 },
65
- noPadding: { type: Boolean, default: false },
66
- overflowHidden: { type: Boolean, default: false },
67
- collapsable: { type: Boolean, default: false },
68
- collapseOpen: { type: Boolean, default: false }
69
- },
70
- setup(__props) {
71
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-1daf9063.mjs"));
72
- const MazGallery = defineAsyncComponent(() => import("./MazGallery-b2dc4286.mjs"));
73
- const MazTransitionExpand = defineAsyncComponent(() => import("./MazTransitionExpand-474b00d4.mjs"));
74
- const ChevronDownIcon = defineAsyncComponent(() => import("./chevron-down-a78b9604.mjs"));
75
- const props = __props;
76
- const slots = useSlots();
77
- const isOpen = ref(props.collapsable ? props.collapseOpen : true);
78
- watch(
79
- () => props.collapseOpen,
80
- (value) => {
81
- if (props.collapsable)
82
- isOpen.value = value;
83
- }
84
- );
85
- const isColumnVariant = computed(() => ["column", "column-reverse"].includes(props.orientation));
86
- const haveSomeContent = computed(() => {
87
- const supportedSlots = /* @__PURE__ */ new Set(["default", "title", "subtitle", "content"]);
88
- return Object.keys(slots).some((val) => supportedSlots.has(val));
89
- });
90
- const galleryWidthComputed = computed(() => haveSomeContent.value ? props.galleryWidth : "100%");
91
- const footerAlignClass = computed(
92
- () => props.footerAlign === "right" ? "maz-text-right" : "maz-text-left"
93
- );
94
- return (_ctx, _cache) => {
95
- return openBlock(), createElementBlock(
96
- "div",
97
- {
98
- class: normalizeClass(["m-card", [
99
- {
100
- "m-card--linked": __props.href,
101
- "m-card--no-scale": !__props.scale,
102
- "maz-elevation": __props.elevation,
103
- "maz-overflow-hidden": __props.overflowHidden || !isOpen.value,
104
- "maz-rounded": __props.radius,
105
- "maz-border-2 maz-border-solid maz-border-color-lighter": __props.bordered
106
- }
107
- ]])
108
- },
109
- [
110
- _ctx.$slots["header"] || __props.collapsable ? (openBlock(), createBlock(resolveDynamicComponent(__props.collapsable ? "button" : "div"), {
111
- key: 0,
112
- class: normalizeClass(["m-card__header maz-rounded-t-xl maz-border-b-2", [
113
- isOpen.value ? "maz-border-color-lighter" : "maz-border-transparent",
114
- { "--is-collapsable": __props.collapsable },
115
- { "maz-justify-end": !_ctx.$slots["header"] && __props.collapsable },
116
- { "maz-justify-between": _ctx.$slots["header"] }
117
- ]]),
118
- tabindex: "-1",
119
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => __props.collapsable ? isOpen.value = !isOpen.value : void 0, ["stop"]))
120
- }, {
121
- default: withCtx(() => [
122
- renderSlot(_ctx.$slots, "header", {}, void 0, true),
123
- __props.collapsable ? (openBlock(), createBlock(unref(MazBtn), {
124
- key: 0,
125
- color: "transparent",
126
- class: "maz-ml-2 maz-text-sm",
127
- size: "xs",
128
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => isOpen.value = !isOpen.value, ["stop"]))
129
- }, {
130
- default: withCtx(() => [
131
- createVNode(unref(ChevronDownIcon), {
132
- class: normalizeClass([{ "--is-open": isOpen.value }, "m-card__collapse-icon maz-text-xl"])
133
- }, null, 8, ["class"])
134
- ]),
135
- _: 1
136
- /* STABLE */
137
- })) : createCommentVNode("v-if", true)
138
- ]),
139
- _: 3
140
- /* FORWARDED */
141
- }, 8, ["class"])) : createCommentVNode("v-if", true),
142
- (openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "div"), {
143
- class: normalizeClass(["m-card__wrapper", [`m-card__wrapper--${__props.orientation}`, { "m-card__link": __props.href }]]),
144
- href: __props.href,
145
- target: __props.href ? __props.hrefTarget : null
146
- }, {
147
- default: withCtx(() => [
148
- __props.images ? (openBlock(), createElementBlock("div", _hoisted_1, [
149
- createVNode(unref(MazGallery), {
150
- radius: __props.radius,
151
- width: galleryWidthComputed.value,
152
- height: __props.galleryHeight,
153
- "images-shown-count": __props.imagesShowCount,
154
- images: __props.images,
155
- "no-zoom": !__props.zoom,
156
- "no-width": isColumnVariant.value,
157
- "no-height": !isColumnVariant.value && haveSomeContent.value,
158
- "no-remaining": __props.noRemaining,
159
- class: "m-card__gallery maz-flex-1"
160
- }, null, 8, ["radius", "width", "height", "images-shown-count", "images", "no-zoom", "no-width", "no-height", "no-remaining"])
161
- ])) : createCommentVNode("v-if", true),
162
- createElementVNode("div", _hoisted_2, [
163
- (openBlock(), createBlock(resolveDynamicComponent(__props.collapsable ? unref(MazTransitionExpand) : "div"), null, {
164
- default: withCtx(() => [
165
- withDirectives(createElementVNode(
166
- "div",
167
- {
168
- class: normalizeClass([[__props.wrapperClass, { "maz-p-4": !__props.noPadding && !__props.collapsable }], "m-card__content__wrapper"])
169
- },
170
- [
171
- renderSlot(_ctx.$slots, "default", {}, () => [
172
- _ctx.$slots["title"] ? (openBlock(), createElementBlock("div", _hoisted_3, [
173
- renderSlot(_ctx.$slots, "title", {}, void 0, true)
174
- ])) : createCommentVNode("v-if", true),
175
- _ctx.$slots["subtitle"] ? (openBlock(), createElementBlock("div", _hoisted_4, [
176
- renderSlot(_ctx.$slots, "subtitle", {}, void 0, true)
177
- ])) : createCommentVNode("v-if", true),
178
- _ctx.$slots["content"] ? (openBlock(), createElementBlock("div", _hoisted_5, [
179
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
180
- ])) : createCommentVNode("v-if", true)
181
- ], true)
182
- ],
183
- 2
184
- /* CLASS */
185
- ), [
186
- [vShow, isOpen.value]
187
- ])
188
- ]),
189
- _: 3
190
- /* FORWARDED */
191
- }))
192
- ])
193
- ]),
194
- _: 3
195
- /* FORWARDED */
196
- }, 8, ["class", "href", "target"])),
197
- _ctx.$slots["footer"] ? (openBlock(), createElementBlock(
198
- "div",
199
- {
200
- key: 1,
201
- class: normalizeClass(["m-card__footer maz-overflow-x-auto maz-p-3", [
202
- {
203
- "maz-border-t-2 maz-border-color-lighter": isColumnVariant.value && haveSomeContent.value
204
- },
205
- footerAlignClass.value
206
- ]])
207
- },
208
- [
209
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
210
- ],
211
- 2
212
- /* CLASS */
213
- )) : createCommentVNode("v-if", true),
214
- _ctx.$slots["actions"] ? (openBlock(), createElementBlock("div", _hoisted_6, [
215
- createCommentVNode(" Slot above the gallery "),
216
- renderSlot(_ctx.$slots, "actions", {}, void 0, true)
217
- ])) : createCommentVNode("v-if", true)
218
- ],
219
- 2
220
- /* CLASS */
221
- );
222
- };
223
- }
224
- });
225
- const MazCard_vue_vue_type_style_index_0_scoped_4654982c_lang = "";
226
- const _export_sfc = (sfc, props) => {
227
- const target = sfc.__vccOpts || sfc;
228
- for (const [key, val] of props) {
229
- target[key] = val;
230
- }
231
- return target;
232
- };
233
- const MazCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4654982c"]]);
234
- export {
235
- MazCard as M,
236
- _export_sfc as _
237
- };
@@ -1,133 +0,0 @@
1
- import "../assets/MazCarousel.css";
2
- import { defineComponent, defineAsyncComponent, useSlots, ref, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, unref, withCtx, createElementVNode, pushScopeId, popScopeId } from "vue";
3
- const _withScopeId = (n) => (pushScopeId("data-v-e5ae2ebf"), n = n(), popScopeId(), n);
4
- const _hoisted_1 = { class: "m-carousel" };
5
- const _hoisted_2 = { key: 0 };
6
- const _hoisted_3 = {
7
- key: 1,
8
- class: "m-carousel__header__actions"
9
- };
10
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
11
- "div",
12
- { class: "m-carousel__items__spacer" },
13
- null,
14
- -1
15
- /* HOISTED */
16
- ));
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- __name: "MazCarousel",
19
- props: {
20
- noScrollBtn: { type: Boolean, default: false }
21
- },
22
- setup(__props) {
23
- const MazBtn = defineAsyncComponent(() => import("./MazBtn-b56a7278.mjs"));
24
- const ChevronLeftIcon = defineAsyncComponent(() => import("./chevron-left-3365d59b.mjs"));
25
- const ChevronRightIcon = defineAsyncComponent(() => import("./chevron-right-02f9e837.mjs"));
26
- const props = __props;
27
- const slots = useSlots();
28
- const isScrolled = ref(false);
29
- const isScrolledMax = ref(false);
30
- const MazCarouselItems = ref();
31
- const hasHeader = () => {
32
- return !props.noScrollBtn || slots["title"];
33
- };
34
- const hasTitle = () => {
35
- return !!slots["title"];
36
- };
37
- const next = () => {
38
- const items = MazCarouselItems.value;
39
- items == null ? void 0 : items.scrollTo(items.scrollLeft + items.clientWidth, 0);
40
- };
41
- const previous = () => {
42
- const items = MazCarouselItems.value;
43
- items == null ? void 0 : items.scrollTo(items.scrollLeft - items.clientWidth, 0);
44
- };
45
- const setScrollState = (event) => {
46
- const target = event.target;
47
- if (!target)
48
- return;
49
- isScrolled.value = target.scrollLeft >= 20;
50
- const itemsScrollWidth = target.scrollWidth - target.clientWidth;
51
- isScrolledMax.value = target.scrollLeft >= itemsScrollWidth - 20;
52
- };
53
- return (_ctx, _cache) => {
54
- return openBlock(), createElementBlock("div", _hoisted_1, [
55
- hasHeader() ? (openBlock(), createElementBlock(
56
- "div",
57
- {
58
- key: 0,
59
- class: normalizeClass(["m-carousel__header", { "--has-title": hasTitle() }])
60
- },
61
- [
62
- hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_2, [
63
- renderSlot(_ctx.$slots, "title", {}, void 0, true)
64
- ])) : createCommentVNode("v-if", true),
65
- !__props.noScrollBtn ? (openBlock(), createElementBlock("div", _hoisted_3, [
66
- createVNode(unref(MazBtn), {
67
- color: "transparent",
68
- class: normalizeClass(["m-carousel__btn", { "--muted": !isScrolled.value }]),
69
- "no-elevation": "",
70
- fab: "",
71
- onClick: previous
72
- }, {
73
- default: withCtx(() => [
74
- renderSlot(_ctx.$slots, "previous-icon", {}, () => [
75
- createVNode(unref(ChevronLeftIcon), { class: "maz-text-lg" })
76
- ], true)
77
- ]),
78
- _: 3
79
- /* FORWARDED */
80
- }, 8, ["class"]),
81
- createVNode(unref(MazBtn), {
82
- color: "transparent",
83
- class: normalizeClass(["m-carousel__btn", { "--muted": isScrolledMax.value }]),
84
- fab: "",
85
- "no-elevation": "",
86
- onClick: next
87
- }, {
88
- default: withCtx(() => [
89
- renderSlot(_ctx.$slots, "next-icon", {}, () => [
90
- createVNode(unref(ChevronRightIcon), { class: "maz-text-lg" })
91
- ], true)
92
- ]),
93
- _: 3
94
- /* FORWARDED */
95
- }, 8, ["class"])
96
- ])) : createCommentVNode("v-if", true)
97
- ],
98
- 2
99
- /* CLASS */
100
- )) : createCommentVNode("v-if", true),
101
- createElementVNode(
102
- "div",
103
- {
104
- ref_key: "MazCarouselItems",
105
- ref: MazCarouselItems,
106
- class: "m-carousel__items",
107
- onScroll: setScrollState
108
- },
109
- [
110
- createCommentVNode(" Insert your items "),
111
- renderSlot(_ctx.$slots, "default", {}, void 0, true),
112
- _hoisted_4
113
- ],
114
- 544
115
- /* HYDRATE_EVENTS, NEED_PATCH */
116
- )
117
- ]);
118
- };
119
- }
120
- });
121
- const MazCarousel_vue_vue_type_style_index_0_scoped_e5ae2ebf_lang = "";
122
- const _export_sfc = (sfc, props) => {
123
- const target = sfc.__vccOpts || sfc;
124
- for (const [key, val] of props) {
125
- target[key] = val;
126
- }
127
- return target;
128
- };
129
- const MazCarousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5ae2ebf"]]);
130
- export {
131
- MazCarousel as M,
132
- _export_sfc as _
133
- };
@@ -1,153 +0,0 @@
1
- import "../assets/MazCheckbox.css";
2
- import { defineComponent, useCssVars, getCurrentInstance, computed, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, mergeProps, createVNode, renderSlot } from "vue";
3
- import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-48fe2445.mjs";
4
- import CheckIcon from "./check-8da249b1.mjs";
5
- const _hoisted_1 = ["for", "aria-checked"];
6
- const _hoisted_2 = ["id", "checked", "disabled", "name"];
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "MazCheckbox",
9
- props: {
10
- modelValue: {
11
- type: [Boolean, Array],
12
- default: void 0
13
- },
14
- id: { type: String, default: void 0 },
15
- color: {
16
- type: String,
17
- default: "primary"
18
- },
19
- value: { type: [String, Number, Boolean], default: void 0 },
20
- name: { type: String, default: "m-checkbox" },
21
- size: { type: String, default: "md" },
22
- disabled: { type: Boolean, default: false }
23
- },
24
- emits: [
25
- /* emitted when value change */
26
- "update:model-value",
27
- /* emited when value change */
28
- "change"
29
- ],
30
- setup(__props, { emit: __emit }) {
31
- useCssVars((_ctx) => ({
32
- "40cdf8ce": checkIconColor.value,
33
- "25e00d0a": checkboxSize.value,
34
- "5692b564": checkboxSelectedColor.value,
35
- "9df23cde": checkboxBoxShadow.value
36
- }));
37
- const instance = getCurrentInstance();
38
- const props = __props;
39
- const emits = __emit;
40
- const instanceId = useInstanceUniqId({
41
- componentName: "MazCheckbox",
42
- instance,
43
- providedId: props.id
44
- });
45
- const isChecked = computed(
46
- () => typeof props.value !== "boolean" && Array.isArray(props.modelValue) ? props.modelValue.includes(props.value) : typeof props.modelValue === "boolean" ? props.modelValue : false
47
- );
48
- const checkboxSize = computed(() => {
49
- switch (props.size) {
50
- case "xl": {
51
- return "2.25rem";
52
- }
53
- case "lg": {
54
- return "2rem";
55
- }
56
- default: {
57
- return "1.625rem";
58
- }
59
- case "sm": {
60
- return "1.425rem";
61
- }
62
- case "xs": {
63
- return "1.325rem";
64
- }
65
- case "mini": {
66
- return "1.2rem";
67
- }
68
- }
69
- });
70
- const checkIconSize = computed(() => {
71
- switch (props.size) {
72
- case "xl": {
73
- return "maz-text-2xl";
74
- }
75
- case "lg": {
76
- return "maz-text-xl";
77
- }
78
- default: {
79
- return "maz-text-lg";
80
- }
81
- case "sm": {
82
- return "maz-text-base";
83
- }
84
- case "xs": {
85
- return "maz-text-sm";
86
- }
87
- case "mini": {
88
- return "maz-text-xs";
89
- }
90
- }
91
- });
92
- const checkIconColor = computed(() => `var(--maz-color-${props.color}-contrast)`);
93
- const checkboxSelectedColor = computed(() => `var(--maz-color-${props.color})`);
94
- const checkboxBoxShadow = computed(
95
- () => ["black", "transparent"].includes(props.color) ? `var(--maz-color-muted)` : `var(--maz-color-${props.color}-alpha)`
96
- );
97
- function keyboardHandler(event) {
98
- if (["Space"].includes(event.code)) {
99
- event.preventDefault();
100
- emitValue(props.value ?? !props.modelValue);
101
- }
102
- }
103
- function getNewValue(value) {
104
- if (typeof value === "boolean" && (typeof props.modelValue === "boolean" || props.modelValue === void 0 || props.modelValue === null)) {
105
- return props.modelValue ? false : true;
106
- } else if (Array.isArray(props.modelValue) && typeof value !== "boolean") {
107
- return props.modelValue.includes(value) ? props.modelValue.filter((v) => v !== value) : [...props.modelValue, value];
108
- } else {
109
- return [value];
110
- }
111
- }
112
- function emitValue(value) {
113
- const newValue = getNewValue(value);
114
- emits("update:model-value", newValue);
115
- emits("change", newValue);
116
- }
117
- return (_ctx, _cache) => {
118
- return openBlock(), createElementBlock("label", {
119
- for: unref(instanceId),
120
- class: normalizeClass(["m-checkbox", { "--disabled": __props.disabled }]),
121
- tabindex: "0",
122
- role: "checkbox",
123
- "aria-checked": isChecked.value,
124
- onKeydown: keyboardHandler
125
- }, [
126
- createElementVNode("input", mergeProps({
127
- id: unref(instanceId),
128
- checked: isChecked.value
129
- }, _ctx.$attrs, {
130
- tabindex: "-1",
131
- disabled: __props.disabled,
132
- name: __props.name,
133
- type: "checkbox",
134
- onChange: _cache[0] || (_cache[0] = ($event) => {
135
- var _a;
136
- return emitValue(__props.value ?? ((_a = $event == null ? void 0 : $event.target) == null ? void 0 : _a.checked));
137
- })
138
- }), null, 16, _hoisted_2),
139
- createElementVNode("span", null, [
140
- createVNode(unref(CheckIcon), {
141
- class: normalizeClass(["check-icon", checkIconSize.value])
142
- }, null, 8, ["class"])
143
- ]),
144
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
145
- ], 42, _hoisted_1);
146
- };
147
- }
148
- });
149
- const MazCheckbox_vue_vue_type_style_index_0_scoped_141a5e53_lang = "";
150
- const MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-141a5e53"]]);
151
- export {
152
- MazCheckbox as default
153
- };
@@ -1,153 +0,0 @@
1
- import "../assets/MazCheckbox.css";
2
- import { defineComponent, useCssVars, getCurrentInstance, computed, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, mergeProps, createVNode, renderSlot } from "vue";
3
- import { u as useInstanceUniqId, _ as _export_sfc } from "./MazSelect-2e5cd411.mjs";
4
- import CheckIcon from "./check-8da249b1.mjs";
5
- const _hoisted_1 = ["for", "aria-checked"];
6
- const _hoisted_2 = ["id", "checked", "disabled", "name"];
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "MazCheckbox",
9
- props: {
10
- modelValue: {
11
- type: [Boolean, Array],
12
- default: void 0
13
- },
14
- id: { type: String, default: void 0 },
15
- color: {
16
- type: String,
17
- default: "primary"
18
- },
19
- value: { type: [String, Number, Boolean], default: void 0 },
20
- name: { type: String, default: "m-checkbox" },
21
- size: { type: String, default: "md" },
22
- disabled: { type: Boolean, default: false }
23
- },
24
- emits: [
25
- /* emitted when value change */
26
- "update:model-value",
27
- /* emited when value change */
28
- "change"
29
- ],
30
- setup(__props, { emit: __emit }) {
31
- useCssVars((_ctx) => ({
32
- "40cdf8ce": checkIconColor.value,
33
- "25e00d0a": checkboxSize.value,
34
- "5692b564": checkboxSelectedColor.value,
35
- "9df23cde": checkboxBoxShadow.value
36
- }));
37
- const instance = getCurrentInstance();
38
- const props = __props;
39
- const emits = __emit;
40
- const instanceId = useInstanceUniqId({
41
- componentName: "MazCheckbox",
42
- instance,
43
- providedId: props.id
44
- });
45
- const isChecked = computed(
46
- () => typeof props.value !== "boolean" && Array.isArray(props.modelValue) ? props.modelValue.includes(props.value) : typeof props.modelValue === "boolean" ? props.modelValue : false
47
- );
48
- const checkboxSize = computed(() => {
49
- switch (props.size) {
50
- case "xl": {
51
- return "2.25rem";
52
- }
53
- case "lg": {
54
- return "2rem";
55
- }
56
- default: {
57
- return "1.625rem";
58
- }
59
- case "sm": {
60
- return "1.425rem";
61
- }
62
- case "xs": {
63
- return "1.325rem";
64
- }
65
- case "mini": {
66
- return "1.2rem";
67
- }
68
- }
69
- });
70
- const checkIconSize = computed(() => {
71
- switch (props.size) {
72
- case "xl": {
73
- return "maz-text-2xl";
74
- }
75
- case "lg": {
76
- return "maz-text-xl";
77
- }
78
- default: {
79
- return "maz-text-lg";
80
- }
81
- case "sm": {
82
- return "maz-text-base";
83
- }
84
- case "xs": {
85
- return "maz-text-sm";
86
- }
87
- case "mini": {
88
- return "maz-text-xs";
89
- }
90
- }
91
- });
92
- const checkIconColor = computed(() => `var(--maz-color-${props.color}-contrast)`);
93
- const checkboxSelectedColor = computed(() => `var(--maz-color-${props.color})`);
94
- const checkboxBoxShadow = computed(
95
- () => ["black", "transparent"].includes(props.color) ? `var(--maz-color-muted)` : `var(--maz-color-${props.color}-alpha)`
96
- );
97
- function keyboardHandler(event) {
98
- if (["Space"].includes(event.code)) {
99
- event.preventDefault();
100
- emitValue(props.value ?? !props.modelValue);
101
- }
102
- }
103
- function getNewValue(value) {
104
- if (typeof value === "boolean" && (typeof props.modelValue === "boolean" || props.modelValue === void 0 || props.modelValue === null)) {
105
- return props.modelValue ? false : true;
106
- } else if (Array.isArray(props.modelValue) && typeof value !== "boolean") {
107
- return props.modelValue.includes(value) ? props.modelValue.filter((v) => v !== value) : [...props.modelValue, value];
108
- } else {
109
- return [value];
110
- }
111
- }
112
- function emitValue(value) {
113
- const newValue = getNewValue(value);
114
- emits("update:model-value", newValue);
115
- emits("change", newValue);
116
- }
117
- return (_ctx, _cache) => {
118
- return openBlock(), createElementBlock("label", {
119
- for: unref(instanceId),
120
- class: normalizeClass(["m-checkbox", { "--disabled": __props.disabled }]),
121
- tabindex: "0",
122
- role: "checkbox",
123
- "aria-checked": isChecked.value,
124
- onKeydown: keyboardHandler
125
- }, [
126
- createElementVNode("input", mergeProps({
127
- id: unref(instanceId),
128
- checked: isChecked.value
129
- }, _ctx.$attrs, {
130
- tabindex: "-1",
131
- disabled: __props.disabled,
132
- name: __props.name,
133
- type: "checkbox",
134
- onChange: _cache[0] || (_cache[0] = ($event) => {
135
- var _a;
136
- return emitValue(__props.value ?? ((_a = $event == null ? void 0 : $event.target) == null ? void 0 : _a.checked));
137
- })
138
- }), null, 16, _hoisted_2),
139
- createElementVNode("span", null, [
140
- createVNode(unref(CheckIcon), {
141
- class: normalizeClass(["check-icon", checkIconSize.value])
142
- }, null, 8, ["class"])
143
- ]),
144
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
145
- ], 42, _hoisted_1);
146
- };
147
- }
148
- });
149
- const MazCheckbox_vue_vue_type_style_index_0_scoped_141a5e53_lang = "";
150
- const MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-141a5e53"]]);
151
- export {
152
- MazCheckbox as default
153
- };