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