import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-toast");
/**
 * @remarks \@since 6.0.0
 */ export function toast(options = {}) {
    const { className, theme = "surface", action, paused, stacked, reordered, closeButton } = options;
    return cnb(styles({
        x: closeButton,
        action,
        paused,
        "small-gap": closeButton && action,
        stacked,
        reordered: stacked && reordered
    }), cssUtils({
        backgroundColor: theme !== "surface" && theme !== "current-color" ? theme : undefined
    }), className);
}

//# sourceMappingURL=toastStyles.js.map