@nutui/nutui 4.3.0-beta.5 → 4.3.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 (71) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +4032 -4072
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/actionsheet/ActionSheet.js +1 -1
  7. package/dist/packages/address/Address.js +1 -1
  8. package/dist/packages/audio/Audio.js +1 -1
  9. package/dist/packages/avatarcropper/AvatarCropper.js +4 -4
  10. package/dist/packages/avatarcropper/index.css +1 -1
  11. package/dist/packages/avatarcropper/index.scss +6 -0
  12. package/dist/packages/button/Button.js +25 -50
  13. package/dist/packages/calendar/Calendar.js +1 -1
  14. package/dist/packages/calendarcard/CalendarCard.js +6 -24
  15. package/dist/packages/cascader/Cascader.js +2 -2
  16. package/dist/packages/dialog/Dialog.js +1 -1
  17. package/dist/packages/divider/Divider.js +5 -17
  18. package/dist/packages/imagepreview/ImagePreview.js +2 -2
  19. package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
  20. package/dist/packages/{index-rbZsBckW.js → index-wY4t0zYt.js} +0 -4
  21. package/dist/packages/inputnumber/InputNumber.js +1 -0
  22. package/dist/packages/list/List.js +1 -1
  23. package/dist/packages/menu/Menu.js +1 -1
  24. package/dist/packages/menuitem/MenuItem.js +1 -1
  25. package/dist/packages/noticebar/Noticebar.js +9 -10
  26. package/dist/packages/notify/Notify.js +17 -5
  27. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  28. package/dist/packages/popover/Popover.js +90 -88
  29. package/dist/packages/popover/index.css +1 -1
  30. package/dist/packages/popover/index.scss +5 -14
  31. package/dist/packages/popup/Popup.js +1 -1
  32. package/dist/packages/range/Range.js +1 -1
  33. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  34. package/dist/packages/sku/Sku.js +1 -1
  35. package/dist/packages/sticky/Sticky.js +1 -1
  36. package/dist/packages/tabs/Tabs.js +1 -1
  37. package/dist/packages/timeselect/TimeSelect.js +1 -1
  38. package/dist/packages/tour/Tour.js +3 -3
  39. package/dist/packages/tour/index.css +1 -1
  40. package/dist/smartips/web-types.json +22 -31
  41. package/dist/style.css +1 -1
  42. package/dist/types/__VUE/actionsheet/index.vue.d.ts +6 -15
  43. package/dist/types/__VUE/address/index.vue.d.ts +6 -15
  44. package/dist/types/__VUE/button/button.vue.d.ts +65 -69
  45. package/dist/types/__VUE/button/index.d.ts +1 -0
  46. package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
  47. package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
  48. package/dist/types/__VUE/cascader/index.vue.d.ts +6 -15
  49. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  50. package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
  51. package/dist/types/__VUE/dialog/index.vue.d.ts +6 -15
  52. package/dist/types/__VUE/divider/divider.vue.d.ts +43 -35
  53. package/dist/types/__VUE/divider/index.d.ts +1 -0
  54. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  55. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
  56. package/dist/types/__VUE/noticebar/types.d.ts +1 -0
  57. package/dist/types/__VUE/notify/index.vue.d.ts +8 -6
  58. package/dist/types/__VUE/notify/types.d.ts +3 -0
  59. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -3
  60. package/dist/types/__VUE/numberkeyboard/types.d.ts +1 -0
  61. package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
  62. package/dist/types/__VUE/popover/type.d.ts +7 -0
  63. package/dist/types/__VUE/popup/index.vue.d.ts +6 -15
  64. package/dist/types/__VUE/popup/props.d.ts +4 -6
  65. package/dist/types/__VUE/popup/types.d.ts +2 -0
  66. package/dist/types/__VUE/radio/index.vue.d.ts +2 -2
  67. package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
  68. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  69. package/dist/types/__VUE/switch/index.vue.d.ts +6 -6
  70. package/dist/types/index.d.ts +1 -1
  71. package/package.json +1 -1
@@ -69,7 +69,7 @@ declare const _default: Install< import("vue").DefineComponent<{
69
69
  default: boolean;
70
70
  };
