@widergy/mobile-ui 2.9.5 → 2.9.7

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
+ ## [2.9.7](https://github.com/widergy/mobile-ui/compare/v2.9.6...v2.9.7) (2026-04-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [UGGC-99] replace deprecated defaultProps with default parameter in UTModal ([#495](https://github.com/widergy/mobile-ui/issues/495)) ([b2c095f](https://github.com/widergy/mobile-ui/commit/b2c095f57a962e14029ddac9eb80cff07bd6b011))
7
+
8
+ ## [2.9.6](https://github.com/widergy/mobile-ui/compare/v2.9.5...v2.9.6) (2026-04-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * [UGGC-99] utbottomsheet onpress ([#494](https://github.com/widergy/mobile-ui/issues/494)) ([f5a3685](https://github.com/widergy/mobile-ui/commit/f5a368504eac11a0520a666acbcb4929893bb5fa))
14
+
1
15
  ## [2.9.5](https://github.com/widergy/mobile-ui/compare/v2.9.4...v2.9.5) (2026-04-08)
2
16
 
3
17
 
@@ -30,6 +30,7 @@ const UTBottomSheet = ({
30
30
  buttonText,
31
31
  children,
32
32
  description,
33
+ onButtonPress,
33
34
  onClose,
34
35
  onCloseProps = {},
35
36
  primaryAction,
@@ -136,7 +137,7 @@ const UTBottomSheet = ({
136
137
  {buttonText && (
137
138
  <UTButton
138
139
  colorTheme="primary"
139
- onPress={onClose}
140
+ onPress={onButtonPress ?? onClose}
140
141
  variant="semitransparent"
141
142
  dataTestId={dataTestId ? `${dataTestId}.${closeButton}` : undefined}
142
143
  {...onCloseProps}
@@ -218,6 +219,7 @@ UTBottomSheet.propTypes = {
218
219
  adjustableHeight: bool,
219
220
  buttonText: string,
220
221
  description: string,
222
+ onButtonPress: func,
221
223
  onClose: func,
222
224
  onCloseProps: object,
223
225
  primaryAction: func,
@@ -48,7 +48,7 @@ const UTModal = ({
48
48
  loadingText,
49
49
  modalBackgroundColor,
50
50
  modalStyles,
51
- onRequestClose,
51
+ onRequestClose = () => {},
52
52
  subtitle,
53
53
  subtitleProps = {},
54
54
  title,
@@ -184,10 +184,6 @@ const UTModal = ({
184
184
  );
185
185
  };
186
186
 
187
- UTModal.defaultProps = {
188
- onRequestClose: () => {}
189
- };
190
-
191
187
  UTModal.propTypes = ModalTypes;
192
188
 
193
189
  export default UTModal;
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": "2.9.5",
5
+ "version": "2.9.7",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [