import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
/**
 * @since 6.0.0
 */ export function tableCell(options) {
    const { grow, sticky, header, inputToggle, hAlign, vAlign, lineWrap = true, padding = "horizontal", isInTableHeader, className } = options;
    // using `&&` instead of `bem` since the latest version of typescript does not
    // support setting the same object key (empty string)
    const p = "rmd-table-cell--";
    return cnb("rmd-table-cell", grow && `${p}grow`, header && `${p}header`, sticky && `${p}sticky`, inputToggle && `${p}input-toggle`, sticky && (!isInTableHeader || inputToggle) && `${p}sticky-cell`, sticky && isInTableHeader && `${p}sticky-header`, sticky && isInTableHeader && inputToggle && `${p}header-cell`, vAlign && vAlign !== "middle" && `${p}${vAlign}`, !lineWrap && `${p}no-wrap`, padding === "vertical" && `${p}v-padding`, padding === "none" && `${p}no-padding`, cssUtils({
        textAlign: hAlign
    }), className);
}

//# sourceMappingURL=tableCellStyles.js.map