@entur/dropdown 3.0.14 → 4.0.0-beta.0

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
@@ -2,69 +2,17 @@
2
2
  --eds-dropdown: 1;
3
3
  }/* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
- .eds-dropdown-list {
6
- border-radius: 0.25rem;
7
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
8
- display: none;
9
- list-style: none;
10
- margin: 0;
11
- max-height: 50vh;
12
- padding: 0;
13
- position: relative;
14
- overflow-y: auto;
15
- width: 100%;
16
- z-index: 20;
17
- }
18
- .eds-contrast .eds-dropdown-list {
19
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
20
- }
21
- .eds-dropdown-list--open {
22
- display: inline-block;
23
- }
24
- .eds-dropdown-list:focus {
25
- outline: none;
26
- }
27
- @media all and (min-width: 50rem) {
28
- .eds-dropdown-list {
29
- max-height: 30vh;
30
- }
5
+ .eds-dropdown + .eds-form-control__append {
6
+ margin-left: -2em;
7
+ pointer-events: none;
31
8
  }
32
9
 
33
- .eds-dropdown-list__item {
34
- align-items: center;
35
- background-color: #f8f8f8;
36
- border-bottom: 0.125rem solid #e9e9e9;
37
- border-left: 0.125rem solid #e9e9e9;
38
- border-right: 0.125rem solid #e9e9e9;
39
- color: #181c56;
40
- display: flex;
41
- justify-content: space-between;
42
- font-family: inherit;
43
- font-size: 1rem;
44
- line-height: 1.25rem;
45
- padding: 0.75rem 1rem;
46
- width: 100%;
47
- }
48
- .eds-dropdown-list__item:first-child {
49
- border-top: 0.125rem solid #e9e9e9;
50
- }
51
- .eds-dropdown-list__item:last-child {
52
- border-bottom: none;
53
- }
54
- .eds-contrast .eds-dropdown-list__item {
10
+ .eds-dropdown option {
55
11
  color: #181c56;
56
- border-color: #54568c;
57
12
  background-color: #ffffff;
58
13
  }
59
- .eds-dropdown-list__item--highlighted {
60
- background-color: #d1d4e3;
61
- }
62
- .eds-contrast .eds-dropdown-list__item--highlighted {
63
- background-color: #d1d4e3;
64
- }
65
-
66
- .eds-dropdown-list__item-icon {
67
- margin-left: 0.75rem;
14
+ .eds-contrast .eds-dropdown option {
15
+ color: #181c56;
68
16
  }/* DO NOT CHANGE!*/
69
17
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
70
18
  .eds-multi-select {
@@ -164,17 +112,77 @@
164
112
  }
165
113
  }/* DO NOT CHANGE!*/
