@widergy/mobile-ui 1.14.3 → 1.14.4
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
|
+
## [1.14.4](https://github.com/widergy/mobile-ui/compare/v1.14.3...v1.14.4) (2024-07-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* utlabel in header and utmodal visual fixes ([#318](https://github.com/widergy/mobile-ui/issues/318)) ([38c70a9](https://github.com/widergy/mobile-ui/commit/38c70a955814d49ae7ef2e303d4cf351ca3be1fe))
|
|
7
|
+
|
|
1
8
|
## [1.14.3](https://github.com/widergy/mobile-ui/compare/v1.14.2...v1.14.3) (2024-07-23)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -3,7 +3,7 @@ import { View } from 'react-native';
|
|
|
3
3
|
import { string, bool, shape } from 'prop-types';
|
|
4
4
|
import merge from 'lodash/merge';
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import UTLabel from '../UTLabel';
|
|
7
7
|
import UTBanner from '../UTBanner';
|
|
8
8
|
import { useTheme } from '../../theming';
|
|
9
9
|
|
|
@@ -18,54 +18,63 @@ const UTHeader = ({ tagline, title, subtitle, requiredFieldInfo, helpText, useMa
|
|
|
18
18
|
|
|
19
19
|
const Tagline = renderComponent(
|
|
20
20
|
tagline,
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
<UTLabel
|
|
22
|
+
variant="small"
|
|
23
|
+
weight="medium"
|
|
24
|
+
colorTheme={themedStyles.taglineColor || 'gray'}
|
|
25
|
+
withMarkdown={useMarkdown}
|
|
25
26
|
style={[themedStyles.child, themedStyles.tagline]}
|
|
26
27
|
>
|
|
27
28
|
{tagline?.toUpperCase?.()}
|
|
28
|
-
</
|
|
29
|
+
</UTLabel>
|
|
29
30
|
);
|
|
30
31
|
|
|
31
32
|
const Title = renderComponent(
|
|
32
33
|
title,
|
|
33
|
-
<
|
|
34
|
+
<UTLabel
|
|
35
|
+
variant="title3"
|
|
36
|
+
weight="medium"
|
|
37
|
+
colorTheme={themedStyles.titleColor}
|
|
38
|
+
style={themedStyles.title}
|
|
39
|
+
withMarkdown={useMarkdown}
|
|
40
|
+
>
|
|
34
41
|
{title}
|
|
35
|
-
</
|
|
42
|
+
</UTLabel>
|
|
36
43
|
);
|
|
37
44
|
|
|
38
45
|
const Subtitle = renderComponent(
|
|
39
46
|
subtitle,
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
<UTLabel
|
|
48
|
+
colorTheme={themedStyles.subtitleColor || 'gray'}
|
|
49
|
+
withMarkdown={useMarkdown}
|
|
43
50
|
style={[themedStyles.child, themedStyles.subtitle]}
|
|
44
51
|
>
|
|
45
52
|
{subtitle}
|
|
46
|
-
</
|
|
53
|
+
</UTLabel>
|
|
47
54
|
);
|
|
48
55
|
|
|
49
56
|
const RequiredFieldInfo = renderComponent(
|
|
50
57
|
requiredFieldInfo,
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
<UTLabel
|
|
59
|
+
variant="small"
|
|
60
|
+
colorTheme={themedStyles.requiredFieldInfoColor || 'gray'}
|
|
61
|
+
withMarkdown={useMarkdown}
|
|
54
62
|
style={[themedStyles.child, themedStyles.requiredFieldInfo]}
|
|
55
63
|
>
|
|
56
64
|
{requiredFieldInfo}
|
|
57
|
-
</
|
|
65
|
+
</UTLabel>
|
|
58
66
|
);
|
|
59
67
|
|
|
60
68
|
const HelpText = renderComponent(
|
|
61
69
|
helpText,
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
<UTLabel
|
|
71
|
+
variant="small"
|
|
72
|
+
colorTheme={themedStyles.helpTextColor || theme.colors.disabled}
|
|
73
|
+
withMarkdown={useMarkdown}
|
|
65
74
|
style={[themedStyles.child, themedStyles.helpText]}
|
|
66
75
|
>
|
|
67
76
|
{helpText}
|
|
68
|
-
</
|
|
77
|
+
</UTLabel>
|
|
69
78
|
);
|
|
70
79
|
|
|
71
80
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { verticalScale, moderateHorizontalScale,
|
|
3
|
+
import { verticalScale, moderateHorizontalScale, WINDOW_HEIGHT } from '../../utils/scaleUtils';
|
|
4
4
|
import { DEFAULT_ICON_SIZE } from '../Icon/constants';
|
|
5
5
|
import { ICON_MARGIN } from '../IconButton/styles';
|
|
6
6
|
|
|
@@ -9,13 +9,13 @@ export default StyleSheet.create({
|
|
|
9
9
|
flexDirection: 'row',
|
|
10
10
|
alignItems: 'center',
|
|
11
11
|
marginVertical: verticalScale(4),
|
|
12
|
-
width: '
|
|
12
|
+
width: '100%'
|
|
13
13
|
},
|
|
14
14
|
modalBackground: {
|
|
15
15
|
backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
16
16
|
flex: 1,
|
|
17
17
|
justifyContent: 'center',
|
|
18
|
-
padding:
|
|
18
|
+
padding: 16
|
|
19
19
|
},
|
|
20
20
|
childView: {
|
|
21
21
|
flex: 1
|
|
@@ -25,14 +25,13 @@ export default StyleSheet.create({
|
|
|
25
25
|
borderRadius: 15,
|
|
26
26
|
alignItems: 'stretch',
|
|
27
27
|
alignSelf: 'center',
|
|
28
|
-
width:
|
|
28
|
+
width: '100%'
|
|
29
29
|
},
|
|
30
30
|
buttonsContainer: {
|
|
31
31
|
flexDirection: 'row',
|
|
32
32
|
justifyContent: 'flex-end',
|
|
33
33
|
alignItems: 'center',
|
|
34
|
-
|
|
35
|
-
paddingHorizontal: 15
|
|
34
|
+
padding: 16
|
|
36
35
|
},
|
|
37
36
|
viewContainer: {
|
|
38
37
|
flex: 1
|
|
@@ -55,7 +54,7 @@ export default StyleSheet.create({
|
|
|
55
54
|
margin: 0
|
|
56
55
|
},
|
|
57
56
|
content: {
|
|
58
|
-
padding:
|
|
57
|
+
padding: 16,
|
|
59
58
|
paddingBottom: 5
|
|
60
59
|
},
|
|
61
60
|
closeIcon: {
|
package/package.json
CHANGED