@entur/dropdown 5.0.18 → 5.0.19
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/dropdown.cjs.development.js +32 -25
- package/dist/dropdown.cjs.development.js.map +1 -1
- package/dist/dropdown.cjs.production.min.js +1 -1
- package/dist/dropdown.cjs.production.min.js.map +1 -1
- package/dist/dropdown.esm.js +32 -25
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +166 -165
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1,66 +1,27 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-
|
|
4
|
-
|
|
5
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
6
|
-
display: none;
|
|
7
|
-
list-style: none;
|
|
8
|
-
margin: 0;
|
|
9
|
-
max-height: 50vh;
|
|
10
|
-
padding: 0;
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow-y: auto;
|
|
13
|
-
width: 100%;
|
|
14
|
-
z-index: 20;
|
|
15
|
-
}
|
|
16
|
-
.eds-contrast .eds-dropdown-list {
|
|
17
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
18
|
-
}
|
|
19
|
-
.eds-dropdown-list--open {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
}
|
|
22
|
-
.eds-dropdown-list:focus {
|
|
23
|
-
outline: none;
|
|
24
|
-
}
|
|
25
|
-
@media all and (min-width: 50rem) {
|
|
26
|
-
.eds-dropdown-list {
|
|
27
|
-
max-height: 30vh;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.eds-dropdown-list__item {
|
|
31
|
-
align-items: center;
|
|
32
|
-
background-color: #f8f8f8;
|
|
33
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
34
|
-
border-left: 0.125rem solid #e9e9e9;
|
|
35
|
-
border-right: 0.125rem solid #e9e9e9;
|
|
36
|
-
color: #181c56;
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
font-family: inherit;
|
|
3
|
+
.eds-dropdown__searchable-selected-item {
|
|
4
|
+
display: block;
|
|
40
5
|
font-size: 1rem;
|
|
41
|
-
line-height:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.eds-dropdown-list__item:last-child {
|
|
49
|
-
border-bottom: none;
|
|
50
|
-
}
|
|
51
|
-
.eds-contrast .eds-dropdown-list__item {
|
|
52
|
-
color: #181c56;
|
|
53
|
-
border-color: #54568c;
|
|
54
|
-
background-color: #ffffff;
|
|
6
|
+
line-height: 1rem;
|
|
7
|
+
margin-right: -1rem;
|
|
8
|
+
padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
white-space: nowrap;
|
|
55
13
|
}
|
|
56
|
-
.eds-
|
|
57
|
-
|
|
14
|
+
.eds-dropdown__searchable-selected-item__wrapper {
|
|
15
|
+
max-width: 65%;
|
|
58
16
|
}
|
|
59
|
-
|
|
60
|
-
|
|
17
|
+
|
|
18
|
+
.eds-form-control.eds-dropdown__input::-moz-placeholder {
|
|
19
|
+
-moz-transition: none;
|
|
20
|
+
transition: none;
|
|
61
21
|
}
|
|
62
|
-
|
|
63
|
-
|
|
22
|
+
|
|
23
|
+
.eds-form-control.eds-dropdown__input::placeholder {
|
|
24
|
+
transition: none;
|
|
64
25
|
}
|
|
65
26
|
/* DO NOT CHANGE!*/
|
|
66
27
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -155,28 +116,67 @@
|
|
|
155
116
|
}
|
|
156
117
|
/* DO NOT CHANGE!*/
|
|
157
118
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
158
|
-
.eds-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
119
|
+
.eds-dropdown-list {
|
|
120
|
+
border-radius: 0.25rem;
|
|
121
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
122
|
+
display: none;
|
|
123
|
+
list-style: none;
|
|
124
|
+
margin: 0;
|
|
125
|
+
max-height: 50vh;
|
|
126
|
+
padding: 0;
|
|
127
|
+
position: relative;
|
|
128
|
+
overflow-y: auto;
|
|
129
|
+
width: 100%;
|
|
130
|
+
z-index: 20;
|
|
131
|
+
}
|
|
132
|
+
.eds-contrast .eds-dropdown-list {
|
|
133
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
134
|
+
}
|
|
135
|
+
.eds-dropdown-list--open {
|
|
136
|
+
display: inline-block;
|
|
137
|
+
}
|
|
138
|
+
.eds-dropdown-list:focus {
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
@media all and (min-width: 50rem) {
|
|
142
|
+
.eds-dropdown-list {
|
|
143
|
+
max-height: 30vh;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.eds-dropdown-list__item {
|
|
147
|
+
align-items: center;
|
|
148
|
+
background-color: #f8f8f8;
|
|
149
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
150
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
151
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
152
|
+
color: #181c56;
|
|
153
|
+
display: flex;
|
|
154
|
+
justify-content: space-between;
|
|
164
155
|
font-family: inherit;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
font-size: 1rem;
|
|
157
|
+
line-height: 1.25rem;
|
|
158
|
+
padding: 0.75rem 1rem;
|
|
159
|
+
width: 100%;
|
|
168
160
|
}
|
|
169
|
-
.eds-
|
|
170
|
-
|
|
161
|
+
.eds-dropdown-list__item:first-child {
|
|
162
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
171
163
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
-moz-transition: none;
|
|
175
|
-
transition: none;
|
|
164
|
+
.eds-dropdown-list__item:last-child {
|
|
165
|
+
border-bottom: none;
|
|
176
166
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
167
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
168
|
+
color: #181c56;
|
|
169
|
+
border-color: #54568c;
|
|
170
|
+
background-color: #ffffff;
|
|
171
|
+
}
|
|
172
|
+
.eds-dropdown-list__item--highlighted {
|
|
173
|
+
background-color: #d1d4e3;
|
|
174
|
+
}
|
|
175
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
176
|
+
background-color: #d1d4e3;
|
|
177
|
+
}
|
|
178
|
+
.eds-dropdown-list-icon {
|
|
179
|
+
margin-left: 0.75rem;
|
|
180
180
|
}
|
|
181
181
|
.eds-inline-spinner {
|
|
182
182
|
align-items: center;
|
|
@@ -187,6 +187,34 @@
|
|
|
187
187
|
}
|
|
188
188
|
/* DO NOT CHANGE!*/
|
|
189
189
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
190
|
+
.eds-dropdown__toggle-button {
|
|
191
|
+
-webkit-appearance: none;
|
|
192
|
+
-moz-appearance: none;
|
|
193
|
+
appearance: none;
|
|
194
|
+
background: none;
|
|
195
|
+
border: none;
|
|
196
|
+
border-radius: 0;
|
|
197
|
+
color: inherit;
|
|
198
|
+
font-size: inherit;
|
|
199
|
+
font-family: inherit;
|
|
200
|
+
margin-right: -0.75rem;
|
|
201
|
+
padding: 0.5rem;
|
|
202
|
+
display: flex;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
}
|
|
205
|
+
.eds-dropdown__toggle-button--open svg {
|
|
206
|
+
transform: rotate(180deg);
|
|
207
|
+
}
|
|
208
|
+
.eds-dropdown__toggle-button:focus {
|
|
209
|
+
outline-offset: 0.125rem;
|
|
210
|
+
outline: none;
|
|
211
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
212
|
+
}
|
|
213
|
+
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
214
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
215
|
+
}
|
|
216
|
+
/* DO NOT CHANGE!*/
|
|
217
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
190
218
|
.eds-dropdown-wrapper {
|
|
191
219
|
position: relative;
|
|
192
220
|
}
|
|
@@ -245,34 +273,6 @@
|
|
|
245
273
|
}
|
|
246
274
|
/* DO NOT CHANGE!*/
|
|
247
275
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
248
|
-
.eds-dropdown__toggle-button {
|
|
249
|
-
-webkit-appearance: none;
|
|
250
|
-
-moz-appearance: none;
|
|
251
|
-
appearance: none;
|
|
252
|
-
background: none;
|
|
253
|
-
border: none;
|
|
254
|
-
border-radius: 0;
|
|
255
|
-
color: inherit;
|
|
256
|
-
font-size: inherit;
|
|
257
|
-
font-family: inherit;
|
|
258
|
-
margin-right: -0.75rem;
|
|
259
|
-
padding: 0.5rem;
|
|
260
|
-
display: flex;
|
|
261
|
-
justify-content: center;
|
|
262
|
-
}
|
|
263
|
-
.eds-dropdown__toggle-button--open svg {
|
|
264
|
-
transform: rotate(180deg);
|
|
265
|
-
}
|
|
266
|
-
.eds-dropdown__toggle-button:focus {
|
|
267
|
-
outline-offset: 0.125rem;
|
|
268
|
-
outline: none;
|
|
269
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
270
|
-
}
|
|
271
|
-
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
272
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
273
|
-
}
|
|
274
|
-
/* DO NOT CHANGE!*/
|
|
275
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
276
|
.eds-dropdown__list {
|
|
277
277
|
position: absolute;
|
|
278
278
|
list-style: none;
|
|
@@ -401,6 +401,68 @@
|
|
|
401
401
|
border-color: transparent;
|
|
402
402
|
color: #8285a8;
|
|
403
403
|
}
|
|
404
|
+
.eds-dropdown__appendix {
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
}
|
|
408
|
+
.eds-dropdown__appendix__clear-button {
|
|
409
|
+
padding: 0.5rem;
|
|
410
|
+
margin-right: 0.25rem;
|
|
411
|
+
}
|
|
412
|
+
.eds-contrast .eds-dropdown__appendix__clear-button:hover {
|
|
413
|
+
background: #d1d3d3;
|
|
414
|
+
}
|
|
415
|
+
.eds-contrast .eds-dropdown__appendix__clear-button:active {
|
|
416
|
+
background: #949494;
|
|
417
|
+
}
|
|
418
|
+
.eds-contrast .eds-dropdown__appendix__clear-button:focus {
|
|
419
|
+
border: 0.0625rem solid #181c56;
|
|
420
|
+
outline: none;
|
|
421
|
+
}
|
|
422
|
+
.eds-dropdown__appendix__clear-button__tooltip {
|
|
423
|
+
white-space: nowrap;
|
|
424
|
+
}
|
|
425
|
+
.eds-dropdown__appendix__divider {
|
|
426
|
+
content: "";
|
|
427
|
+
display: block;
|
|
428
|
+
background-color: #e9e9e9;
|
|
429
|
+
height: 1.5rem;
|
|
430
|
+
width: 1px;
|
|
431
|
+
}
|
|
432
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__appendix__divider {
|
|
433
|
+
background-color: #8285a8;
|
|
434
|
+
}
|
|
435
|
+
.eds-contrast .eds-dropdown__appendix__divider {
|
|
436
|
+
background-color: #d1d3d3;
|
|
437
|
+
}
|
|
438
|
+
.eds-dropdown__appendix__toggle-button {
|
|
439
|
+
margin-right: -0.75rem;
|
|
440
|
+
margin-left: 0.25rem;
|
|
441
|
+
}
|
|
442
|
+
.eds-dropdown__appendix__toggle-button--open svg {
|
|
443
|
+
transform: rotate(180deg);
|
|
444
|
+
}
|
|
445
|
+
.eds-dropdown__appendix__toggle-button svg {
|
|
446
|
+
transition: transform ease-in-out 0.1s;
|
|
447
|
+
}
|
|
448
|
+
.eds-dropdown__appendix__toggle-button--loading-dots {
|
|
449
|
+
align-items: center;
|
|
450
|
+
display: flex;
|
|
451
|
+
justify-content: center;
|
|
452
|
+
height: 100%;
|
|
453
|
+
width: 1rem;
|
|
454
|
+
margin-left: calc(0.5rem + 2px);
|
|
455
|
+
}
|
|
456
|
+
.eds-contrast .eds-dropdown__appendix__toggle-button:hover {
|
|
457
|
+
background: #d1d3d3;
|
|
458
|
+
}
|
|
459
|
+
.eds-contrast .eds-dropdown__appendix__toggle-button:active {
|
|
460
|
+
background: #949494;
|
|
461
|
+
}
|
|
462
|
+
.eds-contrast .eds-dropdown__appendix__toggle-button:focus {
|
|
463
|
+
border: none;
|
|
464
|
+
outline: none;
|
|
465
|
+
}
|
|
404
466
|
/* DO NOT CHANGE!*/
|
|
405
467
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
406
468
|
.eds-dropdown__wrapper {
|
|
@@ -444,6 +506,7 @@
|
|
|
444
506
|
flex: 1;
|
|
445
507
|
overflow-x: hidden;
|
|
446
508
|
text-overflow: ellipsis;
|
|
509
|
+
white-space: nowrap;
|
|
447
510
|
font-size: 1rem;
|
|
448
511
|
line-height: 1rem;
|
|
449
512
|
margin-right: -1rem;
|
|
@@ -471,68 +534,6 @@
|
|
|
471
534
|
.eds-dropdown--multiselect__selected-items-and-input--filled .eds-tag-chip:focus {
|
|
472
535
|
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
473
536
|
}
|
|
474
|
-
.eds-dropdown__appendix {
|
|
475
|
-
display: flex;
|
|
476
|
-
align-items: center;
|
|
477
|
-
}
|
|
478
|
-
.eds-dropdown__appendix__clear-button {
|
|
479
|
-
padding: 0.5rem;
|
|
480
|
-
margin-right: 0.25rem;
|
|
481
|
-
}
|
|
482
|
-
.eds-contrast .eds-dropdown__appendix__clear-button:hover {
|
|
483
|
-
background: #d1d3d3;
|
|
484
|
-
}
|
|
485
|
-
.eds-contrast .eds-dropdown__appendix__clear-button:active {
|
|
486
|
-
background: #949494;
|
|
487
|
-
}
|
|
488
|
-
.eds-contrast .eds-dropdown__appendix__clear-button:focus {
|
|
489
|
-
border: 0.0625rem solid #181c56;
|
|
490
|
-
outline: none;
|
|
491
|
-
}
|
|
492
|
-
.eds-dropdown__appendix__clear-button__tooltip {
|
|
493
|
-
white-space: nowrap;
|
|
494
|
-
}
|
|
495
|
-
.eds-dropdown__appendix__divider {
|
|
496
|
-
content: "";
|
|
497
|
-
display: block;
|
|
498
|
-
background-color: #e9e9e9;
|
|
499
|
-
height: 1.5rem;
|
|
500
|
-
width: 1px;
|
|
501
|
-
}
|
|
502
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__appendix__divider {
|
|
503
|
-
background-color: #8285a8;
|
|
504
|
-
}
|
|
505
|
-
.eds-contrast .eds-dropdown__appendix__divider {
|
|
506
|
-
background-color: #d1d3d3;
|
|
507
|
-
}
|
|
508
|
-
.eds-dropdown__appendix__toggle-button {
|
|
509
|
-
margin-right: -0.75rem;
|
|
510
|
-
margin-left: 0.25rem;
|
|
511
|
-
}
|
|
512
|
-
.eds-dropdown__appendix__toggle-button--open svg {
|
|
513
|
-
transform: rotate(180deg);
|
|
514
|
-
}
|
|
515
|
-
.eds-dropdown__appendix__toggle-button svg {
|
|
516
|
-
transition: transform ease-in-out 0.1s;
|
|
517
|
-
}
|
|
518
|
-
.eds-dropdown__appendix__toggle-button--loading-dots {
|
|
519
|
-
align-items: center;
|
|
520
|
-
display: flex;
|
|
521
|
-
justify-content: center;
|
|
522
|
-
height: 100%;
|
|
523
|
-
width: 100%;
|
|
524
|
-
margin-right: 0;
|
|
525
|
-
}
|
|
526
|
-
.eds-contrast .eds-dropdown__appendix__toggle-button:hover {
|
|
527
|
-
background: #d1d3d3;
|
|
528
|
-
}
|
|
529
|
-
.eds-contrast .eds-dropdown__appendix__toggle-button:active {
|
|
530
|
-
background: #949494;
|
|
531
|
-
}
|
|
532
|
-
.eds-contrast .eds-dropdown__appendix__toggle-button:focus {
|
|
533
|
-
border: none;
|
|
534
|
-
outline: none;
|
|
535
|
-
}
|
|
536
537
|
.eds-dropdown.eds-form-control-wrapper {
|
|
537
538
|
align-items: start;
|
|
538
539
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.19",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^7.6.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "6d109c0335f6803a2a48a7e77d7c14f5c74505a5"
|
|
43
43
|
}
|