@entur/form 8.2.7 → 8.2.8

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.
Files changed (2) hide show
  1. package/dist/styles.css +358 -358
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,78 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-feedback-text {
4
- display: flex;
5
- align-items: center;
6
- margin-top: 0.25rem;
7
- }
8
- .eds-feedback-text--info, .eds-feedback-text--information {
9
- padding-left: calc(1rem + 0.125rem);
10
- }
11
- .eds-feedback-text__text {
12
- color: var(--components-form-feedbacktext-information-standard-text);
13
- }
14
- .eds-contrast .eds-feedback-text__text {
15
- color: var(--components-form-feedbacktext-information-contrast-text);
16
- }
17
-
18
- .eds-feedback-text__icon {
19
- font-size: 1.5rem;
20
- min-height: 1.5rem;
21
- min-width: 1.5rem;
22
- padding-right: 0.5rem;
23
- position: relative;
24
- top: -0.1rem;
25
- }
26
- .eds-feedback-text__icon--success {
27
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
28
- }
29
- .eds-feedback-text__icon--success circle {
30
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
31
- }
32
- .eds-contrast .eds-feedback-text__icon--success {
33
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
34
- }
35
- .eds-contrast .eds-feedback-text__icon--success circle {
36
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
37
- }
38
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
39
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
40
- }
41
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
42
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
43
- }
44
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
45
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
46
- }
47
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
48
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
49
- }
50
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
51
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
52
- }
53
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
54
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
55
- }
56
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
57
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
58
- }
59
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
60
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
61
- }
62
- .eds-feedback-text__icon--warning {
63
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
64
- }
65
- .eds-feedback-text__icon--warning .svg-exclamation {
66
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
67
- }
68
- .eds-contrast .eds-feedback-text__icon--warning {
69
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
70
- }
71
- .eds-contrast .eds-feedback-text__icon--warning circle {
72
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
73
- }
74
- /* DO NOT CHANGE!*/
75
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
76
3
  .eds-checkbox__container {
77
4
  display: flex;
78
5
  align-items: center;
@@ -214,11 +141,6 @@
214
141
  stroke-dashoffset: 0;
215
142
  }
216
143
  }
217
- .eds-fieldset {
218
- margin: 0;
219
- padding: 0;
220
- border: 0;
221
- }
222
144
  /* DO NOT CHANGE!*/
223
145
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
224
146
  .eds-form-control__field-and-feedback-text {
@@ -429,6 +351,84 @@
429
351
  }
430
352
  /* DO NOT CHANGE!*/
431
353
  /* 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;
374
+ 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
+ }
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);
391
+ }
392
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
393
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
394
+ }
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);
397
+ }
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);
400
+ }
401
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
402
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
403
+ }
404
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
405
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
406
+ }
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);
409
+ }
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);
412
+ }
413
+ .eds-feedback-text__icon--warning {
414
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
415
+ }
416
+ .eds-feedback-text__icon--warning .svg-exclamation {
417
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
418
+ }
419
+ .eds-contrast .eds-feedback-text__icon--warning {
420
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
421
+ }
422
+ .eds-contrast .eds-feedback-text__icon--warning circle {
423
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
424
+ }
425
+ .eds-fieldset {
426
+ margin: 0;
427
+ padding: 0;
428
+ border: 0;
429
+ }
430
+ /* DO NOT CHANGE!*/
431
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
432
432
  .eds-form-component--radio__container {
433
433
  display: flex;
434
434
  justify-content: center;
@@ -511,286 +511,79 @@
511
511
  }
512
512
  /* DO NOT CHANGE!*/
