@entur/dropdown 5.0.9 → 5.0.12

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 CHANGED
@@ -1,3 +1,67 @@
1
+ /* DO NOT CHANGE!*/
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
+ }
1
65
  .eds-inline-spinner {
2
66
  align-items: center;
3
67
  display: flex;
@@ -98,31 +162,6 @@
98
162
  }
99
163
  /* DO NOT CHANGE!*/
100
164
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
101
- .eds-dropdown__searchable-selected-item {
102
- display: block;
103
- font-size: 1rem;
104
- line-height: 1rem;
105
- margin-right: -1rem;
106
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
107
- font-family: inherit;
108
- overflow-x: hidden;
109
- text-overflow: ellipsis;
110
- white-space: nowrap;
111
- }
112
- .eds-dropdown__searchable-selected-item__wrapper {
113
- max-width: 65%;
114
- }
115
-
116
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
117
- -moz-transition: none;
118
- transition: none;
119
- }
120
-
121
- .eds-form-control.eds-dropdown__input::placeholder {
122
- transition: none;
123
- }
124
- /* DO NOT CHANGE!*/
125
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
126
165
  .eds-dropdown-wrapper {
127
166
  position: relative;
128
167
  }
@@ -181,70 +220,6 @@
181
220
  }
182
221
  /* DO NOT CHANGE!*/
183
222
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
184
- .eds-dropdown-list {
185
- border-radius: 0.25rem;
186
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
187
- display: none;
188
- list-style: none;
189
- margin: 0;
190
- max-height: 50vh;
191
- padding: 0;
192
- position: relative;
193
- overflow-y: auto;
194
- width: 100%;
195
- z-index: 20;
196
- }
197
- .eds-contrast .eds-dropdown-list {
198
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
199
- }
200
- .eds-dropdown-list--open {
201
- display: inline-block;
202
- }
203
- .eds-dropdown-list:focus {
204
- outline: none;
205
- }
206
- @media all and (min-width: 50rem) {
207
- .eds-dropdown-list {
208
- max-height: 30vh;
209
- }
210
- }
211
- .eds-dropdown-list__item {
212
- align-items: center;
213
- background-color: #f8f8f8;
214
- border-bottom: 0.125rem solid #e9e9e9;
215
- border-left: 0.125rem solid #e9e9e9;
216
- border-right: 0.125rem solid #e9e9e9;
217
- color: #181c56;
218
- display: flex;
219
- justify-content: space-between;
220
- font-family: inherit;
221
- font-size: 1rem;
222
- line-height: 1.25rem;
223
- padding: 0.75rem 1rem;
224
- width: 100%;
225
- }
226
- .eds-dropdown-list__item:first-child {
227
- border-top: 0.125rem solid #e9e9e9;
228
- }
229
- .eds-dropdown-list__item:last-child {
230
- border-bottom: none;
231
- }
232
- .eds-contrast .eds-dropdown-list__item {
233
- color: #181c56;
234
- border-color: #54568c;
235
- background-color: #ffffff;
236
- }
237
- .eds-dropdown-list__item--highlighted {
238
- background-color: #d1d4e3;
239
- }
240
- .eds-contrast .eds-dropdown-list__item--highlighted {
241
- background-color: #d1d4e3;
242
- }
243
- .eds-dropdown-list-icon {
244
- margin-left: 0.75rem;
245
- }
246
- /* DO NOT CHANGE!*/
247
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
248
223
  .eds-dropdown__toggle-button {
249
224
  -webkit-appearance: none;
250
225
  -moz-appearance: none;
@@ -273,6 +248,31 @@
273
248
  }
274
249
  /* DO NOT CHANGE!*/
275
250
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
251
+ .eds-dropdown__searchable-selected-item {
252
+ display: block;
253
+ font-size: 1rem;
254
+ line-height: 1rem;
255
+ margin-right: -1rem;
256
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
257
+ font-family: inherit;
258
+ overflow-x: hidden;
259
+ text-overflow: ellipsis;
260
+ white-space: nowrap;
261
+ }
262
+ .eds-dropdown__searchable-selected-item__wrapper {
263
+ max-width: 65%;
264
+ }
265
+
266
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
267
+ -moz-transition: none;
268
+ transition: none;
269
+ }
270
+
271
+ .eds-form-control.eds-dropdown__input::placeholder {
272
+ transition: none;
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;
@@ -405,16 +405,27 @@
405
405
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
406
406
  .eds-dropdown__wrapper {
407
407
  position: relative;
408
+ width: 100%;
409
+ min-width: 6rem;
410
+ max-width: 100%;
408
411
  }
409
412
  .eds-dropdown__input {
410
413
  flex: 1;
414
+ width: 0;
411
415
  min-height: 3rem;
412
416
  }
417
+ .eds-dropdown__input--hidden {
418
+ flex: 0;
419
+ }
420
+ .eds-dropdown__input__wrapper {
421
+ flex: 1 1 auto;
422
+ display: flex;
423
+ }
413
424
  .eds-dropdown__selected-item {
414
425
  cursor: pointer;
415
426
  flex: 1;
416
427
  padding: 1.25rem 1rem 0.25rem;
417
- min-height: 2.75rem;
428
+ min-height: 3rem;
418
429
  overflow-x: hidden;
419
430
  text-overflow: ellipsis;
420
431
  }
@@ -428,17 +439,19 @@
428
439
  color: #aeb7e2;
429
440
  }
430
441
  .eds-dropdown--searchable__selected-item {
431
- display: block;
432
- font-size: 1rem;
433
- line-height: 1rem;
434
- margin-right: -1rem;
435
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
436
- font-family: inherit;
437
442
  position: relative;
438
443
  top: 5px;
444
+ flex: 1;
439
445
  overflow-x: hidden;
440
446
  text-overflow: ellipsis;
441
- white-space: nowrap;
447
+ font-size: 1rem;
448
+ line-height: 1rem;
449
+ margin-right: -1rem;
450
+ padding: 1.25rem 0rem 0.25rem 1rem;
451
+ font-family: inherit;
452
+ }
453
+ .eds-dropdown--searchable__selected-item--hidden {
454
+ flex: 0;
442
455
  }
443
456
  .eds-dropdown--multiselect__selected-items-and-input {
444
457
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.9",
3
+ "version": "5.0.12",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.70",
31
- "@entur/button": "^3.1.2",
32
- "@entur/chip": "^0.6.46",
33
- "@entur/form": "^7.0.18",
34
- "@entur/icons": "^6.5.0",
35
- "@entur/loader": "^0.4.39",
31
+ "@entur/button": "^3.1.4",
32
+ "@entur/chip": "^0.6.48",
33
+ "@entur/form": "^7.0.20",
34
+ "@entur/icons": "^6.8.0",
35
+ "@entur/loader": "^0.4.41",
36
36
  "@entur/tokens": "^3.10.0",
37
- "@entur/tooltip": "^2.6.27",
37
+ "@entur/tooltip": "^2.6.29",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "72e76df00ea0a7313bd2c55e23aa96ad1e291ef1"
42
+ "gitHead": "fc2d2bb1966935c2eb86b0ebd2e1ce6239f82404"
43
43
  }