lucid-ui
Version:
A UI component library from Xandr.
19 lines • 557 B
JavaScript
import * as DropMenu from '../DropMenu/DropMenu.reducers';
import SearchField from '../SearchField/SearchField.reducers';
export function onSelect(state, selectedIndex) {
return {
...state,
selectedIndex,
};
}
export function onSearch(state, searchText, firstVisibleIndex) {
return {
...state,
searchText,
DropMenu: {
...DropMenu.onFocusOption(state.DropMenu, firstVisibleIndex),
},
};
}
export { DropMenu, SearchField };
//# sourceMappingURL=SearchableSingleSelect.reducers.js.map