@thecb/components 9.4.0-beta.6 → 9.4.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/index.cjs.js +3 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/searchable-select/SearchableSelect.js +7 -8
- package/src/components/atoms/searchable-select/SearchableSelect.stories.js +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -27554,15 +27554,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
27554
27554
|
itemList = _useState2[0],
|
|
27555
27555
|
setItemList = _useState2[1];
|
|
27556
27556
|
|
|
27557
|
-
var
|
|
27558
|
-
return
|
|
27559
|
-
});
|
|
27560
|
-
|
|
27561
|
-
var completeOptionsList = [_objectSpread2({}, selectAllOption || {})].concat(_toConsumableArray(itemList.filter(function (item) {
|
|
27562
|
-
return item.name !== SELECT_ALL;
|
|
27563
|
-
}).sort(function (a, b) {
|
|
27564
|
-
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
|
27565
|
-
})));
|
|
27557
|
+
var completeOptionsList = itemList.sort(function (a, b) {
|
|
27558
|
+
return a.name == SELECT_ALL ? -1 : b.name === SELECT_ALL ? 1 : a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
|
27559
|
+
});
|
|
27566
27560
|
React.useEffect(function () {
|
|
27567
27561
|
return setItemList(items);
|
|
27568
27562
|
}, [items, selectedItems]);
|