diff --git a/bun.lockb b/bun.lockb index 0028744..fd38789 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/ui/components/input-otp.tsx b/packages/ui/components/input-otp.tsx index 984134e..c96c4e2 100644 --- a/packages/ui/components/input-otp.tsx +++ b/packages/ui/components/input-otp.tsx @@ -1,10 +1,10 @@ -"use client" +"use client"; -import * as React from "react" -import { DashIcon } from "@radix-ui/react-icons" -import { OTPInput, OTPInputContext } from "input-otp" +import * as React from "react"; +import { DashIcon } from "@radix-ui/react-icons"; +import { OTPInput, OTPInputContext } from "input-otp"; -import { cn } from "@makify/ui/lib/utils" +import { cn } from "@makify/ui/lib/utils"; const InputOTP = React.forwardRef< React.ElementRef, @@ -14,49 +14,49 @@ const InputOTP = React.forwardRef< ref={ref} containerClassName={cn( "flex items-center gap-2 has-[:disabled]:opacity-50", - containerClassName + containerClassName, )} className={cn("disabled:cursor-not-allowed", className)} {...props} /> -)) -InputOTP.displayName = "InputOTP" +)); +InputOTP.displayName = "InputOTP"; const InputOTPGroup = React.forwardRef< React.ElementRef<"div">, React.ComponentPropsWithoutRef<"div"> >(({ className, ...props }, ref) => (
-)) -InputOTPGroup.displayName = "InputOTPGroup" +)); +InputOTPGroup.displayName = "InputOTPGroup"; const InputOTPSlot = React.forwardRef< React.ElementRef<"div">, React.ComponentPropsWithoutRef<"div"> & { index: number } >(({ index, className, ...props }, ref) => { - const inputOTPContext = React.useContext(OTPInputContext) - const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index] + const inputOTPContext = React.useContext(OTPInputContext); + const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index] || {}; return (
{char} {hasFakeCaret && (
-
+
)}
- ) -}) -InputOTPSlot.displayName = "InputOTPSlot" + ); +}); +InputOTPSlot.displayName = "InputOTPSlot"; const InputOTPSeparator = React.forwardRef< React.ElementRef<"div">, @@ -65,7 +65,7 @@ const InputOTPSeparator = React.forwardRef<
-)) -InputOTPSeparator.displayName = "InputOTPSeparator" +)); +InputOTPSeparator.displayName = "InputOTPSeparator"; -export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } +export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }; diff --git a/packages/ui/package.json b/packages/ui/package.json index 58d164d..8cc8e0c 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -50,13 +50,13 @@ "clsx": "2.1.0", "cmdk": "1.0.0", "embla-carousel-react": "^8.2.0", - "input-otp": "^1.2.4", + "input-otp": "1.2.5", "lucide-react": "^0.453.0", "react-hook-form": "7.52.1", "react-resizable-panels": "2.0.22", "tailwind-merge": "2.2.2", "tailwindcss-animate": "1.0.7", - "vaul": "^1.0.0", + "vaul": "1.1.1", "zod": "3.23.8" } } \ No newline at end of file