@scania/tegel-lite 0.1.0-focus-ring-beta.0 → 0.1.0-header-beta.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/README.dev.md +1 -5
- package/README.md +12 -12
- package/dist/assets/icons/traton/back.svg +1 -0
- package/dist/assets/icons/traton/calendar_inactive.svg +1 -0
- package/dist/assets/icons/traton/card.svg +1 -0
- package/dist/assets/icons/traton/cart.svg +1 -0
- package/dist/assets/icons/traton/clock.svg +1 -0
- package/dist/assets/icons/traton/clock_inactive.svg +1 -0
- package/dist/assets/icons/traton/contact.svg +1 -0
- package/dist/assets/icons/traton/contact_inactive.svg +1 -0
- package/dist/assets/icons/traton/copy.svg +1 -0
- package/dist/assets/icons/traton/document.svg +1 -0
- package/dist/assets/icons/traton/document_check.svg +1 -0
- package/dist/assets/icons/traton/document_doc.svg +1 -0
- package/dist/assets/icons/traton/document_eye.svg +1 -0
- package/dist/assets/icons/traton/document_pdf.svg +1 -0
- package/dist/assets/icons/traton/document_tool.svg +1 -0
- package/dist/assets/icons/traton/document_word.svg +1 -0
- package/dist/assets/icons/traton/document_wrong.svg +1 -0
- package/dist/assets/icons/traton/document_xls.svg +1 -0
- package/dist/assets/icons/traton/dollar.svg +1 -0
- package/dist/assets/icons/traton/doner.svg +1 -0
- package/dist/assets/icons/traton/double_kebab.svg +1 -0
- package/dist/assets/icons/traton/download.svg +1 -0
- package/dist/assets/icons/traton/edit_inactive.svg +1 -1
- package/dist/assets/icons/traton/email.svg +1 -0
- package/dist/assets/icons/traton/export.svg +1 -0
- package/dist/assets/icons/traton/export_inactive.svg +1 -0
- package/dist/assets/icons/traton/eye.svg +1 -0
- package/dist/assets/icons/traton/eye_inactive.svg +1 -0
- package/dist/assets/icons/traton/face_dissatisfied.svg +1 -0
- package/dist/assets/icons/traton/face_neutral.svg +1 -0
- package/dist/assets/icons/traton/face_satisfied.svg +1 -0
- package/dist/assets/icons/traton/filters.svg +1 -0
- package/dist/assets/icons/traton/filters_inactive.svg +1 -0
- package/dist/assets/icons/traton/folder.svg +1 -0
- package/dist/assets/icons/traton/fuel_gauge.svg +1 -0
- package/dist/assets/icons/traton/fuel_gauge_inactive.svg +1 -0
- package/dist/assets/icons/traton/global.svg +1 -0
- package/dist/assets/icons/traton/heart.svg +1 -0
- package/dist/assets/icons/traton/heart_inactive.svg +1 -0
- package/dist/assets/icons/traton/home.svg +1 -0
- package/dist/assets/icons/traton/home_inactive.svg +1 -0
- package/dist/assets/icons/traton/image.svg +1 -0
- package/dist/assets/icons/traton/image_add.svg +1 -0
- package/dist/assets/icons/traton/image_inactive.svg +1 -0
- package/dist/assets/icons/traton/image_set.svg +1 -0
- package/dist/assets/icons/traton/kebab.svg +1 -0
- package/dist/assets/icons/traton/link.svg +1 -0
- package/dist/assets/icons/traton/link_broken.svg +1 -0
- package/dist/assets/icons/traton/lock.svg +1 -0
- package/dist/assets/icons/traton/meatballs.svg +1 -0
- package/dist/assets/icons/traton/message.svg +1 -0
- package/dist/assets/icons/traton/message_inactive.svg +1 -0
- package/dist/assets/icons/traton/mileage.svg +1 -0
- package/dist/assets/icons/traton/mileage_inactive.svg +1 -0
- package/dist/assets/icons/traton/notification_inactive.svg +1 -0
- package/dist/assets/icons/traton/phone.svg +1 -0
- package/dist/assets/icons/traton/phone_inactive.svg +1 -0
- package/dist/assets/icons/traton/pin.svg +1 -0
- package/dist/assets/icons/traton/pin_inactive.svg +1 -0
- package/dist/assets/icons/traton/placeholder.svg +1 -3
- package/dist/assets/icons/traton/print_inactive.svg +1 -0
- package/dist/assets/icons/traton/profile.svg +1 -0
- package/dist/assets/icons/traton/profile_inactive.svg +1 -0
- package/dist/assets/icons/traton/proportions.svg +1 -0
- package/dist/assets/icons/traton/proportions_inactive.svg +1 -0
- package/dist/assets/icons/traton/redirect.svg +1 -0
- package/dist/assets/icons/traton/report.svg +1 -0
- package/dist/assets/icons/traton/report_inactive.svg +1 -0
- package/dist/assets/icons/traton/save.svg +1 -0
- package/dist/assets/icons/traton/save_inactive.svg +1 -0
- package/dist/assets/icons/traton/send.svg +1 -0
- package/dist/assets/icons/traton/send_inactive.svg +1 -0
- package/dist/assets/icons/traton/settings.svg +1 -0
- package/dist/assets/icons/traton/skip_backwards.svg +1 -1
- package/dist/assets/icons/traton/skip_forward.svg +1 -1
- package/dist/assets/icons/traton/smartphone.svg +1 -0
- package/dist/assets/icons/traton/smartphone_inactive.svg +1 -0
- package/dist/assets/icons/traton/speedometer.svg +1 -0
- package/dist/assets/icons/traton/speedometer_inactive.svg +1 -0
- package/dist/assets/icons/traton/support.svg +1 -0
- package/dist/assets/icons/traton/timer.svg +1 -0
- package/dist/assets/icons/traton/tool.svg +1 -0
- package/dist/assets/icons/traton/tool_inactive.svg +1 -0
- package/dist/assets/icons/traton/trash.svg +1 -0
- package/dist/assets/icons/traton/trash_inactive.svg +1 -0
- package/dist/assets/icons/traton/unlock.svg +1 -0
- package/dist/assets/icons/traton/upload.svg +1 -0
- package/dist/assets/icons/traton/wallet.svg +1 -0
- package/dist/assets/icons/traton/warning.svg +1 -1
- package/dist/assets/icons/traton/wifi.svg +1 -0
- package/dist/assets/icons/traton/wifi_inactive.svg +1 -0
- package/dist/components.css +4361 -7007
- package/dist/global.css +76 -19
- package/dist/scania-variables.css +168 -4
- package/dist/tl-accordion.css +92 -36
- package/dist/tl-banner.css +86 -11
- package/dist/tl-block.css +62 -7
- package/dist/tl-breadcrumbs.css +4 -1
- package/dist/tl-button.css +9 -7
- package/dist/tl-card.css +23 -54
- package/dist/tl-checkbox.css +195 -115
- package/dist/tl-datetime.css +45 -34
- package/dist/tl-divider.css +15 -3
- package/dist/tl-footer.css +8 -6
- package/dist/tl-header.css +450 -385
- package/dist/tl-icon.css +4 -0
- package/dist/tl-link.css +9 -4
- package/dist/tl-message.css +128 -14
- package/dist/tl-modal.css +109 -14
- package/dist/tl-popover-canvas.css +112 -9
- package/dist/tl-popover-menu.css +134 -28
- package/dist/tl-radio-button.css +159 -96
- package/dist/tl-text-field.css +256 -76
- package/dist/tl-textarea.css +274 -76
- package/dist/tl-toast.css +117 -8
- package/dist/tl-toggle.css +147 -42
- package/dist/tl-tooltip.css +46 -0
- package/dist/traton-variables.css +322 -0
- package/package.json +8 -26
- package/dist/tl-badge.css +0 -45
- package/dist/tl-checkbox-vars.css +0 -38
- package/dist/tl-chip.css +0 -99
- package/dist/tl-dropdown.css +0 -921
- package/dist/tl-folder-tabs.css +0 -139
- package/dist/tl-inline-tabs.css +0 -173
- package/dist/tl-navigation-tabs.css +0 -171
- package/dist/tl-side-menu.css +0 -703
- package/dist/tl-slider.css +0 -2273
- package/dist/tl-spinner.css +0 -78
- package/dist/tl-step.css +0 -247
- package/dist/tl-stepper.css +0 -91
- package/dist/tl-table.css +0 -857
package/dist/tl-checkbox.css
CHANGED
|
@@ -1,41 +1,152 @@
|
|
|
1
1
|
/* Typography Usage mixins */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
--checkbox-
|
|
12
|
-
--checkbox-background-
|
|
13
|
-
--checkbox-background-
|
|
14
|
-
--checkbox-background-
|
|
15
|
-
--checkbox-background-
|
|
16
|
-
--checkbox-background-
|
|
17
|
-
--checkbox-
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
:root,
|
|
6
|
+
.tds-mode-light,
|
|
7
|
+
.scania .tds-mode-light,
|
|
8
|
+
.scania.tds-mode-light,
|
|
9
|
+
.scania .tl-mode-light,
|
|
10
|
+
.scania.tl-mode-light {
|
|
11
|
+
--component-checkbox-background-standard-default: var(--color-background-none);
|
|
12
|
+
--component-checkbox-background-standard-hover: var(--color-background-none);
|
|
13
|
+
--component-checkbox-background-selected-default: var(--scania-color-grey-950);
|
|
14
|
+
--component-checkbox-background-selected-hover: var(--scania-color-grey-950);
|
|
15
|
+
--component-checkbox-background-indeterminate-default: var(--scania-color-grey-950);
|
|
16
|
+
--component-checkbox-background-indeterminate-hover: var(--scania-color-grey-950);
|
|
17
|
+
--component-checkbox-border-standard-default: var(--color-border-strong);
|
|
18
|
+
--component-checkbox-border-standard-hover: var(--color-border-strong);
|
|
19
|
+
--component-checkbox-border-selected-default: var(--color-border-none);
|
|
20
|
+
--component-checkbox-border-selected-hover: var(--color-border-none);
|
|
21
|
+
--component-checkbox-border-indeterminate-default: var(--color-border-none);
|
|
22
|
+
--component-checkbox-border-indeterminate-hover: var(--color-border-none);
|
|
23
|
+
--component-checkbox-border-indicator-default: var(--color-border-none);
|
|
24
|
+
--component-checkbox-border-indicator-hover: var(--color-border-subtle);
|
|
25
|
+
--component-checkbox-border-radius-default: var(--scania-unit-2);
|
|
26
|
+
--component-checkbox-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
27
|
+
--component-checkbox-icon-selected-default: var(--color-icon-inverse-strong);
|
|
28
|
+
--component-checkbox-icon-selected-hover: var(--color-icon-inverse-strong);
|
|
29
|
+
--component-checkbox-icon-indeterminate-default: var(--color-icon-inverse-strong);
|
|
30
|
+
--component-checkbox-icon-indeterminate-hover: var(--color-icon-inverse-strong);
|
|
31
|
+
--component-checkbox-opacity-disabled: var(--scania-opacity-25);
|
|
32
|
+
--component-checkbox-text-default: var(--color-text-strong);
|
|
33
|
+
--component-checkbox-text-hover: var(--color-text-strong);
|
|
18
34
|
}
|
|
19
35
|
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
--checkbox-background-
|
|
36
|
+
.traton .tds-mode-light,
|
|
37
|
+
.traton.tds-mode-light,
|
|
38
|
+
.traton .tl-mode-light,
|
|
39
|
+
.traton.tl-mode-light {
|
|
40
|
+
--component-checkbox-background-standard-default: var(--color-background-none);
|
|
41
|
+
--component-checkbox-background-standard-hover: var(--color-background-none);
|
|
42
|
+
--component-checkbox-background-selected-default: var(--traton-color-blue-950);
|
|
43
|
+
--component-checkbox-background-selected-hover: var(--traton-color-blue-950);
|
|
44
|
+
--component-checkbox-background-indeterminate-default: var(--traton-color-blue-950);
|
|
45
|
+
--component-checkbox-background-indeterminate-hover: var(--traton-color-blue-950);
|
|
46
|
+
--component-checkbox-border-standard-default: var(--color-border-strong);
|
|
47
|
+
--component-checkbox-border-standard-hover: var(--color-border-strong);
|
|
48
|
+
--component-checkbox-border-selected-default: var(--color-border-none);
|
|
49
|
+
--component-checkbox-border-selected-hover: var(--color-border-none);
|
|
50
|
+
--component-checkbox-border-indeterminate-default: var(--color-border-none);
|
|
51
|
+
--component-checkbox-border-indeterminate-hover: var(--color-border-none);
|
|
52
|
+
--component-checkbox-border-indicator-default: var(--color-border-none);
|
|
53
|
+
--component-checkbox-border-indicator-hover: var(--color-border-subtle);
|
|
54
|
+
--component-checkbox-border-radius-default: var(--traton-unit-2);
|
|
55
|
+
--component-checkbox-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
56
|
+
--component-checkbox-icon-selected-default: var(--color-icon-inverse-strong);
|
|
57
|
+
--component-checkbox-icon-selected-hover: var(--color-icon-inverse-strong);
|
|
58
|
+
--component-checkbox-icon-indeterminate-default: var(--color-icon-inverse-strong);
|
|
59
|
+
--component-checkbox-icon-indeterminate-hover: var(--color-icon-inverse-strong);
|
|
60
|
+
--component-checkbox-opacity-disabled: var(--traton-opacity-25);
|
|
61
|
+
--component-checkbox-text-default: var(--color-text-strong);
|
|
62
|
+
--component-checkbox-text-hover: var(--color-text-strong);
|
|
25
63
|
}
|
|
26
64
|
|
|
27
|
-
.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
65
|
+
.tds-mode-dark,
|
|
66
|
+
.scania .tds-mode-dark,
|
|
67
|
+
.scania.tds-mode-dark,
|
|
68
|
+
.scania .tl-mode-dark,
|
|
69
|
+
.scania.tl-mode-dark {
|
|
70
|
+
--component-checkbox-background-standard-default: var(--color-background-none);
|
|
71
|
+
--component-checkbox-background-standard-hover: var(--color-background-none);
|
|
72
|
+
--component-checkbox-background-selected-default: var(--scania-color-grey-50);
|
|
73
|
+
--component-checkbox-background-selected-hover: var(--scania-color-grey-50);
|
|
74
|
+
--component-checkbox-background-indeterminate-default: var(--scania-color-grey-50);
|
|
75
|
+
--component-checkbox-background-indeterminate-hover: var(--scania-color-grey-50);
|
|
76
|
+
--component-checkbox-border-standard-default: var(--color-border-strong);
|
|
77
|
+
--component-checkbox-border-standard-hover: var(--color-border-strong);
|
|
78
|
+
--component-checkbox-border-selected-default: var(--color-border-none);
|
|
79
|
+
--component-checkbox-border-selected-hover: var(--color-border-none);
|
|
80
|
+
--component-checkbox-border-indeterminate-default: var(--color-border-none);
|
|
81
|
+
--component-checkbox-border-indeterminate-hover: var(--color-border-none);
|
|
82
|
+
--component-checkbox-border-indicator-default: var(--color-border-none);
|
|
83
|
+
--component-checkbox-border-indicator-hover: var(--color-border-subtle);
|
|
84
|
+
--component-checkbox-border-radius-default: var(--scania-unit-2);
|
|
85
|
+
--component-checkbox-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
86
|
+
--component-checkbox-icon-selected-default: var(--color-icon-inverse-strong);
|
|
87
|
+
--component-checkbox-icon-selected-hover: var(--color-icon-inverse-strong);
|
|
88
|
+
--component-checkbox-icon-indeterminate-default: var(--color-icon-inverse-strong);
|
|
89
|
+
--component-checkbox-icon-indeterminate-hover: var(--color-icon-inverse-strong);
|
|
90
|
+
--component-checkbox-opacity-disabled: var(--scania-opacity-25);
|
|
91
|
+
--component-checkbox-text-default: var(--color-text-strong);
|
|
92
|
+
--component-checkbox-text-hover: var(--color-text-strong);
|
|
32
93
|
}
|
|
33
94
|
|
|
34
|
-
.traton .
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
--checkbox-
|
|
95
|
+
.traton .tds-mode-dark,
|
|
96
|
+
.traton.tds-mode-dark,
|
|
97
|
+
.traton .tl-mode-dark,
|
|
98
|
+
.traton.tl-mode-dark {
|
|
99
|
+
--component-checkbox-background-standard-default: var(--color-background-none);
|
|
100
|
+
--component-checkbox-background-standard-hover: var(--color-background-none);
|
|
101
|
+
--component-checkbox-background-selected-default: var(--traton-color-base-white);
|
|
102
|
+
--component-checkbox-background-selected-hover: var(--traton-color-base-white);
|
|
103
|
+
--component-checkbox-background-indeterminate-default: var(--traton-color-base-white);
|
|
104
|
+
--component-checkbox-background-indeterminate-hover: var(--traton-color-base-white);
|
|
105
|
+
--component-checkbox-border-standard-default: var(--color-border-strong);
|
|
106
|
+
--component-checkbox-border-standard-hover: var(--color-border-strong);
|
|
107
|
+
--component-checkbox-border-selected-default: var(--color-border-none);
|
|
108
|
+
--component-checkbox-border-selected-hover: var(--color-border-none);
|
|
109
|
+
--component-checkbox-border-indeterminate-default: var(--color-border-none);
|
|
110
|
+
--component-checkbox-border-indeterminate-hover: var(--color-border-none);
|
|
111
|
+
--component-checkbox-border-indicator-default: var(--color-border-none);
|
|
112
|
+
--component-checkbox-border-indicator-hover: var(--color-border-subtle);
|
|
113
|
+
--component-checkbox-border-radius-default: var(--traton-unit-2);
|
|
114
|
+
--component-checkbox-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
115
|
+
--component-checkbox-icon-selected-default: var(--color-icon-inverse-strong);
|
|
116
|
+
--component-checkbox-icon-selected-hover: var(--color-icon-inverse-strong);
|
|
117
|
+
--component-checkbox-icon-indeterminate-default: var(--color-icon-inverse-strong);
|
|
118
|
+
--component-checkbox-icon-indeterminate-hover: var(--color-icon-inverse-strong);
|
|
119
|
+
--component-checkbox-opacity-disabled: var(--traton-opacity-25);
|
|
120
|
+
--component-checkbox-text-default: var(--color-text-strong);
|
|
121
|
+
--component-checkbox-text-hover: var(--color-text-strong);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.tl-checkbox {
|
|
125
|
+
--checkbox-text: var(--component-checkbox-text-default);
|
|
126
|
+
--checkbox-text-hover: var(--component-checkbox-text-hover);
|
|
127
|
+
--checkbox-background: var(--component-checkbox-background-standard-default);
|
|
128
|
+
--checkbox-background-hover: var(--component-checkbox-background-standard-hover);
|
|
129
|
+
--checkbox-background-selected: var(--component-checkbox-background-selected-default);
|
|
130
|
+
--checkbox-background-selected-hover: var(--component-checkbox-background-selected-hover);
|
|
131
|
+
--checkbox-background-indeterminate: var(--component-checkbox-background-indeterminate-default);
|
|
132
|
+
--checkbox-background-indeterminate-hover: var(--component-checkbox-background-indeterminate-hover);
|
|
133
|
+
--checkbox-border: var(--component-checkbox-border-standard-default);
|
|
134
|
+
--checkbox-border-hover: var(--component-checkbox-border-standard-hover);
|
|
135
|
+
--checkbox-border-selected: var(--component-checkbox-border-selected-default);
|
|
136
|
+
--checkbox-border-selected-hover: var(--component-checkbox-border-selected-hover);
|
|
137
|
+
--checkbox-border-indeterminate: var(--component-checkbox-border-indeterminate-default);
|
|
138
|
+
--checkbox-border-indeterminate-hover: var(--component-checkbox-border-indeterminate-hover);
|
|
139
|
+
--checkbox-indicator: var(--component-checkbox-border-indicator-default);
|
|
140
|
+
--checkbox-indicator-hover: var(--component-checkbox-border-indicator-hover);
|
|
141
|
+
--checkbox-icon-selected: var(--component-checkbox-icon-selected-default);
|
|
142
|
+
--checkbox-icon-selected-hover: var(--component-checkbox-icon-selected-hover);
|
|
143
|
+
--checkbox-icon-indeterminate: var(--component-checkbox-icon-indeterminate-default);
|
|
144
|
+
--checkbox-icon-indeterminate-hover: var(--component-checkbox-icon-indeterminate-hover);
|
|
145
|
+
--checkbox-border-radius: calc(var(--component-checkbox-border-radius-default) * 1px);
|
|
146
|
+
--checkbox-focus-ring-radius: calc(var(--component-checkbox-focus-ring-radius-default) * 1px);
|
|
147
|
+
--checkbox-opacity-disabled: calc(var(--component-checkbox-opacity-disabled) / 100);
|
|
148
|
+
--checkbox-icon-mask: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
149
|
+
--checkbox-icon-mask-indeterminate: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%23000'/></svg>");
|
|
39
150
|
}
|
|
40
151
|
|
|
41
152
|
.tl-checkbox {
|
|
@@ -53,7 +164,7 @@
|
|
|
53
164
|
text-transform: var(--detail-02-text-transform);
|
|
54
165
|
display: flex;
|
|
55
166
|
align-items: center;
|
|
56
|
-
color: var(--checkbox-
|
|
167
|
+
color: var(--checkbox-text);
|
|
57
168
|
}
|
|
58
169
|
.tl-checkbox:has(:disabled) {
|
|
59
170
|
cursor: not-allowed;
|
|
@@ -64,7 +175,6 @@
|
|
|
64
175
|
outline: none;
|
|
65
176
|
margin: 0;
|
|
66
177
|
border: 0;
|
|
67
|
-
border-radius: 2px;
|
|
68
178
|
width: 24px;
|
|
69
179
|
height: 24px;
|
|
70
180
|
position: relative;
|
|
@@ -76,90 +186,76 @@
|
|
|
76
186
|
content: "";
|
|
77
187
|
position: absolute;
|
|
78
188
|
box-sizing: border-box;
|
|
79
|
-
}
|
|
80
|
-
.tl-checkbox__input::before {
|
|
81
|
-
width: 20px;
|
|
82
|
-
height: 20px;
|
|
83
|
-
left: 2px;
|
|
84
|
-
top: 2px;
|
|
85
|
-
border-radius: 4px;
|
|
86
|
-
}
|
|
87
|
-
.tl-checkbox__input::after {
|
|
88
|
-
border: 1px solid var(--checkbox-border);
|
|
89
|
-
background-color: var(--checkbox-fill);
|
|
90
189
|
width: 16px;
|
|
91
190
|
height: 16px;
|
|
92
191
|
left: 4px;
|
|
93
192
|
top: 4px;
|
|
94
|
-
border-radius: 2px;
|
|
95
193
|
}
|
|
96
|
-
.tl-checkbox__input
|
|
97
|
-
|
|
194
|
+
.tl-checkbox__input::before {
|
|
195
|
+
border: 1px solid var(--checkbox-border);
|
|
196
|
+
background-color: var(--checkbox-background);
|
|
197
|
+
border-radius: var(--checkbox-border-radius);
|
|
198
|
+
box-shadow: 0 0 0 2px var(--checkbox-indicator);
|
|
199
|
+
transition: box-shadow 0.2s ease-in-out;
|
|
98
200
|
}
|
|
99
|
-
.tl-checkbox__input
|
|
100
|
-
background-color: var(--checkbox-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
top: var(--checkbox-focus-top);
|
|
106
|
-
}
|
|
107
|
-
.tl-checkbox__input:hover:focus-visible::before {
|
|
108
|
-
width: 20px;
|
|
109
|
-
height: 20px;
|
|
110
|
-
left: 2px;
|
|
111
|
-
top: 2px;
|
|
112
|
-
background-color: var(--checkbox-border-hover);
|
|
201
|
+
.tl-checkbox__input::after {
|
|
202
|
+
background-color: var(--checkbox-icon-selected);
|
|
203
|
+
mask: var(--checkbox-icon-mask) no-repeat center;
|
|
204
|
+
-webkit-mask: var(--checkbox-icon-mask) no-repeat center;
|
|
205
|
+
opacity: 0;
|
|
206
|
+
z-index: 1;
|
|
113
207
|
}
|
|
114
|
-
.tl-checkbox__input:disabled {
|
|
115
|
-
|
|
208
|
+
.tl-checkbox__input:not(:disabled):hover::before {
|
|
209
|
+
border-color: var(--checkbox-border-hover);
|
|
210
|
+
background-color: var(--checkbox-background-hover);
|
|
211
|
+
box-shadow: 0 0 0 2px var(--checkbox-indicator-hover);
|
|
116
212
|
}
|
|
117
|
-
.tl-checkbox__input:
|
|
118
|
-
|
|
119
|
-
|
|
213
|
+
.tl-checkbox__input:focus-visible::before {
|
|
214
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
215
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
216
|
+
outline-offset: 1px;
|
|
217
|
+
z-index: 1;
|
|
218
|
+
border-radius: var(--checkbox-focus-ring-radius);
|
|
120
219
|
}
|
|
121
|
-
.tl-checkbox__input:
|
|
122
|
-
|
|
220
|
+
.tl-checkbox__input:checked::before {
|
|
221
|
+
border-color: var(--checkbox-border-selected);
|
|
222
|
+
background-color: var(--checkbox-background-selected);
|
|
123
223
|
}
|
|
124
224
|
.tl-checkbox__input:checked::after {
|
|
125
|
-
background-
|
|
126
|
-
|
|
127
|
-
background-repeat: no-repeat;
|
|
128
|
-
background-position: center;
|
|
129
|
-
border-color: var(--checkbox-border);
|
|
225
|
+
background-color: var(--checkbox-icon-selected);
|
|
226
|
+
opacity: 1;
|
|
130
227
|
}
|
|
131
|
-
.tl-checkbox__input:checked:not(:disabled):hover::
|
|
132
|
-
border-color: var(--checkbox-border-hover);
|
|
228
|
+
.tl-checkbox__input:checked:not(:disabled):hover::before {
|
|
229
|
+
border-color: var(--checkbox-border-selected-hover);
|
|
230
|
+
background-color: var(--checkbox-background-selected-hover);
|
|
133
231
|
}
|
|
134
|
-
.tl-checkbox__input:checked:disabled::after {
|
|
135
|
-
background-
|
|
136
|
-
background-color: var(--checkbox-fill-disabled);
|
|
137
|
-
border-color: var(--checkbox-border-disabled);
|
|
232
|
+
.tl-checkbox__input:checked:not(:disabled):hover::after {
|
|
233
|
+
background-color: var(--checkbox-icon-selected-hover);
|
|
138
234
|
}
|
|
139
|
-
.tl-checkbox__input
|
|
140
|
-
|
|
235
|
+
.tl-checkbox__input--indeterminate::before {
|
|
236
|
+
border-color: var(--checkbox-border-indeterminate);
|
|
237
|
+
background-color: var(--checkbox-background-indeterminate);
|
|
141
238
|
}
|
|
142
239
|
.tl-checkbox__input--indeterminate::after {
|
|
143
|
-
background-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
border-color: var(--checkbox-border);
|
|
240
|
+
background-color: var(--checkbox-icon-indeterminate);
|
|
241
|
+
mask: var(--checkbox-icon-mask-indeterminate) no-repeat center;
|
|
242
|
+
-webkit-mask: var(--checkbox-icon-mask-indeterminate) no-repeat center;
|
|
243
|
+
opacity: 1;
|
|
148
244
|
}
|
|
149
|
-
.tl-checkbox__input--indeterminate:not(:disabled):hover::
|
|
150
|
-
border-color: var(--checkbox-border-hover);
|
|
245
|
+
.tl-checkbox__input--indeterminate:not(:disabled):hover::before {
|
|
246
|
+
border-color: var(--checkbox-border-indeterminate-hover);
|
|
247
|
+
background-color: var(--checkbox-background-indeterminate-hover);
|
|
151
248
|
}
|
|
152
|
-
.tl-checkbox__input--indeterminate:disabled::after {
|
|
153
|
-
background-
|
|
154
|
-
background-color: var(--checkbox-fill-disabled);
|
|
155
|
-
border-color: var(--checkbox-border-disabled);
|
|
249
|
+
.tl-checkbox__input--indeterminate:not(:disabled):hover::after {
|
|
250
|
+
background-color: var(--checkbox-icon-indeterminate-hover);
|
|
156
251
|
}
|
|
157
|
-
.tl-checkbox__input
|
|
158
|
-
|
|
252
|
+
.tl-checkbox__input:disabled {
|
|
253
|
+
cursor: not-allowed;
|
|
254
|
+
opacity: var(--checkbox-opacity-disabled);
|
|
159
255
|
}
|
|
160
256
|
|
|
161
257
|
.tl-checkbox__label {
|
|
162
|
-
color: var(--checkbox-
|
|
258
|
+
color: var(--checkbox-text);
|
|
163
259
|
padding-left: var(--tds-spacing-element-4);
|
|
164
260
|
padding-top: var(--tds-spacing-element-4);
|
|
165
261
|
padding-bottom: var(--tds-spacing-element-4);
|
|
@@ -168,26 +264,10 @@
|
|
|
168
264
|
position: relative;
|
|
169
265
|
cursor: pointer;
|
|
170
266
|
}
|
|
267
|
+
.tl-checkbox__input:not(:disabled):hover + .tl-checkbox__label {
|
|
268
|
+
color: var(--checkbox-text-hover);
|
|
269
|
+
}
|
|
171
270
|
.tl-checkbox:has(:disabled) .tl-checkbox__label {
|
|
172
|
-
|
|
271
|
+
opacity: var(--checkbox-opacity-disabled);
|
|
173
272
|
cursor: not-allowed;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.tl-checkbox__input--indeterminate::after {
|
|
177
|
-
background-image: var(--checkbox-background-img-indeterminate);
|
|
178
|
-
background-color: var(--checkbox-border);
|
|
179
|
-
background-repeat: no-repeat;
|
|
180
|
-
background-position: center;
|
|
181
|
-
border-color: var(--checkbox-border);
|
|
182
|
-
}
|
|
183
|
-
.tl-checkbox__input--indeterminate:not(:disabled):hover::after {
|
|
184
|
-
border-color: var(--checkbox-border-hover);
|
|
185
|
-
}
|
|
186
|
-
.tl-checkbox__input--indeterminate:disabled::after {
|
|
187
|
-
background-image: var(--checkbox-background-img-indeterminate-disabled);
|
|
188
|
-
background-color: var(--checkbox-fill-disabled);
|
|
189
|
-
border-color: var(--checkbox-border-disabled);
|
|
190
|
-
}
|
|
191
|
-
.tl-checkbox__input--indeterminate:focus-visible::before {
|
|
192
|
-
background-color: var(--checkbox-border-focus);
|
|
193
273
|
}
|
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);
|
|
@@ -159,8 +161,8 @@
|
|
|
159
161
|
text-decoration: underline;
|
|
160
162
|
}
|
|
161
163
|
.tl-footer__link:focus-visible {
|
|
162
|
-
outline:
|
|
163
|
-
box-shadow: 0 0 0 1px var(--
|
|
164
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
165
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
164
166
|
outline-offset: 1px;
|
|
165
167
|
z-index: 1;
|
|
166
168
|
}
|
|
@@ -219,8 +221,8 @@
|
|
|
219
221
|
background-color: var(--footer-top-button-active);
|
|
220
222
|
}
|
|
221
223
|
.tl-footer__top-title:focus-visible {
|
|
222
|
-
outline:
|
|
223
|
-
box-shadow: 0 0 0
|
|
224
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
225
|
+
box-shadow: inset 0 0 0 3px var(--component--focus-ring-color-discrete);
|
|
224
226
|
outline-offset: -2px;
|
|
225
227
|
z-index: 1;
|
|
226
228
|
}
|
|
@@ -240,8 +242,8 @@
|
|
|
240
242
|
text-decoration: none;
|
|
241
243
|
}
|
|
242
244
|
.tl-footer__main .tl-footer__link:focus-visible {
|
|
243
|
-
outline:
|
|
244
|
-
box-shadow: 0 0 0 1px var(--
|
|
245
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
246
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
245
247
|
outline-offset: 1px;
|
|
246
248
|
z-index: 1;
|
|
247
249
|
}
|