import { jsx as e } from "react/jsx-runtime";
import { createSlotRecipeContext as H } from "@chakra-ui/react";
import { useSlotRecipe as w } from "@chakra-ui/react/styled-system";
import { e as P } from "./extract-style-props-CMyV-es-.es.js";
import { B as t } from "./box-DuBoAZvq.es.js";
const { withProvider: h, withContext: a } = /* @__PURE__ */ H({
  key: "nimbusTable"
}), x = /* @__PURE__ */ h("table", "root"), B = /* @__PURE__ */ a(
  "caption",
  "caption"
), F = /* @__PURE__ */ a(
  "thead",
  "header"
), k = /* @__PURE__ */ a("tbody", "body"), v = /* @__PURE__ */ a(
  "tfoot",
  "footer"
), A = /* @__PURE__ */ a("tr", "row"), G = /* @__PURE__ */ a(
  "th",
  "columnHeader"
), g = /* @__PURE__ */ a("td", "cell"), l = (o) => {
  const { ref: u, ...y } = o, C = w({ key: "nimbusTable" }), [S, N] = C.splitVariantProps(y), [R, f] = P(N);
  return /* @__PURE__ */ e(x, { ref: u, ...S, ...R, ...f });
};
l.displayName = "Table.Root";
const r = (o) => /* @__PURE__ */ e(B, { ...o });
r.displayName = "Table.Caption";
const s = (o) => /* @__PURE__ */ e(F, { ...o });
s.displayName = "Table.Header";
const n = (o) => /* @__PURE__ */ e(k, { ...o });
n.displayName = "Table.Body";
const c = (o) => /* @__PURE__ */ e(v, { ...o });
c.displayName = "Table.Footer";
const p = (o) => /* @__PURE__ */ e(A, { ...o });
p.displayName = "Table.Row";
const b = (o) => /* @__PURE__ */ e(G, { ...o });
b.displayName = "Table.ColumnHeader";
const i = (o) => /* @__PURE__ */ e(g, { ...o });
i.displayName = "Table.Cell";
const m = (o) => /* @__PURE__ */ e(t, { as: "div", overflow: "auto", ...o });
m.displayName = "Table.ScrollArea";
const T = (o) => /* @__PURE__ */ e(t, { as: "colgroup", ...o });
T.displayName = "Table.ColumnGroup";
const d = (o) => /* @__PURE__ */ e(t, { as: "col", ...o });
d.displayName = "Table.Column";
const E = {
  Root: l,
  Caption: r,
  Header: s,
  Body: n,
  Footer: c,
  Row: p,
  ColumnHeader: b,
  Cell: i,
  ScrollArea: m,
  ColumnGroup: T,
  Column: d
};
export {
  E as T,
  n as a,
  r as b,
  i as c,
  d,
  T as e,
  b as f,
  c as g,
  s as h,
  l as i,
  p as j,
  m as k
};
//# sourceMappingURL=table-BubQFrTk.es.js.map
