{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A vertical list of events (an order's history): a dot on a line, the title, an optional text and the time. Newest first or oldest first is the caller's order.",
  "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/parts/timeline.json\n    A vertical list of events (an order's history): a dot on a line, the title, an optional text and the time. Newest first or oldest first is the caller's order.\n    Props (p): items, className. -#}\n{%- set k_TONE_DOT = {'gray': 'bg-muted-foreground', 'green': 'bg-emerald-500', 'blue': 'bg-blue-500', 'amber': 'bg-amber-500', 'red': 'bg-red-500'} -%}\n{%- set v_items = og_def(p['items'], none) -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- for v_item in og_l(v_items) %}\n      {%- set v_i = loop.index0 -%}\n      {%- set c_7 -%}\n        {%- set c_1 -%}\n          {%- if og_t(og_lt(v_i, og_sub(og_len(v_items), 1))) %}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': 'absolute top-4 -bottom-0 w-px bg-border'}}) }}\n          {%- endif %}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(og_cnv(['mt-2 size-2 rounded-full', og_at(k_TONE_DOT, og_coalesce([og_get(v_item, ['tone']), 'gray']))]))}}) }}\n        {%- endset -%}\n        {{ og_include('compose/box.html.j2', {'p': {'Class': 'relative flex w-2 shrink-0 justify-center'}, 'children': c_1}) }}\n        {%- set c_6 -%}\n          {%- set c_4 -%}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_item, ['title'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-sm font-bold text-foreground'}, 'children': c_2}) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_item, ['time'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 shrink-0 text-xs font-medium text-muted-foreground'}, 'children': c_3}) }}\n          {%- endset -%}\n          {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex flex-wrap items-baseline justify-between gap-x-4'}, 'children': c_4}) }}\n          {%- if og_t(og_get(v_item, ['text'])) %}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_item, ['text'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-medium text-muted-foreground'}, 'children': c_5}) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex min-w-0 flex-1 flex-col gap-0'}, 'children': c_6}) }}\n      {%- endset -%}\n      {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'relative flex min-w-0 gap-4 pb-4 last:pb-0', 'Attrs': og_attrs(['data-event', og_get(v_item, ['id']), 'data-slot', 'timeline-item'])}, 'children': c_7}) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col p-0'}, 'children': c_8}) }}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['min-w-0', og_def(p['className'], '')])), 'Attrs': og_attrs(['data-slot', 'timeline'])}, 'children': c_9}) }}\n",
      "path": "blocks/timeline.html.j2",
      "target": "blocks/timeline.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "timeline",
  "registryDependencies": [
    "box",
    "inline",
    "list",
    "list-item",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Timeline",
  "type": "registry:component"
}
