@entur/dropdown 5.0.28 → 5.0.29

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.
Files changed (2) hide show
  1. package/dist/styles.css +114 -110
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,34 +1,66 @@
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
  }
8
- /* DO NOT CHANGE!*/
9
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
- .eds-dropdown__searchable-selected-item {
11
- display: block;
12
- font-size: 1rem;
13
- line-height: 1rem;
14
- margin-right: -1rem;
15
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
16
- font-family: inherit;
17
- overflow-x: hidden;
18
- text-overflow: ellipsis;
19
- white-space: nowrap;
45
+ .eds-dropdown-list__item:first-child {
46
+ border-top: 0.125rem solid #e9e9e9;
20
47
  }
21
- .eds-dropdown__searchable-selected-item__wrapper {
22
- max-width: 65%;
48
+ .eds-dropdown-list__item:last-child {
49
+ border-bottom: none;
23
50
  }
24
-
25
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
26
- -moz-transition: none;
27
- transition: none;
51
+ .eds-contrast .eds-dropdown-list__item {
52
+ color: #181c56;
53
+ border-color: #54568c;
54
+ background-color: #ffffff;
28
55
  }
29
-
30
- .eds-form-control.eds-dropdown__input::placeholder {
31
- transition: none;
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;
32
64
  }
33
65
  /* DO NOT CHANGE!*/
34
66
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -123,67 +155,63 @@
123
155
  }
124
156
  /* DO NOT CHANGE!*/
125
157
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
126
- .eds-dropdown-list {
127
- border-radius: 0.25rem;
128
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
129
- display: none;
130
- list-style: none;
131
- margin: 0;
132
- max-height: 50vh;
133
- padding: 0;
134
- position: relative;
135
- overflow-y: auto;
136
- width: 100%;
137
- z-index: 20;
138
- }
139
- .eds-contrast .eds-dropdown-list {
140
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
158
+ .eds-dropdown__searchable-selected-item {
159
+ display: block;
160
+ font-size: 1rem;
161
+ line-height: 1rem;
162
+ margin-right: -1rem;
163
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
164
+ font-family: inherit;
165
+ overflow-x: hidden;
166
+ text-overflow: ellipsis;
167
+ white-space: nowrap;
141
168
  }
142
- .eds-dropdown-list--open {
143
- display: inline-block;
169
+ .eds-dropdown__searchable-selected-item__wrapper {
170
+ max-width: 65%;
144
171
  }
145
- .eds-dropdown-list:focus {
146
- outline: none;
172
+
173
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
174
+ -moz-transition: none;
175
+ transition: none;
147
176
  }
148
- @media all and (min-width: 50rem) {
149
- .eds-dropdown-list {
150
- max-height: 30vh;
151
- }
177
+
178
+ .eds-form-control.eds-dropdown__input::placeholder {
179
+ transition: none;
152
180
  }
153
- .eds-dropdown-list__item {
181
+ .eds-inline-spinner {
154
182
  align-items: center;
155
- background-color: #f8f8f8;
156
- border-bottom: 0.125rem solid #e9e9e9;
157
- border-left: 0.125rem solid #e9e9e9;
158
- border-right: 0.125rem solid #e9e9e9;
159
- color: #181c56;
160
183
  display: flex;
161
- justify-content: space-between;
162
- font-family: inherit;
163
- font-size: 1rem;
164
- line-height: 1.25rem;
165
- padding: 0.75rem 1rem;
184
+ justify-content: center;
185
+ height: 100%;
166
186
  width: 100%;
167
187
  }
168
- .eds-dropdown-list__item:first-child {
169
- border-top: 0.125rem solid #e9e9e9;
170
- }
171
- .eds-dropdown-list__item:last-child {
172
- border-bottom: none;
173
- }
174
- .eds-contrast .eds-dropdown-list__item {
175
- color: #181c56;
176
- border-color: #54568c;
177
- background-color: #ffffff;
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;
178
204
  }
179
- .eds-dropdown-list__item--highlighted {
180
- background-color: #d1d4e3;
205
+ .eds-dropdown__toggle-button--open svg {
206
+ transform: rotate(180deg);
181
207
  }
182
- .eds-contrast .eds-dropdown-list__item--highlighted {
183
- background-color: #d1d4e3;
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;
184
212
  }
185
- .eds-dropdown-list-icon {
186
- margin-left: 0.75rem;
213
+ .eds-contrast .eds-dropdown__toggle-button:focus {
214
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
187
215
  }
188
216
  /* DO NOT CHANGE!*/
189
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -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;
@@ -410,14 +410,13 @@
410
410
  margin-right: 0.25rem;
411
411
  }
412
412
  .eds-contrast .eds-dropdown__appendix__clear-button:hover {
413
- background: #d1d3d3;
413
+ background-color: #d1d4e3;
414
414
  }
415
415
  .eds-contrast .eds-dropdown__appendix__clear-button:active {
416
- background: #949494;
416
+ background: #babbcf;
417
417
  }
418
418
  .eds-contrast .eds-dropdown__appendix__clear-button:focus {
419
- border: 0.0625rem solid #181c56;
420
- outline: none;
419
+ outline: 2px solid #181c56;
421
420
  }
422
421
  .eds-dropdown__appendix__clear-button__tooltip {
423
422
  white-space: nowrap;
@@ -454,14 +453,13 @@
454
453
  margin-left: calc(0.5rem + 2px);
455
454
  }
456
455
  .eds-contrast .eds-dropdown__appendix__toggle-button:hover {
457
- background: #d1d3d3;
456
+ background-color: #d1d4e3;
458
457
  }
459
458
  .eds-contrast .eds-dropdown__appendix__toggle-button:active {
460
- background: #949494;
459
+ background: #babbcf;
461
460
  }
462
461
  .eds-contrast .eds-dropdown__appendix__toggle-button:focus {
463
- border: none;
464
- outline: none;
462
+ outline: 2px solid #181c56;
465
463
  }
466
464
  /* DO NOT CHANGE!*/
467
465
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -500,6 +498,12 @@
500
498
  .eds-contrast .eds-dropdown__selected-item__placeholder--readonly {
501
499
  color: #aeb7e2;
502
500
  }
501
+ .eds-dropdown__selected-item.focus-visible {
502
+ outline: none;
503
+ }
504
+ .eds-dropdown__selected-item:focus-visible {
505
+ outline: none;
506
+ }
503
507
  .eds-dropdown--searchable__selected-item {
504
508
  position: relative;
505
509
  top: 5px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.28",
3
+ "version": "5.0.29",
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.74",
31
- "@entur/button": "^3.2.5",
32
- "@entur/chip": "^0.6.60",
33
- "@entur/form": "^7.0.32",
31
+ "@entur/button": "^3.2.6",
32
+ "@entur/chip": "^0.6.61",
33
+ "@entur/form": "^7.0.33",
34
34
  "@entur/icons": "^6.13.2",
35
35
  "@entur/loader": "^0.4.51",
36
36
  "@entur/tokens": "^3.12.0",
37
- "@entur/tooltip": "^2.6.41",
37
+ "@entur/tooltip": "^2.6.42",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "85dd6dbaf86fc2488dd2152c213788f9d4a8a64f"
42
+ "gitHead": "05cb986bc4373b1fe20d51c298c4395dd2500843"
43
43
  }