@entur/form 8.2.8 → 8.2.9

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
@@ -39,52 +39,52 @@
39
39
  fill: var(--components-form-checkbox-standard-icon);
40
40
  }
41
41
  .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
42
- opacity: 0.5;
42
+ background-color: var(--components-form-checkbox-standard-icon-disabled);
43
43
  }
44
44
  .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
45
- opacity: 0.5;
45
+ background-color: var(--components-form-checkbox-standard-icon-disabled);
46
46
  }
47
47
  .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
48
- opacity: 0.5;
48
+ background-color: var(--components-form-checkbox-standard-icon-disabled);
49
49
  }
50
50
  .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
51
- opacity: 0.5;
51
+ background-color: var(--components-form-checkbox-standard-icon-disabled);
52
52
  }
53
53
  .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
54
- opacity: 0.5;
54
+ background-color: var(--components-form-checkbox-standard-icon-disabled);
55
55
  }
56
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
57
- background-color: var(--components-form-checkbox-contrast-fill-selected);
56
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast {
57
+ color: var(--components-form-checkbox-contrast-fill-selected);
58
58
  }
59
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
59
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast path {
60
60
  stroke: var(--components-form-checkbox-contrast-icon);
61
61
  }
62
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
62
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast rect {
63
63
  fill: var(--components-form-checkbox-contrast-icon);
64
64
  }
65
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
65
+ .eds-checkbox__container:hover(:not(:has(input:disabled))) input + .eds-checkbox__icon {
66
66
  border-color: var(--components-form-checkbox-standard-border);
67
67
  background-color: var(--components-form-checkbox-standard-fill-hover);
68
68
  }
69
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
69
+ .eds-contrast .eds-checkbox__container:hover(:not(:has(input:disabled))) input + .eds-checkbox__icon {
70
70
  border-color: var(--components-form-checkbox-contrast-border);
71
71
  background-color: var(--components-form-checkbox-contrast-fill-hover);
72
72
  }
73
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
74
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
73
+ .eds-checkbox__container:hover(:not(:has(input:disabled))) input:checked + .eds-checkbox__icon,
74
+ .eds-checkbox__container:hover(:not(:has(input:disabled))) input:indeterminate + .eds-checkbox__icon:not(.eds-checkbox--disabled) {
75
75
  border-color: transparent;
76
76
  background-color: var(--components-form-checkbox-standard-fill-selectedhover);
77
77
  }
78
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
79
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
78
+ .eds-contrast .eds-checkbox__container:hover(:not(:has(input:disabled))) input:checked + .eds-checkbox__icon,
79
+ .eds-contrast .eds-checkbox__container:hover(:not(:has(input:disabled))) input:indeterminate + .eds-checkbox__icon:not(.eds-checkbox--disabled) {
80
80
  background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
81
81
  }
82
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
83
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
82
+ .eds-checkbox__container:active(:not(:has(input:disabled))) input:checked + .eds-checkbox__icon,
83
+ .eds-checkbox__container:active(:not(:has(input:disabled))) input:indeterminate + .eds-checkbox__icon {
84
84
  background-color: var(--components-form-checkbox-standard-fill-selected);
85
85
  }
86
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
87
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
86
+ .eds-contrast .eds-checkbox__container:active(:not(:has(input:disabled))) input:checked + .eds-checkbox__icon,
87
+ .eds-contrast .eds-checkbox__container:active(:not(:has(input:disabled))) input:indeterminate + .eds-checkbox__icon {
88
88
  background-color: var(--components-form-checkbox-contrast-fill-selected);
89
89
  }
90
90
  .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
@@ -96,13 +96,19 @@
96
96
  outline-color: var(--basecolors-stroke-focus-contrast);
97
97
  }
98
98
  .eds-checkbox--disabled {
99
+ cursor: not-allowed;
100
+ }
101
+ .eds-checkbox--disabled input {
99
102
  pointer-events: none;
100
103
  }
101
104
  .eds-checkbox--disabled .eds-checkbox__label {
102
105
  opacity: 0.5;
103
106
  }
104
107
  .eds-checkbox--disabled .eds-checkbox__icon {
105
- opacity: 0.5;
108
+ border-color: var(--components-form-checkbox-standard-icon-disabled);
109
+ }
110
+ .eds-contrast .eds-checkbox--disabled .eds-checkbox__icon {
111
+ border-color: var(--components-form-checkbox-contrast-icon-disabled);
106
112
  }
107
113
  .eds-checkbox__icon {
108
114
  box-sizing: border-box;
@@ -143,6 +149,79 @@
143
149
  }
144
150
  /* DO NOT CHANGE!*/
145
151
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
152
+ .eds-feedback-text {
153
+ display: flex;
154
+ align-items: center;
155
+ margin-top: 0.25rem;
156
+ }
157
+ .eds-feedback-text--info, .eds-feedback-text--information {
158
+ padding-left: calc(1rem + 0.125rem);
159
+ }
160
+ .eds-feedback-text__text {
161
+ color: var(--components-form-feedbacktext-information-standard-text);
162
+ }
163
+ .eds-contrast .eds-feedback-text__text {
164
+ color: var(--components-form-feedbacktext-information-contrast-text);
165
+ }
166
+
167
+ .eds-feedback-text__icon {
168
+ font-size: 1.5rem;
169
+ min-height: 1.5rem;
170
+ min-width: 1.5rem;
171
+ padding-right: 0.5rem;
172
+ position: relative;
173
+ top: -0.1rem;
174
+ }
175
+ .eds-feedback-text__icon--success {
176
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
177
+ }
178
+ .eds-feedback-text__icon--success circle {
179
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
180
+ }
181
+ .eds-contrast .eds-feedback-text__icon--success {
182
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
183
+ }
184
+ .eds-contrast .eds-feedback-text__icon--success circle {
185
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
186
+ }
187
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
188
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
189
+ }
190
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
191
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
192
+ }
193
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
194
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
195
+ }
196
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
197
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
198
+ }
199
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
200
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
201
+ }
202
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
203
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
204
+ }
205
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
206
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
207
+ }
208
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
209
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
210
+ }
211
+ .eds-feedback-text__icon--warning {
212
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
213
+ }
214
+ .eds-feedback-text__icon--warning .svg-exclamation {
215
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
216
+ }
217
+ .eds-contrast .eds-feedback-text__icon--warning {
218
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
219
+ }
220
+ .eds-contrast .eds-feedback-text__icon--warning circle {
221
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
222
+ }
223
+ /* DO NOT CHANGE!*/
224
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
146
225
  .eds-form-control__field-and-feedback-text {
147
226
  display: flex;
148
227
  flex-direction: column;
@@ -351,76 +430,91 @@
351
430
  }
352
431
  /* DO NOT CHANGE!*/
353
432
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
354
- .eds-feedback-text {
355
- display: flex;
356
- align-items: center;
357
- margin-top: 0.25rem;
358
- }
359
- .eds-feedback-text--info, .eds-feedback-text--information {
360
- padding-left: calc(1rem + 0.125rem);
361
- }
362
- .eds-feedback-text__text {
363
- color: var(--components-form-feedbacktext-information-standard-text);
364
- }
365
- .eds-contrast .eds-feedback-text__text {
366
- color: var(--components-form-feedbacktext-information-contrast-text);
367
- }
368
-
369
- .eds-feedback-text__icon {
370
- font-size: 1.5rem;
371
- min-height: 1.5rem;
372
- min-width: 1.5rem;
373
- padding-right: 0.5rem;
433
+ .eds-input-group {
434
+ color: inherit;
435
+ display: block;
374
436
  position: relative;
375
- top: -0.1rem;
376
- }
377
- .eds-feedback-text__icon--success {
378
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
379
- }
380
- .eds-feedback-text__icon--success circle {
381
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
382
- }
383
- .eds-contrast .eds-feedback-text__icon--success {
384
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
385
437
  }
386
- .eds-contrast .eds-feedback-text__icon--success circle {
387
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
388
- }
389
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
390
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
438
+ .eds-input-group__label {
439
+ color: var(--components-form-baseform-standard-text-label);
440
+ display: flex;
441
+ font-size: 1rem;
442
+ position: absolute;
443
+ line-height: 1rem;
444
+ height: 3rem;
445
+ padding-left: 0;
446
+ top: 1rem;
447
+ 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;
448
+ -webkit-user-select: none;
449
+ -moz-user-select: none;
450
+ user-select: none;
451
+ pointer-events: none;
391
452
  }
392
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
393
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
453
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
454
+ top: 0.375rem;
455
+ font-size: 0.75rem;
456
+ line-height: 0.75rem;
457
+ height: 10px;
458
+ padding: 0;
394
459
  }
395
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
396
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
460
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
461
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
462
+ background: var(--textarea-label-background);
463
+ width: calc(100% - 1rem - 1rem - 4px);
397
464
  }
398
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
399
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
465
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
466
+ top: 0.5rem;
467
+ font-size: 0.875rem;
468
+ line-height: 1rem;
469
+ padding: 0;
400
470
  }
401
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
402
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
471
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
472
+ top: 0.75rem;
473
+ font-size: 1.5rem;
474
+ line-height: 2.25rem;
403
475
  }
404
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
405
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
476
+ .eds-input-group__label--filled {
477
+ top: 0.375rem;
478
+ font-size: 0.75rem;
479
+ line-height: 0.75rem;
480
+ height: 10px;
481
+ padding: 0;
406
482
  }
407
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
408
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
483
+ .eds-textarea__label .eds-input-group__label--filled {
484
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
485
+ background: var(--textarea-label-background);
486
+ width: calc(100% - 1rem - 1rem - 4px);
409
487
  }
410
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
411
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
488
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
489
+ top: 0.5rem;
490
+ font-size: 0.875rem;
491
+ line-height: 1rem;
492
+ padding: 0;
412
493
  }
413
- .eds-feedback-text__icon--warning {
414
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
494
+
495
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
496
+ top: 0.375rem;
497
+ font-size: 0.75rem;
498
+ line-height: 0.75rem;
499
+ height: 10px;
500
+ padding: 0;
415
501
  }
416
- .eds-feedback-text__icon--warning .svg-exclamation {
417
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
502
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
503
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
504
+ background: var(--textarea-label-background);
505
+ width: calc(100% - 1rem - 1rem - 4px);
418
506
  }
419
- .eds-contrast .eds-feedback-text__icon--warning {
420
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
507
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
508
+ top: 0.5rem;
509
+ font-size: 0.875rem;
510
+ line-height: 1rem;
511
+ padding: 0;
421
512
  }
422
- .eds-contrast .eds-feedback-text__icon--warning circle {
423
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
513
+ .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
514
+ top: 1rem;
515
+ font-size: 1rem;
516
+ height: 3rem;
517
+ line-height: 1rem;
424
518
  }
425
519
  .eds-fieldset {
426
520
  margin: 0;
@@ -467,6 +561,9 @@
467
561
  .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
468
562
  outline-color: var(--basecolors-stroke-focus-contrast);
469
563
  }
564
+ .eds-form-component--radio__container:has(input:disabled) {
565
+ cursor: not-allowed;
566
+ }
470
567
  .eds-form-component--radio__container .eds-form-component--radio__radio {
471
568
  position: relative;
472
569
  height: 1.25rem;
@@ -484,19 +581,28 @@
484
581
  border-color: var(--components-form-radio-contrast-border);
485
582
  }
486
583
  .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
487
- background: var(--components-form-baseform-contrast-fill-disabled);
488
- border-color: var(--components-form-baseform-contrast-text-disabled);
489
- cursor: not-allowed;
584
+ background: var(--components-form-radio-contrast-fill-disabled);
585
+ border-color: var(--components-form-radio-contrast-text-disabled);
490
586
  }
491
587
  .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
492
- border-color: var(--components-form-baseform-contrast-text-disabled);
588
+ border-color: var(--components-form-radio-contrast-text-disabled);
493
589
  }
494
590
  .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
495
- background: var(--components-form-baseform-contrast-fill-disabled);
496
- border-color: var(--components-form-baseform-contrast-text-disabled);
591
+ background: var(--components-form-radio-contrast-fill-disabled);
592
+ border-color: var(--components-form-radio-contrast-text-disabled);
497
593
  }
