@matthiaskrijgsman/mat-ui 0.0.44 → 0.0.46
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.
|
@@ -9,6 +9,13 @@ export type InputFileMultipleProps = {
|
|
|
9
9
|
title?: string;
|
|
10
10
|
hint?: React.ReactNode;
|
|
11
11
|
Icon?: TablerIcon;
|
|
12
|
+
/**
|
|
13
|
+
* Files that are already uploaded when the component mounts — shown as
|
|
14
|
+
* completed tiles. Read once on mount (uncontrolled, like `defaultValue`);
|
|
15
|
+
* later changes are ignored, and `onUpload` is never called for them.
|
|
16
|
+
* Useful for restoring the list after the field unmounts and remounts.
|
|
17
|
+
*/
|
|
18
|
+
defaultFiles?: File[];
|
|
12
19
|
onUpload?: (file: File) => Promise<void> | void;
|
|
13
20
|
onFileRemoved?: (file: File) => void;
|
|
14
21
|
onDropRejected?: (fileRejections: FileRejection[]) => void;
|