@entur/dropdown 5.0.4 → 5.0.6

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 +165 -164
  2. package/package.json +9 -9
package/dist/styles.css CHANGED
@@ -21,6 +21,7 @@
21
21
  white-space: nowrap;
22
22
  }
23
23
  .eds-dropdown__selected-item__wrapper {
24
+ position: absolute;
24
25
  max-width: 65%;
25
26
  }
26
27
  .eds-dropdown__selected-items-and-input {
@@ -158,6 +159,161 @@
158
159
  }
159
160
  /* DO NOT CHANGE!*/
160
161
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
162
+ .eds-multi-select {
163
+ position: relative;
164
+ }
165
+ .eds-multi-select__selected-items {
166
+ display: flex;
167
+ align-items: center;
168
+ flex-wrap: wrap;
169
+ position: relative;
170
+ flex: 1 1 0%;
171
+ padding: 0.25rem;
172
+ }
173
+ .eds-multi-select__selected-items-tag.eds-tag-chip {
174
+ margin-left: 0.25rem;
175
+ white-space: nowrap;
176
+ }
177
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
178
+ color: #181c56;
179
+ }
180
+ .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
181
+ outline-offset: 0.125rem;
182
+ }
183
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
184
+ color: #181c56;
185
+ background: #ebebf1;
186
+ border: 0.0625rem solid #d1d4e3;
187
+ }
188
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
189
+ background: #babbcf;
190
+ }
191
+ .eds-multi-select__input {
192
+ flex: 1 1;
193
+ min-height: 44px;
194
+ display: flex;
195
+ align-items: center;
196
+ }
197
+ .eds-multi-select__placeholder {
198
+ padding-left: 1.5rem;
199
+ line-height: 1.375rem;
200
+ font-size: 1rem;
201
+ }
202
+ .eds-checkbox-icon {
203
+ height: 1rem;
204
+ width: 1rem;
205
+ visibility: hidden;
206
+ }
207
+ .eds-checkbox-icon__path {
208
+ transform-origin: 50% 50%;
209
+ stroke-dasharray: 48;
210
+ stroke-dashoffset: 48;
211
+ stroke-width: 0.375rem;
212
+ }
213
+
214
+ .eds-multiselect {
215
+ position: relative;
216
+ }
217
+ .eds-multiselect__button {
218
+ text-overflow: ellipsis;
219
+ }
220
+
221
+ .eds-multiselect-checkbox {
222
+ display: inline-flex;
223
+ justify-content: center;
224
+ align-items: center;
225
+ position: relative;
226
+ margin-right: 0.75rem;
227
+ height: 1.25rem;
228
+ width: 1.25rem;
229
+ border: 0.125rem solid #181c56;
230
+ border-radius: 0.0625rem;
231
+ background-color: transparent;
232
+ color: #ffffff;
233
+ }
234
+
235
+ .eds-multiselect-checkbox--checked {
236
+ background-color: #181c56;
237
+ }
238
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon {
239
+ visibility: visible;
240
+ }
241
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
242
+ stroke: #ffffff;
243
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
244
+ }
245
+
246
+ @keyframes stroke {
247
+ 100% {
248
+ stroke-dashoffset: 0;
249
+ }
250
+ }
251
+ /* DO NOT CHANGE!*/
252
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
253
+ .eds-dropdown-list {
254
+ border-radius: 0.25rem;
255
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
256
+ display: none;
257
+ list-style: none;
258
+ margin: 0;
259
+ max-height: 50vh;
260
+ padding: 0;
261
+ position: relative;
262
+ overflow-y: auto;
263
+ width: 100%;
264
+ z-index: 20;
265
+ }
266
+ .eds-contrast .eds-dropdown-list {
267
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
268
+ }
269
+ .eds-dropdown-list--open {
270
+ display: inline-block;
271
+ }
272
+ .eds-dropdown-list:focus {
273
+ outline: none;
274
+ }
275
+ @media all and (min-width: 50rem) {
276
+ .eds-dropdown-list {
277
+ max-height: 30vh;
278
+ }
279
+ }
280
+ .eds-dropdown-list__item {
281
+ align-items: center;
282
+ background-color: #f8f8f8;
283
+ border-bottom: 0.125rem solid #e9e9e9;
284
+ border-left: 0.125rem solid #e9e9e9;
285
+ border-right: 0.125rem solid #e9e9e9;
286
+ color: #181c56;
287
+ display: flex;
288
+ justify-content: space-between;
289
+ font-family: inherit;
290
+ font-size: 1rem;
291
+ line-height: 1.25rem;
292
+ padding: 0.75rem 1rem;
293
+ width: 100%;
294
+ }
295
+ .eds-dropdown-list__item:first-child {
296
+ border-top: 0.125rem solid #e9e9e9;
297
+ }
298
+ .eds-dropdown-list__item:last-child {
299
+ border-bottom: none;
300
+ }
301
+ .eds-contrast .eds-dropdown-list__item {
302
+ color: #181c56;
303
+ border-color: #54568c;
304
+ background-color: #ffffff;
305
+ }
306
+ .eds-dropdown-list__item--highlighted {
307
+ background-color: #d1d4e3;
308
+ }
309
+ .eds-contrast .eds-dropdown-list__item--highlighted {
310
+ background-color: #d1d4e3;
311
+ }
312
+ .eds-dropdown-list-icon {
313
+ margin-left: 0.75rem;
314
+ }
315
+ /* DO NOT CHANGE!*/
316
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
161
317
  .eds-dropdown__list {
162
318
  position: absolute;
163
319
  list-style: none;
@@ -288,170 +444,6 @@
288
444
  }
