/** * MUI Text Field Component * * Controlled component that receives state via props from FieldRenderer. * Adapted for react-final-form integration. * Uses traditional label layout (FormControl + FormLabel) instead of floating labels. */ import { type BaseFieldProps } from '@galaxy-dev/metadsl-runtime'; export interface TextFieldProps extends BaseFieldProps { prefix?: React.ReactNode; suffix?: React.ReactNode; multiline?: boolean; rows?: number; maxRows?: number; readOnly?: boolean; /** * Native input type - forwarded to the underlying input's `type` attribute * (with a matching `inputMode`). Ignored for multiline fields. * Unknown values are forwarded to `type` as-is. */ inputType?: 'text' | 'email' | 'url' | 'tel' | 'number' | 'search' | (string & Record); /** Show a clear (×) button when the field has a value (default: false) */ clearable?: boolean; /** Custom clear button icon (already rendered as ReactNode) */ clearIcon?: React.ReactNode; /** * Input character filter - regex matched against each typed character; * characters that do NOT match are stripped on change * (e.g. "[^0-9]" keeps non-digits, "[A-Za-z\\s'-]" keeps name characters). * Applies to typing/pasting only; externally pushed values are not filtered. */ inputFilter?: string; } export declare function TextField(props: TextFieldProps): import("react/jsx-runtime").JSX.Element; /** * TextField preset with `inputType="email"` (registered for fieldType 'email') */ export declare function EmailTextField(props: TextFieldProps): import("react/jsx-runtime").JSX.Element; /** * TextField preset with `inputType="number"` (registered for fieldType 'number') */ export declare function NumberTextField(props: TextFieldProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=TextField.d.ts.map