cecomponent 1.0.35 → 1.0.37
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/KeyboardArrowDownRounded.svg +3 -0
- package/dist/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +23 -23
- package/dist/ce-component-lib.mjs +1447 -1243
- package/dist/components/Common/CEFieldComponet/DynamicSearchField/DynamicSearchField.d.ts +16 -0
- package/dist/components/Common/CEFieldComponet/DynamicSelectField/DynamicSelectField.d.ts +21 -0
- package/dist/components/Common/CEFieldComponet/DynamicTextField/DynamicTextField.d.ts +13 -0
- package/dist/components/Common/DataGrid/CEDataGridDynamicsTable.d.ts +6 -2
- package/dist/index.d.ts +3 -0
- package/package.json +2 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface CESearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
|
+
label?: string;
|
|
4
|
+
onSearch?: (value: string) => void;
|
|
5
|
+
onClear?: () => void;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
showClearButton?: boolean;
|
|
10
|
+
containerClassName?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
inputClassName?: string;
|
|
13
|
+
containerStyle?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
declare const CEDynamicSearchField: React.ForwardRefExoticComponent<CESearchFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export default CEDynamicSearchField;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React, SelectHTMLAttributes } from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface CESelectFieldProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
8
|
+
label?: string;
|
|
9
|
+
options?: SelectOption[];
|
|
10
|
+
error?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
showPlaceholder?: boolean;
|
|
14
|
+
placeholderText?: string;
|
|
15
|
+
containerClassName?: string;
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
selectClassName?: string;
|
|
18
|
+
containerStyle?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
declare const CEDynamicSelectField: React.ForwardRefExoticComponent<CESelectFieldProps & React.RefAttributes<HTMLSelectElement>>;
|
|
21
|
+
export default CEDynamicSelectField;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface CETextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
containerClassName?: string;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
inputClassName?: string;
|
|
10
|
+
containerStyle?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const CEDynamicTextField: React.ForwardRefExoticComponent<CETextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export default CEDynamicTextField;
|
|
@@ -12,8 +12,12 @@ interface CEDataGridDynamicTableProps {
|
|
|
12
12
|
columnList?: ColumnConfig[];
|
|
13
13
|
ischeckBoxInGrid?: boolean;
|
|
14
14
|
isRadioButtonInGrid?: boolean;
|
|
15
|
-
renderRadioInColumnId?: string;
|
|
16
|
-
onRadioChange?: (
|
|
15
|
+
renderRadioInColumnId?: string | string[];
|
|
16
|
+
onRadioChange?: (info: {
|
|
17
|
+
rowIndex: number;
|
|
18
|
+
columnId: string;
|
|
19
|
+
rowData: any;
|
|
20
|
+
}) => void;
|
|
17
21
|
getSelectedRadioValue?: (rowIndex: number) => string;
|
|
18
22
|
isSearchBoxInGrid?: boolean;
|
|
19
23
|
isAddButtonRequired?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export { default as CEButton } from './components/Common/Button/CEButton';
|
|
|
3
3
|
export { default as CeBox } from './components/Common/Box/CeBox';
|
|
4
4
|
export { default as CEAutoSuggestInput } from './components/Common/CEAutoSuggestInput/CEAutoSuggestInput';
|
|
5
5
|
export { default as CEDrawer } from './components/Common/CEDrawer/CEDrawer';
|
|
6
|
+
export { default as CEDynamicSearchField } from './components/Common/CEFieldComponet/DynamicSearchField/DynamicSearchField';
|
|
7
|
+
export { default as CEDynamicSelectField } from './components/Common/CEFieldComponet/DynamicSelectField/DynamicSelectField';
|
|
8
|
+
export { default as CEDynamicTextField } from './components/Common/CEFieldComponet/DynamicTextField/DynamicTextField';
|
|
6
9
|
export { default as CEUploadModalWrapper } from './components/Common/CEFileUpload/CEUploadPopUp';
|
|
7
10
|
export { default as CESnackBar } from './components/Common/CESnackBar/CESnackBar';
|
|
8
11
|
export { default as CEStepper } from './components/Common/CEStepper/CEStepper';
|
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.37",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,12 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@emotion/react": "^11.14.0",
|
|
25
25
|
"@emotion/styled": "^11.14.0",
|
|
26
|
-
"@mui/icons-material": "^6.4.7",
|
|
27
|
-
"@mui/lab": "^6.0.0-beta.23",
|
|
28
|
-
"@mui/material": "^6.4.8",
|
|
29
|
-
"@mui/styled-engine-sc": "^6.4.0",
|
|
30
|
-
"@mui/x-date-pickers": "^7.24.0",
|
|
31
26
|
"axios": "^1.7.9",
|
|
27
|
+
"cecomponent": "^1.0.36",
|
|
32
28
|
"lottie-react": "^2.4.1",
|
|
33
29
|
"lucide-react": "^0.476.0",
|
|
34
30
|
"material-react-table": "^3.1.0",
|