@entur/form 7.0.34 → 7.0.35

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 +339 -339
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -242,6 +242,58 @@
242
242
  }
243
243
  /* DO NOT CHANGE!*/
244
244
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
245
+ .eds-feedback-text {
246
+ display: flex;
247
+ align-items: center;
248
+ margin-top: 0.25rem;
249
+ }
250
+ .eds-feedback-text--info {
251
+ padding-left: calc(1rem + 0.125rem);
252
+ }
253
+ .eds-feedback-text__text {
254
+ color: #181c56;
255
+ }
256
+ .eds-contrast .eds-feedback-text__text {
257
+ color: #ffffff;
258
+ }
259
+
260
+ .eds-feedback-text__icon {
261
+ font-size: 1.5rem;
262
+ min-height: 1.5rem;
263
+ min-width: 1.5rem;
264
+ padding-right: 0.5rem;
265
+ position: relative;
266
+ top: -0.1rem;
267
+ }
268
+ .eds-feedback-text__icon--success {
269
+ color: #1a8e60;
270
+ }
271
+ .eds-contrast .eds-feedback-text__icon--success {
272
+ color: #5ac39a;
273
+ }
274
+ .eds-feedback-text__icon--error {
275
+ color: #d31b1b;
276
+ }
277
+ .eds-contrast .eds-feedback-text__icon--error {
278
+ color: #ff9494;
279
+ }
280
+ .eds-feedback-text__icon--info {
281
+ color: #0082b9;
282
+ }
283
+ .eds-contrast .eds-feedback-text__icon--info {
284
+ color: #64b3e7;
285
+ }
286
+ .eds-feedback-text__icon--warning {
287
+ color: #ffca28;
288
+ }
289
+ .eds-feedback-text__icon--warning circle {
290
+ fill: #181c56;
291
+ }
292
+ .eds-contrast .eds-feedback-text__icon--warning {
293
+ color: #ffe082;
294
+ }
295
+ /* DO NOT CHANGE!*/
296
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
245
297
  .eds-checkbox__container {
246
298
  display: flex;
247
299
  align-items: center;
@@ -402,194 +454,217 @@
402
454
  stroke-dashoffset: 0;
403
455
  }
404
456
  }
457
+ .eds-fieldset {
458
+ margin: 0;
459
+ padding: 0;
460
+ border: 0;
461
+ }
405
462
  /* DO NOT CHANGE!*/
