carbon-react 104.19.2 → 104.20.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/date/__internal__/date-picker/day-picker.style.js +30 -64
- package/lib/components/date/__internal__/navbar/button.style.js +8 -13
- package/lib/components/date/__internal__/navbar/navbar.style.js +1 -6
- package/lib/components/date/__internal__/weekday/weekday.style.js +5 -9
- package/package.json +1 -1
|
@@ -200,20 +200,11 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
200
200
|
z-index: 1000;
|
|
201
201
|
top: calc(100% + 1px);
|
|
202
202
|
left: 0;
|
|
203
|
-
background-color:
|
|
204
|
-
|
|
205
|
-
}) => theme.colors.white};
|
|
206
|
-
box-shadow: ${({
|
|
207
|
-
theme
|
|
208
|
-
}) => theme.shadows.depth1};
|
|
209
|
-
color: ${({
|
|
210
|
-
theme
|
|
211
|
-
}) => theme.text.color};
|
|
203
|
+
background-color: var(--colorsUtilityYang100);
|
|
204
|
+
box-shadow: var(--boxShadow100);
|
|
212
205
|
display: block;
|
|
213
|
-
font-size: 14px;
|
|
214
|
-
font-weight: 800;
|
|
215
206
|
overflow: hidden;
|
|
216
|
-
padding:
|
|
207
|
+
padding: var(--spacing300);
|
|
217
208
|
text-align: center;
|
|
218
209
|
user-select: none;
|
|
219
210
|
}
|
|
@@ -234,9 +225,7 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
234
225
|
.DayPicker-wrapper {
|
|
235
226
|
padding: 0;
|
|
236
227
|
&:focus {
|
|
237
|
-
outline:
|
|
238
|
-
theme
|
|
239
|
-
}) => `3px solid ${theme.colors.focus}`};
|
|
228
|
+
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
240
229
|
}
|
|
241
230
|
}
|
|
242
231
|
|
|
@@ -250,8 +239,10 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
250
239
|
}
|
|
251
240
|
|
|
252
241
|
.DayPicker-Caption {
|
|
253
|
-
|
|
254
|
-
height:
|
|
242
|
+
color: var(--colorsActionMajorYin090);
|
|
243
|
+
line-height: var(--sizing500);
|
|
244
|
+
height: var(--sizing500);
|
|
245
|
+
//font: var(--typographyDatePickerCalendarMonthM); to be implemented
|
|
255
246
|
font-size: 16px;
|
|
256
247
|
font-weight: 800;
|
|
257
248
|
|
|
@@ -262,28 +253,25 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
262
253
|
}
|
|
263
254
|
|
|
264
255
|
.DayPicker-Day {
|
|
265
|
-
min-width:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
256
|
+
min-width: var(--sizing500);
|
|
257
|
+
height: 36px; //var(--sizing450); to be implemented
|
|
258
|
+
padding: 0;
|
|
259
|
+
background-color: var(--colorsUtilityYang100);
|
|
269
260
|
cursor: pointer;
|
|
270
261
|
border: none;
|
|
271
|
-
font-
|
|
272
|
-
|
|
262
|
+
//font-family: var(--fontFamiliesDefault); token value to be updated
|
|
263
|
+
//font: var(--typographyDatePickerCalendarDateM); to be implemented
|
|
264
|
+
font-weight: var(--fontWeights700);
|
|
265
|
+
font-size: var(--fontSizes100);
|
|
266
|
+
line-height: var(--lineHeights500);
|
|
273
267
|
|
|
274
268
|
&:hover {
|
|
275
|
-
background-color:
|
|
276
|
-
|
|
277
|
-
}) => theme.disabled.input};
|
|
278
|
-
color: ${({
|
|
279
|
-
theme
|
|
280
|
-
}) => theme.text.color};
|
|
269
|
+
background-color: var(--colorsActionMinor050);
|
|
270
|
+
color: var(--colorsActionMajorYin090);
|
|
281
271
|
}
|
|
282
272
|
|
|
283
273
|
&:focus {
|
|
284
|
-
outline:
|
|
285
|
-
theme
|
|
286
|
-
}) => `3px solid ${theme.colors.focus}`};
|
|
274
|
+
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
287
275
|
}
|
|
288
276
|
|
|
289
277
|
+ * {
|
|
@@ -297,52 +285,30 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
297
285
|
|
|
298
286
|
.DayPicker-Day--today,
|
|
299
287
|
.DayPicker-Day--today.DayPicker-Day--outside {
|
|
300
|
-
|
|
301
|
-
color:
|
|
302
|
-
theme
|
|
303
|
-
}) => theme.text.color};
|
|
304
|
-
background-color: ${({
|
|
305
|
-
theme
|
|
306
|
-
}) => theme.disabled.border};
|
|
288
|
+
color: var(--colorsActionMajorYin090);
|
|
289
|
+
background-color: var(--colorsActionMinor200);
|
|
307
290
|
}
|
|
308
291
|
|
|
309
292
|
.DayPicker-Day--outside {
|
|
310
|
-
color:
|
|
311
|
-
|
|
312
|
-
}) => theme.disabled.disabled};
|
|
313
|
-
background-color: ${({
|
|
314
|
-
theme
|
|
315
|
-
}) => theme.colors.white};
|
|
293
|
+
color: var(--colorsActionMajorYin055);
|
|
294
|
+
background-color: var(--colorsUtilityYang100);
|
|
316
295
|
}
|
|
317
296
|
|
|
318
297
|
.DayPicker-Day--disabled,
|
|
319
298
|
.DayPicker-Day--disabled:hover {
|
|
320
|
-
color:
|
|
321
|
-
|
|
322
|
-
}) => theme.disabled.disabled};
|
|
323
|
-
background-color: ${({
|
|
324
|
-
theme
|
|
325
|
-
}) => theme.colors.white};
|
|
299
|
+
color: var(colorsActionMajorYin030);
|
|
300
|
+
background-color: var(--colorsUtilityYang100);
|
|
326
301
|
cursor: default;
|
|
327
302
|
}
|
|
328
303
|
|
|
329
304
|
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
|
|
330
|
-
background-color:
|
|
331
|
-
|
|
332
|
-
}) => theme.colors.primary};
|
|
333
|
-
color: ${({
|
|
334
|
-
theme
|
|
335
|
-
}) => theme.colors.white};
|
|
336
|
-
font-weight: 800;
|
|
305
|
+
background-color: var(--colorsActionMajor500);
|
|
306
|
+
color: var(--colorsUtilityYang100);
|
|
337
307
|
}
|
|
338
308
|
|
|
339
309
|
.DayPicker-Day--selected.DayPicker-Day--disabled:not(.DayPicker-Day--outside) {
|
|
340
|
-
background-color:
|
|
341
|
-
|
|
342
|
-
}) => theme.colors.primary};
|
|
343
|
-
color: ${({
|
|
344
|
-
theme
|
|
345
|
-
}) => theme.colors.white};
|
|
310
|
+
background-color: var(--colorsActionMajor500);
|
|
311
|
+
color: var(--colorsUtilityYang100);
|
|
346
312
|
}
|
|
347
313
|
`;
|
|
348
314
|
StyledDayPicker.defaultProps = {
|
|
@@ -7,30 +7,25 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _base = _interopRequireDefault(require("../../../../style/themes/base"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
const StyledButton = _styledComponents.default.button.attrs({
|
|
15
13
|
type: "button"
|
|
16
14
|
})`
|
|
15
|
+
justify-content: center;
|
|
17
16
|
align-items: center;
|
|
18
|
-
display:
|
|
19
|
-
border:
|
|
17
|
+
display: flex;
|
|
18
|
+
border: var(--borderWidth200) solid var(--colorsActionMinorTransparent);
|
|
20
19
|
background: none;
|
|
21
20
|
box-shadow: none;
|
|
22
21
|
cursor: pointer;
|
|
23
|
-
height:
|
|
24
|
-
width:
|
|
25
|
-
padding:
|
|
22
|
+
height: var(--sizing500);
|
|
23
|
+
width: var(--sizing500);
|
|
24
|
+
padding: var(--spacing150);
|
|
25
|
+
box-sizing: border-box;
|
|
26
26
|
&:focus {
|
|
27
|
-
outline:
|
|
28
|
-
theme
|
|
29
|
-
}) => `3px solid ${theme.colors.focus}`};
|
|
27
|
+
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
30
28
|
}
|
|
31
29
|
`;
|
|
32
|
-
StyledButton.defaultProps = {
|
|
33
|
-
theme: _base.default
|
|
34
|
-
};
|
|
35
30
|
var _default = StyledButton;
|
|
36
31
|
exports.default = _default;
|
|
@@ -7,8 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _base = _interopRequireDefault(require("../../../../style/themes/base"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
const StyledNavbar = _styledComponents.default.div`
|
|
@@ -17,11 +15,8 @@ const StyledNavbar = _styledComponents.default.div`
|
|
|
17
15
|
justify-content: space-between;
|
|
18
16
|
padding: 0;
|
|
19
17
|
top: 0;
|
|
20
|
-
height:
|
|
18
|
+
height: var(--sizing500);
|
|
21
19
|
}
|
|
22
20
|
`;
|
|
23
|
-
StyledNavbar.defaultProps = {
|
|
24
|
-
theme: _base.default
|
|
25
|
-
};
|
|
26
21
|
var _default = StyledNavbar;
|
|
27
22
|
exports.default = _default;
|
|
@@ -7,27 +7,23 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _base = _interopRequireDefault(require("../../../../style/themes/base"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
const StyledWeekday = _styledComponents.default.div`
|
|
15
13
|
&,
|
|
16
14
|
&.DayPicker-Weekday {
|
|
17
15
|
border: none;
|
|
18
|
-
|
|
16
|
+
height: var(--sizing500);
|
|
17
|
+
min-width: var(--sizing500);
|
|
19
18
|
font-weight: 800;
|
|
20
|
-
color:
|
|
21
|
-
theme
|
|
22
|
-
}) => theme.colors.border};
|
|
19
|
+
color: var(--colorsActionMinor400);
|
|
23
20
|
text-transform: uppercase;
|
|
24
21
|
font-size: 12px;
|
|
22
|
+
//font: var(--typographyDatePickerCalendarDayM) to be implemented
|
|
25
23
|
text-align: center;
|
|
26
24
|
padding: 20px 0 5px;
|
|
25
|
+
box-sizing: border-box;
|
|
27
26
|
}
|
|
28
27
|
`;
|
|
29
|
-
StyledWeekday.defaultProps = {
|
|
30
|
-
theme: _base.default
|
|
31
|
-
};
|
|
32
28
|
var _default = StyledWeekday;
|
|
33
29
|
exports.default = _default;
|