File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
generatedTypes/components/radioButton
src/components/radioButton Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ interface RadioButtonPropTypes {
4
4
/**
5
5
* The identifier value of the radio button. must be different than other RadioButtons in the same group
6
6
*/
7
- value ?: string | boolean ;
7
+ value ?: string | number | boolean ;
8
8
/**
9
9
* When using RadioButton without a RadioGroup, use this prop to toggle selection
10
10
*/
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ interface RadioGroupPropTypes {
3
3
/**
4
4
* The initial value of the selected radio button
5
5
*/
6
- initialValue ?: string | boolean ;
6
+ initialValue ?: string | number | boolean ;
7
7
/**
8
8
* Invoked once when value changes, by selecting one of the radio buttons in the group
9
9
*/
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface RadioGroupContextPropTypes {
3
3
/**
4
4
* The identifier value of the radio button. must be different than other RadioButtons in the same group
5
5
*/
6
- value ?: string | boolean ;
6
+ value ?: string | number | boolean ;
7
7
/**
8
8
* Invoked once when value changes, by selecting one of the radio buttons in the group
9
9
*/
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ interface RadioButtonPropTypes {
27
27
/**
28
28
* The identifier value of the radio button. must be different than other RadioButtons in the same group
29
29
*/
30
- value ?: string | boolean ;
30
+ value ?: string | number | boolean ;
31
31
/**
32
32
* When using RadioButton without a RadioGroup, use this prop to toggle selection
33
33
*/
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ interface RadioGroupPropTypes {
8
8
/**
9
9
* The initial value of the selected radio button
10
10
*/
11
- initialValue ?: string | boolean ;
11
+ initialValue ?: string | number | boolean ;
12
12
/**
13
13
* Invoked once when value changes, by selecting one of the radio buttons in the group
14
14
*/
15
15
onValueChange ?: Function ;
16
16
}
17
17
18
18
interface RadioGroupState {
19
- value ?: string | boolean ;
19
+ value ?: RadioGroupPropTypes [ 'initialValue' ] ;
20
20
}
21
21
22
22
type Props = RadioGroupPropTypes & BaseComponentInjectedProps & ForwardRefInjectedProps ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export interface RadioGroupContextPropTypes {
4
4
/**
5
5
* The identifier value of the radio button. must be different than other RadioButtons in the same group
6
6
*/
7
- value ?: string | boolean ;
7
+ value ?: string | number | boolean ;
8
8
/**
9
9
* Invoked once when value changes, by selecting one of the radio buttons in the group
10
10
*/
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface RadioGroupChildPropTypes {
7
7
/**
8
8
* The identifier value of the radio button. must be different than other RadioButtons in the same group
9
9
*/
10
- value ?: string | boolean ;
10
+ value ?: string | number | boolean ;
11
11
/**
12
12
* When using RadioButton without a RadioGroup, use this prop to toggle selection
13
13
*/
@@ -19,7 +19,7 @@ type PropTypes = RadioGroupChildPropTypes;
19
19
export default function asRadioGroupChild ( WrappedComponent : React . ComponentType < any > ) {
20
20
class RadioGroupChild extends Component < PropTypes > {
21
21
static displayName : string | undefined ;
22
-
22
+
23
23
render ( ) {
24
24
const { value : buttonValue , selected} = this . props ;
25
25
return (
You can’t perform that action at this time.
0 commit comments