digitinary-ui 1.0.192 → 1.0.193
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/ProgressBar/index.d.ts +4 -0
- package/dist/components/FileUploaderV2/index.d.ts +4 -0
- package/dist/components/FileUploaderV2/types.d.ts +22 -0
- package/dist/components/FileUploaderV2/viewFiles.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/icons/UploadIcon.d.ts +3 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './style.scss';
|
|
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;
|
|
4
|
+
export default FileUploaderV2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type FileOrUrl = File | string;
|
|
3
|
+
export interface FileUploaderProps {
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
accept?: string;
|
|
7
|
+
value: FileOrUrl[] | [];
|
|
8
|
+
onChange: (value: FileOrUrl[]) => void;
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
10
|
+
label?: JSX.Element | string | number;
|
|
11
|
+
placeholder?: string | number;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
key?: string;
|
|
14
|
+
handleDownload?: (value: FileOrUrl) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface ProgressBarProps {
|
|
17
|
+
duration?: number;
|
|
18
|
+
onComplete?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
mode?: string;
|
|
21
|
+
isRunning?: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './style.scss';
|
|
2
|
+
import { FileOrUrl } from './types';
|
|
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;
|
|
8
|
+
export default ViewFiles;
|
|
@@ -38,6 +38,7 @@ export { default as InputRange } from './InputRange';
|
|
|
38
38
|
export { default as NoDataFallback } from './NoDataFallback/NoDataFallback';
|
|
39
39
|
export { default as EllipsisTextWithTooltip } from './EllipsisTextWithTooltip/EllipsisTextWithTooltip';
|
|
40
40
|
export { default as FileUploader } from './FileUploader';
|
|
41
|
+
export { default as FileUploaderV2 } from './FileUploaderV2';
|
|
41
42
|
export { default as DonutChart } from './DonutChart/DonutChart';
|
|
42
43
|
export { default as LineChart } from './LineChart/LineChart';
|
|
43
44
|
export { default as PieChart } from './PieChart/PieChart';
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -196,3 +196,4 @@ export { default as ExpandIcon } from './ExpandIcon';
|
|
|
196
196
|
export { default as CloseCircleIcon } from './CloseCircleIcon';
|
|
197
197
|
export { default as MoveElementIcon } from './MoveElementIcon';
|
|
198
198
|
export { default as CloseSquarIcon } from './CloseSquarIcon';
|
|
199
|
+
export { default as UploadIcon } from './UploadIcon';
|