@entur/menu 5.1.4 → 5.1.5
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
|
@@ -330,124 +330,6 @@
|
|
|
330
330
|
}
|
|
331
331
|
/* DO NOT CHANGE!*/
|
|
332
332
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
333
|
-
.eds-stepper {
|
|
334
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
335
|
-
--line-color: var(--components-menu-stepper-standard-background);
|
|
336
|
-
--label-font-weight: 500;
|
|
337
|
-
--display-active-line: none;
|
|
338
|
-
display: flex;
|
|
339
|
-
flex-direction: row;
|
|
340
|
-
width: 100%;
|
|
341
|
-
list-style-type: none;
|
|
342
|
-
}
|
|
343
|
-
.eds-stepper__step {
|
|
344
|
-
display: flex;
|
|
345
|
-
flex-grow: 1;
|
|
346
|
-
flex-basis: 0;
|
|
347
|
-
flex-direction: column;
|
|
348
|
-
align-items: inherit;
|
|
349
|
-
-webkit-appearance: none;
|
|
350
|
-
-moz-appearance: none;
|
|
351
|
-
appearance: none;
|
|
352
|
-
background: none;
|
|
353
|
-
border: none;
|
|
354
|
-
font-family: inherit;
|
|
355
|
-
text-transform: none;
|
|
356
|
-
}
|
|
357
|
-
.eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
358
|
-
outline-offset: 0.125rem;
|
|
359
|
-
outline: 2px solid #181c56;
|
|
360
|
-
}
|
|
361
|
-
.eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
|
|
362
|
-
outline: 2px solid #ffffff;
|
|
363
|
-
}
|
|
364
|
-
.eds-contrast .eds-stepper__step {
|
|
365
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
366
|
-
--line-color: var(--components-menu-stepper-contrast-background);
|
|
367
|
-
}
|
|
368
|
-
.eds-stepper__step__wrapper {
|
|
369
|
-
flex-grow: 1;
|
|
370
|
-
}
|
|
371
|
-
.eds-stepper__step--interactive {
|
|
372
|
-
all: unset;
|
|
373
|
-
display: flex;
|
|
374
|
-
flex-direction: column;
|
|
375
|
-
width: 100%;
|
|
376
|
-
cursor: pointer;
|
|
377
|
-
}
|
|
378
|
-
.eds-stepper__step--active {
|
|
379
|
-
--text-color: var(--components-menu-stepper-standard-text-uncompleted);
|
|
380
|
-
--label-font-weight: 600;
|
|
381
|
-
--display-active-line: block;
|
|
382
|
-
}
|
|
383
|
-
.eds-contrast .eds-stepper__step--active {
|
|
384
|
-
--text-color: var(--components-menu-stepper-contrast-text-uncompleted);
|
|
385
|
-
}
|
|
386
|
-
.eds-stepper__step--completed {
|
|
387
|
-
--text-color: var(--components-menu-stepper-standard-text-completed);
|
|
388
|
-
--line-color: var(--components-menu-stepper-standard-progressbar);
|
|
389
|
-
}
|
|
390
|
-
.eds-contrast .eds-stepper__step--completed {
|
|
391
|
-
--text-color: var(--components-menu-stepper-contrast-text-completed);
|
|
392
|
-
--line-color: var(--components-menu-stepper-contrast-progressbar);
|
|
393
|
-
}
|
|
394
|
-
.eds-stepper__step__label {
|
|
395
|
-
flex-grow: 1;
|
|
396
|
-
flex-direction: column;
|
|
397
|
-
align-self: center;
|
|
398
|
-
text-align: center;
|
|
399
|
-
font-size: 0.875rem;
|
|
400
|
-
margin: 0.5rem 0 0;
|
|
401
|
-
padding: 0 0.5rem;
|
|
402
|
-
width: -moz-fit-content;
|
|
403
|
-
width: fit-content;
|
|
404
|
-
border-radius: 0.0625rem;
|
|
405
|
-
color: var(--text-color);
|
|
406
|
-
font-weight: var(--label-font-weight);
|
|
407
|
-
}
|
|
408
|
-
.eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
409
|
-
background-color: var(--components-menu-stepper-standard-background);
|
|
410
|
-
color: var(--components-menu-stepper-standard-text-completed);
|
|
411
|
-
}
|
|
412
|
-
.eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
|
|
413
|
-
background-color: var(--components-menu-stepper-contrast-background);
|
|
414
|
-
color: var(--components-menu-stepper-contrast-text-completed);
|
|
415
|
-
}
|
|
416
|
-
.eds-stepper__step__line {
|
|
417
|
-
height: 0.5rem;
|
|
418
|
-
background: var(--line-color);
|
|
419
|
-
position: relative;
|
|
420
|
-
}
|
|
421
|
-
.eds-stepper__step__line:before {
|
|
422
|
-
display: var(--display-active-line);
|
|
423
|
-
content: "";
|
|
424
|
-
position: absolute;
|
|
425
|
-
right: calc(50% - 0.2rem);
|
|
426
|
-
bottom: 0.0625rem;
|
|
427
|
-
border-radius: 0.0625rem;
|
|
428
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
429
|
-
width: calc(0.5rem - 0.125rem - 0.01rem);
|
|
430
|
-
height: calc(0.5rem - 0.125rem - 0.01rem);
|
|
431
|
-
transform: rotate(45deg);
|
|
432
|
-
}
|
|
433
|
-
.eds-contrast .eds-stepper__step__line:before {
|
|
434
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
435
|
-
}
|
|
436
|
-
.eds-stepper__step__line:after {
|
|
437
|
-
display: var(--display-active-line);
|
|
438
|
-
content: "";
|
|
439
|
-
position: absolute;
|
|
440
|
-
left: 0;
|
|
441
|
-
bottom: 0;
|
|
442
|
-
width: 50%;
|
|
443
|
-
height: 0.5rem;
|
|
444
|
-
background: var(--components-menu-stepper-standard-progressbar);
|
|
445
|
-
}
|
|
446
|
-
.eds-contrast .eds-stepper__step__line:after {
|
|
447
|
-
background: var(--components-menu-stepper-contrast-progressbar);
|
|
448
|
-
}
|
|
449
|
-
/* DO NOT CHANGE!*/
|
|
450
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
451
333
|
.eds-pagination {
|
|
452
334
|
align-items: center;
|
|
453
335
|
display: flex;
|
|
@@ -609,63 +491,6 @@
|
|
|
609
491
|
}
|
|
610
492
|
/* DO NOT CHANGE!*/
|
|
611
493
|
/* 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. */
|
|
669
494
|
/* DO NOT CHANGE!*/
|
|
670
495
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
671
496
|
/* DO NOT CHANGE!*/
|
|
@@ -1006,3 +831,178 @@
|
|
|
1006
831
|
--eds-menu: 1;
|
|
1007
832
|
--reach-menu-button: 1;
|
|
1008
833
|
}
|
|
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.5",
|
|
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.5",
|
|
32
|
+
"@entur/expand": "^3.6.5",
|
|
33
|
+
"@entur/icons": "^7.9.0",
|
|
34
|
+
"@entur/layout": "^3.1.1",
|
|
35
35
|
"@entur/tokens": "^3.19.0",
|
|
36
|
-
"@entur/tooltip": "^5.2.
|
|
37
|
-
"@entur/typography": "^1.9.
|
|
36
|
+
"@entur/tooltip": "^5.2.5",
|
|
37
|
+
"@entur/typography": "^1.9.5",
|
|
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": "e59bee5bf5aa6ab864c96be6cf4979feab287c61"
|
|
46
46
|
}
|