@entur/menu 4.1.0 → 4.1.3

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,169 +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
- .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-stepper {
110
- display: flex;
111
- flex-direction: row;
112
- }
113
- .eds-stepper__item__container {
114
- cursor: pointer;
115
- font-family: inherit;
116
- text-transform: none;
117
- -webkit-appearance: none;
118
- -moz-appearance: none;
119
- appearance: none;
120
- background: none;
121
- border: none;
122
- margin: 0;
123
- padding: 0;
124
- align-items: inherit;
125
- display: flex;
126
- flex-grow: 1;
127
- flex-basis: 0;
128
- flex-direction: column;
129
- margin-left: 0.25rem;
130
- }
131
- .eds-stepper__item__container--non-interactive {
132
- cursor: default;
133
- }
134
- .eds-stepper__item__container:focus {
135
- outline-offset: 0.125rem;
136
- outline: none;
137
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
138
- }
139
- .eds-contrast .eds-stepper__item__container:focus {
140
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
141
- }
142
- .eds-stepper__item__container:first-child {
143
- margin-left: 0;
144
- }
145
- .eds-stepper__item__label {
146
- cursor: inherit;
147
- flex-grow: 1;
148
- flex-direction: column;
149
- text-align: center;
150
- font-size: 0.875rem;
151
- padding: 0.25rem 1rem;
152
- }
153
- .eds-stepper__item__label--active {
154
- font-weight: 600;
155
- }
156
- .eds-stepper__item__label.eds-stepper__item__label--active {
157
- color: #181c56;
158
- }
159
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
160
- color: #ffffff;
161
- }
162
- .eds-stepper__item__label.eds-stepper__item__label--has-been {
163
- color: #181c56;
164
- }
165
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
166
- color: #ffffff;
167
- }
168
- .eds-stepper__item__square {
169
- height: 0.5rem;
170
- }
171
- .eds-stepper__item__square--active {
172
- color: inherit;
173
- background: #e9e9e9;
174
- position: relative;
175
- }
176
- .eds-stepper__item__square--active:before {
177
- background: #181c56;
178
- content: "";
179
- position: absolute;
180
- right: calc(50% - 0.2rem);
181
- border-radius: 0.0625rem;
182
- bottom: 0.0625rem;
183
- width: calc( 0.5rem - 0.125rem - 0.01rem );
184
- height: calc( 0.5rem - 0.125rem - 0.01rem );
185
- transform: rotate(45deg);
186
- }
187
- .eds-contrast .eds-stepper__item__square--active:before {
188
- border-left-color: #aeb7e2;
189
- border-left-color: #aeb7e2;
190
- }
191
- .eds-stepper__item__square--active:after {
192
- content: "";
193
- position: absolute;
194
- left: 0;
195
- bottom: 0;
196
- width: 50%;
197
- height: 0.5rem;
198
- background: #181c56;
199
- }
200
- .eds-contrast .eds-stepper__item__square--active:after {
201
- background: #aeb7e2;
202
- }
203
- .eds-contrast .eds-stepper__item__square--active {
204
- background: #aeb7e2;
205
- background: #393d79;
206
- }
207
- .eds-stepper__item__square--inactive {
208
- color: #656782;
209
- background: #e9e9e9;
210
- }
211
- .eds-contrast .eds-stepper__item__square--inactive {
212
- color: #aeb7e2;
213
- background: #393d79;
214
- }
215
- .eds-stepper__item__square--has-been {
216
- color: inherit;
217
- background: #181c56;
218
- }
219
- .eds-contrast .eds-stepper__item__square--has-been {
220
- background: #aeb7e2;
221
- }/* DO NOT CHANGE!*/
222
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
223
60
  .eds-pagination {
224
61
  align-items: center;
225
62
  display: flex;
@@ -695,4 +532,167 @@
695
532
  [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
696
533
  position: relative;
697
534
  right: calc(100% - 2rem);
535
+ }/* DO NOT CHANGE!*/
536
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
537
+ .eds-stepper {
538
+ display: flex;
539
+ flex-direction: row;
540
+ }
541
+ .eds-stepper__item__container {
542
+ cursor: pointer;
543
+ font-family: inherit;
544
+ text-transform: none;
545
+ -webkit-appearance: none;
546
+ -moz-appearance: none;
547
+ appearance: none;
548
+ background: none;
549
+ border: none;
550
+ margin: 0;
551
+ padding: 0;
552
+ align-items: inherit;
553
+ display: flex;
554
+ flex-grow: 1;
555
+ flex-basis: 0;
556
+ flex-direction: column;
557
+ margin-left: 0.25rem;
558
+ }
559
+ .eds-stepper__item__container--non-interactive {
560
+ cursor: default;
561
+ }
562
+ .eds-stepper__item__container:focus {
563
+ outline-offset: 0.125rem;
564
+ outline: none;
565
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
566
+ }
567
+ .eds-contrast .eds-stepper__item__container:focus {
568
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
569
+ }
570
+ .eds-stepper__item__container:first-child {
571
+ margin-left: 0;
572
+ }
573
+ .eds-stepper__item__label {
574
+ cursor: inherit;
575
+ flex-grow: 1;
576
+ flex-direction: column;
577
+ text-align: center;
578
+ font-size: 0.875rem;
579
+ padding: 0.25rem 1rem;
580
+ }
581
+ .eds-stepper__item__label--active {
582
+ font-weight: 600;
583
+ }
584
+ .eds-stepper__item__label.eds-stepper__item__label--active {
585
+ color: #181c56;
586
+ }
587
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
588
+ color: #ffffff;
589
+ }
590
+ .eds-stepper__item__label.eds-stepper__item__label--has-been {
591
+ color: #181c56;
592
+ }
593
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
594
+ color: #ffffff;
595
+ }
596
+ .eds-stepper__item__square {
597
+ height: 0.5rem;
598
+ }
599
+ .eds-stepper__item__square--active {
600
+ color: inherit;
601
+ background: #e9e9e9;
602
+ position: relative;
603
+ }
604
+ .eds-stepper__item__square--active:before {
605
+ background: #181c56;
606
+ content: "";
607
+ position: absolute;
608
+ right: calc(50% - 0.2rem);
609
+ border-radius: 0.0625rem;
610
+ bottom: 0.0625rem;
611
+ width: calc( 0.5rem - 0.125rem - 0.01rem );
612
+ height: calc( 0.5rem - 0.125rem - 0.01rem );
613
+ transform: rotate(45deg);
614
+ }
615
+ .eds-contrast .eds-stepper__item__square--active:before {
616
+ border-left-color: #aeb7e2;
617
+ border-left-color: #aeb7e2;
618
+ }
619
+ .eds-stepper__item__square--active:after {
620
+ content: "";
621
+ position: absolute;
622
+ left: 0;
623
+ bottom: 0;
624
+ width: 50%;
625
+ height: 0.5rem;
626
+ background: #181c56;
627
+ }
628
+ .eds-contrast .eds-stepper__item__square--active:after {
629
+ background: #aeb7e2;
630
+ }
631
+ .eds-contrast .eds-stepper__item__square--active {
632
+ background: #aeb7e2;
633
+ background: #393d79;
634
+ }
635
+ .eds-stepper__item__square--inactive {
636
+ color: #656782;
637
+ background: #e9e9e9;
638
+ }
639
+ .eds-contrast .eds-stepper__item__square--inactive {
640
+ color: #aeb7e2;
641
+ background: #393d79;
642
+ }
643
+ .eds-stepper__item__square--has-been {
644
+ color: inherit;
645
+ background: #181c56;
646
+ }
647
+ .eds-contrast .eds-stepper__item__square--has-been {
648
+ background: #aeb7e2;
649
+ }/* DO NOT CHANGE!*/
650
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
651
+ .eds-top-navigation-item {
652
+ --show-active-line: 0;
653
+ display: inline-block;
654
+ cursor: pointer;
655
+ color: inherit;
656
+ text-decoration: none;
657
+ position: relative;
658
+ padding: 1rem;
659
+ min-width: 5rem;
660
+ width: -webkit-fit-content;
661
+ width: -moz-fit-content;
662
+ width: fit-content;
663
+ text-align: center;
664
+ font-family: inherit;
665
+ font-size: 1rem;
666
+ font-weight: 600;
667
+ }
668
+ .eds-top-navigation-item::after {
669
+ content: "";
670
+ display: block;
671
+ bottom: 1rem;
672
+ height: 0.1875rem;
673
+ width: 0;
674
+ margin: 0 auto;
675
+ opacity: var(--show-active-line);
676
+ background: #ff5959;
677
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
678
+ }
679
+ .eds-top-navigation-item:focus {
680
+ outline-offset: 0.125rem;
681
+ outline: none;
682
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
683
+ }
684
+ .eds-contrast .eds-top-navigation-item:focus {
685
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
686
+ }
687
+ .eds-top-navigation-item:hover {
688
+ --show-active-line: 1;
689
+ }
690
+ .eds-top-navigation-item:hover::after {
691
+ width: 2rem;
692
+ }
693
+ .eds-top-navigation-item--active {
694
+ --show-active-line: 1;
695
+ }
696
+ .eds-top-navigation-item--active::after {
697
+ width: 2rem;
698
698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.0",
3
+ "version": "4.1.3",
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.1",
27
- "@entur/expand": "^3.3.12",
28
- "@entur/icons": "^4.1.2",
29
- "@entur/layout": "^2.1.5",
26
+ "@entur/button": "^2.9.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.12",
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": "0fba0071ad9dc75cc68b72b846f5bab78be12449"
40
+ "gitHead": "974289b6579ade4460d12aa877a89e454c983d48"
41
41
  }