513
513
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
514
- .eds-switch {
515
- cursor: pointer;
516
- -webkit-user-select: none;
517
- -moz-user-select: none;
518
- user-select: none;
519
- padding: 0.5rem 0;
520
- width: -moz-fit-content;
521
- width: fit-content;
522
- }
523
- .eds-switch input {
524
- opacity: 0;
525
- pointer-events: none;
526
- position: absolute;
527
- }
528
- .eds-switch--right {
529
- display: flex;
530
- flex-direction: row;
531
- align-items: center;
532
- }
533
- .eds-switch--bottom {
534
- display: flex;
535
- flex-direction: column;
536
- align-items: center;
537
- }
538
- .eds-switch__circle {
539
- border-radius: 50%;
540
- height: 1.25rem;
541
- width: 1.25rem;
542
- content: "";
543
- display: flex;
544
- align-items: center;
545
- justify-content: center;
546
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
547
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
548
- background-color: var(--components-form-switch-standard-switch);
549
- top: 0.125rem;
550
- left: 0.125rem;
551
- position: relative;
552
- }
553
- .eds-switch__switch--large .eds-switch__circle {
554
- height: 1.75rem;
555
- width: 1.75rem;
556
- }
557
- .eds-contrast .eds-switch__circle {
558
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
559
- }
560
- .eds-switch__switch {
561
- position: relative;
562
- background-color: var(--components-form-switch-standard-fill-false);
563
- content: "";
564
- display: block;
565
- transition: background-color 0.1s ease-in-out;
566
- height: 1.5rem;
567
- width: 3rem;
568
- border-radius: 1.5rem;
569
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
570
- }
571
- .eds-contrast .eds-switch__switch {
572
- background-color: var(--components-form-switch-contrast-fill-false);
573
- }
574
- .eds-switch--right .eds-switch__switch {
575
- margin-right: 0.75rem;
576
- }
577
- .eds-switch__switch svg g,
578
- .eds-switch__switch path {
579
- fill: var(--components-form-switch-standard-icon-false);
580
- transition: fill ease-in-out 0.1s;
581
- }
582
- .eds-contrast .eds-switch__switch svg g,
583
- .eds-contrast .eds-switch__switch path {
584
- fill: var(--components-form-switch-contrast-icon-false);
585
- }
586
- :checked + .eds-switch__switch {
587
- background-color: var(--eds-switch-color);
588
- }
589
- :checked + .eds-switch__switch .eds-switch__circle {
590
- left: 1.625rem;
591
- }
592
- :checked + .eds-switch__switch .eds-switch__circle svg g,
593
- :checked + .eds-switch__switch .eds-switch__circle path {
594
- fill: var(--eds-switch-color);
595
- }
596
- .eds-contrast :checked + .eds-switch__switch {
597
- background-color: var(--eds-switch-contrast-color);
598
- }
599
- :focus-visible + .eds-switch__switch {
600
- outline: 2px solid #181c56;
601
- outline-color: var(--basecolors-stroke-focus-standard);
602
- outline-offset: 0.125rem;
603
- }
604
- .eds-contrast :focus-visible + .eds-switch__switch {
605
- outline-color: var(--basecolors-stroke-focus-contrast);
606
- }
607
- .eds-switch__switch--large {
608
- width: 3.75rem;
609
- height: 2rem;
610
- border-radius: 3.75rem;
611
- }
612
- :checked + .eds-switch__switch--large .eds-switch__circle {
613
- left: 1.875rem;
614
- }
615
- .eds-switch__switch--large svg {
616
- position: relative;
617
- right: 0.05rem;
618
- }
619
- .eds-switch__label--large--right {
620
- font-size: 1rem;
621
- }
622
- .eds-switch__label--large--bottom {
623
- font-size: 0.875rem;
624
- }
625
- .eds-switch__label--medium--right {
626
- font-size: 0.875rem;
627
- }
628
- .eds-switch__label--medium--bottom {
629
- font-size: 0.75rem;
630
- }
631
- /* DO NOT CHANGE!*/
632
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
633
- .eds-input-group {
634
- color: inherit;
635
- display: block;
636
- position: relative;
637
- }
638
- .eds-input-group__label {
639
- color: var(--components-form-baseform-standard-text-label);
640
- display: flex;
641
- font-size: 1rem;
642
- position: absolute;
643
- line-height: 1rem;
644
- height: 3rem;
645
- padding-left: 0;
646
- top: 1rem;
647
- 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;
648
- -webkit-user-select: none;
649
- -moz-user-select: none;
650
- user-select: none;
651
- pointer-events: none;
652
- }
653
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
654
- top: 0.375rem;
655
- font-size: 0.75rem;
656
- line-height: 0.75rem;
657
- height: 10px;
658
- padding: 0;
659
- }
660
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
661
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
662
- background: var(--textarea-label-background);
663
- width: calc(100% - 1rem - 1rem - 4px);
664
- }
665
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
666
- top: 0.5rem;
667
- font-size: 0.875rem;
668
- line-height: 1rem;
669
- padding: 0;
670
- }
671
- .eds-form-control-wrapper--size-large .eds-input-group__label {
672
- top: 0.75rem;
673
- font-size: 1.5rem;
674
- line-height: 2.25rem;
675
- }
676
- .eds-input-group__label--filled {
677
- top: 0.375rem;
678
- font-size: 0.75rem;
679
- line-height: 0.75rem;
680
- height: 10px;
681
- padding: 0;
682
- }
683
- .eds-textarea__label .eds-input-group__label--filled {
684
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
685
- background: var(--textarea-label-background);
686
- width: calc(100% - 1rem - 1rem - 4px);
687
- }
688
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
689
- top: 0.5rem;
690
- font-size: 0.875rem;
691
- line-height: 1rem;
692
- padding: 0;
693
- }
694
-
695
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
696
- top: 0.375rem;
697
- font-size: 0.75rem;
698
- line-height: 0.75rem;
699
- height: 10px;
700
- padding: 0;
701
- }
702
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
703
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
704
- background: var(--textarea-label-background);
705
- width: calc(100% - 1rem - 1rem - 4px);
706
- }
707
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
708
- top: 0.5rem;
709
- font-size: 0.875rem;
710
- line-height: 1rem;
711
- padding: 0;
712
- }
713
- .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
714
- top: 1rem;
715
- font-size: 1rem;
716
- height: 3rem;
717
- line-height: 1rem;
718
- }
719
- /* DO NOT CHANGE!*/
720
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
721
- /* DO NOT CHANGE!*/
722
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
723
- /* DO NOT CHANGE!*/
724
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
725
- /* DO NOT CHANGE!*/
726
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
727
- /* DO NOT CHANGE!*/
728
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
729
- [data-color-mode=light],
730
- :root {
731
- --basecolors-frame-contrast: #181c56;
732
- --basecolors-frame-contrastalt: #393d79;
733
- --basecolors-frame-contrastalt-2: #292b6a;
734
- --basecolors-frame-default: #ffffff;
735
- --basecolors-frame-elevated: #ffffff;
736
- --basecolors-frame-elevatedalt: #f6f6f9;
737
- --basecolors-frame-subdued: #d9dae8;
738
- --basecolors-frame-tint: #f6f6f9;
739
- --basecolors-shape-accent: #181c56;
740
- --basecolors-shape-bicycle-contrast: #00db9b;
741
- --basecolors-shape-bicycle-default: #388f76;
742
- --basecolors-shape-bus-contrast: #ff6392;
743
- --basecolors-shape-bus-default: #c5044e;
744
- --basecolors-shape-cableway-contrast: #b482fb;
745
- --basecolors-shape-cableway-default: #78469a;
746
- --basecolors-shape-disabled: #6e6f73;
747
- --basecolors-shape-disabledalt: #b6b8ba;
748
- --basecolors-shape-ferry-contrast: #6fdfff;
749
- --basecolors-shape-ferry-default: #0c6693;
750
- --basecolors-shape-funicular-contrast: #b482fb;
751
- --basecolors-shape-funicular-default: #78469a;
752
- --basecolors-shape-helicopter-contrast: #fbafea;
753
- --basecolors-shape-helicopter-default: #800664;
754
- --basecolors-shape-highlight: #ff5959;
755
- --basecolors-shape-light: #ffffff;
756
- --basecolors-shape-mask: #ffffff;
757
- --basecolors-shape-maskalt: #ffffff;
758
- --basecolors-shape-metro-contrast: #f08901;
759
- --basecolors-shape-metro-default: #bf5826;
760
- --basecolors-shape-mobility-contrast: #00db9b;
761
- --basecolors-shape-mobility-default: #388f76;
762
- --basecolors-shape-plane-contrast: #fbafea;
763
- --basecolors-shape-plane-default: #800664;
764
- --basecolors-shape-subdued: #626493;
765
- --basecolors-shape-subduedalt: #d9dae8;
766
- --basecolors-shape-taxi-contrast: #ffe082;
767
- --basecolors-shape-taxi-default: #3d3e40;
768
- --basecolors-shape-train-contrast: #42a5f5;
769
- --basecolors-shape-train-default: #00367f;
770
- --basecolors-shape-tram-contrast: #b482fb;
771
- --basecolors-shape-tram-default: #78469a;
772
- --basecolors-shape-walk-contrast: #8284ab;
773
- --basecolors-shape-walk-default: #8d8e9c;
774
- --basecolors-shape-airportlinkbus-contrast: #fbafea;
775
- --basecolors-shape-airportlinkbus-default: #800664;
776
- --basecolors-shape-airportlinkrail-contrast: #fbafea;
777
- --basecolors-shape-airportlinkrail-default: #800664;
778
- --basecolors-stroke-contrast: #aeb7e2;
779
- --basecolors-stroke-default: #181c56;
780
- --basecolors-stroke-disabled: #949699;
781
- --basecolors-stroke-focus-contrast: #aeb7e2;
782
- --basecolors-stroke-focus-standard: #181c56;
783
- --basecolors-stroke-highlight: #ff5959;
784
- --basecolors-stroke-light: #ffffff;
785
- --basecolors-stroke-subdued: #8284ab;
786
- --basecolors-stroke-subduedalt: #e3e6e8;
787
- --basecolors-text-accent: #181c56;
788
- --basecolors-text-disabled: #6e6f73;
789
- --basecolors-text-disabledalt: #b6b8ba;
790
- --basecolors-text-highlight: #ff5959;
791
- --basecolors-text-light: #ffffff;
792
- --basecolors-text-subdued: #626493;
793
- --basecolors-text-subduedalt: #d9dae8;
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;
551
+ --basecolors-shape-metro-contrast: #f08901;
552
+ --basecolors-shape-metro-default: #bf5826;
553
+ --basecolors-shape-mobility-contrast: #00db9b;
554
+ --basecolors-shape-mobility-default: #388f76;
555
+ --basecolors-shape-plane-contrast: #fbafea;
556
+ --basecolors-shape-plane-default: #800664;
557
+ --basecolors-shape-subdued: #626493;
558
+ --basecolors-shape-subduedalt: #d9dae8;
559
+ --basecolors-shape-taxi-contrast: #ffe082;
560
+ --basecolors-shape-taxi-default: #3d3e40;
561
+ --basecolors-shape-train-contrast: #42a5f5;
562
+ --basecolors-shape-train-default: #00367f;
563
+ --basecolors-shape-tram-contrast: #b482fb;
564
+ --basecolors-shape-tram-default: #78469a;
565
+ --basecolors-shape-walk-contrast: #8284ab;
566
+ --basecolors-shape-walk-default: #8d8e9c;
567
+ --basecolors-shape-airportlinkbus-contrast: #fbafea;
568
+ --basecolors-shape-airportlinkbus-default: #800664;
569
+ --basecolors-shape-airportlinkrail-contrast: #fbafea;
570
+ --basecolors-shape-airportlinkrail-default: #800664;
571
+ --basecolors-stroke-contrast: #aeb7e2;
572
+ --basecolors-stroke-default: #181c56;
573
+ --basecolors-stroke-disabled: #949699;
574
+ --basecolors-stroke-focus-contrast: #aeb7e2;
575
+ --basecolors-stroke-focus-standard: #181c56;
576
+ --basecolors-stroke-highlight: #ff5959;
577
+ --basecolors-stroke-light: #ffffff;
578
+ --basecolors-stroke-subdued: #8284ab;
579
+ --basecolors-stroke-subduedalt: #e3e6e8;
580
+ --basecolors-text-accent: #181c56;
581
+ --basecolors-text-disabled: #6e6f73;
582
+ --basecolors-text-disabledalt: #b6b8ba;
583
+ --basecolors-text-highlight: #ff5959;
584
+ --basecolors-text-light: #ffffff;
585
+ --basecolors-text-subdued: #626493;
586
+ --basecolors-text-subduedalt: #d9dae8;
794
587
  }
