@szum-tech/design-system
Version:
Szum-Tech design system with tailwindcss support
1 lines • 1.47 kB
JavaScript
import {a}from'./chunk-JUNHRB4B.js';import {jsx}from'react/jsx-runtime';function c({className:t,...e}){return jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:jsx("table",{"data-slot":"table",className:a("w-full caption-bottom text-sm",t),...e})})}function P({className:t,...e}){return jsx("thead",{"data-slot":"table-header",className:a("[&_tr]:border-b",t),...e})}function h({className:t,...e}){return jsx("tbody",{"data-slot":"table-body",className:a("[&_tr:last-child]:border-0",t),...e})}function N({className:t,...e}){return jsx("tfoot",{"data-slot":"table-footer",className:a("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",t),...e})}function B({className:t,...e}){return jsx("tr",{"data-slot":"table-row",className:a("hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...e})}function q({className:t,...e}){return jsx("th",{"data-slot":"table-head",className:a("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",t),...e})}function E({className:t,...e}){return jsx("td",{"data-slot":"table-cell",className:a("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",t),...e})}function K({className:t,...e}){return jsx("caption",{"data-slot":"table-caption",className:a("text-muted-foreground mt-4 text-sm",t),...e})}export{c as a,P as b,h as c,N as d,B as e,q as f,E as g,K as h};