{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Quote Card component",
  "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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Quote, QuoteLabels, QuoteItem } from \"../blocks/testimonial-grid.types\";\n\n  export type QuoteCardProps = {\n    q: Quote;\n    labels: QuoteLabels;\n    item?: QuoteItem;\n    layout?: \"grid\" | \"single\" | \"stack\" | \"masonry\" | \"strip\";\n  };\n</script>\n\n<script lang=\"ts\">\n  import Group from \"../compose/Group.svelte\";\n  import Inline from \"../compose/Inline.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import FigureBlock from \"../components/figure-block.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import Rating from \"../components/rating.svelte\";\n  import { cn, tpl } from \"../utils\";\n\n  let { q, labels, item, layout = \"grid\" }: QuoteCardProps = $props();\n</script>\n\n<FigureBlock\n  class={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  {#if (item?.kind === \"social\")}\n    <Group gap=\"4\" align=\"center\">\n      {#if (item?.avatar !== \"none\")}\n        <MediaFrame alt={q.author} src={q.image} ratio=\"1/1\" class=\"size-12 shrink-0 rounded-full\" />\n      {/if}\n      <Stack gap=\"0\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {q.author}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {tpl(labels.handleLine, q.handle, q.time)}\n        </Text>\n      </Stack>\n      <LucideIcon name=\"message-circle\" size={16} class=\"ml-auto text-muted-foreground\" />\n    </Group>\n    <Text size=\"base\">\n      {q.quote}\n    </Text>\n  {:else}\n    {#if (item?.rating !== \"hide\")}\n      <Rating value={q.rating} label={tpl(labels.rating, q.rating)} />\n    {/if}\n    {#if (item?.mark === \"icon\")}\n      <Inline class=\"text-muted-foreground\" data-slot=\"mark\">\n        <LucideIcon name={q.mark} size={24} />\n      </Inline>\n    {/if}\n    <Text size={(((layout as string) === \"single\") ? \"xl\" : \"base\")}>\n      {q.quote}\n    </Text>\n    <Group gap=\"4\" align=\"center\">\n      {#if (item?.avatar !== \"none\")}\n        <MediaFrame alt={q.author} src={q.image} ratio=\"1/1\" class=\"size-12 shrink-0 rounded-full\" />\n      {/if}\n      <Stack gap=\"0\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {q.author}\n        </Text>\n        <Text size=\"sm\" class=\"text-muted-foreground\">\n          {tpl(labels.byLine, q.role, q.company)}\n        </Text>\n      </Stack>\n    </Group>\n  {/if}\n</FigureBlock>\n",
      "path": "components/quote-card.svelte",
      "target": "components/quote-card.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "figure-block",
    "group",
    "inline",
    "lucide-icon",
    "media-frame",
    "rating",
    "stack",
    "testimonial-grid",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Quote Card",
  "type": "registry:component"
}
