@entur/menu 5.1.0-beta.0 → 5.1.1-beta.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.
Files changed (2) hide show
  1. package/dist/styles.css +162 -162
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -330,6 +330,124 @@
330
330
  }
331
331
  /* DO NOT CHANGE!*/
332
332
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
333
+ .eds-stepper {
334
+ --text-color: var(--components-menu-stepper-standard-text-uncompleted);
335
+ --line-color: var(--components-menu-stepper-standard-background);
336
+ --label-font-weight: 500;
337
+ --display-active-line: none;
338
+ display: flex;
339
+ flex-direction: row;
340
+ width: 100%;
341
+ list-style-type: none;
342
+ }
343
+ .eds-stepper__step {
344
+ display: flex;
345
+ flex-grow: 1;
346
+ flex-basis: 0;
347
+ flex-direction: column;
348
+ align-items: inherit;
349
+ -webkit-appearance: none;
350
+ -moz-appearance: none;
351
+ appearance: none;
352
+ background: none;
353
+ border: none;
354
+ font-family: inherit;
355
+ text-transform: none;
356
+ }
357
+ .eds-stepper__step:focus-visible .eds-stepper__step__label {
358
+ outline-offset: 0.125rem;
359
+ outline: 2px solid #181c56;
360
+ }
361
+ .eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
362
+ outline: 2px solid #ffffff;
363
+ }
364
+ .eds-contrast .eds-stepper__step {
365
+ --text-color: var(--components-menu-stepper-contrast-text-uncompleted);
366
+ --line-color: var(--components-menu-stepper-contrast-background);
367
+ }
368
+ .eds-stepper__step__wrapper {
369
+ flex-grow: 1;
370
+ }
371
+ .eds-stepper__step--interactive {
372
+ all: unset;
373
+ display: flex;
374
+ flex-direction: column;
375
+ width: 100%;
376
+ cursor: pointer;
377
+ }
378
+ .eds-stepper__step--active {
379
+ --text-color: var(--components-menu-stepper-standard-text-uncompleted);
380
+ --label-font-weight: 600;
381
+ --display-active-line: block;
382
+ }
383
+ .eds-contrast .eds-stepper__step--active {
384
+ --text-color: var(--components-menu-stepper-contrast-text-uncompleted);
385
+ }
386
+ .eds-stepper__step--completed {
387
+ --text-color: var(--components-menu-stepper-standard-text-completed);
388
+ --line-color: var(--components-menu-stepper-standard-progressbar);
389
+ }
390
+ .eds-contrast .eds-stepper__step--completed {
391
+ --text-color: var(--components-menu-stepper-contrast-text-completed);
392
+ --line-color: var(--components-menu-stepper-contrast-progressbar);
393
+ }
394
+ .eds-stepper__step__label {
395
+ flex-grow: 1;
396
+ flex-direction: column;
397
+ align-self: center;
398
+ text-align: center;
399
+ font-size: 0.875rem;
400
+ margin: 0.5rem 0 0;
401
+ padding: 0 0.5rem;
402
+ width: -moz-fit-content;
403
+ width: fit-content;
404
+ border-radius: 0.0625rem;
405
+ color: var(--text-color);
406
+ font-weight: var(--label-font-weight);
407
+ }
408
+ .eds-stepper__step--interactive:hover .eds-stepper__step__label {
409
+ background-color: var(--components-menu-stepper-standard-background);
410
+ color: var(--components-menu-stepper-standard-text-completed);
411
+ }
412
+ .eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
413
+ background-color: var(--components-menu-stepper-contrast-background);
414
+ color: var(--components-menu-stepper-contrast-text-completed);
415
+ }
416
+ .eds-stepper__step__line {
417
+ height: 0.5rem;
418
+ background: var(--line-color);
419
+ position: relative;
420
+ }
421
+ .eds-stepper__step__line:before {
422
+ display: var(--display-active-line);
423
+ content: "";
424
+ position: absolute;
425
+ right: calc(50% - 0.2rem);
426
+ bottom: 0.0625rem;
427
+ border-radius: 0.0625rem;
428
+ background: var(--components-menu-stepper-standard-progressbar);
429
+ width: calc(0.5rem - 0.125rem - 0.01rem);
430
+ height: calc(0.5rem - 0.125rem - 0.01rem);
431
+ transform: rotate(45deg);
432
+ }
433
+ .eds-contrast .eds-stepper__step__line:before {
434
+ background: var(--components-menu-stepper-contrast-progressbar);
435
+ }
436
+ .eds-stepper__step__line:after {
437
+ display: var(--display-active-line);
438
+ content: "";
439
+ position: absolute;
440
+ left: 0;
441
+ bottom: 0;
442
+ width: 50%;
443
+ height: 0.5rem;
444
+ background: var(--components-menu-stepper-standard-progressbar);
445
+ }
446
+ .eds-contrast .eds-stepper__step__line:after {
447
+ background: var(--components-menu-stepper-contrast-progressbar);
448
+ }
449
+ /* DO NOT CHANGE!*/
450
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
333
451
  .eds-pagination {
334
452
  align-items: center;
335
453
  display: flex;
@@ -491,121 +609,60 @@
491
609
  }
