carbon-react 104.30.0 → 104.31.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.
@@ -41,7 +41,7 @@ const StyledNavigationItem = _styledComponents.default.li`
41
41
  ${({
42
42
  isSelected
43
43
  }) => isSelected && (0, _styledComponents.css)`
44
- background-color: var(--colorsActionMinorYang100);
44
+ background-color: var(--colorsActionMajorYang100);
45
45
  border-left-color: var(--colorsActionMajor500);
46
46
  `}
47
47
  }
@@ -9,12 +9,12 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
10
  var _styledSystem = require("styled-system");
11
11
 
12
- var _themes = require("../../style/themes");
13
-
14
12
  var _button = _interopRequireDefault(require("../button/button.style"));
15
13
 
16
14
  var _link = require("../link/link.style");
17
15
 
16
+ var _themes = require("../../style/themes");
17
+
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
20
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -44,6 +44,9 @@ const StyledDl = _styledComponents.default.dl`
44
44
  background-color: transparent;
45
45
  `;
46
46
  exports.StyledDl = StyledDl;
47
+ StyledDl.defaultProps = {
48
+ theme: _themes.baseTheme
49
+ };
47
50
  const StyledDtDiv = _styledComponents.default.div`
48
51
  ${_styledSystem.space}
49
52
  ${({
@@ -53,6 +56,9 @@ const StyledDtDiv = _styledComponents.default.div`
53
56
  `}
54
57
  `;
55
58
  exports.StyledDtDiv = StyledDtDiv;
59
+ StyledDtDiv.defaultProps = {
60
+ theme: _themes.baseTheme
61
+ };
56
62
  const StyledDdDiv = _styledComponents.default.div`
57
63
  ${({
58
64
  ddTextAlign
@@ -63,42 +69,32 @@ const StyledDdDiv = _styledComponents.default.div`
63
69
  exports.StyledDdDiv = StyledDdDiv;
64
70
  const StyledDt = _styledComponents.default.dt`
65
71
  ${_styledSystem.space}
66
- ${({
67
- theme
68
- }) => (0, _styledComponents.css)`
69
- font-size: 14px
70
- font-weight: 700;
71
- color: ${theme.definitionList.dtTextDark};
72
- `}
72
+ font-size: 14px;
73
+ font-weight: 700;
74
+ color: var(--colorsUtilityYin090);
73
75
  `;
74
76
  exports.StyledDt = StyledDt;
75
77
  StyledDt.defaultProps = {
76
78
  theme: _themes.baseTheme
77
79
  };
78
80
  const StyledDd = _styledComponents.default.dd`
79
- ${({
80
- theme
81
- }) => (0, _styledComponents.css)`
82
- font-size: 14px
83
- font-weight: 700;
84
- color: ${theme.definitionList.ddText};
85
- margin-left: 0px;
81
+ font-size: 14px;
82
+ font-weight: 700;
83
+ color: var(--colorsUtilityYin065);
84
+ margin-left: 0px;
86
85
 
87
- ${_button.default} {
88
- padding: 0;
89
- border: none;
90
- }
86
+ ${_button.default} {
87
+ padding: 0;
88
+ border: none;
89
+ }
91
90
 
92
- ${_link.StyledLink} {
93
- a, button {
94
- font-weight: 700px;
95
- text-decoration: none;
96
- }
91
+ ${_link.StyledLink} {
92
+ a,
93
+ button {
94
+ font-weight: 700px;
95
+ text-decoration: none;
97
96
  }
98
- `}
97
+ }
99
98
  ${_styledSystem.space}
100
99
  `;
101
- exports.StyledDd = StyledDd;
102
- StyledDd.defaultProps = {
103
- theme: _themes.baseTheme
104
- };
100
+ exports.StyledDd = StyledDd;
@@ -11,14 +11,10 @@ var _validationIcon = _interopRequireDefault(require("../../__internal__/validat
11
11
 
12
12
  var _inputIconToggle = _interopRequireDefault(require("../../__internal__/input-icon-toggle/input-icon-toggle.style"));
13
13
 
14
- var _themes = require("../../style/themes");
15
-
16
14
  var _inputPresentation = _interopRequireDefault(require("../../__internal__/input/input-presentation.style"));
17
15
 
18
16
  var _formField = _interopRequireDefault(require("../../__internal__/form-field/form-field.style"));
19
17
 
20
- var _icon = _interopRequireDefault(require("../icon/icon.style"));
21
-
22
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
19
 
24
20
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -39,13 +35,9 @@ const StyledNumeralDate = _styledComponents.default.div`
39
35
  }
40
36
  `;
41
37
  exports.StyledNumeralDate = StyledNumeralDate;
42
- StyledNumeralDate.defaultProps = {
43
- theme: _themes.baseTheme
44
- };
45
38
  const StyledDateField = _styledComponents.default.div`
46
39
  ${({
47
40
  isYearInput,
48
- theme,
49
41
  isEnd,
50
42
  hasValidationIcon,
51
43
  isMiddle
@@ -61,14 +53,6 @@ const StyledDateField = _styledComponents.default.div`
61
53
  margin-left: -1px;
62
54
  `}
63
55
 
64
- ${_icon.default} {
65
- display: flex;
66
- color: ${theme.numeralDate.error};
67
- width: 16px;
68
- height: 16px;
69
- cursor: pointer;
70
- }
71
-
72
56
  ${_inputIconToggle.default} {
73
57
  width: 32px;
74
58
  z-index: 999;
@@ -80,7 +64,4 @@ const StyledDateField = _styledComponents.default.div`
80
64
  `;
81
65
  }}
82
66
  `;
83
- exports.StyledDateField = StyledDateField;
84
- StyledDateField.defaultProps = {
85
- theme: _themes.baseTheme
86
- };
67
+ exports.StyledDateField = StyledDateField;
@@ -7,8 +7,6 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _themes = require("../../../../style/themes");
11
-
12
10
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
13
11
 
14
12
  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; }
@@ -18,7 +16,6 @@ const StyledSelectText = _styledComponents.default.span`
18
16
  disabled,
19
17
  hasPlaceholder,
20
18
  readOnly,
21
- theme,
22
19
  transparent
23
20
  }) => (0, _styledComponents.css)`
24
21
  align-items: center;
@@ -40,7 +37,7 @@ const StyledSelectText = _styledComponents.default.span`
40
37
  `}
41
38
 
42
39
  ${hasPlaceholder && (0, _styledComponents.css)`
43
- color: ${theme.text.placeholder};
40
+ color: var(--colorsUtilityYin055);
44
41
  font-weight: normal;
45
42
  user-select: none;
46
43
  `}
@@ -53,13 +50,10 @@ const StyledSelectText = _styledComponents.default.span`
53
50
 
54
51
  ${readOnly && (0, _styledComponents.css)`
55
52
  cursor: default;
56
- color: var(--colorsYin065);
53
+ color: var(--colorsUtilityYin065);
57
54
  text-shadow: none;
58
55
  `}
59
56
  `}
60
57
  `;
61
- StyledSelectText.defaultProps = {
62
- theme: _themes.baseTheme
63
- };
64
58
  var _default = StyledSelectText;
65
59
  exports.default = _default;
@@ -7,15 +7,11 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
- var _themes = require("../../../style/themes");
11
-
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
 
14
12
  const StyledSelectListContainer = _styledComponents.default.div`
15
13
  background-color: white;
16
- box-shadow: ${({
17
- theme
18
- }) => `${theme.shadows.depth1}`};
14
+ box-shadow: var(--boxShadow100);
19
15
  position: absolute;
20
16
  ${({
21
17
  placement
@@ -37,8 +33,5 @@ const StyledSelectListContainer = _styledComponents.default.div`
37
33
  }
38
34
  }
