{
  "$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\">\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</script>\n\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport Box from \"../compose/Box.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Text from \"../compose/Text.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { cn, fitCols } from \"../utils\";\n\nconst {\n  id,\n  title,\n  features,\n  empty = \"\",\n  cols = \"4\",\n  item = \"tile\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<IconWallProps>();\nconst askedCols = computed(() =>\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);\nconst wallCols = computed(() => fitCols(askedCols.value, (features?.length ?? 0)));\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((features?.length ?? 0) === 0)\" icon=\"layout-grid\" :title=\"empty\" />\n    <Grid v-else :cols=\"wallCols\" class=\"gap-4\" data-slot=\"items\">\n      <Box v-for=\"f in features\" :key=\"f.id\"\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    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/icon-wall.vue",
      "target": "blocks/icon-wall.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "icon-wall",
  "registryDependencies": [
    "box",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Icon Wall",
  "type": "registry:block"
}
