@widergy/mobile-ui 0.36.2 → 0.36.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.36.3](https://github.com/widergy/mobile-ui/compare/v0.36.2...v0.36.3) (2023-01-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* disabled prop ([#237](https://github.com/widergy/mobile-ui/issues/237)) ([8b77874](https://github.com/widergy/mobile-ui/commit/8b778749283aaf8972044af4bcf17923ee6e9416))
|
|
7
|
+
|
|
1
8
|
## [0.36.2](https://github.com/widergy/mobile-ui/compare/v0.36.1...v0.36.2) (2023-01-18)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -30,11 +30,11 @@ class RadioButton extends Component {
|
|
|
30
30
|
labelComponent,
|
|
31
31
|
descriptionComponent,
|
|
32
32
|
showSeparatorBar,
|
|
33
|
-
|
|
33
|
+
disabled
|
|
34
34
|
} = this.props;
|
|
35
35
|
return (
|
|
36
36
|
<Fragment>
|
|
37
|
-
<Touchable onPress={this.handlePress} disabled={
|
|
37
|
+
<Touchable onPress={this.handlePress} disabled={disabled}>
|
|
38
38
|
<View style={[styles.container, style]}>
|
|
39
39
|
{descriptionComponent ? (
|
|
40
40
|
<View style={styles.descriptionComponentContainer}>
|
|
@@ -98,7 +98,7 @@ RadioButton.propTypes = {
|
|
|
98
98
|
labelComponent: PropTypes.node,
|
|
99
99
|
descriptionComponent: PropTypes.node,
|
|
100
100
|
showSeparatorBar: PropTypes.bool,
|
|
101
|
-
|
|
101
|
+
disabled: PropTypes.bool
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export default withTheme(RadioButton);
|
|
@@ -16,7 +16,7 @@ class RadioGroup extends Component {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
renderOptions = option => {
|
|
19
|
-
const { selectedOption, radioProps, keyField,
|
|
19
|
+
const { selectedOption, radioProps, keyField, disabled } = this.props;
|
|
20
20
|
return (
|
|
21
21
|
<RadioButton
|
|
22
22
|
style={styles.radio}
|
|
@@ -29,7 +29,7 @@ class RadioGroup extends Component {
|
|
|
29
29
|
status={selectedOption === option[keyField]}
|
|
30
30
|
descriptionComponent={option?.Component}
|
|
31
31
|
showSeparatorBar={option?.showSeparatorBar}
|
|
32
|
-
|
|
32
|
+
disabled={disabled}
|
|
33
33
|
{...radioProps}
|
|
34
34
|
/>
|
|
35
35
|
);
|
|
@@ -76,7 +76,7 @@ RadioGroup.propTypes = {
|
|
|
76
76
|
}),
|
|
77
77
|
titleProps: PropTypes.instanceOf(Object),
|
|
78
78
|
keyField: PropTypes.string,
|
|
79
|
-
|
|
79
|
+
disabled: PropTypes.bool
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
RadioGroup.defaultProps = {
|
package/package.json
CHANGED