cecomponent 1.0.22 → 1.0.24
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/DownArrow.svg +8 -0
- package/dist/SearchRounded.svg +3 -0
- package/dist/UpArrow.svg +26 -0
- package/dist/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +16 -89
- package/dist/ce-component-lib.mjs +8601 -12921
- package/dist/components/Common/Button/CEButton.d.ts +4 -1
- package/dist/components/Common/CEAutoSuggestInput/CEAutoSuggestInput.d.ts +2 -0
- package/dist/components/Common/CEModalPopUp/CEModalPopUp.d.ts +4 -2
- package/dist/components/Common/DataGrid/CEDataGridDynamicsTable.d.ts +2 -0
- package/dist/components/Common/DateRangePicker/CEDateRangePicker.d.ts +5 -3
- package/dist/components/Common/Tokens/CESizes.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from '../Tokens/CESizes';
|
|
3
|
+
type ButtonVariant = "primary" | "secondary" | "text" | "neutral" | "outlined" | "outlinedGreen" | "disabled";
|
|
2
4
|
interface CEButtonProps {
|
|
3
|
-
variant?:
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: Size;
|
|
4
7
|
onClick: () => void;
|
|
5
8
|
children: React.ReactNode;
|
|
6
9
|
className?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from '../Tokens/CESizes';
|
|
2
3
|
interface AutoSuggestInputProps {
|
|
3
4
|
label: string;
|
|
4
5
|
placeholder?: string;
|
|
@@ -8,6 +9,7 @@ interface AutoSuggestInputProps {
|
|
|
8
9
|
width?: string;
|
|
9
10
|
height?: string;
|
|
10
11
|
style?: React.CSSProperties;
|
|
12
|
+
size?: Size;
|
|
11
13
|
}
|
|
12
14
|
declare const CEAutoSuggestInput: React.FC<AutoSuggestInputProps>;
|
|
13
15
|
export default CEAutoSuggestInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from '../Tokens/CESizes';
|
|
2
3
|
type CustomModalProps = {
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
onClose: () => void;
|
|
@@ -8,6 +9,7 @@ type CustomModalProps = {
|
|
|
8
9
|
secondaryButtonText?: string;
|
|
9
10
|
onPrimaryClick?: () => void;
|
|
10
11
|
onSecondaryClick?: () => void;
|
|
12
|
+
size?: Size;
|
|
11
13
|
};
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
14
|
+
declare const CECustomModal: React.FC<CustomModalProps>;
|
|
15
|
+
export default CECustomModal;
|
|
@@ -21,6 +21,8 @@ interface CEDataGridDynamicTableProps {
|
|
|
21
21
|
handleApproveClick?: () => void;
|
|
22
22
|
handleReassignClick?: () => void;
|
|
23
23
|
handleCancelClick?: () => void;
|
|
24
|
+
clickableColumns?: string[];
|
|
25
|
+
handleCellClick?: (data: any) => void;
|
|
24
26
|
}
|
|
25
27
|
declare const CEDataGridDynamicTable: React.FC<CEDataGridDynamicTableProps>;
|
|
26
28
|
export default CEDataGridDynamicTable;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from '../Tokens/CESizes';
|
|
2
3
|
interface DateRange {
|
|
3
4
|
startDate: string;
|
|
4
5
|
endDate: string;
|
|
5
6
|
}
|
|
6
|
-
interface
|
|
7
|
+
interface CEDateRangePickerProps {
|
|
7
8
|
label?: string;
|
|
8
9
|
onChange?: (range: DateRange) => void;
|
|
10
|
+
size?: Size;
|
|
9
11
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
12
|
+
declare const CEDateRangePicker: React.FC<CEDateRangePickerProps>;
|
|
13
|
+
export default CEDateRangePicker;
|
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.24",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|