import * as React from "react" import { cn } from "~/lib/utils" function Table({ className, ...props }: React.ComponentProps<"table">) { return (
) } function TableHeader({ className, ...props }: React.ComponentProps<"thead">) { return ( carries no border; the header/body divider comes // from the first body row's top rule (TableRow border-t), so no border-b here // to avoid a doubled rule. className={cn(className)} {...props} /> ) } function TableBody({ className, ...props }: React.ComponentProps<"tbody">) { return ( ) } function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) { return ( tr]:last:border-b-0", className )} {...props} /> ) } function TableRow({ className, ...props }: React.ComponentProps<"tr">) { return ( ) } function TableHead({ className, ...props }: React.ComponentProps<"th">) { return (
"h-10"; inner "flex items-center gap-1 border-r ... px-4 // text-left last:border-r-0"; label "text-body-extra-small-medium-0 // font-body-extra-small-medium-0 text-text-neutral-secondary"). className={cn( "text-text-neutral-secondary text-body-extra-small-medium-0 font-body-extra-small-medium-0 h-10 border-r border-solid border-border-default px-4 text-left align-middle whitespace-nowrap last:border-r-0 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className )} {...props} /> ) } function TableCell({ className, ...props }: React.ComponentProps<"td">) { return ( which acts as a row min-height.) className={cn( "h-12 border-r border-solid border-border-default px-4 py-1 align-middle whitespace-nowrap last:border-r-0 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className )} {...props} /> ) } function TableCaption({ className, ...props }: React.ComponentProps<"caption">) { return (
) } export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, }