-
Notifications
You must be signed in to change notification settings - Fork 619
Replace react-otp-input with shadcn input-otp #4889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace react-otp-input with shadcn input-otp #4889
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
size-limit report 📦
|
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new OTP input component using the `input-otp` library, along with related animations and configuration updates. It replaces the existing `react-otp-input` dependency and enhances the onboarding email confirmation process.
### Detailed summary
- Added `input-otp` dependency to `package.json`.
- Removed `react-otp-input` from `package.json`.
- Updated `tailwind.config.js` to include `caret-blink` animation.
- Created new components: `InputOTP`, `InputOTPGroup`, `InputOTPSlot`, `InputOTPSeparator`.
- Refactored `ConfirmEmail.tsx` to utilize the new OTP input components.
- Improved styling and functionality for OTP input slots.
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
74299f4 to
a6f85ac
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4889 +/- ##
=======================================
Coverage 47.60% 47.60%
=======================================
Files 1054 1054
Lines 57164 57164
Branches 3917 3917
=======================================
Hits 27212 27212
Misses 29263 29263
Partials 689 689
*This pull request uses carry forward flags. Click here to find out more. |

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces a new
InputOTPcomponent for handling OTP input fields, replacing the oldreact-otp-inputlibrary withinput-otp. It also adds animations and improves styling for better user experience.Detailed summary
input-otppackage topackage.json.react-otp-inputfrompackage.json.InputOTP,InputOTPGroup,InputOTPSlot, andInputOTPSeparatorcomponents ininput-otp.tsx.ConfirmEmail.tsx.tailwind.config.jsto includecaret-blinkanimation.