cecomponent 1.0.171 → 1.0.173

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.
@@ -2,6 +2,7 @@ export declare const LINE_OF_BUSINESS_COLORS: Record<string, string>;
2
2
  interface CEStackedBarLineChartProps {
3
3
  chartData: any;
4
4
  chartColumns: any;
5
+ barColors?: Record<string, string>;
5
6
  onBarClick?: (data: any) => void;
6
7
  refreshKey?: number;
7
8
  zoomLevel?: number;
@@ -2,8 +2,14 @@ import { default as React, FocusEvent } from 'react';
2
2
  import { Size } from '../Tokens/CESizes';
3
3
  type InputType = "text" | "number" | "alphanumeric" | "password" | "email" | "textarea";
4
4
  interface ValidatedInputProps {
5
- value: string;
6
- onChange: (value: string) => void;
5
+ /** value can be string or number (number recommended for numeric use) */
6
+ value: string | number;
7
+ /** onChange returns a string for non-number inputs.
8
+ * For type="number" it returns:
9
+ * - number (e.g. 12 or 12.34) when input has a numeric value
10
+ * - empty string "" when input is cleared
11
+ */
12
+ onChange: (value: string | number) => void;
7
13
  /** optional id to apply to the input/textarea element */
8
14
  id?: string;
9
15
  /** optional name to apply to the input/textarea element */
@@ -14,7 +20,7 @@ interface ValidatedInputProps {
14
20
  * to provide identifying context back to the parent without replacing
15
21
  * the existing onChange signature.
16
22
  */
17
- onChangeMeta?: (value: string, meta?: {
23
+ onChangeMeta?: (value: string | number, meta?: {
18
24
  id?: string;
19
25
  name?: string;
20
26
  }) => void;
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.171",
4
+ "version": "1.0.173",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",