@sproutsocial/seeds-react-menu 1.6.3 → 1.6.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +4 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Autocomplete/MultiAutocomplete.tsx +0 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ CLI Target: es2022
|
|
|
8
8
|
CLI Cleaning output folder
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/index.js 144.
|
|
12
|
-
CJS dist/index.js.map
|
|
13
|
-
CJS ⚡️ Build success in
|
|
14
|
-
ESM dist/esm/index.js 134.
|
|
15
|
-
ESM dist/esm/index.js.map 370.
|
|
16
|
-
ESM ⚡️ Build success in
|
|
11
|
+
CJS dist/index.js 144.07 KB
|
|
12
|
+
CJS dist/index.js.map 371.53 KB
|
|
13
|
+
CJS ⚡️ Build success in 640ms
|
|
14
|
+
ESM dist/esm/index.js 134.18 KB
|
|
15
|
+
ESM dist/esm/index.js.map 370.25 KB
|
|
16
|
+
ESM ⚡️ Build success in 643ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in 17318ms
|
|
19
19
|
DTS dist/index.d.ts 39.03 KB
|
|
20
20
|
DTS dist/index.d.mts 39.03 KB
|
|
21
|
-
Done in
|
|
21
|
+
Done in 21.11s.
|
package/CHANGELOG.md
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -3782,8 +3782,8 @@ var MultiAutocomplete = ({
|
|
|
3782
3782
|
[selectedItems]
|
|
3783
3783
|
);
|
|
3784
3784
|
const getIsItemVisibleMulti = React19.useCallback(
|
|
3785
|
-
(item,
|
|
3786
|
-
return (showSelectedItemsInDropdown || !selectedItemIds[item.id]) && getIsItemVisible(item,
|
|
3785
|
+
(item, inputValue) => {
|
|
3786
|
+
return (showSelectedItemsInDropdown || !selectedItemIds[item.id]) && getIsItemVisible(item, inputValue);
|
|
3787
3787
|
},
|
|
3788
3788
|
[selectedItemIds, showSelectedItemsInDropdown, getIsItemVisible]
|
|
3789
3789
|
);
|
|
@@ -3834,7 +3834,7 @@ var MultiAutocomplete = ({
|
|
|
3834
3834
|
externalStateReducer
|
|
3835
3835
|
),
|
|
3836
3836
|
onStateChange(changes) {
|
|
3837
|
-
const { type, selectedItem: newSelectedItem, inputValue
|
|
3837
|
+
const { type, selectedItem: newSelectedItem, inputValue } = changes;
|
|
3838
3838
|
switch (type) {
|
|
3839
3839
|
// Add the selected item to the selected items list
|
|
3840
3840
|
case useCombobox3.stateChangeTypes.InputKeyDownEnter:
|
|
@@ -3851,19 +3851,12 @@ var MultiAutocomplete = ({
|
|
|
3851
3851
|
default:
|
|
3852
3852
|
break;
|
|
3853
3853
|
}
|
|
3854
|
-
if (
|
|
3854
|
+
if (inputValue !== void 0) updateFilteredItems({ inputValue });
|
|
3855
3855
|
onStateChange && onStateChange(changes);
|
|
3856
3856
|
},
|
|
3857
3857
|
...useComboboxProps
|
|
3858
3858
|
});
|
|
3859
|
-
const { isOpen, closeMenu, inputValue } = useComboboxReturnProps;
|
|
3860
3859
|
const { popoutProps: userPopoutProps } = useComboboxProps;
|
|
3861
|
-
React19.useEffect(() => {
|
|
3862
|
-
if (!inputValue) return;
|
|
3863
|
-
if (allMenuItems && hiddenItemsCount >= allMenuItems.length && isOpen) {
|
|
3864
|
-
closeMenu?.();
|
|
3865
|
-
}
|
|
3866
|
-
}, [hiddenItemsCount, allMenuItems?.length, isOpen, inputValue]);
|
|
3867
3860
|
return /* @__PURE__ */ jsx23(
|
|
3868
3861
|
MenuRootComponent,
|
|
3869
3862
|
{
|