maz-ui 3.47.2-beta.5 → 3.47.2-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.
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +22 -2
- package/components/MazDropdown.mjs +1 -1
- package/components/MazGallery.d.ts +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBottomSheet-CGRvZmGd.mjs → MazBottomSheet-C9GWCGys.mjs} +1 -1
- package/components/chunks/MazBtn-BBb9-9O6.mjs +105 -0
- package/components/chunks/MazBtn-CMyQNKuk.mjs +105 -0
- package/components/chunks/MazBtn-CfUZ9QSO.mjs +105 -0
- package/components/chunks/MazBtn-D7tI764y.mjs +105 -0
- package/components/chunks/MazBtn-DA2lg-5s.mjs +113 -0
- package/components/chunks/MazBtn-DER-sPjl.mjs +105 -0
- package/components/chunks/MazBtn-DHfi8M3z.mjs +105 -0
- package/components/chunks/MazBtn-DKyz5Hc0.mjs +105 -0
- package/components/chunks/MazBtn-DZb-6vcl.mjs +105 -0
- package/components/chunks/MazBtn-DhEO9uvT.mjs +105 -0
- package/components/chunks/MazBtn-DpFjxnMy.mjs +105 -0
- package/components/chunks/MazBtn-IPfW92RY.mjs +105 -0
- package/components/chunks/MazBtn-Lsac2Q0p.mjs +105 -0
- package/components/chunks/MazBtn-VU3XSEv8.mjs +110 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-CAPZoSqv.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-CSv4VpC9.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BTl370Qq.mjs → MazCheckbox-BI2um2gY.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BBL0vgqe.mjs → MazCheckbox-DwAd7p8o.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DTU2jEkC.mjs → MazCheckbox-IhiWZ8D0.mjs} +1 -1
- package/components/chunks/{MazChecklist-CQv-sXP1.mjs → MazChecklist-Bqd7qTO1.mjs} +1 -1
- package/components/chunks/{MazDialog-khofH-7I.mjs → MazDialog-xPCkmhrE.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-ZRA2ZrO4.mjs → MazDialogPromise-dIHWE8dO.mjs} +2 -2
- package/components/chunks/MazDropdown-7WqbXnPN.mjs +442 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-CRY5X5zS.mjs} +2 -2
- package/components/chunks/MazIcon-B3gy-jQ6.mjs +4 -0
- package/components/chunks/{MazIcon-BdQtfzuy.mjs → MazIcon-D3TB52NM.mjs} +1 -1
- package/components/chunks/{MazInput-DzWkS-g8.mjs → MazInput-DG-grU7m.mjs} +1 -1
- package/components/chunks/{MazInput-geBqeT4i.mjs → MazInput-ROgC-JLt.mjs} +2 -2
- package/components/chunks/{MazInput-eOtg1L9F.mjs → MazInput-rW-KBJGJ.mjs} +2 -2
- package/components/chunks/MazInputNumber-DoeT5Lcu.mjs +571 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CZiypHp3.mjs} +1 -1
- package/components/chunks/MazInputTags-DGAglIQb.mjs +584 -0
- package/components/chunks/{MazLink-Cd4MwIC9.mjs → MazLink-yKgOtTlk.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-DHcYPXlE.mjs → MazLoadingBar-D8a5KF29.mjs} +1 -1
- package/components/chunks/MazPagination-eJFyS5Nn.mjs +329 -0
- package/components/chunks/{MazPhoneNumberInput-BTm8A0bL.mjs → MazPhoneNumberInput-Bbr0zHPZ.mjs} +3 -3
- package/components/chunks/{MazPicker-DwWiIYAR.mjs → MazPicker-EMOuyWJy.mjs} +538 -539
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-DJGgb6BT.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-Cg1uqryw.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-BLUXEs0G.mjs} +1 -1
- package/components/chunks/{MazSelect-DOiqBTNY.mjs → MazSelect-BDMOrVry.mjs} +2 -2
- package/components/chunks/{MazSelect-Cnz3p3n2.mjs → MazSelect-BUETsREx.mjs} +3 -3
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner--fscjBdL.mjs} +1 -1
- package/components/chunks/MazSpinner-B8vOa-3i.mjs +34 -0
- package/components/chunks/MazSpinner-BODHZQ9h.mjs +34 -0
- package/components/chunks/MazSpinner-BdOKUqKA.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C0PBSYpC.mjs} +1 -1
- package/components/chunks/{MazSpinner-B1PXhYRx.mjs → MazSpinner-CEgSruvD.mjs} +1 -1
- package/components/chunks/{MazSpinner-Dhg-s-9s.mjs → MazSpinner-CLlK6hHp.mjs} +1 -1
- package/components/chunks/MazSpinner-CMMBCwk2.mjs +34 -0
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CQpzVTYF.mjs} +1 -1
- package/components/chunks/MazSpinner-ChqoF_fX.mjs +34 -0
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-D5ciNjTR.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-DJM02T-b.mjs} +1 -1
- package/components/chunks/{MazSpinner-B7tPZpHw.mjs → MazSpinner-DebSlkVT.mjs} +1 -1
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-RzOGVi6V.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-VN2Vol2B.mjs} +1 -1
- package/components/chunks/MazSpinner-dm4RUkiD.mjs +34 -0
- package/components/chunks/MazSpinner-oLVdOGaR.mjs +34 -0
- package/components/chunks/{MazTable-BKdEx63E.mjs → MazTable-CWsaB02U.mjs} +1 -1
- package/components/chunks/{MazTableCell-CozcugiL.mjs → MazTableCell-CgiGF3bL.mjs} +1 -1
- package/components/chunks/{MazTableRow-bLFpjzu1.mjs → MazTableRow-6KrQQQbm.mjs} +1 -1
- package/components/chunks/{MazTableTitle-Qk239mu9.mjs → MazTableTitle-C8P3v8b6.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-BCgH8NZP.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-SZHtOzgz.cjs +1 -0
- package/modules/chunks/MazBtn-y5LW9A2T.mjs +105 -0
- package/modules/chunks/{MazIcon-B8BoiF7R.cjs → MazIcon-BpVDZGXl.cjs} +1 -1
- package/modules/chunks/{MazIcon-C6zDSPgJ.mjs → MazIcon-Dj66ziAh.mjs} +1 -1
- package/modules/chunks/{MazSpinner-B-4tL9pK.cjs → MazSpinner-CPT6UF2e.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BvJydaeF.mjs → MazSpinner-uMrdk_99.mjs} +1 -1
- package/modules/chunks/{index-Bf4X7amE.mjs → index-BG6gPie5.mjs} +4 -4
- package/modules/chunks/{index-F0B533E8.cjs → index-BTegnVLg.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCard.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +22 -2
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +1 -1
- package/types/components/MazPullToRefresh.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BJxI5VQw.mjs +0 -106
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-C_BULYqZ.mjs +0 -106
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-Sj-Pq0YV.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cUQ1Tykp.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazBtn-psosbsi3.mjs +0 -106
- package/components/chunks/MazDropdown-peYVJsXv.mjs +0 -441
- package/components/chunks/MazIcon-Bk4mYF1h.mjs +0 -4
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazInputTags-Dj3sW-e5.mjs +0 -585
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DOSj2BnX.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/modules/chunks/MazBtn-D7el03Rl.cjs +0 -1
- package/modules/chunks/MazBtn-D8uOirkn.mjs +0 -106
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RouteLocationRaw } from 'vue-router';
|
|
2
2
|
import type { Color } from './MazBtn.vue';
|
|
3
3
|
import type { MazLinkProps } from './MazLink.vue';
|
|
4
|
-
import type { Icon, Position } from './types';
|
|
4
|
+
import type { Icon, Position, Size } from './types';
|
|
5
5
|
import { type HTMLAttributes } from 'vue';
|
|
6
|
-
export type { Color, Position };
|
|
6
|
+
export type { Color, Position, Size };
|
|
7
7
|
type ItemBase = Record<string, unknown> & {
|
|
8
8
|
label: string;
|
|
9
9
|
class?: unknown;
|
|
@@ -77,7 +77,22 @@ export interface MazDropdownProps {
|
|
|
77
77
|
* If true, the button will have a full width
|
|
78
78
|
*/
|
|
79
79
|
block?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Custom dropdown icon
|
|
82
|
+
* You can use a string to define the icon name or a Vue component
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
80
85
|
dropdownIcon?: string | Icon;
|
|
86
|
+
/**
|
|
87
|
+
* If true, the dropdown icon will rotate when the dropdown is open
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
dropdownIconAnimation?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Size of the button
|
|
93
|
+
* @default 'md'
|
|
94
|
+
*/
|
|
95
|
+
size?: Size;
|
|
81
96
|
}
|
|
82
97
|
declare function __VLS_template(): {
|
|
83
98
|
slots: {
|
|
@@ -86,6 +101,9 @@ declare function __VLS_template(): {
|
|
|
86
101
|
isOpen: boolean;
|
|
87
102
|
}): any;
|
|
88
103
|
default?(_: {}): any;
|
|
104
|
+
"dropdown-icon"?(_: {
|
|
105
|
+
isOpen: boolean;
|
|
106
|
+
}): any;
|
|
89
107
|
dropdown?(_: {
|
|
90
108
|
items: MenuItem[];
|
|
91
109
|
}): any;
|
|
@@ -131,6 +149,7 @@ declare const __VLS_component: import("vue").DefineComponent<MazDropdownProps, {
|
|
|
131
149
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
132
150
|
}>, {
|
|
133
151
|
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
152
|
+
size: Size;
|
|
134
153
|
color: Color;
|
|
135
154
|
class: HTMLAttributes["class"];
|
|
136
155
|
id: string;
|
|
@@ -138,6 +157,7 @@ declare const __VLS_component: import("vue").DefineComponent<MazDropdownProps, {
|
|
|
138
157
|
trigger: "click" | "hover" | "both";
|
|
139
158
|
items: MenuItem[];
|
|
140
159
|
screenReaderDescription: string;
|
|
160
|
+
dropdownIconAnimation: boolean;
|
|
141
161
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
142
162
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
143
163
|
export default _default;
|
|
@@ -151,8 +151,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
151
|
blur: boolean;
|
|
152
152
|
width: string | number;
|
|
153
153
|
height: string | number;
|
|
154
|
-
scale: boolean;
|
|
155
154
|
lazy: boolean;
|
|
155
|
+
scale: boolean;
|
|
156
156
|
images: MazGalleryImage[];
|
|
157
157
|
imagesShownCount: number;
|
|
158
158
|
noRemaining: boolean;
|
|
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
52
52
|
size: Size;
|
|
53
53
|
class: HTMLAttributes["class"];
|
|
54
54
|
disabled: boolean;
|
|
55
|
-
max: number;
|
|
56
|
-
min: number;
|
|
57
55
|
modelValue: number;
|
|
58
56
|
step: number;
|
|
59
57
|
inputmode: "search" | "text" | "none" | "email" | "tel" | "decimal" | "url" | "numeric";
|
|
58
|
+
max: number;
|
|
59
|
+
min: number;
|
|
60
60
|
noButtons: boolean;
|
|
61
61
|
textCenter: boolean;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -46,11 +46,11 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
46
46
|
"onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
|
|
47
47
|
onFormatted?: ((value: string | undefined) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
-
max: number;
|
|
50
|
-
min: number;
|
|
51
49
|
modelValue: number;
|
|
52
50
|
currency: string;
|
|
53
51
|
locale: string;
|
|
52
|
+
max: number;
|
|
53
|
+
min: number;
|
|
54
54
|
noIcon: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
56
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -209,8 +209,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
209
209
|
color: Color;
|
|
210
210
|
class: HTMLAttributes["class"];
|
|
211
211
|
id: string;
|
|
212
|
-
orientation: "row" | "col" | "responsive";
|
|
213
212
|
modelValue: string;
|
|
213
|
+
orientation: "row" | "col" | "responsive";
|
|
214
214
|
placeholder: string;
|
|
215
215
|
listPosition: Position;
|
|
216
216
|
searchThreshold: number;
|
|
@@ -90,13 +90,13 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
90
90
|
color: Color;
|
|
91
91
|
class: HTMLAttributes["class"];
|
|
92
92
|
disabled: boolean;
|
|
93
|
-
format: string;
|
|
94
93
|
modelValue: string | Partial<import("./MazPicker/types").RangeValue>;
|
|
95
94
|
open: boolean;
|
|
96
95
|
locale: string;
|
|
97
96
|
double: boolean;
|
|
98
97
|
inline: boolean;
|
|
99
98
|
placeholder: string;
|
|
99
|
+
format: string;
|
|
100
100
|
noUseBrowserLocale: boolean;
|
|
101
101
|
minDate: string;
|
|
102
102
|
maxDate: string;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
35
35
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
offset: number;
|
|
39
38
|
action: () => unknown;
|
|
39
|
+
offset: number;
|
|
40
40
|
distance: number;
|
|
41
41
|
containerSelector: string;
|
|
42
42
|
headerClass: string;
|
|
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
47
47
|
}>, {
|
|
48
48
|
color: Color;
|
|
49
49
|
height: string;
|
|
50
|
-
offset: number;
|
|
51
50
|
teleportSelector: string;
|
|
51
|
+
offset: number;
|
|
52
52
|
distance: number;
|
|
53
53
|
contentSelector: string;
|
|
54
54
|
barClass: HTMLAttributes["class"];
|
|
@@ -102,9 +102,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
102
|
}>, {
|
|
103
103
|
size: string;
|
|
104
104
|
color: Color;
|
|
105
|
+
labels: unknown[];
|
|
105
106
|
max: number;
|
|
106
107
|
min: number;
|
|
107
|
-
labels: unknown[];
|
|
108
108
|
noDivider: boolean;
|
|
109
109
|
log: boolean;
|
|
110
110
|
noCursorAnim: boolean;
|
|
@@ -32,7 +32,6 @@ declare const _default: import("vue").DefineComponent<MazFullscreenImgProps, {},
|
|
|
32
32
|
duration?: number;
|
|
33
33
|
easing?: string;
|
|
34
34
|
};
|
|
35
|
-
offset: number;
|
|
36
35
|
destroy: () => void;
|
|
37
36
|
clickedElementBounds: {
|
|
38
37
|
top: number;
|
|
@@ -40,6 +39,7 @@ declare const _default: import("vue").DefineComponent<MazFullscreenImgProps, {},
|
|
|
40
39
|
height: number;
|
|
41
40
|
width: number;
|
|
42
41
|
};
|
|
42
|
+
offset: number;
|
|
43
43
|
openInstanceClass: string;
|
|
44
44
|
alt: string | null;
|
|
45
45
|
zoom: boolean;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
-
import { _ as L } from "./MazInputPrice-DoTnDDIN.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const N = {
|
|
4
|
-
key: 2,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, P = /* @__PURE__ */ w({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(z) {
|
|
31
|
-
const n = z, b = v(() => import("./MazSpinner-Bb3f2t6w.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
-
), m = o(
|
|
34
|
-
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
-
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
-
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
-
disabled: m.value || void 0,
|
|
38
|
-
class: l(["m-btn", [
|
|
39
|
-
`--${e.size}`,
|
|
40
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
-
j.value,
|
|
42
|
-
I.value,
|
|
43
|
-
k.value,
|
|
44
|
-
M.value,
|
|
45
|
-
{
|
|
46
|
-
"--block": e.block,
|
|
47
|
-
"--no-underline": e.noUnderline,
|
|
48
|
-
"--fab": e.fab,
|
|
49
|
-
"--loading": e.loading,
|
|
50
|
-
"--disabled": m.value,
|
|
51
|
-
"--icon": S.value,
|
|
52
|
-
"--rounded": e.rounded,
|
|
53
|
-
"--no-rounded": e.noRounded,
|
|
54
|
-
"--no-padding": e.noPadding,
|
|
55
|
-
"--no-elevation": e.noElevation
|
|
56
|
-
}
|
|
57
|
-
]]),
|
|
58
|
-
type: F.value
|
|
59
|
-
}, {
|
|
60
|
-
default: R(() => [
|
|
61
|
-
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
-
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
-
key: 0,
|
|
64
|
-
name: e.leftIcon,
|
|
65
|
-
class: l([s.value])
|
|
66
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: l([s.value])
|
|
69
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
-
], !0),
|
|
71
|
-
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
-
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
-
key: 0,
|
|
74
|
-
name: e.icon,
|
|
75
|
-
class: l([s.value])
|
|
76
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: l([s.value])
|
|
79
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
-
], !0) : i("v-if", !0),
|
|
81
|
-
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
-
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
-
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
-
key: 0,
|
|
85
|
-
name: e.rightIcon,
|
|
86
|
-
class: l([s.value])
|
|
87
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
-
key: 1,
|
|
89
|
-
class: l([s.value])
|
|
90
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
-
], !0) : i("v-if", !0),
|
|
92
|
-
B.value ? (t(), A("div", N, [
|
|
93
|
-
D(d(b), {
|
|
94
|
-
size: "2em",
|
|
95
|
-
color: e.color
|
|
96
|
-
}, null, 8, ["color"])
|
|
97
|
-
])) : i("v-if", !0)
|
|
98
|
-
]),
|
|
99
|
-
_: 3
|
|
100
|
-
/* FORWARDED */
|
|
101
|
-
}, 8, ["disabled", "class", "type"]));
|
|
102
|
-
}
|
|
103
|
-
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
-
export {
|
|
105
|
-
q as default
|
|
106
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, defineAsyncComponent as g, useAttrs as w, useSlots as E, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as c, normalizeClass as l, withCtx as P, renderSlot as f, unref as y, createCommentVNode as r, createElementBlock as R, createVNode as A } from "vue";
|
|
2
|
-
import '../assets/MazBtn.css';const D = {
|
|
3
|
-
key: 2,
|
|
4
|
-
class: "m-btn-loader-container"
|
|
5
|
-
}, L = /* @__PURE__ */ F({
|
|
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
|
-
justify: { default: "center" }
|
|
28
|
-
},
|
|
29
|
-
setup(u) {
|
|
30
|
-
const n = u, d = g(() => import("./MazSpinner-BcB0szZB.mjs")), i = g(() => import("./MazIcon-BbvBov5G.mjs")), { href: v, to: j } = w(), p = E(), m = o(() => v ? "a" : j ? "router-link" : "button"), h = o(
|
|
31
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
32
|
-
), b = o(
|
|
33
|
-
() => (n.loading || n.disabled) && m.value === "button"
|
|
34
|
-
), I = o(() => b.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!p["left-icon"] || n.leftIcon), z = o(() => !!p["right-icon"] || n.rightIcon), S = o(() => C.value || z.value), $ = o(() => n.icon || !!p.icon), M = o(() => m.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), O = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
35
|
-
return (e, U) => (t(), a(c(m.value), {
|
|
36
|
-
disabled: b.value || void 0,
|
|
37
|
-
class: l(["m-btn", [
|
|
38
|
-
`--${e.size}`,
|
|
39
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
40
|
-
h.value,
|
|
41
|
-
I.value,
|
|
42
|
-
k.value,
|
|
43
|
-
O.value,
|
|
44
|
-
{
|
|
45
|
-
"--block": e.block,
|
|
46
|
-
"--no-underline": e.noUnderline,
|
|
47
|
-
"--fab": e.fab,
|
|
48
|
-
"--loading": e.loading,
|
|
49
|
-
"--disabled": b.value,
|
|
50
|
-
"--icon": S.value,
|
|
51
|
-
"--rounded": e.rounded,
|
|
52
|
-
"--no-rounded": e.noRounded,
|
|
53
|
-
"--no-padding": e.noPadding,
|
|
54
|
-
"--no-elevation": e.noElevation
|
|
55
|
-
}
|
|
56
|
-
]]),
|
|
57
|
-
type: M.value
|
|
58
|
-
}, {
|
|
59
|
-
default: P(() => [
|
|
60
|
-
f(e.$slots, "left-icon", {}, () => [
|
|
61
|
-
typeof e.leftIcon == "string" ? (t(), a(y(i), {
|
|
62
|
-
key: 0,
|
|
63
|
-
name: e.leftIcon,
|
|
64
|
-
class: l([s.value])
|
|
65
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(c(e.leftIcon), {
|
|
66
|
-
key: 1,
|
|
67
|
-
class: l([s.value])
|
|
68
|
-
}, null, 8, ["class"])) : r("v-if", !0)
|
|
69
|
-
], !0),
|
|
70
|
-
$.value ? f(e.$slots, "icon", { key: 0 }, () => [
|
|
71
|
-
typeof e.icon == "string" ? (t(), a(y(i), {
|
|
72
|
-
key: 0,
|
|
73
|
-
name: e.icon,
|
|
74
|
-
class: l([s.value])
|
|
75
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(c(e.icon), {
|
|
76
|
-
key: 1,
|
|
77
|
-
class: l([s.value])
|
|
78
|
-
}, null, 8, ["class"])) : r("v-if", !0)
|
|
79
|
-
], !0) : r("v-if", !0),
|
|
80
|
-
f(e.$slots, "default", {}, void 0, !0),
|
|
81
|
-
z.value ? f(e.$slots, "right-icon", { key: 1 }, () => [
|
|
82
|
-
typeof e.rightIcon == "string" ? (t(), a(y(i), {
|
|
83
|
-
key: 0,
|
|
84
|
-
name: e.rightIcon,
|
|
85
|
-
class: l([s.value])
|
|
86
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(c(e.rightIcon), {
|
|
87
|
-
key: 1,
|
|
88
|
-
class: l([s.value])
|
|
89
|
-
}, null, 8, ["class"])) : r("v-if", !0)
|
|
90
|
-
], !0) : r("v-if", !0),
|
|
91
|
-
B.value ? (t(), R("div", D, [
|
|
92
|
-
A(y(d), {
|
|
93
|
-
size: "2em",
|
|
94
|
-
color: e.color
|
|
95
|
-
}, null, 8, ["color"])
|
|
96
|
-
])) : r("v-if", !0)
|
|
97
|
-
]),
|
|
98
|
-
_: 3
|
|
99
|
-
/* FORWARDED */
|
|
100
|
-
}, 8, ["disabled", "class", "type"]));
|
|
101
|
-
}
|
|
102
|
-
}), N = (u, n) => {
|
|
103
|
-
const d = u.__vccOpts || u;
|
|
104
|
-
for (const [i, v] of n)
|
|
105
|
-
d[i] = v;
|
|
106
|
-
return d;
|
|
107
|
-
}, T = /* @__PURE__ */ N(L, [["__scopeId", "data-v-d3a1ed01"]]), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
108
|
-
__proto__: null,
|
|
109
|
-
default: T
|
|
110
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
111
|
-
export {
|
|
112
|
-
q as M,
|
|
113
|
-
N as _
|
|
114
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
-
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const N = {
|
|
4
|
-
key: 2,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, P = /* @__PURE__ */ w({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(z) {
|
|
31
|
-
const n = z, b = v(() => import("./MazSpinner-yr9xVdAa.mjs")), c = v(() => import("./MazIcon-Bk4mYF1h.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
-
), m = o(
|
|
34
|
-
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
-
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
-
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
-
disabled: m.value || void 0,
|
|
38
|
-
class: l(["m-btn", [
|
|
39
|
-
`--${e.size}`,
|
|
40
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
-
j.value,
|
|
42
|
-
I.value,
|
|
43
|
-
k.value,
|
|
44
|
-
M.value,
|
|
45
|
-
{
|
|
46
|
-
"--block": e.block,
|
|
47
|
-
"--no-underline": e.noUnderline,
|
|
48
|
-
"--fab": e.fab,
|
|
49
|
-
"--loading": e.loading,
|
|
50
|
-
"--disabled": m.value,
|
|
51
|
-
"--icon": S.value,
|
|
52
|
-
"--rounded": e.rounded,
|
|
53
|
-
"--no-rounded": e.noRounded,
|
|
54
|
-
"--no-padding": e.noPadding,
|
|
55
|
-
"--no-elevation": e.noElevation
|
|
56
|
-
}
|
|
57
|
-
]]),
|
|
58
|
-
type: F.value
|
|
59
|
-
}, {
|
|
60
|
-
default: R(() => [
|
|
61
|
-
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
-
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
-
key: 0,
|
|
64
|
-
name: e.leftIcon,
|
|
65
|
-
class: l([s.value])
|
|
66
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: l([s.value])
|
|
69
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
-
], !0),
|
|
71
|
-
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
-
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
-
key: 0,
|
|
74
|
-
name: e.icon,
|
|
75
|
-
class: l([s.value])
|
|
76
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: l([s.value])
|
|
79
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
-
], !0) : i("v-if", !0),
|
|
81
|
-
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
-
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
-
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
-
key: 0,
|
|
85
|
-
name: e.rightIcon,
|
|
86
|
-
class: l([s.value])
|
|
87
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
-
key: 1,
|
|
89
|
-
class: l([s.value])
|
|
90
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
-
], !0) : i("v-if", !0),
|
|
92
|
-
B.value ? (t(), A("div", N, [
|
|
93
|
-
D(d(b), {
|
|
94
|
-
size: "2em",
|
|
95
|
-
color: e.color
|
|
96
|
-
}, null, 8, ["color"])
|
|
97
|
-
])) : i("v-if", !0)
|
|
98
|
-
]),
|
|
99
|
-
_: 3
|
|
100
|
-
/* FORWARDED */
|
|
101
|
-
}, 8, ["disabled", "class", "type"]));
|
|
102
|
-
}
|
|
103
|
-
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
-
export {
|
|
105
|
-
q as default
|
|
106
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
-
import { _ as L } from "./MazCarousel-DccWVW8H.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const N = {
|
|
4
|
-
key: 2,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, P = /* @__PURE__ */ w({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(z) {
|
|
31
|
-
const n = z, b = v(() => import("./MazSpinner-D3-pqOh3.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
-
), m = o(
|
|
34
|
-
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
-
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
-
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
-
disabled: m.value || void 0,
|
|
38
|
-
class: l(["m-btn", [
|
|
39
|
-
`--${e.size}`,
|
|
40
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
-
j.value,
|
|
42
|
-
I.value,
|
|
43
|
-
k.value,
|
|
44
|
-
M.value,
|
|
45
|
-
{
|
|
46
|
-
"--block": e.block,
|
|
47
|
-
"--no-underline": e.noUnderline,
|
|
48
|
-
"--fab": e.fab,
|
|
49
|
-
"--loading": e.loading,
|
|
50
|
-
"--disabled": m.value,
|
|
51
|
-
"--icon": S.value,
|
|
52
|
-
"--rounded": e.rounded,
|
|
53
|
-
"--no-rounded": e.noRounded,
|
|
54
|
-
"--no-padding": e.noPadding,
|
|
55
|
-
"--no-elevation": e.noElevation
|
|
56
|
-
}
|
|
57
|
-
]]),
|
|
58
|
-
type: F.value
|
|
59
|
-
}, {
|
|
60
|
-
default: R(() => [
|
|
61
|
-
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
-
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
-
key: 0,
|
|
64
|
-
name: e.leftIcon,
|
|
65
|
-
class: l([s.value])
|
|
66
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: l([s.value])
|
|
69
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
-
], !0),
|
|
71
|
-
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
-
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
-
key: 0,
|
|
74
|
-
name: e.icon,
|
|
75
|
-
class: l([s.value])
|
|
76
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: l([s.value])
|
|
79
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
-
], !0) : i("v-if", !0),
|
|
81
|
-
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
-
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
-
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
-
key: 0,
|
|
85
|
-
name: e.rightIcon,
|
|
86
|
-
class: l([s.value])
|
|
87
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
-
key: 1,
|
|
89
|
-
class: l([s.value])
|
|
90
|
-
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
-
], !0) : i("v-if", !0),
|
|
92
|
-
B.value ? (t(), A("div", N, [
|
|
93
|
-
D(d(b), {
|
|
94
|
-
size: "2em",
|
|
95
|
-
color: e.color
|
|
96
|
-
}, null, 8, ["color"])
|
|
97
|
-
])) : i("v-if", !0)
|
|
98
|
-
]),
|
|
99
|
-
_: 3
|
|
100
|
-
/* FORWARDED */
|
|
101
|
-
}, 8, ["disabled", "class", "type"]));
|
|
102
|
-
}
|
|
103
|
-
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
-
export {
|
|
105
|
-
q as default
|
|
106
|
-
};
|