Skip to content

Commit 42d8ce5

Browse files
committed
feat: renamed all components to passcode
1 parent 1f07f08 commit 42d8ce5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
],
@@ -13,13 +13,13 @@
1313
"email": "[email protected]"
1414
}
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",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

package/lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import useOtp from "./hook/useOtp";
1+
import usePasscode from "./hook/usePasscode";
22

3-
export { useOtp };
3+
export { usePasscode };

0 commit comments

Comments
 (0)