@entur/menu 4.1.13 → 4.1.14

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 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.1.14](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.13...@entur/menu@4.1.14) (2022-10-20)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
6
10
  ## [4.1.13](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.12...@entur/menu@4.1.13) (2022-10-12)
7
11
 
8
12
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -3,58 +3,167 @@
3
3
  --reach-menu-button: 1;
4
4
  }/* DO NOT CHANGE!*/
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
- .eds-breadcrumb {
7
- list-style: none;
8
- margin: 0;
9
- padding: 0;
10
- }
11
-
12
- .eds-breadcrumb__item {
6
+ .eds-top-navigation-item {
7
+ --show-active-line: 0;
13
8
  display: inline-block;
9
+ cursor: pointer;
10
+ color: inherit;
11
+ text-decoration: none;
12
+ position: relative;
13
+ padding: 1rem;
14
+ min-width: 5rem;
15
+ width: -webkit-fit-content;
16
+ width: -moz-fit-content;
17
+ width: fit-content;
18
+ text-align: center;
19
+ font-family: inherit;
20
+ font-size: 1rem;
21
+ font-weight: 600;
14
22
  }
15
-
16
- .eds-breadcrumb__separator {
17
- margin: 0 0.25rem 0 0.25rem;
23
+ .eds-top-navigation-item::after {
24
+ content: "";
25
+ display: block;
26
+ bottom: 1rem;
27
+ height: 0.1875rem;
28
+ width: 0;
29
+ margin: 0 auto;
30
+ opacity: var(--show-active-line);
31
+ background: #ff5959;
32
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
18
33
  }
19
-
20
- .eds-breadcrumb__link {
21
- text-decoration: none;
22
- color: inherit;
23
- background-image: linear-gradient(120deg, #181c56 0%, #181c56 100%);
24
- background-repeat: no-repeat;
25
- background-size: 100% 0.125rem;
26
- background-position: 0 100%;
34
+ .eds-top-navigation-item:focus {
35
+ outline-offset: 0.125rem;
36
+ outline: none;
37
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
27
38
  }
28
- .eds-contrast .eds-breadcrumb__link {
29
- background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
39
+ .eds-contrast .eds-top-navigation-item:focus {
40
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
30
41
  }
31
- .eds-breadcrumb__link:hover {
32
- -webkit-animation: eds-breadcrumb-underline 0.3s ease-in;
33
- animation: eds-breadcrumb-underline 0.3s ease-in;
42
+ .eds-top-navigation-item:hover {
43
+ --show-active-line: 1;
34
44
  }
35
- .eds-breadcrumb__link:focus {
45
+ .eds-top-navigation-item:hover::after {
46
+ width: 2rem;
47
+ }
48
+ .eds-top-navigation-item--active {
49
+ --show-active-line: 1;
50
+ }
51
+ .eds-top-navigation-item--active::after {
52
+ width: 2rem;
53
+ }/* DO NOT CHANGE!*/
54
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
55
+ .eds-stepper {
56
+ display: flex;
57
+ flex-direction: row;
58
+ }
59
+ .eds-stepper__item__container {
60
+ cursor: pointer;
61
+ font-family: inherit;
62
+ text-transform: none;
63
+ -webkit-appearance: none;
64
+ -moz-appearance: none;
65
+ appearance: none;
66
+ background: none;
67
+ border: none;
68
+ margin: 0;
69
+ padding: 0;
70
+ align-items: inherit;
71
+ display: flex;
72
+ flex-grow: 1;
73
+ flex-basis: 0;
74
+ flex-direction: column;
75
+ margin-left: 0.25rem;
76
+ }
77
+ .eds-stepper__item__container--non-interactive {
78
+ cursor: default;
79
+ }
80
+ .eds-stepper__item__container:focus {
81
+ outline-offset: 0.125rem;
36
82
  outline: none;
37
83
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
38
- outline-offset: 0.125rem;
39
84
  }
40
- @-webkit-keyframes eds-breadcrumb-underline {
41
- from {
42
- background-size: 0% 0.125rem;
43
- }
44
- to {
45
- background-size: 100% 0.125rem;
46
- }
85
+ .eds-contrast .eds-stepper__item__container:focus {
86
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
47
87
  }
48
- @keyframes eds-breadcrumb-underline {
49
- from {
50
- background-size: 0% 0.125rem;
51
- }
52
- to {
53
- background-size: 100% 0.125rem;
54
- }
88
+ .eds-stepper__item__container:first-child {
89
+ margin-left: 0;
55
90
  }
56
- .eds-breadcrumb__link--current {
91
+ .eds-stepper__item__label {
92
+ cursor: inherit;
93
+ flex-grow: 1;
94
+ flex-direction: column;
95
+ text-align: center;
96
+ font-size: 0.875rem;
97
+ padding: 0.25rem 1rem;
98
+ }
99
+ .eds-stepper__item__label--active {
57
100
  font-weight: 600;
101
+ }
102
+ .eds-stepper__item__label.eds-stepper__item__label--active {
103
+ color: #181c56;
104
+ }
105
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
106
+ color: #ffffff;
107
+ }
108
+ .eds-stepper__item__label.eds-stepper__item__label--has-been {
109
+ color: #181c56;
110
+ }
111
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
112
+ color: #ffffff;
113
+ }
114
+ .eds-stepper__item__square {
115
+ height: 0.5rem;
116
+ }
117
+ .eds-stepper__item__square--active {
118
+ color: inherit;
119
+ background: #e9e9e9;
120
+ position: relative;
121
+ }
122
+ .eds-stepper__item__square--active:before {
123
+ background: #181c56;
124
+ content: "";
125
+ position: absolute;
126
+ right: calc(50% - 0.2rem);
127
+ border-radius: 0.0625rem;
128
+ bottom: 0.0625rem;
129
+ width: calc( 0.5rem - 0.125rem - 0.01rem );
130
+ height: calc( 0.5rem - 0.125rem - 0.01rem );
131
+ transform: rotate(45deg);
132
+ }
133
+ .eds-contrast .eds-stepper__item__square--active:before {
134
+ border-left-color: #aeb7e2;
135
+ border-left-color: #aeb7e2;
136
+ }
137
+ .eds-stepper__item__square--active:after {
138
+ content: "";
139
+ position: absolute;
140
+ left: 0;
141
+ bottom: 0;
142
+ width: 50%;
143
+ height: 0.5rem;
144
+ background: #181c56;
145
+ }
146
+ .eds-contrast .eds-stepper__item__square--active:after {
147
+ background: #aeb7e2;
148
+ }
149
+ .eds-contrast .eds-stepper__item__square--active {
150
+ background: #aeb7e2;
151
+ background: #393d79;
152
+ }
153
+ .eds-stepper__item__square--inactive {
154
+ color: #656782;
155
+ background: #e9e9e9;
156
+ }
157
+ .eds-contrast .eds-stepper__item__square--inactive {
158
+ color: #aeb7e2;
159
+ background: #393d79;
160
+ }
161
+ .eds-stepper__item__square--has-been {
162
+ color: inherit;
163
+ background: #181c56;
164
+ }
165
+ .eds-contrast .eds-stepper__item__square--has-been {
166
+ background: #aeb7e2;
58
167
  }/* DO NOT CHANGE!*/
59
168
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
169
  /* DO NOT CHANGE!*/
@@ -276,53 +385,58 @@
276
385
  outline: 2px solid #ffffff;
277
386
  }/* DO NOT CHANGE!*/
278
387
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
279
- .eds-top-navigation-item {
280
- --show-active-line: 0;
388
+ .eds-breadcrumb {
389
+ list-style: none;
390
+ margin: 0;
391
+ padding: 0;
392
+ }
393
+
394
+ .eds-breadcrumb__item {
281
395
  display: inline-block;
282
- cursor: pointer;
283
- color: inherit;
396
+ }
397
+
398
+ .eds-breadcrumb__separator {
399
+ margin: 0 0.25rem 0 0.25rem;
400
+ }
401
+
402
+ .eds-breadcrumb__link {
284
403
  text-decoration: none;
285
- position: relative;
286
- padding: 1rem;
287
- min-width: 5rem;
288
- width: -webkit-fit-content;
289
- width: -moz-fit-content;
290
- width: fit-content;
291
- text-align: center;
292
- font-family: inherit;
293
- font-size: 1rem;
294
- font-weight: 600;
404
+ color: inherit;
405
+ background-image: linear-gradient(120deg, #181c56 0%, #181c56 100%);
406
+ background-repeat: no-repeat;
407
+ background-size: 100% 0.125rem;
408
+ background-position: 0 100%;
295
409
  }
296
- .eds-top-navigation-item::after {
297
- content: "";
298
- display: block;
299
- bottom: 1rem;
300
- height: 0.1875rem;
301
- width: 0;
302
- margin: 0 auto;
303
- opacity: var(--show-active-line);
304
- background: #ff5959;
305
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
410
+ .eds-contrast .eds-breadcrumb__link {
411
+ background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
306
412
  }
307
- .eds-top-navigation-item:focus {
308
- outline-offset: 0.125rem;
413
+ .eds-breadcrumb__link:hover {
414
+ -webkit-animation: eds-breadcrumb-underline 0.3s ease-in;
415
+ animation: eds-breadcrumb-underline 0.3s ease-in;
416
+ }
417
+ .eds-breadcrumb__link:focus {
309
418
  outline: none;
310
419
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
420
+ outline-offset: 0.125rem;
311
421
  }
312
- .eds-contrast .eds-top-navigation-item:focus {
313
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
314
- }
315
- .eds-top-navigation-item:hover {
316
- --show-active-line: 1;
317
- }
318
- .eds-top-navigation-item:hover::after {
319
- width: 2rem;
422
+ @-webkit-keyframes eds-breadcrumb-underline {
423
+ from {
424
+ background-size: 0% 0.125rem;
425
+ }
426
+ to {
427
+ background-size: 100% 0.125rem;
428
+ }
320
429
  }
321
- .eds-top-navigation-item--active {
322
- --show-active-line: 1;
430
+ @keyframes eds-breadcrumb-underline {
431
+ from {
432
+ background-size: 0% 0.125rem;
433
+ }
434
+ to {
435
+ background-size: 100% 0.125rem;
436
+ }
323
437
  }
324
- .eds-top-navigation-item--active::after {
325
- width: 2rem;
438
+ .eds-breadcrumb__link--current {
439
+ font-weight: 600;
326
440
  }/* DO NOT CHANGE!*/
327
441
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
328
442
  .eds-overflow-menu__item {
@@ -422,120 +536,6 @@
422
536
  right: calc(100% - 2rem);
423
537
  }/* DO NOT CHANGE!*/
424
538
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
425
- .eds-stepper {
426
- display: flex;
427
- flex-direction: row;
428
- }
429
- .eds-stepper__item__container {
430
- cursor: pointer;
431
- font-family: inherit;
432
- text-transform: none;
433
- -webkit-appearance: none;
434
- -moz-appearance: none;
435
- appearance: none;
436
- background: none;
437
- border: none;
438
- margin: 0;
439
- padding: 0;
440
- align-items: inherit;
441
- display: flex;
442
- flex-grow: 1;
443
- flex-basis: 0;
444
- flex-direction: column;
445
- margin-left: 0.25rem;
446
- }
447
- .eds-stepper__item__container--non-interactive {
448
- cursor: default;
449
- }
450
- .eds-stepper__item__container:focus {
451
- outline-offset: 0.125rem;
452
- outline: none;
453
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
454
- }
455
- .eds-contrast .eds-stepper__item__container:focus {
456
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
457
- }
458
- .eds-stepper__item__container:first-child {
459
- margin-left: 0;
460
- }
461
- .eds-stepper__item__label {
462
- cursor: inherit;
463
- flex-grow: 1;
464
- flex-direction: column;
465
- text-align: center;
466
- font-size: 0.875rem;
467
- padding: 0.25rem 1rem;
468
- }
469
- .eds-stepper__item__label--active {
470
- font-weight: 600;
471
- }
472
- .eds-stepper__item__label.eds-stepper__item__label--active {
473
- color: #181c56;
474
- }
475
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
476
- color: #ffffff;
477
- }
478
- .eds-stepper__item__label.eds-stepper__item__label--has-been {
479
- color: #181c56;
480
- }
481
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
482
- color: #ffffff;
483
- }
484
- .eds-stepper__item__square {
485
- height: 0.5rem;
486
- }
487
- .eds-stepper__item__square--active {
488
- color: inherit;
489
- background: #e9e9e9;
490
- position: relative;
491
- }
492
- .eds-stepper__item__square--active:before {
493
- background: #181c56;
494
- content: "";
495
- position: absolute;
496
- right: calc(50% - 0.2rem);
497
- border-radius: 0.0625rem;
498
- bottom: 0.0625rem;
499
- width: calc( 0.5rem - 0.125rem - 0.01rem );
500
- height: calc( 0.5rem - 0.125rem - 0.01rem );
501
- transform: rotate(45deg);
502
- }
503
- .eds-contrast .eds-stepper__item__square--active:before {
504
- border-left-color: #aeb7e2;
505
- border-left-color: #aeb7e2;
506
- }
507
- .eds-stepper__item__square--active:after {
508
- content: "";
509
- position: absolute;
510
- left: 0;
511
- bottom: 0;
512
- width: 50%;
513
- height: 0.5rem;
514
- background: #181c56;
515
- }
516
- .eds-contrast .eds-stepper__item__square--active:after {
517
- background: #aeb7e2;
518
- }
519
- .eds-contrast .eds-stepper__item__square--active {
520
- background: #aeb7e2;
521
- background: #393d79;
522
- }
523
- .eds-stepper__item__square--inactive {
524
- color: #656782;
525
- background: #e9e9e9;
526
- }
527
- .eds-contrast .eds-stepper__item__square--inactive {
528
- color: #aeb7e2;
529
- background: #393d79;
530
- }
531
- .eds-stepper__item__square--has-been {
532
- color: inherit;
533
- background: #181c56;
534
- }
535
- .eds-contrast .eds-stepper__item__square--has-been {
536
- background: #aeb7e2;
537
- }/* DO NOT CHANGE!*/
538
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
539
539
  .eds-pagination {
540
540
  align-items: center;
541
541
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.13",
3
+ "version": "4.1.14",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -25,8 +25,8 @@
25
25
  "dependencies": {
26
26
  "@entur/a11y": "^0.2.49",
27
27
  "@entur/button": "^2.10.4",
28
- "@entur/expand": "^3.3.21",
29
- "@entur/icons": "^5.0.0",
28
+ "@entur/expand": "^3.3.22",
29
+ "@entur/icons": "^5.1.0",
30
30
  "@entur/layout": "^2.1.11",
31
31
  "@entur/tokens": "^3.4.1",
32
32
  "@entur/typography": "^1.7.0",
@@ -38,5 +38,5 @@
38
38
  "react": ">=16.8.0",
39
39
  "react-dom": ">=16.8.0"
40
40
  },
41
- "gitHead": "e6da59550f3ace8e356155d60ce72d480aa17d51"
41
+ "gitHead": "9d0450ea38d34dffbd45ab0b65eb9f02f499392b"
42
42
  }