maz-ui 3.8.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/components/MazAvatar.mjs +23 -185
  2. package/components/MazAvatar.umd.js +2 -2
  3. package/components/MazBackdrop.mjs +1 -1
  4. package/components/MazBackdrop.umd.js +1 -1
  5. package/components/MazBadge.mjs +3 -3
  6. package/components/MazBadge.umd.js +2 -2
  7. package/components/MazBottomSheet.mjs +60 -33
  8. package/components/MazBottomSheet.umd.js +2 -2
  9. package/components/MazBtn.mjs +25 -20
  10. package/components/MazBtn.umd.js +2 -2
  11. package/components/MazCard.mjs +312 -301
  12. package/components/MazCard.umd.js +2 -2
  13. package/components/MazCarousel.mjs +93 -38
  14. package/components/MazCarousel.umd.js +2 -2
  15. package/components/MazChart.mjs +79 -120
  16. package/components/MazChart.umd.js +1 -2
  17. package/components/MazCheckbox.mjs +3 -3
  18. package/components/MazCheckbox.umd.js +2 -2
  19. package/components/MazDialog.mjs +61 -34
  20. package/components/MazDialog.umd.js +2 -2
  21. package/components/MazDialogPromise.mjs +75 -58
  22. package/components/MazDialogPromise.umd.js +2 -2
  23. package/components/MazDrawer.mjs +57 -30
  24. package/components/MazDrawer.umd.js +2 -2
  25. package/components/MazDropzone.mjs +4 -4
  26. package/components/MazDropzone.umd.js +2 -2
  27. package/components/MazGallery.mjs +114 -292
  28. package/components/MazGallery.umd.js +2 -2
  29. package/components/MazIcon.mjs +7 -2
  30. package/components/MazIcon.umd.js +2 -2
  31. package/components/MazInput.mjs +46 -40
  32. package/components/MazInput.umd.js +2 -2
  33. package/components/MazInputNumber.mjs +175 -125
  34. package/components/MazInputNumber.umd.js +2 -2
  35. package/components/MazInputPrice.mjs +97 -91
  36. package/components/MazInputPrice.umd.js +2 -2
  37. package/components/MazInputTags.mjs +135 -107
  38. package/components/MazInputTags.umd.js +2 -2
  39. package/components/MazLazyImg.mjs +10 -9
  40. package/components/MazLazyImg.umd.js +2 -2
  41. package/components/MazPhoneNumberInput.mjs +165 -90
  42. package/components/MazPhoneNumberInput.umd.js +2 -2
  43. package/components/MazPicker.mjs +349 -261
  44. package/components/MazPicker.umd.js +2 -2
  45. package/components/MazRadioButtons.mjs +3 -3
  46. package/components/MazRadioButtons.umd.js +2 -2
  47. package/components/MazSelect.mjs +155 -80
  48. package/components/MazSelect.umd.js +2 -2
  49. package/components/MazSlider.mjs +6 -6
  50. package/components/MazSlider.umd.js +2 -2
  51. package/components/MazSpinner.mjs +4 -4
  52. package/components/MazSpinner.umd.js +2 -2
  53. package/components/MazStepper.mjs +16 -11
  54. package/components/MazStepper.umd.js +2 -2
  55. package/components/MazSwitch.mjs +6 -6
  56. package/components/MazSwitch.umd.js +2 -2
  57. package/components/MazTabsBar.mjs +29 -24
  58. package/components/MazTabsBar.umd.js +2 -2
  59. package/components/MazTabsContent.mjs +7 -2
  60. package/components/MazTabsContent.umd.js +2 -2
  61. package/components/MazTabsContentItem.mjs +5 -6
  62. package/components/MazTabsContentItem.umd.js +2 -2
  63. package/components/MazTextarea.mjs +26 -17
  64. package/components/MazTextarea.umd.js +2 -2
  65. package/components/MazTransitionExpand.mjs +3 -3
  66. package/components/MazTransitionExpand.umd.js +2 -2
  67. package/components/assets/check-ac2fdfbb.mjs +31 -0
  68. package/components/assets/eye-ac35bb54.mjs +44 -0
  69. package/components/assets/eye-off-4a5fd13d.mjs +31 -0
  70. package/components/assets/no-photography-7a1e4d68.mjs +36 -0
  71. package/components/assets/pencil-c1aa23f9.mjs +31 -0
  72. package/modules/assets/no-photography-7a1e4d68.mjs +36 -0
  73. package/modules/{maz-ui.mjs → index.mjs} +131 -191
  74. package/modules/index.umd.js +2 -0
  75. package/nuxt/index.ts +130 -0
  76. package/nuxt/runtime/composables/use-toast.ts +8 -0
  77. package/nuxt/runtime/plugins/toaster.ts +26 -0
  78. package/package.json +94 -65
  79. package/tailwindcss/{tailwind.config.js → tailwind.config.ts} +13 -9
  80. package/tailwindcss/tailwind.css +4 -0
  81. package/tailwindcss/utils/colors.ts +20 -0
  82. package/tailwindcss/variables/{breakpoints.js → breakpoints.ts} +1 -1
  83. package/tailwindcss/variables/colors.ts +44 -0
  84. package/tailwindcss/variables/{utilities.js → utilities.ts} +1 -1
  85. package/tailwindcss/variables/{z-indexes.js → z-indexes.ts} +1 -1
  86. package/components/MazAvatar.d.ts +0 -156
  87. package/components/MazBackdrop.d.ts +0 -91
  88. package/components/MazBadge.d.ts +0 -73
  89. package/components/MazBottomSheet.d.ts +0 -36
  90. package/components/MazBtn.d.ts +0 -178
  91. package/components/MazCard.d.ts +0 -194
  92. package/components/MazCarousel.d.ts +0 -24
  93. package/components/MazChart/includes.d.ts +0 -11
  94. package/components/MazChart.d.ts +0 -83
  95. package/components/MazCheckbox.d.ts +0 -54
  96. package/components/MazDialog.d.ts +0 -91
  97. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -30
  98. package/components/MazDialogPromise.d.ts +0 -72
  99. package/components/MazDrawer.d.ts +0 -69
  100. package/components/MazDropzone.d.ts +0 -128
  101. package/components/MazGallery.d.ts +0 -144
  102. package/components/MazIcon.d.ts +0 -64
  103. package/components/MazInput.d.ts +0 -276
  104. package/components/MazInputNumber.d.ts +0 -65
  105. package/components/MazInputPrice.d.ts +0 -69
  106. package/components/MazInputTags.d.ts +0 -94
  107. package/components/MazLazyImg.d.ts +0 -77
  108. package/components/MazPhoneNumberInput/constantes/locales.d.ts +0 -12
  109. package/components/MazPhoneNumberInput/types.d.ts +0 -21
  110. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
  111. package/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
  112. package/components/MazPhoneNumberInput.d.ts +0 -253
  113. package/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -135
  114. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
  115. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -112
  116. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -122
  117. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -36
  118. package/components/MazPicker/MazPickerContainer.vue.d.ts +0 -210
  119. package/components/MazPicker/MazPickerFooter.vue.d.ts +0 -16
  120. package/components/MazPicker/MazPickerHeader.vue.d.ts +0 -82
  121. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -41
  122. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -60
  123. package/components/MazPicker/MazPickerTime.vue.d.ts +0 -127
  124. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -33
  125. package/components/MazPicker/types.d.ts +0 -15
  126. package/components/MazPicker/utils.d.ts +0 -54
  127. package/components/MazPicker.d.ts +0 -311
  128. package/components/MazRadioButtons.d.ts +0 -77
  129. package/components/MazSelect.d.ts +0 -186
  130. package/components/MazSlider/utils.d.ts +0 -15
  131. package/components/MazSlider.d.ts +0 -94
  132. package/components/MazSpinner.d.ts +0 -28
  133. package/components/MazStepper.d.ts +0 -114
  134. package/components/MazSwitch.d.ts +0 -54
  135. package/components/MazTabsBar.d.ts +0 -47
  136. package/components/MazTabsContent.d.ts +0 -21
  137. package/components/MazTabsContentItem.d.ts +0 -19
  138. package/components/MazTextarea/textarea-autogrow.d.ts +0 -9
  139. package/components/MazTextarea.d.ts +0 -123
  140. package/components/MazTransitionExpand.d.ts +0 -9
  141. package/components/assets/no-photography-584c6185.mjs +0 -4
  142. package/components/index.d.ts +0 -33
  143. package/components/index.mjs +0 -35
  144. package/components/types.d.ts +0 -17
  145. package/css/aos.css +0 -1
  146. package/css/main.css +0 -1
  147. package/maz-ui.d.ts +0 -313
  148. package/modules/assets/no-photography-584c6185.mjs +0 -4
  149. package/modules/maz-ui.umd.js +0 -2
  150. package/tailwindcss/utils/colors.js +0 -26
  151. package/tailwindcss/variables/colors.js +0 -44
@@ -1,194 +0,0 @@
1
- import { type PropType } from 'vue';
2
- import type { MazGalleryImage } from './types';
3
- export type { MazGalleryImage } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- images: {
6
- type: PropType<MazGalleryImage[]>;
7
- default: undefined;
8
- };
9
- orientation: {
10
- type: StringConstructor;
11
- default: string;
12
- validator: (value: string) => boolean;
13
- };
14
- href: {
15
- type: StringConstructor;
16
- default: undefined;
17
- };
18
- hrefTarget: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- footerAlign: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- galleryWidth: {
27
- type: (StringConstructor | NumberConstructor)[];
28
- default: number;
29
- };
30
- galleryHeight: {
31
- type: (StringConstructor | NumberConstructor)[];
32
- default: number;
33
- };
34
- zoom: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- elevation: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- radius: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- bordered: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
50
- imagesShowCount: {
51
- type: NumberConstructor;
52
- default: number;
53
- };
54
- noRemaining: {
55
- type: BooleanConstructor;
56
- default: boolean;
57
- };
58
- scale: {
59
- type: BooleanConstructor;
60
- default: boolean;
61
- };
62
- wrapperClass: {
63
- type: StringConstructor;
64
- default: undefined;
65
- };
66
- noPadding: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- overflowHidden: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- collapsable: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- collapseOpen: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
83
- images: {
84
- type: PropType<MazGalleryImage[]>;
85
- default: undefined;
86
- };
87
- orientation: {
88
- type: StringConstructor;
89
- default: string;
90
- validator: (value: string) => boolean;
91
- };
92
- href: {
93
- type: StringConstructor;
94
- default: undefined;
95
- };
96
- hrefTarget: {
97
- type: StringConstructor;
98
- default: string;
99
- };
100
- footerAlign: {
101
- type: StringConstructor;
102
- default: string;
103
- };
104
- galleryWidth: {
105
- type: (StringConstructor | NumberConstructor)[];
106
- default: number;
107
- };
108
- galleryHeight: {
109
- type: (StringConstructor | NumberConstructor)[];
110
- default: number;
111
- };
112
- zoom: {
113
- type: BooleanConstructor;
114
- default: boolean;
115
- };
116
- elevation: {
117
- type: BooleanConstructor;
118
- default: boolean;
119
- };
120
- radius: {
121
- type: BooleanConstructor;
122
- default: boolean;
123
- };
124
- bordered: {
125
- type: BooleanConstructor;
126
- default: boolean;
127
- };
128
- imagesShowCount: {
129
- type: NumberConstructor;
130
- default: number;
131
- };
132
- noRemaining: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- scale: {
137
- type: BooleanConstructor;
138
- default: boolean;
139
- };
140
- wrapperClass: {
141
- type: StringConstructor;
142
- default: undefined;
143
- };
144
- noPadding: {
145
- type: BooleanConstructor;
146
- default: boolean;
147
- };
148
- overflowHidden: {
149
- type: BooleanConstructor;
150
- default: boolean;
151
- };
152
- collapsable: {
153
- type: BooleanConstructor;
154
- default: boolean;
155
- };
156
- collapseOpen: {
157
- type: BooleanConstructor;
158
- default: boolean;
159
- };
160
- }>>, {
161
- href: string;
162
- bordered: boolean;
163
- noPadding: boolean;
164
- images: MazGalleryImage[];
165
- noRemaining: boolean;
166
- scale: boolean;
167
- orientation: string;
168
- hrefTarget: string;
169
- footerAlign: string;
170
- galleryWidth: string | number;
171
- galleryHeight: string | number;
172
- zoom: boolean;
173
- elevation: boolean;
174
- radius: boolean;
175
- imagesShowCount: number;
176
- wrapperClass: string;
177
- overflowHidden: boolean;
178
- collapsable: boolean;
179
- collapseOpen: boolean;
180
- }>, {
181
- header: (_: {}) => any;
182
- default: (_: {}) => any;
183
- title: (_: {}) => any;
184
- subtitle: (_: {}) => any;
185
- content: (_: {}) => any;
186
- footer: (_: {}) => any;
187
- actions: (_: {}) => any;
188
- }>;
189
- export default _default;
190
- type __VLS_WithTemplateSlots<T, S> = T & {
191
- new (): {
192
- $slots: S;
193
- };
194
- };
@@ -1,24 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
- noScrollBtn: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- noScrollBtn: {
8
- type: BooleanConstructor;
9
- default: boolean;
10
- };
11
- }>>, {
12
- noScrollBtn: boolean;
13
- }>, {
14
- title: (_: {}) => any;
15
- 'previous-icon': (_: {}) => any;
16
- 'next-icon': (_: {}) => any;
17
- default: (_: {}) => any;
18
- }>;
19
- export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,11 +0,0 @@
1
- export declare const chartJsEventNames: string[];
2
- export declare function generateEventObject(type: string, chartRef?: HTMLCanvasElement): {
3
- type: string;
4
- chartRef: HTMLCanvasElement | undefined;
5
- preventDefault(): void;
6
- isDefaultPrevented(): boolean;
7
- _defaultPrevented: boolean;
8
- };
9
- export declare function generateChartJsEventListener(emit: (event: string, ...args: unknown[]) => void, event: ReturnType<typeof generateEventObject>): {
10
- [x: string]: () => boolean;
11
- };
@@ -1,83 +0,0 @@
1
- import { type PropType } from 'vue';
2
- import Chart from 'chart.js/auto/auto.mjs';
3
- import type { Plugin } from 'chart.js';
4
- declare const _default: import("vue").DefineComponent<{
5
- type: {
6
- type: StringConstructor;
7
- required: true;
8
- };
9
- data: {
10
- type: ObjectConstructor;
11
- required: true;
12
- };
13
- height: {
14
- type: StringConstructor;
15
- default: undefined;
16
- };
17
- width: {
18
- type: StringConstructor;
19
- default: undefined;
20
- };
21
- options: {
22
- type: ObjectConstructor;
23
- default: () => {};
24
- };
25
- plugins: {
26
- type: PropType<Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/types/basic").AnyObject>[]>;
27
- default: () => never[];
28
- };
29
- locale: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- }, {
34
- chartJSState: {
35
- chart?: Chart<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").ScatterDataPoint | import("chart.js").BubbleDataPoint | null)[], unknown> | undefined;
36
- options?: import("chart.js/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ElementChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").PluginChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").DatasetChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ScaleChartOptions<keyof import("chart.js").ChartTypeRegistry>> | undefined;
37
- plugins: Plugin[];
38
- props: any;
39
- };
40
- chartRef: import("vue").Ref<HTMLCanvasElement | undefined>;
41
- render: () => void | Chart<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").ScatterDataPoint | import("chart.js").BubbleDataPoint | null)[], unknown>;
42
- resize: () => void | undefined;
43
- update: () => void;
44
- destroy: () => void;
45
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
- type: {
47
- type: StringConstructor;
48
- required: true;
49
- };
50
- data: {
51
- type: ObjectConstructor;
52
- required: true;
53
- };
54
- height: {
55
- type: StringConstructor;
56
- default: undefined;
57
- };
58
- width: {
59
- type: StringConstructor;
60
- default: undefined;
61
- };
62
- options: {
63
- type: ObjectConstructor;
64
- default: () => {};
65
- };
66
- plugins: {
67
- type: PropType<Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/types/basic").AnyObject>[]>;
68
- default: () => never[];
69
- };
70
- locale: {
71
- type: StringConstructor;
72
- default: string;
73
- };
74
- }>> & {
75
- [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
76
- }, {
77
- height: string;
78
- width: string;
79
- options: Record<string, any>;
80
- plugins: Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/types/basic").AnyObject>[];
81
- locale: string;
82
- }>;
83
- export default _default;
@@ -1,54 +0,0 @@
1
- import { type PropType } from 'vue';
2
- import type { Color } from './types';
3
- export type { Color } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- modelValue: {
6
- type: BooleanConstructor;
7
- required: true;
8
- };
9
- id: {
10
- type: StringConstructor;
11
- default: undefined;
12
- };
13
- color: {
14
- type: PropType<Color>;
15
- default: string;
16
- validator: (value: Color) => boolean;
17
- };
18
- name: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
- modelValue: {
24
- type: BooleanConstructor;
25
- required: true;
26
- };
27
- id: {
28
- type: StringConstructor;
29
- default: undefined;
30
- };
31
- color: {
32
- type: PropType<Color>;
33
- default: string;
34
- validator: (value: Color) => boolean;
35
- };
36
- name: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- }>> & {
41
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
42
- }, {
43
- color: Color;
44
- name: string;
45
- id: string;
46
- }>, {
47
- default: (_: {}) => any;
48
- }>;
49
- export default _default;
50
- type __VLS_WithTemplateSlots<T, S> = T & {
51
- new (): {
52
- $slots: S;
53
- };
54
- };
@@ -1,91 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
- /** Modal's title in header */
3
- title: {
4
- type: StringConstructor;
5
- default: undefined;
6
- };
7
- /** Remove the close button in header */
8
- noClose: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- /** Modal's width */
13
- width: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- /** Modal's max-width */
18
- maxWidth: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- /** Modal's max-height */
23
- maxHeight: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- /** Modal's content becomes scrollable - warning: a overflow is applied */
28
- scrollable: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "update:model-value")[], "close" | "open" | "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- /** Modal's title in header */
34
- title: {
35
- type: StringConstructor;
36
- default: undefined;
37
- };
38
- /** Remove the close button in header */
39
- noClose: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
43
- /** Modal's width */
44
- width: {
45
- type: StringConstructor;
46
- default: string;
47
- };
48
- /** Modal's max-width */
49
- maxWidth: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- /** Modal's max-height */
54
- maxHeight: {
55
- type: StringConstructor;
56
- default: string;
57
- };
58
- /** Modal's content becomes scrollable - warning: a overflow is applied */
59
- scrollable: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- }>> & {
64
- onClose?: ((...args: any[]) => any) | undefined;
65
- onOpen?: ((...args: any[]) => any) | undefined;
66
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
67
- }, {
68
- title: string;
69
- noClose: boolean;
70
- width: string;
71
- maxWidth: string;
72
- maxHeight: string;
73
- scrollable: boolean;
74
- }>, {
75
- header: (_: {
76
- close: any;
77
- }) => any;
78
- title: (_: {}) => any;
79
- default: (_: {
80
- close: any;
81
- }) => any;
82
- footer: (_: {
83
- close: any;
84
- }) => any;
85
- }>;
86
- export default _default;
87
- type __VLS_WithTemplateSlots<T, S> = T & {
88
- new (): {
89
- $slots: S;
90
- };
91
- };
@@ -1,30 +0,0 @@
1
- export interface DialogState {
2
- id: string;
3
- isActive: boolean;
4
- resolve: (value: unknown) => void;
5
- reject?: (reason?: unknown) => void;
6
- }
7
- export interface DialogData {
8
- title: string;
9
- message: string;
10
- cancelText?: string;
11
- confirmText?: string;
12
- }
13
- export declare const useMazDialogPromise: () => {
14
- confirmDialogData: import("vue").Ref<DialogData | undefined>;
15
- dialogState: import("vue").Ref<{
16
- id: string;
17
- isActive: boolean;
18
- resolve: (value: unknown) => void;
19
- reject?: ((reason?: unknown) => void) | undefined;
20
- }[]>;
21
- showDialogAndWaitChoice: (identifier: string, callback?: () => unknown) => Promise<unknown>;
22
- removeDialogFromState: (identifier: string) => {
23
- id: string;
24
- isActive: boolean;
25
- resolve: (value: unknown) => void;
26
- reject?: ((reason?: unknown) => void) | undefined;
27
- }[];
28
- rejectDialog: (currentDialog: DialogState, response?: string | boolean) => void;
29
- resolveDialog: (currentDialog: DialogState, response?: string | boolean) => void;
30
- };
@@ -1,72 +0,0 @@
1
- import { type PropType } from 'vue';
2
- import { type Color, type Size } from './MazBtn.vue';
3
- import { type DialogData } from './MazDialogPromise/use-maz-dialog-promise';
4
- export { useMazDialogPromise } from './MazDialogPromise/use-maz-dialog-promise';
5
- export type { DialogState, DialogData } from './MazDialogPromise/use-maz-dialog-promise';
6
- export type { Color, Size } from './types';
7
- export type DialogButton = {
8
- response?: string | boolean;
9
- type: 'resolve' | 'reject';
10
- color?: Color;
11
- size?: Size;
12
- text: string;
13
- outline?: boolean;
14
- rounded?: boolean;
15
- disabled?: boolean;
16
- loading?: boolean;
17
- block?: boolean;
18
- };
19
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
20
- /** Dialog Data - type DialogData */
21
- data: {
22
- type: PropType<DialogData>;
23
- default: undefined;
24
- };
25
- /** Uniq identifier */
26
- identifier: {
27
- type: StringConstructor;
28
- required: true;
29
- };
30
- /** Custom buttons - type DialogButton[] */
31
- buttons: {
32
- type: PropType<DialogButton[]>;
33
- default: () => never[];
34
- };
35
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
- /** Dialog Data - type DialogData */
37
- data: {
38
- type: PropType<DialogData>;
39
- default: undefined;
40
- };
41
- /** Uniq identifier */
42
- identifier: {
43
- type: StringConstructor;
44
- required: true;
45
- };
46
- /** Custom buttons - type DialogButton[] */
47
- buttons: {
48
- type: PropType<DialogButton[]>;
49
- default: () => never[];
50
- };
51
- }>>, {
52
- data: DialogData;
53
- buttons: DialogButton[];
54
- }>, {
55
- title: (_: {}) => any;
56
- default: (_: {
57
- resolve: (reason?: string | boolean) => void;
58
- reject: (reason?: string | boolean) => void;
59
- }) => any;
60
- 'footer-button': (_: {
61
- resolve: (reason?: string | boolean) => void;
62
- reject: (reason?: string | boolean) => void;
63
- }) => any;
64
- 'cancel-text': (_: {}) => any;
65
- 'confirm-text': (_: {}) => any;
66
- }>;
67
- export default _default;
68
- type __VLS_WithTemplateSlots<T, S> = T & {
69
- new (): {
70
- $slots: S;
71
- };
72
- };
@@ -1,69 +0,0 @@
1
- import type { PropType } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- noClose: {
4
- type: BooleanConstructor;
5
- default: boolean;
6
- };
7
- title: {
8
- type: StringConstructor;
9
- default: undefined;
10
- };
11
- variant: {
12
- type: PropType<"top" | "bottom" | "left" | "right">;
13
- default: string;
14
- validator: (value: string) => boolean;
15
- };
16
- backdropClass: {
17
- type: StringConstructor;
18
- default: undefined;
19
- };
20
- size: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "update:model-value")[], "close" | "open" | "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
- noClose: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- title: {
30
- type: StringConstructor;
31
- default: undefined;
32
- };
33
- variant: {
34
- type: PropType<"top" | "bottom" | "left" | "right">;
35
- default: string;
36
- validator: (value: string) => boolean;
37
- };
38
- backdropClass: {
39
- type: StringConstructor;
40
- default: undefined;
41
- };
42
- size: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- }>> & {
47
- onClose?: ((...args: any[]) => any) | undefined;
48
- onOpen?: ((...args: any[]) => any) | undefined;
49
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
50
- }, {
51
- title: string;
52
- size: string;
53
- backdropClass: string;
54
- variant: "top" | "bottom" | "left" | "right";
55
- noClose: boolean;
56
- }>, {
57
- title: (_: {
58
- close: any;
59
- }) => any;
60
- default: (_: {
61
- close: any;
62
- }) => any;
63
- }>;
64
- export default _default;
65
- type __VLS_WithTemplateSlots<T, S> = T & {
66
- new (): {
67
- $slots: S;
68
- };
69
- };