@entur/menu 4.0.6 → 4.0.7
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 +4 -0
- package/dist/styles.css +174 -174
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.7](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.0.6...@entur/menu@4.0.7) (2022-03-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/menu
|
|
9
|
+
|
|
6
10
|
## [4.0.6](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.0.5...@entur/menu@4.0.6) (2022-02-09)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @entur/menu
|
package/dist/styles.css
CHANGED
|
@@ -48,118 +48,6 @@
|
|
|
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-stepper {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: row;
|
|
54
|
-
}
|
|
55
|
-
.eds-stepper__item__container {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
font-family: inherit;
|
|
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;
|
|
70
|
-
}
|
|
71
|
-
.eds-stepper__item__container--non-interactive {
|
|
72
|
-
cursor: default;
|
|
73
|
-
}
|
|
74
|
-
.eds-stepper__item__container:focus {
|
|
75
|
-
outline-offset: 0.125rem;
|
|
76
|
-
outline: none;
|
|
77
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
78
|
-
}
|
|
79
|
-
.eds-contrast .eds-stepper__item__container:focus {
|
|
80
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
81
|
-
}
|
|
82
|
-
.eds-stepper__item__container:first-child {
|
|
83
|
-
margin-left: 0;
|
|
84
|
-
}
|
|
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;
|
|
92
|
-
}
|
|
93
|
-
.eds-stepper__item__label--active {
|
|
94
|
-
font-weight: 600;
|
|
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;
|
|
161
|
-
}/* DO NOT CHANGE!*/
|
|
162
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
163
51
|
/* DO NOT CHANGE!*/
|
|
164
52
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
165
53
|
.eds-side-navigation,
|
|
@@ -422,87 +310,116 @@
|
|
|
422
310
|
width: 2rem;
|
|
423
311
|
}/* DO NOT CHANGE!*/
|
|
424
312
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
425
|
-
.eds-
|
|
313
|
+
.eds-stepper {
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: row;
|
|
316
|
+
}
|
|
317
|
+
.eds-stepper__item__container {
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
font-family: inherit;
|
|
320
|
+
text-transform: none;
|
|
426
321
|
appearance: none;
|
|
322
|
+
background: none;
|
|
427
323
|
border: none;
|
|
324
|
+
margin: 0;
|
|
325
|
+
padding: 0;
|
|
326
|
+
align-items: inherit;
|
|
327
|
+
display: flex;
|
|
328
|
+
flex-grow: 1;
|
|
329
|
+
flex-basis: 0;
|
|
330
|
+
flex-direction: column;
|
|
331
|
+
margin-left: 0.25rem;
|
|
332
|
+
}
|
|
333
|
+
.eds-stepper__item__container--non-interactive {
|
|
334
|
+
cursor: default;
|
|
335
|
+
}
|
|
336
|
+
.eds-stepper__item__container:focus {
|
|
337
|
+
outline-offset: 0.125rem;
|
|
338
|
+
outline: none;
|
|
339
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
340
|
+
}
|
|
341
|
+
.eds-contrast .eds-stepper__item__container:focus {
|
|
342
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
343
|
+
}
|
|
344
|
+
.eds-stepper__item__container:first-child {
|
|
345
|
+
margin-left: 0;
|
|
346
|
+
}
|
|
347
|
+
.eds-stepper__item__label {
|
|
348
|
+
cursor: inherit;
|
|
349
|
+
flex-grow: 1;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
text-align: center;
|
|
428
352
|
font-size: 0.875rem;
|
|
429
|
-
|
|
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;
|
|
353
|
+
padding: 0.25rem 1rem;
|
|
440
354
|
}
|
|
441
|
-
.eds-
|
|
355
|
+
.eds-stepper__item__label--active {
|
|
356
|
+
font-weight: 600;
|
|
357
|
+
}
|
|
358
|
+
.eds-stepper__item__label.eds-stepper__item__label--active {
|
|
442
359
|
color: #181c56;
|
|
443
360
|
}
|
|
444
|
-
.eds-
|
|
445
|
-
|
|
446
|
-
color: #949494;
|
|
361
|
+
.eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
|
|
362
|
+
color: #ffffff;
|
|
447
363
|
}
|
|
448
|
-
.eds-
|
|
449
|
-
|
|
450
|
-
color: #949494;
|
|
364
|
+
.eds-stepper__item__label.eds-stepper__item__label--has-been {
|
|
365
|
+
color: #181c56;
|
|
451
366
|
}
|
|
452
|
-
.eds-
|
|
453
|
-
|
|
454
|
-
background: #e9e9e9;
|
|
455
|
-
color: #949494;
|
|
367
|
+
.eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
|
|
368
|
+
color: #ffffff;
|
|
456
369
|
}
|
|
457
|
-
.eds-
|
|
458
|
-
|
|
370
|
+
.eds-stepper__item__square {
|
|
371
|
+
height: 0.5rem;
|
|
459
372
|
}
|
|
460
|
-
.eds-
|
|
461
|
-
|
|
373
|
+
.eds-stepper__item__square--active {
|
|
374
|
+
color: inherit;
|
|
375
|
+
background: #e9e9e9;
|
|
376
|
+
position: relative;
|
|
462
377
|
}
|
|
463
|
-
.eds-
|
|
464
|
-
|
|
378
|
+
.eds-stepper__item__square--active:before {
|
|
379
|
+
background: #181c56;
|
|
380
|
+
content: "";
|
|
381
|
+
position: absolute;
|
|
382
|
+
right: calc(50% - 0.2rem);
|
|
383
|
+
border-radius: 0.0625rem;
|
|
384
|
+
bottom: 0.0625rem;
|
|
385
|
+
width: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
386
|
+
height: calc( 0.5rem - 0.125rem - 0.01rem );
|
|
387
|
+
transform: rotate(45deg);
|
|
465
388
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
border-
|
|
389
|
+
.eds-contrast .eds-stepper__item__square--active:before {
|
|
390
|
+
border-left-color: #aeb7e2;
|
|
391
|
+
border-left-color: #aeb7e2;
|
|
469
392
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
393
|
+
.eds-stepper__item__square--active:after {
|
|
394
|
+
content: "";
|
|
395
|
+
position: absolute;
|
|
396
|
+
left: 0;
|
|
397
|
+
bottom: 0;
|
|
398
|
+
width: 50%;
|
|
399
|
+
height: 0.5rem;
|
|
400
|
+
background: #181c56;
|
|
476
401
|
}
|
|
477
|
-
.eds-
|
|
478
|
-
|
|
402
|
+
.eds-contrast .eds-stepper__item__square--active:after {
|
|
403
|
+
background: #aeb7e2;
|
|
479
404
|
}
|
|
480
|
-
.eds-
|
|
481
|
-
|
|
405
|
+
.eds-contrast .eds-stepper__item__square--active {
|
|
406
|
+
background: #aeb7e2;
|
|
407
|
+
background: #393d79;
|
|
482
408
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
animation: slide-in 0.2s ease-in-out;
|
|
409
|
+
.eds-stepper__item__square--inactive {
|
|
410
|
+
color: #656782;
|
|
411
|
+
background: #e9e9e9;
|
|
487
412
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
opacity: 0;
|
|
492
|
-
transform: translateY(0.5rem);
|
|
493
|
-
}
|
|
494
|
-
100% {
|
|
495
|
-
opacity: 1;
|
|
496
|
-
transform: translateY(0);
|
|
497
|
-
}
|
|
413
|
+
.eds-contrast .eds-stepper__item__square--inactive {
|
|
414
|
+
color: #aeb7e2;
|
|
415
|
+
background: #393d79;
|
|
498
416
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
417
|
+
.eds-stepper__item__square--has-been {
|
|
418
|
+
color: inherit;
|
|
419
|
+
background: #181c56;
|
|
502
420
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
right: calc(100% - 2rem);
|
|
421
|
+
.eds-contrast .eds-stepper__item__square--has-been {
|
|
422
|
+
background: #aeb7e2;
|
|
506
423
|
}/* DO NOT CHANGE!*/
|
|
507
424
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
508
425
|
.eds-pagination {
|
|
@@ -641,4 +558,87 @@
|
|
|
641
558
|
.eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
|
|
642
559
|
appearance: none;
|
|
643
560
|
margin: 0;
|
|
561
|
+
}/* DO NOT CHANGE!*/
|
|
562
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
563
|
+
.eds-overflow-menu__item {
|
|
564
|
+
appearance: none;
|
|
565
|
+
border: none;
|
|
566
|
+
font-size: 0.875rem;
|
|
567
|
+
font-family: inherit;
|
|
568
|
+
color: var(--primary-text-color);
|
|
569
|
+
background: #f8f8f8;
|
|
570
|
+
display: block;
|
|
571
|
+
height: 3rem;
|
|
572
|
+
cursor: pointer;
|
|
573
|
+
width: 100%;
|
|
574
|
+
line-height: 1.375rem;
|
|
575
|
+
text-align: left;
|
|
576
|
+
padding: 0.75rem 1rem;
|
|
577
|
+
opacity: 1;
|
|
578
|
+
}
|
|
579
|
+
.eds-contrast .eds-overflow-menu__item {
|
|
580
|
+
color: #181c56;
|
|
581
|
+
}
|
|
582
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
583
|
+
background: #e9e9e9;
|
|
584
|
+
color: #949494;
|
|
585
|
+
}
|
|
586
|
+
.eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
587
|
+
background: #e9e9e9;
|
|
588
|
+
color: #949494;
|
|
589
|
+
}
|
|
590
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
|
|
591
|
+
cursor: not-allowed;
|
|
592
|
+
background: #e9e9e9;
|
|
593
|
+
color: #949494;
|
|
594
|
+
}
|
|
595
|
+
.eds-overflow-menu__item .eds-icon {
|
|
596
|
+
margin-right: 0.75rem;
|
|
597
|
+
}
|
|
598
|
+
.eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
|
|
599
|
+
background: #d1d4e3;
|
|
600
|
+
}
|
|
601
|
+
.eds-overflow-menu__item:focus {
|
|
602
|
+
outline: none;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.eds-overflow-menu__item + .eds-overflow-menu__item {
|
|
606
|
+
border-top: 0.0625rem solid #e9e9e9;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list] {
|
|
610
|
+
border: 0.0625rem solid #e9e9e9;
|
|
611
|
+
border-radius: 0.25rem;
|
|
612
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
613
|
+
overflow: hidden;
|
|
614
|
+
}
|
|
615
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
|
|
616
|
+
outline: none;
|
|
617
|
+
}
|
|
618
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
|
|
619
|
+
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list],
|
|
623
|
+
.eds-overflow-menu__menu-list[data-reach-menu-items] {
|
|
624
|
+
animation: slide-in 0.2s ease-in-out;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
@keyframes slide-in {
|
|
628
|
+
0% {
|
|
629
|
+
opacity: 0;
|
|
630
|
+
transform: translateY(0.5rem);
|
|
631
|
+
}
|
|
632
|
+
100% {
|
|
633
|
+
opacity: 1;
|
|
634
|
+
transform: translateY(0);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
[data-reach-menu-popover] {
|
|
638
|
+
position: absolute;
|
|
639
|
+
z-index: 30;
|
|
640
|
+
}
|
|
641
|
+
[data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
|
|
642
|
+
position: relative;
|
|
643
|
+
right: calc(100% - 2rem);
|
|
644
644
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@entur/button": "^2.8.0",
|
|
27
|
-
"@entur/expand": "^3.3.
|
|
28
|
-
"@entur/icons": "^3.
|
|
27
|
+
"@entur/expand": "^3.3.8",
|
|
28
|
+
"@entur/icons": "^3.5.0",
|
|
29
29
|
"@entur/layout": "^2.1.4",
|
|
30
30
|
"@entur/tokens": "^3.3.1",
|
|
31
31
|
"@entur/typography": "^1.6.11",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"react": ">=16.8.0",
|
|
38
38
|
"react-dom": ">=16.8.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "bf06a9d451cb7f978946c05ce04bb4e6f63379af"
|
|
41
41
|
}
|