{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Milestones on a vertical line beside a picture, in a narrow column, or in a row.",
  "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/milestone-timeline.json\n    Milestones on a line: the year, a tag, a title and a sentence each. Axes: layout (split: a vertical line beside a picture, stacked: a vertical line in a narrow column, row: a horizontal line of columns), tone, density.\n    Props (p): id, title, lead, milestones, empty, layout, tone, density, 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_milestones = (p.milestones ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_layout = (p.layout ?? 'split') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_imageAlt = (p.imageAlt ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set f_8 -%}\n  {{ include('blocks/media-frame.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'src': v_image, 'ratio': '3/4'}}, with_context = false) }}\n{%- endset -%}\n{%- set c_9 -%}\n  {%- if og_t(og_eq(og_len(v_milestones), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'milestone', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_7 -%}\n      {%- for v_m in og_l(v_milestones) %}\n        {%- set c_6 -%}\n          {{ include('compose/Inline.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'row')) ? 'absolute top-0 left-0 size-2 -translate-y-1/2 rounded bg-primary' : 'absolute top-2 left-0 size-2 -translate-x-1/2 rounded bg-primary')), 'attrs': og_attrs(['aria-hidden', 'true'])}, with_context = false) }}\n          {%- set c_3 -%}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_m, ['date'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_m, ['tag'])) }}\n            {%- endset -%}\n            {{ include('compose/Badge.html.twig', {'variant': 'outline', 'size': 'sm', 'children': c_2}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_3}, with_context = false) }}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_m, ['title'])) }}\n          {%- endset -%}\n          {{ include('compose/Title.html.twig', {'as': 3, 'size': 'lg', 'weight': 'bold', 'children': c_4}, with_context = false) }}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_m, ['text'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/ListItem.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'row')) ? 'relative flex flex-col gap-2 pt-6' : 'relative flex flex-col gap-2 pl-6')), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_6}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/List.html.twig', {'tag': 'ol', 'class': og_s((og_t(og_eq(v_layout, 'row')) ? 'grid grid-cols-1 gap-8 border-t border-border sm:grid-cols-2 lg:grid-cols-4' : 'flex flex-col gap-8 border-l border-border')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_7}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': (og_t(og_eq(v_layout, 'split')) ? 'split' : 'stack'), 'media': {'show': og_eq(v_layout, 'split'), 'side': 'start', 'align': 'start'}, 'measure': (og_t(og_eq(v_layout, 'stacked')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_8)}, 'children': og_markup(c_9)}, with_context = false) }}\n",
      "path": "blocks/milestone-timeline.html.twig",
      "target": "blocks/milestone-timeline.html.twig"
    }
  ],
  "meta": {
    "category": "content",
    "group": "story",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "milestone-timeline",
  "registryDependencies": [
    "badge",
    "empty-state",
    "group",
    "inline",
    "list",
    "list-item",
    "media-frame",
    "section-frame",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Milestone Timeline",
  "type": "registry:block"
}
