// @flow /* DOCUMENTATION: https://orbit.kiwi/components/inputfield/ */ import * as React from "react"; import type { ReactComponentStyled } from "styled-components"; import type { Globals, Ref, Translation, TranslationString, DataAttrs, } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken"; export type Size = "small" | "normal"; type InputMode = "numeric" | "tel" | "decimal" | "email" | "url" | "search" | "text" | "none"; export type Props = {| ...Globals, ...Ref, ...spaceAfter, ...DataAttrs, +size?: Size, +type?: "text" | "number" | "email" | "password" | "passportid", +inputMode?: InputMode, +name?: string, +label?: Translation, +inlineLabel?: boolean, +value?: (() => string | number) | string | number, +placeholder?: TranslationString, +prefix?: React.Node, +suffix?: React.Node, +help?: React.Node, +error?: React.Node, +tags?: React.Node, +disabled?: boolean, +maxValue?: number, +minValue?: number, +maxLength?: number, +minLength?: number, required?: boolean, tabIndex?: string | number, +readOnly?: boolean, +autoComplete?: string, +autoFocus?: boolean, +id?: string, +onChange?: (ev: SyntheticInputEvent) => void | Promise, +onFocus?: (ev: SyntheticInputEvent) => void | Promise, +onBlur?: (ev: SyntheticInputEvent) => void | Promise, +onSelect?: (ev: SyntheticInputEvent) => void | Promise, +onMouseUp?: (ev: SyntheticEvent) => void | Promise, +onMouseDown?: (ev: SyntheticEvent) => void | Promise, +onKeyDown?: (ev: SyntheticKeyboardEvent) => void | Promise, +onKeyUp?: (ev: SyntheticKeyboardEvent) => void | Promise, |}; declare export var FakeInput: ReactComponentStyled; declare export var Input: ReactComponentStyled; declare export var Prefix: ReactComponentStyled; declare export var InputContainer: ReactComponentStyled; declare export default React.AbstractComponent;