{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "content-prose",
  "type": "registry:block",
  "title": "Content, prose",
  "description": "A reading column: title, lead paragraph, then headed sections of body text. For about pages and articles.",
  "categories": [
    "content"
  ],
  "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/content-prose/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/content-prose/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(140),\n  lead: t(400).optional(),\n  // Body limit 1500 -> 3000 (longest real body 1772 chars, historiska-hem; baseline rebuilds). Heading and lead may be left out; a section may\n  // carry a side picture and one button. Links and bold in the body already work ([text](url), **bold**, rich=\"site\").\n  sections: z\n    .array(z.object({ heading: t(100).optional(), body: t(3000), media: media.optional(), button: link.partial().optional() }))\n    .min(1)\n    .max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'content-prose',\n  aliases: ['content/prose'],\n  name: 'Content, prose',\n  category: 'content',\n  role: 'body',\n  description: 'A reading column: title, lead paragraph, then headed sections of body text. For about pages and articles.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say what the company stands for',\n    lead: 'Say in one sentence who started the company and what problem they set out to fix.',\n    sections: [\n      {\n        heading: 'Name the first topic',\n        body: 'Say in two or three sentences what the first topic is about and who it is for. Be concrete about what you wanted instead.\\n\\nThen say in one or two sentences what happened first, and how quickly it caught on.',\n      },\n      {\n        heading: 'Name a second topic',\n        body: 'Say in two sentences how the team works, how often it ships and how it treats every decision and customer message.',\n      },\n      {\n        heading: 'Name the third topic',\n        body: 'Say in two sentences what you believe good work looks like, and what it should leave room for.',\n      },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/content-prose/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/content-prose/index.tsx",
      "content": "import { useId } from 'react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { Container, Eyebrow, Opt, Section } from '../_shared/kit';\nimport { ActionLink } from '../_shared/kit';\nimport { hasImage } 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\nfunction ContentProse({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id}>\n      <Container width=\"prose\">\n        <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n        <div id={id}>\n          <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-title font-semibold\" />\n        </div>\n        <Opt path={['lead']} value={props.lead} as=\"p\" multiline className=\"mt-6 text-kh-lead leading-relaxed text-kh-ink-2\" placeholder=\"Lead\" />\n        <div className=\"mt-12 space-y-10\">\n          {props.sections.map((s, i) => {\n            const pic = !!s.media && hasImage(s.media);\n            return (\n              <div key={i} className={cn(pic && 'grid items-start gap-6 @xl:grid-cols-[minmax(0,1fr)_minmax(0,14rem)]')}>\n                <div>\n                  <Opt path={['sections', i, 'heading']} value={s.heading} as=\"h3\" className=\"text-kh-heading font-semibold\" placeholder=\"Heading\" />\n                  <Text path={['sections', i, 'body']} value={s.body} as=\"p\" multiline rich=\"site\" className={cn('whitespace-pre-line text-kh-body leading-relaxed text-kh-muted', (s.heading || undefined) && 'mt-3')} />\n                  {s.button && <div className=\"mt-5\"><ActionLink path={['sections', i, 'button']} value={{ label: s.button.label ?? '', href: s.button.href ?? '' }} variant=\"secondary\" size=\"md\" /></div>}\n                </div>\n                {pic && <Media path={['sections', i, 'media']} value={s.media!} ratio=\"4 / 5\" className=\"rounded-kh-xl border border-kh-line\" />}\n              </div>\n            );\n          })}\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(ContentProse);\n"
    }
  ]
}
