@entur/dropdown 6.0.8 → 6.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/dist/MultiSelect.d.ts +3 -1
- package/dist/components/DropdownList.d.ts +2 -2
- package/dist/dropdown.cjs.development.js +20 -14
- 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 +20 -14
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +148 -146
- package/package.json +12 -12
package/dist/styles.css
CHANGED
|
@@ -1,69 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-dropdown-list {
|
|
4
|
-
border-radius: 0.25rem;
|
|
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;
|
|
40
|
-
font-size: 1rem;
|
|
41
|
-
line-height: 1.25rem;
|
|
42
|
-
padding: 0.75rem 1rem;
|
|
43
|
-
width: 100%;
|
|
44
|
-
}
|
|
45
|
-
.eds-dropdown-list__item:first-child {
|
|
46
|
-
border-top: 0.125rem solid #e9e9e9;
|
|
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;
|
|
55
|
-
}
|
|
56
|
-
.eds-dropdown-list__item--highlighted {
|
|
57
|
-
background-color: #d1d4e3;
|
|
58
|
-
}
|
|
59
|
-
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
60
|
-
background-color: #d1d4e3;
|
|
61
|
-
}
|
|
62
|
-
.eds-dropdown-list-icon {
|
|
63
|
-
margin-left: 0.75rem;
|
|
64
|
-
}
|
|
65
|
-
/* DO NOT CHANGE!*/
|
|
66
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
3
|
.eds-dropdown__searchable-selected-item {
|
|
68
4
|
display: block;
|
|
69
5
|
font-size: 1rem;
|
|
@@ -154,6 +90,70 @@
|
|
|
154
90
|
}
|
|
155
91
|
/* DO NOT CHANGE!*/
|
|
156
92
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
93
|
+
.eds-dropdown-list {
|
|
94
|
+
border-radius: 0.25rem;
|
|
95
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
96
|
+
display: none;
|
|
97
|
+
list-style: none;
|
|
98
|
+
margin: 0;
|
|
99
|
+
max-height: 50vh;
|
|
100
|
+
padding: 0;
|
|
101
|
+
position: relative;
|
|
102
|
+
overflow-y: auto;
|
|
103
|
+
width: 100%;
|
|
104
|
+
z-index: 20;
|
|
105
|
+
}
|
|
106
|
+
.eds-contrast .eds-dropdown-list {
|
|
107
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
108
|
+
}
|
|
109
|
+
.eds-dropdown-list--open {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
}
|
|
112
|
+
.eds-dropdown-list:focus {
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
@media all and (min-width: 50rem) {
|
|
116
|
+
.eds-dropdown-list {
|
|
117
|
+
max-height: 30vh;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.eds-dropdown-list__item {
|
|
121
|
+
align-items: center;
|
|
122
|
+
background-color: #f8f8f8;
|
|
123
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
124
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
125
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
126
|
+
color: #181c56;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
font-family: inherit;
|
|
130
|
+
font-size: 1rem;
|
|
131
|
+
line-height: 1.25rem;
|
|
132
|
+
padding: 0.75rem 1rem;
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
.eds-dropdown-list__item:first-child {
|
|
136
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
137
|
+
}
|
|
138
|
+
.eds-dropdown-list__item:last-child {
|
|
139
|
+
border-bottom: none;
|
|
140
|
+
}
|
|
141
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
142
|
+
color: #181c56;
|
|
143
|
+
border-color: #54568c;
|
|
144
|
+
background-color: #ffffff;
|
|
145
|
+
}
|
|
146
|
+
.eds-dropdown-list__item--highlighted {
|
|
147
|
+
background-color: #d1d4e3;
|
|
148
|
+
}
|
|
149
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
150
|
+
background-color: #d1d4e3;
|
|
151
|
+
}
|
|
152
|
+
.eds-dropdown-list-icon {
|
|
153
|
+
margin-left: 0.75rem;
|
|
154
|
+
}
|
|
155
|
+
/* DO NOT CHANGE!*/
|
|
156
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
157
157
|
.eds-dropdown__toggle-button {
|
|
158
158
|
-webkit-appearance: none;
|
|
159
159
|
-moz-appearance: none;
|
|
@@ -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,88 +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
|
-
z-index: 20;
|
|
392
|
-
width: 100%;
|
|
393
|
-
max-height: 50vh;
|
|
394
|
-
overflow-y: auto;
|
|
395
|
-
padding: 0;
|
|
396
|
-
margin: 0;
|
|
397
|
-
list-style: none;
|
|
398
|
-
border: 0.125rem solid var(--components-form-basemenu-border);
|
|
399
|
-
border-radius: 0.25rem;
|
|
400
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
401
|
-
cursor: default;
|
|
402
|
-
}
|
|
403
|
-
.eds-dropdown__list:focus {
|
|
404
|
-
outline: none;
|
|
405
|
-
}
|
|
406
|
-
.eds-dropdown__list__item {
|
|
407
|
-
display: flex;
|
|
408
|
-
align-items: center;
|
|
409
|
-
justify-content: flex-start;
|
|
410
|
-
padding: 0.75rem 1rem;
|
|
411
|
-
font-family: inherit;
|
|
412
|
-
font-size: 1rem;
|
|
413
|
-
word-break: break-word;
|
|
414
|
-
line-height: 1.25rem;
|
|
415
|
-
overflow-x: hidden;
|
|
416
|
-
color: var(--components-form-basemenu-text);
|
|
417
|
-
background-color: var(--components-form-basemenu-fill-default);
|
|
418
|
-
}
|
|
419
|
-
.eds-dropdown__list__item:last-child {
|
|
420
|
-
border-bottom: none;
|
|
421
|
-
}
|
|
422
|
-
.eds-dropdown__list__item__text {
|
|
423
|
-
flex: 1;
|
|
424
|
-
cursor: default;
|
|
425
|
-
}
|
|
426
|
-
.eds-dropdown__list__item__icon {
|
|
427
|
-
margin-left: 0.75rem;
|
|
428
|
-
}
|
|
429
|
-
.eds-dropdown__list__item__checkbox {
|
|
430
|
-
pointer-events: none;
|
|
431
|
-
}
|
|
432
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
|
|
433
|
-
border-color: var(--components-form-checkbox-standard-border);
|
|
434
|
-
}
|
|
435
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
436
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
|
|
437
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
438
|
-
}
|
|
439
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
|
|
440
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
|
|
441
|
-
stroke: var(--components-form-checkbox-standard-icon);
|
|
442
|
-
}
|
|
443
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
|
|
444
|
-
.eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
|
|
445
|
-
fill: var(--components-form-checkbox-standard-icon);
|
|
446
|
-
}
|
|
447
|
-
.eds-dropdown__list__item--highlighted {
|
|
448
|
-
background-color: var(--components-form-basemenu-fill-hover);
|
|
449
|
-
}
|
|
450
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
|
|
451
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
|
|
452
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
|
|
453
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
|
|
454
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
455
|
-
border-color: transparent;
|
|
456
|
-
}
|
|
457
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
|
|
458
|
-
.eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
|
|
459
|
-
border-color: var(--components-form-checkbox-standard-border);
|
|
460
|
-
}
|
|
461
|
-
.eds-dropdown__list__item--selected {
|
|
462
|
-
background-color: var(--components-form-basemenu-fill-hover);
|
|
463
|
-
}
|
|
464
|
-
@media all and (min-width: 50rem) {
|
|
465
|
-
.eds-dropdown__list {
|
|
466
|
-
max-height: 30vh;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
/* DO NOT CHANGE!*/
|
|
470
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
471
473
|
.eds-dropdown {
|
|
472
474
|
cursor: pointer;
|
|
473
475
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://
|
|
13
|
+
"url": "https://github.com/entur/design-system.git",
|
|
14
14
|
"directory": "packages/dropdown"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/chip": "^0.7.
|
|
33
|
-
"@entur/form": "^8.1.
|
|
34
|
-
"@entur/icons": "^7.4.
|
|
35
|
-
"@entur/loader": "^0.5.
|
|
36
|
-
"@entur/tokens": "^3.17.
|
|
37
|
-
"@entur/tooltip": "^5.1.
|
|
38
|
-
"@entur/utils": "^0.12.
|
|
30
|
+
"@entur/a11y": "^0.2.93",
|
|
31
|
+
"@entur/button": "^3.2.35",
|
|
32
|
+
"@entur/chip": "^0.7.24",
|
|
33
|
+
"@entur/form": "^8.1.6",
|
|
34
|
+
"@entur/icons": "^7.4.3",
|
|
35
|
+
"@entur/loader": "^0.5.13",
|
|
36
|
+
"@entur/tokens": "^3.17.3",
|
|
37
|
+
"@entur/tooltip": "^5.1.2",
|
|
38
|
+
"@entur/utils": "^0.12.1",
|
|
39
39
|
"@floating-ui/react-dom": "^2.1.0",
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"downshift": "^9.0.8"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "214480c52396a9b6f7133bdb21c81986e69c5ec4"
|
|
44
44
|
}
|