@entur/dropdown 6.0.8-beta.0 → 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 +160 -160
  2. package/package.json +10 -10
package/dist/styles.css CHANGED
@@ -1,96 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-multi-select {
4
- position: relative;
5
- }
6
- .eds-multi-select__selected-items {
7
- display: flex;
8
- align-items: center;
9
- flex-wrap: wrap;
10
- position: relative;
11
- flex: 1 1 0%;
12
- padding: 0.25rem;
13
- }
14
- .eds-multi-select__selected-items-tag.eds-tag-chip {
15
- margin-left: 0.25rem;
16
- white-space: nowrap;
17
- }
18
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
19
- color: #181c56;
20
- }
21
- .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
22
- outline-offset: 0.125rem;
23
- }
24
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
25
- color: #181c56;
26
- background: #ebebf1;
27
- border: 0.0625rem solid #d1d4e3;
28
- }
29
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
30
- background: #babbcf;
31
- }
32
- .eds-multi-select__input {
33
- flex: 1 1;
34
- min-height: 44px;
35
- display: flex;
36
- align-items: center;
37
- }
38
- .eds-multi-select__placeholder {
39
- padding-left: 1.5rem;
40
- line-height: 1.375rem;
41
- font-size: 1rem;
42
- }
43
- .eds-checkbox-icon {
44
- height: 1rem;
45
- width: 1rem;
46
- visibility: hidden;
47
- }
48
- .eds-checkbox-icon__path {
49
- transform-origin: 50% 50%;
50
- stroke-dasharray: 48;
51
- stroke-dashoffset: 48;
52
- stroke-width: 0.375rem;
53
- }
54
-
55
- .eds-multiselect {
56
- position: relative;
57
- }
58
- .eds-multiselect__button {
59
- text-overflow: ellipsis;
60
- }
61
-
62
- .eds-multiselect-checkbox {
63
- display: inline-flex;
64
- justify-content: center;
65
- align-items: center;
66
- position: relative;
67
- margin-right: 0.75rem;
68
- height: 1.25rem;
69
- width: 1.25rem;
70
- border: 0.125rem solid #181c56;
71
- border-radius: 0.0625rem;
72
- background-color: transparent;
73
- color: #ffffff;
74
- }
75
-
76
- .eds-multiselect-checkbox--checked {
77
- background-color: #181c56;
78
- }
79
- .eds-multiselect-checkbox--checked .eds-checkbox-icon {
80
- visibility: visible;
81
- }
82
- .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
83
- stroke: #ffffff;
84
- animation: stroke ease-in-out 0.2s 0.1s forwards;
85
- }
86
-
87
- @keyframes stroke {
88
- 100% {
89
- stroke-dashoffset: 0;
90
- }
91
- }
92
- /* DO NOT CHANGE!*/
93
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
94
3
  .eds-dropdown-list {
95
4
  border-radius: 0.25rem;
96
5
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
@@ -178,13 +87,6 @@
178
87
  .eds-form-control.eds-dropdown__input::placeholder {
179
88
  transition: none;
180
89
  }
181
- .eds-inline-spinner {
182
- align-items: center;
183
- display: flex;
184
- justify-content: center;
185
- height: 100%;
186
- width: 100%;
187
- }
188
90
  /* DO NOT CHANGE!*/
189
91
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
190
92
  .eds-dropdown-wrapper {
@@ -243,6 +145,13 @@
243
145
  .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
244
146
  background-color: #8285a8;
245
147
  }
148
+ .eds-inline-spinner {
149
+ align-items: center;
150
+ display: flex;
151
+ justify-content: center;
152
+ height: 100%;
153
+ width: 100%;
154
+ }
246
155
  /* DO NOT CHANGE!*/
247
156
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
248
157
  .eds-dropdown__toggle-button {
@@ -273,84 +182,93 @@
273
182
  }
274
183
  /* DO NOT CHANGE!*/
275
184
  /* 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;
185
+ .eds-multi-select {
186
+ position: relative;
292
187
  }
293
- .eds-dropdown__list__item {
188
+ .eds-multi-select__selected-items {
294
189
  display: flex;
295
190
  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);
191
+ flex-wrap: wrap;
192
+ position: relative;
193
+ flex: 1 1 0%;
194
+ padding: 0.25rem;
305
195
  }
306
- .eds-dropdown__list__item:last-child {
307
- border-bottom: none;
196
+ .eds-multi-select__selected-items-tag.eds-tag-chip {
197
+ margin-left: 0.25rem;
198
+ white-space: nowrap;
308
199
  }
309
- .eds-dropdown__list__item__text {
310
- flex: 1;
311
- cursor: default;
200
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
201
+ color: #181c56;
312
202
  }
313
- .eds-dropdown__list__item__icon {
314
- margin-left: 0.75rem;
203
+ .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
204
+ outline-offset: 0.125rem;
315
205
  }
316
- .eds-dropdown__list__item__checkbox {
317
- pointer-events: none;
206
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
207
+ color: #181c56;
208
+ background: #ebebf1;
209
+ border: 0.0625rem solid #d1d4e3;
318
210
  }
319
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
320
- border-color: var(--components-form-checkbox-standard-border);
211
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
212
+ background: #babbcf;
321
213
  }
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);
214
+ .eds-multi-select__input {
215
+ flex: 1 1;
216
+ min-height: 44px;
217
+ display: flex;
218
+ align-items: center;
325
219
  }
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);
220
+ .eds-multi-select__placeholder {
221
+ padding-left: 1.5rem;
222
+ line-height: 1.375rem;
223
+ font-size: 1rem;
329
224
  }
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);
225
+ .eds-checkbox-icon {
226
+ height: 1rem;
227
+ width: 1rem;
228
+ visibility: hidden;
333
229
  }
334
- .eds-dropdown__list__item--highlighted {
335
- background-color: var(--components-form-basemenu-fill-hover);
230
+ .eds-checkbox-icon__path {
231
+ transform-origin: 50% 50%;
232
+ stroke-dasharray: 48;
233
+ stroke-dashoffset: 48;
234
+ stroke-width: 0.375rem;
336
235
  }
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;
236
+
237
+ .eds-multiselect {
238
+ position: relative;
343
239
  }
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);
240
+ .eds-multiselect__button {
241
+ text-overflow: ellipsis;
347
242
  }
348
- .eds-dropdown__list__item--selected {
349
- background-color: var(--components-form-basemenu-fill-hover);
243
+
244
+ .eds-multiselect-checkbox {
245
+ display: inline-flex;
246
+ justify-content: center;
247
+ align-items: center;
248
+ position: relative;
249
+ margin-right: 0.75rem;
250
+ height: 1.25rem;
251
+ width: 1.25rem;
252
+ border: 0.125rem solid #181c56;
253
+ border-radius: 0.0625rem;
254
+ background-color: transparent;
255
+ color: #ffffff;
350
256
  }
351
- @media all and (min-width: 50rem) {
352
- .eds-dropdown__list {
353
- max-height: 30vh;
257
+
258
+ .eds-multiselect-checkbox--checked {
259
+ background-color: #181c56;
260
+ }
261
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon {
262
+ visibility: visible;
263
+ }
264
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
265
+ stroke: #ffffff;
266
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
267
+ }
268
+
269
+ @keyframes stroke {
270
+ 100% {
271
+ stroke-dashoffset: 0;
354
272
  }
355
273
  }
356
274
  /* DO NOT CHANGE!*/
@@ -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.8-beta.0",
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.92-beta.0",
31
- "@entur/button": "^3.2.34-beta.0",
32
- "@entur/chip": "^0.7.23-beta.0",
33
- "@entur/form": "^8.1.5-beta.0",
34
- "@entur/icons": "^7.4.2-beta.0",
35
- "@entur/loader": "^0.5.12-beta.0",
36
- "@entur/tokens": "^3.17.2-beta.0",
37
- "@entur/tooltip": "^5.1.1-beta.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": "f6ea45ed1980eeed83c71cbb049cf726815dbb3d"
43
+ "gitHead": "36055df834c5a9dd170f1846c1e0469481575e1a"
44
44
  }