@entur/menu 4.0.2 → 4.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/CHANGELOG.md +20 -0
- package/dist/BreadcrumbItem.d.ts +1 -3
- package/dist/TopNavigationItem.d.ts +1 -3
- package/dist/menu.cjs.development.js +125 -109
- 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 +47 -33
- package/dist/menu.esm.js.map +1 -1
- package/dist/styles.css +216 -218
- package/package.json +13 -13
package/dist/styles.css
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
.eds-breadcrumb__link:focus {
|
|
35
35
|
outline: none;
|
|
36
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.
|
|
36
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
37
37
|
outline-offset: 0.125rem;
|
|
38
38
|
}
|
|
39
39
|
@keyframes eds-breadcrumb-underline {
|
|
@@ -48,51 +48,116 @@
|
|
|
48
48
|
font-weight: 600;
|
|
49
49
|
}/* DO NOT CHANGE!*/
|
|
50
50
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
51
|
-
.eds-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
.eds-stepper {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
}
|
|
55
|
+
.eds-stepper__item__container {
|
|
54
56
|
cursor: pointer;
|
|
55
|
-
color: inherit;
|
|
56
|
-
text-decoration: none;
|
|
57
|
-
position: relative;
|
|
58
|
-
padding: 1rem;
|
|
59
|
-
min-width: 5rem;
|
|
60
|
-
width: fit-content;
|
|
61
|
-
text-align: center;
|
|
62
57
|
font-family: inherit;
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
text-transform: none;
|
|
59
|
+
appearance: none;
|
|
60
|
+
background: none;
|
|
61
|
+
border: none;
|
|
62
|
+
margin: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
align-items: inherit;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-grow: 1;
|
|
67
|
+
flex-basis: 0;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
margin-left: 0.25rem;
|
|
65
70
|
}
|
|
66
|
-
.eds-
|
|
67
|
-
|
|
68
|
-
display: block;
|
|
69
|
-
bottom: 1rem;
|
|
70
|
-
height: 0.1875rem;
|
|
71
|
-
width: 0;
|
|
72
|
-
margin: 0 auto;
|
|
73
|
-
opacity: var(--show-active-line);
|
|
74
|
-
background: #ff5959;
|
|
75
|
-
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
71
|
+
.eds-stepper__item__container--non-interactive {
|
|
72
|
+
cursor: default;
|
|
76
73
|
}
|
|
77
|
-
.eds-
|
|
74
|
+
.eds-stepper__item__container:focus {
|
|
78
75
|
outline-offset: 0.125rem;
|
|
79
76
|
outline: none;
|
|
80
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.
|
|
77
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
81
78
|
}
|
|
82
|
-
.eds-contrast .eds-
|
|
83
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.
|
|
79
|
+
.eds-contrast .eds-stepper__item__container:focus {
|
|
80
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
84
81
|
}
|
|
85
|
-
.eds-
|
|
86
|
-
|
|
82
|
+
.eds-stepper__item__container:first-child {
|
|
83
|
+
margin-left: 0;
|
|
87
84
|
}
|
|
88
|
-
.eds-
|
|
89
|
-
|
|
85
|
+
.eds-stepper__item__label {
|
|
86
|
+
cursor: inherit;
|
|
87
|
+
flex-grow: 1;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
text-align: center;
|
|
90
|
+
font-size: 0.875rem;
|
|
91
|
+
padding: 0.25rem 1rem;
|
|
90
92
|
}
|
|
91
|
-
.eds-
|
|
92
|
-
|
|
93
|
+
.eds-stepper__item__label--active {
|
|
94
|
+
font-weight: 600;
|
|
93
95
|
}
|
|
94
|
-
.eds-
|
|
95
|
-
|
|
96
|
+
.eds-stepper__item__label.eds-stepper__item__label--active {
|
|
97
|
+
color: #181c56;
|
|
98
|
+
}
|
|
99
|
+
.eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
|
|
100
|
+
color: #ffffff;
|
|
101
|
+
}
|
|
102
|
+
.eds-stepper__item__label.eds-stepper__item__label--has-been {
|
|
103
|
+
color: #181c56;
|
|
104
|
+
}
|
|
105
|
+
.eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
|
|
106
|
+
color: #ffffff;
|
|
107
|
+
}
|
|
108
|
+
.eds-stepper__item__square {
|
|
109
|
+
height: 0.5rem;
|
|
110
|
+
}
|
|
111
|
+
.eds-stepper__item__square--active {
|
|
112
|
+
color: inherit;
|
|
113
|
+
background: #e9e9e9;
|
|
114
|
+
position: relative;
|
|
115
|
+
}
|
|
116
|
+
.eds-stepper__item__square--active:before {
|
|
117
|
+
background: #181c56;
|
|
118
|
+
content: "";
|
|
119
|
+
position: absolute;
|
|
120
|
+
right: calc(50% - 0.2rem);
|
|
121
|
+
border-radius: 0.0625rem;
|
|
122
|
+
bottom: 0.0625rem;
|
|
123
|
+
width: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
124
|
+
height: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
125
|
+
transform: rotate(45deg);
|
|
126
|
+
}
|
|
127
|
+
.eds-contrast .eds-stepper__item__square--active:before {
|
|
128
|
+
border-left-color: #aeb7e2;
|
|
129
|
+
border-left-color: #aeb7e2;
|
|
130
|
+
}
|
|
131
|
+
.eds-stepper__item__square--active:after {
|
|
132
|
+
content: "";
|
|
133
|
+
position: absolute;
|
|
134
|
+
left: 0;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
width: 50%;
|
|
137
|
+
height: 0.5rem;
|
|
138
|
+
background: #181c56;
|
|
139
|
+
}
|
|
140
|
+
.eds-contrast .eds-stepper__item__square--active:after {
|
|
141
|
+
background: #aeb7e2;
|
|
142
|
+
}
|
|
143
|
+
.eds-contrast .eds-stepper__item__square--active {
|
|
144
|
+
background: #aeb7e2;
|
|
145
|
+
background: #393d79;
|
|
146
|
+
}
|
|
147
|
+
.eds-stepper__item__square--inactive {
|
|
148
|
+
color: #656782;
|
|
149
|
+
background: #e9e9e9;
|
|
150
|
+
}
|
|
151
|
+
.eds-contrast .eds-stepper__item__square--inactive {
|
|
152
|
+
color: #aeb7e2;
|
|
153
|
+
background: #393d79;
|
|
154
|
+
}
|
|
155
|
+
.eds-stepper__item__square--has-been {
|
|
156
|
+
color: inherit;
|
|
157
|
+
background: #181c56;
|
|
158
|
+
}
|
|
159
|
+
.eds-contrast .eds-stepper__item__square--has-been {
|
|
160
|
+
background: #aeb7e2;
|
|
96
161
|
}/* DO NOT CHANGE!*/
|
|
97
162
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
98
163
|
/* DO NOT CHANGE!*/
|
|
@@ -167,11 +232,10 @@
|
|
|
167
232
|
color: #ffffff;
|
|
168
233
|
}
|
|
169
234
|
.eds-side-navigation__collapse-button:focus {
|
|
170
|
-
outline:
|
|
171
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.3125rem #181c56;
|
|
235
|
+
outline: 2px solid #181c56;
|
|
172
236
|
}
|
|
173
237
|
.eds-contrast .eds-side-navigation__collapse-button:focus {
|
|
174
|
-
|
|
238
|
+
outline: 2px solid #ffffff;
|
|
175
239
|
}
|
|
176
240
|
@media screen and (min-width: 50rem) {
|
|
177
241
|
.eds-side-navigation {
|
|
@@ -246,14 +310,13 @@
|
|
|
246
310
|
background-color: #393d79;
|
|
247
311
|
}
|
|
248
312
|
.eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
|
|
249
|
-
outline:
|
|
250
|
-
|
|
251
|
-
outline-offset: 0.125rem;
|
|
313
|
+
outline: 2px solid #181c56;
|
|
314
|
+
outline-offset: -2px;
|
|
252
315
|
background: #ebebf1;
|
|
253
316
|
}
|
|
254
317
|
.eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
|
|
255
318
|
background-color: #54568c;
|
|
256
|
-
|
|
319
|
+
outline: 2px solid #ffffff;
|
|
257
320
|
}
|
|
258
321
|
|
|
259
322
|
.eds-side-navigation-group {
|
|
@@ -306,124 +369,140 @@
|
|
|
306
369
|
padding-left: 2rem;
|
|
307
370
|
}
|
|
308
371
|
.eds-side-navigation-group__trigger:focus {
|
|
309
|
-
outline:
|
|
310
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.3125rem #181c56;
|
|
311
|
-
outline-offset: 0.125rem;
|
|
372
|
+
outline: 2px solid #181c56;
|
|
312
373
|
}
|
|
313
374
|
.eds-contrast .eds-side-navigation-group__trigger:focus {
|
|
314
|
-
|
|
375
|
+
outline: 2px solid #ffffff;
|
|
315
376
|
}/* DO NOT CHANGE!*/
|
|
316
377
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
317
|
-
.eds-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
.eds-stepper__item__container {
|
|
378
|
+
.eds-top-navigation-item {
|
|
379
|
+
--show-active-line: 0;
|
|
380
|
+
display: inline-block;
|
|
322
381
|
cursor: pointer;
|
|
382
|
+
color: inherit;
|
|
383
|
+
text-decoration: none;
|
|
384
|
+
position: relative;
|
|
385
|
+
padding: 1rem;
|
|
386
|
+
min-width: 5rem;
|
|
387
|
+
width: fit-content;
|
|
388
|
+
text-align: center;
|
|
323
389
|
font-family: inherit;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
background: none;
|
|
327
|
-
border: none;
|
|
328
|
-
margin: 0;
|
|
329
|
-
padding: 0;
|
|
330
|
-
align-items: inherit;
|
|
331
|
-
display: flex;
|
|
332
|
-
flex-grow: 1;
|
|
333
|
-
flex-basis: 0;
|
|
334
|
-
flex-direction: column;
|
|
335
|
-
margin-left: 0.25rem;
|
|
390
|
+
font-size: 1rem;
|
|
391
|
+
font-weight: 600;
|
|
336
392
|
}
|
|
337
|
-
.eds-
|
|
338
|
-
|
|
393
|
+
.eds-top-navigation-item::after {
|
|
394
|
+
content: "";
|
|
395
|
+
display: block;
|
|
396
|
+
bottom: 1rem;
|
|
397
|
+
height: 0.1875rem;
|
|
398
|
+
width: 0;
|
|
399
|
+
margin: 0 auto;
|
|
400
|
+
opacity: var(--show-active-line);
|
|
401
|
+
background: #ff5959;
|
|
402
|
+
transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
|
|
339
403
|
}
|
|
340
|
-
.eds-
|
|
404
|
+
.eds-top-navigation-item:focus {
|
|
341
405
|
outline-offset: 0.125rem;
|
|
342
406
|
outline: none;
|
|
343
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.
|
|
407
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
344
408
|
}
|
|
345
|
-
.eds-contrast .eds-
|
|
346
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.
|
|
347
|
-
}
|
|
348
|
-
.eds-stepper__item__container:first-child {
|
|
349
|
-
margin-left: 0;
|
|
409
|
+
.eds-contrast .eds-top-navigation-item:focus {
|
|
410
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
350
411
|
}
|
|
351
|
-
.eds-
|
|
352
|
-
|
|
353
|
-
flex-grow: 1;
|
|
354
|
-
flex-direction: column;
|
|
355
|
-
text-align: center;
|
|
356
|
-
font-size: 0.875rem;
|
|
357
|
-
padding: 0.25rem 1rem;
|
|
412
|
+
.eds-top-navigation-item:hover {
|
|
413
|
+
--show-active-line: 1;
|
|
358
414
|
}
|
|
359
|
-
.eds-
|
|
360
|
-
|
|
415
|
+
.eds-top-navigation-item:hover::after {
|
|
416
|
+
width: 2rem;
|
|
361
417
|
}
|
|
362
|
-
.eds-
|
|
363
|
-
|
|
418
|
+
.eds-top-navigation-item--active {
|
|
419
|
+
--show-active-line: 1;
|
|
364
420
|
}
|
|
365
|
-
.eds-
|
|
366
|
-
|
|
421
|
+
.eds-top-navigation-item--active::after {
|
|
422
|
+
width: 2rem;
|
|
423
|
+
}/* DO NOT CHANGE!*/
|
|
424
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
425
|
+
.eds-overflow-menu__item {
|
|
426
|
+
appearance: none;
|
|
427
|
+
border: none;
|
|
428
|
+
font-size: 0.875rem;
|
|
429
|
+
font-family: inherit;
|
|
430
|
+
color: var(--primary-text-color);
|
|
431
|
+
background: #f8f8f8;
|
|
432
|
+
display: block;
|
|
433
|
+
height: 3rem;
|
|
434
|
+
cursor: pointer;
|
|
435
|
+
width: 100%;
|
|
436
|
+
line-height: 1.375rem;
|
|
437
|
+
text-align: left;
|
|
438
|
+
padding: 0.75rem 1rem;
|
|
439
|
+
opacity: 1;
|
|
367
440
|
}
|
|
368
|
-
.eds-
|
|
441
|
+
.eds-contrast .eds-overflow-menu__item {
|
|
369
442
|
color: #181c56;
|
|
370
443
|
}
|
|
371
|
-
.eds-
|
|
372
|
-
|
|
444
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
445
|
+
background: #e9e9e9;
|
|
446
|
+
color: #949494;
|
|
373
447
|
}
|
|
374
|
-
.eds-
|
|
375
|
-
|
|
448
|
+
.eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
449
|
+
background: #e9e9e9;
|
|
450
|
+
color: #949494;
|
|
376
451
|
}
|
|
377
|
-
.eds-
|
|
378
|
-
|
|
452
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
|
|
453
|
+
cursor: not-allowed;
|
|
379
454
|
background: #e9e9e9;
|
|
380
|
-
|
|
455
|
+
color: #949494;
|
|
381
456
|
}
|
|
382
|
-
.eds-
|
|
383
|
-
|
|
384
|
-
content: "";
|
|
385
|
-
position: absolute;
|
|
386
|
-
right: calc(50% - 0.2rem);
|
|
387
|
-
border-radius: 0.0625rem;
|
|
388
|
-
bottom: 0.0625rem;
|
|
389
|
-
width: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
390
|
-
height: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
391
|
-
transform: rotate(45deg);
|
|
457
|
+
.eds-overflow-menu__item .eds-icon {
|
|
458
|
+
margin-right: 0.75rem;
|
|
392
459
|
}
|
|
393
|
-
.eds-
|
|
394
|
-
|
|
395
|
-
border-left-color: #aeb7e2;
|
|
460
|
+
.eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
|
|
461
|
+
background: #d1d4e3;
|
|
396
462
|
}
|
|
397
|
-
.eds-
|
|
398
|
-
|
|
399
|
-
position: absolute;
|
|
400
|
-
left: 0;
|
|
401
|
-
bottom: 0;
|
|
402
|
-
width: 50%;
|
|
403
|
-
height: 0.5rem;
|
|
404
|
-
background: #181c56;
|
|
463
|
+
.eds-overflow-menu__item:focus {
|
|
464
|
+
outline: none;
|
|
405
465
|
}
|
|
406
|
-
|
|
407
|
-
|
|
466
|
+
|
|
467
|
+
.eds-overflow-menu__item + .eds-overflow-menu__item {
|
|
468
|
+
border-top: 0.0625rem solid #e9e9e9;
|
|
408
469
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
470
|
+
|
|
471
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list] {
|
|
472
|
+
border: 0.0625rem solid #e9e9e9;
|
|
473
|
+
border-radius: 0.25rem;
|
|
474
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
475
|
+
overflow: hidden;
|
|
412
476
|
}
|
|
413
|
-
.eds-
|
|
414
|
-
|
|
415
|
-
background: #e9e9e9;
|
|
477
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
|
|
478
|
+
outline: none;
|
|
416
479
|
}
|
|
417
|
-
.eds-
|
|
418
|
-
|
|
419
|
-
background: #393d79;
|
|
480
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
|
|
481
|
+
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
420
482
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
483
|
+
|
|
484
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list],
|
|
485
|
+
.eds-overflow-menu__menu-list[data-reach-menu-items] {
|
|
486
|
+
animation: slide-in 0.2s ease-in-out;
|
|
424
487
|
}
|
|
425
|
-
|
|
426
|
-
|
|
488
|
+
|
|
489
|
+
@keyframes slide-in {
|
|
490
|
+
0% {
|
|
491
|
+
opacity: 0;
|
|
492
|
+
transform: translateY(0.5rem);
|
|
493
|
+
}
|
|
494
|
+
100% {
|
|
495
|
+
opacity: 1;
|
|
496
|
+
transform: translateY(0);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
[data-reach-menu-popover] {
|
|
500
|
+
position: absolute;
|
|
501
|
+
z-index: 30;
|
|
502
|
+
}
|
|
503
|
+
[data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
|
|
504
|
+
position: relative;
|
|
505
|
+
right: calc(100% - 2rem);
|
|
427
506
|
}/* DO NOT CHANGE!*/
|
|
428
507
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
429
508
|
.eds-pagination {
|
|
@@ -467,9 +546,8 @@
|
|
|
467
546
|
border-color: currentColor;
|
|
468
547
|
}
|
|
469
548
|
.eds-pagination-menu__menu-button:focus {
|
|
470
|
-
outline-offset: 0.125rem;
|
|
471
549
|
outline: none;
|
|
472
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.
|
|
550
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
473
551
|
}
|
|
474
552
|
.eds-pagination-menu__menu-list {
|
|
475
553
|
width: 3.5rem;
|
|
@@ -480,6 +558,7 @@
|
|
|
480
558
|
appearance: none;
|
|
481
559
|
background: transparent;
|
|
482
560
|
border: 0.0625rem solid #d1d3d3;
|
|
561
|
+
border-color: #d1d3d3;
|
|
483
562
|
border-radius: 0.25rem;
|
|
484
563
|
color: inherit;
|
|
485
564
|
cursor: pointer;
|
|
@@ -490,7 +569,7 @@
|
|
|
490
569
|
justify-content: center;
|
|
491
570
|
margin: 0 0.125rem;
|
|
492
571
|
padding: 0 0.25rem;
|
|
493
|
-
transition:
|
|
572
|
+
transition: background 0.1s ease-out, border-color 0.1s ease-out;
|
|
494
573
|
user-select: none;
|
|
495
574
|
min-width: 2rem;
|
|
496
575
|
}
|
|
@@ -517,9 +596,11 @@
|
|
|
517
596
|
border-color: #393d79;
|
|
518
597
|
}
|
|
519
598
|
.eds-pagination__page:focus {
|
|
520
|
-
outline-offset: 0.125rem;
|
|
521
599
|
outline: none;
|
|
522
|
-
|
|
600
|
+
border-color: #181c56;
|
|
601
|
+
}
|
|
602
|
+
.eds-contrast .eds-pagination__page:focus {
|
|
603
|
+
border-color: #ffffff;
|
|
523
604
|
}
|
|
524
605
|
|
|
525
606
|
.eds-pagination__ellipsis {
|
|
@@ -560,87 +641,4 @@
|
|
|
560
641
|
.eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
|
|
561
642
|
appearance: none;
|
|
562
643
|
margin: 0;
|
|
563
|
-
}/* DO NOT CHANGE!*/
|
|
564
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
565
|
-
.eds-overflow-menu__item {
|
|
566
|
-
appearance: none;
|
|
567
|
-
border: none;
|
|
568
|
-
font-size: 0.875rem;
|
|
569
|
-
font-family: inherit;
|
|
570
|
-
color: var(--primary-text-color);
|
|
571
|
-
background: #f8f8f8;
|
|
572
|
-
display: block;
|
|
573
|
-
height: 3rem;
|
|
574
|
-
cursor: pointer;
|
|
575
|
-
width: 100%;
|
|
576
|
-
line-height: 1.375rem;
|
|
577
|
-
text-align: left;
|
|
578
|
-
padding: 0.75rem 1rem;
|
|
579
|
-
opacity: 1;
|
|
580
|
-
}
|
|
581
|
-
.eds-contrast .eds-overflow-menu__item {
|
|
582
|
-
color: #181c56;
|
|
583
|
-
}
|
|
584
|
-
.eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
585
|
-
background: #e9e9e9;
|
|
586
|
-
color: #949494;
|
|
587
|
-
}
|
|
588
|
-
.eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
589
|
-
background: #e9e9e9;
|
|
590
|
-
color: #949494;
|
|
591
|
-
}
|
|
592
|
-
.eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
|
|
593
|
-
cursor: not-allowed;
|
|
594
|
-
background: #e9e9e9;
|
|
595
|
-
color: #949494;
|
|
596
|
-
}
|
|
597
|
-
.eds-overflow-menu__item .eds-icon {
|
|
598
|
-
margin-right: 0.75rem;
|
|
599
|
-
}
|
|
600
|
-
.eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
|
|
601
|
-
background: #d1d4e3;
|
|
602
|
-
}
|
|
603
|
-
.eds-overflow-menu__item:focus {
|
|
604
|
-
outline: none;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
.eds-overflow-menu__item + .eds-overflow-menu__item {
|
|
608
|
-
border-top: 0.0625rem solid #e9e9e9;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list] {
|
|
612
|
-
border: 0.0625rem solid #e9e9e9;
|
|
613
|
-
border-radius: 0.25rem;
|
|
614
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
615
|
-
overflow: hidden;
|
|
616
|
-
}
|
|
617
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
|
|
618
|
-
outline: none;
|
|
619
|
-
}
|
|
620
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
|
|
621
|
-
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list],
|
|
625
|
-
.eds-overflow-menu__menu-list[data-reach-menu-items] {
|
|
626
|
-
animation: slide-in 0.2s ease-in-out;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
@keyframes slide-in {
|
|
630
|
-
0% {
|
|
631
|
-
opacity: 0;
|
|
632
|
-
transform: translateY(0.5rem);
|
|
633
|
-
}
|
|
634
|
-
100% {
|
|
635
|
-
opacity: 1;
|
|
636
|
-
transform: translateY(0);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
[data-reach-menu-popover] {
|
|
640
|
-
position: absolute;
|
|
641
|
-
z-index: 30;
|
|
642
|
-
}
|
|
643
|
-
[data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
|
|
644
|
-
position: relative;
|
|
645
|
-
right: calc(100% - 2rem);
|
|
646
644
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "
|
|
21
|
-
"start": "
|
|
22
|
-
"test": "
|
|
23
|
-
"lint": "
|
|
20
|
+
"build": "dts build",
|
|
21
|
+
"start": "dts watch --noClean",
|
|
22
|
+
"test": "dts test --env=jsdom",
|
|
23
|
+
"lint": "dts lint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@entur/button": "^2.
|
|
27
|
-
"@entur/expand": "^3.3.
|
|
28
|
-
"@entur/icons": "^3.
|
|
29
|
-
"@entur/layout": "^2.1.
|
|
30
|
-
"@entur/tokens": "^3.
|
|
31
|
-
"@entur/typography": "^1.6.
|
|
32
|
-
"@entur/utils": "^0.4.
|
|
26
|
+
"@entur/button": "^2.8.0",
|
|
27
|
+
"@entur/expand": "^3.3.7",
|
|
28
|
+
"@entur/icons": "^3.4.1",
|
|
29
|
+
"@entur/layout": "^2.1.4",
|
|
30
|
+
"@entur/tokens": "^3.3.1",
|
|
31
|
+
"@entur/typography": "^1.6.11",
|
|
32
|
+
"@entur/utils": "^0.4.3",
|
|
33
33
|
"@reach/menu-button": "^0.16.1",
|
|
34
34
|
"classnames": "^2.3.1"
|
|
35
35
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"react": ">=16.8.0",
|
|
38
38
|
"react-dom": ">=16.8.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "61e643371cfc5653c93160b7c220152e5b2bafeb"
|
|
41
41
|
}
|