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