{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-figure",
  "type": "registry:block",
  "title": "Pricing, figure",
  "description": "One plan on a plain light section, all centred: a small eyebrow, a heading, the price as a giant display figure that fills most of the width, one line of terms and one filled action. The figure scales with the section width, so on a phone it stays on one line.",
  "categories": [
    "pricing"
  ],
  "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/pricing-figure/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-figure/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(30),\n  title: t(80),\n  /** The price as one short string; the figure is drawn as wide as the section allows. */\n  price: t(12),\n  terms: t(160),\n  link,\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-figure',\n  aliases: ['pricing/figure'],\n  name: 'Pricing, figure',\n  category: 'pricing',\n  role: 'body',\n  description: 'One plan on a plain light section, all centred: a small eyebrow, a heading, the price as a giant display figure that fills most of the width, one line of terms and one filled action. The figure scales with the section width, so on a phone it stays on one line.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the plan',\n    title: 'Say in a short line what the plan gives the reader',\n    price: '00 000 kr',\n    terms: 'Say the billing period, what is excluded and how the reader can leave, in one line.',\n    link: { label: 'Say what the visitor does next', href: '#start' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-figure/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-figure/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, 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 PricingFigure({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container className=\"flex flex-col items-center text-center\">\n        <Text path={['eyebrow']} value={props.eyebrow} as=\"p\" className=\"text-kh-small uppercase tracking-widest text-kh-muted\" />\n        <div id={id} className=\"mt-3 max-w-[30rem]\">\n          <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-title font-semibold leading-[1.05]\" />\n        </div>\n        <Text path={['price']} value={props.price} as=\"p\" className=\"mt-6 max-w-full whitespace-nowrap font-kh-display text-[17cqi] font-bold leading-[1] tracking-tight @4xl:text-[16cqi]\" />\n        <Text path={['terms']} value={props.terms} as=\"p\" multiline className=\"mt-6 max-w-kh-lead text-kh-body text-kh-muted\" />\n        {props.link.label.trim() && <ActionLink path={['link']} value={props.link} size=\"lg\" className=\"mt-8\" />}\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingFigure);\n"
    }
  ]
}
