@entur/menu 4.0.5 → 4.0.8

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
@@ -29,13 +29,22 @@
29
29
  background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
30
30
  }
31
31
  .eds-breadcrumb__link:hover {
32
- animation: eds-breadcrumb-underline 0.3s ease-in;
32
+ -webkit-animation: eds-breadcrumb-underline 0.3s ease-in;
33
+ animation: eds-breadcrumb-underline 0.3s ease-in;
33
34
  }
34
35
  .eds-breadcrumb__link:focus {
35
36
  outline: none;
36
37
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
37
38
  outline-offset: 0.125rem;
38
39
  }
40
+ @-webkit-keyframes eds-breadcrumb-underline {
41
+ from {
42
+ background-size: 0% 0.125rem;
43
+ }
44
+ to {
45
+ background-size: 100% 0.125rem;
46
+ }
47
+ }
39
48
  @keyframes eds-breadcrumb-underline {
40
49
  from {
41
50
  background-size: 0% 0.125rem;
@@ -57,6 +66,8 @@
57
66
  position: relative;
58
67
  padding: 1rem;
59
68
  min-width: 5rem;
69
+ width: -webkit-fit-content;
70
+ width: -moz-fit-content;
60
71
  width: fit-content;
61
72
  text-align: center;
62
73
  font-family: inherit;
@@ -95,118 +106,6 @@
95
106
  width: 2rem;
96
107
  }/* DO NOT CHANGE!*/
97
108
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
98
- .eds-stepper {
99
- display: flex;
100
- flex-direction: row;
101
- }
102
- .eds-stepper__item__container {
103
- cursor: pointer;
104
- font-family: inherit;
105
- text-transform: none;
106
- appearance: none;
107
- background: none;
108
- border: none;
109
- margin: 0;
110
- padding: 0;
111
- align-items: inherit;
112
- display: flex;
113
- flex-grow: 1;
114
- flex-basis: 0;
115
- flex-direction: column;
116
- margin-left: 0.25rem;
117
- }
118
- .eds-stepper__item__container--non-interactive {
119
- cursor: default;
120
- }
121
- .eds-stepper__item__container:focus {
122
- outline-offset: 0.125rem;
123
- outline: none;
124
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
125
- }
126
- .eds-contrast .eds-stepper__item__container:focus {
127
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
128
- }
129
- .eds-stepper__item__container:first-child {
130
- margin-left: 0;
131
- }
132
- .eds-stepper__item__label {
133
- cursor: inherit;
134
- flex-grow: 1;
135
- flex-direction: column;
136
- text-align: center;
137
- font-size: 0.875rem;
138
- padding: 0.25rem 1rem;
139
- }
140
- .eds-stepper__item__label--active {
141
- font-weight: 600;
142
- }
143
- .eds-stepper__item__label.eds-stepper__item__label--active {
144
- color: #181c56;
145
- }
146
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
147
- color: #ffffff;
148
- }
149
- .eds-stepper__item__label.eds-stepper__item__label--has-been {
150
- color: #181c56;
151
- }
152
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
153
- color: #ffffff;
154
- }
155
- .eds-stepper__item__square {
156
- height: 0.5rem;
157
- }
158
- .eds-stepper__item__square--active {
159
- color: inherit;
160
- background: #e9e9e9;
161
- position: relative;
162
- }
163
- .eds-stepper__item__square--active:before {
164
- background: #181c56;
165
- content: "";
166
- position: absolute;
167
- right: calc(50% - 0.2rem);
168
- border-radius: 0.0625rem;
169
- bottom: 0.0625rem;
170
- width: calc( 0.5rem - 0.125rem - 0.01rem );
171
- height: calc( 0.5rem - 0.125rem - 0.01rem );
172
- transform: rotate(45deg);
173
- }
174
- .eds-contrast .eds-stepper__item__square--active:before {
175
- border-left-color: #aeb7e2;
176
- border-left-color: #aeb7e2;
177
- }
178
- .eds-stepper__item__square--active:after {
179
- content: "";
180
- position: absolute;
181
- left: 0;
182
- bottom: 0;
183
- width: 50%;
184
- height: 0.5rem;
185
- background: #181c56;
186
- }
187
- .eds-contrast .eds-stepper__item__square--active:after {
188
- background: #aeb7e2;
189
- }
190
- .eds-contrast .eds-stepper__item__square--active {
191
- background: #aeb7e2;
192
- background: #393d79;
193
- }
194
- .eds-stepper__item__square--inactive {
195
- color: #656782;
196
- background: #e9e9e9;
197
- }
198
- .eds-contrast .eds-stepper__item__square--inactive {
199
- color: #aeb7e2;
200
- background: #393d79;
201
- }
202
- .eds-stepper__item__square--has-been {
203
- color: inherit;
204
- background: #181c56;
205
- }
206
- .eds-contrast .eds-stepper__item__square--has-been {
207
- background: #aeb7e2;
208
- }/* DO NOT CHANGE!*/
209
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
210
109
  .eds-pagination {
211
110
  align-items: center;
212
111
  display: flex;
@@ -230,7 +129,9 @@
230
129
  }
