import React from 'react'; import type { FieldProps } from './FieldProps.js'; /** * All the types we'll be generating named `` for (which is basically all of them). * Note that `'checkbox'` isn't here because we handle it separately above. * * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types} */ declare const INPUT_TYPES: readonly ["button", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"]; type InputType = (typeof INPUT_TYPES)[number]; export interface InputFieldProps extends Omit, 'type'>, Omit, 'name' | 'type'> { /** * @privateRemarks * * With this typing, passing `'checkbox'` to ``'s type is an error, which, * at face value, feels like it shouldn't be. * * Even though we provide a separate ``, maybe we should reconsider the typing here? */ type?: InputType; } /** * Renders an `` field. * * @see {@link https://cedarjs.com/docs/forms#input-fields} */ export declare const InputField: React.ForwardRefExoticComponent & React.RefAttributes>; export declare const ButtonField: React.ForwardRefExoticComponent>, ColorField: React.ForwardRefExoticComponent>, DateField: React.ForwardRefExoticComponent>, DatetimeLocalField: React.ForwardRefExoticComponent>, EmailField: React.ForwardRefExoticComponent>, FileField: React.ForwardRefExoticComponent>, HiddenField: React.ForwardRefExoticComponent>, ImageField: React.ForwardRefExoticComponent>, MonthField: React.ForwardRefExoticComponent>, NumberField: React.ForwardRefExoticComponent>, PasswordField: React.ForwardRefExoticComponent>, RadioField: React.ForwardRefExoticComponent>, RangeField: React.ForwardRefExoticComponent>, ResetField: React.ForwardRefExoticComponent>, SearchField: React.ForwardRefExoticComponent>, SubmitField: React.ForwardRefExoticComponent>, TelField: React.ForwardRefExoticComponent>, TextField: React.ForwardRefExoticComponent>, TimeField: React.ForwardRefExoticComponent>, UrlField: React.ForwardRefExoticComponent>, WeekField: React.ForwardRefExoticComponent>; export {}; //# sourceMappingURL=InputComponents.d.ts.map