maz-ui 3.44.4-beta.0 → 3.44.4-beta.2

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 (159) hide show
  1. package/components/MazAccordion.d.ts +12 -10
  2. package/components/MazAnimatedCounter.d.ts +15 -13
  3. package/components/MazAvatar.d.ts +9 -7
  4. package/components/MazBackdrop.d.ts +12 -21
  5. package/components/MazBadge.d.ts +6 -4
  6. package/components/MazBottomSheet.d.ts +8 -6
  7. package/components/MazBtn.d.ts +12 -10
  8. package/components/MazCard.d.ts +16 -14
  9. package/components/MazCard.mjs +1 -1
  10. package/components/MazCardSpotlight.d.ts +7 -5
  11. package/components/MazCarousel.d.ts +9 -7
  12. package/components/MazChart.d.ts +6 -6
  13. package/components/MazCheckbox.d.ts +7 -5
  14. package/components/MazCircularProgressBar.d.ts +27 -24
  15. package/components/MazDialog.d.ts +16 -24
  16. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +29 -29
  17. package/components/MazDrawer.d.ts +12 -10
  18. package/components/MazDropdown.d.ts +27 -25
  19. package/components/MazDropzone.d.ts +15 -15
  20. package/components/MazExpandAnimation.d.ts +6 -4
  21. package/components/MazFullscreenLoader.d.ts +6 -4
  22. package/components/MazIcon.d.ts +3 -3
  23. package/components/MazInput.d.ts +15 -133
  24. package/components/MazInputCode.d.ts +2 -2
  25. package/components/MazInputNumber.d.ts +2 -2
  26. package/components/MazInputPrice.d.ts +7 -5
  27. package/components/MazInputTags.d.ts +1 -1
  28. package/components/MazLazyImg.d.ts +9 -7
  29. package/components/MazLink.d.ts +10 -8
  30. package/components/MazPagination.d.ts +20 -18
  31. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +53 -70
  32. package/components/MazPhoneNumberInput.d.ts +17 -25
  33. package/components/MazPhoneNumberInput.mjs +1 -1
  34. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +3 -3
  35. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +3 -3
  36. package/components/MazPicker.d.ts +1 -1
  37. package/components/MazPicker.mjs +1 -1
  38. package/components/MazPullToRefresh.d.ts +9 -7
  39. package/components/MazRadio.d.ts +27 -24
  40. package/components/MazRadioButtons.d.ts +10 -8
  41. package/components/MazReadingProgressBar.d.ts +1 -1
  42. package/components/MazSelect.d.ts +16 -125
  43. package/components/MazSelect.mjs +1 -1
  44. package/components/MazStepper.d.ts +10 -8
  45. package/components/MazSwitch.d.ts +9 -7
  46. package/components/MazTable.d.ts +67 -65
  47. package/components/MazTable.mjs +1 -1
  48. package/components/MazTableCell.d.ts +4 -2
  49. package/components/MazTableRow.d.ts +4 -2
  50. package/components/MazTableTitle.d.ts +4 -2
  51. package/components/MazTabs.d.ts +6 -4
  52. package/components/MazTabsBar.d.ts +18 -16
  53. package/components/MazTabsContent.d.ts +4 -2
  54. package/components/MazTabsContentItem.d.ts +6 -4
  55. package/components/MazTextarea.d.ts +1 -1
  56. package/components/MazTransitionExpand.d.ts +6 -4
  57. package/components/MazTransitionExpand.mjs +2 -2
  58. package/components/assets/MazPhoneNumberInput.css +1 -1
  59. package/components/assets/MazPickerMonthSwitcher.css +1 -1
  60. package/components/assets/MazPickerYearSwitcher.css +1 -1
  61. package/components/assets/MazSelect.css +1 -1
  62. package/components/assets/MazTable.css +1 -1
  63. package/components/assets/MazTabsBar.css +1 -1
  64. package/components/assets/MazTransitionExpand.css +1 -1
  65. package/components/chunks/{MazBtn-B5XwteK7.mjs → MazBtn-BURByjBO.mjs} +2 -2
  66. package/components/chunks/{MazBtn-CQSo596y.mjs → MazBtn-D1TNsXIe.mjs} +2 -2
  67. package/components/chunks/{MazBtn-gj2W8kzn.mjs → MazBtn-YtY4PeyZ.mjs} +2 -2
  68. package/components/chunks/{MazCard-BBwohtCJ.mjs → MazCard-BiDXoNWK.mjs} +1 -1
  69. package/components/chunks/{MazCheckbox-isKq9dAX.mjs → MazCheckbox-BMzMZ-_l.mjs} +1 -1
  70. package/components/chunks/{MazCheckbox-CqHZNrGa.mjs → MazCheckbox-B_Rx3ZCe.mjs} +1 -1
  71. package/components/chunks/{MazGallery-Din0Z37d.mjs → MazGallery-SSMQ_JIA.mjs} +2 -2
  72. package/components/chunks/{MazIcon-D2DkwtXq.mjs → MazIcon-CwITLbPL.mjs} +1 -1
  73. package/components/chunks/{MazIcon-DHzZGzIp.mjs → MazIcon-x_aGvHlZ.mjs} +1 -1
  74. package/components/chunks/{MazPhoneNumberInput-CYcy4OZW.mjs → MazPhoneNumberInput-fo2MtuWB.mjs} +6 -6
  75. package/components/chunks/{MazPicker-DCTIkgDd.mjs → MazPicker-Df-LRtwz.mjs} +2 -2
  76. package/components/chunks/{MazPickerMonthSwitcher-CINBaU3n.mjs → MazPickerMonthSwitcher-CrrfUDPA.mjs} +2 -2
  77. package/components/chunks/{MazPickerShortcuts-vvPV1aW8.mjs → MazPickerShortcuts-Dpm1ra_Y.mjs} +1 -1
  78. package/components/chunks/{MazPickerYearSwitcher-CkqFNhde.mjs → MazPickerYearSwitcher-BIeGuXI7.mjs} +2 -2
  79. package/components/chunks/{MazSelect-DvNLFDvj.mjs → MazSelect-xBiD7HuJ.mjs} +6 -6
  80. package/components/chunks/{MazSpinner-C7s8yroP.mjs → MazSpinner-C5MXwcx7.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-BVd7-OTu.mjs → MazSpinner-CrDTibNk.mjs} +1 -1
  82. package/components/chunks/{MazSpinner-CpYgtvc9.mjs → MazSpinner-CvucKhXp.mjs} +1 -1
  83. package/components/chunks/MazSpinner-DDmCKWOx.mjs +37 -0
  84. package/components/chunks/{MazSpinner-CAG800x4.mjs → MazSpinner-QIX5R4Hk.mjs} +1 -1
  85. package/components/chunks/{MazTable-BN-Yp2RW.mjs → MazTable-1D7GRSpa.mjs} +6 -6
  86. package/components/chunks/{MazTransitionExpand-CYyEf_hd.mjs → MazTransitionExpand-BLFZPAt_.mjs} +11 -11
  87. package/modules/assets/index.css +1 -1
  88. package/modules/chunks/{MazBtn-BVqZ8Wej.cjs → MazBtn-BLvj2Vcl.cjs} +1 -1
  89. package/modules/chunks/{MazBtn-Cuj6yEZn.mjs → MazBtn-DhVNaOBj.mjs} +2 -2
  90. package/modules/chunks/{MazIcon-CyWCmQpN.cjs → MazIcon-BhCADEJL.cjs} +1 -1
  91. package/modules/chunks/{MazIcon-COFexHFo.mjs → MazIcon-ZPJHGsC7.mjs} +1 -1
  92. package/modules/chunks/{MazSpinner-BtXwGTnk.mjs → MazSpinner-Dx_yL6x9.mjs} +1 -1
  93. package/modules/chunks/{MazSpinner-Dz0kdTmr.cjs → MazSpinner-OdoRwyjg.cjs} +1 -1
  94. package/modules/chunks/{index-DW2zAKgR.cjs → index-BT3W7L22.cjs} +2 -2
  95. package/modules/chunks/{index-BBOf37yd.mjs → index-CgWq2KzW.mjs} +363 -360
  96. package/modules/index.cjs +1 -1
  97. package/modules/index.mjs +1 -1
  98. package/nuxt/index.json +2 -2
  99. package/nuxt/types.d.mts +4 -23
  100. package/nuxt/types.d.ts +4 -23
  101. package/package.json +25 -25
  102. package/types/components/MazAccordion.vue.d.ts +12 -10
  103. package/types/components/MazAnimatedCounter.vue.d.ts +15 -13
  104. package/types/components/MazAvatar.vue.d.ts +9 -7
  105. package/types/components/MazBackdrop.vue.d.ts +12 -21
  106. package/types/components/MazBadge.vue.d.ts +6 -4
  107. package/types/components/MazBottomSheet.vue.d.ts +8 -6
  108. package/types/components/MazBtn.vue.d.ts +12 -10
  109. package/types/components/MazCard.vue.d.ts +16 -14
  110. package/types/components/MazCardSpotlight.vue.d.ts +7 -5
  111. package/types/components/MazCarousel.vue.d.ts +9 -7
  112. package/types/components/MazChart.vue.d.ts +6 -6
  113. package/types/components/MazCheckbox.vue.d.ts +7 -5
  114. package/types/components/MazCircularProgressBar.vue.d.ts +27 -24
  115. package/types/components/MazDialog.vue.d.ts +16 -24
  116. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +29 -29
  117. package/types/components/MazDrawer.vue.d.ts +12 -10
  118. package/types/components/MazDropdown.vue.d.ts +27 -25
  119. package/types/components/MazDropzone.vue.d.ts +15 -15
  120. package/types/components/MazExpandAnimation.vue.d.ts +6 -4
  121. package/types/components/MazFullscreenLoader.vue.d.ts +6 -4
  122. package/types/components/MazIcon.vue.d.ts +3 -3
  123. package/types/components/MazInput.vue.d.ts +15 -133
  124. package/types/components/MazInputCode.vue.d.ts +2 -2
  125. package/types/components/MazInputNumber.vue.d.ts +2 -2
  126. package/types/components/MazInputPrice.vue.d.ts +7 -5
  127. package/types/components/MazInputTags.vue.d.ts +1 -1
  128. package/types/components/MazLazyImg.vue.d.ts +9 -7
  129. package/types/components/MazLink.vue.d.ts +10 -8
  130. package/types/components/MazPagination.vue.d.ts +20 -18
  131. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +53 -70
  132. package/types/components/MazPhoneNumberInput.vue.d.ts +17 -25
  133. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +3 -3
  134. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +3 -3
  135. package/types/components/MazPicker.vue.d.ts +1 -1
  136. package/types/components/MazPullToRefresh.vue.d.ts +9 -7
  137. package/types/components/MazRadio.vue.d.ts +27 -24
  138. package/types/components/MazRadioButtons.vue.d.ts +10 -8
  139. package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  140. package/types/components/MazSelect.vue.d.ts +16 -125
  141. package/types/components/MazStepper.vue.d.ts +10 -8
  142. package/types/components/MazSwitch.vue.d.ts +9 -7
  143. package/types/components/MazTable.vue.d.ts +67 -65
  144. package/types/components/MazTableCell.vue.d.ts +4 -2
  145. package/types/components/MazTableRow.vue.d.ts +4 -2
  146. package/types/components/MazTableTitle.vue.d.ts +4 -2
  147. package/types/components/MazTabs.vue.d.ts +6 -4
  148. package/types/components/MazTabsBar.vue.d.ts +18 -16
  149. package/types/components/MazTabsContent.vue.d.ts +4 -2
  150. package/types/components/MazTabsContentItem.vue.d.ts +6 -4
  151. package/types/components/MazTextarea.vue.d.ts +1 -1
  152. package/types/components/MazTransitionExpand.vue.d.ts +6 -4
  153. package/types/modules/composables/use-form-validator/index.d.ts +5 -7
  154. package/types/modules/composables/use-form-validator/types.d.ts +16 -11
  155. package/types/modules/composables/use-form-validator/utils.d.ts +13 -13
  156. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  157. package/types/modules/plugins/toaster/MazToast.vue.d.ts +1 -1
  158. package/types/tailwindcss/tailwind.config.d.ts +2 -2
  159. package/components/chunks/MazSpinner-D1paofz3.mjs +0 -37
@@ -13,7 +13,10 @@ export interface Props {
13
13
  label?: string;
14
14
  disabled?: boolean;
15
15
  }
16
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
16
+ declare function __VLS_template(): {
17
+ default?(_: {}): any;
18
+ };
19
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
17
20
  style: undefined;
18
21
  class: undefined;
19
22
  modelValue: undefined;
@@ -50,11 +53,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
53
  value: string | number | boolean;
51
54
  disabled: boolean;
52
55
  color: Color;
53
- class: any;
56
+ class: HTMLAttributes["class"];
54
57
  modelValue: boolean | (string | number)[];
55
- }, {}>, {
56
- default?(_: {}): any;
57
- }>;
58
+ }, {}>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
58
60
  export default _default;
59
61
  type __VLS_WithDefaults<P, D> = {
60
62
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -1,5 +1,11 @@
1
+ import { type SVGAttributes } from 'vue';
1
2
  import type { Color } from './types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ prefix?(_: {}): any;
6
+ suffix?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
9
  /**
4
10
  * The percentage value of the progress bar
5
11
  */
@@ -8,46 +14,46 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
14
  * The size of the progress bar
9
15
  * @default '10em' (equal 80px for a font-size of 16px)
10
16
  */
11
- size?: string | undefined;
17
+ size?: string;
12
18
  /**
13
19
  * Duration of the animation in milliseconds
14
20
  * @default 1000
15
21
  */
16
- duration?: number | undefined;
22
+ duration?: number;
17
23
  /**
18
24
  * The color of the progress bar
19
25
  */
20
- color?: Color | undefined;
26
+ color?: Color;
21
27
  /**
22
28
  * Auto color based on the count (danger, warning, success)
23
29
  * @default false
24
30
  */
25
- autoColor?: boolean | undefined;
31
+ autoColor?: boolean;
26
32
  /**
27
33
  * Suffix to display next to the number
28
34
  */
29
- prefix?: string | undefined;
35
+ prefix?: string;
30
36
  /**
31
37
  * Suffix to display next to the number
32
38
  */
33
- suffix?: string | undefined;
39
+ suffix?: string;
34
40
  /**
35
41
  * The stroke-linecap style
36
42
  * @default 'round'
37
43
  * @values 'butt', 'round', 'square', 'inherit'
38
44
  */
39
- strokeLinecap?: "round" | "inherit" | "square" | "butt" | undefined;
45
+ strokeLinecap?: SVGAttributes["stroke-linecap"];
40
46
  /**
41
47
  * The stroke width
42
48
  * @default 6
43
49
  */
44
- strokeWidth?: (string | number) | undefined;
50
+ strokeWidth?: SVGAttributes["width"];
45
51
  /**
46
52
  * The stroke color
47
53
  * Use this prop to override the gradient color
48
54
  * You can use a color name or a color code
49
55
  */
50
- stroke?: string | undefined;
56
+ stroke?: SVGAttributes["stroke"];
51
57
  }>, {
52
58
  percentage: number;
53
59
  size: string;
@@ -67,46 +73,46 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
73
  * The size of the progress bar
68
74
  * @default '10em' (equal 80px for a font-size of 16px)
69
75
  */
70
- size?: string | undefined;
76
+ size?: string;
71
77
  /**
72
78
  * Duration of the animation in milliseconds
73
79
  * @default 1000
74
80
  */
75
- duration?: number | undefined;
81
+ duration?: number;
76
82
  /**
77
83
  * The color of the progress bar
78
84
  */
79
- color?: Color | undefined;
85
+ color?: Color;
80
86
  /**
81
87
  * Auto color based on the count (danger, warning, success)
82
88
  * @default false
83
89
  */
84
- autoColor?: boolean | undefined;
90
+ autoColor?: boolean;
85
91
  /**
86
92
  * Suffix to display next to the number
87
93
  */
88
- prefix?: string | undefined;
94
+ prefix?: string;
89
95
  /**
90
96
  * Suffix to display next to the number
91
97
  */
92
- suffix?: string | undefined;
98
+ suffix?: string;
93
99
  /**
94
100
  * The stroke-linecap style
95
101
  * @default 'round'
96
102
  * @values 'butt', 'round', 'square', 'inherit'
97
103
  */
98
- strokeLinecap?: "round" | "inherit" | "square" | "butt" | undefined;
104
+ strokeLinecap?: SVGAttributes["stroke-linecap"];
99
105
  /**
100
106
  * The stroke width
101
107
  * @default 6
102
108
  */
103
- strokeWidth?: (string | number) | undefined;
109
+ strokeWidth?: SVGAttributes["width"];
104
110
  /**
105
111
  * The stroke color
106
112
  * Use this prop to override the gradient color
107
113
  * You can use a color name or a color code
108
114
  */
109
- stroke?: string | undefined;
115
+ stroke?: SVGAttributes["stroke"];
110
116
  }>, {
111
117
  percentage: number;
112
118
  size: string;
@@ -127,11 +133,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
127
133
  percentage: number;
128
134
  strokeLinecap: "round" | "inherit" | "square" | "butt";
129
135
  strokeWidth: string | number;
130
- }, {}>, {
131
- default?(_: {}): any;
132
- prefix?(_: {}): any;
133
- suffix?(_: {}): any;
134
- }>;
136
+ }, {}>;
137
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
135
138
  export default _default;
136
139
  type __VLS_WithDefaults<P, D> = {
137
140
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -17,17 +17,19 @@ export interface Props {
17
17
  /** Persistent dialog (not closable by clicking outside and remove close button) */
18
18
  persistent?: boolean;
19
19
  }
20
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props & MazBackdropProps>, {
21
- title: undefined;
22
- noClose: boolean;
23
- width: string;
24
- maxWidth: string;
25
- maxHeight: string;
26
- scrollable: boolean;
27
- persistent: boolean;
28
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
- [x: string]: (...args: unknown[]) => void;
30
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props & MazBackdropProps>, {
20
+ declare function __VLS_template(): {
21
+ header?(_: {
22
+ close: any;
23
+ }): any;
24
+ title?(_: {}): any;
25
+ default?(_: {
26
+ close: any;
27
+ }): any;
28
+ footer?(_: {
29
+ close: any;
30
+ }): any;
31
+ };
32
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props & MazBackdropProps>, {
31
33
  title: undefined;
32
34
  noClose: boolean;
33
35
  width: string;
@@ -35,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
37
  maxHeight: string;
36
38
  scrollable: boolean;
37
39
  persistent: boolean;
38
- }>>>, {
40
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
39
41
  title: string;
40
42
  width: string;
41
43
  persistent: boolean;
@@ -43,18 +45,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
45
  maxWidth: string;
44
46
  maxHeight: string;
45
47
  scrollable: boolean;
46
- }, {}>, {
47
- header?(_: {
48
- close: () => void;
49
- }): any;
50
- title?(_: {}): any;
51
- default?(_: {
52
- close: () => void;
53
- }): any;
54
- footer?(_: {
55
- close: () => void;
56
- }): any;
57
- }>;
48
+ }, {}>;
49
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
58
50
  export default _default;
59
51
  type __VLS_WithDefaults<P, D> = {
60
52
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -70,43 +70,43 @@ declare function removeDialogFromState(identifier: string): {
70
70
  id: string;
71
71
  isActive: boolean;
72
72
  resolve: (value: unknown) => void;
73
- reject?: ((reason?: unknown) => void) | undefined;
73
+ reject?: (reason?: unknown) => void;
74
74
  }[];
75
75
  export declare function useMazDialogPromise(): {
76
76
  data: import("vue").Ref<{
77
- title?: string | undefined;
78
- message?: string | undefined;
79
- cancelText?: string | undefined;
77
+ title?: string;
78
+ message?: string;
79
+ cancelText?: string;
80
80
  cancelButton?: false | {
81
- text?: string | undefined;
82
- block?: boolean | undefined;
83
- color?: Color | undefined;
84
- disabled?: boolean | undefined;
85
- loading?: boolean | undefined;
86
- outline?: boolean | undefined;
87
- rounded?: boolean | undefined;
88
- size?: Size | undefined;
81
+ text?: string;
82
+ block?: boolean;
83
+ color?: Color;
84
+ disabled?: boolean;
85
+ loading?: boolean;
86
+ outline?: boolean;
87
+ rounded?: boolean;
88
+ size?: Size;
89
89
  } | undefined;
90
- confirmText?: string | undefined;
90
+ confirmText?: string;
91
91
  confirmButton?: false | {
92
- text?: string | undefined;
93
- block?: boolean | undefined;
94
- color?: Color | undefined;
95
- disabled?: boolean | undefined;
96
- loading?: boolean | undefined;
97
- outline?: boolean | undefined;
98
- rounded?: boolean | undefined;
99
- size?: Size | undefined;
92
+ text?: string;
93
+ block?: boolean;
94
+ color?: Color;
95
+ disabled?: boolean;
96
+ loading?: boolean;
97
+ outline?: boolean;
98
+ rounded?: boolean;
99
+ size?: Size;
100
100
  } | undefined;
101
101
  buttons?: {
102
102
  text: string;
103
- block?: boolean | undefined;
104
- color?: Color | undefined;
105
- disabled?: boolean | undefined;
106
- loading?: boolean | undefined;
107
- outline?: boolean | undefined;
108
- rounded?: boolean | undefined;
109
- size?: Size | undefined;
103
+ block?: boolean;
104
+ color?: Color;
105
+ disabled?: boolean;
106
+ loading?: boolean;
107
+ outline?: boolean;
108
+ rounded?: boolean;
109
+ size?: Size;
110
110
  type: "resolve" | "reject";
111
111
  response?: unknown;
112
112
  }[] | undefined;
@@ -115,7 +115,7 @@ export declare function useMazDialogPromise(): {
115
115
  id: string;
116
116
  isActive: boolean;
117
117
  resolve: (value: unknown) => void;
118
- reject?: ((reason?: unknown) => void) | undefined;
118
+ reject?: (reason?: unknown) => void;
119
119
  }[]>;
120
120
  showDialogAndWaitChoice: typeof showDialogAndWaitChoice;
121
121
  removeDialogFromState: typeof removeDialogFromState;
@@ -10,7 +10,15 @@ export interface Props {
10
10
  /** Disable the close button */
11
11
  noClose?: boolean;
12
12
  }
13
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
13
+ declare function __VLS_template(): {
14
+ title?(_: {
15
+ close: any;
16
+ }): any;
17
+ default?(_: {
18
+ close: any;
19
+ }): any;
20
+ };
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
14
22
  title: undefined;
15
23
  variant: string;
16
24
  backdropClass: undefined;
@@ -35,17 +43,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
43
  }, {
36
44
  size: string;
37
45
  title: string;
38
- variant: "top" | "bottom" | "left" | "right";
46
+ variant: "right" | "top" | "left" | "bottom";
39
47
  backdropClass: string;
40
48
  noClose: boolean;
41
- }, {}>, {
42
- title?(_: {
43
- close: () => void;
44
- }): any;
45
- default?(_: {
46
- close: () => void;
47
- }): any;
48
- }>;
49
+ }, {}>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
49
51
  export default _default;
50
52
  type __VLS_WithDefaults<P, D> = {
51
53
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -47,7 +47,29 @@ export interface Props {
47
47
  */
48
48
  screenReaderDescription?: string;
49
49
  }
50
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
50
+ declare function __VLS_template(): {
51
+ "screen-reader-description"?(_: {}): any;
52
+ element?(_: {
53
+ isOpen: boolean;
54
+ }): any;
55
+ default?(_: {}): any;
56
+ dropdown?(_: {
57
+ items: MenuItem[];
58
+ }): any;
59
+ menuitem?(_: {
60
+ item: MenuItem;
61
+ }): any;
62
+ "menuitem-label"?(_: {
63
+ item: MenuItem;
64
+ }): any;
65
+ "menuitem-label"?(_: {
66
+ item: MenuItem;
67
+ }): any;
68
+ "menuitem-label"?(_: {
69
+ item: MenuItem;
70
+ }): any;
71
+ };
72
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
51
73
  class: undefined;
52
74
  style: undefined;
53
75
  items: () => never[];
@@ -76,32 +98,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
76
98
  id: string;
77
99
  position: Position;
78
100
  color: Color;
79
- class: any;
80
- trigger: "click" | "both" | "hover";
101
+ class: HTMLAttributes["class"];
102
+ trigger: "click" | "hover" | "both";
81
103
  items: MenuItem[];
82
104
  screenReaderDescription: string;
83
- }, {}>, {
84
- "screen-reader-description"?(_: {}): any;
85
- element?(_: {
86
- isOpen: boolean;
87
- }): any;
88
- default?(_: {}): any;
89
- dropdown?(_: {
90
- items: MenuItem[];
91
- }): any;
92
- menuitem?(_: {
93
- item: MenuItem;
94
- }): any;
95
- "menuitem-label"?(_: {
96
- item: MenuItem;
97
- }): any;
98
- "menuitem-label"?(_: {
99
- item: MenuItem;
100
- }): any;
101
- "menuitem-label"?(_: {
102
- item: MenuItem;
103
- }): any;
104
- }>;
105
+ }, {}>;
106
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
105
107
  export default _default;
106
108
  type __VLS_WithDefaults<P, D> = {
107
109
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -37,11 +37,11 @@ declare const _default: import("vue").DefineComponent<{
37
37
  required: true;
38
38
  };
39
39
  height: {
40
- type: PropType<string | number>;
40
+ type: PropType<number | string>;
41
41
  default: string;
42
42
  };
43
43
  width: {
44
- type: PropType<string | number>;
44
+ type: PropType<number | string>;
45
45
  default: string;
46
46
  };
47
47
  noDestroyOnUnmount: {
@@ -58,33 +58,33 @@ declare const _default: import("vue").DefineComponent<{
58
58
  }>;
59
59
  setOption: (option: string, value: unknown) => MazDropzoneOptions;
60
60
  manuallyAddFile: (file: DropzoneFile, fileUrl: string) => void;
61
- removeAllFiles: (cancelIfNecessary?: boolean | undefined) => void;
61
+ removeAllFiles: (cancelIfNecessary?: boolean) => void;
62
62
  processQueue: () => void;
63
- destroy: () => import("dropzone");
63
+ destroy: () => Dropzone;
64
64
  disable: () => void;
65
65
  enable: () => void;
66
- accept: (file: DropzoneFile, done: (error?: string | Error | undefined) => void) => void;
67
- addFile: (file: DropzoneFile) => void;
68
- resizeImage: (file: DropzoneFile, width?: number | undefined, height?: number | undefined, resizeMethod?: string | undefined, callback?: ((...args: any[]) => void) | undefined) => void;
69
- cancelUpload: (file: DropzoneFile) => void;
66
+ accept: (file: Dropzone.DropzoneFile, done: (error?: string | Error) => void) => void;
67
+ addFile: (file: Dropzone.DropzoneFile) => void;
68
+ resizeImage: (file: Dropzone.DropzoneFile, width?: number, height?: number, resizeMethod?: string, callback?: ((...args: any[]) => void) | undefined) => void;
69
+ cancelUpload: (file: Dropzone.DropzoneFile) => void;
70
70
  getAcceptedFiles: () => MazDropzoneFile[];
71
71
  getRejectedFiles: () => MazDropzoneFile[];
72
- getFilesWithStatus: (status: string) => DropzoneFile[];
73
- getQueuedFiles: () => DropzoneFile[];
74
- getUploadingFiles: () => DropzoneFile[];
75
- getAddedFiles: () => DropzoneFile[];
76
- getActiveFiles: () => DropzoneFile[];
72
+ getFilesWithStatus: (status: string) => Dropzone.DropzoneFile[];
73
+ getQueuedFiles: () => Dropzone.DropzoneFile[];
74
+ getUploadingFiles: () => Dropzone.DropzoneFile[];
75
+ getAddedFiles: () => Dropzone.DropzoneFile[];
76
+ getActiveFiles: () => Dropzone.DropzoneFile[];
77
77
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "error" | "paste" | "reset" | "success" | "thumbnail" | "addedfile" | "addedfiles" | "removedfile" | "processing" | "processingmultiple" | "uploadprogress" | "totaluploadprogress" | "sending" | "sendingmultiple" | "canceled" | "canceledmultiple" | "complete" | "completemultiple" | "maxfilesexceeded" | "maxfilesreached" | "queuecomplete")[], "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "error" | "paste" | "reset" | "success" | "thumbnail" | "addedfile" | "addedfiles" | "removedfile" | "processing" | "processingmultiple" | "uploadprogress" | "totaluploadprogress" | "sending" | "sendingmultiple" | "canceled" | "canceledmultiple" | "complete" | "completemultiple" | "maxfilesexceeded" | "maxfilesreached" | "queuecomplete", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
78
78
  options: {
79
79
  type: PropType<MazDropzoneOptions>;
80
80
  required: true;
81
81
  };
82
82
  height: {
83
- type: PropType<string | number>;
83
+ type: PropType<number | string>;
84
84
  default: string;
85
85
  };
86
86
  width: {
87
- type: PropType<string | number>;
87
+ type: PropType<number | string>;
88
88
  default: string;
89
89
  };
90
90
  noDestroyOnUnmount: {
@@ -14,7 +14,10 @@ declare let __VLS_typeProps: Props;
14
14
  type __VLS_PublicProps = {
15
15
  modelValue?: boolean;
16
16
  } & typeof __VLS_typeProps;
17
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
17
+ declare function __VLS_template(): {
18
+ default?(_: {}): any;
19
+ };
20
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
18
21
  duration: string;
19
22
  timingFunction: string;
20
23
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -27,9 +30,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
30
  }, {
28
31
  duration: string;
29
32
  timingFunction: string;
30
- }, {}>, {
31
- default?(_: {}): any;
32
- }>;
33
+ }, {}>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
33
35
  export default _default;
34
36
  type __VLS_WithDefaults<P, D> = {
35
37
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -5,7 +5,10 @@ export interface Props {
5
5
  /** The size of the spinner */
6
6
  size?: string;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
8
+ declare function __VLS_template(): {
9
+ default?(_: {}): any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
9
12
  color: string;
10
13
  size: string;
11
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
@@ -14,9 +17,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
17
  }>>>, {
15
18
  size: string;
16
19
  color: Color;
17
- }, {}>, {
18
- default?(_: {}): any;
19
- }>;
20
+ }, {}>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
22
  export default _default;
21
23
  type __VLS_WithDefaults<P, D> = {
22
24
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  };
28
28
  /** The function to transform the source of the SVG file - e.g: `(svg) => svg` */
29
29
  transformSource: {
30
- type: PropType<(param: SVGElement) => SVGElement>;
30
+ type: PropType<(param: SVGElement) => typeof param>;
31
31
  default: (svg: SVGElement) => SVGElement;
32
32
  };
33
33
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
62
62
  };
63
63
  /** The function to transform the source of the SVG file - e.g: `(svg) => svg` */
64
64
  transformSource: {
65
- type: PropType<(param: SVGElement) => SVGElement>;
65
+ type: PropType<(param: SVGElement) => typeof param>;
66
66
  default: (svg: SVGElement) => SVGElement;
67
67
  };
68
68
  }>> & {
@@ -75,6 +75,6 @@ declare const _default: import("vue").DefineComponent<{
75
75
  name: string;
76
76
  src: string;
77
77
  path: string;
78
- transformSource: (param: SVGElement) => SVGElement;
78
+ transformSource: (param: SVGElement) => typeof param;
79
79
  }, {}>;
80
80
  export default _default;