{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customers and partners as glyphs with names.",
  "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/logo-cloud.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// LogoCloudProps are the props of LogoCloud; the values are the JSON shapes of the TypeScript props.\ntype LogoCloudProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLogos any `json:\"logos\"`\n\tEmpty any `json:\"empty\"`\n\tLayout any `json:\"layout\"`\n\tCols any `json:\"cols\"`\n\tItem any `json:\"item\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.\ntempl LogoCloud(p LogoCloudProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLogos := p.Logos }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"grid\") }}\n\t{{ vCols := uiutils.Def(p.Cols, \"4\") }}\n\t{{ vItem := uiutils.Def(p.Item, \"name\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\tif uiutils.Eq(uiutils.Len(vLogos), float64(0)) {\n\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: \"center\", LandmarkLabel: vLandmarkLabel}) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"building-2\", Title: vEmpty})\n\t\t}\n\t} else if uiutils.Eq(vLayout, \"row\") {\n\t\t@LogoRibbon(LogoRibbonProps{Id: vId, Title: vTitle, Logos: vLogos, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel})\n\t} else {\n\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: \"center\", LandmarkLabel: vLandmarkLabel}) {\n\t\t\t@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, \"2\")), \"2\", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, \"3\")), \"2-3\", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, \"4\")), \"2-4\", \"3-6\")))), BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vLogo := range uiutils.L(vLogos) {\n\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", Justify: \"center\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"text-muted-foreground\", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, \"tile\")), \"flex-col rounded p-4 inset-ring inset-ring-border\", \"\"))), Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vLogo, \"icon\")), Size: 24})\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vItem, \"icon\")), \"sr-only\", \"\"))}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLogo, \"name\")) }\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/logo-cloud.templ",
      "target": "blocks/logo-cloud.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "logo-cloud",
  "registryDependencies": [
    "empty-state",
    "grid",
    "group",
    "kit-box",
    "kit-text",
    "logo-ribbon",
    "lucide-icon",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Logo Cloud",
  "type": "registry:block"
}
