UNPKG

@health-ecosystem/file-upload

Version:

File upload library for Health Ecosystem applications with improved Next.js 15+ compatibility

43 lines 1.46 kB
/** * Modern Image Uploader Component * Specialized component for image uploads with preview and thumbnail support * Version 2.0 - Modern UI with manual upload control and click-to-select fix */ import React from 'react'; import { FileUploadConfig, UploadOptions, UploadResult, UploadError } from '../types'; interface ImageUploaderProps { /** File upload configuration */ config: FileUploadConfig; /** Upload options */ options: Omit<UploadOptions, 'category'> & { category?: string; }; /** Show image preview */ showPreview?: boolean; /** Preview image size */ previewSize?: { width: number; height: number; }; /** Multiple image selection */ multiple?: boolean; /** Enable drag and drop */ enableDropzone?: boolean; /** Auto upload files when selected */ autoUpload?: boolean; /** Custom styling */ className?: string; /** Custom styles */ style?: React.CSSProperties; /** Upload success callback */ onSuccess?: (result: UploadResult | UploadResult[]) => void; /** Upload error callback */ onError?: (error: UploadError) => void; /** Upload progress callback */ onProgress?: (progress: number) => void; /** Image selection callback */ onImagesSelected?: (files: File[]) => void; } export declare const ImageUploader: React.FC<ImageUploaderProps>; export default ImageUploader; //# sourceMappingURL=ImageUploader.d.ts.map