cecomponent 1.0.31 → 1.0.33

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.
@@ -0,0 +1,15 @@
1
+ import { default as React, ElementType, CSSProperties, HTMLAttributes } from 'react';
2
+ export interface BoxProps extends HTMLAttributes<HTMLElement> {
3
+ /** Underlying element type (defaults to 'div') */
4
+ component?: ElementType;
5
+ /** Style overrides, merged last */
6
+ sx?: CSSProperties;
7
+ /** Base style object */
8
+ style?: CSSProperties;
9
+ }
10
+ /**
11
+ * Box - a simple, reusable layout component for consistent spacing and alignment.
12
+ * Supports an 'sx' prop for theme-like style overrides and a 'component' prop to change the rendered element.
13
+ */
14
+ declare const CeBox: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLElement>>;
15
+ export default CeBox;
@@ -8,6 +8,8 @@ type CustomModalProps = {
8
8
  secondaryButtonText?: string;
9
9
  onPrimaryClick?: () => void;
10
10
  onSecondaryClick?: () => void;
11
+ width?: number | string;
12
+ height?: number | string;
11
13
  };
12
14
  declare const CECustomModal: React.FC<CustomModalProps>;
13
15
  export default CECustomModal;
@@ -16,6 +16,7 @@ interface CEDataGridDynamicTableProps {
16
16
  isApproveButtonRequired?: boolean;
17
17
  isReassignButtonRequired?: boolean;
18
18
  isCancelButtonRequired?: boolean;
19
+ isExportToExcelRequired?: boolean;
19
20
  noOfPagesPerPage?: number;
20
21
  handleEditClick?: () => void;
21
22
  handleAddClick?: () => void;
@@ -25,6 +26,7 @@ interface CEDataGridDynamicTableProps {
25
26
  handleCancelClick?: () => void;
26
27
  clickableColumns?: string[];
27
28
  handleCellClick?: (data: any) => void;
29
+ onReload?: () => void;
28
30
  }
29
31
  declare const CEDataGridDynamicTable: React.FC<CEDataGridDynamicTableProps>;
30
32
  export default CEDataGridDynamicTable;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ declare const CESkeletonTable: React.FC<{
3
+ columns: number;
4
+ rows: number;
5
+ }>;
6
+ export default CESkeletonTable;
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.31",
4
+ "version": "1.0.33",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -39,7 +39,8 @@
39
39
  "react-router-dom": "^7.3.0",
40
40
  "recharts": "^2.15.1",
41
41
  "styled-components": "^6.1.14",
42
- "url": "^0.11.4"
42
+ "url": "^0.11.4",
43
+ "xlsx": "^0.18.5"
43
44
  },
44
45
  "peerDependencies": {
45
46
  "react": "^19.1.0",
@@ -50,6 +51,7 @@
50
51
  "@types/react": "^18.3.20",
51
52
  "@types/react-dom": "^18.3.6",
52
53
  "@types/recharts": "^1.8.29",
54
+ "@types/xlsx": "^0.0.35",
53
55
  "@vitejs/plugin-react-swc": "^3.5.0",
54
56
  "eslint": "^9.17.0",
55
57
  "eslint-plugin-react-hooks": "^5.0.0",