demio-ui 5.3.34 → 5.4.2
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/bundle-analysis.html +37 -36
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Crop/Crop.utils.d.ts +11 -0
- package/dist/cjs/types/src/components/DnDArea/DnDArea.utils.d.ts +3 -0
- package/dist/cjs/types/src/components/Pagination/Pagination.utils.d.ts +7 -0
- package/dist/cjs/types/src/components/UploadLazy/index.d.ts +4 -0
- package/dist/cjs/types/src/hooks/useCroppedImage.d.ts +4 -0
- package/dist/cjs/types/src/stories/storiesHelpers.d.ts +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Crop/Crop.utils.d.ts +11 -0
- package/dist/esm/types/src/components/DnDArea/DnDArea.utils.d.ts +3 -0
- package/dist/esm/types/src/components/Pagination/Pagination.utils.d.ts +7 -0
- package/dist/esm/types/src/components/UploadLazy/index.d.ts +4 -0
- package/dist/esm/types/src/hooks/useCroppedImage.d.ts +4 -0
- package/dist/esm/types/src/stories/storiesHelpers.d.ts +5 -0
- package/package.json +1 -1
- package/dist/cjs/types/src/components/UploadPreview/UploadPreview.d.ts +0 -12
- package/dist/cjs/types/src/components/UploadPreview/index.d.ts +0 -1
- package/dist/esm/types/src/components/UploadPreview/UploadPreview.d.ts +0 -12
- package/dist/esm/types/src/components/UploadPreview/index.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Area } from 'react-easy-crop';
|
|
2
|
+
export declare const createImage: (url: string) => Promise<HTMLImageElement>;
|
|
3
|
+
export declare const getRadianAngle: (degreeValue?: number) => number;
|
|
4
|
+
export declare const rotateSize: (width: number, height: number, rotation: number) => {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const getCroppedImageURL: (imageSrc: string, pixelCrop: Area, rotation?: number, flip?: {
|
|
9
|
+
horizontal: boolean;
|
|
10
|
+
vertical: boolean;
|
|
11
|
+
}) => Promise<string | null>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const isValidFileType: (file?: File | null, acceptableTypePattern?: string) => boolean;
|
|
2
|
+
export declare const isValidFileSize: (file?: File | null, fileSizeMbLimit?: number) => boolean;
|
|
3
|
+
export declare const isValidFileDimension: (file?: File | null, minWidth?: number, minHeight?: number) => Promise<boolean>;
|