{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A consent notice with accept and decline buttons.",
  "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 * A consent notice: an icon, a heading, one paragraph and the buttons accept, decline and (optionally) settings.\n * Axes: layout (bar, card), actions (two, three), tone (default, muted).\n */\nimport { type JSX } from \"solid-js\";\nimport { Block, Box, Button, Container, Group, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { cn, tpl } from \"../utils\";\n\nexport type CookieBannerProps = {\n  id: string;\n  title: string;\n  text: string;\n  accept: string;\n  decline: string;\n  settings?: string;\n  layout?: \"bar\" | \"card\";\n  actions?: \"two\" | \"three\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n\nexport function CookieBanner({\n  id,\n  title,\n  text,\n  accept,\n  decline,\n  settings,\n  layout = \"bar\",\n  actions = \"two\",\n  tone = \"default\",\n  landmarkLabel,\n}: CookieBannerProps) {\n  return (\n    <Block\n      tag=\"section\"\n      aria-labelledby={(landmarkLabel ? undefined : tpl(\"{0}-title\", id))}\n      data-layout={layout}\n      aria-label={landmarkLabel}\n      data-slot=\"cookie\"\n    >\n      <Container class={cn(\"mx-auto w-full max-w-6xl px-4\", \"py-4\")} data-slot=\"container\">\n        <Box\n          class={cn(\n            \"flex flex-col gap-4 rounded p-6 inset-ring inset-ring-border\",\n            (((tone as string) === \"muted\") ? \"bg-muted\" : \"bg-card\"),\n            (\n              (layout as string) === \"bar\" ? \"md:flex-row md:items-center md:justify-between\"\n              : \"mx-auto w-full max-w-md\"\n            )\n          )}\n        >\n          <Group gap=\"4\" align=\"start\" class=\"min-w-0\">\n            <LucideIcon name=\"cookie\" size={24} />\n            <Stack gap=\"2\">\n              <Title as={2} size=\"base\" weight=\"bold\" id={tpl(\"{0}-title\", id)}>\n                {title}\n              </Title>\n              <Text size=\"sm\" class=\"text-muted-foreground\">\n                {text}\n              </Text>\n            </Stack>\n          </Group>\n          <Group gap=\"2\" class=\"shrink-0 flex-wrap\">\n            {(((actions as string) === \"three\") && settings) ? (\n              <Button variant=\"ghost\" size=\"sm\" type=\"button\">\n                {settings}\n              </Button>\n            ) : null}\n            <Button variant=\"outline\" size=\"sm\" type=\"button\">\n              {decline}\n            </Button>\n            <Button variant=\"default\" size=\"sm\" type=\"button\">\n              {accept}\n            </Button>\n          </Group>\n        </Box>\n      </Container>\n    </Block>\n  );\n}\n",
      "path": "blocks/cookie-banner.tsx",
      "target": "blocks/cookie-banner.tsx"
    }
  ],
  "meta": {
    "category": "promo",
    "group": "banner",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "cookie-banner",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "solid",
  "title": "Cookie Banner",
  "type": "registry:block"
}
