@entur/form 5.4.20 → 6.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/dist/styles.css CHANGED
@@ -3,6 +3,135 @@
3
3
  }
4
4
  /* DO NOT CHANGE!*/
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
+ .eds-checkbox__container {
7
+ display: flex;
8
+ align-items: center;
9
+ position: relative;
10
+ -webkit-appearance: none;
11
+ -moz-appearance: none;
12
+ appearance: none;
13
+ cursor: pointer;
14
+ height: 2rem;
15
+ -webkit-user-select: none;
16
+ -moz-user-select: none;
17
+ user-select: none;
18
+ width: -moz-fit-content;
19
+ width: fit-content;
20
+ }
21
+ .eds-checkbox__container--reduced-click-area {
22
+ height: -moz-fit-content;
23
+ height: fit-content;
24
+ }
25
+ .eds-checkbox__container input {
26
+ position: absolute;
27
+ opacity: 0;
28
+ height: 0;
29
+ width: 0;
30
+ }
31
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
32
+ background-color: #181c56;
33
+ }
34
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
35
+ visibility: visible;
36
+ }
37
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
38
+ stroke: #ffffff;
39
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
40
+ }
41
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
42
+ opacity: 0.5;
43
+ }
44
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
45
+ opacity: 0.5;
46
+ }
47
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
48
+ background: #54568c;
49
+ }
50
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
51
+ border-color: #54568c;
52
+ background: #f3f3f3;
53
+ }
54
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
55
+ border-color: #656782;
56
+ background: #292b6a;
57
+ }
58
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
59
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
60
+ border-color: #54568c;
61
+ background-color: #54568c;
62
+ }
63
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
64
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
65
+ background: #8285a8;
66
+ border-color: #8285a8;
67
+ }
68
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
69
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
70
+ outline: none;
71
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
72
+ outline-offset: 0.125rem;
73
+ }
74
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
75
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
76
+ outline: none;
77
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
78
+ outline-offset: 0.125rem;
79
+ }
80
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
81
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
82
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
83
+ }
84
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
85
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
86
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
87
+ }
88
+ .eds-checkbox--disabled {
89
+ pointer-events: none;
90
+ }
91
+ .eds-checkbox--disabled .eds-checkbox__label {
92
+ opacity: 0.5;
93
+ }
94
+ .eds-checkbox--disabled .eds-checkbox__icon {
95
+ opacity: 0.5;
96
+ }
97
+ .eds-checkbox__icon {
98
+ display: inline-flex;
99
+ justify-content: center;
100
+ align-items: center;
101
+ position: relative;
102
+ margin-right: 1rem;
103
+ height: 1.25rem;
104
+ width: 1.25rem;
105
+ border: 0.125rem solid #181c56;
106
+ border-radius: 0.0625rem;
107
+ background-color: transparent;
108
+ color: #ffffff;
109
+ }
110
+ .eds-checkbox__icon--reduced-click-area {
111
+ margin-right: 0;
112
+ }
113
+ .eds-contrast .eds-checkbox__icon {
114
+ border-color: #54568c;
115
+ }
116
+ .eds-checkbox__icon .eds-checkbox-icon {
117
+ height: 1rem;
118
+ width: 1rem;
119
+ visibility: hidden;
120
+ }
121
+ .eds-checkbox__icon .eds-checkbox-icon__path {
122
+ transform-origin: 50% 50%;
123
+ stroke-dasharray: 48;
124
+ stroke-dashoffset: 48;
125
+ stroke-width: 0.375rem;
126
+ }
127
+
128
+ @keyframes stroke {
129
+ 100% {
130
+ stroke-dashoffset: 0;
131
+ }
132
+ }
133
+ /* DO NOT CHANGE!*/
134
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
135
  .eds-form-control-wrapper {
7
136
  --border-color: #181c56;
8
137
  --border-color-hover: #aeb7e2;
@@ -246,184 +375,189 @@
246
375
  }
247
376
  /* DO NOT CHANGE!*/
248
377
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
249
- .eds-feedback-text {
250
- display: flex;
251
- align-items: center;
252
- margin-top: 0.25rem;
253
- }
254
- .eds-feedback-text--info {
255
- padding-left: calc(1rem + 0.125rem);
256
- }
257
- .eds-feedback-text__text {
258
- color: #181c56;
259
- }
260
- .eds-contrast .eds-feedback-text__text {
261
- color: #ffffff;
262
- }
263
-
264
- .eds-feedback-text__icon {
265
- font-size: 1.5rem;
266
- min-height: 1.5rem;
267
- min-width: 1.5rem;
268
- padding-right: 0.5rem;
378
+ .eds-input-group {
379
+ color: inherit;
380
+ display: block;
269
381
  position: relative;
270
- top: -0.1rem;
271
382
  }
272
- .eds-feedback-text__icon--success {
273
- color: #1a8e60;
383
+ .eds-input-group__label {
384
+ color: #656782;
385
+ display: flex;
386
+ font-size: 1rem;
387
+ position: absolute;
388
+ line-height: 1rem;
389
+ height: 3rem;
390
+ padding: 1rem;
391
+ padding-left: 0;
392
+ margin-left: 1rem;
393
+ top: -0.125rem;
394
+ 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;
395
+ -webkit-user-select: none;
396
+ -moz-user-select: none;
397
+ user-select: none;
398
+ pointer-events: none;
274
399
  }
275
- .eds-contrast .eds-feedback-text__icon--success {
276
- color: #5ac39a;
400
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
401
+ top: 0.375rem;
402
+ font-size: 0.75rem;
403
+ line-height: 0.75rem;
404
+ height: 10px;
405
+ padding: 0;
406
+ margin-left: 1rem;
277
407
  }
278
- .eds-feedback-text__icon--error {
279
- color: #d31b1b;
408
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
409
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
410
+ background: var(--textarea-label-background);
411
+ width: calc(
412
+ 100% - 1rem - 1rem - 4px
413
+ );
280
414
  }
281
- .eds-contrast .eds-feedback-text__icon--error {
282
- color: #ff9494;
415
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
416
+ top: 0.5rem;
417
+ font-size: 0.875rem;
418
+ line-height: 1rem;
419
+ padding: 0;
420
+ margin-left: 1rem;
283
421
  }
284
- .eds-feedback-text__icon--info {
285
- color: #0082b9;
422
+ .eds-contrast .eds-input-group__label {
423
+ color: #8285a8;
286
424
  }
287
- .eds-contrast .eds-feedback-text__icon--info {
288
- color: #64b3e7;
425
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
426
+ color: #aeb7e2;
289
427
  }
290
- .eds-feedback-text__icon--warning {
291
- color: #ffca28;
428
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
429
+ font-size: 1.5rem;
430
+ line-height: 2.25rem;
431
+ height: 4rem;
292
432
  }
293
- .eds-feedback-text__icon--warning circle {
294
- fill: #181c56;
433
+ .eds-input-group__label--filled {
434
+ top: 0.375rem;
435
+ font-size: 0.75rem;
436
+ line-height: 0.75rem;
437
+ height: 10px;
438
+ padding: 0;
439
+ margin-left: 1rem;
295
440
  }
296
- .eds-contrast .eds-feedback-text__icon--warning {
297
- color: #ffe082;
441
+ .eds-textarea__label .eds-input-group__label--filled {
442
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
443
+ background: var(--textarea-label-background);
444
+ width: calc(
445
+ 100% - 1rem - 1rem - 4px
446
+ );
298
447
  }
299
- /* DO NOT CHANGE!*/
300
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
301
- .eds-checkbox__container {
448
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
449
+ top: 0.5rem;
450
+ font-size: 0.875rem;
451
+ line-height: 1rem;
452
+ padding: 0;
453
+ margin-left: 1rem;
454
+ }
455
+ .eds-input-group__label-tooltip-icon {
456
+ color: #0082b9;
457
+ padding-left: 0.25rem;
458
+ padding-right: 0.25rem;
302
459
  display: flex;
303
460
  align-items: center;
304
- position: relative;
305
- -webkit-appearance: none;
306
- -moz-appearance: none;
307
- appearance: none;
308
- cursor: pointer;
309
- height: 2rem;
310
- -webkit-user-select: none;
311
- -moz-user-select: none;
312
- user-select: none;
313
- width: -moz-fit-content;
314
- width: fit-content;
461
+ cursor: help;
462
+ font-size: 1rem;
315
463
  }
316
- .eds-checkbox__container--reduced-click-area {
317
- height: -moz-fit-content;
318
- height: fit-content;
319
- }
320
- .eds-checkbox__container input {
321
- position: absolute;
322
- opacity: 0;
323
- height: 0;
324
- width: 0;
325
- }
326
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
327
- background-color: #181c56;
328
- }
329
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
330
- visibility: visible;
331
- }
332
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
333
- stroke: #ffffff;
334
- animation: stroke ease-in-out 0.2s 0.1s forwards;
335
- }
336
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
337
- opacity: 0.5;
464
+
465
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
466
+ top: 0.375rem;
467
+ font-size: 0.75rem;
468
+ line-height: 0.75rem;
469
+ height: 10px;
470
+ padding: 0;
471
+ margin-left: 1rem;
338
472
  }
339
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
340
- opacity: 0.5;
473
+
474
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
475
+ top: 0.375rem;
476
+ font-size: 0.75rem;
477
+ line-height: 0.75rem;
478
+ height: 10px;
479
+ padding: 0;
480
+ margin-left: 1rem;
341
481
  }
