-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
36 lines (32 loc) · 999 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export interface IExtendedClassNames {
chooseFileButton?: string;
defaultPicture?: string;
deleteImage?: string;
errorsContainer?: string;
fileActions?: string;
fileContainer?: string;
fileContent?: string;
fileErrorMessage?: string;
fileInput?: string;
fileLabel?: string;
flipMoveContainer?: string;
fileUploader?: string;
uploadFileButton?: string;
uploadPicture?: string;
uploadPictureContainer?: string;
uploadPicturesWrapper?: string;
}
export interface IImageUploaderProps {
buttonText: string;
extendedClassNames: IExtendedClassNames;
imgExtension: Array<string>;
label: string;
maxFileSize: number;
onChange: (pictures: Array<string>, files: Array<File>) => void;
onUpload: (file: File) => void;
singleImage: boolean;
withLabel: boolean;
}
declare const ImageUploader: (props: IImageUploaderProps) => JSX.Element
declare module 'beanloop-image-uploader' {}
export default ImageUploader;