@widergy/mobile-ui 0.36.5 → 0.37.1
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 +23 -0
- package/lib/components/CheckList/index.js +3 -1
- package/lib/components/CheckList/proptypes.js +3 -2
- package/lib/components/UTSwitch/index.js +8 -2
- package/lib/components/UTSwitch/proptypes.js +7 -1
- package/lib/components/UTWorkflowContainer/index.js +17 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [0.37.1](https://github.com/widergy/mobile-ui/compare/v0.37.0...v0.37.1) (2023-03-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* delete semantic.yml ([b0f9c70](https://github.com/widergy/mobile-ui/commit/b0f9c7069d7575dafafa4994d1c48e26af72d388))
|
|
7
|
+
* update energy-bot.yml ([a2a4879](https://github.com/widergy/mobile-ui/commit/a2a4879ec36366dce868c3827566428dbe51998b))
|
|
8
|
+
* update pull request template ([8098450](https://github.com/widergy/mobile-ui/commit/8098450e976756cb66f71dbacf9580053bb92ecc))
|
|
9
|
+
|
|
10
|
+
# [0.37.0](https://github.com/widergy/mobile-ui/compare/v0.36.6...v0.37.0) (2023-03-10)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
## [0.36.6](https://github.com/widergy/mobile-ui/compare/v0.36.5...v0.36.6) (2023-02-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* checklist handles flatListProps ([#238](https://github.com/widergy/mobile-ui/issues/238)) ([70070e6](https://github.com/widergy/mobile-ui/commit/70070e6a500f8f7239e600d324e57e0dfb291935))
|
|
23
|
+
|
|
1
24
|
## [0.36.5](https://github.com/widergy/mobile-ui/compare/v0.36.4...v0.36.5) (2023-01-25)
|
|
2
25
|
|
|
3
26
|
|
|
@@ -93,7 +93,8 @@ class CheckList extends PureComponent {
|
|
|
93
93
|
error,
|
|
94
94
|
disabledSelectAll,
|
|
95
95
|
disabledStyleEnabled,
|
|
96
|
-
disabledStyle
|
|
96
|
+
disabledStyle,
|
|
97
|
+
flatListProps = {}
|
|
97
98
|
} = this.props;
|
|
98
99
|
const disableContainerStyle =
|
|
99
100
|
disabledStyleEnabled && disabledSelectAll ? disabledStyle || styles.disabled : {};
|
|
@@ -127,6 +128,7 @@ class CheckList extends PureComponent {
|
|
|
127
128
|
keyExtractor={keyExtractor}
|
|
128
129
|
ItemSeparatorComponent={includesSeparator && this.renderSeparator}
|
|
129
130
|
extraData={input.value}
|
|
131
|
+
{...flatListProps}
|
|
130
132
|
/>
|
|
131
133
|
)}
|
|
132
134
|
<CaptionLabel error={error} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
2
|
-
import { bool, number, shape, oneOfType, string, arrayOf, elementType, any } from 'prop-types';
|
|
2
|
+
import { bool, number, shape, oneOfType, string, arrayOf, elementType, any, object } from 'prop-types';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
style: ViewPropTypes.style,
|
|
@@ -23,5 +23,6 @@ export default {
|
|
|
23
23
|
),
|
|
24
24
|
input: elementType,
|
|
25
25
|
checkedColor: string,
|
|
26
|
-
error: string
|
|
26
|
+
error: string,
|
|
27
|
+
flatListProps: object
|
|
27
28
|
};
|
|
@@ -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