@wix/design-system
Version:
@wix/design-system
56 lines • 1.72 kB
TypeScript
export default Search;
/**
* Search component with suggestions based on input value listed in dropdown
*/
declare class Search extends React.Component<any, any, any> {
static contextType: React.Context<import("../WixStyleReactDefaultsOverrideProvider").WixStyleReactDefaultsOverride>;
static displayName: string;
static defaultProps: any;
constructor(props: any);
_onChangeHandler: any;
state: {
inputValue: any;
collapsed: any;
};
searchInput: React.RefObject<any>;
contentElementRef: React.RefObject<any>;
_onContentTransitionEnd: () => void;
_onContentTransitionStart: () => void;
_addContentElementListeners(): void;
_removeContentElementListeners(): void;
componentDidMount(): void;
componentWillUnmount(): void;
componentDidUpdate(prevProps: any): void;
/**
* Creates an onChange debounced function
*/
_createDebouncedOnChange: () => any;
_getIsControlled: () => boolean;
_getFilteredOptions: () => any;
_stringFilter: (option: any) => boolean;
_onChange: (e: any) => void;
_onClear: (event: any) => void;
_onClearHandler: (event: any) => void;
_currentValue: () => any;
_onFocus: (event: any) => void;
_onBlur: (event: any) => Promise<void>;
_onWrapperClick: () => void;
_onWrapperMouseDown: (e: any) => void;
/**
* Sets focus on the input element
*/
focus: () => void;
/**
* Removes focus on the input element
*/
blur: () => void;
/**
* Clears the input.
*
* @param event
*/
clear: (event: any) => void;
render(): React.JSX.Element;
}
import React from 'react';
//# sourceMappingURL=Search.d.ts.map