342
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
343
- background: #54568c;
482
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
483
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
484
+ background: var(--textarea-label-background);
485
+ width: calc(
486
+ 100% - 1rem - 1rem - 4px
487
+ );
344
488
  }
345
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
346
- border-color: #54568c;
347
- background: #f3f3f3;
489
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
490
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
491
+ background: var(--textarea-label-background);
492
+ width: calc(
493
+ 100% - 1rem - 1rem - 4px
494
+ );
348
495
  }
349
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
350
- border-color: #656782;
351
- background: #292b6a;
496
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
497
+ top: 0.5rem;
498
+ font-size: 0.875rem;
499
+ line-height: 1rem;
500
+ padding: 0;
501
+ margin-left: 1rem;
352
502
  }
353
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
354
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
355
- border-color: #54568c;
356
- background-color: #54568c;
503
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
504
+ top: 0.5rem;
505
+ font-size: 0.875rem;
506
+ line-height: 1rem;
507
+ padding: 0;
508
+ margin-left: 1rem;
357
509
  }
358
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
359
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
360
- background: #8285a8;
361
- border-color: #8285a8;
510
+ /* DO NOT CHANGE!*/
511
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
512
+ .eds-feedback-text {
513
+ display: flex;
514
+ align-items: center;
515
+ margin-top: 0.25rem;
362
516
  }
363
- .eds-checkbox__container:focus + .eds-checkbox__icon,
364
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
365
- outline: none;
366
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
367
- outline-offset: 0.125rem;
517
+ .eds-feedback-text--info {
518
+ padding-left: calc(1rem + 0.125rem);
368
519
  }
369
- .eds-checkbox__container:focus + .eds-checkbox__icon,
370
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
371
- outline: none;
372
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
373
- outline-offset: 0.125rem;
520
+ .eds-feedback-text__text {
521
+ color: #181c56;
374
522
  }
375
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
376
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
377
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
523
+ .eds-contrast .eds-feedback-text__text {
524
+ color: #ffffff;
378
525
  }
379
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
380
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
381
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
526
+
527
+ .eds-feedback-text__icon {
528
+ font-size: 1.5rem;
529
+ min-height: 1.5rem;
530
+ min-width: 1.5rem;
531
+ padding-right: 0.5rem;
532
+ position: relative;
533
+ top: -0.1rem;
382
534
  }
