// Adapted from shadcn/ui, MIT (98a1fe67). See THIRD_PARTY_NOTICES.md. "use client"; import * as React from "react"; import { cn } from "./_ynrlib/cn.js"; import { OTPInput, OTPInputContext } from "./_ynrlib/input-otp.js"; import { MinusIcon } from "./_ynrlib/lucide.js"; export function InputOTP({ className, containerClassName, ...props }: React.ComponentProps & { containerClassName?: string; }) { return ( ); } export function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) { return (
); } export function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & { index: number; }) { const inputOTPContext = React.useContext(OTPInputContext); const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {}; return (
{char} {hasFakeCaret && (
)}
); } export function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) { return (
); }