Spaces:
Running
Running
James McCool
Remove PostCSS and Tailwind configuration files, and refactor CSS styles in index.css to implement custom styles. Update button and table components to use new class names for styling consistency. Delete utility functions for class name merging.
a458144
import * as React from "react" | |
const Table = React.forwardRef(({ className, ...props }, ref) => ( | |
<div className="table-container"> | |
<table | |
ref={ref} | |
className={`table ${className || ''}`} | |
{...props} | |
/> | |
</div> | |
)) | |
Table.displayName = "Table" | |
const TableHeader = React.forwardRef(({ className, ...props }, ref) => ( | |
<thead ref={ref} className={className} {...props} /> | |
)) | |
TableHeader.displayName = "TableHeader" | |
const TableBody = React.forwardRef(({ className, ...props }, ref) => ( | |
<tbody | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableBody.displayName = "TableBody" | |
const TableFooter = React.forwardRef(({ className, ...props }, ref) => ( | |
<tfoot | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableFooter.displayName = "TableFooter" | |
const TableRow = React.forwardRef(({ className, ...props }, ref) => ( | |
<tr | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableRow.displayName = "TableRow" | |
const TableHead = React.forwardRef(({ className, ...props }, ref) => ( | |
<th | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableHead.displayName = "TableHead" | |
const TableCell = React.forwardRef(({ className, ...props }, ref) => ( | |
<td | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableCell.displayName = "TableCell" | |
const TableCaption = React.forwardRef(({ className, ...props }, ref) => ( | |
<caption | |
ref={ref} | |
className={className} | |
{...props} | |
/> | |
)) | |
TableCaption.displayName = "TableCaption" | |
export { | |
Table, | |
TableHeader, | |
TableBody, | |
TableFooter, | |
TableHead, | |
TableRow, | |
TableCell, | |
TableCaption, | |
} | |