@entur/dropdown 6.0.9-beta.0 → 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 +194 -194
  2. package/package.json +12 -12
package/dist/styles.css CHANGED
@@ -1,10 +1,67 @@
1
- .eds-inline-spinner {
1
+ /* DO NOT CHANGE!*/
2
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ .eds-dropdown-list {
4
+ border-radius: 0.25rem;
5
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
6
+ display: none;
7
+ list-style: none;
8
+ margin: 0;
9
+ max-height: 50vh;
10
+ padding: 0;
11
+ position: relative;
12
+ overflow-y: auto;
13
+ width: 100%;
14
+ z-index: 20;
15
+ }
16
+ .eds-contrast .eds-dropdown-list {
17
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
18
+ }
19
+ .eds-dropdown-list--open {
20
+ display: inline-block;
21
+ }
22
+ .eds-dropdown-list:focus {
23
+ outline: none;
24
+ }
25
+ @media all and (min-width: 50rem) {
26
+ .eds-dropdown-list {
27
+ max-height: 30vh;
28
+ }
29
+ }
30
+ .eds-dropdown-list__item {
2
31
  align-items: center;
32
+ background-color: #f8f8f8;
33
+ border-bottom: 0.125rem solid #e9e9e9;
34
+ border-left: 0.125rem solid #e9e9e9;
35
+ border-right: 0.125rem solid #e9e9e9;
36
+ color: #181c56;
3
37
  display: flex;
4
- justify-content: center;
5
- height: 100%;
38
+ justify-content: space-between;
39
+ font-family: inherit;
40
+ font-size: 1rem;
41
+ line-height: 1.25rem;
42
+ padding: 0.75rem 1rem;
6
43
  width: 100%;
7
44
  }
45
+ .eds-dropdown-list__item:first-child {
46
+ border-top: 0.125rem solid #e9e9e9;
47
+ }
48
+ .eds-dropdown-list__item:last-child {
49
+ border-bottom: none;
50
+ }
51
+ .eds-contrast .eds-dropdown-list__item {
52
+ color: #181c56;
53
+ border-color: #54568c;
54
+ background-color: #ffffff;
55
+ }
56
+ .eds-dropdown-list__item--highlighted {
57
+ background-color: #d1d4e3;
58
+ }
59
+ .eds-contrast .eds-dropdown-list__item--highlighted {
60
+ background-color: #d1d4e3;
61
+ }
62
+ .eds-dropdown-list-icon {
63
+ margin-left: 0.75rem;
64
+ }
8
65
  /* DO NOT CHANGE!*/
9
66
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
67
  .eds-dropdown__searchable-selected-item {
@@ -30,6 +87,13 @@
30
87
  .eds-form-control.eds-dropdown__input::placeholder {
31
88
  transition: none;
32
89
  }
90
+ .eds-inline-spinner {
91
+ align-items: center;
92
+ display: flex;
93
+ justify-content: center;
94
+ height: 100%;
95
+ width: 100%;
96
+ }
33
97
  /* DO NOT CHANGE!*/
34
98
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
35
99
  .eds-dropdown__toggle-button {
@@ -60,67 +124,61 @@
60
124
  }
61
125
  /* DO NOT CHANGE!*/
62
126
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
63
- .eds-dropdown-list {
64
- border-radius: 0.25rem;
65
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
66
- display: none;
67
- list-style: none;
68
- margin: 0;
69
- max-height: 50vh;
70
- padding: 0;
127
+ .eds-dropdown-wrapper {
71
128
  position: relative;
72
- overflow-y: auto;
73
- width: 100%;
74
- z-index: 20;
75
129
  }
76
- .eds-contrast .eds-dropdown-list {
77
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
130
+ .eds-dropdown-wrapper .eds-form-control {
131
+ padding-right: 0;
78
132
  }
79
- .eds-dropdown-list--open {
80
- display: inline-block;
133
+ .eds-dropdown-wrapper .eds-form-control__append {
134
+ display: flex;
135
+ align-items: center;
81
136
  }
82
- .eds-dropdown-list:focus {
83
- outline: none;
137
+
138
+ .eds-dropdown__input::-moz-placeholder {
139
+ color: var(--components-form-baseform-standard-text-label);
84
140
  }
85
- @media all and (min-width: 50rem) {
86
- .eds-dropdown-list {
87
- max-height: 30vh;
88
- }
141
+
142
+ .eds-dropdown__input::placeholder {
143
+ color: var(--components-form-baseform-standard-text-label);
89
144
  }
90
- .eds-dropdown-list__item {
91
- align-items: center;
92
- background-color: #f8f8f8;
93
- border-bottom: 0.125rem solid #e9e9e9;
94
- border-left: 0.125rem solid #e9e9e9;
95
- border-right: 0.125rem solid #e9e9e9;
96
- color: #181c56;
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;
97
158
  display: flex;
98
- justify-content: space-between;
99
- font-family: inherit;
159
+ font: inherit;
100
160
  font-size: 1rem;
101
- line-height: 1.25rem;
102
- padding: 0.75rem 1rem;
103
- width: 100%;
104
- }
105
- .eds-dropdown-list__item:first-child {
106
- border-top: 0.125rem solid #e9e9e9;
107
- }
108
- .eds-dropdown-list__item:last-child {
109
- border-bottom: none;
161
+ line-height: 1rem;
162
+ padding: 0.5rem;
110
163
  }
111
- .eds-contrast .eds-dropdown-list__item {
112
- color: #181c56;
113
- border-color: #54568c;
114
- background-color: #ffffff;
164
+ .eds-dropdown__clear-button:hover {
165
+ background: #f3f3f3;
115
166
  }
116
- .eds-dropdown-list__item--highlighted {
117
- background-color: #d1d4e3;
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;
118
171
  }
119
- .eds-contrast .eds-dropdown-list__item--highlighted {
120
- background-color: #d1d4e3;
172
+
173
+ .eds-dropdown__divider {
174
+ content: "";
175
+ display: block;
176
+ background-color: #e9e9e9;
177
+ height: 1.5rem;
178
+ width: 1px;
121
179
  }
122
- .eds-dropdown-list-icon {
123
- margin-left: 0.75rem;
180
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
181
+ background-color: #8285a8;
124
182
  }
125
183
  /* DO NOT CHANGE!*/
126
184
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -215,148 +273,6 @@
215
273
  }
216
274
  /* DO NOT CHANGE!*/
217
275
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
218
- .eds-dropdown-wrapper {
219
- position: relative;
220
- }
221
- .eds-dropdown-wrapper .eds-form-control {
222
- padding-right: 0;
223
- }
224
- .eds-dropdown-wrapper .eds-form-control__append {
225
- display: flex;
226
- align-items: center;
227
- }
228
-
229
- .eds-dropdown__input::-moz-placeholder {
230
- color: var(--components-form-baseform-standard-text-label);
231
- }
232
-
233
- .eds-dropdown__input::placeholder {
234
- color: var(--components-form-baseform-standard-text-label);
235
- }
236
-
237
- .eds-dropdown__selected-item {
238
- overflow-x: hidden;
239
- text-overflow: ellipsis;
240
- white-space: nowrap;
241
- }
242
-
243
- .eds-dropdown__clear-button {
244
- background: none;
245
- border: none;
246
- border-radius: 50%;
247
- color: inherit;
248
- cursor: pointer;
249
- display: flex;
250
- font: inherit;
251
- font-size: 1rem;
252
- line-height: 1rem;
253
- padding: 0.5rem;
254
- }
255
- .eds-dropdown__clear-button:hover {
256
- background: #f3f3f3;
257
- }
258
- .eds-dropdown__clear-button:focus {
259
- outline-offset: 0.125rem;
260
- outline: none;
261
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
262
- }
263
-
264
- .eds-dropdown__divider {
265
- content: "";
266
- display: block;
267
- background-color: #e9e9e9;
268
- height: 1.5rem;
269
- width: 1px;
270
- }
271
- .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
272
- background-color: #8285a8;
273
- }
274
- /* DO NOT CHANGE!*/
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-beta.0",
3
+ "version": "6.0.10",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://bitbucket.org/enturas/design-system.git",
13
+ "url": "https://github.com/entur/design-system.git",
14
14
  "directory": "packages/dropdown"
15
15
  },
16
16
  "publishConfig": {
@@ -27,18 +27,18 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
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
- "@entur/utils": "^0.12.0",
30
+ "@entur/a11y": "^0.2.93",
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
+ "@entur/tokens": "^3.17.3",
37
+ "@entur/tooltip": "^5.1.3",
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": "cf21b6b037b7905d14ff6ec5972c06bcd0326e26"
43
+ "gitHead": "7b67c7eded2ea9495ba4e21a9bef33c1a82d4a43"
44
44
  }