import * as React from 'react' import type { z } from 'zod/v4' import type { TableBodyProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, TableVariantEnum } from '../types' import { cn } from '../utils' const tableVariantClasses: Record, string> = { ghost: 'bg-background', primary: 'bg-accent', striped: 'bg-background [&_tbody_tr:nth-child(odd)]:bg-accent/80' } const Table = React.forwardRef( ({ children, variant = 'primary', className }, ref) => { return (
{children}
) } ) Table.displayName = 'Table' const TableHeader = React.forwardRef( ({ children, className }, ref) => ( {children} ) ) TableHeader.displayName = 'TableHeader' const TableBody = React.forwardRef( ({ children, className }, ref) => ( tr:last-child]:border-b-0 [&>tr]:border-b', className)}> {children} ) ) TableBody.displayName = 'TableBody' const TableRow = React.forwardRef( ({ children, className }, ref) => ( {children} ) ) TableRow.displayName = 'TableRow' const TableFooter = React.forwardRef( ({ children, className }, ref) => ( {children} ) ) TableFooter.displayName = 'TableFooter' const TableHead = React.forwardRef( ({ children, className }, ref) => ( {children} ) ) TableHead.displayName = 'TableHead' const TableCell = React.forwardRef( ({ children, className }, ref) => ( {children} ) ) TableCell.displayName = 'TableCell' export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow }