@entur/menu 4.0.8 → 4.0.9

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,10 @@
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.0.9](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.0.8...@entur/menu@4.0.9) (2022-04-20)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
6
10
  ## [4.0.8](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.0.7...@entur/menu@4.0.8) (2022-04-19)
7
11
 
8
12
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -57,206 +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-pagination {
110
- align-items: center;
111
- display: flex;
112
- justify-content: space-between;
113
- }
114
- .eds-pagination__results {
115
- align-items: center;
116
- display: flex;
117
- justify-content: center;
118
- }
119
- .eds-pagination__results-label {
120
- margin-right: 0.5rem;
121
- }
122
- .eds-pagination__controls {
123
- align-items: center;
124
- display: flex;
125
- justify-content: center;
126
- }
127
- .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
128
- margin: 0 auto;
129
- }
130
-
131
- .eds-pagination-menu__menu-button {
132
- -webkit-appearance: none;
133
- -moz-appearance: none;
134
- appearance: none;
135
- background: transparent;
136
- border: 0.0625rem solid #d1d3d3;
137
- border-radius: 0.25rem;
138
- color: inherit;
139
- font-family: inherit;
140
- display: flex;
141
- align-items: center;
142
- justify-content: space-around;
143
- height: 2rem;
144
- margin-left: 0.25rem;
145
- margin-right: 1rem;
146
- width: 3.5rem;
147
- }
148
- .eds-pagination-menu__menu-button--open {
149
- border-color: currentColor;
150
- }
151
- .eds-pagination-menu__menu-button:focus {
152
- outline: none;
153
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
154
- }
155
- .eds-pagination-menu__menu-list {
156
- width: 3.5rem;
157
- }
158
-
159
- .eds-pagination__page {
160
- align-items: center;
161
- -webkit-appearance: none;
162
- -moz-appearance: none;
163
- appearance: none;
164
- background: transparent;
165
- border: 0.0625rem solid #d1d3d3;
166
- border-color: #d1d3d3;
167
- border-radius: 0.25rem;
168
- color: inherit;
169
- cursor: pointer;
170
- display: flex;
171
- font-family: inherit;
172
- font-size: 0.875rem;
173
- height: 2rem;
174
- justify-content: center;
175
- margin: 0 0.125rem;
176
- padding: 0 0.25rem;
177
- transition: background 0.1s ease-out, border-color 0.1s ease-out;
178
- -webkit-user-select: none;
179
- -moz-user-select: none;
180
- -ms-user-select: none;
181
- user-select: none;
182
- min-width: 2rem;
183
- }
184
- .eds-contrast .eds-pagination__page {
185
- border-color: #54568c;
186
- }
187
- .eds-pagination__page--selected {
188
- background: #d1d4e3;
189
- border-color: #181c56;
190
- color: inherit;
191
- opacity: 1;
192
- pointer-events: none;
193
- }
194
- .eds-contrast .eds-pagination__page--selected {
195
- border-color: #ffffff;
196
- background: #393d79;
197
- }
198
- .eds-pagination__page:hover {
199
- background-color: #d1d4e3;
200
- border-color: #d1d4e3;
201
- }
202
- .eds-contrast .eds-pagination__page:hover {
203
- background-color: #393d79;
204
- border-color: #393d79;
205
- }
206
- .eds-pagination__page:focus {
207
- outline: none;
208
- border-color: #181c56;
209
- }
210
- .eds-contrast .eds-pagination__page:focus {
211
- border-color: #ffffff;
212
- }
213
-
214
- .eds-pagination__ellipsis {
215
- align-items: baseline;
216
- cursor: default;
217
- display: flex;
218
- font-size: 1.5rem;
219
- height: 2rem;
220
- justify-content: center;
221
- -webkit-user-select: none;
222
- -moz-user-select: none;
223
- -ms-user-select: none;
224
- user-select: none;
225
- width: 2rem;
226
- }
227
-
228
- .eds-pagination__input-label {
229
- border-left: 0.0625rem solid #d1d3d3;
230
- color: #656782;
231
- font-size: 0.875rem;
232
- margin-left: 0.5rem;
233
- padding: 0 1rem;
234
- }
235
- .eds-contrast .eds-pagination__input-label {
236
- border-color: #393d79;
237
- color: #aeb7e2;
238
- }
239
-
240
- .eds-pagination__input-field {
241
- -webkit-appearance: none;
242
- -moz-appearance: none;
243
- appearance: none;
244
- background: transparent;
245
- border: 0.0625rem solid #d1d3d3;
246
- border-radius: 0.25rem;
247
- color: inherit;
248
- font-family: inherit;
249
- font-size: 0.875rem;
250
- height: 2rem;
251
- text-align: center;
252
- width: 2rem;
253
- }
254
- .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
255
- -webkit-appearance: none;
256
- appearance: none;
257
- margin: 0;
258
- }/* DO NOT CHANGE!*/
259
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
260
60
  /* DO NOT CHANGE!*/