39
35
  `;
40
- StyledSelectListContainer.defaultProps = {
41
- theme: _themes.baseTheme
42
- };
43
36
  var _default = StyledSelectListContainer;
44
37
  exports.default = _default;
@@ -179,11 +179,6 @@ declare function _default(palette: any): {
179
179
  content: {
180
180
  secondaryColor: any;
181
181
  };
182
- definitionList: {
183
- dtTextDark: any;
184
- dtTextLight: any;
185
- ddText: any;
186
- };
187
182
  disabled: {
188
183
  border: any;
189
184
  button: any;
@@ -198,11 +198,6 @@ var _default = palette => {
198
198
  content: {
199
199
  secondaryColor: palette.slateTint(40)
200
200
  },
201
- definitionList: {
202
- dtTextDark: palette.blackOpacity(0.9),
203
- dtTextLight: palette.blackOpacity(0.65),
204
- ddText: palette.blackOpacity(0.65)
205
- },
206
201
  disabled: {
207
202
  border: palette.slateTint(80),
208
203
  button: palette.slateTint(90),
@@ -199,12 +199,6 @@ export interface ThemeObject {
199
199
  secondaryColor: string;
200
200
  };
201
201
 
202
- definitionList: {
203
- dtTextDark: string;
204
- dtTextLight: string;
205
- ddText: string;
206
- };
207
-
208
202
  disabled: {
209
203
  border: string;
210
204
  button: string;
@@ -502,11 +502,6 @@ declare var _default: {
502
502
  content: {
503
503
  secondaryColor: string;
504
504
  };
505
- definitionList: {
506
- dtTextDark: string;
507
- dtTextLight: string;
508
- ddText: string;
509
- };
510
505
  disabled: {
511
506
  border: string;
512
507
  button: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.30.0",
3
+ "version": "104.31.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {