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

//# sourceMappingURL=styles.js.map