'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
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.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.jsx("thead", { ref: ref, ...props, className: header({ className }) });
});
const TableBody = React.forwardRef(({ ...props }, ref) => {
    return jsxRuntime.jsx("tbody", { ref: ref, ...props });
});
const TableRow = React.forwardRef(({ ...props }, ref) => {
    return jsxRuntime.jsx("tr", { ref: ref, ...props });
});
const head = index.cva(table_module.default['head']);
const TableHead = React.forwardRef(({ className, ...props }, ref) => {
    return jsxRuntime.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.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.jsx("tr", { ref: ref, className: sectionHeader({ className: classNames?.row }), children: jsxRuntime.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
