{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Feature } from \"./feature-grid.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { cn, fitCols } from \"../utils\";\n\n  let {\n    id,\n    title,\n    features,\n    empty = \"\",\n    cols = \"4\",\n    item = \"tile\",\n    tone = \"default\",\n    density = \"default\",\n    landmarkLabel,\n  }: IconWallProps = $props();\n  const askedCols = $derived(\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  );\n  const wallCols = $derived(fitCols(askedCols, (features?.length ?? 0)));\n</script>\n\n<SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n  {#if ((features?.length ?? 0) === 0)}\n    <EmptyState icon=\"layout-grid\" title={empty} />\n  {:else}\n    <Grid cols={wallCols} class=\"gap-4\" data-slot=\"items\">\n      {#each features as f (f.id)}\n        <Box\n          class={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      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/icon-wall.svelte",
      "target": "blocks/icon-wall.svelte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "icon-wall",
  "registryDependencies": [
    "box",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Icon Wall",
  "type": "registry:block"
}
