@entur/dropdown 5.0.21 → 5.0.23-alpha.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.
package/dist/styles.css CHANGED
@@ -7,6 +7,95 @@
7
7
  }
8
8
  /* DO NOT CHANGE!*/
9
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;
20
+ }
21
+ .eds-dropdown__searchable-selected-item__wrapper {
22
+ max-width: 65%;
23
+ }
24
+
25
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
26
+ -moz-transition: none;
27
+ transition: none;
28
+ }
29
+
30
+ .eds-form-control.eds-dropdown__input::placeholder {
31
+ transition: none;
32
+ }
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 {
63
+ 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
+ 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;
75
+ width: 100%;
76
+ }
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
+ /* DO NOT CHANGE!*/
98
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
99
  .eds-multi-select {
11
100
  position: relative;
12
101
  }
@@ -98,67 +187,31 @@
98
187
  }
99
188
  /* DO NOT CHANGE!*/
100
189
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
101
- .eds-dropdown-list {
102
- border-radius: 0.25rem;
103
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
104
- display: none;
105
- list-style: none;
106
- margin: 0;
107
- max-height: 50vh;
108
- padding: 0;
109
- position: relative;
110
- overflow-y: auto;
111
- width: 100%;
112
- z-index: 20;
113
- }
114
- .eds-contrast .eds-dropdown-list {
115
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
116
- }
117
- .eds-dropdown-list--open {
118
- display: inline-block;
119
- }
120
- .eds-dropdown-list:focus {
121
- outline: none;
122
- }
123
- @media all and (min-width: 50rem) {
124
- .eds-dropdown-list {
125
- max-height: 30vh;
126
- }
127
- }
128
- .eds-dropdown-list__item {
129
- align-items: center;
130
- background-color: #f8f8f8;
131
- border-bottom: 0.125rem solid #e9e9e9;
132
- border-left: 0.125rem solid #e9e9e9;
133
- border-right: 0.125rem solid #e9e9e9;
134
- color: #181c56;
135
- display: flex;
136
- justify-content: space-between;
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;
137
199
  font-family: inherit;
138
- font-size: 1rem;
139
- line-height: 1.25rem;
140
- padding: 0.75rem 1rem;
141
- width: 100%;
142
- }
143
- .eds-dropdown-list__item:first-child {
144
- border-top: 0.125rem solid #e9e9e9;
145
- }
146
- .eds-dropdown-list__item:last-child {
147
- border-bottom: none;
148
- }
149
- .eds-contrast .eds-dropdown-list__item {
150
- color: #181c56;
151
- border-color: #54568c;
152
- background-color: #ffffff;
200
+ margin-right: -0.75rem;
201
+ padding: 0.5rem;
202
+ display: flex;
203
+ justify-content: center;
153
204
  }
154
- .eds-dropdown-list__item--highlighted {
155
- background-color: #d1d4e3;
205
+ .eds-dropdown__toggle-button--open svg {
206
+ transform: rotate(180deg);
156
207
  }
157
- .eds-contrast .eds-dropdown-list__item--highlighted {
158
- 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;
159
212
  }
160
- .eds-dropdown-list-icon {
161
- 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;
162
215
  }
163
216
  /* DO NOT CHANGE!*/
164
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -220,59 +273,6 @@
220
273
  }
221
274
  /* DO NOT CHANGE!*/
222
275
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
223
- .eds-dropdown__toggle-button {
224
- -webkit-appearance: none;
225
- -moz-appearance: none;
226
- appearance: none;
227
- background: none;
228
- border: none;
229
- border-radius: 0;
230
- color: inherit;
231
- font-size: inherit;
232
- font-family: inherit;
233
- margin-right: -0.75rem;
234
- padding: 0.5rem;
235
- display: flex;
236
- justify-content: center;
237
- }
238
- .eds-dropdown__toggle-button--open svg {
239
- transform: rotate(180deg);
240
- }
241
- .eds-dropdown__toggle-button:focus {
242
- outline-offset: 0.125rem;
243
- outline: none;
244
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
245
- }
246
- .eds-contrast .eds-dropdown__toggle-button:focus {
247
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
248
- }
249
- /* DO NOT CHANGE!*/
250
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
251
- .eds-dropdown__searchable-selected-item {
252
- display: block;
253
- font-size: 1rem;
254
- line-height: 1rem;
255
- margin-right: -1rem;
256
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
257
- font-family: inherit;
258
- overflow-x: hidden;
259
- text-overflow: ellipsis;
260
- white-space: nowrap;
261
- }
262
- .eds-dropdown__searchable-selected-item__wrapper {
263
- max-width: 65%;
264
- }
265
-
266
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
267
- -moz-transition: none;
268
- transition: none;
269
- }
270
-
271
- .eds-form-control.eds-dropdown__input::placeholder {
272
- transition: none;
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.21",
3
+ "version": "5.0.23-alpha.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.71",
31
- "@entur/button": "^3.1.10",
32
- "@entur/chip": "^0.6.54",
33
- "@entur/form": "^7.0.26",
34
- "@entur/icons": "^6.12.0",
35
- "@entur/loader": "^0.4.47",
36
- "@entur/tokens": "^3.11.0",
37
- "@entur/tooltip": "^2.6.35",
30
+ "@entur/a11y": "^0.2.72-alpha.0",
31
+ "@entur/button": "^3.1.11-alpha.0",
32
+ "@entur/chip": "^0.6.55-alpha.0",
33
+ "@entur/form": "^7.0.27-alpha.0",
34
+ "@entur/icons": "^6.12.1-alpha.0",
35
+ "@entur/loader": "^0.4.48-alpha.0",
36
+ "@entur/tokens": "^3.11.1-alpha.0",
37
+ "@entur/tooltip": "^2.6.36-alpha.0",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "6e557eb43d533d387713194d8b302ccc101bad20"
42
+ "gitHead": "957d432b3633e7f973ea9ffb0219d21f6b598980"
43
43
  }