maz-ui 3.40.2 → 3.40.3

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 (130) hide show
  1. package/README.md +1 -1
  2. package/components/MazAccordion.mjs +121 -104
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBottomSheet.mjs +1 -1
  5. package/components/MazBtn.d.ts +2 -2
  6. package/components/MazBtn.mjs +1 -1
  7. package/components/MazCard.d.ts +8 -2
  8. package/components/MazCard.mjs +1 -1
  9. package/components/MazCardSpotlight.d.ts +41 -2
  10. package/components/MazCardSpotlight.mjs +56 -39
  11. package/components/MazCarousel.mjs +1 -1
  12. package/components/MazDialog.mjs +1 -1
  13. package/components/MazDialogPromise.mjs +1 -1
  14. package/components/MazDrawer.mjs +1 -1
  15. package/components/MazDropdown.mjs +1 -1
  16. package/components/MazInput.mjs +1 -1
  17. package/components/MazInputCode.mjs +32 -32
  18. package/components/MazInputNumber.mjs +1 -1
  19. package/components/MazInputPrice.mjs +1 -1
  20. package/components/MazInputTags.mjs +1 -1
  21. package/components/MazPagination.mjs +1 -1
  22. package/components/MazPhoneNumberInput.mjs +1 -1
  23. package/components/MazPicker.mjs +1 -1
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazStepper.mjs +1 -1
  26. package/components/MazTable.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazAvatar.css +1 -1
  29. package/components/assets/MazBtn.css +1 -1
  30. package/components/assets/MazCard.css +1 -1
  31. package/components/assets/MazCardSpotlight.css +1 -1
  32. package/components/assets/MazDropzone.css +1 -1
  33. package/components/assets/MazInputCode.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/MazPickerCalendar.css +1 -1
  38. package/components/assets/MazStepper.css +1 -1
  39. package/components/assets/MazTable.css +1 -1
  40. package/components/chunks/{MazAvatar-CfJSw4Yv.mjs → MazAvatar-QDlH6tvz.mjs} +2 -2
  41. package/components/chunks/{MazBottomSheet-uKxvK85D.mjs → MazBottomSheet-BuBc8C9L.mjs} +1 -1
  42. package/components/chunks/MazBtn-4I65a0tG.mjs +151 -0
  43. package/components/chunks/MazBtn-BBKOvmc0.mjs +151 -0
  44. package/components/chunks/{MazBtn-WxZqpFgw.mjs → MazBtn-Bhjz7DkY.mjs} +4 -4
  45. package/components/chunks/{MazBtn-CuUu5chG.mjs → MazBtn-Ch56YVOw.mjs} +9 -9
  46. package/components/chunks/{MazBtn-DBGIZYN0.mjs → MazBtn-CjKivGUG.mjs} +9 -9
  47. package/components/chunks/{MazBtn-Cf6bpPps.mjs → MazBtn-DAvgjToE.mjs} +9 -9
  48. package/components/chunks/MazBtn-DfXeBnFe.mjs +151 -0
  49. package/components/chunks/{MazBtn-Ct6j9jc6.mjs → MazBtn-Dyw1WZgU.mjs} +9 -9
  50. package/components/chunks/{MazBtn-C1Hevhzu.mjs → MazBtn-IBS93Vda.mjs} +4 -4
  51. package/components/chunks/MazBtn-SJl9Kugs.mjs +151 -0
  52. package/components/chunks/MazBtn-ZcEB5i12.mjs +151 -0
  53. package/components/chunks/MazBtn-peKwI3PB.mjs +151 -0
  54. package/components/chunks/{MazCard-EXkymtQk.mjs → MazCard-zP6XYYO8.mjs} +70 -69
  55. package/components/chunks/{MazCarousel-iKzlrVVy.mjs → MazCarousel-IzbBgBrr.mjs} +1 -1
  56. package/components/chunks/{MazCheckbox-Dqw5B6BC.mjs → MazCheckbox-CnQ4qPG4.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-CZdX-eyY.mjs → MazCheckbox-CylZNBvL.mjs} +1 -1
  58. package/components/chunks/{MazDialog-4Th-Xut5.mjs → MazDialog-DfykSNZV.mjs} +1 -1
  59. package/components/chunks/{MazDialogPromise-CJsnYYpX.mjs → MazDialogPromise-DW7DF186.mjs} +2 -2
  60. package/components/chunks/{MazGallery-D7CXzxIH.mjs → MazGallery-DK724Wxg.mjs} +2 -2
  61. package/components/chunks/{MazIcon-B-UuPklS.mjs → MazIcon-C0jJgPt6.mjs} +1 -1
  62. package/components/chunks/{MazIcon-DgT8iWEh.mjs → MazIcon-DAuhmKoh.mjs} +1 -1
  63. package/components/chunks/{MazInput-DDZFdad5.mjs → MazInput-CuNNbyX5.mjs} +1 -1
  64. package/components/chunks/{MazInputNumber-Cu15o5vo.mjs → MazInputNumber-D9lhCaXw.mjs} +36 -36
  65. package/components/chunks/{MazInputPrice-B7l9-xh2.mjs → MazInputPrice-C5gaLIoj.mjs} +1 -1
  66. package/components/chunks/{MazInputTags-CNEK5pfK.mjs → MazInputTags-DHawCIaZ.mjs} +4 -4
  67. package/components/chunks/{MazLazyImg-BImCTi5K.mjs → MazLazyImg-BGK0RZe2.mjs} +2 -2
  68. package/components/chunks/{MazPagination-C4p_B9Dg.mjs → MazPagination-B5x3ZUrk.mjs} +23 -23
  69. package/components/chunks/{MazPhoneNumberInput-DGf04XP4.mjs → MazPhoneNumberInput-ChPzHftZ.mjs} +2 -2
  70. package/components/chunks/{MazPicker-DzOi-CWS.mjs → MazPicker-BVsSfMXU.mjs} +2 -2
  71. package/components/chunks/{MazPickerCalendar-BZyGvAzQ.mjs → MazPickerCalendar-DVB8Rr9I.mjs} +7 -7
  72. package/components/chunks/{MazPickerHeader-CgoLWXed.mjs → MazPickerHeader-bClHUr7z.mjs} +1 -1
  73. package/components/chunks/{MazPickerMonthSwitcher-BzxzHg15.mjs → MazPickerMonthSwitcher-12vPV_ek.mjs} +2 -2
  74. package/components/chunks/{MazPickerShortcuts-CUfm1E2A.mjs → MazPickerShortcuts-BcJpy3BQ.mjs} +2 -2
  75. package/components/chunks/{MazPickerTime-BRb6pDOe.mjs → MazPickerTime-_IheJF21.mjs} +2 -2
  76. package/components/chunks/{MazPickerYearSwitcher-CJY_QYpN.mjs → MazPickerYearSwitcher-AG8UoA8w.mjs} +3 -3
  77. package/components/chunks/{MazSelect-BsWij77Q.mjs → MazSelect-v2Qz7qp9.mjs} +2 -2
  78. package/components/chunks/MazSpinner-B9PIGTBM.mjs +38 -0
  79. package/components/chunks/{MazSpinner-B_yl5MqC.mjs → MazSpinner-BpD28_Nv.mjs} +1 -1
  80. package/components/chunks/{MazSpinner-BxTf8_F4.mjs → MazSpinner-BrRExSkV.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-DUmQCQu_.mjs → MazSpinner-CT-zwBmg.mjs} +1 -1
  82. package/components/chunks/{MazSpinner-BazLgFW3.mjs → MazSpinner-CTOH4qIV.mjs} +1 -1
  83. package/components/chunks/MazSpinner-CXoCX_ho.mjs +38 -0
  84. package/components/chunks/{MazSpinner-O0WGwdtL.mjs → MazSpinner-CZMyB5uT.mjs} +1 -1
  85. package/components/chunks/{MazSpinner-DHAlXW-A.mjs → MazSpinner-CeOzWwoA.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CeUPefEl.mjs +38 -0
  87. package/components/chunks/MazSpinner-Cj16ZXPC.mjs +38 -0
  88. package/components/chunks/{MazSpinner-3KgM7Cpe.mjs → MazSpinner-D14Qdl-q.mjs} +1 -1
  89. package/components/chunks/MazSpinner-DJyu0bjt.mjs +38 -0
  90. package/components/chunks/{MazSpinner-CkigTMVl.mjs → MazSpinner-DcsAehl9.mjs} +1 -1
  91. package/components/chunks/MazSpinner-DeiRyoct.mjs +38 -0
  92. package/components/chunks/MazSpinner-DmsRmaiI.mjs +38 -0
  93. package/components/chunks/MazSpinner-ISxUR3Y1.mjs +38 -0
  94. package/components/chunks/{MazSpinner-DzWvDo6x.mjs → MazSpinner-afth4SV3.mjs} +1 -1
  95. package/components/chunks/{MazStepper-BvKEjtJo.mjs → MazStepper-CV4dwvS9.mjs} +22 -22
  96. package/components/chunks/{MazTable-Ds_9n2ph.mjs → MazTable-CjlSdLnh.mjs} +5 -5
  97. package/components/chunks/{MazTransitionExpand-F8UmMAin.mjs → MazTransitionExpand-BBkwCVdE.mjs} +1 -1
  98. package/components/chunks/{MazTransitionExpand-C6uOt--l.mjs → MazTransitionExpand-DLMtNsk_.mjs} +1 -1
  99. package/css/main.css +1 -1
  100. package/modules/assets/MazBtn.css +1 -1
  101. package/modules/chunks/{MazBtn-0K3jTP4n.cjs → MazBtn-C3u6aAVE.cjs} +2 -2
  102. package/modules/chunks/MazBtn-kEp7hZt8.mjs +151 -0
  103. package/modules/chunks/{MazIcon-qdhBwo_3.mjs → MazIcon-8SXd9pCW.mjs} +1 -1
  104. package/modules/chunks/{MazIcon-Bm9aj2GA.cjs → MazIcon-_eQBprV9.cjs} +1 -1
  105. package/modules/chunks/{MazSpinner-DCWCHgly.mjs → MazSpinner-BeST_Oa5.mjs} +1 -1
  106. package/modules/chunks/{MazSpinner-BFGq9o4c.cjs → MazSpinner-Box3DbCT.cjs} +1 -1
  107. package/modules/chunks/{index-Cl2Z9oxB.cjs → index-C5Co4FGk.cjs} +1 -1
  108. package/modules/chunks/{index-BRqo10xg.mjs → index-CU4cxgKq.mjs} +2 -2
  109. package/modules/index.cjs +1 -1
  110. package/modules/index.mjs +1 -1
  111. package/nuxt/index.json +1 -1
  112. package/package.json +1 -1
  113. package/types/components/MazBtn.vue.d.ts +2 -2
  114. package/types/components/MazCard.vue.d.ts +8 -2
  115. package/types/components/MazCardSpotlight.vue.d.ts +41 -2
  116. package/components/chunks/MazBtn-DWZMLLYY.mjs +0 -151
  117. package/components/chunks/MazBtn-DgWU7Vzx.mjs +0 -151
  118. package/components/chunks/MazBtn-Dp7XmWvD.mjs +0 -151
  119. package/components/chunks/MazBtn-Ds_0Y11U.mjs +0 -151
  120. package/components/chunks/MazBtn-qHhaccbJ.mjs +0 -151
  121. package/components/chunks/MazBtn-yFDtvtao.mjs +0 -151
  122. package/components/chunks/MazSpinner-CPFxMAVg.mjs +0 -38
  123. package/components/chunks/MazSpinner-DQTSh25q.mjs +0 -38
  124. package/components/chunks/MazSpinner-Dhgoim8I.mjs +0 -38
  125. package/components/chunks/MazSpinner-DuQDsXrM.mjs +0 -38
  126. package/components/chunks/MazSpinner-S7b1mVEd.mjs +0 -38
  127. package/components/chunks/MazSpinner-YQWKVqVa.mjs +0 -38
  128. package/components/chunks/MazSpinner-v_h1kbbd.mjs +0 -38
  129. package/components/chunks/MazSpinner-zKKOOicV.mjs +0 -38
  130. package/modules/chunks/MazBtn-D7GTVnKj.mjs +0 -151
@@ -886,7 +886,7 @@ const zs = {
886
886
  },
887
887
  emits: ["close", "previous", "next", "before-close"],
888
888
  setup(s, { emit: e }) {
889
- const t = e, n = T(() => import("./MazSpinner-DCWCHgly.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(() => import("./chevron-left-CcZaP3Rc.mjs")), r = s, c = v(!1), m = v(!1), y = v(!1), z = v(!1), b = v(!1), f = v(r.clickedElement), k = g(() => r.clickedElement.getBoundingClientRect()), U = g(
889
+ const t = e, n = T(() => import("./MazSpinner-BeST_Oa5.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(() => import("./chevron-left-CcZaP3Rc.mjs")), r = s, c = v(!1), m = v(!1), y = v(!1), z = v(!1), b = v(!1), f = v(r.clickedElement), k = g(() => r.clickedElement.getBoundingClientRect()), U = g(
890
890
  () => k.value.height < k.value.width
891
891
  ), $ = v(r.src), H = v(r.alt), K = v(), I = v(), W = g(() => b.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
892
892
  function j() {
@@ -1300,7 +1300,7 @@ const Wt = { class: "m-toast__message-wrapper" }, jt = { class: "m-toast__messag
1300
1300
  },
1301
1301
  emits: ["close", "click", "open"],
1302
1302
  setup(s, { expose: e, emit: t }) {
1303
- const n = T(() => import("./MazBtn-D7GTVnKj.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(
1303
+ const n = T(() => import("./MazBtn-kEp7hZt8.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(
1304
1304
  () => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
1305
1305
  ), r = T(
1306
1306
  () => import("./exclamation-triangle-BfZLmRbP.mjs")
package/modules/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-Cl2Z9oxB.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.Swipe=e.Swipe;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$7;exports.installDirectives=e.plugin;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$6;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;exports.throttle=e.throttle;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useBreakpoints=e.useBreakpoints;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$3;exports.vClosableInstall=e.plugin$5;exports.vFullscreenImg=e.directive$2;exports.vFullscreenImgInstall=e.plugin$4;exports.vLazyImg=e.directive$1;exports.vLazyImgInstall=e.plugin$2;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$3;exports.waitInstance=e.instance;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-C5Co4FGk.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.Swipe=e.Swipe;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$7;exports.installDirectives=e.plugin;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$6;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;exports.throttle=e.throttle;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useBreakpoints=e.useBreakpoints;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$3;exports.vClosableInstall=e.plugin$5;exports.vFullscreenImg=e.directive$2;exports.vFullscreenImgInstall=e.plugin$4;exports.vLazyImg=e.directive$1;exports.vLazyImgInstall=e.plugin$2;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$3;exports.waitInstance=e.instance;
package/modules/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { D as e, I as t, S as i, b as l, T as n, U as o, W as r, F as u, u as c, c as I, w as d, x as m, d as v, i as g, E as T, p, r as y, z as b, B as C, a as S, m as F, y as h, s as w, e as z, A as H, t as U, J as W, P as k, M as A, H as L, V as O, X as V, R as f, G as j, O as q, L as x, N as B, K as D, Q as M, f as R, g as Z, o as E, q as G, n as J, l as K, j as N, h as P, v as Q, k as X, C as Y } from "./chunks/index-BRqo10xg.mjs";
1
+ import { D as e, I as t, S as i, b as l, T as n, U as o, W as r, F as u, u as c, c as I, w as d, x as m, d as v, i as g, E as T, p, r as y, z as b, B as C, a as S, m as F, y as h, s as w, e as z, A as H, t as U, J as W, P as k, M as A, H as L, V as O, X as V, R as f, G as j, O as q, L as x, N as B, K as D, Q as M, f as R, g as Z, o as E, q as G, n as J, l as K, j as N, h as P, v as Q, k as X, C as Y } from "./chunks/index-CU4cxgKq.mjs";
2
2
  export {
3
3
  e as AosHandler,
4
4
  t as IdleTimeout,
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.40.2"
7
+ "version": "3.40.3"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.40.2",
3
+ "version": "3.40.3",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -109,7 +109,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
109
109
  leftIcon: undefined;
110
110
  rightIcon: undefined;
111
111
  contentClass: undefined;
112
- roundedSize: undefined;
112
+ roundedSize: string;
113
113
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
114
114
  variant: string;
115
115
  size: string;
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
119
119
  leftIcon: undefined;
120
120
  rightIcon: undefined;
121
121
  contentClass: undefined;
122
- roundedSize: undefined;
122
+ roundedSize: string;
123
123
  }>>>, {
124
124
  size: Size;
125
125
  type: "button" | "reset" | "submit";
@@ -25,7 +25,7 @@ export type Props = {
25
25
  elevation?: boolean;
26
26
  /** Set radius to card */
27
27
  radius?: boolean;
28
- /** Set border to card */
28
+ /** Set border to card (in dark mode, the card is always bordered) */
29
29
  bordered?: boolean;
30
30
  /** Number of images shown in the gallery */
31
31
  imagesShowCount?: number;
@@ -39,8 +39,14 @@ export type Props = {
39
39
  noPadding?: boolean;
40
40
  /** Hide overflow */
41
41
  overflowHidden?: boolean;
42
- /** Card can be open and close */
42
+ /**
43
+ * @deprecated Use `collapsible` instead
44
+ */
43
45
  collapsable?: boolean;
46
+ /**
47
+ * Card can be open and close
48
+ */
49
+ collapsible?: boolean;
44
50
  /** Card is open by default if `true` */
45
51
  collapseOpen?: boolean;
46
52
  /** Title of the card in header */
@@ -1,20 +1,59 @@
1
+ import { type HTMLAttributes, type StyleValue } from 'vue';
1
2
  import type { Color } from './types';
2
3
  export type { Color };
3
4
  export type Props = {
4
- /** The color of the component. */
5
+ /**
6
+ * The color of the component.
7
+ * @default primary
8
+ */
5
9
  color?: Color;
6
- /** Remove the elevation of the component. */
10
+ /**
11
+ * Remove the elevation of the component
12
+ * @default false
13
+ */
7
14
  noElevation?: boolean;
15
+ /**
16
+ * Add padding to the content
17
+ * @default true
18
+ */
19
+ padding?: boolean;
20
+ /**
21
+ * The classes to apply to the content div
22
+ */
23
+ contentClass?: HTMLAttributes['class'];
24
+ /**
25
+ * Style apply to the content div
26
+ */
27
+ contentStyle?: StyleValue;
28
+ /**
29
+ * The opacity of the inner div - should be between 0 and 1
30
+ * When 0 the spotlight is completely visible
31
+ * When 1 the spotlight is only visible on borders
32
+ * @default 0.95
33
+ */
34
+ innerOpacity?: number;
8
35
  };
9
36
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
10
37
  noElevation: boolean;
11
38
  color: string;
39
+ padding: boolean;
40
+ contentClass: string;
41
+ contentStyle: undefined;
42
+ innerOpacity: number;
12
43
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
13
44
  noElevation: boolean;
14
45
  color: string;
46
+ padding: boolean;
47
+ contentClass: string;
48
+ contentStyle: undefined;
49
+ innerOpacity: number;
15
50
  }>>>, {
16
51
  color: Color;
17
52
  noElevation: boolean;
53
+ contentClass: any;
54
+ padding: boolean;
55
+ contentStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
56
+ innerOpacity: number;
18
57
  }, {}>, {
19
58
  default?(_: {}): any;
20
59
  }>;
@@ -1,151 +0,0 @@
1
- import '../assets/MazBtn.css';
2
- import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as w, onBeforeMount as A, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as D, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
3
- import { _ as L } from "./MazDialogPromise-CJsnYYpX.mjs";
4
- const P = /* @__PURE__ */ E({
5
- __name: "MazBtn",
6
- props: {
7
- variant: { default: "button" },
8
- size: { default: "md" },
9
- color: { default: "primary" },
10
- type: { default: "button" },
11
- rounded: { type: Boolean },
12
- roundedSize: { default: void 0 },
13
- noRounded: { type: Boolean },
14
- outline: { type: Boolean },
15
- pastel: { type: Boolean },
16
- block: { type: Boolean },
17
- noUnderline: { type: Boolean },
18
- loading: { type: Boolean },
19
- disabled: { type: Boolean },
20
- fab: { type: Boolean },
21
- icon: { default: void 0 },
22
- leftIcon: { default: void 0 },
23
- rightIcon: { default: void 0 },
24
- noPadding: { type: Boolean },
25
- noElevation: { type: Boolean },
26
- contentClass: { default: void 0 }
27
- },
28
- setup(g) {
29
- const k = h(() => import("./MazSpinner-B_yl5MqC.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: z, to: B } = R(), p = w(), e = g;
30
- A(() => {
31
- e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
32
- });
33
- const v = l(() => z ? "a" : B ? "router-link" : "button"), I = l(
34
- () => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
35
- ), b = l(
36
- () => (e.loading || e.disabled) && v.value === "button"
37
- ), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), S = l(() => e.fab && (e.icon || !!p.icon)), T = l(() => v.value === "button" ? e.type : void 0);
38
- return (o, U) => (n(), a(r(v.value), {
39
- disabled: b.value,
40
- class: s(["m-btn", [
41
- `--${o.size}`,
42
- `--rounded-${o.roundedSize}`,
43
- I.value,
44
- C.value,
45
- $.value,
46
- {
47
- "--block": o.block,
48
- "--no-underline": o.noUnderline,
49
- "--fab": o.fab,
50
- "--loading": o.loading,
51
- "--disabled": b.value,
52
- "--icon": M.value,
53
- "--rounded": o.rounded,
54
- "--no-rounded": o.noRounded,
55
- "--no-padding": o.noPadding,
56
- "--no-elevation": o.noElevation
57
- }
58
- ]]),
59
- type: T.value
60
- }, {
61
- default: D(() => [
62
- m.value ? (n(), u(
63
- "div",
64
- {
65
- key: 0,
66
- class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
67
- },
68
- [
69
- t(`
70
- @slot left-icon - The icon to display on the left of the button
71
- `),
72
- d(o.$slots, "left-icon", {}, () => [
73
- typeof o.leftIcon == "string" ? (n(), a(c(f), {
74
- key: 0,
75
- name: o.leftIcon
76
- }, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
77
- ], !0)
78
- ],
79
- 2
80
- /* CLASS */
81
- )) : t("v-if", !0),
82
- S.value ? (n(), u(
83
- "div",
84
- {
85
- key: 1,
86
- class: s(["m-btn__icon", { "maz-invisible": i.value }])
87
- },
88
- [
89
- t(`
90
- @slot icon - The icon to display on the fab button
91
- `),
92
- d(o.$slots, "icon", {}, () => [
93
- typeof o.icon == "string" ? (n(), a(c(f), {
94
- key: 0,
95
- name: o.icon
96
- }, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
97
- ], !0)
98
- ],
99
- 2
100
- /* CLASS */
101
- )) : t("v-if", !0),
102
- o.$slots.default ? (n(), u(
103
- "span",
104
- {
105
- key: 2,
106
- class: s([{ "maz-invisible": i.value }, o.contentClass])
107
- },
108
- [
109
- t(`
110
- @slot default - The content of the button
111
- `),
112
- d(o.$slots, "default", {}, void 0, !0)
113
- ],
114
- 2
115
- /* CLASS */
116
- )) : t("v-if", !0),
117
- y.value ? (n(), u(
118
- "div",
119
- {
120
- key: 3,
121
- class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
122
- },
123
- [
124
- t(`
125
- @slot right-icon - The icon to display on the right of the button
126
- `),
127
- d(o.$slots, "right-icon", {}, () => [
128
- typeof o.rightIcon == "string" ? (n(), a(c(f), {
129
- key: 0,
130
- name: o.rightIcon
131
- }, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
132
- ], !0)
133
- ],
134
- 2
135
- /* CLASS */
136
- )) : t("v-if", !0),
137
- i.value ? (n(), a(c(k), {
138
- key: 4,
139
- class: "m-btn-loader",
140
- size: "2em",
141
- color: o.color
142
- }, null, 8, ["color"])) : t("v-if", !0)
143
- ]),
144
- _: 3
145
- /* FORWARDED */
146
- }, 8, ["disabled", "class", "type"]));
147
- }
148
- }), V = /* @__PURE__ */ L(P, [["__scopeId", "data-v-b67e7c92"]]);
149
- export {
150
- V as default
151
- };
@@ -1,151 +0,0 @@
1
- import '../assets/MazBtn.css';
2
- import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as w, onBeforeMount as A, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as D, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
3
- import { _ as L } from "./MazCarousel-iKzlrVVy.mjs";
4
- const P = /* @__PURE__ */ E({
5
- __name: "MazBtn",
6
- props: {
7
- variant: { default: "button" },
8
- size: { default: "md" },
9
- color: { default: "primary" },
10
- type: { default: "button" },
11
- rounded: { type: Boolean },
12
- roundedSize: { default: void 0 },
13
- noRounded: { type: Boolean },
14
- outline: { type: Boolean },
15
- pastel: { type: Boolean },
16
- block: { type: Boolean },
17
- noUnderline: { type: Boolean },
18
- loading: { type: Boolean },
19
- disabled: { type: Boolean },
20
- fab: { type: Boolean },
21
- icon: { default: void 0 },
22
- leftIcon: { default: void 0 },
23
- rightIcon: { default: void 0 },
24
- noPadding: { type: Boolean },
25
- noElevation: { type: Boolean },
26
- contentClass: { default: void 0 }
27
- },
28
- setup(g) {
29
- const k = h(() => import("./MazSpinner-v_h1kbbd.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: z, to: B } = R(), p = w(), e = g;
30
- A(() => {
31
- e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
32
- });
33
- const v = l(() => z ? "a" : B ? "router-link" : "button"), I = l(
34
- () => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
35
- ), b = l(
36
- () => (e.loading || e.disabled) && v.value === "button"
37
- ), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), S = l(() => e.fab && (e.icon || !!p.icon)), T = l(() => v.value === "button" ? e.type : void 0);
38
- return (o, U) => (n(), a(r(v.value), {
39
- disabled: b.value,
40
- class: s(["m-btn", [
41
- `--${o.size}`,
42
- `--rounded-${o.roundedSize}`,
43
- I.value,
44
- C.value,
45
- $.value,
46
- {
47
- "--block": o.block,
48
- "--no-underline": o.noUnderline,
49
- "--fab": o.fab,
50
- "--loading": o.loading,
51
- "--disabled": b.value,
52
- "--icon": M.value,
53
- "--rounded": o.rounded,
54
- "--no-rounded": o.noRounded,
55
- "--no-padding": o.noPadding,
56
- "--no-elevation": o.noElevation
57
- }
58
- ]]),
59
- type: T.value
60
- }, {
61
- default: D(() => [
62
- m.value ? (n(), u(
63
- "div",
64
- {
65
- key: 0,
66
- class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
67
- },
68
- [
69
- t(`
70
- @slot left-icon - The icon to display on the left of the button
71
- `),
72
- d(o.$slots, "left-icon", {}, () => [
73
- typeof o.leftIcon == "string" ? (n(), a(c(f), {
74
- key: 0,
75
- name: o.leftIcon
76
- }, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
77
- ], !0)
78
- ],
79
- 2
80
- /* CLASS */
81
- )) : t("v-if", !0),
82
- S.value ? (n(), u(
83
- "div",
84
- {
85
- key: 1,
86
- class: s(["m-btn__icon", { "maz-invisible": i.value }])
87
- },
88
- [
89
- t(`
90
- @slot icon - The icon to display on the fab button
91
- `),
92
- d(o.$slots, "icon", {}, () => [
93
- typeof o.icon == "string" ? (n(), a(c(f), {
94
- key: 0,
95
- name: o.icon
96
- }, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
97
- ], !0)
98
- ],
99
- 2
100
- /* CLASS */
101
- )) : t("v-if", !0),
102
- o.$slots.default ? (n(), u(
103
- "span",
104
- {
105
- key: 2,
106
- class: s([{ "maz-invisible": i.value }, o.contentClass])
107
- },
108
- [
109
- t(`
110
- @slot default - The content of the button
111
- `),
112
- d(o.$slots, "default", {}, void 0, !0)
113
- ],
114
- 2
115
- /* CLASS */
116
- )) : t("v-if", !0),
117
- y.value ? (n(), u(
118
- "div",
119
- {
120
- key: 3,
121
- class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
122
- },
123
- [
124
- t(`
125
- @slot right-icon - The icon to display on the right of the button
126
- `),
127
- d(o.$slots, "right-icon", {}, () => [
128
- typeof o.rightIcon == "string" ? (n(), a(c(f), {
129
- key: 0,
130
- name: o.rightIcon
131
- }, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
132
- ], !0)
133
- ],
134
- 2
135
- /* CLASS */
136
- )) : t("v-if", !0),
137
- i.value ? (n(), a(c(k), {
138
- key: 4,
139
- class: "m-btn-loader",
140
- size: "2em",
141
- color: o.color
142
- }, null, 8, ["color"])) : t("v-if", !0)
143
- ]),
144
- _: 3
145
- /* FORWARDED */
146
- }, 8, ["disabled", "class", "type"]));
147
- }
148
- }), V = /* @__PURE__ */ L(P, [["__scopeId", "data-v-b67e7c92"]]);
149
- export {
150
- V as default
151
- };
@@ -1,151 +0,0 @@
1
- import '../assets/MazBtn.css';
2
- import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as w, onBeforeMount as A, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as D, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
3
- import { _ as L } from "./MazPhoneNumberInput-DGf04XP4.mjs";
4
- const P = /* @__PURE__ */ E({
5
- __name: "MazBtn",
6
- props: {
7
- variant: { default: "button" },
8
- size: { default: "md" },
9
- color: { default: "primary" },
10
- type: { default: "button" },
11
- rounded: { type: Boolean },
12
- roundedSize: { default: void 0 },
13
- noRounded: { type: Boolean },
14
- outline: { type: Boolean },
15
- pastel: { type: Boolean },
16
- block: { type: Boolean },
17
- noUnderline: { type: Boolean },
18
- loading: { type: Boolean },
19
- disabled: { type: Boolean },
20
- fab: { type: Boolean },
21
- icon: { default: void 0 },
22
- leftIcon: { default: void 0 },
23
- rightIcon: { default: void 0 },
24
- noPadding: { type: Boolean },
25
- noElevation: { type: Boolean },
26
- contentClass: { default: void 0 }
27
- },
28
- setup(g) {
29
- const k = h(() => import("./MazSpinner-CPFxMAVg.mjs")), f = h(() => import("./MazIcon-DgT8iWEh.mjs")), { href: z, to: B } = R(), p = w(), e = g;
30
- A(() => {
31
- e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
32
- });
33
- const v = l(() => z ? "a" : B ? "router-link" : "button"), I = l(
34
- () => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
35
- ), b = l(
36
- () => (e.loading || e.disabled) && v.value === "button"
37
- ), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), S = l(() => e.fab && (e.icon || !!p.icon)), T = l(() => v.value === "button" ? e.type : void 0);
38
- return (o, U) => (n(), a(r(v.value), {
39
- disabled: b.value,
40
- class: s(["m-btn", [
41
- `--${o.size}`,
42
- `--rounded-${o.roundedSize}`,
43
- I.value,
44
- C.value,
45
- $.value,
46
- {
47
- "--block": o.block,
48
- "--no-underline": o.noUnderline,
49
- "--fab": o.fab,
50
- "--loading": o.loading,
51
- "--disabled": b.value,
52
- "--icon": M.value,
53
- "--rounded": o.rounded,
54
- "--no-rounded": o.noRounded,
55
- "--no-padding": o.noPadding,
56
- "--no-elevation": o.noElevation
57
- }
58
- ]]),
59
- type: T.value
60
- }, {
61
- default: D(() => [
62
- m.value ? (n(), u(
63
- "div",
64
- {
65
- key: 0,
66
- class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
67
- },
68
- [
69
- t(`
70
- @slot left-icon - The icon to display on the left of the button
71
- `),
72
- d(o.$slots, "left-icon", {}, () => [
73
- typeof o.leftIcon == "string" ? (n(), a(c(f), {
74
- key: 0,
75
- name: o.leftIcon
76
- }, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
77
- ], !0)
78
- ],
79
- 2
80
- /* CLASS */
81
- )) : t("v-if", !0),
82
- S.value ? (n(), u(
83
- "div",
84
- {
85
- key: 1,
86
- class: s(["m-btn__icon", { "maz-invisible": i.value }])
87
- },
88
- [
89
- t(`
90
- @slot icon - The icon to display on the fab button
91
- `),
92
- d(o.$slots, "icon", {}, () => [
93
- typeof o.icon == "string" ? (n(), a(c(f), {
94
- key: 0,
95
- name: o.icon
96
- }, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
97
- ], !0)
98
- ],
99
- 2
100
- /* CLASS */
101
- )) : t("v-if", !0),
102
- o.$slots.default ? (n(), u(
103
- "span",
104
- {
105
- key: 2,
106
- class: s([{ "maz-invisible": i.value }, o.contentClass])
107
- },
108
- [
109
- t(`
110
- @slot default - The content of the button
111
- `),
112
- d(o.$slots, "default", {}, void 0, !0)
113
- ],
114
- 2
115
- /* CLASS */
116
- )) : t("v-if", !0),
117
- y.value ? (n(), u(
118
- "div",
119
- {
120
- key: 3,
121
- class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
122
- },
123
- [
124
- t(`
125
- @slot right-icon - The icon to display on the right of the button
126
- `),
127
- d(o.$slots, "right-icon", {}, () => [
128
- typeof o.rightIcon == "string" ? (n(), a(c(f), {
129
- key: 0,
130
- name: o.rightIcon
131
- }, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
132
- ], !0)
133
- ],
134
- 2
135
- /* CLASS */
136
- )) : t("v-if", !0),
137
- i.value ? (n(), a(c(k), {
138
- key: 4,
139
- class: "m-btn-loader",
140
- size: "2em",
141
- color: o.color
142
- }, null, 8, ["color"])) : t("v-if", !0)
143
- ]),
144
- _: 3
145
- /* FORWARDED */
146
- }, 8, ["disabled", "class", "type"]));
147
- }
148
- }), V = /* @__PURE__ */ L(P, [["__scopeId", "data-v-b67e7c92"]]);
149
- export {
150
- V as default
151
- };