'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var React = require('react');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var table_module = require('./table.module.css.cjs');

const table = index.cva(table_module.default["table"]);
const TableRoot = React.forwardRef(({ className, ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("table", { ref: ref, ...props, className: table({ className }) });
});
const header = index.cva(table_module.default["header"]);
const TableHeader = React.forwardRef(({ className, ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("thead", { ref: ref, ...props, className: header({ className }) });
});
const TableBody = React.forwardRef(({ ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("tbody", { ref: ref, ...props });
});
const TableRow = React.forwardRef(({ ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("tr", { ref: ref, ...props });
});
const head = index.cva(table_module.default["head"]);
const TableHead = React.forwardRef(({ className, ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("th", { ref: ref, ...props, className: head({ className }) });
});
const cell = index.cva(table_module.default["cell"]);
const TableCell = React.forwardRef(({ className, ...props }, ref) => {
    return jsxRuntime.jsxRuntimeExports.jsx("td", { ref: ref, ...props, className: cell({ className }) });
});
const sectionHeader = index.cva(table_module.default["sectionHeader"]);
const SectionHeader = React.forwardRef(({ classNames, colSpan, children }, ref) => {
    return (jsxRuntime.jsxRuntimeExports.jsx("tr", { ref: ref, className: sectionHeader({ className: classNames?.row }), children: jsxRuntime.jsxRuntimeExports.jsx("th", { colSpan: colSpan, className: classNames?.cell, children: children }) }));
});
const Table = Object.assign(TableRoot, {
    Header: TableHeader,
    Body: TableBody,
    Row: TableRow,
    Head: TableHead,
    Cell: TableCell,
    SectionHeader: SectionHeader,
});

exports.Table = Table;
//# sourceMappingURL=table.cjs.map
