import * as react from 'react';
import { FormHTMLAttributes, ReactNode } from 'react';
import { F as FieldMode } from './inputs.types-CJbAS14j.cjs';
import { S as Size } from './types-8Sv0rCjw.cjs';
interface FormProviderProps {
/** `"edit"` (default) or `"view"` — applied to every input below that doesn't override it. */
mode?: FieldMode;
children?: ReactNode;
}
interface FormProps extends FormHTMLAttributes {
/** `"edit"` (default) or `"view"` — applied to every input inside. */
mode?: FieldMode;
}
/**
* Provide a form-wide {@link FieldMode} to every Fancy input below — flip a
* whole form from editable to read-only display in one place. Pure context, no
* DOM (use it to wrap a filter bar or any tree that isn't a `