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.
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/lib/components/definition-list/definition-list.style.js +26 -30
- package/lib/components/numeral-date/numeral-date.style.js +1 -20
- package/lib/components/select/__internal__/select-text/select-text.style.js +2 -8
- package/lib/components/select/select-list/select-list-container.style.js +1 -8
- package/lib/style/themes/base/base-theme.config.d.ts +0 -5
- package/lib/style/themes/base/base-theme.config.js +0 -5
- package/lib/style/themes/base/index.d.ts +0 -6
- package/lib/style/themes/sage/index.d.ts +0 -5
- package/package.json +1 -1
package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js
CHANGED
|
@@ -41,7 +41,7 @@ const StyledNavigationItem = _styledComponents.default.li`
|
|
|
41
41
|
${({
|
|
42
42
|
isSelected
|
|
43
43
|
}) => isSelected && (0, _styledComponents.css)`
|
|
44
|
-
background-color: var(--
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
${_button.default} {
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
91
90
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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:
|
|
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(--
|
|
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;
|
|
@@ -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),
|