@widergy/mobile-ui 2.3.4 → 2.4.0

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
+ # [2.4.0](https://github.com/widergy/mobile-ui/compare/v2.3.5...v2.4.0) (2026-01-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * [AUTO-166] Test id support for UTActionCard ([#472](https://github.com/widergy/mobile-ui/issues/472)) ([d72795e](https://github.com/widergy/mobile-ui/commit/d72795e52300e174f9ae7e4165b496ab380a74c0))
7
+
8
+ ## [2.3.5](https://github.com/widergy/mobile-ui/compare/v2.3.4...v2.3.5) (2025-12-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * [CX-1671] change debt card text ([d9baf8f](https://github.com/widergy/mobile-ui/commit/d9baf8f22949af77dd676cddf19ca0565e3a94f8))
14
+
1
15
  ## [2.3.4](https://github.com/widergy/mobile-ui/compare/v2.3.3...v2.3.4) (2025-12-15)
2
16
 
3
17
 
@@ -28,8 +28,11 @@ import ownStyles from './styles';
28
28
  const Header = ({
29
29
  adornment,
30
30
  classNames,
31
+ dataTestId,
31
32
  description,
32
33
  descriptionProps,
34
+ headerActionLabel,
35
+ headerActionLabelProps,
33
36
  headerActions,
34
37
  headerActionsProps,
35
38
  setMainActionHoverVisible,
@@ -50,7 +53,7 @@ const Header = ({
50
53
  <View style={styles.headerTitles}>
51
54
  {renderAdornment(adornment, 'top')}
52
55
  <View style={styles.titleAndDescription}>
53
- <UTLabel variant="title3" weight="medium" {...titleProps}>
56
+ <UTLabel dataTestId={`${dataTestId}.title`} variant="title3" weight="medium" {...titleProps}>
54
57
  {title}
55
58
  </UTLabel>
56
59
  {description && (
@@ -69,6 +72,11 @@ const Header = ({
69
72
  {...statusProps}
70
73
  />
71
74
  ) : null}
75
+ {headerActionLabel && (
76
+ <UTLabel variant="xsmall" {...headerActionLabelProps}>
77
+ {headerActionLabel}
78
+ </UTLabel>
79
+ )}
72
80
  {!isEmpty(headerActions) && (
73
81
  <HeaderActions {...{ headerActions, headerActionsProps, setMainActionHoverVisible }} />
74
82
  )}
@@ -79,8 +87,11 @@ const Header = ({
79
87
  Header.propTypes = {
80
88
  adornment: shape({ position: string, props: object, type: string }),
81
89
  classNames: objectOf(string),
90
+ dataTestId: string,
82
91
  description: string,
83
92
  descriptionProps: shape({ colorTheme: string, variant: string }),
93
+ headerActionLabel: string,
94
+ headerActionLabelProps: shape({ colorTheme: string, variant: string, weight: string }),
84
95
  headerActions: arrayOf(
85
96
  shape({
86
97
  Icon: oneOfType([elementType, string]),
@@ -43,8 +43,11 @@ const UTActionCard = ({
43
43
  bottomActionsVariant,
44
44
  children,
45
45
  classNames = {},
46
+ dataTestId,
46
47
  description,
47
48
  descriptionProps = {},
49
+ headerActionLabel,
50
+ headerActionLabelProps = {},
48
51
  headerActions,
49
52
  headerActionsProps = { variant: HEADER_ACTIONS_VARIANTS.DEFAULT },
50
53
  loading = false,
@@ -74,6 +77,7 @@ const UTActionCard = ({
74
77
  disabled={!mainAction || loading}
75
78
  onPress={mainAction && (() => mainAction?.())}
76
79
  style={[styles.innerContainer, classNames.innerContainer, mainAction && styles.withMainAction]}
80
+ testID={dataTestId}
77
81
  >
78
82
  <View>
79
83
  {BackgroundImage && (
@@ -89,8 +93,11 @@ const UTActionCard = ({
89
93
  {...{
90
94
  adornment,
91
95
  classNames,
96
+ dataTestId,
92
97
  description,
93
98
  descriptionProps,
99
+ headerActionLabel,
100
+ headerActionLabelProps,
94
101
  headerActions,
95
102
  headerActionsProps,
96
103
  mainAction,
@@ -158,8 +165,11 @@ UTActionCard.propTypes = {
158
165
  ),
159
166
  bottomActionsVariant: oneOf([ACTION_TYPES.DEFAULT, ACTION_TYPES.REDIRECTION]),
160
167
  classNames: objectOf(string),
168
+ dataTestId: string,
161
169
  description: string,
162
170
  descriptionProps: shape({ colorTheme: string, variant: string }),
171
+ headerActionLabel: string,
172
+ headerActionLabelProps: shape({ colorTheme: string, variant: string, weight: string }),
163
173
  headerActions: arrayOf(
164
174
  shape({
165
175
  Icon: oneOfType([elementType, string]),
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": "2.3.4",
5
+ "version": "2.4.0",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [