{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "table",
  "title": "Table",
  "description": "Semantic Astro table parts for records and comparisons.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/table/index.ts",
      "content": "export { default as Table } from \"./table.astro\"\nexport { default as TableHeader } from \"./table-header.astro\"\nexport { default as TableBody } from \"./table-body.astro\"\nexport { default as TableFooter } from \"./table-footer.astro\"\nexport { default as TableRow } from \"./table-row.astro\"\nexport { default as TableHead } from \"./table-head.astro\"\nexport { default as TableCell } from \"./table-cell.astro\"\nexport { default as TableCaption } from \"./table-caption.astro\"\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/index.ts"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-body.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"tbody\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<tbody data-slot=\"table-body\" class={cn(\"relative in-data-[variant=card]:rounded-xl in-data-[variant=card]:shadow-xs/5 before:pointer-events-none before:absolute before:inset-px not-in-data-[variant=card]:before:hidden before:rounded-[calc(var(--radius-xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/8%)] [&_tr:last-child]:border-0 in-data-[variant=card]:*:[tr]:border-0 in-data-[variant=card]:*:[tr]:*:[td]:border-b in-data-[variant=card]:*:[tr]:*:[td]:bg-card in-data-[variant=card]:*:[tr]:first:*:[td]:first:rounded-ss-xl in-data-[variant=card]:*:[tr]:*:[td]:first:border-s in-data-[variant=card]:*:[tr]:first:*:[td]:border-t in-data-[variant=card]:*:[tr]:last:*:[td]:last:rounded-ee-xl in-data-[variant=card]:*:[tr]:*:[td]:last:border-e in-data-[variant=card]:*:[tr]:first:*:[td]:last:rounded-se-xl in-data-[variant=card]:*:[tr]:last:*:[td]:first:rounded-es-xl in-data-[variant=card]:*:[tr]:hover:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_2%)] in-data-[variant=card]:*:[tr]:data-[state=selected]:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_4%)] dark:in-data-[variant=card]:*:[tr]:data-[state=selected]:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_4%)] dark:in-data-[variant=card]:*:[tr]:hover:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_2%)]\", className)} {...props}>\n  <slot />\n</tbody>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-body.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-caption.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"caption\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<caption\n  data-slot=\"table-caption\"\n  class={cn(\"in-data-[variant=card]:my-4 mt-4 text-muted-foreground text-sm\", className)}\n  {...props}\n>\n  <slot />\n</caption>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-caption.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-cell.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"td\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<td data-slot=\"table-cell\" class={cn(\"whitespace-nowrap bg-clip-padding p-2.5 in-data-[slot=table-footer]:py-3.5 align-middle leading-none in-data-[variant=card]:first:ps-[calc(--spacing(2.5)-1px)] in-data-[variant=card]:last:pe-[calc(--spacing(2.5)-1px)] has-[[role=checkbox]]:w-px last:has-[[role=checkbox]]:ps-0 first:has-[[role=checkbox]]:pe-0\", className)} {...props}>\n  <slot />\n</td>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-cell.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-footer.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"tfoot\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<tfoot\n  data-slot=\"table-footer\"\n  class={cn(\"border-t in-data-[variant=card]:border-none bg-transparent not-in-data-[variant=card]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_2%)] font-medium dark:not-in-data-[variant=card]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_2%)] [&>tr]:last:border-b-0\", className)}\n  {...props}\n>\n  <slot />\n</tfoot>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-footer.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-head.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"th\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<th data-slot=\"table-head\" class={cn(\"h-10 whitespace-nowrap px-2.5 text-left align-middle font-medium text-muted-foreground leading-none has-[[role=checkbox]]:w-px last:has-[[role=checkbox]]:ps-0 first:has-[[role=checkbox]]:pe-0\", className)} {...props}>\n  <slot />\n</th>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-head.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-header.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"thead\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<thead\n  data-slot=\"table-header\"\n  class={cn(\"[&_tr]:border-b\", className)}\n  {...props}\n>\n  <slot />\n</thead>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-header.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table-row.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"tr\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<tr data-slot=\"table-row\" class={cn(\"relative border-b not-in-data-[variant=card]:hover:bg-[color-mix(in_srgb,var(--background),var(--color-black)_2%)] not-in-data-[variant=card]:data-[state=selected]:bg-[color-mix(in_srgb,var(--background),var(--color-black)_4%)] dark:not-in-data-[variant=card]:data-[state=selected]:bg-[color-mix(in_srgb,var(--background),var(--color-white)_4%)] dark:not-in-data-[variant=card]:hover:bg-[color-mix(in_srgb,var(--background),var(--color-white)_2%)]\", className)} {...props}>\n  <slot />\n</tr>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table-row.astro"
    },
    {
      "path": "packages/ui/src/components/ui/table/table.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"table\"> & { variant?: \"default\" | \"card\" }\n\nconst { class: className, variant = \"default\", ...props } = Astro.props\n---\n\n<div\n  data-slot=\"table-container\"\n  data-variant={variant}\n  class=\"relative w-full overflow-x-auto\"\n>\n  <table data-slot=\"table\" class={cn(\"w-full caption-bottom in-data-[variant=card]:border-separate in-data-[variant=card]:border-spacing-0 text-sm\", className)} {...props}>\n    <slot />\n  </table>\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/table/table.astro"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/table",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
