@entur/dropdown 5.0.25 → 5.0.27-RC.0

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 +88 -88
  2. package/package.json +10 -10
package/dist/styles.css CHANGED
@@ -1,10 +1,3 @@
1
- .eds-inline-spinner {
2
- align-items: center;
3
- display: flex;
4
- justify-content: center;
5
- height: 100%;
6
- width: 100%;
7
- }
8
1
  /* DO NOT CHANGE!*/
9
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
3
  .eds-dropdown__searchable-selected-item {
@@ -30,70 +23,13 @@
30
23
  .eds-form-control.eds-dropdown__input::placeholder {
31
24
  transition: none;
32
25
  }
33
- /* DO NOT CHANGE!*/
34
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
35
- .eds-dropdown-list {
36
- border-radius: 0.25rem;
37
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
38
- display: none;
39
- list-style: none;
40
- margin: 0;
41
- max-height: 50vh;
42
- padding: 0;
43
- position: relative;
44
- overflow-y: auto;
45
- width: 100%;
46
- z-index: 20;
47
- }
48
- .eds-contrast .eds-dropdown-list {
49
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
50
- }
51
- .eds-dropdown-list--open {
52
- display: inline-block;
53
- }
54
- .eds-dropdown-list:focus {
55
- outline: none;
56
- }
57
- @media all and (min-width: 50rem) {
58
- .eds-dropdown-list {
59
- max-height: 30vh;
60
- }
61
- }
62
- .eds-dropdown-list__item {
26
+ .eds-inline-spinner {
63
27
  align-items: center;
64
- background-color: #f8f8f8;
65
- border-bottom: 0.125rem solid #e9e9e9;
66
- border-left: 0.125rem solid #e9e9e9;
67
- border-right: 0.125rem solid #e9e9e9;
68
- color: #181c56;
69
28
  display: flex;
70
- justify-content: space-between;
71
- font-family: inherit;
72
- font-size: 1rem;
73
- line-height: 1.25rem;
74
- padding: 0.75rem 1rem;
29
+ justify-content: center;
30
+ height: 100%;
75
31
  width: 100%;
76
32
  }
77
- .eds-dropdown-list__item:first-child {
78
- border-top: 0.125rem solid #e9e9e9;
79
- }
80
- .eds-dropdown-list__item:last-child {
81
- border-bottom: none;
82
- }
83
- .eds-contrast .eds-dropdown-list__item {
84
- color: #181c56;
85
- border-color: #54568c;
86
- background-color: #ffffff;
87
- }
88
- .eds-dropdown-list__item--highlighted {
89
- background-color: #d1d4e3;
90
- }
91
- .eds-contrast .eds-dropdown-list__item--highlighted {
92
- background-color: #d1d4e3;
93
- }
94
- .eds-dropdown-list-icon {
95
- margin-left: 0.75rem;
96
- }
97
33
  /* DO NOT CHANGE!*/
98
34
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
35
  .eds-multi-select {
@@ -187,31 +123,67 @@
187
123
  }
188
124
  /* DO NOT CHANGE!*/
189
125
  /* 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;
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;
204
138
  }
205
- .eds-dropdown__toggle-button--open svg {
206
- transform: rotate(180deg);
139
+ .eds-contrast .eds-dropdown-list {
140
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
207
141
  }
208
- .eds-dropdown__toggle-button:focus {
209
- outline-offset: 0.125rem;
142
+ .eds-dropdown-list--open {
143
+ display: inline-block;
144
+ }
145
+ .eds-dropdown-list:focus {
210
146
  outline: none;
211
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
212
147
  }
213
- .eds-contrast .eds-dropdown__toggle-button:focus {
214
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
148
+ @media all and (min-width: 50rem) {
149
+ .eds-dropdown-list {
150
+ max-height: 30vh;
151
+ }
152
+ }
153
+ .eds-dropdown-list__item {
154
+ 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
+ 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;
166
+ width: 100%;
167
+ }
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;
178
+ }
179
+ .eds-dropdown-list__item--highlighted {
180
+ background-color: #d1d4e3;
181
+ }
182
+ .eds-contrast .eds-dropdown-list__item--highlighted {
183
+ background-color: #d1d4e3;
184
+ }
185
+ .eds-dropdown-list-icon {
186
+ margin-left: 0.75rem;
215
187
  }
216
188
  /* DO NOT CHANGE!*/
217
189
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -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.25",
3
+ "version": "5.0.27-RC.0",
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.72",
31
- "@entur/button": "^3.2.2",
32
- "@entur/chip": "^0.6.57",
33
- "@entur/form": "^7.0.29",
34
- "@entur/icons": "^6.12.1",
35
- "@entur/loader": "^0.4.48",
36
- "@entur/tokens": "^3.11.1",
37
- "@entur/tooltip": "^2.6.38",
30
+ "@entur/a11y": "^0.2.73-RC.0",
31
+ "@entur/button": "^3.2.4-RC.0",
32
+ "@entur/chip": "^0.6.59-RC.0",
33
+ "@entur/form": "^7.0.31-RC.0",
34
+ "@entur/icons": "^6.13.1-RC.0",
35
+ "@entur/loader": "^0.4.50-RC.0",
36
+ "@entur/tokens": "^3.11.2-RC.0",
37
+ "@entur/tooltip": "^2.6.40-RC.0",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "3fc001a78ef085d8fd22bb8aa245ec488214de72"
42
+ "gitHead": "ffc1bbef705504dd4e8df8abccc435dd01513ce3"
43
43
  }