{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? '')}\n{var $v_lead = ($p['lead'] ?? null)}\n{var $v_heading = ($p['heading'] ?? null)}\n{var $v_action = ($p['action'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'stack')}\n{var $v_media = ($p['media'] ?? null)}\n{var $v_boxed = ($p['boxed'] ?? false)}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_align = ($p['align'] ?? 'start')}\n{var $v_measure = ($p['measure'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{var $v_titleId = og_add($v_id, '-title')}\n{var $v_sectionTone = (og_t($v_boxed) ? 'default' : $v_tone)}\n{var $v_center = og_eq($v_align, 'center')}\n{capture $c_9}\n  {capture $c_8}\n    {capture $c_7}\n      {if og_t(og_eq($v_layout, 'split'))}\n        {capture $c_4}\n          {if og_t(og_and([og_get($v_media, ['show']), og_eq(og_get($v_media, ['side']), 'start')]))}\n            {capture $c_1}\n              {=og_slot(($p['aside'] ?? null))|noescape}\n            {/capture}\n            {=og_include('compose/Box.latte', ['class' => 'w-full', 'attrs' => og_attrs(['data-slot', 'media']), 'children' => (string) $c_1])|noescape}\n          {/if}\n          {capture $c_2}\n            {=og_include('blocks/section-header.latte', ['p' => ['titleId' => $v_titleId, 'title' => $v_title, 'heading' => $v_heading, 'action' => $v_action, 'lead' => $v_lead, 'center' => $v_center]])|noescape}\n            {=og_slot(($children ?? null))|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'children' => (string) $c_2])|noescape}\n          {if og_t(og_and([og_get($v_media, ['show']), !(og_eq(og_get($v_media, ['side']), 'start'))]))}\n            {capture $c_3}\n              {=og_slot(($p['aside'] ?? null))|noescape}\n            {/capture}\n            {=og_include('compose/Box.latte', ['class' => 'w-full', 'attrs' => og_attrs(['data-slot', 'media']), 'children' => (string) $c_3])|noescape}\n          {/if}\n        {/capture}\n        {=og_include('compose/Grid.latte', ['cols' => '1-2', 'class' => og_s(og_cnv(['gap-8', (og_t(og_eq(og_get($v_media, ['align']), 'start')) ? 'items-start' : 'items-center')])), 'children' => (string) $c_4])|noescape}\n      {else}\n        {capture $c_6}\n          {=og_include('blocks/section-header.latte', ['p' => ['titleId' => $v_titleId, 'title' => $v_title, 'heading' => $v_heading, 'action' => $v_action, 'lead' => $v_lead, 'center' => $v_center]])|noescape}\n          {=og_slot(($children ?? null))|noescape}\n          {if og_t(og_get($v_media, ['show']))}\n            {capture $c_5}\n              {=og_slot(($p['aside'] ?? null))|noescape}\n            {/capture}\n            {=og_include('compose/Box.latte', ['class' => 'w-full', 'attrs' => og_attrs(['data-slot', 'media']), 'children' => (string) $c_5])|noescape}\n          {/if}\n        {/capture}\n        {=og_include('blocks/section-column.latte', ['p' => ['measure' => $v_measure], 'children' => og_markup($c_6)])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('blocks/section-box.latte', ['p' => ['boxed' => $v_boxed], 'children' => og_markup($c_7)])|noescape}\n  {/capture}\n  {=og_include('compose/Container.latte', ['class' => og_s((og_t(og_eq($v_measure, 'landing')) ? og_cnv(['mx-auto w-full px-4', og_preset('blocks/presets/defaults.json', ['section', 'landing'])]) : (og_t(og_eq($v_measure, 'fill')) ? 'w-full' : 'mx-auto w-full max-w-6xl px-4'))), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_8])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'section', 'class' => og_s(og_cnv([og_recipe('blocks/recipes/section-frame.variants.json', ['tone' => $v_sectionTone, 'density' => $v_density, 'align' => $v_align]), ($p['className'] ?? '')])), 'attrs' => og_attrs(['aria-labelledby', (og_t($v_landmarkLabel) ? null : (og_t(!(og_eq($v_title, ''))) ? $v_titleId : null)), 'aria-label', og_coalesce([$v_landmarkLabel, (og_t(og_eq($v_title, '')) ? $v_id : null)]), 'data-tone', $v_tone, 'data-density', $v_density, 'data-slot', 'section']), 'children' => (string) $c_9])|noescape}\n",
      "path": "blocks/section-frame.latte",
      "target": "blocks/section-frame.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "section-frame",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "grid",
    "presets",
    "section-box",
    "section-column",
    "section-header",
    "stack",
    "utils"
  ],
  "runtime": "latte",
  "title": "Section Frame",
  "type": "registry:component"
}
