{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The author of a post: the portrait, the name and role, and the date or the share and save buttons; as a line, a card, or a card with the bio.",
  "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/post-author.json\n    The author of a post: the portrait, the name and role, and the date or the share and save buttons; as a line, a card, or a card with the bio.\n    Props (p): post, extras, labels, mode, share, className. -#}\n{%- set v_post = og_def(p['post'], none) -%}\n{%- set v_extras = og_def(p['extras'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_mode = og_def(p['mode'], 'line') -%}\n{%- set v_share = og_def(p['share'], false) -%}\n{%- set c_12 -%}\n  {%- set c_10 -%}\n    {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_post, ['author']), 'ratio': '1/1', 'className': og_cnv(['size-10 shrink-0 rounded-full'])}}) }}\n    {%- set c_3 -%}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_post, ['author'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_extras, ['role'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Align': 'start', 'Class': 'min-w-0 flex-1 text-start'}, 'children': c_3}) }}\n    {%- if og_t(v_share) %}\n      {%- set c_6 -%}\n        {%- set c_4 -%}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'share-2', 'Size': 16}}) }}\n          {{ og_text(og_get(v_labels, ['share'])) }}\n        {%- endset -%}\n        {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'default', 'Class': 'gap-2'}, 'children': c_4}) }}\n        {%- set c_5 -%}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'bookmark', 'Size': 16}}) }}\n          {{ og_text(og_get(v_labels, ['save'])) }}\n        {%- endset -%}\n        {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'default', 'Class': 'gap-2'}, 'children': c_5}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '2'}, 'children': c_6}) }}\n    {%- else %}\n      {%- set c_9 -%}\n        {%- set c_8 -%}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'calendar', 'Size': 16}}) }}\n          {%- set c_7 -%}\n            {{ og_text(og_get(v_post, ['date'])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_7}) }}\n        {%- endset -%}\n        {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_8}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_9}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_10}) }}\n  {%- if og_t(og_eq(v_mode, 'bio')) %}\n    {%- set c_11 -%}\n      {{ og_text(og_get(v_extras, ['bio'])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_11}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': og_s(og_cnv([('' if og_t(og_eq(v_mode, 'line')) else 'rounded bg-card inset-ring inset-ring-border p-4'), og_def(p['className'], '')])), 'Attrs': og_attrs(['data-slot', 'post-author'])}, 'children': c_12}) }}\n",
      "path": "blocks/post-author.html.j2",
      "target": "blocks/post-author.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "post-author",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Post Author",
  "type": "registry:component"
}
