@entur/dropdown 5.0.9-beta.0 → 5.0.11
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.d.ts +7 -1
- package/dist/MultiSelect.d.ts +7 -1
- package/dist/SearchableDropdown.d.ts +7 -1
- package/dist/dropdown.cjs.development.js +34 -11
- 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 +34 -11
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +71 -71
- package/package.json +8 -8
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
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
|
+
/* DO NOT CHANGE!*/
|
|
66
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
67
|
.eds-multi-select {
|
|
4
68
|
position: relative;
|
|
5
69
|
}
|
|
@@ -116,77 +180,6 @@
|
|
|
116
180
|
}
|
|
117
181
|
/* DO NOT CHANGE!*/
|
|
118
182
|
/* 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
|
-
.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
183
|
.eds-dropdown__toggle-button {
|
|
191
184
|
-webkit-appearance: none;
|
|
192
185
|
-moz-appearance: none;
|
|
@@ -271,6 +264,13 @@
|
|
|
271
264
|
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
|
|
272
265
|
background-color: #8285a8;
|
|
273
266
|
}
|
|
267
|
+
.eds-inline-spinner {
|
|
268
|
+
align-items: center;
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
height: 100%;
|
|
272
|
+
width: 100%;
|
|
273
|
+
}
|
|
274
274
|
/* DO NOT CHANGE!*/
|
|
275
275
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
276
|
.eds-dropdown__list {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
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.70",
|
|
31
|
-
"@entur/button": "^3.1.
|
|
32
|
-
"@entur/chip": "^0.6.
|
|
33
|
-
"@entur/form": "^7.0.
|
|
34
|
-
"@entur/icons": "^6.
|
|
35
|
-
"@entur/loader": "^0.4.
|
|
31
|
+
"@entur/button": "^3.1.4",
|
|
32
|
+
"@entur/chip": "^0.6.48",
|
|
33
|
+
"@entur/form": "^7.0.20",
|
|
34
|
+
"@entur/icons": "^6.8.0",
|
|
35
|
+
"@entur/loader": "^0.4.41",
|
|
36
36
|
"@entur/tokens": "^3.10.0",
|
|
37
|
-
"@entur/tooltip": "^2.6.
|
|
37
|
+
"@entur/tooltip": "^2.6.29",
|
|
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": "9e5cbcf10c3e18dff42f0afb3b4cb40df557c14c"
|
|
43
43
|
}
|