@scalar/components 0.13.21 → 0.13.24

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 (49) hide show
  1. package/dist/components/ScalarButton/ScalarButton.stories.d.ts +12 -12
  2. package/dist/components/ScalarButton/ScalarButton.vue.d.ts +1 -1
  3. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +0 -1
  5. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  6. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +76 -65
  7. package/dist/components/ScalarContextMenu/ScalarContextMenu.stories.d.ts +3 -3
  8. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +3 -3
  9. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -1
  10. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +1 -1
  11. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -1
  12. package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts +364 -0
  13. package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts.map +1 -0
  14. package/dist/components/ScalarFileUpload/ScalarFileUpload.test.d.ts +2 -0
  15. package/dist/components/ScalarFileUpload/ScalarFileUpload.test.d.ts.map +1 -0
  16. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +86 -0
  17. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts.map +1 -0
  18. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts +19 -0
  19. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -0
  20. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts +20 -0
  21. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -0
  22. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts +22 -0
  23. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts.map +1 -0
  24. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +21 -0
  25. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts.map +1 -0
  26. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +21 -0
  27. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -0
  28. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts +16 -0
  29. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts.map +1 -0
  30. package/dist/components/ScalarFileUpload/index.d.ts +8 -0
  31. package/dist/components/ScalarFileUpload/index.d.ts.map +1 -0
  32. package/dist/components/ScalarFileUpload/types.d.ts +32 -0
  33. package/dist/components/ScalarFileUpload/types.d.ts.map +1 -0
  34. package/dist/components/ScalarIcon/icons/Lock.svg.js +12 -13
  35. package/dist/components/ScalarIcon/icons/Unlock.svg.js +12 -8
  36. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +9 -9
  37. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +3 -3
  38. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
  39. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +3 -3
  40. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
  41. package/dist/components/ScalarLoading/ScalarLoading.vue.js +4 -4
  42. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +18 -18
  43. package/dist/components/ScalarModal/ScalarModal.vue.js +3 -3
  44. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +3 -3
  45. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.d.ts.map +1 -1
  46. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.js +4 -4
  47. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +3 -3
  48. package/dist/style.css +1 -1
  49. package/package.json +8 -7
