xtreme-ui
Version:
Collection of reusable components that can be used in web projects
56 lines • 1.43 kB
TypeScript
import { ReactNode } from 'react';
export type TFilePickerProps = {
className?: string;
children?: ReactNode;
accept?: string;
draggable?: boolean;
editable?: boolean;
multiple?: boolean;
onChange: (file: Blob[]) => void;
};
export declare enum EFilePickerAccept {
all = "*/*",
text = ".txt",
image = "image/*",
audio = "audio/*",
video = "video/*",
compressed = ".zip, .rar, 7z",
pdf = ".pdf",
doc = ".doc, .docx",
xls = ".xls, .xlsx",
ppt = ".ppt, .pptx",
csv = ".csv",
json = ".json",
html = ".html, .htm"
}
export declare const imageExts: string[];
export declare const FilePickerIcon: {
readonly file: "f15b";
readonly multimedia: "f86d";
readonly image: "f1c5";
readonly jpg: "e646";
readonly jpeg: "e646";
readonly png: "e666";
readonly gif: "e645";
readonly svg: "e64b";
readonly eps: "e644";
readonly audio: "f1c7";
readonly mp3: "e648";
readonly wav: "f478";
readonly video: "f1c8";
readonly mp4: "e649";
readonly mov: "e647";
readonly pdf: "f1c1";
readonly doc: "e5ed";
readonly docx: "e5ed";
readonly xls: "e64d";
readonly xlsx: "e64d";
readonly ppt: "e64a";
readonly pptx: "e64a";
readonly csv: "f6dd";
readonly html: "f1c9";
readonly zip: "e5ee";
readonly rar: "f1c6";
readonly "7z": "f1c6";
};
//# sourceMappingURL=types.d.ts.map