{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "about-timeline",
  "type": "registry:block",
  "title": "About, timeline",
  "description": "Company milestones by year: a heading and lead, then a vertical list of years with a title and a few lines.",
  "categories": [
    "content"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json"
  ],
  "files": [
    {
      "path": "src/blocks/about-timeline/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/about-timeline/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t } from '../_shared/schema';\n\n// KB-178: year raised 12 -> 40 so a range or a phrase fits (\"1998 to 2004\", \"Spring 2019\"); it wraps in its column.\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  lead: t(300),\n  items: z.array(z.object({ year: t(40), title: t(80), description: t(300) })).min(1).max(8),\n});\n\nexport const spec = defineSpec({\n  type: 'about-timeline',\n  aliases: ['content/timeline'],\n  name: 'About, timeline',\n  category: 'content',\n  role: 'body',\n  description: 'Company milestones by year: a heading and lead, then a vertical list of years with a title and a few lines.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say how the story unfolded, in a short line',\n    lead: 'Say in one sentence how the company has grown.',\n    items: [\n      { year: '0000', title: 'Name the first moment', description: 'Say who started it and what they made, in one sentence.' },\n      { year: '0000', title: 'Name the second moment', description: 'Say who first used it and what they asked for, in one sentence.' },\n      { year: '0000', title: 'Name the third moment', description: 'Say what was added and how the team changed, in one sentence.' },\n      { year: '0000', title: 'Name the latest', description: 'Say what changed most and how it feels now, in one sentence.' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/about-timeline/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/about-timeline/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, Eyebrow, Section } from '../_shared/kit';\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 AboutTimeline({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id}>\n      <Container width=\"narrow\">\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        <Text path={['lead']} value={props.lead} as=\"p\" className=\"mt-4 max-w-kh-lead text-kh-lead text-kh-muted\" />\n        <ol className=\"mt-14 border-t border-kh-line\">\n          {props.items.map((it, i) => (\n            <li key={i} className=\"grid gap-2 border-b border-kh-line py-8 @xl:grid-cols-[7rem_1fr] @xl:gap-8\">\n              <Text path={['items', i, 'year']} value={it.year} as=\"p\" className=\"text-kh-heading font-semibold tabular-nums text-kh-accent-ink\" />\n              <div>\n                <Text path={['items', i, 'title']} value={it.title} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n                <Text path={['items', i, 'description']} value={it.description} as=\"p\" multiline className=\"mt-2 max-w-kh-lead whitespace-pre-line text-kh-body text-kh-muted\" />\n              </div>\n            </li>\n          ))}\n        </ol>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(AboutTimeline);\n"
    }
  ]
}
