import { Field, FieldProps } from "formik"; import { classNames } from "../../utils"; import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/solid"; import { useToggle } from "../../hooks/hooks"; import { CustomTooltip } from "../tooltips/CustomTooltip"; type COL_WIDTHS = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; interface TextFieldProps { name: string; defaultValue?: string; label?: string; placeholder?: string; columns?: COL_WIDTHS; autoComplete?: string; hidden?: boolean; disabled?: boolean; tooltip?: JSX.Element; } export const TextField = ({ name, defaultValue, label, placeholder, columns, autoComplete, hidden, tooltip, disabled }: TextFieldProps) => ( ); interface TextAreaProps { name: string; defaultValue?: string; label?: string; placeholder?: string; columns?: COL_WIDTHS; rows?: number; autoComplete?: string; hidden?: boolean; disabled?: boolean; } export const TextArea = ({ name, defaultValue, label, placeholder, columns, rows, autoComplete, hidden, disabled }: TextAreaProps) => (