@mcurros2/microm 1.1.181-0 → 1.1.183-0

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.
package/dist/index.d.ts CHANGED
@@ -259,9 +259,9 @@ export const combineValidators: (Container?: React.ComponentType<{
259
259
  children: ReactNode;
260
260
  }>, ...validators: ValidationRule[]) => ValidationRule;
261
261
  export const isValidCUIT: ValidatorFunction;
262
+ export const CustomValidator: ValidatorFunction;
262
263
  export const isValidEmail: ValidatorFunction;
263
264
  export const isPhone: ValidatorFunction;
264
- export const CustomValidator: ValidatorFunction;
265
265
  export const CommonValidators: {
266
266
  url: ValidatorFunction;
267
267
  phone: ValidatorFunction;
@@ -1567,6 +1567,8 @@ export type FileUploaderView = {
1567
1567
  bi_filesize: number;
1568
1568
  };
1569
1569
  export function useFileUpload(props: UseFileUploadProps): UseFileUploadReturnType;
1570
+ export type PreviewFileTypes = 'image' | 'pdf' | 'other';
1571
+ export const getFileType: (file_name: string) => PreviewFileTypes;
1570
1572
  export interface FilePreviewProps {
1571
1573
  documentURL: string;
1572
1574
  onClose: () => void;
@@ -1576,8 +1578,6 @@ export interface FilePreviewProps {
1576
1578
  export function ImagePreview({ documentURL, onClose, closeText }: FilePreviewProps): JSX.Element;
1577
1579
  export const PDFPreviewDefaultProps: Partial<FilePreviewProps>;
1578
1580
  export function PDFPreview(props: FilePreviewProps): JSX.Element;
1579
- export type PreviewFileTypes = 'image' | 'pdf' | 'other';
1580
- export const getFileType: (file_name: string) => PreviewFileTypes;
1581
1581
  export interface FileUploaderProps extends Omit<DropzoneProps, 'children' | 'onDrop' | 'maxSize' | 'maxFiles'> {
1582
1582
  IdleIcon?: (props: IconProps) => ReactNode;
1583
1583
  UploadText?: string;