@entur/dropdown 6.0.3-beta.3 → 6.0.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/components/DropdownList.d.ts +5 -5
- package/dist/dropdown.cjs.development.js +23 -40
- 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 +23 -40
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +43 -37
- package/dist/utils.d.ts +1 -2
- package/package.json +10 -10
package/dist/styles.css
CHANGED
|
@@ -62,6 +62,13 @@
|
|
|
62
62
|
.eds-dropdown-list-icon {
|
|
63
63
|
margin-left: 0.75rem;
|
|
64
64
|
}
|
|
65
|
+
.eds-inline-spinner {
|
|
66
|
+
align-items: center;
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
height: 100%;
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
65
72
|
/* DO NOT CHANGE!*/
|
|
66
73
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
74
|
.eds-dropdown__searchable-selected-item {
|
|
@@ -87,41 +94,6 @@
|
|
|
87
94
|
.eds-form-control.eds-dropdown__input::placeholder {
|
|
88
95
|
transition: none;
|
|
89
96
|
}
|
|
90
|
-
.eds-inline-spinner {
|
|
91
|
-
align-items: center;
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
height: 100%;
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
/* DO NOT CHANGE!*/
|
|
98
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
99
|
-
.eds-dropdown__toggle-button {
|
|
100
|
-
-webkit-appearance: none;
|
|
101
|
-
-moz-appearance: none;
|
|
102
|
-
appearance: none;
|
|
103
|
-
background: none;
|
|
104
|
-
border: none;
|
|
105
|
-
border-radius: 0;
|
|
106
|
-
color: inherit;
|
|
107
|
-
font-size: inherit;
|
|
108
|
-
font-family: inherit;
|
|
109
|
-
margin-right: -0.75rem;
|
|
110
|
-
padding: 0.5rem;
|
|
111
|
-
display: flex;
|
|
112
|
-
justify-content: center;
|
|
113
|
-
}
|
|
114
|
-
.eds-dropdown__toggle-button--open svg {
|
|
115
|
-
transform: rotate(180deg);
|
|
116
|
-
}
|
|
117
|
-
.eds-dropdown__toggle-button:focus {
|
|
118
|
-
outline-offset: 0.125rem;
|
|
119
|
-
outline: none;
|
|
120
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
121
|
-
}
|
|
122
|
-
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
123
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
124
|
-
}
|
|
125
97
|
/* DO NOT CHANGE!*/
|
|
126
98
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
127
99
|
.eds-dropdown-wrapper {
|
|
@@ -182,6 +154,34 @@
|
|
|
182
154
|
}
|
|
183
155
|
/* DO NOT CHANGE!*/
|
|
184
156
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
157
|
+
.eds-dropdown__toggle-button {
|
|
158
|
+
-webkit-appearance: none;
|
|
159
|
+
-moz-appearance: none;
|
|
160
|
+
appearance: none;
|
|
161
|
+
background: none;
|
|
162
|
+
border: none;
|
|
163
|
+
border-radius: 0;
|
|
164
|
+
color: inherit;
|
|
165
|
+
font-size: inherit;
|
|
166
|
+
font-family: inherit;
|
|
167
|
+
margin-right: -0.75rem;
|
|
168
|
+
padding: 0.5rem;
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
}
|
|
172
|
+
.eds-dropdown__toggle-button--open svg {
|
|
173
|
+
transform: rotate(180deg);
|
|
174
|
+
}
|
|
175
|
+
.eds-dropdown__toggle-button:focus {
|
|
176
|
+
outline-offset: 0.125rem;
|
|
177
|
+
outline: none;
|
|
178
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
179
|
+
}
|
|
180
|
+
.eds-contrast .eds-dropdown__toggle-button:focus {
|
|
181
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
182
|
+
}
|
|
183
|
+
/* DO NOT CHANGE!*/
|
|
184
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
185
185
|
.eds-multi-select {
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
@@ -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;
|
|
@@ -392,6 +393,11 @@
|
|
|
392
393
|
border-color: transparent;
|
|
393
394
|
color: var(--components-dropdown-dropdown-standard-text-disabled);
|
|
394
395
|
}
|
|
396
|
+
.eds-dropdown__selected-item-tag__text {
|
|
397
|
+
text-wrap: nowrap;
|
|
398
|
+
text-overflow: ellipsis;
|
|
399
|
+
overflow-x: hidden;
|
|
400
|
+
}
|
|
395
401
|
.eds-contrast .eds-dropdown .eds-icon-button {
|
|
396
402
|
color: var(--components-button-iconbutton-standard-text);
|
|
397
403
|
}
|
|
@@ -445,8 +451,8 @@
|
|
|
445
451
|
display: flex;
|
|
446
452
|
justify-content: center;
|
|
447
453
|
height: 100%;
|
|
448
|
-
width:
|
|
449
|
-
margin-left:
|
|
454
|
+
width: 1.5rem;
|
|
455
|
+
margin-left: 0.25rem;
|
|
450
456
|
}
|
|
451
457
|
.eds-dropdown__appendix__toggle-button--loading-dots .eds-loading-dots__dot {
|
|
452
458
|
background-color: var(--components-loader-loader-standard-text);
|
package/dist/utils.d.ts
CHANGED
|
@@ -16,10 +16,9 @@ export declare const useMultiselectUtils: <ValueType>({ listItems, selectedItems
|
|
|
16
16
|
allListItemsAreSelected: boolean;
|
|
17
17
|
clickedItemIsInSelectedItems: (clickedItem: NormalizedDropdownItemType<ValueType>) => boolean;
|
|
18
18
|
clickedItemIsSelectAll: (clickedItem: NormalizedDropdownItemType<string | ValueType>) => boolean;
|
|
19
|
-
handleListItemClicked: ({ clickedItem, onChange,
|
|
19
|
+
handleListItemClicked: ({ clickedItem, onChange, }: {
|
|
20
20
|
clickedItem: NormalizedDropdownItemType<any>;
|
|
21
21
|
onChange: (value: NormalizedDropdownItemType<ValueType>[]) => void;
|
|
22
|
-
setLastClickedItem: any;
|
|
23
22
|
}) => void;
|
|
24
23
|
hasSelectedItems: boolean;
|
|
25
24
|
listItemsWithoutSelectAll: NormalizedDropdownItemType<ValueType>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
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
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/chip": "^0.7.
|
|
33
|
-
"@entur/form": "^8.1.
|
|
34
|
-
"@entur/icons": "^7.
|
|
35
|
-
"@entur/loader": "^0.5.
|
|
30
|
+
"@entur/a11y": "^0.2.90",
|
|
31
|
+
"@entur/button": "^3.2.32",
|
|
32
|
+
"@entur/chip": "^0.7.19",
|
|
33
|
+
"@entur/form": "^8.1.1",
|
|
34
|
+
"@entur/icons": "^7.4.0",
|
|
35
|
+
"@entur/loader": "^0.5.10",
|
|
36
36
|
"@entur/tokens": "^3.17.0",
|
|
37
|
-
"@entur/tooltip": "^4.0.
|
|
38
|
-
"@entur/utils": "^0.11.2
|
|
37
|
+
"@entur/tooltip": "^4.0.1",
|
|
38
|
+
"@entur/utils": "^0.11.2",
|
|
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": "
|
|
43
|
+
"gitHead": "045cada5d95c62d8ddfc95d82b4526742ab07d0a"
|
|
44
44
|
}
|