{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features as a list of disclosures, the first one open, with an optional picture.",
  "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 * Features as a list of disclosures: icon and title in the summary, the text when open. Axes: expand (first: the\n * first one is open, none: all closed), media (none, image: a picture beside the list), tone, density.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Disclosure, Inline, Stack, Summary, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { tpl } from \"../utils\";\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type FeatureAccordionProps = {\n  id: string;\n  title: string;\n  features: Feature[];\n  empty?: string;\n  expand?: \"first\" | \"none\";\n  media?: \"none\" | \"image\";\n  multiple?: boolean;\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function FeatureAccordion({\n  id,\n  title,\n  features,\n  empty = \"\",\n  expand = \"first\",\n  media = \"none\",\n  multiple = false,\n  tone = \"default\",\n  density = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: FeatureAccordionProps) {\n  return (\n    <SectionFrame\n      id={id}\n      title={title}\n      tone={tone}\n      density={density}\n      layout={(((media as string) === \"image\") ? \"split\" : \"stack\")}\n      media={{ show: ((media as string) === \"image\") }}\n      landmarkLabel={landmarkLabel}\n      aside={(\n        <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n      )}\n    >\n      {((features?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"layout-grid\" title={empty} />\n      ) : (\n        <Stack gap=\"0\" align=\"stretch\" data-slot=\"items\">\n          <For each={features ?? []}>{(f, iOf) => { const i = iOf(); return (\n            <Disclosure\n              variant=\"item\"\n              name={(multiple ? undefined : tpl(\"{0}-accordion\", (id ?? \"accordion\")))}\n              open={(((expand as string) === \"first\") && (i === 0))}\n              data-slot=\"item\"\n            >\n              <Summary variant=\"item\">\n                <Inline class=\"flex min-w-0 items-center justify-start gap-4\">\n                  <LucideIcon name={f.icon} size={20} />\n                  <Inline class=\"text-base font-semibold\">\n                    {f.title}\n                  </Inline>\n                </Inline>\n              </Summary>\n              <Text size=\"sm\" class=\"pb-4 text-muted-foreground\">\n                {f.text}\n              </Text>\n            </Disclosure>\n          ); }}</For>\n        </Stack>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/feature-accordion.tsx",
      "target": "blocks/feature-accordion.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "feature-accordion",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Accordion",
  "type": "registry:block"
}
