{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Post Author component",
  "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<!--\n  The author of a post: the portrait, the name and role, and the date or the share and save buttons; as a line,\n  a card, or a card with the bio.\n-->\n<script lang=\"ts\">\nimport type { Post } from \"../blocks/post-card.types\";\nimport type { PostExtras, PostSplitLabels } from \"../blocks/post-split.types\";\n\nexport type PostAuthorProps = {\n  post: Post;\n  extras: PostExtras;\n  labels: PostSplitLabels;\n  mode?: \"line\" | \"card\" | \"bio\";\n  share?: boolean;\n  class?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Button from \"../compose/Button.vue\";\nimport Group from \"../compose/Group.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport { cn } from \"../utils\";\n\nconst {\n  post,\n  extras,\n  labels,\n  mode = \"line\",\n  share = false,\n  class: className,\n} = defineProps<PostAuthorProps>();\n</script>\n\n<template>\n  <Stack\n    gap=\"4\"\n    align=\"stretch\"\n    :class=\"cn(\n      (((mode as string) === 'line') ? '' : 'rounded bg-card inset-ring inset-ring-border p-4'),\n      className\n    )\"\n    data-slot=\"post-author\"\n  >\n    <Group gap=\"4\" align=\"center\">\n      <MediaFrame :alt=\"post.author\" ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n      <Stack gap=\"0\" align=\"start\" class=\"min-w-0 flex-1 text-start\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ post.author }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ extras.role }}\n        </Text>\n      </Stack>\n      <Group v-if=\"share\" gap=\"2\">\n        <Button variant=\"ghost\" size=\"default\" class=\"gap-2\">\n          <LucideIcon name=\"share-2\" :size=\"16\" />\n          {{ labels.share }}\n        </Button>\n        <Button variant=\"ghost\" size=\"default\" class=\"gap-2\">\n          <LucideIcon name=\"bookmark\" :size=\"16\" />\n          {{ labels.save }}\n        </Button>\n      </Group>\n      <Box v-else class=\"text-muted-foreground\">\n        <Group gap=\"2\" align=\"center\">\n          <LucideIcon name=\"calendar\" :size=\"16\" />\n          <Text size=\"sm\">\n            {{ post.date }}\n          </Text>\n        </Group>\n      </Box>\n    </Group>\n    <Text v-if=\"((mode as string) === 'bio')\" size=\"sm\" class=\"text-muted-foreground\">\n      {{ extras.bio }}\n    </Text>\n  </Stack>\n</template>\n",
      "path": "components/post-author.vue",
      "target": "components/post-author.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "post-author",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "lucide-icon",
    "media-frame",
    "post-card",
    "post-split",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Post Author",
  "type": "registry:component"
}
