UNPKG

@ozen-ui/kit

Version:

React component library

14 lines (13 loc) 805 B
import type { InputOTPMask, InputOTPRawValue, InputOTPCalculatedInput } from './types'; export declare const maskSymbol: (mask: InputOTPMask | undefined, value: string, index: number) => string; export declare const maskValue: (mask: InputOTPMask | undefined, value: InputOTPRawValue | undefined) => string[]; export declare const calculateInput: ({ valueByIndex, index, mask, length, disabled: isDisabledGlobal, focusedInputIndex, }: { valueByIndex: string[] | undefined; index: number; mask: InputOTPMask | undefined; length: number; disabled: boolean | undefined; focusedInputIndex: number | null; }) => InputOTPCalculatedInput; export declare const valueToString: (value: InputOTPRawValue | undefined) => string; export declare const valueToArray: (value: string) => string[];