@entur/form 5.3.4 → 5.3.7

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
@@ -549,6 +549,174 @@
549
549
  background-color: #aeb7e2;
550
550
  }/* DO NOT CHANGE!*/
551
551
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
+ .eds-input-group {
553
+ color: inherit;
554
+ display: block;
555
+ position: relative;
556
+ }
557
+ .eds-input-group__label {
558
+ color: #656782;
559
+ display: flex;
560
+ font-size: 1rem;
561
+ position: absolute;
562
+ line-height: 1rem;
563
+ height: 3rem;
564
+ padding: 1rem;
565
+ padding-left: 0;
566
+ margin-left: 1rem;
567
+ top: -0.125rem;
568
+ 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;
569
+ -webkit-user-select: none;
570
+ -moz-user-select: none;
571
+ -ms-user-select: none;
572
+ user-select: none;
573
+ pointer-events: none;
574
+ }
575
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
576
+ top: calc(0.5rem - 0.125rem);
577
+ font-size: 0.75rem;
578
+ line-height: 0.75rem;
579
+ height: 10px;
580
+ padding: 0;
581
+ margin-left: 1rem;
582
+ }
583
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
584
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
585
+ background: var(--textarea-label-background);
586
+ width: calc( 100% - 1rem - 1rem - 4px );
587
+ }
588
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
589
+ top: 0.5rem;
590
+ font-size: 0.875rem;
591
+ line-height: 1rem;
592
+ padding: 0;
593
+ margin-left: 1rem;
594
+ }
595
+ .eds-contrast .eds-input-group__label {
596
+ color: #8285a8;
597
+ }
598
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
599
+ color: #aeb7e2;
600
+ }
601
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
602
+ font-size: 1.5rem;
603
+ line-height: 2.25rem;
604
+ height: 4rem;
605
+ }
606
+ .eds-input-group__label--filled {
607
+ top: calc(0.5rem - 0.125rem);
608
+ font-size: 0.75rem;
609
+ line-height: 0.75rem;
610
+ height: 10px;
611
+ padding: 0;
612
+ margin-left: 1rem;
613
+ }
614
+ .eds-textarea__label .eds-input-group__label--filled {
615
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
616
+ background: var(--textarea-label-background);
617
+ width: calc( 100% - 1rem - 1rem - 4px );
618
+ }
619
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
620
+ top: 0.5rem;
621
+ font-size: 0.875rem;
622
+ line-height: 1rem;
623
+ padding: 0;
624
+ margin-left: 1rem;
625
+ }
626
+ .eds-input-group__label-tooltip-icon {
627
+ color: #0082b9;
628
+ padding-left: 0.25rem;
629
+ padding-right: 0.25rem;
630
+ display: flex;
631
+ align-items: center;
632
+ cursor: help;
633
+ font-size: 1rem;
634
+ }
635
+
636
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
637
+ top: calc(0.5rem - 0.125rem);
638
+ font-size: 0.75rem;
639
+ line-height: 0.75rem;
640
+ height: 10px;
641
+ padding: 0;
642
+ margin-left: 1rem;
643
+ }
644
+
645
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
646
+ top: calc(0.5rem - 0.125rem);
647
+ font-size: 0.75rem;
648
+ line-height: 0.75rem;
649
+ height: 10px;
650
+ padding: 0;
651
+ margin-left: 1rem;
652
+ }
653
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
654
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
655
+ background: var(--textarea-label-background);
656
+ width: calc( 100% - 1rem - 1rem - 4px );
657
+ }
658
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
659
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
660
+ background: var(--textarea-label-background);
661
+ width: calc( 100% - 1rem - 1rem - 4px );
662
+ }
663
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
664
+ top: 0.5rem;
665
+ font-size: 0.875rem;
666
+ line-height: 1rem;
667
+ padding: 0;
668
+ margin-left: 1rem;
669
+ }
670
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
671
+ top: 0.5rem;
672
+ font-size: 0.875rem;
673
+ line-height: 1rem;
674
+ padding: 0;
675
+ margin-left: 1rem;
676
+ }/* DO NOT CHANGE!*/
677
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
678
+ textarea.eds-form-control.eds-textarea {
679
+ min-height: 7.75rem;
680
+ resize: vertical;
681
+ line-height: 1.5rem;
682
+ }/* DO NOT CHANGE!*/
683
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
684
+ .eds-textfield__clear-button {
685
+ background: none;
686
+ border: none;
687
+ border-radius: 50%;
688
+ color: inherit;
689
+ cursor: pointer;
690
+ display: flex;
691
+ font: inherit;
692
+ font-size: 1rem;
693
+ line-height: 1rem;
694
+ padding: 0.5rem;
695
+ margin-right: -0.75rem;
696
+ }
697
+ .eds-textfield__clear-button-wrapper {
698
+ display: flex;
699
+ align-items: center;
700
+ }
701
+ .eds-textfield__clear-button:hover {
702
+ background: #f3f3f3;
703
+ }
704
+ .eds-textfield__clear-button:focus {
705
+ outline: none;
706
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
707
+ }
708
+
709
+ .eds-textfield__divider {
710
+ content: "";
711
+ display: block;
712
+ background-color: #e9e9e9;
713
+ height: 1.5rem;
714
+ width: 1px;
715
+ }
716
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
717
+ background-color: #8285a8;
718
+ }/* DO NOT CHANGE!*/
719
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
720
  .eds-switch {
553
721
  cursor: pointer;
554
722
  -webkit-user-select: none;
@@ -661,48 +829,6 @@
661
829
  font-size: 0.75rem;
662
830
  }/* DO NOT CHANGE!*/
