@entur/menu 4.1.3 → 4.1.6

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,18 @@
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.6](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.5...@entur/menu@4.1.6) (2022-08-09)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
10
+ ## [4.1.5](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.4...@entur/menu@4.1.5) (2022-07-05)
11
+
12
+ **Note:** Version bump only for package @entur/menu
13
+
14
+ ## [4.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.3...@entur/menu@4.1.4) (2022-06-28)
15
+
16
+ **Note:** Version bump only for package @entur/menu
17
+
6
18
  ## [4.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.2...@entur/menu@4.1.3) (2022-06-24)
7
19
 
8
20
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -57,165 +57,53 @@
57
57
  font-weight: 600;
58
58
  }/* DO NOT CHANGE!*/
59
59
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
- .eds-pagination {
61
- align-items: center;
62
- display: flex;
63
- flex-wrap: wrap;
64
- row-gap: 0.75rem;
65
- justify-content: space-between;
66
- }
67
- .eds-pagination__results {
68
- align-items: center;
69
- display: flex;
70
- flex: 1;
71
- justify-content: flex-start;
72
- }
73
- .eds-pagination__results-label {
74
- margin-right: 0.5rem;
75
- }
76
- .eds-pagination__controls {
77
- align-items: center;
78
- display: flex;
79
- justify-content: center;
80
- }
81
- .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
82
- margin: 0 auto;
83
- }
84
-
85
- .eds-pagination-menu__menu-button {
86
- -webkit-appearance: none;
87
- -moz-appearance: none;
88
- appearance: none;
89
- background: transparent;
90
- border: 0.0625rem solid #d1d3d3;
91
- border-radius: 0.25rem;
60
+ .eds-top-navigation-item {
61
+ --show-active-line: 0;
62
+ display: inline-block;
63
+ cursor: pointer;
92
64
  color: inherit;
65
+ text-decoration: none;
66
+ position: relative;
67
+ padding: 1rem;
68
+ min-width: 5rem;
69
+ width: -webkit-fit-content;
70
+ width: -moz-fit-content;
71
+ width: fit-content;
72
+ text-align: center;
93
73
  font-family: inherit;
94
- display: flex;
95
- align-items: center;
96
- justify-content: space-around;
97
- height: 2rem;
98
- margin-left: 0.25rem;
99
- margin-right: 1rem;
100
- width: 3.5rem;
74
+ font-size: 1rem;
75
+ font-weight: 600;
101
76
  }
102
- .eds-pagination-menu__menu-button--open {
103
- border-color: currentColor;
77
+ .eds-top-navigation-item::after {
78
+ content: "";
79
+ display: block;
80
+ bottom: 1rem;
81
+ height: 0.1875rem;
82
+ width: 0;
83
+ margin: 0 auto;
84
+ opacity: var(--show-active-line);
85
+ background: #ff5959;
86
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
104
87
  }
105
- .eds-pagination-menu__menu-button:focus {
88
+ .eds-top-navigation-item:focus {
89
+ outline-offset: 0.125rem;
106
90
  outline: none;
107
91
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
108
92
  }
109
- .eds-pagination-menu__menu-list {
110
- width: 3.5rem;
111
- }
112
-
113
- .eds-pagination__page {
114
- align-items: center;
115
- -webkit-appearance: none;
116
- -moz-appearance: none;
117
- appearance: none;
118
- background: transparent;
119
- border: 0.0625rem solid #d1d3d3;
120
- border-color: #d1d3d3;
121
- border-radius: 0.25rem;
122
- color: inherit;
123
- cursor: pointer;
124
- display: flex;
125
- font-family: inherit;
126
- font-size: 0.875rem;
127
- height: 2rem;
128
- justify-content: center;
129
- margin: 0 0.125rem;
130
- padding: 0 0.25rem;
131
- transition: background 0.1s ease-out, border-color 0.1s ease-out;
132
- -webkit-user-select: none;
133
- -moz-user-select: none;
134
- -ms-user-select: none;
135
- user-select: none;
136
- min-width: 2rem;
137
- }
138
- .eds-contrast .eds-pagination__page {
139
- border-color: #54568c;
140
- }
141
- .eds-pagination__page--selected {
142
- background: #d1d4e3;
143
- border-color: #181c56;
144
- color: inherit;
145
- opacity: 1;
146
- pointer-events: none;
147
- }
148
- .eds-contrast .eds-pagination__page--selected {
149
- border-color: #ffffff;
150
- background: #393d79;
151
- }
152
- .eds-pagination__page--disabled {
153
- opacity: 0.5;
154
- pointer-events: none;
155
- }
156
- .eds-pagination__page:hover {
157
- background-color: #d1d4e3;
158
- border-color: #d1d4e3;
159
- }
160
- .eds-contrast .eds-pagination__page:hover {
161
- background-color: #393d79;
162
- border-color: #393d79;
163
- }
164
- .eds-pagination__page:focus {
165
- outline: none;
166
- border-color: #181c56;
93
+ .eds-contrast .eds-top-navigation-item:focus {
94
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
167
95
  }
168
- .eds-contrast .eds-pagination__page:focus {
169
- border-color: #ffffff;
96
+ .eds-top-navigation-item:hover {
97
+ --show-active-line: 1;
170
98
  }
171
-
172
- .eds-pagination__ellipsis {
173
- align-items: baseline;
174
- cursor: default;
175
- display: flex;
176
- font-size: 1.5rem;
177
- height: 2rem;
178
- justify-content: center;
179
- -webkit-user-select: none;
180
- -moz-user-select: none;
181
- -ms-user-select: none;
182
- user-select: none;
99
+ .eds-top-navigation-item:hover::after {
183
100
  width: 2rem;
184
- margin: 0 2px;
185
101
  }
186
-
187
- .eds-pagination__input-wrapper {
188
- white-space: nowrap;
189
- }
190
- .eds-pagination__input-label {
191
- border-left: 0.0625rem solid #d1d3d3;
192
- color: #656782;
193
- font-size: 0.875rem;
194
- margin-left: 0.5rem;
195
- padding: 0 1rem;
196
- }
197
- .eds-contrast .eds-pagination__input-label {
198
- border-color: #393d79;
199
- color: #aeb7e2;
102
+ .eds-top-navigation-item--active {
103
+ --show-active-line: 1;
200
104
  }
201
- .eds-pagination__input-field {
202
- -webkit-appearance: none;
203
- -moz-appearance: none;
204
- appearance: none;
205
- background: transparent;
206
- border: 0.0625rem solid #d1d3d3;
207
- border-radius: 0.25rem;
208
- color: inherit;
209
- font-family: inherit;
210
- font-size: 0.875rem;
211
- height: 2rem;
212
- text-align: center;
105
+ .eds-top-navigation-item--active::after {
213
106
  width: 2rem;
214
- }
215
- .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
216
- -webkit-appearance: none;
217
- appearance: none;
218
- margin: 0;
219
107
  }/* DO NOT CHANGE!*/
220
108
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
221
109
  /* DO NOT CHANGE!*/
@@ -648,51 +536,163 @@
648
536
  background: #aeb7e2;
649
537
  }/* DO NOT CHANGE!*/
650
538
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
651
- .eds-top-navigation-item {
652
- --show-active-line: 0;
653
- display: inline-block;
654
- cursor: pointer;
539
+ .eds-pagination {
540
+ align-items: center;
541
+ display: flex;
542
+ flex-wrap: wrap;
543
+ row-gap: 0.75rem;
544
+ justify-content: space-between;
545
+ }
546
+ .eds-pagination__results {
547
+ align-items: center;
548
+ display: flex;
549
+ flex: 1;
550
+ justify-content: flex-start;
551
+ }
552
+ .eds-pagination__results-label {
553
+ margin-right: 0.5rem;
554
+ }
555
+ .eds-pagination__controls {
556
+ align-items: center;
557
+ display: flex;
558
+ justify-content: center;
559
+ }
560
+ .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
561
+ margin: 0 auto;
562
+ }
563
+
564
+ .eds-pagination-menu__menu-button {
565
+ -webkit-appearance: none;
566
+ -moz-appearance: none;
567
+ appearance: none;
568
+ background: transparent;
569
+ border: 0.0625rem solid #d1d3d3;
570
+ border-radius: 0.25rem;
655
571
  color: inherit;
656
- text-decoration: none;
657
- position: relative;
658
- padding: 1rem;
659
- min-width: 5rem;
660
- width: -webkit-fit-content;
661
- width: -moz-fit-content;
662
- width: fit-content;
663
- text-align: center;
664
572
  font-family: inherit;
665
- font-size: 1rem;
666
- font-weight: 600;
573
+ display: flex;
574
+ align-items: center;
575
+ justify-content: space-around;
576
+ height: 2rem;
577
+ margin-left: 0.25rem;
578
+ margin-right: 1rem;
579
+ width: 3.5rem;
667
580
  }
668
- .eds-top-navigation-item::after {
669
- content: "";
670
- display: block;
671
- bottom: 1rem;
672
- height: 0.1875rem;
673
- width: 0;
674
- margin: 0 auto;
675
- opacity: var(--show-active-line);
676
- background: #ff5959;
677
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
581
+ .eds-pagination-menu__menu-button--open {
582
+ border-color: currentColor;
678
583
  }
679
- .eds-top-navigation-item:focus {
680
- outline-offset: 0.125rem;
584
+ .eds-pagination-menu__menu-button:focus {
681
585
  outline: none;
682
586
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
683
587
  }
684
- .eds-contrast .eds-top-navigation-item:focus {
685
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
588
+ .eds-pagination-menu__menu-list {
589
+ width: 3.5rem;
686
590
  }
687
- .eds-top-navigation-item:hover {
688
- --show-active-line: 1;
591
+
592
+ .eds-pagination__page {
593
+ align-items: center;
594
+ -webkit-appearance: none;
595
+ -moz-appearance: none;
596
+ appearance: none;
597
+ background: transparent;
598
+ border: 0.0625rem solid #d1d3d3;
599
+ border-color: #d1d3d3;
600
+ border-radius: 0.25rem;
601
+ color: inherit;
602
+ cursor: pointer;
603
+ display: flex;
604
+ font-family: inherit;
605
+ font-size: 0.875rem;
606
+ height: 2rem;
607
+ justify-content: center;
608
+ margin: 0 0.125rem;
609
+ padding: 0 0.25rem;
610
+ transition: background 0.1s ease-out, border-color 0.1s ease-out;
611
+ -webkit-user-select: none;
612
+ -moz-user-select: none;
613
+ -ms-user-select: none;
614
+ user-select: none;
615
+ min-width: 2rem;
689
616
  }
690
- .eds-top-navigation-item:hover::after {
617
+ .eds-contrast .eds-pagination__page {
618
+ border-color: #54568c;
619
+ }
620
+ .eds-pagination__page--selected {
621
+ background: #d1d4e3;
622
+ border-color: #181c56;
623
+ color: inherit;
624
+ opacity: 1;
625
+ pointer-events: none;
626
+ }
627
+ .eds-contrast .eds-pagination__page--selected {
628
+ border-color: #ffffff;
629
+ background: #393d79;
630
+ }
631
+ .eds-pagination__page--disabled {
632
+ opacity: 0.5;
633
+ pointer-events: none;
634
+ }
635
+ .eds-pagination__page:hover {
636
+ background-color: #d1d4e3;
637
+ border-color: #d1d4e3;
638
+ }
639
+ .eds-contrast .eds-pagination__page:hover {
640
+ background-color: #393d79;
641
+ border-color: #393d79;
642
+ }
643
+ .eds-pagination__page:focus {
644
+ outline: none;
645
+ border-color: #181c56;
646
+ }
647
+ .eds-contrast .eds-pagination__page:focus {
648
+ border-color: #ffffff;
649
+ }
650
+
651
+ .eds-pagination__ellipsis {
652
+ align-items: baseline;
653
+ cursor: default;
654
+ display: flex;
655
+ font-size: 1.5rem;
656
+ height: 2rem;
657
+ justify-content: center;
658
+ -webkit-user-select: none;
659
+ -moz-user-select: none;
660
+ -ms-user-select: none;
661
+ user-select: none;
691
662
  width: 2rem;
663
+ margin: 0 2px;
692
664
  }
693
- .eds-top-navigation-item--active {
694
- --show-active-line: 1;
665
+
666
+ .eds-pagination__input-wrapper {
667
+ white-space: nowrap;
695
668
  }
696
- .eds-top-navigation-item--active::after {
669
+ .eds-pagination__input-label {
670
+ border-left: 0.0625rem solid #d1d3d3;
671
+ color: #656782;
672
+ font-size: 0.875rem;
673
+ margin-left: 0.5rem;
674
+ padding: 0 1rem;
675
+ }
676
+ .eds-contrast .eds-pagination__input-label {
677
+ border-color: #393d79;
678
+ color: #aeb7e2;
679
+ }
680
+ .eds-pagination__input-field {
681
+ -webkit-appearance: none;
682
+ -moz-appearance: none;
683
+ appearance: none;
684
+ background: transparent;
685
+ border: 0.0625rem solid #d1d3d3;
686
+ border-radius: 0.25rem;
687
+ color: inherit;
688
+ font-family: inherit;
689
+ font-size: 0.875rem;
690
+ height: 2rem;
691
+ text-align: center;
697
692
  width: 2rem;
693
+ }
694
+ .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
695
+ -webkit-appearance: none;
696
+ appearance: none;
697
+ margin: 0;
698
698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.3",
3
+ "version": "4.1.6",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -23,12 +23,12 @@
23
23
  "lint": "dts lint"
24
24
  },
25
25
  "dependencies": {
26
- "@entur/button": "^2.9.0",
27
- "@entur/expand": "^3.3.15",
28
- "@entur/icons": "^4.2.0",
29
- "@entur/layout": "^2.1.7",
30
- "@entur/tokens": "^3.3.2",
31
- "@entur/typography": "^1.6.14",
26
+ "@entur/button": "^2.10.1",
27
+ "@entur/expand": "^3.3.17",
28
+ "@entur/icons": "^4.3.1",
29
+ "@entur/layout": "^2.1.8",
30
+ "@entur/tokens": "^3.4.0",
31
+ "@entur/typography": "^1.6.15",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "@reach/menu-button": "^0.16.1",
34
34
  "classnames": "^2.3.1"
@@ -37,5 +37,5 @@
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0"
39
39
  },
40
- "gitHead": "974289b6579ade4460d12aa877a89e454c983d48"
40
+ "gitHead": "82b89b2f52c8530f8d930edfdc507c809ec85f7c"
41
41
  }