{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Quote Rating Panel 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<!-- The rating summary of QuoteSplit: the average in large type, the stars, the number of reviews and two figures. -->\n<script lang=\"ts\">\nimport type { QuoteExtras } from \"../blocks/quote-split.types\";\nimport type { QuoteLabels } from \"../blocks/testimonial-grid.types\";\n\nexport type QuoteRatingPanelProps = {\n  extras: QuoteExtras;\n  labels: QuoteLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Rating from \"../components/rating.vue\";\nimport { tpl } from \"../utils\";\n\nconst { extras, labels } = defineProps<QuoteRatingPanelProps>();\n</script>\n\n<template>\n  <Stack\n    gap=\"6\"\n    align=\"center\"\n    class=\"rounded bg-card inset-ring inset-ring-border p-8 text-center\"\n    data-slot=\"quote-rating\"\n  >\n    <Text size=\"5xl\" weight=\"bold\">\n      {{ extras.score }}\n    </Text>\n    <Rating :value=\"extras.rating\" :label=\"tpl(labels.rating, extras.rating)\" :size=\"20\" />\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {{ extras.reviews }}\n    </Text>\n    <Box class=\"grid w-full grid-cols-2 gap-4 border-t border-border pt-6\">\n      <template v-for=\"(s, i) in extras.stats\" :key=\"s.id\">\n        <Stack v-if=\"(i < 2)\" gap=\"0\" align=\"center\" data-slot=\"quote-stat\">\n          <Text size=\"2xl\" weight=\"semibold\">\n            {{ s.value }}\n          </Text>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {{ s.label }}\n          </Text>\n        </Stack>\n      </template>\n    </Box>\n  </Stack>\n</template>\n",
      "path": "components/quote-rating-panel.vue",
      "target": "components/quote-rating-panel.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "quote-rating-panel",
  "registryDependencies": [
    "box",
    "quote-split",
    "rating",
    "stack",
    "testimonial-grid",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Quote Rating Panel",
  "type": "registry:component"
}
