{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The rating summary of QuoteSplit: the average in large type, the stars, the number of reviews and two figures.",
  "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. */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, Stack, Text } from \"../compose\";\nimport { Rating } from \"../components/rating\";\nimport { tpl } from \"../utils\";\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\nexport function QuoteRatingPanel({ extras, labels }: QuoteRatingPanelProps) {\n  return (\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        <For each={extras.stats ?? []}>{(s, iOf) => { const i = iOf(); return (\n          <>\n            {(i < 2) ? (\n              <Stack 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            ) : null}\n          </>\n        ); }}</For>\n      </Box>\n    </Stack>\n  );\n}\n",
      "path": "components/quote-rating-panel.tsx",
      "target": "components/quote-rating-panel.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "quote-rating-panel",
  "registryDependencies": [
    "compose",
    "quote-split",
    "rating",
    "testimonial-grid",
    "utils"
  ],
  "runtime": "solid",
  "title": "Quote Rating Panel",
  "type": "registry:component"
}
