import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-form-message");
/**
 * @since 6.0.0
 */ export function formMessage(options = {}) {
    const { className, error = false, theme = "none" } = options;
    return cnb(styles({
        [theme]: theme !== "none"
    }), cssUtils({
        textColor: error ? "error" : "text-secondary"
    }), className);
}
/**
 * @since 6.0.0
 */ export function formMessageText(options = {}) {
    const { className } = options;
    return cnb(styles("message"), className);
}
/**
 * @since 6.0.0
 */ export function formMessageCounter(options = {}) {
    const { className } = options;
    return cnb(styles("counter"), className);
}

//# sourceMappingURL=formMessageStyles.js.map