492
610
  /* DO NOT CHANGE!*/
493
611
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
494
- .eds-stepper {
495
- --text-color: var(--components-menu-stepper-standard-text-uncompleted);
496
- --line-color: var(--components-menu-stepper-standard-background);
497
- --label-font-weight: 500;
498
- --display-active-line: none;
499
- display: flex;
500
- flex-direction: row;
501
- width: 100%;
502
- list-style-type: none;
503
- }
504
- .eds-stepper__step {
505
- display: flex;
506
- flex-grow: 1;
507
- flex-basis: 0;
508
- flex-direction: column;
509
- align-items: inherit;
510
- -webkit-appearance: none;
511
- -moz-appearance: none;
512
- appearance: none;
513
- background: none;
514
- border: none;
515
- font-family: inherit;
516
- text-transform: none;
517
- }
518
- .eds-stepper__step:focus-visible .eds-stepper__step__label {
519
- outline-offset: 0.125rem;
520
- outline: 2px solid #181c56;
521
- }
522
- .eds-contrast .eds-stepper__step:focus-visible .eds-stepper__step__label {
523
- outline: 2px solid #ffffff;
524
- }
525
- .eds-contrast .eds-stepper__step {
526
- --text-color: var(--components-menu-stepper-contrast-text-uncompleted);
527
- --line-color: var(--components-menu-stepper-contrast-background);
528
- }
529
- .eds-stepper__step__wrapper {
530
- flex-grow: 1;
531
- }
532
- .eds-stepper__step--interactive {
533
- all: unset;
534
- display: flex;
535
- flex-direction: column;
536
- width: 100%;
612
+ .eds-top-navigation-item {
613
+ --show-active-line: 0;
614
+ display: inline-block;
537
615
  cursor: pointer;
538
- }
539
- .eds-stepper__step--active {
540
- --text-color: var(--components-menu-stepper-standard-text-uncompleted);
541
- --label-font-weight: 600;
542
- --display-active-line: block;
543
- }
544
- .eds-contrast .eds-stepper__step--active {
545
- --text-color: var(--components-menu-stepper-contrast-text-uncompleted);
546
- }
547
- .eds-stepper__step--completed {
548
- --text-color: var(--components-menu-stepper-standard-text-completed);
549
- --line-color: var(--components-menu-stepper-standard-progressbar);
550
- }
551
- .eds-contrast .eds-stepper__step--completed {
552
- --text-color: var(--components-menu-stepper-contrast-text-completed);
553
- --line-color: var(--components-menu-stepper-contrast-progressbar);
554
- }
555
- .eds-stepper__step__label {
556
- flex-grow: 1;
557
- flex-direction: column;
558
- align-self: center;
559
- text-align: center;
560
- font-size: 0.875rem;
561
- margin: 0.5rem 0 0;
562
- padding: 0 0.5rem;
616
+ color: var(--components-menu-navigationbar-standard-text-unselected);
617
+ -webkit-text-decoration: none;
618
+ text-decoration: none;
619
+ position: relative;
620
+ padding: 1rem;
621
+ min-width: 5rem;
563
622
  width: -moz-fit-content;
564
623
  width: fit-content;
565
- border-radius: 0.0625rem;
566
- color: var(--text-color);
567
- font-weight: var(--label-font-weight);
624
+ text-align: center;
625
+ font-family: inherit;
626
+ font-size: 1rem;
627
+ font-weight: 600;
568
628
  }
569
- .eds-stepper__step--interactive:hover .eds-stepper__step__label {
570
- background-color: var(--components-menu-stepper-standard-background);
571
- color: var(--components-menu-stepper-standard-text-completed);
629
+ .eds-top-navigation-item::after {
630
+ content: "";
631
+ display: block;
632
+ bottom: 1rem;
633
+ height: 0.1875rem;
634
+ width: 0;
635
+ margin: 0 auto;
636
+ opacity: var(--show-active-line);
637
+ background: var(--components-menu-navigationbar-standard-stroke-selected);
638
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
572
639
  }
573
- .eds-contrast .eds-stepper__step--interactive:hover .eds-stepper__step__label {
574
- background-color: var(--components-menu-stepper-contrast-background);
575
- color: var(--components-menu-stepper-contrast-text-completed);
640
+ .eds-contrast .eds-top-navigation-item {
641
+ color: var(--components-menu-navigationbar-contrast-text-unselected);
576
642
  }
577
- .eds-stepper__step__line {
578
- height: 0.5rem;
579
- background: var(--line-color);
580
- position: relative;
643
+ .eds-top-navigation-item:focus-visible {
644
+ outline: 2px solid #181c56;
645
+ outline-color: var(--basecolors-stroke-focus-standard);
646
+ outline-offset: 0.125rem;
581
647
  }
582
- .eds-stepper__step__line:before {
583
- display: var(--display-active-line);
584
- content: "";
585
- position: absolute;
586
- right: calc(50% - 0.2rem);
587
- bottom: 0.0625rem;
588
- border-radius: 0.0625rem;
589
- background: var(--components-menu-stepper-standard-progressbar);
590
- width: calc(0.5rem - 0.125rem - 0.01rem);
591
- height: calc(0.5rem - 0.125rem - 0.01rem);
592
- transform: rotate(45deg);
648
+ .eds-contrast .eds-top-navigation-item:focus-visible {
649
+ outline-color: var(--basecolors-stroke-focus-contrast);
593
650
  }
594
- .eds-contrast .eds-stepper__step__line:before {
595
- background: var(--components-menu-stepper-contrast-progressbar);
651
+ .eds-top-navigation-item:hover {
652
+ --show-active-line: 1;
596
653
  }
597
- .eds-stepper__step__line:after {
598
- display: var(--display-active-line);
599
- content: "";
600
- position: absolute;
601
- left: 0;
602
- bottom: 0;
603
- width: 50%;
604
- height: 0.5rem;
605
- background: var(--components-menu-stepper-standard-progressbar);
654
+ .eds-top-navigation-item:hover::after {
655
+ width: 2rem;
606
656
  }
607
- .eds-contrast .eds-stepper__step__line:after {
608
- background: var(--components-menu-stepper-contrast-progressbar);
657
+ .eds-top-navigation-item--active {
658
+ color: var(--components-menu-navigationbar-standard-text-selected);
659
+ --show-active-line: 1;
660
+ }
661
+ .eds-top-navigation-item--active::after {
662
+ width: 2rem;
663
+ }
664
+ .eds-contrast .eds-top-navigation-item--active {
665
+ color: var(--components-menu-navigationbar-contrast-text-selected);
609
666
  }
610
667
  /* DO NOT CHANGE!*/
611
668
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -947,60 +1004,3 @@
947
1004
  --eds-menu: 1;
948
1005
  --reach-menu-button: 1;
949
1006
  }
950
- /* DO NOT CHANGE!*/
951
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
952
- .eds-top-navigation-item {
953
- --show-active-line: 0;
954
- display: inline-block;
955
- cursor: pointer;
956
- color: var(--components-menu-navigationbar-standard-text-unselected);
957
- -webkit-text-decoration: none;
958
- text-decoration: none;
959
- position: relative;
960
- padding: 1rem;
961
- min-width: 5rem;
962
- width: -moz-fit-content;
963
- width: fit-content;
964
- text-align: center;
965
- font-family: inherit;
966
- font-size: 1rem;
967
- font-weight: 600;
968
- }
969
- .eds-top-navigation-item::after {
970
- content: "";
971
- display: block;
972
- bottom: 1rem;
973
- height: 0.1875rem;
974
- width: 0;
975
- margin: 0 auto;
976
- opacity: var(--show-active-line);
977
- background: var(--components-menu-navigationbar-standard-stroke-selected);
978
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
979
- }
980
- .eds-contrast .eds-top-navigation-item {
981
- color: var(--components-menu-navigationbar-contrast-text-unselected);
982
- }
983
- .eds-top-navigation-item:focus-visible {
984
- outline: 2px solid #181c56;
985
- outline-color: var(--basecolors-stroke-focus-standard);
986
- outline-offset: 0.125rem;
987
- }
988
- .eds-contrast .eds-top-navigation-item:focus-visible {
989
- outline-color: var(--basecolors-stroke-focus-contrast);
990
- }
991
- .eds-top-navigation-item:hover {
992
- --show-active-line: 1;
993
- }
994
- .eds-top-navigation-item:hover::after {
995
- width: 2rem;
996
- }
997
- .eds-top-navigation-item--active {
998
- color: var(--components-menu-navigationbar-standard-text-selected);
999
- --show-active-line: 1;
1000
- }
1001
- .eds-top-navigation-item--active::after {
1002
- width: 2rem;
1003
- }
1004
- .eds-contrast .eds-top-navigation-item--active {
1005
- color: var(--components-menu-navigationbar-contrast-text-selected);
1006
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "5.1.0-beta.0",
3
+ "version": "5.1.1-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.95",
31
- "@entur/button": "^3.3.0-beta.0",
32
- "@entur/expand": "^3.6.0-beta.0",
33
- "@entur/icons": "^7.6.0",
34
- "@entur/layout": "^2.4.0-beta.0",
31
+ "@entur/button": "^3.3.1-beta.0",
32
+ "@entur/expand": "^3.6.1-beta.0",
33
+ "@entur/icons": "^7.7.0-beta.0",
34
+ "@entur/layout": "^2.4.1-beta.0",
35
35
  "@entur/tokens": "^3.17.5",
36
- "@entur/tooltip": "^5.2.0-beta.0",
37
- "@entur/typography": "^1.9.0-beta.0",
36
+ "@entur/tooltip": "^5.2.1-beta.0",
37
+ "@entur/typography": "^1.9.1-beta.0",
38
38
  "@entur/utils": "^0.12.2",
39
39
  "@floating-ui/react": "^0.26.23",
40
40
  "classnames": "^2.3.1"
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "dts-cli": "2.0.5"
44
44
  },
45
- "gitHead": "6ee621529704e08c9814cda206da98c37a9f0689"
45
+ "gitHead": "e65150a6a9f9e2beb4a8bbecc06b9237119fe55e"
46
46
  }