odaptos_design_system 2.0.46 → 2.0.47
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/DesignTokens/Icons/Miscellaneous/CloudUpload.d.ts +7 -0
- package/dist/DesignTokens/Icons/index.d.ts +4 -3
- package/dist/Molecules/FileUpload/index.d.ts +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/odaptos_design_system.cjs.development.js +633 -512
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +615 -496
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/dist/utils/checkImageResolution.d.ts +4 -0
- package/package.json +2 -1
- package/src/DesignTokens/Icons/Miscellaneous/CloudUpload.tsx +46 -0
- package/src/DesignTokens/Icons/index.ts +4 -3
- package/src/Molecules/FileUpload/fileinput.modules.scss +58 -0
- package/src/Molecules/FileUpload/index.tsx +83 -0
- package/src/index.ts +1 -0
- package/src/utils/checkImageResolution.ts +30 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIconProps } from '@mui/material';
|
|
3
|
+
interface CustomSvgProps {
|
|
4
|
+
size?: 'sm' | 'base' | 'lg' | 'xl';
|
|
5
|
+
}
|
|
6
|
+
export default function CloudUpload({ stroke, strokeWidth, fill, size, ...rest }: SvgIconProps & CustomSvgProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -94,9 +94,9 @@ export { default as TagAddIcon } from './Interaction/TagAddIcon';
|
|
|
94
94
|
export { default as TagEditIcon } from './Interaction/TagEditIcon';
|
|
95
95
|
export { default as TagRemoveIcon } from './Interaction/TagRemoveIcon';
|
|
96
96
|
export { default as TeamIcon } from './Interaction/TeamIcon';
|
|
97
|
-
export { default as UnLockIcon } from './Interaction/UnLockIcon';
|
|
98
97
|
export { default as UndoIcon } from './Interaction/UndoIcon';
|
|
99
98
|
export { default as UnlockedIcon } from './Interaction/UnlockedIcon';
|
|
99
|
+
export { default as UnLockIcon } from './Interaction/UnLockIcon';
|
|
100
100
|
export { default as LogoBeta } from './Logos/LogoBeta';
|
|
101
101
|
export { default as LogoNormal } from './Logos/LogoNormal';
|
|
102
102
|
export { default as LogoSmall } from './Logos/LogoSmall';
|
|
@@ -135,16 +135,17 @@ export { default as ChatBubbleIcon } from './Miscellaneous/ChatBubbleIcon';
|
|
|
135
135
|
export { default as ChatIcon } from './Miscellaneous/ChatIcon';
|
|
136
136
|
export { default as CheckoutIcon } from './Miscellaneous/CheckoutIcon';
|
|
137
137
|
export { default as ClipIcon } from './Miscellaneous/ClipIcon';
|
|
138
|
+
export { default as CloudUpload } from './Miscellaneous/CloudUpload';
|
|
138
139
|
export { default as ContentPenWriteIcon } from './Miscellaneous/ContentPenWriteIcon';
|
|
139
140
|
export { default as CreditCardIcon } from './Miscellaneous/CreditCardIcon';
|
|
140
141
|
export { default as DownloadIcon } from './Miscellaneous/DownloadIcon';
|
|
141
142
|
export { default as EarthIcon } from './Miscellaneous/EarthIcon';
|
|
142
143
|
export { default as FaceCenterIcon } from './Miscellaneous/FaceCenterIcon';
|
|
143
144
|
export { default as FaceRecognitionIcon } from './Miscellaneous/FaceRecognitionIcon';
|
|
144
|
-
export { default as FileUploadIcon } from './Miscellaneous/FileUploadIcon';
|
|
145
145
|
export { default as FilesIcon } from './Miscellaneous/FilesIcon';
|
|
146
|
-
export { default as
|
|
146
|
+
export { default as FileUploadIcon } from './Miscellaneous/FileUploadIcon';
|
|
147
147
|
export { default as FilledTaskIcon } from './Miscellaneous/FilledTaskIcon';
|
|
148
|
+
export { default as FillRecordIcon } from './Miscellaneous/FillRecordIcon';
|
|
148
149
|
export { default as FlashIcon } from './Miscellaneous/FlashIcon';
|
|
149
150
|
export { default as FolderIcon } from './Miscellaneous/FolderIcon';
|
|
150
151
|
export { default as GoogleIcon } from './Miscellaneous/GoogleIcon';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FileInputProps {
|
|
3
|
+
label: string;
|
|
4
|
+
onUpload: (name: string, value: any) => void;
|
|
5
|
+
fileTypes: string[];
|
|
6
|
+
rule?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
name: string;
|
|
9
|
+
resolution: {
|
|
10
|
+
height: number;
|
|
11
|
+
width: number;
|
|
12
|
+
};
|
|
13
|
+
maxSize: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
invalidFileSizeOrDimensionsErrorText?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const FileInput: ({ fileTypes, onUpload, rule, label, className, name, resolution, maxSize, disabled, invalidFileSizeOrDimensionsErrorText, }: FileInputProps) => React.JSX.Element;
|
|
18
|
+
export default FileInput;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './Atoms/ColorPicker/ColorPicker';
|
|
|
14
14
|
export * from './Atoms/DataProtectionDisclaimer/DataProtectionDisclaimer';
|
|
15
15
|
export * from './Organisms/DatePicker/DatePicker';
|
|
16
16
|
export * from './Molecules/FeaturesTable/FeaturesTable';
|
|
17
|
+
export * from './Molecules/FileUpload';
|
|
17
18
|
export * from './Organisms/FormQuestions/FormQuestions';
|
|
18
19
|
export * from './Atoms/QuestionButton/QuestionButton';
|
|
19
20
|
export * from './DesignTokens/Icons';
|