@entur/dropdown 6.0.7 → 6.0.8

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.
Files changed (2) hide show
  1. package/dist/styles.css +113 -113
  2. package/package.json +10 -10
package/dist/styles.css CHANGED
@@ -1,30 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-dropdown__searchable-selected-item {
4
- display: block;
5
- font-size: 1rem;
6
- line-height: 1rem;
7
- margin-right: -1rem;
8
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
9
- font-family: inherit;
10
- overflow-x: hidden;
11
- text-overflow: ellipsis;
12
- white-space: nowrap;
13
- }
14
- .eds-dropdown__searchable-selected-item__wrapper {
15
- max-width: 65%;
16
- }
17
-
18
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
19
- -moz-transition: none;
20
- transition: none;
21
- }
22
-
23
- .eds-form-control.eds-dropdown__input::placeholder {
24
- transition: none;
25
- }
26
- /* DO NOT CHANGE!*/
27
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
28
3
  .eds-dropdown-list {
29
4
  border-radius: 0.25rem;
30
5
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
@@ -87,12 +62,30 @@
87
62
  .eds-dropdown-list-icon {
88
63
  margin-left: 0.75rem;
89
64
  }
90
- .eds-inline-spinner {
91
- align-items: center;
92
- display: flex;
93
- justify-content: center;
94
- height: 100%;
95
- width: 100%;
65
+ /* DO NOT CHANGE!*/
66
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
67
+ .eds-dropdown__searchable-selected-item {
68
+ display: block;
69
+ font-size: 1rem;
70
+ line-height: 1rem;
71
+ margin-right: -1rem;
72
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
73
+ font-family: inherit;
74
+ overflow-x: hidden;
75
+ text-overflow: ellipsis;
76
+ white-space: nowrap;
77
+ }
78
+ .eds-dropdown__searchable-selected-item__wrapper {
79
+ max-width: 65%;
80
+ }
81
+
82
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
83
+ -moz-transition: none;
84
+ transition: none;
85
+ }
86
+
87
+ .eds-form-control.eds-dropdown__input::placeholder {
88
+ transition: none;
96
89
  }
97
90
  /* DO NOT CHANGE!*/
98
91
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -152,6 +145,13 @@
152
145
  .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
153
146
  background-color: #8285a8;
154
147
  }
148
+ .eds-inline-spinner {
149
+ align-items: center;
150
+ display: flex;
151
+ justify-content: center;
152
+ height: 100%;
153
+ width: 100%;
154
+ }
155
155
  /* DO NOT CHANGE!*/
156
156
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
157
  .eds-dropdown__toggle-button {
@@ -273,88 +273,6 @@
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
- z-index: 20;
279
- width: 100%;
280
- max-height: 50vh;
281
- overflow-y: auto;
282
- padding: 0;
283
- margin: 0;
284
- list-style: none;
285
- border: 0.125rem solid var(--components-form-basemenu-border);
286
- border-radius: 0.25rem;
287
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
288
- cursor: default;
289
- }
290
- .eds-dropdown__list:focus {
291
- outline: none;
292
- }
293
- .eds-dropdown__list__item {
294
- display: flex;
295
- align-items: center;
296
- justify-content: flex-start;
297
- padding: 0.75rem 1rem;
298
- font-family: inherit;
299
- font-size: 1rem;
300
- word-break: break-word;
301
- line-height: 1.25rem;
302
- overflow-x: hidden;
303
- color: var(--components-form-basemenu-text);
304
- background-color: var(--components-form-basemenu-fill-default);
305
- }
306
- .eds-dropdown__list__item:last-child {
307
- border-bottom: none;
308
- }
309
- .eds-dropdown__list__item__text {
310
- flex: 1;
311
- cursor: default;
312
- }
313
- .eds-dropdown__list__item__icon {
314
- margin-left: 0.75rem;
315
- }
316
- .eds-dropdown__list__item__checkbox {
317
- pointer-events: none;
318
- }
319
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
320
- border-color: var(--components-form-checkbox-standard-border);
321
- }
322
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
323
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
324
- background-color: var(--components-form-checkbox-standard-fill-selected);
325
- }
326
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
327
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
328
- stroke: var(--components-form-checkbox-standard-icon);
329
- }
330
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
331
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
332
- fill: var(--components-form-checkbox-standard-icon);
333
- }
334
- .eds-dropdown__list__item--highlighted {
335
- background-color: var(--components-form-basemenu-fill-hover);
336
- }
337
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
338
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
339
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
340
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
341
- background-color: var(--components-form-checkbox-standard-fill-selected);
342
- border-color: transparent;
343
- }
344
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
345
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
346
- border-color: var(--components-form-checkbox-standard-border);
347
- }
348
- .eds-dropdown__list__item--selected {
349
- background-color: var(--components-form-basemenu-fill-hover);
350
- }
351
- @media all and (min-width: 50rem) {
352
- .eds-dropdown__list {
353
- max-height: 30vh;
354
- }
355
- }
356
- /* DO NOT CHANGE!*/
357
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
358
276
  .eds-contrast .eds-dropdown__selected-item-tag {
359
277
  background: var(--components-chip-standard-default);
360
278
  border: 0.0625rem solid var(--components-chip-standard-border);
@@ -468,6 +386,88 @@
468
386
  }
469
387
  /* DO NOT CHANGE!*/
470
388
  /* 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
471
  .eds-dropdown {
472
472
  cursor: pointer;
473
473
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.7",
3
+ "version": "6.0.8",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -27,18 +27,18 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.91",
31
- "@entur/button": "^3.2.33",
32
- "@entur/chip": "^0.7.22",
33
- "@entur/form": "^8.1.4",
34
- "@entur/icons": "^7.4.1",
35
- "@entur/loader": "^0.5.11",
36
- "@entur/tokens": "^3.17.1",
37
- "@entur/tooltip": "^5.1.0",
30
+ "@entur/a11y": "^0.2.92",
31
+ "@entur/button": "^3.2.34",
32
+ "@entur/chip": "^0.7.23",
33
+ "@entur/form": "^8.1.5",
34
+ "@entur/icons": "^7.4.2",
35
+ "@entur/loader": "^0.5.12",
36
+ "@entur/tokens": "^3.17.2",
37
+ "@entur/tooltip": "^5.1.1",
38
38
  "@entur/utils": "^0.12.0",
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": "7df4cea445e3dac77f80619ea0c298dc0b5c31e0"
43
+ "gitHead": "36055df834c5a9dd170f1846c1e0469481575e1a"
44
44
  }