{
  "$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\">\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</script>\n\n<script setup lang=\"ts\">\nimport Group from \"../compose/Group.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport FigureBlock from \"../components/figure-block.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport Rating from \"../components/rating.vue\";\nimport { cn, tpl } from \"../utils\";\n\nconst { q, labels, item, layout = \"grid\" } = defineProps<QuoteCardProps>();\n</script>\n\n<template>\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    <template v-if=\"(item?.kind === 'social')\">\n      <Group gap=\"4\" align=\"center\">\n        <MediaFrame\n          v-if=\"(item?.avatar !== 'none')\"\n          :alt=\"q.author\"\n          :src=\"q.image\"\n          ratio=\"1/1\"\n          class=\"size-12 shrink-0 rounded-full\"\n        />\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    </template>\n    <template v-else>\n      <Rating v-if=\"(item?.rating !== 'hide')\" :value=\"q.rating\" :label=\"tpl(labels.rating, q.rating)\" />\n      <Inline v-if=\"(item?.mark === 'icon')\" class=\"text-muted-foreground\" data-slot=\"mark\">\n        <LucideIcon :name=\"q.mark\" :size=\"24\" />\n      </Inline>\n      <Text :size=\"(((layout as string) === 'single') ? 'xl' : 'base')\">\n        {{ q.quote }}\n      </Text>\n      <Group gap=\"4\" align=\"center\">\n        <MediaFrame\n          v-if=\"(item?.avatar !== 'none')\"\n          :alt=\"q.author\"\n          :src=\"q.image\"\n          ratio=\"1/1\"\n          class=\"size-12 shrink-0 rounded-full\"\n        />\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    </template>\n  </FigureBlock>\n</template>\n",
      "path": "components/quote-card.vue",
      "target": "components/quote-card.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "figure-block",
    "group",
    "inline",
    "lucide-icon",
    "media-frame",
    "rating",
    "stack",
    "testimonial-grid",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Quote Card",
  "type": "registry:component"
}