406
463
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
407
- .eds-feedback-text {
464
+ .eds-form-component--radio__container {
408
465
  display: flex;
466
+ justify-content: center;
409
467
  align-items: center;
410
- margin-top: 0.25rem;
468
+ position: relative;
469
+ cursor: pointer;
470
+ height: 2rem;
471
+ width: -moz-fit-content;
472
+ width: fit-content;
473
+ -webkit-user-select: none;
474
+ -moz-user-select: none;
475
+ user-select: none;
411
476
  }
412
- .eds-feedback-text--info {
413
- padding-left: calc(1rem + 0.125rem);
477
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
478
+ border-color: #54568c;
414
479
  }
415
- .eds-feedback-text__text {
416
- color: #181c56;
480
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
481
+ background-color: #54568c;
417
482
  }
418
- .eds-contrast .eds-feedback-text__text {
419
- color: #ffffff;
483
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
484
+ border-color: #8285a8;
420
485
  }
421
-
422
- .eds-feedback-text__icon {
423
- font-size: 1.5rem;
424
- min-height: 1.5rem;
425
- min-width: 1.5rem;
426
- padding-right: 0.5rem;
427
- position: relative;
428
- top: -0.1rem;
486
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
487
+ background-color: #8285a8;
429
488
  }
430
- .eds-feedback-text__icon--success {
431
- color: #1a8e60;
489
+ .eds-form-component--radio__container input {
490
+ position: absolute;
491
+ opacity: 0;
492
+ cursor: pointer;
493
+ height: 0;
494
+ width: 0;
432
495
  }
433
- .eds-contrast .eds-feedback-text__icon--success {
434
- color: #5ac39a;
496
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
497
+ height: 0.625rem;
498
+ width: 0.625rem;
435
499
  }
436
- .eds-feedback-text__icon--error {
437
- color: #d31b1b;
500
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
501
+ outline: none;
502
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
503
+ outline-offset: 0.125rem;
438
504
  }
439
- .eds-contrast .eds-feedback-text__icon--error {
440
- color: #ff9494;
505
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
506
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
441
507
  }
442
- .eds-feedback-text__icon--info {
443
- color: #0082b9;
508
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
509
+ position: relative;
510
+ height: 1.25rem;
511
+ width: 1.25rem;
512
+ margin-right: 1rem;
513
+ background-color: #ffffff;
514
+ border: 0.125rem solid #181c56;
515
+ border-radius: 50%;
516
+ display: flex;
517
+ align-items: center;
518
+ justify-content: center;
444
519
  }
445
- .eds-contrast .eds-feedback-text__icon--info {
446
- color: #64b3e7;
520
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
521
+ background-color: #181c56;
522
+ border-color: #aeb7e2;
447
523
  }
448
- .eds-feedback-text__icon--warning {
449
- color: #ffca28;
524
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
525
+ background: #d1d3d3;
526
+ border-color: #d1d3d3;
527
+ cursor: not-allowed;
450
528
  }
451
- .eds-feedback-text__icon--warning circle {
452
- fill: #181c56;
529
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
530
+ border-color: #d1d3d3;
453
531
  }
454
- .eds-contrast .eds-feedback-text__icon--warning {
455
- color: #ffe082;
532
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
533
+ background: #d1d3d3;
534
+ border-color: #d1d3d3;
456
535
  }
457
- /* DO NOT CHANGE!*/
458
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
459
- .eds-input-group {
460
- color: inherit;
536
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
537
+ color: #656782;
538
+ }
539
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
461
540
  display: block;
462
- position: relative;
541
+ width: 0;
542
+ height: 0;
543
+ border-radius: 50%;
544
+ background-color: #181c56;
545
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
463
546
  }
464
- .eds-input-group__label {
465
- color: #656782;
466
- display: flex;
467
- font-size: 1rem;
468
- position: absolute;
469
- line-height: 1rem;
470
- height: 3rem;
471
- padding: 1rem;
472
- padding-left: 0;
473
- margin-left: 1rem;
474
- top: -0.125rem;
475
- 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;
547
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
548
+ background-color: #aeb7e2;
549
+ }
550
+ /* DO NOT CHANGE!*/
551
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
+ .eds-switch {
553
+ cursor: pointer;
476
554
  -webkit-user-select: none;
477
555
  -moz-user-select: none;
478
556
  user-select: none;
479
- pointer-events: none;
480
- }
481
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
482
- top: 0.375rem;
483
- font-size: 0.75rem;
484
- line-height: 0.75rem;
485
- height: 10px;
486
- padding: 0;
487
- margin-left: 1rem;
557
+ padding: 0.5rem 0;
558
+ width: -moz-fit-content;
559
+ width: fit-content;
488
560
  }
489
- .eds-textarea__label .eds-form-control-wrapper--is-filled .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
- );
561
+ .eds-switch input {
562
+ opacity: 0;
563
+ pointer-events: none;
564
+ position: absolute;
495
565
  }
496
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
497
- top: 0.5rem;
498
- font-size: 0.875rem;
499
- line-height: 1rem;
500
- padding: 0;
501
- margin-left: 1rem;
566
+ .eds-switch--right {
567
+ display: flex;
568
+ flex-direction: row;
569
+ align-items: center;
502
570
  }
503
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
504
- color: #aeb7e2;
571
+ .eds-switch--bottom {
572
+ display: flex;
573
+ flex-direction: column;
574
+ align-items: center;
505
575
  }
