UNPKG

@lifespikes/ui

Version:
12 lines (11 loc) 863 B
import { FieldPath, FieldValues } from 'react-hook-form'; import { FormFieldType, PhoneInput } from '@lifespikes/ui/components/ui'; import { ComponentProps } from 'react'; type PrimitivePhoneInputProps = ComponentProps<typeof PhoneInput>; type PhoneInputProps = PrimitivePhoneInputProps; export interface PhoneInputFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends FormFieldType<TFieldValues, TName> { _phoneInput?: Omit<PhoneInputProps, 'value' | 'onChange'>; _className?: string; } export declare const PhoneInputField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ _phoneInput, _className, ...props }: PhoneInputFieldProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element; export {};