71
71
  position: {
72
- type: StringConstructor;
72
+ type: PropType<import("../popup/types").PopupPosition>;
73
73
  default: string;
74
74
  };
75
75
  transition: {
@@ -89,11 +89,7 @@ declare const _default: Install< import("vue").DefineComponent<{
89
89
  default: boolean;
90
90
  };
91
91
  closeIconPosition: {
92
- type: StringConstructor;
93
- default: string;
94
- };
95
- closeIcon: {
96
- type: StringConstructor;
92
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
97
93
  default: string;
98
94
  };
99
95
  destroyOnClose: {
@@ -195,7 +191,7 @@ declare const _default: Install< import("vue").DefineComponent<{
195
191
  default: boolean;
196
192
  };
197
193
  position: {
198
- type: StringConstructor;
194
+ type: PropType<import("../popup/types").PopupPosition>;
199
195
  default: string;
200
196
  };
201
197
  transition: {
@@ -215,11 +211,7 @@ declare const _default: Install< import("vue").DefineComponent<{
215
211
  default: boolean;
216
212
  };
217
213
  closeIconPosition: {
218
- type: StringConstructor;
219
- default: string;
220
- };
221
- closeIcon: {
222
- type: StringConstructor;
214
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
223
215
  default: string;
224
216
  };
225
217
  destroyOnClose: {
@@ -276,11 +268,10 @@ declare const _default: Install< import("vue").DefineComponent<{
276
268
  overlayClass: string;
277
269
  overlayStyle: Record<string, any>;
278
270
  closeOnClickOverlay: boolean;
279
- position: string;
271
+ position: import("../popup/types").PopupPosition;
280
272
  popClass: string;
281
273
  closeable: boolean;
282
- closeIconPosition: string;
283
- closeIcon: string;
274
+ closeIconPosition: import("../popup/types").PopupCloseIconPosition;
284
275
  destroyOnClose: boolean;
285
276
  teleport: string | Element;
286
277
  teleportDisable: boolean;
@@ -78,7 +78,7 @@ declare const _default: Install< import("vue").DefineComponent<{
78
78
  default: boolean;
79
79
  };
80
80
  position: {
81
- type: StringConstructor;
81
+ type: PropType<import("../popup/types").PopupPosition>;
82
82
  default: string;
83
83
  };
84
84
  transition: {
@@ -98,11 +98,7 @@ declare const _default: Install< import("vue").DefineComponent<{
98
98
  default: boolean;
99
99
  };
100
100
  closeIconPosition: {
101
- type: StringConstructor;
102
- default: string;
103
- };
104
- closeIcon: {
105
- type: StringConstructor;
101
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
106
102
  default: string;
107
103
  };
108
104
  destroyOnClose: {
@@ -242,7 +238,7 @@ declare const _default: Install< import("vue").DefineComponent<{
242
238
  default: boolean;
243
239
  };
244
240
  position: {
245
- type: StringConstructor;
241
+ type: PropType<import("../popup/types").PopupPosition>;
246
242
  default: string;
247
243
  };
248
244
  transition: {
@@ -262,11 +258,7 @@ declare const _default: Install< import("vue").DefineComponent<{
262
258
  default: boolean;
263
259
  };
264
260
  closeIconPosition: {
265
- type: StringConstructor;
266
- default: string;
267
- };
268
- closeIcon: {
269
- type: StringConstructor;
261
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
270
262
  default: string;
271
263
  };
272
264
  destroyOnClose: {
@@ -327,11 +319,10 @@ declare const _default: Install< import("vue").DefineComponent<{
327
319
  overlayClass: string;
328
320
  overlayStyle: Record<string, any>;
329
321
  closeOnClickOverlay: boolean;
330
- position: string;
322
+ position: import("../popup/types").PopupPosition;
331
323
  popClass: string;
332
324
  closeable: boolean;
333
- closeIconPosition: string;
334
- closeIcon: string;
325
+ closeIconPosition: import("../popup/types").PopupCloseIconPosition;
335
326
  destroyOnClose: boolean;
336
327
  teleport: string | Element;
337
328
  teleportDisable: boolean;
@@ -1,75 +1,54 @@
1
1
  import type { WithInstall } from '../../utils';
2
- import { PropType } from 'vue';
3
2
  import type { ButtonShape, ButtonType, ButtonSize } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- color: {
6
- type: StringConstructor;
7
- default: string;
8
- };
9
- shape: {
10
- type: PropType<ButtonShape>;
11
- default: string;
12
- };
13
- plain: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- loading: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- disabled: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- type: {
26
- type: PropType<ButtonType>;
27
- default: string;
28
- };
29
- size: {
30
- type: PropType<ButtonSize>;
31
- default: string;
32
- };
33
- block: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ export type ButtonProps = Partial<{
4
+ color: string;
5
+ shape: ButtonShape;
6
+ plain: boolean;
7
+ loading: boolean;
8
+ disabled: boolean;
9
+ type: ButtonType;
10
+ size: ButtonSize;
11
+ block: boolean;
12
+ }>;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
14
+ color: string;
15
+ shape: ButtonShape;
16
+ plain: boolean;
17
+ loading: boolean;
18
+ disabled: boolean;
19
+ type: ButtonType;
20
+ size: ButtonSize;
21
+ block: boolean;
22
+ }>>, {
23
+ color: string;
24
+ shape: string;
25
+ plain: boolean;
26
+ loading: boolean;
27
+ disabled: boolean;
28
+ type: string;
29
+ size: string;
30
+ block: boolean;
31
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
32
  click: (...args: any[]) => void;
39
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
- color: {
41
- type: StringConstructor;
42
- default: string;
43
- };
44
- shape: {
45
- type: PropType<ButtonShape>;
46
- default: string;
47
- };
48
- plain: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
- loading: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- disabled: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- type: {
61
- type: PropType<ButtonType>;
62
- default: string;
63
- };
64
- size: {
65
- type: PropType<ButtonSize>;
66
- default: string;
67
- };
68
- block: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
72
- }>> & {
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
34
+ color: string;
35
+ shape: ButtonShape;
36
+ plain: boolean;
37
+ loading: boolean;
38
+ disabled: boolean;
39
+ type: ButtonType;
40
+ size: ButtonSize;
41
+ block: boolean;
42
+ }>>, {
43
+ color: string;
44
+ shape: string;
45
+ plain: boolean;
46
+ loading: boolean;
47
+ disabled: boolean;
48
+ type: string;
49
+ size: string;
50
+ block: boolean;
51
+ }>>> & {
73
52
  onClick?: ((...args: any[]) => any) | undefined;
74
53
  }, {
75
54
  color: string;
@@ -92,6 +71,23 @@ declare module 'vue' {
92
71
  NutButton: typeof _default;
93
72
  }
94
73
  }
74
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
75
+ type __VLS_TypePropsToRuntimeProps<T> = {
76
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
77
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
78
+ } : {
79
+ type: import('vue').PropType<T[K]>;
80
+ required: true;
81
+ };
82
+ };
83
+ type __VLS_WithDefaults<P, D> = {
84
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
85
+ default: D[K];
86
+ }> : P[K];
87
+ };
88
+ type __VLS_Prettify<T> = {
89
+ [K in keyof T]: T[K];
90
+ } & {};
95
91
  type __VLS_WithTemplateSlots<T, S> = T & {
96
92
  new (): {
97
93
  $slots: S;
@@ -1,5 +1,6 @@
1
1
  import Button from './button.vue';
2
2
  import type { ComponentPublicInstance } from 'vue';
3
+ export type { ButtonProps } from './button.vue';
3
4
  export type { ButtonType, ButtonSize, ButtonShape, ButtonFormType } from './types';
4
5
  export type ButtonInstance = ComponentPublicInstance & InstanceType<typeof Button>;
5
6
  export { Button, Button as default };
@@ -1,32 +1,28 @@
1
1
  import type { WithInstall } from '../../utils';
2
- import { PropType } from 'vue';
3
- import { CalendarCardType, CalendarCardValue } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- type: {
6
- type: PropType<CalendarCardType>;
7
- default: string;
8
- };
9
- firstDayOfWeek: {
10
- type: NumberConstructor;
11
- default: number;
12
- };
13
- modelValue: {
14
- type: PropType<CalendarCardValue>;
15
- default: () => never[];
16
- };
17
- startDate: {
18
- type: DateConstructor;
19
- default: null;
20
- };
21
- endDate: {
22
- type: DateConstructor;
23
- default: null;
24
- };
25
- disableDay: {
26
- type: FunctionConstructor;
27
- default: () => boolean;
28
- };
29
- }, {
2
+ import type { CalendarCardDay, CalendarCardType, CalendarCardValue } from './types';
3
+ export type CalendarCardProps = Partial<{
4
+ type: CalendarCardType;
5
+ firstDayOfWeek: number;
6
+ modelValue: CalendarCardValue;
7
+ startDate: Date | null;
8
+ endDate: Date | null;
9
+ disableDay: (day: CalendarCardDay) => boolean;
10
+ }>;
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
12
+ type: CalendarCardType;
13
+ firstDayOfWeek: number;
14
+ modelValue: CalendarCardValue;
15
+ startDate: Date | null;
16
+ endDate: Date | null;
17
+ disableDay: (day: CalendarCardDay) => boolean;
18
+ }>>, {
19
+ type: string;
20
+ firstDayOfWeek: number;
21
+ modelValue: null;
22
+ startDate: null;
23
+ endDate: null;
24
+ disableDay: () => false;
25
+ }>, {
30
26
  jump: (step?: number) => void;
31
27
  jumpTo: (y: number, m: number) => void;
32
28
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -34,32 +30,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
30
  "update:modelValue": (...args: any[]) => void;
35
31
  dayClick: (...args: any[]) => void;
36
32
  pageChange: (...args: any[]) => void;
37
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
- type: {
39
- type: PropType<CalendarCardType>;
40
- default: string;
41
- };
42
- firstDayOfWeek: {
43
- type: NumberConstructor;
44
- default: number;
45
- };
46
- modelValue: {
47
- type: PropType<CalendarCardValue>;
48
- default: () => never[];
49
- };
50
- startDate: {
51
- type: DateConstructor;
52
- default: null;
53
- };
54
- endDate: {
55
- type: DateConstructor;
56
- default: null;
57
- };
58
- disableDay: {
59
- type: FunctionConstructor;
60
- default: () => boolean;
61
- };
62
- }>> & {
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
34
+ type: CalendarCardType;
35
+ firstDayOfWeek: number;
36
+ modelValue: CalendarCardValue;
37
+ startDate: Date | null;
38
+ endDate: Date | null;
39
+ disableDay: (day: CalendarCardDay) => boolean;
40
+ }>>, {
41
+ type: string;
42
+ firstDayOfWeek: number;
43
+ modelValue: null;
44
+ startDate: null;
45
+ endDate: null;
46
+ disableDay: () => false;
47
+ }>>> & {
63
48
  onChange?: ((...args: any[]) => any) | undefined;
64
49
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
65
50
  onDayClick?: ((...args: any[]) => any) | undefined;
@@ -67,10 +52,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
52
  }, {
68
53
  type: CalendarCardType;
69
54
  modelValue: CalendarCardValue;
70
- startDate: Date;
71
- endDate: Date;
55
+ startDate: Date | null;
56
+ endDate: Date | null;
72
57
  firstDayOfWeek: number;
73
- disableDay: Function;
58
+ disableDay: (day: CalendarCardDay) => boolean;
74
59
  }, {}>, {
75
60
  top?(_: {
76
61
  day: {
@@ -105,6 +90,23 @@ declare module 'vue' {
105
90
  NutCalendarCard: typeof _default;
106
91
  }
107
92
  }
93
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
94
+ type __VLS_TypePropsToRuntimeProps<T> = {
95
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
96
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
97
+ } : {
98
+ type: import('vue').PropType<T[K]>;
99
+ required: true;
100
+ };
101
+ };
102
+ type __VLS_WithDefaults<P, D> = {
103
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
104
+ default: D[K];
105
+ }> : P[K];
106
+ };
107
+ type __VLS_Prettify<T> = {
108
+ [K in keyof T]: T[K];
109
+ } & {};
108
110
  type __VLS_WithTemplateSlots<T, S> = T & {
109
111
  new (): {
110
112
  $slots: S;
@@ -1,5 +1,6 @@
1
1
  import CalendarCard from './calendar-card.vue';
2
2
  import type { ComponentPublicInstance } from 'vue';
3
+ export type { CalendarCardProps } from './calendar-card.vue';
3
4
  export type { CalendarCardType, CalendarCardDay, CalendarCardMonth, CalendarCardValue } from './types';
4
5
  export type CalendarCardInstance = ComponentPublicInstance & InstanceType<typeof CalendarCard>;
5
6
  export { CalendarCard, CalendarCard as default };
@@ -48,7 +48,7 @@ declare const _default: Install< import("vue").DefineComponent<{
48
48
  default: boolean;
49
49
  };
50
50
  position: {
51
- type: StringConstructor;
51
+ type: import("vue").PropType<import("../popup/types").PopupPosition>;
52
52
  default: string;
53
53
  };
54
54
  transition: {
@@ -68,11 +68,7 @@ declare const _default: Install< import("vue").DefineComponent<{
68
68
  default: boolean;
69
69
  };
70
70
  closeIconPosition: {
71
- type: StringConstructor;
72
- default: string;
73
- };
74
- closeIcon: {
75
- type: StringConstructor;
71
+ type: import("vue").PropType<import("../popup/types").PopupCloseIconPosition>;
76
72
  default: string;
77
73
  };
78
74
  destroyOnClose: {
@@ -159,7 +155,7 @@ declare const _default: Install< import("vue").DefineComponent<{
159
155
  default: boolean;
160
156
  };
161
157
  position: {
162
- type: StringConstructor;
158
+ type: import("vue").PropType<import("../popup/types").PopupPosition>;
163
159
  default: string;
164
160
  };
165
161
  transition: {
@@ -179,11 +175,7 @@ declare const _default: Install< import("vue").DefineComponent<{
179
175
  default: boolean;
180
176
  };
181
177
  closeIconPosition: {
182
- type: StringConstructor;
183
- default: string;
184
- };
185
- closeIcon: {
186
- type: StringConstructor;
178
+ type: import("vue").PropType<import("../popup/types").PopupCloseIconPosition>;
187
179
  default: string;
188
180
  };
189
181
  destroyOnClose: {
@@ -238,11 +230,10 @@ declare const _default: Install< import("vue").DefineComponent<{
238
230
  overlayClass: string;
239
231
  overlayStyle: Record<string, any>;
240
232
  closeOnClickOverlay: boolean;
241
- position: string;
233
+ position: import("../popup/types").PopupPosition;
242
234
  popClass: string;
243
235
  closeable: boolean;
244
- closeIconPosition: string;
245
- closeIcon: string;
236
+ closeIconPosition: import("../popup/types").PopupCloseIconPosition;
246
237
  destroyOnClose: boolean;
247
238
  teleport: string | Element;
248
239
  teleportDisable: boolean;
@@ -103,8 +103,8 @@ declare const _default: Install< import("vue").DefineComponent<{
103
103
  size: CellSize;
104
104
  title: string;
105
105
  desc: string;
106
- center: boolean;
107
106
  replace: boolean;
107
+ center: boolean;
108
108
  subTitle: string;
109
109
  descTextAlign: string;
110
110
  isLink: boolean;
@@ -23,7 +23,7 @@ declare const _default: Install< import("vue").DefineComponent<{
23
23
  default: string;
24
24
  };
25
25
  ellipsis: {
26
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
26
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
27
27
  default: boolean;
28
28
  };
29
29
  videos: {
@@ -66,7 +66,7 @@ declare const _default: Install< import("vue").DefineComponent<{
66
66
  default: string;
67
67
  };
68
68
  ellipsis: {
69
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
69
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
70
70
  default: boolean;
71
71
  };
72
72
  videos: {
@@ -85,7 +85,7 @@ declare const _default: Install< import("vue").DefineComponent<{
85
85
  default: boolean;
86
86
  };
87
87
  position: {
88
- type: StringConstructor;
88
+ type: PropType<import("../popup/types").PopupPosition>;
89
89
  default: string;
90
90
  };
91
91
  transition: {
@@ -105,11 +105,7 @@ declare const _default: Install< import("vue").DefineComponent<{
105
105
  default: boolean;
106
106
  };
107
107
  closeIconPosition: {
108
- type: StringConstructor;
109
- default: string;
110
- };
111
- closeIcon: {
112
- type: StringConstructor;
108
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
113
109
  default: string;
114
110
  };
115
111
  destroyOnClose: {
@@ -235,7 +231,7 @@ declare const _default: Install< import("vue").DefineComponent<{
235
231
  default: boolean;
236
232
  };
237
233
  position: {
238
- type: StringConstructor;
234
+ type: PropType<import("../popup/types").PopupPosition>;
239
235
  default: string;
240
236
  };
241
237
  transition: {
@@ -255,11 +251,7 @@ declare const _default: Install< import("vue").DefineComponent<{
255
251
  default: boolean;
256
252
  };
257
253
  closeIconPosition: {
258
- type: StringConstructor;
259
- default: string;
260
- };
261
- closeIcon: {
262
- type: StringConstructor;
254
+ type: PropType<import("../popup/types").PopupCloseIconPosition>;
263
255
  default: string;
264
256
  };
265
257
  destroyOnClose: {
@@ -320,11 +312,10 @@ declare const _default: Install< import("vue").DefineComponent<{
320
312
  content: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
321
313
  [key: string]: any;
322
314
  }>;
323
- position: string;
315
+ position: import("../popup/types").PopupPosition;
324
316
  popClass: string;
325
317
  closeable: boolean;
326
- closeIconPosition: string;
327
- closeIcon: string;
318
+ closeIconPosition: import("../popup/types").PopupCloseIconPosition;
328
319
  destroyOnClose: boolean;
329
320
  teleport: string | Element;
330
321
  teleportDisable: boolean;
@@ -1,41 +1,32 @@
1
1
  import type { WithInstall } from '../../utils';
2
- import { PropType } from 'vue';
3
2
  import { DividerDirection, DividerPosition } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- contentPosition: {
6
- type: PropType<DividerPosition>;
7
- default: string;
8
- };
9
- dashed: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- hairline: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- direction: {
18
- type: PropType<DividerDirection>;
19
- default: string;
20
- };
21
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
- contentPosition: {
23
- type: PropType<DividerPosition>;
24
- default: string;
25
- };
26
- dashed: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- hairline: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- direction: {
35
- type: PropType<DividerDirection>;
36
- default: string;
37
- };
3
+ export type DividerProps = Partial<{
4
+ contentPosition: DividerPosition;
5
+ dashed: boolean;
6
+ hairline: boolean;
7
+ direction: DividerDirection;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
10
+ contentPosition: DividerPosition;
11
+ dashed: boolean;
12
+ hairline: boolean;
13
+ direction: DividerDirection;
14
+ }>>, {
15
+ contentPosition: string;
16
+ dashed: boolean;
17
+ hairline: boolean;
18
+ direction: string;
19
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
20
+ contentPosition: DividerPosition;
21
+ dashed: boolean;
22
+ hairline: boolean;
23
+ direction: DividerDirection;
38
24
  }>>, {
25
+ contentPosition: string;
26
+ dashed: boolean;
27
+ hairline: boolean;
28
+ direction: string;
29
+ }>>>, {
39
30
  dashed: boolean;
40
31
  contentPosition: DividerPosition;
41
32
  hairline: boolean;
@@ -49,6 +40,23 @@ declare module 'vue' {
49
40
  NutDivider: typeof _default;
50
41
  }
51
42
  }
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
52
60
  type __VLS_WithTemplateSlots<T, S> = T & {
53
61
  new (): {
54
62
  $slots: S;
@@ -1,5 +1,6 @@
1
1
  import Divider from './divider.vue';
2
2
  import type { ComponentPublicInstance } from 'vue';
3
+ export type { DividerProps } from './divider.vue';
3
4
  export type { DividerPosition, DividerDirection } from './types';
4
5
  export type DividerInstance = ComponentPublicInstance & InstanceType<typeof Divider>;
5
6
  export { Divider, Divider as default };