@@ -0,0 +1,364 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ component: {
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
5
+ modelValue?: File[];
6
+ error?: string;
7
+ } & {
8
+ multiple?: boolean;
9
+ accept?: import("./types").ExtensionList | string;
10
+ loader?: import("../ScalarLoading").LoadingState;
11
+ variant?: "compact" | "default";
12
+ }> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
14
+ onSelected?: ((value: File[]) => any) | undefined;
15
+ "onUpdate:error"?: ((value: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: File[]) => any;
18
+ "update:error": (value: string) => any;
19
+ } & {
20
+ selected: (value: File[]) => any;
21
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
22
+ P: {};
23
+ B: {};
24
+ D: {};
25
+ C: {};
26
+ M: {};
27
+ Defaults: {};
28
+ }, Readonly<{
29
+ modelValue?: File[];
30
+ error?: string;
31
+ } & {
32
+ multiple?: boolean;
33
+ accept?: import("./types").ExtensionList | string;
34
+ loader?: import("../ScalarLoading").LoadingState;
35
+ variant?: "compact" | "default";
36
+ }> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
38
+ onSelected?: ((value: File[]) => any) | undefined;
39
+ "onUpdate:error"?: ((value: string) => any) | undefined;
40
+ }>, {}, {}, {}, {}, {}>;
41
+ __isFragment?: never;
42
+ __isTeleport?: never;
43
+ __isSuspense?: never;
44
+ } & import("vue").ComponentOptionsBase<Readonly<{
45
+ modelValue?: File[];
46
+ error?: string;
47
+ } & {
48
+ multiple?: boolean;
49
+ accept?: import("./types").ExtensionList | string;
50
+ loader?: import("../ScalarLoading").LoadingState;
51
+ variant?: "compact" | "default";
52
+ }> & Readonly<{
53
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
54
+ onSelected?: ((value: File[]) => any) | undefined;
55
+ "onUpdate:error"?: ((value: string) => any) | undefined;
56
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
+ "update:modelValue": (value: File[]) => any;
58
+ "update:error": (value: string) => any;
59
+ } & {
60
+ selected: (value: File[]) => any;
61
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
62
+ $slots: Readonly<{
63
+ default?: (props: {
64
+ open: () => void;
65
+ }) => any;
66
+ label?: () => any;
67
+ 'drop-target'?: () => any;
68
+ 'drop-target-label'?: () => any;
69
+ }> & {
70
+ default?: (props: {
71
+ open: () => void;
72
+ }) => any;
73
+ label?: () => any;
74
+ 'drop-target'?: () => any;
75
+ 'drop-target-label'?: () => any;
76
+ };
77
+ });
78
+ tags: string[];
79
+ argTypes: {
80
+ class: {
81
+ control: "text";
82
+ };
83
+ accept: {
84
+ control: "select";
85
+ options: string[][];
86
+ };
87
+ variant: {
88
+ control: "select";
89
+ options: string[];
90
+ };
91
+ };
92
+ render: (args: import("@storybook/vue3").ComponentPropsAndSlots<{
93
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
94
+ modelValue?: File[];
95
+ error?: string;
96
+ } & {
97
+ multiple?: boolean;
98
+ accept?: import("./types").ExtensionList | string;
99
+ loader?: import("../ScalarLoading").LoadingState;
100
+ variant?: "compact" | "default";
101
+ }> & Readonly<{
102
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
103
+ onSelected?: ((value: File[]) => any) | undefined;
104
+ "onUpdate:error"?: ((value: string) => any) | undefined;
105
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
106
+ "update:modelValue": (value: File[]) => any;
107
+ "update:error": (value: string) => any;
108
+ } & {
109
+ selected: (value: File[]) => any;
110
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
111
+ P: {};
112
+ B: {};
113
+ D: {};
114
+ C: {};
115
+ M: {};
116
+ Defaults: {};
117
+ }, Readonly<{
118
+ modelValue?: File[];
119
+ error?: string;
120
+ } & {
121
+ multiple?: boolean;
122
+ accept?: import("./types").ExtensionList | string;
123
+ loader?: import("../ScalarLoading").LoadingState;
124
+ variant?: "compact" | "default";
125
+ }> & Readonly<{
126
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
127
+ onSelected?: ((value: File[]) => any) | undefined;
128
+ "onUpdate:error"?: ((value: string) => any) | undefined;
129
+ }>, {}, {}, {}, {}, {}>;
130
+ __isFragment?: never;
131
+ __isTeleport?: never;
132
+ __isSuspense?: never;
133
+ } & import("vue").ComponentOptionsBase<Readonly<{
134
+ modelValue?: File[];
135
+ error?: string;
136
+ } & {
137
+ multiple?: boolean;
138
+ accept?: import("./types").ExtensionList | string;
139
+ loader?: import("../ScalarLoading").LoadingState;
140
+ variant?: "compact" | "default";
141
+ }> & Readonly<{
142
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
143
+ onSelected?: ((value: File[]) => any) | undefined;
144
+ "onUpdate:error"?: ((value: string) => any) | undefined;
145
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
146
+ "update:modelValue": (value: File[]) => any;
147
+ "update:error": (value: string) => any;
148
+ } & {
149
+ selected: (value: File[]) => any;
150
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
151
+ $slots: Readonly<{
152
+ default?: (props: {
153
+ open: () => void;
154
+ }) => any;
155
+ label?: () => any;
156
+ 'drop-target'?: () => any;
157
+ 'drop-target-label'?: () => any;
158
+ }> & {
159
+ default?: (props: {
160
+ open: () => void;
161
+ }) => any;
162
+ label?: () => any;
163
+ 'drop-target'?: () => any;
164
+ 'drop-target-label'?: () => any;
165
+ };
166
+ })>) => {
167
+ components: {
168
+ ScalarFileUpload: {
169
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
170
+ modelValue?: File[];
171
+ error?: string;
172
+ } & {
173
+ multiple?: boolean;
174
+ accept?: import("./types").ExtensionList | string;
175
+ loader?: import("../ScalarLoading").LoadingState;
176
+ variant?: "compact" | "default";
177
+ }> & Readonly<{
178
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
179
+ onSelected?: ((value: File[]) => any) | undefined;
180
+ "onUpdate:error"?: ((value: string) => any) | undefined;
181
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
182
+ "update:modelValue": (value: File[]) => any;
183
+ "update:error": (value: string) => any;
184
+ } & {
185
+ selected: (value: File[]) => any;
186
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
187
+ P: {};
188
+ B: {};
189
+ D: {};
190
+ C: {};
191
+ M: {};
192
+ Defaults: {};
193
+ }, Readonly<{
194
+ modelValue?: File[];
195
+ error?: string;
196
+ } & {
197
+ multiple?: boolean;
198
+ accept?: import("./types").ExtensionList | string;
199
+ loader?: import("../ScalarLoading").LoadingState;
200
+ variant?: "compact" | "default";
201
+ }> & Readonly<{
202
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
203
+ onSelected?: ((value: File[]) => any) | undefined;
204
+ "onUpdate:error"?: ((value: string) => any) | undefined;
205
+ }>, {}, {}, {}, {}, {}>;
206
+ __isFragment?: never;
207
+ __isTeleport?: never;
208
+ __isSuspense?: never;
209
+ } & import("vue").ComponentOptionsBase<Readonly<{
210
+ modelValue?: File[];
211
+ error?: string;
212
+ } & {
213
+ multiple?: boolean;
214
+ accept?: import("./types").ExtensionList | string;
215
+ loader?: import("../ScalarLoading").LoadingState;
216
+ variant?: "compact" | "default";
217
+ }> & Readonly<{
218
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
219
+ onSelected?: ((value: File[]) => any) | undefined;
220
+ "onUpdate:error"?: ((value: string) => any) | undefined;
221
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
222
+ "update:modelValue": (value: File[]) => any;
223
+ "update:error": (value: string) => any;
224
+ } & {
225
+ selected: (value: File[]) => any;
226
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
227
+ $slots: Readonly<{
228
+ default?: (props: {
229
+ open: () => void;
230
+ }) => any;
231
+ label?: () => any;
232
+ 'drop-target'?: () => any;
233
+ 'drop-target-label'?: () => any;
234
+ }> & {
235
+ default?: (props: {
236
+ open: () => void;
237
+ }) => any;
238
+ label?: () => any;
239
+ 'drop-target'?: () => any;
240
+ 'drop-target-label'?: () => any;
241
+ };
242
+ });
243
+ ScalarFileUploadFileList: import("vue").DefineComponent<{
244
+ modelValue?: File[];
245
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
246
+ "update:modelValue": (value: File[]) => any;
247
+ } & {
248
+ upload: () => any;
249
+ }, string, import("vue").PublicProps, Readonly<{
250
+ modelValue?: File[];
251
+ }> & Readonly<{
252
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
253
+ onUpload?: (() => any) | undefined;
254
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
255
+ };
256
+ setup(this: void): {
257
+ args: import("@storybook/vue3").ComponentPropsAndSlots<{
258
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
259
+ modelValue?: File[];
260
+ error?: string;
261
+ } & {
262
+ multiple?: boolean;
263
+ accept?: import("./types").ExtensionList | string;
264
+ loader?: import("../ScalarLoading").LoadingState;
265
+ variant?: "compact" | "default";
266
+ }> & Readonly<{
267
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
268
+ onSelected?: ((value: File[]) => any) | undefined;
269
+ "onUpdate:error"?: ((value: string) => any) | undefined;
270
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
271
+ "update:modelValue": (value: File[]) => any;
272
+ "update:error": (value: string) => any;
273
+ } & {
274
+ selected: (value: File[]) => any;
275
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
276
+ P: {};
277
+ B: {};
278
+ D: {};
279
+ C: {};
280
+ M: {};
281
+ Defaults: {};
282
+ }, Readonly<{
283
+ modelValue?: File[];
284
+ error?: string;
285
+ } & {
286
+ multiple?: boolean;
287
+ accept?: import("./types").ExtensionList | string;
288
+ loader?: import("../ScalarLoading").LoadingState;
289
+ variant?: "compact" | "default";
290
+ }> & Readonly<{
291
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
292
+ onSelected?: ((value: File[]) => any) | undefined;
293
+ "onUpdate:error"?: ((value: string) => any) | undefined;
294
+ }>, {}, {}, {}, {}, {}>;
295
+ __isFragment?: never;
296
+ __isTeleport?: never;
297
+ __isSuspense?: never;
298
+ } & import("vue").ComponentOptionsBase<Readonly<{
299
+ modelValue?: File[];
300
+ error?: string;
301
+ } & {
302
+ multiple?: boolean;
303
+ accept?: import("./types").ExtensionList | string;
304
+ loader?: import("../ScalarLoading").LoadingState;
305
+ variant?: "compact" | "default";
306
+ }> & Readonly<{
307
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
308
+ onSelected?: ((value: File[]) => any) | undefined;
309
+ "onUpdate:error"?: ((value: string) => any) | undefined;
310
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
311
+ "update:modelValue": (value: File[]) => any;
312
+ "update:error": (value: string) => any;
313
+ } & {
314
+ selected: (value: File[]) => any;
315
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
316
+ $slots: Readonly<{
317
+ default?: (props: {
318
+ open: () => void;
319
+ }) => any;
320
+ label?: () => any;
321
+ 'drop-target'?: () => any;
322
+ 'drop-target-label'?: () => any;
323
+ }> & {
324
+ default?: (props: {
325
+ open: () => void;
326
+ }) => any;
327
+ label?: () => any;
328
+ 'drop-target'?: () => any;
329
+ 'drop-target-label'?: () => any;
330
+ };
331
+ })>;
332
+ files: import("vue").Ref<{
333
+ readonly lastModified: number;
334
+ readonly name: string;
335
+ readonly webkitRelativePath: string;
336
+ readonly size: number;
337
+ readonly type: string;
338
+ arrayBuffer: () => Promise<ArrayBuffer>;
339
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
340
+ stream: () => ReadableStream<Uint8Array>;
341
+ text: () => Promise<string>;
342
+ }[], File[] | {
343
+ readonly lastModified: number;
344
+ readonly name: string;
345
+ readonly webkitRelativePath: string;
346
+ readonly size: number;
347
+ readonly type: string;
348
+ arrayBuffer: () => Promise<ArrayBuffer>;
349
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
350
+ stream: () => ReadableStream<Uint8Array>;
351
+ text: () => Promise<string>;
352
+ }[]>;
353
+ };
354
+ template: string;
355
+ };
356
+ };
357
+ export default meta;
358
+ type Story = StoryObj<typeof meta>;
359
+ export declare const Base: Story;
360
+ export declare const Compact: Story;
361
+ export declare const Files: Story;
362
+ export declare const Loading: Story;
363
+ export declare const Labelled: Story;
364
+ //# sourceMappingURL=ScalarFileUpload.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUpload.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUpload.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAOrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC+B,CAAA;AAEzC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAsBnB,CAAA;AACD,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAqBtB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarFileUpload.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUpload.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUpload.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,86 @@
1
+ import type { LoadingState } from '../ScalarLoading';
2
+ import { type ExtensionList } from './types';
3
+ /**
4
+ * Scalar File Upload component
5
+ *
6
+ * @example
7
+ * <ScalarFileUpload @selected="handleSelected" />
8
+ *
9
+ * @example
10
+ * <ScalarFileUpload v-slot="{ open }">
11
+ * <ScalarButton @click="open">Select files</ScalarButton>
12
+ * </ScalarFileUpload>
13
+ */
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
+ modelValue?: File[];
16
+ error?: string;
17
+ } & {
18
+ /** Whether multiple files can be uploaded */
19
+ multiple?: boolean;
20
+ /**
21
+ * Accepted file types
22
+ * @default '*'
23
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
24
+ */
25
+ accept?: ExtensionList | string;
26
+ /** Whether the file upload is loading */
27
+ loader?: LoadingState;
28
+ /** Whether the file upload is compact */
29
+ variant?: "compact" | "default";
30
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ "update:modelValue": (value: File[]) => any;
32
+ "update:error": (value: string) => any;
33
+ } & {
34
+ selected: (value: File[]) => any;
35
+ }, string, import("vue").PublicProps, Readonly<{
36
+ modelValue?: File[];
37
+ error?: string;
38
+ } & {
39
+ /** Whether multiple files can be uploaded */
40
+ multiple?: boolean;
41
+ /**
42
+ * Accepted file types
43
+ * @default '*'
44
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
45
+ */
46
+ accept?: ExtensionList | string;
47
+ /** Whether the file upload is loading */
48
+ loader?: LoadingState;
49
+ /** Whether the file upload is compact */
50
+ variant?: "compact" | "default";
51
+ }> & Readonly<{
52
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
53
+ onSelected?: ((value: File[]) => any) | undefined;
54
+ "onUpdate:error"?: ((value: string) => any) | undefined;
55
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
56
+ /** Override the entire input */
57
+ default?: (props: {
58
+ /** Open the file dialog to select files */
59
+ open: () => void;
60
+ }) => any;
61
+ /** Override the label */
62
+ label?: () => any;
63
+ /** Override the entire drop target */
64
+ 'drop-target'?: () => any;
65
+ /** Override the drop target label */
66
+ 'drop-target-label'?: () => any;
67
+ }> & {
68
+ /** Override the entire input */
69
+ default?: (props: {
70
+ /** Open the file dialog to select files */
71
+ open: () => void;
72
+ }) => any;
73
+ /** Override the label */
74
+ label?: () => any;
75
+ /** Override the entire drop target */
76
+ 'drop-target'?: () => any;
77
+ /** Override the drop target label */
78
+ 'drop-target-label'?: () => any;
79
+ }>;
80
+ export default _default;
81
+ type __VLS_WithTemplateSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
86
+ //# sourceMappingURL=ScalarFileUpload.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUpload.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAMpD,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,SAAS,CAAA;AAI7D;;;;;;;;;;GAUG;;iBAwGU,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;;iBAyFpB,IAAI,EAAE;YACT,MAAM;;IArGd,6CAA6C;eAClC,OAAO;IAClB;;;;OAIG;aACM,aAAa,GAAG,MAAM;IAC/B,yCAAyC;aAChC,YAAY;IACrB,yCAAyC;cAC/B,SAAS,GAAG,SAAS;;;;;;IAgB/B,gCAAgC;cACpB,CAAC,KAAK,EAAE;QAClB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,KAAK,GAAG;IACT,yBAAyB;YACf,MAAM,GAAG;IACnB,sCAAsC;oBACtB,MAAM,GAAG;IACzB,qCAAqC;0BACf,MAAM,GAAG;;IAV/B,gCAAgC;cACpB,CAAC,KAAK,EAAE;QAClB,2CAA2C;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAA;KACjB,KAAK,GAAG;IACT,yBAAyB;YACf,MAAM,GAAG;IACnB,sCAAsC;oBACtB,MAAM,GAAG;IACzB,qCAAqC;0BACf,MAAM,GAAG;;AAxCjC,wBA8QC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Scalar File Upload Drop Target
3
+ *
4
+ * Displays a drop target for file uploads (used when
5
+ * the user is dragging files over the component)
6
+ *
7
+ * @example
8
+ * <ScalarFileUploadDropTarget />
9
+ */
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
11
+ default?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //# sourceMappingURL=ScalarFileUploadDropTarget.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadDropTarget.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue"],"names":[],"mappings":"AA0CA;;;;;;;;GAQG;;qBA4D0B,GAAG;;AA3DhC,wBA0FC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Scalar File Upload Error
3
+ *
4
+ * Displays an error message
5
+ *
6
+ * @example
7
+ * <ScalarFileUploadError>
8
+ * <!-- Error message -->
9
+ * </ScalarFileUploadError>
10
+ */
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //# sourceMappingURL=ScalarFileUploadError.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadError.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadError.vue"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;;qBA2C0B,GAAG;;AA1ChC,wBAyEC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Scalar File Upload File List
3
+ *
4
+ * Displays a list of files
5
+ *
6
+ * @example
7
+ * <ScalarFileUploadFileList :files="files" />
8
+ */
9
+ declare const _default: import("vue").DefineComponent<{
10
+ modelValue?: File[];
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: File[]) => any;
13
+ } & {
14
+ upload: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<{
16
+ modelValue?: File[];
17
+ }> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
19
+ onUpload?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
22
+ //# sourceMappingURL=ScalarFileUploadFileList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadFileList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadFileList.vue"],"names":[],"mappings":"AAoEA;;;;;;;GAOG;;iBAuBU,IAAI,EAAE;;;;;;iBAAN,IAAI,EAAE;;;;;AAtBnB,wBAmKC"}
@@ -0,0 +1,21 @@
1
+ import type { FileUploadInputProps, FileUploadInputSlots } from './types';
2
+ /**
3
+ * Scalar File Upload Input
4
+ *
5
+ * Displays a label and button for file uploads
6
+ *
7
+ * @example
8
+ * <ScalarFileUploadInput />
9
+ */
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<FileUploadInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
+ click: (event: MouseEvent) => any;
12
+ }, string, import("vue").PublicProps, Readonly<FileUploadInputProps> & Readonly<{
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<FileUploadInputSlots> & FileUploadInputSlots>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //# sourceMappingURL=ScalarFileUploadInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadInput.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAEV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAIhB;;;;;;;GAOG;;;;;;AACH,wBAuHC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { FileUploadInputProps, FileUploadInputSlots } from './types';
2
+ /**
3
+ * Scalar File Upload Input
4
+ *
5
+ * Displays a label and button for file uploads
6
+ *
7
+ * @example
8
+ * <ScalarFileUploadInput />
9
+ */
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<FileUploadInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
+ click: (event: MouseEvent) => any;
12
+ }, string, import("vue").PublicProps, Readonly<FileUploadInputProps> & Readonly<{
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<FileUploadInputSlots> & FileUploadInputSlots>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //# sourceMappingURL=ScalarFileUploadInputCompact.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadInputCompact.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAEV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAIhB;;;;;;;GAOG;;;;;;AACH,wBAuGC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type LoadingState } from '../ScalarLoading';
2
+ /**
3
+ * Scalar File Upload Loading
4
+ *
5
+ * Displays a loading state for file uploads
6
+ *
7
+ * @example
8
+ * <ScalarFileUploadLoading :loader="loader" />
9
+ */
10
+ declare const _default: import("vue").DefineComponent<{
11
+ loader: LoadingState;
12
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
13
+ loader: LoadingState;
14
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
16
+ //# sourceMappingURL=ScalarFileUploadLoading.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFileUploadLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadLoading.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AAInE;;;;;;;GAOG;;YAIO,YAAY;;YAAZ,YAAY;;AAHtB,wBAgFC"}
@@ -0,0 +1,8 @@
1
+ export { default as ScalarFileUpload } from './ScalarFileUpload.vue';
2
+ export { default as ScalarFileUploadInput } from './ScalarFileUploadInput.vue';
3
+ export { default as ScalarFileUploadInputCompact } from './ScalarFileUploadInputCompact.vue';
4
+ export { default as ScalarFileUploadDropTarget } from './ScalarFileUploadDropTarget.vue';
5
+ export { default as ScalarFileUploadLoading } from './ScalarFileUploadLoading.vue';
6
+ export { default as ScalarFileUploadError } from './ScalarFileUploadError.vue';
7
+ export { default as ScalarFileUploadFileList } from './ScalarFileUploadFileList.vue';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAA"}