@entur/dropdown 6.0.3-RC.0 → 6.0.3-RC.2

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,76 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
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 {
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;
37
- display: flex;
38
- justify-content: space-between;
39
- font-family: inherit;
40
- font-size: 1rem;
41
- line-height: 1.25rem;
42
- padding: 0.75rem 1rem;
43
- width: 100%;
44
- }
45
- .eds-dropdown-list__item:first-child {
46
- border-top: 0.125rem solid #e9e9e9;
47
- }
48
- .eds-dropdown-list__item:last-child {
49
- border-bottom: none;
50
- }
51
- .eds-contrast .eds-dropdown-list__item {
52
- color: #181c56;
53
- border-color: #54568c;
54
- background-color: #ffffff;
55
- }
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;
64
- }
65
- .eds-inline-spinner {
66
- align-items: center;
67
- display: flex;
68
- justify-content: center;
69
- height: 100%;
70
- width: 100%;
71
- }
72
- /* DO NOT CHANGE!*/
73
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
74
3
  .eds-multi-select {
75
4
  position: relative;
76
5
  }
@@ -162,28 +91,74 @@
162
91
  }
163
92
  /* DO NOT CHANGE!*/
164
93
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
165
- .eds-dropdown__searchable-selected-item {
166
- display: block;
167
- font-size: 1rem;
168
- line-height: 1rem;
169
- margin-right: -1rem;
170
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
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;
171
130
  font-family: inherit;
172
- overflow-x: hidden;
173
- text-overflow: ellipsis;
174
- white-space: nowrap;
131
+ font-size: 1rem;
132
+ line-height: 1.25rem;
133
+ padding: 0.75rem 1rem;
134
+ width: 100%;
175
135
  }
176
- .eds-dropdown__searchable-selected-item__wrapper {
177
- max-width: 65%;
136
+ .eds-dropdown-list__item:first-child {
137
+ border-top: 0.125rem solid #e9e9e9;
178
138
  }
179
-
180
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
181
- -moz-transition: none;
182
- transition: none;
139
+ .eds-dropdown-list__item:last-child {
140
+ border-bottom: none;
183
141
  }
184
-
185
- .eds-form-control.eds-dropdown__input::placeholder {
186
- transition: none;
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
+ .eds-inline-spinner {
157
+ align-items: center;
158
+ display: flex;
159
+ justify-content: center;
160
+ height: 100%;
161
+ width: 100%;
187
162
  }
188
163
  /* DO NOT CHANGE!*/
189
164
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -245,6 +220,31 @@
245
220
  }
246
221
  /* DO NOT CHANGE!*/
247
222
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
223
+ .eds-dropdown__searchable-selected-item {
224
+ display: block;
225
+ font-size: 1rem;
226
+ line-height: 1rem;
227
+ margin-right: -1rem;
228
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
229
+ font-family: inherit;
230
+ overflow-x: hidden;
231
+ text-overflow: ellipsis;
232
+ white-space: nowrap;
233
+ }
234
+ .eds-dropdown__searchable-selected-item__wrapper {
235
+ max-width: 65%;
236
+ }
237
+
238
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
239
+ -moz-transition: none;
240
+ transition: none;
241
+ }
242
+
243
+ .eds-form-control.eds-dropdown__input::placeholder {
244
+ transition: none;
245
+ }
246
+ /* DO NOT CHANGE!*/
247
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
248
248
  .eds-dropdown__toggle-button {
249
249
  -webkit-appearance: none;
250
250
  -moz-appearance: none;
@@ -285,6 +285,7 @@
285
285
  border: 0.125rem solid var(--components-form-basemenu-border);
286
286
  border-radius: 0.25rem;
287
287
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
288
+ cursor: default;
288
289
  }
289
290
  .eds-dropdown__list:focus {
290
291
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.3-RC.0",
3
+ "version": "6.0.3-RC.2",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -27,18 +27,18 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.90-RC.0",
31
- "@entur/button": "^3.2.31-RC.0",
32
- "@entur/chip": "^0.7.18-RC.0",
33
- "@entur/form": "^8.1.0-RC.0",
34
- "@entur/icons": "^7.3.0-RC.0",
35
- "@entur/loader": "^0.5.9-RC.0",
30
+ "@entur/a11y": "^0.2.90-RC.1",
31
+ "@entur/button": "^3.2.31-RC.1",
32
+ "@entur/chip": "^0.7.18-RC.1",
33
+ "@entur/form": "^8.1.0-RC.1",
34
+ "@entur/icons": "^7.3.0-RC.1",
35
+ "@entur/loader": "^0.5.9-RC.1",
36
36
  "@entur/tokens": "^3.17.0",
37
- "@entur/tooltip": "^4.0.0-RC.0",
38
- "@entur/utils": "^0.11.2-RC.0",
37
+ "@entur/tooltip": "^4.0.0-RC.1",
38
+ "@entur/utils": "^0.11.2-RC.1",
39
39
  "@floating-ui/react-dom": "^2.1.0",
40
40
  "classnames": "^2.3.1",
41
41
  "downshift": "^9.0.8"
42
42
  },
43
- "gitHead": "f279e609e10d40dd3ff47b09bd2828edf2bbcb7b"
43
+ "gitHead": "cae8c3d33759ad14480e6c3f42f864d7969edf3a"
44
44
  }