prometeo-design-system 4.2.3 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  import { DropzoneOptions } from 'react-dropzone';
3
- export interface UseFileDropzoneOptions extends Omit<DropzoneOptions, "onDrop"> {
3
+ type MIMETypeString = 'image/*' | 'image/png' | 'image/jpeg' | 'image/gif' | 'image/svg+xml' | 'image/webp' | 'image/vnd.dwg' | 'image/vnd.dxf' | 'text/plain' | 'text/markdown' | 'text/csv' | 'application/pdf' | 'application/postscript' | 'application/illustrator' | 'application/msword' | 'application/vnd.ms-excel' | 'application/vnd.ms-powerpoint' | 'application/vnd.visio' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/zip' | 'application/vnd.rar' | 'application/x-7z-compressed' | 'application/gzip' | 'application/x-tar' | 'video/*' | 'video/mp4' | 'video/x-msvideo' | 'video/quicktime' | 'video/webm' | 'video/x-matroska' | 'audio/*' | 'audio/mpeg' | 'audio/wav' | 'audio/mp4' | 'audio/ogg' | 'application/acad' | 'application/step' | 'application/iges' | 'model/stl' | 'message/rfc822' | 'application/vnd.ms-outlook' | 'application/mbox' | 'application/hl7-v2' | 'application/dicom' | 'application/octet-stream';
4
+ export interface UseFileDropzoneOptions extends Omit<DropzoneOptions, "onDrop" | "accept"> {
4
5
  onFilesAccepted?: (files: File[]) => void;
5
6
  onFilesRejected?: (rejectedFiles: unknown[]) => void;
7
+ accept?: Partial<Record<MIMETypeString, string[]>>;
8
+ }
9
+ export interface UseFileDropzoneOptions extends Omit<DropzoneOptions, "onDrop" | "accept"> {
10
+ onFilesAccepted?: (files: File[]) => void;
11
+ onFilesRejected?: (rejectedFiles: unknown[]) => void;
12
+ accept?: Partial<Record<MIMETypeString, string[]>>;
6
13
  }
7
14
  export declare function useFileDropzone({ onFilesAccepted, onFilesRejected, ...options }: UseFileDropzoneOptions): {
8
15
  hasErrors: boolean;
@@ -19,3 +26,4 @@ export declare function useFileDropzone({ onFilesAccepted, onFilesRejected, ...o
19
26
  getRootProps: <T extends import('react-dropzone').DropzoneRootProps>(props?: T) => T;
20
27
  getInputProps: <T extends import('react-dropzone').DropzoneInputProps>(props?: T) => T;
21
28
  };
29
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "4.2.3",
4
+ "version": "4.2.4",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",