1 | import { ComponentType, ReactElement, Ref as ElementRef } from 'react';
|
2 | import { CSSObject } from '@emotion/serialize';
|
3 |
|
4 | import { colors, spacing } from '../theme';
|
5 |
|
6 | import { ClassNamesState, Theme } from '../types';
|
7 |
|
8 | export interface InputProps {
|
9 | cx: (a: string | null, b: ClassNamesState, c: string) => string | void;
|
10 | getStyles: (name: string, props: any) => {};
|
11 | theme: Theme;
|
12 |
|
13 | innerRef: (element: ElementRef<any>) => void;
|
14 |
|
15 | isHidden: boolean;
|
16 |
|
17 | isDisabled?: boolean;
|
18 | className?: string;
|
19 |
|
20 | autoComplete?: string;
|
21 | }
|
22 |
|
23 | export function inputCSS(props: InputProps): CSSObject;
|
24 | export function inputStyle(isHidden: boolean): React.CSSProperties;
|
25 |
|
26 | declare function Input(props: InputProps): ReactElement;
|
27 |
|
28 | export default Input;
|