{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logos-strip",
  "type": "registry:block",
  "title": "Logos strip",
  "description": "A quiet line of customer or partner names under a short lead-in and an optional description. Names are set as wordmarks.",
  "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/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/logos-strip/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-strip/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, media, t } from '../_shared/schema';\n\n// KB-178: a logo may be a picture (media; its alt names it) instead of a name, and the strip holds up to 48.\nconst schema = z.object({\n  title: t(80),\n  description: t(300).optional(),\n  logos: z.array(z.object({ name: t(40).optional(), media: media.optional() })).min(2).max(48),\n});\n\nexport const spec = defineSpec({\n  type: 'logos-strip',\n  aliases: ['logo-cloud/row'],\n  name: 'Logos strip',\n  category: 'logos',\n  role: 'body',\n  description: 'A quiet line of customer or partner names under a short lead-in and an optional description. Names are set as wordmarks.',\n  schema,\n  defaults: {\n    title: 'Say who relies on you in one line',\n    description: '',\n    logos: [{ name: 'First logo' }, { name: 'Second logo' }, { name: 'Third logo' }, { name: 'Fourth logo' }, { name: 'Fifth logo' }, { name: 'Sixth logo' }],\n  },\n});\n"
    },
    {
      "path": "src/blocks/logos-strip/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-strip/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { Container, Opt, Section, hasImage } from '../_shared/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\n// Names are set as wordmarks in varied weights and widths so the strip reads as logos without any client artwork.\nconst FACES = ['font-semibold tracking-tight', 'font-medium tracking-[0.18em] uppercase text-kh-small', 'font-kh-mono font-medium', 'font-bold tracking-tighter', 'font-light tracking-wide', 'font-semibold italic'];\n\nfunction LogosStrip({ props }: BlockProps<Props>) {\n  return (\n    <Section className=\"py-14 @3xl:py-20\">\n      <Container>\n        <Text path={['title']} value={props.title} as=\"h2\" className=\"text-center text-kh-small font-medium text-kh-muted\" />\n        <Opt path={['description']} value={props.description} className=\"mx-auto mt-3 max-w-kh-lead text-center text-kh-body text-kh-muted\" placeholder=\"Description\" />\n        <ul className=\"mt-8 grid grid-cols-2 items-center justify-items-center gap-x-8 gap-y-8 @xl:grid-cols-3 @4xl:flex @4xl:flex-wrap @4xl:justify-between\">\n          {props.logos.map((l, i) => (\n            <li key={i} className={cn(!l.media || !hasImage(l.media) ? cn('text-kh-heading text-kh-muted', FACES[i % FACES.length]) : 'w-28 max-w-full')}>\n              {l.media && hasImage(l.media) ? <Media path={['logos', i, 'media']} value={l.media} ratio=\"3 / 1\" /> : <Text path={['logos', i, 'name']} value={l.name ?? ''} as=\"span\" />}\n            </li>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(LogosStrip);\n"
    }
  ]
}
