@entur/dropdown 5.3.3 → 5.3.4

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,34 +1,93 @@
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;
3
+ .eds-multi-select {
4
+ position: relative;
5
+ }
6
+ .eds-multi-select__selected-items {
7
+ display: flex;
8
+ align-items: center;
9
+ flex-wrap: wrap;
10
+ position: relative;
11
+ flex: 1 1 0%;
12
+ padding: 0.25rem;
13
+ }
14
+ .eds-multi-select__selected-items-tag.eds-tag-chip {
15
+ margin-left: 0.25rem;
12
16
  white-space: nowrap;
13
17
  }
14
- .eds-dropdown__searchable-selected-item__wrapper {
15
- max-width: 65%;
18
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
19
+ color: #181c56;
16
20
  }
17
-
18
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
19
- -moz-transition: none;
20
- transition: none;
21
+ .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
22
+ outline-offset: 0.125rem;
21
23
  }
22
-
23
- .eds-form-control.eds-dropdown__input::placeholder {
24
- transition: none;
24
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
25
+ color: #181c56;
26
+ background: #ebebf1;
27
+ border: 0.0625rem solid #d1d4e3;
25
28
  }
26
- .eds-inline-spinner {
27
- align-items: center;
29
+ .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
30
+ background: #babbcf;
31
+ }
32
+ .eds-multi-select__input {
33
+ flex: 1 1;
34
+ min-height: 44px;
28
35
  display: flex;
36
+ align-items: center;
37
+ }
38
+ .eds-multi-select__placeholder {
39
+ padding-left: 1.5rem;
40
+ line-height: 1.375rem;
41
+ font-size: 1rem;
42
+ }
43
+ .eds-checkbox-icon {
44
+ height: 1rem;
45
+ width: 1rem;
46
+ visibility: hidden;
47
+ }
48
+ .eds-checkbox-icon__path {
49
+ transform-origin: 50% 50%;
50
+ stroke-dasharray: 48;
51
+ stroke-dashoffset: 48;
52
+ stroke-width: 0.375rem;
53
+ }
54
+
55
+ .eds-multiselect {
56
+ position: relative;
57
+ }
58
+ .eds-multiselect__button {
59
+ text-overflow: ellipsis;
60
+ }
61
+
62
+ .eds-multiselect-checkbox {
63
+ display: inline-flex;
29
64
  justify-content: center;
30
- height: 100%;
31
- width: 100%;
65
+ align-items: center;
66
+ position: relative;
67
+ margin-right: 0.75rem;
68
+ height: 1.25rem;
69
+ width: 1.25rem;
70
+ border: 0.125rem solid #181c56;
71
+ border-radius: 0.0625rem;
72
+ background-color: transparent;
73
+ color: #ffffff;
74
+ }
75
+
76
+ .eds-multiselect-checkbox--checked {
77
+ background-color: #181c56;
78
+ }
79
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon {
80
+ visibility: visible;
81
+ }
82
+ .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
83
+ stroke: #ffffff;
84
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
85
+ }
86
+
87
+ @keyframes stroke {
88
+ 100% {
89
+ stroke-dashoffset: 0;
90
+ }
32
91
  }
33
92
  /* DO NOT CHANGE!*/
34
93
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -94,6 +153,13 @@
94
153
  .eds-dropdown-list-icon {
95
154
  margin-left: 0.75rem;
96
155
  }
156
+ .eds-inline-spinner {
157
+ align-items: center;
158
+ display: flex;
159
+ justify-content: center;
160
+ height: 100%;
161
+ width: 100%;
162
+ }
97
163
  /* DO NOT CHANGE!*/
98
164
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
165
  .eds-dropdown-wrapper {
@@ -154,6 +220,31 @@
154
220
  }
155
221
  /* DO NOT CHANGE!*/
156
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. */
157
248
  .eds-dropdown__toggle-button {
158
249
  -webkit-appearance: none;
159
250
  -moz-appearance: none;
@@ -182,97 +273,6 @@
182
273
  }
183
274
  /* DO NOT CHANGE!*/
