import { cn as e } from "../../../lib/utils.js";
import { jsx as t } from "react/jsx-runtime";
//#region lib/components/ui/atoms/table.tsx
function n({ className: n, ...r }) {
	return /* @__PURE__ */ t("div", {
		className: "relative w-full min-w-0 overflow-x-auto",
		"data-slot": "table-container",
		children: /* @__PURE__ */ t("table", {
			className: e("w-full caption-bottom text-sm", n),
			"data-slot": "table",
			...r
		})
	});
}
function r({ className: n, ...r }) {
	return /* @__PURE__ */ t("thead", {
		className: e("[&_tr]:border-b", n),
		"data-slot": "table-header",
		...r
	});
}
function i({ className: n, ...r }) {
	return /* @__PURE__ */ t("tbody", {
		className: e("[&_tr:last-child]:border-0", n),
		"data-slot": "table-body",
		...r
	});
}
function a({ className: n, ...r }) {
	return /* @__PURE__ */ t("tfoot", {
		className: e("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", n),
		"data-slot": "table-footer",
		...r
	});
}
function o({ className: n, ...r }) {
	return /* @__PURE__ */ t("tr", {
		className: e("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", n),
		"data-slot": "table-row",
		...r
	});
}
function s({ className: n, ...r }) {
	return /* @__PURE__ */ t("th", {
		className: e("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0", n),
		"data-slot": "table-head",
		...r
	});
}
function c({ className: n, ...r }) {
	return /* @__PURE__ */ t("td", {
		className: e("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0", n),
		"data-slot": "table-cell",
		...r
	});
}
function l({ className: n, ...r }) {
	return /* @__PURE__ */ t("caption", {
		className: e("mt-4 text-muted-foreground text-sm", n),
		"data-slot": "table-caption",
		...r
	});
}
//#endregion
export { n as Table, i as TableBody, l as TableCaption, c as TableCell, a as TableFooter, s as TableHead, r as TableHeader, o as TableRow };
