@entur/dropdown 5.0.0-RC.1 → 5.0.0-RC.2

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
@@ -5,6 +5,7 @@
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
6
  .eds-dropdown__wrapper {
7
7
  position: relative;
8
+ width: 22.5rem;
8
9
  }
9
10
  .eds-dropdown__selected-item {
10
11
  display: block;
@@ -79,24 +80,11 @@
79
80
  height: 2rem;
80
81
  }
81
82
  .eds-dropdown__selected-item-button {
82
- background-color: transparent;
83
- border-color: transparent;
84
- border-width: 0;
85
- text-align: inherit;
86
- line-height: inherit;
87
- font: inherit;
88
- color: inherit;
89
- font-size: inherit;
90
- overflow-x: hidden;
91
- text-overflow: ellipsis;
92
- white-space: nowrap;
83
+ cursor: pointer;
93
84
  flex: 1;
94
85
  padding: 1.25rem 1rem 0.25rem;
95
86
  min-height: 2.75rem;
96
87
  }
97
- .eds-dropdown__selected-item-button:focus {
98
- outline: transparent;
99
- }
100
88
  .eds-dropdown__selected-item-button__placeholder {
101
89
  color: #54568c;
102
90
  }
@@ -124,6 +112,9 @@
124
112
  border: 0.0625rem solid #181c56;
125
113
  outline: none;
126
114
  }
115
+ .eds-dropdown-appendix__clear-button__tooltip {
116
+ white-space: nowrap;
117
+ }
127
118
  .eds-dropdown-appendix__divider {
128
119
  content: "";
129
120
  display: block;
@@ -178,136 +169,67 @@
178
169
  }
179
170
  /* DO NOT CHANGE!*/
180
171
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
181
- .eds-dropdown__list {
182
- position: absolute;
183
- display: none;
184
- list-style: none;
172
+ .eds-dropdown-list {
185
173
  border-radius: 0.25rem;
186
- border: 0.125rem solid #7C7F9F;
187
174
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
188
- padding: 0;
175
+ display: none;
176
+ list-style: none;
189
177
  margin: 0;
190
- margin-top: 0.5rem;
191
178
  max-height: 50vh;
179
+ padding: 0;
180
+ position: relative;
192
181
  overflow-y: auto;
193
182
  width: 100%;
194
183
  z-index: 20;
195
184
  }
196
- .eds-dropdown__list:focus {
197
- outline: none;
185
+ .eds-contrast .eds-dropdown-list {
186
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
198
187
  }
199
- .eds-dropdown__list--open {
188
+ .eds-dropdown-list--open {
200
189
  display: inline-block;
201
190
  }
202
- .eds-dropdown__list__item {
191
+ .eds-dropdown-list:focus {
192
+ outline: none;
193
+ }
194
+ @media all and (min-width: 50rem) {
195
+ .eds-dropdown-list {
196
+ max-height: 30vh;
197
+ }
198
+ }
199
+ .eds-dropdown-list__item {
200
+ align-items: center;
203
201
  background-color: #f8f8f8;
202
+ border-bottom: 0.125rem solid #e9e9e9;
203
+ border-left: 0.125rem solid #e9e9e9;
204
+ border-right: 0.125rem solid #e9e9e9;
204
205
  color: #181c56;
205
206
  display: flex;
206
- align-items: center;
207
- justify-content: flex-start;
207
+ justify-content: space-between;
208
208
  font-family: inherit;
209
209
  font-size: 1rem;
210
210
  line-height: 1.25rem;
211
211
  padding: 0.75rem 1rem;
212
212
  width: 100%;
213
- overflow-x: hidden;
214
- word-break: break-word;
215
- }
216
- .eds-dropdown__list__item:last-child {
217
- border-bottom: none;
218
- }
219
- .eds-dropdown__list__item__text {
220
- flex: 1;
221
- }
222
- .eds-dropdown__list__item__icon {
223
- margin-left: 0.75rem;
224
- }
225
- .eds-dropdown__list__item__checkbox {
226
- pointer-events: none;
227
- }
228
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
229
- border-color: #181c56;
230
- }
231
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
232
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
233
- background-color: #181c56;
234
- }
235
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
236
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
237
- stroke: #ffffff;
238
- }
239
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
240
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
241
- fill: #ffffff;
242
- }
243
- .eds-dropdown__list__item--highlighted {
244
- background-color: #d1d4e3;
245
- }
246
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
247
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
248
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
249
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
250
- background-color: #54568c;
251
- border-color: transparent;
252
- }
253
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
254
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
255
- border-color: #54568c;
256
- }
257
- .eds-dropdown__list__item--selected {
258
- background-color: #54568c;
259
- color: #ffffff;
260
213
  }
