{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Year tabs over the panel of the chosen year, or the heading beside a picture with arrows and one dot per step. Choosing a step is an event.",
  "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/story-tabs.json\n    A story in steps (years or slides). Axes: layout (years: a row of year tabs over the panel of the active year with its badge, step, title, text and tag; carousel: the heading beside a picture with previous and next arrows and one dot per step), tone. Choosing a step emits `select`.\n    Props (p): id, title, lead, badge, steps, empty, active, labels, layout, tone, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_badge = (p.badge ?? '') -%}\n{%- set v_steps = (p.steps ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_active = (p.active ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'years') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_imageAlt = (p.imageAlt ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- if og_t(og_eq(og_len(v_steps), 0)) %}\n  {%- set c_1 -%}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'milestone', 'title': v_empty}}, with_context = false) }}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_1)}, with_context = false) }}\n{%- elseif og_t(og_eq(v_layout, 'years')) %}\n  {%- set c_6 -%}\n    {%- set c_5 -%}\n      {%- for v_s in og_l(v_steps) %}\n        {%- set c_4 -%}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_s, ['date'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'text-sm font-semibold', 'children': c_2}, with_context = false) }}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_s, ['tag'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'text-xs', 'children': c_3}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': og_s((og_t(og_eq(og_get(v_s, ['id']), v_active)) ? 'default' : 'outline')), 'size': 'lg', 'type': 'button', 'class': 'h-auto flex-col items-start gap-0 py-2 text-start', 'attrs': og_attrs(['data-active', (og_t(og_eq(og_get(v_s, ['id']), v_active)) ? 'true' : 'false')]), 'children': c_4}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-2 gap-2 sm:grid-cols-4', 'attrs': og_attrs(['data-slot', 'story-tabs']), 'children': c_5}, with_context = false) }}\n    {%- for v_s in og_l(v_steps) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_eq(og_get(v_s, ['id']), v_active)) %}\n        {{ include('blocks/story-panel.html.twig', {'p': {'s': v_s, 'index': v_i, 'total': og_len(v_steps), 'labels': v_labels}}, with_context = false) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_6)}, with_context = false) }}\n{%- else %}\n  {%- set f_7 -%}\n    {%- set c_11 -%}\n      {{ include('blocks/media-frame.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'src': v_image, 'ratio': '4/3'}}, with_context = false) }}\n      {%- set c_10 -%}\n        {%- set c_8 -%}\n          {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-left', 'size': 16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(og_get(v_labels, ['previous'])), 'children': c_8}, with_context = false) }}\n        {{ include('blocks/story-dots.html.twig', {'p': {'steps': v_steps, 'active': v_active}}, with_context = false) }}\n        {%- set c_9 -%}\n          {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-right', 'size': 16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(og_get(v_labels, ['next'])), 'children': c_9}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'children': c_10}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'children': c_11}, with_context = false) }}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_7)}}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/story-tabs.html.twig",
      "target": "blocks/story-tabs.html.twig"
    }
  ],
  "meta": {
    "category": "content",
    "group": "story",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "story-tabs",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "group",
    "inline",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "story-dots",
    "story-panel",
    "utils"
  ],
  "runtime": "twig",
  "title": "Story Tabs",
  "type": "registry:block"
}
