{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-split",
  "type": "registry:block",
  "title": "Stats, split",
  "description": "Heading and one oversized headline figure on the left, two to four supporting numbers in a hairline grid on the right. Use when one number matters more than the rest.",
  "categories": [
    "stats"
  ],
  "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/stats-split/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/stats-split/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  highlight: z.object({ value: t(20), label: t(80), note: t(160) }),\n  items: z.array(z.object({ value: t(20), label: t(80) })).min(2).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'stats-split',\n  aliases: ['stats/split'],\n  name: 'Stats, split',\n  category: 'stats',\n  role: 'body',\n  description: 'Heading and one oversized headline figure on the left, two to four supporting numbers in a hairline grid on the right. Use when one number matters more than the rest.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the topic',\n    title: 'Say what the numbers mean for the reader',\n    description: 'Say what the figures are measured across and over what time.',\n    highlight: { value: '00%', label: 'Name the main measure', note: 'Say how it changed from the year before.' },\n    items: [\n      { value: '0.0 h', label: 'Name the first result' },\n      { value: '−00%', label: 'Name the second result' },\n      { value: '0.0 / 5', label: 'Name the third measure' },\n      { value: '00 min', label: 'Name the fourth measure' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/stats-split/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/stats-split/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Container, HAIR_CELL, HAIR_GRID, HairFrame, Opt, Section } from '../_shared/kit';\nimport { Heading, 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\nfunction StatsSplit({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container className=\"grid gap-12 @4xl:grid-cols-[1fr_1.1fr] @4xl:items-center @4xl:gap-20\">\n        <div>\n          <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n          <p className=\"mt-12\">\n            <Text path={['highlight', 'value']} value={props.highlight.value} as=\"span\" className=\"block text-kh-display font-semibold tabular-nums leading-none text-kh-accent-ink\" />\n            <Text path={['highlight', 'label']} value={props.highlight.label} as=\"span\" className=\"mt-3 block text-kh-heading font-medium\" />\n            <Opt path={['highlight', 'note']} value={props.highlight.note} as=\"span\" className=\"mt-2 block max-w-kh-lead text-kh-small text-kh-muted\" placeholder=\"Note\" />\n          </p>\n        </div>\n        <HairFrame>\n          <dl className={cn(HAIR_GRID, 'grid-cols-1 @md:grid-cols-2')}>\n            {props.items.map((item, i) => (\n              <div key={i} className={cn(HAIR_CELL, 'flex flex-col-reverse justify-end gap-2 bg-kh-surface p-7')}>\n                <dt className=\"text-kh-small text-kh-muted\">\n                  <Text path={['items', i, 'label']} value={item.label} as=\"span\" />\n                </dt>\n                <dd>\n                  <Text path={['items', i, 'value']} value={item.value} as=\"span\" className=\"text-kh-title font-semibold tabular-nums\" />\n                </dd>\n              </div>\n            ))}\n          </dl>\n        </HairFrame>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(StatsSplit);\n"
    }
  ]
}
