@entur/menu 5.1.2-beta.0 → 5.1.3

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 +10 -10
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-breadcrumb {
49
4
  list-style: none;
50
5
  margin: 0;
@@ -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,63 +609,6 @@
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. */
669
612
  /* DO NOT CHANGE!*/
670
613
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
671
614
  /* DO NOT CHANGE!*/
@@ -1004,3 +947,60 @@
1004
947
  --eds-menu: 1;
1005
948
  --reach-menu-button: 1;
1006
949
  }
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-visible {
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-visible {
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.1.2-beta.0",
3
+ "version": "5.1.3",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -27,14 +27,14 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.97-beta.0",
31
- "@entur/button": "^3.3.2-beta.0",
32
- "@entur/expand": "^3.6.2-beta.0",
33
- "@entur/icons": "^7.6.2-beta.0",
34
- "@entur/layout": "^3.0.0-beta.0",
35
- "@entur/tokens": "^3.17.7-beta.0",
36
- "@entur/tooltip": "^5.2.2-beta.0",
37
- "@entur/typography": "^1.9.2-beta.0",
30
+ "@entur/a11y": "^0.2.97",
31
+ "@entur/button": "^3.3.3",
32
+ "@entur/expand": "^3.6.3",
33
+ "@entur/icons": "^7.7.1",
34
+ "@entur/layout": "^3.0.0",
35
+ "@entur/tokens": "^3.18.0",
36
+ "@entur/tooltip": "^5.2.3",
37
+ "@entur/typography": "^1.9.3",
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": "cd66907abaf7faaee1f9dcc5f063b3b153eaf7b2"
45
+ "gitHead": "8ae7ed09699a63cc7e50d546d54750d8ec066c50"
46
46
  }