@entur/menu 5.0.8 → 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.
Files changed (2) hide show
  1. package/dist/styles.css +104 -104
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -230,51 +230,6 @@
230
230
  }
231
231
  /* DO NOT CHANGE!*/
232
232
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
233
- .eds-overflow-menu__menu-list {
234
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
235
- overflow: hidden;
236
- border-radius: 0.25rem;
237
- border: 0.0625rem solid var(--components-menu-overflowmenu-border);
238
- z-index: 20;
239
- }
240
- .eds-overflow-menu__menu-list.eds-contrast {
241
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
242
- }
243
- .eds-overflow-menu__item {
244
- display: block;
245
- width: 100%;
246
- -webkit-appearance: none;
247
- -moz-appearance: none;
248
- appearance: none;
249
- padding: 0.75rem;
250
- border: none;
251
- outline: none;
252
- font-size: 1rem;
253
- line-height: 1.375rem;
254
- text-align: left;
255
- -webkit-text-decoration: none;
256
- text-decoration: none;
257
- color: var(--components-menu-overflowmenu-text);
258
- background: var(--components-menu-overflowmenu-fill-default);
259
- cursor: pointer;
260
- }
261
- .eds-overflow-menu__item--highlighted {
262
- background: var(--components-menu-overflowmenu-fill-hover);
263
- }
264
- .eds-overflow-menu__item:active {
265
- background: var(--components-menu-overflowmenu-fill-active);
266
- color: var(--components-menu-overflowmenu-text-active);
267
- }
268
- .eds-overflow-menu__item--disabled {
269
- background: var(--components-menu-overflowmenu-fill-default);
270
- color: var(--components-menu-overflowmenu-text-disabled);
271
- cursor: not-allowed;
272
- }
273
- .eds-overflow-menu__item svg {
274
- margin-right: 0.75rem;
275
- }
276
- /* DO NOT CHANGE!*/
277
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
278
233
  .eds-breadcrumb {
279
234
  list-style: none;
280
235
  margin: 0;
@@ -309,12 +264,12 @@
309
264
  .eds-breadcrumb__link:hover {
310
265
  animation: eds-breadcrumb-underline 0.3s ease-in;
311
266
  }
312
- .eds-breadcrumb__link:focus {
267
+ .eds-breadcrumb__link:focus-visible {
313
268
  outline: 2px solid #181c56;
314
269
  outline-color: var(--basecolors-stroke-focus-standard);
315
270
  outline-offset: 0.125rem;
316
271
  }
317
- .eds-contrast .eds-breadcrumb__link:focus {
272
+ .eds-contrast .eds-breadcrumb__link:focus-visible {
318
273
  outline-color: var(--basecolors-stroke-focus-contrast);
319
274
  }
320
275
  @keyframes eds-breadcrumb-underline {
@@ -330,6 +285,51 @@
330
285
  }
331
286
  /* DO NOT CHANGE!*/
332
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 {
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 {
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.0.8",
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.2.38",
32
- "@entur/expand": "^3.5.27",
31
+ "@entur/button": "^3.3.0",
32
+ "@entur/expand": "^3.6.0",
33
33
  "@entur/icons": "^7.6.0",
34
- "@entur/layout": "^2.3.22",
34
+ "@entur/layout": "^2.4.0",
35
35
  "@entur/tokens": "^3.17.5",
36
- "@entur/tooltip": "^5.1.6",
37
- "@entur/typography": "^1.8.51",
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": "1a989376d61ab59a8c554a9cab733039aef8b2eb"
45
+ "gitHead": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
46
46
  }