cecomponent 1.0.193 → 1.0.195

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,14 +1,34 @@
1
- interface StackedBarChartItem {
1
+ /**
2
+ * Chart row data
3
+ */
4
+ export interface StackedBarChartItem {
2
5
  name: string;
3
6
  [status: string]: string | number;
4
7
  }
8
+ /**
9
+ * Clicked bar payload
10
+ * Example:
11
+ * {
12
+ * name: "January",
13
+ * status: "New",
14
+ * value: 120
15
+ * }
16
+ */
17
+ export interface ClickedBarData {
18
+ name: string;
19
+ status: string;
20
+ value: number;
21
+ }
5
22
  interface CEStackedBarChartProps {
6
23
  chartData: StackedBarChartItem[];
7
24
  statusOrder: string[];
8
25
  refreshKey?: number;
9
26
  statusColor: Record<string, string>;
10
27
  height?: number;
11
- onBarClick?: (status: string) => void;
28
+ /**
29
+ * Fired when a stacked bar segment is clicked
30
+ */
31
+ onBarClick?: (data: ClickedBarData) => void;
12
32
  }
13
33
  declare const CEStackedBarChart: React.FC<CEStackedBarChartProps>;
14
34
  export default CEStackedBarChart;
@@ -18,6 +18,7 @@ interface CEFileUploadProps {
18
18
  onDownload?: (file: UploadedFile) => void;
19
19
  showPagination?: boolean;
20
20
  pageSizeOptions?: Array<number>;
21
+ disabled?: boolean;
21
22
  }
22
23
  declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
23
24
  export default CEFileUploadDocument;
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.193",
4
+ "version": "1.0.195",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",