@entur/form 5.2.3 → 5.3.2
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/CHANGELOG.md +14 -0
- package/dist/Switch.d.ts +18 -10
- package/dist/form.cjs.development.js +10 -2
- package/dist/form.cjs.development.js.map +1 -1
- package/dist/form.cjs.production.min.js +1 -1
- package/dist/form.cjs.production.min.js.map +1 -1
- package/dist/form.esm.js +11 -3
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +393 -255
- package/package.json +4 -4
package/dist/styles.css
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
--eds-form: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
-
textarea.eds-form-control.eds-textarea {
|
|
6
|
-
min-height: 7.75rem;
|
|
7
|
-
resize: vertical;
|
|
8
|
-
line-height: 1.5rem;
|
|
9
|
-
}/* DO NOT CHANGE!*/
|
|
10
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
11
5
|
.eds-fieldset {
|
|
12
6
|
margin: 0;
|
|
13
7
|
padding: 0;
|
|
@@ -72,8 +66,13 @@ textarea.eds-form-control.eds-textarea {
|
|
|
72
66
|
position: relative;
|
|
73
67
|
cursor: pointer;
|
|
74
68
|
height: 2rem;
|
|
69
|
+
width: -webkit-fit-content;
|
|
70
|
+
width: -moz-fit-content;
|
|
75
71
|
width: fit-content;
|
|
76
|
-
user-select: none;
|
|
72
|
+
-webkit-user-select: none;
|
|
73
|
+
-moz-user-select: none;
|
|
74
|
+
-ms-user-select: none;
|
|
75
|
+
user-select: none;
|
|
77
76
|
}
|
|
78
77
|
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
79
78
|
border-color: #54568c;
|
|
@@ -153,13 +152,22 @@ textarea.eds-form-control.eds-textarea {
|
|
|
153
152
|
display: flex;
|
|
154
153
|
align-items: center;
|
|
155
154
|
position: relative;
|
|
156
|
-
appearance: none;
|
|
155
|
+
-webkit-appearance: none;
|
|
156
|
+
-moz-appearance: none;
|
|
157
|
+
appearance: none;
|
|
157
158
|
cursor: pointer;
|
|
158
159
|
height: 2rem;
|
|
159
|
-
user-select: none;
|
|
160
|
+
-webkit-user-select: none;
|
|
161
|
+
-moz-user-select: none;
|
|
162
|
+
-ms-user-select: none;
|
|
163
|
+
user-select: none;
|
|
164
|
+
width: -webkit-fit-content;
|
|
165
|
+
width: -moz-fit-content;
|
|
160
166
|
width: fit-content;
|
|
161
167
|
}
|
|
162
168
|
.eds-checkbox__container--reduced-click-area {
|
|
169
|
+
height: -webkit-fit-content;
|
|
170
|
+
height: -moz-fit-content;
|
|
163
171
|
height: fit-content;
|
|
164
172
|
}
|
|
165
173
|
.eds-checkbox__container input {
|
|
@@ -176,7 +184,8 @@ textarea.eds-form-control.eds-textarea {
|
|
|
176
184
|
}
|
|
177
185
|
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
|
|
178
186
|
stroke: #ffffff;
|
|
179
|
-
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
187
|
+
-webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
188
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
180
189
|
}
|
|
181
190
|
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
182
191
|
opacity: 0.5;
|
|
@@ -206,12 +215,22 @@ textarea.eds-form-control.eds-textarea {
|
|
|
206
215
|
border-color: #8285a8;
|
|
207
216
|
}
|
|
208
217
|
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
218
|
+
.eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
219
|
+
outline: none;
|
|
220
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
221
|
+
outline-offset: 0.125rem;
|
|
222
|
+
}
|
|
223
|
+
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
209
224
|
.eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
210
225
|
outline: none;
|
|
211
226
|
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
212
227
|
outline-offset: 0.125rem;
|
|
213
228
|
}
|
|
214
229
|
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
230
|
+
.eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
231
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
232
|
+
}
|
|
233
|
+
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
215
234
|
.eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
216
235
|
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
217
236
|
}
|
|
@@ -255,245 +274,16 @@ textarea.eds-form-control.eds-textarea {
|
|
|
255
274
|
stroke-width: 0.375rem;
|
|
256
275
|
}
|
|
257
276
|
|
|
258
|
-
|
|
277
|
+
@-webkit-keyframes stroke {
|
|
259
278
|
100% {
|
|
260
279
|
stroke-dashoffset: 0;
|
|
261
280
|
}
|
|
262
|
-
}/* DO NOT CHANGE!*/
|
|
263
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
264
|
-
.eds-switch {
|
|
265
|
-
cursor: pointer;
|
|
266
|
-
user-select: none;
|
|
267
|
-
padding: 0.5rem 0;
|
|
268
|
-
width: fit-content;
|
|
269
|
-
}
|
|
270
|
-
.eds-switch input {
|
|
271
|
-
opacity: 0;
|
|
272
|
-
pointer-events: none;
|
|
273
|
-
position: absolute;
|
|
274
|
-
}
|
|
275
|
-
.eds-switch--right {
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-direction: row;
|
|
278
|
-
align-items: center;
|
|
279
|
-
}
|
|
280
|
-
.eds-switch--bottom {
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
}
|
|
285
|
-
.eds-switch__circle {
|
|
286
|
-
border-radius: 50%;
|
|
287
|
-
height: 1.25rem;
|
|
288
|
-
width: 1.25rem;
|
|
289
|
-
content: "";
|
|
290
|
-
display: flex;
|
|
291
|
-
align-items: center;
|
|
292
|
-
justify-content: center;
|
|
293
|
-
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
294
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
295
|
-
background-color: #ffffff;
|
|
296
|
-
top: 0.125rem;
|
|
297
|
-
left: 0.125rem;
|
|
298
|
-
position: relative;
|
|
299
|
-
}
|
|
300
|
-
.eds-switch__switch--large .eds-switch__circle {
|
|
301
|
-
height: 1.75rem;
|
|
302
|
-
width: 1.75rem;
|
|
303
|
-
}
|
|
304
|
-
.eds-switch .eds-switch__switch svg g,
|
|
305
|
-
.eds-switch .eds-switch__switch path {
|
|
306
|
-
fill: #949494;
|
|
307
|
-
transition: fill ease-in-out 0.1s;
|
|
308
|
-
}
|
|
309
|
-
.eds-switch__switch {
|
|
310
|
-
position: relative;
|
|
311
|
-
background-color: #d1d3d3;
|
|
312
|
-
content: "";
|
|
313
|
-
display: block;
|
|
314
|
-
transition: background-color 0.1s ease-in-out;
|
|
315
|
-
height: 1.5rem;
|
|
316
|
-
width: 3rem;
|
|
317
|
-
border-radius: 1.5rem;
|
|
318
|
-
}
|
|
319
|
-
.eds-switch--right .eds-switch__switch {
|
|
320
|
-
margin-right: 0.75rem;
|
|
321
|
-
}
|
|
322
|
-
:checked + .eds-switch__switch {
|
|
323
|
-
background-color: var(--eds-switch-color);
|
|
324
|
-
}
|
|
325
|
-
:checked + .eds-switch__switch .eds-switch__circle {
|
|
326
|
-
left: 1.625rem;
|
|
327
|
-
}
|
|
328
|
-
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
329
|
-
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
330
|
-
fill: var(--eds-switch-color);
|
|
331
|
-
}
|
|
332
|
-
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
333
|
-
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
|
|
334
|
-
fill: var(--eds-switch-color);
|
|
335
|
-
}
|
|
336
|
-
.eds-contrast :checked + .eds-switch__switch {
|
|
337
|
-
background-color: var(--eds-switch-contrast-color);
|
|
338
|
-
}
|
|
339
|
-
:focus + .eds-switch__switch {
|
|
340
|
-
outline: none;
|
|
341
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
342
|
-
outline-offset: 0.125rem;
|
|
343
|
-
}
|
|
344
|
-
.eds-contrast :focus + .eds-switch__switch {
|
|
345
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
346
|
-
}
|
|
347
|
-
.eds-contrast .eds-switch__switch {
|
|
348
|
-
background-color: #54568c;
|
|
349
|
-
}
|
|
350
|
-
.eds-switch__switch--large {
|
|
351
|
-
width: 3.75rem;
|
|
352
|
-
height: 2rem;
|
|
353
|
-
border-radius: 3.75rem;
|
|
354
|
-
}
|
|
355
|
-
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
356
|
-
left: 1.875rem;
|
|
357
|
-
}
|
|
358
|
-
.eds-switch__label--large--right {
|
|
359
|
-
font-size: 1rem;
|
|
360
|
-
}
|
|
361
|
-
.eds-switch__label--large--bottom {
|
|
362
|
-
font-size: 0.875rem;
|
|
363
|
-
}
|
|
364
|
-
.eds-switch__label--medium--right {
|
|
365
|
-
font-size: 0.875rem;
|
|
366
|
-
}
|
|
367
|
-
.eds-switch__label--medium--bottom {
|
|
368
|
-
font-size: 0.75rem;
|
|
369
|
-
}/* DO NOT CHANGE!*/
|
|
370
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
371
|
-
.eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
372
|
-
border-color: #181c56;
|
|
373
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
374
|
-
}
|
|
375
|
-
.eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
376
|
-
border-color: #ffffff;
|
|
377
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
378
|
-
}
|
|
379
|
-
.eds-radio-panel__wrapper input {
|
|
380
|
-
position: absolute;
|
|
381
|
-
opacity: 0;
|
|
382
|
-
cursor: pointer;
|
|
383
|
-
height: 0;
|
|
384
|
-
width: 0;
|
|
385
|
-
}
|
|
386
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
387
|
-
border-color: #181c56;
|
|
388
|
-
background: #f5f5f8;
|
|
389
|
-
}
|
|
390
|
-
.eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
391
|
-
border-color: #aeb7e2;
|
|
392
|
-
background: #393d79;
|
|
393
|
-
}
|
|
394
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
|
|
395
|
-
background-color: #181c56;
|
|
396
|
-
border-color: #181c56;
|
|
397
|
-
}
|
|
398
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
|
|
399
|
-
visibility: visible;
|
|
400
|
-
}
|
|
401
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
|
|
402
|
-
stroke: #5ac39a;
|
|
403
|
-
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
404
|
-
}
|
|
405
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
|
|
406
|
-
opacity: 0.5;
|
|
407
|
-
}
|
|
408
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
|
|
409
|
-
opacity: 0.5;
|
|
410
|
-
}
|
|
411
|
-
.eds-radio-panel__container {
|
|
412
|
-
background: #ffffff;
|
|
413
|
-
border: 0.125rem solid #d1d3d3;
|
|
414
|
-
border-radius: 0.25rem;
|
|
415
|
-
display: flex;
|
|
416
|
-
flex-direction: column;
|
|
417
|
-
justify-content: flex-start;
|
|
418
|
-
min-width: 20rem;
|
|
419
|
-
position: relative;
|
|
420
|
-
padding: 1rem;
|
|
421
|
-
user-select: none;
|
|
422
|
-
width: fit-content;
|
|
423
|
-
}
|
|
424
|
-
.eds-contrast .eds-radio-panel__container {
|
|
425
|
-
background: #181c56;
|
|
426
|
-
border-color: #54568c;
|
|
427
|
-
}
|
|
428
|
-
.eds-radio-panel__title-wrapper {
|
|
429
|
-
display: flex;
|
|
430
|
-
justify-content: space-between;
|
|
431
|
-
align-items: center;
|
|
432
|
-
}
|
|
433
|
-
.eds-radio-panel__label {
|
|
434
|
-
display: flex;
|
|
435
|
-
justify-content: center;
|
|
436
|
-
}
|
|
437
|
-
.eds-radio-panel__check {
|
|
438
|
-
height: 2rem;
|
|
439
|
-
width: 2rem;
|
|
440
|
-
margin-left: 1rem;
|
|
441
|
-
border-radius: 50%;
|
|
442
|
-
border: 0.125rem solid #e9e9e9;
|
|
443
|
-
display: flex;
|
|
444
|
-
align-items: center;
|
|
445
|
-
justify-content: center;
|
|
446
|
-
background: #ffffff;
|
|
447
|
-
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
448
|
-
}
|
|
449
|
-
.eds-contrast .eds-radio-panel__check {
|
|
450
|
-
background: #181c56;
|
|
451
|
-
border-color: #54568c;
|
|
452
|
-
}
|
|
453
|
-
.eds-radio-panel__additional-content {
|
|
454
|
-
margin-top: 0.25rem;
|
|
455
|
-
word-wrap: break-word;
|
|
456
|
-
}
|
|
457
|
-
.eds-radio-panel--medium .eds-radio-panel__title {
|
|
458
|
-
font-size: 1rem;
|
|
459
|
-
font-weight: 500;
|
|
460
|
-
}
|
|
461
|
-
.eds-radio-panel--medium.eds-radio-panel__container {
|
|
462
|
-
padding-bottom: 1rem;
|
|
463
|
-
min-height: 3.75rem;
|
|
464
|
-
}
|
|
465
|
-
.eds-radio-panel--large.eds-radio-panel__container {
|
|
466
|
-
min-height: 6.5rem;
|
|
467
|
-
}
|
|
468
|
-
.eds-radio-panel--large .eds-radio-panel__title-wrapper {
|
|
469
|
-
height: 2rem;
|
|
470
|
-
}
|
|
471
|
-
.eds-radio-panel--large .eds-radio-panel__title {
|
|
472
|
-
font-size: 1.25rem;
|
|
473
|
-
font-weight: 500;
|
|
474
|
-
line-height: 1.875rem;
|
|
475
|
-
}
|
|
476
|
-
.eds-radio-panel--disabled {
|
|
477
|
-
background: #f3f3f3;
|
|
478
|
-
border-color: #f3f3f3;
|
|
479
|
-
color: #656782;
|
|
480
|
-
}
|
|
481
|
-
.eds-contrast .eds-radio-panel--disabled {
|
|
482
|
-
background: #181c56;
|
|
483
|
-
border-style: dashed;
|
|
484
|
-
border-color: #54568c;
|
|
485
|
-
color: #babbcf;
|
|
486
281
|
}
|
|
487
282
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
.eds-checkbox-icon__path {
|
|
493
|
-
transform-origin: 50% 50%;
|
|
494
|
-
stroke-dasharray: 48;
|
|
495
|
-
stroke-dashoffset: 48;
|
|
496
|
-
stroke-width: 0.375rem;
|
|
283
|
+
@keyframes stroke {
|
|
284
|
+
100% {
|
|
285
|
+
stroke-dashoffset: 0;
|
|
286
|
+
}
|
|
497
287
|
}/* DO NOT CHANGE!*/
|
|
498
288
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
499
289
|
.eds-input-group {
|
|
@@ -513,7 +303,10 @@ textarea.eds-form-control.eds-textarea {
|
|
|
513
303
|
margin-left: 1rem;
|
|
514
304
|
top: -0.125rem;
|
|
515
305
|
transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
|
|
516
|
-
user-select: none;
|
|
306
|
+
-webkit-user-select: none;
|
|
307
|
+
-moz-user-select: none;
|
|
308
|
+
-ms-user-select: none;
|
|
309
|
+
user-select: none;
|
|
517
310
|
pointer-events: none;
|
|
518
311
|
}
|
|
519
312
|
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
@@ -577,7 +370,7 @@ textarea.eds-form-control.eds-textarea {
|
|
|
577
370
|
font-size: 1rem;
|
|
578
371
|
}
|
|
579
372
|
|
|
580
|
-
.eds-form-control-wrapper
|
|
373
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
581
374
|
top: calc(0.5rem - 0.125rem);
|
|
582
375
|
font-size: 0.75rem;
|
|
583
376
|
line-height: 0.75rem;
|
|
@@ -585,12 +378,33 @@ textarea.eds-form-control.eds-textarea {
|
|
|
585
378
|
padding: 0;
|
|
586
379
|
margin-left: 1rem;
|
|
587
380
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
381
|
+
|
|
382
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
383
|
+
top: calc(0.5rem - 0.125rem);
|
|
384
|
+
font-size: 0.75rem;
|
|
385
|
+
line-height: 0.75rem;
|
|
386
|
+
height: 10px;
|
|
387
|
+
padding: 0;
|
|
388
|
+
margin-left: 1rem;
|
|
389
|
+
}
|
|
390
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
391
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
392
|
+
background: var(--textarea-label-background);
|
|
393
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
394
|
+
}
|
|
395
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
396
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
397
|
+
background: var(--textarea-label-background);
|
|
398
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
399
|
+
}
|
|
400
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
401
|
+
top: 0.5rem;
|
|
402
|
+
font-size: 0.875rem;
|
|
403
|
+
line-height: 1rem;
|
|
404
|
+
padding: 0;
|
|
405
|
+
margin-left: 1rem;
|
|
406
|
+
}
|
|
407
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
594
408
|
top: 0.5rem;
|
|
595
409
|
font-size: 0.875rem;
|
|
596
410
|
line-height: 1rem;
|
|
@@ -623,6 +437,9 @@ textarea.eds-form-control.eds-textarea {
|
|
|
623
437
|
background-color: #ffffff;
|
|
624
438
|
border-color: #54568c;
|
|
625
439
|
}
|
|
440
|
+
.eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
|
|
441
|
+
border-color: #181c56;
|
|
442
|
+
}
|
|
626
443
|
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
627
444
|
border-color: #181c56;
|
|
628
445
|
}
|
|
@@ -630,14 +447,28 @@ textarea.eds-form-control.eds-textarea {
|
|
|
630
447
|
border-color: #aeb7e2;
|
|
631
448
|
background: #ebebf1;
|
|
632
449
|
}
|
|
450
|
+
.eds-form-control-wrapper[focus-within] {
|
|
451
|
+
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
452
|
+
}
|
|
633
453
|
.eds-form-control-wrapper:focus-within {
|
|
634
454
|
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
635
455
|
}
|
|
456
|
+
.eds-contrast .eds-form-control-wrapper[focus-within] {
|
|
457
|
+
border-color: #181c56;
|
|
458
|
+
--border-color: #aeb7e2;
|
|
459
|
+
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
460
|
+
}
|
|
636
461
|
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
637
462
|
border-color: #181c56;
|
|
638
463
|
--border-color: #aeb7e2;
|
|
639
464
|
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
640
465
|
}
|
|
466
|
+
.eds-form-control-wrapper ::-moz-placeholder {
|
|
467
|
+
color: #656782;
|
|
468
|
+
}
|
|
469
|
+
.eds-form-control-wrapper :-ms-input-placeholder {
|
|
470
|
+
color: #656782;
|
|
471
|
+
}
|
|
641
472
|
.eds-form-control-wrapper ::placeholder {
|
|
642
473
|
color: #656782;
|
|
643
474
|
}
|
|
@@ -697,6 +528,9 @@ textarea.eds-form-control.eds-textarea {
|
|
|
697
528
|
.eds-form-control-wrapper--success:hover {
|
|
698
529
|
border-color: #5ac39a;
|
|
699
530
|
}
|
|
531
|
+
.eds-form-control-wrapper--success[focus-within] {
|
|
532
|
+
border-color: #1a8e60;
|
|
533
|
+
}
|
|
700
534
|
.eds-form-control-wrapper--success:focus-within {
|
|
701
535
|
border-color: #1a8e60;
|
|
702
536
|
}
|
|
@@ -707,6 +541,10 @@ textarea.eds-form-control.eds-textarea {
|
|
|
707
541
|
.eds-contrast .eds-form-control-wrapper--success:hover {
|
|
708
542
|
border-color: #1a8e60;
|
|
709
543
|
}
|
|
544
|
+
.eds-contrast .eds-form-control-wrapper--success[focus-within] {
|
|
545
|
+
--border-color: #5ac39a;
|
|
546
|
+
border-color: #181c56;
|
|
547
|
+
}
|
|
710
548
|
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
711
549
|
--border-color: #5ac39a;
|
|
712
550
|
border-color: #181c56;
|
|
@@ -718,6 +556,9 @@ textarea.eds-form-control.eds-textarea {
|
|
|
718
556
|
.eds-form-control-wrapper--error:hover {
|
|
719
557
|
border-color: #ff9494;
|
|
720
558
|
}
|
|
559
|
+
.eds-form-control-wrapper--error[focus-within] {
|
|
560
|
+
border-color: #d31b1b;
|
|
561
|
+
}
|
|
721
562
|
.eds-form-control-wrapper--error:focus-within {
|
|
722
563
|
border-color: #d31b1b;
|
|
723
564
|
}
|
|
@@ -728,6 +569,10 @@ textarea.eds-form-control.eds-textarea {
|
|
|
728
569
|
.eds-contrast .eds-form-control-wrapper--error:hover {
|
|
729
570
|
border-color: #d31b1b;
|
|
730
571
|
}
|
|
572
|
+
.eds-contrast .eds-form-control-wrapper--error[focus-within] {
|
|
573
|
+
border-color: #181c56;
|
|
574
|
+
--border-color: #ff9494;
|
|
575
|
+
}
|
|
731
576
|
.eds-contrast .eds-form-control-wrapper--error:focus-within {
|
|
732
577
|
border-color: #181c56;
|
|
733
578
|
--border-color: #ff9494;
|
|
@@ -736,12 +581,22 @@ textarea.eds-form-control.eds-textarea {
|
|
|
736
581
|
background-color: #181c56;
|
|
737
582
|
color: #ffffff;
|
|
738
583
|
}
|
|
584
|
+
.eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
|
|
585
|
+
color: #aeb7e2;
|
|
586
|
+
}
|
|
587
|
+
.eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
|
|
588
|
+
color: #aeb7e2;
|
|
589
|
+
}
|
|
739
590
|
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
740
591
|
color: #aeb7e2;
|
|
741
592
|
}
|
|
742
593
|
.eds-contrast .eds-form-control-wrapper--dark:hover {
|
|
743
594
|
border-color: #aeb7e2;
|
|
744
595
|
}
|
|
596
|
+
.eds-contrast .eds-form-control-wrapper--dark[focus-within] {
|
|
597
|
+
background-color: #292b6a;
|
|
598
|
+
border-color: #aeb7e2;
|
|
599
|
+
}
|
|
745
600
|
.eds-contrast .eds-form-control-wrapper--dark:focus-within {
|
|
746
601
|
background-color: #292b6a;
|
|
747
602
|
border-color: #aeb7e2;
|
|
@@ -756,7 +611,9 @@ textarea.eds-form-control.eds-textarea {
|
|
|
756
611
|
}
|
|
757
612
|
|
|
758
613
|
.eds-form-control {
|
|
759
|
-
appearance: none;
|
|
614
|
+
-webkit-appearance: none;
|
|
615
|
+
-moz-appearance: none;
|
|
616
|
+
appearance: none;
|
|
760
617
|
background-color: transparent;
|
|
761
618
|
border: 0;
|
|
762
619
|
color: inherit;
|
|
@@ -767,6 +624,16 @@ textarea.eds-form-control.eds-textarea {
|
|
|
767
624
|
padding: 20px 1rem 0.25rem;
|
|
768
625
|
width: 100%;
|
|
769
626
|
}
|
|
627
|
+
.eds-form-control::-moz-placeholder {
|
|
628
|
+
opacity: 0;
|
|
629
|
+
-moz-transition: opacity 0.2s ease-in-out;
|
|
630
|
+
transition: opacity 0.2s ease-in-out;
|
|
631
|
+
}
|
|
632
|
+
.eds-form-control:-ms-input-placeholder {
|
|
633
|
+
opacity: 0;
|
|
634
|
+
-ms-transition: opacity 0.2s ease-in-out;
|
|
635
|
+
transition: opacity 0.2s ease-in-out;
|
|
636
|
+
}
|
|
770
637
|
.eds-form-control::placeholder {
|
|
771
638
|
opacity: 0;
|
|
772
639
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -774,6 +641,12 @@ textarea.eds-form-control.eds-textarea {
|
|
|
774
641
|
.eds-form-control:focus {
|
|
775
642
|
outline: none;
|
|
776
643
|
}
|
|
644
|
+
.eds-form-control:focus::-moz-placeholder {
|
|
645
|
+
opacity: 1;
|
|
646
|
+
}
|
|
647
|
+
.eds-form-control:focus:-ms-input-placeholder {
|
|
648
|
+
opacity: 1;
|
|
649
|
+
}
|
|
777
650
|
.eds-form-control:focus::placeholder {
|
|
778
651
|
opacity: 1;
|
|
779
652
|
}
|
|
@@ -795,6 +668,154 @@ textarea.eds-form-control.eds-textarea {
|
|
|
795
668
|
margin-left: 0;
|
|
796
669
|
}/* DO NOT CHANGE!*/
|
|
797
670
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
671
|
+
.eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
|
|
672
|
+
border-color: #181c56;
|
|
673
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
674
|
+
}
|
|
675
|
+
.eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
676
|
+
border-color: #181c56;
|
|
677
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
678
|
+
}
|
|
679
|
+
.eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
|
|
680
|
+
border-color: #ffffff;
|
|
681
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
682
|
+
}
|
|
683
|
+
.eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
684
|
+
border-color: #ffffff;
|
|
685
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
686
|
+
}
|
|
687
|
+
.eds-radio-panel__wrapper input {
|
|
688
|
+
position: absolute;
|
|
689
|
+
opacity: 0;
|
|
690
|
+
cursor: pointer;
|
|
691
|
+
height: 0;
|
|
692
|
+
width: 0;
|
|
693
|
+
}
|
|
694
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
695
|
+
border-color: #181c56;
|
|
696
|
+
background: #f5f5f8;
|
|
697
|
+
}
|
|
698
|
+
.eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
699
|
+
border-color: #aeb7e2;
|
|
700
|
+
background: #393d79;
|
|
701
|
+
}
|
|
702
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
|
|
703
|
+
background-color: #181c56;
|
|
704
|
+
border-color: #181c56;
|
|
705
|
+
}
|
|
706
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
|
|
707
|
+
visibility: visible;
|
|
708
|
+
}
|
|
709
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
|
|
710
|
+
stroke: #5ac39a;
|
|
711
|
+
-webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
712
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
713
|
+
}
|
|
714
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
|
|
715
|
+
opacity: 0.5;
|
|
716
|
+
}
|
|
717
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
|
|
718
|
+
opacity: 0.5;
|
|
719
|
+
}
|
|
720
|
+
.eds-radio-panel__container {
|
|
721
|
+
background: #ffffff;
|
|
722
|
+
border: 0.125rem solid #d1d3d3;
|
|
723
|
+
border-radius: 0.25rem;
|
|
724
|
+
display: flex;
|
|
725
|
+
flex-direction: column;
|
|
726
|
+
justify-content: flex-start;
|
|
727
|
+
min-width: 20rem;
|
|
728
|
+
position: relative;
|
|
729
|
+
padding: 1rem;
|
|
730
|
+
-webkit-user-select: none;
|
|
731
|
+
-moz-user-select: none;
|
|
732
|
+
-ms-user-select: none;
|
|
733
|
+
user-select: none;
|
|
734
|
+
width: -webkit-fit-content;
|
|
735
|
+
width: -moz-fit-content;
|
|
736
|
+
width: fit-content;
|
|
737
|
+
}
|
|
738
|
+
.eds-contrast .eds-radio-panel__container {
|
|
739
|
+
background: #181c56;
|
|
740
|
+
border-color: #54568c;
|
|
741
|
+
}
|
|
742
|
+
.eds-radio-panel__title-wrapper {
|
|
743
|
+
display: flex;
|
|
744
|
+
justify-content: space-between;
|
|
745
|
+
align-items: center;
|
|
746
|
+
}
|
|
747
|
+
.eds-radio-panel__label {
|
|
748
|
+
display: flex;
|
|
749
|
+
justify-content: center;
|
|
750
|
+
}
|
|
751
|
+
.eds-radio-panel__check {
|
|
752
|
+
height: 2rem;
|
|
753
|
+
width: 2rem;
|
|
754
|
+
margin-left: 1rem;
|
|
755
|
+
border-radius: 50%;
|
|
756
|
+
border: 0.125rem solid #e9e9e9;
|
|
757
|
+
display: flex;
|
|
758
|
+
align-items: center;
|
|
759
|
+
justify-content: center;
|
|
760
|
+
background: #ffffff;
|
|
761
|
+
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
762
|
+
}
|
|
763
|
+
.eds-contrast .eds-radio-panel__check {
|
|
764
|
+
background: #181c56;
|
|
765
|
+
border-color: #54568c;
|
|
766
|
+
}
|
|
767
|
+
.eds-radio-panel__additional-content {
|
|
768
|
+
margin-top: 0.25rem;
|
|
769
|
+
word-wrap: break-word;
|
|
770
|
+
}
|
|
771
|
+
.eds-radio-panel--medium .eds-radio-panel__title {
|
|
772
|
+
font-size: 1rem;
|
|
773
|
+
font-weight: 500;
|
|
774
|
+
}
|
|
775
|
+
.eds-radio-panel--medium.eds-radio-panel__container {
|
|
776
|
+
padding-bottom: 1rem;
|
|
777
|
+
min-height: 3.75rem;
|
|
778
|
+
}
|
|
779
|
+
.eds-radio-panel--large.eds-radio-panel__container {
|
|
780
|
+
min-height: 6.5rem;
|
|
781
|
+
}
|
|
782
|
+
.eds-radio-panel--large .eds-radio-panel__title-wrapper {
|
|
783
|
+
height: 2rem;
|
|
784
|
+
}
|
|
785
|
+
.eds-radio-panel--large .eds-radio-panel__title {
|
|
786
|
+
font-size: 1.25rem;
|
|
787
|
+
font-weight: 500;
|
|
788
|
+
line-height: 1.875rem;
|
|
789
|
+
}
|
|
790
|
+
.eds-radio-panel--disabled {
|
|
791
|
+
background: #f3f3f3;
|
|
792
|
+
border-color: #f3f3f3;
|
|
793
|
+
color: #656782;
|
|
794
|
+
}
|
|
795
|
+
.eds-contrast .eds-radio-panel--disabled {
|
|
796
|
+
background: #181c56;
|
|
797
|
+
border-style: dashed;
|
|
798
|
+
border-color: #54568c;
|
|
799
|
+
color: #babbcf;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.eds-checkbox-icon {
|
|
803
|
+
width: 1.5em;
|
|
804
|
+
height: 1.5em;
|
|
805
|
+
}
|
|
806
|
+
.eds-checkbox-icon__path {
|
|
807
|
+
transform-origin: 50% 50%;
|
|
808
|
+
stroke-dasharray: 48;
|
|
809
|
+
stroke-dashoffset: 48;
|
|
810
|
+
stroke-width: 0.375rem;
|
|
811
|
+
}/* DO NOT CHANGE!*/
|
|
812
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
813
|
+
textarea.eds-form-control.eds-textarea {
|
|
814
|
+
min-height: 7.75rem;
|
|
815
|
+
resize: vertical;
|
|
816
|
+
line-height: 1.5rem;
|
|
817
|
+
}/* DO NOT CHANGE!*/
|
|
818
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
798
819
|
.eds-textfield__clear-button {
|
|
799
820
|
background: none;
|
|
800
821
|
border: none;
|
|
@@ -831,6 +852,118 @@ textarea.eds-form-control.eds-textarea {
|
|
|
831
852
|
background-color: #8285a8;
|
|
832
853
|
}/* DO NOT CHANGE!*/
|
|
833
854
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
855
|
+
.eds-switch {
|
|
856
|
+
cursor: pointer;
|
|
857
|
+
-webkit-user-select: none;
|
|
858
|
+
-moz-user-select: none;
|
|
859
|
+
-ms-user-select: none;
|
|
860
|
+
user-select: none;
|
|
861
|
+
padding: 0.5rem 0;
|
|
862
|
+
width: -webkit-fit-content;
|
|
863
|
+
width: -moz-fit-content;
|
|
864
|
+
width: fit-content;
|
|
865
|
+
}
|
|
866
|
+
.eds-switch input {
|
|
867
|
+
opacity: 0;
|
|
868
|
+
pointer-events: none;
|
|
869
|
+
position: absolute;
|
|
870
|
+
}
|
|
871
|
+
.eds-switch--right {
|
|
872
|
+
display: flex;
|
|
873
|
+
flex-direction: row;
|
|
874
|
+
align-items: center;
|
|
875
|
+
}
|
|
876
|
+
.eds-switch--bottom {
|
|
877
|
+
display: flex;
|
|
878
|
+
flex-direction: column;
|
|
879
|
+
align-items: center;
|
|
880
|
+
}
|
|
881
|
+
.eds-switch__circle {
|
|
882
|
+
border-radius: 50%;
|
|
883
|
+
height: 1.25rem;
|
|
884
|
+
width: 1.25rem;
|
|
885
|
+
content: "";
|
|
886
|
+
display: flex;
|
|
887
|
+
align-items: center;
|
|
888
|
+
justify-content: center;
|
|
889
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
890
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
891
|
+
background-color: #ffffff;
|
|
892
|
+
top: 0.125rem;
|
|
893
|
+
left: 0.125rem;
|
|
894
|
+
position: relative;
|
|
895
|
+
}
|
|
896
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
897
|
+
height: 1.75rem;
|
|
898
|
+
width: 1.75rem;
|
|
899
|
+
}
|
|
900
|
+
.eds-switch .eds-switch__switch svg g,
|
|
901
|
+
.eds-switch .eds-switch__switch path {
|
|
902
|
+
fill: #949494;
|
|
903
|
+
transition: fill ease-in-out 0.1s;
|
|
904
|
+
}
|
|
905
|
+
.eds-switch__switch {
|
|
906
|
+
position: relative;
|
|
907
|
+
background-color: #d1d3d3;
|
|
908
|
+
content: "";
|
|
909
|
+
display: block;
|
|
910
|
+
transition: background-color 0.1s ease-in-out;
|
|
911
|
+
height: 1.5rem;
|
|
912
|
+
width: 3rem;
|
|
913
|
+
border-radius: 1.5rem;
|
|
914
|
+
}
|
|
915
|
+
.eds-switch--right .eds-switch__switch {
|
|
916
|
+
margin-right: 0.75rem;
|
|
917
|
+
}
|
|
918
|
+
:checked + .eds-switch__switch {
|
|
919
|
+
background-color: var(--eds-switch-color);
|
|
920
|
+
}
|
|
921
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
922
|
+
left: 1.625rem;
|
|
923
|
+
}
|
|
924
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
925
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
926
|
+
fill: var(--eds-switch-color);
|
|
927
|
+
}
|
|
928
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
929
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
|
|
930
|
+
fill: var(--eds-switch-color);
|
|
931
|
+
}
|
|
932
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
933
|
+
background-color: var(--eds-switch-contrast-color);
|
|
934
|
+
}
|
|
935
|
+
:focus + .eds-switch__switch {
|
|
936
|
+
outline: none;
|
|
937
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
938
|
+
outline-offset: 0.125rem;
|
|
939
|
+
}
|
|
940
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
941
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
942
|
+
}
|
|
943
|
+
.eds-contrast .eds-switch__switch {
|
|
944
|
+
background-color: #54568c;
|
|
945
|
+
}
|
|
946
|
+
.eds-switch__switch--large {
|
|
947
|
+
width: 3.75rem;
|
|
948
|
+
height: 2rem;
|
|
949
|
+
border-radius: 3.75rem;
|
|
950
|
+
}
|
|
951
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
952
|
+
left: 1.875rem;
|
|
953
|
+
}
|
|
954
|
+
.eds-switch__label--large--right {
|
|
955
|
+
font-size: 1rem;
|
|
956
|
+
}
|
|
957
|
+
.eds-switch__label--large--bottom {
|
|
958
|
+
font-size: 0.875rem;
|
|
959
|
+
}
|
|
960
|
+
.eds-switch__label--medium--right {
|
|
961
|
+
font-size: 0.875rem;
|
|
962
|
+
}
|
|
963
|
+
.eds-switch__label--medium--bottom {
|
|
964
|
+
font-size: 0.75rem;
|
|
965
|
+
}/* DO NOT CHANGE!*/
|
|
966
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
834
967
|
.eds-segmented-control {
|
|
835
968
|
margin-top: 0.25rem;
|
|
836
969
|
display: flex;
|
|
@@ -858,7 +991,10 @@ textarea.eds-form-control.eds-textarea {
|
|
|
858
991
|
padding: calc(0.25rem/ 2) 0.75rem;
|
|
859
992
|
height: 1.5rem;
|
|
860
993
|
text-align: center;
|
|
861
|
-
user-select: none;
|
|
994
|
+
-webkit-user-select: none;
|
|
995
|
+
-moz-user-select: none;
|
|
996
|
+
-ms-user-select: none;
|
|
997
|
+
user-select: none;
|
|
862
998
|
}
|
|
863
999
|
.eds-contrast .eds-segmented-choice .eds-base-segmented {
|
|
864
1000
|
border-color: #393d79;
|
|
@@ -876,7 +1012,9 @@ textarea.eds-form-control.eds-textarea {
|
|
|
876
1012
|
--background-color: #54568c;
|
|
877
1013
|
}
|
|
878
1014
|
.eds-segmented-choice input {
|
|
879
|
-
appearance: none;
|
|
1015
|
+
-webkit-appearance: none;
|
|
1016
|
+
-moz-appearance: none;
|
|
1017
|
+
appearance: none;
|
|
880
1018
|
position: absolute;
|
|
881
1019
|
opacity: 0;
|
|
882
1020
|
height: 0;
|