{
  "$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{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_features = og_def(p['features'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_expand = og_def(p['expand'], 'first') -%}\n{%- set v_media = og_def(p['media'], 'none') -%}\n{%- set v_multiple = og_def(p['multiple'], false) -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_image = og_def(p['image'], none) -%}\n{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set f_7 -%}\n  {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': (v_imageAlt if og_t(v_imageAlt) else v_title), 'src': v_image, 'ratio': '4/3'}}) }}\n{%- endset -%}\n{%- set c_8 -%}\n  {%- if og_t(og_eq(og_len(v_features), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'layout-grid', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_6 -%}\n      {%- for v_f in og_l(v_features) %}\n        {%- set v_i = loop.index0 -%}\n        {%- set c_5 -%}\n          {%- set c_3 -%}\n            {%- set c_2 -%}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_f, ['icon'])), 'Size': 20}}) }}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_f, ['title'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-base font-semibold'}, 'children': c_1}) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex min-w-0 items-center justify-start gap-4'}, 'children': c_2}) }}\n          {%- endset -%}\n          {{ og_include('compose/summary.html.j2', {'p': {'Variant': 'item'}, 'children': c_3}) }}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_f, ['text'])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'pb-4 text-muted-foreground'}, 'children': c_4}) }}\n        {%- endset -%}\n        {{ og_include('compose/disclosure.html.j2', {'p': {'Variant': 'item', 'Name': og_s((none if og_t(v_multiple) else 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': c_5}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_6}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'layout': ('split' if og_t(og_eq(v_media, 'image')) else 'stack'), 'media': {'show': og_eq(v_media, 'image')}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_7)}, 'children': og_markup(c_8)}) }}\n",
      "path": "blocks/feature-accordion.html.j2",
      "target": "blocks/feature-accordion.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "feature-accordion",
  "registryDependencies": [
    "disclosure",
    "empty-state",
    "inline",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "summary",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Feature Accordion",
  "type": "registry:block"
}
