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

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 (122) hide show
  1. package/components/MazBottomSheet.mjs +1 -1
  2. package/components/MazBtn.d.ts +5 -0
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCarousel.mjs +1 -1
  6. package/components/MazDialog.mjs +1 -1
  7. package/components/MazDialogPromise.mjs +1 -1
  8. package/components/MazDrawer.mjs +1 -1
  9. package/components/MazDropdown.mjs +1 -1
  10. package/components/MazInput.mjs +1 -1
  11. package/components/MazInputNumber.mjs +1 -1
  12. package/components/MazInputPrice.mjs +1 -1
  13. package/components/MazInputTags.mjs +1 -1
  14. package/components/MazPagination.mjs +1 -1
  15. package/components/MazPhoneNumberInput.mjs +1 -1
  16. package/components/MazPicker.mjs +1 -1
  17. package/components/MazPullToRefresh.d.ts +2 -2
  18. package/components/MazSelect.mjs +1 -1
  19. package/components/MazTable.d.ts +2 -2
  20. package/components/MazTable.mjs +1 -1
  21. package/components/assets/MazBtn.css +1 -1
  22. package/components/assets/MazInputNumber.css +1 -1
  23. package/components/assets/MazInputTags.css +1 -1
  24. package/components/assets/MazPagination.css +1 -1
  25. package/components/assets/MazPicker.css +1 -1
  26. package/components/assets/MazSelect.css +1 -1
  27. package/components/assets/MazTable.css +1 -1
  28. package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-DeAah_or.mjs} +1 -1
  29. package/components/chunks/MazBtn-BV212IYv.mjs +118 -0
  30. package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BXvObcWn.mjs} +21 -19
  31. package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-C2dJYsnq.mjs} +21 -19
  32. package/components/chunks/MazBtn-C2htID_X.mjs +118 -0
  33. package/components/chunks/MazBtn-C4xZC-A2.mjs +118 -0
  34. package/components/chunks/{MazBtn-CVB5qDjV.mjs → MazBtn-C5IbN0rp.mjs} +34 -32
  35. package/components/chunks/MazBtn-CEFfMm7k.mjs +118 -0
  36. package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-CESOVC-a.mjs} +20 -18
  37. package/components/chunks/MazBtn-CLFly8Ie.mjs +118 -0
  38. package/components/chunks/MazBtn-CRpqDW12.mjs +118 -0
  39. package/components/chunks/MazBtn-D2H26ExI.mjs +118 -0
  40. package/components/chunks/MazBtn-y4vRRWDg.mjs +118 -0
  41. package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-zMzxqcCs.mjs} +34 -32
  42. package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-BF-2_gZV.mjs} +1 -1
  43. package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DVBUt8NL.mjs} +1 -1
  44. package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-CEfJco3U.mjs} +1 -1
  45. package/components/chunks/MazCheckbox-CeVxgVY8.mjs +146 -0
  46. package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-mgtQBs4K.mjs} +1 -1
  47. package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-fn7vXgBg.mjs} +1 -1
  48. package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-C8dpQb5k.mjs} +2 -2
  49. package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-CXJsK5ve.mjs} +2 -2
  50. package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-BXX3RaoN.mjs} +1 -1
  51. package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
  52. package/components/chunks/MazInput-AcA93-8Q.mjs +291 -0
  53. package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-Dnwxraz4.mjs} +1 -1
  54. package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-OY_UqCMs.mjs} +173 -171
  55. package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DvVAZa12.mjs} +1 -1
  56. package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-DKlGT2IB.mjs} +170 -168
  57. package/components/chunks/MazLoadingBar-By1umvdC.mjs +32 -0
  58. package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-BL9LU84U.mjs} +132 -130
  59. package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-C7gUk5lg.mjs} +3 -3
  60. package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-Dhm3u2MN.mjs} +536 -534
  61. package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-ck8cl1-N.mjs} +1 -1
  62. package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-hEpUqVC-.mjs} +1 -1
  63. package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-CmMxOc69.mjs} +1 -1
  64. package/components/chunks/MazSelect-CGsMRdr7.mjs +568 -0
  65. package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-ed445MXs.mjs} +2 -2
  66. package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-Akyx5wgU.mjs} +1 -1
  67. package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-B2dsE23u.mjs} +1 -1
  68. package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-BCOeuzTB.mjs} +1 -1
  69. package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-BakExtKd.mjs} +1 -1
  70. package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-C9meLNrb.mjs} +1 -1
  71. package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-CKOy0M1T.mjs} +1 -1
  72. package/components/chunks/MazSpinner-CL6orjX7.mjs +37 -0
  73. package/components/chunks/MazSpinner-CQTq0J6f.mjs +37 -0
  74. package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-CeZk8jA9.mjs} +1 -1
  75. package/components/chunks/MazSpinner-CqS3onAE.mjs +37 -0
  76. package/components/chunks/MazSpinner-D1zj-581.mjs +37 -0
  77. package/components/chunks/MazSpinner-DJ2t85tY.mjs +37 -0
  78. package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DbaTlD5B.mjs} +1 -1
  79. package/components/chunks/MazSpinner-DgJ9tVv_.mjs +37 -0
  80. package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-DoKvoICM.mjs} +1 -1
  81. package/components/chunks/MazSpinner-Oy4E193R.mjs +37 -0
  82. package/components/chunks/MazTable-QwG-Kh88.mjs +692 -0
  83. package/components/chunks/MazTableCell-BSNyqTSX.mjs +23 -0
  84. package/components/chunks/MazTableRow-CgubMdrX.mjs +30 -0
  85. package/components/chunks/MazTableTitle-h4dattYD.mjs +23 -0
  86. package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand-BvqRDM9d.mjs} +1 -1
  87. package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
  88. package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
  89. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
  90. package/css/main.css +1 -1
  91. package/modules/assets/MazBtn.css +1 -1
  92. package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DeAZcD0R.cjs} +3 -3
  93. package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-DvffpPyV.mjs} +21 -19
  94. package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BiwOZEZl.cjs} +1 -1
  95. package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-D2B0umvn.mjs} +1 -1
  96. package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-CZIYnX05.cjs} +1 -1
  97. package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-Csgl_Uho.mjs} +1 -1
  98. package/modules/chunks/index-B6Pf_QhC.cjs +149 -0
  99. package/modules/chunks/{index-aKGx1nxl.mjs → index-C34aEXzu.mjs} +319 -314
  100. package/modules/index.cjs +1 -1
  101. package/modules/index.mjs +1 -1
  102. package/nuxt/index.json +1 -1
  103. package/package.json +1 -1
  104. package/types/components/MazBtn.vue.d.ts +5 -0
  105. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  106. package/types/components/MazTable.vue.d.ts +2 -2
  107. package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
  108. package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
  109. package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
  110. package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
  111. package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
  112. package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
  113. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
  114. package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
  115. package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
  116. package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
  117. package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
  118. package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
  119. package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
  120. package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
  121. package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
  122. package/modules/chunks/index-CE2CsQsx.cjs +0 -149
package/modules/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-CE2CsQsx.cjs");exports.AosHandler=e.AosHandler;exports.DialogHandler=e.DialogHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.Swipe=e.Swipe;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;exports.capitalize=e.capitalize;exports.checkAvailability=e.checkAvailability;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.getAosInstance=e.getInstance;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$7;exports.installDialog=e.installDialog;exports.installDirectives=e.plugin;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$8;exports.isClient=e.isClient;exports.mount=e.mount;exports.normalizeString=e.normalizeString;exports.number=e.number;exports.sleep=e.sleep;exports.throttle=e.throttle;exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useBreakpoints=e.useBreakpoints;exports.useDialog=e.useDialog;exports.useFormField=e.useFormField;exports.useFormValidator=e.useFormValidator;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useReadingTime=e.useReadingTime;exports.useStringMatching=e.useStringMatching;exports.useSwipe=e.useSwipe;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.useWindowSize=e.useWindowSize;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin$1;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$2;exports.vFullscreenImg=e.directive$3;exports.vFullscreenImgInstall=e.plugin$4;exports.vLazyImg=e.directive$4;exports.vLazyImgInstall=e.plugin$5;exports.vTooltip=e.directive$2;exports.vTooltipInstall=e.plugin$3;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$6;exports.waitInstance=e.instance;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-B6Pf_QhC.cjs");exports.AosHandler=e.AosHandler;exports.DialogHandler=e.DialogHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.Swipe=e.Swipe;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;exports.capitalize=e.capitalize;exports.checkAvailability=e.checkAvailability;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.getAosInstance=e.getInstance;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$7;exports.installDialog=e.installDialog;exports.installDirectives=e.plugin;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$8;exports.isClient=e.isClient;exports.mount=e.mount;exports.normalizeString=e.normalizeString;exports.number=e.number;exports.sleep=e.sleep;exports.throttle=e.throttle;exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useBreakpoints=e.useBreakpoints;exports.useDialog=e.useDialog;exports.useFormField=e.useFormField;exports.useFormValidator=e.useFormValidator;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useReadingTime=e.useReadingTime;exports.useStringMatching=e.useStringMatching;exports.useSwipe=e.useSwipe;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.useWindowSize=e.useWindowSize;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin$1;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$2;exports.vFullscreenImg=e.directive$3;exports.vFullscreenImgInstall=e.plugin$4;exports.vLazyImg=e.directive$4;exports.vLazyImgInstall=e.plugin$5;exports.vTooltip=e.directive$2;exports.vTooltipInstall=e.plugin$3;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$6;exports.waitInstance=e.instance;
package/modules/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { W as e, Z as l, M as i, S as t, R as n, a1 as o, V as r, a4 as u, F as c, J as d, K as m, G as I, H as g, L as v, X as T, i as p, Y as y, $ as F, q as b, E as S, a0 as C, a3 as h, N as z, O as A, P as H, I as k, Q as w, T as D, U, u as W, a as L, b as V, c as O, d as Z, e as f, f as j, g as q, h as x, j as B, k as M, l as R, m as E, n as G, o as J, p as K, r as N, s as P, t as Q, v as X, z as Y, y as $, B as _, A as ss, w as as, x as es, D as ls, C as is, a2 as ts } from "./chunks/index-aKGx1nxl.mjs";
1
+ import { W as e, Z as l, M as i, S as t, R as n, a1 as o, V as r, a4 as u, F as c, J as d, K as m, G as I, H as g, L as v, X as T, i as p, Y as y, $ as F, q as b, E as S, a0 as C, a3 as h, N as z, O as A, P as H, I as k, Q as w, T as D, U, u as W, a as L, b as V, c as O, d as Z, e as f, f as j, g as q, h as x, j as B, k as M, l as R, m as E, n as G, o as J, p as K, r as N, s as P, t as Q, v as X, z as Y, y as $, B as _, A as ss, w as as, x as es, D as ls, C as is, a2 as ts } from "./chunks/index-C34aEXzu.mjs";
2
2
  export {
3
3
  e as AosHandler,
4
4
  l as DialogHandler,
package/nuxt/index.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "3.46.1-beta.5",
7
+ "version": "3.46.1-beta.6",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maz-ui",
3
3
  "type": "module",
4
- "version": "3.46.1-beta.5",
4
+ "version": "3.46.1-beta.6",
5
5
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -98,6 +98,10 @@ export interface Props {
98
98
  * @default false
99
99
  */
100
100
  noElevation?: boolean;
101
+ /**
102
+ * Choose how the elements are aligned in the button
103
+ */
104
+ justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
101
105
  }
102
106
  declare function __VLS_template(): {
103
107
  slots: {
@@ -119,6 +123,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
119
123
  icon: string | Icon;
120
124
  leftIcon: string | Icon;
121
125
  rightIcon: string | Icon;
126
+ justify: "start" | "end" | "center" | "between" | "around" | "evenly";
122
127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
123
128
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
124
129
  export default _default;
@@ -24,14 +24,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
24
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
25
  error: (...args: any[]) => void;
26
26
  loaded: (...args: any[]) => void;
27
- response: (...args: any[]) => void;
28
27
  start: (...args: any[]) => void;
28
+ response: (...args: any[]) => void;
29
29
  finish: (...args: any[]) => void;
30
30
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
31
31
  onError?: ((...args: any[]) => any) | undefined;
32
32
  onLoaded?: ((...args: any[]) => any) | undefined;
33
- onResponse?: ((...args: any[]) => any) | undefined;
34
33
  onStart?: ((...args: any[]) => any) | undefined;
34
+ onResponse?: ((...args: any[]) => any) | undefined;
35
35
  onFinish?: ((...args: any[]) => any) | undefined;
36
36
  }>, {
37
37
  disabled: boolean;
@@ -53,7 +53,7 @@ export interface MazTableProps {
53
53
  * Size of the search inputs
54
54
  * @values `'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'mini'`
55
55
  */
56
- searchInputSize?: Size;
56
+ inputSize?: Size;
57
57
  /** title of the table */
58
58
  title?: string;
59
59
  /** headers of the table */
@@ -199,9 +199,9 @@ declare const __VLS_component: import("vue").DefineComponent<MazTableProps, {},
199
199
  searchQuery: string;
200
200
  captionSide: "top" | "bottom";
201
201
  tableLayout: "auto" | "fixed";
202
- headers: Header[];
203
202
  tableClass: HTMLAttributes["class"];
204
203
  tableStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
204
+ headers: Header[];
205
205
  headersAlign: "center" | "left" | "right" | "justify" | "char";
206
206
  rows: Row[];
207
207
  searchByPlaceholder: string;
@@ -1,116 +0,0 @@
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
- };
@@ -1,116 +0,0 @@
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
- };
@@ -1,116 +0,0 @@
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
- };
@@ -1,116 +0,0 @@
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
- };