{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Tags, reading figures and an author card with share and save over a wide cover; the author, figures, tags and actions beside the cover; or the facts and related reading beside it.",
  "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\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport type PostExtras = {\n  role: string;\n  bio: string;\n  views: string;\n  likes: string;\n  tags: NavLink[];\n  outline: NavLink[];\n};\n\nexport type PostSplitLabels = {\n  minutes: string;\n  views: string;\n  likes: string;\n  share: string;\n  save: string;\n  read: string;\n  related: string;\n};\n",
      "path": "blocks/post-split.types.ts",
      "target": "blocks/post-split.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 post header with the author, the reading figures, the tags and the actions. Axes: layout (center: tags,\n  figures and an author card with share and save over a wide cover; split: beside the cover; outline: facts and\n  related reading beside the cover), mediaSide, author (line, card, bio), cover (wide, square), actions (pair,\n  wide, icons), tone.\n-->\n<script lang=\"ts\">\nimport type { PostExtras, PostSplitLabels } from \"./post-split.types\";\nimport type { Post } from \"./post-card.types\";\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport type PostSplitProps = {\n  id: string;\n  post: Post;\n  labels: PostSplitLabels;\n  extras: PostExtras;\n  level?: 1 | 2;\n  layout?: \"center\" | \"split\" | \"outline\";\n  mediaSide?: \"end\" | \"start\";\n  author?: \"line\" | \"card\" | \"bio\";\n  cover?: \"wide\" | \"square\";\n  actions?: \"pair\" | \"wide\" | \"icons\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport MediaFrame from \"../components/media-frame.vue\";\nimport PostActions from \"../components/post-actions.vue\";\nimport PostAuthor from \"../components/post-author.vue\";\nimport PostOutline from \"../components/post-outline.vue\";\nimport PostStats from \"../components/post-stats.vue\";\nimport PostTags from \"../components/post-tags.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\n\nconst {\n  id,\n  post,\n  labels,\n  extras,\n  level = 1,\n  layout = \"split\",\n  mediaSide = \"end\",\n  author = \"line\",\n  cover = \"wide\",\n  actions = \"pair\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<PostSplitProps>();\n</script>\n\n<template>\n  <SectionFrame v-if=\"((layout as string) === 'center')\"\n    :id=\"id\"\n    :title=\"post.title\"\n    :lead=\"post.excerpt\"\n    :heading=\"{ badge: post.category, level }\"\n    :tone=\"tone\"\n    :media=\"{ show: true }\"\n    align=\"center\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <PostTags v-if=\"((extras.tags?.length ?? 0) > 0)\" :tags=\"extras.tags\" align=\"center\" />\n    <PostStats :post=\"post\" :extras=\"extras\" :labels=\"labels\" align=\"center\" />\n    <PostAuthor\n      :post=\"post\"\n      :extras=\"extras\"\n      :labels=\"labels\"\n      mode=\"card\"\n      :share=\"true\"\n      class=\"mx-auto w-full max-w-md\"\n    />\n    <template #aside>\n      <MediaFrame\n        :alt=\"post.title\"\n        :src=\"post.image\"\n        :ratio=\"\n          (layout as string) === 'center' ? '21/9'\n          : (cover as string) === 'square' ? '1/1'\n          : '4/3'\n        \"\n      />\n    </template>\n  </SectionFrame>\n  <SectionFrame v-else\n    :id=\"id\"\n    :title=\"post.title\"\n    :lead=\"post.excerpt\"\n    :heading=\"{ badge: post.category, level }\"\n    :tone=\"tone\"\n    :media=\"{ show: true, side: mediaSide }\"\n    layout=\"split\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <template v-if=\"((layout as string) === 'outline')\">\n      <PostOutline v-if=\"((extras.outline?.length ?? 0) > 0)\" :post=\"post\" :extras=\"extras\" :labels=\"labels\" />\n    </template>\n    <template v-else>\n      <PostAuthor :post=\"post\" :extras=\"extras\" :labels=\"labels\" :mode=\"author\" />\n      <PostStats v-if=\"((author as string) !== 'line')\" :post=\"post\" :extras=\"extras\" :labels=\"labels\" />\n      <PostTags v-if=\"((extras.tags?.length ?? 0) > 0)\" :tags=\"extras.tags\" />\n    </template>\n    <PostActions :labels=\"labels\" :mode=\"actions\" />\n    <template #aside>\n      <MediaFrame\n        :alt=\"post.title\"\n        :src=\"post.image\"\n        :ratio=\"\n          (layout as string) === 'center' ? '21/9'\n          : (cover as string) === 'square' ? '1/1'\n          : '4/3'\n        \"\n      />\n    </template>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/post-split.vue",
      "target": "blocks/post-split.vue"
    }
  ],
  "meta": {
    "category": "content",
    "group": "blog",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "post-split",
  "registryDependencies": [
    "media-frame",
    "nav-bar",
    "post-actions",
    "post-author",
    "post-card",
    "post-outline",
    "post-stats",
    "post-tags",
    "section-frame",
    "utils"
  ],
  "runtime": "vue",
  "title": "Post Split",
  "type": "registry:block"
}
