@entur/dropdown 6.0.9 → 6.0.10

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 +174 -174
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -1,95 +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
- .eds-dropdown-wrapper {
29
- position: relative;
30
- }
31
- .eds-dropdown-wrapper .eds-form-control {
32
- padding-right: 0;
33
- }
34
- .eds-dropdown-wrapper .eds-form-control__append {
35
- display: flex;
36
- align-items: center;
37
- }
38
-
39
- .eds-dropdown__input::-moz-placeholder {
40
- color: var(--components-form-baseform-standard-text-label);
41
- }
42
-
43
- .eds-dropdown__input::placeholder {
44
- color: var(--components-form-baseform-standard-text-label);
45
- }
46
-
47
- .eds-dropdown__selected-item {
48
- overflow-x: hidden;
49
- text-overflow: ellipsis;
50
- white-space: nowrap;
51
- }
52
-
53
- .eds-dropdown__clear-button {
54
- background: none;
55
- border: none;
56
- border-radius: 50%;
57
- color: inherit;
58
- cursor: pointer;
59
- display: flex;
60
- font: inherit;
61
- font-size: 1rem;
62
- line-height: 1rem;
63
- padding: 0.5rem;
64
- }
65
- .eds-dropdown__clear-button:hover {
66
- background: #f3f3f3;
67
- }
68
- .eds-dropdown__clear-button:focus {
69
- outline-offset: 0.125rem;
70
- outline: none;
71
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
72
- }
73
-
74
- .eds-dropdown__divider {
75
- content: "";
76
- display: block;
77
- background-color: #e9e9e9;
78
- height: 1.5rem;
79
- width: 1px;
80
- }
81
- .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
82
- background-color: #8285a8;
83
- }
84
- .eds-inline-spinner {
85
- align-items: center;
86
- display: flex;
87
- justify-content: center;
88
- height: 100%;
89
- width: 100%;
90
- }
91
- /* DO NOT CHANGE!*/
92
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
93
3
  .eds-dropdown-list {
94
4
  border-radius: 0.25rem;
95
5
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
@@ -154,6 +64,38 @@
154
64
  }
155
65
  /* DO NOT CHANGE!*/
156
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;
89
+ }
90
+ .eds-inline-spinner {
91
+ align-items: center;
92
+ display: flex;
93
+ justify-content: center;
94
+ height: 100%;
95
+ width: 100%;
96
+ }
97
+ /* DO NOT CHANGE!*/
98
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
99
  .eds-dropdown__toggle-button {
158
100
  -webkit-appearance: none;
159
101
  -moz-appearance: none;
@@ -182,6 +124,64 @@
182
124
  }
183
125
  /* DO NOT CHANGE!*/
184
126
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
127
+ .eds-dropdown-wrapper {
128
+ position: relative;
129
+ }
130
+ .eds-dropdown-wrapper .eds-form-control {
131
+ padding-right: 0;
132
+ }
133
+ .eds-dropdown-wrapper .eds-form-control__append {
134
+ display: flex;
135
+ align-items: center;
136
+ }
137
+
138
+ .eds-dropdown__input::-moz-placeholder {
139
+ color: var(--components-form-baseform-standard-text-label);
140
+ }
141
+
142
+ .eds-dropdown__input::placeholder {
143
+ color: var(--components-form-baseform-standard-text-label);
144
+ }
145
+
146
+ .eds-dropdown__selected-item {
147
+ overflow-x: hidden;
148
+ text-overflow: ellipsis;
149
+ white-space: nowrap;
150
+ }
151
+
152
+ .eds-dropdown__clear-button {
153
+ background: none;
154
+ border: none;
155
+ border-radius: 50%;
156
+ color: inherit;
157
+ cursor: pointer;
158
+ display: flex;
159
+ font: inherit;
160
+ font-size: 1rem;
161
+ line-height: 1rem;
162
+ padding: 0.5rem;
163
+ }
164
+ .eds-dropdown__clear-button:hover {
165
+ background: #f3f3f3;
166
+ }
167
+ .eds-dropdown__clear-button:focus {
168
+ outline-offset: 0.125rem;
169
+ outline: none;
170
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
171
+ }
172
+
173
+ .eds-dropdown__divider {
174
+ content: "";
175
+ display: block;
176
+ background-color: #e9e9e9;
177
+ height: 1.5rem;
178
+ width: 1px;
179
+ }
180
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
181
+ background-color: #8285a8;
182
+ }
183
+ /* DO NOT CHANGE!*/
184
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
185
185
  .eds-multi-select {
186
186
  position: relative;
187
187
  }
@@ -273,90 +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
- max-height: 50vh;
279
- overflow-y: auto;
280
- padding: 0;
281
- margin: 0;
282
- list-style: none;
283
- border: 0.125rem solid var(--components-form-basemenu-border);
284
- border-radius: 0.25rem;
285
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
286
- cursor: default;
287
- }
288
- .eds-dropdown__list__floating-container {
289
- z-index: 20;
290
- width: calc(100% + 0.25rem);
291
- }
292
- .eds-dropdown__list:focus {
293
- outline: none;
294
- }
295
- .eds-dropdown__list__item {
296
- display: flex;
297
- align-items: center;
298
- justify-content: flex-start;
299
- padding: 0.75rem 1rem;
300
- font-family: inherit;
301
- font-size: 1rem;
302
- word-break: break-word;
303
- line-height: 1.25rem;
304
- overflow-x: hidden;
305
- color: var(--components-form-basemenu-text);
306
- background-color: var(--components-form-basemenu-fill-default);
307
- }
308
- .eds-dropdown__list__item:last-child {
309
- border-bottom: none;
310
- }
311
- .eds-dropdown__list__item__text {
312
- flex: 1;
313
- cursor: default;
314
- }
315
- .eds-dropdown__list__item__icon {
316
- margin-left: 0.75rem;
317
- }
318
- .eds-dropdown__list__item__checkbox {
319
- pointer-events: none;
320
- }
321
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
322
- border-color: var(--components-form-checkbox-standard-border);
323
- }
324
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
325
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
326
- background-color: var(--components-form-checkbox-standard-fill-selected);
327
- }
328
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
329
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
330
- stroke: var(--components-form-checkbox-standard-icon);
331
- }
332
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
333
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
334
- fill: var(--components-form-checkbox-standard-icon);
335
- }
336
- .eds-dropdown__list__item--highlighted {
337
- background-color: var(--components-form-basemenu-fill-hover);
338
- }
339
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
340
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
341
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
342
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
343
- background-color: var(--components-form-checkbox-standard-fill-selected);
344
- border-color: transparent;
345
- }
346
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
347
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
348
- border-color: var(--components-form-checkbox-standard-border);
349
- }
350
- .eds-dropdown__list__item--selected {
351
- background-color: var(--components-form-basemenu-fill-hover);
352
- }
353
- @media all and (min-width: 50rem) {
354
- .eds-dropdown__list {
355
- max-height: 30vh;
356
- }
357
- }
358
- /* DO NOT CHANGE!*/
359
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
360
276
  .eds-contrast .eds-dropdown__selected-item-tag {
361
277
  background: var(--components-chip-standard-default);
362
278
  border: 0.0625rem solid var(--components-chip-standard-border);
@@ -470,6 +386,90 @@
470
386
  }
471
387
  /* DO NOT CHANGE!*/
472
388
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
389
+ .eds-dropdown__list {
390
+ box-sizing: content-box;
391
+ max-height: 50vh;
392
+ overflow-y: auto;
393
+ padding: 0;
394
+ margin: 0;
395
+ list-style: none;
396
+ border: 0.125rem solid var(--components-form-basemenu-border);
397
+ border-radius: 0.25rem;
398
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
399
+ cursor: default;
400
+ }
401
+ .eds-dropdown__list__floating-container {
402
+ z-index: 20;
403
+ width: calc(100% + 0.25rem);
404
+ }
405
+ .eds-dropdown__list:focus {
406
+ outline: none;
407
+ }
408
+ .eds-dropdown__list__item {
409
+ display: flex;
410
+ align-items: center;
411
+ justify-content: flex-start;
412
+ padding: 0.75rem 1rem;
413
+ font-family: inherit;
414
+ font-size: 1rem;
415
+ word-break: break-word;
416
+ line-height: 1.25rem;
417
+ overflow-x: hidden;
418
+ color: var(--components-form-basemenu-text);
419
+ background-color: var(--components-form-basemenu-fill-default);
420
+ }
421
+ .eds-dropdown__list__item:last-child {
422
+ border-bottom: none;
423
+ }
424
+ .eds-dropdown__list__item__text {
425
+ flex: 1;
426
+ cursor: default;
427
+ }
428
+ .eds-dropdown__list__item__icon {
429
+ margin-left: 0.75rem;
430
+ }
431
+ .eds-dropdown__list__item__checkbox {
432
+ pointer-events: none;
433
+ }
434
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
435
+ border-color: var(--components-form-checkbox-standard-border);
436
+ }
437
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
438
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
439
+ background-color: var(--components-form-checkbox-standard-fill-selected);
440
+ }
441
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
442
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
443
+ stroke: var(--components-form-checkbox-standard-icon);
444
+ }
445
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
446
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
447
+ fill: var(--components-form-checkbox-standard-icon);
448
+ }
449
+ .eds-dropdown__list__item--highlighted {
450
+ background-color: var(--components-form-basemenu-fill-hover);
451
+ }
452
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
453
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
454
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
455
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
456
+ background-color: var(--components-form-checkbox-standard-fill-selected);
457
+ border-color: transparent;
458
+ }
459
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
460
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
461
+ border-color: var(--components-form-checkbox-standard-border);
462
+ }
463
+ .eds-dropdown__list__item--selected {
464
+ background-color: var(--components-form-basemenu-fill-hover);
465
+ }
466
+ @media all and (min-width: 50rem) {
467
+ .eds-dropdown__list {
468
+ max-height: 30vh;
469
+ }
470
+ }
471
+ /* DO NOT CHANGE!*/
472
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
473
473
  .eds-dropdown {
474
474
  cursor: pointer;
475
475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.9",
3
+ "version": "6.0.10",
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.93",
31
- "@entur/button": "^3.2.35",
32
- "@entur/chip": "^0.7.24",
33
- "@entur/form": "^8.1.6",
34
- "@entur/icons": "^7.4.3",
35
- "@entur/loader": "^0.5.13",
31
+ "@entur/button": "^3.2.36",
32
+ "@entur/chip": "^0.7.25",
33
+ "@entur/form": "^8.1.7",
34
+ "@entur/icons": "^7.5.0",
35
+ "@entur/loader": "^0.5.14",
36
36
  "@entur/tokens": "^3.17.3",
37
- "@entur/tooltip": "^5.1.2",
37
+ "@entur/tooltip": "^5.1.3",
38
38
  "@entur/utils": "^0.12.1",
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": "214480c52396a9b6f7133bdb21c81986e69c5ec4"
43
+ "gitHead": "7b67c7eded2ea9495ba4e21a9bef33c1a82d4a43"
44
44
  }