184
275
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
185
- .eds-multi-select {
186
- position: relative;
187
- }
188
- .eds-multi-select__selected-items {
189
- display: flex;
190
- align-items: center;
191
- flex-wrap: wrap;
192
- position: relative;
193
- flex: 1 1 0%;
194
- padding: 0.25rem;
195
- }
196
- .eds-multi-select__selected-items-tag.eds-tag-chip {
197
- margin-left: 0.25rem;
198
- white-space: nowrap;
199
- }
200
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip svg {
201
- color: #181c56;
202
- }
203
- .eds-multi-select__selected-items-tag.eds-tag-chip:focus {
204
- outline-offset: 0.125rem;
205
- }
206
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip {
207
- color: #181c56;
208
- background: #ebebf1;
209
- border: 0.0625rem solid #d1d4e3;
210
- }
211
- .eds-contrast .eds-multi-select__selected-items-tag.eds-tag-chip .eds-tag-chip__close-button:hover {
212
- background: #babbcf;
213
- }
214
- .eds-multi-select__input {
215
- flex: 1 1;
216
- min-height: 44px;
217
- display: flex;
218
- align-items: center;
219
- }
220
- .eds-multi-select__placeholder {
221
- padding-left: 1.5rem;
222
- line-height: 1.375rem;
223
- font-size: 1rem;
224
- }
225
- .eds-checkbox-icon {
226
- height: 1rem;
227
- width: 1rem;
228
- visibility: hidden;
229
- }
230
- .eds-checkbox-icon__path {
231
- transform-origin: 50% 50%;
232
- stroke-dasharray: 48;
233
- stroke-dashoffset: 48;
234
- stroke-width: 0.375rem;
235
- }
236
-
237
- .eds-multiselect {
238
- position: relative;
239
- }
240
- .eds-multiselect__button {
241
- text-overflow: ellipsis;
242
- }
243
-
244
- .eds-multiselect-checkbox {
245
- display: inline-flex;
246
- justify-content: center;
247
- align-items: center;
248
- position: relative;
249
- margin-right: 0.75rem;
250
- height: 1.25rem;
251
- width: 1.25rem;
252
- border: 0.125rem solid #181c56;
253
- border-radius: 0.0625rem;
254
- background-color: transparent;
255
- color: #ffffff;
256
- }
257
-
258
- .eds-multiselect-checkbox--checked {
259
- background-color: #181c56;
260
- }
261
- .eds-multiselect-checkbox--checked .eds-checkbox-icon {
262
- visibility: visible;
263
- }
264
- .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
265
- stroke: #ffffff;
266
- animation: stroke ease-in-out 0.2s 0.1s forwards;
267
- }
268
-
269
- @keyframes stroke {
270
- 100% {
271
- stroke-dashoffset: 0;
272
- }
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;
@@ -494,6 +494,12 @@
494
494
  min-width: 6rem;
495
495
  max-width: 100%;
496
496
  }
497
+ .eds-dropdown__wrapper--has-tooltip {
498
+ padding-right: 2rem;
499
+ }
500
+ .eds-dropdown__wrapper--has-tooltip .eds-dropdown__list {
501
+ width: calc(100% - 2rem);
502
+ }
497
503
  .eds-dropdown__input {
498
504
  flex: 1;
499
505
  width: 0;
@@ -588,6 +594,12 @@
588
594
  .eds-dropdown.eds-form-control-wrapper .eds-form-control__append {
589
595
  top: 0.25rem;
590
596
  }
597
+ .eds-dropdown.eds-form-control-wrapper .eds-form-control__append.eds-form-control__append--tooltip {
598
+ color: var(--primary-text-color);
599
+ position: absolute;
600
+ top: 0.75rem;
601
+ right: -3rem;
602
+ }
591
603
  .eds-dropdown.eds-form-control-wrapper .eds-form-control__append .eds-loading-dots {
592
604
  height: 2rem;
593
605
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
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.77",
31
- "@entur/button": "^3.2.13",
32
- "@entur/chip": "^0.6.69",
33
- "@entur/form": "^7.0.41",
34
- "@entur/icons": "^6.15.2",
35
- "@entur/loader": "^0.4.57",
36
- "@entur/tokens": "^3.13.1",
37
- "@entur/tooltip": "^2.6.50",
30
+ "@entur/a11y": "^0.2.78",
31
+ "@entur/button": "^3.2.14",
32
+ "@entur/chip": "^0.6.70",
33
+ "@entur/form": "^7.0.42",
34
+ "@entur/icons": "^6.15.3",
35
+ "@entur/loader": "^0.4.58",
36
+ "@entur/tokens": "^3.13.2",
37
+ "@entur/tooltip": "^2.6.51",
38
38
  "@entur/utils": "^0.10.0",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^8.3.3"
41
41
  },
42
- "gitHead": "c36e1121738a702fe5ed92cd3f26636d7a4ef026"
42
+ "gitHead": "427e66ba68d33b8d1839714a48517b52afd5c2db"
43
43
  }