498
594
  .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
499
- color: var(--components-form-baseform-contrast-text-disabled);
595
+ color: var(--components-form-radio-contrast-text-disabled);
596
+ }
597
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
598
+ background-color: var(--components-form-radio-standard-icon-disabled);
599
+ border-color: var(--components-form-radio-contrast-text-disabled);
600
+ }
601
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
602
+ background-color: var(--components-form-radio-standard-icon-disabled);
603
+ }
604
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
605
+ background-color: var(--components-form-radio-contrast-icon-disabled);
500
606
  }
501
607
  .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
502
608
  display: block;
@@ -511,43 +617,162 @@
511
617
  }
512
618
  /* DO NOT CHANGE!*/
513
619
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
514
- /* DO NOT CHANGE!*/
515
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
516
- /* DO NOT CHANGE!*/
517
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
518
- /* DO NOT CHANGE!*/
519
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
520
- /* DO NOT CHANGE!*/
521
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
522
- [data-color-mode=light],
523
- :root {
524
- --basecolors-frame-contrast: #181c56;
525
- --basecolors-frame-contrastalt: #393d79;
526
- --basecolors-frame-contrastalt-2: #292b6a;
527
- --basecolors-frame-default: #ffffff;
528
- --basecolors-frame-elevated: #ffffff;
529
- --basecolors-frame-elevatedalt: #f6f6f9;
530
- --basecolors-frame-subdued: #d9dae8;
531
- --basecolors-frame-tint: #f6f6f9;
532
- --basecolors-shape-accent: #181c56;
533
- --basecolors-shape-bicycle-contrast: #00db9b;
534
- --basecolors-shape-bicycle-default: #388f76;
535
- --basecolors-shape-bus-contrast: #ff6392;
536
- --basecolors-shape-bus-default: #c5044e;
537
- --basecolors-shape-cableway-contrast: #b482fb;
538
- --basecolors-shape-cableway-default: #78469a;
539
- --basecolors-shape-disabled: #6e6f73;
540
- --basecolors-shape-disabledalt: #b6b8ba;
541
- --basecolors-shape-ferry-contrast: #6fdfff;
542
- --basecolors-shape-ferry-default: #0c6693;
543
- --basecolors-shape-funicular-contrast: #b482fb;
544
- --basecolors-shape-funicular-default: #78469a;
545
- --basecolors-shape-helicopter-contrast: #fbafea;
546
- --basecolors-shape-helicopter-default: #800664;
547
- --basecolors-shape-highlight: #ff5959;
548
- --basecolors-shape-light: #ffffff;
549
- --basecolors-shape-mask: #ffffff;
550
- --basecolors-shape-maskalt: #ffffff;
620
+ .eds-switch {
621
+ cursor: pointer;
622
+ -webkit-user-select: none;
623
+ -moz-user-select: none;
624
+ user-select: none;
625
+ padding: 0.5rem 0;
626
+ width: -moz-fit-content;
627
+ width: fit-content;
628
+ }
629
+ .eds-switch input {
630
+ opacity: 0;
631
+ pointer-events: none;
632
+ position: absolute;
633
+ }
634
+ .eds-switch--right {
635
+ display: flex;
636
+ flex-direction: row;
637
+ align-items: center;
638
+ }
639
+ .eds-switch--bottom {
640
+ display: flex;
641
+ flex-direction: column;
642
+ align-items: center;
643
+ }
644
+ .eds-switch__circle {
645
+ border-radius: 50%;
646
+ height: 1.25rem;
647
+ width: 1.25rem;
648
+ content: "";
649
+ display: flex;
650
+ align-items: center;
651
+ justify-content: center;
652
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
653
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
654
+ background-color: var(--components-form-switch-standard-switch);
655
+ top: 0.125rem;
656
+ left: 0.125rem;
657
+ position: relative;
658
+ }
659
+ .eds-switch__switch--large .eds-switch__circle {
660
+ height: 1.75rem;
661
+ width: 1.75rem;
662
+ }
663
+ .eds-contrast .eds-switch__circle {
664
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
665
+ }
666
+ .eds-switch__switch {
667
+ position: relative;
668
+ background-color: var(--components-form-switch-standard-fill-false);
669
+ content: "";
670
+ display: block;
671
+ transition: background-color 0.1s ease-in-out;
672
+ height: 1.5rem;
673
+ width: 3rem;
674
+ border-radius: 1.5rem;
675
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
676
+ }
677
+ .eds-contrast .eds-switch__switch {
678
+ background-color: var(--components-form-switch-contrast-fill-false);
679
+ }
680
+ .eds-switch--right .eds-switch__switch {
681
+ margin-right: 0.75rem;
682
+ }
683
+ .eds-switch__switch svg g,
684
+ .eds-switch__switch path {
685
+ fill: var(--components-form-switch-standard-icon-false);
686
+ transition: fill ease-in-out 0.1s;
687
+ }
688
+ .eds-contrast .eds-switch__switch svg g,
689
+ .eds-contrast .eds-switch__switch path {
690
+ fill: var(--components-form-switch-contrast-icon-false);
691
+ }
692
+ :checked + .eds-switch__switch {
693
+ background-color: var(--eds-switch-color);
694
+ }
695
+ :checked + .eds-switch__switch .eds-switch__circle {
696
+ left: 1.625rem;
697
+ }
698
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
699
+ :checked + .eds-switch__switch .eds-switch__circle path {
700
+ fill: var(--eds-switch-color);
701
+ }
702
+ .eds-contrast :checked + .eds-switch__switch {
703
+ background-color: var(--eds-switch-contrast-color);
704
+ }
705
+ :focus-visible + .eds-switch__switch {
706
+ outline: 2px solid #181c56;
707
+ outline-color: var(--basecolors-stroke-focus-standard);
708
+ outline-offset: 0.125rem;
709
+ }
710
+ .eds-contrast :focus-visible + .eds-switch__switch {
711
+ outline-color: var(--basecolors-stroke-focus-contrast);
712
+ }
713
+ .eds-switch__switch--large {
714
+ width: 3.75rem;
715
+ height: 2rem;
716
+ border-radius: 3.75rem;
717
+ }
718
+ :checked + .eds-switch__switch--large .eds-switch__circle {
719
+ left: 1.875rem;
720
+ }
721
+ .eds-switch__switch--large svg {
722
+ position: relative;
723
+ right: 0.05rem;
724
+ }
725
+ .eds-switch__label--large--right {
726
+ font-size: 1rem;
727
+ }
728
+ .eds-switch__label--large--bottom {
729
+ font-size: 0.875rem;
730
+ }
731
+ .eds-switch__label--medium--right {
732
+ font-size: 0.875rem;
733
+ }
734
+ .eds-switch__label--medium--bottom {
735
+ font-size: 0.75rem;
736
+ }
737
+ /* DO NOT CHANGE!*/
738
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
739
+ /* DO NOT CHANGE!*/
740
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
741
+ /* DO NOT CHANGE!*/
742
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
743
+ /* DO NOT CHANGE!*/
744
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
745
+ /* DO NOT CHANGE!*/
746
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
747
+ [data-color-mode=light],
748
+ :root {
749
+ --basecolors-frame-contrast: #181c56;
750
+ --basecolors-frame-contrastalt: #393d79;
751
+ --basecolors-frame-contrastalt-2: #292b6a;
752
+ --basecolors-frame-default: #ffffff;
753
+ --basecolors-frame-elevated: #ffffff;
754
+ --basecolors-frame-elevatedalt: #f6f6f9;
755
+ --basecolors-frame-subdued: #d9dae8;
756
+ --basecolors-frame-tint: #f6f6f9;
757
+ --basecolors-shape-accent: #181c56;
758
+ --basecolors-shape-bicycle-contrast: #00db9b;
759
+ --basecolors-shape-bicycle-default: #388f76;
760
+ --basecolors-shape-bus-contrast: #ff6392;
761
+ --basecolors-shape-bus-default: #c5044e;
762
+ --basecolors-shape-cableway-contrast: #b482fb;
763
+ --basecolors-shape-cableway-default: #78469a;
764
+ --basecolors-shape-disabled: #6e6f73;
765
+ --basecolors-shape-disabledalt: #b6b8ba;
766
+ --basecolors-shape-ferry-contrast: #6fdfff;
767
+ --basecolors-shape-ferry-default: #0c6693;
768
+ --basecolors-shape-funicular-contrast: #b482fb;
769
+ --basecolors-shape-funicular-default: #78469a;
770
+ --basecolors-shape-helicopter-contrast: #fbafea;
771
+ --basecolors-shape-helicopter-default: #800664;
772
+ --basecolors-shape-highlight: #ff5959;
773
+ --basecolors-shape-light: #ffffff;
774
+ --basecolors-shape-mask: #ffffff;
775
+ --basecolors-shape-maskalt: #ffffff;
551
776
  --basecolors-shape-metro-contrast: #f08901;
552
777
  --basecolors-shape-metro-default: #bf5826;
553
778
  --basecolors-shape-mobility-contrast: #00db9b;
@@ -776,259 +1001,52 @@ input:disabled + .eds-input-panel__container {
776
1001
  color: var(--components-form-basepanel-standard-text-disabled);
777
1002
  cursor: not-allowed;
778
1003
  }
779
- .eds-contrast input:disabled + .eds-input-panel__container {
780
- background: var(--components-form-basepanel-contrast-fill-disabled);
781
- border-style: dashed;
782
- border-color: var(--components-form-basepanel-contrast-border-disabled);
783
- color: var(--components-form-basepanel-contrast-text-disabled);
784
- }
785
- .eds-input-panel__container .eds-checkbox__icon,
786
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
787
- .eds-input-panel__container .eds-form-component--radio__radio {
788
- width: 1.5rem;
789
- height: 1.5rem;
790
- margin-right: 0;
791
- }
792
- .eds-input-panel--medium .eds-input-panel__title {
793
- font-size: 1rem;
794
- font-weight: 500;
795
- }
796
- .eds-input-panel--medium.eds-input-panel__container {
797
- padding-bottom: 1rem;
798
- min-height: 3.75rem;
799
- }
800
- .eds-input-panel--large.eds-input-panel__container {
801
- min-height: 6rem;
802
- }
803
- .eds-input-panel--large .eds-input-panel__title {
804
- font-size: 1.25rem;
805
- font-weight: 500;
806
- line-height: 1.875rem;
807
- }
808
- .eds-input-panel__title-wrapper {
809
- display: flex;
810
- justify-content: space-between;
811
- align-items: center;
812
- }
813
- .eds-input-panel__secondary-label-and-icon-wrapper {
814
- display: flex;
815
- justify-content: center;
816
- align-items: center;
817
- gap: 0.75rem;
818
- }
819
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
820
- margin: 0;
821
- }
822
- .eds-input-panel__additional-content {
823
- margin-top: 0.25rem;
824
- word-wrap: break-word;
825
- }
826
- /* DO NOT CHANGE!*/
827
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
828
- .eds-switch {
829
- cursor: pointer;
830
- -webkit-user-select: none;
831
- -moz-user-select: none;
832
- user-select: none;
833
- padding: 0.5rem 0;
834
- width: -moz-fit-content;
835
- width: fit-content;
836
- }
837
- .eds-switch input {
838
- opacity: 0;
839
- pointer-events: none;
840
- position: absolute;
841
- }
842
- .eds-switch--right {
843
- display: flex;
844
- flex-direction: row;
845
- align-items: center;
846
- }
847
- .eds-switch--bottom {
848
- display: flex;
849
- flex-direction: column;
850
- align-items: center;
851
- }
852
- .eds-switch__circle {
853
- border-radius: 50%;
854
- height: 1.25rem;
855
- width: 1.25rem;
856
- content: "";
857
- display: flex;
858
- align-items: center;
859
- justify-content: center;
860
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
861
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
862
- background-color: var(--components-form-switch-standard-switch);
863
- top: 0.125rem;
864
- left: 0.125rem;
865
- position: relative;
866
- }
867
- .eds-switch__switch--large .eds-switch__circle {
868
- height: 1.75rem;
869
- width: 1.75rem;
870
- }
871
- .eds-contrast .eds-switch__circle {
872
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
873
- }
874
- .eds-switch__switch {
875
- position: relative;
876
- background-color: var(--components-form-switch-standard-fill-false);
877
- content: "";
878
- display: block;
879
- transition: background-color 0.1s ease-in-out;
880
- height: 1.5rem;
881
- width: 3rem;
882
- border-radius: 1.5rem;
883
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
884
- }
885
- .eds-contrast .eds-switch__switch {
886
- background-color: var(--components-form-switch-contrast-fill-false);
887
- }
888
- .eds-switch--right .eds-switch__switch {
889
- margin-right: 0.75rem;
890
- }
891
- .eds-switch__switch svg g,
892
- .eds-switch__switch path {
893
- fill: var(--components-form-switch-standard-icon-false);
894
- transition: fill ease-in-out 0.1s;
895
- }
896
- .eds-contrast .eds-switch__switch svg g,
897
- .eds-contrast .eds-switch__switch path {
898
- fill: var(--components-form-switch-contrast-icon-false);
899
- }
900
- :checked + .eds-switch__switch {
901
- background-color: var(--eds-switch-color);
902
- }
903
- :checked + .eds-switch__switch .eds-switch__circle {
904
- left: 1.625rem;
905
- }
906
- :checked + .eds-switch__switch .eds-switch__circle svg g,
907
- :checked + .eds-switch__switch .eds-switch__circle path {
908
- fill: var(--eds-switch-color);
909
- }
910
- .eds-contrast :checked + .eds-switch__switch {
911
- background-color: var(--eds-switch-contrast-color);
912
- }
913
- :focus-visible + .eds-switch__switch {
914
- outline: 2px solid #181c56;
915
- outline-color: var(--basecolors-stroke-focus-standard);
916
- outline-offset: 0.125rem;
917
- }
918
- .eds-contrast :focus-visible + .eds-switch__switch {
919
- outline-color: var(--basecolors-stroke-focus-contrast);
920
- }
921
- .eds-switch__switch--large {
922
- width: 3.75rem;
923
- height: 2rem;
924
- border-radius: 3.75rem;
925
- }
926
- :checked + .eds-switch__switch--large .eds-switch__circle {
927
- left: 1.875rem;
928
- }
929
- .eds-switch__switch--large svg {
930
- position: relative;
931
- right: 0.05rem;
932
- }
933
- .eds-switch__label--large--right {
934
- font-size: 1rem;
935
- }
936
- .eds-switch__label--large--bottom {
937
- font-size: 0.875rem;
938
- }
939
- .eds-switch__label--medium--right {
940
- font-size: 0.875rem;
941
- }
942
- .eds-switch__label--medium--bottom {
943
- font-size: 0.75rem;
944
- }
945
- /* DO NOT CHANGE!*/
946
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
947
- .eds-input-group {
948
- color: inherit;
949
- display: block;
950
- position: relative;
951
- }
952
- .eds-input-group__label {
953
- color: var(--components-form-baseform-standard-text-label);
954
- display: flex;
955
- font-size: 1rem;
956
- position: absolute;
957
- line-height: 1rem;
958
- height: 3rem;
959
- padding-left: 0;
960
- top: 1rem;
961
- 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;
962
- -webkit-user-select: none;
963
- -moz-user-select: none;
964
- user-select: none;
965
- pointer-events: none;
966
- }
967
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
968
- top: 0.375rem;
969
- font-size: 0.75rem;
970
- line-height: 0.75rem;
971
- height: 10px;
972
- padding: 0;
973
- }
974
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
975
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
976
- background: var(--textarea-label-background);
977
- width: calc(100% - 1rem - 1rem - 4px);
1004
+ .eds-contrast input:disabled + .eds-input-panel__container {
1005
+ background: var(--components-form-basepanel-contrast-fill-disabled);
1006
+ border-style: dashed;
1007
+ border-color: var(--components-form-basepanel-contrast-border-disabled);
1008
+ color: var(--components-form-basepanel-contrast-text-disabled);
978
1009
  }
