@entur/dropdown 5.0.9 → 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/styles.css CHANGED
@@ -1,10 +1,67 @@
1
- .eds-inline-spinner {
1
+ /* DO NOT CHANGE!*/
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 {
2
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;
3
37
  display: flex;
4
- justify-content: center;
5
- height: 100%;
38
+ justify-content: space-between;
39
+ font-family: inherit;
40
+ font-size: 1rem;
41
+ line-height: 1.25rem;
42
+ padding: 0.75rem 1rem;
6
43
  width: 100%;
7
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
+ }
8
65
  /* DO NOT CHANGE!*/
9
66
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
67
  .eds-multi-select {
@@ -123,6 +180,34 @@
123
180
  }
124
181
  /* DO NOT CHANGE!*/
125
182
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
183
+ .eds-dropdown__toggle-button {
184
+ -webkit-appearance: none;
185
+ -moz-appearance: none;
186
+ appearance: none;
187
+ background: none;
188
+ border: none;
189
+ border-radius: 0;
190
+ color: inherit;
191
+ font-size: inherit;
192
+ font-family: inherit;
193
+ margin-right: -0.75rem;
194
+ padding: 0.5rem;
195
+ display: flex;
196
+ justify-content: center;
197
+ }
198
+ .eds-dropdown__toggle-button--open svg {
199
+ transform: rotate(180deg);
200
+ }
201
+ .eds-dropdown__toggle-button:focus {
202
+ outline-offset: 0.125rem;
203
+ outline: none;
204
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
205
+ }
206
+ .eds-contrast .eds-dropdown__toggle-button:focus {
207
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
208
+ }
209
+ /* DO NOT CHANGE!*/
210
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
126
211
  .eds-dropdown-wrapper {
127
212
  position: relative;
128
213
  }
@@ -179,97 +264,12 @@
179
264
  .eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
180
265
  background-color: #8285a8;
181
266
  }
182
- /* DO NOT CHANGE!*/
183
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
184
- .eds-dropdown-list {
185
- border-radius: 0.25rem;
186
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
187
- display: none;
188
- list-style: none;
189
- margin: 0;
190
- max-height: 50vh;
191
- padding: 0;
192
- position: relative;
193
- overflow-y: auto;
194
- width: 100%;
195
- z-index: 20;
196
- }
197
- .eds-contrast .eds-dropdown-list {
198
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
199
- }
200
- .eds-dropdown-list--open {
201
- display: inline-block;
202
- }
203
- .eds-dropdown-list:focus {
204
- outline: none;
205
- }
206
- @media all and (min-width: 50rem) {
207
- .eds-dropdown-list {
208
- max-height: 30vh;
209
- }
210
- }
211
- .eds-dropdown-list__item {
267
+ .eds-inline-spinner {
212
268
  align-items: center;
213
- background-color: #f8f8f8;
214
- border-bottom: 0.125rem solid #e9e9e9;
215
- border-left: 0.125rem solid #e9e9e9;
216
- border-right: 0.125rem solid #e9e9e9;
217
- color: #181c56;
218
- display: flex;
219
- justify-content: space-between;
220
- font-family: inherit;
221
- font-size: 1rem;
222
- line-height: 1.25rem;
223
- padding: 0.75rem 1rem;
224
- width: 100%;
225
- }
226
- .eds-dropdown-list__item:first-child {
227
- border-top: 0.125rem solid #e9e9e9;
228
- }
229
- .eds-dropdown-list__item:last-child {
230
- border-bottom: none;
231
- }
232
- .eds-contrast .eds-dropdown-list__item {
233
- color: #181c56;
234
- border-color: #54568c;
235
- background-color: #ffffff;
236
- }
237
- .eds-dropdown-list__item--highlighted {
238
- background-color: #d1d4e3;
239
- }
240
- .eds-contrast .eds-dropdown-list__item--highlighted {
241
- background-color: #d1d4e3;
242
- }
243
- .eds-dropdown-list-icon {
244
- margin-left: 0.75rem;
245
- }
246
- /* DO NOT CHANGE!*/
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
269
  display: flex;
261
270
  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;
271
+ height: 100%;
272
+ width: 100%;
273
273
  }
274
274
  /* DO NOT CHANGE!*/
275
275
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.9",
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.2",
32
- "@entur/chip": "^0.6.46",
33
- "@entur/form": "^7.0.18",
34
- "@entur/icons": "^6.5.0",
35
- "@entur/loader": "^0.4.39",
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.27",
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": "72e76df00ea0a7313bd2c55e23aa96ad1e291ef1"
42
+ "gitHead": "9e5cbcf10c3e18dff42f0afb3b4cb40df557c14c"
43
43
  }