383
- .eds-checkbox--disabled {
384
- pointer-events: none;
535
+ .eds-feedback-text__icon--success {
536
+ color: #1a8e60;
385
537
  }
386
- .eds-checkbox--disabled .eds-checkbox__label {
387
- opacity: 0.5;
538
+ .eds-contrast .eds-feedback-text__icon--success {
539
+ color: #5ac39a;
388
540
  }
389
- .eds-checkbox--disabled .eds-checkbox__icon {
390
- opacity: 0.5;
541
+ .eds-feedback-text__icon--error {
542
+ color: #d31b1b;
391
543
  }
392
- .eds-checkbox__icon {
393
- display: inline-flex;
394
- justify-content: center;
395
- align-items: center;
396
- position: relative;
397
- margin-right: 1rem;
398
- height: 1.25rem;
399
- width: 1.25rem;
400
- border: 0.125rem solid #181c56;
401
- border-radius: 0.0625rem;
402
- background-color: transparent;
403
- color: #ffffff;
544
+ .eds-contrast .eds-feedback-text__icon--error {
545
+ color: #ff9494;
404
546
  }
405
- .eds-checkbox__icon--reduced-click-area {
406
- margin-right: 0;
547
+ .eds-feedback-text__icon--info {
548
+ color: #0082b9;
407
549
  }
408
- .eds-contrast .eds-checkbox__icon {
409
- border-color: #54568c;
550
+ .eds-contrast .eds-feedback-text__icon--info {
551
+ color: #64b3e7;
410
552
  }
411
- .eds-checkbox__icon .eds-checkbox-icon {
412
- height: 1rem;
413
- width: 1rem;
414
- visibility: hidden;
553
+ .eds-feedback-text__icon--warning {
554
+ color: #ffca28;
415
555
  }
416
- .eds-checkbox__icon .eds-checkbox-icon__path {
417
- transform-origin: 50% 50%;
418
- stroke-dasharray: 48;
419
- stroke-dashoffset: 48;
420
- stroke-width: 0.375rem;
556
+ .eds-feedback-text__icon--warning circle {
557
+ fill: #181c56;
421
558
  }
422
-
423
- @keyframes stroke {
424
- 100% {
425
- stroke-dashoffset: 0;
426
- }
559
+ .eds-contrast .eds-feedback-text__icon--warning {
560
+ color: #ffe082;
427
561
  }
428
562
  /* DO NOT CHANGE!*/
429
563
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -437,225 +571,254 @@
437
571
  }
438
572
  /* DO NOT CHANGE!*/
439
573
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
440
- .eds-input-group {
441
- color: inherit;
442
- display: block;
443
- position: relative;
444
- }
445
- .eds-input-group__label {
446
- color: #656782;
574
+ .eds-form-component--radio__container {
447
575
  display: flex;
448
- font-size: 1rem;
449
- position: absolute;
450
- line-height: 1rem;
451
- height: 3rem;
452
- padding: 1rem;
453
- padding-left: 0;
454
- margin-left: 1rem;
455
- top: -0.125rem;
456
- 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;
576
+ justify-content: center;
577
+ align-items: center;
578
+ position: relative;
579
+ cursor: pointer;
580
+ height: 2rem;
581
+ width: -moz-fit-content;
582
+ width: fit-content;
457
583
  -webkit-user-select: none;
458
584
  -moz-user-select: none;
459
585
  user-select: none;
460
- pointer-events: none;
461
586
  }
462
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
463
- top: 0.375rem;
464
- font-size: 0.75rem;
465
- line-height: 0.75rem;
466
- height: 10px;
467
- padding: 0;
468
- margin-left: 1rem;
469
- }
470
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
471
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
472
- background: var(--textarea-label-background);
473
- width: calc(
474
- 100% - 1rem - 1rem - 4px
475
- );
587
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
588
+ border-color: #54568c;
476
589
  }
477
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
478
- top: 0.5rem;
479
- font-size: 0.875rem;
480
- line-height: 1rem;
481
- padding: 0;
482
- margin-left: 1rem;
590
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
591
+ background-color: #54568c;
483
592
  }
484
- .eds-contrast .eds-input-group__label {
485
- color: #8285a8;
593
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
594
+ border-color: #8285a8;
486
595
  }
487
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
488
- color: #aeb7e2;
596
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
597
+ background-color: #8285a8;
489
598
  }
490
- .eds-form-control-wrapper--size-large .eds-input-group__label {
491
- font-size: 1.5rem;
492
- line-height: 2.25rem;
493
- height: 4rem;
599
+ .eds-form-component--radio__container input {
600
+ position: absolute;
601
+ opacity: 0;
602
+ cursor: pointer;
603
+ height: 0;
604
+ width: 0;
494
605
  }
495
- .eds-input-group__label--filled {
496
- top: 0.375rem;
497
- font-size: 0.75rem;
498
- line-height: 0.75rem;
499
- height: 10px;
500
- padding: 0;
501
- margin-left: 1rem;
606
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
607
+ height: 0.625rem;
608
+ width: 0.625rem;
502
609
  }
503
- .eds-textarea__label .eds-input-group__label--filled {
504
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
505
- background: var(--textarea-label-background);
506
- width: calc(
507
- 100% - 1rem - 1rem - 4px
508
- );
610
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
611
+ outline: none;
612
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
613
+ outline-offset: 0.125rem;
509
614
  }
510
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
511
- top: 0.5rem;
512
- font-size: 0.875rem;
513
- line-height: 1rem;
514
- padding: 0;
515
- margin-left: 1rem;
615
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
616
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
516
617
  }
517
- .eds-input-group__label-tooltip-icon {
518
- color: #0082b9;
519
- padding-left: 0.25rem;
520
- padding-right: 0.25rem;
618
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
619
+ position: relative;
620
+ height: 1.25rem;
621
+ width: 1.25rem;
622
+ margin-right: 1rem;
623
+ background-color: #ffffff;
624
+ border: 0.125rem solid #181c56;
625
+ border-radius: 50%;
521
626
  display: flex;
522
627
  align-items: center;
523
- cursor: help;
524
- font-size: 1rem;
628
+ justify-content: center;
525
629
  }
526
-
527
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
528
- top: 0.375rem;
529
- font-size: 0.75rem;
530
- line-height: 0.75rem;
531
- height: 10px;
532
- padding: 0;
533
- margin-left: 1rem;
630
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
631
+ background-color: #181c56;
632
+ border-color: #aeb7e2;
534
633
  }
535
-
536
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
537
- top: 0.375rem;
538
- font-size: 0.75rem;
539
- line-height: 0.75rem;
540
- height: 10px;
541
- padding: 0;
542
- margin-left: 1rem;
634
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
635
+ background: #d1d3d3;
636
+ border-color: #d1d3d3;
637
+ cursor: not-allowed;
543
638
  }
544
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
545
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
546
- background: var(--textarea-label-background);
547
- width: calc(
548
- 100% - 1rem - 1rem - 4px
549
- );
639
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
640
+ border-color: #d1d3d3;
550
641
  }
551
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
552
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
553
- background: var(--textarea-label-background);
554
- width: calc(
555
- 100% - 1rem - 1rem - 4px
556
- );
642
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
643
+ background: #d1d3d3;
644
+ border-color: #d1d3d3;
557
645
  }
558
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
559
- top: 0.5rem;
560
- font-size: 0.875rem;
561
- line-height: 1rem;
562
- padding: 0;
563
- margin-left: 1rem;
646
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
647
+ color: #656782;
564
648
  }
