@entur/dropdown 3.0.15 → 4.0.0-beta.0
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/beta/SearchableDropdown.d.ts +14 -0
- package/dist/beta/index.d.ts +1 -0
- package/dist/dropdown.cjs.development.js +217 -22
- 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 +219 -25
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +112 -13
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
--eds-dropdown: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
+
.eds-dropdown + .eds-form-control__append {
|
|
6
|
+
margin-left: -2em;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.eds-dropdown option {
|
|
11
|
+
color: #181c56;
|
|
12
|
+
background-color: #ffffff;
|
|
13
|
+
}
|
|
14
|
+
.eds-contrast .eds-dropdown option {
|
|
15
|
+
color: #181c56;
|
|
16
|
+
}/* DO NOT CHANGE!*/
|
|
17
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
18
|
.eds-multi-select {
|
|
6
19
|
position: relative;
|
|
7
20
|
}
|
|
@@ -164,19 +177,6 @@
|
|
|
164
177
|
margin-left: 0.75rem;
|
|
165
178
|
}/* DO NOT CHANGE!*/
|
|
166
179
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
167
|
-
.eds-dropdown + .eds-form-control__append {
|
|
168
|
-
margin-left: -2em;
|
|
169
|
-
pointer-events: none;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.eds-dropdown option {
|
|
173
|
-
color: #181c56;
|
|
174
|
-
background-color: #ffffff;
|
|
175
|
-
}
|
|
176
|
-
.eds-contrast .eds-dropdown option {
|
|
177
|
-
color: #181c56;
|
|
178
|
-
}/* DO NOT CHANGE!*/
|
|
179
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
180
180
|
.eds-inline-spinner {
|
|
181
181
|
align-items: center;
|
|
182
182
|
display: flex;
|
|
@@ -275,6 +275,105 @@
|
|
|
275
275
|
background-color: #8285a8;
|
|
276
276
|
}/* DO NOT CHANGE!*/
|
|
277
277
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
278
|
+
.eds-searchable-dropdown__selected-item {
|
|
279
|
+
display: block;
|
|
280
|
+
font-size: 1rem;
|
|
281
|
+
line-height: 1rem;
|
|
282
|
+
margin-right: -1rem;
|
|
283
|
+
padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
|
|
284
|
+
font-family: inherit;
|
|
285
|
+
overflow-x: hidden;
|
|
286
|
+
text-overflow: ellipsis;
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
}
|
|
289
|
+
.eds-searchable-dropdown__selected-item__wrapper {
|
|
290
|
+
max-width: 65%;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.eds-dropdown-list {
|
|
294
|
+
border-radius: 0.25rem;
|
|
295
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
296
|
+
display: none;
|
|
297
|
+
list-style: none;
|
|
298
|
+
margin: 0;
|
|
299
|
+
max-height: 50vh;
|
|
300
|
+
padding: 0;
|
|
301
|
+
position: relative;
|
|
302
|
+
overflow-y: auto;
|
|
303
|
+
width: 100%;
|
|
304
|
+
z-index: 20;
|
|
305
|
+
}
|
|
306
|
+
.eds-contrast .eds-dropdown-list {
|
|
307
|
+
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
308
|
+
}
|
|
309
|
+
.eds-dropdown-list--open {
|
|
310
|
+
display: inline-block;
|
|
311
|
+
}
|
|
312
|
+
.eds-dropdown-list:focus {
|
|
313
|
+
outline: none;
|
|
314
|
+
}
|
|
315
|
+
@media all and (min-width: 50rem) {
|
|
316
|
+
.eds-dropdown-list {
|
|
317
|
+
max-height: 30vh;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.eds-dropdown-list__item {
|
|
322
|
+
align-items: center;
|
|
323
|
+
background-color: #f8f8f8;
|
|
324
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
325
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
326
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
327
|
+
color: #181c56;
|
|
328
|
+
display: flex;
|
|
329
|
+
justify-content: space-between;
|
|
330
|
+
font-family: inherit;
|
|
331
|
+
font-size: 1rem;
|
|
332
|
+
line-height: 1.25rem;
|
|
333
|
+
padding: 0.75rem 1rem;
|
|
334
|
+
width: 100%;
|
|
335
|
+
}
|
|
336
|
+
.eds-dropdown-list__item:first-child {
|
|
337
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
338
|
+
}
|
|
339
|
+
.eds-dropdown-list__item:last-child {
|
|
340
|
+
border-bottom: none;
|
|
341
|
+
}
|
|
342
|
+
.eds-dropdown-list__item-icon {
|
|
343
|
+
margin-left: 0.75rem;
|
|
344
|
+
}
|
|
345
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
346
|
+
color: #181c56;
|
|
347
|
+
border-color: #54568c;
|
|
348
|
+
background-color: #ffffff;
|
|
349
|
+
}
|
|
350
|
+
.eds-dropdown-list__item--highlighted {
|
|
351
|
+
background-color: #d1d4e3;
|
|
352
|
+
}
|
|
353
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
354
|
+
background-color: #d1d4e3;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.eds-form-control.eds-searchable-dropdown__input::-moz-placeholder {
|
|
358
|
+
-moz-transition: none;
|
|
359
|
+
transition: none;
|
|
360
|
+
position: relative;
|
|
361
|
+
bottom: 1px;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.eds-form-control.eds-searchable-dropdown__input:-ms-input-placeholder {
|
|
365
|
+
-ms-transition: none;
|
|
366
|
+
transition: none;
|
|
367
|
+
position: relative;
|
|
368
|
+
bottom: 1px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.eds-form-control.eds-searchable-dropdown__input::placeholder {
|
|
372
|
+
transition: none;
|
|
373
|
+
position: relative;
|
|
374
|
+
bottom: 1px;
|
|
375
|
+
}/* DO NOT CHANGE!*/
|
|
376
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
278
377
|
.eds-dropdown__toggle-button {
|
|
279
378
|
-webkit-appearance: none;
|
|
280
379
|
-moz-appearance: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"classnames": "^2.3.1",
|
|
39
39
|
"downshift": "^6.1.7"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5878a206f3bda36addf2bc1fb4272f957f5ae3dc"
|
|
42
42
|
}
|