maz-ui 3.9.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 (150) hide show
  1. package/components/MazAvatar.mjs +22 -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 +255 -231
  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 +43 -25
  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 +16 -181
  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 +9 -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 -5
  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} +130 -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 +91 -62
  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 -161
  87. package/components/MazBackdrop.d.ts +0 -92
  88. package/components/MazBadge.d.ts +0 -78
  89. package/components/MazBottomSheet.d.ts +0 -41
  90. package/components/MazBtn.d.ts +0 -183
  91. package/components/MazCard.d.ts +0 -199
  92. package/components/MazCarousel.d.ts +0 -29
  93. package/components/MazChart.d.ts +0 -22
  94. package/components/MazCheckbox.d.ts +0 -59
  95. package/components/MazDialog.d.ts +0 -96
  96. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -30
  97. package/components/MazDialogPromise.d.ts +0 -77
  98. package/components/MazDrawer.d.ts +0 -74
  99. package/components/MazDropzone.d.ts +0 -129
  100. package/components/MazGallery.d.ts +0 -126
  101. package/components/MazIcon.d.ts +0 -65
  102. package/components/MazInput.d.ts +0 -277
  103. package/components/MazInputNumber.d.ts +0 -66
  104. package/components/MazInputPrice.d.ts +0 -74
  105. package/components/MazInputTags.d.ts +0 -95
  106. package/components/MazLazyImg.d.ts +0 -82
  107. package/components/MazPhoneNumberInput/constantes/locales.d.ts +0 -12
  108. package/components/MazPhoneNumberInput/types.d.ts +0 -21
  109. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
  110. package/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
  111. package/components/MazPhoneNumberInput.d.ts +0 -254
  112. package/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -136
  113. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -21
  114. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -113
  115. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -123
  116. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -37
  117. package/components/MazPicker/MazPickerContainer.vue.d.ts +0 -211
  118. package/components/MazPicker/MazPickerFooter.vue.d.ts +0 -17
  119. package/components/MazPicker/MazPickerHeader.vue.d.ts +0 -83
  120. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -42
  121. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -61
  122. package/components/MazPicker/MazPickerTime.vue.d.ts +0 -128
  123. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -34
  124. package/components/MazPicker/types.d.ts +0 -15
  125. package/components/MazPicker/utils.d.ts +0 -54
  126. package/components/MazPicker.d.ts +0 -312
  127. package/components/MazRadioButtons.d.ts +0 -82
  128. package/components/MazSelect.d.ts +0 -191
  129. package/components/MazSlider/utils.d.ts +0 -15
  130. package/components/MazSlider.d.ts +0 -95
  131. package/components/MazSpinner.d.ts +0 -29
  132. package/components/MazStepper.d.ts +0 -119
  133. package/components/MazSwitch.d.ts +0 -55
  134. package/components/MazTabsBar.d.ts +0 -48
  135. package/components/MazTabsContent.d.ts +0 -26
  136. package/components/MazTabsContentItem.d.ts +0 -24
  137. package/components/MazTextarea/textarea-autogrow.d.ts +0 -9
  138. package/components/MazTextarea.d.ts +0 -124
  139. package/components/MazTransitionExpand.d.ts +0 -14
  140. package/components/assets/no-photography-584c6185.mjs +0 -4
  141. package/components/index.d.ts +0 -33
  142. package/components/index.mjs +0 -35
  143. package/components/types.d.ts +0 -17
  144. package/css/aos.css +0 -1
  145. package/css/main.css +0 -1
  146. package/maz-ui.d.ts +0 -318
  147. package/modules/assets/no-photography-584c6185.mjs +0 -4
  148. package/modules/maz-ui.umd.js +0 -2
  149. package/tailwindcss/utils/colors.js +0 -26
  150. package/tailwindcss/variables/colors.js +0 -44
