import { jsx } from 'react/jsx-runtime';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import React__default from 'react';
import styles from './table.module.css.js';

const table = cva(styles['table']);
const TableRoot = React__default.forwardRef(({ className, ...props }, ref) => {
    return jsx("table", { ref: ref, ...props, className: table({ className }) });
});
const header = cva(styles['header']);
const TableHeader = React__default.forwardRef(({ className, ...props }, ref) => {
    return jsx("thead", { ref: ref, ...props, className: header({ className }) });
});
const TableBody = React__default.forwardRef(({ ...props }, ref) => {
    return jsx("tbody", { ref: ref, ...props });
});
const TableRow = React__default.forwardRef(({ ...props }, ref) => {
    return jsx("tr", { ref: ref, ...props });
});
const head = cva(styles['head']);
const TableHead = React__default.forwardRef(({ className, ...props }, ref) => {
    return jsx("th", { ref: ref, ...props, className: head({ className }) });
});
const cell = cva(styles['cell']);
const TableCell = React__default.forwardRef(({ className, ...props }, ref) => {
    return jsx("td", { ref: ref, ...props, className: cell({ className }) });
});
const sectionHeader = cva(styles['sectionHeader']);
const SectionHeader = React__default.forwardRef(({ classNames, colSpan, children }, ref) => {
    return (jsx("tr", { ref: ref, className: sectionHeader({ className: classNames?.row }), children: 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
});

export { Table };
//# sourceMappingURL=table.js.map
