carbon-react 104.4.0 → 104.5.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.
|
@@ -13,8 +13,6 @@ var _fieldset = _interopRequireDefault(require("../fieldset"));
|
|
|
13
13
|
|
|
14
14
|
var _input = require("../../__internal__/input");
|
|
15
15
|
|
|
16
|
-
var _tint = _interopRequireDefault(require("../../style/utils/tint"));
|
|
17
|
-
|
|
18
16
|
var _fieldset2 = require("../fieldset/fieldset.style");
|
|
19
17
|
|
|
20
18
|
var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
@@ -33,6 +31,7 @@ const StyledTitle = _styledComponents.default.h3`
|
|
|
33
31
|
margin: 0;
|
|
34
32
|
margin-right: 16px;
|
|
35
33
|
margin-bottom: 8px;
|
|
34
|
+
color: var(--colorsActionMinorYin090);
|
|
36
35
|
`;
|
|
37
36
|
exports.StyledTitle = StyledTitle;
|
|
38
37
|
const StyledSubtitle = _styledComponents.default.h4`
|
|
@@ -41,6 +40,7 @@ const StyledSubtitle = _styledComponents.default.h4`
|
|
|
41
40
|
margin: 0;
|
|
42
41
|
margin-right: 16px;
|
|
43
42
|
margin-bottom: 8px;
|
|
43
|
+
color: var(--colorsActionMinorYin090);
|
|
44
44
|
`;
|
|
45
45
|
exports.StyledSubtitle = StyledSubtitle;
|
|
46
46
|
const StyledAdornment = _styledComponents.default.div`
|
|
@@ -51,36 +51,28 @@ const StyledAdornment = _styledComponents.default.div`
|
|
|
51
51
|
`;
|
|
52
52
|
exports.StyledAdornment = StyledAdornment;
|
|
53
53
|
const StyledDescription = _styledComponents.default.p`
|
|
54
|
-
color:
|
|
55
|
-
theme
|
|
56
|
-
}) => theme.tileSelect.descriptionColor};
|
|
54
|
+
color: var(--colorsActionMinorYin055);
|
|
57
55
|
font-size: 14px;
|
|
58
56
|
margin: 0;
|
|
59
57
|
`;
|
|
60
58
|
exports.StyledDescription = StyledDescription;
|
|
61
59
|
const StyledTileSelect = _styledComponents.default.div`
|
|
62
|
-
background
|
|
63
|
-
theme
|
|
64
|
-
}) => theme.colors.white};
|
|
60
|
+
background: var(--colorsActionMinorYang100);
|
|
65
61
|
padding: 24px;
|
|
66
62
|
${({
|
|
67
|
-
checked
|
|
68
|
-
theme
|
|
63
|
+
checked
|
|
69
64
|
}) => checked && (0, _styledComponents.css)`
|
|
70
|
-
background:
|
|
65
|
+
background: var(--colorsActionMajor025);
|
|
71
66
|
`}
|
|
72
67
|
|
|
73
68
|
${({
|
|
74
|
-
disabled
|
|
75
|
-
theme
|
|
69
|
+
disabled
|
|
76
70
|
}) => disabled && (0, _styledComponents.css)`
|
|
77
|
-
background:
|
|
71
|
+
background: var(--colorsActionMinorYang100);
|
|
78
72
|
${StyledTitle}, ${StyledSubtitle}, ${StyledDescription} {
|
|
79
|
-
color:
|
|
73
|
+
color: var(--colorsActionMinorYin030);
|
|
80
74
|
}
|
|
81
75
|
${StyledAdornment} * {
|
|
82
|
-
color: ${theme.colors.black};
|
|
83
|
-
fill: ${theme.colors.black};
|
|
84
76
|
opacity: 0.3;
|
|
85
77
|
}
|
|
86
78
|
`}
|
|
@@ -89,18 +81,17 @@ exports.StyledTileSelect = StyledTileSelect;
|
|
|
89
81
|
const StyledFocusWrapper = _styledComponents.default.div`
|
|
90
82
|
${({
|
|
91
83
|
checked,
|
|
92
|
-
theme,
|
|
93
84
|
hasFocus
|
|
94
85
|
}) => (0, _styledComponents.css)`
|
|
95
86
|
position: relative;
|
|
96
|
-
border: 1px solid
|
|
87
|
+
border: 1px solid var(--colorsActionMinor250);
|
|
97
88
|
${checked && (0, _styledComponents.css)`
|
|
98
|
-
border-color:
|
|
89
|
+
border-color: var(--colorsActionMajor500);
|
|
99
90
|
z-index: 10;
|
|
100
91
|
`}
|
|
101
92
|
|
|
102
93
|
${hasFocus && (0, _styledComponents.css)`
|
|
103
|
-
outline: 3px solid
|
|
94
|
+
outline: 3px solid var(--colorsSemanticFocus500);
|
|
104
95
|
z-index: 15;
|
|
105
96
|
`}
|
|
106
97
|
`}
|
|
@@ -116,11 +107,10 @@ const StyledTileSelectContainer = _styledComponents.default.div`
|
|
|
116
107
|
}
|
|
117
108
|
${({
|
|
118
109
|
checked,
|
|
119
|
-
disabled
|
|
120
|
-
theme
|
|
110
|
+
disabled
|
|
121
111
|
}) => !checked && !disabled && (0, _styledComponents.css)`
|
|
122
112
|
&:hover ${StyledTileSelect} {
|
|
123
|
-
background:
|
|
113
|
+
background: var(--colorsActionMinor050);
|
|
124
114
|
}
|
|
125
115
|
`}
|
|
126
116
|
`;
|
|
@@ -171,8 +161,7 @@ const StyledTitleContainer = _styledComponents.default.div`
|
|
|
171
161
|
exports.StyledTitleContainer = StyledTitleContainer;
|
|
172
162
|
const StyledDeselectWrapper = _styledComponents.default.div`
|
|
173
163
|
${({
|
|
174
|
-
hasActionAdornment
|
|
175
|
-
theme
|
|
164
|
+
hasActionAdornment
|
|
176
165
|
}) => (0, _styledComponents.css)`
|
|
177
166
|
z-index: 200;
|
|
178
167
|
position: relative;
|
|
@@ -181,10 +170,10 @@ const StyledDeselectWrapper = _styledComponents.default.div`
|
|
|
181
170
|
height: fit-content;
|
|
182
171
|
|
|
183
172
|
${hasActionAdornment && `
|
|
184
|
-
margin-right:
|
|
173
|
+
margin-right: var(--sizing200);
|
|
185
174
|
display: flex;
|
|
186
175
|
align-items: baseline;
|
|
187
|
-
min-height:
|
|
176
|
+
min-height: var(--sizing400);
|
|
188
177
|
|
|
189
178
|
${_icon.default} {
|
|
190
179
|
top: 2px;
|
|
@@ -214,9 +203,7 @@ const StyledTileSelectFieldset = (0, _styledComponents.default)(_fieldset.defaul
|
|
|
214
203
|
`;
|
|
215
204
|
exports.StyledTileSelectFieldset = StyledTileSelectFieldset;
|
|
216
205
|
const StyledGroupDescription = _styledComponents.default.p`
|
|
217
|
-
color:
|
|
218
|
-
theme
|
|
219
|
-
}) => theme.tileSelect.descriptionColor};
|
|
206
|
+
color: var(--colorsActionMinorYin055);
|
|
220
207
|
margin: 0;
|
|
221
208
|
margin-bottom: 16px;
|
|
222
209
|
`;
|
|
@@ -224,24 +211,6 @@ exports.StyledGroupDescription = StyledGroupDescription;
|
|
|
224
211
|
StyledTileSelectFieldset.defaultProps = {
|
|
225
212
|
theme: _themes.baseTheme
|
|
226
213
|
};
|
|
227
|
-
StyledTileSelect.defaultProps = {
|
|
228
|
-
theme: _themes.baseTheme
|
|
229
|
-
};
|
|
230
214
|
StyledTileSelectContainer.defaultProps = {
|
|
231
215
|
theme: _themes.baseTheme
|
|
232
|
-
};
|
|
233
|
-
StyledGroupDescription.defaultProps = {
|
|
234
|
-
theme: _themes.baseTheme
|
|
235
|
-
};
|
|
236
|
-
StyledTileSelectInput.defaultProps = {
|
|
237
|
-
theme: _themes.baseTheme
|
|
238
|
-
};
|
|
239
|
-
StyledDescription.defaultProps = {
|
|
240
|
-
theme: _themes.baseTheme
|
|
241
|
-
};
|
|
242
|
-
StyledDeselectWrapper.defaultProps = {
|
|
243
|
-
theme: _themes.baseTheme
|
|
244
|
-
};
|
|
245
|
-
StyledFocusWrapper.defaultProps = {
|
|
246
|
-
theme: _themes.baseTheme
|
|
247
216
|
};
|