565
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
566
- top: 0.5rem;
567
- font-size: 0.875rem;
568
- line-height: 1rem;
569
- padding: 0;
570
- margin-left: 1rem;
649
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
650
+ display: block;
651
+ width: 0;
652
+ height: 0;
653
+ border-radius: 50%;
654
+ background-color: #181c56;
655
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
656
+ }
657
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
658
+ background-color: #aeb7e2;
571
659
  }
572
660
  /* DO NOT CHANGE!*/
573
661
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
574
- .eds-form-component--radio__container {
662
+ textarea.eds-form-control.eds-textarea {
663
+ min-height: 7.75rem;
664
+ resize: vertical;
665
+ line-height: 1.5rem;
666
+ }
667
+ /* DO NOT CHANGE!*/
668
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
669
+ .eds-textfield__clear-button {
670
+ background: none;
671
+ border: none;
672
+ border-radius: 50%;
673
+ color: inherit;
674
+ cursor: pointer;
675
+ display: flex;
676
+ font: inherit;
677
+ font-size: 1rem;
678
+ line-height: 1rem;
679
+ padding: 0.5rem;
680
+ margin-right: -0.75rem;
681
+ }
682
+ .eds-textfield__clear-button-wrapper {
575
683
  display: flex;
576
- justify-content: center;
577
684
  align-items: center;
578
- position: relative;
685
+ }
686
+ .eds-textfield__clear-button:hover {
687
+ background: #f3f3f3;
688
+ }
689
+ .eds-textfield__clear-button:focus {
690
+ outline: none;
691
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
692
+ }
693
+
694
+ .eds-textfield__divider {
695
+ content: "";
696
+ display: block;
697
+ background-color: #e9e9e9;
698
+ height: 1.5rem;
699
+ width: 1px;
700
+ }
701
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
702
+ background-color: #8285a8;
703
+ }
704
+ /* DO NOT CHANGE!*/
705
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
706
+ .eds-switch {
579
707
  cursor: pointer;
580
- height: 2rem;
581
- width: -moz-fit-content;
582
- width: fit-content;
583
708
  -webkit-user-select: none;
584
709
  -moz-user-select: none;
585
710
  user-select: none;
711
+ padding: 0.5rem 0;
712
+ width: -moz-fit-content;
713
+ width: fit-content;
714
+ }
715
+ .eds-switch input {
716
+ opacity: 0;
717
+ pointer-events: none;
718
+ position: absolute;
719
+ }
720
+ .eds-switch--right {
721
+ display: flex;
722
+ flex-direction: row;
723
+ align-items: center;
724
+ }
725
+ .eds-switch--bottom {
726
+ display: flex;
727
+ flex-direction: column;
728
+ align-items: center;
729
+ }
730
+ .eds-switch__circle {
731
+ border-radius: 50%;
732
+ height: 1.25rem;
733
+ width: 1.25rem;
734
+ content: "";
735
+ display: flex;
736
+ align-items: center;
737
+ justify-content: center;
738
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
739
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
740
+ background-color: #ffffff;
741
+ top: 0.125rem;
742
+ left: 0.125rem;
743
+ position: relative;
744
+ }
745
+ .eds-switch__switch--large .eds-switch__circle {
746
+ height: 1.75rem;
747
+ width: 1.75rem;
748
+ }
749
+ .eds-contrast .eds-switch__circle {
750
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
751
+ }
752
+ .eds-switch__switch {
753
+ position: relative;
754
+ background-color: #949494;
755
+ content: "";
756
+ display: block;
757
+ transition: background-color 0.1s ease-in-out;
758
+ height: 1.5rem;
759
+ width: 3rem;
760
+ border-radius: 1.5rem;
761
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
762
+ }
763
+ .eds-contrast .eds-switch__switch {
764
+ background-color: #8285a8;
586
765
  }
