UNPKG

919 BTypeScriptView Raw
1/**
2 * TODO: 4.0
3 *
4 * - Remove `dataSource`
5 * - `size` not work with customizeInput
6 * - CustomizeInput not feedback `ENTER` key since accessibility enhancement
7 */
8import * as React from 'react';
9import { InternalSelectProps, OptionType, RefSelectProps } from '../select';
10export interface DataSourceItemObject {
11 value: string;
12 text: string;
13}
14export declare type DataSourceItemType = DataSourceItemObject | React.ReactNode;
15export interface AutoCompleteProps extends Omit<InternalSelectProps<string>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
16 dataSource?: DataSourceItemType[];
17}
18declare const RefAutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<RefSelectProps>>;
19declare type RefAutoCompleteWithOption = typeof RefAutoComplete & {
20 Option: OptionType;
21};
22declare const _default: RefAutoCompleteWithOption;
23export default _default;