digitinary-ui 1.0.198 → 1.0.200
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/components/FileUploaderV2/index.d.ts +1 -1
- package/dist/components/FileUploaderV2/types.d.ts +11 -0
- package/dist/components/FileUploaderV2/viewFiles.d.ts +2 -6
- package/dist/icons/VideoIcon.d.ts +3 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/types/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/FileUploaderV2/ProgressBar/index.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
2
|
import { FileUploaderProps } from './types';
|
|
3
|
-
declare const FileUploaderV2: ({ multiple, disabled, accept, value, onChange, label, placeholder, required, key, handleDownload, }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const FileUploaderV2: ({ multiple, disabled, accept, value, onChange, label, placeholder, required, key, handleDownload, maxSize, }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default FileUploaderV2;
|
|
@@ -12,6 +12,7 @@ export interface FileUploaderProps {
|
|
|
12
12
|
required?: boolean;
|
|
13
13
|
key?: string;
|
|
14
14
|
handleDownload?: (value: FileOrUrl) => void;
|
|
15
|
+
maxSize?: number;
|
|
15
16
|
}
|
|
16
17
|
export interface ProgressBarProps {
|
|
17
18
|
duration?: number;
|
|
@@ -20,3 +21,13 @@ export interface ProgressBarProps {
|
|
|
20
21
|
mode?: string;
|
|
21
22
|
isRunning?: boolean;
|
|
22
23
|
}
|
|
24
|
+
export interface ViewFilesProps {
|
|
25
|
+
files: FileOrUrl[];
|
|
26
|
+
onChange: (value: FileOrUrl[], deletedFiles: FileOrUrl[]) => void;
|
|
27
|
+
handleDownload?: (value: FileOrUrl) => void;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
maxSize?: number;
|
|
30
|
+
uploadProgress?: {
|
|
31
|
+
[key: string]: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
|
-
import {
|
|
3
|
-
declare const ViewFiles: ({ files, onChange, handleDownload, }:
|
|
4
|
-
files: FileOrUrl[];
|
|
5
|
-
onChange: (value: FileOrUrl[], deletedFiles: FileOrUrl[]) => void;
|
|
6
|
-
handleDownload?: ((value: FileOrUrl) => void) | undefined;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { ViewFilesProps } from './types';
|
|
3
|
+
declare const ViewFiles: ({ files, onChange, handleDownload, disabled, maxSize, uploadProgress, }: ViewFilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
4
|
export default ViewFiles;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -197,3 +197,4 @@ export { default as CloseCircleIcon } from './CloseCircleIcon';
|
|
|
197
197
|
export { default as MoveElementIcon } from './MoveElementIcon';
|
|
198
198
|
export { default as CloseSquarIcon } from './CloseSquarIcon';
|
|
199
199
|
export { default as UploadIcon } from './UploadIcon';
|
|
200
|
+
export { default as VideoIcon } from './VideoIcon';
|