import * as React from 'react' import { cn } from '@/lib/utils' const twStyles = { table: 'w-full caption-bottom text-sm', tableHeader: '[&_tr]:border-b', tableBody: '[&_tr:last-child]:border-0', tableFooter: ['border-t bg-gray-100/50 font-medium [&>tr]:last:border-b-0', 'dark:bg-gray-800/50'], tableRow: [ 'border-b transition-colors hover:bg-gray-100/50 data-[state=selected]:bg-gray-100', 'dark:hover:bg-gray-800/50 dark:data-[state=selected]:bg-gray-800', ], tableHead: [ 'h-12 px-4 text-left align-middle font-medium text-neutral-500', '[&:has([role=checkbox])]:pr-0 dark:text-neutral-400', ], tableCell: 'p-4 align-middle [&:has([role=checkbox])]:pr-0', tableCaption: 'mt-4 text-sm text-neutral-500 dark:text-neutral-400', tableWrapper: 'relative w-full overflow-auto', } const Table = React.forwardRef, React.ComponentPropsWithoutRef<'table'>>( ({ className, ...props }, ref) => { return (
) }, ) Table.displayName = 'Table' const TableHeader = React.forwardRef, React.ComponentPropsWithoutRef<'thead'>>( ({ className, ...props }, ref) => { return }, ) TableHeader.displayName = 'TableHeader' const TableBody = React.forwardRef, React.ComponentPropsWithoutRef<'tbody'>>( ({ className, ...props }, ref) => { return }, ) TableBody.displayName = 'TableBody' const TableFooter = React.forwardRef, React.ComponentPropsWithoutRef<'tfoot'>>( ({ className, ...props }, ref) => { return }, ) TableFooter.displayName = 'TableFooter' const TableRow = React.forwardRef, React.ComponentPropsWithoutRef<'tr'>>( ({ className, ...props }, ref) => { return }, ) TableRow.displayName = 'TableRow' const TableHead = React.forwardRef, React.ComponentPropsWithoutRef<'th'>>( ({ className, ...props }, ref) => { return
}, ) TableHead.displayName = 'TableHead' const TableCell = React.forwardRef, React.ComponentPropsWithoutRef<'td'>>( ({ className, ...props }, ref) => { return }, ) TableCell.displayName = 'TableCell' const TableCaption = React.forwardRef, React.ComponentPropsWithoutRef<'caption'>>( ({ className, ...props }, ref) => { return
}, ) TableCaption.displayName = 'TableCaption' export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow }