@entur/menu 4.1.13 → 4.1.14-alpha.1

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,14 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
10
+ ## [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)
11
+
12
+ **Note:** Version bump only for package @entur/menu
13
+
6
14
  ## [4.1.13](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.12...@entur/menu@4.1.13) (2022-10-12)
7
15
 
8
16
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -57,6 +57,55 @@
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. */
60
109
  /* DO NOT CHANGE!*/
61
110
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
111
  .eds-side-navigation,
@@ -276,53 +325,165 @@
276
325
  outline: 2px solid #ffffff;
277
326
  }/* DO NOT CHANGE!*/
278
327
  /* 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;
328
+ .eds-pagination {
329
+ align-items: center;
330
+ display: flex;
331
+ flex-wrap: wrap;
332
+ row-gap: 0.75rem;
333
+ justify-content: space-between;
334
+ }
335
+ .eds-pagination__results {
336
+ align-items: center;
337
+ display: flex;
338
+ flex: 1;
339
+ justify-content: flex-start;
340
+ }
341
+ .eds-pagination__results-label {
342
+ margin-right: 0.5rem;
343
+ }
344
+ .eds-pagination__controls {
345
+ align-items: center;
346
+ display: flex;
347
+ justify-content: center;
348
+ }
349
+ .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
350
+ margin: 0 auto;
351
+ }
352
+
353
+ .eds-pagination-menu__menu-button {
354
+ -webkit-appearance: none;
355
+ -moz-appearance: none;
356
+ appearance: none;
357
+ background: transparent;
358
+ border: 0.0625rem solid #d1d3d3;
359
+ border-radius: 0.25rem;
283
360
  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
361
  font-family: inherit;
293
- font-size: 1rem;
294
- font-weight: 600;
362
+ display: flex;
363
+ align-items: center;
364
+ justify-content: space-around;
365
+ height: 2rem;
366
+ margin-left: 0.25rem;
367
+ margin-right: 1rem;
368
+ width: 3.5rem;
295
369
  }
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;
370
+ .eds-pagination-menu__menu-button--open {
371
+ border-color: currentColor;
306
372
  }
307
- .eds-top-navigation-item:focus {
308
- outline-offset: 0.125rem;
373
+ .eds-pagination-menu__menu-button:focus {
309
374
  outline: none;
310
375
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
311
376
  }
312
- .eds-contrast .eds-top-navigation-item:focus {
313
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
377
+ .eds-pagination-menu__menu-list {
378
+ width: 3.5rem;
314
379
  }
315
- .eds-top-navigation-item:hover {
316
- --show-active-line: 1;
380
+
381
+ .eds-pagination__page {
382
+ align-items: center;
383
+ -webkit-appearance: none;
384
+ -moz-appearance: none;
385
+ appearance: none;
386
+ background: transparent;
387
+ border: 0.0625rem solid #d1d3d3;
388
+ border-color: #d1d3d3;
389
+ border-radius: 0.25rem;
390
+ color: inherit;
391
+ cursor: pointer;
392
+ display: flex;
393
+ font-family: inherit;
394
+ font-size: 0.875rem;
395
+ height: 2rem;
396
+ justify-content: center;
397
+ margin: 0 0.125rem;
398
+ padding: 0 0.25rem;
399
+ transition: background 0.1s ease-out, border-color 0.1s ease-out;
400
+ -webkit-user-select: none;
401
+ -moz-user-select: none;
402
+ -ms-user-select: none;
403
+ user-select: none;
404
+ min-width: 2rem;
317
405
  }
318
- .eds-top-navigation-item:hover::after {
406
+ .eds-contrast .eds-pagination__page {
407
+ border-color: #54568c;
408
+ }
409
+ .eds-pagination__page--selected {
410
+ background: #d1d4e3;
411
+ border-color: #181c56;
412
+ color: inherit;
413
+ opacity: 1;
414
+ pointer-events: none;
415
+ }
416
+ .eds-contrast .eds-pagination__page--selected {
417
+ border-color: #ffffff;
418
+ background: #393d79;
419
+ }
420
+ .eds-pagination__page--disabled {
421
+ opacity: 0.5;
422
+ pointer-events: none;
423
+ }
424
+ .eds-pagination__page:hover {
425
+ background-color: #d1d4e3;
426
+ border-color: #d1d4e3;
427
+ }
428
+ .eds-contrast .eds-pagination__page:hover {
429
+ background-color: #393d79;
430
+ border-color: #393d79;
431
+ }
432
+ .eds-pagination__page:focus {
433
+ outline: none;
434
+ border-color: #181c56;
435
+ }
436
+ .eds-contrast .eds-pagination__page:focus {
437
+ border-color: #ffffff;
438
+ }
439
+
440
+ .eds-pagination__ellipsis {
441
+ align-items: baseline;
442
+ cursor: default;
443
+ display: flex;
444
+ font-size: 1.5rem;
445
+ height: 2rem;
446
+ justify-content: center;
447
+ -webkit-user-select: none;
448
+ -moz-user-select: none;
449
+ -ms-user-select: none;
450
+ user-select: none;
319
451
  width: 2rem;
452
+ margin: 0 2px;
320
453
  }
321
- .eds-top-navigation-item--active {
322
- --show-active-line: 1;
454
+
455
+ .eds-pagination__input-wrapper {
456
+ white-space: nowrap;
323
457
  }
324
- .eds-top-navigation-item--active::after {
458
+ .eds-pagination__input-label {
459
+ border-left: 0.0625rem solid #d1d3d3;
460
+ color: #656782;
461
+ font-size: 0.875rem;
462
+ margin-left: 0.5rem;
463
+ padding: 0 1rem;
464
+ }
465
+ .eds-contrast .eds-pagination__input-label {
466
+ border-color: #393d79;
467
+ color: #aeb7e2;
468
+ }
469
+ .eds-pagination__input-field {
470
+ -webkit-appearance: none;
471
+ -moz-appearance: none;
472
+ appearance: none;
473
+ background: transparent;
474
+ border: 0.0625rem solid #d1d3d3;
475
+ border-radius: 0.25rem;
476
+ color: inherit;
477
+ font-family: inherit;
478
+ font-size: 0.875rem;
479
+ height: 2rem;
480
+ text-align: center;
325
481
  width: 2rem;
482
+ }
483
+ .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
484
+ -webkit-appearance: none;
485
+ appearance: none;
486
+ margin: 0;
326
487
  }/* DO NOT CHANGE!*/
