@kong/kongponents 9.30.1 → 9.30.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.
@@ -1,111 +1,14 @@
1
- import type { PropType } from 'vue';
2
- declare var __VLS_6: {}, __VLS_17: {};
3
- type __VLS_Slots = {} & {
4
- 'label-tooltip'?: (props: typeof __VLS_6) => any;
5
- } & {
6
- icon?: (props: typeof __VLS_17) => any;
7
- };
8
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
- labelAttributes: {
10
- type: ObjectConstructor;
11
- default: () => {};
12
- };
13
- label: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- help: {
18
- type: StringConstructor;
19
- default: undefined;
20
- };
21
- buttonText: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- placeholder: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- accept: {
30
- type: PropType<string[]>;
31
- required: true;
32
- };
33
- maxFileSize: {
34
- type: NumberConstructor;
35
- default: null;
36
- };
37
- error: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- errorMessage: {
42
- type: StringConstructor;
43
- default: string;
44
- };
45
- disabled: {
46
- type: BooleanConstructor;
47
- default: boolean;
48
- };
49
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
50
- error: (val: File[]) => any;
51
- "file-added": (val: File[]) => any;
1
+ import type { FileUploadProps, FileUploadSlots } from '../../../types';
2
+ type __VLS_Slots = FileUploadSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<FileUploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ error: (value: File[]) => any;
5
+ "file-added": (value: File[]) => any;
52
6
  "file-removed": () => any;
53
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
- labelAttributes: {
55
- type: ObjectConstructor;
56
- default: () => {};
57
- };
58
- label: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- help: {
63
- type: StringConstructor;
64
- default: undefined;
65
- };
66
- buttonText: {
67
- type: StringConstructor;
68
- default: string;
69
- };
70
- placeholder: {
71
- type: StringConstructor;
72
- default: string;
73
- };
74
- accept: {
75
- type: PropType<string[]>;
76
- required: true;
77
- };
78
- maxFileSize: {
79
- type: NumberConstructor;
80
- default: null;
81
- };
82
- error: {
83
- type: BooleanConstructor;
84
- default: boolean;
85
- };
86
- errorMessage: {
87
- type: StringConstructor;
88
- default: string;
89
- };
90
- disabled: {
91
- type: BooleanConstructor;
92
- default: boolean;
93
- };
94
- }>> & Readonly<{
95
- onError?: ((val: File[]) => any) | undefined;
96
- "onFile-added"?: ((val: File[]) => any) | undefined;
7
+ }, string, import("vue").PublicProps, Readonly<FileUploadProps> & Readonly<{
8
+ onError?: ((value: File[]) => any) | undefined;
9
+ "onFile-added"?: ((value: File[]) => any) | undefined;
97
10
  "onFile-removed"?: (() => any) | undefined;
98
- }>, {
99
- label: string;
100
- buttonText: string;
101
- disabled: boolean;
102
- error: boolean;
103
- help: string;
104
- labelAttributes: Record<string, any>;
105
- errorMessage: string;
106
- placeholder: string;
107
- maxFileSize: number;
108
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
109
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
110
13
  export default _default;
111
14
  type __VLS_WithSlots<T, S> = T & {
@@ -1,195 +1,12 @@
1
- import type { PropType } from 'vue';
2
- import type { ButtonAppearance } from '../../../types';
3
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
4
- type __VLS_Slots = {} & {
5
- content?: (props: typeof __VLS_7) => any;
6
- } & {
7
- title?: (props: typeof __VLS_9) => any;
8
- } & {
9
- default?: (props: typeof __VLS_15) => any;
10
- } & {
11
- footer?: (props: typeof __VLS_17) => any;
12
- } & {
13
- 'footer-actions'?: (props: typeof __VLS_19) => any;
14
- };
15
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
- visible: {
17
- type: BooleanConstructor;
18
- default: boolean;
19
- };
20
- title: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- actionButtonText: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- actionButtonAppearance: {
29
- type: PropType<ButtonAppearance>;
30
- default: string;
31
- };
32
- actionButtonDisabled: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- hideCancelButton: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- cancelButtonText: {
41
- type: StringConstructor;
42
- default: string;
43
- };
44
- cancelButtonAppearance: {
45
- type: PropType<ButtonAppearance>;
46
- default: string;
47
- };
48
- cancelButtonDisabled: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
- tabbableOptions: {
53
- type: ObjectConstructor;
54
- default: () => {};
55
- };
56
- maxWidth: {
57
- type: StringConstructor;
58
- required: false;
59
- default: string;
60
- };
61
- maxHeight: {
62
- type: StringConstructor;
63
- required: false;
64
- default: string;
65
- };
66
- closeOnBackdropClick: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- /** Close the modal when the user presses the `Escape` key */
71
- closeOnEscape: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- hideCloseIcon: {
76
- type: BooleanConstructor;
77
- default: boolean;
78
- };
79
- fullScreen: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- inputAutofocus: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- zIndex: {
88
- type: NumberConstructor;
89
- default: number;
90
- };
91
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ import type { ModalProps, ModalSlots } from '../../../types';
2
+ type __VLS_Slots = ModalSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
92
4
  cancel: () => any;
93
5
  proceed: () => any;
94
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
95
- visible: {
96
- type: BooleanConstructor;
97
- default: boolean;
98
- };
99
- title: {
100
- type: StringConstructor;
101
- default: string;
102
- };
103
- actionButtonText: {
104
- type: StringConstructor;
105
- default: string;
106
- };
107
- actionButtonAppearance: {
108
- type: PropType<ButtonAppearance>;
109
- default: string;
110
- };
111
- actionButtonDisabled: {
112
- type: BooleanConstructor;
113
- default: boolean;
114
- };
115
- hideCancelButton: {
116
- type: BooleanConstructor;
117
- default: boolean;
118
- };
119
- cancelButtonText: {
120
- type: StringConstructor;
121
- default: string;
122
- };
123
- cancelButtonAppearance: {
124
- type: PropType<ButtonAppearance>;
125
- default: string;
126
- };
127
- cancelButtonDisabled: {
128
- type: BooleanConstructor;
129
- default: boolean;
130
- };
131
- tabbableOptions: {
132
- type: ObjectConstructor;
133
- default: () => {};
134
- };
135
- maxWidth: {
136
- type: StringConstructor;
137
- required: false;
138
- default: string;
139
- };
140
- maxHeight: {
141
- type: StringConstructor;
142
- required: false;
143
- default: string;
144
- };
145
- closeOnBackdropClick: {
146
- type: BooleanConstructor;
147
- default: boolean;
148
- };
149
- /** Close the modal when the user presses the `Escape` key */
150
- closeOnEscape: {
151
- type: BooleanConstructor;
152
- default: boolean;
153
- };
154
- hideCloseIcon: {
155
- type: BooleanConstructor;
156
- default: boolean;
157
- };
158
- fullScreen: {
159
- type: BooleanConstructor;
160
- default: boolean;
161
- };
162
- inputAutofocus: {
163
- type: BooleanConstructor;
164
- default: boolean;
165
- };
166
- zIndex: {
167
- type: NumberConstructor;
168
- default: number;
169
- };
170
- }>> & Readonly<{
6
+ }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
171
7
  onCancel?: (() => any) | undefined;
172
8
  onProceed?: (() => any) | undefined;
173
- }>, {
174
- title: string;
175
- hideCloseIcon: boolean;
176
- maxWidth: string;
177
- maxHeight: string;
178
- zIndex: number;
179
- actionButtonText: string;
180
- actionButtonDisabled: boolean;
181
- visible: boolean;
182
- actionButtonAppearance: ButtonAppearance;
183
- hideCancelButton: boolean;
184
- cancelButtonText: string;
185
- cancelButtonAppearance: ButtonAppearance;
186
- cancelButtonDisabled: boolean;
187
- tabbableOptions: Record<string, any>;
188
- closeOnBackdropClick: boolean;
189
- closeOnEscape: boolean;
190
- fullScreen: boolean;
191
- inputAutofocus: boolean;
192
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
193
10
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
194
11
  export default _default;
195
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,33 +1,6 @@
1
- declare var __VLS_1: {}, __VLS_6: {}, __VLS_14: {};
2
- type __VLS_Slots = {} & {
3
- 'card-header'?: (props: typeof __VLS_1) => any;
4
- } & {
5
- 'card-content'?: (props: typeof __VLS_6) => any;
6
- } & {
7
- 'card-footer'?: (props: typeof __VLS_14) => any;
8
- };
9
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
- cardCount: {
11
- type: NumberConstructor;
12
- default: number;
13
- };
14
- maxWidth: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
- cardCount: {
20
- type: NumberConstructor;
21
- default: number;
22
- };
23
- maxWidth: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- }>> & Readonly<{}>, {
28
- maxWidth: string;
29
- cardCount: number;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonCardProps, SkeletonCardSlots } from '../../../types';
2
+ type __VLS_Slots = SkeletonCardSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SkeletonCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
5
  export default _default;
33
6
  type __VLS_WithSlots<T, S> = T & {
@@ -1,32 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- progress: {
3
- type: NumberConstructor;
4
- default: null;
5
- };
6
- hideProgress: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- zIndex: {
11
- type: NumberConstructor;
12
- default: number;
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- progress: {
16
- type: NumberConstructor;
17
- default: null;
18
- };
19
- hideProgress: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- zIndex: {
24
- type: NumberConstructor;
25
- default: number;
26
- };
27
- }>> & Readonly<{}>, {
28
- progress: number;
29
- zIndex: number;
30
- hideProgress: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonFullscreenProps } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<SkeletonFullscreenProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonFullscreenProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
3
  export default _default;
@@ -1,32 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- progress: {
3
- type: NumberConstructor;
4
- default: null;
5
- };
6
- hideProgress: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- zIndex: {
11
- type: NumberConstructor;
12
- default: number;
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- progress: {
16
- type: NumberConstructor;
17
- default: null;
18
- };
19
- hideProgress: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- zIndex: {
24
- type: NumberConstructor;
25
- default: number;
26
- };
27
- }>> & Readonly<{}>, {
28
- progress: number;
29
- zIndex: number;
30
- hideProgress: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonFullscreenProps } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<SkeletonFullscreenProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonFullscreenProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
3
  export default _default;
@@ -1,110 +1,6 @@
1
- import type { PropType } from 'vue';
2
- import type { SkeletonType } from '../../../types';
3
- declare var __VLS_4: {}, __VLS_6: {}, __VLS_8: {}, __VLS_13: {};
4
- type __VLS_Slots = {} & {
5
- 'card-header'?: (props: typeof __VLS_4) => any;
6
- } & {
7
- 'card-content'?: (props: typeof __VLS_6) => any;
8
- } & {
9
- 'card-footer'?: (props: typeof __VLS_8) => any;
10
- } & {
11
- default?: (props: typeof __VLS_13) => any;
12
- };
13
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
- delayMilliseconds: {
15
- type: NumberConstructor;
16
- required: false;
17
- default: number;
18
- };
19
- type: {
20
- type: PropType<SkeletonType>;
21
- default: string;
22
- validator: (val: SkeletonType) => boolean;
23
- };
24
- progress: {
25
- type: NumberConstructor;
26
- required: false;
27
- default: null;
28
- };
29
- hideProgress: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- cardCount: {
34
- type: NumberConstructor;
35
- default: number;
36
- };
37
- cardMaxWidth: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
- tableColumns: {
42
- type: NumberConstructor;
43
- required: false;
44
- default: number;
45
- };
46
- tableRows: {
47
- type: NumberConstructor;
48
- required: false;
49
- default: number;
50
- };
51
- zIndex: {
52
- type: NumberConstructor;
53
- default: number;
54
- };
55
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
- delayMilliseconds: {
57
- type: NumberConstructor;
58
- required: false;
59
- default: number;
60
- };
61
- type: {
62
- type: PropType<SkeletonType>;
63
- default: string;
64
- validator: (val: SkeletonType) => boolean;
65
- };
66
- progress: {
67
- type: NumberConstructor;
68
- required: false;
69
- default: null;
70
- };
71
- hideProgress: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- cardCount: {
76
- type: NumberConstructor;
77
- default: number;
78
- };
79
- cardMaxWidth: {
80
- type: StringConstructor;
81
- default: string;
82
- };
83
- tableColumns: {
84
- type: NumberConstructor;
85
- required: false;
86
- default: number;
87
- };
88
- tableRows: {
89
- type: NumberConstructor;
90
- required: false;
91
- default: number;
92
- };
93
- zIndex: {
94
- type: NumberConstructor;
95
- default: number;
96
- };
97
- }>> & Readonly<{}>, {
98
- progress: number;
99
- type: "" | "form" | "table" | "card" | "spinner" | "fullscreen-kong" | "fullscreen-generic";
100
- zIndex: number;
101
- cardCount: number;
102
- cardMaxWidth: string;
103
- hideProgress: boolean;
104
- delayMilliseconds: number;
105
- tableColumns: number;
106
- tableRows: number;
107
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonProps, SkeletonSlots } from '../../../types';
2
+ type __VLS_Slots = SkeletonSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
109
5
  export default _default;
