{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logos-results",
  "type": "registry:block",
  "title": "Logos, with results",
  "description": "Each customer as a small card: logo (or wordmark), one headline result and what it measures. Proof with numbers instead of a plain row of names.",
  "categories": [
    "logos"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json",
    "https://ui.klarhimmel.com/r/text-link.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/logos-results/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-results/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  items: z.array(z.object({ name: t(40), media, figure: t(20), label: t(80) })).min(3).max(6),\n  more: link,\n});\n\nexport const spec = defineSpec({\n  type: 'logos-results',\n  aliases: ['logo-cloud/results'],\n  name: 'Logos, with results',\n  category: 'logos',\n  role: 'body',\n  description: 'Each customer as a small card: logo (or wordmark), one headline result and what it measures. Proof with numbers instead of a plain row of names.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the audience',\n    title: 'Say what changed for them',\n    description: 'Say where the numbers come from.',\n    items: [\n      { name: 'First customer', media: { src: '', alt: 'First customer logo' }, figure: '+00%', label: 'Name what improved and over what time' },\n      { name: 'Second customer', media: { src: '', alt: 'Second customer logo' }, figure: '0 h', label: 'Name what changed each week' },\n      { name: 'Third customer', media: { src: '', alt: 'Third customer logo' }, figure: '−00%', label: 'Name what was reduced' },\n      { name: 'Fourth customer', media: { src: '', alt: 'Fourth customer logo' }, figure: '00%', label: 'Name a result in a period' },\n      { name: 'Fifth customer', media: { src: '', alt: 'Fifth customer logo' }, figure: '00 min', label: 'Name a speed or a time' },\n      { name: 'Sixth customer', media: { src: '', alt: 'Sixth customer logo' }, figure: '0.0', label: 'Name a result, then when' },\n    ],\n    more: { label: 'Read more customer stories', href: '/customers' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/logos-results/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-results/index.tsx",
      "content": "import { ArrowRight } from 'lucide-react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { linkClass } from '../../ui/text-link';\nimport { Container, Section, useEditing } from '../_shared/kit';\nimport { Heading, hasImage, 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 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 LogosResults({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const editing = useEditing();\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <ul className=\"mt-14 grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3\">\n          {props.items.map((item, i) => {\n            const image = hasImage(item.media);\n            return (\n              <li key={i} className=\"flex flex-col rounded-kh-xl border border-kh-line bg-kh-surface p-7\">\n                <div className=\"flex h-10 items-center\">\n                  {(image || editing) && (\n                    <div className=\"w-28 max-w-full\">\n                      <Media path={['items', i, 'media']} value={item.media} ratio=\"3 / 1\" />\n                    </div>\n                  )}\n                  <Text path={['items', i, 'name']} value={item.name} as=\"span\" className={cn(image && !editing ? 'sr-only' : 'text-kh-body text-kh-ink-2', !image && FACES[i % FACES.length])} />\n                </div>\n                <p className=\"mt-8\">\n                  <Text path={['items', i, 'figure']} value={item.figure} as=\"span\" className=\"block text-kh-title font-semibold tabular-nums text-kh-accent-ink\" />\n                  <Text path={['items', i, 'label']} value={item.label} as=\"span\" className=\"mt-1 block text-kh-small text-kh-muted\" />\n                </p>\n              </li>\n            );\n          })}\n        </ul>\n        {(props.more.label || editing) && (\n          <a href={safeHref(props.more.href)} className={cn(linkClass(), 'mt-10 inline-flex min-h-11 items-center gap-2 text-kh-small font-medium no-underline')}>\n            <Text path={['more', 'label']} value={props.more.label} as=\"span\" placeholder=\"Label\" />\n            <ArrowRight aria-hidden className=\"size-4\" />\n          </a>\n        )}\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(LogosResults);\n"
    }
  ]
}
