{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-single",
  "type": "registry:block",
  "title": "Pricing, single plan",
  "description": "One plan with a large price, a button and a checklist of what is included.",
  "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",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/pricing-single/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-single/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\n// KB-178: each included item 80 -> 200 so real inclusion lines fit.\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  name: t(40),\n  price: t(16),\n  period: t(40),\n  includesTitle: t(60),\n  features: z.array(t(200)).min(1).max(10),\n  cta: link,\n  note: t(120),\n  /** wide (the default) is the two-part card, price left and checklist right; narrow is one centred narrow card: name, the note as its line, price, checklist, full-width action. */\n  layout: z.enum(['wide', 'narrow']).optional(),\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-single',\n  aliases: ['pricing/single'],\n  sourceRuns: ['rmwj1xbnfc9d5dd'],\n  name: 'Pricing, single plan',\n  category: 'pricing',\n  role: 'body',\n  description: 'One plan with a large price, a button and a checklist of what is included.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say what the one plan includes',\n    description: 'Say in one or two sentences what the plan includes and who pays for what.',\n    name: 'Name the plan',\n    price: '$00',\n    period: 'per unit, per period',\n    includesTitle: 'Say what the list holds',\n    features: ['First included feature', 'Second included feature', 'Third included feature', 'Fourth included feature', 'Fifth included feature', 'Sixth included feature', 'Seventh included feature', 'Eighth included feature'],\n    cta: { label: 'Main action', href: '#trial' },\n    note: 'Say what the trial or start involves',\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-single/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-single/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { cn } from '../../lib/utils';\nimport { ActionLink, Container, Opt, Section, nowrapIfShort } from '../_shared/kit';\nimport { CheckItem, Heading, 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 PricingSingle({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  if (props.layout === 'narrow') {\n    return (\n      <Section labelledBy={id}>\n        <Container>\n          <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} align=\"center\" />\n          <div className=\"mx-auto mt-12 w-full max-w-md rounded-kh-xl border border-kh-line bg-kh-surface p-8 shadow-kh-2 @md:p-10\">\n            <Text path={['name']} value={props.name} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n            <Opt path={['note']} value={props.note} className=\"mt-2 text-kh-small text-kh-muted\" placeholder=\"Note\" />\n            <p className=\"mt-6 flex flex-wrap items-baseline gap-x-2\">\n              <Text path={['price']} value={props.price} as=\"span\" className={cn(nowrapIfShort(props.price), 'text-kh-title font-semibold tabular-nums')} />\n              <Text path={['period']} value={props.period} as=\"span\" className=\"text-kh-small text-kh-muted\" />\n            </p>\n            <Text path={['includesTitle']} value={props.includesTitle} as=\"h3\" className=\"sr-only\" />\n            <ul className=\"mt-8 flex flex-col gap-3 border-t border-kh-line pt-8\">\n              {props.features.map((f, i) => (\n                <CheckItem key={i} path={['features', i]} value={f} className=\"text-kh-body\" />\n              ))}\n            </ul>\n            <ActionLink path={['cta']} value={props.cta} size=\"lg\" className=\"mt-8 w-full\" />\n          </div>\n        </Container>\n      </Section>\n    );\n  }\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} align=\"center\" />\n        <div className=\"mx-auto mt-14 grid max-w-kh-page overflow-hidden rounded-kh-xl border border-kh-ink bg-kh-surface shadow-kh-3 @3xl:grid-cols-[1fr_1.2fr]\">\n          <div className=\"flex flex-col border-b border-kh-line p-8 @3xl:border-b-0 @3xl:border-r @3xl:p-10\">\n            <Text path={['name']} value={props.name} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n            <p className=\"mt-6 flex flex-wrap items-baseline gap-x-2\">\n              <Text path={['price']} value={props.price} as=\"span\" className={cn(nowrapIfShort(props.price), 'text-kh-display font-semibold tabular-nums')} />\n              <Text path={['period']} value={props.period} as=\"span\" className=\"text-kh-small text-kh-muted\" />\n            </p>\n            <ActionLink path={['cta']} value={props.cta} size=\"lg\" className=\"mt-8 w-full\" />\n            <Opt path={['note']} value={props.note} className=\"mt-4 text-center text-kh-small text-kh-muted\" placeholder=\"Note\" />\n          </div>\n          <div className=\"p-8 @3xl:p-10\">\n            <Text path={['includesTitle']} value={props.includesTitle} as=\"h3\" className=\"text-kh-small font-medium text-kh-muted\" />\n            <ul className=\"mt-6 grid gap-x-8 gap-y-4 @xl:grid-cols-2\">\n              {props.features.map((f, i) => (\n                <CheckItem key={i} path={['features', i]} value={f} className=\"text-kh-body\" />\n              ))}\n            </ul>\n          </div>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingSingle);\n"
    }
  ]
}
