@widergy/mobile-ui 1.32.8 → 1.32.10

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,17 @@
1
+ ## [1.32.10](https://github.com/widergy/mobile-ui/compare/v1.32.9...v1.32.10) (2024-12-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * change label to UTLabel ([#390](https://github.com/widergy/mobile-ui/issues/390)) ([540c24a](https://github.com/widergy/mobile-ui/commit/540c24a6266c057aba80ac49773c21a5239b6a36))
7
+
8
+ ## [1.32.9](https://github.com/widergy/mobile-ui/compare/v1.32.8...v1.32.9) (2024-12-03)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * pallete fix ([#397](https://github.com/widergy/mobile-ui/issues/397)) ([bb5f8bf](https://github.com/widergy/mobile-ui/commit/bb5f8bfed82e0c33a4c0fe43c7306d7dbdd50ad6))
14
+
1
15
  ## [1.32.8](https://github.com/widergy/mobile-ui/compare/v1.32.7...v1.32.8) (2024-12-02)
2
16
 
3
17
 
@@ -1,3 +1,3 @@
1
1
  export const retrieveStyle = ({ theme }) => ({
2
- input: { placeholderTextColor: theme.Pallete.gray['04'] }
2
+ input: { placeholderTextColor: theme.Palette.gray['04'] }
3
3
  });
@@ -4,10 +4,10 @@ import { number } from 'prop-types';
4
4
  import { useFocusEffect } from '@react-navigation/native';
5
5
 
6
6
  import UTButton from '../UTButton';
7
- import Label from '../Label';
8
7
  import UTStepper from '../UTStepper';
9
8
  import UTProgressBar from '../UTProgressBar';
10
9
  import { StagesPropTypes } from '../UTStepper/types';
10
+ import UTLabel from '../UTLabel';
11
11
 
12
12
  import ownStyles, { BAR_HEIGHT } from './styles';
13
13
  import { TopbarPropTypes } from './types';
@@ -18,10 +18,8 @@ const UTTopbar = ({
18
18
  stages,
19
19
  stepsCount,
20
20
  theme,
21
- topbar: { colorTheme = 'light', goBack, title, variant = 'secondary', Icon } = {}
21
+ topbar: { colorTheme = 'light', goBack, title, Icon } = {}
22
22
  }) => {
23
- const size = { big: variant === 'primary' };
24
-
25
23
  const ownTheme = theme.UTWorkflowContainer?.topbar?.[colorTheme];
26
24
 
27
25
  // If you are trying to render this in the example of mobile-ui, comment this useFocusEffect block or it will crash
@@ -50,9 +48,14 @@ const UTTopbar = ({
50
48
  }}
51
49
  onPress={goBack}
52
50
  />
53
- <Label color={ownTheme?.text || 'black'} {...size} bold style={ownStyles.child}>
51
+ <UTLabel
52
+ colorTheme={ownTheme?.text || 'dark'}
53
+ variant="subtitle1"
54
+ weight="medium"
55
+ style={ownStyles.child}
56
+ >
54
57
  {title}
55
- </Label>
58
+ </UTLabel>
56
59
  {stages && <UTStepper {...{ currentStage, stages }} />}
57
60
  </View>
58
61
  {currentStep && stepsCount && (
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.32.8",
5
+ "version": "1.32.10",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [