@synerise/ds-card 0.10.5 → 0.11.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 +11 -0
- package/README.md +1 -0
- package/dist/Card/Card.js +3 -1
- package/dist/Card/Card.styles.d.ts +1 -0
- package/dist/Card/Card.styles.js +3 -1
- package/dist/Card/Card.types.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.11.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.10.5...@synerise/ds-card@0.11.0) (2022-03-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **filter:** simple imprv into filter & card & card-tabs component ([206cb9d](https://github.com/Synerise/synerise-design/commit/206cb9d8b9ba3687daf1a02862e8dd88698b582f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.10.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card@0.10.4...@synerise/ds-card@0.10.5) (2022-02-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-card
|
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ yarn add @synerise/ds-card
|
|
|
92
92
|
| withHeader | Defines if the header is shown | boolean | - |
|
|
93
93
|
| withoutPadding | Reset padding of ContentContainer | boolean | `false` |
|
|
94
94
|
| showSideChildrenWhenHeaderHidden | Show headerSideChildren on the bottom when header is scrolled out of view | boolean | `false` |
|
|
95
|
+
| defaultHeaderBackgroundColor | Defines if header should have default white color | boolean | `false` |
|
|
95
96
|
|
|
96
97
|
#### CardBadge
|
|
97
98
|
|
package/dist/Card/Card.js
CHANGED
|
@@ -12,6 +12,7 @@ var Card = function Card(_ref) {
|
|
|
12
12
|
className = _ref.className,
|
|
13
13
|
lively = _ref.lively,
|
|
14
14
|
withHeader = _ref.withHeader,
|
|
15
|
+
defaultHeaderBackgroundColor = _ref.defaultHeaderBackgroundColor,
|
|
15
16
|
title = _ref.title,
|
|
16
17
|
description = _ref.description,
|
|
17
18
|
compactHeader = _ref.compactHeader,
|
|
@@ -41,7 +42,8 @@ var Card = function Card(_ref) {
|
|
|
41
42
|
background: background
|
|
42
43
|
}, withHeader && /*#__PURE__*/React.createElement(S.Header, {
|
|
43
44
|
onClick: onHeaderClick,
|
|
44
|
-
headerBorderBottom: headerBorderBottom
|
|
45
|
+
headerBorderBottom: headerBorderBottom,
|
|
46
|
+
defaultHeaderBackgroundColor: defaultHeaderBackgroundColor
|
|
45
47
|
}, icon && /*#__PURE__*/React.createElement(S.IconContainer, {
|
|
46
48
|
description: description,
|
|
47
49
|
compact: compactHeader
|
|
@@ -15,6 +15,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
|
|
|
15
15
|
export declare const Header: import("styled-components").StyledComponent<"div", any, {
|
|
16
16
|
onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
17
17
|
headerBorderBottom?: boolean | undefined;
|
|
18
|
+
defaultHeaderBackgroundColor?: boolean | undefined;
|
|
18
19
|
}, never>;
|
|
19
20
|
export declare const Title: import("styled-components").StyledComponent<React.FC<Pick<import("antd/lib/typography/Base").BlockProps & {
|
|
20
21
|
level?: 1 | 2 | 3 | 4 | 5 | undefined;
|
package/dist/Card/Card.styles.js
CHANGED
|
@@ -62,12 +62,14 @@ export var Container = styled.div.withConfig({
|
|
|
62
62
|
export var Header = styled.div.withConfig({
|
|
63
63
|
displayName: "Cardstyles__Header",
|
|
64
64
|
componentId: "sc-18exblx-3"
|
|
65
|
-
})(["padding:24px 24px 24px 24px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;position:relative;&:after{position:absolute;bottom:0;left:24px;right:24px;height:1px;content:'';display:", ";background-color:", ";}&:hover{", "}"], function (props) {
|
|
65
|
+
})(["padding:24px 24px 24px 24px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;position:relative;&:after{position:absolute;bottom:0;left:24px;right:24px;height:1px;content:'';display:", ";background-color:", ";}&:hover{", "}", ""], function (props) {
|
|
66
66
|
return props.headerBorderBottom ? 'block' : 'none';
|
|
67
67
|
}, function (props) {
|
|
68
68
|
return props.theme.palette['grey-100'];
|
|
69
69
|
}, function (props) {
|
|
70
70
|
return !!props.onClick && "cursor:pointer;";
|
|
71
|
+
}, function (props) {
|
|
72
|
+
return !!props.defaultHeaderBackgroundColor && css(["background-color:", ";"], props.theme.palette.white);
|
|
71
73
|
});
|
|
72
74
|
export var Title = styled(Typography.Title).withConfig({
|
|
73
75
|
displayName: "Cardstyles__Title",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
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": "739b52320bb20c1646371224de5bb0c3454fac8c"
|
|
47
47
|
}
|