{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * One customer quote of TestimonialGrid: a card, a plain figure or a social post, with the author's picture, the\n * stars and a company glyph as `item` says.\n */\nimport { type ReactNode } from \"react\";\nimport { Group, Inline, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { FigureBlock } from \"../components/figure-block\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { Rating } from \"../components/rating\";\nimport { cn, tpl } from \"../utils\";\nimport type { Quote, QuoteLabels, QuoteItem } from \"../blocks/testimonial-grid.types\";\n\nexport type QuoteCardProps = {\n  q: Quote;\n  labels: QuoteLabels;\n  item?: QuoteItem;\n  layout?: \"grid\" | \"single\" | \"stack\" | \"masonry\" | \"strip\";\n};\n\nexport function QuoteCard({ q, labels, item, layout = \"grid\" }: QuoteCardProps) {\n  return (\n    <FigureBlock\n      className={cn(\n        \"m-0 flex flex-col gap-4\",\n        ((item?.kind === \"plain\") ? \"\" : \"rounded p-6 inset-ring inset-ring-border bg-card\"),\n        (\n          (layout as string) === \"masonry\" ? \"mb-4 break-inside-avoid\"\n          : (layout as string) === \"strip\" ? \"w-80 shrink-0 snap-start\"\n          : \"h-full\"\n        )\n      )}\n      testid=\"item\"\n    >\n      {(item?.kind === \"social\") ? (\n        <>\n          <Group gap=\"4\" align=\"center\">\n            {(item?.avatar !== \"none\") ? (\n              <MediaFrame alt={q.author} src={q.image} ratio=\"1/1\" className=\"size-12 shrink-0 rounded-full\" />\n            ) : null}\n            <Stack gap=\"0\">\n              <Text size=\"sm\" weight=\"semibold\">\n                {q.author}\n              </Text>\n              <Text size=\"xs\" className=\"text-muted-foreground\">\n                {tpl(labels.handleLine, q.handle, q.time)}\n              </Text>\n            </Stack>\n            <LucideIcon name=\"message-circle\" size={16} className=\"ml-auto text-muted-foreground\" />\n          </Group>\n          <Text size=\"base\">\n            {q.quote}\n          </Text>\n        </>\n      ) : (\n        <>\n          {(item?.rating !== \"hide\") ? (\n            <Rating value={q.rating} label={tpl(labels.rating, q.rating)} />\n          ) : null}\n          {(item?.mark === \"icon\") ? (\n            <Inline className=\"text-muted-foreground\" data-slot=\"mark\">\n              <LucideIcon name={q.mark} size={24} />\n            </Inline>\n          ) : null}\n          <Text size={(((layout as string) === \"single\") ? \"xl\" : \"base\")}>\n            {q.quote}\n          </Text>\n          <Group gap=\"4\" align=\"center\">\n            {(item?.avatar !== \"none\") ? (\n              <MediaFrame alt={q.author} src={q.image} ratio=\"1/1\" className=\"size-12 shrink-0 rounded-full\" />\n            ) : null}\n            <Stack gap=\"0\">\n              <Text size=\"sm\" weight=\"semibold\">\n                {q.author}\n              </Text>\n              <Text size=\"sm\" className=\"text-muted-foreground\">\n                {tpl(labels.byLine, q.role, q.company)}\n              </Text>\n            </Stack>\n          </Group>\n        </>\n      )}\n    </FigureBlock>\n  );\n}\n",
      "path": "components/quote-card.tsx",
      "target": "components/quote-card.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "compose",
    "figure-block",
    "lucide-icon",
    "media-frame",
    "rating",
    "testimonial-grid",
    "utils"
  ],
  "runtime": "react",
  "title": "Quote Card",
  "type": "registry:component"
}
