@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.
Files changed (134) hide show
  1. package/README.dev.md +1 -5
  2. package/README.md +12 -12
  3. package/dist/assets/icons/traton/back.svg +1 -0
  4. package/dist/assets/icons/traton/calendar_inactive.svg +1 -0
  5. package/dist/assets/icons/traton/card.svg +1 -0
  6. package/dist/assets/icons/traton/cart.svg +1 -0
  7. package/dist/assets/icons/traton/clock.svg +1 -0
  8. package/dist/assets/icons/traton/clock_inactive.svg +1 -0
  9. package/dist/assets/icons/traton/contact.svg +1 -0
  10. package/dist/assets/icons/traton/contact_inactive.svg +1 -0
  11. package/dist/assets/icons/traton/copy.svg +1 -0
  12. package/dist/assets/icons/traton/document.svg +1 -0
  13. package/dist/assets/icons/traton/document_check.svg +1 -0
  14. package/dist/assets/icons/traton/document_doc.svg +1 -0
  15. package/dist/assets/icons/traton/document_eye.svg +1 -0
  16. package/dist/assets/icons/traton/document_pdf.svg +1 -0
  17. package/dist/assets/icons/traton/document_tool.svg +1 -0
  18. package/dist/assets/icons/traton/document_word.svg +1 -0
  19. package/dist/assets/icons/traton/document_wrong.svg +1 -0
  20. package/dist/assets/icons/traton/document_xls.svg +1 -0
  21. package/dist/assets/icons/traton/dollar.svg +1 -0
  22. package/dist/assets/icons/traton/doner.svg +1 -0
  23. package/dist/assets/icons/traton/double_kebab.svg +1 -0
  24. package/dist/assets/icons/traton/download.svg +1 -0
  25. package/dist/assets/icons/traton/edit_inactive.svg +1 -1
  26. package/dist/assets/icons/traton/email.svg +1 -0
  27. package/dist/assets/icons/traton/export.svg +1 -0
  28. package/dist/assets/icons/traton/export_inactive.svg +1 -0
  29. package/dist/assets/icons/traton/eye.svg +1 -0
  30. package/dist/assets/icons/traton/eye_inactive.svg +1 -0
  31. package/dist/assets/icons/traton/face_dissatisfied.svg +1 -0
  32. package/dist/assets/icons/traton/face_neutral.svg +1 -0
  33. package/dist/assets/icons/traton/face_satisfied.svg +1 -0
  34. package/dist/assets/icons/traton/filters.svg +1 -0
  35. package/dist/assets/icons/traton/filters_inactive.svg +1 -0
  36. package/dist/assets/icons/traton/folder.svg +1 -0
  37. package/dist/assets/icons/traton/fuel_gauge.svg +1 -0
  38. package/dist/assets/icons/traton/fuel_gauge_inactive.svg +1 -0
  39. package/dist/assets/icons/traton/global.svg +1 -0
  40. package/dist/assets/icons/traton/heart.svg +1 -0
  41. package/dist/assets/icons/traton/heart_inactive.svg +1 -0
  42. package/dist/assets/icons/traton/home.svg +1 -0
  43. package/dist/assets/icons/traton/home_inactive.svg +1 -0
  44. package/dist/assets/icons/traton/image.svg +1 -0
  45. package/dist/assets/icons/traton/image_add.svg +1 -0
  46. package/dist/assets/icons/traton/image_inactive.svg +1 -0
  47. package/dist/assets/icons/traton/image_set.svg +1 -0
  48. package/dist/assets/icons/traton/kebab.svg +1 -0
  49. package/dist/assets/icons/traton/link.svg +1 -0
  50. package/dist/assets/icons/traton/link_broken.svg +1 -0
  51. package/dist/assets/icons/traton/lock.svg +1 -0
  52. package/dist/assets/icons/traton/meatballs.svg +1 -0
  53. package/dist/assets/icons/traton/message.svg +1 -0
  54. package/dist/assets/icons/traton/message_inactive.svg +1 -0
  55. package/dist/assets/icons/traton/mileage.svg +1 -0
  56. package/dist/assets/icons/traton/mileage_inactive.svg +1 -0
  57. package/dist/assets/icons/traton/notification_inactive.svg +1 -0
  58. package/dist/assets/icons/traton/phone.svg +1 -0
  59. package/dist/assets/icons/traton/phone_inactive.svg +1 -0
  60. package/dist/assets/icons/traton/pin.svg +1 -0
  61. package/dist/assets/icons/traton/pin_inactive.svg +1 -0
  62. package/dist/assets/icons/traton/placeholder.svg +1 -3
  63. package/dist/assets/icons/traton/print_inactive.svg +1 -0
  64. package/dist/assets/icons/traton/profile.svg +1 -0
  65. package/dist/assets/icons/traton/profile_inactive.svg +1 -0
  66. package/dist/assets/icons/traton/proportions.svg +1 -0
  67. package/dist/assets/icons/traton/proportions_inactive.svg +1 -0
  68. package/dist/assets/icons/traton/redirect.svg +1 -0
  69. package/dist/assets/icons/traton/report.svg +1 -0
  70. package/dist/assets/icons/traton/report_inactive.svg +1 -0
  71. package/dist/assets/icons/traton/save.svg +1 -0
  72. package/dist/assets/icons/traton/save_inactive.svg +1 -0
  73. package/dist/assets/icons/traton/send.svg +1 -0
  74. package/dist/assets/icons/traton/send_inactive.svg +1 -0
  75. package/dist/assets/icons/traton/settings.svg +1 -0
  76. package/dist/assets/icons/traton/skip_backwards.svg +1 -1
  77. package/dist/assets/icons/traton/skip_forward.svg +1 -1
  78. package/dist/assets/icons/traton/smartphone.svg +1 -0
  79. package/dist/assets/icons/traton/smartphone_inactive.svg +1 -0
  80. package/dist/assets/icons/traton/speedometer.svg +1 -0
  81. package/dist/assets/icons/traton/speedometer_inactive.svg +1 -0
  82. package/dist/assets/icons/traton/support.svg +1 -0
  83. package/dist/assets/icons/traton/timer.svg +1 -0
  84. package/dist/assets/icons/traton/tool.svg +1 -0
  85. package/dist/assets/icons/traton/tool_inactive.svg +1 -0
  86. package/dist/assets/icons/traton/trash.svg +1 -0
  87. package/dist/assets/icons/traton/trash_inactive.svg +1 -0
  88. package/dist/assets/icons/traton/unlock.svg +1 -0
  89. package/dist/assets/icons/traton/upload.svg +1 -0
  90. package/dist/assets/icons/traton/wallet.svg +1 -0
  91. package/dist/assets/icons/traton/warning.svg +1 -1
  92. package/dist/assets/icons/traton/wifi.svg +1 -0
  93. package/dist/assets/icons/traton/wifi_inactive.svg +1 -0
  94. package/dist/components.css +4361 -7007
  95. package/dist/global.css +76 -19
  96. package/dist/scania-variables.css +168 -4
  97. package/dist/tl-accordion.css +92 -36
  98. package/dist/tl-banner.css +86 -11
  99. package/dist/tl-block.css +62 -7
  100. package/dist/tl-breadcrumbs.css +4 -1
  101. package/dist/tl-button.css +9 -7
  102. package/dist/tl-card.css +23 -54
  103. package/dist/tl-checkbox.css +195 -115
  104. package/dist/tl-datetime.css +45 -34
  105. package/dist/tl-divider.css +15 -3
  106. package/dist/tl-footer.css +8 -6
  107. package/dist/tl-header.css +450 -385
  108. package/dist/tl-icon.css +4 -0
  109. package/dist/tl-link.css +9 -4
  110. package/dist/tl-message.css +128 -14
  111. package/dist/tl-modal.css +109 -14
  112. package/dist/tl-popover-canvas.css +112 -9
  113. package/dist/tl-popover-menu.css +134 -28
  114. package/dist/tl-radio-button.css +159 -96
  115. package/dist/tl-text-field.css +256 -76
  116. package/dist/tl-textarea.css +274 -76
  117. package/dist/tl-toast.css +117 -8
  118. package/dist/tl-toggle.css +147 -42
  119. package/dist/tl-tooltip.css +46 -0
  120. package/dist/traton-variables.css +322 -0
  121. package/package.json +8 -26
  122. package/dist/tl-badge.css +0 -45
  123. package/dist/tl-checkbox-vars.css +0 -38
  124. package/dist/tl-chip.css +0 -99
  125. package/dist/tl-dropdown.css +0 -921
  126. package/dist/tl-folder-tabs.css +0 -139
  127. package/dist/tl-inline-tabs.css +0 -173
  128. package/dist/tl-navigation-tabs.css +0 -171
  129. package/dist/tl-side-menu.css +0 -703
  130. package/dist/tl-slider.css +0 -2273
  131. package/dist/tl-spinner.css +0 -78
  132. package/dist/tl-step.css +0 -247
  133. package/dist/tl-stepper.css +0 -91
  134. package/dist/tl-table.css +0 -857
@@ -1,41 +1,152 @@
1
1
  /* Typography Usage mixins */
2
- .tl-checkbox {
3
- --checkbox-label: var(--color-foreground-text-strong);
4
- --checkbox-label-disabled: var(--color-foreground-text-disabled);
5
- --checkbox-icon: var(--color-foreground-icon-strong);
6
- --checkbox-fill: var(--color-foreground-icon-inverse-strong);
7
- --checkbox-fill-disabled: var(--color-background-accent-primary-disabled);
8
- --checkbox-border: var(--color-foreground-border-strong);
9
- --checkbox-border-hover: var(--color-foreground-border-subtle);
10
- --checkbox-border-focus: var(--color-foreground-border-accent-focus);
11
- --checkbox-border-disabled: var(--color-foreground-border-discrete);
12
- --checkbox-background-opacity-hover: 0.12;
13
- --checkbox-background-opacity-focus: 0.24;
14
- --checkbox-background-img: 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='%23ffffff' stroke-linecap='round' stroke-linejoin='round'/></svg>");
15
- --checkbox-background-img-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='%23ffffff'/></svg>");
16
- --checkbox-background-img-disabled: 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='%23b0b7c4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
17
- --checkbox-background-img-indeterminate-disabled: 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='%23b0b7c4'/></svg>");
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
- .tl-mode-dark .tl-checkbox {
21
- --checkbox-background-img: 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='%230D0F13' stroke-linecap='round' stroke-linejoin='round'/></svg>");
22
- --checkbox-background-img-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='%230D0F13'/></svg>");
23
- --checkbox-background-img-disabled: 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='%2356657A' stroke-linecap='round' stroke-linejoin='round'/></svg>");
24
- --checkbox-background-img-indeterminate-disabled: 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='%2356657A'/></svg>");
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
- .scania .tl-checkbox {
28
- --checkbox-focus-width: 20px;
29
- --checkbox-focus-height: 20px;
30
- --checkbox-focus-left: 2px;
31
- --checkbox-focus-top: 2px;
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 .tl-checkbox {
35
- --checkbox-focus-width: 22px;
36
- --checkbox-focus-height: 22px;
37
- --checkbox-focus-left: 1px;
38
- --checkbox-focus-top: 1px;
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-label);
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:not(:disabled):hover::before {
97
- background-color: var(--checkbox-border-hover);
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:focus-visible::before {
100
- background-color: var(--checkbox-border-focus);
101
- transition: opacity 0.2s ease-in-out;
102
- width: var(--checkbox-focus-width);
103
- height: var(--checkbox-focus-height);
104
- left: var(--checkbox-focus-left);
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
- cursor: not-allowed;
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:disabled::after {
118
- border-color: var(--checkbox-border-disabled);
119
- background-color: var(--checkbox-fill-disabled);
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:disabled:hover::before {
122
- display: none;
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-image: var(--checkbox-background-img);
126
- background-color: var(--checkbox-border);
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::after {
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-image: var(--checkbox-background-img-disabled);
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:checked:focus-visible::before {
140
- background-color: var(--checkbox-border-focus);
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-image: var(--checkbox-background-img-indeterminate);
144
- background-color: var(--checkbox-border);
145
- background-repeat: no-repeat;
146
- background-position: center;
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::after {
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-image: var(--checkbox-background-img-indeterminate-disabled);
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--indeterminate:focus-visible::before {
158
- background-color: var(--checkbox-border-focus);
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-label);
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
- color: var(--checkbox-label-disabled);
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
  }
@@ -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-foreground-text-subtle);
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-foreground-text-disabled);
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(--tds-grey-500);
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
- .tl-datetime__wrapper {
182
- /* CSS-generated icon */
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
- width: 20px;
191
- height: 20px;
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
- /* Default: calendar icon for date/datetime inputs */
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-datetime__wrapper::after {
193
+ .tl-datetime__icon {
203
194
  display: none;
204
195
  }
205
196
  }
206
- .tl-datetime__wrapper {
207
- /* Change to clock icon for time input */
197
+ .tl-datetime--error .tl-datetime__icon {
198
+ color: var(--datetime-icon-error);
208
199
  }
209
- .tl-datetime__wrapper:has(input[type=time])::after {
210
- mask-image: var(--icon-clock-svg);
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):not(:disabled) {
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):not(:disabled) {
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
  }
@@ -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;
@@ -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: var(--dimension-radius-focus-width) solid var(--color-system-info-default);
163
- box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
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: var(--dimension-radius-focus-width) solid var(--color-system-info-default);
223
- box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
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: var(--dimension-radius-focus-width) solid var(--color-system-info-default);
244
- box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
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
  }