import * as React from "react" ; import Container from "./Container" ; import * as InputModule from "./Input" ; const Input = InputModule . default ; export type ContainerProps = any ; export type InputProps = any ; type TextFieldInternalProps = { containerProps : ContainerProps ; inputProps : InputProps ; } ; /**
 * Internal default composed component
 */ class TextFieldInternal extends React . Component < TextFieldInternalProps , { } > { public render ( ) { const { containerProps , inputProps , } = this . props ; return ( < Container { ... containerProps } > < Input { ... inputProps } / > < /Container>); } } export type Props = ContainerProps & { inputId ? : string ; name ? : string ; value ? : any ; onChange ? : React . ChangeEventHandler < any > ; placeholder ? : string ; disabled ? : boolean ; } ; /**
 * Textfield simple common composed component
 */ export default class Default extends React . Component < Props , { } > { public render ( ) { const { inputId , name , value , onChange , placeholder , disabled , ... props , } = this . props ; const containerProps = { disabled , ... props , } ; const inputProps = { id : inputId , name , value , onChange , placeholder , disabled , } ; return ( < TextFieldInternal containerProps = { containerProps } inputProps = { inputProps } / > ) ; } }