@widergy/mobile-ui 2.9.4 → 2.9.6
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.6](https://github.com/widergy/mobile-ui/compare/v2.9.5...v2.9.6) (2026-04-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [UGGC-99] utbottomsheet onpress ([#494](https://github.com/widergy/mobile-ui/issues/494)) ([f5a3685](https://github.com/widergy/mobile-ui/commit/f5a368504eac11a0520a666acbcb4929893bb5fa))
|
|
7
|
+
|
|
8
|
+
## [2.9.5](https://github.com/widergy/mobile-ui/compare/v2.9.4...v2.9.5) (2026-04-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [UGGC-91] utworkflow action options ([#490](https://github.com/widergy/mobile-ui/issues/490)) ([2c83c80](https://github.com/widergy/mobile-ui/commit/2c83c8092a5edcd1114a4867e6017842c8a6806a))
|
|
14
|
+
|
|
1
15
|
## [2.9.4](https://github.com/widergy/mobile-ui/compare/v2.9.3...v2.9.4) (2026-04-06)
|
|
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,
|
|
@@ -8,7 +8,18 @@ import { useTheme } from '../../../../../../../../theming';
|
|
|
8
8
|
|
|
9
9
|
import ownStyles from './styles';
|
|
10
10
|
|
|
11
|
-
const ActionButton = ({
|
|
11
|
+
const ActionButton = ({
|
|
12
|
+
colorTheme,
|
|
13
|
+
dataTestId,
|
|
14
|
+
disabled,
|
|
15
|
+
hidden,
|
|
16
|
+
label,
|
|
17
|
+
onPress,
|
|
18
|
+
style,
|
|
19
|
+
variant,
|
|
20
|
+
icon,
|
|
21
|
+
iconPlacement
|
|
22
|
+
}) => {
|
|
12
23
|
const theme = useTheme();
|
|
13
24
|
const themedStyles = merge({}, ownStyles, theme?.UTWorkflowContainer?.actionButton, style);
|
|
14
25
|
|
|
@@ -19,6 +30,7 @@ const ActionButton = ({ colorTheme, dataTestId, disabled, hidden, label, onPress
|
|
|
19
30
|
dataTestId={dataTestId}
|
|
20
31
|
disabled={disabled || hidden}
|
|
21
32
|
Icon={icon}
|
|
33
|
+
iconPlacement={iconPlacement}
|
|
22
34
|
onPress={onPress}
|
|
23
35
|
size="large"
|
|
24
36
|
style={{ root: themedStyles.buttonContainer, childrenContainer: themedStyles.buttonContent }}
|
|
@@ -36,6 +48,7 @@ ActionButton.propTypes = {
|
|
|
36
48
|
disabled: bool,
|
|
37
49
|
hidden: bool,
|
|
38
50
|
icon: string,
|
|
51
|
+
iconPlacement: string,
|
|
39
52
|
label: string,
|
|
40
53
|
onPress: func,
|
|
41
54
|
variant: string
|
package/package.json
CHANGED