import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-input-toggle");
/**
 * @remarks \@since 6.0.0
 */ export function inputToggle(options) {
    const { className, em = true, type, size = "auto", error, active = false, disabled = false, uncontrolled } = options;
    return cnb(`rmd-${type}`, styles({
        em,
        active: active && !disabled,
        disabled,
        small: size === "small",
        dense: size === "dense",
        normal: size === "normal",
        large: size === "large",
        uncontrolled
    }), cssUtils({
        textColor: disabled ? "text-disabled" : error ? "error" : undefined
    }), className);
}

//# sourceMappingURL=inputToggleStyles.js.map