carbon-react 104.25.0 → 104.26.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.
@@ -7,14 +7,10 @@ exports.StyledGroupButton = exports.StyledPicklistGroup = exports.StyledPicklist
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _base = _interopRequireDefault(require("../../../style/themes/base"));
11
-
12
10
  var _button = require("../../button");
13
11
 
14
12
  var _picklistItem = require("../picklist-item/picklist-item.style");
15
13
 
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
14
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
19
15
 
20
16
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -22,8 +18,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
22
18
  const StyledGroupWrapper = _styledComponents.default.li`
23
19
  ${({
24
20
  highlighted,
25
- type,
26
- theme
21
+ type
27
22
  }) => (0, _styledComponents.css)`
28
23
  &:not(:first-of-type) {
29
24
  margin-top: 16px;
@@ -31,8 +26,7 @@ const StyledGroupWrapper = _styledComponents.default.li`
31
26
 
32
27
  ${highlighted && (0, _styledComponents.css)`
33
28
  ${_picklistItem.StyledButton} {
34
- background: ${type === "add" ? theme.colors.secondary : theme.colors.destructive.hover};
35
- }
29
+ background: ${type === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"}
36
30
  `}
37
31
  `}
38
32
  `;
@@ -50,8 +44,7 @@ const StyledPicklistGroup = _styledComponents.default.li`
50
44
  exports.StyledPicklistGroup = StyledPicklistGroup;
51
45
  const StyledGroupButton = (0, _styledComponents.default)(_button.ButtonWithForwardRef)`
52
46
  ${({
53
- iconType,
54
- theme
47
+ iconType
55
48
  }) => (0, _styledComponents.css)`
56
49
  padding: 0;
57
50
  margin-right: 0;
@@ -62,16 +55,9 @@ const StyledGroupButton = (0, _styledComponents.default)(_button.ButtonWithForwa
62
55
 
63
56
  &:focus {
64
57
  > span {
65
- color: ${theme.colors.white};
58
+ color: var(--colorsActionMajorYang100);
66
59
  }
67
- background: ${iconType === "add" ? theme.colors.secondary : theme.colors.destructive.hover};
68
- }
60
+ background: ${iconType === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"}
69
61
  `}
70
62
  `;
71
- exports.StyledGroupButton = StyledGroupButton;
72
- StyledGroupWrapper.defaultProps = {
73
- theme: _base.default
74
- };
75
- StyledGroupButton.defaultProps = {
76
- theme: _base.default
77
- };
63
+ exports.StyledGroupButton = StyledGroupButton;
@@ -7,8 +7,6 @@ exports.StyledLockIcon = exports.StyledButton = exports.StyledPicklistItem = voi
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _base = _interopRequireDefault(require("../../../style/themes/base"));
11
-
12
10
  var _button = require("../../button");
13
11
 
14
12
  var _icon = _interopRequireDefault(require("../../icon"));
@@ -23,26 +21,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
23
21
 
24
22
  const StyledPicklistItem = _styledComponents.default.li`
25
23
  ${({
26
- locked,
27
- theme
24
+ locked
28
25
  }) => (0, _styledComponents.css)`
29
26
  display: flex;
30
27
  align-items: center;
31
28
  width: 100%;
32
29
 
33
- background-color: ${locked ? theme.picklist.locked : theme.colors.white};
30
+ background-color: ${locked ? "var(--colorsUtilityMajor025)" : "var(--colorsUtilityYang100)"};
34
31
 
35
32
  ${!locked && (0, _styledComponents.css)`
36
- box-shadow: 0 2px 4px 0 rgba(0, 20, 29, 0.15),
37
- 0 3px 3px 0 rgba(0, 20, 29, 0.2);
33
+ box-shadow: var(--boxShadow050);
38
34
  `}
39
35
 
40
36
  ${locked && (0, _styledComponents.css)`
41
- border: 1px solid ${theme.picklist.lockedContent};
42
- color: ${theme.picklist.lockedText};
37
+ border: 1px solid var(--colorsUtilityMajor200);
38
+ color: var(--colorsUtilityYin065);
43
39
 
44
40
  ${_icon2.default} {
45
- color: ${theme.picklist.lockedContent};
41
+ color: var(--colorsUtilityMajor200);
46
42
  }
47
43
  `}
48
44
 
@@ -54,8 +50,7 @@ const StyledPicklistItem = _styledComponents.default.li`
54
50
  exports.StyledPicklistItem = StyledPicklistItem;
55
51
  const StyledButton = (0, _styledComponents.default)(_button.ButtonWithForwardRef)`
56
52
  ${({
57
- iconType,
58
- theme
53
+ iconType
59
54
  }) => (0, _styledComponents.css)`
60
55
  padding: 0;
61
56
  margin-right: 0;
@@ -64,11 +59,7 @@ const StyledButton = (0, _styledComponents.default)(_button.ButtonWithForwardRef
64
59
  min-width: 40px;
65
60
 
66
61
  &:focus {
67
- > span {
68
- color: ${theme.colors.white};
69
- }
70
- background: ${iconType === "add" ? theme.colors.secondary : theme.colors.destructive.hover};
71
- }
62
+ background: ${iconType === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"};
72
63
  `}
73
64
  `;
74
65
  exports.StyledButton = StyledButton;
@@ -77,10 +68,4 @@ const StyledLockIcon = (0, _styledComponents.default)(_icon.default)`
77
68
  height: 40px;
78
69
  min-width: 40px;
79
70
  `;
80
- exports.StyledLockIcon = StyledLockIcon;
81
- StyledPicklistItem.defaultProps = {
82
- theme: _base.default
83
- };
84
- StyledButton.defaultProps = {
85
- theme: _base.default
86
- };
71
+ exports.StyledLockIcon = StyledLockIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.25.0",
3
+ "version": "104.26.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {