{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One key number of StatsBand: a card (StatTile), or the value over its label, optionally under a Lucide icon.",
  "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/stat-figure.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/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// StatFigureProps are the props of StatFigure; the values are the JSON shapes of the TypeScript props.\ntype StatFigureProps struct {\n\tStat any `json:\"stat\"`\n\tItem any `json:\"item\"`\n\tAlign any `json:\"align\"`\n}\n\n// One key number of StatsBand: a card (StatTile), or the value over its label, optionally under a Lucide icon.\ntempl StatFigure(p StatFigureProps) {\n\t{{ vStat := p.Stat }}\n\t{{ vItem := uiutils.Def(p.Item, \"plain\") }}\n\t{{ vAlign := uiutils.Def(p.Align, \"center\") }}\n\tif uiutils.Eq(vItem, \"card\") {\n\t\t@StatTile(StatTileProps{Label: uiutils.Get(vStat, \"label\"), Value: uiutils.Get(vStat, \"value\"), Icon: uiutils.Get(vStat, \"icon\"), Hint: uiutils.Get(vStat, \"hint\")})\n\t} else {\n\t\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, \"center\")), \"center\", \"start\")), BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, \"center\")), \"text-center\", \"\"), uiutils.Get(presetDefaults, \"stats\", \"column\"))), Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\tif uiutils.Eq(vItem, \"icon\") {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vStat, \"icon\")), Size: 24})\n\t\t\t}\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, \"center\")), \"center\", \"start\")), BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"5xl\", Weight: \"medium\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cnv(\"flex items-center\", uiutils.Get(presetDefaults, \"stats\", \"figure\")))}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vStat, \"value\")) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{Class: \"leading-5 text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vStat, \"label\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/stat-figure.templ",
      "target": "blocks/stat-figure.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "stat-figure",
  "registryDependencies": [
    "kit-box",
    "kit-text",
    "lucide-icon",
    "presets",
    "stack",
    "stat-tile",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Stat Figure",
  "type": "registry:component"
}