587
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
588
- border-color: #54568c;
766
+ .eds-switch--right .eds-switch__switch {
767
+ margin-right: 0.75rem;
589
768
  }
590
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
591
- background-color: #54568c;
769
+ .eds-switch__switch svg g,
770
+ .eds-switch__switch path {
771
+ fill: #646464;
772
+ transition: fill ease-in-out 0.1s;
592
773
  }
593
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
594
- border-color: #8285a8;
774
+ .eds-contrast .eds-switch__switch svg g,
775
+ .eds-contrast .eds-switch__switch path {
776
+ fill: #181c56;
595
777
  }
596
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
597
- background-color: #8285a8;
778
+ :checked + .eds-switch__switch {
779
+ background-color: var(--eds-switch-color);
598
780
  }
599
- .eds-form-component--radio__container input {
600
- position: absolute;
601
- opacity: 0;
602
- cursor: pointer;
603
- height: 0;
604
- width: 0;
781
+ :checked + .eds-switch__switch .eds-switch__circle {
782
+ left: 1.625rem;
605
783
  }
606
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
607
- height: 0.625rem;
608
- width: 0.625rem;
784
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
785
+ :checked + .eds-switch__switch .eds-switch__circle path {
786
+ fill: var(--eds-switch-color);
609
787
  }
610
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
788
+ .eds-contrast :checked + .eds-switch__switch {
789
+ background-color: var(--eds-switch-contrast-color);
790
+ }
791
+ :focus + .eds-switch__switch {
611
792
  outline: none;
612
793
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
613
794
  outline-offset: 0.125rem;
614
795
  }
615
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
796
+ .eds-contrast :focus + .eds-switch__switch {
616
797
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
617
798
  }
618
- .eds-form-component--radio__container .eds-form-component--radio__radio {
619
- position: relative;
620
- height: 1.25rem;
621
- width: 1.25rem;
622
- margin-right: 1rem;
623
- background-color: #ffffff;
624
- border: 0.125rem solid #181c56;
625
- border-radius: 50%;
626
- display: flex;
627
- align-items: center;
628
- justify-content: center;
629
- }
630
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
631
- background-color: #181c56;
632
- border-color: #aeb7e2;
799
+ .eds-switch__switch--large {
800
+ width: 3.75rem;
801
+ height: 2rem;
802
+ border-radius: 3.75rem;
633
803
  }
634
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
635
- background: #d1d3d3;
636
- border-color: #d1d3d3;
637
- cursor: not-allowed;
804
+ :checked + .eds-switch__switch--large .eds-switch__circle {
805
+ left: 1.875rem;
638
806
  }
639
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
640
- border-color: #d1d3d3;
807
+ .eds-switch__switch--large svg {
808
+ position: relative;
809
+ right: 0.05rem;
641
810
  }
642
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
643
- background: #d1d3d3;
644
- border-color: #d1d3d3;
811
+ .eds-switch__label--large--right {
812
+ font-size: 1rem;
645
813
  }
646
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
647
- color: #656782;
814
+ .eds-switch__label--large--bottom {
815
+ font-size: 0.875rem;
648
816
  }
649
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
650
- display: block;
651
- width: 0;
652
- height: 0;
653
- border-radius: 50%;
654
- background-color: #181c56;
655
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
817
+ .eds-switch__label--medium--right {
818
+ font-size: 0.875rem;
656
819
  }
657
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
658
- background-color: #aeb7e2;
820
+ .eds-switch__label--medium--bottom {
821
+ font-size: 0.75rem;
659
822
  }
660
823
  /* DO NOT CHANGE!*/
661
824
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -799,172 +962,6 @@
799
962
  }
