UNPKG

downshift

Version:

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

162 lines (161 loc) 4.23 kB
export declare const stateChangeTestCases: ({ step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: null; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonClick; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: null; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEscape; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEnter; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEnd; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownSpaceButton; } | { step: any; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonClick; arg?: undefined; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownPageUp; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownPageDown; } | { step: any; arg: number; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ItemMouseMove; } | { step: any; arg: number; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.MenuMouseLeave; } | { step: any; arg: number; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ItemClick; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownArrowDown; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownArrowUp; } | { step: any; arg: string; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownCharacter; } | { step: () => Promise<void>; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.FunctionSetInputValue; arg?: undefined; } | { step: any; state: { isOpen: boolean; highlightedIndex: number; inputValue: string; selectedItem: any; }; type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonBlur; arg?: undefined; })[];