979
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
980
- top: 0.5rem;
981
- font-size: 0.875rem;
982
- line-height: 1rem;
983
- padding: 0;
1010
+ .eds-input-panel__container .eds-checkbox__icon,
1011
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
1012
+ .eds-input-panel__container .eds-form-component--radio__radio {
1013
+ width: 1.5rem;
1014
+ height: 1.5rem;
1015
+ margin-right: 0;
984
1016
  }
985
- .eds-form-control-wrapper--size-large .eds-input-group__label {
986
- top: 0.75rem;
987
- font-size: 1.5rem;
988
- line-height: 2.25rem;
1017
+ .eds-input-panel--medium .eds-input-panel__title {
1018
+ font-size: 1rem;
1019
+ font-weight: 500;
989
1020
  }
990
- .eds-input-group__label--filled {
991
- top: 0.375rem;
992
- font-size: 0.75rem;
993
- line-height: 0.75rem;
994
- height: 10px;
995
- padding: 0;
1021
+ .eds-input-panel--medium.eds-input-panel__container {
1022
+ padding-bottom: 1rem;
1023
+ min-height: 3.75rem;
996
1024
  }
997
- .eds-textarea__label .eds-input-group__label--filled {
998
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
999
- background: var(--textarea-label-background);
1000
- width: calc(100% - 1rem - 1rem - 4px);
1025
+ .eds-input-panel--large.eds-input-panel__container {
1026
+ min-height: 6rem;
1001
1027
  }
1002
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
1003
- top: 0.5rem;
1004
- font-size: 0.875rem;
1005
- line-height: 1rem;
1006
- padding: 0;
1028
+ .eds-input-panel--large .eds-input-panel__title {
1029
+ font-size: 1.25rem;
1030
+ font-weight: 500;
1031
+ line-height: 1.875rem;
1007
1032
  }
1008
-
1009
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
1010
- top: 0.375rem;
1011
- font-size: 0.75rem;
1012
- line-height: 0.75rem;
1013
- height: 10px;
1014
- padding: 0;
1033
+ .eds-input-panel__title-wrapper {
1034
+ display: flex;
1035
+ justify-content: space-between;
1036
+ align-items: center;
1015
1037
  }
1016
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
1017
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
1018
- background: var(--textarea-label-background);
1019
- width: calc(100% - 1rem - 1rem - 4px);
1038
+ .eds-input-panel__secondary-label-and-icon-wrapper {
1039
+ display: flex;
1040
+ justify-content: center;
1041
+ align-items: center;
1042
+ gap: 0.75rem;
1020
1043
  }
1021
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
1022
- top: 0.5rem;
1023
- font-size: 0.875rem;
1024
- line-height: 1rem;
1025
- padding: 0;
1044
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
1045
+ margin: 0;
1026
1046
  }
1027
- .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
1028
- top: 1rem;
1029
- font-size: 1rem;
1030
- height: 3rem;
1031
- line-height: 1rem;
1047
+ .eds-input-panel__additional-content {
1048
+ margin-top: 0.25rem;
1049
+ word-wrap: break-word;
1032
1050
  }
1033
1051
  /* DO NOT CHANGE!*/
1034
1052
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1074,85 +1092,14 @@ input:disabled + .eds-input-panel__container {
1074
1092
  }
1075
1093
  /* DO NOT CHANGE!*/
1076
1094
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1077
- .eds-segmented-choice {
1078
- display: block;
1079
- flex: 1 1 0px;
1080
- }
1081
- .eds-segmented-choice .eds-base-segmented {
1082
- --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1083
- background-color: var(--background-color);
1084
- border-radius: 0.25rem;
1085
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1086
- cursor: pointer;
1087
- font-size: 0.875rem;
1088
- height: 1.5rem;
1089
- line-height: 1.25rem;
1090
- margin: 0.25rem;
1091
- outline-color: transparent;
1092
- padding: calc(0.25rem / 2) 0.75rem;
1093
- text-align: center;
1094
- -webkit-user-select: none;
1095
- -moz-user-select: none;
1096
- user-select: none;
1097
- }
1098
- .eds-segmented-choice .eds-base-segmented--large {
1099
- font-size: 1rem;
1100
- height: 2.5rem;
1101
- line-height: 1.5rem;
1102
- padding: 0.5rem 0.75rem;
1103
- }
1104
- .eds-contrast .eds-segmented-choice .eds-base-segmented {
1105
- --background-color: var(--components-form-segmentedcontrol-contrast-background);
1106
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1107
- }
1108
- .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1109
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1110
- }
1111
- .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1112
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1113
- }
1114
- .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1115
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1116
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1117
- }
1118
- .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1119
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1120
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1121
- }
1122
- .eds-segmented-choice input {
1123
- -webkit-appearance: none;
1124
- -moz-appearance: none;
1125
- appearance: none;
1126
- position: absolute;
1127
- opacity: 0;
1128
- height: 0;
1129
- width: 0;
1130
- }
1131
- .eds-segmented-choice input:checked + .eds-base-segmented {
1132
- --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1133
- color: var(--components-form-segmentedcontrol-standard-text-selected);
1134
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1135
- }
1136
- .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1137
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1138
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1139
- color: var(--components-form-segmentedcontrol-contrast-text-selected);
1140
- }
1141
- .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1142
- outline: 2px solid #181c56;
1143
- outline-color: var(--basecolors-stroke-focus-standard);
1144
- outline-offset: 0.125rem;
1145
- }
1146
- .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1147
- outline-color: var(--basecolors-stroke-focus-contrast);
1148
- }
1149
- .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1150
- outline: 2px solid #181c56;
1151
- outline-color: var(--basecolors-stroke-focus-standard);
1152
- outline-offset: 0.125rem;
1095
+ .eds-segmented-control {
1096
+ margin-top: 0.25rem;
1097
+ display: flex;
1098
+ background: var(--components-form-segmentedcontrol-standard-background);
1099
+ border-radius: 0.5rem;
1153
1100
  }
