"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/Table/index.tsx
var Table_exports = {};
__export(Table_exports, {
  Table: () => Table2
});
module.exports = __toCommonJS(Table_exports);

// src/components/Table/Table.tsx
var import_dedupe = __toESM(require("classnames/dedupe"));
var import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
var import_jsx_runtime = require("react/jsx-runtime");
var Table = ({ ref, ...props }) => {
  const classes = (0, import_dedupe.default)("mobius", "mobius-table", props.className);
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("table", { ref, ...props, className: classes });
};
Table.displayName = "Table";

// src/components/Table/Head.tsx
var import_dedupe2 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime2 = require("react/jsx-runtime");
var Head = ({ ref, ...props }) => {
  const classes = (0, import_dedupe2.default)("mobius", "mobius-table__head", props.className);
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { ref, ...props, className: classes });
};
Head.displayName = "Table.Head";

// src/components/Table/Body.tsx
var import_dedupe3 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime3 = require("react/jsx-runtime");
var Body = ({ ref, ...props }) => {
  const classes = (0, import_dedupe3.default)("mobius", "mobius-table__body", props.className);
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { ref, ...props, className: classes });
};
Body.displayName = "Table.Body";

// src/components/Table/Foot.tsx
var import_dedupe4 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime4 = require("react/jsx-runtime");
var Foot = ({ ref, ...props }) => {
  const classes = (0, import_dedupe4.default)("mobius", "mobius-table__foot", props.className);
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tfoot", { ref, ...props, className: classes });
};
Foot.displayName = "Table.Foot";

// src/components/Table/Row.tsx
var import_dedupe5 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime5 = require("react/jsx-runtime");
var Row = ({ ref, ...props }) => {
  const classes = (0, import_dedupe5.default)("mobius", "mobius-table__row", props.className);
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("tr", { ref, ...props, className: classes });
};
Row.displayName = "Table.Row";

// src/components/Table/HeaderCell.tsx
var import_dedupe6 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime6 = require("react/jsx-runtime");
var HeaderCell = ({ ref, scope = "col", ...props }) => {
  const classes = (0, import_dedupe6.default)(
    "mobius",
    "mobius-table__head-cell",
    props.className
  );
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("th", { ...props, ref, scope, className: classes });
};
HeaderCell.displayName = "Table.HeaderCell";

// src/components/Table/Cell.tsx
var import_dedupe7 = __toESM(require("classnames/dedupe"));
var import_jsx_runtime7 = require("react/jsx-runtime");
var Cell = ({ ref, ...props }) => {
  const classes = (0, import_dedupe7.default)(
    "mobius",
    "mobius-table__body-cell",
    props.className
  );
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { ref, ...props, className: classes });
};
Cell.displayName = "Table.Cell";

// src/components/Table/index.tsx
var Table2 = Object.assign(Table, {
  Head,
  Body,
  Foot,
  Row,
  HeaderCell,
  Cell
});
Table2.displayName = "Table";
//# sourceMappingURL=index.js.map
