import React from 'react'; import { UseFormRegisterReturn } from 'react-hook-form/dist/types/form'; import { EnhancerOverrides, CommonInputProps, FormInputState } from '../form/types'; import { EventData } from '../instrumentation'; import { MQ } from '../utils/style'; export type TextFieldSize = 'small' | 'medium' | 'large'; export interface FormInputTextFieldProps extends Omit { size?: TextFieldSize; overrides?: EnhancerOverrides & { stylePreset?: MQ; minHeight?: MQ; width?: MQ; typographyPreset?: MQ; spaceStack?: MQ; spaceInline?: MQ; }; spellCheck?: boolean; } export interface TextFieldProps extends FormInputTextFieldProps, EventData { name?: string; } type FormEntryChildrenProps = { onBlur: (event: React.FocusEvent) => void; onChange: (event: React.ChangeEvent) => void; state?: FormInputState; ref: UseFormRegisterReturn['ref']; refObject: React.RefObject; error?: string; hasContent: boolean; }; type FormValidationRules = Record; export type FormEntryProps = { rules?: FormValidationRules; name?: string; children: (props: FormEntryChildrenProps) => React.ReactElement; }; export {}; //# sourceMappingURL=types.d.ts.map