@entur/menu 4.1.48 → 4.1.49

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 +369 -369
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -50,122 +50,212 @@
50
50
  }
51
51
  /* DO NOT CHANGE!*/
52
52
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
53
- .eds-stepper {
54
- display: flex;
55
- flex-direction: row;
56
- }
57
- .eds-stepper__item__container {
53
+ .eds-top-navigation-item {
54
+ --show-active-line: 0;
55
+ display: inline-block;
58
56
  cursor: pointer;
57
+ color: inherit;
58
+ text-decoration: none;
59
+ position: relative;
60
+ padding: 1rem;
61
+ min-width: 5rem;
62
+ width: -moz-fit-content;
63
+ width: fit-content;
64
+ text-align: center;
59
65
  font-family: inherit;
60
- text-transform: none;
61
- -webkit-appearance: none;
62
- -moz-appearance: none;
63
- appearance: none;
64
- background: none;
65
- border: none;
66
- margin: 0;
67
- padding: 0;
68
- align-items: inherit;
69
- display: flex;
70
- flex-grow: 1;
71
- flex-basis: 0;
72
- flex-direction: column;
73
- margin-left: 0.25rem;
66
+ font-size: 1rem;
67
+ font-weight: 600;
74
68
  }
75
- .eds-stepper__item__container--non-interactive {
76
- cursor: default;
69
+ .eds-top-navigation-item::after {
70
+ content: "";
71
+ display: block;
72
+ bottom: 1rem;
73
+ height: 0.1875rem;
74
+ width: 0;
75
+ margin: 0 auto;
76
+ opacity: var(--show-active-line);
77
+ background: #ff5959;
78
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
77
79
  }
78
- .eds-stepper__item__container:focus {
80
+ .eds-top-navigation-item:focus {
79
81
  outline-offset: 0.125rem;
80
82
  outline: none;
81
83
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
82
84
  }
83
- .eds-contrast .eds-stepper__item__container:focus {
85
+ .eds-contrast .eds-top-navigation-item:focus {
84
86
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
85
87
  }
86
- .eds-stepper__item__container:first-child {
87
- margin-left: 0;
88
+ .eds-top-navigation-item:hover {
89
+ --show-active-line: 1;
88
90
  }
89
- .eds-stepper__item__label {
90
- cursor: inherit;
91
- flex-grow: 1;
92
- flex-direction: column;
93
- text-align: center;
94
- font-size: 0.875rem;
95
- padding: 0.25rem 1rem;
91
+ .eds-top-navigation-item:hover::after {
92
+ width: 2rem;
96
93
  }
97
- .eds-stepper__item__label--active {
98
- font-weight: 600;
94
+ .eds-top-navigation-item--active {
95
+ --show-active-line: 1;
99
96
  }
100
- .eds-stepper__item__label.eds-stepper__item__label--active {
101
- color: #181c56;
97
+ .eds-top-navigation-item--active::after {
98
+ width: 2rem;
102
99
  }
103
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
104
- color: #ffffff;
100
+ /* DO NOT CHANGE!*/
101
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
102
+ .eds-pagination {
103
+ align-items: center;
104
+ display: flex;
105
+ flex-wrap: wrap;
106
+ row-gap: 0.75rem;
107
+ justify-content: space-between;
105
108
  }
106
- .eds-stepper__item__label.eds-stepper__item__label--has-been {
107
- color: #181c56;
109
+ .eds-pagination__results {
110
+ align-items: center;
111
+ display: flex;
112
+ flex: 1;
113
+ justify-content: flex-start;
108
114
  }
109
- .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
110
- color: #ffffff;
115
+ .eds-pagination__results-label {
116
+ margin-right: 0.5rem;
111
117
  }
112
- .eds-stepper__item__square {
113
- height: 0.5rem;
118
+ .eds-pagination__controls {
119
+ align-items: center;
120
+ display: flex;
121
+ justify-content: center;
114
122
  }
115
- .eds-stepper__item__square--active {
123
+ .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
124
+ margin: 0 auto;
125
+ }
126
+
127
+ .eds-pagination-menu__menu-button {
128
+ -webkit-appearance: none;
129
+ -moz-appearance: none;
130
+ appearance: none;
131
+ background: transparent;
132
+ border: 0.0625rem solid #d1d3d3;
133
+ border-radius: 0.25rem;
116
134
  color: inherit;
117
- background: #e9e9e9;
118
- position: relative;
135
+ font-family: inherit;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: space-around;
139
+ height: 2rem;
140
+ margin-left: 0.25rem;
141
+ margin-right: 1rem;
142
+ width: 3.5rem;
119
143
  }
120
- .eds-stepper__item__square--active:before {
121
- background: #181c56;
122
- content: "";
123
- position: absolute;
124
- right: calc(50% - 0.2rem);
125
- border-radius: 0.0625rem;
126
- bottom: 0.0625rem;
127
- width: calc(
128
- 0.5rem - 0.125rem - 0.01rem
129
- );
130
- height: calc(
131
- 0.5rem - 0.125rem - 0.01rem
132
- );
133
- transform: rotate(45deg);
144
+ .eds-pagination-menu__menu-button--open {
145
+ border-color: currentColor;
134
146
  }
135
- .eds-contrast .eds-stepper__item__square--active:before {
136
- border-left-color: #aeb7e2;
137
- border-left-color: #aeb7e2;
147
+ .eds-pagination-menu__menu-button:focus {
148
+ outline: none;
149
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
138
150
  }
139
- .eds-stepper__item__square--active:after {
140
- content: "";
141
- position: absolute;
142
- left: 0;
143
- bottom: 0;
144
- width: 50%;
145
- height: 0.5rem;
146
- background: #181c56;
151
+ .eds-pagination-menu__menu-list {
152
+ width: 3.5rem;
147
153
  }
148
- .eds-contrast .eds-stepper__item__square--active:after {
149
- background: #aeb7e2;
154
+
155
+ .eds-pagination__page {
156
+ align-items: center;
157
+ -webkit-appearance: none;
158
+ -moz-appearance: none;
159
+ appearance: none;
160
+ background: transparent;
161
+ border: 0.0625rem solid #d1d3d3;
162
+ border-color: #d1d3d3;
163
+ border-radius: 0.25rem;
164
+ color: inherit;
165
+ cursor: pointer;
166
+ display: flex;
167
+ font-family: inherit;
168
+ font-size: 0.875rem;
169
+ height: 2rem;
170
+ justify-content: center;
171
+ margin: 0 0.125rem;
172
+ padding: 0 0.25rem;
173
+ transition: background 0.1s ease-out, border-color 0.1s ease-out;
174
+ -webkit-user-select: none;
175
+ -moz-user-select: none;
176
+ user-select: none;
177
+ min-width: 2rem;
150
178
  }
151
- .eds-contrast .eds-stepper__item__square--active {
152
- background: #aeb7e2;
179
+ .eds-contrast .eds-pagination__page {
180
+ border-color: #54568c;
181
+ }
182
+ .eds-pagination__page--selected {
183
+ background: #d1d4e3;
184
+ border-color: #181c56;
185
+ color: inherit;
186
+ opacity: 1;
187
+ pointer-events: none;
188
+ }
189
+ .eds-contrast .eds-pagination__page--selected {
190
+ border-color: #ffffff;
153
191
  background: #393d79;
154
192
  }
155
- .eds-stepper__item__square--inactive {
193
+ .eds-pagination__page--disabled {
194
+ opacity: 0.5;
195
+ pointer-events: none;
196
+ }
197
+ .eds-pagination__page:hover {
198
+ background-color: #d1d4e3;
199
+ border-color: #d1d4e3;
200
+ }
201
+ .eds-contrast .eds-pagination__page:hover {
202
+ background-color: #393d79;
203
+ border-color: #393d79;
204
+ }
205
+ .eds-pagination__page:focus {
206
+ outline: none;
207
+ border-color: #181c56;
208
+ }
209
+ .eds-contrast .eds-pagination__page:focus {
210
+ border-color: #ffffff;
211
+ }
212
+
213
+ .eds-pagination__ellipsis {
214
+ align-items: baseline;
215
+ cursor: default;
216
+ display: flex;
217
+ font-size: 1.5rem;
218
+ height: 2rem;
219
+ justify-content: center;
220
+ -webkit-user-select: none;
221
+ -moz-user-select: none;
222
+ user-select: none;
223
+ width: 2rem;
224
+ margin: 0 2px;
225
+ }
226
+
227
+ .eds-pagination__input-wrapper {
228
+ white-space: nowrap;
229
+ }
230
+ .eds-pagination__input-label {
231
+ border-left: 0.0625rem solid #d1d3d3;
156
232
  color: #656782;
157
- background: #e9e9e9;
233
+ font-size: 0.875rem;
234
+ margin-left: 0.5rem;
235
+ padding: 0 1rem;
158
236
  }
159
- .eds-contrast .eds-stepper__item__square--inactive {
237
+ .eds-contrast .eds-pagination__input-label {
238
+ border-color: #393d79;
160
239
  color: #aeb7e2;
161
- background: #393d79;
162
240
  }
163
- .eds-stepper__item__square--has-been {
241
+ .eds-pagination__input-field {
242
+ -webkit-appearance: none;
243
+ -moz-appearance: none;
244
+ appearance: none;
245
+ background: transparent;
246
+ border: 0.0625rem solid #d1d3d3;
247
+ border-radius: 0.25rem;
164
248
  color: inherit;
165
- background: #181c56;
249
+ font-family: inherit;
250
+ font-size: 0.875rem;
251
+ height: 2rem;
252
+ text-align: center;
253
+ width: 2rem;
166
254
  }
167
- .eds-contrast .eds-stepper__item__square--has-been {
168
- background: #aeb7e2;
255
+ .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
256
+ -webkit-appearance: none;
257
+ appearance: none;
258
+ margin: 0;
169
259
  }
170
260
  /* DO NOT CHANGE!*/
171
261
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -290,311 +380,102 @@
290
380
  font-size: inherit;
291
381
  font-weight: 500;
292
382
  line-height: inherit;
293
- padding: var(--padding-vertical) 2.5rem;
294
- padding-left: 2.5rem;
295
- transition: padding 0.2s ease-in-out;
296
- text-align: left;
297
- text-decoration: none;
298
- width: 100%;
299
- }
300
- .eds-contrast .eds-side-navigation__click-target {
301
- border-color: #292b6a;
302
- }
303
- .eds-side-navigation--collapsed .eds-side-navigation__click-target {
304
- padding-left: 2rem;
305
- }
306
- .eds-side-navigation__click-target--active {
307
- box-shadow: inset 0.25rem 0 0 #181c56;
308
- font-weight: 600;
309
- }
310
- .eds-contrast .eds-side-navigation__click-target--active {
311
- box-shadow: inset 0.25rem 0 0 #ff5959;
312
- }
313
- .eds-side-navigation__click-target[disabled] {
314
- cursor: not-allowed;
315
- color: #656782;
316
- }
317
- .eds-side-navigation__click-target:not([disabled]):hover {
318
- background-color: #d1d4e3;
319
- }
320
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
321
- background-color: #393d79;
322
- }
323
- .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
324
- outline: 2px solid #181c56;
325
- outline-offset: -2px;
326
- background: #ebebf1;
327
- }
328
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
329
- background-color: #54568c;
330
- outline: 2px solid #ffffff;
331
- }
332
-
333
- .eds-side-navigation-group {
334
- background-color: var(--primary-background-color);
335
- color: var(--primary-text-color);
336
- }
337
- .eds-side-navigation-group + .eds-side-navigation-group {
338
- padding-top: 0.5rem;
339
- }
340
- @media screen and (min-width: 50rem) {
341
- .eds-side-navigation-group {
342
- max-width: 26rem;
343
- }
344
- }
345
-
346
- .eds-side-navigation-group__trigger {
347
- align-items: center;
348
- -webkit-appearance: none;
349
- -moz-appearance: none;
350
- appearance: none;
351
- background: none;
352
- border: none;
353
- border-radius: 0;
354
- border-bottom: 0.125rem solid #e9e9e9;
355
- color: #656782;
356
- cursor: pointer;
357
- display: flex;
358
- font-size: 0.875rem;
359
- font-family: inherit;
360
- font-weight: 500;
361
- height: 3rem;
362
- justify-content: space-between;
363
- letter-spacing: 1px;
364
- line-height: 1.25rem;
365
- padding: 0.75rem 0 0.75rem 2.5rem;
366
- margin: 0;
367
- text-transform: uppercase;
368
- transition: padding 0.2s ease-in-out;
369
- width: 100%;
370
- }
371
- .eds-contrast .eds-side-navigation-group__trigger {
372
- color: #aeb7e2;
373
- border-color: #292b6a;
374
- }
375
- .eds-side-navigation-group__trigger-icon {
376
- margin-right: 0.75rem;
377
- }
378
- .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
379
- margin-right: 2.5rem;
380
- }
381
- .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
382
- padding-left: 2rem;
383
- }
384
- .eds-side-navigation-group__trigger:focus {
385
- outline: 2px solid #181c56;
386
- }
387
- .eds-contrast .eds-side-navigation-group__trigger:focus {
388
- outline: 2px solid #ffffff;
389
- }
390
- /* DO NOT CHANGE!*/
391
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
392
- .eds-top-navigation-item {
393
- --show-active-line: 0;
394
- display: inline-block;
395
- cursor: pointer;
396
- color: inherit;
397
- text-decoration: none;
398
- position: relative;
399
- padding: 1rem;
400
- min-width: 5rem;
401
- width: -moz-fit-content;
402
- width: fit-content;
403
- text-align: center;
404
- font-family: inherit;
405
- font-size: 1rem;
406
- font-weight: 600;
407
- }
408
- .eds-top-navigation-item::after {
409
- content: "";
410
- display: block;
411
- bottom: 1rem;
412
- height: 0.1875rem;
413
- width: 0;
414
- margin: 0 auto;
415
- opacity: var(--show-active-line);
416
- background: #ff5959;
417
- transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
418
- }
419
- .eds-top-navigation-item:focus {
420
- outline-offset: 0.125rem;
421
- outline: none;
422
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
423
- }
424
- .eds-contrast .eds-top-navigation-item:focus {
425
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
426
- }
427
- .eds-top-navigation-item:hover {
428
- --show-active-line: 1;
429
- }
430
- .eds-top-navigation-item:hover::after {
431
- width: 2rem;
432
- }
433
- .eds-top-navigation-item--active {
434
- --show-active-line: 1;
435
- }
436
- .eds-top-navigation-item--active::after {
437
- width: 2rem;
438
- }
439
- /* DO NOT CHANGE!*/
440
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
441
- .eds-pagination {
442
- align-items: center;
443
- display: flex;
444
- flex-wrap: wrap;
445
- row-gap: 0.75rem;
446
- justify-content: space-between;
447
- }
448
- .eds-pagination__results {
449
- align-items: center;
450
- display: flex;
451
- flex: 1;
452
- justify-content: flex-start;
453
- }
454
- .eds-pagination__results-label {
455
- margin-right: 0.5rem;
456
- }
457
- .eds-pagination__controls {
458
- align-items: center;
459
- display: flex;
460
- justify-content: center;
461
- }
462
- .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
463
- margin: 0 auto;
464
- }
465
-
466
- .eds-pagination-menu__menu-button {
467
- -webkit-appearance: none;
468
- -moz-appearance: none;
469
- appearance: none;
470
- background: transparent;
471
- border: 0.0625rem solid #d1d3d3;
472
- border-radius: 0.25rem;
473
- color: inherit;
474
- font-family: inherit;
475
- display: flex;
476
- align-items: center;
477
- justify-content: space-around;
478
- height: 2rem;
479
- margin-left: 0.25rem;
480
- margin-right: 1rem;
481
- width: 3.5rem;
482
- }
483
- .eds-pagination-menu__menu-button--open {
484
- border-color: currentColor;
485
- }
486
- .eds-pagination-menu__menu-button:focus {
487
- outline: none;
488
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
489
- }
490
- .eds-pagination-menu__menu-list {
491
- width: 3.5rem;
492
- }
493
-
494
- .eds-pagination__page {
495
- align-items: center;
496
- -webkit-appearance: none;
497
- -moz-appearance: none;
498
- appearance: none;
499
- background: transparent;
500
- border: 0.0625rem solid #d1d3d3;
501
- border-color: #d1d3d3;
502
- border-radius: 0.25rem;
503
- color: inherit;
504
- cursor: pointer;
505
- display: flex;
506
- font-family: inherit;
507
- font-size: 0.875rem;
508
- height: 2rem;
509
- justify-content: center;
510
- margin: 0 0.125rem;
511
- padding: 0 0.25rem;
512
- transition: background 0.1s ease-out, border-color 0.1s ease-out;
513
- -webkit-user-select: none;
514
- -moz-user-select: none;
515
- user-select: none;
516
- min-width: 2rem;
383
+ padding: var(--padding-vertical) 2.5rem;
384
+ padding-left: 2.5rem;
385
+ transition: padding 0.2s ease-in-out;
386
+ text-align: left;
387
+ text-decoration: none;
388
+ width: 100%;
517
389
  }
518
- .eds-contrast .eds-pagination__page {
519
- border-color: #54568c;
390
+ .eds-contrast .eds-side-navigation__click-target {
391
+ border-color: #292b6a;
520
392
  }
521
- .eds-pagination__page--selected {
522
- background: #d1d4e3;
523
- border-color: #181c56;
524
- color: inherit;
525
- opacity: 1;
526
- pointer-events: none;
393
+ .eds-side-navigation--collapsed .eds-side-navigation__click-target {
394
+ padding-left: 2rem;
527
395
  }
528
- .eds-contrast .eds-pagination__page--selected {
529
- border-color: #ffffff;
530
- background: #393d79;
396
+ .eds-side-navigation__click-target--active {
397
+ box-shadow: inset 0.25rem 0 0 #181c56;
398
+ font-weight: 600;
531
399
  }
532
- .eds-pagination__page--disabled {
533
- opacity: 0.5;
534
- pointer-events: none;
400
+ .eds-contrast .eds-side-navigation__click-target--active {
401
+ box-shadow: inset 0.25rem 0 0 #ff5959;
535
402
  }
536
- .eds-pagination__page:hover {
403
+ .eds-side-navigation__click-target[disabled] {
404
+ cursor: not-allowed;
405
+ color: #656782;
406
+ }
407
+ .eds-side-navigation__click-target:not([disabled]):hover {
537
408
  background-color: #d1d4e3;
538
- border-color: #d1d4e3;
539
409
  }
540
- .eds-contrast .eds-pagination__page:hover {
410
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
541
411
  background-color: #393d79;
542
- border-color: #393d79;
543
- }
544
- .eds-pagination__page:focus {
545
- outline: none;
546
- border-color: #181c56;
547
412
  }
548
- .eds-contrast .eds-pagination__page:focus {
549
- border-color: #ffffff;
413
+ .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
414
+ outline: 2px solid #181c56;
415
+ outline-offset: -2px;
416
+ background: #ebebf1;
550
417
  }
551
-
552
- .eds-pagination__ellipsis {
553
- align-items: baseline;
554
- cursor: default;
555
- display: flex;
556
- font-size: 1.5rem;
557
- height: 2rem;
558
- justify-content: center;
559
- -webkit-user-select: none;
560
- -moz-user-select: none;
561
- user-select: none;
562
- width: 2rem;
563
- margin: 0 2px;
418
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
419
+ background-color: #54568c;
420
+ outline: 2px solid #ffffff;
564
421
  }
565
422
 
566
- .eds-pagination__input-wrapper {
567
- white-space: nowrap;
423
+ .eds-side-navigation-group {
424
+ background-color: var(--primary-background-color);
425
+ color: var(--primary-text-color);
568
426
  }
569
- .eds-pagination__input-label {
570
- border-left: 0.0625rem solid #d1d3d3;
571
- color: #656782;
572
- font-size: 0.875rem;
573
- margin-left: 0.5rem;
574
- padding: 0 1rem;
427
+ .eds-side-navigation-group + .eds-side-navigation-group {
428
+ padding-top: 0.5rem;
575
429
  }
576
- .eds-contrast .eds-pagination__input-label {
577
- border-color: #393d79;
578
- color: #aeb7e2;
430
+ @media screen and (min-width: 50rem) {
431
+ .eds-side-navigation-group {
432
+ max-width: 26rem;
433
+ }
579
434
  }
580
- .eds-pagination__input-field {
435
+
436
+ .eds-side-navigation-group__trigger {
437
+ align-items: center;
581
438
  -webkit-appearance: none;
582
439
  -moz-appearance: none;
583
440
  appearance: none;
584
- background: transparent;
585
- border: 0.0625rem solid #d1d3d3;
586
- border-radius: 0.25rem;
587
- color: inherit;
588
- font-family: inherit;
441
+ background: none;
442
+ border: none;
443
+ border-radius: 0;
444
+ border-bottom: 0.125rem solid #e9e9e9;
445
+ color: #656782;
446
+ cursor: pointer;
447
+ display: flex;
589
448
  font-size: 0.875rem;
590
- height: 2rem;
591
- text-align: center;
592
- width: 2rem;
593
- }
594
- .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
595
- -webkit-appearance: none;
596
- appearance: none;
449
+ font-family: inherit;
450
+ font-weight: 500;
451
+ height: 3rem;
452
+ justify-content: space-between;
453
+ letter-spacing: 1px;
454
+ line-height: 1.25rem;
455
+ padding: 0.75rem 0 0.75rem 2.5rem;
597
456
  margin: 0;
457
+ text-transform: uppercase;
458
+ transition: padding 0.2s ease-in-out;
459
+ width: 100%;
460
+ }
461
+ .eds-contrast .eds-side-navigation-group__trigger {
462
+ color: #aeb7e2;
463
+ border-color: #292b6a;
464
+ }
465
+ .eds-side-navigation-group__trigger-icon {
466
+ margin-right: 0.75rem;
467
+ }
468
+ .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
469
+ margin-right: 2.5rem;
470
+ }
471
+ .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
472
+ padding-left: 2rem;
473
+ }
474
+ .eds-side-navigation-group__trigger:focus {
475
+ outline: 2px solid #181c56;
476
+ }
477
+ .eds-contrast .eds-side-navigation-group__trigger:focus {
478
+ outline: 2px solid #ffffff;
598
479
  }
599
480
  /* DO NOT CHANGE!*/
600
481
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -682,3 +563,122 @@
682
563
  position: relative;
683
564
  right: calc(100% - 2rem);
684
565
  }
566
+ /* DO NOT CHANGE!*/
567
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
568
+ .eds-stepper {
569
+ display: flex;
570
+ flex-direction: row;
571
+ }
572
+ .eds-stepper__item__container {
573
+ cursor: pointer;
574
+ font-family: inherit;
575
+ text-transform: none;
576
+ -webkit-appearance: none;
577
+ -moz-appearance: none;
578
+ appearance: none;
579
+ background: none;
580
+ border: none;
581
+ margin: 0;
582
+ padding: 0;
583
+ align-items: inherit;
584
+ display: flex;
585
+ flex-grow: 1;
586
+ flex-basis: 0;
587
+ flex-direction: column;
588
+ margin-left: 0.25rem;
589
+ }
590
+ .eds-stepper__item__container--non-interactive {
591
+ cursor: default;
592
+ }
593
+ .eds-stepper__item__container:focus {
594
+ outline-offset: 0.125rem;
595
+ outline: none;
596
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
597
+ }
598
+ .eds-contrast .eds-stepper__item__container:focus {
599
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
600
+ }
601
+ .eds-stepper__item__container:first-child {
602
+ margin-left: 0;
603
+ }
604
+ .eds-stepper__item__label {
605
+ cursor: inherit;
606
+ flex-grow: 1;
607
+ flex-direction: column;
608
+ text-align: center;
609
+ font-size: 0.875rem;
610
+ padding: 0.25rem 1rem;
611
+ }
612
+ .eds-stepper__item__label--active {
613
+ font-weight: 600;
614
+ }
615
+ .eds-stepper__item__label.eds-stepper__item__label--active {
616
+ color: #181c56;
617
+ }
618
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--active {
619
+ color: #ffffff;
620
+ }
621
+ .eds-stepper__item__label.eds-stepper__item__label--has-been {
622
+ color: #181c56;
623
+ }
624
+ .eds-contrast .eds-stepper__item__label.eds-stepper__item__label--has-been {
625
+ color: #ffffff;
626
+ }
627
+ .eds-stepper__item__square {
628
+ height: 0.5rem;
629
+ }
630
+ .eds-stepper__item__square--active {
631
+ color: inherit;
632
+ background: #e9e9e9;
633
+ position: relative;
634
+ }
635
+ .eds-stepper__item__square--active:before {
636
+ background: #181c56;
637
+ content: "";
638
+ position: absolute;
639
+ right: calc(50% - 0.2rem);
640
+ border-radius: 0.0625rem;
641
+ bottom: 0.0625rem;
642
+ width: calc(
643
+ 0.5rem - 0.125rem - 0.01rem
644
+ );
645
+ height: calc(
646
+ 0.5rem - 0.125rem - 0.01rem
647
+ );
648
+ transform: rotate(45deg);
649
+ }
650
+ .eds-contrast .eds-stepper__item__square--active:before {
651
+ border-left-color: #aeb7e2;
652
+ border-left-color: #aeb7e2;
653
+ }
654
+ .eds-stepper__item__square--active:after {
655
+ content: "";
656
+ position: absolute;
657
+ left: 0;
658
+ bottom: 0;
659
+ width: 50%;
660
+ height: 0.5rem;
661
+ background: #181c56;
662
+ }
663
+ .eds-contrast .eds-stepper__item__square--active:after {
664
+ background: #aeb7e2;
665
+ }
666
+ .eds-contrast .eds-stepper__item__square--active {
667
+ background: #aeb7e2;
668
+ background: #393d79;
669
+ }
670
+ .eds-stepper__item__square--inactive {
671
+ color: #656782;
672
+ background: #e9e9e9;
673
+ }
674
+ .eds-contrast .eds-stepper__item__square--inactive {
675
+ color: #aeb7e2;
676
+ background: #393d79;
677
+ }
678
+ .eds-stepper__item__square--has-been {
679
+ color: inherit;
680
+ background: #181c56;
681
+ }
682
+ .eds-contrast .eds-stepper__item__square--has-been {
683
+ background: #aeb7e2;
684
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.48",
3
+ "version": "4.1.49",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -27,17 +27,17 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.68",
31
- "@entur/button": "^3.1.0",
32
- "@entur/expand": "^3.4.7",
30
+ "@entur/a11y": "^0.2.69",
31
+ "@entur/button": "^3.1.1",
32
+ "@entur/expand": "^3.4.8",
33
33
  "@entur/icons": "^6.4.2",
34
- "@entur/layout": "^2.1.39",
34
+ "@entur/layout": "^2.1.40",
35
35
  "@entur/tokens": "^3.10.0",
36
- "@entur/typography": "^1.8.6",
37
- "@entur/utils": "^0.9.3",
36
+ "@entur/typography": "^1.8.7",
37
+ "@entur/utils": "^0.9.4",
38
38
  "@reach/menu-button": "^0.16.1",
39
39
  "@reach/polymorphic": "0.18.0",
40
40
  "classnames": "^2.3.1"
41
41
  },
42
- "gitHead": "5fcad4b449082b80b796ab52e68f178977f2eba7"
42
+ "gitHead": "0da1a9e2532f60cc1a456a79ad3aa689514ca2c7"
43
43
  }