cecomponent 1.0.129 → 1.0.130
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.
- package/dist/ce-component-lib.js +52 -52
- package/dist/ce-component-lib.mjs +3674 -3589
- package/dist/components/Common/Box/CeBox.d.ts +2 -0
- package/dist/components/Common/Button/CEButton.d.ts +2 -0
- package/dist/components/Common/CEBadge/CEBadge.d.ts +10 -0
- package/dist/components/Common/CEFieldComponet/DynamicSelectField/DynamicSelectField.d.ts +2 -0
- package/dist/components/Common/CEFieldComponet/DynamicTextField/DynamicTextField.d.ts +2 -0
- package/dist/components/Common/CheckBox/CECheckBox.d.ts +2 -0
- package/dist/components/Common/DatePicker/CEDateInput.d.ts +3 -1
- package/dist/components/Common/DatePicker/CEDatePicker.d.ts +2 -0
- package/dist/components/Common/DateRangePicker/CEDateRangePicker.d.ts +4 -0
- package/dist/components/Common/InputBox/CEInputTextBox.d.ts +14 -0
- package/dist/components/Common/InputDropDown/InputDropDown.d.ts +2 -0
- package/dist/components/Common/Multiselection/CEAdvancedMultiSelectDropdown.d.ts +2 -1
- package/dist/components/Common/RadioButton/CERadioButton.d.ts +2 -0
- package/dist/components/Common/RadioButton/CERadioButtonGroup.d.ts +3 -0
- package/dist/components/Common/Timepicker/CETimePicker.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ export interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
6
6
|
sx?: CSSProperties;
|
|
7
7
|
/** Base style object */
|
|
8
8
|
style?: CSSProperties;
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Box - a simple, reusable layout component for consistent spacing and alignment.
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for CEBadge
|
|
4
|
+
*
|
|
5
|
+
* id and name are optional attributes primarily intended to aid unit tests
|
|
6
|
+
* (e.g. querying by id or data-name). disable will mark the badge as
|
|
7
|
+
* non-interactive for accessibility and tests.
|
|
8
|
+
*/
|
|
2
9
|
interface CEBadgeProps {
|
|
3
10
|
label: string;
|
|
4
11
|
backgroundColor?: string;
|
|
5
12
|
textColor?: string;
|
|
6
13
|
style?: React.CSSProperties;
|
|
14
|
+
id?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
disable?: boolean;
|
|
7
17
|
}
|
|
8
18
|
declare const CEBadge: React.FC<CEBadgeProps>;
|
|
9
19
|
export default CEBadge;
|
|
@@ -8,6 +8,8 @@ export interface CETextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
8
8
|
labelClassName?: string;
|
|
9
9
|
inputClassName?: string;
|
|
10
10
|
containerStyle?: React.CSSProperties;
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
11
13
|
}
|
|
12
14
|
declare const CEDynamicTextField: React.ForwardRefExoticComponent<CETextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
15
|
export default CEDynamicTextField;
|
|
@@ -7,7 +7,9 @@ interface DateInputPartProps {
|
|
|
7
7
|
length: number;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
className?: string;
|
|
10
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
11
13
|
}
|
|
12
14
|
declare const DateInputPart: React.FC<DateInputPartProps>;
|
|
13
15
|
export default DateInputPart;
|
|
@@ -10,6 +10,10 @@ interface CEDateRangePickerProps {
|
|
|
10
10
|
size?: Size;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
inputGroupStyle?: React.CSSProperties;
|
|
13
|
+
/** optional id for testing or identification */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** optional name for testing or form identification */
|
|
16
|
+
name?: string;
|
|
13
17
|
mode?: "range" | "single";
|
|
14
18
|
defaultValue?: DateRange;
|
|
15
19
|
}
|
|
@@ -4,6 +4,20 @@ type InputType = "text" | "number" | "alphanumeric" | "password" | "email" | "te
|
|
|
4
4
|
interface ValidatedInputProps {
|
|
5
5
|
value: string;
|
|
6
6
|
onChange: (value: string) => void;
|
|
7
|
+
/** optional id to apply to the input/textarea element */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** optional name to apply to the input/textarea element */
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional non-breaking callback that receives the new value and an optional
|
|
13
|
+
* meta object containing id and name. Use this when you need the component
|
|
14
|
+
* to provide identifying context back to the parent without replacing
|
|
15
|
+
* the existing onChange signature.
|
|
16
|
+
*/
|
|
17
|
+
onChangeMeta?: (value: string, meta?: {
|
|
18
|
+
id?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
}) => void;
|
|
7
21
|
placeholder?: string;
|
|
8
22
|
type?: InputType;
|
|
9
23
|
maxLength?: number;
|
|
@@ -10,10 +10,11 @@ interface AdvancedMultiSelectDropdownProps {
|
|
|
10
10
|
onSelectItem: (option: AdvancedOption) => void;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
allowSearch?: boolean;
|
|
13
|
-
/** 🔧 New optional sizing props */
|
|
14
13
|
width?: string | number;
|
|
15
14
|
inputHeight?: string | number;
|
|
16
15
|
dropdownMaxHeight?: string | number;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
17
18
|
}
|
|
18
19
|
declare const CEAdvancedMultiSelectDropdown: React.FC<AdvancedMultiSelectDropdownProps>;
|
|
19
20
|
export default CEAdvancedMultiSelectDropdown;
|
|
@@ -4,10 +4,13 @@ interface RadioButtonGroupProps {
|
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
6
|
}[];
|
|
7
|
+
/** existing logical name used for aria-labelledby */
|
|
7
8
|
name: string;
|
|
8
9
|
defaultValue?: string;
|
|
9
10
|
onChange: (value: string) => void;
|
|
10
11
|
direction?: "vertical" | "horizontal";
|
|
12
|
+
id?: string;
|
|
13
|
+
nameAttr?: string;
|
|
11
14
|
}
|
|
12
15
|
declare const CERadioButtonGroup: React.FC<RadioButtonGroupProps>;
|
|
13
16
|
export default CERadioButtonGroup;
|
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.
|
|
4
|
+
"version": "1.0.130",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|