@entur/dropdown 5.5.1 → 6.0.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/styles.css CHANGED
@@ -1,10 +1,3 @@
1
- .eds-inline-spinner {
2
- align-items: center;
3
- display: flex;
4
- justify-content: center;
5
- height: 100%;
6
- width: 100%;
7
- }
8
1
  /* DO NOT CHANGE!*/
9
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
3
  .eds-multi-select {
@@ -185,6 +178,13 @@
185
178
  .eds-form-control.eds-dropdown__input::placeholder {
186
179
  transition: none;
187
180
  }
181
+ .eds-inline-spinner {
182
+ align-items: center;
183
+ display: flex;
184
+ justify-content: center;
185
+ height: 100%;
186
+ width: 100%;
187
+ }
188
188
  /* DO NOT CHANGE!*/
189
189
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
190
190
  .eds-dropdown__toggle-button {
@@ -274,33 +274,33 @@
274
274
  /* DO NOT CHANGE!*/
275
275
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
276
276
  .eds-dropdown__list {
277
+ box-sizing: content-box;
278
+ z-index: 20;
279
+ width: 100%;
280
+ max-height: 50vh;
281
+ overflow-y: auto;
282
+ padding: 0;
283
+ margin: 0;
277
284
  list-style: none;
278
- border-radius: 0.25rem;
279
285
  border: 0.125rem solid var(--components-form-basemenu-border);
286
+ border-radius: 0.25rem;
280
287
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
281
- padding: 0;
282
- margin: 0;
283
- max-height: 50vh;
284
- overflow-y: auto;
285
- width: 100%;
286
- z-index: 20;
287
288
  }
288
289
  .eds-dropdown__list:focus {
289
290
  outline: none;
290
291
  }
291
292
  .eds-dropdown__list__item {
292
- background-color: var(--components-form-basemenu-fill-default);
293
- color: var(--components-form-basemenu-text);
294
293
  display: flex;
295
294
  align-items: center;
296
295
  justify-content: flex-start;
296
+ padding: 0.75rem 1rem;
297
297
  font-family: inherit;
298
298
  font-size: 1rem;
299
+ word-break: break-word;
299
300
  line-height: 1.25rem;
300
- padding: 0.75rem 1rem;
301
- width: 100%;
302
301
  overflow-x: hidden;
303
- word-break: break-word;
302
+ color: var(--components-form-basemenu-text);
303
+ background-color: var(--components-form-basemenu-fill-default);
304
304
  }
305
305
  .eds-dropdown__list__item:last-child {
306
306
  border-bottom: none;
@@ -462,18 +462,6 @@
462
462
  }
463
463
  /* DO NOT CHANGE!*/
464
464
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
465
- .eds-dropdown__wrapper {
466
- position: relative;
467
- width: 100%;
468
- min-width: 6rem;
469
- max-width: 100%;
470
- }
471
- .eds-dropdown__wrapper--has-tooltip {
472
- padding-right: 2rem;
473
- }
474
- .eds-dropdown__wrapper--has-tooltip .eds-dropdown__list {
475
- width: calc(100% - 2rem);
476
- }
477
465
  .eds-dropdown__input {
478
466
  flex: 1;
479
467
  width: 0;
@@ -486,13 +474,14 @@
486
474
  display: flex;
487
475
  }
488
476
  .eds-dropdown__selected-item {
489
- cursor: pointer;
490
477
  flex: 1;
478
+ height: 100%;
479
+ min-height: 2.75rem;
480
+ padding: 1.25rem 0rem 0.25rem;
491
481
  overflow-x: hidden;
492
482
  text-overflow: ellipsis;
493
483
  line-height: 1rem;
494
- padding: 1.25rem 1rem 0.25rem;
495
- min-height: 2.75rem;
484
+ cursor: pointer;
496
485
  }
497
486
  .eds-dropdown__selected-item.focus-visible {
498
487
  outline: none;
@@ -505,22 +494,15 @@
505
494
  flex: 1;
506
495
  overflow-x: hidden;
507
496
  text-overflow: ellipsis;
497
+ padding: 1.375rem 0rem 0.25rem;
508
498
  white-space: nowrap;
509
- margin-right: -1rem;
510
- padding: 1.375rem 0rem 0.25rem 1rem;
511
- font-family: inherit;
512
499
  line-height: 1rem;
500
+ font-family: inherit;
513
501
  cursor: text;
514
502
  }
515
503
  .eds-dropdown--searchable__selected-item--hidden {
516
504
  flex: 0;
517
505
  }
518
- .eds-dropdown--searchable .eds-input-group__label {
519
- top: 0;
520
- }
521
- .eds-dropdown--searchable.eds-form-control-wrapper--is-filled .eds-input-group__label {
522
- top: 0.375rem;
523
- }
524
506
  .eds-dropdown--multiselect__selected-items-and-input {
525
507
  display: flex;
526
508
  flex-wrap: wrap;
@@ -530,7 +512,7 @@
530
512
  cursor: text;
531
513
  }
532
514
  .eds-dropdown--multiselect__selected-items-and-input--filled {
533
- padding: 1.25rem 0rem 0.25rem 1rem;
515
+ padding: 1.25rem 0rem 0.25rem;
534
516
  }
535
517
  .eds-dropdown--multiselect__selected-items-and-input--filled .eds-dropdown__input {
536
518
  padding: 0;
@@ -544,40 +526,6 @@
544
526
  width: 1rem;
545
527
  height: 1rem;
546
528
  }
547
- .eds-dropdown--multiselect .eds-input-group__label {
548
- top: 0;
549
- }
550
- .eds-dropdown--multiselect.eds-form-control-wrapper--is-filled .eds-input-group__label {
551
- top: 0.375rem;
552
- }
553
- .eds-dropdown.eds-form-control-wrapper {
554
- align-items: start;
555
- }
556
- .eds-dropdown.eds-form-control-wrapper.eds-dropdown--not-filled .eds-input-group__label {
557
- font-size: 1rem;
558
- position: absolute;
559
- line-height: 1rem;
560
- padding: 1rem;
561
- padding-left: 0;
562
- margin-left: 1rem;
563
- top: 0;
564
- transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
565
- }
566
- .eds-dropdown.eds-form-control-wrapper .eds-form-control__prepend {
567
- top: 1rem;
568
- }
569
- .eds-dropdown.eds-form-control-wrapper .eds-form-control__append {
570
- top: 0.25rem;
571
- }
572
- .eds-dropdown.eds-form-control-wrapper .eds-form-control__append.eds-form-control__append--tooltip {
573
- color: var(--primary-text-color);
574
- position: absolute;
575
- top: 0.75rem;
576
- right: -3rem;
577
- }
578
- .eds-dropdown.eds-form-control-wrapper .eds-form-control__append .eds-loading-dots {
579
- height: 2rem;
580
- }
581
529
  .eds-dropdown--native + .eds-form-control__append {
582
530
  margin-left: -2em;
583
531
  pointer-events: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.5.1",
3
+ "version": "6.0.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -28,17 +28,17 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.87",
31
- "@entur/button": "^3.2.27",
32
- "@entur/chip": "^0.7.14",
33
- "@entur/form": "^7.2.1",
34
- "@entur/icons": "^6.18.1",
35
- "@entur/loader": "^0.5.5",
31
+ "@entur/button": "^3.2.28",
32
+ "@entur/chip": "^0.7.15",
33
+ "@entur/form": "^8.0.0",
34
+ "@entur/icons": "^7.0.0",
35
+ "@entur/loader": "^0.5.6",
36
36
  "@entur/tokens": "^3.15.2",
37
- "@entur/tooltip": "^2.7.11",
37
+ "@entur/tooltip": "^3.0.0",
38
38
  "@entur/utils": "^0.11.1",
39
39
  "@floating-ui/react-dom": "^2.1.0",
40
40
  "classnames": "^2.3.1",
41
41
  "downshift": "^8.3.3"
42
42
  },
43
- "gitHead": "4d4f7939fb1c9b936e07dd321b7faa3e12476b3d"
43
+ "gitHead": "cff2157007648ca73944d215e9f3f03160c96f13"
44
44
  }