@widergy/mobile-ui 1.4.4 → 1.4.5

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,13 @@
1
+ ## [1.4.5](https://github.com/widergy/mobile-ui/compare/v1.4.4...v1.4.5) (2024-04-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * goback ([1f85d68](https://github.com/widergy/mobile-ui/commit/1f85d682b0966087e7273a8bfa3d859eeabcb5c5))
7
+ * margin password field ([de3c51a](https://github.com/widergy/mobile-ui/commit/de3c51a8d4dc38e67754dfdb9e1420cef3776ea5))
8
+ * topbar ([f49a436](https://github.com/widergy/mobile-ui/commit/f49a436235a4635ae24e59df39984231ff8d2d73))
9
+ * utheader styles ([926250f](https://github.com/widergy/mobile-ui/commit/926250ff3ceccac50b75eb861b5b4fc1cecab23e))
10
+
1
11
  ## [1.4.4](https://github.com/widergy/mobile-ui/compare/v1.4.3...v1.4.4) (2024-04-18)
2
12
 
3
13
 
@@ -18,35 +18,52 @@ const UTHeader = ({ tagline, title, subtitle, requiredFieldInfo, helpText, useMa
18
18
 
19
19
  const Tagline = renderComponent(
20
20
  tagline,
21
- <Label disabled bold useMarkdown={useMarkdown} style={themedStyles.child}>
21
+ <Label
22
+ color={themedStyles.taglineColor || theme.colors.disabled}
23
+ bold
24
+ useMarkdown={useMarkdown}
25
+ style={[themedStyles.child, themedStyles.tagline]}
26
+ >
22
27
  {tagline?.toUpperCase?.()}
23
28
  </Label>
24
29
  );
25
30
 
26
31
  const Title = renderComponent(
27
32
  title,
28
- <Label big bold style={themedStyles.title} useMarkdown={useMarkdown}>
33
+ <Label color={themedStyles.titleColor} big bold style={themedStyles.title} useMarkdown={useMarkdown}>
29
34
  {title}
30
35
  </Label>
31
36
  );
32
37
 
33
38
  const Subtitle = renderComponent(
34
39
  subtitle,
35
- <Label disabled useMarkdown={useMarkdown} style={themedStyles.child}>
40
+ <Label
41
+ color={themedStyles.subtitleColor || theme.colors.disabled}
42
+ useMarkdown={useMarkdown}
43
+ style={[themedStyles.child, themedStyles.subtitle]}
44
+ >
36
45
  {subtitle}
37
46
  </Label>
38
47
  );
39
48
 
40
49
  const RequiredFieldInfo = renderComponent(
41
50
  requiredFieldInfo,
42
- <Label disabled useMarkdown={useMarkdown} style={themedStyles.child}>
51
+ <Label
52
+ color={themedStyles.requiredFieldInfoColor || theme.colors.disabled}
53
+ useMarkdown={useMarkdown}
54
+ style={[themedStyles.child, themedStyles.requiredFieldInfo]}
55
+ >
43
56
  {requiredFieldInfo}
44
57
  </Label>
45
58
  );
46
59
 
47
60
  const HelpText = renderComponent(
48
61
  helpText,
49
- <Label disabled useMarkdown={useMarkdown} style={themedStyles.child}>
62
+ <Label
63
+ color={themedStyles.helpTextColor || theme.colors.disabled}
64
+ useMarkdown={useMarkdown}
65
+ style={[themedStyles.child, themedStyles.helpText]}
66
+ >
50
67
  {helpText}
51
68
  </Label>
52
69
  );
@@ -6,6 +6,7 @@ export default StyleSheet.create({
6
6
  alignItems: 'center'
7
7
  },
8
8
  label: {
9
+ marginBottom: 8,
9
10
  marginLeft: 10
10
11
  }
11
12
  });
@@ -1,7 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { BackHandler, View } from 'react-native';
3
3
  import { number } from 'prop-types';
4
- // eslint-disable-next-line import/no-extraneous-dependencies
5
4
  import { useFocusEffect } from '@react-navigation/native';
6
5
 
7
6
  import IconButton from '../IconButton';
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.4.4",
5
+ "version": "1.4.5",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [