{
  "$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{var $k_TONE_DOT = ['gray' => 'bg-muted-foreground', 'green' => 'bg-emerald-500', 'blue' => 'bg-blue-500', 'amber' => 'bg-amber-500', 'red' => 'bg-red-500']}\n{var $v_items = ($p['items'] ?? null)}\n{capture $c_9}\n  {capture $c_8}\n    {foreach og_l($v_items) as $v_item}\n      {var $v_i = $iterator->counter0}\n      {capture $c_7}\n        {capture $c_1}\n          {if og_t(og_lt($v_i, og_sub(og_len($v_items), 1)))}\n            {=og_include('compose/Inline.latte', ['class' => 'absolute top-4 -bottom-0 w-px bg-border'])|noescape}\n          {/if}\n          {=og_include('compose/Inline.latte', ['class' => og_s(og_cnv(['mt-2 size-2 rounded-full', og_at($k_TONE_DOT, og_coalesce([og_get($v_item, ['tone']), 'gray']))]))])|noescape}\n        {/capture}\n        {=og_include('compose/Box.latte', ['class' => 'relative flex w-2 shrink-0 justify-center', 'children' => (string) $c_1])|noescape}\n        {capture $c_6}\n          {capture $c_4}\n            {capture $c_2}\n              {=og_text(og_get($v_item, ['title']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['class' => 'm-0 text-sm font-bold text-foreground', 'children' => (string) $c_2])|noescape}\n            {capture $c_3}\n              {=og_text(og_get($v_item, ['time']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['class' => 'm-0 shrink-0 text-xs font-medium text-muted-foreground', 'children' => (string) $c_3])|noescape}\n          {/capture}\n          {=og_include('compose/Box.latte', ['class' => 'flex flex-wrap items-baseline justify-between gap-x-4', 'children' => (string) $c_4])|noescape}\n          {if og_t(og_get($v_item, ['text']))}\n            {capture $c_5}\n              {=og_text(og_get($v_item, ['text']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-medium text-muted-foreground', 'children' => (string) $c_5])|noescape}\n          {/if}\n        {/capture}\n        {=og_include('compose/Box.latte', ['class' => 'flex min-w-0 flex-1 flex-col gap-0', 'children' => (string) $c_6])|noescape}\n      {/capture}\n      {=og_include('compose/ListItem.latte', ['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' => (string) $c_7])|noescape}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col p-0', 'children' => (string) $c_8])|noescape}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['min-w-0', ($p['className'] ?? '')])), 'attrs' => og_attrs(['data-slot', 'timeline']), 'children' => (string) $c_9])|noescape}\n",
      "path": "blocks/timeline.latte",
      "target": "blocks/timeline.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "timeline",
  "registryDependencies": [
    "box",
    "inline",
    "list",
    "list-item",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Timeline",
  "type": "registry:component"
}