@@ -1,199 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- import { type PropType } from 'vue';
3
- import type { MazGalleryImage } from './types';
4
- export type { MazGalleryImage } from './types';
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
6
- images: {
7
- type: PropType<MazGalleryImage[]>;
8
- default: undefined;
9
- };
10
- orientation: {
11
- type: StringConstructor;
12
- default: string;
13
- validator: (value: string) => boolean;
14
- };
15
- href: {
16
- type: StringConstructor;
17
- default: undefined;
18
- };
19
- hrefTarget: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- footerAlign: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- galleryWidth: {
28
- type: (StringConstructor | NumberConstructor)[];
29
- default: number;
30
- };
31
- galleryHeight: {
32
- type: (StringConstructor | NumberConstructor)[];
33
- default: number;
34
- };
35
- zoom: {
36
- type: BooleanConstructor;
37
- default: boolean;
38
- };
39
- elevation: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
43
- radius: {
44
- type: BooleanConstructor;
45
- default: boolean;
46
- };
47
- bordered: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- imagesShowCount: {
52
- type: NumberConstructor;
53
- default: number;
54
- };
55
- noRemaining: {
56
- type: BooleanConstructor;
57
- default: boolean;
58
- };
59
- scale: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- wrapperClass: {
64
- type: StringConstructor;
65
- default: undefined;
66
- };
67
- noPadding: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- overflowHidden: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- collapsable: {
76
- type: BooleanConstructor;
77
- default: boolean;
78
- };
79
- collapseOpen: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
84
- images: {
85
- type: PropType<MazGalleryImage[]>;
86
- default: undefined;
87
- };
88
- orientation: {
89
- type: StringConstructor;
90
- default: string;
91
- validator: (value: string) => boolean;
92
- };
93
- href: {
94
- type: StringConstructor;
95
- default: undefined;
96
- };
97
- hrefTarget: {
98
- type: StringConstructor;
99
- default: string;
100
- };
101
- footerAlign: {
102
- type: StringConstructor;
103
- default: string;
104
- };
105
- galleryWidth: {
106
- type: (StringConstructor | NumberConstructor)[];
107
- default: number;
108
- };
109
- galleryHeight: {
110
- type: (StringConstructor | NumberConstructor)[];
111
- default: number;
112
- };
113
- zoom: {
114
- type: BooleanConstructor;
115
- default: boolean;
116
- };
117
- elevation: {
118
- type: BooleanConstructor;
119
- default: boolean;
120
- };
121
- radius: {
122
- type: BooleanConstructor;
123
- default: boolean;
124
- };
125
- bordered: {
126
- type: BooleanConstructor;
127
- default: boolean;
128
- };
129
- imagesShowCount: {
130
- type: NumberConstructor;
131
- default: number;
132
- };
133
- noRemaining: {
134
- type: BooleanConstructor;
135
- default: boolean;
136
- };
137
- scale: {
138
- type: BooleanConstructor;
139
- default: boolean;
140
- };
141
- wrapperClass: {
142
- type: StringConstructor;
143
- default: undefined;
144
- };
145
- noPadding: {
146
- type: BooleanConstructor;
147
- default: boolean;
148
- };
149
- overflowHidden: {
150
- type: BooleanConstructor;
151
- default: boolean;
152
- };
153
- collapsable: {
154
- type: BooleanConstructor;
155
- default: boolean;
156
- };
157
- collapseOpen: {
158
- type: BooleanConstructor;
159
- default: boolean;
160
- };
161
- }>>, {
162
- href: string;
163
- bordered: boolean;
164
- noPadding: boolean;
165
- images: MazGalleryImage[];
166
- noRemaining: boolean;
167
- scale: boolean;
168
- orientation: string;
169
- hrefTarget: string;
170
- footerAlign: string;
171
- galleryWidth: string | number;
172
- galleryHeight: string | number;
173
- zoom: boolean;
174
- elevation: boolean;
175
- radius: boolean;
176
- imagesShowCount: number;
177
- wrapperClass: string;
178
- overflowHidden: boolean;
179
- collapsable: boolean;
180
- collapseOpen: boolean;
181
- }>, {
182
- header?(_: {}): any;
183
- default?(_: {}): any;
184
- title?(_: {}): any;
185
- subtitle?(_: {}): any;
186
- content?(_: {}): any;
187
- footer?(_: {}): any;
188
- actions?(_: {}): any;
189
- }>;
190
- export default _default;
191
- type __VLS_WithTemplateSlots<T, S> = T & {
192
- new (): {
193
- $slots: S;
194
- $props: __VLS_PropsChildren<S>;
195
- };
196
- };
197
- type __VLS_PropsChildren<S> = {
198
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
199
- };
@@ -1,29 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- noScrollBtn: {
4
- type: BooleanConstructor;
5
- default: boolean;
6
- };
7
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
- noScrollBtn: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- }>>, {
13
- noScrollBtn: boolean;
14
- }>, {
15
- title?(_: {}): any;
16
- "previous-icon"?(_: {}): any;
17
- "next-icon"?(_: {}): any;
18
- default?(_: {}): any;
19
- }>;
20
- export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- $props: __VLS_PropsChildren<S>;
25
- };
26
- };
27
- type __VLS_PropsChildren<S> = {
28
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
29
- };
@@ -1,22 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- import { type ChartType, type ChartData, type ChartOptions, type DefaultDataPoint, type Plugin, type UpdateMode } from 'chart.js';
3
- export interface ChartProps<TType extends ChartType = ChartType, TData = DefaultDataPoint<TType>, TLabel = unknown> {
4
- type: ChartType;
5
- data: ChartData<TType, TData, TLabel>;
6
- options?: ChartOptions<TType>;
7
- plugins?: Plugin<TType>[];
8
- datasetIdKey?: string;
9
- updateMode?: UpdateMode;
10
- }
11
- export { getDatasetAtEvent, getElementAtEvent, getElementsAtEvent } from 'vue-chartjs';
12
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ChartProps<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ChartProps<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>>>>, {}>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,59 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- import { type PropType } from 'vue';
3
- import type { Color } from './types';
4
- export type { Color } from './types';
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
6
- modelValue: {
7
- type: BooleanConstructor;
8
- required: true;
9
- };
10
- id: {
11
- type: StringConstructor;
12
- default: undefined;
13
- };
14
- color: {
15
- type: PropType<Color>;
16
- default: string;
17
- validator: (value: Color) => boolean;
18
- };
19
- name: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- }, {}, 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<{
24
- modelValue: {
25
- type: BooleanConstructor;
26
- required: true;
27
- };
28
- id: {
29
- type: StringConstructor;
30
- default: undefined;
31
- };
32
- color: {
33
- type: PropType<Color>;
34
- default: string;
35
- validator: (value: Color) => boolean;
36
- };
37
- name: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
- }>> & {
42
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
43
- }, {
44
- color: Color;
45
- name: string;
46
- id: string;
47
- }>, {
48
- default?(_: {}): any;
49
- }>;
50
- export default _default;
51
- type __VLS_WithTemplateSlots<T, S> = T & {
52
- new (): {
53
- $slots: S;
54
- $props: __VLS_PropsChildren<S>;
55
- };
56
- };
57
- type __VLS_PropsChildren<S> = {
58
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
59
- };
@@ -1,96 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- /** Modal's title in header */
4
- title: {
5
- type: StringConstructor;
6
- default: undefined;
7
- };
8
- /** Remove the close button in header */
9
- noClose: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- /** Modal's width */
14
- width: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- /** Modal's max-width */
19
- maxWidth: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- /** Modal's max-height */
24
- maxHeight: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- /** Modal's content becomes scrollable - warning: a overflow is applied */
29
- scrollable: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- }, {}, 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<{
34
- /** Modal's title in header */
35
- title: {
36
- type: StringConstructor;
37
- default: undefined;
38
- };
39
- /** Remove the close button in header */
40
- noClose: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- /** Modal's width */
45
- width: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- /** Modal's max-width */
50
- maxWidth: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
- /** Modal's max-height */
55
- maxHeight: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- /** Modal's content becomes scrollable - warning: a overflow is applied */
60
- scrollable: {
61
- type: BooleanConstructor;
62
- default: boolean;
63
- };
64
- }>> & {
65
- onClose?: ((...args: any[]) => any) | undefined;
66
- onOpen?: ((...args: any[]) => any) | undefined;
67
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
68
- }, {
69
- title: string;
70
- width: string;
71
- noClose: boolean;
72
- maxWidth: string;
73
- maxHeight: string;
74
- scrollable: boolean;
75
- }>, {
76
- header?(_: {
77
- close: any;
78
- }): any;
79
- title?(_: {}): any;
80
- default?(_: {
81
- close: any;
82
- }): any;
83
- footer?(_: {
84
- close: any;
85
- }): any;
86
- }>;
87
- export default _default;
88
- type __VLS_WithTemplateSlots<T, S> = T & {
89
- new (): {
90
- $slots: S;
91
- $props: __VLS_PropsChildren<S>;
92
- };
93
- };
94
- type __VLS_PropsChildren<S> = {
95
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
96
- };
@@ -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,77 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- import { type PropType } from 'vue';
3
- import { type Color, type Size } from './MazBtn.vue';
4
- import { type DialogData } from './MazDialogPromise/use-maz-dialog-promise';
5
- export { useMazDialogPromise } from './MazDialogPromise/use-maz-dialog-promise';
6
- export type { DialogState, DialogData } from './MazDialogPromise/use-maz-dialog-promise';
7
- export type { Color, Size } from './types';
8
- export type DialogButton = {
9
- response?: string | boolean;
10
- type: 'resolve' | 'reject';
11
- color?: Color;
12
- size?: Size;
13
- text: string;
14
- outline?: boolean;
15
- rounded?: boolean;
16
- disabled?: boolean;
17
- loading?: boolean;
18
- block?: boolean;
19
- };
20
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
21
- /** Dialog Data - type DialogData */
22
- data: {
23
- type: PropType<DialogData>;
24
- default: undefined;
25
- };
26
- /** Uniq identifier */
27
- identifier: {
28
- type: StringConstructor;
29
- required: true;
30
- };
31
- /** Custom buttons - type DialogButton[] */
32
- buttons: {
33
- type: PropType<DialogButton[]>;
34
- default: () => never[];
35
- };
36
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
- /** Dialog Data - type DialogData */
38
- data: {
39
- type: PropType<DialogData>;
40
- default: undefined;
41
- };
42
- /** Uniq identifier */
43
- identifier: {
44
- type: StringConstructor;
45
- required: true;
46
- };
47
- /** Custom buttons - type DialogButton[] */
48
- buttons: {
49
- type: PropType<DialogButton[]>;
50
- default: () => never[];
51
- };
52
- }>>, {
53
- data: DialogData;
54
- buttons: DialogButton[];
55
- }>, {
56
- title?(_: {}): any;
57
- default?(_: {
58
- resolve: (reason?: string | boolean) => void;
59
- reject: (reason?: string | boolean) => void;
60
- }): any;
61
- "footer-button"?(_: {
62
- resolve: (reason?: string | boolean) => void;
63
- reject: (reason?: string | boolean) => void;
64
- }): any;
65
- "cancel-text"?(_: {}): any;
66
- "confirm-text"?(_: {}): any;
67
- }>;
68
- export default _default;
69
- type __VLS_WithTemplateSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- $props: __VLS_PropsChildren<S>;
73
- };
74
- };
75
- type __VLS_PropsChildren<S> = {
76
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
77
- };
@@ -1,74 +0,0 @@
1
- /** __vue_virtual_code_placeholder */
2
- import type { PropType } from 'vue';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
- noClose: {
5
- type: BooleanConstructor;
6
- default: boolean;
7
- };
8
- title: {
9
- type: StringConstructor;
10
- default: undefined;
11
- };
12
- variant: {
13
- type: PropType<"top" | "bottom" | "left" | "right">;
14
- default: string;
15
- validator: (value: string) => boolean;
16
- };
17
- backdropClass: {
18
- type: StringConstructor;
19
- default: undefined;
20
- };
21
- size: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- }, {}, 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<{
26
- noClose: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- title: {
31
- type: StringConstructor;
32
- default: undefined;
33
- };
34
- variant: {
35
- type: PropType<"top" | "bottom" | "left" | "right">;
36
- default: string;
37
- validator: (value: string) => boolean;
38
- };
39
- backdropClass: {
40
- type: StringConstructor;
41
- default: undefined;
42
- };
43
- size: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- }>> & {
48
- onClose?: ((...args: any[]) => any) | undefined;
49
- onOpen?: ((...args: any[]) => any) | undefined;
50
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
51
- }, {
52
- title: string;
53
- size: string;
54
- backdropClass: string;
55
- variant: "top" | "bottom" | "left" | "right";
56
- noClose: boolean;
57
- }>, {
58
- title?(_: {
59
- close: any;
60
- }): any;
61
- default?(_: {
62
- close: any;
63
- }): any;
64
- }>;
65
- export default _default;
66
- type __VLS_WithTemplateSlots<T, S> = T & {
67
- new (): {
68
- $slots: S;
69
- $props: __VLS_PropsChildren<S>;
70
- };
71
- };
72
- type __VLS_PropsChildren<S> = {
73
- [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
74
- };