diff --git a/comps/form/base/BaseField.tsx b/comps/form/base/BaseField.tsx index 36d58d5..59408b7 100755 --- a/comps/form/base/BaseField.tsx +++ b/comps/form/base/BaseField.tsx @@ -123,7 +123,7 @@ export const BaseField = (prop: { {errors.length > 0 && (
= (arg) => { arg={arg} /> {field.desc && ( -
0 && "c-pb-1")}> +
0 && "c-pb-1")}> {field.desc}
)} {errors.length ? (
, - React.ComponentPropsWithoutRef ->(({ className, containerClassName, ...props }, ref) => ( - -)); -InputOTP.displayName = "InputOTP"; - -const InputOTPGroup = React.forwardRef< - React.ElementRef<"div">, - React.ComponentPropsWithoutRef<"div"> ->(({ className, ...props }, ref) => ( -
-)); -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]; - - return ( -
- {char} - {hasFakeCaret && ( -
-
-
- )} -
- ); -}); -InputOTPSlot.displayName = "InputOTPSlot"; - -const InputOTPSeparator = React.forwardRef< - React.ElementRef<"div">, - React.ComponentPropsWithoutRef<"div"> ->(({ ...props }, ref) => ( -
- -
-)); -InputOTPSeparator.displayName = "InputOTPSeparator"; - -export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };