@entur/dropdown 6.0.10 → 6.0.11
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.d.ts +5 -1
- package/dist/dropdown.cjs.development.js +4 -1
- 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 +4 -1
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +174 -174
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,93 @@
|
|
|
1
|
+
.eds-inline-spinner {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
height: 100%;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
/* DO NOT CHANGE!*/
|
|
9
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
10
|
+
.eds-dropdown-wrapper {
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
.eds-dropdown-wrapper .eds-form-control {
|
|
14
|
+
padding-right: 0;
|
|
15
|
+
}
|
|
16
|
+
.eds-dropdown-wrapper .eds-form-control__append {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.eds-dropdown__input::-moz-placeholder {
|
|
22
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.eds-dropdown__input::placeholder {
|
|
26
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.eds-dropdown__selected-item {
|
|
30
|
+
overflow-x: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.eds-dropdown__clear-button {
|
|
36
|
+
background: none;
|
|
37
|
+
border: none;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
display: flex;
|
|
42
|
+
font: inherit;
|
|
43
|
+
font-size: 1rem;
|
|
44
|
+
line-height: 1rem;
|
|
45
|
+
padding: 0.5rem;
|
|
46
|
+
}
|
|
47
|
+
.eds-dropdown__clear-button:hover {
|
|
48
|
+
background: #f3f3f3;
|
|
49
|
+
}
|
|
50
|
+
.eds-dropdown__clear-button:focus {
|
|
51
|
+
outline-offset: 0.125rem;
|
|
52
|
+
outline: none;
|
|
53
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.eds-dropdown__divider {
|
|
57
|
+
content: "";
|
|
58
|
+
display: block;
|
|
59
|
+
background-color: #e9e9e9;
|
|
60
|
+
height: 1.5rem;
|
|
61
|
+
width: 1px;
|
|
62
|
+
}
|
|
63
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
|
|
64
|
+
background-color: #8285a8;
|
|
65
|
+
}
|
|
66
|
+
/* DO NOT CHANGE!*/
|
|
67
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
68
|
+
.eds-dropdown__searchable-selected-item {
|
|
69
|
+
display: block;
|
|
70
|
+
font-size: 1rem;
|
|
71
|
+
line-height: 1rem;
|
|
72
|
+
margin-right: -1rem;
|
|
73
|
+
padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
|
|
74
|
+
font-family: inherit;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
.eds-dropdown__searchable-selected-item__wrapper {
|
|
80
|
+
max-width: 65%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.eds-form-control.eds-dropdown__input::-moz-placeholder {
|
|
84
|
+
-moz-transition: none;
|
|
85
|
+
transition: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.eds-form-control.eds-dropdown__input::placeholder {
|
|
89
|
+
transition: none;
|
|
90
|
+
}
|
|
1
91
|
/* DO NOT CHANGE!*/
|
|
2
92
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
93
|
.eds-dropdown-list {
|
|
@@ -64,38 +154,6 @@
|
|
|
64
154
|
}
|
|
65
155
|
/* DO NOT CHANGE!*/
|
|
66
156
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
|
-
.eds-dropdown__searchable-selected-item {
|
|
68
|
-
display: block;
|
|
69
|
-
font-size: 1rem;
|
|
70
|
-
line-height: 1rem;
|
|
71
|
-
margin-right: -1rem;
|
|
72
|
-
padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
|
|
73
|
-
font-family: inherit;
|
|
74
|
-
overflow-x: hidden;
|
|
75
|
-
text-overflow: ellipsis;
|
|
76
|
-
white-space: nowrap;
|
|
77
|
-
}
|
|
78
|
-
.eds-dropdown__searchable-selected-item__wrapper {
|
|
79
|
-
max-width: 65%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.eds-form-control.eds-dropdown__input::-moz-placeholder {
|
|
83
|
-
-moz-transition: none;
|
|
84
|
-
transition: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.eds-form-control.eds-dropdown__input::placeholder {
|
|
88
|
-
transition: none;
|
|
89
|
-
}
|
|
90
|
-
.eds-inline-spinner {
|
|
91
|
-
align-items: center;
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
height: 100%;
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
/* DO NOT CHANGE!*/
|
|
98
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
99
157
|
.eds-dropdown__toggle-button {
|
|
100
158
|
-webkit-appearance: none;
|
|
101
159
|
-moz-appearance: none;
|
|
@@ -124,64 +182,6 @@
|
|
|
124
182
|
}
|
|
125
183
|
/* DO NOT CHANGE!*/
|
|
126
184
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
127
|
-
.eds-dropdown-wrapper {
|
|
128
|
-
position: relative;
|
|
129
|
-
}
|
|
130
|
-
.eds-dropdown-wrapper .eds-form-control {
|
|
131
|
-
padding-right: 0;
|
|
132
|
-
}
|
|
133
|
-
.eds-dropdown-wrapper .eds-form-control__append {
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.eds-dropdown__input::-moz-placeholder {
|
|
139
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.eds-dropdown__input::placeholder {
|
|
143
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.eds-dropdown__selected-item {
|
|
147
|
-
overflow-x: hidden;
|
|
148
|
-
text-overflow: ellipsis;
|
|
149
|
-
white-space: nowrap;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.eds-dropdown__clear-button {
|
|
153
|
-
background: none;
|
|
154
|
-
border: none;
|
|
155
|
-
border-radius: 50%;
|
|
156
|
-
color: inherit;
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
display: flex;
|
|
159
|
-
font: inherit;
|
|
160
|
-
font-size: 1rem;
|
|
161
|
-
line-height: 1rem;
|
|
162
|
-
padding: 0.5rem;
|
|
163
|
-
}
|
|
164
|
-
.eds-dropdown__clear-button:hover {
|
|
165
|
-
background: #f3f3f3;
|
|
166
|
-
}
|
|
167
|
-
.eds-dropdown__clear-button:focus {
|
|
168
|
-
outline-offset: 0.125rem;
|
|
169
|
-
outline: none;
|
|
170
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.eds-dropdown__divider {
|
|
174
|
-
content: "";
|
|
175
|
-
display: block;
|
|
176
|
-
background-color: #e9e9e9;
|
|
177
|
-
height: 1.5rem;
|
|
178
|
-
width: 1px;
|
|
179
|
-
}
|
|
180
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
|
|
181
|
-
background-color: #8285a8;
|
|
182
|
-
}
|
|
183
|
-
/* DO NOT CHANGE!*/
|
|
184
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
185
185
|
.eds-multi-select {
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
@@ -273,6 +273,90 @@
|
|
|
273
273
|
}
|
|
274
274
|
/* DO NOT CHANGE!*/
|
|
275
275
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
|
+
.eds-dropdown__list {
|
|
277
|
+
box-sizing: content-box;
|
|
278
|
+
max-height: 50vh;
|
|
279
|
+
overflow-y: auto;
|
|
280
|
+
padding: 0;
|
|
281
|
+
margin: 0;
|
|
282
|
+
list-style: none;
|
|
283
|
+
border: 0.125rem solid var(--components-form-basemenu-border);
|
|
284
|
+
border-radius: 0.25rem;
|
|
285
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
286
|
+
cursor: default;
|
|
287
|
+
}
|
|
288
|
+
.eds-dropdown__list__floating-container {
|
|
289
|
+
z-index: 20;
|
|
290
|
+
width: calc(100% + 0.25rem);
|
|
291
|
+
}
|
|
292
|
+
.eds-dropdown__list:focus {
|
|
293
|
+
outline: none;
|
|
294
|
+
}
|
|
295
|
+
.eds-dropdown__list__item {
|
|
296
|
+
display: flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
justify-content: flex-start;
|
|
299
|
+
padding: 0.75rem 1rem;
|
|
300
|
+
font-family: inherit;
|
|
301
|
+
font-size: 1rem;
|
|
302
|
+
word-break: break-word;
|
|
303
|
+
line-height: 1.25rem;
|
|
304
|
+
overflow-x: hidden;
|
|
305
|
+
color: var(--components-form-basemenu-text);
|
|
306
|
+
background-color: var(--components-form-basemenu-fill-default);
|
|
307
|
+
}
|
|
308
|
+
.eds-dropdown__list__item:last-child {
|
|
309
|
+
border-bottom: none;
|
|
310
|
+
}
|
|
311
|
+
.eds-dropdown__list__item__text {
|
|
312
|
+
flex: 1;
|
|
313
|
+
cursor: default;
|
|
314
|
+
}
|
|
315
|
+
.eds-dropdown__list__item__icon {
|
|
316
|
+
margin-left: 0.75rem;
|
|
317
|
+
}
|
|
318
|
+
.eds-dropdown__list__item__checkbox {
|
|
319
|
+
pointer-events: none;
|
|
320
|
+
}
|
|
321
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
|
|
322
|
+
border-color: var(--components-form-checkbox-standard-border);
|
|
323
|
+
}
|
|
324
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
325
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
|
|
326
|
+
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
327
|
+
}
|
|
328
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
|
|
329
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
|
|
330
|
+
stroke: var(--components-form-checkbox-standard-icon);
|
|
331
|
+
}
|
|
332
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
|
|
333
|
+
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
|
|
334
|
+
fill: var(--components-form-checkbox-standard-icon);
|
|
335
|
+
}
|
|
336
|
+
.eds-dropdown__list__item--highlighted {
|
|
337
|
+
background-color: var(--components-form-basemenu-fill-hover);
|
|
338
|
+
}
|
|
339
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
340
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
|
|
341
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
|
|
342
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
|
|
343
|
+
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
344
|
+
border-color: transparent;
|
|
345
|
+
}
|
|
346
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
|
|
347
|
+
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
|
|
348
|
+
border-color: var(--components-form-checkbox-standard-border);
|
|
349
|
+
}
|
|
350
|
+
.eds-dropdown__list__item--selected {
|
|
351
|
+
background-color: var(--components-form-basemenu-fill-hover);
|
|
352
|
+
}
|
|
353
|
+
@media all and (min-width: 50rem) {
|
|
354
|
+
.eds-dropdown__list {
|
|
355
|
+
max-height: 30vh;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
/* DO NOT CHANGE!*/
|
|
359
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
360
|
.eds-contrast .eds-dropdown__selected-item-tag {
|
|
277
361
|
background: var(--components-chip-standard-default);
|
|
278
362
|
border: 0.0625rem solid var(--components-chip-standard-border);
|
|
@@ -386,90 +470,6 @@
|
|
|
386
470
|
}
|
|
387
471
|
/* DO NOT CHANGE!*/
|
|
388
472
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
389
|
-
.eds-dropdown__list {
|
|
390
|
-
box-sizing: content-box;
|
|
391
|
-
max-height: 50vh;
|
|
392
|
-
overflow-y: auto;
|
|
393
|
-
padding: 0;
|
|
394
|
-
margin: 0;
|
|
395
|
-
list-style: none;
|
|
396
|
-
border: 0.125rem solid var(--components-form-basemenu-border);
|
|
397
|
-
border-radius: 0.25rem;
|
|
398
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
399
|
-
cursor: default;
|
|
400
|
-
}
|
|
401
|
-
.eds-dropdown__list__floating-container {
|
|
402
|
-
z-index: 20;
|
|
403
|
-
width: calc(100% + 0.25rem);
|
|
404
|
-
}
|
|
405
|
-
.eds-dropdown__list:focus {
|
|
406
|
-
outline: none;
|
|
407
|
-
}
|
|
408
|
-
.eds-dropdown__list__item {
|
|
409
|
-
display: flex;
|
|
410
|
-
align-items: center;
|
|
411
|
-
justify-content: flex-start;
|
|
412
|
-
padding: 0.75rem 1rem;
|
|
413
|
-
font-family: inherit;
|
|
414
|
-
font-size: 1rem;
|
|
415
|
-
word-break: break-word;
|
|
416
|
-
line-height: 1.25rem;
|
|
417
|
-
overflow-x: hidden;
|
|
418
|
-
color: var(--components-form-basemenu-text);
|
|
419
|
-
background-color: var(--components-form-basemenu-fill-default);
|
|
420
|
-
}
|
|
421
|
-
.eds-dropdown__list__item:last-child {
|
|
422
|
-
border-bottom: none;
|
|
423
|
-
}
|
|
424
|
-
.eds-dropdown__list__item__text {
|
|
425
|
-
flex: 1;
|
|
426
|
-
cursor: default;
|
|
427
|
-
}
|
|
428
|
-
.eds-dropdown__list__item__icon {
|
|
429
|
-
margin-left: 0.75rem;
|
|
430
|
-
}
|
|
431
|
-
.eds-dropdown__list__item__checkbox {
|
|
432
|
-
pointer-events: none;
|
|
433
|
-
}
|
|
434
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
|
|
435
|
-
border-color: var(--components-form-checkbox-standard-border);
|
|
436
|
-
}
|
|
437
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
438
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
|
|
439
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
440
|
-
}
|
|
441
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
|
|
442
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
|
|
443
|
-
stroke: var(--components-form-checkbox-standard-icon);
|
|
444
|
-
}
|
|
445
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
|
|
446
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
|
|
447
|
-
fill: var(--components-form-checkbox-standard-icon);
|
|
448
|
-
}
|
|
449
|
-
.eds-dropdown__list__item--highlighted {
|
|
450
|
-
background-color: var(--components-form-basemenu-fill-hover);
|
|
451
|
-
}
|
|
452
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
453
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
|
|
454
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
|
|
455
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
|
|
456
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
457
|
-
border-color: transparent;
|
|
458
|
-
}
|
|
459
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
|
|
460
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
|
|
461
|
-
border-color: var(--components-form-checkbox-standard-border);
|
|
462
|
-
}
|
|
463
|
-
.eds-dropdown__list__item--selected {
|
|
464
|
-
background-color: var(--components-form-basemenu-fill-hover);
|
|
465
|
-
}
|
|
466
|
-
@media all and (min-width: 50rem) {
|
|
467
|
-
.eds-dropdown__list {
|
|
468
|
-
max-height: 30vh;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
/* DO NOT CHANGE!*/
|
|
472
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
473
473
|
.eds-dropdown {
|
|
474
474
|
cursor: pointer;
|
|
475
475
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"downshift": "^9.0.8"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "95561a3959337462f36e632a31c52f22b41c8a26"
|
|
44
44
|
}
|