cecomponent 1.0.145 → 1.0.147

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.
@@ -10,6 +10,7 @@ interface CEBarChartProps {
10
10
  onRefresh?: () => void;
11
11
  isRefreshing?: boolean;
12
12
  height?: number;
13
+ barColor?: string;
13
14
  }
14
15
  declare const CEBarChart: React.FC<CEBarChartProps>;
15
16
  export default CEBarChart;
@@ -0,0 +1,14 @@
1
+ export declare const LINE_OF_BUSINESS_COLORS: Record<string, string>;
2
+ interface CEStackedBarLineChartProps {
3
+ chartData: any;
4
+ chartColumns: any;
5
+ onBarClick?: (data: any) => void;
6
+ refreshKey?: number;
7
+ zoomLevel?: number;
8
+ height?: number;
9
+ showLengend?: boolean;
10
+ showTootip?: boolean;
11
+ config?: any;
12
+ }
13
+ declare const CEStackedBarLineChart: React.FC<CEStackedBarLineChartProps>;
14
+ export default CEStackedBarLineChart;
@@ -86,7 +86,18 @@ interface CEDataGridDynamicTableProps {
86
86
  showPagination?: boolean;
87
87
  shouldResetSearchOnDataChange?: boolean;
88
88
  pageSizeOptions?: Array<number>;
89
- handleSelectedRows?: (rows: number[]) => void;
89
+ /**
90
+ * Called when selection changes. New signature (recommended):
91
+ * handleSelectedRows?: (payload: { ids: (string|number)[]; rows?: any[] }) => void;
92
+ * For backward-compatibility this component will also call the old
93
+ * (rows: any[]) callback if the consumer passed a function expecting an array.
94
+ */
95
+ handleSelectedRows?: ((rows: any[]) => void) | ((payload: {
96
+ ids: (string | number)[];
97
+ rows?: any[];
98
+ }) => void);
99
+ /** Field name to use as the stable selection key on each row. Defaults to `id`. */
100
+ selectionKey?: string;
90
101
  rowsSelected?: Set<number>;
91
102
  /** Called when the current page changes; receives the new page index (0-based) */
92
103
  onPageChange?: (page: number) => void;
package/dist/index.d.ts CHANGED
@@ -62,3 +62,4 @@ export { default as CEAutoCompleteSelect } from './components/Common/CEAutoCompl
62
62
  export { default as CEBarChart } from './components/Common/CECharts/CEBarCharts';
63
63
  export { default as CEPieChart } from './components/Common/CECharts/CEPieCharts';
64
64
  export { default as CEStackedBarChart } from './components/Common/CECharts/CEStackedBarChart';
65
+ export { default as CEStackedLineChart } from './components/Common/CECharts/CEStackedLineChart';
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.145",
4
+ "version": "1.0.147",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",
@@ -23,17 +23,14 @@
23
23
  "dependencies": {
24
24
  "@emotion/react": "^11.14.0",
25
25
  "@emotion/styled": "^11.14.0",
26
+ "@mui/icons-material": "^7.3.5",
27
+ "@mui/material": "^7.3.5",
26
28
  "axios": "^1.7.9",
27
29
  "lottie-react": "^2.4.1",
28
- "lucide-react": "^0.476.0",
29
- "material-react-table": "^3.1.0",
30
30
  "path": "^0.12.7",
31
- "react-bootstrap-icons": "^1.11.5",
32
31
  "react-icons": "^5.5.0",
33
- "react-ripples": "^2.2.1",
34
32
  "react-router-dom": "^7.3.0",
35
33
  "recharts": "^3.3.0",
36
- "styled-components": "^6.1.14",
37
34
  "url": "^0.11.4",
38
35
  "xlsx": "^0.18.5"
39
36
  },