@entur/dropdown 3.0.14 → 3.0.16

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/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './Dropdown';
3
3
  export * from './NativeDropdown';
4
4
  export * from './MultiSelect';
5
5
  export * from './MultiSelect';
6
+ export * from './beta';
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,12 +214,138 @@
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 {
217
+ .eds-searchable-dropdown__wrapper {
218
+ position: relative;
219
+ }
220
+ .eds-searchable-dropdown__selected-item {
221
+ display: block;
222
+ font-size: 1rem;
223
+ line-height: 1rem;
224
+ margin-right: -1rem;
225
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
226
+ font-family: inherit;
227
+ overflow-x: hidden;
228
+ text-overflow: ellipsis;
229
+ white-space: nowrap;
230
+ }
231
+ .eds-searchable-dropdown__selected-item__wrapper {
232
+ max-width: 65%;
233
+ }
234
+ .eds-searchable-dropdown-appendix__clear-button {
235
+ padding: 0.5rem;
236
+ margin-right: 0.25rem;
237
+ }
238
+ .eds-contrast .eds-searchable-dropdown-appendix__clear-button:hover {
239
+ background: #d1d3d3;
240
+ }
241
+ .eds-contrast .eds-searchable-dropdown-appendix__clear-button:active {
242
+ background: #949494;
243
+ }
244
+ .eds-contrast .eds-searchable-dropdown-appendix__clear-button:focus {
245
+ border: 0.0625rem solid #181c56;
246
+ outline: none;
247
+ }
248
+ .eds-searchable-dropdown-appendix__divider {
249
+ content: "";
250
+ display: block;
251
+ background-color: #e9e9e9;
252
+ height: 1.5rem;
253
+ width: 1px;
254
+ }
255
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-searchable-dropdown-appendix__divider {
256
+ background-color: #8285a8;
257
+ }
258
+ .eds-contrast .eds-searchable-dropdown-appendix__divider {
259
+ background-color: #d1d3d3;
260
+ }
261
+ .eds-searchable-dropdown-appendix__toggle-button {
262
+ margin-right: -0.75rem;
263
+ margin-left: 0.25rem;
264
+ }
265
+ .eds-searchable-dropdown-appendix__toggle-button--open svg {
266
+ transform: rotate(180deg);
267
+ }
268
+ .eds-searchable-dropdown-appendix__toggle-button svg {
269
+ transition: transform ease-in-out 0.1s;
270
+ }
271
+ .eds-contrast .eds-searchable-dropdown-appendix__toggle-button:hover {
272
+ background: #d1d3d3;
273
+ }
274
+ .eds-contrast .eds-searchable-dropdown-appendix__toggle-button:active {
275
+ background: #949494;
276
+ }
277
+ .eds-contrast .eds-searchable-dropdown-appendix__toggle-button:focus {
278
+ border: 0.0625rem solid #181c56;
279
+ outline: none;
280
+ }
281
+ .eds-searchable-dropdown__list {
282
+ position: absolute;
283
+ top: 3rem;
284
+ display: none;
285
+ list-style: none;
286
+ border-radius: 0.25rem;
287
+ border: 0.125rem solid #d1d3d3;
288
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
289
+ padding: 0;
290
+ margin: 0;
291
+ margin-top: 0.5rem;
292
+ max-height: 50vh;
293
+ overflow-y: auto;
294
+ width: 100%;
295
+ z-index: 20;
296
+ }
297
+ .eds-searchable-dropdown__list--open {
298
+ display: inline-block;
299
+ }
300
+ .eds-searchable-dropdown__list:focus {
301
+ outline: none;
302
+ }
303
+ @media all and (min-width: 50rem) {
304
+ .eds-searchable-dropdown__list {
305
+ max-height: 30vh;
306
+ }
307
+ }
308
+ .eds-searchable-dropdown__list__item {
210
309
  align-items: center;
310
+ background-color: #f8f8f8;
311
+ border-bottom: 0.125rem solid #d1d3d3;
312
+ color: #181c56;
211
313
  display: flex;
212
- justify-content: center;
213
- height: 100%;
314
+ justify-content: space-between;
315
+ font-family: inherit;
316
+ font-size: 1rem;
317
+ line-height: 1.25rem;
318
+ padding: 0.75rem 1rem;
214
319
  width: 100%;
320
+ }
321
+ .eds-searchable-dropdown__list__item:last-child {
322
+ border-bottom: none;
323
+ }
324
+ .eds-searchable-dropdown__list__item-icon {
325
+ margin-left: 0.75rem;
326
+ }
327
+ .eds-searchable-dropdown__list__item--highlighted {
328
+ background-color: #d1d4e3;
329
+ }
330
+
331
+ .eds-form-control.eds-searchable-dropdown__input::-moz-placeholder {
332
+ -moz-transition: none;
333
+ transition: none;
334
+ position: relative;
335
+ bottom: 1px;
336
+ }
337
+
338
+ .eds-form-control.eds-searchable-dropdown__input:-ms-input-placeholder {
339
+ -ms-transition: none;
340
+ transition: none;
341
+ position: relative;
342
+ bottom: 1px;
343
+ }
344
+
345
+ .eds-form-control.eds-searchable-dropdown__input::placeholder {
346
+ transition: none;
347
+ position: relative;
348
+ bottom: 1px;
215
349
  }/* DO NOT CHANGE!*/
216
350
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
217
351
  .eds-dropdown-wrapper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
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": "41c03949d80b35d6d0caceb23d854fb776c2eedf"
42
42
  }