@scania/tegel-lite 1.2.0 → 1.2.2
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 +109 -38
- package/dist/tl-card.css +2 -1
- package/dist/tl-datetime.css +45 -34
- package/dist/tl-divider.css +15 -3
- package/dist/tl-footer.css +2 -0
- package/dist/tl-tooltip.css +46 -0
- package/package.json +2 -2
package/dist/components.css
CHANGED
|
@@ -1581,7 +1581,7 @@
|
|
|
1581
1581
|
--card-headline: var(--component-card-text-title-default);
|
|
1582
1582
|
--card-sub-headline: var(--component-card-text-subtitle-default);
|
|
1583
1583
|
--card-body-color: var(--component-card-text-body-default);
|
|
1584
|
-
--card-divider: var(--color-border-
|
|
1584
|
+
--card-divider: var(--color-border-discrete);
|
|
1585
1585
|
--card-icon-color: var(--component-card-text-title-default);
|
|
1586
1586
|
--card-body-padding: 0 16px;
|
|
1587
1587
|
--card-header-padding: 16px;
|
|
@@ -1703,6 +1703,7 @@
|
|
|
1703
1703
|
inline-size: 100%;
|
|
1704
1704
|
block-size: auto;
|
|
1705
1705
|
display: block;
|
|
1706
|
+
background-color: var(--color-background-layer-03);
|
|
1706
1707
|
}
|
|
1707
1708
|
|
|
1708
1709
|
.tl-card__divider {
|
|
@@ -2049,17 +2050,17 @@
|
|
|
2049
2050
|
--datetime-background: var(--datetime-background-primary);
|
|
2050
2051
|
--datetime-text: var(--color-foreground-text-strong);
|
|
2051
2052
|
--datetime-icon: var(--color-foreground-icon-strong);
|
|
2052
|
-
--datetime-placeholder: var(--color-
|
|
2053
|
+
--datetime-placeholder: var(--color-text-subtle);
|
|
2053
2054
|
--datetime-background-disabled-primary: var(--color-background-layer-01);
|
|
2054
2055
|
--datetime-background-disabled-secondary: var(--color-background-layer-02);
|
|
2055
2056
|
--datetime-background-disabled: var(--datetime-background-disabled-primary);
|
|
2056
2057
|
--datetime-text-disabled: var(--color-foreground-text-disabled);
|
|
2057
|
-
--datetime-placeholder-disabled: var(--color-
|
|
2058
|
+
--datetime-placeholder-disabled: var(--color-text-disabled);
|
|
2058
2059
|
--datetime-label-disabled: var(--color-foreground-text-disabled);
|
|
2059
2060
|
--datetime-icon-disabled: var(--color-foreground-text-disabled);
|
|
2060
2061
|
--datetime-label: var(--color-foreground-text-strong);
|
|
2061
2062
|
--datetime-label-inside: var(--color-foreground-text-strong);
|
|
2062
|
-
--datetime-placeholder-focus: var(--
|
|
2063
|
+
--datetime-placeholder-focus: var(--color-text-subtle);
|
|
2063
2064
|
--datetime-highlight-bar: var(--color-foreground-border-accent-focus);
|
|
2064
2065
|
--datetime-helper: var(--color-foreground-text-defined);
|
|
2065
2066
|
--datetime-helper-error: var(--color-system-danger-default);
|
|
@@ -2222,45 +2223,26 @@
|
|
|
2222
2223
|
.tl-datetime:has(input:disabled) .tl-datetime__wrapper {
|
|
2223
2224
|
cursor: not-allowed;
|
|
2224
2225
|
}
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
}
|
|
2228
|
-
.tl-datetime__wrapper::after {
|
|
2229
|
-
content: "";
|
|
2226
|
+
|
|
2227
|
+
.tl-datetime__icon {
|
|
2230
2228
|
position: absolute;
|
|
2231
2229
|
top: 50%;
|
|
2232
|
-
transform: translateY(-50%);
|
|
2233
2230
|
right: 18px;
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
mask-repeat: no-repeat;
|
|
2237
|
-
mask-position: center;
|
|
2238
|
-
mask-size: 20px 20px;
|
|
2239
|
-
background-color: var(--datetime-icon);
|
|
2231
|
+
transform: translateY(-50%);
|
|
2232
|
+
color: var(--datetime-icon);
|
|
2240
2233
|
pointer-events: none;
|
|
2241
|
-
/*
|
|
2242
|
-
mask-image: var(--icon-calendar-svg);
|
|
2243
|
-
/* Firefox - hide our custom icon since Firefox shows its own */
|
|
2234
|
+
/* Firefox shows its own native picker icon — hide ours to avoid a duplicate */
|
|
2244
2235
|
}
|
|
2245
2236
|
@supports (-moz-appearance: none) {
|
|
2246
|
-
.tl-
|
|
2237
|
+
.tl-datetime__icon {
|
|
2247
2238
|
display: none;
|
|
2248
2239
|
}
|
|
2249
2240
|
}
|
|
2250
|
-
.tl-
|
|
2251
|
-
|
|
2252
|
-
}
|
|
2253
|
-
.tl-datetime__wrapper:has(input[type=time])::after {
|
|
2254
|
-
mask-image: var(--icon-clock-svg);
|
|
2241
|
+
.tl-datetime--error .tl-datetime__icon {
|
|
2242
|
+
color: var(--datetime-icon-error);
|
|
2255
2243
|
}
|
|
2256
|
-
.tl-datetime
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2259
|
-
.tl-datetime__wrapper {
|
|
2260
|
-
/* Disabled state */
|
|
2261
|
-
}
|
|
2262
|
-
.tl-datetime:has(input:disabled) .tl-datetime__wrapper::after {
|
|
2263
|
-
background-color: var(--datetime-icon-disabled);
|
|
2244
|
+
.tl-datetime:has(input:disabled) .tl-datetime__icon {
|
|
2245
|
+
color: var(--datetime-icon-disabled);
|
|
2264
2246
|
}
|
|
2265
2247
|
|
|
2266
2248
|
.tl-datetime__input {
|
|
@@ -2292,7 +2274,7 @@
|
|
|
2292
2274
|
.tl-datetime__input:focus {
|
|
2293
2275
|
box-shadow: inset var(--datetime-box-shadow-focus);
|
|
2294
2276
|
}
|
|
2295
|
-
.tl-datetime:hover .tl-datetime__input:not(:focus
|
|
2277
|
+
.tl-datetime:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
2296
2278
|
box-shadow: inset var(--datetime-box-shadow-hover);
|
|
2297
2279
|
}
|
|
2298
2280
|
.tl-datetime--error .tl-datetime__input {
|
|
@@ -2301,7 +2283,7 @@
|
|
|
2301
2283
|
.tl-datetime--error .tl-datetime__input:focus {
|
|
2302
2284
|
box-shadow: inset var(--datetime-box-shadow-error-focus);
|
|
2303
2285
|
}
|
|
2304
|
-
.tl-datetime--error:hover .tl-datetime__input:not(:focus
|
|
2286
|
+
.tl-datetime--error:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
2305
2287
|
box-shadow: inset var(--datetime-box-shadow-error-hover);
|
|
2306
2288
|
}
|
|
2307
2289
|
.tl-datetime--error .tl-datetime__input:disabled {
|
|
@@ -2314,6 +2296,35 @@
|
|
|
2314
2296
|
.tl-datetime__input:focus::placeholder {
|
|
2315
2297
|
color: var(--datetime-placeholder-focus);
|
|
2316
2298
|
}
|
|
2299
|
+
.tl-datetime__input {
|
|
2300
|
+
/*
|
|
2301
|
+
* Empty/default state: when no date is picked Safari renders the placeholder
|
|
2302
|
+
* (e.g. "yyyy/mm/dd") through the ::-webkit-datetime-edit container and its
|
|
2303
|
+
* -fields-wrapper. Safari ignores `color` on these pseudos and paints the
|
|
2304
|
+
* text via `-webkit-text-fill-color`; with neither set it falls back to the
|
|
2305
|
+
* UA accent (aqua) — most visible on TRATON, where no theme rule overrides
|
|
2306
|
+
* it. Set both `color` (other engines) and `-webkit-text-fill-color` (Safari)
|
|
2307
|
+
* to the placeholder colour. We only target the container + fields-wrapper,
|
|
2308
|
+
* not the individual sub-fields: when a value IS present Safari paints the
|
|
2309
|
+
* digits in the sub-field pseudos (e.g. ::-webkit-datetime-edit-year-field),
|
|
2310
|
+
* which keep `--datetime-text` from the rules below — so a filled value is
|
|
2311
|
+
* not dimmed in either state. We cover both `:not(:focus)` and `:focus`:
|
|
2312
|
+
* Safari keeps painting the empty placeholder through the container while the
|
|
2313
|
+
* input is focused, so without the focused branch it falls back to the aqua
|
|
2314
|
+
* UA accent again on focus. The focused branch uses the focus placeholder
|
|
2315
|
+
* token to mirror the `::placeholder` rule above.
|
|
2316
|
+
*/
|
|
2317
|
+
}
|
|
2318
|
+
@supports selector(input::-webkit-datetime-edit) {
|
|
2319
|
+
.tl-datetime__input:not(:focus)::-webkit-datetime-edit, .tl-datetime__input:not(:focus)::-webkit-datetime-edit-fields-wrapper {
|
|
2320
|
+
color: var(--datetime-placeholder);
|
|
2321
|
+
-webkit-text-fill-color: var(--datetime-placeholder);
|
|
2322
|
+
}
|
|
2323
|
+
.tl-datetime__input:focus::-webkit-datetime-edit, .tl-datetime__input:focus::-webkit-datetime-edit-fields-wrapper {
|
|
2324
|
+
color: var(--datetime-placeholder-focus);
|
|
2325
|
+
-webkit-text-fill-color: var(--datetime-placeholder-focus);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2317
2328
|
.tl-datetime__input {
|
|
2318
2329
|
/* WebKit datetime fields */
|
|
2319
2330
|
}
|
|
@@ -2532,12 +2543,24 @@
|
|
|
2532
2543
|
.tl-divider {
|
|
2533
2544
|
background-color: var(--divider-background);
|
|
2534
2545
|
}
|
|
2535
|
-
.tl-divider--expressive {
|
|
2536
|
-
background-color: var(--divider-background-strong);
|
|
2537
|
-
}
|
|
2538
2546
|
.tl-divider--discrete {
|
|
2539
2547
|
background-color: var(--divider-background-discrete);
|
|
2540
2548
|
}
|
|
2549
|
+
.tl-divider--subtle {
|
|
2550
|
+
background-color: var(--divider-background-subtle);
|
|
2551
|
+
}
|
|
2552
|
+
.tl-divider--soft {
|
|
2553
|
+
background-color: var(--divider-background-soft);
|
|
2554
|
+
}
|
|
2555
|
+
.tl-divider--defined {
|
|
2556
|
+
background-color: var(--divider-background-defined);
|
|
2557
|
+
}
|
|
2558
|
+
.tl-divider--strong {
|
|
2559
|
+
background-color: var(--divider-background-strong);
|
|
2560
|
+
}
|
|
2561
|
+
.tl-divider--expressive {
|
|
2562
|
+
background-color: var(--divider-background-expressive);
|
|
2563
|
+
}
|
|
2541
2564
|
.tl-divider--horizontal {
|
|
2542
2565
|
width: 100%;
|
|
2543
2566
|
height: 1px;
|
|
@@ -2651,11 +2674,13 @@
|
|
|
2651
2674
|
--component-footer-logotype-cdn: var(--tds-background-image-scania-wordmark-white-svg);
|
|
2652
2675
|
}
|
|
2653
2676
|
|
|
2677
|
+
.traton .tds-mode-dark .tl-footer,
|
|
2654
2678
|
.traton .tl-mode-dark .tl-footer {
|
|
2655
2679
|
--component-footer-logotype-local: var(--traton-logotype-white-svg-local);
|
|
2656
2680
|
--component-footer-logotype-cdn: var(--traton-logotype-white-svg);
|
|
2657
2681
|
}
|
|
2658
2682
|
|
|
2683
|
+
.traton .tds-mode-light .tl-footer,
|
|
2659
2684
|
.traton .tl-mode-light .tl-footer {
|
|
2660
2685
|
--component-footer-logotype-local: var(--traton-logotype-black-svg-local);
|
|
2661
2686
|
--component-footer-logotype-cdn: var(--traton-logotype-black-svg);
|
|
@@ -7019,6 +7044,52 @@ input[type=checkbox]:disabled ~ .tl-toggle__label {
|
|
|
7019
7044
|
cursor: not-allowed;
|
|
7020
7045
|
}
|
|
7021
7046
|
|
|
7047
|
+
/**
|
|
7048
|
+
* Do not edit directly, this file was auto-generated.
|
|
7049
|
+
*/
|
|
7050
|
+
:root,
|
|
7051
|
+
.tds-mode-light,
|
|
7052
|
+
.scania .tds-mode-light,
|
|
7053
|
+
.scania.tds-mode-light,
|
|
7054
|
+
.scania .tl-mode-light,
|
|
7055
|
+
.scania.tl-mode-light {
|
|
7056
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
7057
|
+
--component-tooltip-border-radius-none: var(--scania-unit-0);
|
|
7058
|
+
--component-tooltip-border-radius-default: var(--scania-unit-4);
|
|
7059
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
7060
|
+
}
|
|
7061
|
+
|
|
7062
|
+
.traton .tds-mode-light,
|
|
7063
|
+
.traton.tds-mode-light,
|
|
7064
|
+
.traton .tl-mode-light,
|
|
7065
|
+
.traton.tl-mode-light {
|
|
7066
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
7067
|
+
--component-tooltip-border-radius-none: var(--traton-unit-0);
|
|
7068
|
+
--component-tooltip-border-radius-default: var(--traton-unit-4);
|
|
7069
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
7070
|
+
}
|
|
7071
|
+
|
|
7072
|
+
.tds-mode-dark,
|
|
7073
|
+
.scania .tds-mode-dark,
|
|
7074
|
+
.scania.tds-mode-dark,
|
|
7075
|
+
.scania .tl-mode-dark,
|
|
7076
|
+
.scania.tl-mode-dark {
|
|
7077
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
7078
|
+
--component-tooltip-border-radius-none: var(--scania-unit-0);
|
|
7079
|
+
--component-tooltip-border-radius-default: var(--scania-unit-4);
|
|
7080
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
7081
|
+
}
|
|
7082
|
+
|
|
7083
|
+
.traton .tds-mode-dark,
|
|
7084
|
+
.traton.tds-mode-dark,
|
|
7085
|
+
.traton .tl-mode-dark,
|
|
7086
|
+
.traton.tl-mode-dark {
|
|
7087
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
7088
|
+
--component-tooltip-border-radius-none: var(--traton-unit-0);
|
|
7089
|
+
--component-tooltip-border-radius-default: var(--traton-unit-4);
|
|
7090
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7022
7093
|
.tl-tooltip {
|
|
7023
7094
|
--tooltip-color: var(--component-tooltip-text-default);
|
|
7024
7095
|
--tooltip-background: var(--component-tooltip-background-default);
|
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
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
.tl-datetime {
|
|
2
3
|
--datetime-background-primary: var(--color-background-layer-01);
|
|
3
4
|
--datetime-background-secondary: var(--color-background-layer-02);
|
|
4
5
|
--datetime-background: var(--datetime-background-primary);
|
|
5
6
|
--datetime-text: var(--color-foreground-text-strong);
|
|
6
7
|
--datetime-icon: var(--color-foreground-icon-strong);
|
|
7
|
-
--datetime-placeholder: var(--color-
|
|
8
|
+
--datetime-placeholder: var(--color-text-subtle);
|
|
8
9
|
--datetime-background-disabled-primary: var(--color-background-layer-01);
|
|
9
10
|
--datetime-background-disabled-secondary: var(--color-background-layer-02);
|
|
10
11
|
--datetime-background-disabled: var(--datetime-background-disabled-primary);
|
|
11
12
|
--datetime-text-disabled: var(--color-foreground-text-disabled);
|
|
12
|
-
--datetime-placeholder-disabled: var(--color-
|
|
13
|
+
--datetime-placeholder-disabled: var(--color-text-disabled);
|
|
13
14
|
--datetime-label-disabled: var(--color-foreground-text-disabled);
|
|
14
15
|
--datetime-icon-disabled: var(--color-foreground-text-disabled);
|
|
15
16
|
--datetime-label: var(--color-foreground-text-strong);
|
|
16
17
|
--datetime-label-inside: var(--color-foreground-text-strong);
|
|
17
|
-
--datetime-placeholder-focus: var(--
|
|
18
|
+
--datetime-placeholder-focus: var(--color-text-subtle);
|
|
18
19
|
--datetime-highlight-bar: var(--color-foreground-border-accent-focus);
|
|
19
20
|
--datetime-helper: var(--color-foreground-text-defined);
|
|
20
21
|
--datetime-helper-error: var(--color-system-danger-default);
|
|
@@ -178,45 +179,26 @@
|
|
|
178
179
|
.tl-datetime:has(input:disabled) .tl-datetime__wrapper {
|
|
179
180
|
cursor: not-allowed;
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
.tl-datetime__wrapper::after {
|
|
185
|
-
content: "";
|
|
182
|
+
|
|
183
|
+
.tl-datetime__icon {
|
|
186
184
|
position: absolute;
|
|
187
185
|
top: 50%;
|
|
188
|
-
transform: translateY(-50%);
|
|
189
186
|
right: 18px;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
mask-repeat: no-repeat;
|
|
193
|
-
mask-position: center;
|
|
194
|
-
mask-size: 20px 20px;
|
|
195
|
-
background-color: var(--datetime-icon);
|
|
187
|
+
transform: translateY(-50%);
|
|
188
|
+
color: var(--datetime-icon);
|
|
196
189
|
pointer-events: none;
|
|
197
|
-
/*
|
|
198
|
-
mask-image: var(--icon-calendar-svg);
|
|
199
|
-
/* Firefox - hide our custom icon since Firefox shows its own */
|
|
190
|
+
/* Firefox shows its own native picker icon — hide ours to avoid a duplicate */
|
|
200
191
|
}
|
|
201
192
|
@supports (-moz-appearance: none) {
|
|
202
|
-
.tl-
|
|
193
|
+
.tl-datetime__icon {
|
|
203
194
|
display: none;
|
|
204
195
|
}
|
|
205
196
|
}
|
|
206
|
-
.tl-
|
|
207
|
-
|
|
197
|
+
.tl-datetime--error .tl-datetime__icon {
|
|
198
|
+
color: var(--datetime-icon-error);
|
|
208
199
|
}
|
|
209
|
-
.tl-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
.tl-datetime--error .tl-datetime__wrapper::after {
|
|
213
|
-
background-color: var(--datetime-icon-error);
|
|
214
|
-
}
|
|
215
|
-
.tl-datetime__wrapper {
|
|
216
|
-
/* Disabled state */
|
|
217
|
-
}
|
|
218
|
-
.tl-datetime:has(input:disabled) .tl-datetime__wrapper::after {
|
|
219
|
-
background-color: var(--datetime-icon-disabled);
|
|
200
|
+
.tl-datetime:has(input:disabled) .tl-datetime__icon {
|
|
201
|
+
color: var(--datetime-icon-disabled);
|
|
220
202
|
}
|
|
221
203
|
|
|
222
204
|
.tl-datetime__input {
|
|
@@ -248,7 +230,7 @@
|
|
|
248
230
|
.tl-datetime__input:focus {
|
|
249
231
|
box-shadow: inset var(--datetime-box-shadow-focus);
|
|
250
232
|
}
|
|
251
|
-
.tl-datetime:hover .tl-datetime__input:not(:focus
|
|
233
|
+
.tl-datetime:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
252
234
|
box-shadow: inset var(--datetime-box-shadow-hover);
|
|
253
235
|
}
|
|
254
236
|
.tl-datetime--error .tl-datetime__input {
|
|
@@ -257,7 +239,7 @@
|
|
|
257
239
|
.tl-datetime--error .tl-datetime__input:focus {
|
|
258
240
|
box-shadow: inset var(--datetime-box-shadow-error-focus);
|
|
259
241
|
}
|
|
260
|
-
.tl-datetime--error:hover .tl-datetime__input:not(:focus
|
|
242
|
+
.tl-datetime--error:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
261
243
|
box-shadow: inset var(--datetime-box-shadow-error-hover);
|
|
262
244
|
}
|
|
263
245
|
.tl-datetime--error .tl-datetime__input:disabled {
|
|
@@ -270,6 +252,35 @@
|
|
|
270
252
|
.tl-datetime__input:focus::placeholder {
|
|
271
253
|
color: var(--datetime-placeholder-focus);
|
|
272
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
|
+
}
|
|
273
284
|
.tl-datetime__input {
|
|
274
285
|
/* WebKit datetime fields */
|
|
275
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);
|
package/dist/tl-tooltip.css
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
:root,
|
|
5
|
+
.tds-mode-light,
|
|
6
|
+
.scania .tds-mode-light,
|
|
7
|
+
.scania.tds-mode-light,
|
|
8
|
+
.scania .tl-mode-light,
|
|
9
|
+
.scania.tl-mode-light {
|
|
10
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
11
|
+
--component-tooltip-border-radius-none: var(--scania-unit-0);
|
|
12
|
+
--component-tooltip-border-radius-default: var(--scania-unit-4);
|
|
13
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.traton .tds-mode-light,
|
|
17
|
+
.traton.tds-mode-light,
|
|
18
|
+
.traton .tl-mode-light,
|
|
19
|
+
.traton.tl-mode-light {
|
|
20
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
21
|
+
--component-tooltip-border-radius-none: var(--traton-unit-0);
|
|
22
|
+
--component-tooltip-border-radius-default: var(--traton-unit-4);
|
|
23
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tds-mode-dark,
|
|
27
|
+
.scania .tds-mode-dark,
|
|
28
|
+
.scania.tds-mode-dark,
|
|
29
|
+
.scania .tl-mode-dark,
|
|
30
|
+
.scania.tl-mode-dark {
|
|
31
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
32
|
+
--component-tooltip-border-radius-none: var(--scania-unit-0);
|
|
33
|
+
--component-tooltip-border-radius-default: var(--scania-unit-4);
|
|
34
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.traton .tds-mode-dark,
|
|
38
|
+
.traton.tds-mode-dark,
|
|
39
|
+
.traton .tl-mode-dark,
|
|
40
|
+
.traton.tl-mode-dark {
|
|
41
|
+
--component-tooltip-background-default: var(--color-background-inverse-layer-03);
|
|
42
|
+
--component-tooltip-border-radius-none: var(--traton-unit-0);
|
|
43
|
+
--component-tooltip-border-radius-default: var(--traton-unit-4);
|
|
44
|
+
--component-tooltip-text-default: var(--color-text-inverse-strong);
|
|
45
|
+
}
|
|
46
|
+
|
|
1
47
|
.tl-tooltip {
|
|
2
48
|
--tooltip-color: var(--component-tooltip-text-default);
|
|
3
49
|
--tooltip-background: var(--component-tooltip-background-default);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel-lite",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Styles-only library for Tegel Design System (Beta)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"test": "npx playwright test"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@playwright/test": "
|
|
68
|
+
"@playwright/test": "1.60.0",
|
|
69
69
|
"@types/node": "^24.3.1",
|
|
70
70
|
"serve": "^14.2.5"
|
|
71
71
|
},
|