@bitrise/bitkit 13.59.1-alpha.0 → 13.59.1-alpha.2
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/package.json
CHANGED
|
@@ -16,14 +16,15 @@ type CheckboxInputProps = ChakraCheckboxProps['inputProps'] & {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export interface CheckboxProps
|
|
19
|
-
extends Omit<FormControlProps, 'icon' | 'iconColor' | 'iconSize' | 'inputProps' | 'value'> {
|
|
19
|
+
extends Omit<FormControlProps, 'icon' | 'iconColor' | 'iconSize' | 'inputProps' | 'value' | 'onChange'> {
|
|
20
20
|
inputProps?: CheckboxInputProps;
|
|
21
21
|
helperText?: ReactNode;
|
|
22
22
|
errorText?: string;
|
|
23
|
-
value
|
|
23
|
+
value?: ChakraCheckboxProps['value'];
|
|
24
24
|
inputRef?: Ref<HTMLInputElement>;
|
|
25
25
|
isIndeterminate?: ChakraCheckboxProps['isIndeterminate'];
|
|
26
26
|
isChecked?: ChakraCheckboxProps['isChecked'];
|
|
27
|
+
onChange?: ChakraCheckboxProps['onChange'];
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const CustomIcon = (props: CheckboxIconProps) => {
|
|
@@ -53,6 +54,8 @@ const Checkbox = forwardRef<CheckboxProps, 'input'>((props, ref) => {
|
|
|
53
54
|
children,
|
|
54
55
|
isIndeterminate,
|
|
55
56
|
isChecked,
|
|
57
|
+
onChange,
|
|
58
|
+
id,
|
|
56
59
|
...rest
|
|
57
60
|
} = props;
|
|
58
61
|
|
|
@@ -72,6 +75,8 @@ const Checkbox = forwardRef<CheckboxProps, 'input'>((props, ref) => {
|
|
|
72
75
|
value,
|
|
73
76
|
isIndeterminate,
|
|
74
77
|
isChecked,
|
|
78
|
+
onChange,
|
|
79
|
+
id,
|
|
75
80
|
};
|
|
76
81
|
|
|
77
82
|
return (
|
|
@@ -13,13 +13,15 @@ type RadioInputProps = ChakraRadioProps['inputProps'] & {
|
|
|
13
13
|
'data-testid'?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export interface RadioProps
|
|
16
|
+
export interface RadioProps
|
|
17
|
+
extends Omit<FormControlProps, 'icon' | 'iconColor' | 'iconSize' | 'inputProps' | 'value' | 'onChange'> {
|
|
17
18
|
inputProps?: RadioInputProps;
|
|
18
19
|
helperText?: ReactNode;
|
|
19
20
|
errorText?: string;
|
|
20
|
-
value
|
|
21
|
+
value?: ChakraRadioProps['value'];
|
|
21
22
|
inputRef?: Ref<HTMLInputElement>;
|
|
22
23
|
isChecked?: ChakraRadioProps['isChecked'];
|
|
24
|
+
onChange?: ChakraRadioProps['onChange'];
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
const Radio = forwardRef<RadioProps, 'input'>((props, ref) => {
|
|
@@ -36,6 +38,8 @@ const Radio = forwardRef<RadioProps, 'input'>((props, ref) => {
|
|
|
36
38
|
inputProps,
|
|
37
39
|
children,
|
|
38
40
|
isChecked,
|
|
41
|
+
onChange,
|
|
42
|
+
id,
|
|
39
43
|
...rest
|
|
40
44
|
} = props;
|
|
41
45
|
|
|
@@ -54,6 +58,8 @@ const Radio = forwardRef<RadioProps, 'input'>((props, ref) => {
|
|
|
54
58
|
role,
|
|
55
59
|
value,
|
|
56
60
|
isChecked,
|
|
61
|
+
onChange,
|
|
62
|
+
id,
|
|
57
63
|
};
|
|
58
64
|
|
|
59
65
|
return (
|