{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-figure",
  "type": "registry:block",
  "title": "Hero, figure",
  "description": "A dark full-height hero where one giant figure in the display font fills the lower right, with a small label top-left, a short note top-right and the headline small at the bottom-left. On a phone the label, note and headline stack at the top and the figure sits at the bottom.",
  "categories": [
    "hero"
  ],
  "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"
  ],
  "files": [
    {
      "path": "src/blocks/hero-figure/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-figure/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t } from '../_shared/schema';\n\nconst schema = z.object({\n  label: t(30),\n  note: t(120),\n  title: t(80),\n  figure: t(4),\n});\n\nexport const spec = defineSpec({\n  type: 'hero-figure',\n  aliases: ['hero/figure'],\n  name: 'Hero, figure',\n  category: 'hero',\n  role: 'body',\n  description: 'A dark full-height hero where one giant figure in the display font fills the lower right, with a small label top-left, a short note top-right and the headline small at the bottom-left. On a phone the label, note and headline stack at the top and the figure sits at the bottom.',\n  schema,\n  defaults: {\n    label: 'Name the subject',\n    note: 'Say in one sentence what the figure measures and over what period, for the reader.',\n    title: 'Say in one line why this figure matters to the visitor',\n    figure: '00',\n  },\n});\n"
    },
    {
      "path": "src/blocks/hero-figure/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-figure/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Section } from '../_shared/kit';\nimport { useHeadingId } from '../_shared/c-proof-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 HeroFigure({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id} bare className=\"!py-0\">\n      <div data-kh-tone=\"inverse\" data-kh-dark=\"raised\" className=\"relative flex min-h-[56rem] flex-col overflow-hidden bg-kh-canvas px-kh-gutter pt-8 text-kh-ink @4xl:min-h-[56rem]\">\n        <div className=\"flex flex-col gap-6 @4xl:flex-row @4xl:items-start @4xl:justify-between\">\n          <Text path={['label']} value={props.label} as=\"p\" className=\"text-kh-caption font-medium\" />\n          <Text path={['note']} value={props.note} as=\"p\" multiline className=\"max-w-[16rem] text-kh-caption opacity-70 @4xl:order-last @4xl:text-right\" />\n        </div>\n        <div className=\"mt-6 flex flex-1 flex-col @4xl:mt-0 @4xl:flex-row @4xl:items-end @4xl:justify-between\">\n          <div id={id} className=\"@4xl:order-first @4xl:max-w-[26rem] @4xl:pb-8\">\n            <Text path={['title']} value={props.title} as=\"h2\" className=\"max-w-[20rem] text-kh-title font-medium leading-[1.1] tracking-tight\" />\n          </div>\n          <div className=\"mt-auto border-b-2 border-kh-accent @4xl:mt-0 @4xl:flex-1 @4xl:ml-16\">\n            <Text path={['figure']} value={props.figure} as=\"p\" className=\"text-right font-kh-display text-[52cqi] font-light leading-[0.78] tracking-tight @4xl:text-[58cqi]\" />\n          </div>\n        </div>\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(HeroFigure);\n"
    }
  ]
}
