{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "empty", "type": "registry:ui", "title": "Empty", "files": [ { "path": "ui/empty.tsrx", "type": "registry:ui", "target": "components/ui/empty.tsrx", "content": "// Base UI base empty — presentational, no headless primitive in any base.\n//\n// UNVERIFIED PROVENANCE: derived from this package's React Aria base rather than transcribed\n// from upstream's `bases/base-ui/ui/empty.tsx`, which was not available at port time.\n// Diff the class strings against the upstream source before treating this as ported.\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport type { DivProps, HostProps } from '@/lib/types';\n\nexport function Empty({ className, ...props }: DivProps) @{\n\t\n}\n\nexport function EmptyHeader({ className, ...props }: DivProps) @{\n\t\n}\n\nexport const emptyMediaVariants = cva(\n\t'mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-transparent',\n\t\t\t\ticon: 'flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*=\\'size-\\'])]:size-4',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface EmptyMediaProps extends DivProps {\n\tvariant?: VariantProps['variant'];\n}\n\nexport function EmptyMedia({ className, variant = 'default', ...props }: EmptyMediaProps) @{\n\t\n}\n\nexport function EmptyTitle({ className, ...props }: DivProps) @{\n\t\n}\n\n// Upstream types this part as a `

` while rendering a `

`; the prop type is transcribed\n// as-authored rather than \"corrected\", so the surface matches upstream exactly.\nexport function EmptyDescription({ className, ...props }: HostProps<'p'>) @{\n\ta]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n}\n\nexport function EmptyContent({ className, ...props }: DivProps) @{\n\t\n}\n" } ], "dependencies": [ "class-variance-authority" ], "registryDependencies": [ "@octane/types", "@octane/utils" ] }