{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Many small features as icons with a name: tiles or chips in three to six columns.",
  "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 dense grid of small tiles: an icon and a short label. Axes: columns (3, 4, 6), item (tile: icon above the\n * label, chip: icon beside it), tone, density.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, Grid, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { cn, fitCols } from \"../utils\";\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type IconWallProps = {\n  id: string;\n  title: string;\n  features: Feature[];\n  empty?: string;\n  cols?: \"3\" | \"4\" | \"6\";\n  item?: \"tile\" | \"chip\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n\nexport function IconWall({\n  id,\n  title,\n  features,\n  empty = \"\",\n  cols = \"4\",\n  item = \"tile\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n}: IconWallProps) {\n  const askedCols =\n    ((item as string) === \"chip\") && ((cols as string) === \"6\") ? \"2-6\"\n    : (cols as string) === \"2\" ? \"2\"\n    : (cols as string) === \"3\" ? \"2-3\"\n    : (cols as string) === \"4\" ? \"2-4\"\n    : \"3-6\";\n  const wallCols = fitCols(askedCols, (features?.length ?? 0));\n  return (\n    <SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n      {((features?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"layout-grid\" title={empty} />\n      ) : (\n        <Grid cols={wallCols} className=\"gap-4\" data-slot=\"items\">\n          {(features ?? []).map((f) => (\n            <Box key={f.id}\n              className={cn(\n                \"flex items-center gap-2\",\n                \"rounded bg-card inset-ring inset-ring-border\",\n                (\n                  (item as string) === \"tile\" ? cn(\"flex-col justify-center text-center\", (((density as string) === \"compact\") ? \"p-4\" : \"p-6\"))\n                  : \"px-4 py-2\"\n                )\n              )}\n              data-slot=\"item\"\n            >\n              <LucideIcon name={f.icon} size={(((item as string) === \"tile\") ? 24 : 16)} />\n              <Text size=\"sm\" weight=\"semibold\">\n                {f.title}\n              </Text>\n            </Box>\n          ))}\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/icon-wall.tsx",
      "target": "blocks/icon-wall.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "icon-wall",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "section-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Icon Wall",
  "type": "registry:block"
}
