cecomponent 1.0.27 → 1.0.29
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +11 -11
- package/dist/ce-component-lib.mjs +1879 -1747
- package/dist/components/Common/Button/CEButton.d.ts +1 -0
- package/dist/components/Common/CEAutoComplete/AutoCompleteInput.d.ts +11 -0
- package/dist/components/Common/CEAutoSuggestInput/CEAutoSuggestInput.d.ts +4 -2
- package/dist/components/Common/CEFileUpload/CEFileUploadDocument.d.ts +12 -0
- package/dist/components/Common/CEFileUpload/CEUploadPopUp.d.ts +3 -0
- package/dist/components/Common/CEModalPopUp/CEModalPopUp.d.ts +0 -2
- package/dist/components/Common/Fileupload/CEFileUploadBasic.d.ts +3 -0
- package/dist/components/Common/InputDropDown/InputDropDown.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface AutoCompleteProps {
|
|
3
|
+
label: string;
|
|
4
|
+
options: string[];
|
|
5
|
+
value: string[];
|
|
6
|
+
onChange: (val: string[]) => void;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
showCheckboxes?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const AutoCompleteInput: React.FC<AutoCompleteProps>;
|
|
11
|
+
export default AutoCompleteInput;
|
|
@@ -4,12 +4,14 @@ interface AutoSuggestInputProps {
|
|
|
4
4
|
label: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
fetchSuggestions: (query: string) => Promise<string[]>;
|
|
7
|
-
value: string;
|
|
8
|
-
onChange: (value: string) => void;
|
|
7
|
+
value: string | string[];
|
|
8
|
+
onChange: (value: string | string[]) => void;
|
|
9
9
|
width?: string;
|
|
10
10
|
height?: string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
size?: Size;
|
|
13
|
+
multipleSelection?: boolean;
|
|
14
|
+
showSearchIcon?: boolean;
|
|
13
15
|
}
|
|
14
16
|
declare const CEAutoSuggestInput: React.FC<AutoSuggestInputProps>;
|
|
15
17
|
export default CEAutoSuggestInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadedFile {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
uploadDate: string;
|
|
6
|
+
file: File;
|
|
7
|
+
}
|
|
8
|
+
interface CEFileUploadProps {
|
|
9
|
+
onUpload?: (files: UploadedFile[]) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
|
|
12
|
+
export default CEFileUploadDocument;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Size } from '../Tokens/CESizes';
|
|
3
2
|
type CustomModalProps = {
|
|
4
3
|
isOpen: boolean;
|
|
5
4
|
onClose: () => void;
|
|
@@ -9,7 +8,6 @@ type CustomModalProps = {
|
|
|
9
8
|
secondaryButtonText?: string;
|
|
10
9
|
onPrimaryClick?: () => void;
|
|
11
10
|
onSecondaryClick?: () => void;
|
|
12
|
-
size?: Size;
|
|
13
11
|
};
|
|
14
12
|
declare const CECustomModal: React.FC<CustomModalProps>;
|
|
15
13
|
export default CECustomModal;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as CEBreadcrumbs } from './components/Common/Breadcrumb/CEBread
|
|
|
2
2
|
export { default as CEButton } from './components/Common/Button/CEButton';
|
|
3
3
|
export { default as CEAutoSuggestInput } from './components/Common/CEAutoSuggestInput/CEAutoSuggestInput';
|
|
4
4
|
export { default as CEDrawer } from './components/Common/CEDrawer/CEDrawer';
|
|
5
|
+
export { default as CEUploadModalWrapper } from './components/Common/CEFileUpload/CEUploadPopUp';
|
|
5
6
|
export { default as CESnackBar } from './components/Common/CESnackBar/CESnackBar';
|
|
6
7
|
export { default as CEStepper } from './components/Common/CEStepper/CEStepper';
|
|
7
8
|
export { default as CECheckbox } from './components/Common/CheckBox/CECheckBox';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.29",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|