@entur/dropdown 5.0.4 → 5.0.5
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 +134 -134
- package/package.json +9 -9
package/dist/styles.css
CHANGED
|
@@ -158,136 +158,6 @@
|
|
|
158
158
|
}
|
|
159
159
|
/* DO NOT CHANGE!*/
|
|
160
160
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
161
|
-
.eds-dropdown__list {
|
|
162
|
-
position: absolute;
|
|
163
|
-
list-style: none;
|
|
164
|
-
border-radius: 0.25rem;
|
|
165
|
-
border: 0.125rem solid #7C7F9F;
|
|
166
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
167
|
-
padding: 0;
|
|
168
|
-
margin: 0;
|
|
169
|
-
margin-top: 0.5rem;
|
|
170
|
-
max-height: 50vh;
|
|
171
|
-
overflow-y: auto;
|
|
172
|
-
width: 100%;
|
|
173
|
-
z-index: 20;
|
|
174
|
-
}
|
|
175
|
-
.eds-dropdown__list:focus {
|
|
176
|
-
outline: none;
|
|
177
|
-
}
|
|
178
|
-
.eds-dropdown__list__item {
|
|
179
|
-
background-color: #f8f8f8;
|
|
180
|
-
color: #181c56;
|
|
181
|
-
display: flex;
|
|
182
|
-
align-items: center;
|
|
183
|
-
justify-content: flex-start;
|
|
184
|
-
font-family: inherit;
|
|
185
|
-
font-size: 1rem;
|
|
186
|
-
line-height: 1.25rem;
|
|
187
|
-
padding: 0.75rem 1rem;
|
|
188
|
-
width: 100%;
|
|
189
|
-
overflow-x: hidden;
|
|
190
|
-
word-break: break-word;
|
|
191
|
-
}
|
|
192
|
-
.eds-dropdown__list__item:last-child {
|
|
193
|
-
border-bottom: none;
|
|
194
|
-
}
|
|
195
|
-
.eds-dropdown__list__item__text {
|
|
196
|
-
flex: 1;
|
|
197
|
-
cursor: default;
|
|
198
|
-
}
|
|
199
|
-
.eds-dropdown__list__item__icon {
|
|
200
|
-
margin-left: 0.75rem;
|
|
201
|
-
}
|
|
202
|
-
.eds-dropdown__list__item__checkbox {
|
|
203
|
-
pointer-events: none;
|
|
204
|
-
}
|
|
205
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
|
|
206
|
-
border-color: #181c56;
|
|
207
|
-
}
|
|
208
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
209
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
|
|
210
|
-
background-color: #181c56;
|
|
211
|
-
}
|
|
212
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
|
|
213
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
|
|
214
|
-
stroke: #ffffff;
|
|
215
|
-
}
|
|
216
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
|
|
217
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
|
|
218
|
-
fill: #ffffff;
|
|
219
|
-
}
|
|
220
|
-
.eds-dropdown__list__item--highlighted {
|
|
221
|
-
background-color: #d1d4e3;
|
|
222
|
-
}
|
|
223
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
224
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
|
|
225
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
|
|
226
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
|
|
227
|
-
background-color: #54568c;
|
|
228
|
-
border-color: transparent;
|
|
229
|
-
}
|
|
230
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
|
|
231
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
|
|
232
|
-
border-color: #54568c;
|
|
233
|
-
}
|
|
234
|
-
.eds-dropdown__list__item--selected {
|
|
235
|
-
background-color: #54568c;
|
|
236
|
-
color: #ffffff;
|
|
237
|
-
}
|
|
238
|
-
@media all and (min-width: 50rem) {
|
|
239
|
-
.eds-dropdown__list {
|
|
240
|
-
max-height: 30vh;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/* DO NOT CHANGE!*/
|
|
244
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
245
|
-
.eds-dropdown__selected-item-tag {
|
|
246
|
-
height: 1.5rem;
|
|
247
|
-
max-width: 50%;
|
|
248
|
-
padding: 0;
|
|
249
|
-
}
|
|
250
|
-
.eds-dropdown__selected-item-tag > span {
|
|
251
|
-
overflow: hidden;
|
|
252
|
-
text-overflow: ellipsis;
|
|
253
|
-
white-space: nowrap;
|
|
254
|
-
margin-left: 0.5rem;
|
|
255
|
-
}
|
|
256
|
-
.eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
|
|
257
|
-
margin-right: 0.125rem;
|
|
258
|
-
}
|
|
259
|
-
.eds-dropdown__selected-item-tag .eds-tag-chip__close-button > svg {
|
|
260
|
-
font-size: 0.6rem;
|
|
261
|
-
}
|
|
262
|
-
.eds-contrast .eds-dropdown__selected-item-tag {
|
|
263
|
-
background: #ebebf1;
|
|
264
|
-
border: 0.0625rem solid #d1d4e3;
|
|
265
|
-
color: #181c56;
|
|
266
|
-
}
|
|
267
|
-
.eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
|
|
268
|
-
color: #181c56;
|
|
269
|
-
}
|
|
270
|
-
.eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
|
|
271
|
-
background-color: #babbcf;
|
|
272
|
-
}
|
|
273
|
-
.eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
|
|
274
|
-
padding-right: 0.5rem;
|
|
275
|
-
}
|
|
276
|
-
.eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button {
|
|
277
|
-
display: none;
|
|
278
|
-
}
|
|
279
|
-
.eds-contrast .eds-dropdown__selected-item-tag--readonly {
|
|
280
|
-
background-color: #8285a8;
|
|
281
|
-
border-color: transparent;
|
|
282
|
-
color: #ffffff;
|
|
283
|
-
}
|
|
284
|
-
.eds-contrast .eds-dropdown__selected-item-tag--disabled {
|
|
285
|
-
background-color: #54568c;
|
|
286
|
-
border-color: transparent;
|
|
287
|
-
color: #8285a8;
|
|
288
|
-
}
|
|
289
|
-
/* DO NOT CHANGE!*/
|
|
290
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
291
161
|
.eds-dropdown-list {
|
|
292
162
|
border-radius: 0.25rem;
|
|
293
163
|
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
@@ -443,12 +313,133 @@
|
|
|
443
313
|
}
|
|
444
314
|
/* DO NOT CHANGE!*/
|
|
445
315
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
446
|
-
.eds-
|
|
447
|
-
|
|
316
|
+
.eds-dropdown__list {
|
|
317
|
+
position: absolute;
|
|
318
|
+
list-style: none;
|
|
319
|
+
border-radius: 0.25rem;
|
|
320
|
+
border: 0.125rem solid #7C7F9F;
|
|
321
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
322
|
+
padding: 0;
|
|
323
|
+
margin: 0;
|
|
324
|
+
margin-top: 0.5rem;
|
|
325
|
+
max-height: 50vh;
|
|
326
|
+
overflow-y: auto;
|
|
327
|
+
width: 100%;
|
|
328
|
+
z-index: 20;
|
|
329
|
+
}
|
|
330
|
+
.eds-dropdown__list:focus {
|
|
331
|
+
outline: none;
|
|
332
|
+
}
|
|
333
|
+
.eds-dropdown__list__item {
|
|
334
|
+
background-color: #f8f8f8;
|
|
335
|
+
color: #181c56;
|
|
448
336
|
display: flex;
|
|
449
|
-
|
|
450
|
-
|
|
337
|
+
align-items: center;
|
|
338
|
+
justify-content: flex-start;
|
|
339
|
+
font-family: inherit;
|
|
340
|
+
font-size: 1rem;
|
|
341
|
+
line-height: 1.25rem;
|
|
342
|
+
padding: 0.75rem 1rem;
|
|
451
343
|
width: 100%;
|
|
344
|
+
overflow-x: hidden;
|
|
345
|
+
word-break: break-word;
|
|
346
|
+
}
|
|
347
|
+
.eds-dropdown__list__item:last-child {
|
|
348
|
+
border-bottom: none;
|
|
349
|
+
}
|
|
350
|
+
.eds-dropdown__list__item__text {
|
|
351
|
+
flex: 1;
|
|
352
|
+
cursor: default;
|
|
353
|
+
}
|
|
354
|
+
.eds-dropdown__list__item__icon {
|
|
355
|
+
margin-left: 0.75rem;
|
|
356
|
+
}
|
|
357
|
+
.eds-dropdown__list__item__checkbox {
|
|
358
|
+
pointer-events: none;
|
|
359
|
+
}
|
|
360
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
|
|
361
|
+
border-color: #181c56;
|
|
362
|
+
}
|
|
363
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
364
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
|
|
365
|
+
background-color: #181c56;
|
|
366
|
+
}
|
|
367
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
|
|
368
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
|
|
369
|
+
stroke: #ffffff;
|
|
370
|
+
}
|
|
371
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
|
|
372
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
|
|
373
|
+
fill: #ffffff;
|
|
374
|
+
}
|
|
375
|
+
.eds-dropdown__list__item--highlighted {
|
|
376
|
+
background-color: #d1d4e3;
|
|
377
|
+
}
|
|
378
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
379
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
|
|
380
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
|
|
381
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
|
|
382
|
+
background-color: #54568c;
|
|
383
|
+
border-color: transparent;
|
|
384
|
+
}
|
|
385
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
|
|
386
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
|
|
387
|
+
border-color: #54568c;
|
|
388
|
+
}
|
|
389
|
+
.eds-dropdown__list__item--selected {
|
|
390
|
+
background-color: #54568c;
|
|
391
|
+
color: #ffffff;
|
|
392
|
+
}
|
|
393
|
+
@media all and (min-width: 50rem) {
|
|
394
|
+
.eds-dropdown__list {
|
|
395
|
+
max-height: 30vh;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/* DO NOT CHANGE!*/
|
|
399
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
400
|
+
.eds-dropdown__selected-item-tag {
|
|
401
|
+
height: 1.5rem;
|
|
402
|
+
max-width: 50%;
|
|
403
|
+
padding: 0;
|
|
404
|
+
}
|
|
405
|
+
.eds-dropdown__selected-item-tag > span {
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
text-overflow: ellipsis;
|
|
408
|
+
white-space: nowrap;
|
|
409
|
+
margin-left: 0.5rem;
|
|
410
|
+
}
|
|
411
|
+
.eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
|
|
412
|
+
margin-right: 0.125rem;
|
|
413
|
+
}
|
|
414
|
+
.eds-dropdown__selected-item-tag .eds-tag-chip__close-button > svg {
|
|
415
|
+
font-size: 0.6rem;
|
|
416
|
+
}
|
|
417
|
+
.eds-contrast .eds-dropdown__selected-item-tag {
|
|
418
|
+
background: #ebebf1;
|
|
419
|
+
border: 0.0625rem solid #d1d4e3;
|
|
420
|
+
color: #181c56;
|
|
421
|
+
}
|
|
422
|
+
.eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
|
|
423
|
+
color: #181c56;
|
|
424
|
+
}
|
|
425
|
+
.eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
|
|
426
|
+
background-color: #babbcf;
|
|
427
|
+
}
|
|
428
|
+
.eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
|
|
429
|
+
padding-right: 0.5rem;
|
|
430
|
+
}
|
|
431
|
+
.eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button {
|
|
432
|
+
display: none;
|
|
433
|
+
}
|
|
434
|
+
.eds-contrast .eds-dropdown__selected-item-tag--readonly {
|
|
435
|
+
background-color: #8285a8;
|
|
436
|
+
border-color: transparent;
|
|
437
|
+
color: #ffffff;
|
|
438
|
+
}
|
|
439
|
+
.eds-contrast .eds-dropdown__selected-item-tag--disabled {
|
|
440
|
+
background-color: #54568c;
|
|
441
|
+
border-color: transparent;
|
|
442
|
+
color: #8285a8;
|
|
452
443
|
}
|
|
453
444
|
/* DO NOT CHANGE!*/
|
|
454
445
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -477,6 +468,15 @@
|
|
|
477
468
|
}
|
|
478
469
|
/* DO NOT CHANGE!*/
|
|
479
470
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
471
|
+
.eds-inline-spinner {
|
|
472
|
+
align-items: center;
|
|
473
|
+
display: flex;
|
|
474
|
+
justify-content: center;
|
|
475
|
+
height: 100%;
|
|
476
|
+
width: 100%;
|
|
477
|
+
}
|
|
478
|
+
/* DO NOT CHANGE!*/
|
|
479
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
480
480
|
.eds-dropdown-wrapper {
|
|
481
481
|
position: relative;
|
|
482
482
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^3.1.
|
|
32
|
-
"@entur/chip": "^0.6.
|
|
33
|
-
"@entur/form": "^7.0.
|
|
30
|
+
"@entur/a11y": "^0.2.69",
|
|
31
|
+
"@entur/button": "^3.1.1",
|
|
32
|
+
"@entur/chip": "^0.6.44",
|
|
33
|
+
"@entur/form": "^7.0.16",
|
|
34
34
|
"@entur/icons": "^6.4.2",
|
|
35
|
-
"@entur/loader": "^0.4.
|
|
35
|
+
"@entur/loader": "^0.4.38",
|
|
36
36
|
"@entur/tokens": "^3.10.0",
|
|
37
|
-
"@entur/tooltip": "^2.6.
|
|
38
|
-
"@entur/utils": "^0.9.
|
|
37
|
+
"@entur/tooltip": "^2.6.26",
|
|
38
|
+
"@entur/utils": "^0.9.4",
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^7.6.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0da1a9e2532f60cc1a456a79ad3aa689514ca2c7"
|
|
43
43
|
}
|