{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-aside-tiers",
  "type": "registry:block",
  "title": "Pricing, aside tiers",
  "description": "A narrow headline column (label, heading, lead and a paragraph) beside three plan cards in one row, each with a badge, name, one line, price, checklist and a button at the foot; the middle plan is featured with an accent border. On a phone the headline sits above and the cards stack.",
  "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-aside-tiers/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-aside-tiers/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, req, t } from '../_shared/schema';\n\nconst plan = z.object({\n  /** A small label above the name. */\n  badge: t(24),\n  name: req(40),\n  description: t(120),\n  price: req(16),\n  period: t(30),\n  /** Two or three short lines of what the plan includes. */\n  features: z.array(t(60)).max(5),\n  cta: link,\n  featured: z.boolean(),\n});\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  /** The lead line under the heading. */\n  description: t(160),\n  /** The paragraph under the lead. */\n  note: t(240),\n  /** A list is an array field, never a slot. */\n  plans: z.array(plan).min(2).max(3),\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-aside-tiers',\n  aliases: ['pricing/aside-tiers'],\n  sourceRuns: ['rmwj0rwh9db0910'],\n  name: 'Pricing, aside tiers',\n  category: 'pricing',\n  role: 'body',\n  description: 'A narrow headline column (label, heading, lead and a paragraph) beside three plan cards in one row, each with a badge, name, one line, price, checklist and a button at the foot; the middle plan is featured with an accent border. On a phone the headline sits above and the cards stack.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say how the plans differ',\n    description: 'Say in one line who the plans are for.',\n    note: 'Say in a sentence what every plan includes and how to choose.',\n    plans: [\n      { badge: 'Label', name: 'First plan', description: 'Say who this plan suits in one line.', price: '$00', period: 'billing period', features: ['Say what it includes', 'Say what it includes', 'Say what it includes'], cta: { label: 'Second action', href: '#first' }, featured: false },\n      { badge: 'Label', name: 'Second plan', description: 'Say who this plan suits in one line.', price: '$00', period: 'billing period', features: ['Say what it includes', 'Say what it includes', 'Say what it includes'], cta: { label: 'Main action', href: '#second' }, featured: true },\n      { badge: 'Label', name: 'Third plan', description: 'Say who this plan suits in one line.', price: '$00', period: 'billing period', features: ['Say what it includes', 'Say what it includes', 'Say what it includes'], cta: { label: 'Second action', href: '#third' }, featured: false },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-aside-tiers/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-aside-tiers/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// A narrow headline column then the plans side by side in one row; on a phone the headline sits above and the cards stack.\nfunction PricingAsideTiers({ 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 gap-12 @5xl:grid-cols-[minmax(0,0.7fr)_repeat(3,minmax(0,1fr))] @5xl:gap-8\">\n          <div className=\"flex min-w-0 flex-col gap-5 @5xl:pt-2\">\n            <Opt path={['eyebrow']} value={props.eyebrow} className=\"font-kh-mono text-kh-caption uppercase tracking-wider text-kh-accent-ink\" placeholder=\"Eyebrow\" />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className=\"font-kh-display text-kh-heading text-kh-ink\" />\n            </div>\n            <Opt path={['description']} value={props.description} multiline className=\"text-kh-lead text-kh-ink-2\" placeholder=\"Lead\" />\n            <Opt path={['note']} value={props.note} multiline className=\"text-kh-body text-kh-muted\" placeholder=\"Note\" />\n          </div>\n          {props.plans.map((p, i) => (\n            <article key={i} className={cn('flex min-w-0 flex-col gap-6 rounded-kh-lg border bg-kh-surface p-8', p.featured ? 'border-kh-accent shadow-kh-2 ring-1 ring-kh-accent' : 'border-kh-line shadow-kh-1')}>\n              <Opt path={['plans', i, 'badge']} value={p.badge} as=\"span\" className=\"inline-flex w-fit rounded-kh-pill bg-kh-accent-soft px-3 py-1 font-kh-mono text-kh-caption text-kh-accent-ink\" placeholder=\"Badge\" />\n              <div className=\"flex flex-col gap-2\">\n                <Text path={['plans', i, 'name']} value={p.name} as=\"h3\" className=\"font-kh-display text-kh-heading text-kh-ink\" />\n                <Opt path={['plans', i, 'description']} value={p.description} className=\"text-kh-small text-kh-muted\" placeholder=\"Description\" />\n              </div>\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-title 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              {p.features.length > 0 && (\n                <ul className=\"flex flex-col gap-3\">\n                  {p.features.map((f, j) => (\n                    <li key={j} className=\"flex gap-3 text-kh-small text-kh-ink-2\">\n                      <Check className=\"mt-1 size-4 shrink-0 text-kh-accent\" strokeWidth={2} aria-hidden=\"true\" />\n                      <Text path={['plans', i, 'features', j]} value={f} as=\"span\" />\n                    </li>\n                  ))}\n                </ul>\n              )}\n              <div className=\"mt-auto flex flex-col\">\n                <ActionLink path={['plans', i, 'cta']} value={p.cta} variant={p.featured ? 'primary' : 'secondary'} size=\"md\" className=\"w-full justify-center rounded-kh-pill\" />\n              </div>\n            </article>\n          ))}\n        </div>\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingAsideTiers);\n"
    }
  ]
}
