import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-circular-progress");
/**
 * @since 6.2.0
 */ export function circularProgress(options = {}) {
    const { className, theme = "primary", dense, disableCentered } = options;
    return cnb(styles({
        dense,
        centered: !disableCentered
    }), theme !== "current-color" && cssUtils({
        textColor: theme
    }), className);
}
/**
 * @since 6.2.0
 */ export function circularProgressSvg(options = {}) {
    const { className, indeterminate, disableShrink } = options;
    return cnb(styles("svg", {
        determinate: !indeterminate,
        indeterminate: indeterminate && !disableShrink,
        "rotate-only": indeterminate && disableShrink
    }), className);
}
/**
 * @since 6.2.0
 */ export function circularProgressCircle(options = {}) {
    const { className, indeterminate, disableShrink, disableTransition } = options;
    return cnb(styles("circle", {
        animate: !disableTransition && !indeterminate,
        determinate: !indeterminate,
        indeterminate: indeterminate && !disableShrink,
        "rotate-only": indeterminate && disableShrink
    }), className);
}

//# sourceMappingURL=circularProgressStyles.js.map