@entur/menu 4.1.22 → 4.1.23
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 +17 -0
- package/dist/styles.css +317 -295
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -40,6 +40,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
40
40
|
**Note:** Version bump only for package @entur/menu
|
|
41
41
|
|
|
42
42
|
## [4.1.14](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.13...@entur/menu@4.1.14) (2022-10-20)
|
|
43
|
+
## [4.1.14-RC.2](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.14-RC.1...@entur/menu@4.1.14-RC.2) (2022-11-22)
|
|
44
|
+
|
|
45
|
+
**Note:** Version bump only for package @entur/menu
|
|
46
|
+
|
|
47
|
+
## [4.1.14-RC.1](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.14-RC.0...@entur/menu@4.1.14-RC.1) (2022-11-21)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @entur/menu
|
|
50
|
+
|
|
51
|
+
## [4.1.14-RC.0](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.14-alpha.1...@entur/menu@4.1.14-RC.0) (2022-11-21)
|
|
52
|
+
|
|
53
|
+
**Note:** Version bump only for package @entur/menu
|
|
54
|
+
|
|
55
|
+
## [4.1.14-alpha.1](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.14-alpha.0...@entur/menu@4.1.14-alpha.1) (2022-10-26)
|
|
56
|
+
|
|
57
|
+
**Note:** Version bump only for package @entur/menu
|
|
58
|
+
|
|
59
|
+
## [4.1.14-alpha.0](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.13...@entur/menu@4.1.14-alpha.0) (2022-10-20)
|
|
43
60
|
|
|
44
61
|
**Note:** Version bump only for package @entur/menu
|
|
45
62
|
|
package/dist/styles.css
CHANGED
|
@@ -3,6 +3,225 @@
|
|
|
3
3
|
--reach-menu-button: 1;
|
|
4
4
|
}/* DO NOT CHANGE!*/
|
|
5
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
+
/* DO NOT CHANGE!*/
|
|
7
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
8
|
+
.eds-side-navigation,
|
|
9
|
+
.eds-side-navigation-group {
|
|
10
|
+
--primary-background-color: #f8f8f8;
|
|
11
|
+
--primary-text-color: #181c56;
|
|
12
|
+
}
|
|
13
|
+
.eds-contrast .eds-side-navigation,
|
|
14
|
+
.eds-contrast .eds-side-navigation-group {
|
|
15
|
+
--primary-background-color: #181c56;
|
|
16
|
+
--primary-text-color: colors-brand-white;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.eds-side-navigation__click-target svg {
|
|
20
|
+
margin-right: 1rem;
|
|
21
|
+
color: #656782;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-self: center;
|
|
24
|
+
position: relative;
|
|
25
|
+
top: 0.075em;
|
|
26
|
+
}
|
|
27
|
+
.eds-contrast .eds-side-navigation__click-target svg {
|
|
28
|
+
color: #aeb7e2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.eds-side-navigation__click-target[disabled] svg {
|
|
32
|
+
color: #656782;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.eds-side-navigation {
|
|
36
|
+
--padding-vertical: 1rem;
|
|
37
|
+
--padding-horizontal: 2.5rem;
|
|
38
|
+
background-color: var(--primary-background-color);
|
|
39
|
+
color: var(--primary-text-color);
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin: 0;
|
|
42
|
+
list-style: none;
|
|
43
|
+
position: relative;
|
|
44
|
+
transition: max-width ease-in-out 0.2s;
|
|
45
|
+
}
|
|
46
|
+
.eds-side-navigation__collapse-button {
|
|
47
|
+
position: absolute;
|
|
48
|
+
right: -0.75rem;
|
|
49
|
+
height: 1.5rem;
|
|
50
|
+
width: 1.5rem;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
55
|
+
border: 0.0625rem solid #d1d3d3;
|
|
56
|
+
color: inherit;
|
|
57
|
+
padding: 0;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
border: none;
|
|
62
|
+
z-index: 10;
|
|
63
|
+
}
|
|
64
|
+
.eds-contrast .eds-side-navigation__collapse-button {
|
|
65
|
+
background: #393d79;
|
|
66
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
67
|
+
border-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
.eds-side-navigation__collapse-button svg {
|
|
70
|
+
margin: 0;
|
|
71
|
+
top: 0;
|
|
72
|
+
color: #181c56;
|
|
73
|
+
}
|
|
74
|
+
.eds-contrast .eds-side-navigation__collapse-button svg {
|
|
75
|
+
color: #ffffff;
|
|
76
|
+
}
|
|
77
|
+
.eds-side-navigation__collapse-button:focus {
|
|
78
|
+
outline: 2px solid #181c56;
|
|
79
|
+
}
|
|
80
|
+
.eds-contrast .eds-side-navigation__collapse-button:focus {
|
|
81
|
+
outline: 2px solid #ffffff;
|
|
82
|
+
}
|
|
83
|
+
@media screen and (min-width: 50rem) {
|
|
84
|
+
.eds-side-navigation {
|
|
85
|
+
max-width: 26rem;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.eds-side-navigation--small {
|
|
89
|
+
--padding-vertical: calc(0.5rem + 0.1875rem);
|
|
90
|
+
}
|
|
91
|
+
.eds-side-navigation .eds-side-navigation {
|
|
92
|
+
background-color: #f3f3f3;
|
|
93
|
+
}
|
|
94
|
+
.eds-contrast .eds-side-navigation .eds-side-navigation {
|
|
95
|
+
background-color: #292b6a;
|
|
96
|
+
}
|
|
97
|
+
.eds-side-navigation--collapsed {
|
|
98
|
+
max-width: 80px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
|
|
102
|
+
padding-left: 3.5rem;
|
|
103
|
+
box-shadow: none;
|
|
104
|
+
}
|
|
105
|
+
.eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
|
|
106
|
+
background-color: #d1d4e3;
|
|
107
|
+
}
|
|
108
|
+
.eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
|
|
109
|
+
background-color: #54568c;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.eds-side-navigation__click-target {
|
|
113
|
+
-webkit-appearance: none;
|
|
114
|
+
-moz-appearance: none;
|
|
115
|
+
appearance: none;
|
|
116
|
+
background: none;
|
|
117
|
+
border: 0;
|
|
118
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
119
|
+
border-radius: 0;
|
|
120
|
+
color: var(--primary-text-color);
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
display: block;
|
|
123
|
+
font-family: inherit;
|
|
124
|
+
font-size: inherit;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
line-height: inherit;
|
|
127
|
+
padding: var(--padding-vertical) 2.5rem;
|
|
128
|
+
padding-left: 2.5rem;
|
|
129
|
+
transition: padding 0.2s ease-in-out;
|
|
130
|
+
text-align: left;
|
|
131
|
+
text-decoration: none;
|
|
132
|
+
width: 100%;
|
|
133
|
+
}
|
|
134
|
+
.eds-contrast .eds-side-navigation__click-target {
|
|
135
|
+
border-color: #292b6a;
|
|
136
|
+
}
|
|
137
|
+
.eds-side-navigation--collapsed .eds-side-navigation__click-target {
|
|
138
|
+
padding-left: 2rem;
|
|
139
|
+
}
|
|
140
|
+
.eds-side-navigation__click-target--active {
|
|
141
|
+
box-shadow: inset 0.25rem 0 0 #181c56;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
}
|
|
144
|
+
.eds-contrast .eds-side-navigation__click-target--active {
|
|
145
|
+
box-shadow: inset 0.25rem 0 0 #ff5959;
|
|
146
|
+
}
|
|
147
|
+
.eds-side-navigation__click-target[disabled] {
|
|
148
|
+
cursor: not-allowed;
|
|
149
|
+
color: #656782;
|
|
150
|
+
}
|
|
151
|
+
.eds-side-navigation__click-target:not([disabled]):hover {
|
|
152
|
+
background-color: #d1d4e3;
|
|
153
|
+
}
|
|
154
|
+
.eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
|
|
155
|
+
background-color: #393d79;
|
|
156
|
+
}
|
|
157
|
+
.eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
|
|
158
|
+
outline: 2px solid #181c56;
|
|
159
|
+
outline-offset: -2px;
|
|
160
|
+
background: #ebebf1;
|
|
161
|
+
}
|
|
162
|
+
.eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
|
|
163
|
+
background-color: #54568c;
|
|
164
|
+
outline: 2px solid #ffffff;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.eds-side-navigation-group {
|
|
168
|
+
background-color: var(--primary-background-color);
|
|
169
|
+
color: var(--primary-text-color);
|
|
170
|
+
}
|
|
171
|
+
.eds-side-navigation-group + .eds-side-navigation-group {
|
|
172
|
+
padding-top: 0.5rem;
|
|
173
|
+
}
|
|
174
|
+
@media screen and (min-width: 50rem) {
|
|
175
|
+
.eds-side-navigation-group {
|
|
176
|
+
max-width: 26rem;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.eds-side-navigation-group__trigger {
|
|
181
|
+
align-items: center;
|
|
182
|
+
-webkit-appearance: none;
|
|
183
|
+
-moz-appearance: none;
|
|
184
|
+
appearance: none;
|
|
185
|
+
background: none;
|
|
186
|
+
border: none;
|
|
187
|
+
border-radius: 0;
|
|
188
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
189
|
+
color: #656782;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
display: flex;
|
|
192
|
+
font-size: 0.875rem;
|
|
193
|
+
font-family: inherit;
|
|
194
|
+
font-weight: 500;
|
|
195
|
+
height: 3rem;
|
|
196
|
+
justify-content: space-between;
|
|
197
|
+
letter-spacing: 1px;
|
|
198
|
+
line-height: 1.25rem;
|
|
199
|
+
padding: 0.75rem 0 0.75rem 2.5rem;
|
|
200
|
+
margin: 0;
|
|
201
|
+
text-transform: uppercase;
|
|
202
|
+
transition: padding 0.2s ease-in-out;
|
|
203
|
+
width: 100%;
|
|
204
|
+
}
|
|
205
|
+
.eds-contrast .eds-side-navigation-group__trigger {
|
|
206
|
+
color: #aeb7e2;
|
|
207
|
+
border-color: #292b6a;
|
|
208
|
+
}
|
|
209
|
+
.eds-side-navigation-group__trigger-icon {
|
|
210
|
+
margin-right: 0.75rem;
|
|
211
|
+
}
|
|
212
|
+
.eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
|
|
213
|
+
margin-right: 2.5rem;
|
|
214
|
+
}
|
|
215
|
+
.eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
|
|
216
|
+
padding-left: 2rem;
|
|
217
|
+
}
|
|
218
|
+
.eds-side-navigation-group__trigger:focus {
|
|
219
|
+
outline: 2px solid #181c56;
|
|
220
|
+
}
|
|
221
|
+
.eds-contrast .eds-side-navigation-group__trigger:focus {
|
|
222
|
+
outline: 2px solid #ffffff;
|
|
223
|
+
}/* DO NOT CHANGE!*/
|
|
224
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
225
|
.eds-breadcrumb {
|
|
7
226
|
list-style: none;
|
|
8
227
|
margin: 0;
|
|
@@ -29,13 +248,22 @@
|
|
|
29
248
|
background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
|
|
30
249
|
}
|
|
31
250
|
.eds-breadcrumb__link:hover {
|
|
32
|
-
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
251
|
+
-webkit-animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
252
|
+
animation: eds-breadcrumb-underline 0.3s ease-in;
|
|
33
253
|
}
|
|
34
254
|
.eds-breadcrumb__link:focus {
|
|
35
255
|
outline: none;
|
|
36
256
|
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
37
257
|
outline-offset: 0.125rem;
|
|
38
258
|
}
|
|
259
|
+
@-webkit-keyframes eds-breadcrumb-underline {
|
|
260
|
+
from {
|
|
261
|
+
background-size: 0% 0.125rem;
|
|
262
|
+
}
|
|
263
|
+
to {
|
|
264
|
+
background-size: 100% 0.125rem;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
39
267
|
@keyframes eds-breadcrumb-underline {
|
|
40
268
|
from {
|
|
41
269
|
background-size: 0% 0.125rem;
|
|
@@ -57,6 +285,7 @@
|
|
|
57
285
|
position: relative;
|
|
58
286
|
padding: 1rem;
|
|
59
287
|
min-width: 5rem;
|
|
288
|
+
width: -webkit-fit-content;
|
|
60
289
|
width: -moz-fit-content;
|
|
61
290
|
width: fit-content;
|
|
62
291
|
text-align: center;
|
|
@@ -96,112 +325,27 @@
|
|
|
96
325
|
width: 2rem;
|
|
97
326
|
}/* DO NOT CHANGE!*/
|
|
98
327
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
99
|
-
.eds-
|
|
328
|
+
.eds-stepper {
|
|
329
|
+
display: flex;
|
|
330
|
+
flex-direction: row;
|
|
331
|
+
}
|
|
332
|
+
.eds-stepper__item__container {
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
font-family: inherit;
|
|
335
|
+
text-transform: none;
|
|
100
336
|
-webkit-appearance: none;
|
|
101
337
|
-moz-appearance: none;
|
|
102
338
|
appearance: none;
|
|
339
|
+
background: none;
|
|
103
340
|
border: none;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
line-height: 1.375rem;
|
|
113
|
-
text-align: left;
|
|
114
|
-
padding: 0.75rem 1rem;
|
|
115
|
-
opacity: 1;
|
|
116
|
-
}
|
|
117
|
-
.eds-contrast .eds-overflow-menu__item {
|
|
118
|
-
color: #181c56;
|
|
119
|
-
}
|
|
120
|
-
.eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
121
|
-
background: #e9e9e9;
|
|
122
|
-
color: #949494;
|
|
123
|
-
}
|
|
124
|
-
.eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
125
|
-
background: #e9e9e9;
|
|
126
|
-
color: #949494;
|
|
127
|
-
}
|
|
128
|
-
.eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
|
|
129
|
-
cursor: not-allowed;
|
|
130
|
-
background: #e9e9e9;
|
|
131
|
-
color: #949494;
|
|
132
|
-
}
|
|
133
|
-
.eds-overflow-menu__item .eds-icon {
|
|
134
|
-
margin-right: 0.75rem;
|
|
135
|
-
}
|
|
136
|
-
.eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
|
|
137
|
-
background: #d1d4e3;
|
|
138
|
-
}
|
|
139
|
-
.eds-overflow-menu__item:focus {
|
|
140
|
-
outline: none;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.eds-overflow-menu__item + .eds-overflow-menu__item {
|
|
144
|
-
border-top: 0.0625rem solid #e9e9e9;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list] {
|
|
148
|
-
border: 0.0625rem solid #e9e9e9;
|
|
149
|
-
border-radius: 0.25rem;
|
|
150
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
}
|
|
153
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
|
|
154
|
-
outline: none;
|
|
155
|
-
}
|
|
156
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
|
|
157
|
-
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.eds-overflow-menu__menu-list[data-reach-menu-list],
|
|
161
|
-
.eds-overflow-menu__menu-list[data-reach-menu-items] {
|
|
162
|
-
animation: slide-in 0.2s ease-in-out;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@keyframes slide-in {
|
|
166
|
-
0% {
|
|
167
|
-
opacity: 0;
|
|
168
|
-
transform: translateY(0.5rem);
|
|
169
|
-
}
|
|
170
|
-
100% {
|
|
171
|
-
opacity: 1;
|
|
172
|
-
transform: translateY(0);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
[data-reach-menu-popover] {
|
|
176
|
-
position: absolute;
|
|
177
|
-
z-index: 30;
|
|
178
|
-
}
|
|
179
|
-
[data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
|
|
180
|
-
position: relative;
|
|
181
|
-
right: calc(100% - 2rem);
|
|
182
|
-
}/* DO NOT CHANGE!*/
|
|
183
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
184
|
-
.eds-stepper {
|
|
185
|
-
display: flex;
|
|
186
|
-
flex-direction: row;
|
|
187
|
-
}
|
|
188
|
-
.eds-stepper__item__container {
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
font-family: inherit;
|
|
191
|
-
text-transform: none;
|
|
192
|
-
-webkit-appearance: none;
|
|
193
|
-
-moz-appearance: none;
|
|
194
|
-
appearance: none;
|
|
195
|
-
background: none;
|
|
196
|
-
border: none;
|
|
197
|
-
margin: 0;
|
|
198
|
-
padding: 0;
|
|
199
|
-
align-items: inherit;
|
|
200
|
-
display: flex;
|
|
201
|
-
flex-grow: 1;
|
|
202
|
-
flex-basis: 0;
|
|
203
|
-
flex-direction: column;
|
|
204
|
-
margin-left: 0.25rem;
|
|
341
|
+
margin: 0;
|
|
342
|
+
padding: 0;
|
|
343
|
+
align-items: inherit;
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-grow: 1;
|
|
346
|
+
flex-basis: 0;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
margin-left: 0.25rem;
|
|
205
349
|
}
|
|
206
350
|
.eds-stepper__item__container--non-interactive {
|
|
207
351
|
cursor: default;
|
|
@@ -456,221 +600,99 @@
|
|
|
456
600
|
margin: 0;
|
|
457
601
|
}/* DO NOT CHANGE!*/
|
|
458
602
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
459
|
-
|
|
460
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
461
|
-
.eds-side-navigation,
|
|
462
|
-
.eds-side-navigation-group {
|
|
463
|
-
--primary-background-color: #f8f8f8;
|
|
464
|
-
--primary-text-color: #181c56;
|
|
465
|
-
}
|
|
466
|
-
.eds-contrast .eds-side-navigation,
|
|
467
|
-
.eds-contrast .eds-side-navigation-group {
|
|
468
|
-
--primary-background-color: #181c56;
|
|
469
|
-
--primary-text-color: colors-brand-white;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.eds-side-navigation__click-target svg {
|
|
473
|
-
margin-right: 1rem;
|
|
474
|
-
color: #656782;
|
|
475
|
-
display: inline-flex;
|
|
476
|
-
align-self: center;
|
|
477
|
-
position: relative;
|
|
478
|
-
top: 0.075em;
|
|
479
|
-
}
|
|
480
|
-
.eds-contrast .eds-side-navigation__click-target svg {
|
|
481
|
-
color: #aeb7e2;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.eds-side-navigation__click-target[disabled] svg {
|
|
485
|
-
color: #656782;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.eds-side-navigation {
|
|
489
|
-
--padding-vertical: 1rem;
|
|
490
|
-
--padding-horizontal: 2.5rem;
|
|
491
|
-
background-color: var(--primary-background-color);
|
|
492
|
-
color: var(--primary-text-color);
|
|
493
|
-
padding: 0;
|
|
494
|
-
margin: 0;
|
|
495
|
-
list-style: none;
|
|
496
|
-
position: relative;
|
|
497
|
-
transition: max-width ease-in-out 0.2s;
|
|
498
|
-
}
|
|
499
|
-
.eds-side-navigation__collapse-button {
|
|
500
|
-
position: absolute;
|
|
501
|
-
right: -0.75rem;
|
|
502
|
-
height: 1.5rem;
|
|
503
|
-
width: 1.5rem;
|
|
504
|
-
border-radius: 50%;
|
|
505
|
-
cursor: pointer;
|
|
506
|
-
background: #ffffff;
|
|
507
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
508
|
-
border: 0.0625rem solid #d1d3d3;
|
|
509
|
-
color: inherit;
|
|
510
|
-
padding: 0;
|
|
511
|
-
display: flex;
|
|
512
|
-
align-items: center;
|
|
513
|
-
justify-content: center;
|
|
514
|
-
border: none;
|
|
515
|
-
z-index: 10;
|
|
516
|
-
}
|
|
517
|
-
.eds-contrast .eds-side-navigation__collapse-button {
|
|
518
|
-
background: #393d79;
|
|
519
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
520
|
-
border-color: transparent;
|
|
521
|
-
}
|
|
522
|
-
.eds-side-navigation__collapse-button svg {
|
|
523
|
-
margin: 0;
|
|
524
|
-
top: 0;
|
|
525
|
-
color: #181c56;
|
|
526
|
-
}
|
|
527
|
-
.eds-contrast .eds-side-navigation__collapse-button svg {
|
|
528
|
-
color: #ffffff;
|
|
529
|
-
}
|
|
530
|
-
.eds-side-navigation__collapse-button:focus {
|
|
531
|
-
outline: 2px solid #181c56;
|
|
532
|
-
}
|
|
533
|
-
.eds-contrast .eds-side-navigation__collapse-button:focus {
|
|
534
|
-
outline: 2px solid #ffffff;
|
|
535
|
-
}
|
|
536
|
-
@media screen and (min-width: 50rem) {
|
|
537
|
-
.eds-side-navigation {
|
|
538
|
-
max-width: 26rem;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
.eds-side-navigation--small {
|
|
542
|
-
--padding-vertical: calc(0.5rem + 0.1875rem);
|
|
543
|
-
}
|
|
544
|
-
.eds-side-navigation .eds-side-navigation {
|
|
545
|
-
background-color: #f3f3f3;
|
|
546
|
-
}
|
|
547
|
-
.eds-contrast .eds-side-navigation .eds-side-navigation {
|
|
548
|
-
background-color: #292b6a;
|
|
549
|
-
}
|
|
550
|
-
.eds-side-navigation--collapsed {
|
|
551
|
-
max-width: 80px;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
|
|
555
|
-
padding-left: 3.5rem;
|
|
556
|
-
box-shadow: none;
|
|
557
|
-
}
|
|
558
|
-
.eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
|
|
559
|
-
background-color: #d1d4e3;
|
|
560
|
-
}
|
|
561
|
-
.eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
|
|
562
|
-
background-color: #54568c;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.eds-side-navigation__click-target {
|
|
603
|
+
.eds-overflow-menu__item {
|
|
566
604
|
-webkit-appearance: none;
|
|
567
605
|
-moz-appearance: none;
|
|
568
606
|
appearance: none;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
border-radius: 0;
|
|
607
|
+
border: none;
|
|
608
|
+
font-size: 0.875rem;
|
|
609
|
+
font-family: inherit;
|
|
573
610
|
color: var(--primary-text-color);
|
|
574
|
-
|
|
611
|
+
background: #f8f8f8;
|
|
575
612
|
display: block;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
font-weight: 500;
|
|
579
|
-
line-height: inherit;
|
|
580
|
-
padding: var(--padding-vertical) 2.5rem;
|
|
581
|
-
padding-left: 2.5rem;
|
|
582
|
-
transition: padding 0.2s ease-in-out;
|
|
583
|
-
text-align: left;
|
|
584
|
-
text-decoration: none;
|
|
613
|
+
height: 3rem;
|
|
614
|
+
cursor: pointer;
|
|
585
615
|
width: 100%;
|
|
616
|
+
line-height: 1.375rem;
|
|
617
|
+
text-align: left;
|
|
618
|
+
padding: 0.75rem 1rem;
|
|
619
|
+
opacity: 1;
|
|
586
620
|
}
|
|
587
|
-
.eds-contrast .eds-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
.eds-side-navigation--collapsed .eds-side-navigation__click-target {
|
|
591
|
-
padding-left: 2rem;
|
|
621
|
+
.eds-contrast .eds-overflow-menu__item {
|
|
622
|
+
color: #181c56;
|
|
592
623
|
}
|
|
593
|
-
.eds-
|
|
594
|
-
|
|
595
|
-
|
|
624
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
625
|
+
background: #e9e9e9;
|
|
626
|
+
color: #949494;
|
|
596
627
|
}
|
|
597
|
-
.eds-contrast .eds-
|
|
598
|
-
|
|
628
|
+
.eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
|
|
629
|
+
background: #e9e9e9;
|
|
630
|
+
color: #949494;
|
|
599
631
|
}
|
|
600
|
-
.eds-
|
|
632
|
+
.eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
|
|
601
633
|
cursor: not-allowed;
|
|
602
|
-
|
|
634
|
+
background: #e9e9e9;
|
|
635
|
+
color: #949494;
|
|
603
636
|
}
|
|
604
|
-
.eds-
|
|
605
|
-
|
|
637
|
+
.eds-overflow-menu__item .eds-icon {
|
|
638
|
+
margin-right: 0.75rem;
|
|
606
639
|
}
|
|
607
|
-
.eds-
|
|
608
|
-
background
|
|
640
|
+
.eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
|
|
641
|
+
background: #d1d4e3;
|
|
609
642
|
}
|
|
610
|
-
.eds-
|
|
611
|
-
outline:
|
|
612
|
-
outline-offset: -2px;
|
|
613
|
-
background: #ebebf1;
|
|
643
|
+
.eds-overflow-menu__item:focus {
|
|
644
|
+
outline: none;
|
|
614
645
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
646
|
+
|
|
647
|
+
.eds-overflow-menu__item + .eds-overflow-menu__item {
|
|
648
|
+
border-top: 0.0625rem solid #e9e9e9;
|
|
618
649
|
}
|
|
619
650
|
|
|
620
|
-
.eds-
|
|
621
|
-
|
|
622
|
-
|
|
651
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list] {
|
|
652
|
+
border: 0.0625rem solid #e9e9e9;
|
|
653
|
+
border-radius: 0.25rem;
|
|
654
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
655
|
+
overflow: hidden;
|
|
623
656
|
}
|
|
624
|
-
.eds-
|
|
625
|
-
|
|
657
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
|
|
658
|
+
outline: none;
|
|
626
659
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
max-width: 26rem;
|
|
630
|
-
}
|
|
660
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
|
|
661
|
+
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
631
662
|
}
|
|
632
663
|
|
|
633
|
-
.eds-
|
|
634
|
-
|
|
635
|
-
-webkit-
|
|
636
|
-
|
|
637
|
-
appearance: none;
|
|
638
|
-
background: none;
|
|
639
|
-
border: none;
|
|
640
|
-
border-radius: 0;
|
|
641
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
642
|
-
color: #656782;
|
|
643
|
-
cursor: pointer;
|
|
644
|
-
display: flex;
|
|
645
|
-
font-size: 0.875rem;
|
|
646
|
-
font-family: inherit;
|
|
647
|
-
font-weight: 500;
|
|
648
|
-
height: 3rem;
|
|
649
|
-
justify-content: space-between;
|
|
650
|
-
letter-spacing: 1px;
|
|
651
|
-
line-height: 1.25rem;
|
|
652
|
-
padding: 0.75rem 0 0.75rem 2.5rem;
|
|
653
|
-
margin: 0;
|
|
654
|
-
text-transform: uppercase;
|
|
655
|
-
transition: padding 0.2s ease-in-out;
|
|
656
|
-
width: 100%;
|
|
657
|
-
}
|
|
658
|
-
.eds-contrast .eds-side-navigation-group__trigger {
|
|
659
|
-
color: #aeb7e2;
|
|
660
|
-
border-color: #292b6a;
|
|
661
|
-
}
|
|
662
|
-
.eds-side-navigation-group__trigger-icon {
|
|
663
|
-
margin-right: 0.75rem;
|
|
664
|
+
.eds-overflow-menu__menu-list[data-reach-menu-list],
|
|
665
|
+
.eds-overflow-menu__menu-list[data-reach-menu-items] {
|
|
666
|
+
-webkit-animation: slide-in 0.2s ease-in-out;
|
|
667
|
+
animation: slide-in 0.2s ease-in-out;
|
|
664
668
|
}
|
|
665
|
-
|
|
666
|
-
|
|
669
|
+
|
|
670
|
+
@-webkit-keyframes slide-in {
|
|
671
|
+
0% {
|
|
672
|
+
opacity: 0;
|
|
673
|
+
transform: translateY(0.5rem);
|
|
674
|
+
}
|
|
675
|
+
100% {
|
|
676
|
+
opacity: 1;
|
|
677
|
+
transform: translateY(0);
|
|
678
|
+
}
|
|
667
679
|
}
|
|
668
|
-
|
|
669
|
-
|
|
680
|
+
|
|
681
|
+
@keyframes slide-in {
|
|
682
|
+
0% {
|
|
683
|
+
opacity: 0;
|
|
684
|
+
transform: translateY(0.5rem);
|
|
685
|
+
}
|
|
686
|
+
100% {
|
|
687
|
+
opacity: 1;
|
|
688
|
+
transform: translateY(0);
|
|
689
|
+
}
|
|
670
690
|
}
|
|
671
|
-
|
|
672
|
-
|
|
691
|
+
[data-reach-menu-popover] {
|
|
692
|
+
position: absolute;
|
|
693
|
+
z-index: 30;
|
|
673
694
|
}
|
|
674
|
-
|
|
675
|
-
|
|
695
|
+
[data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
|
|
696
|
+
position: relative;
|
|
697
|
+
right: calc(100% - 2rem);
|
|
676
698
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/menu",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.23",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/menu.esm.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"lint": "dts lint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@entur/a11y": "^0.2.
|
|
27
|
-
"@entur/button": "^2.10.
|
|
28
|
-
"@entur/expand": "^3.3.
|
|
29
|
-
"@entur/icons": "^5.4.
|
|
30
|
-
"@entur/layout": "^2.1.
|
|
26
|
+
"@entur/a11y": "^0.2.54",
|
|
27
|
+
"@entur/button": "^2.10.9",
|
|
28
|
+
"@entur/expand": "^3.3.30",
|
|
29
|
+
"@entur/icons": "^5.4.2",
|
|
30
|
+
"@entur/layout": "^2.1.16",
|
|
31
31
|
"@entur/tokens": "^3.4.4",
|
|
32
|
-
"@entur/typography": "^1.7.
|
|
33
|
-
"@entur/utils": "^0.
|
|
32
|
+
"@entur/typography": "^1.7.5",
|
|
33
|
+
"@entur/utils": "^0.5.0",
|
|
34
34
|
"@reach/menu-button": "^0.16.1",
|
|
35
35
|
"@reach/polymorphic": "0.18.0",
|
|
36
36
|
"classnames": "^2.3.1"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react": ">=16.8.0",
|
|
40
40
|
"react-dom": ">=16.8.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "36772ae4f2d8375622acff19736c07d15435cb95"
|
|
43
43
|
}
|