demio-ui 2.6.3 → 2.7.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/cjs/index.css +1 -1
- package/dist/cjs/index.js +2 -2
- 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/hooks/useCroppedImage.d.ts +4 -0
- package/dist/cjs/types/src/stories/storiesHelpers.d.ts +5 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +2 -2
- 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/hooks/useCroppedImage.d.ts +4 -0
- package/dist/esm/types/src/stories/storiesHelpers.d.ts +5 -0
- package/dist/types.d.ts +2 -1
- 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>;
|
package/dist/types.d.ts
CHANGED
|
@@ -2096,7 +2096,8 @@ function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind()
|
|
|
2096
2096
|
var SvgStage = function SvgStage(props) {
|
|
2097
2097
|
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
2098
2098
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2099
|
-
fill: "none"
|
|
2099
|
+
fill: "none",
|
|
2100
|
+
viewBox: "0 0 20 20"
|
|
2100
2101
|
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
2101
2102
|
fill: "#98A2B3",
|
|
2102
2103
|
d: "M18.245 10.997c.709 0 1.022.892.469 1.335l-4.718 3.778v1.644a2.25 2.25 0 0 1-2.25 2.25H8.25A2.25 2.25 0 0 1 6 17.754V16.11l-4.72-3.778c-.553-.443-.24-1.335.47-1.335zm-2.137 1.5H3.887l3.332 2.667a.75.75 0 0 1 .281.585v2.005c0 .414.336.75.75.75h3.496a.75.75 0 0 0 .75-.75V15.75a.75.75 0 0 1 .281-.585zM6.75 7h6.495a1.75 1.75 0 0 1 1.744 1.606l.006.144V10h-1.5V8.75a.25.25 0 0 0-.192-.244l-.058-.006H6.75a.25.25 0 0 0-.243.192L6.5 8.75V10H5V8.75a1.75 1.75 0 0 1 1.607-1.745zh6.495zM10 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UploadMenuItem } from '../UploadMenu/UploadMenu';
|
|
3
|
-
export interface UploadPreviewProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
fileName?: string;
|
|
6
|
-
fileInfo?: string;
|
|
7
|
-
imageSrc?: string;
|
|
8
|
-
imageTitle?: string;
|
|
9
|
-
menu?: UploadMenuItem[];
|
|
10
|
-
}
|
|
11
|
-
declare const UploadPreview: FC<UploadPreviewProps>;
|
|
12
|
-
export default UploadPreview;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UploadPreview';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UploadMenuItem } from '../UploadMenu/UploadMenu';
|
|
3
|
-
export interface UploadPreviewProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
fileName?: string;
|
|
6
|
-
fileInfo?: string;
|
|
7
|
-
imageSrc?: string;
|
|
8
|
-
imageTitle?: string;
|
|
9
|
-
menu?: UploadMenuItem[];
|
|
10
|
-
}
|
|
11
|
-
declare const UploadPreview: FC<UploadPreviewProps>;
|
|
12
|
-
export default UploadPreview;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UploadPreview';
|