@entur/dropdown 5.0.0-RC.0 → 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,139 +169,6 @@
178
169
  }
179
170
  /* DO NOT CHANGE!*/
180
171
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
181
- .eds-dropdown__selected-item-tag {
182
- height: 1.5rem;
183
- max-width: 40%;
184
- padding: 0;
185
- }
186
- .eds-dropdown__selected-item-tag > span {
187
- overflow: hidden;
188
- text-overflow: ellipsis;
189
- white-space: nowrap;
190
- margin-left: 0.5rem;
191
- }
192
- .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
193
- margin-right: 0.125rem;
194
- }
195
- .eds-dropdown__selected-item-tag .eds-tag-chip__close-button > svg {
196
- font-size: 0.6rem;
197
- }
198
- .eds-contrast .eds-dropdown__selected-item-tag {
199
- background: #ebebf1;
200
- border: 0.0625rem solid #d1d4e3;
201
- color: #181c56;
202
- }
203
- .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button {
204
- color: #181c56;
205
- }
206
- .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
207
- background-color: #babbcf;
208
- }
209
- .eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
210
- padding-right: 0.5rem;
211
- }
212
- .eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button {
213
- display: none;
214
- }
215
- .eds-contrast .eds-dropdown__selected-item-tag--readonly {
216
- background-color: #8285a8;
217
- border-color: transparent;
218
- color: #ffffff;
219
- }
220
- .eds-contrast .eds-dropdown__selected-item-tag--disabled {
221
- background-color: #54568c;
222
- border-color: transparent;
223
- color: #8285a8;
224
- }
225
- /* DO NOT CHANGE!*/
226
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
227
- .eds-dropdown__list {
228
- position: absolute;
229
- display: none;
230
- list-style: none;
231
- border-radius: 0.25rem;
232
- border: 0.125rem solid #7C7F9F;
233
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
234
- padding: 0;
235
- margin: 0;
236
- margin-top: 0.5rem;
237
- max-height: 50vh;
238
- overflow-y: auto;
239
- width: 100%;
240
- z-index: 20;
241
- }
242
- .eds-dropdown__list:focus {
243
- outline: none;
244
- }
245
- .eds-dropdown__list--open {
246
- display: inline-block;
247
- }
248
- .eds-dropdown__list__item {
249
- background-color: #f8f8f8;
250
- color: #181c56;
251
- display: flex;
252
- align-items: center;
253
- justify-content: flex-start;
254
- font-family: inherit;
255
- font-size: 1rem;
256
- line-height: 1.25rem;
257
- padding: 0.75rem 1rem;
258
- width: 100%;
259
- overflow-x: hidden;
260
- word-break: break-word;
261
- }
262
- .eds-dropdown__list__item:last-child {
263
- border-bottom: none;
264
- }
265
- .eds-dropdown__list__item__text {
266
- flex: 1;
267
- }
268
- .eds-dropdown__list__item__icon {
269
- margin-left: 0.75rem;
270
- }
271
- .eds-dropdown__list__item__checkbox {
272
- pointer-events: none;
273
- }
274
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
275
- border-color: #181c56;
276
- }
277
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
278
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
279
- background-color: #181c56;
280
- }
281
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
282
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
283
- stroke: #ffffff;
284
- }
285
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
286
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
287
- fill: #ffffff;
288
- }
289
- .eds-dropdown__list__item--highlighted {
290
- background-color: #d1d4e3;
291
- }
292
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
293
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
294
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
295
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
296
- background-color: #54568c;
297
- border-color: transparent;
298
- }
299
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
300
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
301
- border-color: #54568c;
302
- }
303
- .eds-dropdown__list__item--selected {
304
- background-color: #54568c;
305
- color: #ffffff;
306
- }
307
- @media all and (min-width: 50rem) {
308
- .eds-dropdown__list {
309
- max-height: 30vh;
310
- }
311
- }
312
- /* DO NOT CHANGE!*/
313
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
314
172
  .eds-dropdown-list {
315
173
  border-radius: 0.25rem;
316
174
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
@@ -466,6 +324,149 @@
466
324
  }
467
325
  /* DO NOT CHANGE!*/
468
326
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
327
+ .eds-dropdown__list {
328
+ position: absolute;
329
+ display: none;
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;
335
+ margin: 0;
336
+ margin-top: 0.5rem;
337
+ max-height: 50vh;
338
+ overflow-y: auto;
339
+ width: 100%;
340
+ z-index: 20;
341
+ }
342
+ .eds-dropdown__list:focus {
343
+ outline: none;
344
+ }
345
+ .eds-dropdown__list--open {
346
+ display: inline-block;
347
+ }
348
+ .eds-dropdown__list__item {
349
+ background-color: #f8f8f8;
350
+ color: #181c56;
351
+ display: flex;
352
+ align-items: center;
353
+ justify-content: flex-start;
354
+ font-family: inherit;
355
+ font-size: 1rem;
356
+ line-height: 1.25rem;
357
+ padding: 0.75rem 1rem;
358
+ width: 100%;
359
+ overflow-x: hidden;
360
+ word-break: break-word;
361
+ }
362
+ .eds-dropdown__list__item:last-child {
363
+ border-bottom: none;
364
+ }
365
+ .eds-dropdown__list__item__text {
366
+ flex: 1;
367
+ cursor: default;
368
+ }
369
+ .eds-dropdown__list__item__icon {
370
+ margin-left: 0.75rem;
371
+ }
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 {
391
+ background-color: #d1d4e3;
392
+ }
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%;
467
+ }
468
+ /* DO NOT CHANGE!*/
469
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
469
470
  .eds-dropdown__searchable-selected-item {
470
471
  display: block;
471
472
  font-size: 1rem;
@@ -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.0",
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": "aac30cc9c47141b17a95865267b2d75b6b8566f5"
42
+ "gitHead": "cb86cb978e61b4c299e107fed33c389e87f57b30"
43
43
  }