import * as React from 'react'; import { cn } from '@/lib/utils'; type TableBodyProps = React.ComponentProps<'tbody'>; type TableCaptionProps = React.ComponentProps<'caption'>; type TableCellProps = React.ComponentProps<'td'>; type TableFooterProps = React.ComponentProps<'tfoot'>; type TableHeaderProps = React.ComponentProps<'thead'>; type TableHeadProps = React.ComponentProps<'th'>; type TableProps = React.ComponentProps<'table'> & { containerClassName?: string; containerProps?: Omit, 'children' | 'className'>; }; type TableRowProps = React.ComponentProps<'tr'>; function TableBody({ className, ...props }: TableBodyProps) { return ( ); } function TableCaption({ className, ...props }: TableCaptionProps) { return ( ); } function TableCell({ className, ...props }: TableCellProps) { return ( ); } function TableFooter({ className, ...props }: TableFooterProps) { return ( tr]:last:border-b-0', className, )} data-slot="table-footer" {...props} /> ); } function TableHead({ className, ...props }: TableHeadProps) { return ( ); } function TableHeader({ className, ...props }: TableHeaderProps) { return ( ); } function TableRoot({ children, className, containerClassName, containerProps, ref, ...props }: TableProps) { return (
{children}
); } function TableRow({ className, ...props }: TableRowProps) { return ( ); } const Table = Object.assign(TableRoot, { Body: TableBody, Caption: TableCaption, Cell: TableCell, Footer: TableFooter, Head: TableHead, Header: TableHeader, Row: TableRow, }); export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, }; export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, };