{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/quote-rating-panel.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// QuoteRatingPanelProps are the props of QuoteRatingPanel; the values are the JSON shapes of the TypeScript props.\ntype QuoteRatingPanelProps struct {\n\tExtras any `json:\"extras\"`\n\tLabels any `json:\"labels\"`\n}\n\n// The rating summary of QuoteSplit: the average in large type, the stars, the number of reviews and two figures.\ntempl QuoteRatingPanel(p QuoteRatingPanelProps) {\n\t{{ vExtras := p.Extras }}\n\t{{ vLabels := p.Labels }}\n\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: \"center\", BoxProps: box.BoxProps{Class: \"rounded bg-card inset-ring inset-ring-border p-8 text-center\", Attrs: uiutils.Attrs(\"data-slot\", \"quote-rating\")}}) {\n\t\t@compose.Text(compose.TextProps{Size: \"5xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vExtras, \"score\")) }\n\t\t}\n\t\t@Rating(RatingProps{Value: uiutils.Get(vExtras, \"rating\"), Label: uiutils.Tpl(uiutils.Get(vLabels, \"rating\"), uiutils.Get(vExtras, \"rating\")), Size: float64(20)})\n\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vExtras, \"reviews\")) }\n\t\t}\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid w-full grid-cols-2 gap-4 border-t border-border pt-6\"}}) {\n\t\t\tfor vI, vS := range uiutils.L(uiutils.Get(vExtras, \"stats\")) {\n\t\t\t\tif uiutils.Lt(float64(vI), float64(2)) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", Align: \"center\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"quote-stat\")}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"2xl\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"value\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"label\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/quote-rating-panel.templ",
      "target": "blocks/quote-rating-panel.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "quote-rating-panel",
  "registryDependencies": [
    "box",
    "kit-box",
    "kit-text",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Quote Rating Panel",
  "type": "registry:component"
}
