{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/feature-accordion.json\n    Features as a list of disclosures: icon and title in the summary, the text when open. Axes: expand (first: the first one is open, none: all closed), media (none, image: a picture beside the list), tone, density.\n    Props (p): id, title, features, empty, expand, media, multiple, tone, density, image, imageAlt, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_features = ($p['features'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_expand = ($p['expand'] ?? 'first')}\n{var $v_media = ($p['media'] ?? 'none')}\n{var $v_multiple = ($p['multiple'] ?? false)}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_image = ($p['image'] ?? null)}\n{var $v_imageAlt = ($p['imageAlt'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $f_7}\n  {=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image, 'ratio' => '4/3']])|noescape}\n{/capture}\n{capture $c_8}\n  {if og_t(og_eq(og_len($v_features), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'layout-grid', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_6}\n      {foreach og_l($v_features) as $v_f}\n        {var $v_i = $iterator->counter0}\n        {capture $c_5}\n          {capture $c_3}\n            {capture $c_2}\n              {=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_f, ['icon'])), 'size' => 20])|noescape}\n              {capture $c_1}\n                {=og_text(og_get($v_f, ['title']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-base font-semibold', 'children' => (string) $c_1])|noescape}\n            {/capture}\n            {=og_include('compose/Inline.latte', ['class' => 'flex min-w-0 items-center justify-start gap-4', 'children' => (string) $c_2])|noescape}\n          {/capture}\n          {=og_include('compose/Summary.latte', ['variant' => 'item', 'children' => (string) $c_3])|noescape}\n          {capture $c_4}\n            {=og_text(og_get($v_f, ['text']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'pb-4 text-muted-foreground', 'children' => (string) $c_4])|noescape}\n        {/capture}\n        {=og_include('compose/Disclosure.latte', ['variant' => 'item', 'name' => og_s((og_t($v_multiple) ? null : og_tpl('{0}-accordion', [og_coalesce([$v_id, 'accordion'])]))), 'open' => og_t(og_and([og_eq($v_expand, 'first'), og_eq($v_i, 0)])), 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_5])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '0', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_6])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'layout' => (og_t(og_eq($v_media, 'image')) ? 'split' : 'stack'), 'media' => ['show' => og_eq($v_media, 'image')], 'landmarkLabel' => $v_landmarkLabel, 'aside' => og_markup($f_7)], 'children' => og_markup($c_8)])|noescape}\n",
      "path": "blocks/feature-accordion.latte",
      "target": "blocks/feature-accordion.latte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "feature-accordion",
  "registryDependencies": [
    "disclosure",
    "empty-state",
    "inline",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "summary",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Feature Accordion",
  "type": "registry:block"
}
