import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
import { getFormConfig } from "./formConfig.js";
import { label } from "./labelStyles.js";
import { type FormTheme, type LabelClassNameOptions } from "./types.js";
const styles = bem("rmd-legend");
/**
* @since 6.4.0
*/
export type LegendLabelClassNameOptions = Pick<
LabelClassNameOptions,
"active" | "gap" | "error" | "stacked" | "disabled" | "reversed"
>;
/**
* @since 6.4.0
*/
export interface LegendClassNameOptions extends LegendLabelClassNameOptions {
className?: string;
/**
* @defaultValue `false`
*/
srOnly?: boolean;
/**
* Set this to `true` to make the `