UNPKG

@navinc/base-react-components

Version:
107 lines (106 loc) 4.29 kB
export function capitalizeString(string?: string): string; export function SearchInput({ autoFocus, className, errors, helperText, isLoading, isInvalid, label, lede, name, NoResults, onBlur, onChange, onFocus, Result, required, results, resultsMaxHeight, resultToQuery, search, shouldPositionResultsRelative, touched, type, value, ...inputProps }: { [x: string]: any; autoFocus: any; className: any; errors: any; helperText: any; isLoading: any; isInvalid: any; label: any; lede: any; name: any; NoResults: any; onBlur: any; onChange: any; onFocus: any; Result: any; required: any; results: any; resultsMaxHeight: any; resultToQuery: any; search: any; shouldPositionResultsRelative: any; touched: any; type: any; value: any; }): JSX.Element; export namespace SearchInput { namespace defaultProps { export const errors: never[]; export { id as onBlur }; export { id as onChange }; export { id as onFocus }; export const results: never[]; export { id as resultToQuery }; export { id as search }; } namespace propTypes { const errors_1: PropTypes.Requireable<any[]>; export { errors_1 as errors }; export const isInvalid: PropTypes.Requireable<boolean>; export const NoResults: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; export const onBlur: PropTypes.Requireable<(...args: any[]) => any>; export const onChange: PropTypes.Requireable<(...args: any[]) => any>; export const onFocus: PropTypes.Requireable<(...args: any[]) => any>; const results_1: PropTypes.Requireable<any[]>; export { results_1 as results }; export const resultsMaxHeight: PropTypes.Requireable<string>; export const resultToQuery: PropTypes.Validator<(...args: any[]) => any>; export const Result: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; export const search: PropTypes.Validator<(...args: any[]) => any>; } } declare var _default: import("styled-components").StyledComponent<{ ({ autoFocus, className, errors, helperText, isLoading, isInvalid, label, lede, name, NoResults, onBlur, onChange, onFocus, Result, required, results, resultsMaxHeight, resultToQuery, search, shouldPositionResultsRelative, touched, type, value, ...inputProps }: { [x: string]: any; autoFocus: any; className: any; errors: any; helperText: any; isLoading: any; isInvalid: any; label: any; lede: any; name: any; NoResults: any; onBlur: any; onChange: any; onFocus: any; Result: any; required: any; results: any; resultsMaxHeight: any; resultToQuery: any; search: any; shouldPositionResultsRelative: any; touched: any; type: any; value: any; }): JSX.Element; defaultProps: { errors: never[]; onBlur: (id: any) => any; onChange: (id: any) => any; onFocus: (id: any) => any; results: never[]; resultToQuery: (id: any) => any; search: (id: any) => any; }; propTypes: { errors: PropTypes.Requireable<any[]>; isInvalid: PropTypes.Requireable<boolean>; NoResults: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; onBlur: PropTypes.Requireable<(...args: any[]) => any>; onChange: PropTypes.Requireable<(...args: any[]) => any>; onFocus: PropTypes.Requireable<(...args: any[]) => any>; results: PropTypes.Requireable<any[]>; resultsMaxHeight: PropTypes.Requireable<string>; resultToQuery: PropTypes.Validator<(...args: any[]) => any>; Result: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; search: PropTypes.Validator<(...args: any[]) => any>; }; }, any, {}, never>; export default _default; declare function id(id: any): any; import PropTypes from "prop-types";