maz-ui 3.46.1-beta.5 → 3.47.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 (155) hide show
  1. package/components/MazAccordion.mjs +30 -30
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +5 -0
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.mjs +15 -15
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazChecklist.d.ts +79 -0
  9. package/components/MazChecklist.mjs +4 -0
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.d.ts +2 -0
  12. package/components/MazDialogPromise.mjs +1 -1
  13. package/components/MazDrawer.mjs +1 -1
  14. package/components/MazDropdown.mjs +1 -1
  15. package/components/MazInput.mjs +1 -1
  16. package/components/MazInputNumber.mjs +1 -1
  17. package/components/MazInputPrice.mjs +1 -1
  18. package/components/MazInputTags.mjs +1 -1
  19. package/components/MazPagination.mjs +1 -1
  20. package/components/MazPhoneNumberInput.mjs +1 -1
  21. package/components/MazPicker.d.ts +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazPullToRefresh.d.ts +2 -2
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazTable.d.ts +2 -2
  26. package/components/MazTable.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazBtn.css +1 -1
  29. package/components/assets/MazCardSpotlight.css +1 -1
  30. package/components/assets/MazChecklist.css +1 -0
  31. package/components/assets/MazDialog.css +1 -1
  32. package/components/assets/MazDialogPromise.css +1 -1
  33. package/components/assets/MazDropdown.css +1 -1
  34. package/components/assets/MazInputNumber.css +1 -1
  35. package/components/assets/MazInputTags.css +1 -1
  36. package/components/assets/MazPagination.css +1 -1
  37. package/components/assets/MazPicker.css +1 -1
  38. package/components/assets/MazSelect.css +1 -1
  39. package/components/assets/MazTable.css +1 -1
  40. package/components/assets/MazTabsBar.css +1 -1
  41. package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-BvdiOa8P.mjs} +1 -1
  42. package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-4g56EBmg.mjs} +20 -18
  43. package/components/chunks/MazBtn-4jMQE2G-.mjs +118 -0
  44. package/components/chunks/MazBtn-B3i4Ypas.mjs +118 -0
  45. package/components/chunks/MazBtn-B7rKmEGw.mjs +118 -0
  46. package/components/chunks/MazBtn-BAxR_dt3.mjs +118 -0
  47. package/components/chunks/MazBtn-BF48_wJx.mjs +118 -0
  48. package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BRdMg4tc.mjs} +21 -19
  49. package/components/chunks/MazBtn-BvirhKh3.mjs +123 -0
  50. package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-CEOWwReA.mjs} +21 -19
  51. package/components/chunks/MazBtn-CGYoHDXm.mjs +118 -0
  52. package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-CVDDOeLF.mjs} +40 -38
  53. package/components/chunks/MazBtn-D6T9wOxO.mjs +118 -0
  54. package/components/chunks/MazBtn-DYMxHlYa.mjs +118 -0
  55. package/components/chunks/MazBtn-D_IQO-P2.mjs +118 -0
  56. package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-StYuQv11.mjs} +1 -1
  57. package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DEO7Tz8F.mjs} +1 -1
  58. package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-CtiUQoBe.mjs} +1 -1
  59. package/components/chunks/MazCheckbox-D9RW0OPf.mjs +146 -0
  60. package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-TiwCiE2s.mjs} +1 -1
  61. package/components/chunks/MazChecklist-B9bw1Mn4.mjs +484 -0
  62. package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-C3urFx7y.mjs} +50 -54
  63. package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-BuOWwo6n.mjs} +40 -44
  64. package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-DLNvXEka.mjs} +2 -2
  65. package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
  66. package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-DyrYf9Sl.mjs} +1 -1
  67. package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-BZ2U145p.mjs} +1 -1
  68. package/components/chunks/MazInput-Bq_SbBRE.mjs +290 -0
  69. package/components/chunks/MazInput-_rEW9XWJ.mjs +291 -0
  70. package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-G8880Neu.mjs} +173 -171
  71. package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DROLM9PX.mjs} +1 -1
  72. package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-BRmcZBo4.mjs} +170 -168
  73. package/components/chunks/MazLoadingBar-DHFjKEEm.mjs +32 -0
  74. package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-6MyYnTer.mjs} +132 -130
  75. package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-r6OjPeRI.mjs} +3 -3
  76. package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-B28fQccE.mjs} +536 -534
  77. package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-DrtbXCca.mjs} +1 -1
  78. package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-TbhHaKoJ.mjs} +1 -1
  79. package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-KwUBj6Cb.mjs} +1 -1
  80. package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-BvC9QQ6M.mjs} +2 -2
  81. package/components/chunks/MazSelect-DyQC9j4n.mjs +568 -0
  82. package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-3vO8e4FF.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-B0291afs.mjs} +1 -1
  84. package/components/chunks/MazSpinner-B0aGd8rG.mjs +37 -0
  85. package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-BziSiJFV.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CKX-8iim.mjs +37 -0
  87. package/components/chunks/MazSpinner-CQ2XrZIS.mjs +37 -0
  88. package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-CRW667yE.mjs} +1 -1
  89. package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-D-7IOf2L.mjs} +1 -1
  90. package/components/chunks/MazSpinner-D0t4IJyq.mjs +37 -0
  91. package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-D5hiFgo4.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DkXUB0w5.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-DyVjCwmM.mjs} +1 -1
  94. package/components/chunks/MazSpinner-HZYglQFY.mjs +37 -0
  95. package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-JpzVmSvW.mjs} +1 -1
  96. package/components/chunks/MazSpinner-Nu5h2A6E.mjs +37 -0
  97. package/components/chunks/MazSpinner-S6Bx7B15.mjs +37 -0
  98. package/components/chunks/MazSpinner-wR0F3mAY.mjs +37 -0
  99. package/components/chunks/MazTable-DozpABdn.mjs +692 -0
  100. package/components/chunks/MazTableCell-DPgvJ7vY.mjs +23 -0
  101. package/components/chunks/MazTableRow-CCcjwAV1.mjs +30 -0
  102. package/components/chunks/MazTableTitle-Df7F9Cjh.mjs +23 -0
  103. package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand--vHzXjx7.mjs} +1 -1
  104. package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
  105. package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
  106. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
  107. package/components/index.d.ts +1 -0
  108. package/components/index.mjs +1 -0
  109. package/css/main.css +1 -1
  110. package/modules/assets/MazBtn.css +1 -1
  111. package/modules/assets/index.css +1 -1
  112. package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-BVxI1WwF.mjs} +21 -19
  113. package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DrB5FzZN.cjs} +3 -3
  114. package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BMJqOZnG.cjs} +1 -1
  115. package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-b8WRy8OV.mjs} +1 -1
  116. package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-6H0uaGkV.cjs} +1 -1
  117. package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-B-Tki1aV.mjs} +1 -1
  118. package/modules/chunks/{index-aKGx1nxl.mjs → index-Ch4k74ro.mjs} +1150 -954
  119. package/modules/chunks/index-G8fhXnFU.cjs +149 -0
  120. package/modules/index.cjs +1 -1
  121. package/modules/index.mjs +37 -35
  122. package/nuxt/index.d.mts +20 -20
  123. package/nuxt/index.d.ts +20 -20
  124. package/nuxt/index.json +1 -1
  125. package/nuxt/index.mjs +26 -5
  126. package/package.json +1 -1
  127. package/resolvers/index.cjs +1 -1
  128. package/resolvers/index.mjs +3 -1
  129. package/types/components/MazBtn.vue.d.ts +5 -0
  130. package/types/components/MazChecklist.vue.d.ts +79 -0
  131. package/types/components/MazDialogPromise.vue.d.ts +2 -0
  132. package/types/components/MazPicker.vue.d.ts +1 -1
  133. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  134. package/types/components/MazTable.vue.d.ts +2 -2
  135. package/types/components/index.d.ts +1 -0
  136. package/types/modules/composables/index.d.ts +1 -0
  137. package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
  138. package/types/modules/helpers/normalize-string.d.ts +1 -2
  139. package/components/chunks/MazBtn-CVB5qDjV.mjs +0 -121
  140. package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
  141. package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
  142. package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
  143. package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
  144. package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
  145. package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
  146. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
  147. package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
  148. package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
  149. package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
  150. package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
  151. package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
  152. package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
  153. package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
  154. package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
  155. package/modules/chunks/index-CE2CsQsx.cjs +0 -149
@@ -0,0 +1,118 @@
1
+ import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
2
+ import { _ as D } from "./MazChecklist-B9bw1Mn4.mjs";
3
+ import '../assets/MazBtn.css';const L = {
4
+ key: 2,
5
+ class: "m-btn-loader-container"
6
+ }, N = /* @__PURE__ */ M({
7
+ __name: "MazBtn",
8
+ props: {
9
+ variant: { default: "button" },
10
+ size: { default: "md" },
11
+ color: { default: "primary" },
12
+ type: { default: "button" },
13
+ rounded: { type: Boolean },
14
+ roundedSize: { default: "lg" },
15
+ noRounded: { type: Boolean },
16
+ outline: { type: Boolean },
17
+ pastel: { type: Boolean },
18
+ block: { type: Boolean },
19
+ noUnderline: { type: Boolean },
20
+ loading: { type: Boolean },
21
+ disabled: { type: Boolean },
22
+ fab: { type: Boolean },
23
+ icon: { type: [String, Function, Object], default: void 0 },
24
+ leftIcon: { type: [String, Function, Object], default: void 0 },
25
+ rightIcon: { type: [String, Function, Object], default: void 0 },
26
+ noPadding: { type: Boolean },
27
+ noElevation: { type: Boolean },
28
+ justify: { default: "center" }
29
+ },
30
+ setup(b) {
31
+ const n = b, z = v(() => import("./MazSpinner-CQ2XrZIS.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
32
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
33
+ ), p = o(
34
+ () => (n.loading || n.disabled) && y.value === "button"
35
+ ), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
36
+ return (e, P) => (l(), a(r(y.value), {
37
+ disabled: p.value || void 0,
38
+ class: s(["m-btn", [
39
+ `--${e.size}`,
40
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
41
+ j.value,
42
+ I.value,
43
+ k.value,
44
+ F.value,
45
+ {
46
+ "--block": e.block,
47
+ "--no-underline": e.noUnderline,
48
+ "--fab": e.fab,
49
+ "--loading": e.loading,
50
+ "--disabled": p.value,
51
+ "--icon": S.value,
52
+ "--rounded": e.rounded,
53
+ "--no-rounded": e.noRounded,
54
+ "--no-padding": e.noPadding,
55
+ "--no-elevation": e.noElevation
56
+ }
57
+ ]]),
58
+ type: T.value
59
+ }, {
60
+ default: O(() => [
61
+ t(`
62
+ @slot left-icon - The icon to display on the left of the button
63
+ `),
64
+ u(e.$slots, "left-icon", {}, () => [
65
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
66
+ key: 0,
67
+ name: e.leftIcon,
68
+ class: s([i.value])
69
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
70
+ key: 1,
71
+ class: s([i.value])
72
+ }, null, 8, ["class"])) : t("v-if", !0)
73
+ ], !0),
74
+ t(`
75
+ @slot icon - The icon to display on the fab button
76
+ `),
77
+ $.value ? u(e.$slots, "icon", { key: 0 }, () => [
78
+ typeof e.icon == "string" ? (l(), a(d(c), {
79
+ key: 0,
80
+ name: e.icon,
81
+ class: s([i.value])
82
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
83
+ key: 1,
84
+ class: s([i.value])
85
+ }, null, 8, ["class"])) : t("v-if", !0)
86
+ ], !0) : t("v-if", !0),
87
+ t(`
88
+ @slot default - The content of the button
89
+ `),
90
+ u(e.$slots, "default", {}, void 0, !0),
91
+ t(`
92
+ @slot left-icon - The icon to display on the left of the button
93
+ `),
94
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
95
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
96
+ key: 0,
97
+ name: e.rightIcon,
98
+ class: s([i.value])
99
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
100
+ key: 1,
101
+ class: s([i.value])
102
+ }, null, 8, ["class"])) : t("v-if", !0)
103
+ ], !0) : t("v-if", !0),
104
+ B.value ? (l(), R("div", L, [
105
+ A(d(z), {
106
+ size: "2em",
107
+ color: e.color
108
+ }, null, 8, ["color"])
109
+ ])) : t("v-if", !0)
110
+ ]),
111
+ _: 3
112
+ /* FORWARDED */
113
+ }, 8, ["disabled", "class", "type"]));
114
+ }
115
+ }), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-d3a1ed01"]]);
116
+ export {
117
+ q as default
118
+ };
@@ -0,0 +1,118 @@
1
+ import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
2
+ import { _ as D } from "./MazSelect-BvC9QQ6M.mjs";
3
+ import '../assets/MazBtn.css';const L = {
4
+ key: 2,
5
+ class: "m-btn-loader-container"
6
+ }, N = /* @__PURE__ */ M({
7
+ __name: "MazBtn",
8
+ props: {
9
+ variant: { default: "button" },
10
+ size: { default: "md" },
11
+ color: { default: "primary" },
12
+ type: { default: "button" },
13
+ rounded: { type: Boolean },
14
+ roundedSize: { default: "lg" },
15
+ noRounded: { type: Boolean },
16
+ outline: { type: Boolean },
17
+ pastel: { type: Boolean },
18
+ block: { type: Boolean },
19
+ noUnderline: { type: Boolean },
20
+ loading: { type: Boolean },
21
+ disabled: { type: Boolean },
22
+ fab: { type: Boolean },
23
+ icon: { type: [String, Function, Object], default: void 0 },
24
+ leftIcon: { type: [String, Function, Object], default: void 0 },
25
+ rightIcon: { type: [String, Function, Object], default: void 0 },
26
+ noPadding: { type: Boolean },
27
+ noElevation: { type: Boolean },
28
+ justify: { default: "center" }
29
+ },
30
+ setup(b) {
31
+ const n = b, z = v(() => import("./MazSpinner-Nu5h2A6E.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
32
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
33
+ ), p = o(
34
+ () => (n.loading || n.disabled) && y.value === "button"
35
+ ), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
36
+ return (e, P) => (l(), a(r(y.value), {
37
+ disabled: p.value || void 0,
38
+ class: s(["m-btn", [
39
+ `--${e.size}`,
40
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
41
+ j.value,
42
+ I.value,
43
+ k.value,
44
+ F.value,
45
+ {
46
+ "--block": e.block,
47
+ "--no-underline": e.noUnderline,
48
+ "--fab": e.fab,
49
+ "--loading": e.loading,
50
+ "--disabled": p.value,
51
+ "--icon": S.value,
52
+ "--rounded": e.rounded,
53
+ "--no-rounded": e.noRounded,
54
+ "--no-padding": e.noPadding,
55
+ "--no-elevation": e.noElevation
56
+ }
57
+ ]]),
58
+ type: T.value
59
+ }, {
60
+ default: O(() => [
61
+ t(`
62
+ @slot left-icon - The icon to display on the left of the button
63
+ `),
64
+ u(e.$slots, "left-icon", {}, () => [
65
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
66
+ key: 0,
67
+ name: e.leftIcon,
68
+ class: s([i.value])
69
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
70
+ key: 1,
71
+ class: s([i.value])
72
+ }, null, 8, ["class"])) : t("v-if", !0)
73
+ ], !0),
74
+ t(`
75
+ @slot icon - The icon to display on the fab button
76
+ `),
77
+ $.value ? u(e.$slots, "icon", { key: 0 }, () => [
78
+ typeof e.icon == "string" ? (l(), a(d(c), {
79
+ key: 0,
80
+ name: e.icon,
81
+ class: s([i.value])
82
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
83
+ key: 1,
84
+ class: s([i.value])
85
+ }, null, 8, ["class"])) : t("v-if", !0)
86
+ ], !0) : t("v-if", !0),
87
+ t(`
88
+ @slot default - The content of the button
89
+ `),
90
+ u(e.$slots, "default", {}, void 0, !0),
91
+ t(`
92
+ @slot left-icon - The icon to display on the left of the button
93
+ `),
94
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
95
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
96
+ key: 0,
97
+ name: e.rightIcon,
98
+ class: s([i.value])
99
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
100
+ key: 1,
101
+ class: s([i.value])
102
+ }, null, 8, ["class"])) : t("v-if", !0)
103
+ ], !0) : t("v-if", !0),
104
+ B.value ? (l(), R("div", L, [
105
+ A(d(z), {
106
+ size: "2em",
107
+ color: e.color
108
+ }, null, 8, ["color"])
109
+ ])) : t("v-if", !0)
110
+ ]),
111
+ _: 3
112
+ /* FORWARDED */
113
+ }, 8, ["disabled", "class", "type"]));
114
+ }
115
+ }), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-d3a1ed01"]]);
116
+ export {
117
+ q as default
118
+ };
@@ -0,0 +1,118 @@
1
+ import { defineComponent as M, defineAsyncComponent as v, useAttrs as w, useSlots as E, computed as o, openBlock as l, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as O, createCommentVNode as t, renderSlot as u, unref as d, createElementBlock as R, createVNode as A } from "vue";
2
+ import { _ as D } from "./MazInput-BZ2U145p.mjs";
3
+ import '../assets/MazBtn.css';const L = {
4
+ key: 2,
5
+ class: "m-btn-loader-container"
6
+ }, N = /* @__PURE__ */ M({
7
+ __name: "MazBtn",
8
+ props: {
9
+ variant: { default: "button" },
10
+ size: { default: "md" },
11
+ color: { default: "primary" },
12
+ type: { default: "button" },
13
+ rounded: { type: Boolean },
14
+ roundedSize: { default: "lg" },
15
+ noRounded: { type: Boolean },
16
+ outline: { type: Boolean },
17
+ pastel: { type: Boolean },
18
+ block: { type: Boolean },
19
+ noUnderline: { type: Boolean },
20
+ loading: { type: Boolean },
21
+ disabled: { type: Boolean },
22
+ fab: { type: Boolean },
23
+ icon: { type: [String, Function, Object], default: void 0 },
24
+ leftIcon: { type: [String, Function, Object], default: void 0 },
25
+ rightIcon: { type: [String, Function, Object], default: void 0 },
26
+ noPadding: { type: Boolean },
27
+ noElevation: { type: Boolean },
28
+ justify: { default: "center" }
29
+ },
30
+ setup(b) {
31
+ const n = b, z = v(() => import("./MazSpinner-JpzVmSvW.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = w(), f = E(), y = o(() => h ? "a" : g ? "router-link" : "button"), j = o(
32
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
33
+ ), p = o(
34
+ () => (n.loading || n.disabled) && y.value === "button"
35
+ ), I = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), m = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || m.value), $ = o(() => n.icon || !!f.icon), T = o(() => y.value === "button" ? n.type : void 0), i = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), F = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
36
+ return (e, P) => (l(), a(r(y.value), {
37
+ disabled: p.value || void 0,
38
+ class: s(["m-btn", [
39
+ `--${e.size}`,
40
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
41
+ j.value,
42
+ I.value,
43
+ k.value,
44
+ F.value,
45
+ {
46
+ "--block": e.block,
47
+ "--no-underline": e.noUnderline,
48
+ "--fab": e.fab,
49
+ "--loading": e.loading,
50
+ "--disabled": p.value,
51
+ "--icon": S.value,
52
+ "--rounded": e.rounded,
53
+ "--no-rounded": e.noRounded,
54
+ "--no-padding": e.noPadding,
55
+ "--no-elevation": e.noElevation
56
+ }
57
+ ]]),
58
+ type: T.value
59
+ }, {
60
+ default: O(() => [
61
+ t(`
62
+ @slot left-icon - The icon to display on the left of the button
63
+ `),
64
+ u(e.$slots, "left-icon", {}, () => [
65
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
66
+ key: 0,
67
+ name: e.leftIcon,
68
+ class: s([i.value])
69
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
70
+ key: 1,
71
+ class: s([i.value])
72
+ }, null, 8, ["class"])) : t("v-if", !0)
73
+ ], !0),
74
+ t(`
75
+ @slot icon - The icon to display on the fab button
76
+ `),
77
+ $.value ? u(e.$slots, "icon", { key: 0 }, () => [
78
+ typeof e.icon == "string" ? (l(), a(d(c), {
79
+ key: 0,
80
+ name: e.icon,
81
+ class: s([i.value])
82
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
83
+ key: 1,
84
+ class: s([i.value])
85
+ }, null, 8, ["class"])) : t("v-if", !0)
86
+ ], !0) : t("v-if", !0),
87
+ t(`
88
+ @slot default - The content of the button
89
+ `),
90
+ u(e.$slots, "default", {}, void 0, !0),
91
+ t(`
92
+ @slot left-icon - The icon to display on the left of the button
93
+ `),
94
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
95
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
96
+ key: 0,
97
+ name: e.rightIcon,
98
+ class: s([i.value])
99
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
100
+ key: 1,
101
+ class: s([i.value])
102
+ }, null, 8, ["class"])) : t("v-if", !0)
103
+ ], !0) : t("v-if", !0),
104
+ B.value ? (l(), R("div", L, [
105
+ A(d(z), {
106
+ size: "2em",
107
+ color: e.color
108
+ }, null, 8, ["color"])
109
+ ])) : t("v-if", !0)
110
+ ]),
111
+ _: 3
112
+ /* FORWARDED */
113
+ }, 8, ["disabled", "class", "type"]));
114
+ }
115
+ }), q = /* @__PURE__ */ D(N, [["__scopeId", "data-v-d3a1ed01"]]);
116
+ export {
117
+ q as default
118
+ };
@@ -42,7 +42,7 @@ import '../assets/MazCard.css';const R = {
42
42
  block: { type: Boolean }
43
43
  },
44
44
  setup(m) {
45
- const o = m, v = c(() => import("./MazBtn-e3abHT2L.mjs")), g = c(() => import("./MazGallery-C9secrXc.mjs")), z = c(() => import("./MazTransitionExpand-BoTQeNNf.mjs")), S = c(() => import("./chevron-down-BkvtON3b.mjs")), M = H(), t = r(() => o.collapsible || o.collapsable), s = N(t.value ? o.collapseOpen : !0), k = r(() => o.href || o.to);
45
+ const o = m, v = c(() => import("./MazBtn-CEOWwReA.mjs")), g = c(() => import("./MazGallery-DLNvXEka.mjs")), z = c(() => import("./MazTransitionExpand--vHzXjx7.mjs")), S = c(() => import("./chevron-down-BkvtON3b.mjs")), M = H(), t = r(() => o.collapsible || o.collapsable), s = N(t.value ? o.collapseOpen : !0), k = r(() => o.href || o.to);
46
46
  T(
47
47
  () => o.collapseOpen,
48
48
  (e) => {
@@ -11,7 +11,7 @@ import '../assets/MazCarousel.css';const W = { key: 0 }, x = {
11
11
  hideScrollbar: { type: Boolean }
12
12
  },
13
13
  setup(l) {
14
- const d = l, o = _(() => import("./MazBtn-DIE2eM-g.mjs")), f = _(() => import("./chevron-left-BqVOLRdC.mjs")), m = _(() => import("./chevron-right-CbjzEeHV.mjs")), h = N(), b = p(!1), S = p(!1), v = p();
14
+ const d = l, o = _(() => import("./MazBtn-B7rKmEGw.mjs")), f = _(() => import("./chevron-left-BqVOLRdC.mjs")), m = _(() => import("./chevron-right-CbjzEeHV.mjs")), h = N(), b = p(!1), S = p(!1), v = p();
15
15
  function y() {
16
16
  return !d.noScrollBtn || h.title;
17
17
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
2
- import { u as F, _ as H } from "./MazSelect-DPTuyc26.mjs";
2
+ import { u as F, _ as H } from "./MazSelect-BvC9QQ6M.mjs";
3
3
  import K from "./check-C9Q_W85g.mjs";
4
4
  import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
5
5
  inheritAttrs: !1,
@@ -0,0 +1,146 @@
1
+ import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
2
+ import { u as F } from "./useInstanceUniqId-DW9jO1Sz.mjs";
3
+ import H from "./check-C9Q_W85g.mjs";
4
+ import { _ as K } from "./MazTable-DozpABdn.mjs";
5
+ import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
6
+ inheritAttrs: !1,
7
+ __name: "MazCheckbox",
8
+ props: {
9
+ style: { default: void 0 },
10
+ class: { default: void 0 },
11
+ modelValue: { default: void 0 },
12
+ id: { default: void 0 },
13
+ color: { default: "primary" },
14
+ value: { type: [String, Number, Boolean], default: void 0 },
15
+ name: { default: "m-checkbox" },
16
+ size: { default: "md" },
17
+ label: { default: void 0 },
18
+ disabled: { type: Boolean, default: !1 },
19
+ error: { type: Boolean },
20
+ success: { type: Boolean },
21
+ warning: { type: Boolean },
22
+ hint: {}
23
+ },
24
+ emits: ["update:model-value", "change", "blur", "focus"],
25
+ setup(v, { emit: k }) {
26
+ N((e) => ({
27
+ b7df6194: V.value,
28
+ "89a0ef50": y.value,
29
+ "199d7f11": g.value,
30
+ b0e1d658: x.value
31
+ }));
32
+ const o = v, l = k, d = F({
33
+ componentName: "MazCheckbox",
34
+ providedId: o.id
35
+ }), i = r(
36
+ () => typeof o.value != "boolean" && Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : typeof o.modelValue == "boolean" ? o.modelValue : !1
37
+ ), y = r(() => {
38
+ switch (o.size) {
39
+ case "xl":
40
+ return "2rem";
41
+ case "lg":
42
+ return "1.75rem";
43
+ case "sm":
44
+ return "1.25rem";
45
+ case "xs":
46
+ return "1rem";
47
+ case "mini":
48
+ return "0.75rem";
49
+ default:
50
+ return "1.5rem";
51
+ }
52
+ }), z = r(() => {
53
+ switch (o.size) {
54
+ case "xl":
55
+ return "maz-text-2xl";
56
+ case "lg":
57
+ return "maz-text-xl";
58
+ case "sm":
59
+ return "maz-text-base";
60
+ case "xs":
61
+ return "maz-text-sm";
62
+ case "mini":
63
+ return "maz-text-xs";
64
+ default:
65
+ return "maz-text-lg";
66
+ }
67
+ }), V = r(() => o.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${o.color}-contrast)`), g = r(() => o.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${o.color})`), x = r(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
68
+ function w(e) {
69
+ ["Space"].includes(e.code) && (e.preventDefault(), m(o.value ?? !o.modelValue));
70
+ }
71
+ function C(e) {
72
+ return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
73
+ }
74
+ function m(e) {
75
+ const a = C(e);
76
+ l("update:model-value", a), l("change", a);
77
+ }
78
+ const t = E();
79
+ function B(e) {
80
+ var a;
81
+ (a = t.value) == null || a.dispatchEvent(new Event("blur")), l("blur", e);
82
+ }
83
+ function S(e) {
84
+ var a;
85
+ (a = t.value) == null || a.dispatchEvent(new Event("focus")), l("focus", e);
86
+ }
87
+ return (e, a) => (p(), h("label", {
88
+ for: s(d),
89
+ class: c(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
90
+ tabindex: "0",
91
+ style: A(e.style),
92
+ role: "checkbox",
93
+ "aria-checked": i.value,
94
+ onKeydown: w,
95
+ onBlur: B,
96
+ onFocus: S
97
+ }, [
98
+ u("input", _({
99
+ id: s(d),
100
+ ref_key: "inputRef",
101
+ ref: t,
102
+ checked: i.value
103
+ }, e.$attrs, {
104
+ tabindex: "-1",
105
+ disabled: e.disabled,
106
+ name: e.name,
107
+ type: "checkbox",
108
+ onChange: a[0] || (a[0] = (n) => {
109
+ var f;
110
+ return m(e.value ?? ((f = n == null ? void 0 : n.target) == null ? void 0 : f.checked));
111
+ })
112
+ }), null, 16, T),
113
+ u("span", null, [
114
+ M(s(H), {
115
+ class: c(["check-icon", z.value])
116
+ }, null, 8, ["class"])
117
+ ]),
118
+ u("div", U, [
119
+ D(e.$slots, "default", { value: e.value }, () => [
120
+ R(
121
+ b(e.label),
122
+ 1
123
+ /* TEXT */
124
+ )
125
+ ], !0),
126
+ e.hint ? (p(), h(
127
+ "span",
128
+ {
129
+ key: 0,
130
+ class: c(["m-checkbox__hint", {
131
+ "--error": e.error,
132
+ "--success": e.success,
133
+ "--warning": e.warning
134
+ }])
135
+ },
136
+ b(e.hint),
137
+ 3
138
+ /* TEXT, CLASS */
139
+ )) : q("v-if", !0)
140
+ ])
141
+ ], 46, P));
142
+ }
143
+ }), O = /* @__PURE__ */ K($, [["__scopeId", "data-v-178c6a46"]]);
144
+ export {
145
+ O as default
146
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
2
- import { u as F, _ as H } from "./MazPhoneNumberInput-C3GdtqN2.mjs";
2
+ import { u as F, _ as H } from "./MazPhoneNumberInput-r6OjPeRI.mjs";
3
3
  import K from "./check-C9Q_W85g.mjs";
4
4
  import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
5
5
  inheritAttrs: !1,