@entur/menu 5.0.7-RC.0 → 5.0.7-beta.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 +100 -100
  2. package/package.json +11 -11
package/dist/styles.css CHANGED
@@ -54,6 +54,50 @@
54
54
  }
55
55
  /* DO NOT CHANGE!*/
56
56
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
57
+ .eds-overflow-menu__menu-list {
58
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
59
+ overflow: hidden;
60
+ border-radius: 0.25rem;
61
+ border: 0.0625rem solid var(--components-menu-overflowmenu-border);
62
+ z-index: 20;
63
+ }
64
+ .eds-overflow-menu__menu-list.eds-contrast {
65
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
66
+ }
67
+ .eds-overflow-menu__item {
68
+ display: block;
69
+ width: 100%;
70
+ -webkit-appearance: none;
71
+ -moz-appearance: none;
72
+ appearance: none;
73
+ padding: 0.75rem;
74
+ border: none;
75
+ outline: none;
76
+ font-size: 1rem;
77
+ line-height: 1.375rem;
78
+ text-align: left;
79
+ text-decoration: none;
80
+ color: var(--components-menu-overflowmenu-text);
81
+ background: var(--components-menu-overflowmenu-fill-default);
82
+ cursor: pointer;
83
+ }
84
+ .eds-overflow-menu__item--highlighted {
85
+ background: var(--components-menu-overflowmenu-fill-hover);
86
+ }
87
+ .eds-overflow-menu__item:active {
88
+ background: var(--components-menu-overflowmenu-fill-active);
89
+ color: var(--components-menu-overflowmenu-text-active);
90
+ }
91
+ .eds-overflow-menu__item--disabled {
92
+ background: var(--components-menu-overflowmenu-fill-default);
93
+ color: var(--components-menu-overflowmenu-text-disabled);
94
+ cursor: not-allowed;
95
+ }
96
+ .eds-overflow-menu__item svg {
97
+ margin-right: 0.75rem;
98
+ }
99
+ /* DO NOT CHANGE!*/
100
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
57
101
  .eds-side-navigation,
58
102
  .eds-side-navigation-group {
59
103
  color: var(--components-menu-sidenavigation-standard-text);
@@ -307,50 +351,6 @@
307
351
  }
308
352
  /* DO NOT CHANGE!*/
309
353
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
310
- .eds-overflow-menu__menu-list {
311
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
312
- overflow: hidden;
313
- border-radius: 0.25rem;
314
- border: 0.0625rem solid var(--components-menu-overflowmenu-border);
315
- z-index: 20;
316
- }
317
- .eds-overflow-menu__menu-list.eds-contrast {
318
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
319
- }
320
- .eds-overflow-menu__item {
321
- display: block;
322
- width: 100%;
323
- -webkit-appearance: none;
324
- -moz-appearance: none;
325
- appearance: none;
326
- padding: 0.75rem;
327
- border: none;
328
- outline: none;
329
- font-size: 1rem;
330
- line-height: 1.375rem;
331
- text-align: left;
332
- text-decoration: none;
333
- color: var(--components-menu-overflowmenu-text);
334
- background: var(--components-menu-overflowmenu-fill-default);
335
- cursor: pointer;
336
- }
337
- .eds-overflow-menu__item--highlighted {
338
- background: var(--components-menu-overflowmenu-fill-hover);
339
- }
340
- .eds-overflow-menu__item:active {
341
- background: var(--components-menu-overflowmenu-fill-active);
342
- color: var(--components-menu-overflowmenu-text-active);
343
- }
344
- .eds-overflow-menu__item--disabled {
345
- background: var(--components-menu-overflowmenu-fill-default);
346
- color: var(--components-menu-overflowmenu-text-disabled);
347
- cursor: not-allowed;
348
- }
349
- .eds-overflow-menu__item svg {
350
- margin-right: 0.75rem;
351
- }
352
- /* DO NOT CHANGE!*/
353
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
354
354
  .eds-pagination {
355
355
  align-items: center;
356
356
  display: flex;
@@ -653,62 +653,6 @@
653
653
  }
654
654
  /* DO NOT CHANGE!*/
655
655
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
656
- .eds-top-navigation-item {
657
- --show-active-line: 0;
658
- display: inline-block;
659
- cursor: pointer;
660
- color: var(--components-menu-navigationbar-standard-text-unselected);
661
- text-decoration: none;
662
- position: relative;
663
- padding: 1rem;
664
- min-width: 5rem;
665
- width: -moz-fit-content;
666
- width: fit-content;
667
- text-align: center;
668
- font-family: inherit;
669
- font-size: 1rem;
670
- font-weight: 600;
671
- }
672
- .eds-top-navigation-item::after {
673
- content: "";
674
- display: block;
675
- bottom: 1rem;
676
- height: 0.1875rem;
677
- width: 0;
678
- margin: 0 auto;
679
- opacity: var(--show-active-line);
680
- background: var(--components-menu-navigationbar-standard-stroke-selected);
681
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
682
- }
683
- .eds-contrast .eds-top-navigation-item {
684
- color: var(--components-menu-navigationbar-contrast-text-unselected);
685
- }
686
- .eds-top-navigation-item:focus {
687
- outline: 2px solid #181c56;
688
- outline-color: var(--basecolors-stroke-focus-standard);
689
- outline-offset: 0.125rem;
690
- }
691
- .eds-contrast .eds-top-navigation-item:focus {
692
- outline-color: var(--basecolors-stroke-focus-contrast);
693
- }
694
- .eds-top-navigation-item:hover {
695
- --show-active-line: 1;
696
- }
697
- .eds-top-navigation-item:hover::after {
698
- width: 2rem;
699
- }
700
- .eds-top-navigation-item--active {
701
- color: var(--components-menu-navigationbar-standard-text-selected);
702
- --show-active-line: 1;
703
- }
704
- .eds-top-navigation-item--active::after {
705
- width: 2rem;
706
- }
707
- .eds-contrast .eds-top-navigation-item--active {
708
- color: var(--components-menu-navigationbar-contrast-text-selected);
709
- }
710
- /* DO NOT CHANGE!*/
711
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
712
656
  /* DO NOT CHANGE!*/
713
657
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
714
658
  /* DO NOT CHANGE!*/
@@ -1047,3 +991,59 @@
1047
991
  --eds-menu: 1;
1048
992
  --reach-menu-button: 1;
1049
993
  }
994
+ /* DO NOT CHANGE!*/
995
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
996
+ .eds-top-navigation-item {
997
+ --show-active-line: 0;
998
+ display: inline-block;
999
+ cursor: pointer;
1000
+ color: var(--components-menu-navigationbar-standard-text-unselected);
1001
+ text-decoration: none;
1002
+ position: relative;
1003
+ padding: 1rem;
1004
+ min-width: 5rem;
1005
+ width: -moz-fit-content;
1006
+ width: fit-content;
1007
+ text-align: center;
1008
+ font-family: inherit;
1009
+ font-size: 1rem;
1010
+ font-weight: 600;
1011
+ }
1012
+ .eds-top-navigation-item::after {
1013
+ content: "";
1014
+ display: block;
1015
+ bottom: 1rem;
1016
+ height: 0.1875rem;
1017
+ width: 0;
1018
+ margin: 0 auto;
1019
+ opacity: var(--show-active-line);
1020
+ background: var(--components-menu-navigationbar-standard-stroke-selected);
1021
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
1022
+ }
1023
+ .eds-contrast .eds-top-navigation-item {
1024
+ color: var(--components-menu-navigationbar-contrast-text-unselected);
1025
+ }
1026
+ .eds-top-navigation-item:focus {
1027
+ outline: 2px solid #181c56;
1028
+ outline-color: var(--basecolors-stroke-focus-standard);
1029
+ outline-offset: 0.125rem;
1030
+ }
1031
+ .eds-contrast .eds-top-navigation-item:focus {
1032
+ outline-color: var(--basecolors-stroke-focus-contrast);
1033
+ }
1034
+ .eds-top-navigation-item:hover {
1035
+ --show-active-line: 1;
1036
+ }
1037
+ .eds-top-navigation-item:hover::after {
1038
+ width: 2rem;
1039
+ }
1040
+ .eds-top-navigation-item--active {
1041
+ color: var(--components-menu-navigationbar-standard-text-selected);
1042
+ --show-active-line: 1;
1043
+ }
1044
+ .eds-top-navigation-item--active::after {
1045
+ width: 2rem;
1046
+ }
1047
+ .eds-contrast .eds-top-navigation-item--active {
1048
+ color: var(--components-menu-navigationbar-contrast-text-selected);
1049
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "5.0.7-RC.0",
3
+ "version": "5.0.7-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -27,20 +27,20 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.94-RC.0",
31
- "@entur/button": "^3.2.37-RC.0",
32
- "@entur/expand": "^3.5.26-RC.0",
33
- "@entur/icons": "^7.5.1-RC.0",
34
- "@entur/layout": "^2.3.21-RC.0",
35
- "@entur/tokens": "^3.17.4-RC.0",
36
- "@entur/tooltip": "^5.1.5-RC.0",
37
- "@entur/typography": "^1.8.50-RC.0",
38
- "@entur/utils": "^0.12.2-RC.0",
30
+ "@entur/a11y": "^0.2.94-beta.0",
31
+ "@entur/button": "^3.2.37-beta.0",
32
+ "@entur/expand": "^3.5.26-beta.0",
33
+ "@entur/icons": "^7.5.1-beta.0",
34
+ "@entur/layout": "^2.3.21-beta.0",
35
+ "@entur/tokens": "^3.17.4-beta.0",
36
+ "@entur/tooltip": "^5.1.5-beta.0",
37
+ "@entur/typography": "^1.8.50-beta.0",
38
+ "@entur/utils": "^0.12.2-beta.0",
39
39
  "@floating-ui/react": "^0.26.23",
40
40
  "classnames": "^2.3.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "dts-cli": "2.0.5"
44
44
  },
45
- "gitHead": "d7913682a41ade219cbd4dfc6e45060152c7fa0a"
45
+ "gitHead": "b213fa4fd10a1a07abada3fa987b7ee2ed110ac2"
46
46
  }