261
61
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
262
62
  .eds-side-navigation,
@@ -685,4 +485,204 @@
685
485
  }
686
486
  .eds-contrast .eds-stepper__item__square--has-been {
687
487
  background: #aeb7e2;
488
+ }/* DO NOT CHANGE!*/
489
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
490
+ .eds-pagination {
491
+ align-items: center;
492
+ display: flex;
493
+ justify-content: space-between;
494
+ }
495
+ .eds-pagination__results {
496
+ align-items: center;
497
+ display: flex;
498
+ justify-content: center;
499
+ }
500
+ .eds-pagination__results-label {
501
+ margin-right: 0.5rem;
502
+ }
503
+ .eds-pagination__controls {
504
+ align-items: center;
505
+ display: flex;
506
+ justify-content: center;
507
+ }
508
+ .eds-pagination__results:first-of-type:last-of-type, .eds-pagination__controls:first-of-type:last-of-type {
509
+ margin: 0 auto;
510
+ }
511
+
512
+ .eds-pagination-menu__menu-button {
513
+ -webkit-appearance: none;
514
+ -moz-appearance: none;
515
+ appearance: none;
516
+ background: transparent;
517
+ border: 0.0625rem solid #d1d3d3;
518
+ border-radius: 0.25rem;
519
+ color: inherit;
520
+ font-family: inherit;
521
+ display: flex;
522
+ align-items: center;
523
+ justify-content: space-around;
524
+ height: 2rem;
525
+ margin-left: 0.25rem;
526
+ margin-right: 1rem;
527
+ width: 3.5rem;
528
+ }
529
+ .eds-pagination-menu__menu-button--open {
530
+ border-color: currentColor;
531
+ }
532
+ .eds-pagination-menu__menu-button:focus {
533
+ outline: none;
534
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
535
+ }
536
+ .eds-pagination-menu__menu-list {
537
+ width: 3.5rem;
538
+ }
539
+
540
+ .eds-pagination__page {
541
+ align-items: center;
542
+ -webkit-appearance: none;
543
+ -moz-appearance: none;
544
+ appearance: none;
545
+ background: transparent;
546
+ border: 0.0625rem solid #d1d3d3;
547
+ border-color: #d1d3d3;
548
+ border-radius: 0.25rem;
549
+ color: inherit;
550
+ cursor: pointer;
551
+ display: flex;
552
+ font-family: inherit;
553
+ font-size: 0.875rem;
554
+ height: 2rem;
555
+ justify-content: center;
556
+ margin: 0 0.125rem;
557
+ padding: 0 0.25rem;
558
+ transition: background 0.1s ease-out, border-color 0.1s ease-out;
559
+ -webkit-user-select: none;
560
+ -moz-user-select: none;
561
+ -ms-user-select: none;
562
+ user-select: none;
563
+ min-width: 2rem;
564
+ }
565
+ .eds-contrast .eds-pagination__page {
566
+ border-color: #54568c;
567
+ }
568
+ .eds-pagination__page--selected {
569
+ background: #d1d4e3;
570
+ border-color: #181c56;
571
+ color: inherit;
572
+ opacity: 1;
573
+ pointer-events: none;
574
+ }
575
+ .eds-contrast .eds-pagination__page--selected {
576
+ border-color: #ffffff;
577
+ background: #393d79;
578
+ }
579
+ .eds-pagination__page:hover {
580
+ background-color: #d1d4e3;
581
+ border-color: #d1d4e3;
582
+ }
583
+ .eds-contrast .eds-pagination__page:hover {
584
+ background-color: #393d79;
585
+ border-color: #393d79;
586
+ }
587
+ .eds-pagination__page:focus {
588
+ outline: none;
589
+ border-color: #181c56;
590
+ }
591
+ .eds-contrast .eds-pagination__page:focus {
592
+ border-color: #ffffff;
593
+ }
594
+
595
+ .eds-pagination__ellipsis {
596
+ align-items: baseline;
597
+ cursor: default;
598
+ display: flex;
599
+ font-size: 1.5rem;
600
+ height: 2rem;
601
+ justify-content: center;
602
+ -webkit-user-select: none;
603
+ -moz-user-select: none;
604
+ -ms-user-select: none;
605
+ user-select: none;
606
+ width: 2rem;
607
+ }
608
+
609
+ .eds-pagination__input-label {
610
+ border-left: 0.0625rem solid #d1d3d3;
611
+ color: #656782;
612
+ font-size: 0.875rem;
613
+ margin-left: 0.5rem;
614
+ padding: 0 1rem;
615
+ }
616
+ .eds-contrast .eds-pagination__input-label {
617
+ border-color: #393d79;
618
+ color: #aeb7e2;
619
+ }
620
+
621
+ .eds-pagination__input-field {
622
+ -webkit-appearance: none;
623
+ -moz-appearance: none;
624
+ appearance: none;
625
+ background: transparent;
626
+ border: 0.0625rem solid #d1d3d3;
627
+ border-radius: 0.25rem;
628
+ color: inherit;
629
+ font-family: inherit;
630
+ font-size: 0.875rem;
631
+ height: 2rem;
632
+ text-align: center;
633
+ width: 2rem;
634
+ }
635
+ .eds-pagination__input-field::-webkit-inner-spin-button, .eds-pagination__input-field::-webkit-outer-spin-button {
636
+ -webkit-appearance: none;
637
+ appearance: none;
638
+ margin: 0;
639
+ }/* DO NOT CHANGE!*/
640
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
641
+ .eds-top-navigation-item {
642
+ --show-active-line: 0;
643
+ display: inline-block;
644
+ cursor: pointer;
645
+ color: inherit;
646
+ text-decoration: none;
647
+ position: relative;
648
+ padding: 1rem;
649
+ min-width: 5rem;
650
+ width: -webkit-fit-content;
651
+ width: -moz-fit-content;
652
+ width: fit-content;
653
+ text-align: center;
654
+ font-family: inherit;
655
+ font-size: 1rem;
656
+ font-weight: 600;
657
+ }
658
+ .eds-top-navigation-item::after {
659
+ content: "";
660
+ display: block;
661
+ bottom: 1rem;
662
+ height: 0.1875rem;
663
+ width: 0;
664
+ margin: 0 auto;
665
+ opacity: var(--show-active-line);
666
+ background: #ff5959;
667
+ transition: width ease-in-out 0.2s, opacity ease-in-out 0.2s;
668
+ }
669
+ .eds-top-navigation-item:focus {
670
+ outline-offset: 0.125rem;
671
+ outline: none;
672
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
673
+ }
674
+ .eds-contrast .eds-top-navigation-item:focus {
675
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
676
+ }
677
+ .eds-top-navigation-item:hover {
678
+ --show-active-line: 1;
679
+ }
680
+ .eds-top-navigation-item:hover::after {
681
+ width: 2rem;
682
+ }
683
+ .eds-top-navigation-item--active {
684
+ --show-active-line: 1;
685
+ }
686
+ .eds-top-navigation-item--active::after {
687
+ width: 2rem;
688
688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@entur/button": "^2.8.0",
27
- "@entur/expand": "^3.3.9",
28
- "@entur/icons": "^4.0.0",
27
+ "@entur/expand": "^3.3.10",
28
+ "@entur/icons": "^4.1.0",
29
29
  "@entur/layout": "^2.1.4",
30
30
  "@entur/tokens": "^3.3.1",
31
31
  "@entur/typography": "^1.6.11",
@@ -37,5 +37,5 @@
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0"
39
39
  },
40
- "gitHead": "f760e1b8cfdc14231bd6391a8d82dfed1d71daa4"
40
+ "gitHead": "c10b4f0f9ecda0126bc916b80ca694cf8d58e399"
41
41
  }