@entur/menu 4.2.28 → 4.2.30
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 +181 -181
- package/package.json +9 -9
package/dist/styles.css
CHANGED
|
@@ -54,6 +54,62 @@
|
|
|
54
54
|
}
|
|
55
55
|
/* DO NOT CHANGE!*/
|
|
56
56
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
57
|
+
.eds-top-navigation-item {
|
|
58
|
+
--show-active-line: 0;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
position: relative;
|
|
64
|
+
padding: 1rem;
|
|
65
|
+
min-width: 5rem;
|
|
66
|
+
width: -moz-fit-content;
|
|
67
|
+
width: fit-content;
|
|
68
|
+
text-align: center;
|
|
69
|
+
font-family: inherit;
|
|
70
|
+
font-size: 1rem;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
}
|
|
73
|
+
.eds-top-navigation-item::after {
|
|
74
|
+
content: "";
|
|
75
|
+
display: block;
|
|
76
|
+
bottom: 1rem;
|
|
77
|
+
height: 0.1875rem;
|
|
78
|
+
width: 0;
|
|
79
|
+
margin: 0 auto;
|
|
80
|
+
opacity: var(--show-active-line);
|
|
81
|
+
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
82
|
+
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
83
|
+
}
|
|
84
|
+
.eds-contrast .eds-top-navigation-item {
|
|
85
|
+
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
86
|
+
}
|
|
87
|
+
.eds-top-navigation-item:focus {
|
|
88
|
+
outline: 2px solid #181c56;
|
|
89
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
90
|
+
outline-offset: 0.125rem;
|
|
91
|
+
}
|
|
92
|
+
.eds-contrast .eds-top-navigation-item:focus {
|
|
93
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
94
|
+
}
|
|
95
|
+
.eds-top-navigation-item:hover {
|
|
96
|
+
--show-active-line: 1;
|
|
97
|
+
}
|
|
98
|
+
.eds-top-navigation-item:hover::after {
|
|
99
|
+
width: 2rem;
|
|
100
|
+
}
|
|
101
|
+
.eds-top-navigation-item--active {
|
|
102
|
+
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
103
|
+
--show-active-line: 1;
|
|
104
|
+
}
|
|
105
|
+
.eds-top-navigation-item--active::after {
|
|
106
|
+
width: 2rem;
|
|
107
|
+
}
|
|
108
|
+
.eds-contrast .eds-top-navigation-item--active {
|
|
109
|
+
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
110
|
+
}
|
|
111
|
+
/* DO NOT CHANGE!*/
|
|
112
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
57
113
|
.eds-side-navigation,
|
|
58
114
|
.eds-side-navigation-group {
|
|
59
115
|
color: var(--components-menu-sidenavigation-standard-text);
|
|
@@ -307,62 +363,6 @@
|
|
|
307
363
|
}
|
|
308
364
|
/* DO NOT CHANGE!*/
|
|
309
365
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
310
|
-
.eds-top-navigation-item {
|
|
311
|
-
--show-active-line: 0;
|
|
312
|
-
display: inline-block;
|
|
313
|
-
cursor: pointer;
|
|
314
|
-
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
315
|
-
text-decoration: none;
|
|
316
|
-
position: relative;
|
|
317
|
-
padding: 1rem;
|
|
318
|
-
min-width: 5rem;
|
|
319
|
-
width: -moz-fit-content;
|
|
320
|
-
width: fit-content;
|
|
321
|
-
text-align: center;
|
|
322
|
-
font-family: inherit;
|
|
323
|
-
font-size: 1rem;
|
|
324
|
-
font-weight: 600;
|
|
325
|
-
}
|
|
326
|
-
.eds-top-navigation-item::after {
|
|
327
|
-
content: "";
|
|
328
|
-
display: block;
|
|
329
|
-
bottom: 1rem;
|
|
330
|
-
height: 0.1875rem;
|
|
331
|
-
width: 0;
|
|
332
|
-
margin: 0 auto;
|
|
333
|
-
opacity: var(--show-active-line);
|
|
334
|
-
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
335
|
-
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
336
|
-
}
|
|
337
|
-
.eds-contrast .eds-top-navigation-item {
|
|
338
|
-
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
339
|
-
}
|
|
340
|
-
.eds-top-navigation-item:focus {
|
|
341
|
-
outline: 2px solid #181c56;
|
|
342
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
343
|
-
outline-offset: 0.125rem;
|
|
344
|
-
}
|
|
345
|
-
.eds-contrast .eds-top-navigation-item:focus {
|
|
346
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
347
|
-
}
|
|
348
|
-
.eds-top-navigation-item:hover {
|
|
349
|
-
--show-active-line: 1;
|
|
350
|
-
}
|
|
351
|
-
.eds-top-navigation-item:hover::after {
|
|
352
|
-
width: 2rem;
|
|
353
|
-
}
|
|
354
|
-
.eds-top-navigation-item--active {
|
|
355
|
-
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
356
|
-
--show-active-line: 1;
|
|
357
|
-
}
|
|
358
|
-
.eds-top-navigation-item--active::after {
|
|
359
|
-
width: 2rem;
|
|
360
|
-
}
|
|
361
|
-
.eds-contrast .eds-top-navigation-item--active {
|
|
362
|
-
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
363
|
-
}
|
|
364
|
-
/* DO NOT CHANGE!*/
|
|
365
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
366
366
|
.eds-overflow-menu__item {
|
|
367
367
|
-webkit-appearance: none;
|
|
368
368
|
-moz-appearance: none;
|
|
@@ -647,6 +647,131 @@
|
|
|
647
647
|
}
|
|
648
648
|
/* DO NOT CHANGE!*/
|
|
649
649
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
650
|
+
.eds-stepper {
|
|
651
|
+
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
652
|
+
--line-color: var(--components-menu-stepper-standard-background);
|
|
653
|
+
--label-font-weight: 500;
|
|
654
|
+
--display-active-line: none;
|
|
655
|
+
display: flex;
|
|
656
|
+
flex-direction: row;
|
|
657
|
+
width: 100%;
|
|
658
|
+
list-style-type: none;
|
|
659
|
+
}
|
|
660
|
+
.eds-stepper__step {
|
|
661
|
+
display: flex;
|
|
662
|
+
flex-grow: 1;
|
|
663
|
+
flex-basis: 0;
|
|
664
|
+
flex-direction: column;
|
|
665
|
+
align-items: inherit;
|
|
666
|
+
-webkit-appearance: none;
|
|
667
|
+
-moz-appearance: none;
|
|
668
|
+
appearance: none;
|
|
669
|
+
background: none;
|
|
670
|
+
border: none;
|
|
671
|
+
font-family: inherit;
|
|
672
|
+
text-transform: none;
|
|
673
|
+
}
|
|
674
|
+
.eds-stepper__step__wrapper {
|
|
675
|
+
flex-grow: 1;
|
|
676
|
+
}
|
|
677
|
+
.eds-stepper__step.focus-visible .eds-stepper__step__label {
|
|
678
|
+
outline-offset: 0.125rem;
|
|
679
|
+
outline: 2px solid #181c56;
|
|
680
|
+
}
|
|
681
|
+
.eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
682
|
+
outline-offset: 0.125rem;
|
|
683
|
+
outline: 2px solid #181c56;
|
|
684
|
+
}
|
|
685
|
+
.eds-contrast .eds-stepper__step.focus-visible .eds-stepper__step__label {
|
|
686
|
+
outline: 2px solid #ffffff;
|
|
687
|
+
}
|
|
688
|
+
.eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
689
|
+
outline: 2px solid #ffffff;
|
|
690
|
+
}
|
|
691
|
+
.eds-contrast .eds-stepper__step {
|
|
692
|
+
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
693
|
+
--line-color: var(--components-menu-stepper-contrast-background);
|
|
694
|
+
}
|
|
695
|
+
.eds-stepper__step--interactive {
|
|
696
|
+
all: unset;
|
|
697
|
+
display: flex;
|
|
698
|
+
flex-direction: column;
|
|
699
|
+
width: 100%;
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
}
|
|
702
|
+
.eds-stepper__step--active {
|
|
703
|
+
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
704
|
+
--label-font-weight: 600;
|
|
705
|
+
--display-active-line: block;
|
|
706
|
+
}
|
|
707
|
+
.eds-contrast .eds-stepper__step--active {
|
|
708
|
+
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
709
|
+
}
|
|
710
|
+
.eds-stepper__step--completed {
|
|
711
|
+
--text-color: var(--components-menu-stepper-standard-text-completed);
|
|
712
|
+
--line-color: var(--components-menu-stepper-standard-progressbar);
|
|
713
|
+
}
|
|
714
|
+
.eds-contrast .eds-stepper__step--completed {
|
|
715
|
+
--text-color: var(--components-menu-stepper-contrast-text-completed);
|
|
716
|
+
--line-color: var(--components-menu-stepper-contrast-progressbar);
|
|
717
|
+
}
|
|
718
|
+
.eds-stepper__step__label {
|
|
719
|
+
flex-grow: 1;
|
|
720
|
+
flex-direction: column;
|
|
721
|
+
align-self: center;
|
|
722
|
+
text-align: center;
|
|
723
|
+
font-size: 0.875rem;
|
|
724
|
+
margin: 0.5rem 0 0;
|
|
725
|
+
padding: 0 0.5rem;
|
|
726
|
+
width: -moz-fit-content;
|
|
727
|
+
width: fit-content;
|
|
728
|
+
border-radius: 0.0625rem;
|
|
729
|
+
color: var(--text-color);
|
|
730
|
+
font-weight: var(--label-font-weight);
|
|
731
|
+
}
|
|
732
|
+
.eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
733
|
+
background-color: var(--components-menu-stepper-standard-background);
|
|
734
|
+
color: var(--components-menu-stepper-standard-text-completed);
|
|
735
|
+
}
|
|
736
|
+
.eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
737
|
+
background-color: var(--components-menu-stepper-contrast-background);
|
|
738
|
+
color: var(--components-menu-stepper-contrast-text-completed);
|
|
739
|
+
}
|
|
740
|
+
.eds-stepper__step__line {
|
|
741
|
+
height: 0.5rem;
|
|
742
|
+
background: var(--line-color);
|
|
743
|
+
position: relative;
|
|
744
|
+
}
|
|
745
|
+
.eds-stepper__step__line:before {
|
|
746
|
+
display: var(--display-active-line);
|
|
747
|
+
content: "";
|
|
748
|
+
position: absolute;
|
|
749
|
+
right: calc(50% - 0.2rem);
|
|
750
|
+
bottom: 0.0625rem;
|
|
751
|
+
border-radius: 0.0625rem;
|
|
752
|
+
background: var(--components-menu-stepper-standard-progressbar);
|
|
753
|
+
width: calc(0.5rem - 0.125rem - 0.01rem);
|
|
754
|
+
height: calc(0.5rem - 0.125rem - 0.01rem);
|
|
755
|
+
transform: rotate(45deg);
|
|
756
|
+
}
|
|
757
|
+
.eds-contrast .eds-stepper__step__line:before {
|
|
758
|
+
background: var(--components-menu-stepper-contrast-progressbar);
|
|
759
|
+
}
|
|
760
|
+
.eds-stepper__step__line:after {
|
|
761
|
+
display: var(--display-active-line);
|
|
762
|
+
content: "";
|
|
763
|
+
position: absolute;
|
|
764
|
+
left: 0;
|
|
765
|
+
bottom: 0;
|
|
766
|
+
width: 50%;
|
|
767
|
+
height: 0.5rem;
|
|
768
|
+
background: var(--components-menu-stepper-standard-progressbar);
|
|
769
|
+
}
|
|
770
|
+
.eds-contrast .eds-stepper__step__line:after {
|
|
771
|
+
background: var(--components-menu-stepper-contrast-progressbar);
|
|
772
|
+
}
|
|
773
|
+
/* DO NOT CHANGE!*/
|
|
774
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
650
775
|
/* DO NOT CHANGE!*/
|
|
651
776
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
652
777
|
/* DO NOT CHANGE!*/
|
|
@@ -983,128 +1108,3 @@
|
|
|
983
1108
|
--eds-menu: 1;
|
|
984
1109
|
--reach-menu-button: 1;
|
|
985
1110
|
}
|
|
986
|
-
/* DO NOT CHANGE!*/
|
|
987
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
988
|
-
.eds-stepper {
|
|
989
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
990
|
-
--line-color: var(--components-menu-stepper-standard-background);
|
|
991
|
-
--label-font-weight: 500;
|
|
992
|
-
--display-active-line: none;
|
|
993
|
-
display: flex;
|
|
994
|
-
flex-direction: row;
|
|
995
|
-
width: 100%;
|
|
996
|
-
list-style-type: none;
|
|
997
|
-
}
|
|
998
|
-
.eds-stepper__step {
|
|
999
|
-
display: flex;
|
|
1000
|
-
flex-grow: 1;
|
|
1001
|
-
flex-basis: 0;
|
|
1002
|
-
flex-direction: column;
|
|
1003
|
-
align-items: inherit;
|
|
1004
|
-
-webkit-appearance: none;
|
|
1005
|
-
-moz-appearance: none;
|
|
1006
|
-
appearance: none;
|
|
1007
|
-
background: none;
|
|
1008
|
-
border: none;
|
|
1009
|
-
font-family: inherit;
|
|
1010
|
-
text-transform: none;
|
|
1011
|
-
}
|
|
1012
|
-
.eds-stepper__step__wrapper {
|
|
1013
|
-
flex-grow: 1;
|
|
1014
|
-
}
|
|
1015
|
-
.eds-stepper__step.focus-visible .eds-stepper__step__label {
|
|
1016
|
-
outline-offset: 0.125rem;
|
|
1017
|
-
outline: 2px solid #181c56;
|
|
1018
|
-
}
|
|
1019
|
-
.eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
1020
|
-
outline-offset: 0.125rem;
|
|
1021
|
-
outline: 2px solid #181c56;
|
|
1022
|
-
}
|
|
1023
|
-
.eds-contrast .eds-stepper__step.focus-visible .eds-stepper__step__label {
|
|
1024
|
-
outline: 2px solid #ffffff;
|
|
1025
|
-
}
|
|
1026
|
-
.eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
1027
|
-
outline: 2px solid #ffffff;
|
|
1028
|
-
}
|
|
1029
|
-
.eds-contrast .eds-stepper__step {
|
|
1030
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
1031
|
-
--line-color: var(--components-menu-stepper-contrast-background);
|
|
1032
|
-
}
|
|
1033
|
-
.eds-stepper__step--interactive {
|
|
1034
|
-
all: unset;
|
|
1035
|
-
display: flex;
|
|
1036
|
-
flex-direction: column;
|
|
1037
|
-
width: 100%;
|
|
1038
|
-
cursor: pointer;
|
|
1039
|
-
}
|
|
1040
|
-
.eds-stepper__step--active {
|
|
1041
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
1042
|
-
--label-font-weight: 600;
|
|
1043
|
-
--display-active-line: block;
|
|
1044
|
-
}
|
|
1045
|
-
.eds-contrast .eds-stepper__step--active {
|
|
1046
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
1047
|
-
}
|
|
1048
|
-
.eds-stepper__step--completed {
|
|
1049
|
-
--text-color: var(--components-menu-stepper-standard-text-completed);
|
|
1050
|
-
--line-color: var(--components-menu-stepper-standard-progressbar);
|
|
1051
|
-
}
|
|
1052
|
-
.eds-contrast .eds-stepper__step--completed {
|
|
1053
|
-
--text-color: var(--components-menu-stepper-contrast-text-completed);
|
|
1054
|
-
--line-color: var(--components-menu-stepper-contrast-progressbar);
|
|
1055
|
-
}
|
|
1056
|
-
.eds-stepper__step__label {
|
|
1057
|
-
flex-grow: 1;
|
|
1058
|
-
flex-direction: column;
|
|
1059
|
-
align-self: center;
|
|
1060
|
-
text-align: center;
|
|
1061
|
-
font-size: 0.875rem;
|
|
1062
|
-
margin: 0.5rem 0 0;
|
|
1063
|
-
padding: 0 0.5rem;
|
|
1064
|
-
width: -moz-fit-content;
|
|
1065
|
-
width: fit-content;
|
|
1066
|
-
border-radius: 0.0625rem;
|
|
1067
|
-
color: var(--text-color);
|
|
1068
|
-
font-weight: var(--label-font-weight);
|
|
1069
|
-
}
|
|
1070
|
-
.eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
1071
|
-
background-color: var(--components-menu-stepper-standard-background);
|
|
1072
|
-
color: var(--components-menu-stepper-standard-text-completed);
|
|
1073
|
-
}
|
|
1074
|
-
.eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
1075
|
-
background-color: var(--components-menu-stepper-contrast-background);
|
|
1076
|
-
color: var(--components-menu-stepper-contrast-text-completed);
|
|
1077
|
-
}
|
|
1078
|
-
.eds-stepper__step__line {
|
|
1079
|
-
height: 0.5rem;
|
|
1080
|
-
background: var(--line-color);
|
|
1081
|
-
position: relative;
|
|
1082
|
-
}
|
|
1083
|
-
.eds-stepper__step__line:before {
|
|
1084
|
-
display: var(--display-active-line);
|
|
1085
|
-
content: "";
|
|
1086
|
-
position: absolute;
|
|
1087
|
-
right: calc(50% - 0.2rem);
|
|
1088
|
-
bottom: 0.0625rem;
|
|
1089
|
-
border-radius: 0.0625rem;
|
|
1090
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
1091
|
-
width: calc(0.5rem - 0.125rem - 0.01rem);
|
|
1092
|
-
height: calc(0.5rem - 0.125rem - 0.01rem);
|
|
1093
|
-
transform: rotate(45deg);
|
|
1094
|
-
}
|
|
1095
|
-
.eds-contrast .eds-stepper__step__line:before {
|
|
1096
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
1097
|
-
}
|
|
1098
|
-
.eds-stepper__step__line:after {
|
|
1099
|
-
display: var(--display-active-line);
|
|
1100
|
-
content: "";
|
|
1101
|
-
position: absolute;
|
|
1102
|
-
left: 0;
|
|
1103
|
-
bottom: 0;
|
|
1104
|
-
width: 50%;
|
|
1105
|
-
height: 0.5rem;
|
|
1106
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
1107
|
-
}
|
|
1108
|
-
.eds-contrast .eds-stepper__step__line:after {
|
|
1109
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
1110
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.30",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/expand": "^3.5.
|
|
33
|
-
"@entur/icons": "^6.
|
|
34
|
-
"@entur/layout": "^2.3.
|
|
35
|
-
"@entur/tokens": "^3.
|
|
36
|
-
"@entur/typography": "^1.8.
|
|
30
|
+
"@entur/a11y": "^0.2.85",
|
|
31
|
+
"@entur/button": "^3.2.22",
|
|
32
|
+
"@entur/expand": "^3.5.11",
|
|
33
|
+
"@entur/icons": "^6.16.1",
|
|
34
|
+
"@entur/layout": "^2.3.6",
|
|
35
|
+
"@entur/tokens": "^3.15.0",
|
|
36
|
+
"@entur/typography": "^1.8.35",
|
|
37
37
|
"@entur/utils": "^0.11.1",
|
|
38
38
|
"@reach/menu-button": "^0.16.1",
|
|
39
39
|
"@reach/polymorphic": "0.18.0",
|
|
40
40
|
"classnames": "^2.3.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c702433653670daf832e66c5de26be359201655f"
|
|
43
43
|
}
|