@entur/dropdown 3.0.28 → 3.0.30

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
@@ -13,7 +13,8 @@
13
13
  }
14
14
  .eds-contrast .eds-dropdown option {
15
15
  color: #181c56;
16
- }/* DO NOT CHANGE!*/
16
+ }@charset "UTF-8";
17
+ /* DO NOT CHANGE!*/
17
18
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
18
19
  .eds-dropdown-list {
19
20
  border-radius: 0.25rem;
@@ -29,7 +30,7 @@
29
30
  z-index: 20;
30
31
  }
31
32
  .eds-contrast .eds-dropdown-list {
32
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
33
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
33
34
  }
34
35
  .eds-dropdown-list--open {
35
36
  display: inline-block;
@@ -69,10 +70,10 @@
69
70
  border-color: #54568c;
70
71
  background-color: #ffffff;
71
72
  }
72
- .eds-dropdown-list__item--highlighted {
73
+ .eds-dropdown-list__item--highlighted  {
73
74
  background-color: #d1d4e3;
74
75
  }
75
- .eds-contrast .eds-dropdown-list__item--highlighted {
76
+ .eds-contrast .eds-dropdown-list__item--highlighted  {
76
77
  background-color: #d1d4e3;
77
78
  }
78
79
 
@@ -161,14 +162,7 @@
161
162
  }
162
163
  .eds-multiselect-checkbox--checked .eds-checkbox-icon__path {
163
164
  stroke: #ffffff;
164
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
165
- animation: stroke ease-in-out 0.2s 0.1s forwards;
166
- }
167
-
168
- @-webkit-keyframes stroke {
169
- 100% {
170
- stroke-dashoffset: 0;
171
- }
165
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
172
166
  }
173
167
 
174
168
  @keyframes stroke {
@@ -205,14 +199,10 @@
205
199
  transition: none;
206
200
  }
207
201
 
208
- .eds-form-control.eds-dropdown__input:-ms-input-placeholder {
209
- -ms-transition: none;
210
- transition: none;
211
- }
212
-
213
202
  .eds-form-control.eds-dropdown__input::placeholder {
214
203
  transition: none;
215
- }/* DO NOT CHANGE!*/
204
+ }@charset "UTF-8";
205
+ /* DO NOT CHANGE!*/
216
206
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
217
207
  .eds-searchable-dropdown__wrapper {
218
208
  position: relative;
@@ -324,7 +314,7 @@
324
314
  .eds-searchable-dropdown__list__item-icon {
325
315
  margin-left: 0.75rem;
326
316
  }
327
- .eds-searchable-dropdown__list__item--highlighted {
317
+ .eds-searchable-dropdown__list__item--highlighted  {
328
318
  background-color: #d1d4e3;
329
319
  }
330
320
 
@@ -335,13 +325,6 @@
335
325
  bottom: 1px;
336
326
  }
337
327
 
338
- .eds-form-control.eds-searchable-dropdown__input:-ms-input-placeholder {
339
- -ms-transition: none;
340
- transition: none;
341
- position: relative;
342
- bottom: 1px;
343
- }
344
-
345
328
  .eds-form-control.eds-searchable-dropdown__input::placeholder {
346
329
  transition: none;
347
330
  position: relative;
@@ -363,10 +346,6 @@
363
346
  color: #656782;
364
347
  }
365
348
 
366
- .eds-dropdown__input:-ms-input-placeholder {
367
- color: #656782;
368
- }
369
-
370
349
  .eds-dropdown__input::placeholder {
371
350
  color: #656782;
372
351
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  /** A dropdown item has a string label and a string value */
3
- export declare type NormalizedDropdownItemType = {
3
+ export type NormalizedDropdownItemType = {
4
4
  value: string;
5
5
  label: string;
6
6
  icons?: React.ComponentType<any>[];
7
7
  };
8
- export declare type DropdownItemType = {
8
+ export type DropdownItemType = {
9
9
  value?: string;
10
10
  label: string;
11
11
  icons?: React.ComponentType<any>[];
@@ -1,7 +1,7 @@
1
1
  import { DropdownItemType, NormalizedDropdownItemType } from './useNormalizedItems';
2
- declare type AsyncDropdownItemType = (inputType: string) => Promise<DropdownItemType[]>;
3
- declare type SyncDropdownItemType = (inputType: string) => DropdownItemType[];
4
- export declare type PotentiallyAsyncDropdownItemType = DropdownItemType[] | SyncDropdownItemType | AsyncDropdownItemType;
2
+ type AsyncDropdownItemType = (inputType: string) => Promise<DropdownItemType[]>;
3
+ type SyncDropdownItemType = (inputType: string) => DropdownItemType[];
4
+ export type PotentiallyAsyncDropdownItemType = DropdownItemType[] | SyncDropdownItemType | AsyncDropdownItemType;
5
5
  export declare const useResolvedItems: (itemsOrItemsResolver: PotentiallyAsyncDropdownItemType, debounceTimeout?: number) => {
6
6
  fetchItems: (arg: string) => void;
7
7
  loading: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "3.0.28",
3
+ "version": "3.0.30",
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.55",
31
- "@entur/button": "^2.10.10",
32
- "@entur/chip": "^0.6.18",
33
- "@entur/form": "^5.4.15",
34
- "@entur/icons": "^5.4.3",
35
- "@entur/loader": "^0.4.18",
36
- "@entur/tokens": "^3.4.5",
37
- "@entur/tooltip": "^2.6.2",
38
- "@entur/utils": "^0.5.1",
30
+ "@entur/a11y": "^0.2.58",
31
+ "@entur/button": "^2.10.13",
32
+ "@entur/chip": "^0.6.20",
33
+ "@entur/form": "^5.4.17",
34
+ "@entur/icons": "^5.7.0",
35
+ "@entur/loader": "^0.4.21",
36
+ "@entur/tokens": "^3.7.0",
37
+ "@entur/tooltip": "^2.6.4",
38
+ "@entur/utils": "^0.5.4",
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^6.1.7"
41
41
  },
42
- "gitHead": "224040bb9f98c2c8975ce76f0786265c9e3459e2"
42
+ "gitHead": "ff44073d29948fc811c0dbd6921c003794285c06"
43
43
  }