@entur/dropdown 9.1.0 → 9.1.2
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/dropdown.cjs +26 -4
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.mjs +26 -4
- package/dist/dropdown.mjs.map +1 -1
- package/dist/styles.css +33 -134
- package/package.json +11 -11
package/dist/styles.css
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
:root{
|
|
2
2
|
--eds-dropdown:1;
|
|
3
3
|
}.eds-dropdown__list{
|
|
4
|
-
|
|
5
|
-
-webkit-box-sizing:border-box;
|
|
6
|
-
-moz-box-sizing:border-box;
|
|
7
|
-
box-sizing:border-box;
|
|
4
|
+
box-sizing:border-box;
|
|
8
5
|
overflow-y:auto;
|
|
9
6
|
z-index:20;
|
|
10
7
|
padding:0;
|
|
11
8
|
margin:0;
|
|
12
9
|
list-style:none;
|
|
13
10
|
border:0.125rem solid var(--components-form-basemenu-border);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
border-radius:0.25rem;
|
|
17
|
-
-webkit-box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
18
|
-
-moz-box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
19
|
-
box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
11
|
+
border-radius:0.25rem;
|
|
12
|
+
box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
20
13
|
cursor:default;
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
background-color:var(--components-form-basemenu-fill-default);
|
|
15
|
+
width:var(--list-width, auto);
|
|
16
|
+
max-width:95dvw;
|
|
23
17
|
max-height:var(--list-max-height, 15rem);
|
|
24
18
|
}
|
|
25
19
|
.eds-dropdown__list:focus{
|
|
26
20
|
outline:none;
|
|
27
21
|
}
|
|
28
22
|
.eds-dropdown__list__item{
|
|
29
|
-
display:-webkit-box;
|
|
30
|
-
display:-webkit-flex;
|
|
31
|
-
display:-moz-box;
|
|
32
23
|
display:flex;
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-moz-box-align:center;
|
|
36
|
-
align-items:center;
|
|
37
|
-
-webkit-box-pack:start;
|
|
38
|
-
-webkit-justify-content:flex-start;
|
|
39
|
-
-moz-box-pack:start;
|
|
40
|
-
justify-content:flex-start;
|
|
24
|
+
align-items:center;
|
|
25
|
+
justify-content:flex-start;
|
|
41
26
|
padding:0.75rem 1rem;
|
|
42
27
|
font-family:inherit;
|
|
43
28
|
font-size:1rem;
|
|
@@ -47,14 +32,8 @@
|
|
|
47
32
|
color:var(--components-form-basemenu-text);
|
|
48
33
|
background-color:var(--components-form-basemenu-fill-default);
|
|
49
34
|
}
|
|
50
|
-
.eds-dropdown__list__item:last-child{
|
|
51
|
-
border-bottom:none;
|
|
52
|
-
}
|
|
53
35
|
.eds-dropdown__list__item__text{
|
|
54
|
-
|
|
55
|
-
-webkit-flex:1;
|
|
56
|
-
-moz-box-flex:1;
|
|
57
|
-
flex:1;
|
|
36
|
+
flex:1;
|
|
58
37
|
cursor:default;
|
|
59
38
|
}
|
|
60
39
|
.eds-dropdown__list__item__icon{
|
|
@@ -141,8 +120,7 @@
|
|
|
141
120
|
}
|
|
142
121
|
.eds-dropdown__selected-item-tag__text{
|
|
143
122
|
text-wrap:nowrap;
|
|
144
|
-
|
|
145
|
-
text-overflow:ellipsis;
|
|
123
|
+
text-overflow:ellipsis;
|
|
146
124
|
overflow-x:hidden;
|
|
147
125
|
}
|
|
148
126
|
.eds-contrast .eds-dropdown .eds-icon-button{
|
|
@@ -160,16 +138,9 @@
|
|
|
160
138
|
background-color:var(--components-button-iconbutton-standard-active);
|
|
161
139
|
}
|
|
162
140
|
.eds-dropdown__appendix{
|
|
163
|
-
display:-webkit-box;
|
|
164
|
-
display:-webkit-flex;
|
|
165
|
-
display:-moz-box;
|
|
166
141
|
display:flex;
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
-moz-box-align:center;
|
|
170
|
-
align-items:center;
|
|
171
|
-
-webkit-align-self:flex-start;
|
|
172
|
-
align-self:flex-start;
|
|
142
|
+
align-items:center;
|
|
143
|
+
align-self:flex-start;
|
|
173
144
|
margin-top:0.25rem;
|
|
174
145
|
gap:0.25rem;
|
|
175
146
|
}
|
|
@@ -187,40 +158,15 @@
|
|
|
187
158
|
margin-right:-0.75rem;
|
|
188
159
|
}
|
|
189
160
|
.eds-dropdown__appendix__toggle-button--open svg{
|
|
190
|
-
|
|
191
|
-
-moz-transform:rotate(180deg);
|
|
192
|
-
-o-transform:rotate(180deg);
|
|
193
|
-
transform:rotate(180deg);
|
|
161
|
+
transform:rotate(180deg);
|
|
194
162
|
}
|
|
195
163
|
.eds-dropdown__appendix__toggle-button svg{
|
|
196
|
-
-webkit-transition:-webkit-transform ease-in-out 0.1s;
|
|
197
|
-
transition:-webkit-transform ease-in-out 0.1s;
|
|
198
|
-
-o-transition:-o-transform ease-in-out 0.1s;
|
|
199
|
-
-moz-transition:transform ease-in-out 0.1s, -moz-transform ease-in-out 0.1s;
|
|
200
164
|
transition:transform ease-in-out 0.1s;
|
|
201
|
-
transition:transform ease-in-out 0.1s, -webkit-transform ease-in-out 0.1s, -moz-transform ease-in-out 0.1s, -o-transform ease-in-out 0.1s;
|
|
202
|
-
}
|
|
203
|
-
.eds-dropdown__appendix__toggle-button--loading-dots{
|
|
204
|
-
-webkit-box-align:center;
|
|
205
|
-
-webkit-align-items:center;
|
|
206
|
-
-moz-box-align:center;
|
|
207
|
-
align-items:center;
|
|
208
|
-
display:-webkit-box;
|
|
209
|
-
display:-webkit-flex;
|
|
210
|
-
display:-moz-box;
|
|
211
|
-
display:flex;
|
|
212
|
-
-webkit-box-pack:center;
|
|
213
|
-
-webkit-justify-content:center;
|
|
214
|
-
-moz-box-pack:center;
|
|
215
|
-
justify-content:center;
|
|
216
|
-
height:100%;
|
|
217
|
-
width:1.5rem;
|
|
218
|
-
margin-left:0.25rem;
|
|
219
165
|
}
|
|
220
|
-
.eds-dropdown__appendix__toggle-button--loading-dots .eds-loading-dots__dot{
|
|
166
|
+
.eds-dropdown__appendix__toggle-button--loading.eds-icon-button > .eds-loading-dots .eds-loading-dots__dot{
|
|
221
167
|
background-color:var(--components-loader-loader-standard-text);
|
|
222
168
|
}
|
|
223
|
-
.eds-contrast .eds-dropdown__appendix__toggle-button--loading-dots .eds-loading-dots__dot{
|
|
169
|
+
.eds-contrast .eds-dropdown__appendix__toggle-button--loading.eds-icon-button > .eds-loading-dots .eds-loading-dots__dot{
|
|
224
170
|
background-color:var(--components-loader-loader-standard-text);
|
|
225
171
|
}
|
|
226
172
|
.eds-contrast .eds-dropdown__appendix__toggle-button:hover{
|
|
@@ -229,46 +175,25 @@
|
|
|
229
175
|
.eds-contrast .eds-dropdown__appendix__toggle-button:focus-visible{
|
|
230
176
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
231
177
|
}.eds-dropdown{
|
|
232
|
-
position:relative;
|
|
233
178
|
cursor:pointer;
|
|
234
179
|
}
|
|
235
180
|
.eds-dropdown:has(.eds-form-control-wrapper--readonly){
|
|
236
181
|
cursor:text;
|
|
237
182
|
}
|
|
238
183
|
.eds-dropdown__input{
|
|
239
|
-
|
|
240
|
-
-webkit-flex:1;
|
|
241
|
-
-moz-box-flex:1;
|
|
242
|
-
flex:1;
|
|
184
|
+
flex:1;
|
|
243
185
|
width:0;
|
|
244
186
|
}
|
|
245
187
|
.eds-dropdown__input--hidden{
|
|
246
|
-
|
|
247
|
-
-webkit-flex:0;
|
|
248
|
-
-moz-box-flex:0;
|
|
249
|
-
flex:0;
|
|
250
|
-
}
|
|
251
|
-
.eds-dropdown__input__wrapper{
|
|
252
|
-
-webkit-box-flex:1;
|
|
253
|
-
-webkit-flex:1 1 auto;
|
|
254
|
-
-moz-box-flex:1;
|
|
255
|
-
flex:1 1 auto;
|
|
256
|
-
display:-webkit-box;
|
|
257
|
-
display:-webkit-flex;
|
|
258
|
-
display:-moz-box;
|
|
259
|
-
display:flex;
|
|
188
|
+
flex:0;
|
|
260
189
|
}
|
|
261
190
|
.eds-dropdown__selected-item{
|
|
262
|
-
|
|
263
|
-
-webkit-flex:1;
|
|
264
|
-
-moz-box-flex:1;
|
|
265
|
-
flex:1;
|
|
191
|
+
flex:1;
|
|
266
192
|
height:100%;
|
|
267
193
|
min-height:2.75rem;
|
|
268
194
|
padding:1.25rem 0rem 0.25rem;
|
|
269
195
|
overflow-x:hidden;
|
|
270
|
-
|
|
271
|
-
text-overflow:ellipsis;
|
|
196
|
+
text-overflow:ellipsis;
|
|
272
197
|
line-height:1rem;
|
|
273
198
|
}
|
|
274
199
|
.eds-dropdown__selected-item:focus{
|
|
@@ -278,61 +203,31 @@
|
|
|
278
203
|
cursor:text;
|
|
279
204
|
}
|
|
280
205
|
.eds-dropdown--searchable__selected-item{
|
|
281
|
-
|
|
282
|
-
-webkit-box-flex:1;
|
|
283
|
-
-webkit-flex:1;
|
|
284
|
-
-moz-box-flex:1;
|
|
285
|
-
flex:1;
|
|
206
|
+
flex:1;
|
|
286
207
|
overflow-x:hidden;
|
|
287
|
-
|
|
288
|
-
text-overflow:ellipsis;
|
|
208
|
+
text-overflow:ellipsis;
|
|
289
209
|
padding:1.375rem 0rem 0.3rem;
|
|
290
210
|
white-space:nowrap;
|
|
291
211
|
line-height:1rem;
|
|
292
212
|
font-family:inherit;
|
|
293
213
|
}
|
|
294
214
|
.eds-dropdown--searchable__selected-item--hidden{
|
|
295
|
-
|
|
296
|
-
-webkit-flex:0;
|
|
297
|
-
-moz-box-flex:0;
|
|
298
|
-
flex:0;
|
|
299
|
-
}
|
|
300
|
-
.eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-webkit-input-placeholder{
|
|
301
|
-
-webkit-transition:none;
|
|
302
|
-
transition:none;
|
|
303
|
-
}
|
|
304
|
-
.eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + :-moz-placeholder{
|
|
305
|
-
-moz-transition:none;
|
|
306
|
-
transition:none;
|
|
215
|
+
flex:0;
|
|
307
216
|
}
|
|
308
217
|
.eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-moz-placeholder{
|
|
309
218
|
-moz-transition:none;
|
|
310
219
|
transition:none;
|
|
311
220
|
}
|
|
312
|
-
.eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-ms-input-placeholder{
|
|
313
|
-
-ms-transition:none;
|
|
314
|
-
transition:none;
|
|
315
|
-
}
|
|
316
221
|
.eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::placeholder{
|
|
317
|
-
-webkit-transition:none;
|
|
318
|
-
-o-transition:none;
|
|
319
|
-
-moz-transition:none;
|
|
320
222
|
transition:none;
|
|
321
223
|
}
|
|
322
224
|
.eds-dropdown--multiselect{
|
|
323
225
|
cursor:text;
|
|
324
226
|
}
|
|
325
227
|
.eds-dropdown--multiselect__selected-items-and-input{
|
|
326
|
-
display:-webkit-box;
|
|
327
|
-
display:-webkit-flex;
|
|
328
|
-
display:-moz-box;
|
|
329
228
|
display:flex;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
-webkit-box-flex:1;
|
|
333
|
-
-webkit-flex:1;
|
|
334
|
-
-moz-box-flex:1;
|
|
335
|
-
flex:1;
|
|
229
|
+
flex-wrap:wrap;
|
|
230
|
+
flex:1;
|
|
336
231
|
gap:0.5rem;
|
|
337
232
|
min-width:0;
|
|
338
233
|
}
|
|
@@ -340,14 +235,11 @@
|
|
|
340
235
|
padding:1.25rem 0rem 0.25rem;
|
|
341
236
|
}
|
|
342
237
|
.eds-dropdown--multiselect__selected-items-and-input--filled .eds-dropdown__input{
|
|
343
|
-
padding:
|
|
344
|
-
padding:initial;
|
|
238
|
+
padding:unset;
|
|
345
239
|
min-height:1.5rem;
|
|
346
240
|
}
|
|
347
241
|
.eds-dropdown--multiselect__selected-items-and-input--filled .eds-tag-chip:focus{
|
|
348
|
-
|
|
349
|
-
-moz-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
350
|
-
box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
242
|
+
box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
351
243
|
}
|
|
352
244
|
.eds-dropdown--multiselect__selected-items-and-input--filled .eds-tag-chip__close-button svg{
|
|
353
245
|
width:1rem;
|
|
@@ -363,4 +255,11 @@
|
|
|
363
255
|
}
|
|
364
256
|
.eds-contrast .eds-dropdown--native option{
|
|
365
257
|
color:var(--components-form-basemenu-text);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.eds-dropdown-native__loading-dots .eds-loading-dots__dot{
|
|
261
|
+
background-color:var(--components-loader-loader-standard-text);
|
|
262
|
+
}
|
|
263
|
+
.eds-contrast .eds-dropdown-native__loading-dots .eds-loading-dots__dot{
|
|
264
|
+
background-color:var(--components-loader-loader-standard-text);
|
|
366
265
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/dropdown.cjs",
|
|
6
6
|
"module": "dist/dropdown.mjs",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"react-dom": ">=18.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@entur/a11y": "^0.3.
|
|
30
|
-
"@entur/button": "^5.0.
|
|
31
|
-
"@entur/chip": "^0.11.
|
|
32
|
-
"@entur/form": "^10.1.
|
|
33
|
-
"@entur/icons": "^10.0.
|
|
34
|
-
"@entur/loader": "^0.8.
|
|
35
|
-
"@entur/tokens": "^4.
|
|
36
|
-
"@entur/tooltip": "^6.0.
|
|
37
|
-
"@entur/utils": "^0.15.
|
|
29
|
+
"@entur/a11y": "^0.3.4",
|
|
30
|
+
"@entur/button": "^5.0.5",
|
|
31
|
+
"@entur/chip": "^0.11.5",
|
|
32
|
+
"@entur/form": "^10.1.2",
|
|
33
|
+
"@entur/icons": "^10.0.4",
|
|
34
|
+
"@entur/loader": "^0.8.5",
|
|
35
|
+
"@entur/tokens": "^4.1.1",
|
|
36
|
+
"@entur/tooltip": "^6.0.5",
|
|
37
|
+
"@entur/utils": "^0.15.1",
|
|
38
38
|
"@floating-ui/react-dom": "^2.1.6",
|
|
39
39
|
"classnames": "^2.5.1",
|
|
40
40
|
"downshift": "^9.0.10"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"./dist/styles.css": "./dist/styles.css",
|
|
63
63
|
"./package.json": "./package.json"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "725b60a108e9df645336e10c011356c38201be8a"
|
|
66
66
|
}
|