You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
904 B
23 lines
904 B
/**
|
|
* TODO: 4.0
|
|
* - remove `dataSource`
|
|
* - `size` not work with customizeInput
|
|
* - customizeInput not feedback `ENTER` key since accessibility enhancement
|
|
*/
|
|
import * as React from 'react';
|
|
import Select, { InternalSelectProps, OptionType } from '../select';
|
|
export interface DataSourceItemObject {
|
|
value: string;
|
|
text: string;
|
|
}
|
|
export declare type DataSourceItemType = string | DataSourceItemObject;
|
|
export interface AutoCompleteProps extends Omit<InternalSelectProps<string>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
|
dataSource?: DataSourceItemType[];
|
|
}
|
|
declare const RefAutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<Select<import("../select").SelectValue>>>;
|
|
declare type RefAutoComplete = typeof RefAutoComplete & {
|
|
Option: OptionType;
|
|
};
|
|
declare const _default: RefAutoComplete;
|
|
export default _default;
|