carbon-react 102.14.0 → 102.15.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.
@@ -9,8 +9,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
- var _base = _interopRequireDefault(require("../../../style/themes/base"));
13
-
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
13
 
16
14
  const StyledCardColumn = _styledComponents.default.div`
@@ -20,12 +18,10 @@ const StyledCardColumn = _styledComponents.default.div`
20
18
  }) => align};
21
19
  `;
22
20
  StyledCardColumn.propTypes = {
23
- align: _propTypes.default.oneOf(["center", "left", "right"]),
24
- theme: _propTypes.default.object
21
+ align: _propTypes.default.oneOf(["center", "left", "right"])
25
22
  };
26
23
  StyledCardColumn.defaultProps = {
27
- align: "center",
28
- theme: _base.default
24
+ align: "center"
29
25
  };
30
26
  var _default = StyledCardColumn;
31
27
  exports.default = _default;
@@ -38,11 +38,10 @@ const StyledCardFooter = _styledComponents.default.div`
38
38
 
39
39
  ${({
40
40
  spacing,
41
- theme,
42
41
  variant
43
42
  }) => (0, _styledComponents.css)`
44
- background-color: ${variant === "transparent" ? "transparent" : theme.card.footerBackground};
45
- border-top: ${theme.card.footerBorder};
43
+ background-color: ${variant === "transparent" ? "transparent" : "var(--colorsUtilityMajor025)"};
44
+ border-top: var(--colorsUtilityMajor100);
46
45
  border-top-width: 1px;
47
46
  border-top-style: solid;
48
47
  font-size: 14px;
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
14
  var _base = _interopRequireDefault(require("../../../style/themes/base"));
15
15
 
16
- var _card = require("../card.config");
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  const StyledCardRow = _styledComponents.default.div`
@@ -22,7 +20,7 @@ const StyledCardRow = _styledComponents.default.div`
22
20
  display: flex;
23
21
  `;
24
22
  StyledCardRow.propTypes = {
25
- spacing: _propTypes.default.oneOf(_card.CARD_SIZES)
23
+ theme: _propTypes.default.object
26
24
  };
27
25
  StyledCardRow.defaultProps = {
28
26
  theme: _base.default
@@ -31,13 +31,12 @@ const StyledCard = _styledComponents.default.div`
31
31
  cardWidth,
32
32
  interactive,
33
33
  draggable,
34
- spacing,
35
- theme
34
+ spacing
36
35
  }) => (0, _styledComponents.css)`
37
- background-color: ${theme.colors.white};
36
+ background-color: var(--colorsUtilityYang100);
38
37
  border: none;
39
- box-shadow: ${theme.shadows.cards};
40
- color: ${theme.text.color};
38
+ box-shadow: var(--boxShadow050);
39
+ color: var(--colorsUtilityYin090);
41
40
  margin: 25px;
42
41
  padding: ${paddingSizes[spacing]};
43
42
  transition: all 0.3s ease-in-out;
@@ -51,7 +50,7 @@ const StyledCard = _styledComponents.default.div`
51
50
 
52
51
  :hover,
53
52
  :focus {
54
- box-shadow: ${theme.shadows.depth1};
53
+ box-shadow: var(--boxShadow100);
55
54
  }
56
55
  `}
57
56
 
@@ -59,11 +58,6 @@ const StyledCard = _styledComponents.default.div`
59
58
  cursor: move;
60
59
  `}
61
60
 
62
- /* Fix for IE specific box-shadow display */
63
- @media all and (-ms-high-contrast: none) {
64
- box-shadow: ${theme.shadows.cardsIE};
65
- }
66
-
67
61
  ::-moz-focus-inner {
68
62
  border: 0;
69
63
  }
@@ -75,7 +69,6 @@ StyledCard.defaultProps = {
75
69
  theme: _base.default
76
70
  };
77
71
  StyledCard.propTypes = {
78
- border: _propTypes.default.bool,
79
72
  cardWidth: _propTypes.default.string,
80
73
  interactive: _propTypes.default.bool,
81
74
  draggable: _propTypes.default.bool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.14.0",
3
+ "version": "102.15.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {