@scania/tegel-lite 1.2.0 → 1.2.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/dist/components.css +12 -31
- package/dist/tl-datetime.css +13 -31
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -2222,45 +2222,26 @@
|
|
|
2222
2222
|
.tl-datetime:has(input:disabled) .tl-datetime__wrapper {
|
|
2223
2223
|
cursor: not-allowed;
|
|
2224
2224
|
}
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
}
|
|
2228
|
-
.tl-datetime__wrapper::after {
|
|
2229
|
-
content: "";
|
|
2225
|
+
|
|
2226
|
+
.tl-datetime__icon {
|
|
2230
2227
|
position: absolute;
|
|
2231
2228
|
top: 50%;
|
|
2232
|
-
transform: translateY(-50%);
|
|
2233
2229
|
right: 18px;
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
mask-repeat: no-repeat;
|
|
2237
|
-
mask-position: center;
|
|
2238
|
-
mask-size: 20px 20px;
|
|
2239
|
-
background-color: var(--datetime-icon);
|
|
2230
|
+
transform: translateY(-50%);
|
|
2231
|
+
color: var(--datetime-icon);
|
|
2240
2232
|
pointer-events: none;
|
|
2241
|
-
/*
|
|
2242
|
-
mask-image: var(--icon-calendar-svg);
|
|
2243
|
-
/* Firefox - hide our custom icon since Firefox shows its own */
|
|
2233
|
+
/* Firefox shows its own native picker icon — hide ours to avoid a duplicate */
|
|
2244
2234
|
}
|
|
2245
2235
|
@supports (-moz-appearance: none) {
|
|
2246
|
-
.tl-
|
|
2236
|
+
.tl-datetime__icon {
|
|
2247
2237
|
display: none;
|
|
2248
2238
|
}
|
|
2249
2239
|
}
|
|
2250
|
-
.tl-
|
|
2251
|
-
|
|
2252
|
-
}
|
|
2253
|
-
.tl-datetime__wrapper:has(input[type=time])::after {
|
|
2254
|
-
mask-image: var(--icon-clock-svg);
|
|
2255
|
-
}
|
|
2256
|
-
.tl-datetime--error .tl-datetime__wrapper::after {
|
|
2257
|
-
background-color: var(--datetime-icon-error);
|
|
2258
|
-
}
|
|
2259
|
-
.tl-datetime__wrapper {
|
|
2260
|
-
/* Disabled state */
|
|
2240
|
+
.tl-datetime--error .tl-datetime__icon {
|
|
2241
|
+
color: var(--datetime-icon-error);
|
|
2261
2242
|
}
|
|
2262
|
-
.tl-datetime:has(input:disabled) .tl-
|
|
2263
|
-
|
|
2243
|
+
.tl-datetime:has(input:disabled) .tl-datetime__icon {
|
|
2244
|
+
color: var(--datetime-icon-disabled);
|
|
2264
2245
|
}
|
|
2265
2246
|
|
|
2266
2247
|
.tl-datetime__input {
|
|
@@ -2292,7 +2273,7 @@
|
|
|
2292
2273
|
.tl-datetime__input:focus {
|
|
2293
2274
|
box-shadow: inset var(--datetime-box-shadow-focus);
|
|
2294
2275
|
}
|
|
2295
|
-
.tl-datetime:hover .tl-datetime__input:not(:focus
|
|
2276
|
+
.tl-datetime:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
2296
2277
|
box-shadow: inset var(--datetime-box-shadow-hover);
|
|
2297
2278
|
}
|
|
2298
2279
|
.tl-datetime--error .tl-datetime__input {
|
|
@@ -2301,7 +2282,7 @@
|
|
|
2301
2282
|
.tl-datetime--error .tl-datetime__input:focus {
|
|
2302
2283
|
box-shadow: inset var(--datetime-box-shadow-error-focus);
|
|
2303
2284
|
}
|
|
2304
|
-
.tl-datetime--error:hover .tl-datetime__input:not(:focus
|
|
2285
|
+
.tl-datetime--error:hover .tl-datetime__input:not(:focus, :disabled) {
|
|
2305
2286
|
box-shadow: inset var(--datetime-box-shadow-error-hover);
|
|
2306
2287
|
}
|
|
2307
2288
|
.tl-datetime--error .tl-datetime__input:disabled {
|
package/dist/tl-datetime.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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);
|
|
@@ -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
|
-
|
|
208
|
-
}
|
|
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 */
|
|
197
|
+
.tl-datetime--error .tl-datetime__icon {
|
|
198
|
+
color: var(--datetime-icon-error);
|
|
217
199
|
}
|
|
218
|
-
.tl-datetime:has(input:disabled) .tl-
|
|
219
|
-
|
|
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 {
|