1154
- .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1155
- outline-color: var(--basecolors-stroke-focus-contrast);
1101
+ .eds-contrast .eds-segmented-control {
1102
+ background: var(--components-form-segmentedcontrol-contrast-background);
1156
1103
  }
1157
1104
  /* DO NOT CHANGE!*/
1158
1105
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1221,21 +1168,33 @@ input:disabled + .eds-input-panel__container {
1221
1168
  --components-form-basepanel-standard-text-rebate: #1a8e60;
1222
1169
  --components-form-basepanel-standard-text-subdued: #626493;
1223
1170
  --components-form-checkbox-contrast-border: #aeb7e2;
1171
+ --components-form-checkbox-contrast-border-disabled: #6e6f73;
1224
1172
  --components-form-checkbox-contrast-border-negative: #ff9494;
1173
+ --components-form-checkbox-contrast-border-readonly: #6e6f73;
1225
1174
  --components-form-checkbox-contrast-fill-default: rgba(255, 255, 255, 0);
1175
+ --components-form-checkbox-contrast-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1226
1176
  --components-form-checkbox-contrast-fill-hover: #626493;
1227
1177
  --components-form-checkbox-contrast-fill-selected: #aeb7e2;
1228
1178
  --components-form-checkbox-contrast-fill-selectedhover: #c7cdeb;
1229
1179
  --components-form-checkbox-contrast-icon: #181c56;
1180
+ --components-form-checkbox-contrast-icon-disabled: #949699;
1181
+ --components-form-checkbox-contrast-icon-readonly: #ffffff;
1230
1182
  --components-form-checkbox-contrast-text: #ffffff;
1183
+ --components-form-checkbox-contrast-text-disabled: #949699;
1231
1184
  --components-form-checkbox-standard-border: #181c56;
1185
+ --components-form-checkbox-standard-border-disabled: #e3e6e8;
1232
1186
  --components-form-checkbox-standard-border-negative: #d31b1b;
1187
+ --components-form-checkbox-standard-border-readonly: #e3e6e8;
1233
1188
  --components-form-checkbox-standard-fill-default: rgba(255, 255, 255, 0);
1189
+ --components-form-checkbox-standard-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1234
1190
  --components-form-checkbox-standard-fill-hover: #d9ddf2;
1235
1191
  --components-form-checkbox-standard-fill-selected: #181c56;
1236
1192
  --components-form-checkbox-standard-fill-selectedhover: #393d79;
1237
1193
  --components-form-checkbox-standard-icon: #ffffff;
1194
+ --components-form-checkbox-standard-icon-disabled: #b6b8ba;
1195
+ --components-form-checkbox-standard-icon-readonly: #181c56;
1238
1196
  --components-form-checkbox-standard-text: #181c56;
1197
+ --components-form-checkbox-standard-text-disabled: #b6b8ba;
1239
1198
  --components-form-feedbacktext-information-contrast-icon-fill: #64b3e7;
1240
1199
  --components-form-feedbacktext-information-contrast-icon-symbol: #181c56;
1241
1200
  --components-form-feedbacktext-information-contrast-stroke: #181c56;
@@ -1269,21 +1228,33 @@ input:disabled + .eds-input-panel__container {
1269
1228
  --components-form-feedbacktext-warning-standard-stroke: #ffffff;
1270
1229
  --components-form-feedbacktext-warning-standard-text: #181c56;
1271
1230
  --components-form-radio-contrast-border: #aeb7e2;
1231
+ --components-form-radio-contrast-border-disabled: #6e6f73;
1272
1232
  --components-form-radio-contrast-border-negative: #ff9494;
1233
+ --components-form-radio-contrast-border-readonly: #6e6f73;
1273
1234
  --components-form-radio-contrast-fill-default: rgba(255, 255, 255, 0);
1235
+ --components-form-radio-contrast-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1274
1236
  --components-form-radio-contrast-fill-hover: #626493;
1275
1237
  --components-form-radio-contrast-fill-selected: #aeb7e2;
1276
1238
  --components-form-radio-contrast-fill-selectedhover: #c7cdeb;
1277
1239
  --components-form-radio-contrast-icon: #ffffff;
1240
+ --components-form-radio-contrast-icon-disabled: #949699;
1241
+ --components-form-radio-contrast-icon-readonly: #ffffff;
1278
1242
  --components-form-radio-contrast-text: #ffffff;
1243
+ --components-form-radio-contrast-text-disabled: #949699;
1279
1244
  --components-form-radio-standard-border: #181c56;
1245
+ --components-form-radio-standard-border-disabled: #e3e6e8;
1280
1246
  --components-form-radio-standard-border-negative: #d31b1b;
1247
+ --components-form-radio-standard-border-readonly: #e3e6e8;
1281
1248
  --components-form-radio-standard-fill-default: rgba(255, 255, 255, 0);
1249
+ --components-form-radio-standard-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1282
1250
  --components-form-radio-standard-fill-hover: #d9ddf2;
1283
1251
  --components-form-radio-standard-fill-selected: #181c56;
1284
1252
  --components-form-radio-standard-icon: #181c56;
1253
+ --components-form-radio-standard-icon-disabled: #b6b8ba;
1254
+ --components-form-radio-standard-icon-readonly: #181c56;
1285
1255
  --components-form-radio-standard-selectedhover: #393d79;
1286
1256
  --components-form-radio-standard-text: #181c56;
1257
+ --components-form-radio-standard-text-disabled: #b6b8ba;
1287
1258
  --components-form-segmentedcontrol-contrast-background: #393d79;
1288
1259
  --components-form-segmentedcontrol-contrast-fill-hover: #626493;
1289
1260
  --components-form-segmentedcontrol-contrast-fill-selected: #ffffff;
@@ -1374,21 +1345,33 @@ input:disabled + .eds-input-panel__container {
1374
1345
  --components-form-basepanel-standard-text-rebate: #5ac39a;
1375
1346
  --components-form-basepanel-standard-text-subdued: #b3b4bd;
1376
1347
  --components-form-checkbox-contrast-border: #aeb7e2;
1348
+ --components-form-checkbox-contrast-border-disabled: #6e6f73;
1377
1349
  --components-form-checkbox-contrast-border-negative: #ff9494;
1350
+ --components-form-checkbox-contrast-border-readonly: #6e6f73;
1378
1351
  --components-form-checkbox-contrast-fill-default: rgba(255, 255, 255, 0);
1352
+ --components-form-checkbox-contrast-fill-disabled: rgba(204, 205, 212, 0.3019607843);
1379
1353
  --components-form-checkbox-contrast-fill-hover: #626493;
1380
1354
  --components-form-checkbox-contrast-fill-selected: #aeb7e2;
1381
1355
  --components-form-checkbox-contrast-fill-selectedhover: #c7cdeb;
1382
1356
  --components-form-checkbox-contrast-icon: #181c56;
1357
+ --components-form-checkbox-contrast-icon-disabled: #6e6f73;
1358
+ --components-form-checkbox-contrast-icon-readonly: #e5e5e9;
1383
1359
  --components-form-checkbox-contrast-text: #e5e5e9;
1360
+ --components-form-checkbox-contrast-text-disabled: #6e6f73;
1384
1361
  --components-form-checkbox-standard-border: #aeb7e2;
1362
+ --components-form-checkbox-standard-border-disabled: #6e6f73;
1385
1363
  --components-form-checkbox-standard-border-negative: #ff9494;
1364
+ --components-form-checkbox-standard-border-readonly: #6e6f73;
1386
1365
  --components-form-checkbox-standard-fill-default: rgba(255, 255, 255, 0);
1366
+ --components-form-checkbox-standard-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1387
1367
  --components-form-checkbox-standard-fill-hover: #626493;
1388
1368
  --components-form-checkbox-standard-fill-selected: #aeb7e2;
1389
1369
  --components-form-checkbox-standard-fill-selectedhover: #c7cdeb;
1390
1370
  --components-form-checkbox-standard-icon: #181c56;
1371
+ --components-form-checkbox-standard-icon-disabled: #6e6f73;
1372
+ --components-form-checkbox-standard-icon-readonly: #e5e5e9;
1391
1373
  --components-form-checkbox-standard-text: #e5e5e9;
1374
+ --components-form-checkbox-standard-text-disabled: #6e6f73;
1392
1375
  --components-form-feedbacktext-information-contrast-icon-fill: #64b3e7;
1393
1376
  --components-form-feedbacktext-information-contrast-icon-symbol: #08091c;
1394
1377
  --components-form-feedbacktext-information-contrast-stroke: #08091c;
@@ -1422,21 +1405,33 @@ input:disabled + .eds-input-panel__container {
1422
1405
  --components-form-feedbacktext-warning-standard-stroke: #08091c;
1423
1406
  --components-form-feedbacktext-warning-standard-text: #e5e5e9;
1424
1407
  --components-form-radio-contrast-border: #aeb7e2;
1408
+ --components-form-radio-contrast-border-disabled: #6e6f73;
1425
1409
  --components-form-radio-contrast-border-negative: #ff9494;
1410
+ --components-form-radio-contrast-border-readonly: #6e6f73;
1426
1411
  --components-form-radio-contrast-fill-default: rgba(255, 255, 255, 0);
1412
+ --components-form-radio-contrast-fill-disabled: rgba(204, 205, 212, 0.3019607843);
1427
1413
  --components-form-radio-contrast-fill-hover: #626493;
1428
1414
  --components-form-radio-contrast-fill-selected: #aeb7e2;
1429
1415
  --components-form-radio-contrast-fill-selectedhover: #c7cdeb;
1430
1416
  --components-form-radio-contrast-icon: #e5e5e9;
1417
+ --components-form-radio-contrast-icon-disabled: #6e6f73;
1418
+ --components-form-radio-contrast-icon-readonly: #e5e5e9;
1431
1419
  --components-form-radio-contrast-text: #e5e5e9;
1420
+ --components-form-radio-contrast-text-disabled: #6e6f73;
1432
1421
  --components-form-radio-standard-border: #aeb7e2;
1422
+ --components-form-radio-standard-border-disabled: #6e6f73;
1433
1423
  --components-form-radio-standard-border-negative: #ff9494;
1424
+ --components-form-radio-standard-border-readonly: #6e6f73;
1434
1425
  --components-form-radio-standard-fill-default: rgba(255, 255, 255, 0);
1426
+ --components-form-radio-standard-fill-disabled: rgba(207, 210, 212, 0.1490196078);
1435
1427
  --components-form-radio-standard-fill-hover: #626493;
1436
1428
  --components-form-radio-standard-fill-selected: #aeb7e2;
1437
1429
  --components-form-radio-standard-icon: #e5e5e9;
1430
+ --components-form-radio-standard-icon-disabled: #6e6f73;
1431
+ --components-form-radio-standard-icon-readonly: #e5e5e9;
1438
1432
  --components-form-radio-standard-selectedhover: #c7cdeb;
1439
1433
  --components-form-radio-standard-text: #e5e5e9;
1434
+ --components-form-radio-standard-text-disabled: #6e6f73;
1440
1435
  --components-form-segmentedcontrol-contrast-background: rgba(229, 229, 233, 0.1490196078);
1441
1436
  --components-form-segmentedcontrol-contrast-fill-hover: rgba(229, 229, 233, 0.1490196078);
1442
1437
  --components-form-segmentedcontrol-contrast-fill-selected: #e5e5e9;
@@ -1707,12 +1702,83 @@ input:disabled + .eds-input-panel__container {
1707
1702
  }
1708
1703
  /* DO NOT CHANGE!*/
1709
1704
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1710
- .eds-segmented-control {
1711
- margin-top: 0.25rem;
1712
- display: flex;
1713
- background: var(--components-form-segmentedcontrol-standard-background);
1714
- border-radius: 0.5rem;
1705
+ .eds-segmented-choice {
1706
+ display: block;
1707
+ flex: 1 1 0px;
1715
1708
  }
1716
- .eds-contrast .eds-segmented-control {
1717
- background: var(--components-form-segmentedcontrol-contrast-background);
1709
+ .eds-segmented-choice .eds-base-segmented {
1710
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1711
+ background-color: var(--background-color);
1712
+ border-radius: 0.25rem;
1713
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1714
+ cursor: pointer;
1715
+ font-size: 0.875rem;
1716
+ height: 1.5rem;
1717
+ line-height: 1.25rem;
1718
+ margin: 0.25rem;
1719
+ outline-color: transparent;
1720
+ padding: calc(0.25rem / 2) 0.75rem;
1721
+ text-align: center;
1722
+ -webkit-user-select: none;
1723
+ -moz-user-select: none;
1724
+ user-select: none;
1725
+ }
1726
+ .eds-segmented-choice .eds-base-segmented--large {
1727
+ font-size: 1rem;
1728
+ height: 2.5rem;
1729
+ line-height: 1.5rem;
1730
+ padding: 0.5rem 0.75rem;
1731
+ }
1732
+ .eds-contrast .eds-segmented-choice .eds-base-segmented {
1733
+ --background-color: var(--components-form-segmentedcontrol-contrast-background);
1734
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1735
+ }
1736
+ .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1737
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1738
+ }
1739
+ .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1740
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1741
+ }
1742
+ .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1743
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1744
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1745
+ }
1746
+ .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1747
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1748
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1749
+ }
1750
+ .eds-segmented-choice input {
1751
+ -webkit-appearance: none;
1752
+ -moz-appearance: none;
1753
+ appearance: none;
1754
+ position: absolute;
1755
+ opacity: 0;
1756
+ height: 0;
1757
+ width: 0;
1758
+ }
1759
+ .eds-segmented-choice input:checked + .eds-base-segmented {
1760
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1761
+ color: var(--components-form-segmentedcontrol-standard-text-selected);
1762
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1763
+ }
1764
+ .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1765
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1766
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1767
+ color: var(--components-form-segmentedcontrol-contrast-text-selected);
1768
+ }
1769
+ .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1770
+ outline: 2px solid #181c56;
1771
+ outline-color: var(--basecolors-stroke-focus-standard);
1772
+ outline-offset: 0.125rem;
1773
+ }
1774
+ .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1775
+ outline-color: var(--basecolors-stroke-focus-contrast);
1776
+ }
1777
+ .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1778
+ outline: 2px solid #181c56;
1779
+ outline-color: var(--basecolors-stroke-focus-standard);
1780
+ outline-offset: 0.125rem;
1781
+ }
1782
+ .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1783
+ outline-color: var(--basecolors-stroke-focus-contrast);
1718
1784
  }