@entur/menu 4.1.1 → 4.1.4

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.4](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.3...@entur/menu@4.1.4) (2022-06-28)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
10
+ ## [4.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.2...@entur/menu@4.1.3) (2022-06-24)
11
+
12
+ **Note:** Version bump only for package @entur/menu
13
+
14
+ ## [4.1.2](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.1...@entur/menu@4.1.2) (2022-06-02)
15
+
16
+ **Note:** Version bump only for package @entur/menu
17
+
6
18
  ## [4.1.1](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.0...@entur/menu@4.1.1) (2022-05-13)
7
19
 
8
20
  ### Bug Fixes
package/dist/styles.css CHANGED
@@ -57,6 +57,216 @@
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-pagination {
110
+ align-items: center;
111
+ display: flex;
112
+ flex-wrap: wrap;
113
+ row-gap: 0.75rem;
114
+ justify-content: space-between;
115
+ }
116
+ .eds-pagination__results {
117
+ align-items: center;
118
+ display: flex;
119
+ flex: 1;
120
+ justify-content: flex-start;
121
+ }
122
+ .eds-pagination__results-label {
123
+ margin-right: 0.5rem;
124
+ }
125
+ .eds-pagination__controls {
126
+ align-items: center;
127
+ display: flex;
128
+ justify-content: center;
129
+ }
130
+ .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
131
+ margin: 0 auto;
132
+ }
133
+
134
+ .eds-pagination-menu__menu-button {
135
+ -webkit-appearance: none;
136
+ -moz-appearance: none;
137
+ appearance: none;
138
+ background: transparent;
139
+ border: 0.0625rem solid #d1d3d3;
140
+ border-radius: 0.25rem;
141
+ color: inherit;
142
+ font-family: inherit;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: space-around;
146
+ height: 2rem;
147
+ margin-left: 0.25rem;
148
+ margin-right: 1rem;
149
+ width: 3.5rem;
150
+ }
151
+ .eds-pagination-menu__menu-button--open {
152
+ border-color: currentColor;
153
+ }
154
+ .eds-pagination-menu__menu-button:focus {
155
+ outline: none;
156
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
157
+ }
158
+ .eds-pagination-menu__menu-list {
159
+ width: 3.5rem;
160
+ }
161
+
162
+ .eds-pagination__page {
163
+ align-items: center;
164
+ -webkit-appearance: none;
165
+ -moz-appearance: none;
166
+ appearance: none;
167
+ background: transparent;
168
+ border: 0.0625rem solid #d1d3d3;
169
+ border-color: #d1d3d3;
170
+ border-radius: 0.25rem;
171
+ color: inherit;
172
+ cursor: pointer;
173
+ display: flex;
174
+ font-family: inherit;
175
+ font-size: 0.875rem;
176
+ height: 2rem;
177
+ justify-content: center;
178
+ margin: 0 0.125rem;
179
+ padding: 0 0.25rem;
180
+ transition: background 0.1s ease-out, border-color 0.1s ease-out;
181
+ -webkit-user-select: none;
182
+ -moz-user-select: none;
183
+ -ms-user-select: none;
184
+ user-select: none;
185
+ min-width: 2rem;
186
+ }
187
+ .eds-contrast .eds-pagination__page {
188
+ border-color: #54568c;
189
+ }
190
+ .eds-pagination__page--selected {
191
+ background: #d1d4e3;
192
+ border-color: #181c56;
193
+ color: inherit;
194
+ opacity: 1;
195
+ pointer-events: none;
196
+ }
197
+ .eds-contrast .eds-pagination__page--selected {
198
+ border-color: #ffffff;
199
+ background: #393d79;
200
+ }
201
+ .eds-pagination__page--disabled {
202
+ opacity: 0.5;
203
+ pointer-events: none;
204
+ }
205
+ .eds-pagination__page:hover {
206
+ background-color: #d1d4e3;
207
+ border-color: #d1d4e3;
208
+ }
209
+ .eds-contrast .eds-pagination__page:hover {
210
+ background-color: #393d79;
211
+ border-color: #393d79;
212
+ }
213
+ .eds-pagination__page:focus {
214
+ outline: none;
215
+ border-color: #181c56;
216
+ }
217
+ .eds-contrast .eds-pagination__page:focus {
218
+ border-color: #ffffff;
219
+ }
220
+
221
+ .eds-pagination__ellipsis {
222
+ align-items: baseline;
223
+ cursor: default;
224
+ display: flex;
225
+ font-size: 1.5rem;
226
+ height: 2rem;
227
+ justify-content: center;
228
+ -webkit-user-select: none;
229
+ -moz-user-select: none;
230
+ -ms-user-select: none;
231
+ user-select: none;
232
+ width: 2rem;
233
+ margin: 0 2px;
234
+ }
235
+
236
+ .eds-pagination__input-wrapper {
237
+ white-space: nowrap;
238
+ }
239
+ .eds-pagination__input-label {
240
+ border-left: 0.0625rem solid #d1d3d3;
241
+ color: #656782;
242
+ font-size: 0.875rem;
243
+ margin-left: 0.5rem;
244
+ padding: 0 1rem;
245
+ }
246
+ .eds-contrast .eds-pagination__input-label {
247
+ border-color: #393d79;
248
+ color: #aeb7e2;
249
+ }
250
+ .eds-pagination__input-field {
251
+ -webkit-appearance: none;
252
+ -moz-appearance: none;
253
+ appearance: none;
254
+ background: transparent;
255
+ border: 0.0625rem solid #d1d3d3;
256
+ border-radius: 0.25rem;
257
+ color: inherit;
258
+ font-family: inherit;
259
+ font-size: 0.875rem;
260
+ height: 2rem;
261
+ text-align: center;
262
+ width: 2rem;
263
+ }
264
+ .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
265
+ -webkit-appearance: none;
266
+ appearance: none;
267
+ margin: 0;
268
+ }/* DO NOT CHANGE!*/
269
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
270
  /* DO NOT CHANGE!*/
