@dao-style/core 1.23.1-beta.1 → 1.25.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.
@@ -38,6 +38,7 @@ declare const DaoButton: {
38
38
  loading: boolean;
39
39
  iconLeft: string;
40
40
  iconRight: string;
41
+ nativeType: import("./props").ButtonNativeType;
41
42
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
42
43
  type: {
43
44
  type: import("vue").PropType<import("./props").ButtonType>;
@@ -110,7 +111,12 @@ declare const DaoButton: {
110
111
  type: BooleanConstructor;
111
112
  default: boolean;
112
113
  };
113
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "useFont" | "size" | "block" | "active" | "tooltipContent" | "tooltipDisabled" | "tooltipOption" | "loading" | "iconLeft" | "iconRight">;
114
+ nativeType: {
115
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
116
+ default: string;
117
+ validator: (value: import("./props").ButtonNativeType) => boolean;
118
+ };
119
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "useFont" | "size" | "block" | "active" | "tooltipContent" | "tooltipDisabled" | "tooltipOption" | "loading" | "iconLeft" | "iconRight" | "nativeType">;
114
120
  $attrs: {
115
121
  [x: string]: unknown;
116
122
  };
@@ -196,6 +202,11 @@ declare const DaoButton: {
196
202
  type: BooleanConstructor;
197
203
  default: boolean;
198
204
  };
205
+ nativeType: {
206
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
207
+ default: string;
208
+ validator: (value: import("./props").ButtonNativeType) => boolean;
209
+ };
199
210
  }>>, {
200
211
  classList: import("vue").ComputedRef<string[]>;
201
212
  realDisabled: import("vue").ComputedRef<boolean>;
@@ -262,6 +273,7 @@ declare const DaoButton: {
262
273
  loading: boolean;
263
274
  iconLeft: string;
264
275
  iconRight: string;
276
+ nativeType: import("./props").ButtonNativeType;
265
277
  }, {}, string> & {
266
278
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
267
279
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -354,6 +366,11 @@ declare const DaoButton: {
354
366
  type: BooleanConstructor;
355
367
  default: boolean;
356
368
  };
369
+ nativeType: {
370
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
371
+ default: string;
372
+ validator: (value: import("./props").ButtonNativeType) => boolean;
373
+ };
357
374
  }>> & import("vue").ShallowUnwrapRef<{
358
375
  classList: import("vue").ComputedRef<string[]>;
359
376
  realDisabled: import("vue").ComputedRef<boolean>;
@@ -462,6 +479,11 @@ declare const DaoButton: {
462
479
  type: BooleanConstructor;
463
480
  default: boolean;
464
481
  };
482
+ nativeType: {
483
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
484
+ default: string;
485
+ validator: (value: import("./props").ButtonNativeType) => boolean;
486
+ };
465
487
  }>>, {
466
488
  classList: import("vue").ComputedRef<string[]>;
467
489
  realDisabled: import("vue").ComputedRef<boolean>;
@@ -528,6 +550,7 @@ declare const DaoButton: {
528
550
  loading: boolean;
529
551
  iconLeft: string;
530
552
  iconRight: string;
553
+ nativeType: import("./props").ButtonNativeType;
531
554
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
532
555
  $props: Partial<ButtonProps>;
533
556
  $slots: {
@@ -70,6 +70,11 @@ declare const _default: import("vue").DefineComponent<{
70
70
  type: BooleanConstructor;
71
71
  default: boolean;
72
72
  };
73
+ nativeType: {
74
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
75
+ default: string;
76
+ validator: (value: import("./props").ButtonNativeType) => boolean;
77
+ };
73
78
  }, {
74
79
  classList: import("vue").ComputedRef<string[]>;
75
80
  realDisabled: import("vue").ComputedRef<boolean>;
@@ -174,6 +179,11 @@ declare const _default: import("vue").DefineComponent<{
174
179
  type: BooleanConstructor;
175
180
  default: boolean;
176
181
  };
182
+ nativeType: {
183
+ type: import("vue").PropType<import("./props").ButtonNativeType>;
184
+ default: string;
185
+ validator: (value: import("./props").ButtonNativeType) => boolean;
186
+ };
177
187
  }>>, {
178
188
  type: import("./props").ButtonType;
179
189
  disabled: boolean;
@@ -208,5 +218,6 @@ declare const _default: import("vue").DefineComponent<{
208
218
  loading: boolean;
209
219
  iconLeft: string;
210
220
  iconRight: string;
221
+ nativeType: import("./props").ButtonNativeType;
211
222
  }>;
212
223
  export default _default;
@@ -1,6 +1,8 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
3
3
  export declare const BUTTON_TYPES: ButtonType[];
4
+ export type ButtonNativeType = 'submit' | 'reset' | 'button';
5
+ export declare const BUTTON_NATIVE_TYPES: ButtonNativeType[];
4
6
  export declare const buttonProps: {
5
7
  type: {
6
8
  type: PropType<ButtonType>;
@@ -73,5 +75,10 @@ export declare const buttonProps: {
73
75
  type: BooleanConstructor;
74
76
  default: boolean;
75
77
  };
78
+ nativeType: {
79
+ type: PropType<ButtonNativeType>;
80
+ default: string;
81
+ validator: (value: ButtonNativeType) => boolean;
82
+ };
76
83
  };
77
84
  export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
@@ -7,10 +7,10 @@ declare const DaoDialogHeader: {
7
7
  $props: Partial<{
8
8
  title: string;
9
9
  showClose: boolean;
10
- dialogType: import("../../utils/types").AlertType;
10
+ dialogType: import("./props").DaoDialogType;
11
11
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
12
  dialogType: {
13
- type: import("vue").PropType<import("../../utils/types").AlertType>;
13
+ type: import("vue").PropType<import("./props").DaoDialogType>;
14
14
  default: undefined;
15
15
  };
16
16
  showClose: {
@@ -39,7 +39,7 @@ declare const DaoDialogHeader: {
39
39
  $el: any;
40
40
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
41
41
  dialogType: {
42
- type: import("vue").PropType<import("../../utils/types").AlertType>;
42
+ type: import("vue").PropType<import("./props").DaoDialogType>;
43
43
  default: undefined;
44
44
  };
45
45
  showClose: {
@@ -53,12 +53,12 @@ declare const DaoDialogHeader: {
53
53
  }>> & {
54
54
  onClose?: ((...args: any[]) => any) | undefined;
55
55
  }, {
56
- typeIconsMap: Record<import("../../utils/types").AlertType, string>;
56
+ typeIconsMap: Record<import("./props").DaoDialogType, string>;
57
57
  onClose: () => void;
58
58
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
59
59
  title: string;
60
60
  showClose: boolean;
61
- dialogType: import("../../utils/types").AlertType;
61
+ dialogType: import("./props").DaoDialogType;
62
62
  }, {}, string> & {
63
63
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
64
64
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -81,7 +81,7 @@ declare const DaoDialogHeader: {
81
81
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
82
82
  } & Readonly<import("vue").ExtractPropTypes<{
83
83
  dialogType: {
84
- type: import("vue").PropType<import("../../utils/types").AlertType>;
84
+ type: import("vue").PropType<import("./props").DaoDialogType>;
85
85
  default: undefined;
86
86
  };
87
87
  showClose: {
@@ -95,7 +95,7 @@ declare const DaoDialogHeader: {
95
95
  }>> & {
96
96
  onClose?: ((...args: any[]) => any) | undefined;
97
97
  } & import("vue").ShallowUnwrapRef<{
98
- typeIconsMap: Record<import("../../utils/types").AlertType, string>;
98
+ typeIconsMap: Record<import("./props").DaoDialogType, string>;
99
99
  onClose: () => void;
100
100
  }> & {} & import("vue").ComponentCustomProperties & {};
101
101
  __isFragment?: undefined;
@@ -103,7 +103,7 @@ declare const DaoDialogHeader: {
103
103
  __isSuspense?: undefined;
104
104
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
105
105
  dialogType: {
106
- type: import("vue").PropType<import("../../utils/types").AlertType>;
106
+ type: import("vue").PropType<import("./props").DaoDialogType>;
107
107
  default: undefined;
108
108
  };
109
109
  showClose: {
@@ -117,12 +117,12 @@ declare const DaoDialogHeader: {
117
117
  }>> & {
118
118
  onClose?: ((...args: any[]) => any) | undefined;
119
119
  }, {
120
- typeIconsMap: Record<import("../../utils/types").AlertType, string>;
120
+ typeIconsMap: Record<import("./props").DaoDialogType, string>;
121
121
  onClose: () => void;
122
122
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
123
123
  title: string;
124
124
  showClose: boolean;
125
- dialogType: import("../../utils/types").AlertType;
125
+ dialogType: import("./props").DaoDialogType;
126
126
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
127
127
  $props: Partial<DialogHeaderProps>;
128
128
  $slots: {
@@ -1,7 +1,7 @@
1
- import type { AlertType } from '@/utils';
1
+ import { type DaoDialogType } from './props';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  dialogType: {
4
- type: import("vue").PropType<AlertType>;
4
+ type: import("vue").PropType<DaoDialogType>;
5
5
  default: undefined;
6
6
  };
7
7
  showClose: {
@@ -13,11 +13,11 @@ declare const _default: import("vue").DefineComponent<{
13
13
  default: string;
14
14
  };
15
15
  }, {
16
- typeIconsMap: Record<AlertType, string>;
16
+ typeIconsMap: Record<DaoDialogType, string>;
17
17
  onClose: () => void;
18
18
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  dialogType: {
20
- type: import("vue").PropType<AlertType>;
20
+ type: import("vue").PropType<DaoDialogType>;
21
21
  default: undefined;
22
22
  };
23
23
  showClose: {
@@ -33,6 +33,6 @@ declare const _default: import("vue").DefineComponent<{
33
33
  }, {
34
34
  title: string;
35
35
  showClose: boolean;
36
- dialogType: AlertType;
36
+ dialogType: DaoDialogType;
37
37
  }>;
38
38
  export default _default;
@@ -13,7 +13,7 @@ declare const DaoDialog: {
13
13
  bottom: string;
14
14
  size: "sm" | "md" | "lg" | "xl";
15
15
  middle: boolean;
16
- dialogType: import("../../utils/types").AlertType;
16
+ dialogType: import("./props").DaoDialogType;
17
17
  containerClass: string;
18
18
  closeOnClickOutside: boolean;
19
19
  closeOnPressEscape: boolean;
@@ -29,7 +29,7 @@ declare const DaoDialog: {
29
29
  default: boolean;
30
30
  };
31
31
  dialogType: {
32
- type: import("vue").PropType<import("../../utils/types").AlertType>;
32
+ type: import("vue").PropType<import("./props").DaoDialogType>;
33
33
  default: undefined;
34
34
  };
35
35
  header: {
@@ -125,7 +125,7 @@ declare const DaoDialog: {
125
125
  default: boolean;
126
126
  };
127
127
  dialogType: {
128
- type: import("vue").PropType<import("../../utils/types").AlertType>;
128
+ type: import("vue").PropType<import("./props").DaoDialogType>;
129
129
  default: undefined;
130
130
  };
131
131
  header: {
@@ -227,7 +227,7 @@ declare const DaoDialog: {
227
227
  bottom: string;
228
228
  size: "sm" | "md" | "lg" | "xl";
229
229
  middle: boolean;
230
- dialogType: import("../../utils/types").AlertType;
230
+ dialogType: import("./props").DaoDialogType;
231
231
  containerClass: string;
232
232
  closeOnClickOutside: boolean;
233
233
  closeOnPressEscape: boolean;
@@ -263,7 +263,7 @@ declare const DaoDialog: {
263
263
  default: boolean;
264
264
  };
265
265
  dialogType: {
266
- type: import("vue").PropType<import("../../utils/types").AlertType>;
266
+ type: import("vue").PropType<import("./props").DaoDialogType>;
267
267
  default: undefined;
268
268
  };
269
269
  header: {
@@ -366,7 +366,7 @@ declare const DaoDialog: {
366
366
  default: boolean;
367
367
  };
368
368
  dialogType: {
369
- type: import("vue").PropType<import("../../utils/types").AlertType>;
369
+ type: import("vue").PropType<import("./props").DaoDialogType>;
370
370
  default: undefined;
371
371
  };
372
372
  header: {
@@ -468,7 +468,7 @@ declare const DaoDialog: {
468
468
  bottom: string;
469
469
  size: "sm" | "md" | "lg" | "xl";
470
470
  middle: boolean;
471
- dialogType: import("../../utils/types").AlertType;
471
+ dialogType: import("./props").DaoDialogType;
472
472
  containerClass: string;
473
473
  closeOnClickOutside: boolean;
474
474
  closeOnPressEscape: boolean;
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  default: boolean;
5
5
  };
6
6
  dialogType: {
7
- type: import("vue").PropType<import("../..").AlertType>;
7
+ type: import("vue").PropType<import("./props").DaoDialogType>;
8
8
  default: undefined;
9
9
  };
10
10
  header: {
@@ -94,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
94
94
  default: boolean;
95
95
  };
96
96
  dialogType: {
97
- type: import("vue").PropType<import("../..").AlertType>;
97
+ type: import("vue").PropType<import("./props").DaoDialogType>;
98
98
  default: undefined;
99
99
  };
100
100
  header: {
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
179
179
  bottom: string;
180
180
  size: "sm" | "md" | "lg" | "xl";
181
181
  middle: boolean;
182
- dialogType: import("../..").AlertType;
182
+ dialogType: import("./props").DaoDialogType;
183
183
  containerClass: string;
184
184
  closeOnClickOutside: boolean;
185
185
  closeOnPressEscape: boolean;
@@ -5,6 +5,7 @@ export declare const DIALOG_MINIMUM_PADDING = "20px";
5
5
  export declare const DIALOG_DEFAULT_PADDING_TOP = "100px";
6
6
  export declare const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
7
7
  export declare const KEYBOARD_EVENT_NAME = "keydown";
8
+ export type DaoDialogType = AlertType | 'failed';
8
9
  export declare const dialogFooterProps: {
9
10
  textConfirm: {
10
11
  type: StringConstructor;
@@ -25,7 +26,7 @@ export declare const dialogFooterProps: {
25
26
  };
26
27
  export declare const dialogHeaderProps: {
27
28
  dialogType: {
28
- type: PropType<AlertType>;
29
+ type: PropType<DaoDialogType>;
29
30
  default: undefined;
30
31
  };
31
32
  showClose: {
@@ -43,7 +44,7 @@ export declare const dialogProps: {
43
44
  default: boolean;
44
45
  };
45
46
  dialogType: {
46
- type: PropType<AlertType>;
47
+ type: PropType<DaoDialogType>;
47
48
  default: undefined;
48
49
  };
49
50
  header: {