@prosperitainova/mirage-ui 1.1.58 → 1.1.61
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +11 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +11 -2
- package/dist/index.d.ts +11 -2
- package/package.json +1 -1
|
@@ -2,11 +2,20 @@ import { DropzoneProps as DropzoneRootProps } from "react-dropzone";
|
|
|
2
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
3
|
interface DropzoneRootPropsLite extends Omit<DropzoneRootProps, "onDrop"> {
|
|
4
4
|
}
|
|
5
|
+
type UploadedFileProps = {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
type DropzoneFileProps = File & {
|
|
10
|
+
preview: string;
|
|
11
|
+
};
|
|
5
12
|
export interface DropzoneProps extends DropzoneRootPropsLite {
|
|
6
13
|
error?: string;
|
|
7
14
|
helper?: string;
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
uploadedFiles: UploadedFileProps[];
|
|
16
|
+
onRemoveUploadedFile?: (removedIndex: number) => void;
|
|
17
|
+
onRemoveFile?: (removedIndex: number) => void;
|
|
18
|
+
onFilesChanged?: (files: DropzoneFileProps[]) => void;
|
|
10
19
|
}
|
|
11
20
|
declare const Dropzone: (props: DropzoneProps) => JSX.Element;
|
|
12
21
|
export default Dropzone;
|