289
445
  /* DO NOT CHANGE!*/
290
446
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
291
- .eds-dropdown-list {
292
- border-radius: 0.25rem;
293
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
294
- display: none;
295
- list-style: none;
296
- margin: 0;
297
- max-height: 50vh;
298
- padding: 0;
299
- position: relative;
300
- overflow-y: auto;
301
- width: 100%;
302
- z-index: 20;
303
- }
304
- .eds-contrast .eds-dropdown-list {
305
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
306
- }
307
- .eds-dropdown-list--open {
308
- display: inline-block;
309
- }
310
- .eds-dropdown-list:focus {
311
- outline: none;
312
- }
313
- @media all and (min-width: 50rem) {
314
- .eds-dropdown-list {
315
- max-height: 30vh;
316
- }
317
- }
318
- .eds-dropdown-list__item {
319
- align-items: center;
320
- background-color: #f8f8f8;
321
- border-bottom: 0.125rem solid #e9e9e9;
322
- border-left: 0.125rem solid #e9e9e9;
323
- border-right: 0.125rem solid #e9e9e9;
324
- color: #181c56;
325
- display: flex;
326
- justify-content: space-between;
327
- font-family: inherit;
328
- font-size: 1rem;
329
- line-height: 1.25rem;
330
- padding: 0.75rem 1rem;
331
- width: 100%;
332
- }
333
- .eds-dropdown-list__item:first-child {
334
- border-top: 0.125rem solid #e9e9e9;
335
- }
336
- .eds-dropdown-list__item:last-child {
337
- border-bottom: none;
338
- }
339
- .eds-contrast .eds-dropdown-list__item {
340
- color: #181c56;
341
- border-color: #54568c;
342
- background-color: #ffffff;
343
- }
344
- .eds-dropdown-list__item--highlighted {
345
- background-color: #d1d4e3;
346
- }
347
- .eds-contrast .eds-dropdown-list__item--highlighted {
348
- background-color: #d1d4e3;
349
- }
350
- .eds-dropdown-list-icon {
351
- margin-left: 0.75rem;
352
- }
353
- /* DO NOT CHANGE!*/
354
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
355
- .eds-multi-select {
356
- position: relative;
357
- }
358
- .eds-multi-select__selected-items {
359
- display: flex;
360
- align-items: center;
361
- flex-wrap: wrap;
362
- position: relative;
363
- flex: 1 1 0%;
364
- padding: 0.25rem;
365
- }
366
- .eds-multi-select__selected-items-tag.eds-tag-chip {
367
- margin-left: 0.25rem;
368
- white-space: nowrap;
369
- }
370
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
371
- color: #181c56;
372
- }
373
- .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
374
- outline-offset: 0.125rem;
375
- }
376
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
377
- color: #181c56;
378
- background: #ebebf1;
379
- border: 0.0625rem solid #d1d4e3;
380
- }
381
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
382
- background: #babbcf;
383
- }
384
- .eds-multi-select__input {
385
- flex: 1 1;
386
- min-height: 44px;
387
- display: flex;
388
- align-items: center;
389
- }
390
- .eds-multi-select__placeholder {
391
- padding-left: 1.5rem;
392
- line-height: 1.375rem;
393
- font-size: 1rem;
394
- }
395
- .eds-checkbox-icon {
396
- height: 1rem;
397
- width: 1rem;
398
- visibility: hidden;
399
- }
400
- .eds-checkbox-icon__path {
401
- transform-origin: 50% 50%;
402
- stroke-dasharray: 48;
403
- stroke-dashoffset: 48;
404
- stroke-width: 0.375rem;
405
- }
406
-
407
- .eds-multiselect {
408
- position: relative;
409
- }
410
- .eds-multiselect__button {
411
- text-overflow: ellipsis;
412
- }
413
-
414
- .eds-multiselect-checkbox {
415
- display: inline-flex;
416
- justify-content: center;
417
- align-items: center;
418
- position: relative;
419
- margin-right: 0.75rem;
420
- height: 1.25rem;
421
- width: 1.25rem;
422
- border: 0.125rem solid #181c56;
423
- border-radius: 0.0625rem;
424
- background-color: transparent;
425
- color: #ffffff;
426
- }
427
-
428
- .eds-multiselect-checkbox--checked {
429
- background-color: #181c56;
430
- }
431
- .eds-multiselect-checkbox--checked .eds-checkbox-icon {
432
- visibility: visible;
433
- }
434
- .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
435
- stroke: #ffffff;
436
- animation: stroke ease-in-out 0.2s 0.1s forwards;
437
- }
438
-
439
- @keyframes stroke {
440
- 100% {
441
- stroke-dashoffset: 0;
442
- }
443
- }
444
- /* DO NOT CHANGE!*/
445
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
446
- .eds-inline-spinner {
447
- align-items: center;
448
- display: flex;
449
- justify-content: center;
450
- height: 100%;
451
- width: 100%;
452
- }
453
- /* DO NOT CHANGE!*/
454
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
455
447
  .eds-dropdown__searchable-selected-item {
456
448
  display: block;
457
449
  font-size: 1rem;
@@ -477,6 +469,15 @@
477
469
  }
