File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 "react" : " ^16.2.0" ,
2626 "react-dom" : " ^16.2.0"
2727 },
28+ "typings" : " ./src/lib/index.d.ts" ,
2829 "devDependencies" : {
2930 "babel-cli" : " ^6.26.0" ,
3031 "babel-core" : " ^6.26.3" ,
Original file line number Diff line number Diff line change 1+ export default OtpInput ;
2+ declare class OtpInput {
3+ static defaultProps : {
4+ numInputs : number ;
5+ onChange : ( otp : number ) => void ;
6+ isDisabled : boolean ;
7+ shouldAutoFocus : boolean ;
8+ value : string ;
9+ } ;
10+ state : {
11+ activeInput : number ;
12+ } ;
13+ getOtpValue : ( ) => any ;
14+ getPlaceholderValue : ( ) => any ;
15+ handleOtpChange : ( otp : string [ ] ) => void ;
16+ isInputValueValid : ( value : any ) => boolean ;
17+ focusInput : ( input : number ) => void ;
18+ focusNextInput : ( ) => void ;
19+ focusPrevInput : ( ) => void ;
20+ changeCodeAtFocus : ( value : string ) => void ;
21+ handleOnPaste : ( e : Object ) => void ;
22+ handleOnChange : ( e : Object ) => void ;
23+ handleOnKeyDown : ( e : Object ) => void ;
24+ handleOnInput : ( e : Object ) => void ;
25+ renderInputs : ( ) => any [ ] ;
26+ render ( ) : any ;
27+ }
You can’t perform that action at this time.
0 commit comments