@widergy/mobile-ui 0.35.1 → 0.35.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,10 @@
|
|
|
1
|
+
## [0.35.2](https://github.com/widergy/mobile-ui/compare/v0.35.1...v0.35.2) (2022-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added subtitle and separator bar ([#225](https://github.com/widergy/mobile-ui/issues/225)) ([29dc57e](https://github.com/widergy/mobile-ui/commit/29dc57e9b777228ce22f3edadf3dffb3d568a06e))
|
|
7
|
+
|
|
1
8
|
## [0.35.1](https://github.com/widergy/mobile-ui/compare/v0.35.0...v0.35.1) (2022-07-14)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -8,6 +8,7 @@ import Touchable from '../Touchable';
|
|
|
8
8
|
import Icon from '../Icon';
|
|
9
9
|
import { useTheme } from '../../theming';
|
|
10
10
|
import UTLoading from '../UTLoading';
|
|
11
|
+
import SeparatorBar from '../SeparatorBar';
|
|
11
12
|
|
|
12
13
|
import ModalTypes from './proptypes';
|
|
13
14
|
import ownStyles from './styles';
|
|
@@ -20,6 +21,8 @@ const UTModal = ({
|
|
|
20
21
|
cancelButton,
|
|
21
22
|
visible,
|
|
22
23
|
title,
|
|
24
|
+
subtitle,
|
|
25
|
+
subtitleProps = {},
|
|
23
26
|
loading,
|
|
24
27
|
backgroundStyles,
|
|
25
28
|
imageStyles,
|
|
@@ -30,7 +33,8 @@ const UTModal = ({
|
|
|
30
33
|
imageComponent,
|
|
31
34
|
labelProps,
|
|
32
35
|
modalStyles,
|
|
33
|
-
backgroundImg
|
|
36
|
+
backgroundImg,
|
|
37
|
+
hideSeparatorBar
|
|
34
38
|
}) => {
|
|
35
39
|
const theme = useTheme();
|
|
36
40
|
const themeStyles = theme.simpleButton;
|
|
@@ -85,9 +89,15 @@ const UTModal = ({
|
|
|
85
89
|
{title}
|
|
86
90
|
</Label>
|
|
87
91
|
)}
|
|
92
|
+
{!!subtitle && (
|
|
93
|
+
<Label midGray {...subtitleProps} style={styles.subtitle}>
|
|
94
|
+
{subtitle}
|
|
95
|
+
</Label>
|
|
96
|
+
)}
|
|
88
97
|
|
|
89
98
|
{children}
|
|
90
99
|
</View>
|
|
100
|
+
{!hideSeparatorBar && <SeparatorBar />}
|
|
91
101
|
<View style={styles.buttonsContainer}>
|
|
92
102
|
{!!cancelButton && (
|
|
93
103
|
<Button
|
|
@@ -43,7 +43,11 @@ export default StyleSheet.create({
|
|
|
43
43
|
alignItems: 'center'
|
|
44
44
|
},
|
|
45
45
|
title: {
|
|
46
|
-
marginBottom:
|
|
46
|
+
marginBottom: 12
|
|
47
|
+
},
|
|
48
|
+
subtitle: {
|
|
49
|
+
marginHorizontal: '4%',
|
|
50
|
+
marginBottom: 12
|
|
47
51
|
},
|
|
48
52
|
buttonText: {
|
|
49
53
|
fontWeight: 'normal',
|
|
@@ -51,7 +55,8 @@ export default StyleSheet.create({
|
|
|
51
55
|
margin: 0
|
|
52
56
|
},
|
|
53
57
|
content: {
|
|
54
|
-
padding: 15
|
|
58
|
+
padding: 15,
|
|
59
|
+
paddingBottom: 5
|
|
55
60
|
},
|
|
56
61
|
closeIcon: {
|
|
57
62
|
alignItems: 'center',
|
package/package.json
CHANGED