{
	"$schema": "https://shadcn-svelte.com/schema/registry-item.json",
	"name": "table",
	"title": "Table",
	"type": "registry:ui",
	"description": "Kura Table component source.",
	"registryDependencies": [
		"utils"
	],
	"files": [
		{
			"content": "import Root from './table.svelte';\nimport Body from './table-body.svelte';\nimport Caption from './table-caption.svelte';\nimport Cell from './table-cell.svelte';\nimport Footer from './table-footer.svelte';\nimport Head from './table-head.svelte';\nimport Header from './table-header.svelte';\nimport Row from './table-row.svelte';\n\nexport {\n  Root,\n  Body,\n  Caption,\n  Cell,\n  Footer,\n  Head,\n  Header,\n  Row,\n  //\n  Root as Table,\n  Body as TableBody,\n  Caption as TableCaption,\n  Cell as TableCell,\n  Footer as TableFooter,\n  Head as TableHead,\n  Header as TableHeader,\n  Row as TableRow\n};\n",
			"type": "registry:file",
			"target": "table/index.ts"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();\n</script>\n\n<tbody\n  bind:this={ref}\n  data-slot=\"table-body\"\n  class={cn('[&_tr:last-child]:border-b-0', className)}\n  {...restProps}\n>\n  {@render children?.()}\n</tbody>\n",
			"type": "registry:file",
			"target": "table/table-body.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<caption\n  bind:this={ref}\n  data-slot=\"table-caption\"\n  class={cn('mt-4 font-mono text-xs tracking-[0.14em] text-zinc-500 uppercase', className)}\n  {...restProps}\n>\n  {@render children?.()}\n</caption>\n",
			"type": "registry:file",
			"target": "table/table-caption.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLTdAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLTdAttributes> = $props();\n</script>\n\n<td\n  bind:this={ref}\n  data-slot=\"table-cell\"\n  class={cn(\n    'border-r border-zinc-900 px-3 py-2.5 align-middle whitespace-nowrap text-zinc-300 last:border-r-0 [&:has([role=checkbox])]:pr-0',\n    className\n  )}\n  {...restProps}\n>\n  {@render children?.()}\n</td>\n",
			"type": "registry:file",
			"target": "table/table-cell.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();\n</script>\n\n<tfoot\n  bind:this={ref}\n  data-slot=\"table-footer\"\n  class={cn(\n    'border-t border-zinc-800 bg-zinc-950 font-medium text-zinc-100 [&>tr]:last:border-b-0',\n    className\n  )}\n  {...restProps}\n>\n  {@render children?.()}\n</tfoot>\n",
			"type": "registry:file",
			"target": "table/table-footer.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLThAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLThAttributes> = $props();\n</script>\n\n<th\n  bind:this={ref}\n  data-slot=\"table-head\"\n  class={cn(\n    'h-10 border-r border-zinc-900 px-3 text-left align-middle font-mono text-xs font-semibold tracking-[0.14em] whitespace-nowrap text-zinc-500 uppercase last:border-r-0 [&:has([role=checkbox])]:pr-0',\n    className\n  )}\n  {...restProps}\n>\n  {@render children?.()}\n</th>\n",
			"type": "registry:file",
			"target": "table/table-head.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();\n</script>\n\n<thead\n  bind:this={ref}\n  data-slot=\"table-header\"\n  class={cn('bg-zinc-950/80 [&_tr]:border-b [&_tr]:border-zinc-800', className)}\n  {...restProps}\n>\n  {@render children?.()}\n</thead>\n",
			"type": "registry:file",
			"target": "table/table-header.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import { cn, type WithElementRef } from '$UTILS$.js';\n  import type { HTMLAttributes } from 'svelte/elements';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();\n</script>\n\n<tr\n  bind:this={ref}\n  data-slot=\"table-row\"\n  class={cn(\n    'border-b border-zinc-900 transition-colors hover:bg-zinc-950 data-[state=selected]:bg-[#b9d765]/20',\n    className\n  )}\n  {...restProps}\n>\n  {@render children?.()}\n</tr>\n",
			"type": "registry:file",
			"target": "table/table-row.svelte"
		},
		{
			"content": "<script lang=\"ts\">\n  import type { HTMLTableAttributes } from 'svelte/elements';\n  import { cn, type WithElementRef } from '$UTILS$.js';\n\n  let {\n    ref = $bindable(null),\n    class: className,\n    children,\n    ...restProps\n  }: WithElementRef<HTMLTableAttributes> = $props();\n</script>\n\n<div\n  data-slot=\"table-container\"\n  class=\"relative w-full overflow-x-auto border border-zinc-800 bg-background\"\n>\n  <table\n    bind:this={ref}\n    data-slot=\"table\"\n    class={cn('w-full caption-bottom border-collapse text-sm text-zinc-300', className)}\n    {...restProps}\n  >\n    {@render children?.()}\n  </table>\n</div>\n",
			"type": "registry:file",
			"target": "table/table.svelte"
		}
	]
}