import * as React from 'react'; import { type ModalProps } from './modal.js'; import type { ResponsiveDialogAction } from './responsive-dialog.js'; export type FormModalProps = Omit & { /** Submit handler. Receives the native submit event. */ onSubmit: (e: React.FormEvent) => void; /** Disables inputs/close and shows a busy submit button. */ isSubmitting?: boolean; /** Independently disable the submit button (e.g. invalid form). */ submitDisabled?: boolean; submitText?: React.ReactNode; cancelText?: React.ReactNode; /** Render the primary action as destructive. */ destructive?: boolean; /** Hide the cancel button. */ hideCancel?: boolean; /** Extra footer content rendered to the start of the action row. */ footerStart?: React.ReactNode; /** Extra footer actions from the host (e.g. «Ver historial»). */ footerExtra?: ResponsiveDialogAction[]; }; /** * FormModal — a Modal wired for the dominant CRUD pattern: a form body plus a * Cancel/Submit footer, submit-on-enter, and a busy state that locks the modal * closed while the request is in flight. On phones it is a bottom sheet with * the submit button full width in the sticky footer. * * The children are the form fields; the `
` and footer buttons are supplied. * * @example * * * */ export declare function FormModal({ onSubmit, isSubmitting, submitDisabled, submitText, cancelText, destructive, hideCancel, footerStart, footerExtra, onOpenChange, children, ...modalProps }: FormModalProps): React.JSX.Element; //# sourceMappingURL=form-modal.d.ts.map