cecomponent 1.0.20 → 1.0.22

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.
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface CEButtonProps {
3
- variant?: "primary" | "secondary" | "text" | "neutral" | "outlined" | "disabled";
3
+ variant?: "primary" | "secondary" | "text" | "neutral" | "outlined" | "outlinedGreen" | "disabled";
4
4
  onClick: () => void;
5
5
  children: React.ReactNode;
6
6
  className?: string;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ type CustomModalProps = {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ children?: React.ReactNode;
7
+ primaryButtonText?: string;
8
+ secondaryButtonText?: string;
9
+ onPrimaryClick?: () => void;
10
+ onSecondaryClick?: () => void;
11
+ };
12
+ declare const CustomModal: React.FC<CustomModalProps>;
13
+ export default CustomModal;
@@ -7,7 +7,20 @@ interface CEDataGridDynamicTableProps {
7
7
  jsonUrl: string;
8
8
  columnList?: ColumnConfig[];
9
9
  ischeckBoxInGrid?: boolean;
10
- isSearchInGrid?: boolean;
10
+ isSearchBoxInGrid?: boolean;
11
+ isAddButtonRequired?: boolean;
12
+ isEditButtonRequired?: boolean;
13
+ isDeleteButtonRequired?: boolean;
14
+ isApproveButtonRequired?: boolean;
15
+ isReassignButtonRequired?: boolean;
16
+ isCancelButtonRequired?: boolean;
17
+ noOfPagesPerPage?: number;
18
+ handleEditClick?: () => void;
19
+ handleAddClick?: () => void;
20
+ handleDeleteClick?: () => void;
21
+ handleApproveClick?: () => void;
22
+ handleReassignClick?: () => void;
23
+ handleCancelClick?: () => void;
11
24
  }
12
25
  declare const CEDataGridDynamicTable: React.FC<CEDataGridDynamicTableProps>;
13
26
  export default CEDataGridDynamicTable;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface DateRange {
3
+ startDate: string;
4
+ endDate: string;
5
+ }
6
+ interface DateRangePickerProps {
7
+ label?: string;
8
+ onChange?: (range: DateRange) => void;
9
+ }
10
+ declare const DateRangePicker: React.FC<DateRangePickerProps>;
11
+ export default DateRangePicker;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M15 3V4H20V6H19V19C19 20.1 18.1 21 17 21H7C5.9 21 5 20.1 5 19V6H4V4H9V3H15ZM7 19H17V6H7V19ZM9 8H11V17H9V8ZM15 8H13V17H15V8Z" fill="#79747E"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.06 3.58988L20.41 4.93988C21.2 5.71988 21.2 6.98988 20.41 7.76988L7.18 20.9999H3V16.8199L13.4 6.40988L16.23 3.58988C17.01 2.80988 18.28 2.80988 19.06 3.58988ZM5 18.9999L6.41 19.0599L16.23 9.22988L14.82 7.81988L5 17.6399V18.9999Z" fill="#79747E"/>
3
+ </svg>
package/dist/index.d.ts CHANGED
@@ -10,6 +10,8 @@ export { default as CEMessageModal } from './components/Common/Confirmation/CEMe
10
10
  export { default as CEDialogBox } from './components/Common/Dailog/CEDialogBox';
11
11
  export { default as CEDataGridDynamicTable } from './components/Common/DataGrid/CEDataGridDynamicsTable';
12
12
  export { default as CEDatePicker } from './components/Common/DatePicker/CEDatePicker';
13
+ export { default as CEDateRangePicker } from './components/Common/DateRangePicker/CEDateRangePicker';
14
+ export { default as CEModalPopUp } from './components/Common/CEModalPopUp/CEModalPopUp';
13
15
  export { default as CEFooter } from './components/Common/Footer/CEFooter';
14
16
  export { CEGridLayout } from './components/Common/GridLayout/CEGridLayout';
15
17
  export { default as CEHeader } from './components/Common/Header/CEHeader';
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="20" viewBox="0 0 17 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.83828 0.221421C8.68188 0.075693 8.47503 -0.00364251 8.2613 0.000128532C8.04757 0.00389957 7.84365 0.0904828 7.69249 0.241637C7.54134 0.392791 7.45476 0.596715 7.45098 0.810446C7.44721 1.02418 7.52655 1.23103 7.67228 1.38742L9.01428 2.72942H8.53028C6.89858 2.72942 5.30353 3.21327 3.94682 4.1198C2.59012 5.02632 1.53269 6.31479 0.908271 7.82228C0.283848 9.32977 0.120471 10.9886 0.438799 12.5889C0.757127 14.1893 1.54286 15.6593 2.69665 16.8131C3.85043 17.9668 5.32044 18.7526 6.92078 19.0709C8.52112 19.3892 10.1799 19.2258 11.6874 18.6014C13.1949 17.977 14.4834 16.9196 15.3899 15.5629C16.2964 14.2062 16.7803 12.6111 16.7803 10.9794C16.7803 10.7606 16.6934 10.5508 16.5386 10.3961C16.3839 10.2413 16.1741 10.1544 15.9553 10.1544C15.7365 10.1544 15.5266 10.2413 15.3719 10.3961C15.2172 10.5508 15.1303 10.7606 15.1303 10.9794C15.1302 12.2819 14.7448 13.5553 14.0225 14.6391C13.3002 15.723 12.2733 16.5689 11.0712 17.0703C9.86915 17.5718 8.54557 17.7064 7.26716 17.4571C5.98875 17.2078 4.81268 16.5859 3.88704 15.6695C2.96139 14.7532 2.32757 13.5835 2.06538 12.3077C1.80319 11.0318 1.92436 9.70696 2.41362 8.49986C2.90289 7.29276 3.73837 6.25741 4.81488 5.52419C5.89138 4.79097 7.16076 4.39266 8.46318 4.37942L7.67118 5.17142C7.52097 5.32709 7.43791 5.53552 7.43989 5.75184C7.44187 5.96815 7.52873 6.17503 7.68177 6.32792C7.8348 6.48081 8.04177 6.56748 8.25808 6.56925C8.47439 6.57103 8.68275 6.48778 8.83828 6.33742L11.3133 3.86242C11.4678 3.70773 11.5546 3.49805 11.5546 3.27942C11.5546 3.0608 11.4678 2.85111 11.3133 2.69642L8.83828 0.221421ZM12.9523 7.08542C13.1097 7.23717 13.2005 7.44523 13.2046 7.66387C13.2087 7.8825 13.1259 8.09384 12.9743 8.25142L8.73928 12.6514C8.66232 12.7313 8.57005 12.7948 8.46799 12.8382C8.36593 12.8815 8.25617 12.9039 8.14528 12.9039C8.03438 12.9039 7.92462 12.8815 7.82256 12.8382C7.7205 12.7948 7.62824 12.7313 7.55128 12.6514L5.73628 10.766C5.65735 10.6888 5.59473 10.5965 5.55212 10.4947C5.50952 10.3928 5.48779 10.2834 5.48822 10.173C5.48866 10.0626 5.51125 9.95343 5.55467 9.85191C5.59808 9.75039 5.66143 9.65862 5.74096 9.58204C5.82049 9.50545 5.91459 9.44561 6.01767 9.40606C6.12075 9.3665 6.23073 9.34804 6.34107 9.35177C6.45142 9.3555 6.5599 9.38134 6.66008 9.42776C6.76026 9.47418 6.8501 9.54024 6.92428 9.62202L8.14528 10.8892L11.7863 7.10742C11.938 6.94997 12.1461 6.85921 12.3647 6.85509C12.5834 6.85096 12.7947 6.93381 12.9523 7.08542Z" fill="#65B230"/>
3
+ </svg>
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.20",
4
+ "version": "1.0.22",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonProps as MUIButtonProps } from '@mui/material';
3
- interface ButtonProps extends MUIButtonProps {
4
- label: string;
5
- }
6
- declare const Button: React.FC<ButtonProps>;
7
- export default Button;
@@ -1,19 +0,0 @@
1
- export interface Data {
2
- id: number;
3
- movieName: string;
4
- director: string;
5
- year: number;
6
- rating: number;
7
- }
8
- export interface HeadCell {
9
- id: keyof Data;
10
- label: string;
11
- numeric: boolean;
12
- }
13
- interface TableProps {
14
- rows: Data[];
15
- header: HeadCell[];
16
- zebraStripped?: boolean;
17
- }
18
- export declare const DataTable: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,2 +0,0 @@
1
- import { Data } from './DataTable';
2
- export declare function createData(id: number, movieName: string, director: string, year: number, rating: number): Data;
@@ -1,11 +0,0 @@
1
- import { SelectProps as MuiSelectProps } from '@mui/material';
2
- type SelectBaseProps = Omit<MuiSelectProps, "">;
3
- export interface SelectProps extends SelectBaseProps {
4
- label: string;
5
- children: React.ReactNode;
6
- }
7
- export declare const Dropdown: {
8
- ({ label, children, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
9
- defaultProps: {};
10
- };
11
- export {};
@@ -1,2 +0,0 @@
1
- declare const theme: import('@mui/material/styles').Theme;
2
- export default theme;