demio-ui 2.1.113 → 2.1.114
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.js +2 -2
- 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/esm/index.js +2 -2
- 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/types.d.ts +2 -3
- package/package.json +1 -1
- package/dist/cjs/types/src/components/Upload/Upload.d.ts +0 -48
- package/dist/cjs/types/src/components/Upload/index.d.ts +0 -1
- package/dist/cjs/types/src/utils/file/index.d.ts +0 -7
- package/dist/cjs/types/src/utils/file/test.d.ts +0 -1
- package/dist/cjs/types/src/utils/image/index.d.ts +0 -11
- package/dist/cjs/types/src/utils/image/test.d.ts +0 -1
- package/dist/cjs/types/src/utils/index.d.ts +0 -2
- package/dist/esm/types/src/components/Upload/Upload.d.ts +0 -48
- package/dist/esm/types/src/components/Upload/index.d.ts +0 -1
- package/dist/esm/types/src/utils/file/index.d.ts +0 -7
- package/dist/esm/types/src/utils/file/test.d.ts +0 -1
- package/dist/esm/types/src/utils/image/index.d.ts +0 -11
- package/dist/esm/types/src/utils/image/test.d.ts +0 -1
- package/dist/esm/types/src/utils/index.d.ts +0 -2
package/dist/types.d.ts
CHANGED
|
@@ -1683,9 +1683,8 @@ function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind()
|
|
|
1683
1683
|
var SvgSearch = function SvgSearch(props) {
|
|
1684
1684
|
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
1685
1685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
fill: "currentColor"
|
|
1686
|
+
fill: "currentColor",
|
|
1687
|
+
viewBox: "0 0 24 24"
|
|
1689
1688
|
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
1690
1689
|
fill: "#2C3336",
|
|
1691
1690
|
d: "m23.835 21.979-5.69-5.69a.56.56 0 0 0-.399-.165h-.619A9.72 9.72 0 0 0 19.5 9.75 9.75 9.75 0 0 0 9.749 0 9.75 9.75 0 0 0 0 9.75a9.75 9.75 0 0 0 9.75 9.749 9.72 9.72 0 0 0 6.374-2.372v.619c0 .15.061.29.164.398l5.69 5.69c.22.221.577.221.797 0l1.06-1.059a.563.563 0 0 0 0-.796M9.75 17.249a7.5 7.5 0 0 1-7.5-7.5c0-4.143 3.356-7.5 7.5-7.5 4.143 0 7.5 3.357 7.5 7.5 0 4.144-3.357 7.5-7.5 7.5"
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { DragEvent, FC, HTMLInputTypeAttribute, ReactNode } from 'react';
|
|
2
|
-
import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
|
|
3
|
-
export interface SelectOptions {
|
|
4
|
-
file?: string;
|
|
5
|
-
setFile?: (file: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface UploadMenuItem {
|
|
8
|
-
className?: string;
|
|
9
|
-
icon?: ReactNode;
|
|
10
|
-
onSelect?: (e: Event, options: SelectOptions) => void;
|
|
11
|
-
text: ReactNode;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface UploadProps {
|
|
15
|
-
acceptableFileTypes?: string;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
className?: string;
|
|
18
|
-
customIcon?: ReactNode;
|
|
19
|
-
customHeader?: string;
|
|
20
|
-
customText?: ReactNode;
|
|
21
|
-
dropText?: ReactNode;
|
|
22
|
-
error?: string;
|
|
23
|
-
errorDimension?: string;
|
|
24
|
-
errorSize?: string;
|
|
25
|
-
errorType?: string;
|
|
26
|
-
fileSizeMbLimit?: number;
|
|
27
|
-
isDirectoryAllowed?: boolean;
|
|
28
|
-
isDimensionValidationEnabled?: boolean;
|
|
29
|
-
isSizeValidationEnabled?: boolean;
|
|
30
|
-
isTypeValidationEnabled?: boolean;
|
|
31
|
-
isValidationEnabled?: boolean;
|
|
32
|
-
menu?: UploadMenuItem[];
|
|
33
|
-
minHeightLimit?: number;
|
|
34
|
-
minWidthLimit?: number;
|
|
35
|
-
name?: string;
|
|
36
|
-
onBeforeUpload?: (file: RcFile, fileList: RcFile[]) => void;
|
|
37
|
-
onCrop?: (croppedUrl: string) => void;
|
|
38
|
-
onDragLeave?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
39
|
-
onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
40
|
-
onDrop?: (event: DragEvent<HTMLDivElement>, file: File | null) => void;
|
|
41
|
-
onError?: (err: Error, ret: Record<string, unknown>, file: RcFile) => void;
|
|
42
|
-
onProgress?: (event: UploadProgressEvent, file: RcFile) => void;
|
|
43
|
-
onStart?: (file: RcFile) => void;
|
|
44
|
-
onSuccess?: (ret: Record<string, unknown>) => void;
|
|
45
|
-
type?: HTMLInputTypeAttribute;
|
|
46
|
-
}
|
|
47
|
-
declare const Upload: FC<UploadProps>;
|
|
48
|
-
export default Upload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Upload';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const mimeTypeMap: Record<string, string[]>;
|
|
2
|
-
export declare const getFileExtension: (file?: unknown) => string;
|
|
3
|
-
export declare const getFileMimeType: (file?: unknown) => string;
|
|
4
|
-
export declare const isExtensionMatchingMimeType: (extension?: unknown, mimeType?: unknown) => boolean;
|
|
5
|
-
export declare const isValidFileType: (file?: unknown, acceptableTypePattern?: unknown) => boolean;
|
|
6
|
-
export declare const isValidFileSize: (file?: unknown, fileSizeMbLimit?: unknown) => boolean;
|
|
7
|
-
export declare const isValidFileDimension: (file?: unknown, minWidth?: number, minHeight?: number) => Promise<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { DragEvent, FC, HTMLInputTypeAttribute, ReactNode } from 'react';
|
|
2
|
-
import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
|
|
3
|
-
export interface SelectOptions {
|
|
4
|
-
file?: string;
|
|
5
|
-
setFile?: (file: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface UploadMenuItem {
|
|
8
|
-
className?: string;
|
|
9
|
-
icon?: ReactNode;
|
|
10
|
-
onSelect?: (e: Event, options: SelectOptions) => void;
|
|
11
|
-
text: ReactNode;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface UploadProps {
|
|
15
|
-
acceptableFileTypes?: string;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
className?: string;
|
|
18
|
-
customIcon?: ReactNode;
|
|
19
|
-
customHeader?: string;
|
|
20
|
-
customText?: ReactNode;
|
|
21
|
-
dropText?: ReactNode;
|
|
22
|
-
error?: string;
|
|
23
|
-
errorDimension?: string;
|
|
24
|
-
errorSize?: string;
|
|
25
|
-
errorType?: string;
|
|
26
|
-
fileSizeMbLimit?: number;
|
|
27
|
-
isDirectoryAllowed?: boolean;
|
|
28
|
-
isDimensionValidationEnabled?: boolean;
|
|
29
|
-
isSizeValidationEnabled?: boolean;
|
|
30
|
-
isTypeValidationEnabled?: boolean;
|
|
31
|
-
isValidationEnabled?: boolean;
|
|
32
|
-
menu?: UploadMenuItem[];
|
|
33
|
-
minHeightLimit?: number;
|
|
34
|
-
minWidthLimit?: number;
|
|
35
|
-
name?: string;
|
|
36
|
-
onBeforeUpload?: (file: RcFile, fileList: RcFile[]) => void;
|
|
37
|
-
onCrop?: (croppedUrl: string) => void;
|
|
38
|
-
onDragLeave?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
39
|
-
onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
40
|
-
onDrop?: (event: DragEvent<HTMLDivElement>, file: File | null) => void;
|
|
41
|
-
onError?: (err: Error, ret: Record<string, unknown>, file: RcFile) => void;
|
|
42
|
-
onProgress?: (event: UploadProgressEvent, file: RcFile) => void;
|
|
43
|
-
onStart?: (file: RcFile) => void;
|
|
44
|
-
onSuccess?: (ret: Record<string, unknown>) => void;
|
|
45
|
-
type?: HTMLInputTypeAttribute;
|
|
46
|
-
}
|
|
47
|
-
declare const Upload: FC<UploadProps>;
|
|
48
|
-
export default Upload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Upload';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const mimeTypeMap: Record<string, string[]>;
|
|
2
|
-
export declare const getFileExtension: (file?: unknown) => string;
|
|
3
|
-
export declare const getFileMimeType: (file?: unknown) => string;
|
|
4
|
-
export declare const isExtensionMatchingMimeType: (extension?: unknown, mimeType?: unknown) => boolean;
|
|
5
|
-
export declare const isValidFileType: (file?: unknown, acceptableTypePattern?: unknown) => boolean;
|
|
6
|
-
export declare const isValidFileSize: (file?: unknown, fileSizeMbLimit?: unknown) => boolean;
|
|
7
|
-
export declare const isValidFileDimension: (file?: unknown, minWidth?: number, minHeight?: number) => Promise<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|