@entur/dropdown 5.2.0-beta.0 → 5.2.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/dropdown.cjs.development.js +15 -16
- package/dist/dropdown.cjs.development.js.map +1 -1
- package/dist/dropdown.cjs.production.min.js +1 -1
- package/dist/dropdown.cjs.production.min.js.map +1 -1
- package/dist/dropdown.esm.js +15 -16
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +74 -71
- package/dist/types.d.ts +2 -2
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -1,69 +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
|
-
/* DO NOT CHANGE!*/
|
|
66
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
3
|
.eds-dropdown__searchable-selected-item {
|
|
68
4
|
display: block;
|
|
69
5
|
font-size: 1rem;
|
|
@@ -87,13 +23,6 @@
|
|
|
87
23
|
.eds-form-control.eds-dropdown__input::placeholder {
|
|
88
24
|
transition: none;
|
|
89
25
|
}
|
|
90
|
-
.eds-inline-spinner {
|
|
91
|
-
align-items: center;
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
height: 100%;
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
26
|
/* DO NOT CHANGE!*/
|
|
98
27
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
99
28
|
.eds-dropdown-wrapper {
|
|
@@ -152,6 +81,77 @@
|
|
|
152
81
|
.eds-contrast .eds-form-control-wrapper--disabled .eds-dropdown__divider {
|
|
153
82
|
background-color: #8285a8;
|
|
154
83
|
}
|
|
84
|
+
.eds-inline-spinner {
|
|
85
|
+
align-items: center;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
height: 100%;
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
/* DO NOT CHANGE!*/
|
|
92
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
93
|
+
.eds-dropdown-list {
|
|
94
|
+
border-radius: 0.25rem;
|
|
95
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
96
|
+
display: none;
|
|
97
|
+
list-style: none;
|
|
98
|
+
margin: 0;
|
|
99
|
+
max-height: 50vh;
|
|
100
|
+
padding: 0;
|
|
101
|
+
position: relative;
|
|
102
|
+
overflow-y: auto;
|
|
103
|
+
width: 100%;
|
|
104
|
+
z-index: 20;
|
|
105
|
+
}
|
|
106
|
+
.eds-contrast .eds-dropdown-list {
|
|
107
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
108
|
+
}
|
|
109
|
+
.eds-dropdown-list--open {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
}
|
|
112
|
+
.eds-dropdown-list:focus {
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
@media all and (min-width: 50rem) {
|
|
116
|
+
.eds-dropdown-list {
|
|
117
|
+
max-height: 30vh;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.eds-dropdown-list__item {
|
|
121
|
+
align-items: center;
|
|
122
|
+
background-color: #f8f8f8;
|
|
123
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
124
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
125
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
126
|
+
color: #181c56;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
font-family: inherit;
|
|
130
|
+
font-size: 1rem;
|
|
131
|
+
line-height: 1.25rem;
|
|
132
|
+
padding: 0.75rem 1rem;
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
.eds-dropdown-list__item:first-child {
|
|
136
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
137
|
+
}
|
|
138
|
+
.eds-dropdown-list__item:last-child {
|
|
139
|
+
border-bottom: none;
|
|
140
|
+
}
|
|
141
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
142
|
+
color: #181c56;
|
|
143
|
+
border-color: #54568c;
|
|
144
|
+
background-color: #ffffff;
|
|
145
|
+
}
|
|
146
|
+
.eds-dropdown-list__item--highlighted {
|
|
147
|
+
background-color: #d1d4e3;
|
|
148
|
+
}
|
|
149
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
150
|
+
background-color: #d1d4e3;
|
|
151
|
+
}
|
|
152
|
+
.eds-dropdown-list-icon {
|
|
153
|
+
margin-left: 0.75rem;
|
|
154
|
+
}
|
|
155
155
|
/* DO NOT CHANGE!*/
|
|
156
156
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
157
157
|
.eds-dropdown__toggle-button {
|
|
@@ -490,6 +490,7 @@
|
|
|
490
490
|
}
|
|
491
491
|
.eds-dropdown__selected-item__placeholder {
|
|
492
492
|
color: #54568c;
|
|
493
|
+
height: 1rem;
|
|
493
494
|
}
|
|
494
495
|
.eds-contrast .eds-dropdown__selected-item__placeholder {
|
|
495
496
|
color: #656782;
|
|
@@ -513,6 +514,7 @@
|
|
|
513
514
|
padding: 1.375rem 0rem 0.25rem 1rem;
|
|
514
515
|
font-family: inherit;
|
|
515
516
|
line-height: 1rem;
|
|
517
|
+
cursor: text;
|
|
516
518
|
}
|
|
517
519
|
.eds-dropdown--searchable__selected-item--hidden {
|
|
518
520
|
flex: 0;
|
|
@@ -529,6 +531,7 @@
|
|
|
529
531
|
flex: 1;
|
|
530
532
|
gap: 0.5rem;
|
|
531
533
|
min-width: 0;
|
|
534
|
+
cursor: text;
|
|
532
535
|
}
|
|
533
536
|
.eds-dropdown--multiselect__selected-items-and-input--filled {
|
|
534
537
|
padding: 1.25rem 0rem 0.25rem 1rem;
|
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export type NormalizedDropdownItemType<ValueType = string> = {
|
|
|
9
9
|
label: string;
|
|
10
10
|
icons?: React.ComponentType<any>[];
|
|
11
11
|
};
|
|
12
|
-
export type AsyncDropdownItemType<ValueType> = (inputType: string, abortControllerRef: React.MutableRefObject<AbortController>) => Promise<DropdownItemType<ValueType>[]>;
|
|
13
|
-
export type SyncDropdownItemType<ValueType> = (inputType: string, abortControllerRef: React.MutableRefObject<AbortController>) => DropdownItemType<ValueType>[];
|
|
12
|
+
export type AsyncDropdownItemType<ValueType = string> = (inputType: string, abortControllerRef: React.MutableRefObject<AbortController>) => Promise<DropdownItemType<ValueType>[]>;
|
|
13
|
+
export type SyncDropdownItemType<ValueType = string> = (inputType: string, abortControllerRef: React.MutableRefObject<AbortController>) => DropdownItemType<ValueType>[];
|
|
14
14
|
export type PotentiallyAsyncDropdownItemType<ValueType = string> = DropdownItemType<ValueType>[] | SyncDropdownItemType<ValueType> | AsyncDropdownItemType<ValueType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "5.2.0
|
|
3
|
+
"version": "5.2.0",
|
|
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.75",
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/chip": "^0.6.
|
|
33
|
-
"@entur/form": "^7.0.
|
|
31
|
+
"@entur/button": "^3.2.10",
|
|
32
|
+
"@entur/chip": "^0.6.65",
|
|
33
|
+
"@entur/form": "^7.0.37",
|
|
34
34
|
"@entur/icons": "^6.15.0",
|
|
35
35
|
"@entur/loader": "^0.4.54",
|
|
36
36
|
"@entur/tokens": "^3.12.0",
|
|
37
|
-
"@entur/tooltip": "^2.6.
|
|
37
|
+
"@entur/tooltip": "^2.6.46",
|
|
38
38
|
"@entur/utils": "^0.10.0",
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^7.6.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9e39bec18ebcbc0ea7b8c07239646eb766c8e23a"
|
|
43
43
|
}
|