UNPKG

@kadconsulting/dry

Version:
43 lines (42 loc) 938 B
/// <reference types="react" /> export declare enum AllowedFileTypes { SVG = ".svg", PNG = ".png", JPG = ".jpg", JPEG = ".jpeg", GIF = ".gif", BMP = ".bmp", TIFF = ".tiff", WEBP = ".webp", MP3 = ".mp3", WAV = ".wav", OGG = ".ogg", MP4 = ".mp4", AVI = ".avi", MOV = ".mov", PDF = ".pdf", DOC = ".doc", DOCX = ".docx", XLS = ".xls", XLSX = ".xlsx", PPT = ".ppt", PPTX = ".pptx", TXT = ".txt", ZIP = ".zip", TAR = ".tar", GZ = ".gz", RAR = ".rar", HTML = ".html", CSS = ".css", JS = ".js", TS = ".ts", JSON = ".json", XML = ".xml" } export interface AttachmentsProps extends React.HTMLAttributes<HTMLElement> { /** Support @testing-library/react `screen.getByTestId` */ 'data-testid'?: string; onFilesSelected: (files: File[]) => void; fileTypes: AllowedFileTypes[]; selectedFiles?: File[]; }