231
130
 
232
131
  .eds-pagination-menu__menu-button {
233
- appearance: none;
132
+ -webkit-appearance: none;
133
+ -moz-appearance: none;
134
+ appearance: none;
234
135
  background: transparent;
235
136
  border: 0.0625rem solid #d1d3d3;
236
137
  border-radius: 0.25rem;
@@ -257,7 +158,9 @@
257
158
 
258
159
  .eds-pagination__page {
259
160
  align-items: center;
260
- appearance: none;
161
+ -webkit-appearance: none;
162
+ -moz-appearance: none;
163
+ appearance: none;
261
164
  background: transparent;
262
165
  border: 0.0625rem solid #d1d3d3;
263
166
  border-color: #d1d3d3;
@@ -272,7 +175,10 @@
272
175
  margin: 0 0.125rem;
273
176
  padding: 0 0.25rem;
274
177
  transition: background 0.1s ease-out, border-color 0.1s ease-out;
275
- user-select: none;
178
+ -webkit-user-select: none;
179
+ -moz-user-select: none;
180
+ -ms-user-select: none;
181
+ user-select: none;
276
182
  min-width: 2rem;
277
183
  }
278
184
  .eds-contrast .eds-pagination__page {
@@ -312,7 +218,10 @@
312
218
  font-size: 1.5rem;
313
219
  height: 2rem;
314
220
  justify-content: center;
315
- user-select: none;
221
+ -webkit-user-select: none;
222
+ -moz-user-select: none;
223
+ -ms-user-select: none;
224
+ user-select: none;
316
225
  width: 2rem;
317
226
  }
318
227
 
@@ -329,7 +238,9 @@
329
238
  }
330
239
 
331
240
  .eds-pagination__input-field {
332
- appearance: none;
241
+ -webkit-appearance: none;
242
+ -moz-appearance: none;
243
+ appearance: none;
333
244
  background: transparent;
334
245
  border: 0.0625rem solid #d1d3d3;
335
246
  border-radius: 0.25rem;
@@ -341,7 +252,8 @@
341
252
  width: 2rem;
342
253
  }
343
254
  .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
344
- appearance: none;
255
+ -webkit-appearance: none;
256
+ appearance: none;
345
257
  margin: 0;
346
258
  }/* DO NOT CHANGE!*/
347
259
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -452,7 +364,9 @@
452
364
  }
453
365
 
