@scania/tegel-lite 0.1.0 → 1.0.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/scania/configurator.svg +1 -0
- package/dist/assets/icons/traton/edit_inactive.svg +1 -0
- package/dist/assets/icons/traton/placeholder.svg +3 -0
- package/dist/assets/icons/traton/skip_backwards.svg +1 -0
- package/dist/assets/icons/traton/skip_forward.svg +1 -0
- package/dist/components.css +3997 -6847
- package/dist/global.css +627 -5641
- package/dist/scania-variables.css +661 -565
- package/dist/tl-accordion.css +92 -36
- package/dist/tl-banner.css +87 -12
- package/dist/tl-block.css +62 -7
- package/dist/tl-breadcrumbs.css +55 -6
- package/dist/tl-button.css +498 -87
- package/dist/tl-card.css +80 -54
- package/dist/tl-checkbox.css +195 -115
- package/dist/tl-datetime.css +7 -4
- package/dist/tl-divider.css +61 -3
- package/dist/tl-footer.css +116 -18
- package/dist/tl-icon.css +6 -2
- package/dist/tl-link.css +114 -16
- package/dist/tl-message.css +128 -14
- package/dist/tl-modal.css +165 -16
- package/dist/tl-radio-button.css +159 -96
- package/dist/tl-text-field.css +272 -140
- package/dist/tl-textarea.css +274 -76
- package/dist/tl-toast.css +119 -10
- package/dist/tl-toggle.css +150 -45
- package/dist/tl-tooltip.css +17 -15
- package/dist/traton-variables.css +682 -447
- package/package.json +6 -27
- package/dist/tl-badge.css +0 -44
- package/dist/tl-checkbox-vars.css +0 -38
- package/dist/tl-chip.css +0 -149
- package/dist/tl-dropdown.css +0 -857
- package/dist/tl-folder-tabs.css +0 -139
- package/dist/tl-header.css +0 -859
- package/dist/tl-inline-tabs.css +0 -173
- package/dist/tl-navigation-tabs.css +0 -171
- package/dist/tl-popover-canvas.css +0 -70
- package/dist/tl-popover-menu.css +0 -123
- package/dist/tl-side-menu.css +0 -540
- package/dist/tl-slider.css +0 -1854
- package/dist/tl-spinner.css +0 -78
- package/dist/tl-step.css +0 -213
- package/dist/tl-stepper.css +0 -57
- package/dist/tl-table.css +0 -827
- /package/dist/assets/icons/scania/{gift inactive.svg → gift_inactive.svg} +0 -0
package/dist/tl-text-field.css
CHANGED
|
@@ -1,64 +1,229 @@
|
|
|
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--input-background-primary: var(--color-background-layer-01);
|
|
11
|
+
--component--input-background-secondary: var(--color-background-layer-02);
|
|
12
|
+
--component--input-border-default: var(--color-border-soft);
|
|
13
|
+
--component--input-border-hover: var(--color-border-strong);
|
|
14
|
+
--component--input-border-success-default: var(--color-border-strong);
|
|
15
|
+
--component--input-border-error-default: var(--color-system-danger-default);
|
|
16
|
+
--component--input-border-radius-default: var(--scania-unit-4);
|
|
17
|
+
--component--input-border-radius-none: var(--scania-unit-0);
|
|
18
|
+
--component--input-border-radius-top-left: var(--component--input-border-radius-default);
|
|
19
|
+
--component--input-border-radius-top-right: var(--component--input-border-radius-default);
|
|
20
|
+
--component--input-border-radius-bottom-left: var(--component--input-border-radius-none);
|
|
21
|
+
--component--input-border-radius-bottom-right: var(--component--input-border-radius-none);
|
|
22
|
+
--component--input-border-width-default: var(--scania-unit-1);
|
|
23
|
+
--component--input-border-width-none: var(--scania-unit-0);
|
|
24
|
+
--component--input-border-width-top: var(--component--input-border-width-none);
|
|
25
|
+
--component--input-border-width-right: var(--component--input-border-width-none);
|
|
26
|
+
--component--input-border-width-bottom: var(--component--input-border-width-default);
|
|
27
|
+
--component--input-border-width-left: var(--component--input-border-width-none);
|
|
28
|
+
--component--input-icon-prefix-default: var(--color-text-defined);
|
|
29
|
+
--component--input-icon-suffix-default: var(--color-text-defined);
|
|
30
|
+
--component--input-icon-error-default: var(--color-system-danger-default);
|
|
31
|
+
--component--input-opacity-disabled: var(--scania-opacity-25);
|
|
32
|
+
--component--input-text-counter-default: var(--color-text-defined);
|
|
33
|
+
--component--input-text-label-default: var(--color-text-strong);
|
|
34
|
+
--component--input-text-helper-default: var(--color-text-defined);
|
|
35
|
+
--component--input-text-placeholder-default: var(--color-text-soft);
|
|
36
|
+
--component--input-text-value-default: var(--color-text-strong);
|
|
37
|
+
--component--input-text-error-default: var(--color-system-danger-default);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.traton .tds-mode-light,
|
|
41
|
+
.traton.tds-mode-light,
|
|
42
|
+
.traton .tl-mode-light,
|
|
43
|
+
.traton.tl-mode-light {
|
|
44
|
+
--component--input-background-primary: var(--color-background-layer-01);
|
|
45
|
+
--component--input-background-secondary: var(--color-background-layer-02);
|
|
46
|
+
--component--input-border-default: var(--color-border-soft);
|
|
47
|
+
--component--input-border-hover: var(--color-border-strong);
|
|
48
|
+
--component--input-border-success-default: var(--color-border-strong);
|
|
49
|
+
--component--input-border-error-default: var(--color-system-danger-default);
|
|
50
|
+
--component--input-border-radius-default: var(--traton-unit-4);
|
|
51
|
+
--component--input-border-radius-none: var(--traton-unit-0);
|
|
52
|
+
--component--input-border-radius-top-left: var(--component--input-border-radius-default);
|
|
53
|
+
--component--input-border-radius-top-right: var(--component--input-border-radius-default);
|
|
54
|
+
--component--input-border-radius-bottom-left: var(--component--input-border-radius-default);
|
|
55
|
+
--component--input-border-radius-bottom-right: var(--component--input-border-radius-default);
|
|
56
|
+
--component--input-border-width-default: var(--traton-unit-1);
|
|
57
|
+
--component--input-border-width-none: var(--traton-unit-0);
|
|
58
|
+
--component--input-border-width-top: var(--component--input-border-width-default);
|
|
59
|
+
--component--input-border-width-right: var(--component--input-border-width-default);
|
|
60
|
+
--component--input-border-width-bottom: var(--component--input-border-width-default);
|
|
61
|
+
--component--input-border-width-left: var(--component--input-border-width-default);
|
|
62
|
+
--component--input-icon-prefix-default: var(--color-text-defined);
|
|
63
|
+
--component--input-icon-suffix-default: var(--color-text-defined);
|
|
64
|
+
--component--input-icon-error-default: var(--color-system-danger-default);
|
|
65
|
+
--component--input-opacity-disabled: var(--traton-opacity-25);
|
|
66
|
+
--component--input-text-counter-default: var(--color-text-defined);
|
|
67
|
+
--component--input-text-label-default: var(--color-text-strong);
|
|
68
|
+
--component--input-text-helper-default: var(--color-text-defined);
|
|
69
|
+
--component--input-text-placeholder-default: var(--color-text-subtle);
|
|
70
|
+
--component--input-text-value-default: var(--color-text-strong);
|
|
71
|
+
--component--input-text-error-default: var(--color-system-danger-default);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tds-mode-dark,
|
|
75
|
+
.scania .tds-mode-dark,
|
|
76
|
+
.scania.tds-mode-dark,
|
|
77
|
+
.scania .tl-mode-dark,
|
|
78
|
+
.scania.tl-mode-dark {
|
|
79
|
+
--component--input-background-primary: var(--color-background-layer-01);
|
|
80
|
+
--component--input-background-secondary: var(--color-background-layer-02);
|
|
81
|
+
--component--input-border-default: var(--color-border-soft);
|
|
82
|
+
--component--input-border-hover: var(--color-border-strong);
|
|
83
|
+
--component--input-border-success-default: var(--color-border-strong);
|
|
84
|
+
--component--input-border-error-default: var(--color-system-danger-default);
|
|
85
|
+
--component--input-border-radius-default: var(--scania-unit-4);
|
|
86
|
+
--component--input-border-radius-none: var(--scania-unit-0);
|
|
87
|
+
--component--input-border-radius-top-left: var(--component--input-border-radius-default);
|
|
88
|
+
--component--input-border-radius-top-right: var(--component--input-border-radius-default);
|
|
89
|
+
--component--input-border-radius-bottom-left: var(--component--input-border-radius-none);
|
|
90
|
+
--component--input-border-radius-bottom-right: var(--component--input-border-radius-none);
|
|
91
|
+
--component--input-border-width-default: var(--scania-unit-1);
|
|
92
|
+
--component--input-border-width-none: var(--scania-unit-0);
|
|
93
|
+
--component--input-border-width-top: var(--component--input-border-width-none);
|
|
94
|
+
--component--input-border-width-right: var(--component--input-border-width-none);
|
|
95
|
+
--component--input-border-width-bottom: var(--component--input-border-width-default);
|
|
96
|
+
--component--input-border-width-left: var(--component--input-border-width-none);
|
|
97
|
+
--component--input-icon-prefix-default: var(--color-text-defined);
|
|
98
|
+
--component--input-icon-suffix-default: var(--color-text-defined);
|
|
99
|
+
--component--input-icon-error-default: var(--color-system-danger-default);
|
|
100
|
+
--component--input-opacity-disabled: var(--scania-opacity-25);
|
|
101
|
+
--component--input-text-counter-default: var(--color-text-defined);
|
|
102
|
+
--component--input-text-label-default: var(--color-text-strong);
|
|
103
|
+
--component--input-text-helper-default: var(--color-text-defined);
|
|
104
|
+
--component--input-text-placeholder-default: var(--color-text-soft);
|
|
105
|
+
--component--input-text-value-default: var(--color-text-strong);
|
|
106
|
+
--component--input-text-error-default: var(--color-system-danger-default);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.traton .tds-mode-dark,
|
|
110
|
+
.traton.tds-mode-dark,
|
|
111
|
+
.traton .tl-mode-dark,
|
|
112
|
+
.traton.tl-mode-dark {
|
|
113
|
+
--component--input-background-primary: var(--color-background-layer-01);
|
|
114
|
+
--component--input-background-secondary: var(--color-background-layer-02);
|
|
115
|
+
--component--input-border-default: var(--color-border-soft);
|
|
116
|
+
--component--input-border-hover: var(--color-border-strong);
|
|
117
|
+
--component--input-border-success-default: var(--color-border-strong);
|
|
118
|
+
--component--input-border-error-default: var(--color-system-danger-default);
|
|
119
|
+
--component--input-border-radius-default: var(--traton-unit-4);
|
|
120
|
+
--component--input-border-radius-none: var(--traton-unit-0);
|
|
121
|
+
--component--input-border-radius-top-left: var(--component--input-border-radius-default);
|
|
122
|
+
--component--input-border-radius-top-right: var(--component--input-border-radius-default);
|
|
123
|
+
--component--input-border-radius-bottom-left: var(--component--input-border-radius-default);
|
|
124
|
+
--component--input-border-radius-bottom-right: var(--component--input-border-radius-default);
|
|
125
|
+
--component--input-border-width-default: var(--traton-unit-1);
|
|
126
|
+
--component--input-border-width-none: var(--traton-unit-0);
|
|
127
|
+
--component--input-border-width-top: var(--component--input-border-width-default);
|
|
128
|
+
--component--input-border-width-right: var(--component--input-border-width-default);
|
|
129
|
+
--component--input-border-width-bottom: var(--component--input-border-width-default);
|
|
130
|
+
--component--input-border-width-left: var(--component--input-border-width-default);
|
|
131
|
+
--component--input-icon-prefix-default: var(--color-text-defined);
|
|
132
|
+
--component--input-icon-suffix-default: var(--color-text-defined);
|
|
133
|
+
--component--input-icon-error-default: var(--color-system-danger-default);
|
|
134
|
+
--component--input-opacity-disabled: var(--traton-opacity-25);
|
|
135
|
+
--component--input-text-counter-default: var(--color-text-defined);
|
|
136
|
+
--component--input-text-label-default: var(--color-text-strong);
|
|
137
|
+
--component--input-text-helper-default: var(--color-text-defined);
|
|
138
|
+
--component--input-text-placeholder-default: var(--color-text-subtle);
|
|
139
|
+
--component--input-text-value-default: var(--color-text-strong);
|
|
140
|
+
--component--input-text-error-default: var(--color-system-danger-default);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Do not edit directly, this file was auto-generated.
|
|
145
|
+
*/
|
|
146
|
+
:root,
|
|
147
|
+
.tds-mode-light,
|
|
148
|
+
.scania .tds-mode-light,
|
|
149
|
+
.scania.tds-mode-light,
|
|
150
|
+
.scania .tl-mode-light,
|
|
151
|
+
.scania.tl-mode-light {
|
|
152
|
+
--component-text-field-focus-ring-radius-primary: var(--component--focus-ring-radius-extra-large);
|
|
153
|
+
--component-text-field-focus-ring-radius-secondary: var(--component--focus-ring-radius-none);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.traton .tds-mode-light,
|
|
157
|
+
.traton.tds-mode-light,
|
|
158
|
+
.traton .tl-mode-light,
|
|
159
|
+
.traton.tl-mode-light {
|
|
160
|
+
--component-text-field-focus-ring-radius-primary: var(--component--focus-ring-radius-extra-large);
|
|
161
|
+
--component-text-field-focus-ring-radius-secondary: var(
|
|
162
|
+
--component--focus-ring-radius-extra-large
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.tds-mode-dark,
|
|
167
|
+
.scania .tds-mode-dark,
|
|
168
|
+
.scania.tds-mode-dark,
|
|
169
|
+
.scania .tl-mode-dark,
|
|
170
|
+
.scania.tl-mode-dark {
|
|
171
|
+
--component-text-field-focus-ring-radius-primary: var(--component--focus-ring-radius-extra-large);
|
|
172
|
+
--component-text-field-focus-ring-radius-secondary: var(--component--focus-ring-radius-none);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.traton .tds-mode-dark,
|
|
176
|
+
.traton.tds-mode-dark,
|
|
177
|
+
.traton .tl-mode-dark,
|
|
178
|
+
.traton.tl-mode-dark {
|
|
179
|
+
--component-text-field-focus-ring-radius-primary: var(--component--focus-ring-radius-extra-large);
|
|
180
|
+
--component-text-field-focus-ring-radius-secondary: var(
|
|
181
|
+
--component--focus-ring-radius-extra-large
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
1
185
|
.tl-text-field {
|
|
2
|
-
--text-field-background: var(--
|
|
3
|
-
--text-field-text: var(--
|
|
4
|
-
--text-field-placeholder: var(--
|
|
5
|
-
--text-field-affix: var(--
|
|
6
|
-
--text-field-
|
|
7
|
-
--text-field-label
|
|
186
|
+
--text-field-background: var(--component--input-background-primary);
|
|
187
|
+
--text-field-text: var(--component--input-text-value-default);
|
|
188
|
+
--text-field-placeholder: var(--component--input-text-placeholder-default);
|
|
189
|
+
--text-field-affix: var(--component--input-icon-prefix-default);
|
|
190
|
+
--text-field-affix-suffix: var(--component--input-icon-suffix-default);
|
|
191
|
+
--text-field-label: var(--component--input-text-label-default);
|
|
192
|
+
--text-field-label-inside: var(--component--input-text-label-default);
|
|
8
193
|
--text-field-label-inside-left: 16px;
|
|
9
194
|
--text-field-affix-width-icon: 35px;
|
|
10
195
|
--text-field-affix-width-text: 8px;
|
|
11
|
-
--text-field-
|
|
12
|
-
--text-field-
|
|
13
|
-
--text-field-error: var(--
|
|
14
|
-
--text-field-affix-error: var(--
|
|
15
|
-
--text-field-background-disabled: var(--
|
|
16
|
-
--text-field-text-disabled: var(--color-
|
|
17
|
-
--text-field-placeholder-disabled: var(--color-
|
|
18
|
-
--text-field-label-disabled: var(--color-
|
|
19
|
-
--text-field-affix-disabled: var(--color-
|
|
20
|
-
--text-field-textcounter: var(--
|
|
196
|
+
--text-field-helper: var(--component--input-text-helper-default);
|
|
197
|
+
--text-field-error: var(--component--input-text-error-default);
|
|
198
|
+
--text-field-error-icon: var(--component--input-icon-error-default);
|
|
199
|
+
--text-field-affix-error: var(--component--input-icon-error-default);
|
|
200
|
+
--text-field-background-disabled: var(--component--input-background-primary);
|
|
201
|
+
--text-field-text-disabled: var(--color-text-disabled);
|
|
202
|
+
--text-field-placeholder-disabled: var(--color-text-disabled);
|
|
203
|
+
--text-field-label-disabled: var(--color-text-disabled);
|
|
204
|
+
--text-field-affix-disabled: var(--color-text-disabled);
|
|
205
|
+
--text-field-textcounter: var(--component--input-text-counter-default);
|
|
206
|
+
--text-field-opacity-disabled: var(--component--input-opacity-disabled);
|
|
207
|
+
--text-field-border-radius: calc(var(--component--input-border-radius-top-left) * 1px)
|
|
208
|
+
calc(var(--component--input-border-radius-top-right) * 1px)
|
|
209
|
+
calc(var(--component--input-border-radius-bottom-right) * 1px)
|
|
210
|
+
calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
211
|
+
--text-field-border-color: var(--component--input-border-default);
|
|
212
|
+
--text-field-border-color-hover: var(--component--input-border-hover);
|
|
213
|
+
--text-field-border-color-success: var(--component--input-border-success-default);
|
|
214
|
+
--text-field-border-color-error: var(--component--input-border-error-default);
|
|
215
|
+
--text-field-border-color-readonly: var(--color-border-strong);
|
|
216
|
+
--text-field-focus-ring-radius: var(--component-text-field-focus-ring-radius-primary);
|
|
21
217
|
}
|
|
22
218
|
.tl-text-field--primary {
|
|
23
|
-
--text-field-background: var(--
|
|
24
|
-
--text-field-background-disabled: var(--
|
|
219
|
+
--text-field-background: var(--component--input-background-primary);
|
|
220
|
+
--text-field-background-disabled: var(--component--input-background-primary);
|
|
221
|
+
--text-field-focus-ring-radius: var(--component-text-field-focus-ring-radius-primary);
|
|
25
222
|
}
|
|
26
223
|
.tl-text-field--secondary {
|
|
27
|
-
--text-field-background: var(--
|
|
28
|
-
--text-field-background-disabled: var(--
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.tl-text-field,
|
|
32
|
-
.scania .tl-text-field {
|
|
33
|
-
--text-field-border-radius: 4px 4px 0 0;
|
|
34
|
-
--text-field-box-shadow: 0 -1px 0 0 var(--color-foreground-border-soft);
|
|
35
|
-
--text-field-box-shadow-hover: 0 -1px 0 0 var(--color-foreground-border-strong);
|
|
36
|
-
--text-field-box-shadow-focus: 0 -2px 0 0 var(--color-foreground-border-accent-focus);
|
|
37
|
-
--text-field-box-shadow-error: 0 -1px 0 0 var(--color-system-danger-default);
|
|
38
|
-
--text-field-box-shadow-error-hover: 0 -1px 0 0 var(--color-system-danger-default);
|
|
39
|
-
--text-field-box-shadow-error-focus: 0 -2px 0 0 var(--color-system-danger-default);
|
|
40
|
-
--text-field-box-shadow-success: 0 -1px 0 0 var(--color-foreground-border-strong);
|
|
41
|
-
--text-field-bar-focus: var(--color-foreground-border-accent-focus);
|
|
42
|
-
--text-field-bar-error: var(--color-system-danger-default);
|
|
43
|
-
--text-field-focus-outline: none;
|
|
44
|
-
--text-field-focus-outline-error: none;
|
|
45
|
-
--text-field-focus-outline-offset: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.traton .tl-text-field {
|
|
49
|
-
--text-field-border-radius: 4px 4px 4px 4px;
|
|
50
|
-
--text-field-box-shadow: 0 0 0 1px var(--color-foreground-border-soft);
|
|
51
|
-
--text-field-box-shadow-hover: 0 0 0 1px var(--color-foreground-border-strong);
|
|
52
|
-
--text-field-box-shadow-focus: 0 0 0 2px var(--color-foreground-border-accent-focus);
|
|
53
|
-
--text-field-box-shadow-success: 0 0 0 1px var(--color-foreground-border-strong);
|
|
54
|
-
--text-field-box-shadow-error: 0 0 0 1px var(--color-system-danger-default);
|
|
55
|
-
--text-field-box-shadow-error-hover: 0 0 0 1px var(--color-system-danger-default);
|
|
56
|
-
--text-field-box-shadow-error-focus: 0 0 0 2px var(--color-system-danger-default);
|
|
57
|
-
--text-field-focus-outline: 2px solid var(--color-foreground-border-accent-focus);
|
|
58
|
-
--text-field-focus-outline-error: 2px solid var(--color-system-danger-default);
|
|
59
|
-
--text-field-focus-outline-offset: 0;
|
|
60
|
-
--text-field-bar-focus: transparent;
|
|
61
|
-
--text-field-bar-error: transparent;
|
|
224
|
+
--text-field-background: var(--component--input-background-secondary);
|
|
225
|
+
--text-field-background-disabled: var(--component--input-background-secondary);
|
|
226
|
+
--text-field-focus-ring-radius: var(--component-text-field-focus-ring-radius-secondary);
|
|
62
227
|
}
|
|
63
228
|
|
|
64
229
|
/* Typography Usage mixins */
|
|
@@ -348,6 +513,10 @@
|
|
|
348
513
|
mask-image: var(--icon-document_tool-svg);
|
|
349
514
|
background-color: currentcolor;
|
|
350
515
|
}
|
|
516
|
+
.tl-icon--document_word {
|
|
517
|
+
mask-image: var(--icon-document_word-svg);
|
|
518
|
+
background-color: currentcolor;
|
|
519
|
+
}
|
|
351
520
|
.tl-icon--document_wrong {
|
|
352
521
|
mask-image: var(--icon-document_wrong-svg);
|
|
353
522
|
background-color: currentcolor;
|
|
@@ -524,8 +693,8 @@
|
|
|
524
693
|
mask-image: var(--icon-gift-svg);
|
|
525
694
|
background-color: currentcolor;
|
|
526
695
|
}
|
|
527
|
-
.tl-icon--
|
|
528
|
-
mask-image: var(--icon-
|
|
696
|
+
.tl-icon--gift_inactive {
|
|
697
|
+
mask-image: var(--icon-gift_inactive-svg);
|
|
529
698
|
background-color: currentcolor;
|
|
530
699
|
}
|
|
531
700
|
.tl-icon--global {
|
|
@@ -1268,7 +1437,20 @@
|
|
|
1268
1437
|
.tl-text-field--no-min-width {
|
|
1269
1438
|
min-width: auto;
|
|
1270
1439
|
}
|
|
1271
|
-
.tl-text-field
|
|
1440
|
+
.tl-text-field:has(.tl-text-field__input:disabled) {
|
|
1441
|
+
cursor: not-allowed;
|
|
1442
|
+
}
|
|
1443
|
+
.tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__input-wrapper, .tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__label {
|
|
1444
|
+
opacity: var(--text-field-opacity-disabled);
|
|
1445
|
+
}
|
|
1446
|
+
.tl-text-field .tl-icon {
|
|
1447
|
+
background-color: var(--text-field-affix);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.tl-text-field__input-wrapper {
|
|
1451
|
+
position: relative;
|
|
1452
|
+
}
|
|
1453
|
+
.tl-text-field:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)):not(.tl-text-field--hide-readonly-icon) .tl-text-field__input-wrapper::before {
|
|
1272
1454
|
content: "";
|
|
1273
1455
|
position: absolute;
|
|
1274
1456
|
top: 50%;
|
|
@@ -1283,18 +1465,6 @@
|
|
|
1283
1465
|
transform: translateY(-50%);
|
|
1284
1466
|
z-index: 1;
|
|
1285
1467
|
}
|
|
1286
|
-
.tl-text-field:not(.tl-text-field--label-inside):has(.tl-text-field__label):has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)):not(.tl-text-field--hide-readonly-icon)::before {
|
|
1287
|
-
top: calc(50% + 24px);
|
|
1288
|
-
}
|
|
1289
|
-
.tl-text-field:has(.tl-text-field__input:disabled) {
|
|
1290
|
-
cursor: not-allowed;
|
|
1291
|
-
}
|
|
1292
|
-
.tl-text-field .tl-icon {
|
|
1293
|
-
background-color: var(--text-field-affix);
|
|
1294
|
-
}
|
|
1295
|
-
:has(.tl-text-field__input:disabled) .tl-text-field .tl-icon {
|
|
1296
|
-
background-color: var(--text-field-affix-disabled);
|
|
1297
|
-
}
|
|
1298
1468
|
|
|
1299
1469
|
.tl-text-field__input {
|
|
1300
1470
|
all: unset;
|
|
@@ -1304,8 +1474,11 @@
|
|
|
1304
1474
|
width: 100%;
|
|
1305
1475
|
box-sizing: border-box;
|
|
1306
1476
|
margin: 0;
|
|
1307
|
-
border:
|
|
1477
|
+
border-style: solid;
|
|
1478
|
+
border-color: var(--text-field-border-color);
|
|
1479
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1308
1480
|
outline: none;
|
|
1481
|
+
transition: border-color 200ms ease;
|
|
1309
1482
|
}
|
|
1310
1483
|
.tl-text-field__input::placeholder {
|
|
1311
1484
|
color: var(--text-field-placeholder);
|
|
@@ -1330,42 +1503,46 @@
|
|
|
1330
1503
|
color: var(--text-field-text);
|
|
1331
1504
|
flex: 1;
|
|
1332
1505
|
order: 2;
|
|
1333
|
-
box-shadow: inset var(--text-field-box-shadow);
|
|
1334
|
-
transition: box-shadow 0.2s;
|
|
1335
1506
|
}
|
|
1336
1507
|
.tl-text-field__input:focus {
|
|
1337
|
-
|
|
1508
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
1509
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
1510
|
+
outline-offset: 1px;
|
|
1511
|
+
z-index: 1;
|
|
1338
1512
|
}
|
|
1339
1513
|
.tl-text-field:hover .tl-text-field__input:not(:focus):not(:disabled) {
|
|
1340
|
-
|
|
1514
|
+
border-color: var(--text-field-border-color-hover);
|
|
1341
1515
|
}
|
|
1342
1516
|
.tl-text-field--error .tl-text-field__input {
|
|
1343
|
-
|
|
1517
|
+
border-color: var(--text-field-border-color-error);
|
|
1344
1518
|
}
|
|
1345
1519
|
.tl-text-field--error .tl-text-field__input:focus {
|
|
1346
|
-
|
|
1520
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
1521
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
1522
|
+
outline-offset: 1px;
|
|
1523
|
+
z-index: 1;
|
|
1347
1524
|
}
|
|
1348
1525
|
.tl-text-field--error:hover .tl-text-field__input:not(:focus):not(:disabled) {
|
|
1349
|
-
|
|
1526
|
+
border-color: var(--text-field-border-color-error);
|
|
1350
1527
|
}
|
|
1351
1528
|
.tl-text-field--success:not(:has(.tl-text-field__input[readonly])):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input:not(:focus) {
|
|
1352
|
-
|
|
1529
|
+
border-color: var(--text-field-border-color-success);
|
|
1353
1530
|
}
|
|
1354
1531
|
.tl-text-field__input:disabled {
|
|
1355
|
-
box-shadow: none;
|
|
1356
|
-
background-color: var(--text-field-background-disabled);
|
|
1357
|
-
color: var(--text-field-text-disabled);
|
|
1358
1532
|
cursor: not-allowed;
|
|
1359
1533
|
pointer-events: none;
|
|
1360
1534
|
}
|
|
1361
1535
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input {
|
|
1362
|
-
|
|
1536
|
+
border-color: var(--text-field-border-color-readonly);
|
|
1363
1537
|
}
|
|
1364
1538
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input:focus {
|
|
1365
|
-
|
|
1539
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
1540
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
1541
|
+
outline-offset: 1px;
|
|
1542
|
+
z-index: 1;
|
|
1366
1543
|
}
|
|
1367
1544
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)):hover .tl-text-field__input:not(:focus) {
|
|
1368
|
-
|
|
1545
|
+
border-color: var(--text-field-border-color-hover);
|
|
1369
1546
|
}
|
|
1370
1547
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input {
|
|
1371
1548
|
user-select: auto;
|
|
@@ -1438,6 +1615,7 @@
|
|
|
1438
1615
|
letter-spacing: var(--detail-02-letter-spacing);
|
|
1439
1616
|
text-transform: var(--detail-02-text-transform);
|
|
1440
1617
|
position: absolute;
|
|
1618
|
+
top: 50%;
|
|
1441
1619
|
left: var(--text-field-label-inside-left, 16px);
|
|
1442
1620
|
color: var(--text-field-label-inside);
|
|
1443
1621
|
pointer-events: none;
|
|
@@ -1446,18 +1624,6 @@
|
|
|
1446
1624
|
transition: transform 0.15s, font-size 0.15s, color 0.15s, top 0.15s;
|
|
1447
1625
|
z-index: 1;
|
|
1448
1626
|
}
|
|
1449
|
-
.tl-text-field__label {
|
|
1450
|
-
/* Center label in input row before focus/fill */
|
|
1451
|
-
}
|
|
1452
|
-
.tl-text-field--label-inside.tl-text-field--lg .tl-text-field__label {
|
|
1453
|
-
top: 28px; /* half of 56px input height */
|
|
1454
|
-
}
|
|
1455
|
-
.tl-text-field--label-inside.tl-text-field--md .tl-text-field__label {
|
|
1456
|
-
top: 24px; /* half of 48px input height */
|
|
1457
|
-
}
|
|
1458
|
-
.tl-text-field--label-inside.tl-text-field--sm .tl-text-field__label {
|
|
1459
|
-
top: 20px; /* half of 40px input height */
|
|
1460
|
-
}
|
|
1461
1627
|
.tl-text-field--label-inside:has(.tl-text-field__prefix--icon) .tl-text-field__label {
|
|
1462
1628
|
left: 44px;
|
|
1463
1629
|
}
|
|
@@ -1509,7 +1675,7 @@
|
|
|
1509
1675
|
position: relative;
|
|
1510
1676
|
}
|
|
1511
1677
|
:has(.tl-text-field__input:disabled) .tl-text-field__helper {
|
|
1512
|
-
color: var(--color-
|
|
1678
|
+
color: var(--color-text-disabled);
|
|
1513
1679
|
}
|
|
1514
1680
|
.tl-text-field--error .tl-text-field__helper {
|
|
1515
1681
|
padding-left: 24px;
|
|
@@ -1521,7 +1687,7 @@
|
|
|
1521
1687
|
top: 0;
|
|
1522
1688
|
width: 16px;
|
|
1523
1689
|
height: 16px;
|
|
1524
|
-
background-color: var(--text-field-error);
|
|
1690
|
+
background-color: var(--text-field-error-icon);
|
|
1525
1691
|
mask-image: var(--icon-error-svg);
|
|
1526
1692
|
mask-size: contain;
|
|
1527
1693
|
mask-repeat: no-repeat;
|
|
@@ -1537,7 +1703,7 @@
|
|
|
1537
1703
|
color: var(--text-field-error);
|
|
1538
1704
|
}
|
|
1539
1705
|
.tl-text-field--error:has(.tl-text-field__input:disabled) .tl-text-field__helper::before {
|
|
1540
|
-
background-color: var(--color-
|
|
1706
|
+
background-color: var(--color-text-disabled);
|
|
1541
1707
|
}
|
|
1542
1708
|
|
|
1543
1709
|
.tl-text-field__charcounter {
|
|
@@ -1551,7 +1717,7 @@
|
|
|
1551
1717
|
color: var(--text-field-textcounter);
|
|
1552
1718
|
}
|
|
1553
1719
|
:has(.tl-text-field__input:disabled) .tl-text-field__charcounter {
|
|
1554
|
-
color: var(--color-
|
|
1720
|
+
color: var(--color-text-disabled);
|
|
1555
1721
|
}
|
|
1556
1722
|
.tl-text-field--error:not(:has(.tl-text-field__input[readonly])):not(:has(.tl-text-field__input:disabled)) .tl-text-field__charcounter {
|
|
1557
1723
|
color: var(--text-field-error);
|
|
@@ -1561,7 +1727,7 @@
|
|
|
1561
1727
|
}
|
|
1562
1728
|
|
|
1563
1729
|
.tl-text-field__charcounter-divider {
|
|
1564
|
-
color: var(--color-
|
|
1730
|
+
color: var(--color-text-disabled);
|
|
1565
1731
|
}
|
|
1566
1732
|
|
|
1567
1733
|
.tl-text-field__prefix {
|
|
@@ -1582,12 +1748,9 @@
|
|
|
1582
1748
|
position: absolute;
|
|
1583
1749
|
left: 16px;
|
|
1584
1750
|
top: 50%;
|
|
1585
|
-
transform: translateY(
|
|
1751
|
+
transform: translateY(-50%);
|
|
1586
1752
|
z-index: 1;
|
|
1587
1753
|
}
|
|
1588
|
-
.tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__prefix--text, .tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__prefix--icon {
|
|
1589
|
-
transform: translateY(calc(-50% + 24px));
|
|
1590
|
-
}
|
|
1591
1754
|
:has(.tl-text-field__input:disabled) .tl-text-field__prefix--text, :has(.tl-text-field__input:disabled) .tl-text-field__prefix--icon {
|
|
1592
1755
|
color: var(--text-field-affix-disabled);
|
|
1593
1756
|
}
|
|
@@ -1614,17 +1777,18 @@
|
|
|
1614
1777
|
align-items: center;
|
|
1615
1778
|
z-index: 1;
|
|
1616
1779
|
position: relative;
|
|
1780
|
+
color: var(--text-field-affix-suffix);
|
|
1781
|
+
}
|
|
1782
|
+
.tl-text-field__suffix--icon.tl-icon {
|
|
1783
|
+
background-color: var(--text-field-affix-suffix);
|
|
1617
1784
|
}
|
|
1618
1785
|
.tl-text-field__suffix--text, .tl-text-field__suffix--icon {
|
|
1619
1786
|
position: absolute;
|
|
1620
1787
|
right: 16px;
|
|
1621
1788
|
top: 50%;
|
|
1622
|
-
transform: translateY(
|
|
1789
|
+
transform: translateY(-50%);
|
|
1623
1790
|
z-index: 1;
|
|
1624
1791
|
}
|
|
1625
|
-
.tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__suffix--text, .tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__suffix--icon {
|
|
1626
|
-
transform: translateY(calc(-50% + 24px));
|
|
1627
|
-
}
|
|
1628
1792
|
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon {
|
|
1629
1793
|
color: var(--text-field-affix-disabled);
|
|
1630
1794
|
}
|
|
@@ -1636,38 +1800,6 @@
|
|
|
1636
1800
|
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon > .tl-icon {
|
|
1637
1801
|
background-color: var(--text-field-affix-disabled) !important;
|
|
1638
1802
|
}
|
|
1639
|
-
|
|
1640
|
-
.tl-text-field__suffix {
|
|
1641
|
-
font-family: var(--detail-02-font-family);
|
|
1642
|
-
font-size: var(--detail-02-font-size);
|
|
1643
|
-
line-height: var(--detail-02-line-height);
|
|
1644
|
-
font-weight: var(--detail-02-font-weight);
|
|
1645
|
-
letter-spacing: var(--detail-02-letter-spacing);
|
|
1646
|
-
text-transform: var(--detail-02-text-transform);
|
|
1647
|
-
color: var(--text-field-affix);
|
|
1648
|
-
align-self: center;
|
|
1649
|
-
display: flex;
|
|
1650
|
-
align-items: center;
|
|
1651
|
-
z-index: 1;
|
|
1652
|
-
position: relative;
|
|
1653
|
-
right: 16px;
|
|
1654
|
-
padding-right: 0;
|
|
1655
|
-
z-index: 1;
|
|
1656
|
-
}
|
|
1657
|
-
.tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__suffix--text, .tl-text-field:has(.tl-text-field__label):not(.tl-text-field--label-inside) .tl-text-field__suffix--icon {
|
|
1658
|
-
transform: translateY(calc(-50% + 24px));
|
|
1659
|
-
}
|
|
1660
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon {
|
|
1661
|
-
color: var(--text-field-affix-disabled);
|
|
1662
|
-
}
|
|
1663
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text > *, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon > * {
|
|
1664
|
-
color: var(--text-field-affix-disabled);
|
|
1665
|
-
}
|
|
1666
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text .tl-icon,
|
|
1667
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text > .tl-icon, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon .tl-icon,
|
|
1668
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon > .tl-icon {
|
|
1669
|
-
background-color: var(--text-field-affix-disabled);
|
|
1670
|
-
}
|
|
1671
1803
|
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon.tl-icon {
|
|
1672
1804
|
background-color: var(--text-field-affix-disabled);
|
|
1673
1805
|
}
|