@entur/menu 5.0.5 → 5.0.6
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/menu.cjs.development.js +12 -2
- package/dist/menu.cjs.development.js.map +1 -1
- package/dist/menu.cjs.production.min.js +1 -1
- package/dist/menu.cjs.production.min.js.map +1 -1
- package/dist/menu.esm.js +13 -3
- package/dist/menu.esm.js.map +1 -1
- package/dist/styles.css +154 -154
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-overflow-menu__menu-list {
|
|
4
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
border-radius: 0.25rem;
|
|
7
|
+
border: 0.0625rem solid var(--components-menu-overflowmenu-border);
|
|
8
|
+
z-index: 20;
|
|
9
|
+
}
|
|
10
|
+
.eds-overflow-menu__menu-list.eds-contrast {
|
|
11
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
12
|
+
}
|
|
13
|
+
.eds-overflow-menu__item {
|
|
14
|
+
display: block;
|
|
15
|
+
width: 100%;
|
|
16
|
+
-webkit-appearance: none;
|
|
17
|
+
-moz-appearance: none;
|
|
18
|
+
appearance: none;
|
|
19
|
+
padding: 0.75rem;
|
|
20
|
+
border: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
line-height: 1.375rem;
|
|
24
|
+
text-align: left;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
color: var(--components-menu-overflowmenu-text);
|
|
27
|
+
background: var(--components-menu-overflowmenu-fill-default);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
.eds-overflow-menu__item--highlighted {
|
|
31
|
+
background: var(--components-menu-overflowmenu-fill-hover);
|
|
32
|
+
}
|
|
33
|
+
.eds-overflow-menu__item:active {
|
|
34
|
+
background: var(--components-menu-overflowmenu-fill-active);
|
|
35
|
+
color: var(--components-menu-overflowmenu-text-active);
|
|
36
|
+
}
|
|
37
|
+
.eds-overflow-menu__item--disabled {
|
|
38
|
+
background: var(--components-menu-overflowmenu-fill-default);
|
|
39
|
+
color: var(--components-menu-overflowmenu-text-disabled);
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
.eds-overflow-menu__item svg {
|
|
43
|
+
margin-right: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
/* DO NOT CHANGE!*/
|
|
46
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
47
|
+
.eds-breadcrumb {
|
|
48
|
+
list-style: none;
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.eds-breadcrumb__item {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
color: var(--components-menu-breadcrumb-standard-text);
|
|
56
|
+
}
|
|
57
|
+
.eds-contrast .eds-breadcrumb__item {
|
|
58
|
+
color: var(--components-menu-breadcrumb-contrast-text);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.eds-breadcrumb__separator {
|
|
62
|
+
margin: 0 0.25rem 0 0.25rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.eds-breadcrumb__link {
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
color: var(--components-menu-breadcrumb-standard-text);
|
|
68
|
+
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-standard-text) 0%, var(--components-menu-breadcrumb-standard-text) 100%);
|
|
69
|
+
background-repeat: no-repeat;
|
|
70
|
+
background-size: 100% 0.125rem;
|
|
71
|
+
background-position: 0 100%;
|
|
72
|
+
}
|
|
73
|
+
.eds-contrast .eds-breadcrumb__link {
|
|
74
|
+
color: var(--components-menu-breadcrumb-contrast-text);
|
|
75
|
+
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-contrast-text) 0%, var(--components-menu-breadcrumb-contrast-text) 100%);
|
|
76
|
+
}
|
|
77
|
+
.eds-breadcrumb__link:hover {
|
|
78
|
+
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
79
|
+
}
|
|
80
|
+
.eds-breadcrumb__link:focus {
|
|
81
|
+
outline: 2px solid #181c56;
|
|
82
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
83
|
+
outline-offset: 0.125rem;
|
|
84
|
+
}
|
|
85
|
+
.eds-contrast .eds-breadcrumb__link:focus {
|
|
86
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
87
|
+
}
|
|
88
|
+
@keyframes eds-breadcrumb-underline {
|
|
89
|
+
from {
|
|
90
|
+
background-size: 0% 0.125rem;
|
|
91
|
+
}
|
|
92
|
+
to {
|
|
93
|
+
background-size: 100% 0.125rem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.eds-breadcrumb__link--current {
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
}
|
|
99
|
+
/* DO NOT CHANGE!*/
|
|
100
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
101
|
.eds-side-navigation,
|
|
4
102
|
.eds-side-navigation-group {
|
|
5
103
|
color: var(--components-menu-sidenavigation-standard-text);
|
|
@@ -253,104 +351,6 @@
|
|
|
253
351
|
}
|
|
254
352
|
/* DO NOT CHANGE!*/
|
|
255
353
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
256
|
-
.eds-breadcrumb {
|
|
257
|
-
list-style: none;
|
|
258
|
-
margin: 0;
|
|
259
|
-
padding: 0;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.eds-breadcrumb__item {
|
|
263
|
-
display: inline-block;
|
|
264
|
-
color: var(--components-menu-breadcrumb-standard-text);
|
|
265
|
-
}
|
|
266
|
-
.eds-contrast .eds-breadcrumb__item {
|
|
267
|
-
color: var(--components-menu-breadcrumb-contrast-text);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.eds-breadcrumb__separator {
|
|
271
|
-
margin: 0 0.25rem 0 0.25rem;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.eds-breadcrumb__link {
|
|
275
|
-
text-decoration: none;
|
|
276
|
-
color: var(--components-menu-breadcrumb-standard-text);
|
|
277
|
-
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-standard-text) 0%, var(--components-menu-breadcrumb-standard-text) 100%);
|
|
278
|
-
background-repeat: no-repeat;
|
|
279
|
-
background-size: 100% 0.125rem;
|
|
280
|
-
background-position: 0 100%;
|
|
281
|
-
}
|
|
282
|
-
.eds-contrast .eds-breadcrumb__link {
|
|
283
|
-
color: var(--components-menu-breadcrumb-contrast-text);
|
|
284
|
-
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-contrast-text) 0%, var(--components-menu-breadcrumb-contrast-text) 100%);
|
|
285
|
-
}
|
|
286
|
-
.eds-breadcrumb__link:hover {
|
|
287
|
-
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
288
|
-
}
|
|
289
|
-
.eds-breadcrumb__link:focus {
|
|
290
|
-
outline: 2px solid #181c56;
|
|
291
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
292
|
-
outline-offset: 0.125rem;
|
|
293
|
-
}
|
|
294
|
-
.eds-contrast .eds-breadcrumb__link:focus {
|
|
295
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
296
|
-
}
|
|
297
|
-
@keyframes eds-breadcrumb-underline {
|
|
298
|
-
from {
|
|
299
|
-
background-size: 0% 0.125rem;
|
|
300
|
-
}
|
|
301
|
-
to {
|
|
302
|
-
background-size: 100% 0.125rem;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
.eds-breadcrumb__link--current {
|
|
306
|
-
font-weight: 600;
|
|
307
|
-
}
|
|
308
|
-
/* DO NOT CHANGE!*/
|
|
309
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
310
|
-
.eds-overflow-menu__menu-list {
|
|
311
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
312
|
-
overflow: hidden;
|
|
313
|
-
border-radius: 0.25rem;
|
|
314
|
-
border: 0.0625rem solid var(--components-menu-overflowmenu-border);
|
|
315
|
-
z-index: 20;
|
|
316
|
-
}
|
|
317
|
-
.eds-overflow-menu__menu-list.eds-contrast {
|
|
318
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
319
|
-
}
|
|
320
|
-
.eds-overflow-menu__item {
|
|
321
|
-
display: block;
|
|
322
|
-
width: 100%;
|
|
323
|
-
-webkit-appearance: none;
|
|
324
|
-
-moz-appearance: none;
|
|
325
|
-
appearance: none;
|
|
326
|
-
padding: 0.75rem;
|
|
327
|
-
border: none;
|
|
328
|
-
outline: none;
|
|
329
|
-
font-size: 1rem;
|
|
330
|
-
line-height: 1.375rem;
|
|
331
|
-
text-align: left;
|
|
332
|
-
text-decoration: none;
|
|
333
|
-
color: var(--components-menu-overflowmenu-text);
|
|
334
|
-
background: var(--components-menu-overflowmenu-fill-default);
|
|
335
|
-
cursor: pointer;
|
|
336
|
-
}
|
|
337
|
-
.eds-overflow-menu__item--highlighted {
|
|
338
|
-
background: var(--components-menu-overflowmenu-fill-hover);
|
|
339
|
-
}
|
|
340
|
-
.eds-overflow-menu__item:active {
|
|
341
|
-
background: var(--components-menu-overflowmenu-fill-active);
|
|
342
|
-
color: var(--components-menu-overflowmenu-text-active);
|
|
343
|
-
}
|
|
344
|
-
.eds-overflow-menu__item--disabled {
|
|
345
|
-
background: var(--components-menu-overflowmenu-fill-default);
|
|
346
|
-
color: var(--components-menu-overflowmenu-text-disabled);
|
|
347
|
-
cursor: not-allowed;
|
|
348
|
-
}
|
|
349
|
-
.eds-overflow-menu__item svg {
|
|
350
|
-
margin-right: 0.75rem;
|
|
351
|
-
}
|
|
352
|
-
/* DO NOT CHANGE!*/
|
|
353
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
354
354
|
.eds-pagination {
|
|
355
355
|
align-items: center;
|
|
356
356
|
display: flex;
|
|
@@ -653,6 +653,62 @@
|
|
|
653
653
|
}
|
|
654
654
|
/* DO NOT CHANGE!*/
|
|
655
655
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
656
|
+
.eds-top-navigation-item {
|
|
657
|
+
--show-active-line: 0;
|
|
658
|
+
display: inline-block;
|
|
659
|
+
cursor: pointer;
|
|
660
|
+
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
661
|
+
text-decoration: none;
|
|
662
|
+
position: relative;
|
|
663
|
+
padding: 1rem;
|
|
664
|
+
min-width: 5rem;
|
|
665
|
+
width: -moz-fit-content;
|
|
666
|
+
width: fit-content;
|
|
667
|
+
text-align: center;
|
|
668
|
+
font-family: inherit;
|
|
669
|
+
font-size: 1rem;
|
|
670
|
+
font-weight: 600;
|
|
671
|
+
}
|
|
672
|
+
.eds-top-navigation-item::after {
|
|
673
|
+
content: "";
|
|
674
|
+
display: block;
|
|
675
|
+
bottom: 1rem;
|
|
676
|
+
height: 0.1875rem;
|
|
677
|
+
width: 0;
|
|
678
|
+
margin: 0 auto;
|
|
679
|
+
opacity: var(--show-active-line);
|
|
680
|
+
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
681
|
+
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
682
|
+
}
|
|
683
|
+
.eds-contrast .eds-top-navigation-item {
|
|
684
|
+
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
685
|
+
}
|
|
686
|
+
.eds-top-navigation-item:focus {
|
|
687
|
+
outline: 2px solid #181c56;
|
|
688
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
689
|
+
outline-offset: 0.125rem;
|
|
690
|
+
}
|
|
691
|
+
.eds-contrast .eds-top-navigation-item:focus {
|
|
692
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
693
|
+
}
|
|
694
|
+
.eds-top-navigation-item:hover {
|
|
695
|
+
--show-active-line: 1;
|
|
696
|
+
}
|
|
697
|
+
.eds-top-navigation-item:hover::after {
|
|
698
|
+
width: 2rem;
|
|
699
|
+
}
|
|
700
|
+
.eds-top-navigation-item--active {
|
|
701
|
+
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
702
|
+
--show-active-line: 1;
|
|
703
|
+
}
|
|
704
|
+
.eds-top-navigation-item--active::after {
|
|
705
|
+
width: 2rem;
|
|
706
|
+
}
|
|
707
|
+
.eds-contrast .eds-top-navigation-item--active {
|
|
708
|
+
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
709
|
+
}
|
|
710
|
+
/* DO NOT CHANGE!*/
|
|
711
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
656
712
|
/* DO NOT CHANGE!*/
|
|
657
713
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
658
714
|
/* DO NOT CHANGE!*/
|
|
@@ -991,59 +1047,3 @@
|
|
|
991
1047
|
--eds-menu: 1;
|
|
992
1048
|
--reach-menu-button: 1;
|
|
993
1049
|
}
|
|
994
|
-
/* DO NOT CHANGE!*/
|
|
995
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
996
|
-
.eds-top-navigation-item {
|
|
997
|
-
--show-active-line: 0;
|
|
998
|
-
display: inline-block;
|
|
999
|
-
cursor: pointer;
|
|
1000
|
-
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
1001
|
-
text-decoration: none;
|
|
1002
|
-
position: relative;
|
|
1003
|
-
padding: 1rem;
|
|
1004
|
-
min-width: 5rem;
|
|
1005
|
-
width: -moz-fit-content;
|
|
1006
|
-
width: fit-content;
|
|
1007
|
-
text-align: center;
|
|
1008
|
-
font-family: inherit;
|
|
1009
|
-
font-size: 1rem;
|
|
1010
|
-
font-weight: 600;
|
|
1011
|
-
}
|
|
1012
|
-
.eds-top-navigation-item::after {
|
|
1013
|
-
content: "";
|
|
1014
|
-
display: block;
|
|
1015
|
-
bottom: 1rem;
|
|
1016
|
-
height: 0.1875rem;
|
|
1017
|
-
width: 0;
|
|
1018
|
-
margin: 0 auto;
|
|
1019
|
-
opacity: var(--show-active-line);
|
|
1020
|
-
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
1021
|
-
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
1022
|
-
}
|
|
1023
|
-
.eds-contrast .eds-top-navigation-item {
|
|
1024
|
-
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
1025
|
-
}
|
|
1026
|
-
.eds-top-navigation-item:focus {
|
|
1027
|
-
outline: 2px solid #181c56;
|
|
1028
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
1029
|
-
outline-offset: 0.125rem;
|
|
1030
|
-
}
|
|
1031
|
-
.eds-contrast .eds-top-navigation-item:focus {
|
|
1032
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
1033
|
-
}
|
|
1034
|
-
.eds-top-navigation-item:hover {
|
|
1035
|
-
--show-active-line: 1;
|
|
1036
|
-
}
|
|
1037
|
-
.eds-top-navigation-item:hover::after {
|
|
1038
|
-
width: 2rem;
|
|
1039
|
-
}
|
|
1040
|
-
.eds-top-navigation-item--active {
|
|
1041
|
-
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
1042
|
-
--show-active-line: 1;
|
|
1043
|
-
}
|
|
1044
|
-
.eds-top-navigation-item--active::after {
|
|
1045
|
-
width: 2rem;
|
|
1046
|
-
}
|
|
1047
|
-
.eds-contrast .eds-top-navigation-item--active {
|
|
1048
|
-
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
1049
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@entur/icons": "^7.5.0",
|
|
34
34
|
"@entur/layout": "^2.3.20",
|
|
35
35
|
"@entur/tokens": "^3.17.3",
|
|
36
|
-
"@entur/tooltip": "^5.1.
|
|
36
|
+
"@entur/tooltip": "^5.1.4",
|
|
37
37
|
"@entur/typography": "^1.8.49",
|
|
38
38
|
"@entur/utils": "^0.12.1",
|
|
39
39
|
"@floating-ui/react": "^0.26.23",
|
|
40
40
|
"classnames": "^2.3.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "5c9836f2bcab799e31cc52b6fe72c6e198947a71"
|
|
43
43
|
}
|