506
- .eds-form-control-wrapper--size-large .eds-input-group__label {
507
- font-size: 1.5rem;
508
- line-height: 2.25rem;
509
- height: 4rem;
510
- top: -0.25rem;
576
+ .eds-switch__circle {
577
+ border-radius: 50%;
578
+ height: 1.25rem;
579
+ width: 1.25rem;
580
+ content: "";
581
+ display: flex;
582
+ align-items: center;
583
+ justify-content: center;
584
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
585
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
586
+ background-color: #ffffff;
587
+ top: 0.125rem;
588
+ left: 0.125rem;
589
+ position: relative;
511
590
  }
512
- .eds-input-group__label--filled {
513
- top: 0.375rem;
514
- font-size: 0.75rem;
515
- line-height: 0.75rem;
516
- height: 10px;
517
- padding: 0;
518
- margin-left: 1rem;
591
+ .eds-switch__switch--large .eds-switch__circle {
592
+ height: 1.75rem;
593
+ width: 1.75rem;
519
594
  }
520
- .eds-textarea__label .eds-input-group__label--filled {
521
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
522
- background: var(--textarea-label-background);
523
- width: calc(
524
- 100% - 1rem - 1rem - 4px
525
- );
595
+ .eds-contrast .eds-switch__circle {
596
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
526
597
  }
527
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
528
- top: 0.5rem;
529
- font-size: 0.875rem;
530
- line-height: 1rem;
531
- padding: 0;
532
- margin-left: 1rem;
598
+ .eds-switch__switch {
599
+ position: relative;
600
+ background-color: #949494;
601
+ content: "";
602
+ display: block;
603
+ transition: background-color 0.1s ease-in-out;
604
+ height: 1.5rem;
605
+ width: 3rem;
606
+ border-radius: 1.5rem;
607
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
533
608
  }
534
- .eds-input-group__label-tooltip-icon {
535
- color: #0082b9;
536
- padding-left: 0.25rem;
537
- padding-right: 0.25rem;
538
- display: flex;
539
- align-items: center;
540
- cursor: help;
541
- font-size: 1rem;
609
+ .eds-contrast .eds-switch__switch {
610
+ background-color: #8285a8;
542
611
  }
543
-
544
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
545
- top: 0.375rem;
546
- font-size: 0.75rem;
547
- line-height: 0.75rem;
548
- height: 10px;
549
- padding: 0;
550
- margin-left: 1rem;
612
+ .eds-switch--right .eds-switch__switch {
613
+ margin-right: 0.75rem;
551
614
  }
552
-
553
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
554
- top: 0.375rem;
555
- font-size: 0.75rem;
556
- line-height: 0.75rem;
557
- height: 10px;
558
- padding: 0;
559
- margin-left: 1rem;
615
+ .eds-switch__switch svg g,
616
+ .eds-switch__switch path {
617
+ fill: #646464;
618
+ transition: fill ease-in-out 0.1s;
560
619
  }
561
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
562
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
563
- background: var(--textarea-label-background);
564
- width: calc(
565
- 100% - 1rem - 1rem - 4px
566
- );
620
+ .eds-contrast .eds-switch__switch svg g,
621
+ .eds-contrast .eds-switch__switch path {
622
+ fill: #181c56;
567
623
  }
568
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
569
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
570
- background: var(--textarea-label-background);
571
- width: calc(
572
- 100% - 1rem - 1rem - 4px
573
- );
624
+ :checked + .eds-switch__switch {
625
+ background-color: var(--eds-switch-color);
574
626
  }
575
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
576
- top: 0.5rem;
627
+ :checked + .eds-switch__switch .eds-switch__circle {
628
+ left: 1.625rem;
629
+ }
630
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
631
+ :checked + .eds-switch__switch .eds-switch__circle path {
632
+ fill: var(--eds-switch-color);
633
+ }
634
+ .eds-contrast :checked + .eds-switch__switch {
635
+ background-color: var(--eds-switch-contrast-color);
636
+ }
637
+ :focus + .eds-switch__switch {
638
+ outline: none;
639
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
640
+ outline-offset: 0.125rem;
641
+ }
642
+ .eds-contrast :focus + .eds-switch__switch {
643
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
644
+ }
645
+ .eds-switch__switch--large {
646
+ width: 3.75rem;
647
+ height: 2rem;
648
+ border-radius: 3.75rem;
649
+ }
650
+ :checked + .eds-switch__switch--large .eds-switch__circle {
651
+ left: 1.875rem;
652
+ }
653
+ .eds-switch__switch--large svg {
654
+ position: relative;
655
+ right: 0.05rem;
656
+ }
657
+ .eds-switch__label--large--right {
658
+ font-size: 1rem;
659
+ }
660
+ .eds-switch__label--large--bottom {
577
661
  font-size: 0.875rem;
578
- line-height: 1rem;
579
- padding: 0;
580
- margin-left: 1rem;
581
662
  }
582
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
583
- top: 0.5rem;
663
+ .eds-switch__label--medium--right {
584
664
  font-size: 0.875rem;
585
- line-height: 1rem;
586
- padding: 0;
587
- margin-left: 1rem;
588
665
  }
589
- .eds-fieldset {
590
- margin: 0;
591
- padding: 0;
592
- border: 0;
666
+ .eds-switch__label--medium--bottom {
667
+ font-size: 0.75rem;
593
668
  }
594
669
  /* DO NOT CHANGE!*/
595
670
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -755,210 +830,135 @@ input:disabled + .eds-input-panel__container {
755
830
  }
756
831
  /* DO NOT CHANGE!*/
757
832
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
758
- .eds-form-component--radio__container {
759
- display: flex;
760
- justify-content: center;
761
- align-items: center;
762
- position: relative;
763
- cursor: pointer;
764
- height: 2rem;
765
- width: -moz-fit-content;
766
- width: fit-content;
767
- -webkit-user-select: none;
768
- -moz-user-select: none;
769
- user-select: none;
770
- }
771
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
772
- border-color: #54568c;
773
- }
774
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
775
- background-color: #54568c;
776
- }
777
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
778
- border-color: #8285a8;
779
- }
780
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
781
- background-color: #8285a8;
782
- }
783
- .eds-form-component--radio__container input {
784
- position: absolute;
785
- opacity: 0;
786
- cursor: pointer;
787
- height: 0;
788
- width: 0;
789
- }
790
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
791
- height: 0.625rem;
792
- width: 0.625rem;
793
- }
794
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
795
- outline: none;
796
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
797
- outline-offset: 0.125rem;
798
- }
799
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
800
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
801
- }
802
- .eds-form-component--radio__container .eds-form-component--radio__radio {
833
+ .eds-input-group {
834
+ color: inherit;
835
+ display: block;
803
836
  position: relative;
804
- height: 1.25rem;
805
- width: 1.25rem;
806
- margin-right: 1rem;
807
- background-color: #ffffff;
808
- border: 0.125rem solid #181c56;
809
- border-radius: 50%;
810
- display: flex;
811
- align-items: center;
812
- justify-content: center;
813
- }
814
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
815
- background-color: #181c56;
816
- border-color: #aeb7e2;
817
- }
818
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
819
- background: #d1d3d3;
820
- border-color: #d1d3d3;
821
- cursor: not-allowed;
822
- }
823
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
824
- border-color: #d1d3d3;
825
- }
826
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
827
- background: #d1d3d3;
828
- border-color: #d1d3d3;
829
837
  }
830
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
838
+ .eds-input-group__label {
831
839
  color: #656782;
832
- }
833
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
834
- display: block;
835
- width: 0;
836
- height: 0;
837
- border-radius: 50%;
838
- background-color: #181c56;
839
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
840
- }
841
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
842
- background-color: #aeb7e2;
843
- }
844
- /* DO NOT CHANGE!*/
845
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
846
- .eds-switch {
847
- cursor: pointer;
840
+ display: flex;
841
+ font-size: 1rem;
842
+ position: absolute;
843
+ line-height: 1rem;
844
+ height: 3rem;
845
+ padding: 1rem;
846
+ padding-left: 0;
847
+ margin-left: 1rem;
848
+ top: -0.125rem;
849
+ 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;
848
850
  -webkit-user-select: none;
849
851
  -moz-user-select: none;
850
852
  user-select: none;
851
- padding: 0.5rem 0;
852
- width: -moz-fit-content;
853
- width: fit-content;
854
- }
855
- .eds-switch input {
856
- opacity: 0;
857
853
  pointer-events: none;
858
- position: absolute;
859
- }
860
- .eds-switch--right {
861
- display: flex;
862
- flex-direction: row;
863
- align-items: center;
864
- }
865
- .eds-switch--bottom {
866
- display: flex;
867
- flex-direction: column;
868
- align-items: center;
869
- }
870
- .eds-switch__circle {
871
- border-radius: 50%;
872
- height: 1.25rem;
873
- width: 1.25rem;
874
- content: "";
875
- display: flex;
876
- align-items: center;
877
- justify-content: center;
878
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
879
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
880
- background-color: #ffffff;
881
- top: 0.125rem;
882
- left: 0.125rem;
883
- position: relative;
884
- }
885
- .eds-switch__switch--large .eds-switch__circle {
886
- height: 1.75rem;
887
- width: 1.75rem;
888
- }
889
- .eds-contrast .eds-switch__circle {
890
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
891
- }
892
- .eds-switch__switch {
893
- position: relative;
894
- background-color: #949494;
895
- content: "";
896
- display: block;
897
- transition: background-color 0.1s ease-in-out;
898
- height: 1.5rem;
899
- width: 3rem;
900
- border-radius: 1.5rem;
901
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
902
854
  }
903
- .eds-contrast .eds-switch__switch {
904
- background-color: #8285a8;
905
- }
906
- .eds-switch--right .eds-switch__switch {
907
- margin-right: 0.75rem;
855
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
856
+ top: 0.375rem;
857
+ font-size: 0.75rem;
858
+ line-height: 0.75rem;
859
+ height: 10px;
860
+ padding: 0;
861
+ margin-left: 1rem;
908
862
  }
909
- .eds-switch__switch svg g,
910
- .eds-switch__switch path {
911
- fill: #646464;
912
- transition: fill ease-in-out 0.1s;
863
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
864
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
865
+ background: var(--textarea-label-background);
866
+ width: calc(
867
+ 100% - 1rem - 1rem - 4px
868
+ );
913
869
  }
914
- .eds-contrast .eds-switch__switch svg g,
915
- .eds-contrast .eds-switch__switch path {
916
- fill: #181c56;
870
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
871
+ top: 0.5rem;
872
+ font-size: 0.875rem;
873
+ line-height: 1rem;
874
+ padding: 0;
875
+ margin-left: 1rem;
917
876
  }
918
- :checked + .eds-switch__switch {
919
- background-color: var(--eds-switch-color);
877
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
878
+ color: #aeb7e2;
920
879
  }
921
- :checked + .eds-switch__switch .eds-switch__circle {
922
- left: 1.625rem;
880
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
881
+ font-size: 1.5rem;
882
+ line-height: 2.25rem;
883
+ height: 4rem;
884
+ top: -0.25rem;
923
885
  }
