@widergy/mobile-ui 1.40.0 → 1.40.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,17 @@
1
+ ## [1.40.2](https://github.com/widergy/mobile-ui/compare/v1.40.1...v1.40.2) (2025-04-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * action card status props ([#423](https://github.com/widergy/mobile-ui/issues/423)) ([a79c610](https://github.com/widergy/mobile-ui/commit/a79c6108d15fb5d799534950a01fd1efa0c612f4))
7
+
8
+ ## [1.40.1](https://github.com/widergy/mobile-ui/compare/v1.40.0...v1.40.1) (2025-04-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * smartbill new experience fixes ([#422](https://github.com/widergy/mobile-ui/issues/422)) ([159c806](https://github.com/widergy/mobile-ui/commit/159c80602811c44e188825f1589ccc4dd6c9dfc9))
14
+
1
15
  # [1.40.0](https://github.com/widergy/mobile-ui/compare/v1.39.0...v1.40.0) (2025-04-04)
2
16
 
3
17
 
@@ -37,6 +37,7 @@ const Header = ({
37
37
  status,
38
38
  statusAlignment,
39
39
  statusLabel,
40
+ statusProps = {},
40
41
  title,
41
42
  titleProps
42
43
  }) => {
@@ -64,6 +65,7 @@ const Header = ({
64
65
  {...statusPropsMapper(status, theme)}
65
66
  alignment={statusAlignment}
66
67
  value={statusLabel || status}
68
+ {...statusProps}
67
69
  />
68
70
  ) : null}
69
71
  {!isEmpty(headerActions) && (
@@ -99,6 +101,7 @@ Header.propTypes = {
99
101
  status: string,
100
102
  statusAlignment: oneOf([PLACE_SELF_TYPES.CENTER, PLACE_SELF_TYPES.END, PLACE_SELF_TYPES.START]),
101
103
  statusLabel: string,
104
+ statusProps: object,
102
105
  title: string,
103
106
  titleProps: shape({ variant: string, weight: string })
104
107
  };
@@ -42,12 +42,13 @@ const UTActionCard = ({
42
42
  status,
43
43
  statusAlignment,
44
44
  statusLabel,
45
+ surfaceElevation = 1,
45
46
  title,
46
47
  titleProps = {},
47
48
  withBodyPadding = true
48
49
  }) => {
49
50
  return (
50
- <Surface elevation={1} style={[styles.cardContainer, classNames.container]}>
51
+ <Surface elevation={surfaceElevation} style={[styles.cardContainer, classNames.container]}>
51
52
  <TouchableOpacity
52
53
  activeOpacity={0.6}
53
54
  disabled={!mainAction}
@@ -151,6 +152,7 @@ UTActionCard.propTypes = {
151
152
  status: string,
152
153
  statusLabel: string,
153
154
  statusAlignment: oneOf([PLACE_SELF_TYPES.CENTER, PLACE_SELF_TYPES.END, PLACE_SELF_TYPES.START]),
155
+ surfaceElevation: number,
154
156
  title: string,
155
157
  titleProps: shape({ variant: string, weight: string }),
156
158
  withBodyPadding: bool
@@ -13,6 +13,7 @@ import { COLOR_THEMES, HIERARCHIES } from './constants';
13
13
  const UTTabs = ({
14
14
  colorTheme = COLOR_THEMES.ACCENT,
15
15
  hierarchy = HIERARCHIES.SECONDARY,
16
+ labelProps = {},
16
17
  onChange,
17
18
  style,
18
19
  tabs,
@@ -60,7 +61,7 @@ const UTTabs = ({
60
61
  style={styles.tab(tabs.length)}
61
62
  >
62
63
  <UTIcon colorTheme={colorThemeToUse} name={icon} />
63
- <UTLabel colorTheme={colorThemeToUse} shade="04" weight="medium">
64
+ <UTLabel colorTheme={colorThemeToUse} shade="04" weight="medium" {...labelProps}>
64
65
  {label}
65
66
  </UTLabel>
66
67
  {badge && <UTBadge colorTheme="accent" />}
@@ -76,6 +77,7 @@ const UTTabs = ({
76
77
  UTTabs.propTypes = {
77
78
  colorTheme: string,
78
79
  hierarchy: string,
80
+ labelProps: object,
79
81
  onChange: func,
80
82
  style: object,
81
83
  tabs: array,
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.40.0",
5
+ "version": "1.40.2",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [