@entur/dropdown 9.1.1 → 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 +12 -21
- package/package.json +11 -11
package/dist/styles.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
:root{
|
|
2
2
|
--eds-dropdown:1;
|
|
3
3
|
}.eds-dropdown__list{
|
|
4
|
-
position:absolute;
|
|
5
4
|
box-sizing:border-box;
|
|
6
5
|
overflow-y:auto;
|
|
7
6
|
z-index:20;
|
|
@@ -12,7 +11,9 @@
|
|
|
12
11
|
border-radius:0.25rem;
|
|
13
12
|
box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
14
13
|
cursor:default;
|
|
15
|
-
|
|
14
|
+
background-color:var(--components-form-basemenu-fill-default);
|
|
15
|
+
width:var(--list-width, auto);
|
|
16
|
+
max-width:95dvw;
|
|
16
17
|
max-height:var(--list-max-height, 15rem);
|
|
17
18
|
}
|
|
18
19
|
.eds-dropdown__list:focus{
|
|
@@ -31,9 +32,6 @@
|
|
|
31
32
|
color:var(--components-form-basemenu-text);
|
|
32
33
|
background-color:var(--components-form-basemenu-fill-default);
|
|
33
34
|
}
|
|
34
|
-
.eds-dropdown__list__item:last-child{
|
|
35
|
-
border-bottom:none;
|
|
36
|
-
}
|
|
37
35
|
.eds-dropdown__list__item__text{
|
|
38
36
|
flex:1;
|
|
39
37
|
cursor:default;
|
|
@@ -165,18 +163,10 @@
|
|
|
165
163
|
.eds-dropdown__appendix__toggle-button svg{
|
|
166
164
|
transition:transform ease-in-out 0.1s;
|
|
167
165
|
}
|
|
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{
|
|
166
|
+
.eds-dropdown__appendix__toggle-button--loading.eds-icon-button > .eds-loading-dots .eds-loading-dots__dot{
|
|
177
167
|
background-color:var(--components-loader-loader-standard-text);
|
|
178
168
|
}
|
|
179
|
-
.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{
|
|
180
170
|
background-color:var(--components-loader-loader-standard-text);
|
|
181
171
|
}
|
|
182
172
|
.eds-contrast .eds-dropdown__appendix__toggle-button:hover{
|
|
@@ -185,7 +175,6 @@
|
|
|
185
175
|
.eds-contrast .eds-dropdown__appendix__toggle-button:focus-visible{
|
|
186
176
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
187
177
|
}.eds-dropdown{
|
|
188
|
-
position:relative;
|
|
189
178
|
cursor:pointer;
|
|
190
179
|
}
|
|
191
180
|
.eds-dropdown:has(.eds-form-control-wrapper--readonly){
|
|
@@ -198,10 +187,6 @@
|
|
|
198
187
|
.eds-dropdown__input--hidden{
|
|
199
188
|
flex:0;
|
|
200
189
|
}
|
|
201
|
-
.eds-dropdown__input__wrapper{
|
|
202
|
-
flex:1 1 auto;
|
|
203
|
-
display:flex;
|
|
204
|
-
}
|
|
205
190
|
.eds-dropdown__selected-item{
|
|
206
191
|
flex:1;
|
|
207
192
|
height:100%;
|
|
@@ -218,7 +203,6 @@
|
|
|
218
203
|
cursor:text;
|
|
219
204
|
}
|
|
220
205
|
.eds-dropdown--searchable__selected-item{
|
|
221
|
-
position:relative;
|
|
222
206
|
flex:1;
|
|
223
207
|
overflow-x:hidden;
|
|
224
208
|
text-overflow:ellipsis;
|
|
@@ -271,4 +255,11 @@
|
|
|
271
255
|
}
|
|
272
256
|
.eds-contrast .eds-dropdown--native option{
|
|
273
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);
|
|
274
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.1.
|
|
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
|
}
|