924
- :checked + .eds-switch__switch .eds-switch__circle svg g,
925
- :checked + .eds-switch__switch .eds-switch__circle path {
926
- fill: var(--eds-switch-color);
886
+ .eds-input-group__label--filled {
887
+ top: 0.375rem;
888
+ font-size: 0.75rem;
889
+ line-height: 0.75rem;
890
+ height: 10px;
891
+ padding: 0;
892
+ margin-left: 1rem;
927
893
  }
928
- .eds-contrast :checked + .eds-switch__switch {
929
- background-color: var(--eds-switch-contrast-color);
894
+ .eds-textarea__label .eds-input-group__label--filled {
895
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
896
+ background: var(--textarea-label-background);
897
+ width: calc(
898
+ 100% - 1rem - 1rem - 4px
899
+ );
930
900
  }
931
- :focus + .eds-switch__switch {
932
- outline: none;
933
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
934
- outline-offset: 0.125rem;
901
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
902
+ top: 0.5rem;
903
+ font-size: 0.875rem;
904
+ line-height: 1rem;
905
+ padding: 0;
906
+ margin-left: 1rem;
935
907
  }
936
- .eds-contrast :focus + .eds-switch__switch {
937
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
908
+ .eds-input-group__label-tooltip-icon {
909
+ color: #0082b9;
910
+ padding-left: 0.25rem;
911
+ padding-right: 0.25rem;
912
+ display: flex;
913
+ align-items: center;
914
+ cursor: help;
915
+ font-size: 1rem;
938
916
  }
939
- .eds-switch__switch--large {
940
- width: 3.75rem;
941
- height: 2rem;
942
- border-radius: 3.75rem;
917
+
918
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
919
+ top: 0.375rem;
920
+ font-size: 0.75rem;
921
+ line-height: 0.75rem;
922
+ height: 10px;
923
+ padding: 0;
924
+ margin-left: 1rem;
943
925
  }
944
- :checked + .eds-switch__switch--large .eds-switch__circle {
945
- left: 1.875rem;
926
+
927
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
928
+ top: 0.375rem;
929
+ font-size: 0.75rem;
930
+ line-height: 0.75rem;
931
+ height: 10px;
932
+ padding: 0;
933
+ margin-left: 1rem;
946
934
  }
947
- .eds-switch__switch--large svg {
948
- position: relative;
949
- right: 0.05rem;
935
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
936
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
937
+ background: var(--textarea-label-background);
938
+ width: calc(
939
+ 100% - 1rem - 1rem - 4px
940
+ );
950
941
  }
951
- .eds-switch__label--large--right {
952
- font-size: 1rem;
942
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
943
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
944
+ background: var(--textarea-label-background);
945
+ width: calc(
946
+ 100% - 1rem - 1rem - 4px
947
+ );
953
948
  }
954
- .eds-switch__label--large--bottom {
949
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
950
+ top: 0.5rem;
955
951
  font-size: 0.875rem;
952
+ line-height: 1rem;
953
+ padding: 0;
954
+ margin-left: 1rem;
956
955
  }
957
- .eds-switch__label--medium--right {
956
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
957
+ top: 0.5rem;
958
958
  font-size: 0.875rem;
959
- }
960
- .eds-switch__label--medium--bottom {
961
- font-size: 0.75rem;
959
+ line-height: 1rem;
960
+ padding: 0;
961
+ margin-left: 1rem;
962
962
  }
963
963
  /* DO NOT CHANGE!*/
964
964
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1006,17 +1006,6 @@ textarea.eds-form-control.eds-textarea {
1006
1006
  }
1007
1007
  /* DO NOT CHANGE!*/
1008
1008
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1009
- .eds-segmented-control {
1010
- margin-top: 0.25rem;
1011
- display: flex;
1012
- background: #d1d4e3;
1013
- border-radius: 0.5rem;
1014
- }
1015
- .eds-contrast .eds-segmented-control {
1016
- background: #393d79;
1017
- }
1018
- /* DO NOT CHANGE!*/
1019
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1020
1009
  .eds-segmented-choice {
1021
1010
  display: block;
1022
1011
  flex: 1 1 0px;
@@ -1086,6 +1075,17 @@ textarea.eds-form-control.eds-textarea {
1086
1075
  .eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1087
1076
  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;
1088
1077
  }
1078
+ /* DO NOT CHANGE!*/
1079
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1080
+ .eds-segmented-control {
1081
+ margin-top: 0.25rem;
1082
+ display: flex;
1083
+ background: #d1d4e3;
1084
+ border-radius: 0.5rem;
1085
+ }
1086
+ .eds-contrast .eds-segmented-control {
1087
+ background: #393d79;
1088
+ }
1089
1089
  :root {
1090
1090
  --eds-form: 1;
1091
1091
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.34",
3
+ "version": "7.0.35",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^6.13.2",
30
+ "@entur/icons": "^6.14.0",
31
31
  "@entur/tokens": "^3.12.0",
32
- "@entur/tooltip": "^2.6.43",
33
- "@entur/typography": "^1.8.21",
32
+ "@entur/tooltip": "^2.6.44",
33
+ "@entur/typography": "^1.8.22",
34
34
  "@entur/utils": "^0.10.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "55899d49a6bab285199abb7c6709da8088e5a2e3"
37
+ "gitHead": "883677c25c50baf66df6f90c46759d186147921c"
38
38
  }