import { cnb } from "cnbuilder";
import { bem } from "../utils/bem.js";
import { textField } from "./textFieldStyles.js";
const styles = bem("rmd-textarea");
const containerStyles = bem("rmd-textarea-container");
/**
 * @since 6.0.0
 */ export function textArea(options = {}) {
    const { className, mask, resize = "auto", scrollable, placeholderHidden } = options;
    return cnb(textField({
        placeholderHidden
    }), styles({
        rh: resize === "horizontal",
        rv: resize === "vertical",
        rn: resize === "auto" || resize === "none",
        mask,
        scrollable: scrollable || resize === "none"
    }), className);
}
/**
 * @since 6.0.0
 */ export function textAreaContainer(options = {}) {
    const { className, height, animate, disabled, underlineLabelled } = options;
    return cnb(containerStyles({
        height,
        animate,
        cursor: !disabled,
        "underline-labelled": underlineLabelled
    }), className);
}

//# sourceMappingURL=textAreaStyles.js.map