{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nexport type Event = {\n  id: string;\n  title: string;\n  text: string;\n  time: string;\n  tone: string;\n};\n",
      "path": "blocks/activity-feed.types.ts",
      "target": "blocks/activity-feed.types.ts"
    },
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  A panel with recent events: a timeline with dots on a line, or a list of rows with an icon. Axes: layout\n  (timeline, list), density (default, compact), tone (default, muted).\n-->\n<script lang=\"ts\">\nimport type { Event } from \"./activity-feed.types\";\n\nexport type ActivityFeedProps = {\n  id: string;\n  title: string;\n  text: string;\n  events: Event[];\n  empty?: string;\n  layout?: \"timeline\" | \"list\";\n  density?: \"default\" | \"compact\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Container from \"../compose/Container.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport Panel from \"../components/panel.vue\";\nimport Timeline from \"../components/timeline.vue\";\nimport { cn, tpl } from \"../utils\";\n\nconst {\n  id,\n  title,\n  text,\n  events,\n  empty = \"\",\n  layout = \"timeline\",\n  density = \"default\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<ActivityFeedProps>();\n</script>\n\n<template>\n  <Block\n    tag=\"section\"\n    :aria-labelledby=\"(landmarkLabel ? undefined : ((title && id) ? tpl('{0}-t', id) : undefined))\"\n    :aria-label=\"landmarkLabel\"\n    data-slot=\"panel-section\"\n  >\n    <Container class=\"mx-auto w-full max-w-6xl px-4 py-8\" data-slot=\"container\">\n      <Panel :title=\"title\" :description=\"text\" :id=\"id\" :class=\"(((tone as string) === 'muted') ? 'bg-muted' : '')\">\n        <EmptyState v-if=\"((events?.length ?? 0) === 0)\" icon=\"activity\" :title=\"empty\" />\n        <Timeline v-else-if=\"((layout as string) === 'timeline')\" :items=\"events\" />\n        <List v-else class=\"m-0 flex list-none flex-col p-0\" data-slot=\"items\">\n          <ListItem v-for=\"e in events\" :key=\"e.id\"\n            :class=\"cn(\n              'flex items-start justify-between gap-4 border-b border-border last:border-0',\n              (((density as string) === 'compact') ? 'py-2' : 'py-4')\n            )\"\n            data-slot=\"item\"\n          >\n            <Stack gap=\"0\">\n              <Text size=\"sm\" weight=\"semibold\">\n                {{ e.title }}\n              </Text>\n              <Text v-if=\"((density as string) === 'default')\" size=\"sm\" class=\"text-muted-foreground\">\n                {{ e.text }}\n              </Text>\n            </Stack>\n            <Text size=\"xs\" class=\"shrink-0 text-muted-foreground\">\n              {{ e.time }}\n            </Text>\n          </ListItem>\n        </List>\n      </Panel>\n    </Container>\n  </Block>\n</template>\n",
      "path": "blocks/activity-feed.vue",
      "target": "blocks/activity-feed.vue"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "activity-feed",
  "registryDependencies": [
    "block",
    "container",
    "empty-state",
    "list",
    "list-item",
    "panel",
    "stack",
    "text",
    "timeline",
    "utils"
  ],
  "runtime": "vue",
  "title": "Activity Feed",
  "type": "registry:block"
}