454
366
  .eds-side-navigation__click-target {
455
- appearance: none;
367
+ -webkit-appearance: none;
368
+ -moz-appearance: none;
369
+ appearance: none;
456
370
  background: none;
457
371
  border: 0;
458
372
  border-bottom: 0.125rem solid #e9e9e9;
@@ -519,7 +433,9 @@
519
433
 
520
434
  .eds-side-navigation-group__trigger {
521
435
  align-items: center;
522
- appearance: none;
436
+ -webkit-appearance: none;
437
+ -moz-appearance: none;
438
+ appearance: none;
523
439
  background: none;
524
440
  border: none;
525
441
  border-radius: 0;
@@ -561,7 +477,9 @@
561
477
  }/* DO NOT CHANGE!*/
562
478
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
563
479
  .eds-overflow-menu__item {
564
- appearance: none;
480
+ -webkit-appearance: none;
481
+ -moz-appearance: none;
482
+ appearance: none;
565
483
  border: none;
566
484
  font-size: 0.875rem;
567
485
  font-family: inherit;
@@ -621,7 +539,19 @@
621
539
 
622
540
  .eds-overflow-menu__menu-list[data-reach-menu-list],
623
541
  .eds-overflow-menu__menu-list[data-reach-menu-items] {
624
- animation: slide-in 0.2s ease-in-out;
542
+ -webkit-animation: slide-in 0.2s ease-in-out;
543
+ animation: slide-in 0.2s ease-in-out;
544
+ }
545
+
546
+ @-webkit-keyframes slide-in {
547
+ 0% {
548
+ opacity: 0;
549
+ transform: translateY(0.5rem);
550
+ }
551
+ 100% {
552
+ opacity: 1;
553
+ transform: translateY(0);
554
+ }
625
555
  }
626
556
 
627
557
  @keyframes slide-in {
@@ -641,4 +571,118 @@
641
571
  [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
642
572
  position: relative;
643
573
  right: calc(100% - 2rem);
574
+ }/* DO NOT CHANGE!*/
575
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
576
+ .eds-stepper {
577
+ display: flex;
578
+ flex-direction: row;
579
+ }
580
+ .eds-stepper__item__container {
581
+ cursor: pointer;
582
+ font-family: inherit;
583
+ text-transform: none;
584
+ -webkit-appearance: none;
585
+ -moz-appearance: none;
586
+ appearance: none;
587
+ background: none;
588
+ border: none;
589
+ margin: 0;
590
+ padding: 0;
591
+ align-items: inherit;
592
+ display: flex;
593
+ flex-grow: 1;
594
+ flex-basis: 0;
595
+ flex-direction: column;
596
+ margin-left: 0.25rem;
597
+ }
598
+ .eds-stepper__item__container--non-interactive {
599
+ cursor: default;
600
+ }
601
+ .eds-stepper__item__container:focus {
602
+ outline-offset: 0.125rem;
603
+ outline: none;
604
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
605
+ }
606
+ .eds-contrast .eds-stepper__item__container:focus {
607
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
608
+ }
609
+ .eds-stepper__item__container:first-child {
610
+ margin-left: 0;
611
+ }
612
+ .eds-stepper__item__label {
613
+ cursor: inherit;
614
+ flex-grow: 1;
615
+ flex-direction: column;
616
+ text-align: center;
617
+ font-size: 0.875rem;
618
+ padding: 0.25rem 1rem;
619
+ }
620
+ .eds-stepper__item__label--active {
621
+ font-weight: 600;
622
+ }
623
+ .eds-stepper__item__label.eds-stepper__item__label--active {
624
+ color: #181c56;
625
+ }
626
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
627
+ color: #ffffff;
628
+ }
629
+ .eds-stepper__item__label.eds-stepper__item__label--has-been {
630
+ color: #181c56;
631
+ }
632
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
633
+ color: #ffffff;
634
+ }
635
+ .eds-stepper__item__square {
636
+ height: 0.5rem;
637
+ }
638
+ .eds-stepper__item__square--active {
639
+ color: inherit;
640
+ background: #e9e9e9;
641
+ position: relative;
642
+ }
643
+ .eds-stepper__item__square--active:before {
644
+ background: #181c56;
645
+ content: "";
646
+ position: absolute;
647
+ right: calc(50% - 0.2rem);
648
+ border-radius: 0.0625rem;
649
+ bottom: 0.0625rem;
650
+ width: calc( 0.5rem - 0.125rem - 0.01rem );
651
+ height: calc( 0.5rem - 0.125rem - 0.01rem );
652
+ transform: rotate(45deg);
653
+ }
654
+ .eds-contrast .eds-stepper__item__square--active:before {
655
+ border-left-color: #aeb7e2;
656
+ border-left-color: #aeb7e2;
657
+ }
658
+ .eds-stepper__item__square--active:after {
659
+ content: "";
660
+ position: absolute;
661
+ left: 0;
662
+ bottom: 0;
663
+ width: 50%;
664
+ height: 0.5rem;
665
+ background: #181c56;
666
+ }
667
+ .eds-contrast .eds-stepper__item__square--active:after {
668
+ background: #aeb7e2;
669
+ }
670
+ .eds-contrast .eds-stepper__item__square--active {
671
+ background: #aeb7e2;
672
+ background: #393d79;
673
+ }
674
+ .eds-stepper__item__square--inactive {
675
+ color: #656782;
676
+ background: #e9e9e9;
677
+ }
678
+ .eds-contrast .eds-stepper__item__square--inactive {
679
+ color: #aeb7e2;
680
+ background: #393d79;
681
+ }
682
+ .eds-stepper__item__square--has-been {
683
+ color: inherit;
684
+ background: #181c56;
685
+ }
686
+ .eds-contrast .eds-stepper__item__square--has-been {
687
+ background: #aeb7e2;
644
688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.0.5",
3
+ "version": "4.0.8",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -17,19 +17,19 @@
17
17
  "access": "public"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsdx build",
21
- "start": "tsdx watch --noClean",
22
- "test": "tsdx test --env=jsdom",
23
- "lint": "tsdx lint"
20
+ "build": "dts build",
21
+ "start": "dts watch --noClean",
22
+ "test": "dts test --env=jsdom",
23
+ "lint": "dts lint"
24
24
  },
25
25
  "dependencies": {
26
- "@entur/button": "^2.7.4",
27
- "@entur/expand": "^3.3.6",
28
- "@entur/icons": "^3.4.0",
29
- "@entur/layout": "^2.1.3",
30
- "@entur/tokens": "^3.3.0",
31
- "@entur/typography": "^1.6.10",
32
- "@entur/utils": "^0.4.2",
26
+ "@entur/button": "^2.8.0",
27
+ "@entur/expand": "^3.3.9",
28
+ "@entur/icons": "^4.0.0",
29
+ "@entur/layout": "^2.1.4",
30
+ "@entur/tokens": "^3.3.1",
31
+ "@entur/typography": "^1.6.11",
32
+ "@entur/utils": "^0.4.3",
33
33
  "@reach/menu-button": "^0.16.1",
34
34
  "classnames": "^2.3.1"
35
35
  },
@@ -37,5 +37,5 @@
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0"
39
39
  },
40
- "gitHead": "6255452bbbb124b6569095cf08f96143873a7f8e"
40
+ "gitHead": "f760e1b8cfdc14231bd6391a8d82dfed1d71daa4"
41
41
  }