File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11{
2- "name" : " react-headless-otp " ,
2+ "name" : " react-headless-passcode " ,
33 "version" : " 0.1.4" ,
4- "description" : " A headless UI for building easy to use OTP component" ,
4+ "description" : " A headless UI for building easy to use passcode component" ,
55 "keywords" : [
6- " otp " ,
6+ " passcode " ,
77 " headless-ui" ,
88 " react"
99 ],
13131414 }
1515 ],
16- "homepage" : " https://github.com/keyurparalkar/react-headless-otp " ,
16+ "homepage" : " https://github.com/keyurparalkar/react-headless-passcode " ,
1717 "repository" : {
18- "url" : " https://github.com/keyurparalkar/react-headless-otp " ,
18+ "url" : " https://github.com/keyurparalkar/react-headless-passcode " ,
1919 "type" : " git"
2020 },
2121 "bugs" : {
22- "url" : " https://github.com/keyurparalkar/react-headless-otp /issues"
22+ "url" : " https://github.com/keyurparalkar/react-headless-passcode /issues"
2323 },
2424 "main" : " build/index.js" ,
2525 "module" : " build/index.js" ,
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ import {
1313 shouldPreventDefault ,
1414 } from "../utils" ;
1515
16- type OtpProps = {
16+ type PasscodeProps = {
1717 arrayValue : ( number | string ) [ ] ;
1818 isAlphaNumeric ?: boolean ;
1919 } ;
2020
21- const useOtp = ( props : OtpProps ) => {
21+ const usePasscode = ( props : PasscodeProps ) => {
2222 const { arrayValue, isAlphaNumeric = false } = props ;
2323 const [ array , setArray ] = useState ( arrayValue ) ;
2424 const [ currentForcusedIndex , setCurrentFocusedIndex ] = useState ( 0 ) ;
@@ -157,4 +157,4 @@ import {
157157 } ;
158158 } ;
159159
160- export default useOtp ;
160+ export default usePasscode ;
Original file line number Diff line number Diff line change 1- import useOtp from "./hook/useOtp " ;
1+ import usePasscode from "./hook/usePasscode " ;
22
3- export { useOtp } ;
3+ export { usePasscode } ;
You can’t perform that action at this time.
0 commit comments