@synerise/ds-card 0.12.7 → 0.13.1
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 +23 -0
- package/dist/Card/Card.js +13 -3
- package/dist/CardBadge/CardBadge.js +13 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.13.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.13.0...@synerise/ds-card@0.13.1) (2022-11-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **card:** force ds-card release ([a362eb1](https://github.com/Synerise/synerise-design/commit/a362eb185e51dae934f7289f23dbf69d9fcc0fc3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.13.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.12.7...@synerise/ds-card@0.13.0) (2022-11-08)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **card:** passing down data-* attributes ([490d298](https://github.com/Synerise/synerise-design/commit/490d298de250fd3f30975d160601c88392b3c054))
|
|
23
|
+
* **card:** support data-* attributes in CardBadge ([4e59200](https://github.com/Synerise/synerise-design/commit/4e592003b7dba56ff92348d0b453f3512d062bce))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [0.12.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.12.6...@synerise/ds-card@0.12.7) (2022-08-31)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @synerise/ds-card
|
package/dist/Card/Card.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var _excluded = ["children", "raised", "disabled", "style", "className", "lively", "withHeader", "defaultHeaderBackgroundColor", "title", "description", "compactHeader", "icon", "renderBadge", "iconColor", "headerSideChildren", "onHeaderClick", "withoutPadding", "headerBorderBottom", "background", "hideContent", "staticContent", "showSideChildrenWhenHeaderHidden"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
+
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import Icon from '@synerise/ds-icon';
|
|
3
9
|
import AnimateHeight from 'react-animate-height';
|
|
@@ -27,21 +33,25 @@ var Card = function Card(_ref) {
|
|
|
27
33
|
background = _ref$background === void 0 ? 'white-shadow' : _ref$background,
|
|
28
34
|
hideContent = _ref.hideContent,
|
|
29
35
|
staticContent = _ref.staticContent,
|
|
30
|
-
showSideChildrenWhenHeaderHidden = _ref.showSideChildrenWhenHeaderHidden
|
|
36
|
+
showSideChildrenWhenHeaderHidden = _ref.showSideChildrenWhenHeaderHidden,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
38
|
+
|
|
31
39
|
var fatTitle = !description || description && compactHeader;
|
|
32
40
|
|
|
33
41
|
var _React$useState = React.useState(false),
|
|
34
42
|
headerActionsVisible = _React$useState[0],
|
|
35
43
|
setHeaderActionsVisible = _React$useState[1];
|
|
36
44
|
|
|
37
|
-
return /*#__PURE__*/React.createElement(S.Container, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(S.Container, _extends({
|
|
38
46
|
raised: raised,
|
|
39
47
|
disabled: disabled,
|
|
40
48
|
style: style,
|
|
41
49
|
className: "ds-card " + (className || ''),
|
|
42
50
|
lively: lively,
|
|
43
51
|
background: background
|
|
44
|
-
|
|
52
|
+
/** Necessary for passing down data-* attributes */
|
|
53
|
+
|
|
54
|
+
}, props), withHeader && /*#__PURE__*/React.createElement(S.Header, {
|
|
45
55
|
onClick: onHeaderClick,
|
|
46
56
|
headerBorderBottom: headerBorderBottom,
|
|
47
57
|
defaultHeaderBackgroundColor: defaultHeaderBackgroundColor
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var _excluded = ["icon", "status"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
+
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import Icon from '@synerise/ds-icon';
|
|
3
9
|
import * as S from './CardBadge.styles';
|
|
@@ -5,10 +11,14 @@ import * as S from './CardBadge.styles';
|
|
|
5
11
|
var CardBadge = function CardBadge(_ref) {
|
|
6
12
|
var icon = _ref.icon,
|
|
7
13
|
_ref$status = _ref.status,
|
|
8
|
-
status = _ref$status === void 0 ? 'default' : _ref$status
|
|
9
|
-
|
|
14
|
+
status = _ref$status === void 0 ? 'default' : _ref$status,
|
|
15
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
|
+
|
|
17
|
+
return /*#__PURE__*/React.createElement(S.CardBadge, _extends({
|
|
10
18
|
status: status
|
|
11
|
-
|
|
19
|
+
/** Necessary for passing down data-* attributes */
|
|
20
|
+
|
|
21
|
+
}, props), /*#__PURE__*/React.createElement(Icon, {
|
|
12
22
|
component: icon
|
|
13
23
|
}));
|
|
14
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
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": "25ec5641390da8edc7cc420a6dc7e44f768524d7"
|
|
47
47
|
}
|