166
114
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
167
- .eds-dropdown + .eds-form-control__append {
168
- margin-left: -2em;
169
- pointer-events: none;
115
+ .eds-dropdown-list {
116
+ border-radius: 0.25rem;
117
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
118
+ display: none;
119
+ list-style: none;
120
+ margin: 0;
121
+ max-height: 50vh;
122
+ padding: 0;
123
+ position: relative;
124
+ overflow-y: auto;
125
+ width: 100%;
126
+ z-index: 20;
127
+ }
128
+ .eds-contrast .eds-dropdown-list {
129
+ box-shadow: 0 0.0625rem 0.1875rem #393d79;
130
+ }
131
+ .eds-dropdown-list--open {
132
+ display: inline-block;
133
+ }
134
+ .eds-dropdown-list:focus {
135
+ outline: none;
136
+ }
137
+ @media all and (min-width: 50rem) {
138
+ .eds-dropdown-list {
139
+ max-height: 30vh;
140
+ }
170
141
  }
171
142
 
172
- .eds-dropdown option {
143
+ .eds-dropdown-list__item {
144
+ align-items: center;
145
+ background-color: #f8f8f8;
146
+ border-bottom: 0.125rem solid #e9e9e9;
147
+ border-left: 0.125rem solid #e9e9e9;
148
+ border-right: 0.125rem solid #e9e9e9;
173
149
  color: #181c56;
174
- background-color: #ffffff;
150
+ display: flex;
151
+ justify-content: space-between;
152
+ font-family: inherit;
153
+ font-size: 1rem;
154
+ line-height: 1.25rem;
155
+ padding: 0.75rem 1rem;
156
+ width: 100%;
175
157
  }
176
- .eds-contrast .eds-dropdown option {
158
+ .eds-dropdown-list__item:first-child {
159
+ border-top: 0.125rem solid #e9e9e9;
160
+ }
161
+ .eds-dropdown-list__item:last-child {
162
+ border-bottom: none;
163
+ }
164
+ .eds-contrast .eds-dropdown-list__item {
177
165
  color: #181c56;
166
+ border-color: #54568c;
167
+ background-color: #ffffff;
168
+ }
169
+ .eds-dropdown-list__item--highlighted {
170
+ background-color: #d1d4e3;
171
+ }
172
+ .eds-contrast .eds-dropdown-list__item--highlighted {
173
+ background-color: #d1d4e3;
174
+ }
175
+
176
+ .eds-dropdown-list__item-icon {
177
+ margin-left: 0.75rem;
178
+ }/* DO NOT CHANGE!*/
179
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
180
+ .eds-inline-spinner {
181
+ align-items: center;
182
+ display: flex;
183
+ justify-content: center;
184
+ height: 100%;
185
+ width: 100%;
178
186
  }/* DO NOT CHANGE!*/
179
187
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
180
188
  .eds-dropdown__searchable-selected-item {
@@ -206,14 +214,6 @@
206
214
  transition: none;
207
215
  }/* DO NOT CHANGE!*/
208
216
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
209
- .eds-inline-spinner {
210
- align-items: center;
211
- display: flex;
212
- justify-content: center;
213
- height: 100%;
214
- width: 100%;
215
- }/* DO NOT CHANGE!*/
216
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
217
217
  .eds-dropdown-wrapper {
218
218
  position: relative;
219
219
  }
@@ -275,6 +275,105 @@
275
275
  background-color: #8285a8;
276
276
  }/* DO NOT CHANGE!*/
277
277
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
278
+ .eds-searchable-dropdown__selected-item {
279
+ display: block;
280
+ font-size: 1rem;
281
+ line-height: 1rem;
282
+ margin-right: -1rem;
283
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
284
+ font-family: inherit;
285
+ overflow-x: hidden;
286
+ text-overflow: ellipsis;
287
+ white-space: nowrap;
288
+ }
289
+ .eds-searchable-dropdown__selected-item__wrapper {
290
+ max-width: 65%;
291
+ }
292
+
293
+ .eds-dropdown-list {
294
+ border-radius: 0.25rem;
295
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
296
+ display: none;
297
+ list-style: none;
298
+ margin: 0;
299
+ max-height: 50vh;
300
+ padding: 0;
301
+ position: relative;
302
+ overflow-y: auto;
303
+ width: 100%;
304
+ z-index: 20;
305
+ }
306
+ .eds-contrast .eds-dropdown-list {
307
+ box-shadow: 0 0.0625rem 0.1875rem #393d79;
308
+ }
309
+ .eds-dropdown-list--open {
310
+ display: inline-block;
311
+ }
312
+ .eds-dropdown-list:focus {
313
+ outline: none;
314
+ }
315
+ @media all and (min-width: 50rem) {
316
+ .eds-dropdown-list {
317
+ max-height: 30vh;
318
+ }
319
+ }
320
+
321
+ .eds-dropdown-list__item {
322
+ align-items: center;
323
+ background-color: #f8f8f8;
324
+ border-bottom: 0.125rem solid #e9e9e9;
325
+ border-left: 0.125rem solid #e9e9e9;
326
+ border-right: 0.125rem solid #e9e9e9;
327
+ color: #181c56;
328
+ display: flex;
329
+ justify-content: space-between;
330
+ font-family: inherit;
331
+ font-size: 1rem;
332
+ line-height: 1.25rem;
333
+ padding: 0.75rem 1rem;
334
+ width: 100%;
335
+ }
336
+ .eds-dropdown-list__item:first-child {
337
+ border-top: 0.125rem solid #e9e9e9;
338
+ }
339
+ .eds-dropdown-list__item:last-child {
340
+ border-bottom: none;
341
+ }
342
+ .eds-dropdown-list__item-icon {
343
+ margin-left: 0.75rem;
344
+ }
345
+ .eds-contrast .eds-dropdown-list__item {
346
+ color: #181c56;
347
+ border-color: #54568c;
348
+ background-color: #ffffff;
349
+ }
350
+ .eds-dropdown-list__item--highlighted {
351
+ background-color: #d1d4e3;
352
+ }
353
+ .eds-contrast .eds-dropdown-list__item--highlighted {
354
+ background-color: #d1d4e3;
355
+ }
356
+
357
+ .eds-form-control.eds-searchable-dropdown__input::-moz-placeholder {
358
+ -moz-transition: none;
359
+ transition: none;
360
+ position: relative;
361
+ bottom: 1px;
362
+ }
363
+
364
+ .eds-form-control.eds-searchable-dropdown__input:-ms-input-placeholder {
365
+ -ms-transition: none;
366
+ transition: none;
367
+ position: relative;
368
+ bottom: 1px;
369
+ }
370
+
371
+ .eds-form-control.eds-searchable-dropdown__input::placeholder {
372
+ transition: none;
373
+ position: relative;
374
+ bottom: 1px;
375
+ }/* DO NOT CHANGE!*/
376
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
278
377
  .eds-dropdown__toggle-button {
279
378
  -webkit-appearance: none;
280
379
  -moz-appearance: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "3.0.14",
3
+ "version": "4.0.0-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.48",
31
- "@entur/chip": "^0.6.6",
32
- "@entur/form": "^5.4.3",
30
+ "@entur/a11y": "^0.2.49",
31
+ "@entur/chip": "^0.6.7",
32
+ "@entur/form": "^5.4.4",
33
33
  "@entur/icons": "^4.3.3",
34
- "@entur/loader": "^0.4.11",
34
+ "@entur/loader": "^0.4.12",
35
35
  "@entur/tokens": "^3.4.1",
36
- "@entur/tooltip": "^2.5.15",
36
+ "@entur/tooltip": "^2.5.16",
37
37
  "@entur/utils": "^0.4.5",
38
38
  "classnames": "^2.3.1",
39
39
  "downshift": "^6.1.7"
40
40
  },
41
- "gitHead": "8aec781ef750306fdf0c4042edabfad5b33cbdb8"
41
+ "gitHead": "5878a206f3bda36addf2bc1fb4272f957f5ae3dc"
42
42
  }