@entur/menu 4.0.10 → 4.1.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/dist/styles.css CHANGED
@@ -57,225 +57,6 @@
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
- /* DO NOT CHANGE!*/
61
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
- .eds-side-navigation,
63
- .eds-side-navigation-group {
64
- --primary-background-color: #f8f8f8;
65
- --primary-text-color: #181c56;
66
- }
67
- .eds-contrast .eds-side-navigation,
68
- .eds-contrast .eds-side-navigation-group {
69
- --primary-background-color: #181c56;
70
- --primary-text-color: colors-brand-white;
71
- }
72
-
73
- .eds-side-navigation__click-target svg {
74
- margin-right: 1rem;
75
- color: #656782;
76
- display: inline-flex;
77
- align-self: center;
78
- position: relative;
79
- top: 0.075em;
80
- }
81
- .eds-contrast .eds-side-navigation__click-target svg {
82
- color: #aeb7e2;
83
- }
84
-
85
- .eds-side-navigation__click-target[disabled] svg {
86
- color: #656782;
87
- }
88
-
89
- .eds-side-navigation {
90
- --padding-vertical: 1rem;
91
- --padding-horizontal: 2.5rem;
92
- background-color: var(--primary-background-color);
93
- color: var(--primary-text-color);
94
- padding: 0;
95
- margin: 0;
96
- list-style: none;
97
- position: relative;
98
- transition: max-width ease-in-out 0.2s;
99
- }
100
- .eds-side-navigation__collapse-button {
101
- position: absolute;
102
- right: -0.75rem;
103
- height: 1.5rem;
104
- width: 1.5rem;
105
- border-radius: 50%;
106
- cursor: pointer;
107
- background: #ffffff;
108
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
109
- border: 0.0625rem solid #d1d3d3;
110
- color: inherit;
111
- padding: 0;
112
- display: flex;
113
- align-items: center;
114
- justify-content: center;
115
- border: none;
116
- z-index: 10;
117
- }
118
- .eds-contrast .eds-side-navigation__collapse-button {
119
- background: #393d79;
120
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
121
- border-color: transparent;
122
- }
123
- .eds-side-navigation__collapse-button svg {
124
- margin: 0;
125
- top: 0;
126
- color: #181c56;
127
- }
128
- .eds-contrast .eds-side-navigation__collapse-button svg {
129
- color: #ffffff;
130
- }
131
- .eds-side-navigation__collapse-button:focus {
132
- outline: 2px solid #181c56;
133
- }
134
- .eds-contrast .eds-side-navigation__collapse-button:focus {
135
- outline: 2px solid #ffffff;
136
- }
137
- @media screen and (min-width: 50rem) {
138
- .eds-side-navigation {
139
- max-width: 26rem;
140
- }
141
- }
142
- .eds-side-navigation--small {
143
- --padding-vertical: calc(0.5rem + 0.1875rem);
144
- }
145
- .eds-side-navigation .eds-side-navigation {
146
- background-color: #f3f3f3;
147
- }
148
- .eds-contrast .eds-side-navigation .eds-side-navigation {
149
- background-color: #292b6a;
150
- }
151
- .eds-side-navigation--collapsed {
152
- max-width: 80px;
153
- }
154
-
155
- .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
156
- padding-left: 3.5rem;
157
- box-shadow: none;
158
- }
159
- .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
160
- background-color: #d1d4e3;
161
- }
162
- .eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
163
- background-color: #54568c;
164
- }
165
-
166
- .eds-side-navigation__click-target {
167
- -webkit-appearance: none;
168
- -moz-appearance: none;
169
- appearance: none;
170
- background: none;
171
- border: 0;
172
- border-bottom: 0.125rem solid #e9e9e9;
173
- border-radius: 0;
174
- color: var(--primary-text-color);
175
- cursor: pointer;
176
- display: block;
177
- font-family: inherit;
178
- font-size: inherit;
179
- font-weight: 500;
180
- line-height: inherit;
181
- padding: var(--padding-vertical) 2.5rem;
182
- padding-left: 2.5rem;
183
- transition: padding 0.2s ease-in-out;
184
- text-align: left;
185
- text-decoration: none;
186
- width: 100%;
187
- }
188
- .eds-contrast .eds-side-navigation__click-target {
189
- border-color: #292b6a;
190
- }
191
- .eds-side-navigation--collapsed .eds-side-navigation__click-target {
192
- padding-left: 2rem;
193
- }
194
- .eds-side-navigation__click-target--active {
195
- box-shadow: inset 0.25rem 0 0 #181c56;
196
- font-weight: 600;
197
- }
198
- .eds-contrast .eds-side-navigation__click-target--active {
199
- box-shadow: inset 0.25rem 0 0 #ff5959;
200
- }
201
- .eds-side-navigation__click-target[disabled] {
202
- cursor: default;
203
- color: #656782;
204
- }
205
- .eds-side-navigation__click-target:not([disabled]):hover {
206
- background-color: #d1d4e3;
207
- }
208
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
209
- background-color: #393d79;
210
- }
211
- .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
212
- outline: 2px solid #181c56;
213
- outline-offset: -2px;
214
- background: #ebebf1;
215
- }
216
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
217
- background-color: #54568c;
218
- outline: 2px solid #ffffff;
219
- }
220
-
221
- .eds-side-navigation-group {
222
- background-color: var(--primary-background-color);
223
- color: var(--primary-text-color);
224
- }
225
- .eds-side-navigation-group + .eds-side-navigation-group {
226
- padding-top: 0.5rem;
227
- }
228
- @media screen and (min-width: 50rem) {
229
- .eds-side-navigation-group {
230
- max-width: 26rem;
231
- }
232
- }
233
-
234
- .eds-side-navigation-group__trigger {
235
- align-items: center;
236
- -webkit-appearance: none;
237
- -moz-appearance: none;
238
- appearance: none;
239
- background: none;
240
- border: none;
241
- border-radius: 0;
242
- border-bottom: 0.125rem solid #e9e9e9;
243
- color: #656782;
244
- cursor: pointer;
245
- display: flex;
246
- font-size: 0.875rem;
247
- font-family: inherit;
248
- font-weight: 500;
249
- height: 3rem;
250
- justify-content: space-between;
251
- letter-spacing: 1px;
252
- line-height: 1.25rem;
253
- padding: 0.75rem 0 0.75rem 2.5rem;
254
- margin: 0;
255
- text-transform: uppercase;
256
- transition: padding 0.2s ease-in-out;
257
- width: 100%;
258
- }
259
- .eds-contrast .eds-side-navigation-group__trigger {
260
- color: #aeb7e2;
261
- border-color: #292b6a;
262
- }
263
- .eds-side-navigation-group__trigger-icon {
264
- margin-right: 0.75rem;
265
- }
266
- .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
267
- margin-right: 2.5rem;
268
- }
269
- .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
270
- padding-left: 2rem;
271
- }
272
- .eds-side-navigation-group__trigger:focus {
273
- outline: 2px solid #181c56;
274
- }
275
- .eds-contrast .eds-side-navigation-group__trigger:focus {
276
- outline: 2px solid #ffffff;
277
- }/* DO NOT CHANGE!*/
278
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
279
60
  .eds-top-navigation-item {
280
61
  --show-active-line: 0;
281
62
  display: inline-block;
@@ -442,12 +223,15 @@
442
223
  .eds-pagination {
443
224
  align-items: center;
444
225
  display: flex;
226
+ flex-wrap: wrap;
227
+ row-gap: 0.75rem;
445
228
  justify-content: space-between;
446
229
  }
447
230
  .eds-pagination__results {
448
231
  align-items: center;
449
232
  display: flex;
450
- justify-content: center;
233
+ flex: 1;
234
+ justify-content: flex-start;
451
235
  }
452
236
  .eds-pagination__results-label {
453
237
  margin-right: 0.5rem;
@@ -528,6 +312,10 @@
528
312
  border-color: #ffffff;
529
313
  background: #393d79;
530
314
  }
315
+ .eds-pagination__page--disabled {
316
+ opacity: 0.5;
317
+ pointer-events: none;
318
+ }
531
319
  .eds-pagination__page:hover {
532
320
  background-color: #d1d4e3;
533
321
  border-color: #d1d4e3;
@@ -556,8 +344,12 @@
556
344
  -ms-user-select: none;
557
345
  user-select: none;
558
346
  width: 2rem;
347
+ margin: 0 2px;
559
348
  }
560
349
 
350
+ .eds-pagination__input-wrapper {
351
+ white-space: nowrap;
352
+ }
561
353
  .eds-pagination__input-label {
562
354
  border-left: 0.0625rem solid #d1d3d3;
563
355
  color: #656782;
@@ -569,7 +361,6 @@
569
361
  border-color: #393d79;
570
362
  color: #aeb7e2;
571
363
  }
572
-
573
364
  .eds-pagination__input-field {
574
365
  -webkit-appearance: none;
575
366
  -moz-appearance: none;
@@ -590,6 +381,225 @@
590
381
  margin: 0;
591
382
  }/* DO NOT CHANGE!*/
592
383
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
384
+ /* DO NOT CHANGE!*/
385
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
386
+ .eds-side-navigation,
387
+ .eds-side-navigation-group {
388
+ --primary-background-color: #f8f8f8;
389
+ --primary-text-color: #181c56;
390
+ }
391
+ .eds-contrast .eds-side-navigation,
392
+ .eds-contrast .eds-side-navigation-group {
393
+ --primary-background-color: #181c56;
394
+ --primary-text-color: colors-brand-white;
395
+ }
396
+
397
+ .eds-side-navigation__click-target svg {
398
+ margin-right: 1rem;
399
+ color: #656782;
400
+ display: inline-flex;
401
+ align-self: center;
402
+ position: relative;
403
+ top: 0.075em;
404
+ }
405
+ .eds-contrast .eds-side-navigation__click-target svg {
406
+ color: #aeb7e2;
407
+ }
408
+
409
+ .eds-side-navigation__click-target[disabled] svg {
410
+ color: #656782;
411
+ }
412
+
413
+ .eds-side-navigation {
414
+ --padding-vertical: 1rem;
415
+ --padding-horizontal: 2.5rem;
416
+ background-color: var(--primary-background-color);
417
+ color: var(--primary-text-color);
418
+ padding: 0;
419
+ margin: 0;
420
+ list-style: none;
421
+ position: relative;
422
+ transition: max-width ease-in-out 0.2s;
423
+ }
424
+ .eds-side-navigation__collapse-button {
425
+ position: absolute;
426
+ right: -0.75rem;
427
+ height: 1.5rem;
428
+ width: 1.5rem;
429
+ border-radius: 50%;
430
+ cursor: pointer;
431
+ background: #ffffff;
432
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
433
+ border: 0.0625rem solid #d1d3d3;
434
+ color: inherit;
435
+ padding: 0;
436
+ display: flex;
437
+ align-items: center;
438
+ justify-content: center;
439
+ border: none;
440
+ z-index: 10;
441
+ }
442
+ .eds-contrast .eds-side-navigation__collapse-button {
443
+ background: #393d79;
444
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
445
+ border-color: transparent;
446
+ }
447
+ .eds-side-navigation__collapse-button svg {
448
+ margin: 0;
449
+ top: 0;
450
+ color: #181c56;
451
+ }
452
+ .eds-contrast .eds-side-navigation__collapse-button svg {
453
+ color: #ffffff;
454
+ }
455
+ .eds-side-navigation__collapse-button:focus {
456
+ outline: 2px solid #181c56;
457
+ }
458
+ .eds-contrast .eds-side-navigation__collapse-button:focus {
459
+ outline: 2px solid #ffffff;
460
+ }
461
+ @media screen and (min-width: 50rem) {
462
+ .eds-side-navigation {
463
+ max-width: 26rem;
464
+ }
465
+ }
466
+ .eds-side-navigation--small {
467
+ --padding-vertical: calc(0.5rem + 0.1875rem);
468
+ }
469
+ .eds-side-navigation .eds-side-navigation {
470
+ background-color: #f3f3f3;
471
+ }
472
+ .eds-contrast .eds-side-navigation .eds-side-navigation {
473
+ background-color: #292b6a;
474
+ }
475
+ .eds-side-navigation--collapsed {
476
+ max-width: 80px;
477
+ }
478
+
479
+ .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
480
+ padding-left: 3.5rem;
481
+ box-shadow: none;
482
+ }
483
+ .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
484
+ background-color: #d1d4e3;
485
+ }
486
+ .eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
487
+ background-color: #54568c;
488
+ }
489
+
490
+ .eds-side-navigation__click-target {
491
+ -webkit-appearance: none;
492
+ -moz-appearance: none;
493
+ appearance: none;
494
+ background: none;
495
+ border: 0;
496
+ border-bottom: 0.125rem solid #e9e9e9;
497
+ border-radius: 0;
498
+ color: var(--primary-text-color);
499
+ cursor: pointer;
500
+ display: block;
501
+ font-family: inherit;
502
+ font-size: inherit;
503
+ font-weight: 500;
504
+ line-height: inherit;
505
+ padding: var(--padding-vertical) 2.5rem;
506
+ padding-left: 2.5rem;
507
+ transition: padding 0.2s ease-in-out;
508
+ text-align: left;
509
+ text-decoration: none;
510
+ width: 100%;
511
+ }
512
+ .eds-contrast .eds-side-navigation__click-target {
513
+ border-color: #292b6a;
514
+ }
515
+ .eds-side-navigation--collapsed .eds-side-navigation__click-target {
516
+ padding-left: 2rem;
517
+ }
518
+ .eds-side-navigation__click-target--active {
519
+ box-shadow: inset 0.25rem 0 0 #181c56;
520
+ font-weight: 600;
521
+ }
522
+ .eds-contrast .eds-side-navigation__click-target--active {
523
+ box-shadow: inset 0.25rem 0 0 #ff5959;
524
+ }
525
+ .eds-side-navigation__click-target[disabled] {
526
+ cursor: default;
527
+ color: #656782;
528
+ }
529
+ .eds-side-navigation__click-target:not([disabled]):hover {
530
+ background-color: #d1d4e3;
531
+ }
532
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
533
+ background-color: #393d79;
534
+ }
535
+ .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
536
+ outline: 2px solid #181c56;
537
+ outline-offset: -2px;
538
+ background: #ebebf1;
539
+ }
540
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
541
+ background-color: #54568c;
542
+ outline: 2px solid #ffffff;
543
+ }
544
+
545
+ .eds-side-navigation-group {
546
+ background-color: var(--primary-background-color);
547
+ color: var(--primary-text-color);
548
+ }
549
+ .eds-side-navigation-group + .eds-side-navigation-group {
550
+ padding-top: 0.5rem;
551
+ }
552
+ @media screen and (min-width: 50rem) {
553
+ .eds-side-navigation-group {
554
+ max-width: 26rem;
555
+ }
556
+ }
557
+
558
+ .eds-side-navigation-group__trigger {
559
+ align-items: center;
560
+ -webkit-appearance: none;
561
+ -moz-appearance: none;
562
+ appearance: none;
563
+ background: none;
564
+ border: none;
565
+ border-radius: 0;
566
+ border-bottom: 0.125rem solid #e9e9e9;
567
+ color: #656782;
568
+ cursor: pointer;
569
+ display: flex;
570
+ font-size: 0.875rem;
571
+ font-family: inherit;
572
+ font-weight: 500;
573
+ height: 3rem;
574
+ justify-content: space-between;
575
+ letter-spacing: 1px;
576
+ line-height: 1.25rem;
577
+ padding: 0.75rem 0 0.75rem 2.5rem;
578
+ margin: 0;
579
+ text-transform: uppercase;
580
+ transition: padding 0.2s ease-in-out;
581
+ width: 100%;
582
+ }
583
+ .eds-contrast .eds-side-navigation-group__trigger {
584
+ color: #aeb7e2;
585
+ border-color: #292b6a;
586
+ }
587
+ .eds-side-navigation-group__trigger-icon {
588
+ margin-right: 0.75rem;
589
+ }
590
+ .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
591
+ margin-right: 2.5rem;
592
+ }
593
+ .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
594
+ padding-left: 2rem;
595
+ }
596
+ .eds-side-navigation-group__trigger:focus {
597
+ outline: 2px solid #181c56;
598
+ }
599
+ .eds-contrast .eds-side-navigation-group__trigger:focus {
600
+ outline: 2px solid #ffffff;
601
+ }/* DO NOT CHANGE!*/
602
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
593
603
  .eds-overflow-menu__item {
594
604
  -webkit-appearance: none;
595
605
  -moz-appearance: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.0.10",
3
+ "version": "4.1.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@entur/button": "^2.8.1",
27
- "@entur/expand": "^3.3.11",
28
- "@entur/icons": "^4.1.1",
27
+ "@entur/expand": "^3.3.12",
28
+ "@entur/icons": "^4.1.2",
29
29
  "@entur/layout": "^2.1.5",
30
30
  "@entur/tokens": "^3.3.2",
31
31
  "@entur/typography": "^1.6.12",
@@ -37,5 +37,5 @@
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0"
39
39
  },
40
- "gitHead": "7b557782d62c07bdce744f9b084d57177e2202e9"
40
+ "gitHead": "0fba0071ad9dc75cc68b72b846f5bab78be12449"
41
41
  }