{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A list with nothing in it, with an optional action.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * An empty list or an empty search: a round icon, a title, a hint and an optional action, in a card or plain.\n * Axes: layout (card, plain), actions (button, none), size (default, compact).\n */\nimport { type JSX } from \"solid-js\";\nimport { Block, Button, Container, Stack, Text, Title } from \"../compose\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { cn, urlOf } from \"../utils\";\n\nexport type EmptyPanelProps = {\n  id: string;\n  title: string;\n  text: string;\n  icon?: string;\n  cta?: string;\n  ctaHref?: string;\n  layout?: \"card\" | \"plain\";\n  actions?: \"button\" | \"none\";\n  visual?: \"icon\" | \"image\";\n  size?: \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function EmptyPanel({\n  id,\n  title,\n  text,\n  icon = \"inbox\",\n  cta,\n  ctaHref,\n  layout = \"card\",\n  actions = \"button\",\n  visual = \"icon\",\n  size = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: EmptyPanelProps) {\n  return (\n    <Block tag=\"section\" aria-label={(landmarkLabel ?? title)} data-slot=\"empty\">\n      <Container\n        class={cn(\"mx-auto w-full max-w-6xl px-4\", (((size as string) === \"compact\") ? \"py-4\" : \"py-8\"))}\n        data-slot=\"container\"\n      >\n        {((visual as string) === \"image\") ? (\n          <Stack gap=\"4\" align=\"center\" class=\"mx-auto max-w-md text-center\" data-slot=\"empty-visual\">\n            <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" class=\"w-full max-w-xs\" />\n            <Title as={2} size=\"2xl\" weight=\"bold\">\n              {title}\n            </Title>\n            <Text size=\"sm\" class=\"text-muted-foreground\">\n              {text}\n            </Text>\n            {((actions as string) === \"button\") ? (\n              <Button variant=\"default\" size=\"sm\" href={urlOf(ctaHref)}>\n                {cta}\n              </Button>\n            ) : null}\n          </Stack>\n        ) : (\n          <EmptyState\n            icon={icon}\n            title={title}\n            text={text}\n            class={cn(\n              \"mx-auto max-w-xl\",\n              (((layout as string) === \"plain\") ? \"bg-transparent inset-ring-0\" : \"\"),\n              (((size as string) === \"compact\") ? \"py-6\" : \"\")\n            )}\n            action={(\n              <>\n                {((actions as string) === \"button\") ? (\n                  <Button variant=\"default\" size=\"sm\" href={urlOf(ctaHref)}>\n                    {cta}\n                  </Button>\n                ) : null}\n              </>\n            )}\n          />\n        )}\n      </Container>\n    </Block>\n  );\n}\n",
      "path": "blocks/empty-panel.tsx",
      "target": "blocks/empty-panel.tsx"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "states",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "empty-panel",
  "registryDependencies": [
    "compose",
    "empty-state",
    "media-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Empty Panel",
  "type": "registry:block"
}