110
6
  type __VLS_WithSlots<T, S> = T & {
@@ -1,29 +1,3 @@
1
- import type { PropType } from 'vue';
2
- import type { SkeletonBoxHeight, SkeletonBoxWidth } from '../../../types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- width: {
5
- type: PropType<SkeletonBoxWidth>;
6
- default: string;
7
- validator: (val: SkeletonBoxWidth) => boolean;
8
- };
9
- height: {
10
- type: PropType<SkeletonBoxHeight>;
11
- default: string;
12
- validator: (val: SkeletonBoxHeight) => boolean;
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- width: {
16
- type: PropType<SkeletonBoxWidth>;
17
- default: string;
18
- validator: (val: SkeletonBoxWidth) => boolean;
19
- };
20
- height: {
21
- type: PropType<SkeletonBoxHeight>;
22
- default: string;
23
- validator: (val: SkeletonBoxHeight) => boolean;
24
- };
25
- }>> & Readonly<{}>, {
26
- width: "1" | "2" | "5" | "6" | "10" | "25" | "50" | "75" | "100";
27
- height: "1" | "2";
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonBoxProps } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<SkeletonBoxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonBoxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
3
  export default _default;
@@ -1,29 +1,6 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- rows: {
7
- type: NumberConstructor;
8
- default: number;
9
- };
10
- columns: {
11
- type: NumberConstructor;
12
- default: number;
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- rows: {
16
- type: NumberConstructor;
17
- default: number;
18
- };
19
- columns: {
20
- type: NumberConstructor;
21
- default: number;
22
- };
23
- }>> & Readonly<{}>, {
24
- rows: number;
25
- columns: number;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { SkeletonTableProps, SkeletonTableSlots } from '../../../types';
2
+ type __VLS_Slots = SkeletonTableSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SkeletonTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
28
5
  export default _default;
29
6
  type __VLS_WithSlots<T, S> = T & {
@@ -0,0 +1,69 @@
1
+ import type { LabelAttributes } from './label';
2
+ export interface FileUploadProps {
3
+ /**
4
+ * Use the `labelAttributes` prop to configure the KLabel's props if using the `label` prop.
5
+ * @default {}
6
+ */
7
+ labelAttributes?: LabelAttributes;
8
+ /**
9
+ * String to be used as the label.
10
+ * @default ''
11
+ */
12
+ label?: string;
13
+ /**
14
+ * String to be displayed as help text.
15
+ * @default ''
16
+ */
17
+ help?: string;
18
+ /**
19
+ * The text that will be displayed on the button that triggers the click on the input.
20
+ * @default 'Select file'
21
+ */
22
+ buttonText?: string;
23
+ /**
24
+ * Placeholder to be displayed when no file is selected.
25
+ * @default 'No file selected'
26
+ */
27
+ placeholder?: string;
28
+ /**
29
+ * The file types the component can accept. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) for more information.
30
+ */
31
+ accept: string[];
32
+ /**
33
+ * The maximize size of file that can be uploaded.
34
+ * The default maximum size is 5MB if not specified.
35
+ * @default null
36
+ */
37
+ maxFileSize?: number;
38
+ /**
39
+ * Boolean to indicate whether the element is in an error state and should apply error styling.
40
+ * @defaults false
41
+ */
42
+ error?: boolean;
43
+ /**
44
+ * String to be displayed as an error message if `error` prop is `true`.
45
+ * This prop will supersede the `help` prop if both have a value and `error` is `true`.
46
+ * @defaults false
47
+ */
48
+ errorMessage?: string;
49
+ /**
50
+ * Whether the file upload is disabled.
51
+ * @default false
52
+ */
53
+ disabled?: boolean;
54
+ }
55
+ export interface FileUploadEmits {
56
+ 'file-added': [value: File[]];
57
+ 'file-removed': [];
58
+ error: [value: File[]];
59
+ }
60
+ export interface FileUploadSlots {
61
+ /**
62
+ * Slot for an icon in front of the input field.
63
+ */
64
+ icon?(): any;
65
+ /**
66
+ * Use this slot if you want to utilize HTML in the input label's tooltip.
67
+ */
68
+ 'label-tooltip'?(): any;
69
+ }