{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The facts of a post in a column (author, date, minutes, views), then the related reading as links.",
  "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-outline.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PostOutlineProps are the props of PostOutline; the values are the JSON shapes of the TypeScript props.\ntype PostOutlineProps struct {\n\tPost any `json:\"post\"`\n\tExtras any `json:\"extras\"`\n\tLabels any `json:\"labels\"`\n}\n\n// The facts of a post in a column (author, date, minutes, views), then the related reading as links.\ntempl PostOutline(p PostOutlineProps) {\n\t{{ vPost := p.Post }}\n\t{{ vExtras := p.Extras }}\n\t{{ vLabels := p.Labels }}\n\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"post-outline\")}}) {\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"user\", Size: 16})\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vPost, \"author\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"calendar\", Size: 16})\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vPost, \"date\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"clock\", Size: 16})\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"minutes\"), uiutils.Get(vPost, \"minutes\"))) }\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"eye\", Size: 16})\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"views\"), uiutils.Get(vExtras, \"views\"))) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"stretch\", BoxProps: box.BoxProps{Class: \"border-t border-border pt-4\"}}) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", Weight: \"medium\", TextProps: text.TextProps{Class: \"uppercase tracking-wide text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"related\")) }\n\t\t\t}\n\t\t\tfor _, vL := range uiutils.L(uiutils.Get(vExtras, \"outline\")) {\n\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vL, \"href\"), Class: uiutils.Cnv(\"text-sm font-medium\"), Size: \"sm\", Testid: \"post-link\"}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"chevron-right\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vL, \"name\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/post-outline.templ",
      "target": "blocks/post-outline.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "post-outline",
  "registryDependencies": [
    "group",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "menu-entry",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Post Outline",
  "type": "registry:component"
}
