@scania/tegel-lite 0.1.0-dev-test-beta.0 → 0.1.0-dropdown-vars-beta.1
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/fonts/traton/TratonTypeDisplay-Bold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Bold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Bold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Bold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Italic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Italic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Medium.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Medium.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Regular.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Regular.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBoldItalic.woff2 +0 -0
- 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 -0
- 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 +3751 -3642
- package/dist/global.css +148 -17
- package/dist/scania-variables.css +521 -310
- package/dist/tl-accordion.css +92 -36
- package/dist/tl-banner.css +88 -13
- package/dist/tl-block.css +62 -7
- package/dist/tl-breadcrumbs.css +55 -6
- package/dist/tl-button.css +181 -156
- package/dist/tl-card.css +43 -62
- package/dist/tl-checkbox.css +195 -115
- package/dist/tl-chip.css +152 -12
- package/dist/tl-datetime.css +45 -34
- package/dist/tl-divider.css +76 -6
- package/dist/tl-dropdown.css +387 -230
- package/dist/tl-folder-tabs.css +167 -51
- package/dist/tl-footer.css +88 -34
- package/dist/tl-header.css +469 -387
- package/dist/tl-icon.css +5 -1
- package/dist/tl-inline-tabs.css +164 -61
- package/dist/tl-link.css +114 -16
- package/dist/tl-message.css +128 -14
- package/dist/tl-modal.css +111 -16
- package/dist/tl-navigation-tabs.css +167 -51
- 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-side-menu.css +346 -326
- package/dist/tl-text-field.css +265 -77
- package/dist/tl-textarea.css +282 -76
- package/dist/tl-toast.css +119 -10
- package/dist/tl-toggle.css +149 -44
- package/dist/tl-tooltip.css +63 -15
- package/dist/traton-variables.css +361 -30
- package/package.json +12 -24
- package/dist/tl-badge.css +0 -45
- package/dist/tl-checkbox-vars.css +0 -38
- package/dist/tl-slider.css +0 -2250
- 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-chip.css
CHANGED
|
@@ -1,20 +1,158 @@
|
|
|
1
1
|
/* Typography Usage mixins */
|
|
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-chip-background-standard-default: var(--scania-color-grey-150);
|
|
12
|
+
--component-chip-background-standard-hover: var(--scania-color-grey-200);
|
|
13
|
+
--component-chip-background-selected-default: var(--color-system-info-default);
|
|
14
|
+
--component-chip-background-selected-hover: var(--color-system-info-defined);
|
|
15
|
+
--component-chip-border-radius-full: var(--scania-unit-24);
|
|
16
|
+
--component-chip-border-radius-none: var(--scania-unit-0);
|
|
17
|
+
--component-chip-border-radius-default: var(--scania-unit-24);
|
|
18
|
+
--component-chip-border-selected-default: var(--color-border-soft);
|
|
19
|
+
--component-chip-border-selected-hover: var(--color-border-strong);
|
|
20
|
+
--component-chip-border-selected-active: var(--color-border-none);
|
|
21
|
+
--component-chip-border-standard-default: var(--color-border-subtle);
|
|
22
|
+
--component-chip-border-standard-hover: var(--color-border-subtle);
|
|
23
|
+
--component-chip-border-standard-active: var(--color-border-none);
|
|
24
|
+
--component-chip-focus-ring-radius-default: var(--component--focus-ring-radius-full);
|
|
25
|
+
--component-chip-icon-default: var(--color-icon-strong);
|
|
26
|
+
--component-chip-icon-hover: var(--component-chip-icon-default);
|
|
27
|
+
--component-chip-icon-active: var(--component-chip-icon-default);
|
|
28
|
+
--component-chip-icon-selected-default: var(--color-icon-inverse-strong);
|
|
29
|
+
--component-chip-icon-selected-hover: var(--component-chip-icon-selected-default);
|
|
30
|
+
--component-chip-icon-selected-active: var(--component-chip-icon-selected-default);
|
|
31
|
+
--component-chip-opacity-disabled: var(--scania-opacity-25);
|
|
32
|
+
--component-chip-text-standard-default: var(--color-text-strong);
|
|
33
|
+
--component-chip-text-standard-hover: var(--color-text-strong);
|
|
34
|
+
--component-chip-text-standard-active: var(--color-text-strong);
|
|
35
|
+
--component-chip-text-selected-default: var(--color-text-inverse-strong);
|
|
36
|
+
--component-chip-text-selected-hover: var(--color-text-strong);
|
|
37
|
+
--component-chip-text-selected-active: var(--color-text-strong);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.traton .tds-mode-light,
|
|
41
|
+
.traton.tds-mode-light,
|
|
42
|
+
.traton .tl-mode-light,
|
|
43
|
+
.traton.tl-mode-light {
|
|
44
|
+
--component-chip-background-standard-default: var(--traton-color-grey-200);
|
|
45
|
+
--component-chip-background-standard-hover: var(--traton-color-grey-400);
|
|
46
|
+
--component-chip-background-selected-default: var(--traton-color-grey-300);
|
|
47
|
+
--component-chip-background-selected-hover: var(--traton-color-grey-400);
|
|
48
|
+
--component-chip-border-radius-full: var(--traton-unit-24);
|
|
49
|
+
--component-chip-border-radius-none: var(--traton-unit-0);
|
|
50
|
+
--component-chip-border-radius-default: var(--traton-unit-2);
|
|
51
|
+
--component-chip-border-selected-default: var(--color-border-none);
|
|
52
|
+
--component-chip-border-selected-hover: var(--color-border-none);
|
|
53
|
+
--component-chip-border-selected-active: var(--color-border-none);
|
|
54
|
+
--component-chip-border-standard-default: var(--color-border-none);
|
|
55
|
+
--component-chip-border-standard-hover: var(--color-border-none);
|
|
56
|
+
--component-chip-border-standard-active: var(--color-border-none);
|
|
57
|
+
--component-chip-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
58
|
+
--component-chip-icon-default: var(--color-icon-strong);
|
|
59
|
+
--component-chip-icon-hover: var(--component-chip-icon-default);
|
|
60
|
+
--component-chip-icon-active: var(--component-chip-icon-default);
|
|
61
|
+
--component-chip-icon-selected-default: var(--color-icon-strong);
|
|
62
|
+
--component-chip-icon-selected-hover: var(--component-chip-icon-selected-default);
|
|
63
|
+
--component-chip-icon-selected-active: var(--component-chip-icon-selected-default);
|
|
64
|
+
--component-chip-opacity-disabled: var(--traton-opacity-25);
|
|
65
|
+
--component-chip-text-standard-default: var(--color-text-strong);
|
|
66
|
+
--component-chip-text-standard-hover: var(--color-text-strong);
|
|
67
|
+
--component-chip-text-standard-active: var(--color-text-strong);
|
|
68
|
+
--component-chip-text-selected-default: var(--color-text-strong);
|
|
69
|
+
--component-chip-text-selected-hover: var(--color-text-strong);
|
|
70
|
+
--component-chip-text-selected-active: var(--color-text-strong);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tds-mode-dark,
|
|
74
|
+
.scania .tds-mode-dark,
|
|
75
|
+
.scania.tds-mode-dark,
|
|
76
|
+
.scania .tl-mode-dark,
|
|
77
|
+
.scania.tl-mode-dark {
|
|
78
|
+
--component-chip-background-standard-default: var(--scania-color-grey-800);
|
|
79
|
+
--component-chip-background-standard-hover: var(--scania-color-grey-750);
|
|
80
|
+
--component-chip-background-selected-default: var(--color-system-info-subtle);
|
|
81
|
+
--component-chip-background-selected-hover: var(--scania-color-blue-500);
|
|
82
|
+
--component-chip-border-radius-full: var(--scania-unit-24);
|
|
83
|
+
--component-chip-border-radius-none: var(--scania-unit-0);
|
|
84
|
+
--component-chip-border-radius-default: var(--scania-unit-24);
|
|
85
|
+
--component-chip-border-selected-default: var(--color-border-soft);
|
|
86
|
+
--component-chip-border-selected-hover: var(--color-border-strong);
|
|
87
|
+
--component-chip-border-selected-active: var(--color-border-none);
|
|
88
|
+
--component-chip-border-standard-default: var(--color-border-subtle);
|
|
89
|
+
--component-chip-border-standard-hover: var(--color-border-subtle);
|
|
90
|
+
--component-chip-border-standard-active: var(--color-border-none);
|
|
91
|
+
--component-chip-focus-ring-radius-default: var(--component--focus-ring-radius-full);
|
|
92
|
+
--component-chip-icon-default: var(--color-icon-strong);
|
|
93
|
+
--component-chip-icon-hover: var(--component-chip-icon-default);
|
|
94
|
+
--component-chip-icon-active: var(--component-chip-icon-default);
|
|
95
|
+
--component-chip-icon-selected-default: var(--color-icon-strong);
|
|
96
|
+
--component-chip-icon-selected-hover: var(--component-chip-icon-selected-default);
|
|
97
|
+
--component-chip-icon-selected-active: var(--component-chip-icon-selected-default);
|
|
98
|
+
--component-chip-opacity-disabled: var(--scania-opacity-25);
|
|
99
|
+
--component-chip-text-standard-default: var(--color-text-strong);
|
|
100
|
+
--component-chip-text-standard-hover: var(--color-text-strong);
|
|
101
|
+
--component-chip-text-standard-active: var(--color-text-strong);
|
|
102
|
+
--component-chip-text-selected-default: var(--color-text-strong);
|
|
103
|
+
--component-chip-text-selected-hover: var(--color-text-inverse-strong);
|
|
104
|
+
--component-chip-text-selected-active: var(--color-text-inverse-strong);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.traton .tds-mode-dark,
|
|
108
|
+
.traton.tds-mode-dark,
|
|
109
|
+
.traton .tl-mode-dark,
|
|
110
|
+
.traton.tl-mode-dark {
|
|
111
|
+
--component-chip-background-standard-default: var(--traton-color-blue-800);
|
|
112
|
+
--component-chip-background-standard-hover: var(--traton-color-blue-600);
|
|
113
|
+
--component-chip-background-selected-default: var(--traton-color-blue-400);
|
|
114
|
+
--component-chip-background-selected-hover: var(--traton-color-blue-300);
|
|
115
|
+
--component-chip-border-radius-full: var(--traton-unit-24);
|
|
116
|
+
--component-chip-border-radius-none: var(--traton-unit-0);
|
|
117
|
+
--component-chip-border-radius-default: var(--traton-unit-2);
|
|
118
|
+
--component-chip-border-selected-default: var(--color-border-none);
|
|
119
|
+
--component-chip-border-selected-hover: var(--color-border-none);
|
|
120
|
+
--component-chip-border-selected-active: var(--color-border-none);
|
|
121
|
+
--component-chip-border-standard-default: var(--color-border-none);
|
|
122
|
+
--component-chip-border-standard-hover: var(--color-border-none);
|
|
123
|
+
--component-chip-border-standard-active: var(--color-border-none);
|
|
124
|
+
--component-chip-focus-ring-radius-default: var(--component--focus-ring-radius-medium);
|
|
125
|
+
--component-chip-icon-default: var(--color-icon-strong);
|
|
126
|
+
--component-chip-icon-hover: var(--component-chip-icon-default);
|
|
127
|
+
--component-chip-icon-active: var(--component-chip-icon-default);
|
|
128
|
+
--component-chip-icon-selected-default: var(--color-icon-inverse-strong);
|
|
129
|
+
--component-chip-icon-selected-hover: var(--component-chip-icon-selected-default);
|
|
130
|
+
--component-chip-icon-selected-active: var(--component-chip-icon-selected-default);
|
|
131
|
+
--component-chip-opacity-disabled: var(--traton-opacity-25);
|
|
132
|
+
--component-chip-text-standard-default: var(--color-text-strong);
|
|
133
|
+
--component-chip-text-standard-hover: var(--color-text-strong);
|
|
134
|
+
--component-chip-text-standard-active: var(--color-text-strong);
|
|
135
|
+
--component-chip-text-selected-default: var(--color-text-inverse-strong);
|
|
136
|
+
--component-chip-text-selected-hover: var(--color-text-inverse-strong);
|
|
137
|
+
--component-chip-text-selected-active: var(--color-text-inverse-strong);
|
|
138
|
+
}
|
|
139
|
+
|
|
2
140
|
.tl-chip {
|
|
3
|
-
--chip-text: var(--component-chip-text-default);
|
|
141
|
+
--chip-text: var(--component-chip-text-standard-default);
|
|
4
142
|
--chip-text-active: var(--component-chip-text-selected-default);
|
|
5
|
-
--chip-background: var(--component-chip-background-default);
|
|
6
|
-
--chip-background-hover: var(--component-chip-background-hover);
|
|
7
|
-
--chip-background-focus: var(--component-chip-background-hover);
|
|
143
|
+
--chip-background: var(--component-chip-background-standard-default);
|
|
144
|
+
--chip-background-hover: var(--component-chip-background-standard-hover);
|
|
145
|
+
--chip-background-focus: var(--component-chip-background-standard-hover);
|
|
8
146
|
--chip-background-active: var(--component-chip-background-selected-default);
|
|
9
147
|
--chip-background-active-hover: var(--component-chip-background-selected-hover);
|
|
10
148
|
--chip-focused-on-selected: var(--component-chip-background-selected-default);
|
|
11
|
-
--chip-border: var(--component-chip-border-default);
|
|
12
|
-
--chip-border-hover: var(--component-chip-border-hover);
|
|
149
|
+
--chip-border: var(--component-chip-border-standard-default);
|
|
150
|
+
--chip-border-hover: var(--component-chip-border-standard-hover);
|
|
13
151
|
--chip-border-selected: var(--component-chip-border-selected-default);
|
|
14
152
|
--chip-border-selected-hover: var(--component-chip-border-selected-hover);
|
|
15
153
|
--chip-border-radius: calc(var(--component-chip-border-radius-default) * 1px);
|
|
16
|
-
--chip-opacity-disabled: var(--component-chip-opacity-disabled);
|
|
17
|
-
--chip-icon-fill: var(--component-chip-text-default);
|
|
154
|
+
--chip-opacity-disabled: calc(var(--component-chip-opacity-disabled) / 100);
|
|
155
|
+
--chip-icon-fill: var(--component-chip-text-standard-default);
|
|
18
156
|
--chip-icon-fill-active: var(--component-chip-text-selected-default);
|
|
19
157
|
}
|
|
20
158
|
|
|
@@ -44,9 +182,10 @@
|
|
|
44
182
|
border-color: var(--chip-border-hover);
|
|
45
183
|
}
|
|
46
184
|
.tl-chip:focus-visible {
|
|
47
|
-
outline:
|
|
48
|
-
box-shadow: 0 0 0 1px var(--
|
|
185
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
186
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
49
187
|
outline-offset: 1px;
|
|
188
|
+
z-index: 1;
|
|
50
189
|
background-color: var(--chip-background-focus);
|
|
51
190
|
}
|
|
52
191
|
.tl-chip--sm {
|
|
@@ -69,9 +208,10 @@
|
|
|
69
208
|
border-color: var(--chip-border-selected-hover);
|
|
70
209
|
}
|
|
71
210
|
.tl-chip--selected:focus-visible {
|
|
72
|
-
outline:
|
|
73
|
-
box-shadow: 0 0 0 1px var(--
|
|
211
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
212
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
74
213
|
outline-offset: 1px;
|
|
214
|
+
z-index: 1;
|
|
75
215
|
background-color: var(--chip-focused-on-selected);
|
|
76
216
|
}
|
|
77
217
|
.tl-chip:disabled {
|
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
|
@@ -1,7 +1,65 @@
|
|
|
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-divider-border-discrete-default: var(--scania-color-grey-200);
|
|
11
|
+
--component-divider-border-subtle-default: var(--scania-color-grey-350);
|
|
12
|
+
--component-divider-border-soft-default: var(--scania-color-grey-500);
|
|
13
|
+
--component-divider-border-defined-default: var(--scania-color-grey-650);
|
|
14
|
+
--component-divider-border-strong-default: var(--color-border-strong);
|
|
15
|
+
--component-divider-border-expressive-default: var(--scania-color-blue-700);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.traton .tds-mode-light,
|
|
19
|
+
.traton.tds-mode-light,
|
|
20
|
+
.traton .tl-mode-light,
|
|
21
|
+
.traton.tl-mode-light {
|
|
22
|
+
--component-divider-border-discrete-default: var(--color-border-discrete);
|
|
23
|
+
--component-divider-border-subtle-default: var(--color-border-subtle);
|
|
24
|
+
--component-divider-border-soft-default: var(--color-border-soft);
|
|
25
|
+
--component-divider-border-defined-default: var(--color-border-defined);
|
|
26
|
+
--component-divider-border-strong-default: var(--color-border-strong);
|
|
27
|
+
--component-divider-border-expressive-default: var(--component-divider-border-strong-default);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tds-mode-dark,
|
|
31
|
+
.scania .tds-mode-dark,
|
|
32
|
+
.scania.tds-mode-dark,
|
|
33
|
+
.scania .tl-mode-dark,
|
|
34
|
+
.scania.tl-mode-dark {
|
|
35
|
+
--component-divider-border-discrete-default: var(--color-border-discrete);
|
|
36
|
+
--component-divider-border-subtle-default: var(--color-border-subtle);
|
|
37
|
+
--component-divider-border-soft-default: var(--color-border-soft);
|
|
38
|
+
--component-divider-border-defined-default: var(--color-border-defined);
|
|
39
|
+
--component-divider-border-strong-default: var(--color-border-strong);
|
|
40
|
+
--component-divider-border-expressive-default: var(--scania-color-blue-800);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.traton .tds-mode-dark,
|
|
44
|
+
.traton.tds-mode-dark,
|
|
45
|
+
.traton .tl-mode-dark,
|
|
46
|
+
.traton.tl-mode-dark {
|
|
47
|
+
--component-divider-border-discrete-default: var(--color-border-discrete);
|
|
48
|
+
--component-divider-border-subtle-default: var(--color-border-subtle);
|
|
49
|
+
--component-divider-border-soft-default: var(--color-border-soft);
|
|
50
|
+
--component-divider-border-defined-default: var(--color-border-defined);
|
|
51
|
+
--component-divider-border-strong-default: var(--color-border-strong);
|
|
52
|
+
--component-divider-border-expressive-default: var(--component-divider-border-strong-default);
|
|
53
|
+
}
|
|
54
|
+
|
|
1
55
|
.tl-divider {
|
|
2
|
-
--divider-background: var(--
|
|
3
|
-
--divider-background-
|
|
4
|
-
--divider-background-
|
|
56
|
+
--divider-background: var(--component-divider-border-discrete-default);
|
|
57
|
+
--divider-background-discrete: var(--component-divider-border-discrete-default);
|
|
58
|
+
--divider-background-subtle: var(--component-divider-border-subtle-default);
|
|
59
|
+
--divider-background-soft: var(--component-divider-border-soft-default);
|
|
60
|
+
--divider-background-defined: var(--component-divider-border-defined-default);
|
|
61
|
+
--divider-background-strong: var(--component-divider-border-strong-default);
|
|
62
|
+
--divider-background-expressive: var(--component-divider-border-expressive-default);
|
|
5
63
|
}
|
|
6
64
|
|
|
7
65
|
.tl-divider {
|
|
@@ -13,12 +71,24 @@
|
|
|
13
71
|
.tl-divider {
|
|
14
72
|
background-color: var(--divider-background);
|
|
15
73
|
}
|
|
16
|
-
.tl-divider--expressive {
|
|
17
|
-
background-color: var(--divider-background-strong);
|
|
18
|
-
}
|
|
19
74
|
.tl-divider--discrete {
|
|
20
75
|
background-color: var(--divider-background-discrete);
|
|
21
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
|
+
}
|
|
22
92
|
.tl-divider--horizontal {
|
|
23
93
|
width: 100%;
|
|
24
94
|
height: 1px;
|