carbon-react 104.48.1 → 104.49.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.
@@ -1,6 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import propTypes from "prop-types";
3
- import baseTheme from "../../style/themes/base";
4
3
  const ScrollableListItem = styled.li`
5
4
  ${({
6
5
  isSelectable
@@ -8,10 +7,9 @@ const ScrollableListItem = styled.li`
8
7
  cursor: pointer;
9
8
  `}
10
9
  ${({
11
- isSelected,
12
- theme
10
+ isSelected
13
11
  }) => isSelected && css`
14
- background-color: ${theme.select.selected};
12
+ background-color: var(--colorsUtilityMajor025);
15
13
  `}
16
14
  box-sizing: content-box;
17
15
  padding: 5px 6px;
@@ -19,12 +17,10 @@ const ScrollableListItem = styled.li`
19
17
  `;
20
18
  ScrollableListItem.propTypes = {
21
19
  id: propTypes.any,
22
- isSelected: propTypes.bool,
23
- theme: propTypes.object
20
+ isSelected: propTypes.bool
24
21
  };
25
22
  ScrollableListItem.defaultProps = {
26
- isSelectable: true,
27
- // defaulted to true so it integrates with ScrollableList by default,
28
- theme: baseTheme
23
+ isSelectable: true // defaulted to true so it integrates with ScrollableList by default,
24
+
29
25
  };
30
26
  export default ScrollableListItem;
@@ -9,8 +9,6 @@ var _styledComponents = _interopRequireWildcard(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
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -24,10 +22,9 @@ const ScrollableListItem = _styledComponents.default.li`
24
22
  cursor: pointer;
25
23
  `}
26
24
  ${({
27
- isSelected,
28
- theme
25
+ isSelected
29
26
  }) => isSelected && (0, _styledComponents.css)`
30
- background-color: ${theme.select.selected};
27
+ background-color: var(--colorsUtilityMajor025);
31
28
  `}
32
29
  box-sizing: content-box;
33
30
  padding: 5px 6px;
@@ -35,13 +32,11 @@ const ScrollableListItem = _styledComponents.default.li`
35
32
  `;
36
33
  ScrollableListItem.propTypes = {
37
34
  id: _propTypes.default.any,
38
- isSelected: _propTypes.default.bool,
39
- theme: _propTypes.default.object
35
+ isSelected: _propTypes.default.bool
40
36
  };
41
37
  ScrollableListItem.defaultProps = {
42
- isSelectable: true,
43
- // defaulted to true so it integrates with ScrollableList by default,
44
- theme: _base.default
38
+ isSelectable: true // defaulted to true so it integrates with ScrollableList by default,
39
+
45
40
  };
46
41
  var _default = ScrollableListItem;
47
42
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.48.1",
3
+ "version": "104.49.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {