@cleen/ui 0.1.225 → 0.1.227

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.
package/dist/index.d.ts CHANGED
@@ -2193,6 +2193,10 @@ interface DropzoneProps extends NativeInputProps {
2193
2193
  initialFiles?: File[];
2194
2194
  onFilesChange?: (files: Map<string, FileEntry> | ((prev: Map<string, FileEntry>) => Map<string, FileEntry>)) => void;
2195
2195
  onFileUpload?: (file: FileEntry, updateFile?: (patch: Partial<FileEntry>) => void) => Promise<FileEntry | void>;
2196
+ /**
2197
+ * Alternate to `onFileUpload` that allows uploading multiple files at once. If both are provided, `onFilesUpload` takes precedence.
2198
+ */
2199
+ onFilesUpload?: (files: FileEntry[], updateFile?: (id: string, patch: Partial<FileEntry>) => void) => Promise<FileEntry[] | void>;
2196
2200
  onFileRemove?: (id: string) => Promise<void>;
2197
2201
  /**
2198
2202
  * Called when a completed uploaded-file card is clicked. When provided it