800
963
  /* DO NOT CHANGE!*/
801
964
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
802
- .eds-switch {
803
- cursor: pointer;
804
- -webkit-user-select: none;
805
- -moz-user-select: none;
806
- user-select: none;
807
- padding: 0.5rem 0;
808
- width: -moz-fit-content;
809
- width: fit-content;
810
- }
811
- .eds-switch input {
812
- opacity: 0;
813
- pointer-events: none;
814
- position: absolute;
815
- }
816
- .eds-switch--right {
817
- display: flex;
818
- flex-direction: row;
819
- align-items: center;
820
- }
821
- .eds-switch--bottom {
822
- display: flex;
823
- flex-direction: column;
824
- align-items: center;
825
- }
826
- .eds-switch__circle {
827
- border-radius: 50%;
828
- height: 1.25rem;
829
- width: 1.25rem;
830
- content: "";
831
- display: flex;
832
- align-items: center;
833
- justify-content: center;
834
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
835
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
836
- background-color: #ffffff;
837
- top: 0.125rem;
838
- left: 0.125rem;
839
- position: relative;
840
- }
841
- .eds-switch__switch--large .eds-switch__circle {
842
- height: 1.75rem;
843
- width: 1.75rem;
844
- }
845
- .eds-switch .eds-switch__switch svg g,
846
- .eds-switch .eds-switch__switch path {
847
- fill: #949494;
848
- transition: fill ease-in-out 0.1s;
849
- }
850
- .eds-switch__switch {
851
- position: relative;
852
- background-color: #d1d3d3;
853
- content: "";
854
- display: block;
855
- transition: background-color 0.1s ease-in-out;
856
- height: 1.5rem;
857
- width: 3rem;
858
- border-radius: 1.5rem;
859
- }
860
- .eds-switch--right .eds-switch__switch {
861
- margin-right: 0.75rem;
862
- }
863
- :checked + .eds-switch__switch {
864
- background-color: var(--eds-switch-color);
865
- }
866
- :checked + .eds-switch__switch .eds-switch__circle {
867
- left: 1.625rem;
868
- }
869
- :checked + .eds-switch__switch .eds-switch__circle svg g,
870
- :checked + .eds-switch__switch .eds-switch__circle path {
871
- fill: var(--eds-switch-color);
872
- }
873
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
874
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
875
- fill: var(--eds-switch-color);
876
- }
877
- .eds-contrast :checked + .eds-switch__switch {
878
- background-color: var(--eds-switch-contrast-color);
879
- }
880
- :focus + .eds-switch__switch {
881
- outline: none;
882
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
883
- outline-offset: 0.125rem;
884
- }
885
- .eds-contrast :focus + .eds-switch__switch {
886
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
887
- }
888
- .eds-contrast .eds-switch__switch {
889
- background-color: #54568c;
890
- }
891
- .eds-switch__switch--large {
892
- width: 3.75rem;
893
- height: 2rem;
894
- border-radius: 3.75rem;
895
- }
896
- :checked + .eds-switch__switch--large .eds-switch__circle {
897
- left: 1.875rem;
898
- }
899
- .eds-switch__label--large--right {
900
- font-size: 1rem;
901
- }
902
- .eds-switch__label--large--bottom {
903
- font-size: 0.875rem;
904
- }
905
- .eds-switch__label--medium--right {
906
- font-size: 0.875rem;
907
- }
908
- .eds-switch__label--medium--bottom {
909
- font-size: 0.75rem;
910
- }
911
- /* DO NOT CHANGE!*/
912
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
913
- textarea.eds-form-control.eds-textarea {
914
- min-height: 7.75rem;
915
- resize: vertical;
916
- line-height: 1.5rem;
917
- }
918
- /* DO NOT CHANGE!*/
919
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
920
- .eds-textfield__clear-button {
921
- background: none;
922
- border: none;
923
- border-radius: 50%;
924
- color: inherit;
925
- cursor: pointer;
926
- display: flex;
927
- font: inherit;
928
- font-size: 1rem;
929
- line-height: 1rem;
930
- padding: 0.5rem;
931
- margin-right: -0.75rem;
932
- }
933
- .eds-textfield__clear-button-wrapper {
934
- display: flex;
935
- align-items: center;
936
- }
937
- .eds-textfield__clear-button:hover {
938
- background: #f3f3f3;
939
- }
940
- .eds-textfield__clear-button:focus {
941
- outline: none;
942
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
943
- }
944
-
945
- .eds-textfield__divider {
946
- content: "";
947
- display: block;
948
- background-color: #e9e9e9;
949
- height: 1.5rem;
950
- width: 1px;
951
- }
952
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
953
- background-color: #8285a8;
954
- }
955
- /* DO NOT CHANGE!*/
956
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
957
- .eds-segmented-control {
958
- margin-top: 0.25rem;
959
- display: flex;
960
- background: #d1d4e3;
961
- border-radius: 0.5rem;
962
- }
963
- .eds-contrast .eds-segmented-control {
964
- background: #393d79;
965
- }
966
- /* DO NOT CHANGE!*/
967
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
968
965
  .eds-segmented-choice {
969
966
  display: block;
970
967
  flex: 1 1 0px;
@@ -1034,3 +1031,14 @@ textarea.eds-form-control.eds-textarea {
1034
1031
  .eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1035
1032
  box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121), inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
1036
1033
  }
1034
+ /* DO NOT CHANGE!*/
1035
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1036
+ .eds-segmented-control {
1037
+ margin-top: 0.25rem;
1038
+ display: flex;
1039
+ background: #d1d4e3;
1040
+ border-radius: 0.5rem;
1041
+ }
1042
+ .eds-contrast .eds-segmented-control {
1043
+ background: #393d79;
1044
+ }