@entur/dropdown 5.4.7 → 5.4.9
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 +103 -103
- package/package.json +8 -8
package/dist/styles.css
CHANGED
|
@@ -1,27 +1,66 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
.eds-dropdown-list {
|
|
4
|
+
border-radius: 0.25rem;
|
|
5
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
6
|
+
display: none;
|
|
7
|
+
list-style: none;
|
|
8
|
+
margin: 0;
|
|
9
|
+
max-height: 50vh;
|
|
10
|
+
padding: 0;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
width: 100%;
|
|
14
|
+
z-index: 20;
|
|
15
|
+
}
|
|
16
|
+
.eds-contrast .eds-dropdown-list {
|
|
17
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
18
|
+
}
|
|
19
|
+
.eds-dropdown-list--open {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
.eds-dropdown-list:focus {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
@media all and (min-width: 50rem) {
|
|
26
|
+
.eds-dropdown-list {
|
|
27
|
+
max-height: 30vh;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.eds-dropdown-list__item {
|
|
31
|
+
align-items: center;
|
|
32
|
+
background-color: #f8f8f8;
|
|
33
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
34
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
35
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
36
|
+
color: #181c56;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
9
39
|
font-family: inherit;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
40
|
+
font-size: 1rem;
|
|
41
|
+
line-height: 1.25rem;
|
|
42
|
+
padding: 0.75rem 1rem;
|
|
43
|
+
width: 100%;
|
|
13
44
|
}
|
|
14
|
-
.eds-
|
|
15
|
-
|
|
45
|
+
.eds-dropdown-list__item:first-child {
|
|
46
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
16
47
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-moz-transition: none;
|
|
20
|
-
transition: none;
|
|
48
|
+
.eds-dropdown-list__item:last-child {
|
|
49
|
+
border-bottom: none;
|
|
21
50
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
51
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
52
|
+
color: #181c56;
|
|
53
|
+
border-color: #54568c;
|
|
54
|
+
background-color: #ffffff;
|
|
55
|
+
}
|
|
56
|
+
.eds-dropdown-list__item--highlighted {
|
|
57
|
+
background-color: #d1d4e3;
|
|
58
|
+
}
|
|
59
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
60
|
+
background-color: #d1d4e3;
|
|
61
|
+
}
|
|
62
|
+
.eds-dropdown-list-icon {
|
|
63
|
+
margin-left: 0.75rem;
|
|
25
64
|
}
|
|
26
65
|
/* DO NOT CHANGE!*/
|
|
27
66
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -123,95 +162,28 @@
|
|
|
123
162
|
}
|
|
124
163
|
/* DO NOT CHANGE!*/
|
|
125
164
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
126
|
-
.eds-
|
|
127
|
-
|
|
128
|
-
-moz-appearance: none;
|
|
129
|
-
appearance: none;
|
|
130
|
-
background: none;
|
|
131
|
-
border: none;
|
|
132
|
-
border-radius: 0;
|
|
133
|
-
color: inherit;
|
|
134
|
-
font-size: inherit;
|
|
135
|
-
font-family: inherit;
|
|
136
|
-
margin-right: -0.75rem;
|
|
137
|
-
padding: 0.5rem;
|
|
138
|
-
display: flex;
|
|
139
|
-
justify-content: center;
|
|
140
|
-
}
|
|
141
|
-
.eds-dropdown__toggle-button--open svg {
|
|
142
|
-
transform: rotate(180deg);
|
|
143
|
-
}
|
|
144
|
-
.eds-dropdown__toggle-button:focus {
|
|
145
|
-
outline-offset: 0.125rem;
|
|
146
|
-
outline: none;
|
|
147
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
148
|
-
}
|
|
149
|
-
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
150
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
151
|
-
}
|
|
152
|
-
/* DO NOT CHANGE!*/
|
|
153
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
154
|
-
.eds-dropdown-list {
|
|
155
|
-
border-radius: 0.25rem;
|
|
156
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
157
|
-
display: none;
|
|
158
|
-
list-style: none;
|
|
159
|
-
margin: 0;
|
|
160
|
-
max-height: 50vh;
|
|
161
|
-
padding: 0;
|
|
162
|
-
position: relative;
|
|
163
|
-
overflow-y: auto;
|
|
164
|
-
width: 100%;
|
|
165
|
-
z-index: 20;
|
|
166
|
-
}
|
|
167
|
-
.eds-contrast .eds-dropdown-list {
|
|
168
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
169
|
-
}
|
|
170
|
-
.eds-dropdown-list--open {
|
|
171
|
-
display: inline-block;
|
|
172
|
-
}
|
|
173
|
-
.eds-dropdown-list:focus {
|
|
174
|
-
outline: none;
|
|
175
|
-
}
|
|
176
|
-
@media all and (min-width: 50rem) {
|
|
177
|
-
.eds-dropdown-list {
|
|
178
|
-
max-height: 30vh;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
.eds-dropdown-list__item {
|
|
182
|
-
align-items: center;
|
|
183
|
-
background-color: #f8f8f8;
|
|
184
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
185
|
-
border-left: 0.125rem solid #e9e9e9;
|
|
186
|
-
border-right: 0.125rem solid #e9e9e9;
|
|
187
|
-
color: #181c56;
|
|
188
|
-
display: flex;
|
|
189
|
-
justify-content: space-between;
|
|
190
|
-
font-family: inherit;
|
|
165
|
+
.eds-dropdown__searchable-selected-item {
|
|
166
|
+
display: block;
|
|
191
167
|
font-size: 1rem;
|
|
192
|
-
line-height:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
.eds-dropdown-list__item:last-child {
|
|
200
|
-
border-bottom: none;
|
|
201
|
-
}
|
|
202
|
-
.eds-contrast .eds-dropdown-list__item {
|
|
203
|
-
color: #181c56;
|
|
204
|
-
border-color: #54568c;
|
|
205
|
-
background-color: #ffffff;
|
|
168
|
+
line-height: 1rem;
|
|
169
|
+
margin-right: -1rem;
|
|
170
|
+
padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
|
|
171
|
+
font-family: inherit;
|
|
172
|
+
overflow-x: hidden;
|
|
173
|
+
text-overflow: ellipsis;
|
|
174
|
+
white-space: nowrap;
|
|
206
175
|
}
|
|
207
|
-
.eds-
|
|
208
|
-
|
|
176
|
+
.eds-dropdown__searchable-selected-item__wrapper {
|
|
177
|
+
max-width: 65%;
|
|
209
178
|
}
|
|
210
|
-
|
|
211
|
-
|
|
179
|
+
|
|
180
|
+
.eds-form-control.eds-dropdown__input::-moz-placeholder {
|
|
181
|
+
-moz-transition: none;
|
|
182
|
+
transition: none;
|
|
212
183
|
}
|
|
213
|
-
|
|
214
|
-
|
|
184
|
+
|
|
185
|
+
.eds-form-control.eds-dropdown__input::placeholder {
|
|
186
|
+
transition: none;
|
|
215
187
|
}
|
|
216
188
|
/* DO NOT CHANGE!*/
|
|
217
189
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -273,6 +245,34 @@
|
|
|
273
245
|
}
|
|
274
246
|
/* DO NOT CHANGE!*/
|
|
275
247
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
248
|
+
.eds-dropdown__toggle-button {
|
|
249
|
+
-webkit-appearance: none;
|
|
250
|
+
-moz-appearance: none;
|
|
251
|
+
appearance: none;
|
|
252
|
+
background: none;
|
|
253
|
+
border: none;
|
|
254
|
+
border-radius: 0;
|
|
255
|
+
color: inherit;
|
|
256
|
+
font-size: inherit;
|
|
257
|
+
font-family: inherit;
|
|
258
|
+
margin-right: -0.75rem;
|
|
259
|
+
padding: 0.5rem;
|
|
260
|
+
display: flex;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
}
|
|
263
|
+
.eds-dropdown__toggle-button--open svg {
|
|
264
|
+
transform: rotate(180deg);
|
|
265
|
+
}
|
|
266
|
+
.eds-dropdown__toggle-button:focus {
|
|
267
|
+
outline-offset: 0.125rem;
|
|
268
|
+
outline: none;
|
|
269
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
270
|
+
}
|
|
271
|
+
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
272
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
273
|
+
}
|
|
274
|
+
/* DO NOT CHANGE!*/
|
|
275
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
276
|
.eds-dropdown__list {
|
|
277
277
|
position: absolute;
|
|
278
278
|
list-style: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.9",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@entur/a11y": "^0.2.85",
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/chip": "^0.7.
|
|
33
|
-
"@entur/form": "^7.1.
|
|
34
|
-
"@entur/icons": "^6.
|
|
35
|
-
"@entur/loader": "^0.5.
|
|
31
|
+
"@entur/button": "^3.2.24",
|
|
32
|
+
"@entur/chip": "^0.7.10",
|
|
33
|
+
"@entur/form": "^7.1.9",
|
|
34
|
+
"@entur/icons": "^6.17.0",
|
|
35
|
+
"@entur/loader": "^0.5.2",
|
|
36
36
|
"@entur/tokens": "^3.15.0",
|
|
37
|
-
"@entur/tooltip": "^2.7.
|
|
37
|
+
"@entur/tooltip": "^2.7.8",
|
|
38
38
|
"@entur/utils": "^0.11.1",
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^8.3.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "74491efb25596a135f38b50d15305803afe963ae"
|
|
43
43
|
}
|