@scania/tegel-lite 1.2.1 → 1.3.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/dist/components.css +1218 -181
- package/dist/global.css +8 -8
- package/dist/scania-variables.css +4 -4
- package/dist/tl-card.css +2 -1
- package/dist/tl-datetime.css +32 -3
- package/dist/tl-divider.css +15 -3
- package/dist/tl-footer.css +2 -0
- package/dist/tl-header.css +1014 -0
- package/dist/tl-tooltip.css +46 -0
- package/package.json +3 -2
package/dist/global.css
CHANGED
|
@@ -1374,6 +1374,8 @@ html {
|
|
|
1374
1374
|
.scania.tds-mode-light,
|
|
1375
1375
|
.scania .tl-mode-light,
|
|
1376
1376
|
.scania.tl-mode-light {
|
|
1377
|
+
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1378
|
+
--component--focus-ring-color-discrete: var(--scania-color-base-white);
|
|
1377
1379
|
--component--focus-ring-radius-none: var(--scania-unit-0);
|
|
1378
1380
|
--component--focus-ring-radius-extra-small: 1;
|
|
1379
1381
|
--component--focus-ring-radius-small: 2;
|
|
@@ -1381,14 +1383,14 @@ html {
|
|
|
1381
1383
|
--component--focus-ring-radius-large: 4;
|
|
1382
1384
|
--component--focus-ring-radius-extra-large: 5;
|
|
1383
1385
|
--component--focus-ring-radius-full: var(--scania-unit-9999);
|
|
1384
|
-
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1385
|
-
--component--focus-ring-color-discrete: var(--scania-color-base-white);
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
1388
|
.traton .tds-mode-light,
|
|
1389
1389
|
.traton.tds-mode-light,
|
|
1390
1390
|
.traton .tl-mode-light,
|
|
1391
1391
|
.traton.tl-mode-light {
|
|
1392
|
+
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1393
|
+
--component--focus-ring-color-discrete: var(--traton-color-base-white);
|
|
1392
1394
|
--component--focus-ring-radius-none: var(--traton-unit-0);
|
|
1393
1395
|
--component--focus-ring-radius-extra-small: 1;
|
|
1394
1396
|
--component--focus-ring-radius-small: 2;
|
|
@@ -1396,8 +1398,6 @@ html {
|
|
|
1396
1398
|
--component--focus-ring-radius-large: 4;
|
|
1397
1399
|
--component--focus-ring-radius-extra-large: 5;
|
|
1398
1400
|
--component--focus-ring-radius-full: var(--traton-unit-9999);
|
|
1399
|
-
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1400
|
-
--component--focus-ring-color-discrete: var(--traton-color-base-white);
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
1403
|
.tds-mode-dark,
|
|
@@ -1405,6 +1405,8 @@ html {
|
|
|
1405
1405
|
.scania.tds-mode-dark,
|
|
1406
1406
|
.scania .tl-mode-dark,
|
|
1407
1407
|
.scania.tl-mode-dark {
|
|
1408
|
+
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1409
|
+
--component--focus-ring-color-discrete: var(--scania-color-base-white);
|
|
1408
1410
|
--component--focus-ring-radius-none: var(--scania-unit-0);
|
|
1409
1411
|
--component--focus-ring-radius-extra-small: 1;
|
|
1410
1412
|
--component--focus-ring-radius-small: 2;
|
|
@@ -1412,14 +1414,14 @@ html {
|
|
|
1412
1414
|
--component--focus-ring-radius-large: 4;
|
|
1413
1415
|
--component--focus-ring-radius-extra-large: 5;
|
|
1414
1416
|
--component--focus-ring-radius-full: var(--scania-unit-9999);
|
|
1415
|
-
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1416
|
-
--component--focus-ring-color-discrete: var(--scania-color-base-white);
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
.traton .tds-mode-dark,
|
|
1420
1420
|
.traton.tds-mode-dark,
|
|
1421
1421
|
.traton .tl-mode-dark,
|
|
1422
1422
|
.traton.tl-mode-dark {
|
|
1423
|
+
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1424
|
+
--component--focus-ring-color-discrete: var(--traton-color-base-white);
|
|
1423
1425
|
--component--focus-ring-radius-none: var(--traton-unit-0);
|
|
1424
1426
|
--component--focus-ring-radius-extra-small: 1;
|
|
1425
1427
|
--component--focus-ring-radius-small: 2;
|
|
@@ -1427,8 +1429,6 @@ html {
|
|
|
1427
1429
|
--component--focus-ring-radius-large: 4;
|
|
1428
1430
|
--component--focus-ring-radius-extra-large: 5;
|
|
1429
1431
|
--component--focus-ring-radius-full: var(--traton-unit-9999);
|
|
1430
|
-
--component--focus-ring-color-strong: var(--color-system-info-default);
|
|
1431
|
-
--component--focus-ring-color-discrete: var(--traton-color-base-white);
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
body {
|
|
@@ -155,8 +155,6 @@
|
|
|
155
155
|
--color-border-inverse-disabled: var(--scania-color-transparent-inverse-500);
|
|
156
156
|
--color-border-inverse-discrete: var(--scania-color-transparent-inverse-600);
|
|
157
157
|
--color-border-inverse-none: var(--scania-color-transparent-invisible-dark);
|
|
158
|
-
--color-icon-base: var(--traton-color-base-black);
|
|
159
|
-
--color-icon-brand: var(--traton-color-blue-950);
|
|
160
158
|
--color-icon-defined: var(--scania-color-transparent-650);
|
|
161
159
|
--color-icon-soft: var(--scania-color-transparent-500);
|
|
162
160
|
--color-icon-subtle: var(--scania-color-transparent-350);
|
|
@@ -202,6 +200,8 @@
|
|
|
202
200
|
--color-text-inverse-discrete: var(--scania-color-transparent-inverse-200);
|
|
203
201
|
--color-border-strong: var(--scania-color-transparent-950);
|
|
204
202
|
--color-border-inverse-strong: var(--scania-color-transparent-inverse-50);
|
|
203
|
+
--color-icon-base: var(--scania-color-base-black);
|
|
204
|
+
--color-icon-brand: var(--scania-color-base-black);
|
|
205
205
|
--color-icon-strong: var(--scania-color-transparent-950);
|
|
206
206
|
--color-icon-inverse-strong: var(--scania-color-transparent-inverse-50);
|
|
207
207
|
--color-text-base: var(--scania-color-base-black);
|
|
@@ -244,8 +244,6 @@
|
|
|
244
244
|
--color-border-inverse-disabled: var(--scania-color-transparent-250);
|
|
245
245
|
--color-border-inverse-discrete: var(--scania-color-transparent-200);
|
|
246
246
|
--color-border-inverse-none: var(--scania-color-transparent-invisible-light);
|
|
247
|
-
--color-icon-base: var(--traton-color-base-white);
|
|
248
|
-
--color-icon-brand: var(--traton-color-base-white);
|
|
249
247
|
--color-icon-defined: var(--scania-color-transparent-inverse-200);
|
|
250
248
|
--color-icon-soft: var(--scania-color-transparent-inverse-300);
|
|
251
249
|
--color-icon-subtle: var(--scania-color-transparent-inverse-400);
|
|
@@ -291,6 +289,8 @@
|
|
|
291
289
|
--color-text-inverse-discrete: var(--scania-color-transparent-200);
|
|
292
290
|
--color-border-strong: var(--scania-color-transparent-inverse-50);
|
|
293
291
|
--color-border-inverse-strong: var(--scania-color-transparent-950);
|
|
292
|
+
--color-icon-base: var(--scania-color-base-white);
|
|
293
|
+
--color-icon-brand: var(--scania-color-base-white);
|
|
294
294
|
--color-icon-strong: var(--scania-color-transparent-inverse-50);
|
|
295
295
|
--color-icon-inverse-strong: var(--scania-color-transparent-950);
|
|
296
296
|
--color-text-base: var(--scania-color-base-white);
|
package/dist/tl-card.css
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
--card-headline: var(--component-card-text-title-default);
|
|
68
68
|
--card-sub-headline: var(--component-card-text-subtitle-default);
|
|
69
69
|
--card-body-color: var(--component-card-text-body-default);
|
|
70
|
-
--card-divider: var(--color-border-
|
|
70
|
+
--card-divider: var(--color-border-discrete);
|
|
71
71
|
--card-icon-color: var(--component-card-text-title-default);
|
|
72
72
|
--card-body-padding: 0 16px;
|
|
73
73
|
--card-header-padding: 16px;
|
|
@@ -190,6 +190,7 @@
|
|
|
190
190
|
inline-size: 100%;
|
|
191
191
|
block-size: auto;
|
|
192
192
|
display: block;
|
|
193
|
+
background-color: var(--color-background-layer-03);
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
.tl-card__divider {
|
package/dist/tl-datetime.css
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
--datetime-background: var(--datetime-background-primary);
|
|
6
6
|
--datetime-text: var(--color-foreground-text-strong);
|
|
7
7
|
--datetime-icon: var(--color-foreground-icon-strong);
|
|
8
|
-
--datetime-placeholder: var(--color-
|
|
8
|
+
--datetime-placeholder: var(--color-text-subtle);
|
|
9
9
|
--datetime-background-disabled-primary: var(--color-background-layer-01);
|
|
10
10
|
--datetime-background-disabled-secondary: var(--color-background-layer-02);
|
|
11
11
|
--datetime-background-disabled: var(--datetime-background-disabled-primary);
|
|
12
12
|
--datetime-text-disabled: var(--color-foreground-text-disabled);
|
|
13
|
-
--datetime-placeholder-disabled: var(--color-
|
|
13
|
+
--datetime-placeholder-disabled: var(--color-text-disabled);
|
|
14
14
|
--datetime-label-disabled: var(--color-foreground-text-disabled);
|
|
15
15
|
--datetime-icon-disabled: var(--color-foreground-text-disabled);
|
|
16
16
|
--datetime-label: var(--color-foreground-text-strong);
|
|
17
17
|
--datetime-label-inside: var(--color-foreground-text-strong);
|
|
18
|
-
--datetime-placeholder-focus: var(--
|
|
18
|
+
--datetime-placeholder-focus: var(--color-text-subtle);
|
|
19
19
|
--datetime-highlight-bar: var(--color-foreground-border-accent-focus);
|
|
20
20
|
--datetime-helper: var(--color-foreground-text-defined);
|
|
21
21
|
--datetime-helper-error: var(--color-system-danger-default);
|
|
@@ -252,6 +252,35 @@
|
|
|
252
252
|
.tl-datetime__input:focus::placeholder {
|
|
253
253
|
color: var(--datetime-placeholder-focus);
|
|
254
254
|
}
|
|
255
|
+
.tl-datetime__input {
|
|
256
|
+
/*
|
|
257
|
+
* Empty/default state: when no date is picked Safari renders the placeholder
|
|
258
|
+
* (e.g. "yyyy/mm/dd") through the ::-webkit-datetime-edit container and its
|
|
259
|
+
* -fields-wrapper. Safari ignores `color` on these pseudos and paints the
|
|
260
|
+
* text via `-webkit-text-fill-color`; with neither set it falls back to the
|
|
261
|
+
* UA accent (aqua) — most visible on TRATON, where no theme rule overrides
|
|
262
|
+
* it. Set both `color` (other engines) and `-webkit-text-fill-color` (Safari)
|
|
263
|
+
* to the placeholder colour. We only target the container + fields-wrapper,
|
|
264
|
+
* not the individual sub-fields: when a value IS present Safari paints the
|
|
265
|
+
* digits in the sub-field pseudos (e.g. ::-webkit-datetime-edit-year-field),
|
|
266
|
+
* which keep `--datetime-text` from the rules below — so a filled value is
|
|
267
|
+
* not dimmed in either state. We cover both `:not(:focus)` and `:focus`:
|
|
268
|
+
* Safari keeps painting the empty placeholder through the container while the
|
|
269
|
+
* input is focused, so without the focused branch it falls back to the aqua
|
|
270
|
+
* UA accent again on focus. The focused branch uses the focus placeholder
|
|
271
|
+
* token to mirror the `::placeholder` rule above.
|
|
272
|
+
*/
|
|
273
|
+
}
|
|
274
|
+
@supports selector(input::-webkit-datetime-edit) {
|
|
275
|
+
.tl-datetime__input:not(:focus)::-webkit-datetime-edit, .tl-datetime__input:not(:focus)::-webkit-datetime-edit-fields-wrapper {
|
|
276
|
+
color: var(--datetime-placeholder);
|
|
277
|
+
-webkit-text-fill-color: var(--datetime-placeholder);
|
|
278
|
+
}
|
|
279
|
+
.tl-datetime__input:focus::-webkit-datetime-edit, .tl-datetime__input:focus::-webkit-datetime-edit-fields-wrapper {
|
|
280
|
+
color: var(--datetime-placeholder-focus);
|
|
281
|
+
-webkit-text-fill-color: var(--datetime-placeholder-focus);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
255
284
|
.tl-datetime__input {
|
|
256
285
|
/* WebKit datetime fields */
|
|
257
286
|
}
|
package/dist/tl-divider.css
CHANGED
|
@@ -71,12 +71,24 @@
|
|
|
71
71
|
.tl-divider {
|
|
72
72
|
background-color: var(--divider-background);
|
|
73
73
|
}
|
|
74
|
-
.tl-divider--expressive {
|
|
75
|
-
background-color: var(--divider-background-strong);
|
|
76
|
-
}
|
|
77
74
|
.tl-divider--discrete {
|
|
78
75
|
background-color: var(--divider-background-discrete);
|
|
79
76
|
}
|
|
77
|
+
.tl-divider--subtle {
|
|
78
|
+
background-color: var(--divider-background-subtle);
|
|
79
|
+
}
|
|
80
|
+
.tl-divider--soft {
|
|
81
|
+
background-color: var(--divider-background-soft);
|
|
82
|
+
}
|
|
83
|
+
.tl-divider--defined {
|
|
84
|
+
background-color: var(--divider-background-defined);
|
|
85
|
+
}
|
|
86
|
+
.tl-divider--strong {
|
|
87
|
+
background-color: var(--divider-background-strong);
|
|
88
|
+
}
|
|
89
|
+
.tl-divider--expressive {
|
|
90
|
+
background-color: var(--divider-background-expressive);
|
|
91
|
+
}
|
|
80
92
|
.tl-divider--horizontal {
|
|
81
93
|
width: 100%;
|
|
82
94
|
height: 1px;
|
package/dist/tl-footer.css
CHANGED
|
@@ -103,11 +103,13 @@
|
|
|
103
103
|
--component-footer-logotype-cdn: var(--tds-background-image-scania-wordmark-white-svg);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
.traton .tds-mode-dark .tl-footer,
|
|
106
107
|
.traton .tl-mode-dark .tl-footer {
|
|
107
108
|
--component-footer-logotype-local: var(--traton-logotype-white-svg-local);
|
|
108
109
|
--component-footer-logotype-cdn: var(--traton-logotype-white-svg);
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
.traton .tds-mode-light .tl-footer,
|
|
111
113
|
.traton .tl-mode-light .tl-footer {
|
|
112
114
|
--component-footer-logotype-local: var(--traton-logotype-black-svg-local);
|
|
113
115
|
--component-footer-logotype-cdn: var(--traton-logotype-black-svg);
|