import { t as u } from "./vendor/react.js";
import { t } from "./utils.js";
var o = u();
function l({ className: a, disableOverflow: e, ...c }) {
  return /* @__PURE__ */ (0, o.jsx)("div", {
    "data-slot": "table-container",
    className: t("relative w-full", !e && "overflow-x-auto"),
    children: /* @__PURE__ */ (0, o.jsx)("table", {
      "data-slot": "table",
      className: t("w-full caption-bottom text-sm", a),
      ...c
    })
  });
}
function s({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("thead", {
    "data-slot": "table-header",
    className: t("[&_tr]:border-b", a),
    ...e
  });
}
function r({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("tbody", {
    "data-slot": "table-body",
    className: t("[&_tr:last-child]:border-0", a),
    ...e
  });
}
function d({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("tfoot", {
    "data-slot": "table-footer",
    className: t("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", a),
    ...e
  });
}
function n({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("tr", {
    "data-slot": "table-row",
    className: t("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors duration-200 ease-smooth motion-reduce:transition-none", a),
    ...e
  });
}
function i({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("th", {
    "data-slot": "table-head",
    className: t("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0", a),
    ...e
  });
}
function b({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("td", {
    "data-slot": "table-cell",
    className: t("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", a),
    ...e
  });
}
function m({ className: a, ...e }) {
  return /* @__PURE__ */ (0, o.jsx)("caption", {
    "data-slot": "table-caption",
    className: t("text-muted-foreground mt-4 text-sm", a),
    ...e
  });
}
l.displayName = "Table";
s.displayName = "Table.Header";
r.displayName = "Table.Body";
d.displayName = "Table.Footer";
n.displayName = "Table.Row";
i.displayName = "Table.Head";
b.displayName = "Table.Cell";
m.displayName = "Table.Caption";
var f = Object.assign(l, {
  Header: s,
  Body: r,
  Footer: d,
  Row: n,
  Head: i,
  Cell: b,
  Caption: m
});
export {
  f as a,
  s as i,
  b as n,
  n as o,
  i as r,
  r as t
};

//# sourceMappingURL=table2.js.map