@entur/menu 5.2.1-beta.7 → 5.2.1-beta.9

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 +102 -102
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -1,50 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-overflow-menu__menu-list {
4
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
5
- overflow: hidden;
6
- border-radius: 0.25rem;
7
- border: 0.0625rem solid var(--components-menu-overflowmenu-border);
8
- z-index: 20;
9
- }
10
- .eds-overflow-menu__menu-list.eds-contrast {
11
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
12
- }
13
- .eds-overflow-menu__item {
14
- display: block;
15
- width: 100%;
16
- -webkit-appearance: none;
17
- -moz-appearance: none;
18
- appearance: none;
19
- padding: 0.75rem;
20
- border: none;
21
- outline: none;
22
- font-size: 1rem;
23
- line-height: 1.375rem;
24
- text-align: left;
25
- -webkit-text-decoration: none;
26
- text-decoration: none;
27
- color: var(--components-menu-overflowmenu-text);
28
- background: var(--components-menu-overflowmenu-fill-default);
29
- cursor: pointer;
30
- }
31
- .eds-overflow-menu__item--highlighted {
32
- background: var(--components-menu-overflowmenu-fill-hover);
33
- }
34
- .eds-overflow-menu__item:active {
35
- background: var(--components-menu-overflowmenu-fill-active);
36
- color: var(--components-menu-overflowmenu-text-active);
37
- }
38
- .eds-overflow-menu__item--disabled {
39
- background: var(--components-menu-overflowmenu-fill-default);
40
- color: var(--components-menu-overflowmenu-text-disabled);
41
- cursor: not-allowed;
42
- }
43
- .eds-overflow-menu__item svg {
44
- margin-right: 0.75rem;
45
- }
46
- /* DO NOT CHANGE!*/
47
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
48
3
  .eds-side-navigation,
49
4
  .eds-side-navigation-group {
50
5
  color: var(--components-menu-sidenavigation-standard-text);
@@ -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!*/
@@ -949,60 +1006,3 @@
949
1006
  --eds-menu: 1;
950
1007
  --reach-menu-button: 1;
951
1008
  }
952
- /* DO NOT CHANGE!*/
953
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
954
- .eds-top-navigation-item {
955
- --show-active-line: 0;
956
- display: inline-block;
957
- cursor: pointer;
958
- color: var(--components-menu-navigationbar-standard-text-unselected);
959
- -webkit-text-decoration: none;
960
- text-decoration: none;
961
- position: relative;
962
- padding: 1rem;
963
- min-width: 5rem;
964
- width: -moz-fit-content;
965
- width: fit-content;
966
- text-align: center;
967
- font-family: inherit;
968
- font-size: 1rem;
969
- font-weight: 600;
970
- }
971
- .eds-top-navigation-item::after {
972
- content: "";
973
- display: block;
974
- bottom: 1rem;
975
- height: 0.1875rem;
976
- width: 0;
977
- margin: 0 auto;
978
- opacity: var(--show-active-line);
979
- background: var(--components-menu-navigationbar-standard-stroke-selected);
980
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
981
- }
982
- .eds-contrast .eds-top-navigation-item {
983
- color: var(--components-menu-navigationbar-contrast-text-unselected);
984
- }
985
- .eds-top-navigation-item:focus-visible {
986
- outline: 2px solid #181c56;
987
- outline-color: var(--basecolors-stroke-focus-standard);
988
- outline-offset: 0.125rem;
989
- }
990
- .eds-contrast .eds-top-navigation-item:focus-visible {
991
- outline-color: var(--basecolors-stroke-focus-contrast);
992
- }
993
- .eds-top-navigation-item:hover {
994
- --show-active-line: 1;
995
- }
996
- .eds-top-navigation-item:hover::after {
997
- width: 2rem;
998
- }
999
- .eds-top-navigation-item--active {
1000
- color: var(--components-menu-navigationbar-standard-text-selected);
1001
- --show-active-line: 1;
1002
- }
1003
- .eds-top-navigation-item--active::after {
1004
- width: 2rem;
1005
- }
1006
- .eds-contrast .eds-top-navigation-item--active {
1007
- color: var(--components-menu-navigationbar-contrast-text-selected);
1008
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "5.2.1-beta.7",
3
+ "version": "5.2.1-beta.9",
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.99",
31
- "@entur/button": "^3.3.13-beta.7",
32
- "@entur/expand": "^3.6.13-beta.7",
31
+ "@entur/button": "^3.3.13-beta.9",
32
+ "@entur/expand": "^3.6.13-beta.9",
33
33
  "@entur/icons": "^8.0.0",
34
- "@entur/layout": "^3.1.9-beta.7",
34
+ "@entur/layout": "^3.1.9-beta.9",
35
35
  "@entur/tokens": "^3.19.1",
36
- "@entur/tooltip": "^5.2.13-beta.7",
37
- "@entur/typography": "^1.10.0-beta.7",
36
+ "@entur/tooltip": "^5.2.13-beta.9",
37
+ "@entur/typography": "^1.10.0-beta.9",
38
38
  "@entur/utils": "^0.12.3",
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": "26b5f016229bb0115d5f31ce51e15eafd015a870"
45
+ "gitHead": "6f685d2e4ac13bdaf9c6480f9e7922c9d8f4619c"
46
46
  }