{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logos-press",
  "type": "registry:block",
  "title": "Logos, as seen in",
  "description": "Press coverage as rows: the outlet as a wordmark on the left, the headline as a link to the article, the year at the right. Proof from third parties, with the receipts one click away.",
  "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/kit-d-chrome.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/logos-press/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-press/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  items: z.array(z.object({ outlet: req(40), headline: req(140), year: t(8), href: t(300) })).min(2).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'logos-press',\n  aliases: ['logo-cloud/press'],\n  name: 'Logos, as seen in',\n  category: 'logos',\n  role: 'body',\n  description: 'Press coverage as rows: the outlet as a wordmark on the left, the headline as a link to the article, the year at the right. Proof from third parties, with the receipts one click away.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say what the press says',\n    items: [\n      { outlet: 'First outlet', headline: 'Give the first headline, as it ran in print', year: '0000', href: '#press-1' },\n      { outlet: 'Second outlet', headline: 'Give the second headline, as it ran', year: '0000', href: '#press-2' },\n      { outlet: 'Third outlet', headline: 'Give the third headline, as it ran in print', year: '0000', href: '#press-3' },\n      { outlet: 'Fourth outlet', headline: 'Give the fourth headline, as it ran', year: '0000', href: '#press-4' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/logos-press/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-press/index.tsx",
      "content": "import { ArrowUpRight } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { Container, Opt, Section } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-kit';\nimport { FOCUS } from '../_shared/d-chrome-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 LogosPress({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} />\n        <ul className=\"mt-12 divide-y divide-kh-line border-y border-kh-line\">\n          {props.items.map((it, i) => (\n            <li key={i}>\n              <a href={safeHref(it.href)} className={cn('group grid items-center gap-2 py-6 @3xl:grid-cols-[14rem_1fr_auto] @3xl:gap-8', FOCUS)}>\n                <Text path={['items', i, 'outlet']} value={it.outlet} as=\"span\" className={cn('text-kh-heading text-kh-ink-2', FACES[i % FACES.length])} />\n                <Text path={['items', i, 'headline']} value={it.headline} as=\"span\" className=\"text-kh-body group-hover:underline group-hover:underline-offset-4\" />\n                <span className=\"flex items-center gap-2 text-kh-small text-kh-muted\">\n                  <Opt path={['items', i, 'year']} value={it.year} as=\"span\" className=\"tabular-nums\" placeholder=\"Year\" />\n                  <ArrowUpRight aria-hidden className=\"size-4\" />\n                </span>\n              </a>\n            </li>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(LogosPress);\n"
    }
  ]
}
