import { cnb } from "cnbuilder";
import { bem } from "../utils/bem.js";
import { cssUtils } from "../cssUtils.js";
const cardStyles = bem("rmd-card");
/**
 * @remarks \@since 6.0.0
 */ export function card(options = {}) {
    const { className, bordered, raisable, fullWidth, interactable } = options;
    return cnb(cardStyles({
        bordered,
        shadowed: !bordered,
        raisable: !bordered && raisable,
        interactable,
        "full-width": fullWidth
    }), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardHeader(options = {}) {
    const { className, addonAfter = false, addonBefore = false } = options;
    return cnb(cardStyles("header", {
        "addon-after": addonAfter && !addonBefore,
        "addon-before": addonBefore && !addonAfter,
        surrounded: addonAfter && addonBefore
    }), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardHeaderContent(options = {}) {
    const { className } = options;
    return cnb(cardStyles("header-content"), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardTitle(options = {}) {
    const { className } = options;
    return cnb(cardStyles("title"), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardSubtitle(options = {}) {
    const { className } = options;
    return cnb(cardStyles("subtitle"), cssUtils({
        textColor: "text-secondary"
    }), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardContent(options = {}) {
    const { className, disablePadding, disableSecondaryColor, disableLastChildPadding } = options;
    return cnb(cardStyles("content", {
        padded: !disablePadding,
        "padding-bottom": !disableLastChildPadding
    }), cssUtils({
        textColor: !disableSecondaryColor ? "text-secondary" : undefined
    }), className);
}
/**
 * @remarks \@since 6.0.0
 */ export function cardFooter(options = {}) {
    const { className } = options;
    return cnb(cardStyles("footer"), className);
}

//# sourceMappingURL=styles.js.map