663
831
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
664
- textarea.eds-form-control.eds-textarea {
665
- min-height: 7.75rem;
666
- resize: vertical;
667
- line-height: 1.5rem;
668
- }/* DO NOT CHANGE!*/
669
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
670
- .eds-textfield__clear-button {
671
- background: none;
672
- border: none;
673
- border-radius: 50%;
674
- color: inherit;
675
- cursor: pointer;
676
- display: flex;
677
- font: inherit;
678
- font-size: 1rem;
679
- line-height: 1rem;
680
- padding: 0.5rem;
681
- margin-right: -0.75rem;
682
- }
683
- .eds-textfield__clear-button-wrapper {
684
- display: flex;
685
- align-items: center;
686
- }
687
- .eds-textfield__clear-button:hover {
688
- background: #f3f3f3;
689
- }
690
- .eds-textfield__clear-button:focus {
691
- outline: none;
692
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
693
- }
694
-
695
- .eds-textfield__divider {
696
- content: "";
697
- display: block;
698
- background-color: #e9e9e9;
699
- height: 1.5rem;
700
- width: 1px;
701
- }
702
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
703
- background-color: #8285a8;
704
- }/* DO NOT CHANGE!*/
705
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
706
832
  .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
707
833
  border-color: #181c56;
708
834
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
@@ -845,132 +971,6 @@ textarea.eds-form-control.eds-textarea {
845
971
  stroke-width: 0.375rem;
846
972
  }/* DO NOT CHANGE!*/
847
973
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
848
- .eds-input-group {
849
- color: inherit;
850
- display: block;
851
- position: relative;
852
- }
853
- .eds-input-group__label {
854
- color: #656782;
855
- display: flex;
856
- font-size: 1rem;
857
- position: absolute;
858
- line-height: 1rem;
859
- height: 3rem;
860
- padding: 1rem;
861
- padding-left: 0;
862
- margin-left: 1rem;
863
- top: -0.125rem;
864
- 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;
865
- -webkit-user-select: none;
866
- -moz-user-select: none;
867
- -ms-user-select: none;
868
- user-select: none;
869
- pointer-events: none;
870
- }
871
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
872
- top: calc(0.5rem - 0.125rem);
873
- font-size: 0.75rem;
874
- line-height: 0.75rem;
875
- height: 10px;
876
- padding: 0;
877
- margin-left: 1rem;
878
- }
879
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
880
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
881
- background: var(--textarea-label-background);
882
- width: calc( 100% - 1rem - 1rem - 4px );
883
- }
884
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
885
- top: 0.5rem;
886
- font-size: 0.875rem;
887
- line-height: 1rem;
888
- padding: 0;
889
- margin-left: 1rem;
890
- }
891
- .eds-contrast .eds-input-group__label {
892
- color: #8285a8;
893
- }
894
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
895
- color: #aeb7e2;
896
- }
897
- .eds-form-control-wrapper--size-large .eds-input-group__label {
898
- font-size: 1.5rem;
899
- line-height: 2.25rem;
900
- height: 4rem;
901
- }
902
- .eds-input-group__label--filled {
903
- top: calc(0.5rem - 0.125rem);
904
- font-size: 0.75rem;
905
- line-height: 0.75rem;
906
- height: 10px;
907
- padding: 0;
908
- margin-left: 1rem;
909
- }
910
- .eds-textarea__label .eds-input-group__label--filled {
911
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
912
- background: var(--textarea-label-background);
913
- width: calc( 100% - 1rem - 1rem - 4px );
914
- }
915
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
916
- top: 0.5rem;
917
- font-size: 0.875rem;
918
- line-height: 1rem;
919
- padding: 0;
920
- margin-left: 1rem;
921
- }
922
- .eds-input-group__label-tooltip-icon {
923
- color: #0082b9;
924
- padding-left: 0.25rem;
925
- padding-right: 0.25rem;
926
- display: flex;
927
- align-items: center;
928
- cursor: help;
929
- font-size: 1rem;
930
- }
931
-
932
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
933
- top: calc(0.5rem - 0.125rem);
934
- font-size: 0.75rem;
935
- line-height: 0.75rem;
936
- height: 10px;
937
- padding: 0;
938
- margin-left: 1rem;
939
- }
940
-
941
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
942
- top: calc(0.5rem - 0.125rem);
943
- font-size: 0.75rem;
944
- line-height: 0.75rem;
945
- height: 10px;
946
- padding: 0;
947
- margin-left: 1rem;
948
- }
949
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
950
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
951
- background: var(--textarea-label-background);
952
- width: calc( 100% - 1rem - 1rem - 4px );
953
- }
954
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
955
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
956
- background: var(--textarea-label-background);
957
- width: calc( 100% - 1rem - 1rem - 4px );
958
- }
959
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
960
- top: 0.5rem;
961
- font-size: 0.875rem;
962
- line-height: 1rem;
963
- padding: 0;
964
- margin-left: 1rem;
965
- }
966
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
967
- top: 0.5rem;
968
- font-size: 0.875rem;
969
- line-height: 1rem;
970
- padding: 0;
971
- margin-left: 1rem;
972
- }/* DO NOT CHANGE!*/
973
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
974
974
  .eds-segmented-control {
975
975
  margin-top: 0.25rem;
976
976
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "5.3.4",
3
+ "version": "5.3.7",
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": "^4.1.2",
30
+ "@entur/icons": "^4.2.0",
31
31
  "@entur/tokens": "^3.3.2",
32
- "@entur/tooltip": "^2.5.7",
33
- "@entur/typography": "^1.6.12",
32
+ "@entur/tooltip": "^2.5.10",
33
+ "@entur/typography": "^1.6.14",
34
34
  "@entur/utils": "^0.4.3",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "0fba0071ad9dc75cc68b72b846f5bab78be12449"
37
+ "gitHead": "974289b6579ade4460d12aa877a89e454c983d48"
38
38
  }