@entur/dropdown 5.0.7 → 5.0.8
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.development.js +26 -13
- package/dist/dropdown.cjs.development.js.map +1 -1
- package/dist/dropdown.cjs.production.min.js +1 -1
- package/dist/dropdown.cjs.production.min.js.map +1 -1
- package/dist/dropdown.esm.js +26 -13
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +99 -99
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1,76 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
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;
|
|
39
|
-
font-family: inherit;
|
|
40
|
-
font-size: 1rem;
|
|
41
|
-
line-height: 1.25rem;
|
|
42
|
-
padding: 0.75rem 1rem;
|
|
43
|
-
width: 100%;
|
|
44
|
-
}
|
|
45
|
-
.eds-dropdown-list__item:first-child {
|
|
46
|
-
border-top: 0.125rem solid #e9e9e9;
|
|
47
|
-
}
|
|
48
|
-
.eds-dropdown-list__item:last-child {
|
|
49
|
-
border-bottom: none;
|
|
50
|
-
}
|
|
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;
|
|
64
|
-
}
|
|
65
|
-
.eds-inline-spinner {
|
|
66
|
-
align-items: center;
|
|
67
|
-
display: flex;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
height: 100%;
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
/* DO NOT CHANGE!*/
|
|
73
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
74
3
|
.eds-multi-select {
|
|
75
4
|
position: relative;
|
|
76
5
|
}
|
|
@@ -162,6 +91,70 @@
|
|
|
162
91
|
}
|
|
163
92
|
/* DO NOT CHANGE!*/
|
|
164
93
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
94
|
+
.eds-dropdown-list {
|
|
95
|
+
border-radius: 0.25rem;
|
|
96
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
97
|
+
display: none;
|
|
98
|
+
list-style: none;
|
|
99
|
+
margin: 0;
|
|
100
|
+
max-height: 50vh;
|
|
101
|
+
padding: 0;
|
|
102
|
+
position: relative;
|
|
103
|
+
overflow-y: auto;
|
|
104
|
+
width: 100%;
|
|
105
|
+
z-index: 20;
|
|
106
|
+
}
|
|
107
|
+
.eds-contrast .eds-dropdown-list {
|
|
108
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
109
|
+
}
|
|
110
|
+
.eds-dropdown-list--open {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
}
|
|
113
|
+
.eds-dropdown-list:focus {
|
|
114
|
+
outline: none;
|
|
115
|
+
}
|
|
116
|
+
@media all and (min-width: 50rem) {
|
|
117
|
+
.eds-dropdown-list {
|
|
118
|
+
max-height: 30vh;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.eds-dropdown-list__item {
|
|
122
|
+
align-items: center;
|
|
123
|
+
background-color: #f8f8f8;
|
|
124
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
125
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
126
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
127
|
+
color: #181c56;
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
font-family: inherit;
|
|
131
|
+
font-size: 1rem;
|
|
132
|
+
line-height: 1.25rem;
|
|
133
|
+
padding: 0.75rem 1rem;
|
|
134
|
+
width: 100%;
|
|
135
|
+
}
|
|
136
|
+
.eds-dropdown-list__item:first-child {
|
|
137
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
138
|
+
}
|
|
139
|
+
.eds-dropdown-list__item:last-child {
|
|
140
|
+
border-bottom: none;
|
|
141
|
+
}
|
|
142
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
143
|
+
color: #181c56;
|
|
144
|
+
border-color: #54568c;
|
|
145
|
+
background-color: #ffffff;
|
|
146
|
+
}
|
|
147
|
+
.eds-dropdown-list__item--highlighted {
|
|
148
|
+
background-color: #d1d4e3;
|
|
149
|
+
}
|
|
150
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
151
|
+
background-color: #d1d4e3;
|
|
152
|
+
}
|
|
153
|
+
.eds-dropdown-list-icon {
|
|
154
|
+
margin-left: 0.75rem;
|
|
155
|
+
}
|
|
156
|
+
/* DO NOT CHANGE!*/
|
|
157
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
165
158
|
.eds-dropdown__searchable-selected-item {
|
|
166
159
|
display: block;
|
|
167
160
|
font-size: 1rem;
|
|
@@ -185,6 +178,41 @@
|
|
|
185
178
|
.eds-form-control.eds-dropdown__input::placeholder {
|
|
186
179
|
transition: none;
|
|
187
180
|
}
|
|
181
|
+
.eds-inline-spinner {
|
|
182
|
+
align-items: center;
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
height: 100%;
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
188
|
+
/* DO NOT CHANGE!*/
|
|
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
|
+
}
|
|
188
216
|
/* DO NOT CHANGE!*/
|
|
189
217
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
190
218
|
.eds-dropdown-wrapper {
|
|
@@ -245,34 +273,6 @@
|
|
|
245
273
|
}
|
|
246
274
|
/* DO NOT CHANGE!*/
|
|
247
275
|
/* 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.8",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^7.6.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c2bedc452395ed78cce9a2dc38b1998750330779"
|
|
43
43
|
}
|