@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
19 lines (18 loc) • 889 B
TypeScript
import type { ChangeEvent } from 'react';
import { IField } from './IField';
import { IColor } from '@/ui/atoms/Icon';
export declare function useField({ size, isDisabled, type, iconRight, error, iconLeft, iconColor, onChange, onBlur, value, isError, withouStyle, classNames }: IField): {
inputValue: string;
inputRef: import("react").RefObject<HTMLInputElement>;
handleChange: (ev: ChangeEvent<HTMLInputElement>) => void;
handleBlur: (ev: React.FocusEvent<HTMLInputElement>) => void;
handleChangeCustom: (value: string) => void | undefined;
getColorIcon: ({ isIconColor }: {
isIconColor: boolean;
}) => IColor;
getColorIconPassword: () => 'disabled' | 'default' | 'subdued';
showPassword: boolean;
setShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
clearInput: () => void;
getClassInput: string;
};