@widergy/mobile-ui 0.36.6 → 0.37.2
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,26 @@
|
|
|
1
|
+
## [0.37.2](https://github.com/widergy/mobile-ui/compare/v0.37.1...v0.37.2) (2023-03-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* create auto_assign.yml ([203fd41](https://github.com/widergy/mobile-ui/commit/203fd411f059f83b8e421091fc94476b9215cf11))
|
|
7
|
+
|
|
8
|
+
## [0.37.1](https://github.com/widergy/mobile-ui/compare/v0.37.0...v0.37.1) (2023-03-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete semantic.yml ([b0f9c70](https://github.com/widergy/mobile-ui/commit/b0f9c7069d7575dafafa4994d1c48e26af72d388))
|
|
14
|
+
* update energy-bot.yml ([a2a4879](https://github.com/widergy/mobile-ui/commit/a2a4879ec36366dce868c3827566428dbe51998b))
|
|
15
|
+
* update pull request template ([8098450](https://github.com/widergy/mobile-ui/commit/8098450e976756cb66f71dbacf9580053bb92ecc))
|
|
16
|
+
|
|
17
|
+
# [0.37.0](https://github.com/widergy/mobile-ui/compare/v0.36.6...v0.37.0) (2023-03-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* functionality of new preferences option for observation ([#239](https://github.com/widergy/mobile-ui/issues/239)) ([2b6f0b9](https://github.com/widergy/mobile-ui/commit/2b6f0b93cca25d2c5e5f7ab4112d1658ecd62245))
|
|
23
|
+
|
|
1
24
|
## [0.36.6](https://github.com/widergy/mobile-ui/compare/v0.36.5...v0.36.6) (2023-02-10)
|
|
2
25
|
|
|
3
26
|
|
|
@@ -21,7 +21,8 @@ const UTSwitch = ({
|
|
|
21
21
|
input,
|
|
22
22
|
thumbSize = 10,
|
|
23
23
|
rippleSize = 3,
|
|
24
|
-
movingStartPosition
|
|
24
|
+
movingStartPosition,
|
|
25
|
+
hitSlop
|
|
25
26
|
}) => {
|
|
26
27
|
const theme = useTheme();
|
|
27
28
|
|
|
@@ -94,7 +95,12 @@ const UTSwitch = ({
|
|
|
94
95
|
: trackLength - thumbSize * 1.2;
|
|
95
96
|
|
|
96
97
|
return (
|
|
97
|
-
<TouchableWithoutFeedback
|
|
98
|
+
<TouchableWithoutFeedback
|
|
99
|
+
disabled={disablePress}
|
|
100
|
+
onPressIn={onClick}
|
|
101
|
+
onPressOut={onClickEnd}
|
|
102
|
+
hitSlop={hitSlop}
|
|
103
|
+
>
|
|
98
104
|
<Animated.View
|
|
99
105
|
style={[
|
|
100
106
|
ownStyles.container,
|
|
@@ -13,5 +13,11 @@ export default {
|
|
|
13
13
|
trackSize: number,
|
|
14
14
|
thumbSize: number,
|
|
15
15
|
theme: number,
|
|
16
|
-
input: shape({ onChange: func.isRequired, value: any })
|
|
16
|
+
input: shape({ onChange: func.isRequired, value: any }),
|
|
17
|
+
hitSlop: shape({
|
|
18
|
+
bottom: number,
|
|
19
|
+
left: number,
|
|
20
|
+
right: number,
|
|
21
|
+
top: number
|
|
22
|
+
})
|
|
17
23
|
};
|
|
@@ -24,7 +24,8 @@ const UTWorkflowContainer = ({
|
|
|
24
24
|
title,
|
|
25
25
|
subtitle,
|
|
26
26
|
stepCounter,
|
|
27
|
-
bottomHandler
|
|
27
|
+
bottomHandler,
|
|
28
|
+
hideHeader = false
|
|
28
29
|
}) => {
|
|
29
30
|
useEffect(() => () => onExit?.(), []);
|
|
30
31
|
const theme = useTheme();
|
|
@@ -51,17 +52,19 @@ const UTWorkflowContainer = ({
|
|
|
51
52
|
|
|
52
53
|
return (
|
|
53
54
|
<View style={themedStyles.container}>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
{!hideHeader && (
|
|
56
|
+
<Header
|
|
57
|
+
stepsCount={stepsCount}
|
|
58
|
+
currentStep={currentStep}
|
|
59
|
+
nextButton={nextButton}
|
|
60
|
+
returnButton={returnButton}
|
|
61
|
+
hideStepCounter={hideStepCounter}
|
|
62
|
+
themedStyles={themedStyles}
|
|
63
|
+
styles={styles}
|
|
64
|
+
stepCounter={stepCounter}
|
|
65
|
+
bottomHandler={bottomHandler}
|
|
66
|
+
/>
|
|
67
|
+
)}
|
|
65
68
|
{!!title && Title}
|
|
66
69
|
{!!subtitle && Subtitle}
|
|
67
70
|
{children}
|
|
@@ -91,6 +94,7 @@ UTWorkflowContainer.propTypes = {
|
|
|
91
94
|
title: string,
|
|
92
95
|
subtitle: string,
|
|
93
96
|
stepCounter: oneOf([func, string]),
|
|
94
|
-
bottomHandler: bool
|
|
97
|
+
bottomHandler: bool,
|
|
98
|
+
hideHeader: bool
|
|
95
99
|
};
|
|
96
100
|
export default UTWorkflowContainer;
|
package/package.json
CHANGED