261
- @media all and (min-width: 50rem) {
262
- .eds-dropdown__list {
263
- max-height: 30vh;
264
- }
265
- }
266
- /* DO NOT CHANGE!*/
267
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
268
- .eds-dropdown__selected-item-tag {
269
- height: 1.5rem;
270
- max-width: 40%;
271
- padding: 0;
272
- }
273
- .eds-dropdown__selected-item-tag > span {
274
- overflow: hidden;
275
- text-overflow: ellipsis;
276
- white-space: nowrap;
277
- margin-left: 0.5rem;
278
- }
279
- .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
280
- margin-right: 0.125rem;
281
- }
282
- .eds-dropdown__selected-item-tag .eds-tag-chip__close-button > svg {
283
- font-size: 0.6rem;
214
+ .eds-dropdown-list__item:first-child {
215
+ border-top: 0.125rem solid #e9e9e9;
284
216
  }
285
- .eds-contrast .eds-dropdown__selected-item-tag {
286
- background: #ebebf1;
287
- border: 0.0625rem solid #d1d4e3;
288
- color: #181c56;
217
+ .eds-dropdown-list__item:last-child {
218
+ border-bottom: none;
289
219
  }
290
- .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
220
+ .eds-contrast .eds-dropdown-list__item {
291
221
  color: #181c56;
222
+ border-color: #54568c;
223
+ background-color: #ffffff;
292
224
  }
293
- .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
294
- background-color: #babbcf;
295
- }
296
- .eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
297
- padding-right: 0.5rem;
298
- }
299
- .eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button {
300
- display: none;
225
+ .eds-dropdown-list__item--highlighted {
226
+ background-color: #d1d4e3;
301
227
  }
302
- .eds-contrast .eds-dropdown__selected-item-tag--readonly {
303
- background-color: #8285a8;
304
- border-color: transparent;
305
- color: #ffffff;
228
+ .eds-contrast .eds-dropdown-list__item--highlighted {
229
+ background-color: #d1d4e3;
306
230
  }
307
- .eds-contrast .eds-dropdown__selected-item-tag--disabled {
308
- background-color: #54568c;
309
- border-color: transparent;
310
- color: #8285a8;
231
+ .eds-dropdown-list-icon {
232
+ margin-left: 0.75rem;
311
233
  }
312
234
  /* DO NOT CHANGE!*/
313
235
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -402,67 +324,146 @@
402
324
  }
403
325
  /* DO NOT CHANGE!*/
404
326
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
405
- .eds-dropdown-list {
406
- border-radius: 0.25rem;
407
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
327
+ .eds-dropdown__list {
328
+ position: absolute;
408
329
  display: none;
409
330
  list-style: none;
331
+ border-radius: 0.25rem;
332
+ border: 0.125rem solid #7C7F9F;
333
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
334
+ padding: 0;
410
335
  margin: 0;
336
+ margin-top: 0.5rem;
411
337
  max-height: 50vh;
412
- padding: 0;
413
- position: relative;
414
338
  overflow-y: auto;
415
339
  width: 100%;
416
340
  z-index: 20;
417
341
  }
418
- .eds-contrast .eds-dropdown-list {
419
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
420
- }
421
- .eds-dropdown-list--open {
422
- display: inline-block;
423
- }
424
- .eds-dropdown-list:focus {
342
+ .eds-dropdown__list:focus {
425
343
  outline: none;
426
344
  }
427
- @media all and (min-width: 50rem) {
428
- .eds-dropdown-list {
429
- max-height: 30vh;
430
- }
345
+ .eds-dropdown__list--open {
346
+ display: inline-block;
431
347
  }
432
- .eds-dropdown-list__item {
433
- align-items: center;
348
+ .eds-dropdown__list__item {
434
349
  background-color: #f8f8f8;
435
- border-bottom: 0.125rem solid #e9e9e9;
436
- border-left: 0.125rem solid #e9e9e9;
437
- border-right: 0.125rem solid #e9e9e9;
438
350
  color: #181c56;
439
351
  display: flex;
440
- justify-content: space-between;
352
+ align-items: center;
353
+ justify-content: flex-start;
441
354
  font-family: inherit;
442
355
  font-size: 1rem;
443
356
  line-height: 1.25rem;
444
357
  padding: 0.75rem 1rem;
445
358
  width: 100%;
359
+ overflow-x: hidden;
360
+ word-break: break-word;
446
361
  }
447
- .eds-dropdown-list__item:first-child {
448
- border-top: 0.125rem solid #e9e9e9;
449
- }
450
- .eds-dropdown-list__item:last-child {
362
+ .eds-dropdown__list__item:last-child {
451
363
  border-bottom: none;
452
364
  }
453
- .eds-contrast .eds-dropdown-list__item {
454
- color: #181c56;
455
- border-color: #54568c;
456
- background-color: #ffffff;
365
+ .eds-dropdown__list__item__text {
366
+ flex: 1;
367
+ cursor: default;
457
368
  }
458
- .eds-dropdown-list__item--highlighted {
459
- background-color: #d1d4e3;
369
+ .eds-dropdown__list__item__icon {
370
+ margin-left: 0.75rem;
460
371
  }
461
- .eds-contrast .eds-dropdown-list__item--highlighted {
372
+ .eds-dropdown__list__item__checkbox {
373
+ pointer-events: none;
374
+ }
375
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
376
+ border-color: #181c56;
377
+ }
378
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
379
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
380
+ background-color: #181c56;
381
+ }
382
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
383
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
384
+ stroke: #ffffff;
385
+ }
386
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
387
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
388
+ fill: #ffffff;
389
+ }
390
+ .eds-dropdown__list__item--highlighted {
462
391
  background-color: #d1d4e3;
463
392
  }
464
- .eds-dropdown-list-icon {
465
- margin-left: 0.75rem;
393
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
394
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
395
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
396
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
397
+ background-color: #54568c;
398
+ border-color: transparent;
399
+ }
400
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
401
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
402
+ border-color: #54568c;
403
+ }
404
+ .eds-dropdown__list__item--selected {
405
+ background-color: #54568c;
406
+ color: #ffffff;
407
+ }
408
+ @media all and (min-width: 50rem) {
409
+ .eds-dropdown__list {
410
+ max-height: 30vh;
411
+ }
412
+ }
413
+ /* DO NOT CHANGE!*/
414
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
415
+ .eds-dropdown__selected-item-tag {
416
+ height: 1.5rem;
417
+ max-width: 40%;
418
+ padding: 0;
419
+ }
420
+ .eds-dropdown__selected-item-tag > span {
421
+ overflow: hidden;
422
+ text-overflow: ellipsis;
423
+ white-space: nowrap;
424
+ margin-left: 0.5rem;
425
+ }
426
+ .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
427
+ margin-right: 0.125rem;
428
+ }
429
+ .eds-dropdown__selected-item-tag .eds-tag-chip__close-button > svg {
430
+ font-size: 0.6rem;
431
+ }
432
+ .eds-contrast .eds-dropdown__selected-item-tag {
433
+ background: #ebebf1;
434
+ border: 0.0625rem solid #d1d4e3;
435
+ color: #181c56;
436
+ }
437
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
438
+ color: #181c56;
439
+ }
440
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
441
+ background-color: #babbcf;
442
+ }
443
+ .eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
444
+ padding-right: 0.5rem;
445
+ }
446
+ .eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button {
447
+ display: none;
448
+ }
449
+ .eds-contrast .eds-dropdown__selected-item-tag--readonly {
450
+ background-color: #8285a8;
451
+ border-color: transparent;
452
+ color: #ffffff;
453
+ }
454
+ .eds-contrast .eds-dropdown__selected-item-tag--disabled {
455
+ background-color: #54568c;
456
+ border-color: transparent;
457
+ color: #8285a8;
458
+ }
459
+ /* DO NOT CHANGE!*/
460
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
461
+ .eds-inline-spinner {
462
+ align-items: center;
463
+ display: flex;
464
+ justify-content: center;
465
+ height: 100%;
466
+ width: 100%;
466
467
  }
467
468
  /* DO NOT CHANGE!*/
468
469
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -491,15 +492,6 @@
491
492
  }
492
493
  /* DO NOT CHANGE!*/
493
494
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
494
- .eds-inline-spinner {
495
- align-items: center;
496
- display: flex;
497
- justify-content: center;
498
- height: 100%;
499
- width: 100%;
500
- }
501
- /* DO NOT CHANGE!*/
502
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
503
495
  .eds-dropdown-wrapper {
504
496
  position: relative;
505
497
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.0-RC.1",
3
+ "version": "5.0.0-RC.2",
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.66",
31
- "@entur/button": "^3.0.9",
32
- "@entur/chip": "^0.6.37",
33
- "@entur/form": "^7.0.10",
30
+ "@entur/a11y": "^0.2.68",
31
+ "@entur/button": "^3.0.11",
32
+ "@entur/chip": "^0.6.39",
33
+ "@entur/form": "^7.0.12",
34
34
  "@entur/icons": "^6.3.1",
35
- "@entur/loader": "^0.4.32",
35
+ "@entur/loader": "^0.4.34",
36
36
  "@entur/tokens": "^3.10.0",
37
- "@entur/tooltip": "^2.6.20",
38
- "@entur/utils": "^0.9.1",
37
+ "@entur/tooltip": "^2.6.22",
38
+ "@entur/utils": "^0.9.3",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "e4d22f6fc1c7cb4e76306a1be92930325c9c8e25"
42
+ "gitHead": "cb86cb978e61b4c299e107fed33c389e87f57b30"
43
43
  }