import { t as e } from "../../utils-B7XIe3qq.js";
import "react";
import { jsx as t } from "react/jsx-runtime";
//#region src/react/primitives/table.tsx
function n({ className: n, ...r }) {
	return /* @__PURE__ */ t("div", {
		"data-slot": "table-container",
		className: "relative w-full overflow-x-auto",
		children: /* @__PURE__ */ t("table", {
			"data-slot": "table",
			className: e("w-full caption-bottom text-sm", n),
			...r
		})
	});
}
function r({ className: n, ...r }) {
	return /* @__PURE__ */ t("thead", {
		"data-slot": "table-header",
		className: e("[&_tr]:border-b", n),
		...r
	});
}
function i({ className: n, ...r }) {
	return /* @__PURE__ */ t("tbody", {
		"data-slot": "table-body",
		className: e("[&_tr:last-child]:border-0", n),
		...r
	});
}
function a({ className: n, ...r }) {
	return /* @__PURE__ */ t("tfoot", {
		"data-slot": "table-footer",
		className: e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", n),
		...r
	});
}
function o({ className: n, ...r }) {
	return /* @__PURE__ */ t("tr", {
		"data-slot": "table-row",
		className: e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", n),
		...r
	});
}
function s({ className: n, ...r }) {
	return /* @__PURE__ */ t("th", {
		"data-slot": "table-head",
		className: e("text-foreground h-12 px-4 text-left align-middle font-medium whitespace-nowrap first:pl-6 last:pr-6 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
		...r
	});
}
function c({ className: n, ...r }) {
	return /* @__PURE__ */ t("td", {
		"data-slot": "table-cell",
		className: e("px-4 py-3 align-middle whitespace-nowrap first:pl-6 last:pr-6 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
		...r
	});
}
function l({ className: n, ...r }) {
	return /* @__PURE__ */ t("caption", {
		"data-slot": "table-caption",
		className: e("text-muted-foreground mt-4 text-sm", n),
		...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 };

//# sourceMappingURL=table.js.map