import { t as ModeType } from "./Table.js";
import React from "react";
import classNames from "classnames";
import { jsx } from "react/jsx-runtime";
import tableStyles from "./components/Table/styles.module.scss";
let TextAlign = /* @__PURE__ */ function(TextAlign$1) {
	TextAlign$1["left"] = "left";
	TextAlign$1["center"] = "center";
	TextAlign$1["right"] = "right";
	return TextAlign$1;
}({});
const TableCell = ({ nowrap = false, textAlign = TextAlign.left, dataLabel, children, className, testId, mode = ModeType.normal, ...rest }) => {
	return /* @__PURE__ */ jsx("td", {
		className: classNames(tableStyles["table__cell"], { [tableStyles["table__cell--compact"]]: mode === ModeType.compact }, { [tableStyles["table__cell--nowrap"]]: nowrap }, { [tableStyles["table__cell--center"]]: textAlign === "center" }, { [tableStyles["table__cell--right"]]: textAlign === "right" }, className),
		"data-label": dataLabel,
		"data-testid": testId,
		...rest,
		children
	});
};
var TableCell_default$1 = TableCell;
export { TableCell as n, TextAlign as r, TableCell_default$1 as t };

//# sourceMappingURL=TableCell.js.map