@entur/dropdown 5.0.20 → 5.0.22

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,94 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-dropdown__searchable-selected-item {
4
- display: block;
5
- font-size: 1rem;
6
- line-height: 1rem;
7
- margin-right: -1rem;
8
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
9
- font-family: inherit;
10
- overflow-x: hidden;
11
- text-overflow: ellipsis;
12
- white-space: nowrap;
13
- }
14
- .eds-dropdown__searchable-selected-item__wrapper {
15
- max-width: 65%;
16
- }
17
-
18
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
19
- -moz-transition: none;
20
- transition: none;
21
- }
22
-
23
- .eds-form-control.eds-dropdown__input::placeholder {
24
- transition: none;
25
- }
26
- /* DO NOT CHANGE!*/
27
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
28
- .eds-dropdown-list {
29
- border-radius: 0.25rem;
30
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
31
- display: none;
32
- list-style: none;
33
- margin: 0;
34
- max-height: 50vh;
35
- padding: 0;
36
- position: relative;
37
- overflow-y: auto;
38
- width: 100%;
39
- z-index: 20;
40
- }
41
- .eds-contrast .eds-dropdown-list {
42
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
43
- }
44
- .eds-dropdown-list--open {
45
- display: inline-block;
46
- }
47
- .eds-dropdown-list:focus {
48
- outline: none;
49
- }
50
- @media all and (min-width: 50rem) {
51
- .eds-dropdown-list {
52
- max-height: 30vh;
53
- }
54
- }
55
- .eds-dropdown-list__item {
56
- align-items: center;
57
- background-color: #f8f8f8;
58
- border-bottom: 0.125rem solid #e9e9e9;
59
- border-left: 0.125rem solid #e9e9e9;
60
- border-right: 0.125rem solid #e9e9e9;
61
- color: #181c56;
62
- display: flex;
63
- justify-content: space-between;
64
- font-family: inherit;
65
- font-size: 1rem;
66
- line-height: 1.25rem;
67
- padding: 0.75rem 1rem;
68
- width: 100%;
69
- }
70
- .eds-dropdown-list__item:first-child {
71
- border-top: 0.125rem solid #e9e9e9;
72
- }
73
- .eds-dropdown-list__item:last-child {
74
- border-bottom: none;
75
- }
76
- .eds-contrast .eds-dropdown-list__item {
77
- color: #181c56;
78
- border-color: #54568c;
79
- background-color: #ffffff;
80
- }
81
- .eds-dropdown-list__item--highlighted {
82
- background-color: #d1d4e3;
83
- }
84
- .eds-contrast .eds-dropdown-list__item--highlighted {
85
- background-color: #d1d4e3;
86
- }
87
- .eds-dropdown-list-icon {
88
- margin-left: 0.75rem;
89
- }
90
- /* DO NOT CHANGE!*/
91
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
92
3
  .eds-multi-select {
93
4
  position: relative;
94
5
  }
@@ -178,6 +89,123 @@
178
89
  stroke-dashoffset: 0;
179
90
  }
180
91
  }
92
+ /* DO NOT CHANGE!*/
93
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
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;
106
+ }
107
+ .eds-contrast .eds-dropdown-list {
108
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
109
+ }
110
+ .eds-dropdown-list--open {
111
+ display: inline-block;
112
+ }
113
+ .eds-dropdown-list:focus {
114
+ outline: none;
115
+ }
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
+ /* DO NOT CHANGE!*/
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
+ }
181
209
  .eds-inline-spinner {
182
210
  align-items: center;
183
211
  display: flex;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.20",
3
+ "version": "5.0.22",
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.71",
31
- "@entur/button": "^3.1.9",
32
- "@entur/chip": "^0.6.53",
33
- "@entur/form": "^7.0.25",
34
- "@entur/icons": "^6.11.2",
35
- "@entur/loader": "^0.4.46",
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
36
  "@entur/tokens": "^3.11.0",
37
- "@entur/tooltip": "^2.6.34",
37
+ "@entur/tooltip": "^2.6.35",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^7.6.1"
41
41
  },
42
- "gitHead": "cd8bd67e916e644093ba1390154ccc96fa6f048f"
42
+ "gitHead": "2f0cf444d6a85a45199d8286b97fd02536dfb9f6"
43
43
  }