{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-split-rows",
  "type": "registry:block",
  "title": "Pricing, split rows",
  "description": "A pitch on the left (label, heading, lead and two actions) beside plans stacked as rows on the right, each with its name, one line, a short checklist, the price and a button. One row can be featured with a badge and an accent border. On a phone the pitch sits above the rows and each row stacks its price and button under the text.",
  "categories": [
    "pricing"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "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-split-rows/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-split-rows/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, req, t } from '../_shared/schema';\n\nconst plan = z.object({\n  name: req(40),\n  description: t(120),\n  /** Two or three short lines of what the plan includes. */\n  features: z.array(t(60)).max(4),\n  price: req(16),\n  period: t(30),\n  /** A small label beside the name, for the plan to point at. Used only when the plan is featured. */\n  badge: t(24),\n  cta: link,\n  featured: z.boolean(),\n});\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  description: t(240),\n  primary: link,\n  secondary: link.optional(),\n  /** A list is an array field, never a slot. */\n  plans: z.array(plan).min(2).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-split-rows',\n  aliases: ['pricing/split-rows'],\n  sourceRuns: ['rmwj1xrej2c9eef', 'rmwj1q7qte5ffa1', 'rmwj0rwh81d8e5e'],\n  name: 'Pricing, split rows',\n  category: 'pricing',\n  role: 'body',\n  description: 'A pitch on the left (label, heading, lead and two actions) beside plans stacked as rows on the right, each with its name, one line, a short checklist, the price and a button. One row can be featured with a badge and an accent border. On a phone the pitch sits above the rows and each row stacks its price and button under the text.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say how the plans are chosen',\n    description: 'Say in one or two sentences what every plan includes and who the choice is for.',\n    primary: { label: 'Main action', href: '#start' },\n    secondary: { label: 'Second action', href: '#contact' },\n    plans: [\n      { name: 'First plan', description: 'Say who this plan suits in one line.', features: ['Say what it includes', 'Say what it includes'], price: '$00', period: 'billing period', badge: '', cta: { label: 'Second action', href: '#first' }, featured: false },\n      { name: 'Second plan', description: 'Say who this plan suits in one line.', features: ['Say what it includes', 'Say what it includes'], price: '$00', period: 'billing period', badge: 'Label', cta: { label: 'Main action', href: '#second' }, featured: true },\n      { name: 'Third plan', description: 'Say who this plan suits in one line.', features: ['Say what it includes', 'Say what it includes'], price: '$00', period: 'billing period', badge: '', cta: { label: 'Second action', href: '#third' }, featured: false },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-split-rows/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-split-rows/index.tsx",
      "content": "import { Check } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Opt, Section, nowrapIfShort } from '../_shared/kit';\nimport { 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\n// The pitch left, the plans as stacked rows right (the second column 1.2 times the first); on a phone one column, and a row's price and button sit under its text.\nfunction PricingSplitRows({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <div className=\"px-kh-gutter\">\n        <div className=\"mx-auto grid max-w-kh-page grid-cols-1 items-start gap-12 @4xl:grid-cols-[1fr_1.2fr] @4xl:gap-16\">\n          <div className=\"min-w-0\">\n            <Opt path={['eyebrow']} value={props.eyebrow} className=\"font-kh-mono text-kh-caption uppercase text-kh-accent-ink\" placeholder=\"Eyebrow\" />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className=\"mt-4 font-kh-display text-kh-title text-kh-ink\" />\n            </div>\n            <Opt path={['description']} value={props.description} multiline className=\"mt-4 text-kh-lead text-kh-muted\" placeholder=\"Description\" />\n            <div className=\"mt-8 flex flex-wrap gap-3\">\n              <ActionLink path={['primary']} value={props.primary} size=\"md\" className=\"rounded-kh-pill\" />\n              {props.secondary && <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" size=\"md\" className=\"rounded-kh-pill\" />}\n            </div>\n          </div>\n          <ul className=\"flex min-w-0 flex-col gap-4\">\n            {props.plans.map((p, i) => (\n              <li key={i} className={cn('flex flex-wrap items-start justify-between gap-6 rounded-kh-lg border bg-kh-surface p-6', p.featured ? 'border-kh-accent shadow-kh-2 ring-1 ring-kh-accent/30' : 'border-kh-line shadow-kh-1')}>\n                <div className=\"min-w-0 flex-1\">\n                  <div className=\"flex flex-wrap items-center gap-3\">\n                    <Text path={['plans', i, 'name']} value={p.name} as=\"h3\" className=\"font-kh-display text-kh-heading text-kh-ink\" />\n                    {p.featured && <Opt path={['plans', i, 'badge']} value={p.badge} as=\"span\" className=\"rounded-kh-pill bg-kh-accent-soft px-3 py-1 font-kh-mono text-kh-caption uppercase text-kh-accent-ink\" placeholder=\"Badge\" />}\n                  </div>\n                  <Opt path={['plans', i, 'description']} value={p.description} className=\"mt-2 text-kh-small text-kh-muted\" placeholder=\"Description\" />\n                  {p.features.length > 0 && (\n                    <ul className=\"mt-4 flex flex-col gap-2 text-kh-small text-kh-ink-2\">\n                      {p.features.map((f, j) => (\n                        <li key={j} className=\"flex items-center gap-2\">\n                          <Check className=\"size-4 shrink-0 text-kh-accent\" aria-hidden=\"true\" />\n                          <Text path={['plans', i, 'features', j]} value={f} as=\"span\" />\n                        </li>\n                      ))}\n                    </ul>\n                  )}\n                </div>\n                <div className=\"flex w-full flex-col items-start gap-4 @md:w-auto @md:items-end\">\n                  <p className=\"flex items-baseline gap-1\">\n                    <Text path={['plans', i, 'price']} value={p.price} as=\"span\" className={cn(nowrapIfShort(p.price), 'font-kh-display text-kh-heading text-kh-ink')} />\n                    <Opt path={['plans', i, 'period']} value={p.period} as=\"span\" className=\"text-kh-small text-kh-muted\" placeholder=\"Period\" />\n                  </p>\n                  <ActionLink path={['plans', i, 'cta']} value={p.cta} variant={p.featured ? 'primary' : 'secondary'} size=\"md\" className=\"rounded-kh-pill\" />\n                </div>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingSplitRows);\n"
    }
  ]
}
