import type { VariantProps } from 'class-variance-authority'; import type { SlotOverrides } from '../../../core/types'; import type { fieldVariants, FieldSlot } from './Field.styles'; /** Props for the FieldSet component. */ interface IFieldSetProps extends React.ComponentProps<'fieldset'> { slots?: SlotOverrides; } /** Props for the FieldLegend component. */ interface IFieldLegendProps extends React.ComponentProps<'legend'> { /** Legend display variant. */ variant?: 'legend' | 'label'; } /** Props for the FieldGroup component. */ type IFieldGroupProps = React.ComponentProps<'div'>; /** Props for the Field component. */ interface IFieldProps extends React.ComponentProps<'div'>, VariantProps { slots?: SlotOverrides; } /** Props for the FieldContent component. */ type IFieldContentProps = React.ComponentProps<'div'>; /** Props for the FieldLabel component. */ type IFieldLabelProps = React.ComponentProps<'label'>; /** Props for the FieldTitle component. */ type IFieldTitleProps = React.ComponentProps<'div'>; /** Props for the FieldDescription component. */ type IFieldDescriptionProps = React.ComponentProps<'p'>; /** Props for the FieldSeparator component. */ interface IFieldSeparatorProps extends React.ComponentProps<'div'> { children?: React.ReactNode; } /** Props for the FieldError component. */ interface IFieldErrorProps extends React.ComponentProps<'div'> { /** Array of error objects to display. */ errors?: Array<{ message?: string; } | undefined>; } export type { IFieldSetProps, IFieldLegendProps, IFieldGroupProps, IFieldProps, IFieldContentProps, IFieldLabelProps, IFieldTitleProps, IFieldDescriptionProps, IFieldSeparatorProps, IFieldErrorProps, }; //# sourceMappingURL=Field.types.d.ts.map