@entur/dropdown 6.0.8-beta.0 → 6.0.9-beta.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
@@ -1,3 +1,127 @@
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__toggle-button {
36
+ -webkit-appearance: none;
37
+ -moz-appearance: none;
38
+ appearance: none;
39
+ background: none;
40
+ border: none;
41
+ border-radius: 0;
42
+ color: inherit;
43
+ font-size: inherit;
44
+ font-family: inherit;
45
+ margin-right: -0.75rem;
46
+ padding: 0.5rem;
47
+ display: flex;
48
+ justify-content: center;
49
+ }
50
+ .eds-dropdown__toggle-button--open svg {
51
+ transform: rotate(180deg);
52
+ }
53
+ .eds-dropdown__toggle-button:focus {
54
+ outline-offset: 0.125rem;
55
+ outline: none;
56
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
57
+ }
58
+ .eds-contrast .eds-dropdown__toggle-button:focus {
59
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
60
+ }
61
+ /* DO NOT CHANGE!*/
62
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
63
+ .eds-dropdown-list {
64
+ border-radius: 0.25rem;
65
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
66
+ display: none;
67
+ list-style: none;
68
+ margin: 0;
69
+ max-height: 50vh;
70
+ padding: 0;
71
+ position: relative;
72
+ overflow-y: auto;
73
+ width: 100%;
74
+ z-index: 20;
75
+ }
76
+ .eds-contrast .eds-dropdown-list {
77
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
78
+ }
79
+ .eds-dropdown-list--open {
80
+ display: inline-block;
81
+ }
82
+ .eds-dropdown-list:focus {
83
+ outline: none;
84
+ }
85
+ @media all and (min-width: 50rem) {
86
+ .eds-dropdown-list {
87
+ max-height: 30vh;
88
+ }
89
+ }
90
+ .eds-dropdown-list__item {
91
+ align-items: center;
92
+ background-color: #f8f8f8;
93
+ border-bottom: 0.125rem solid #e9e9e9;
94
+ border-left: 0.125rem solid #e9e9e9;
95
+ border-right: 0.125rem solid #e9e9e9;
96
+ color: #181c56;
97
+ display: flex;
98
+ justify-content: space-between;
99
+ font-family: inherit;
100
+ font-size: 1rem;
101
+ line-height: 1.25rem;
102
+ padding: 0.75rem 1rem;
103
+ width: 100%;
104
+ }
105
+ .eds-dropdown-list__item:first-child {
106
+ border-top: 0.125rem solid #e9e9e9;
107
+ }
108
+ .eds-dropdown-list__item:last-child {
109
+ border-bottom: none;
110
+ }
111
+ .eds-contrast .eds-dropdown-list__item {
112
+ color: #181c56;
113
+ border-color: #54568c;
114
+ background-color: #ffffff;
115
+ }
116
+ .eds-dropdown-list__item--highlighted {
117
+ background-color: #d1d4e3;
118
+ }
119
+ .eds-contrast .eds-dropdown-list__item--highlighted {
120
+ background-color: #d1d4e3;
121
+ }
122
+ .eds-dropdown-list-icon {
123
+ margin-left: 0.75rem;
124
+ }
1
125
  /* DO NOT CHANGE!*/
2
126
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
127
  .eds-multi-select {
@@ -91,102 +215,6 @@
91
215
  }
92
216
  /* DO NOT CHANGE!*/
93
217
  /* 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
- .eds-inline-spinner {
182
- align-items: center;
183
- display: flex;
184
- justify-content: center;
185
- height: 100%;
186
- width: 100%;
187
- }
188
- /* DO NOT CHANGE!*/
189
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
190
218
  .eds-dropdown-wrapper {
191
219
  position: relative;
192
220
  }
@@ -245,38 +273,8 @@
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
  box-sizing: content-box;
278
- z-index: 20;
279
- width: 100%;
280
278
  max-height: 50vh;
281
279
  overflow-y: auto;
282
280
  padding: 0;
@@ -287,6 +285,10 @@
287
285
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
288
286
  cursor: default;
289
287
  }
288
+ .eds-dropdown__list__floating-container {
289
+ z-index: 20;
290
+ width: calc(100% + 0.25rem);
291
+ }
290
292
  .eds-dropdown__list:focus {
291
293
  outline: none;
292
294
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.8-beta.0",
3
+ "version": "6.0.9-beta.0",
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.92-beta.0",
31
- "@entur/button": "^3.2.34-beta.0",
32
- "@entur/chip": "^0.7.23-beta.0",
33
- "@entur/form": "^8.1.5-beta.0",
34
- "@entur/icons": "^7.4.2-beta.0",
35
- "@entur/loader": "^0.5.12-beta.0",
36
- "@entur/tokens": "^3.17.2-beta.0",
37
- "@entur/tooltip": "^5.1.1-beta.0",
30
+ "@entur/a11y": "^0.2.92",
31
+ "@entur/button": "^3.2.34",
32
+ "@entur/chip": "^0.7.23",
33
+ "@entur/form": "^8.1.5",
34
+ "@entur/icons": "^7.4.2",
35
+ "@entur/loader": "^0.5.12",
36
+ "@entur/tokens": "^3.17.2",
37
+ "@entur/tooltip": "^5.1.1",
38
38
  "@entur/utils": "^0.12.0",
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": "f6ea45ed1980eeed83c71cbb049cf726815dbb3d"
43
+ "gitHead": "cf21b6b037b7905d14ff6ec5972c06bcd0326e26"
44
44
  }