/** * Select with paginated options dropdown * * @author: Denis Makarov * @date: 2020-10-07 */ import React from 'react'; import { IOption, Value } from '..'; import { SIZE } from '../../constants'; export interface ISelectPaginatedProps { isOpen?: boolean; isDefaultOpen?: boolean; isReadOnly?: boolean; value?: string; displayValue?: string; onSearch: (searchText: string) => void; size?: SIZE; options: IOption[]; goToPage: (pageNum: number) => void; pagesCount: number; onSelect: (value: IOption | null) => void; onClose?: () => void; dropdownAutoWidth?: boolean; allowClear?: boolean; errorMessage?: string; autoFocus?: boolean; closeOnBlur?: boolean; closeOnSelect?: boolean; isWaiting?: boolean; showUnsetOption?: boolean; unsetText?: string; page: number; } interface IState { isDropdownOpen: boolean; searchText: string | null; } export declare class SelectPaginated extends React.PureComponent { static defaultProps: { isOpen: boolean; inputSize: SIZE; allowClear: boolean; closeOnBlur: boolean; closeOnSelect: boolean; autoFocus: boolean; dropdownAutoWidth: boolean; }; state: IState; constructor(props: ISelectPaginatedProps); openCloseDropdown: (isVisible: boolean) => void; onSearch: (searchText: string) => void; onDropdownClose: () => void; onChange: (value: Value | undefined) => void; onSelect: (option: IOption | null) => void; renderDropDown: () => JSX.Element; render(): JSX.Element; } export {};