import { IObject } from "@daybrush/utils" ; import * as React from "react" ; import { StyledElement } from "react-css-styled" ; export default class Input < T = { } , U = { } , I extends HTMLElement = HTMLElement > extends React . PureComponent < { value ? : any ; updateValue ? : boolean ; inputProps ? : IObject < any > ; onChange : ( v : any ) => any ; } & T , U > { public input = React . createRef < StyledElement < I > > ( ) ; public getValue ( ) { return ; } public getElement ( ) { return this . input . current ! . getElement ( ) ; } public setValue ( value ) { } public componentDidMount ( ) { const props = this . props ; props . updateValue && this . setValue ( props . value ) ; } public componentDidUpdate ( ) { const props = this . props ; props . updateValue && this . setValue ( props . value ) ; } }