795
588
 
796
589
  [data-color-mode=dark] {
@@ -1032,6 +825,213 @@ input:disabled + .eds-input-panel__container {
1032
825
  }
1033
826
  /* DO NOT CHANGE!*/
1034
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);
978
+ }
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;
984
+ }
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;
989
+ }
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;
996
+ }
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);
1001
+ }
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;
1007
+ }
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;
1015
+ }
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);
1020
+ }
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;
1026
+ }
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;
1032
+ }
1033
+ /* DO NOT CHANGE!*/
1034
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1035
1035
  .eds-textfield__clear-button {
1036
1036
  background: none;
1037
1037
  border: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.2.7",
3
+ "version": "8.2.8",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/button": "^3.3.7",
31
- "@entur/icons": "^7.11.0",
30
+ "@entur/button": "^3.3.8",
31
+ "@entur/icons": "^7.11.1",
32
32
  "@entur/tokens": "^3.19.0",
33
- "@entur/tooltip": "^5.2.7",
34
- "@entur/typography": "^1.9.7",
33
+ "@entur/tooltip": "^5.2.8",
34
+ "@entur/typography": "^1.9.8",
35
35
  "@entur/utils": "^0.12.3",
36
36
  "classnames": "^2.3.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "dts-cli": "2.0.5"
40
40
  },
41
- "gitHead": "ccdbbec971e0336510c047873a1e63cc31aa850e"
41
+ "gitHead": "af6fc58f70a8e98b774cd4c19478392c802b071f"
42
42
  }