@widergy/mobile-ui 0.36.1 → 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,17 @@
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
+
8
+ ## [0.36.2](https://github.com/widergy/mobile-ui/compare/v0.36.1...v0.36.2) (2023-01-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * read only radio group ([#234](https://github.com/widergy/mobile-ui/issues/234)) ([ffcd1d5](https://github.com/widergy/mobile-ui/commit/ffcd1d5bb914a95336e85f0b81775b3b71ebf091))
14
+
1
15
  ## [0.36.1](https://github.com/widergy/mobile-ui/compare/v0.36.0...v0.36.1) (2023-01-09)
2
16
 
3
17
 
@@ -29,11 +29,12 @@ class RadioButton extends Component {
29
29
  theme,
30
30
  labelComponent,
31
31
  descriptionComponent,
32
- showSeparatorBar
32
+ showSeparatorBar,
33
+ disabled
33
34
  } = this.props;
34
35
  return (
35
36
  <Fragment>
36
- <Touchable onPress={this.handlePress}>
37
+ <Touchable onPress={this.handlePress} disabled={disabled}>
37
38
  <View style={[styles.container, style]}>
38
39
  {descriptionComponent ? (
39
40
  <View style={styles.descriptionComponentContainer}>
@@ -96,7 +97,8 @@ RadioButton.propTypes = {
96
97
  theme: themeType,
97
98
  labelComponent: PropTypes.node,
98
99
  descriptionComponent: PropTypes.node,
99
- showSeparatorBar: PropTypes.bool
100
+ showSeparatorBar: PropTypes.bool,
101
+ disabled: PropTypes.bool
100
102
  };
101
103
 
102
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 } = this.props;
19
+ const { selectedOption, radioProps, keyField, disabled } = this.props;
20
20
  return (
21
21
  <RadioButton
22
22
  style={styles.radio}
@@ -29,6 +29,7 @@ class RadioGroup extends Component {
29
29
  status={selectedOption === option[keyField]}
30
30
  descriptionComponent={option?.Component}
31
31
  showSeparatorBar={option?.showSeparatorBar}
32
+ disabled={disabled}
32
33
  {...radioProps}
33
34
  />
34
35
  );
@@ -74,7 +75,8 @@ RadioGroup.propTypes = {
74
75
  leftButton: PropTypes.bool
75
76
  }),
76
77
  titleProps: PropTypes.instanceOf(Object),
77
- keyField: PropTypes.string
78
+ keyField: PropTypes.string,
79
+ disabled: PropTypes.bool
78
80
  };
79
81
 
80
82
  RadioGroup.defaultProps = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "0.36.1",
5
+ "version": "0.36.3",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [