import { jsx } from 'react/jsx-runtime';
import { c as cn } from '../utils-DdHUxIdC.js';

function TableHeader$1({ className, ...props }) {
    return (jsx("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b", className), ...props }));
}
function TableBody$1({ className, ...props }) {
    return (jsx("tbody", { "data-slot": "table-body", className: cn("[&_tr:last-child]:border-0", className), ...props }));
}
function TableFooter$1({ className, ...props }) {
    return (jsx("tfoot", { "data-slot": "table-footer", className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props }));
}
function TableRow$1({ className, ...props }) {
    return (jsx("tr", { "data-slot": "table-row", className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className), ...props }));
}
function TableHead$1({ className, ...props }) {
    return (jsx("th", { "data-slot": "table-head", className: cn("h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0", className), ...props }));
}
function TableCell$1({ className, ...props }) {
    return (jsx("td", { "data-slot": "table-cell", className: cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className), ...props }));
}
function TableCaption$1({ className, ...props }) {
    return (jsx("caption", { "data-slot": "table-caption", className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
}

const Table = ({ className, ...props }) => (jsx("div", { "data-slot": "table-container", className: "relative w-full", children: jsx("table", { "data-slot": "table", className: cn("w-full caption-bottom text-sm", className), ...props }) }));
const TableHeader = (props) => (jsx(TableHeader$1, { ...props }));
const TableBody = ({ className, ...props }) => (jsx(TableBody$1, { className: cn("[&_tr]:border-border", className), ...props }));
const TableFooter = ({ className, ...props }) => (jsx(TableFooter$1, { className: cn("border-border", className), ...props }));
const TableHead = ({ className, ...props }) => (jsx(TableHead$1, { className: cn("h-11 px-3", className), ...props }));
const TableRow = ({ className, ...props }) => (jsx(TableRow$1, { className: cn("border-border", className), ...props }));
const TableCell = ({ className, ...props }) => (jsx(TableCell$1, { className: cn("px-3 py-2.5", className), ...props }));
const TableCaption = (props) => jsx(TableCaption$1, { ...props });

export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
//# sourceMappingURL=Table.js.map
