lucid-ui
Version:
A UI component library from AppNexus.
43 lines (42 loc) • 2.06 kB
TypeScript
import * as DropMenu from '../DropMenu/DropMenu.reducers';
import SearchField from '../SearchField/SearchField.reducers';
import { ISearchableSingleSelectState } from './SearchableSingleSelect';
export declare function onSelect(state: ISearchableSingleSelectState, selectedIndex: number | null): {
selectedIndex: number | null;
DropMenu: import("../DropMenu/DropMenu").IDropMenuState;
searchText: string | null;
optionGroups: import("../DropMenu/DropMenu").IDropMenuOptionGroupProps[];
flattenedOptionsData: import("../DropMenu/DropMenu").IOptionsData[];
ungroupedOptionData: import("../DropMenu/DropMenu").IOptionsData[];
optionGroupDataLookup: {
[key: number]: import("../DropMenu/DropMenu").IOptionsData[];
};
};
export declare function onSearch(state: ISearchableSingleSelectState, searchText: string, firstVisibleIndex: number): {
searchText: string;
DropMenu: {
isMouseTriggered: boolean;
optionGroups: import("../DropMenu/DropMenu").IDropMenuOptionGroupProps[];
flattenedOptionsData: import("../DropMenu/DropMenu").IOptionsData[];
ungroupedOptionData: import("../DropMenu/DropMenu").IOptionsData[];
optionGroupDataLookup: {
[key: number]: import("../DropMenu/DropMenu").IOptionsData[];
};
fixedOptionData: import("../DropMenu/DropMenu").IOptionsData[];
portalId: string;
isExpanded: boolean;
focusedIndex: number | null;
selectedIndices: number[];
nullOptions: import("../DropMenu/DropMenu").IDropMenuNullOptionProps[];
optionGroupIndex: number | null;
optionProps: [];
};
selectedIndex: number | null;
optionGroups: import("../DropMenu/DropMenu").IDropMenuOptionGroupProps[];
flattenedOptionsData: import("../DropMenu/DropMenu").IOptionsData[];
ungroupedOptionData: import("../DropMenu/DropMenu").IOptionsData[];
optionGroupDataLookup: {
[key: number]: import("../DropMenu/DropMenu").IOptionsData[];
};
};
export { DropMenu, SearchField };