{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logos-grouped",
  "type": "registry:block",
  "title": "Logos, by sector",
  "description": "Customer names set as wordmarks in columns under a sector heading (hotels, restaurants, agencies), two to four groups. Shows the breadth of who uses you, which a single row cannot. No logo files needed.",
  "categories": [
    "logos"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/logos-grouped/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-grouped/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, req, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  description: t(300),\n  groups: z.array(z.object({ name: req(40), logos: z.array(req(40)).min(1).max(6) })).min(2).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'logos-grouped',\n  aliases: ['logo-cloud/grouped'],\n  name: 'Logos, by sector',\n  category: 'logos',\n  role: 'body',\n  description: 'Customer names set as wordmarks in columns under a sector heading (hotels, restaurants, agencies), two to four groups. Shows the breadth of who uses you, which a single row cannot. No logo files needed.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the audience',\n    title: 'Say who uses it, from small to large',\n    description: 'Say in one line how many use it and where.',\n    groups: [\n      { name: 'First group', logos: ['First customer', 'Second customer', 'Third customer', 'Fourth customer'] },\n      { name: 'Second group', logos: ['Fifth customer', 'Sixth customer', 'Seventh customer', 'Eighth customer'] },\n      { name: 'Third group', logos: ['Ninth customer', 'Tenth customer', 'Eleventh customer'] },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/logos-grouped/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-grouped/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Container, Section } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-kit';\nimport { cn } from '../../lib/utils';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nconst COLS = { 2: '@2xl:grid-cols-2', 3: '@2xl:grid-cols-2 @4xl:grid-cols-3', 4: '@2xl:grid-cols-2 @4xl:grid-cols-4' } as const;\nconst FACES = ['font-semibold tracking-tight', 'font-medium tracking-[0.14em] uppercase text-kh-small', 'font-kh-mono font-medium', 'font-bold tracking-tighter', 'font-light tracking-wide', 'font-semibold italic'];\n\nfunction LogosGrouped({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const n = Math.min(4, Math.max(2, props.groups.length)) as 2 | 3 | 4;\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <div className={cn('mt-14 grid gap-x-10 gap-y-12', COLS[n])}>\n          {props.groups.map((g, i) => (\n            <div key={i} className=\"border-t border-kh-line-strong pt-4\">\n              <Text path={['groups', i, 'name']} value={g.name} as=\"h3\" className=\"text-kh-small font-medium text-kh-muted\" />\n              <ul className=\"mt-5 space-y-4\">\n                {g.logos.map((l, j) => (\n                  <li key={j}>\n                    <Text path={['groups', i, 'logos', j]} value={l} as=\"span\" className={cn('text-kh-heading text-kh-ink-2', FACES[(i + j) % FACES.length])} />\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(LogosGrouped);\n"
    }
  ]
}
