{
  "$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{var $v_post = ($p['post'] ?? null)}\n{var $v_extras = ($p['extras'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_mode = ($p['mode'] ?? 'line')}\n{var $v_share = ($p['share'] ?? false)}\n{capture $c_12}\n  {capture $c_10}\n    {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_post, ['author']), 'ratio' => '1/1', 'className' => og_cnv(['size-10 shrink-0 rounded-full'])]])|noescape}\n    {capture $c_3}\n      {capture $c_1}\n        {=og_text(og_get($v_post, ['author']))}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}\n      {capture $c_2}\n        {=og_text(og_get($v_extras, ['role']))}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_2])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '0', 'align' => 'start', 'class' => 'min-w-0 flex-1 text-start', 'children' => (string) $c_3])|noescape}\n    {if og_t($v_share)}\n      {capture $c_6}\n        {capture $c_4}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'share-2', 'size' => 16])|noescape}\n          {=og_text(og_get($v_labels, ['share']))}\n        {/capture}\n        {=og_include('compose/Button.latte', ['variant' => 'ghost', 'size' => 'default', 'class' => 'gap-2', 'children' => (string) $c_4])|noescape}\n        {capture $c_5}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'bookmark', 'size' => 16])|noescape}\n          {=og_text(og_get($v_labels, ['save']))}\n        {/capture}\n        {=og_include('compose/Button.latte', ['variant' => 'ghost', 'size' => 'default', 'class' => 'gap-2', 'children' => (string) $c_5])|noescape}\n      {/capture}\n      {=og_include('compose/Group.latte', ['gap' => '2', 'children' => (string) $c_6])|noescape}\n    {else}\n      {capture $c_9}\n        {capture $c_8}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'calendar', 'size' => 16])|noescape}\n          {capture $c_7}\n            {=og_text(og_get($v_post, ['date']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_7])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_8])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'text-muted-foreground', 'children' => (string) $c_9])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'children' => (string) $c_10])|noescape}\n  {if og_t(og_eq($v_mode, 'bio'))}\n    {capture $c_11}\n      {=og_text(og_get($v_extras, ['bio']))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_11])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'class' => og_s(og_cnv([(og_t(og_eq($v_mode, 'line')) ? '' : 'rounded bg-card inset-ring inset-ring-border p-4'), ($p['className'] ?? '')])), 'attrs' => og_attrs(['data-slot', 'post-author']), 'children' => (string) $c_12])|noescape}\n",
      "path": "blocks/post-author.latte",
      "target": "blocks/post-author.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "post-author",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Post Author",
  "type": "registry:component"
}