61
271
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
272
  .eds-side-navigation,
@@ -276,55 +486,6 @@
276
486
  outline: 2px solid #ffffff;
277
487
  }/* DO NOT CHANGE!*/
278
488
  /* 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
489
  .eds-overflow-menu__item {
329
490
  -webkit-appearance: none;
330
491
  -moz-appearance: none;
@@ -422,167 +583,6 @@
422
583
  right: calc(100% - 2rem);
423
584
  }/* DO NOT CHANGE!*/
424
585
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
425
- .eds-pagination {
426
- align-items: center;
427
- display: flex;
428
- flex-wrap: wrap;
429
- row-gap: 0.75rem;
430
- justify-content: space-between;
431
- }
432
- .eds-pagination__results {
433
- align-items: center;
434
- display: flex;
435
- flex: 1;
436
- justify-content: flex-start;
437
- }
438
- .eds-pagination__results-label {
439
- margin-right: 0.5rem;
440
- }
441
- .eds-pagination__controls {
442
- align-items: center;
443
- display: flex;
444
- justify-content: center;
445
- }
446
- .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
447
- margin: 0 auto;
448
- }
449
-
450
- .eds-pagination-menu__menu-button {
451
- -webkit-appearance: none;
452
- -moz-appearance: none;
453
- appearance: none;
454
- background: transparent;
455
- border: 0.0625rem solid #d1d3d3;
456
- border-radius: 0.25rem;
457
- color: inherit;
458
- font-family: inherit;
459
- display: flex;
460
- align-items: center;
461
- justify-content: space-around;
462
- height: 2rem;
463
- margin-left: 0.25rem;
464
- margin-right: 1rem;
465
- width: 3.5rem;
466
- }
467
- .eds-pagination-menu__menu-button--open {
468
- border-color: currentColor;
469
- }
470
- .eds-pagination-menu__menu-button:focus {
471
- outline: none;
472
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
473
- }
474
- .eds-pagination-menu__menu-list {
475
- width: 3.5rem;
476
- }
477
-
478
- .eds-pagination__page {
479
- align-items: center;
480
- -webkit-appearance: none;
481
- -moz-appearance: none;
482
- appearance: none;
483
- background: transparent;
484
- border: 0.0625rem solid #d1d3d3;
485
- border-color: #d1d3d3;
486
- border-radius: 0.25rem;
487
- color: inherit;
488
- cursor: pointer;
489
- display: flex;
490
- font-family: inherit;
491
- font-size: 0.875rem;
492
- height: 2rem;
493
- justify-content: center;
494
- margin: 0 0.125rem;
495
- padding: 0 0.25rem;
496
- transition: background 0.1s ease-out, border-color 0.1s ease-out;
497
- -webkit-user-select: none;
498
- -moz-user-select: none;
499
- -ms-user-select: none;
500
- user-select: none;
501
- min-width: 2rem;
502
- }
503
- .eds-contrast .eds-pagination__page {
504
- border-color: #54568c;
505
- }
506
- .eds-pagination__page--selected {
507
- background: #d1d4e3;
508
- border-color: #181c56;
509
- color: inherit;
510
- opacity: 1;
511
- pointer-events: none;
512
- }
513
- .eds-contrast .eds-pagination__page--selected {
514
- border-color: #ffffff;
515
- background: #393d79;
516
- }
517
- .eds-pagination__page--disabled {
518
- opacity: 0.5;
519
- pointer-events: none;
520
- }
521
- .eds-pagination__page:hover {
522
- background-color: #d1d4e3;
523
- border-color: #d1d4e3;
524
- }
525
- .eds-contrast .eds-pagination__page:hover {
526
- background-color: #393d79;
527
- border-color: #393d79;
528
- }
529
- .eds-pagination__page:focus {
530
- outline: none;
531
- border-color: #181c56;
532
- }
533
- .eds-contrast .eds-pagination__page:focus {
534
- border-color: #ffffff;
535
- }
536
-
537
- .eds-pagination__ellipsis {
538
- align-items: baseline;
539
- cursor: default;
540
- display: flex;
541
- font-size: 1.5rem;
542
- height: 2rem;
543
- justify-content: center;
544
- -webkit-user-select: none;
545
- -moz-user-select: none;
546
- -ms-user-select: none;
547
- user-select: none;
548
- width: 2rem;
549
- margin: 0 2px;
550
- }
551
-
552
- .eds-pagination__input-wrapper {
553
- white-space: nowrap;
554
- }
555
- .eds-pagination__input-label {
556
- border-left: 0.0625rem solid #d1d3d3;
557
- color: #656782;
558
- font-size: 0.875rem;
559
- margin-left: 0.5rem;
560
- padding: 0 1rem;
561
- }
562
- .eds-contrast .eds-pagination__input-label {
563
- border-color: #393d79;
564
- color: #aeb7e2;
565
- }
566
- .eds-pagination__input-field {
567
- -webkit-appearance: none;
568
- -moz-appearance: none;
569
- appearance: none;
570
- background: transparent;
571
- border: 0.0625rem solid #d1d3d3;
572
- border-radius: 0.25rem;
573
- color: inherit;
574
- font-family: inherit;
575
- font-size: 0.875rem;
576
- height: 2rem;
577
- text-align: center;
578
- width: 2rem;
579
- }
580
- .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
581
- -webkit-appearance: none;
582
- appearance: none;
583
- margin: 0;
584
- }/* DO NOT CHANGE!*/
585
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
586
586
  .eds-stepper {
587
587
  display: flex;
588
588
  flex-direction: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.1",
3
+ "version": "4.1.4",
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.8.2",
27
- "@entur/expand": "^3.3.13",
28
- "@entur/icons": "^4.1.2",
29
- "@entur/layout": "^2.1.6",
26
+ "@entur/button": "^2.10.0",
27
+ "@entur/expand": "^3.3.15",
28
+ "@entur/icons": "^4.2.0",
29
+ "@entur/layout": "^2.1.7",
30
30
  "@entur/tokens": "^3.3.2",
31
- "@entur/typography": "^1.6.13",
31
+ "@entur/typography": "^1.6.14",
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": "9e25b2a4a4ab659dc368f51ad0e0b74bee26e1d0"
40
+ "gitHead": "b8c747624dc3cb71b5710305c958ece5ba460e23"
41
41
  }