@entur/dropdown 5.0.19 → 5.0.20
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 +92 -92
- package/package.json +10 -10
package/dist/styles.css
CHANGED
|
@@ -25,6 +25,70 @@
|
|
|
25
25
|
}
|
|
26
26
|
/* DO NOT CHANGE!*/
|
|
27
27
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
28
|
+
.eds-dropdown-list {
|
|
29
|
+
border-radius: 0.25rem;
|
|
30
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
31
|
+
display: none;
|
|
32
|
+
list-style: none;
|
|
33
|
+
margin: 0;
|
|
34
|
+
max-height: 50vh;
|
|
35
|
+
padding: 0;
|
|
36
|
+
position: relative;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
width: 100%;
|
|
39
|
+
z-index: 20;
|
|
40
|
+
}
|
|
41
|
+
.eds-contrast .eds-dropdown-list {
|
|
42
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
43
|
+
}
|
|
44
|
+
.eds-dropdown-list--open {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
.eds-dropdown-list:focus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
@media all and (min-width: 50rem) {
|
|
51
|
+
.eds-dropdown-list {
|
|
52
|
+
max-height: 30vh;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.eds-dropdown-list__item {
|
|
56
|
+
align-items: center;
|
|
57
|
+
background-color: #f8f8f8;
|
|
58
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
59
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
60
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
61
|
+
color: #181c56;
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
font-family: inherit;
|
|
65
|
+
font-size: 1rem;
|
|
66
|
+
line-height: 1.25rem;
|
|
67
|
+
padding: 0.75rem 1rem;
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
.eds-dropdown-list__item:first-child {
|
|
71
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
72
|
+
}
|
|
73
|
+
.eds-dropdown-list__item:last-child {
|
|
74
|
+
border-bottom: none;
|
|
75
|
+
}
|
|
76
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
77
|
+
color: #181c56;
|
|
78
|
+
border-color: #54568c;
|
|
79
|
+
background-color: #ffffff;
|
|
80
|
+
}
|
|
81
|
+
.eds-dropdown-list__item--highlighted {
|
|
82
|
+
background-color: #d1d4e3;
|
|
83
|
+
}
|
|
84
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
85
|
+
background-color: #d1d4e3;
|
|
86
|
+
}
|
|
87
|
+
.eds-dropdown-list-icon {
|
|
88
|
+
margin-left: 0.75rem;
|
|
89
|
+
}
|
|
90
|
+
/* DO NOT CHANGE!*/
|
|
91
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
28
92
|
.eds-multi-select {
|
|
29
93
|
position: relative;
|
|
30
94
|
}
|
|
@@ -114,70 +178,6 @@
|
|
|
114
178
|
stroke-dashoffset: 0;
|
|
115
179
|
}
|
|
116
180
|
}
|
|
117
|
-
/* DO NOT CHANGE!*/
|
|
118
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
119
|
-
.eds-dropdown-list {
|
|
120
|
-
border-radius: 0.25rem;
|
|
121
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
122
|
-
display: none;
|
|
123
|
-
list-style: none;
|
|
124
|
-
margin: 0;
|
|
125
|
-
max-height: 50vh;
|
|
126
|
-
padding: 0;
|
|
127
|
-
position: relative;
|
|
128
|
-
overflow-y: auto;
|
|
129
|
-
width: 100%;
|
|
130
|
-
z-index: 20;
|
|
131
|
-
}
|
|
132
|
-
.eds-contrast .eds-dropdown-list {
|
|
133
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
134
|
-
}
|
|
135
|
-
.eds-dropdown-list--open {
|
|
136
|
-
display: inline-block;
|
|
137
|
-
}
|
|
138
|
-
.eds-dropdown-list:focus {
|
|
139
|
-
outline: none;
|
|
140
|
-
}
|
|
141
|
-
@media all and (min-width: 50rem) {
|
|
142
|
-
.eds-dropdown-list {
|
|
143
|
-
max-height: 30vh;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
.eds-dropdown-list__item {
|
|
147
|
-
align-items: center;
|
|
148
|
-
background-color: #f8f8f8;
|
|
149
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
150
|
-
border-left: 0.125rem solid #e9e9e9;
|
|
151
|
-
border-right: 0.125rem solid #e9e9e9;
|
|
152
|
-
color: #181c56;
|
|
153
|
-
display: flex;
|
|
154
|
-
justify-content: space-between;
|
|
155
|
-
font-family: inherit;
|
|
156
|
-
font-size: 1rem;
|
|
157
|
-
line-height: 1.25rem;
|
|
158
|
-
padding: 0.75rem 1rem;
|
|
159
|
-
width: 100%;
|
|
160
|
-
}
|
|
161
|
-
.eds-dropdown-list__item:first-child {
|
|
162
|
-
border-top: 0.125rem solid #e9e9e9;
|
|
163
|
-
}
|
|
164
|
-
.eds-dropdown-list__item:last-child {
|
|
165
|
-
border-bottom: none;
|
|
166
|
-
}
|
|
167
|
-
.eds-contrast .eds-dropdown-list__item {
|
|
168
|
-
color: #181c56;
|
|
169
|
-
border-color: #54568c;
|
|
170
|
-
background-color: #ffffff;
|
|
171
|
-
}
|
|
172
|
-
.eds-dropdown-list__item--highlighted {
|
|
173
|
-
background-color: #d1d4e3;
|
|
174
|
-
}
|
|
175
|
-
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
176
|
-
background-color: #d1d4e3;
|
|
177
|
-
}
|
|
178
|
-
.eds-dropdown-list-icon {
|
|
179
|
-
margin-left: 0.75rem;
|
|
180
|
-
}
|
|
181
181
|
.eds-inline-spinner {
|
|
182
182
|
align-items: center;
|
|
183
183
|
display: flex;
|
|
@@ -187,34 +187,6 @@
|
|
|
187
187
|
}
|
|
188
188
|
/* DO NOT CHANGE!*/
|
|
189
189
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
190
|
-
.eds-dropdown__toggle-button {
|
|
191
|
-
-webkit-appearance: none;
|
|
192
|
-
-moz-appearance: none;
|
|
193
|
-
appearance: none;
|
|
194
|
-
background: none;
|
|
195
|
-
border: none;
|
|
196
|
-
border-radius: 0;
|
|
197
|
-
color: inherit;
|
|
198
|
-
font-size: inherit;
|
|
199
|
-
font-family: inherit;
|
|
200
|
-
margin-right: -0.75rem;
|
|
201
|
-
padding: 0.5rem;
|
|
202
|
-
display: flex;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
}
|
|
205
|
-
.eds-dropdown__toggle-button--open svg {
|
|
206
|
-
transform: rotate(180deg);
|
|
207
|
-
}
|
|
208
|
-
.eds-dropdown__toggle-button:focus {
|
|
209
|
-
outline-offset: 0.125rem;
|
|
210
|
-
outline: none;
|
|
211
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
212
|
-
}
|
|
213
|
-
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
214
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
215
|
-
}
|
|
216
|
-
/* DO NOT CHANGE!*/
|
|
217
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
218
190
|
.eds-dropdown-wrapper {
|
|
219
191
|
position: relative;
|
|
220
192
|
}
|
|
@@ -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.0.
|
|
3
|
+
"version": "5.0.20",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^3.1.
|
|
32
|
-
"@entur/chip": "^0.6.
|
|
33
|
-
"@entur/form": "^7.0.
|
|
34
|
-
"@entur/icons": "^6.11.
|
|
35
|
-
"@entur/loader": "^0.4.
|
|
36
|
-
"@entur/tokens": "^3.
|
|
37
|
-
"@entur/tooltip": "^2.6.
|
|
30
|
+
"@entur/a11y": "^0.2.71",
|
|
31
|
+
"@entur/button": "^3.1.9",
|
|
32
|
+
"@entur/chip": "^0.6.53",
|
|
33
|
+
"@entur/form": "^7.0.25",
|
|
34
|
+
"@entur/icons": "^6.11.2",
|
|
35
|
+
"@entur/loader": "^0.4.46",
|
|
36
|
+
"@entur/tokens": "^3.11.0",
|
|
37
|
+
"@entur/tooltip": "^2.6.34",
|
|
38
38
|
"@entur/utils": "^0.9.5",
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^7.6.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cd8bd67e916e644093ba1390154ccc96fa6f048f"
|
|
43
43
|
}
|