{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A page section: the landmark named by its heading, the heading (h1 or h2), an optional lead, the body (`children`) and optional media. `layout` stacks everything or puts the media beside the text; `boxed` puts the body in a card. Axes: layout, media side, tone, density, align.",
  "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/patterns/section-frame.json\n    A page section: the landmark named by its heading, the heading (h1 or h2), an optional lead, the body (`children`) and optional media. `layout` stacks everything or puts the media beside the text; `boxed` puts the body in a card. Axes: layout, media side, tone, density, align.\n    Props (p): id, title, lead, heading, action, layout, media, boxed, tone, density, align, measure, landmarkLabel, className, aside (slot); children: markup. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], '') -%}\n{%- set v_lead = og_def(p['lead'], none) -%}\n{%- set v_heading = og_def(p['heading'], none) -%}\n{%- set v_action = og_def(p['action'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'stack') -%}\n{%- set v_media = og_def(p['media'], none) -%}\n{%- set v_boxed = og_def(p['boxed'], false) -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_align = og_def(p['align'], 'start') -%}\n{%- set v_measure = og_def(p['measure'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set v_titleId = og_add(v_id, '-title') -%}\n{%- set v_sectionTone = ('default' if og_t(v_boxed) else v_tone) -%}\n{%- set v_center = og_eq(v_align, 'center') -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- set c_7 -%}\n      {%- if og_t(og_eq(v_layout, 'split')) %}\n        {%- set c_4 -%}\n          {%- if og_t(og_and([og_get(v_media, ['show']), og_eq(og_get(v_media, ['side']), 'start')])) %}\n            {%- set c_1 -%}\n              {{ og_slot(og_def(p['aside'], none))|safe }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'w-full', 'Attrs': og_attrs(['data-slot', 'media'])}, 'children': c_1}) }}\n          {%- endif %}\n          {%- set c_2 -%}\n            {{ og_include('blocks/section-header.html.j2', {'p': {'titleId': v_titleId, 'title': v_title, 'heading': v_heading, 'action': v_action, 'lead': v_lead, 'center': v_center}}) }}\n            {{ og_slot(og_def(children, none))|safe }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch'}, 'children': c_2}) }}\n          {%- if og_t(og_and([og_get(v_media, ['show']), not (og_eq(og_get(v_media, ['side']), 'start'))])) %}\n            {%- set c_3 -%}\n              {{ og_slot(og_def(p['aside'], none))|safe }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'w-full', 'Attrs': og_attrs(['data-slot', 'media'])}, 'children': c_3}) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-2', 'Class': og_s(og_cnv(['gap-8', ('items-start' if og_t(og_eq(og_get(v_media, ['align']), 'start')) else 'items-center')]))}, 'children': c_4}) }}\n      {%- else %}\n        {%- set c_6 -%}\n          {{ og_include('blocks/section-header.html.j2', {'p': {'titleId': v_titleId, 'title': v_title, 'heading': v_heading, 'action': v_action, 'lead': v_lead, 'center': v_center}}) }}\n          {{ og_slot(og_def(children, none))|safe }}\n          {%- if og_t(og_get(v_media, ['show'])) %}\n            {%- set c_5 -%}\n              {{ og_slot(og_def(p['aside'], none))|safe }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'w-full', 'Attrs': og_attrs(['data-slot', 'media'])}, 'children': c_5}) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ og_include('blocks/section-column.html.j2', {'p': {'measure': v_measure}, 'children': og_markup(c_6)}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('blocks/section-box.html.j2', {'p': {'boxed': v_boxed}, 'children': og_markup(c_7)}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': og_s((og_cnv(['mx-auto w-full px-4', og_preset('blocks/presets/defaults.json', ['section', 'landing'])]) if og_t(og_eq(v_measure, 'landing')) else ('w-full' if og_t(og_eq(v_measure, 'fill')) else 'mx-auto w-full max-w-6xl px-4'))), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_8}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Class': og_s(og_cnv([og_recipe('blocks/recipes/section-frame.variants.json', {'tone': v_sectionTone, 'density': v_density, 'align': v_align}), og_def(p['className'], '')])), 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else (v_titleId if og_t(not (og_eq(v_title, ''))) else none)), 'aria-label', og_coalesce([v_landmarkLabel, (v_id if og_t(og_eq(v_title, '')) else none)]), 'data-tone', v_tone, 'data-density', v_density, 'data-slot', 'section'])}, 'children': c_9}) }}\n",
      "path": "blocks/section-frame.html.j2",
      "target": "blocks/section-frame.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "section-frame",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "grid",
    "presets",
    "section-box",
    "section-column",
    "section-header",
    "stack",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Section Frame",
  "type": "registry:component"
}
