{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),\n * columns (2, 3, 4), item (name, icon only, tile), density, tone.\n */\nimport { type ReactNode } from \"react\";\nimport { Grid, Group, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { LogoRibbon } from \"../blocks/logo-ribbon\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { cn } from \"../utils\";\nimport type { Logo } from \"./logo-cloud.types\";\n\nexport type LogoCloudProps = {\n  id: string;\n  title: string;\n  logos: Logo[];\n  empty?: string;\n  layout?: \"grid\" | \"row\";\n  cols?: \"2\" | \"3\" | \"4\";\n  item?: \"name\" | \"icon\" | \"tile\";\n  tone?: \"default\" | \"muted\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n\nexport function LogoCloud({\n  id,\n  title,\n  logos,\n  empty = \"\",\n  layout = \"grid\",\n  cols = \"4\",\n  item = \"name\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n}: LogoCloudProps) {\n  return (\n    <>\n      {((logos?.length ?? 0) === 0) ? (\n        <SectionFrame id={id} title={title} tone={tone} density={density} align=\"center\" landmarkLabel={landmarkLabel}>\n          <EmptyState icon=\"building-2\" title={empty} />\n        </SectionFrame>\n      ) : ((layout as string) === \"row\") ? (\n        <LogoRibbon id={id} title={title} logos={logos} tone={tone} density={density} landmarkLabel={landmarkLabel} />\n      ) : (\n        <SectionFrame id={id} title={title} tone={tone} density={density} align=\"center\" landmarkLabel={landmarkLabel}>\n          <Grid\n            cols={\n              (cols as string) === \"2\" ? \"2\"\n              : (cols as string) === \"3\" ? \"2-3\"\n              : (cols as string) === \"4\" ? \"2-4\"\n              : \"3-6\"\n            }\n            className=\"gap-4\"\n            data-slot=\"items\"\n          >\n            {(logos ?? []).map((logo) => (\n              <Group key={logo.id}\n                gap=\"2\"\n                align=\"center\"\n                justify=\"center\"\n                className={cn(\n                  \"text-muted-foreground\",\n                  (((item as string) === \"tile\") ? \"flex-col rounded p-4 inset-ring inset-ring-border\" : \"\")\n                )}\n                data-slot=\"item\"\n              >\n                <LucideIcon name={logo.icon} size={24} />\n                <Text size=\"sm\" weight=\"semibold\" className={(((item as string) === \"icon\") ? \"sr-only\" : \"\")}>\n                  {logo.name}\n                </Text>\n              </Group>\n            ))}\n          </Grid>\n        </SectionFrame>\n      )}\n    </>\n  );\n}\n",
      "path": "blocks/logo-cloud.tsx",
      "target": "blocks/logo-cloud.tsx"
    },
    {
      "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\nexport type Logo = {\n  id: string;\n  name: string;\n  icon: string;\n};\n",
      "path": "blocks/logo-cloud.types.ts",
      "target": "blocks/logo-cloud.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "logo-cloud",
  "registryDependencies": [
    "compose",
    "empty-state",
    "logo-ribbon",
    "lucide-icon",
    "section-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Logo Cloud",
  "type": "registry:block"
}
