{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Recent events as a timeline or a list.",
  "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/activity-feed.json\n    A panel with recent events: a timeline with dots on a line, or a list of rows with an icon. Axes: layout (timeline, list), density (default, compact), tone (default, muted).\n    Props (p): id, title, text, events, empty, layout, density, tone, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_text = og_def(p['text'], none) -%}\n{%- set v_events = og_def(p['events'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_layout = og_def(p['layout'], 'timeline') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- set c_7 -%}\n      {%- if og_t(og_eq(og_len(v_events), 0)) %}\n        {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'activity', 'title': v_empty}}) }}\n      {%- elif og_t(og_eq(v_layout, 'timeline')) %}\n        {{ og_include('blocks/timeline.html.j2', {'p': {'items': v_events}}) }}\n      {%- else %}\n        {%- set c_6 -%}\n          {%- for v_e in og_l(v_events) %}\n            {%- set c_5 -%}\n              {%- set c_3 -%}\n                {%- set c_1 -%}\n                  {{ og_text(og_get(v_e, ['title'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}\n                {%- if og_t(og_eq(v_density, 'default')) %}\n                  {%- set c_2 -%}\n                    {{ og_text(og_get(v_e, ['text'])) }}\n                  {%- endset -%}\n                  {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n                {%- endif %}\n              {%- endset -%}\n              {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_3}) }}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_e, ['time'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'shrink-0 text-muted-foreground'}, 'children': c_4}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': og_s(og_cnv(['flex items-start justify-between gap-4 border-b border-border last:border-0', ('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4')])), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_5}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col p-0', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_6}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('blocks/panel.html.j2', {'p': {'title': v_title, 'description': v_text, 'id': v_id, 'className': og_cnv([('bg-muted' if og_t(og_eq(v_tone, 'muted')) else '')])}, 'children': og_markup(c_7)}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4 py-8', 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_8}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else (og_tpl('{0}-t', [v_id]) if og_t(og_and([v_title, v_id])) else none)), 'aria-label', v_landmarkLabel, 'data-slot', 'panel-section'])}, 'children': c_9}) }}\n",
      "path": "blocks/activity-feed.html.j2",
      "target": "blocks/activity-feed.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "activity-feed",
  "registryDependencies": [
    "block",
    "container",
    "empty-state",
    "list",
    "list-item",
    "panel",
    "stack",
    "text",
    "timeline",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Activity Feed",
  "type": "registry:block"
}
