@entur/menu 5.1.5 → 5.1.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 +175 -175
- package/package.json +8 -8
package/dist/styles.css
CHANGED
|
@@ -491,6 +491,181 @@
|
|
|
491
491
|
}
|
|
492
492
|
/* DO NOT CHANGE!*/
|
|
493
493
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
494
|
+
.eds-stepper {
|
|
495
|
+
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
496
|
+
--line-color: var(--components-menu-stepper-standard-background);
|
|
497
|
+
--label-font-weight: 500;
|
|
498
|
+
--display-active-line: none;
|
|
499
|
+
display: flex;
|
|
500
|
+
flex-direction: row;
|
|
501
|
+
width: 100%;
|
|
502
|
+
list-style-type: none;
|
|
503
|
+
}
|
|
504
|
+
.eds-stepper__step {
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-grow: 1;
|
|
507
|
+
flex-basis: 0;
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
align-items: inherit;
|
|
510
|
+
-webkit-appearance: none;
|
|
511
|
+
-moz-appearance: none;
|
|
512
|
+
appearance: none;
|
|
513
|
+
background: none;
|
|
514
|
+
border: none;
|
|
515
|
+
font-family: inherit;
|
|
516
|
+
text-transform: none;
|
|
517
|
+
}
|
|
518
|
+
.eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
519
|
+
outline-offset: 0.125rem;
|
|
520
|
+
outline: 2px solid #181c56;
|
|
521
|
+
}
|
|
522
|
+
.eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
523
|
+
outline: 2px solid #ffffff;
|
|
524
|
+
}
|
|
525
|
+
.eds-contrast .eds-stepper__step {
|
|
526
|
+
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
527
|
+
--line-color: var(--components-menu-stepper-contrast-background);
|
|
528
|
+
}
|
|
529
|
+
.eds-stepper__step__wrapper {
|
|
530
|
+
flex-grow: 1;
|
|
531
|
+
}
|
|
532
|
+
.eds-stepper__step--interactive {
|
|
533
|
+
all: unset;
|
|
534
|
+
display: flex;
|
|
535
|
+
flex-direction: column;
|
|
536
|
+
width: 100%;
|
|
537
|
+
cursor: pointer;
|
|
538
|
+
}
|
|
539
|
+
.eds-stepper__step--active {
|
|
540
|
+
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
541
|
+
--label-font-weight: 600;
|
|
542
|
+
--display-active-line: block;
|
|
543
|
+
}
|
|
544
|
+
.eds-contrast .eds-stepper__step--active {
|
|
545
|
+
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
546
|
+
}
|
|
547
|
+
.eds-stepper__step--completed {
|
|
548
|
+
--text-color: var(--components-menu-stepper-standard-text-completed);
|
|
549
|
+
--line-color: var(--components-menu-stepper-standard-progressbar);
|
|
550
|
+
}
|
|
551
|
+
.eds-contrast .eds-stepper__step--completed {
|
|
552
|
+
--text-color: var(--components-menu-stepper-contrast-text-completed);
|
|
553
|
+
--line-color: var(--components-menu-stepper-contrast-progressbar);
|
|
554
|
+
}
|
|
555
|
+
.eds-stepper__step__label {
|
|
556
|
+
flex-grow: 1;
|
|
557
|
+
flex-direction: column;
|
|
558
|
+
align-self: center;
|
|
559
|
+
text-align: center;
|
|
560
|
+
font-size: 0.875rem;
|
|
561
|
+
margin: 0.5rem 0 0;
|
|
562
|
+
padding: 0 0.5rem;
|
|
563
|
+
width: -moz-fit-content;
|
|
564
|
+
width: fit-content;
|
|
565
|
+
border-radius: 0.0625rem;
|
|
566
|
+
color: var(--text-color);
|
|
567
|
+
font-weight: var(--label-font-weight);
|
|
568
|
+
}
|
|
569
|
+
.eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
570
|
+
background-color: var(--components-menu-stepper-standard-background);
|
|
571
|
+
color: var(--components-menu-stepper-standard-text-completed);
|
|
572
|
+
}
|
|
573
|
+
.eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
574
|
+
background-color: var(--components-menu-stepper-contrast-background);
|
|
575
|
+
color: var(--components-menu-stepper-contrast-text-completed);
|
|
576
|
+
}
|
|
577
|
+
.eds-stepper__step__line {
|
|
578
|
+
height: 0.5rem;
|
|
579
|
+
background: var(--line-color);
|
|
580
|
+
position: relative;
|
|
581
|
+
}
|
|
582
|
+
.eds-stepper__step__line:before {
|
|
583
|
+
display: var(--display-active-line);
|
|
584
|
+
content: "";
|
|
585
|
+
position: absolute;
|
|
586
|
+
right: calc(50% - 0.2rem);
|
|
587
|
+
bottom: 0.0625rem;
|
|
588
|
+
border-radius: 0.0625rem;
|
|
589
|
+
background: var(--components-menu-stepper-standard-progressbar);
|
|
590
|
+
width: calc(0.5rem - 0.125rem - 0.01rem);
|
|
591
|
+
height: calc(0.5rem - 0.125rem - 0.01rem);
|
|
592
|
+
transform: rotate(45deg);
|
|
593
|
+
}
|
|
594
|
+
.eds-contrast .eds-stepper__step__line:before {
|
|
595
|
+
background: var(--components-menu-stepper-contrast-progressbar);
|
|
596
|
+
}
|
|
597
|
+
.eds-stepper__step__line:after {
|
|
598
|
+
display: var(--display-active-line);
|
|
599
|
+
content: "";
|
|
600
|
+
position: absolute;
|
|
601
|
+
left: 0;
|
|
602
|
+
bottom: 0;
|
|
603
|
+
width: 50%;
|
|
604
|
+
height: 0.5rem;
|
|
605
|
+
background: var(--components-menu-stepper-standard-progressbar);
|
|
606
|
+
}
|
|
607
|
+
.eds-contrast .eds-stepper__step__line:after {
|
|
608
|
+
background: var(--components-menu-stepper-contrast-progressbar);
|
|
609
|
+
}
|
|
610
|
+
/* DO NOT CHANGE!*/
|
|
611
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
612
|
+
.eds-top-navigation-item {
|
|
613
|
+
--show-active-line: 0;
|
|
614
|
+
display: inline-block;
|
|
615
|
+
cursor: pointer;
|
|
616
|
+
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
617
|
+
-webkit-text-decoration: none;
|
|
618
|
+
text-decoration: none;
|
|
619
|
+
position: relative;
|
|
620
|
+
padding: 1rem;
|
|
621
|
+
min-width: 5rem;
|
|
622
|
+
width: -moz-fit-content;
|
|
623
|
+
width: fit-content;
|
|
624
|
+
text-align: center;
|
|
625
|
+
font-family: inherit;
|
|
626
|
+
font-size: 1rem;
|
|
627
|
+
font-weight: 600;
|
|
628
|
+
}
|
|
629
|
+
.eds-top-navigation-item::after {
|
|
630
|
+
content: "";
|
|
631
|
+
display: block;
|
|
632
|
+
bottom: 1rem;
|
|
633
|
+
height: 0.1875rem;
|
|
634
|
+
width: 0;
|
|
635
|
+
margin: 0 auto;
|
|
636
|
+
opacity: var(--show-active-line);
|
|
637
|
+
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
638
|
+
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
639
|
+
}
|
|
640
|
+
.eds-contrast .eds-top-navigation-item {
|
|
641
|
+
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
642
|
+
}
|
|
643
|
+
.eds-top-navigation-item:focus-visible {
|
|
644
|
+
outline: 2px solid #181c56;
|
|
645
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
646
|
+
outline-offset: 0.125rem;
|
|
647
|
+
}
|
|
648
|
+
.eds-contrast .eds-top-navigation-item:focus-visible {
|
|
649
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
650
|
+
}
|
|
651
|
+
.eds-top-navigation-item:hover {
|
|
652
|
+
--show-active-line: 1;
|
|
653
|
+
}
|
|
654
|
+
.eds-top-navigation-item:hover::after {
|
|
655
|
+
width: 2rem;
|
|
656
|
+
}
|
|
657
|
+
.eds-top-navigation-item--active {
|
|
658
|
+
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
659
|
+
--show-active-line: 1;
|
|
660
|
+
}
|
|
661
|
+
.eds-top-navigation-item--active::after {
|
|
662
|
+
width: 2rem;
|
|
663
|
+
}
|
|
664
|
+
.eds-contrast .eds-top-navigation-item--active {
|
|
665
|
+
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
666
|
+
}
|
|
667
|
+
/* DO NOT CHANGE!*/
|
|
668
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
494
669
|
/* DO NOT CHANGE!*/
|
|
495
670
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
496
671
|
/* DO NOT CHANGE!*/
|
|
@@ -831,178 +1006,3 @@
|
|
|
831
1006
|
--eds-menu: 1;
|
|
832
1007
|
--reach-menu-button: 1;
|
|
833
1008
|
}
|
|
834
|
-
/* DO NOT CHANGE!*/
|
|
835
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
836
|
-
.eds-stepper {
|
|
837
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
838
|
-
--line-color: var(--components-menu-stepper-standard-background);
|
|
839
|
-
--label-font-weight: 500;
|
|
840
|
-
--display-active-line: none;
|
|
841
|
-
display: flex;
|
|
842
|
-
flex-direction: row;
|
|
843
|
-
width: 100%;
|
|
844
|
-
list-style-type: none;
|
|
845
|
-
}
|
|
846
|
-
.eds-stepper__step {
|
|
847
|
-
display: flex;
|
|
848
|
-
flex-grow: 1;
|
|
849
|
-
flex-basis: 0;
|
|
850
|
-
flex-direction: column;
|
|
851
|
-
align-items: inherit;
|
|
852
|
-
-webkit-appearance: none;
|
|
853
|
-
-moz-appearance: none;
|
|
854
|
-
appearance: none;
|
|
855
|
-
background: none;
|
|
856
|
-
border: none;
|
|
857
|
-
font-family: inherit;
|
|
858
|
-
text-transform: none;
|
|
859
|
-
}
|
|
860
|
-
.eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
861
|
-
outline-offset: 0.125rem;
|
|
862
|
-
outline: 2px solid #181c56;
|
|
863
|
-
}
|
|
864
|
-
.eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
865
|
-
outline: 2px solid #ffffff;
|
|
866
|
-
}
|
|
867
|
-
.eds-contrast .eds-stepper__step {
|
|
868
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
869
|
-
--line-color: var(--components-menu-stepper-contrast-background);
|
|
870
|
-
}
|
|
871
|
-
.eds-stepper__step__wrapper {
|
|
872
|
-
flex-grow: 1;
|
|
873
|
-
}
|
|
874
|
-
.eds-stepper__step--interactive {
|
|
875
|
-
all: unset;
|
|
876
|
-
display: flex;
|
|
877
|
-
flex-direction: column;
|
|
878
|
-
width: 100%;
|
|
879
|
-
cursor: pointer;
|
|
880
|
-
}
|
|
881
|
-
.eds-stepper__step--active {
|
|
882
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
883
|
-
--label-font-weight: 600;
|
|
884
|
-
--display-active-line: block;
|
|
885
|
-
}
|
|
886
|
-
.eds-contrast .eds-stepper__step--active {
|
|
887
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
888
|
-
}
|
|
889
|
-
.eds-stepper__step--completed {
|
|
890
|
-
--text-color: var(--components-menu-stepper-standard-text-completed);
|
|
891
|
-
--line-color: var(--components-menu-stepper-standard-progressbar);
|
|
892
|
-
}
|
|
893
|
-
.eds-contrast .eds-stepper__step--completed {
|
|
894
|
-
--text-color: var(--components-menu-stepper-contrast-text-completed);
|
|
895
|
-
--line-color: var(--components-menu-stepper-contrast-progressbar);
|
|
896
|
-
}
|
|
897
|
-
.eds-stepper__step__label {
|
|
898
|
-
flex-grow: 1;
|
|
899
|
-
flex-direction: column;
|
|
900
|
-
align-self: center;
|
|
901
|
-
text-align: center;
|
|
902
|
-
font-size: 0.875rem;
|
|
903
|
-
margin: 0.5rem 0 0;
|
|
904
|
-
padding: 0 0.5rem;
|
|
905
|
-
width: -moz-fit-content;
|
|
906
|
-
width: fit-content;
|
|
907
|
-
border-radius: 0.0625rem;
|
|
908
|
-
color: var(--text-color);
|
|
909
|
-
font-weight: var(--label-font-weight);
|
|
910
|
-
}
|
|
911
|
-
.eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
912
|
-
background-color: var(--components-menu-stepper-standard-background);
|
|
913
|
-
color: var(--components-menu-stepper-standard-text-completed);
|
|
914
|
-
}
|
|
915
|
-
.eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
916
|
-
background-color: var(--components-menu-stepper-contrast-background);
|
|
917
|
-
color: var(--components-menu-stepper-contrast-text-completed);
|
|
918
|
-
}
|
|
919
|
-
.eds-stepper__step__line {
|
|
920
|
-
height: 0.5rem;
|
|
921
|
-
background: var(--line-color);
|
|
922
|
-
position: relative;
|
|
923
|
-
}
|
|
924
|
-
.eds-stepper__step__line:before {
|
|
925
|
-
display: var(--display-active-line);
|
|
926
|
-
content: "";
|
|
927
|
-
position: absolute;
|
|
928
|
-
right: calc(50% - 0.2rem);
|
|
929
|
-
bottom: 0.0625rem;
|
|
930
|
-
border-radius: 0.0625rem;
|
|
931
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
932
|
-
width: calc(0.5rem - 0.125rem - 0.01rem);
|
|
933
|
-
height: calc(0.5rem - 0.125rem - 0.01rem);
|
|
934
|
-
transform: rotate(45deg);
|
|
935
|
-
}
|
|
936
|
-
.eds-contrast .eds-stepper__step__line:before {
|
|
937
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
938
|
-
}
|
|
939
|
-
.eds-stepper__step__line:after {
|
|
940
|
-
display: var(--display-active-line);
|
|
941
|
-
content: "";
|
|
942
|
-
position: absolute;
|
|
943
|
-
left: 0;
|
|
944
|
-
bottom: 0;
|
|
945
|
-
width: 50%;
|
|
946
|
-
height: 0.5rem;
|
|
947
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
948
|
-
}
|
|
949
|
-
.eds-contrast .eds-stepper__step__line:after {
|
|
950
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
951
|
-
}
|
|
952
|
-
/* DO NOT CHANGE!*/
|
|
953
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
954
|
-
.eds-top-navigation-item {
|
|
955
|
-
--show-active-line: 0;
|
|
956
|
-
display: inline-block;
|
|
957
|
-
cursor: pointer;
|
|
958
|
-
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
959
|
-
-webkit-text-decoration: none;
|
|
960
|
-
text-decoration: none;
|
|
961
|
-
position: relative;
|
|
962
|
-
padding: 1rem;
|
|
963
|
-
min-width: 5rem;
|
|
964
|
-
width: -moz-fit-content;
|
|
965
|
-
width: fit-content;
|
|
966
|
-
text-align: center;
|
|
967
|
-
font-family: inherit;
|
|
968
|
-
font-size: 1rem;
|
|
969
|
-
font-weight: 600;
|
|
970
|
-
}
|
|
971
|
-
.eds-top-navigation-item::after {
|
|
972
|
-
content: "";
|
|
973
|
-
display: block;
|
|
974
|
-
bottom: 1rem;
|
|
975
|
-
height: 0.1875rem;
|
|
976
|
-
width: 0;
|
|
977
|
-
margin: 0 auto;
|
|
978
|
-
opacity: var(--show-active-line);
|
|
979
|
-
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
980
|
-
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
981
|
-
}
|
|
982
|
-
.eds-contrast .eds-top-navigation-item {
|
|
983
|
-
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
984
|
-
}
|
|
985
|
-
.eds-top-navigation-item:focus-visible {
|
|
986
|
-
outline: 2px solid #181c56;
|
|
987
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
988
|
-
outline-offset: 0.125rem;
|
|
989
|
-
}
|
|
990
|
-
.eds-contrast .eds-top-navigation-item:focus-visible {
|
|
991
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
992
|
-
}
|
|
993
|
-
.eds-top-navigation-item:hover {
|
|
994
|
-
--show-active-line: 1;
|
|
995
|
-
}
|
|
996
|
-
.eds-top-navigation-item:hover::after {
|
|
997
|
-
width: 2rem;
|
|
998
|
-
}
|
|
999
|
-
.eds-top-navigation-item--active {
|
|
1000
|
-
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
1001
|
-
--show-active-line: 1;
|
|
1002
|
-
}
|
|
1003
|
-
.eds-top-navigation-item--active::after {
|
|
1004
|
-
width: 2rem;
|
|
1005
|
-
}
|
|
1006
|
-
.eds-contrast .eds-top-navigation-item--active {
|
|
1007
|
-
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
1008
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@entur/a11y": "^0.2.98",
|
|
31
|
-
"@entur/button": "^3.3.
|
|
32
|
-
"@entur/expand": "^3.6.
|
|
33
|
-
"@entur/icons": "^7.
|
|
34
|
-
"@entur/layout": "^3.1.
|
|
31
|
+
"@entur/button": "^3.3.7",
|
|
32
|
+
"@entur/expand": "^3.6.7",
|
|
33
|
+
"@entur/icons": "^7.11.0",
|
|
34
|
+
"@entur/layout": "^3.1.3",
|
|
35
35
|
"@entur/tokens": "^3.19.0",
|
|
36
|
-
"@entur/tooltip": "^5.2.
|
|
37
|
-
"@entur/typography": "^1.9.
|
|
36
|
+
"@entur/tooltip": "^5.2.7",
|
|
37
|
+
"@entur/typography": "^1.9.7",
|
|
38
38
|
"@entur/utils": "^0.12.3",
|
|
39
39
|
"@floating-ui/react": "^0.26.23",
|
|
40
40
|
"classnames": "^2.3.1"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"dts-cli": "2.0.5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ccdbbec971e0336510c047873a1e63cc31aa850e"
|
|
46
46
|
}
|