478
470
  /* DO NOT CHANGE!*/
479
471
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
472
+ .eds-inline-spinner {
473
+ align-items: center;
474
+ display: flex;
475
+ justify-content: center;
476
+ height: 100%;
477
+ width: 100%;
478
+ }
479
+ /* DO NOT CHANGE!*/
480
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
480
481
  .eds-dropdown-wrapper {
481
482
  position: relative;
482
483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
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.68",
31
- "@entur/button": "^3.1.0",
32
- "@entur/chip": "^0.6.43",
33
- "@entur/form": "^7.0.15",
30
+ "@entur/a11y": "^0.2.69",
31
+ "@entur/button": "^3.1.1",
32
+ "@entur/chip": "^0.6.44",
33
+ "@entur/form": "^7.0.16",
34
34
  "@entur/icons": "^6.4.2",
35
- "@entur/loader": "^0.4.37",
35
+ "@entur/loader": "^0.4.38",
36
36
  "@entur/tokens": "^3.10.0",
37
- "@entur/tooltip": "^2.6.25",
38
- "@entur/utils": "^0.9.3",
37
+ "@entur/tooltip": "^2.6.26",
38
+ "@entur/utils": "^0.9.4",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "153d4a9245c7f61bc718a77b11ff351e2f94a33a"
42
+ "gitHead": "08553e3b31657c9282752b300476a39b4d75b6c5"
43
43
  }