@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 Label from '../Label';
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
- <Label
22
- color={themedStyles.taglineColor || theme.colors.disabled}
23
- bold
24
- useMarkdown={useMarkdown}
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
- </Label>
29
+ </UTLabel>
29
30
  );
30
31
 
31
32
  const Title = renderComponent(
32
33
  title,
33
- <Label color={themedStyles.titleColor} big bold style={themedStyles.title} useMarkdown={useMarkdown}>
34
+ <UTLabel
35
+ variant="title3"
36
+ weight="medium"
37
+ colorTheme={themedStyles.titleColor}
38
+ style={themedStyles.title}
39
+ withMarkdown={useMarkdown}
40
+ >
34
41
  {title}
35
- </Label>
42
+ </UTLabel>
36
43
  );
37
44
 
38
45
  const Subtitle = renderComponent(
39
46
  subtitle,
40
- <Label
41
- color={themedStyles.subtitleColor || theme.colors.disabled}
42
- useMarkdown={useMarkdown}
47
+ <UTLabel
48
+ colorTheme={themedStyles.subtitleColor || 'gray'}
49
+ withMarkdown={useMarkdown}
43
50
  style={[themedStyles.child, themedStyles.subtitle]}
44
51
  >
45
52
  {subtitle}
46
- </Label>
53
+ </UTLabel>
47
54
  );
48
55
 
49
56
  const RequiredFieldInfo = renderComponent(
50
57
  requiredFieldInfo,
51
- <Label
52
- color={themedStyles.requiredFieldInfoColor || theme.colors.disabled}
53
- useMarkdown={useMarkdown}
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
- </Label>
65
+ </UTLabel>
58
66
  );
59
67
 
60
68
  const HelpText = renderComponent(
61
69
  helpText,
62
- <Label
63
- color={themedStyles.helpTextColor || theme.colors.disabled}
64
- useMarkdown={useMarkdown}
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
- </Label>
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, WINDOW_WIDTH, WINDOW_HEIGHT } from '../../utils/scaleUtils';
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: '95%'
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: 15
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: WINDOW_WIDTH * 0.78
28
+ width: '100%'
29
29
  },
30
30
  buttonsContainer: {
31
31
  flexDirection: 'row',
32
32
  justifyContent: 'flex-end',
33
33
  alignItems: 'center',
34
- paddingVertical: 20,
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: 15,
57
+ padding: 16,
59
58
  paddingBottom: 5
60
59
  },
61
60
  closeIcon: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.14.3",
5
+ "version": "1.14.4",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [