@synerise/ds-card 2.0.9 → 2.0.11
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 +20 -0
- package/CLAUDE.md +0 -1
- package/dist/CardSummary/CardSummaryItem.js +1 -2
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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
|
+
## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@2.0.10...@synerise/ds-card@2.0.11) (2026-10-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-card
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@2.0.9...@synerise/ds-card@2.0.10) (2026-10-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
|
|
20
|
+
* remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/Synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [2.0.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@2.0.8...@synerise/ds-card@2.0.9) (2026-10-22)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @synerise/ds-card
|
package/CLAUDE.md
CHANGED
|
@@ -146,7 +146,6 @@ import Card, { CardGroup, CardBadge, CardSummary } from '@synerise/ds-card';
|
|
|
146
146
|
|
|
147
147
|
- `react-animate-height` — animates `children` and `staticContent` show/hide (300ms). The `children` area fades in via a `.card-animation` CSS class that targets `.rah-static--height-auto`.
|
|
148
148
|
- `react-visibility-sensor` — wraps `headerSideChildren` to detect when the header leaves the viewport; powers `showSideChildrenWhenHeaderHidden`.
|
|
149
|
-
- `uuid` — used in `CardSummaryItem` to key `summaryObjects` elements that lack a `.key`.
|
|
150
149
|
|
|
151
150
|
## Implementation notes
|
|
152
151
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import AnimateHeight from "react-animate-height";
|
|
4
|
-
import { v4 } from "uuid";
|
|
5
4
|
import { AngleDownS } from "@synerise/ds-icon";
|
|
6
5
|
import { ANIMATION_DURATION } from "../constants.js";
|
|
7
6
|
import { CardSummaryItemWrapper, CardSummaryItemDetailsWrapper, CardSummaryItemDetails, CardSummaryItemLabelValueWrapper, CardSummaryItemLabel, CardSummaryItemValue, ValueButtonWrapper, CardSummaryItemObjects, CardSummaryItemObject, IconWrapper, Icon } from "./CardSummary.styles.js";
|
|
@@ -34,7 +33,7 @@ const CardSummaryItem = ({
|
|
|
34
33
|
] }) }),
|
|
35
34
|
valueButton && /* @__PURE__ */ jsx(ValueButtonWrapper, { children: valueButton })
|
|
36
35
|
] }),
|
|
37
|
-
withObjects && /* @__PURE__ */ jsx(AnimateHeight, { duration: ANIMATION_DURATION, height: isOpen ? "auto" : 0, children: /* @__PURE__ */ jsx(CardSummaryItemObjects, { direction: summaryObjectsDirection, children: summaryObjects?.map((object) => /* @__PURE__ */ jsx(CardSummaryItemObject, { direction: summaryObjectsDirection, children: object }, object.key
|
|
36
|
+
withObjects && /* @__PURE__ */ jsx(AnimateHeight, { duration: ANIMATION_DURATION, height: isOpen ? "auto" : 0, children: /* @__PURE__ */ jsx(CardSummaryItemObjects, { direction: summaryObjectsDirection, children: summaryObjects?.map((object, index) => /* @__PURE__ */ jsx(CardSummaryItemObject, { direction: summaryObjectsDirection, children: object }, object.key ?? index)) }) })
|
|
38
37
|
] });
|
|
39
38
|
};
|
|
40
39
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Card UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,20 +42,21 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-avatar": "^2.0.
|
|
46
|
-
"@synerise/ds-icon": "^2.2.
|
|
47
|
-
"@synerise/ds-tag": "^2.0.
|
|
48
|
-
"@synerise/ds-typography": "^2.0.
|
|
49
|
-
"@synerise/ds-utils": "^2.2.
|
|
45
|
+
"@synerise/ds-avatar": "^2.0.11",
|
|
46
|
+
"@synerise/ds-icon": "^2.2.3",
|
|
47
|
+
"@synerise/ds-tag": "^2.0.11",
|
|
48
|
+
"@synerise/ds-typography": "^2.0.11",
|
|
49
|
+
"@synerise/ds-utils": "^2.2.2",
|
|
50
50
|
"react-animate-height": "^2.0.23",
|
|
51
|
-
"react-visibility-sensor": "^5.1.1"
|
|
52
|
-
|
|
51
|
+
"react-visibility-sensor": "^5.1.1"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"vitest": "4"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"@synerise/ds-core": "*",
|
|
56
58
|
"react": ">=16.9.0 <= 18.3.1",
|
|
57
|
-
"styled-components": "^5.3.3"
|
|
58
|
-
"vitest": "4"
|
|
59
|
+
"styled-components": "^5.3.3"
|
|
59
60
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
|
|
61
62
|
}
|