327
488
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
328
489
  .eds-overflow-menu__item {
@@ -534,165 +695,4 @@
534
695
  }
535
696
  .eds-contrast .eds-stepper__item__square--has-been {
536
697
  background: #aeb7e2;
537
- }/* DO NOT CHANGE!*/
538
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
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;
571
- color: inherit;
572
- font-family: inherit;
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;
580
- }
581
- .eds-pagination-menu__menu-button--open {
582
- border-color: currentColor;
583
- }
584
- .eds-pagination-menu__menu-button:focus {
585
- outline: none;
586
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
587
- }
588
- .eds-pagination-menu__menu-list {
589
- width: 3.5rem;
590
- }
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;
616
- }
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;
662
- width: 2rem;
663
- margin: 0 2px;
664
- }
665
-
666
- .eds-pagination__input-wrapper {
667
- white-space: nowrap;
668
- }
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;
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.13",
3
+ "version": "4.1.14-alpha.1",
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.1",
27
+ "@entur/button": "^2.10.5-alpha.1",
28
+ "@entur/expand": "^3.3.22-alpha.1",
29
+ "@entur/icons": "^5.0.1-alpha.1",
30
+ "@entur/layout": "^2.1.12-alpha.1",
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.1",
33
+ "@entur/utils": "^0.5.0-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": "8e5d6c63d180d5b3a7b2d0c6c4cdbb8ecb8af8f4"
42
42
  }