@entur/dropdown 5.0.25 → 5.0.26

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 +117 -117
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -1,99 +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
- /* 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;
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
1
  /* DO NOT CHANGE!*/
98
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
3
  .eds-multi-select {
@@ -187,31 +91,99 @@
187
91
  }
188
92
  /* DO NOT CHANGE!*/
189
93
  /* 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;
94
+ .eds-dropdown-list {
95
+ border-radius: 0.25rem;
96
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
97
+ display: none;
98
+ list-style: none;
99
+ margin: 0;
100
+ max-height: 50vh;
101
+ padding: 0;
102
+ position: relative;
103
+ overflow-y: auto;
104
+ width: 100%;
105
+ z-index: 20;
204
106
  }
205
- .eds-dropdown__toggle-button--open svg {
206
- transform: rotate(180deg);
107
+ .eds-contrast .eds-dropdown-list {
108
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
207
109
  }
208
- .eds-dropdown__toggle-button:focus {
209
- outline-offset: 0.125rem;
110
+ .eds-dropdown-list--open {
111
+ display: inline-block;
112
+ }
113
+ .eds-dropdown-list:focus {
210
114
  outline: none;
211
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
212
115
  }
213
- .eds-contrast .eds-dropdown__toggle-button:focus {
214
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
116
+ @media all and (min-width: 50rem) {
117
+ .eds-dropdown-list {
118
+ max-height: 30vh;
119
+ }
120
+ }
121
+ .eds-dropdown-list__item {
122
+ align-items: center;
123
+ background-color: #f8f8f8;
124
+ border-bottom: 0.125rem solid #e9e9e9;
125
+ border-left: 0.125rem solid #e9e9e9;
126
+ border-right: 0.125rem solid #e9e9e9;
127
+ color: #181c56;
128
+ display: flex;
129
+ justify-content: space-between;
130
+ font-family: inherit;
131
+ font-size: 1rem;
132
+ line-height: 1.25rem;
133
+ padding: 0.75rem 1rem;
134
+ width: 100%;
135
+ }
136
+ .eds-dropdown-list__item:first-child {
137
+ border-top: 0.125rem solid #e9e9e9;
138
+ }
139
+ .eds-dropdown-list__item:last-child {
140
+ border-bottom: none;
141
+ }
142
+ .eds-contrast .eds-dropdown-list__item {
143
+ color: #181c56;
144
+ border-color: #54568c;
145
+ background-color: #ffffff;
146
+ }
147
+ .eds-dropdown-list__item--highlighted {
148
+ background-color: #d1d4e3;
149
+ }
150
+ .eds-contrast .eds-dropdown-list__item--highlighted {
151
+ background-color: #d1d4e3;
152
+ }
153
+ .eds-dropdown-list-icon {
154
+ margin-left: 0.75rem;
155
+ }
156
+ /* DO NOT CHANGE!*/
157
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
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;
168
+ }
169
+ .eds-dropdown__searchable-selected-item__wrapper {
170
+ max-width: 65%;
171
+ }
172
+
173
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
174
+ -moz-transition: none;
175
+ transition: none;
176
+ }
177
+
178
+ .eds-form-control.eds-dropdown__input::placeholder {
179
+ transition: none;
180
+ }
181
+ .eds-inline-spinner {
182
+ align-items: center;
183
+ display: flex;
184
+ justify-content: center;
185
+ height: 100%;
186
+ width: 100%;
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.26",
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.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",
31
+ "@entur/button": "^3.2.3",
32
+ "@entur/chip": "^0.6.58",
33
+ "@entur/form": "^7.0.30",
34
+ "@entur/icons": "^6.13.0",
35
+ "@entur/loader": "^0.4.49",
36
36
  "@entur/tokens": "^3.11.1",
37
- "@entur/tooltip": "^2.6.38",
37
+ "@entur/tooltip": "^2.6.39",
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": "298374e622bca3ae3bbb7226bdd94890be5f82c8"
43
43
  }