import * as PropTypes from 'prop-types' ; import type { BoxProps } from '@twilio-paste/box' ; export type InputBoxTypes = 'text' | 'email' | 'hidden' | 'number' | 'password' | 'search' | 'tel' | 'date' | 'time' ; export type Variants = 'default' | 'inverse' ; export interface FauxInputProps { children : NonNullable < React . ReactNode > ; disabled ? : boolean ; element : BoxProps [ 'element' ] ; hasError ? : boolean ; readOnly ? : boolean ; type ? : InputBoxTypes ; variant ? : Variants ; } export const FauxInputPropTypes = { children : PropTypes . node . isRequired , disabled : PropTypes . bool , element : PropTypes . string . isRequired , hasError : PropTypes . bool , readOnly : PropTypes . bool , type : PropTypes . oneOf ( [ 'text' , 'email' , 'hidden' , 'number' , 'password' , 'search' , 'tel' , 'date' , 'time' ] ) as any , variant : PropTypes . oneOf ( [ 'default' , 'inverse' ] ) as any , } ;