import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-linear-progress");
/**
 * @since 6.2.0
 */ export function linearProgress(options = {}) {
    const { className, theme = "primary", vertical, indeterminate } = options;
    return cnb(styles({
        vertical,
        horizontal: !vertical,
        determinate: !indeterminate,
        indeterminate
    }), theme !== "current-color" && cssUtils({
        textColor: theme
    }), className);
}
/**
 * @since 6.2.0
 */ export function linearProgressBar(options = {}) {
    const { className, reverse, vertical, indeterminate, disableTransition } = options;
    return cnb(styles("bar", {
        vertical,
        "vertical-reverse": vertical && reverse,
        horizontal: !vertical,
        "horizontal-reverse": !vertical && reverse,
        animate: !disableTransition && !indeterminate,
        determinate: !indeterminate,
        indeterminate,
        "determinate-reverse": !indeterminate && reverse && !vertical,
        "determinate-vertical-reverse": !indeterminate && reverse && vertical,
        "indeterminate-reverse": indeterminate && reverse && !vertical,
        "indeterminate-vertical": indeterminate && vertical,
        "indeterminate-vertical-reverse": indeterminate && reverse && vertical
    }), className);
}

//# sourceMappingURL=linearProgressStyles.js.map