carbon-react 104.21.1 → 104.22.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,10 +9,6 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
9
|
|
|
10
10
|
var _heading = require("../../components/heading/heading.style");
|
|
11
11
|
|
|
12
|
-
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
12
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
17
13
|
|
|
18
14
|
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; }
|
|
@@ -26,9 +22,7 @@ const StyledFullScreenHeading = _styledComponents.default.div`
|
|
|
26
22
|
${({
|
|
27
23
|
hasContent
|
|
28
24
|
}) => hasContent && (0, _styledComponents.css)`
|
|
29
|
-
border-bottom: 1px solid
|
|
30
|
-
theme
|
|
31
|
-
}) => theme.disabled.border};
|
|
25
|
+
border-bottom: 1px solid var(--colorsUtilityMajor050);
|
|
32
26
|
`}
|
|
33
27
|
display: flex;
|
|
34
28
|
justify-content: space-between;
|
|
@@ -56,8 +50,5 @@ const StyledFullScreenHeading = _styledComponents.default.div`
|
|
|
56
50
|
}
|
|
57
51
|
}
|
|
58
52
|
`;
|
|
59
|
-
StyledFullScreenHeading.defaultProps = {
|
|
60
|
-
theme: _base.default
|
|
61
|
-
};
|
|
62
53
|
var _default = StyledFullScreenHeading;
|
|
63
54
|
exports.default = _default;
|
|
@@ -78,9 +78,7 @@ const StyledHeadingBackButton = (0, _styledComponents.default)(_link.default)`
|
|
|
78
78
|
|
|
79
79
|
&:focus {
|
|
80
80
|
background-color: transparent;
|
|
81
|
-
outline: 3px solid
|
|
82
|
-
theme
|
|
83
|
-
}) => theme.colors.focus};
|
|
81
|
+
outline: 3px solid var(--colorsSemanticFocus500);
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
${_icon2.default} {
|
|
@@ -90,9 +88,6 @@ const StyledHeadingBackButton = (0, _styledComponents.default)(_link.default)`
|
|
|
90
88
|
}
|
|
91
89
|
`;
|
|
92
90
|
exports.StyledHeadingBackButton = StyledHeadingBackButton;
|
|
93
|
-
StyledHeadingBackButton.defaultProps = {
|
|
94
|
-
theme: _base.default
|
|
95
|
-
};
|
|
96
91
|
const StyledHeadingTitle = (0, _styledComponents.default)(_typography.default)`
|
|
97
92
|
line-height: 32px;
|
|
98
93
|
${({
|
|
@@ -127,9 +122,7 @@ const StyledSubHeader = _styledComponents.default.div`
|
|
|
127
122
|
`;
|
|
128
123
|
exports.StyledSubHeader = StyledSubHeader;
|
|
129
124
|
const StyledHeadingIcon = (0, _styledComponents.default)(_icon.default)`
|
|
130
|
-
color:
|
|
131
|
-
theme
|
|
132
|
-
}) => theme.colors.border};
|
|
125
|
+
color: var(--colorsActionMinor500);
|
|
133
126
|
height: 30px;
|
|
134
127
|
|
|
135
128
|
&:before,
|
|
@@ -138,19 +131,12 @@ const StyledHeadingIcon = (0, _styledComponents.default)(_icon.default)`
|
|
|
138
131
|
}
|
|
139
132
|
|
|
140
133
|
&:hover {
|
|
141
|
-
color:
|
|
142
|
-
theme
|
|
143
|
-
}) => theme.icon.focus};
|
|
134
|
+
color: var(--colorsActionMinor600);
|
|
144
135
|
}
|
|
145
136
|
`;
|
|
146
137
|
exports.StyledHeadingIcon = StyledHeadingIcon;
|
|
147
|
-
StyledHeadingIcon.defaultProps = {
|
|
148
|
-
theme: _base.default
|
|
149
|
-
};
|
|
150
138
|
const StyledSeparator = _styledComponents.default.hr`
|
|
151
|
-
border-top: 2px solid
|
|
152
|
-
theme
|
|
153
|
-
}) => theme.palette.slateTint(80)};
|
|
139
|
+
border-top: 2px solid var(--colorsUtilityMajor100);
|
|
154
140
|
margin: 10px 0 8px;
|
|
155
141
|
text-align: left;
|
|
156
142
|
width: 50px;
|
|
@@ -160,9 +146,6 @@ const StyledDivider = (0, _styledComponents.default)(_hr.default)`
|
|
|
160
146
|
margin: 15px 0 20px;
|
|
161
147
|
`;
|
|
162
148
|
exports.StyledDivider = StyledDivider;
|
|
163
|
-
StyledSeparator.defaultProps = {
|
|
164
|
-
theme: _base.default
|
|
165
|
-
};
|
|
166
149
|
const StyledHeaderHelp = (0, _styledComponents.default)(_help.default)`
|
|
167
150
|
display: inline-block;
|
|
168
151
|
margin-left: -6px;
|