@widergy/mobile-ui 2.3.5 → 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,10 @@
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
+
1
8
  ## [2.3.5](https://github.com/widergy/mobile-ui/compare/v2.3.4...v2.3.5) (2025-12-18)
2
9
 
3
10
 
@@ -28,6 +28,7 @@ import ownStyles from './styles';
28
28
  const Header = ({
29
29
  adornment,
30
30
  classNames,
31
+ dataTestId,
31
32
  description,
32
33
  descriptionProps,
33
34
  headerActionLabel,
@@ -52,7 +53,7 @@ const Header = ({
52
53
  <View style={styles.headerTitles}>
53
54
  {renderAdornment(adornment, 'top')}
54
55
  <View style={styles.titleAndDescription}>
55
- <UTLabel variant="title3" weight="medium" {...titleProps}>
56
+ <UTLabel dataTestId={`${dataTestId}.title`} variant="title3" weight="medium" {...titleProps}>
56
57
  {title}
57
58
  </UTLabel>
58
59
  {description && (
@@ -86,6 +87,7 @@ const Header = ({
86
87
  Header.propTypes = {
87
88
  adornment: shape({ position: string, props: object, type: string }),
88
89
  classNames: objectOf(string),
90
+ dataTestId: string,
89
91
  description: string,
90
92
  descriptionProps: shape({ colorTheme: string, variant: string }),
91
93
  headerActionLabel: string,
@@ -43,6 +43,7 @@ const UTActionCard = ({
43
43
  bottomActionsVariant,
44
44
  children,
45
45
  classNames = {},
46
+ dataTestId,
46
47
  description,
47
48
  descriptionProps = {},
48
49
  headerActionLabel,
@@ -76,6 +77,7 @@ const UTActionCard = ({
76
77
  disabled={!mainAction || loading}
77
78
  onPress={mainAction && (() => mainAction?.())}
78
79
  style={[styles.innerContainer, classNames.innerContainer, mainAction && styles.withMainAction]}
80
+ testID={dataTestId}
79
81
  >
80
82
  <View>
81
83
  {BackgroundImage && (
@@ -91,6 +93,7 @@ const UTActionCard = ({
91
93
  {...{
92
94
  adornment,
93
95
  classNames,
96
+ dataTestId,
94
97
  description,
95
98
  descriptionProps,
96
99
  headerActionLabel,
@@ -162,6 +165,7 @@ UTActionCard.propTypes = {
162
165
  ),
163
166
  bottomActionsVariant: oneOf([ACTION_TYPES.DEFAULT, ACTION_TYPES.REDIRECTION]),
164
167
  classNames: objectOf(string),
168
+ dataTestId: string,
165
169
  description: string,
166
170
  descriptionProps: shape({ colorTheme: string, variant: string }),
167
171
  headerActionLabel: 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.5",
5
+ "version": "2.4.0",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [