maz-ui 3.46.1-beta.4 → 3.46.1-beta.5

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 (138) hide show
  1. package/components/MazAccordion.d.ts +1 -1
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +0 -4
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.d.ts +1 -1
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazCheckbox.mjs +61 -61
  9. package/components/MazDialog.mjs +1 -1
  10. package/components/MazDialogPromise.mjs +1 -1
  11. package/components/MazDrawer.mjs +1 -1
  12. package/components/MazDropdown.d.ts +4 -0
  13. package/components/MazDropdown.mjs +98 -93
  14. package/components/MazIcon.mjs +55 -67
  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/MazLink.mjs +1 -1
  20. package/components/MazPagination.mjs +1 -1
  21. package/components/MazPhoneNumberInput.mjs +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazSelect.mjs +1 -1
  24. package/components/MazStepper.mjs +1 -1
  25. package/components/MazSwitch.mjs +33 -33
  26. package/components/MazTable.d.ts +32 -3
  27. package/components/MazTable.mjs +1 -1
  28. package/components/assets/MazBtn.css +1 -1
  29. package/components/assets/MazCheckbox.css +1 -1
  30. package/components/assets/MazDropdown.css +1 -1
  31. package/components/assets/MazInputNumber.css +1 -1
  32. package/components/assets/MazInputTags.css +1 -1
  33. package/components/assets/MazPagination.css +1 -1
  34. package/components/assets/MazPicker.css +1 -1
  35. package/components/assets/MazSwitch.css +1 -1
  36. package/components/assets/MazTable.css +1 -1
  37. package/components/chunks/{MazBottomSheet-DQTlEDlz.mjs → MazBottomSheet-s9lLaK1M.mjs} +1 -1
  38. package/components/chunks/MazBtn-BMmuCciQ.mjs +116 -0
  39. package/components/chunks/MazBtn-BXdap6JU.mjs +116 -0
  40. package/components/chunks/MazBtn-CHABo63Y.mjs +116 -0
  41. package/components/chunks/MazBtn-CVB5qDjV.mjs +121 -0
  42. package/components/chunks/MazBtn-CXxOU7fp.mjs +116 -0
  43. package/components/chunks/MazBtn-CZSXnr3w.mjs +116 -0
  44. package/components/chunks/MazBtn-CwYBz6QO.mjs +116 -0
  45. package/components/chunks/MazBtn-DIE2eM-g.mjs +116 -0
  46. package/components/chunks/MazBtn-DKD-ZMaF.mjs +116 -0
  47. package/components/chunks/MazBtn-DarjZUV4.mjs +124 -0
  48. package/components/chunks/MazBtn-OKT5-Y4s.mjs +116 -0
  49. package/components/chunks/MazBtn-e3abHT2L.mjs +116 -0
  50. package/components/chunks/{MazCard-BapktHxt.mjs → MazCard-BaJ5Ee3I.mjs} +1 -1
  51. package/components/chunks/{MazCarousel-DYdWCLk7.mjs → MazCarousel-Bb4fpVqN.mjs} +1 -1
  52. package/components/chunks/{MazCheckbox-DOYkVPMK.mjs → MazCheckbox-8n6NtRBb.mjs} +32 -32
  53. package/components/chunks/{MazCheckbox-m1322Y67.mjs → MazCheckbox-C4diNXJq.mjs} +32 -32
  54. package/components/chunks/{MazDialog-DbEp5ZrT.mjs → MazDialog-Bv2PzQBz.mjs} +1 -1
  55. package/components/chunks/{MazDialogPromise-B2WdAwbv.mjs → MazDialogPromise-BZLP9sXZ.mjs} +2 -2
  56. package/components/chunks/{MazExpandAnimation-BFyvL-vh.mjs → MazExpandAnimation-Bkw_wFTi.mjs} +1 -1
  57. package/components/chunks/{MazGallery-HtChfMa_.mjs → MazGallery-C9secrXc.mjs} +2 -2
  58. package/components/chunks/MazIcon-BaJm2s8_.mjs +101 -0
  59. package/components/chunks/MazIcon-BbvBov5G.mjs +106 -0
  60. package/components/chunks/MazIcon-CudB1a0D.mjs +101 -0
  61. package/components/chunks/{MazInput-fbdOvhry.mjs → MazInput-B3RzuuNv.mjs} +1 -1
  62. package/components/chunks/{MazInputNumber-mu9wEfTT.mjs → MazInputNumber-mLgq5obR.mjs} +198 -232
  63. package/components/chunks/{MazInputPrice-Y6lalrWq.mjs → MazInputPrice-DhYRBqTS.mjs} +1 -1
  64. package/components/chunks/{MazInputTags-DVYW4SbE.mjs → MazInputTags-DinwbXaD.mjs} +201 -238
  65. package/components/chunks/{MazLink-HJI1YmdA.mjs → MazLink-Dl9ePCGm.mjs} +1 -1
  66. package/components/chunks/MazPagination-Cqnr19iI.mjs +360 -0
  67. package/components/chunks/{MazPhoneNumberInput-BbeofPj5.mjs → MazPhoneNumberInput-C3GdtqN2.mjs} +3 -3
  68. package/components/chunks/{MazPicker-BPH4sy2Q.mjs → MazPicker-DA92HhwS.mjs} +541 -575
  69. package/components/chunks/{MazPickerMonthSwitcher-Ca4BqrF-.mjs → MazPickerMonthSwitcher-CPWkw0Hq.mjs} +1 -1
  70. package/components/chunks/{MazPickerShortcuts-Bs2RMdC_.mjs → MazPickerShortcuts-Fwcoqg5M.mjs} +1 -1
  71. package/components/chunks/{MazPickerYearSwitcher-Bg_0ecwk.mjs → MazPickerYearSwitcher-DfSXPGfT.mjs} +1 -1
  72. package/components/chunks/{MazSelect-CUo_OXDp.mjs → MazSelect-DPTuyc26.mjs} +2 -2
  73. package/components/chunks/MazSpinner-B-mc1FWS.mjs +37 -0
  74. package/components/chunks/{MazSpinner-Cl4Yy1dv.mjs → MazSpinner-BCHAzmqS.mjs} +1 -1
  75. package/components/chunks/{MazSpinner-BAHWcgal.mjs → MazSpinner-BCQzF6j-.mjs} +1 -1
  76. package/components/chunks/{MazSpinner-BLp7sE5i.mjs → MazSpinner-BEqvmPiV.mjs} +1 -1
  77. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +37 -0
  78. package/components/chunks/MazSpinner-BpjK60ul.mjs +37 -0
  79. package/components/chunks/{MazSpinner-CShEq13p.mjs → MazSpinner-C2ok6AlJ.mjs} +1 -1
  80. package/components/chunks/{MazSpinner-CLfp6QHS.mjs → MazSpinner-CFJmcsGl.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-D9K-TsT7.mjs → MazSpinner-CVBz5HIx.mjs} +1 -1
  82. package/components/chunks/{MazSpinner-BhFMGOGc.mjs → MazSpinner-DEdQlQr1.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-AyzqowuD.mjs → MazSpinner-DhHVVBJE.mjs} +1 -1
  84. package/components/chunks/MazSpinner-DuGaC-cw.mjs +37 -0
  85. package/components/chunks/MazSpinner-Iwon82He.mjs +37 -0
  86. package/components/chunks/MazSpinner-JbfjMNFL.mjs +37 -0
  87. package/components/chunks/{MazSpinner-2KA4ECS_.mjs → MazSpinner-QgcgF5j5.mjs} +1 -1
  88. package/components/chunks/MazSpinner-yQGVxaFm.mjs +37 -0
  89. package/components/chunks/{MazStepper-BmCk5RfP.mjs → MazStepper-DRWtYHZR.mjs} +1 -1
  90. package/components/chunks/MazTable-CrtVI-dp.mjs +2015 -0
  91. package/components/chunks/{MazTransitionExpand-D9pcEmUk.mjs → MazTransitionExpand-BoTQeNNf.mjs} +1 -1
  92. package/css/main.css +1 -1
  93. package/modules/assets/MazBtn.css +1 -1
  94. package/modules/chunks/MazBtn-BG2dUdHV.cjs +9 -0
  95. package/modules/chunks/MazBtn-BeqYSSYI.mjs +116 -0
  96. package/modules/chunks/MazIcon-BqfELHOt.mjs +101 -0
  97. package/modules/chunks/MazIcon-RkWxQ8JM.cjs +1 -0
  98. package/modules/chunks/{MazSpinner-g6fliUmS.mjs → MazSpinner-DgSRxVEo.mjs} +1 -1
  99. package/modules/chunks/{MazSpinner-zX9CPyJB.cjs → MazSpinner-GfL807jq.cjs} +1 -1
  100. package/modules/chunks/{index-BLdtEKD5.cjs → index-CE2CsQsx.cjs} +4 -4
  101. package/modules/chunks/{index-Bpj_Jr6I.mjs → index-aKGx1nxl.mjs} +4 -4
  102. package/modules/index.cjs +1 -1
  103. package/modules/index.mjs +1 -1
  104. package/nuxt/index.json +1 -1
  105. package/package.json +1 -1
  106. package/types/components/MazAccordion.vue.d.ts +1 -1
  107. package/types/components/MazBtn.vue.d.ts +0 -4
  108. package/types/components/MazCardSpotlight.vue.d.ts +1 -1
  109. package/types/components/MazDropdown.vue.d.ts +4 -0
  110. package/types/components/MazTable.vue.d.ts +32 -3
  111. package/components/chunks/MazBtn-B2A4nNWi.mjs +0 -150
  112. package/components/chunks/MazBtn-BTxqbijR.mjs +0 -158
  113. package/components/chunks/MazBtn-BYAmxCNV.mjs +0 -150
  114. package/components/chunks/MazBtn-BkBaNYfi.mjs +0 -150
  115. package/components/chunks/MazBtn-BkT-9nbu.mjs +0 -150
  116. package/components/chunks/MazBtn-C6b9OPzf.mjs +0 -150
  117. package/components/chunks/MazBtn-CAioWjHE.mjs +0 -150
  118. package/components/chunks/MazBtn-CTDhJ_fQ.mjs +0 -155
  119. package/components/chunks/MazBtn-CofOhh-q.mjs +0 -150
  120. package/components/chunks/MazBtn-CwkvhgML.mjs +0 -150
  121. package/components/chunks/MazBtn-DHFCbHI5.mjs +0 -150
  122. package/components/chunks/MazBtn-DgmsRNq_.mjs +0 -150
  123. package/components/chunks/MazIcon-BDGxCy9M.mjs +0 -118
  124. package/components/chunks/MazIcon-YNJa-F5Z.mjs +0 -113
  125. package/components/chunks/MazIcon-wDqK0Xre.mjs +0 -113
  126. package/components/chunks/MazPagination-BOUDMaJO.mjs +0 -394
  127. package/components/chunks/MazSpinner-C91Lm_Xp.mjs +0 -37
  128. package/components/chunks/MazSpinner-CCIMQLA1.mjs +0 -37
  129. package/components/chunks/MazSpinner-Ch7Qhq1M.mjs +0 -37
  130. package/components/chunks/MazSpinner-D7CMPaDb.mjs +0 -37
  131. package/components/chunks/MazSpinner-D8uk4SQh.mjs +0 -37
  132. package/components/chunks/MazSpinner-JgB1pud8.mjs +0 -37
  133. package/components/chunks/MazSpinner-mCkWhiVE.mjs +0 -37
  134. package/components/chunks/MazTable-CPfwUOOM.mjs +0 -2003
  135. package/modules/chunks/MazBtn-B5URGSZl.cjs +0 -9
  136. package/modules/chunks/MazBtn-DRuL8cjg.mjs +0 -150
  137. package/modules/chunks/MazIcon-BskR2yy9.cjs +0 -1
  138. package/modules/chunks/MazIcon-CKc-vAA8.mjs +0 -113
@@ -0,0 +1,116 @@
1
+ import { defineComponent as M, defineAsyncComponent as y, useAttrs as j, useSlots as E, computed as n, 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-DPTuyc26.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
+ },
29
+ setup(b) {
30
+ const o = b, h = y(() => import("./MazSpinner-BCQzF6j-.mjs")), c = y(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: z } = j(), f = E(), p = n(() => g ? "a" : z ? "router-link" : "button"), I = n(
31
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
32
+ ), v = n(
33
+ () => (o.loading || o.disabled) && p.value === "button"
34
+ ), k = n(() => v.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), C = n(() => o.loading && o.variant === "button"), S = n(() => !!f["left-icon"] || o.leftIcon), m = n(() => !!f["right-icon"] || o.rightIcon), $ = n(() => S.value || m.value), T = n(() => o.icon || !!f.icon), F = n(() => p.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
35
+ return (e, P) => (l(), a(r(p.value), {
36
+ disabled: v.value || void 0,
37
+ class: s(["m-btn", [
38
+ `--${e.size}`,
39
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
40
+ I.value,
41
+ k.value,
42
+ B.value,
43
+ {
44
+ "--block": e.block,
45
+ "--no-underline": e.noUnderline,
46
+ "--fab": e.fab,
47
+ "--loading": e.loading,
48
+ "--disabled": v.value,
49
+ "--icon": $.value,
50
+ "--rounded": e.rounded,
51
+ "--no-rounded": e.noRounded,
52
+ "--no-padding": e.noPadding,
53
+ "--no-elevation": e.noElevation
54
+ }
55
+ ]]),
56
+ type: F.value
57
+ }, {
58
+ default: O(() => [
59
+ t(`
60
+ @slot left-icon - The icon to display on the left of the button
61
+ `),
62
+ u(e.$slots, "left-icon", {}, () => [
63
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
64
+ key: 0,
65
+ name: e.leftIcon,
66
+ class: s([i.value])
67
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
68
+ key: 1,
69
+ class: s([i.value])
70
+ }, null, 8, ["class"])) : t("v-if", !0)
71
+ ], !0),
72
+ t(`
73
+ @slot icon - The icon to display on the fab button
74
+ `),
75
+ T.value ? u(e.$slots, "icon", { key: 0 }, () => [
76
+ typeof e.icon == "string" ? (l(), a(d(c), {
77
+ key: 0,
78
+ name: e.icon,
79
+ class: s([i.value])
80
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
81
+ key: 1,
82
+ class: s([i.value])
83
+ }, null, 8, ["class"])) : t("v-if", !0)
84
+ ], !0) : t("v-if", !0),
85
+ t(`
86
+ @slot default - The content of the button
87
+ `),
88
+ u(e.$slots, "default", {}, void 0, !0),
89
+ t(`
90
+ @slot left-icon - The icon to display on the left of the button
91
+ `),
92
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
93
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
94
+ key: 0,
95
+ name: e.rightIcon,
96
+ class: s([i.value])
97
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
98
+ key: 1,
99
+ class: s([i.value])
100
+ }, null, 8, ["class"])) : t("v-if", !0)
101
+ ], !0) : t("v-if", !0),
102
+ C.value ? (l(), R("div", L, [
103
+ A(d(h), {
104
+ size: "2em",
105
+ color: e.color
106
+ }, null, 8, ["color"])
107
+ ])) : t("v-if", !0)
108
+ ]),
109
+ _: 3
110
+ /* FORWARDED */
111
+ }, 8, ["disabled", "class", "type"]));
112
+ }
113
+ }), w = /* @__PURE__ */ D(N, [["__scopeId", "data-v-8deef21f"]]);
114
+ export {
115
+ w as default
116
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as M, defineAsyncComponent as y, useAttrs as j, useSlots as E, computed as n, 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 "./MazBottomSheet-s9lLaK1M.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
+ },
29
+ setup(b) {
30
+ const o = b, h = y(() => import("./MazSpinner-BEqvmPiV.mjs")), c = y(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: z } = j(), f = E(), p = n(() => g ? "a" : z ? "router-link" : "button"), I = n(
31
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
32
+ ), v = n(
33
+ () => (o.loading || o.disabled) && p.value === "button"
34
+ ), k = n(() => v.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), C = n(() => o.loading && o.variant === "button"), S = n(() => !!f["left-icon"] || o.leftIcon), m = n(() => !!f["right-icon"] || o.rightIcon), $ = n(() => S.value || m.value), T = n(() => o.icon || !!f.icon), F = n(() => p.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
35
+ return (e, P) => (l(), a(r(p.value), {
36
+ disabled: v.value || void 0,
37
+ class: s(["m-btn", [
38
+ `--${e.size}`,
39
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
40
+ I.value,
41
+ k.value,
42
+ B.value,
43
+ {
44
+ "--block": e.block,
45
+ "--no-underline": e.noUnderline,
46
+ "--fab": e.fab,
47
+ "--loading": e.loading,
48
+ "--disabled": v.value,
49
+ "--icon": $.value,
50
+ "--rounded": e.rounded,
51
+ "--no-rounded": e.noRounded,
52
+ "--no-padding": e.noPadding,
53
+ "--no-elevation": e.noElevation
54
+ }
55
+ ]]),
56
+ type: F.value
57
+ }, {
58
+ default: O(() => [
59
+ t(`
60
+ @slot left-icon - The icon to display on the left of the button
61
+ `),
62
+ u(e.$slots, "left-icon", {}, () => [
63
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
64
+ key: 0,
65
+ name: e.leftIcon,
66
+ class: s([i.value])
67
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
68
+ key: 1,
69
+ class: s([i.value])
70
+ }, null, 8, ["class"])) : t("v-if", !0)
71
+ ], !0),
72
+ t(`
73
+ @slot icon - The icon to display on the fab button
74
+ `),
75
+ T.value ? u(e.$slots, "icon", { key: 0 }, () => [
76
+ typeof e.icon == "string" ? (l(), a(d(c), {
77
+ key: 0,
78
+ name: e.icon,
79
+ class: s([i.value])
80
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
81
+ key: 1,
82
+ class: s([i.value])
83
+ }, null, 8, ["class"])) : t("v-if", !0)
84
+ ], !0) : t("v-if", !0),
85
+ t(`
86
+ @slot default - The content of the button
87
+ `),
88
+ u(e.$slots, "default", {}, void 0, !0),
89
+ t(`
90
+ @slot left-icon - The icon to display on the left of the button
91
+ `),
92
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
93
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
94
+ key: 0,
95
+ name: e.rightIcon,
96
+ class: s([i.value])
97
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
98
+ key: 1,
99
+ class: s([i.value])
100
+ }, null, 8, ["class"])) : t("v-if", !0)
101
+ ], !0) : t("v-if", !0),
102
+ C.value ? (l(), R("div", L, [
103
+ A(d(h), {
104
+ size: "2em",
105
+ color: e.color
106
+ }, null, 8, ["color"])
107
+ ])) : t("v-if", !0)
108
+ ]),
109
+ _: 3
110
+ /* FORWARDED */
111
+ }, 8, ["disabled", "class", "type"]));
112
+ }
113
+ }), w = /* @__PURE__ */ D(N, [["__scopeId", "data-v-8deef21f"]]);
114
+ export {
115
+ w as default
116
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as M, defineAsyncComponent as y, useAttrs as j, useSlots as E, computed as n, 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 "./MazCarousel-Bb4fpVqN.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
+ },
29
+ setup(b) {
30
+ const o = b, h = y(() => import("./MazSpinner-B-mc1FWS.mjs")), c = y(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: z } = j(), f = E(), p = n(() => g ? "a" : z ? "router-link" : "button"), I = n(
31
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
32
+ ), v = n(
33
+ () => (o.loading || o.disabled) && p.value === "button"
34
+ ), k = n(() => v.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), C = n(() => o.loading && o.variant === "button"), S = n(() => !!f["left-icon"] || o.leftIcon), m = n(() => !!f["right-icon"] || o.rightIcon), $ = n(() => S.value || m.value), T = n(() => o.icon || !!f.icon), F = n(() => p.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
35
+ return (e, P) => (l(), a(r(p.value), {
36
+ disabled: v.value || void 0,
37
+ class: s(["m-btn", [
38
+ `--${e.size}`,
39
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
40
+ I.value,
41
+ k.value,
42
+ B.value,
43
+ {
44
+ "--block": e.block,
45
+ "--no-underline": e.noUnderline,
46
+ "--fab": e.fab,
47
+ "--loading": e.loading,
48
+ "--disabled": v.value,
49
+ "--icon": $.value,
50
+ "--rounded": e.rounded,
51
+ "--no-rounded": e.noRounded,
52
+ "--no-padding": e.noPadding,
53
+ "--no-elevation": e.noElevation
54
+ }
55
+ ]]),
56
+ type: F.value
57
+ }, {
58
+ default: O(() => [
59
+ t(`
60
+ @slot left-icon - The icon to display on the left of the button
61
+ `),
62
+ u(e.$slots, "left-icon", {}, () => [
63
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
64
+ key: 0,
65
+ name: e.leftIcon,
66
+ class: s([i.value])
67
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
68
+ key: 1,
69
+ class: s([i.value])
70
+ }, null, 8, ["class"])) : t("v-if", !0)
71
+ ], !0),
72
+ t(`
73
+ @slot icon - The icon to display on the fab button
74
+ `),
75
+ T.value ? u(e.$slots, "icon", { key: 0 }, () => [
76
+ typeof e.icon == "string" ? (l(), a(d(c), {
77
+ key: 0,
78
+ name: e.icon,
79
+ class: s([i.value])
80
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
81
+ key: 1,
82
+ class: s([i.value])
83
+ }, null, 8, ["class"])) : t("v-if", !0)
84
+ ], !0) : t("v-if", !0),
85
+ t(`
86
+ @slot default - The content of the button
87
+ `),
88
+ u(e.$slots, "default", {}, void 0, !0),
89
+ t(`
90
+ @slot left-icon - The icon to display on the left of the button
91
+ `),
92
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
93
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
94
+ key: 0,
95
+ name: e.rightIcon,
96
+ class: s([i.value])
97
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
98
+ key: 1,
99
+ class: s([i.value])
100
+ }, null, 8, ["class"])) : t("v-if", !0)
101
+ ], !0) : t("v-if", !0),
102
+ C.value ? (l(), R("div", L, [
103
+ A(d(h), {
104
+ size: "2em",
105
+ color: e.color
106
+ }, null, 8, ["color"])
107
+ ])) : t("v-if", !0)
108
+ ]),
109
+ _: 3
110
+ /* FORWARDED */
111
+ }, 8, ["disabled", "class", "type"]));
112
+ }
113
+ }), w = /* @__PURE__ */ D(N, [["__scopeId", "data-v-8deef21f"]]);
114
+ export {
115
+ w as default
116
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as M, defineAsyncComponent as y, useAttrs as j, useSlots as E, computed as n, 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 "./MazDialog-Bv2PzQBz.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
+ },
29
+ setup(b) {
30
+ const o = b, h = y(() => import("./MazSpinner-yQGVxaFm.mjs")), c = y(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: z } = j(), f = E(), p = n(() => g ? "a" : z ? "router-link" : "button"), I = n(
31
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
32
+ ), v = n(
33
+ () => (o.loading || o.disabled) && p.value === "button"
34
+ ), k = n(() => v.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), C = n(() => o.loading && o.variant === "button"), S = n(() => !!f["left-icon"] || o.leftIcon), m = n(() => !!f["right-icon"] || o.rightIcon), $ = n(() => S.value || m.value), T = n(() => o.icon || !!f.icon), F = n(() => p.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
35
+ return (e, P) => (l(), a(r(p.value), {
36
+ disabled: v.value || void 0,
37
+ class: s(["m-btn", [
38
+ `--${e.size}`,
39
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
40
+ I.value,
41
+ k.value,
42
+ B.value,
43
+ {
44
+ "--block": e.block,
45
+ "--no-underline": e.noUnderline,
46
+ "--fab": e.fab,
47
+ "--loading": e.loading,
48
+ "--disabled": v.value,
49
+ "--icon": $.value,
50
+ "--rounded": e.rounded,
51
+ "--no-rounded": e.noRounded,
52
+ "--no-padding": e.noPadding,
53
+ "--no-elevation": e.noElevation
54
+ }
55
+ ]]),
56
+ type: F.value
57
+ }, {
58
+ default: O(() => [
59
+ t(`
60
+ @slot left-icon - The icon to display on the left of the button
61
+ `),
62
+ u(e.$slots, "left-icon", {}, () => [
63
+ typeof e.leftIcon == "string" ? (l(), a(d(c), {
64
+ key: 0,
65
+ name: e.leftIcon,
66
+ class: s([i.value])
67
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(r(e.leftIcon), {
68
+ key: 1,
69
+ class: s([i.value])
70
+ }, null, 8, ["class"])) : t("v-if", !0)
71
+ ], !0),
72
+ t(`
73
+ @slot icon - The icon to display on the fab button
74
+ `),
75
+ T.value ? u(e.$slots, "icon", { key: 0 }, () => [
76
+ typeof e.icon == "string" ? (l(), a(d(c), {
77
+ key: 0,
78
+ name: e.icon,
79
+ class: s([i.value])
80
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(r(e.icon), {
81
+ key: 1,
82
+ class: s([i.value])
83
+ }, null, 8, ["class"])) : t("v-if", !0)
84
+ ], !0) : t("v-if", !0),
85
+ t(`
86
+ @slot default - The content of the button
87
+ `),
88
+ u(e.$slots, "default", {}, void 0, !0),
89
+ t(`
90
+ @slot left-icon - The icon to display on the left of the button
91
+ `),
92
+ m.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
93
+ typeof e.rightIcon == "string" ? (l(), a(d(c), {
94
+ key: 0,
95
+ name: e.rightIcon,
96
+ class: s([i.value])
97
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(r(e.rightIcon), {
98
+ key: 1,
99
+ class: s([i.value])
100
+ }, null, 8, ["class"])) : t("v-if", !0)
101
+ ], !0) : t("v-if", !0),
102
+ C.value ? (l(), R("div", L, [
103
+ A(d(h), {
104
+ size: "2em",
105
+ color: e.color
106
+ }, null, 8, ["color"])
107
+ ])) : t("v-if", !0)
108
+ ]),
109
+ _: 3
110
+ /* FORWARDED */
111
+ }, 8, ["disabled", "class", "type"]));
112
+ }
113
+ }), w = /* @__PURE__ */ D(N, [["__scopeId", "data-v-8deef21f"]]);
114
+ export {
115
+ w as default
116
+ };
@@ -0,0 +1,124 @@
1
+ import { defineComponent as T, defineAsyncComponent as h, useAttrs as j, useSlots as F, computed as n, openBlock as l, createBlock as a, resolveDynamicComponent as d, normalizeClass as s, withCtx as E, createCommentVNode as t, renderSlot as f, unref as p, createElementBlock as P, createVNode as R } from "vue";
2
+ import '../assets/MazBtn.css';const A = {
3
+ key: 2,
4
+ class: "m-btn-loader-container"
5
+ }, D = /* @__PURE__ */ T({
6
+ __name: "MazBtn",
7
+ props: {
8
+ variant: { default: "button" },
9
+ size: { default: "md" },
10
+ color: { default: "primary" },
11
+ type: { default: "button" },
12
+ rounded: { type: Boolean },
13
+ roundedSize: { default: "lg" },
14
+ noRounded: { type: Boolean },
15
+ outline: { type: Boolean },
16
+ pastel: { type: Boolean },
17
+ block: { type: Boolean },
18
+ noUnderline: { type: Boolean },
19
+ loading: { type: Boolean },
20
+ disabled: { type: Boolean },
21
+ fab: { type: Boolean },
22
+ icon: { type: [String, Function, Object], default: void 0 },
23
+ leftIcon: { type: [String, Function, Object], default: void 0 },
24
+ rightIcon: { type: [String, Function, Object], default: void 0 },
25
+ noPadding: { type: Boolean },
26
+ noElevation: { type: Boolean }
27
+ },
28
+ setup(u) {
29
+ const o = u, c = h(() => import("./MazSpinner-DEdQlQr1.mjs")), r = h(() => import("./MazIcon-BbvBov5G.mjs")), { href: v, to: z } = j(), y = F(), m = n(() => v ? "a" : z ? "router-link" : "button"), I = n(
30
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
31
+ ), b = n(
32
+ () => (o.loading || o.disabled) && m.value === "button"
33
+ ), k = n(() => b.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), S = n(() => o.loading && o.variant === "button"), C = n(() => !!y["left-icon"] || o.leftIcon), g = n(() => !!y["right-icon"] || o.rightIcon), $ = n(() => C.value || g.value), M = n(() => o.icon || !!y.icon), O = n(() => m.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
34
+ return (e, U) => (l(), a(d(m.value), {
35
+ disabled: b.value || void 0,
36
+ class: s(["m-btn", [
37
+ `--${e.size}`,
38
+ !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
39
+ I.value,
40
+ k.value,
41
+ B.value,
42
+ {
43
+ "--block": e.block,
44
+ "--no-underline": e.noUnderline,
45
+ "--fab": e.fab,
46
+ "--loading": e.loading,
47
+ "--disabled": b.value,
48
+ "--icon": $.value,
49
+ "--rounded": e.rounded,
50
+ "--no-rounded": e.noRounded,
51
+ "--no-padding": e.noPadding,
52
+ "--no-elevation": e.noElevation
53
+ }
54
+ ]]),
55
+ type: O.value
56
+ }, {
57
+ default: E(() => [
58
+ t(`
59
+ @slot left-icon - The icon to display on the left of the button
60
+ `),
61
+ f(e.$slots, "left-icon", {}, () => [
62
+ typeof e.leftIcon == "string" ? (l(), a(p(r), {
63
+ key: 0,
64
+ name: e.leftIcon,
65
+ class: s([i.value])
66
+ }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(d(e.leftIcon), {
67
+ key: 1,
68
+ class: s([i.value])
69
+ }, null, 8, ["class"])) : t("v-if", !0)
70
+ ], !0),
71
+ t(`
72
+ @slot icon - The icon to display on the fab button
73
+ `),
74
+ M.value ? f(e.$slots, "icon", { key: 0 }, () => [
75
+ typeof e.icon == "string" ? (l(), a(p(r), {
76
+ key: 0,
77
+ name: e.icon,
78
+ class: s([i.value])
79
+ }, null, 8, ["name", "class"])) : e.icon ? (l(), a(d(e.icon), {
80
+ key: 1,
81
+ class: s([i.value])
82
+ }, null, 8, ["class"])) : t("v-if", !0)
83
+ ], !0) : t("v-if", !0),
84
+ t(`
85
+ @slot default - The content of the button
86
+ `),
87
+ f(e.$slots, "default", {}, void 0, !0),
88
+ t(`
89
+ @slot left-icon - The icon to display on the left of the button
90
+ `),
91
+ g.value ? f(e.$slots, "right-icon", { key: 1 }, () => [
92
+ typeof e.rightIcon == "string" ? (l(), a(p(r), {
93
+ key: 0,
94
+ name: e.rightIcon,
95
+ class: s([i.value])
96
+ }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(d(e.rightIcon), {
97
+ key: 1,
98
+ class: s([i.value])
99
+ }, null, 8, ["class"])) : t("v-if", !0)
100
+ ], !0) : t("v-if", !0),
101
+ S.value ? (l(), P("div", A, [
102
+ R(p(c), {
103
+ size: "2em",
104
+ color: e.color
105
+ }, null, 8, ["color"])
106
+ ])) : t("v-if", !0)
107
+ ]),
108
+ _: 3
109
+ /* FORWARDED */
110
+ }, 8, ["disabled", "class", "type"]));
111
+ }
112
+ }), L = (u, o) => {
113
+ const c = u.__vccOpts || u;
114
+ for (const [r, v] of o)
115
+ c[r] = v;
116
+ return c;
117
+ }, N = /* @__PURE__ */ L(D, [["__scopeId", "data-v-8deef21f"]]), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
118
+ __proto__: null,
119
+ default: N
120
+ }, Symbol.toStringTag, { value: "Module" }));
121
+ export {
122
+ w as M,
123
+ L as _
124
+ };