@entur/menu 4.1.13 → 4.1.14-alpha.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
6
10
  ## [4.1.13](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.12...@entur/menu@4.1.13) (2022-10-12)
7
11
 
8
12
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -57,6 +57,152 @@
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-top-navigation-item {
61
+ --show-active-line: 0;
62
+ display: inline-block;
63
+ cursor: pointer;
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;
73
+ font-family: inherit;
74
+ font-size: 1rem;
75
+ font-weight: 600;
76
+ }
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;
87
+ }
88
+ .eds-top-navigation-item:focus {
89
+ outline-offset: 0.125rem;
90
+ outline: none;
91
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
92
+ }
93
+ .eds-contrast .eds-top-navigation-item:focus {
94
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
95
+ }
96
+ .eds-top-navigation-item:hover {
97
+ --show-active-line: 1;
98
+ }
99
+ .eds-top-navigation-item:hover::after {
100
+ width: 2rem;
101
+ }
102
+ .eds-top-navigation-item--active {
103
+ --show-active-line: 1;
104
+ }
105
+ .eds-top-navigation-item--active::after {
106
+ width: 2rem;
107
+ }/* DO NOT CHANGE!*/
108
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
109
+ .eds-overflow-menu__item {
110
+ -webkit-appearance: none;
111
+ -moz-appearance: none;
112
+ appearance: none;
113
+ border: none;
114
+ font-size: 0.875rem;
115
+ font-family: inherit;
116
+ color: var(--primary-text-color);
117
+ background: #f8f8f8;
118
+ display: block;
119
+ height: 3rem;
120
+ cursor: pointer;
121
+ width: 100%;
122
+ line-height: 1.375rem;
123
+ text-align: left;
124
+ padding: 0.75rem 1rem;
125
+ opacity: 1;
126
+ }
127
+ .eds-contrast .eds-overflow-menu__item {
128
+ color: #181c56;
129
+ }
130
+ .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
131
+ background: #e9e9e9;
132
+ color: #949494;
133
+ }
134
+ .eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
135
+ background: #e9e9e9;
136
+ color: #949494;
137
+ }
138
+ .eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
139
+ cursor: not-allowed;
140
+ background: #e9e9e9;
141
+ color: #949494;
142
+ }
143
+ .eds-overflow-menu__item .eds-icon {
144
+ margin-right: 0.75rem;
145
+ }
146
+ .eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
147
+ background: #d1d4e3;
148
+ }
149
+ .eds-overflow-menu__item:focus {
150
+ outline: none;
151
+ }
152
+
153
+ .eds-overflow-menu__item + .eds-overflow-menu__item {
154
+ border-top: 0.0625rem solid #e9e9e9;
155
+ }
156
+
157
+ .eds-overflow-menu__menu-list[data-reach-menu-list] {
158
+ border: 0.0625rem solid #e9e9e9;
159
+ border-radius: 0.25rem;
160
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
161
+ overflow: hidden;
162
+ }
163
+ .eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
164
+ outline: none;
165
+ }
166
+ .eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
167
+ box-shadow: 0 0.0625rem 0.1875rem #393d79;
168
+ }
169
+
170
+ .eds-overflow-menu__menu-list[data-reach-menu-list],
171
+ .eds-overflow-menu__menu-list[data-reach-menu-items] {
172
+ -webkit-animation: slide-in 0.2s ease-in-out;
173
+ animation: slide-in 0.2s ease-in-out;
174
+ }
175
+
176
+ @-webkit-keyframes slide-in {
177
+ 0% {
178
+ opacity: 0;
179
+ transform: translateY(0.5rem);
180
+ }
181
+ 100% {
182
+ opacity: 1;
183
+ transform: translateY(0);
184
+ }
185
+ }
186
+
187
+ @keyframes slide-in {
188
+ 0% {
189
+ opacity: 0;
190
+ transform: translateY(0.5rem);
191
+ }
192
+ 100% {
193
+ opacity: 1;
194
+ transform: translateY(0);
195
+ }
196
+ }
197
+ [data-reach-menu-popover] {
198
+ position: absolute;
199
+ z-index: 30;
200
+ }
201
+ [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
202
+ position: relative;
203
+ right: calc(100% - 2rem);
204
+ }/* DO NOT CHANGE!*/
205
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
206
  /* DO NOT CHANGE!*/
61
207
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
208
  .eds-side-navigation,
@@ -276,152 +422,6 @@
276
422
  outline: 2px solid #ffffff;
277
423
  }/* DO NOT CHANGE!*/
278
424
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
279
- .eds-top-navigation-item {
280
- --show-active-line: 0;
281
- display: inline-block;
282
- cursor: pointer;
283
- color: inherit;
284
- text-decoration: none;
285
- position: relative;
286
- padding: 1rem;
287
- min-width: 5rem;
288
- width: -webkit-fit-content;
289
- width: -moz-fit-content;
290
- width: fit-content;
291
- text-align: center;
292
- font-family: inherit;
293
- font-size: 1rem;
294
- font-weight: 600;
295
- }
296
- .eds-top-navigation-item::after {
297
- content: "";
298
- display: block;
299
- bottom: 1rem;
300
- height: 0.1875rem;
301
- width: 0;
302
- margin: 0 auto;
303
- opacity: var(--show-active-line);
304
- background: #ff5959;
305
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
306
- }
307
- .eds-top-navigation-item:focus {
308
- outline-offset: 0.125rem;
309
- outline: none;
310
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
311
- }
312
- .eds-contrast .eds-top-navigation-item:focus {
313
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
314
- }
315
- .eds-top-navigation-item:hover {
316
- --show-active-line: 1;
317
- }
318
- .eds-top-navigation-item:hover::after {
319
- width: 2rem;
320
- }
321
- .eds-top-navigation-item--active {
322
- --show-active-line: 1;
323
- }
324
- .eds-top-navigation-item--active::after {
325
- width: 2rem;
326
- }/* DO NOT CHANGE!*/
327
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
328
- .eds-overflow-menu__item {
329
- -webkit-appearance: none;
330
- -moz-appearance: none;
331
- appearance: none;
332
- border: none;
333
- font-size: 0.875rem;
334
- font-family: inherit;
335
- color: var(--primary-text-color);
336
- background: #f8f8f8;
337
- display: block;
338
- height: 3rem;
339
- cursor: pointer;
340
- width: 100%;
341
- line-height: 1.375rem;
342
- text-align: left;
343
- padding: 0.75rem 1rem;
344
- opacity: 1;
345
- }
346
- .eds-contrast .eds-overflow-menu__item {
347
- color: #181c56;
348
- }
349
- .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
350
- background: #e9e9e9;
351
- color: #949494;
352
- }
353
- .eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
354
- background: #e9e9e9;
355
- color: #949494;
356
- }
357
- .eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
358
- cursor: not-allowed;
359
- background: #e9e9e9;
360
- color: #949494;
361
- }
362
- .eds-overflow-menu__item .eds-icon {
363
- margin-right: 0.75rem;
364
- }
365
- .eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
366
- background: #d1d4e3;
367
- }
368
- .eds-overflow-menu__item:focus {
369
- outline: none;
370
- }
371
-
372
- .eds-overflow-menu__item + .eds-overflow-menu__item {
373
- border-top: 0.0625rem solid #e9e9e9;
374
- }
375
-
376
- .eds-overflow-menu__menu-list[data-reach-menu-list] {
377
- border: 0.0625rem solid #e9e9e9;
378
- border-radius: 0.25rem;
379
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
380
- overflow: hidden;
381
- }
382
- .eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
383
- outline: none;
384
- }
385
- .eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
386
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
387
- }
388
-
389
- .eds-overflow-menu__menu-list[data-reach-menu-list],
390
- .eds-overflow-menu__menu-list[data-reach-menu-items] {
391
- -webkit-animation: slide-in 0.2s ease-in-out;
392
- animation: slide-in 0.2s ease-in-out;
393
- }
394
-
395
- @-webkit-keyframes slide-in {
396
- 0% {
397
- opacity: 0;
398
- transform: translateY(0.5rem);
399
- }
400
- 100% {
401
- opacity: 1;
402
- transform: translateY(0);
403
- }
404
- }
405
-
406
- @keyframes slide-in {
407
- 0% {
408
- opacity: 0;
409
- transform: translateY(0.5rem);
410
- }
411
- 100% {
412
- opacity: 1;
413
- transform: translateY(0);
414
- }
415
- }
416
- [data-reach-menu-popover] {
417
- position: absolute;
418
- z-index: 30;
419
- }
420
- [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
421
- position: relative;
422
- right: calc(100% - 2rem);
423
- }/* DO NOT CHANGE!*/
424
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
425
425
  .eds-stepper {
426
426
  display: flex;
427
427
  flex-direction: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.13",
3
+ "version": "4.1.14-alpha.0",
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.49",
27
- "@entur/button": "^2.10.4",
28
- "@entur/expand": "^3.3.21",
29
- "@entur/icons": "^5.0.0",
30
- "@entur/layout": "^2.1.11",
26
+ "@entur/a11y": "^0.2.50-alpha.0",
27
+ "@entur/button": "^2.10.5-alpha.0",
28
+ "@entur/expand": "^3.3.22-alpha.0",
29
+ "@entur/icons": "^5.0.1-alpha.0",
30
+ "@entur/layout": "^2.1.12-alpha.0",
31
31
  "@entur/tokens": "^3.4.1",
32
- "@entur/typography": "^1.7.0",
33
- "@entur/utils": "^0.4.5",
32
+ "@entur/typography": "^1.7.1-alpha.0",
33
+ "@entur/utils": "^0.4.6-alpha.0",
34
34
  "@reach/menu-button": "^0.16.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
@@ -38,5 +38,5 @@
38
38
  "react": ">=16.8.0",
39
39
  "react-dom": ">=16.8.0"
40
40
  },
41
- "gitHead": "e6da59550f3ace8e356155d60ce72d480aa17d51"
41
+ "gitHead": "497df350c3af082f714f461c7089a1fec1b4f8c9"
42
42
  }