{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "steps-timeline",
  "type": "registry:block",
  "title": "Steps, timeline",
  "description": "A vertical timeline of labelled steps with a connecting line. Process, onboarding or roadmap.",
  "categories": [
    "steps"
  ],
  "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/steps-timeline/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/steps-timeline/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, 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({ label: t(30), title: t(80), description: t(240) })).min(1).max(8),\n});\n\nexport const spec = defineSpec({\n  type: 'steps-timeline',\n  aliases: ['steps/timeline'],\n  name: 'Steps, timeline',\n  category: 'steps',\n  role: 'body',\n  description: 'A vertical timeline of labelled steps with a connecting line. Process, onboarding or roadmap.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say how the work runs, stage by stage',\n    description: 'Say in one sentence how many stages there are and what each one ends with.',\n    items: [\n      { label: 'Time span', title: 'Name stage one', description: 'Say what happens in the first stage and what the reader can see at its end.' },\n      { label: 'Time span', title: 'Name stage 2', description: 'Say what happens in the second stage and what the reader can see at its end.' },\n      { label: 'Time span', title: 'Name stage 3', description: 'Say what happens in the third stage and what the reader can see at its end.' },\n      { label: 'Time span', title: 'Name stage 4', description: 'Say what happens in the last stage and what is handed over.' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/steps-timeline/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/steps-timeline/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, Section, SectionHeader } 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 StepsTimeline({ props }: BlockProps<Props>) {\n  const id = useId();\n  const last = props.items.length - 1;\n  return (\n    <Section labelledBy={id}>\n      <Container className=\"grid gap-12 @4xl:grid-cols-[1fr_1.3fr] @4xl:gap-16\">\n        <SectionHeader id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} className=\"@4xl:sticky @4xl:top-8 @4xl:self-start\" />\n        <ol>\n          {props.items.map((item, i) => (\n            <li key={i} className=\"relative grid grid-cols-[1.5rem_1fr] gap-x-5 pb-10 last:pb-0 @xl:gap-x-6\">\n              <span aria-hidden className=\"relative flex justify-center\">\n                <span className=\"z-[1] mt-1.5 size-3 rounded-kh-pill border-2 border-kh-ink bg-kh-canvas\" />\n                {i < last && <span className=\"absolute bottom-[-2.5rem] top-5 w-px bg-kh-line-strong\" />}\n              </span>\n              <div>\n                <Text path={['items', i, 'label']} value={item.label} as=\"p\" className=\"text-kh-small font-medium text-kh-accent-ink\" />\n                <Text path={['items', i, 'title']} value={item.title} as=\"h3\" className=\"mt-1 text-kh-heading font-semibold\" />\n                <Text path={['items', i, 'description']} value={item.description} as=\"p\" className=\"mt-2 max-w-kh-prose text-kh-body text-kh-muted\" />\n              </div>\n            </li>\n          ))}\n        </ol>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(StepsTimeline);\n"
    }
  ]
}
