UNPKG

digitinary-ui

Version:

Digitinary UI Library

34 lines (33 loc) 929 B
/// <reference types="react" /> export type FileOrUrl = File | string; export interface FileUploaderProps { multiple?: boolean; disabled?: boolean; accept?: string; value: FileOrUrl[] | []; onChange: (value: FileOrUrl[]) => void; size?: 'small' | 'medium' | 'large'; label?: JSX.Element | string | number; placeholder?: string | number; required?: boolean; key?: string; handleDownload?: (value: FileOrUrl) => void; maxSize?: number; } export interface ProgressBarProps { duration?: number; onComplete?: () => void; className?: string; mode?: string; isRunning?: boolean; } export interface ViewFilesProps { files: FileOrUrl[]; onChange: (value: FileOrUrl[], deletedFiles: FileOrUrl[]) => void; handleDownload?: (value: FileOrUrl) => void; disabled?: boolean; maxSize?: number; uploadProgress?: { [key: string]: number; }; }