{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-row",
  "type": "registry:block",
  "title": "Stats row",
  "description": "A short heading and two to four large figures with labels.",
  "categories": [
    "stats"
  ],
  "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/stats-row/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/stats-row/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t } from '../_shared/schema';\n\nconst schema = z.object({\n  title: t(120),\n  description: t(300),\n  items: z.array(z.object({ value: t(16), label: t(60) })).min(2).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'stats-row',\n  aliases: ['stats/row'],\n  name: 'Stats row',\n  category: 'stats',\n  role: 'body',\n  description: 'A short heading and two to four large figures with labels.',\n  schema,\n  defaults: {\n    title: 'Say what the numbers add up to',\n    description: 'Say what readers tell you after a period of use.',\n    items: [\n      { value: '0.0 h', label: 'Name the first result' },\n      { value: '00%', label: 'Name the second result' },\n      { value: '00 000+', label: 'Name the third result' },\n      { value: '00.00%', label: 'Name the fourth measure' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/stats-row/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/stats-row/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, HAIR_CELL, HAIR_GRID, HairFrame, 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 StatsRow({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <SectionHeader id={id} title={props.title} description={props.description} />\n        <HairFrame className=\"mt-14\">\n        <dl className={`${HAIR_GRID} @xl:grid-cols-2 @4xl:grid-cols-4`}>\n          {props.items.map((item, i) => (\n            <div key={i} className={`${HAIR_CELL} flex flex-col-reverse justify-end gap-2 bg-kh-canvas p-8`}>\n              <dt className=\"text-kh-small text-kh-muted\">\n                <Text path={['items', i, 'label']} value={item.label} as=\"span\" />\n              </dt>\n              <dd className=\"text-kh-title font-semibold tabular-nums\">\n                <Text path={['items', i, 'value']} value={item.value} as=\"span\" />\n              </dd>\n            </div>\n          ))}\n        </dl>\n        </HairFrame>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(StatsRow);\n"
    }
  ]
}
