@entur/menu 5.1.0-beta.0 → 5.1.0
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 +157 -157
- package/package.json +7 -7
package/dist/styles.css
CHANGED
|
@@ -1,105 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-breadcrumb {
|
|
4
|
-
list-style: none;
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.eds-breadcrumb__item {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
color: var(--components-menu-breadcrumb-standard-text);
|
|
12
|
-
}
|
|
13
|
-
.eds-contrast .eds-breadcrumb__item {
|
|
14
|
-
color: var(--components-menu-breadcrumb-contrast-text);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.eds-breadcrumb__separator {
|
|
18
|
-
margin: 0 0.25rem 0 0.25rem;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.eds-breadcrumb__link {
|
|
22
|
-
-webkit-text-decoration: none;
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
color: var(--components-menu-breadcrumb-standard-text);
|
|
25
|
-
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-standard-text) 0%, var(--components-menu-breadcrumb-standard-text) 100%);
|
|
26
|
-
background-repeat: no-repeat;
|
|
27
|
-
background-size: 100% 0.125rem;
|
|
28
|
-
background-position: 0 100%;
|
|
29
|
-
}
|
|
30
|
-
.eds-contrast .eds-breadcrumb__link {
|
|
31
|
-
color: var(--components-menu-breadcrumb-contrast-text);
|
|
32
|
-
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-contrast-text) 0%, var(--components-menu-breadcrumb-contrast-text) 100%);
|
|
33
|
-
}
|
|
34
|
-
.eds-breadcrumb__link:hover {
|
|
35
|
-
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
36
|
-
}
|
|
37
|
-
.eds-breadcrumb__link:focus-visible {
|
|
38
|
-
outline: 2px solid #181c56;
|
|
39
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
40
|
-
outline-offset: 0.125rem;
|
|
41
|
-
}
|
|
42
|
-
.eds-contrast .eds-breadcrumb__link:focus-visible {
|
|
43
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
44
|
-
}
|
|
45
|
-
@keyframes eds-breadcrumb-underline {
|
|
46
|
-
from {
|
|
47
|
-
background-size: 0% 0.125rem;
|
|
48
|
-
}
|
|
49
|
-
to {
|
|
50
|
-
background-size: 100% 0.125rem;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.eds-breadcrumb__link--current {
|
|
54
|
-
font-weight: 600;
|
|
55
|
-
}
|
|
56
|
-
/* DO NOT CHANGE!*/
|
|
57
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
58
|
-
.eds-overflow-menu__menu-list {
|
|
59
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
border-radius: 0.25rem;
|
|
62
|
-
border: 0.0625rem solid var(--components-menu-overflowmenu-border);
|
|
63
|
-
z-index: 20;
|
|
64
|
-
}
|
|
65
|
-
.eds-overflow-menu__menu-list.eds-contrast {
|
|
66
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
67
|
-
}
|
|
68
|
-
.eds-overflow-menu__item {
|
|
69
|
-
display: block;
|
|
70
|
-
width: 100%;
|
|
71
|
-
-webkit-appearance: none;
|
|
72
|
-
-moz-appearance: none;
|
|
73
|
-
appearance: none;
|
|
74
|
-
padding: 0.75rem;
|
|
75
|
-
border: none;
|
|
76
|
-
outline: none;
|
|
77
|
-
font-size: 1rem;
|
|
78
|
-
line-height: 1.375rem;
|
|
79
|
-
text-align: left;
|
|
80
|
-
-webkit-text-decoration: none;
|
|
81
|
-
text-decoration: none;
|
|
82
|
-
color: var(--components-menu-overflowmenu-text);
|
|
83
|
-
background: var(--components-menu-overflowmenu-fill-default);
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
.eds-overflow-menu__item--highlighted {
|
|
87
|
-
background: var(--components-menu-overflowmenu-fill-hover);
|
|
88
|
-
}
|
|
89
|
-
.eds-overflow-menu__item:active {
|
|
90
|
-
background: var(--components-menu-overflowmenu-fill-active);
|
|
91
|
-
color: var(--components-menu-overflowmenu-text-active);
|
|
92
|
-
}
|
|
93
|
-
.eds-overflow-menu__item--disabled {
|
|
94
|
-
background: var(--components-menu-overflowmenu-fill-default);
|
|
95
|
-
color: var(--components-menu-overflowmenu-text-disabled);
|
|
96
|
-
cursor: not-allowed;
|
|
97
|
-
}
|
|
98
|
-
.eds-overflow-menu__item svg {
|
|
99
|
-
margin-right: 0.75rem;
|
|
100
|
-
}
|
|
101
|
-
/* DO NOT CHANGE!*/
|
|
102
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
103
3
|
.eds-side-navigation,
|
|
104
4
|
.eds-side-navigation-group {
|
|
105
5
|
color: var(--components-menu-sidenavigation-standard-text);
|
|
@@ -330,6 +230,106 @@
|
|
|
330
230
|
}
|
|
331
231
|
/* DO NOT CHANGE!*/
|
|
332
232
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
233
|
+
.eds-breadcrumb {
|
|
234
|
+
list-style: none;
|
|
235
|
+
margin: 0;
|
|
236
|
+
padding: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.eds-breadcrumb__item {
|
|
240
|
+
display: inline-block;
|
|
241
|
+
color: var(--components-menu-breadcrumb-standard-text);
|
|
242
|
+
}
|
|
243
|
+
.eds-contrast .eds-breadcrumb__item {
|
|
244
|
+
color: var(--components-menu-breadcrumb-contrast-text);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.eds-breadcrumb__separator {
|
|
248
|
+
margin: 0 0.25rem 0 0.25rem;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.eds-breadcrumb__link {
|
|
252
|
+
-webkit-text-decoration: none;
|
|
253
|
+
text-decoration: none;
|
|
254
|
+
color: var(--components-menu-breadcrumb-standard-text);
|
|
255
|
+
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-standard-text) 0%, var(--components-menu-breadcrumb-standard-text) 100%);
|
|
256
|
+
background-repeat: no-repeat;
|
|
257
|
+
background-size: 100% 0.125rem;
|
|
258
|
+
background-position: 0 100%;
|
|
259
|
+
}
|
|
260
|
+
.eds-contrast .eds-breadcrumb__link {
|
|
261
|
+
color: var(--components-menu-breadcrumb-contrast-text);
|
|
262
|
+
background-image: linear-gradient(120deg, var(--components-menu-breadcrumb-contrast-text) 0%, var(--components-menu-breadcrumb-contrast-text) 100%);
|
|
263
|
+
}
|
|
264
|
+
.eds-breadcrumb__link:hover {
|
|
265
|
+
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
266
|
+
}
|
|
267
|
+
.eds-breadcrumb__link:focus-visible {
|
|
268
|
+
outline: 2px solid #181c56;
|
|
269
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
270
|
+
outline-offset: 0.125rem;
|
|
271
|
+
}
|
|
272
|
+
.eds-contrast .eds-breadcrumb__link:focus-visible {
|
|
273
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
274
|
+
}
|
|
275
|
+
@keyframes eds-breadcrumb-underline {
|
|
276
|
+
from {
|
|
277
|
+
background-size: 0% 0.125rem;
|
|
278
|
+
}
|
|
279
|
+
to {
|
|
280
|
+
background-size: 100% 0.125rem;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
.eds-breadcrumb__link--current {
|
|
284
|
+
font-weight: 600;
|
|
285
|
+
}
|
|
286
|
+
/* DO NOT CHANGE!*/
|
|
287
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
288
|
+
.eds-overflow-menu__menu-list {
|
|
289
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
border-radius: 0.25rem;
|
|
292
|
+
border: 0.0625rem solid var(--components-menu-overflowmenu-border);
|
|
293
|
+
z-index: 20;
|
|
294
|
+
}
|
|
295
|
+
.eds-overflow-menu__menu-list.eds-contrast {
|
|
296
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
297
|
+
}
|
|
298
|
+
.eds-overflow-menu__item {
|
|
299
|
+
display: block;
|
|
300
|
+
width: 100%;
|
|
301
|
+
-webkit-appearance: none;
|
|
302
|
+
-moz-appearance: none;
|
|
303
|
+
appearance: none;
|
|
304
|
+
padding: 0.75rem;
|
|
305
|
+
border: none;
|
|
306
|
+
outline: none;
|
|
307
|
+
font-size: 1rem;
|
|
308
|
+
line-height: 1.375rem;
|
|
309
|
+
text-align: left;
|
|
310
|
+
-webkit-text-decoration: none;
|
|
311
|
+
text-decoration: none;
|
|
312
|
+
color: var(--components-menu-overflowmenu-text);
|
|
313
|
+
background: var(--components-menu-overflowmenu-fill-default);
|
|
314
|
+
cursor: pointer;
|
|
315
|
+
}
|
|
316
|
+
.eds-overflow-menu__item--highlighted {
|
|
317
|
+
background: var(--components-menu-overflowmenu-fill-hover);
|
|
318
|
+
}
|
|
319
|
+
.eds-overflow-menu__item:active {
|
|
320
|
+
background: var(--components-menu-overflowmenu-fill-active);
|
|
321
|
+
color: var(--components-menu-overflowmenu-text-active);
|
|
322
|
+
}
|
|
323
|
+
.eds-overflow-menu__item--disabled {
|
|
324
|
+
background: var(--components-menu-overflowmenu-fill-default);
|
|
325
|
+
color: var(--components-menu-overflowmenu-text-disabled);
|
|
326
|
+
cursor: not-allowed;
|
|
327
|
+
}
|
|
328
|
+
.eds-overflow-menu__item svg {
|
|
329
|
+
margin-right: 0.75rem;
|
|
330
|
+
}
|
|
331
|
+
/* DO NOT CHANGE!*/
|
|
332
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
333
333
|
.eds-pagination {
|
|
334
334
|
align-items: center;
|
|
335
335
|
display: flex;
|
|
@@ -609,6 +609,63 @@
|
|
|
609
609
|
}
|
|
610
610
|
/* DO NOT CHANGE!*/
|
|
611
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. */
|
|
612
669
|
/* DO NOT CHANGE!*/
|
|
613
670
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
614
671
|
/* DO NOT CHANGE!*/
|
|
@@ -947,60 +1004,3 @@
|
|
|
947
1004
|
--eds-menu: 1;
|
|
948
1005
|
--reach-menu-button: 1;
|
|
949
1006
|
}
|
|
950
|
-
/* DO NOT CHANGE!*/
|
|
951
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
952
|
-
.eds-top-navigation-item {
|
|
953
|
-
--show-active-line: 0;
|
|
954
|
-
display: inline-block;
|
|
955
|
-
cursor: pointer;
|
|
956
|
-
color: var(--components-menu-navigationbar-standard-text-unselected);
|
|
957
|
-
-webkit-text-decoration: none;
|
|
958
|
-
text-decoration: none;
|
|
959
|
-
position: relative;
|
|
960
|
-
padding: 1rem;
|
|
961
|
-
min-width: 5rem;
|
|
962
|
-
width: -moz-fit-content;
|
|
963
|
-
width: fit-content;
|
|
964
|
-
text-align: center;
|
|
965
|
-
font-family: inherit;
|
|
966
|
-
font-size: 1rem;
|
|
967
|
-
font-weight: 600;
|
|
968
|
-
}
|
|
969
|
-
.eds-top-navigation-item::after {
|
|
970
|
-
content: "";
|
|
971
|
-
display: block;
|
|
972
|
-
bottom: 1rem;
|
|
973
|
-
height: 0.1875rem;
|
|
974
|
-
width: 0;
|
|
975
|
-
margin: 0 auto;
|
|
976
|
-
opacity: var(--show-active-line);
|
|
977
|
-
background: var(--components-menu-navigationbar-standard-stroke-selected);
|
|
978
|
-
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
979
|
-
}
|
|
980
|
-
.eds-contrast .eds-top-navigation-item {
|
|
981
|
-
color: var(--components-menu-navigationbar-contrast-text-unselected);
|
|
982
|
-
}
|
|
983
|
-
.eds-top-navigation-item:focus-visible {
|
|
984
|
-
outline: 2px solid #181c56;
|
|
985
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
986
|
-
outline-offset: 0.125rem;
|
|
987
|
-
}
|
|
988
|
-
.eds-contrast .eds-top-navigation-item:focus-visible {
|
|
989
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
990
|
-
}
|
|
991
|
-
.eds-top-navigation-item:hover {
|
|
992
|
-
--show-active-line: 1;
|
|
993
|
-
}
|
|
994
|
-
.eds-top-navigation-item:hover::after {
|
|
995
|
-
width: 2rem;
|
|
996
|
-
}
|
|
997
|
-
.eds-top-navigation-item--active {
|
|
998
|
-
color: var(--components-menu-navigationbar-standard-text-selected);
|
|
999
|
-
--show-active-line: 1;
|
|
1000
|
-
}
|
|
1001
|
-
.eds-top-navigation-item--active::after {
|
|
1002
|
-
width: 2rem;
|
|
1003
|
-
}
|
|
1004
|
-
.eds-contrast .eds-top-navigation-item--active {
|
|
1005
|
-
color: var(--components-menu-navigationbar-contrast-text-selected);
|
|
1006
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "5.1.0
|
|
3
|
+
"version": "5.1.0",
|
|
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.95",
|
|
31
|
-
"@entur/button": "^3.3.0
|
|
32
|
-
"@entur/expand": "^3.6.0
|
|
31
|
+
"@entur/button": "^3.3.0",
|
|
32
|
+
"@entur/expand": "^3.6.0",
|
|
33
33
|
"@entur/icons": "^7.6.0",
|
|
34
|
-
"@entur/layout": "^2.4.0
|
|
34
|
+
"@entur/layout": "^2.4.0",
|
|
35
35
|
"@entur/tokens": "^3.17.5",
|
|
36
|
-
"@entur/tooltip": "^5.2.0
|
|
37
|
-
"@entur/typography": "^1.9.0
|
|
36
|
+
"@entur/tooltip": "^5.2.0",
|
|
37
|
+
"@entur/typography": "^1.9.0",
|
|
38
38
|
"@entur/utils": "^0.12.2",
|
|
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": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
|
|
46
46
|
}
|