{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One customer quote of TestimonialGrid: a card, a plain figure or a social post, with the author's picture, the stars and a company glyph as `item` says.",
  "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/quote-card.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// QuoteCardProps are the props of QuoteCard; the values are the JSON shapes of the TypeScript props.\ntype QuoteCardProps struct {\n\tQ any `json:\"q\"`\n\tLabels any `json:\"labels\"`\n\tItem any `json:\"item\"`\n\tLayout any `json:\"layout\"`\n}\n\n// One customer quote of TestimonialGrid: a card, a plain figure or a social post, with the author's picture, the stars and a company glyph as `item` says.\ntempl QuoteCard(p QuoteCardProps) {\n\t{{ vQ := p.Q }}\n\t{{ vLabels := p.Labels }}\n\t{{ vItem := p.Item }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"grid\") }}\n\t@FigureBlock(FigureBlockProps{Class: uiutils.Cnv(uiutils.Cnv(\"m-0 flex flex-col gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vItem, \"kind\"), \"plain\")), \"\", \"rounded p-6 inset-ring inset-ring-border bg-card\"), uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"masonry\")), \"mb-4 break-inside-avoid\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"strip\")), \"w-80 shrink-0 snap-start\", \"h-full\")))), Testid: \"item\"}) {\n\t\tif uiutils.Eq(uiutils.Get(vItem, \"kind\"), \"social\") {\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\tif !uiutils.Eq(uiutils.Get(vItem, \"avatar\"), \"none\") {\n\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vQ, \"author\"), Src: uiutils.Get(vQ, \"image\"), Ratio: \"1/1\", Class: uiutils.Cnv(\"size-12 shrink-0 rounded-full\")})\n\t\t\t\t}\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"author\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"handleLine\"), uiutils.Get(vQ, \"handle\"), uiutils.Get(vQ, \"time\"))) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"message-circle\", Size: 16, Class: \"ml-auto text-muted-foreground\"})\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: \"base\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"quote\")) }\n\t\t\t}\n\t\t} else {\n\t\t\tif !uiutils.Eq(uiutils.Get(vItem, \"rating\"), \"hide\") {\n\t\t\t\t@Rating(RatingProps{Value: uiutils.Get(vQ, \"rating\"), Label: uiutils.Tpl(uiutils.Get(vLabels, \"rating\"), uiutils.Get(vQ, \"rating\"))})\n\t\t\t}\n\t\t\tif uiutils.Eq(uiutils.Get(vItem, \"mark\"), \"icon\") {\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-muted-foreground\", Attrs: uiutils.Attrs(\"data-slot\", \"mark\")}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vQ, \"mark\")), Size: 24})\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"single\")), \"xl\", \"base\")), TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"quote\")) }\n\t\t\t}\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\tif !uiutils.Eq(uiutils.Get(vItem, \"avatar\"), \"none\") {\n\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vQ, \"author\"), Src: uiutils.Get(vQ, \"image\"), Ratio: \"1/1\", Class: uiutils.Cnv(\"size-12 shrink-0 rounded-full\")})\n\t\t\t\t}\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"author\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"byLine\"), uiutils.Get(vQ, \"role\"), uiutils.Get(vQ, \"company\"))) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/quote-card.templ",
      "target": "blocks/quote-card.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "figure-block",
    "group",
    "inline",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Quote Card",
  "type": "registry:component"
}
