@synerise/ds-card 0.16.3 → 0.16.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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.16.4...@synerise/ds-card@0.16.5) (2024-03-05)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-card
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.16.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.16.3...@synerise/ds-card@0.16.4) (2024-02-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **card:** added testids and classname ([74b5a0a](https://github.com/Synerise/synerise-design/commit/74b5a0a56adf2f08963f6c46b93328524680d519))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.16.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.16.2...@synerise/ds-card@0.16.3) (2024-02-19)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-card
package/dist/Card/Card.js CHANGED
@@ -50,6 +50,7 @@ var Card = function Card(_ref) {
50
50
  }
51
51
 
52
52
  return /*#__PURE__*/React.createElement(S.TitleWrapper, {
53
+ "data-testid": "card-title",
53
54
  compact: compactHeader,
54
55
  description: Boolean(description)
55
56
  }, title && /*#__PURE__*/React.createElement(S.Title, {
@@ -64,6 +65,7 @@ var Card = function Card(_ref) {
64
65
  style: style,
65
66
  className: "ds-card " + (className || ''),
66
67
  lively: lively,
68
+ "data-testid": "card-wrapper",
67
69
  background: background
68
70
  /** Necessary for passing down data-* attributes */
69
71
 
@@ -80,7 +82,9 @@ var Card = function Card(_ref) {
80
82
  })) || avatar || renderBadge && renderBadge(), /*#__PURE__*/React.createElement(S.HeaderContent, {
81
83
  compact: compactHeader,
82
84
  hasIconOrAvatar: Boolean(icon || avatar)
83
- }, renderTitle(), description && /*#__PURE__*/React.createElement(S.Description, null, description)), headerSideChildren && /*#__PURE__*/React.createElement(VisibilitySensor, {
85
+ }, renderTitle(), description && /*#__PURE__*/React.createElement(S.Description, {
86
+ "data-testid": "card-description"
87
+ }, description)), headerSideChildren && /*#__PURE__*/React.createElement(VisibilitySensor, {
84
88
  partialVisibility: true,
85
89
  onChange: setHeaderActionsVisible
86
90
  }, /*#__PURE__*/React.createElement(S.HeaderSideChildren, {
@@ -91,14 +95,18 @@ var Card = function Card(_ref) {
91
95
  className: "static-content-card-animation",
92
96
  duration: 300,
93
97
  height: hideContent ? 'auto' : 0
94
- }, /*#__PURE__*/React.createElement(S.ChildrenContainer, null, /*#__PURE__*/React.createElement(S.PaddingWrapper, {
98
+ }, /*#__PURE__*/React.createElement(S.ChildrenContainer, {
99
+ "data-testid": "card-static-content"
100
+ }, /*#__PURE__*/React.createElement(S.PaddingWrapper, {
95
101
  withoutPadding: withoutPadding,
96
102
  withHeader: withHeader
97
103
  }, staticContent))), /*#__PURE__*/React.createElement(AnimateHeight, {
98
104
  className: "card-animation",
99
105
  duration: 300,
100
106
  height: hideContent ? 0 : 'auto'
101
- }, /*#__PURE__*/React.createElement(S.ChildrenContainer, null, /*#__PURE__*/React.createElement(S.PaddingWrapper, {
107
+ }, /*#__PURE__*/React.createElement(S.ChildrenContainer, {
108
+ "data-testid": "card-content"
109
+ }, /*#__PURE__*/React.createElement(S.PaddingWrapper, {
102
110
  withoutPadding: withoutPadding,
103
111
  withHeader: withHeader
104
112
  }, children))), showSideChildrenWhenHeaderHidden && /*#__PURE__*/React.createElement(AnimateHeight, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-card",
3
- "version": "0.16.3",
3
+ "version": "0.16.5",
4
4
  "description": "Card UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,10 +33,10 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-icon": "^0.60.1",
37
- "@synerise/ds-tags": "^0.8.31",
36
+ "@synerise/ds-icon": "^0.60.3",
37
+ "@synerise/ds-tags": "^0.8.33",
38
38
  "@synerise/ds-typography": "^0.14.3",
39
- "@synerise/ds-utils": "^0.24.25",
39
+ "@synerise/ds-utils": "^0.25.0",
40
40
  "react-animate-height": "^2.0.23",
41
41
  "react-visibility-sensor": "^5.1.1"
42
42
  },
@@ -46,7 +46,7 @@
46
46
  "react": ">=16.9.0 < 17.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@synerise/ds-avatar": "^0.15.22"
49
+ "@synerise/ds-avatar": "^0.15.24"
50
50
  },
51
- "gitHead": "cddb99e7a7cf30926aa46cf772a17d6803ff62cf"
51
+ "gitHead": "6b8da853a2bb4e993d89e9b0b3041216f0c9c976"
52
52
  }