{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "empty",
  "title": "Empty",
  "description": "Astro empty-state parts for lists, searches, and unfinished setup.",
  "dependencies": [
    "class-variance-authority",
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/empty/empty-content.astro",
      "content": "---\n/**\n * Actions under an empty state, such as a button, input, or link.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"empty-content\"\n  class={cn(\"flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-sm text-balance\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty-content.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/empty-description.astro",
      "content": "---\n/**\n * Supporting text for an empty state.\n * A description that follows the title keeps a small gap above it.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"empty-description\"\n  class={cn(\"text-sm text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary [[data-slot=empty-title]+&]:mt-1\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/empty-header.astro",
      "content": "---\n/**\n * Groups the media, title, and description of an empty state.\n * The group stays narrow and centered.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"empty-header\"\n  class={cn(\"flex max-w-sm flex-col items-center text-center\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty-header.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/empty-media.astro",
      "content": "---\n/**\n * Media for an empty state: an icon, an image, or another component.\n *\n * `variant=\"icon\"` draws two offset cards behind the icon.\n * Those cards are decorative. The slot stays on the front card.\n * A `class` on this component also reaches each card, so a size or color\n * change stays on the whole stack.\n *\n * @see https://coss.com/ui/docs/components/empty\n */\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"cn\"\n\nconst emptyMediaVariants = cva(\"flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\", {\n  defaultVariants: {\n    variant: \"default\",\n  },\n  variants: {\n    variant: {\n      default: \"bg-transparent\",\n      icon: \"relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card text-foreground shadow-sm/5 not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5\",\n    },\n  },\n})\n\ntype Props = HTMLAttributes<\"div\"> & VariantProps<typeof emptyMediaVariants>\n\nconst { class: className, variant = \"default\", ...props } = Astro.props\n\n/** Shared face for the front card and the two offset cards. */\nconst cardClass = cn(emptyMediaVariants({ variant }), className)\n---\n\n<div\n  data-slot=\"empty-media\"\n  data-variant={variant}\n  class={cn(\"relative mb-6\", className)}\n  {...props}\n>\n  {variant === \"icon\" && (\n    <>\n      <div\n        aria-hidden=\"true\"\n        data-slot=\"empty-media-decoration\"\n        class={cn(\n          cardClass,\n          \"pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 -rotate-10 scale-84 shadow-none\",\n        )}\n      />\n      <div\n        aria-hidden=\"true\"\n        data-slot=\"empty-media-decoration\"\n        class={cn(\n          cardClass,\n          \"pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none\",\n        )}\n      />\n    </>\n  )}\n  <div data-slot=\"empty-media-content\" data-variant={variant} class={cardClass}>\n    <slot />\n  </div>\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty-media.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/empty-title.astro",
      "content": "---\n/**\n * Title of an empty state.\n * `font-heading` follows the sans face until a theme sets another heading font.\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"empty-title\" class={cn(\"font-heading text-xl font-semibold\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/empty.astro",
      "content": "---\n/**\n * Root container for an empty state.\n * Place `EmptyHeader` and `EmptyContent` inside it.\n *\n * @see https://coss.com/ui/docs/components/empty\n */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"empty\" class={cn(\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 px-6 py-12 text-center text-balance md:py-20\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/empty.astro"
    },
    {
      "path": "packages/ui/src/components/ui/empty/index.ts",
      "content": "/** Empty state parts. Styles follow https://coss.com/ui/docs/components/empty */\nexport { default as Empty } from \"./empty.astro\"\nexport { default as EmptyContent } from \"./empty-content.astro\"\nexport { default as EmptyDescription } from \"./empty-description.astro\"\nexport { default as EmptyMedia } from \"./empty-media.astro\"\nexport { default as EmptyTitle } from \"./empty-title.astro\"\nexport { default as EmptyHeader } from \"./empty-header.astro\"\n",
      "type": "registry:file",
      "target": "~/src/components/ui/empty/index.ts"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "class-variance-authority": "^0.7.1",
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/empty",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
