@synerise/ds-card 0.11.2 → 0.12.4
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 +16 -0
- package/README.md +1 -0
- package/dist/Card/Card.js +2 -1
- package/dist/Card/Card.types.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.12.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.11.2...@synerise/ds-card@0.12.0) (2022-06-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **filter:** fixes closing info-card when clicking on it ([91eed3b](https://github.com/Synerise/synerise-design/commit/91eed3b7a5392c04ed618c9f7265608d6c39655e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **card:** add badgeSlot prop ([7a84088](https://github.com/Synerise/synerise-design/commit/7a84088790b91958a85bd8ea0eafb295267886da))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.11.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.11.1...@synerise/ds-card@0.11.2) (2022-03-30)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-card
|
package/README.md
CHANGED
|
@@ -74,6 +74,7 @@ yarn add @synerise/ds-card
|
|
|
74
74
|
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------- |
|
|
75
75
|
| background | Background of Card container | `white` / `white-shadow` / `grey` / `grey-shadow` / `outline` | `white` |
|
|
76
76
|
| children | Defines if the button casts a shadow when the cursor is hovered over | React.ReactNode | - |
|
|
77
|
+
| renderBadge | Custom slot content for badge icon | React.ReactNode? | - |
|
|
77
78
|
| className | Defines the class name of the container | string | - |
|
|
78
79
|
| compactHeader | Set as `true`, displays the description next to the header. Set as `false`, displays the description below the header | boolean | - |
|
|
79
80
|
| description | Defines the content of the card description (in the header) | React.ReactNode | string |
|
package/dist/Card/Card.js
CHANGED
|
@@ -17,6 +17,7 @@ var Card = function Card(_ref) {
|
|
|
17
17
|
description = _ref.description,
|
|
18
18
|
compactHeader = _ref.compactHeader,
|
|
19
19
|
icon = _ref.icon,
|
|
20
|
+
renderBadge = _ref.renderBadge,
|
|
20
21
|
iconColor = _ref.iconColor,
|
|
21
22
|
headerSideChildren = _ref.headerSideChildren,
|
|
22
23
|
onHeaderClick = _ref.onHeaderClick,
|
|
@@ -50,7 +51,7 @@ var Card = function Card(_ref) {
|
|
|
50
51
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
51
52
|
component: icon,
|
|
52
53
|
color: iconColor
|
|
53
|
-
})), /*#__PURE__*/React.createElement(S.HeaderContent, {
|
|
54
|
+
})) || renderBadge && renderBadge(), /*#__PURE__*/React.createElement(S.HeaderContent, {
|
|
54
55
|
compact: compactHeader,
|
|
55
56
|
hasIcon: !!icon
|
|
56
57
|
}, title && /*#__PURE__*/React.createElement(S.Title, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "Card UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"antd": "^4",
|
|
44
44
|
"react": ">=16.9.0 < 17.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1ff23a390382403be15699d1963ad8f6c26e5ba6"
|
|
47
47
|
}
|