{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-rows",
  "type": "registry:block",
  "title": "Pricing, plan rows",
  "description": "Plans as full-width rows instead of cards: name and description, up to three highlights as chips, the price, and a button on one line. Easy to scan down, and room for four or more plans. One row can be marked featured.",
  "categories": [
    "pricing"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/badge.json",
    "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-rows/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-rows/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, req, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  description: t(300),\n  plans: z.array(z.object({\n    name: req(40),\n    description: t(120),\n    highlights: z.array(t(40)).max(3),\n    price: req(16),\n    period: t(30),\n    cta: link,\n    featured: z.boolean(),\n  })).min(2).max(4),\n  note: t(160),\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-rows',\n  aliases: ['pricing/rows'],\n  name: 'Pricing, plan rows',\n  category: 'pricing',\n  role: 'body',\n  description: 'Plans as full-width rows instead of cards: name and description, up to three highlights as chips, the price, and a button on one line. Easy to scan down, and room for four or more plans. One row can be marked featured.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say how the plans are chosen',\n    description: 'Say in one sentence what every plan includes and what the choice is about.',\n    plans: [\n      { name: 'First plan', description: 'Say who this plan suits in one line', highlights: ['A highlight', 'A highlight', 'A highlight'], price: '$00', period: 'billing period', cta: { label: 'Main action', href: '#start' }, featured: false },\n      { name: 'Second plan', description: 'Say who this plan suits in one line', highlights: ['A highlight', 'A highlight', 'A highlight'], price: '$00', period: 'billing period', cta: { label: 'Main action', href: '#start' }, featured: true },\n      { name: 'Third plan', description: 'Say who this plan suits in one line', highlights: ['A highlight', 'A highlight', 'A highlight'], price: '$00', period: 'billing period', cta: { label: 'Second action', href: '#contact' }, featured: false },\n    ],\n    note: 'Say what the prices include and how billing works.',\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-rows/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-rows/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Badge } from '../../ui/badge';\nimport { ActionLink, Container, Opt, Section, nowrapIfShort } from '../_shared/kit';\nimport { Heading, 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\nfunction PricingRows({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <ul className=\"mt-12 space-y-3\">\n          {props.plans.map((p, i) => (\n            <li key={i} className={cn('grid items-center gap-5 rounded-kh-xl border p-6 @3xl:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)_auto] @3xl:gap-8 @3xl:px-8', p.featured ? 'border-kh-accent bg-kh-accent-soft shadow-kh-2' : 'border-kh-line bg-kh-surface')}>\n              <div className=\"min-w-0\">\n                <Text path={['plans', i, 'name']} value={p.name} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n                <Opt path={['plans', i, 'description']} value={p.description} className=\"mt-1 text-kh-small text-kh-muted\" placeholder=\"Description\" />\n                {p.highlights.length > 0 && (\n                  <ul className=\"mt-3 flex flex-wrap gap-2\">\n                    {p.highlights.map((h, j) => (\n                      <li key={j}>\n                        <Badge tone={p.featured ? 'accent' : 'neutral'}>\n                          <Text path={['plans', i, 'highlights', j]} value={h} as=\"span\" />\n                        </Badge>\n                      </li>\n                    ))}\n                  </ul>\n                )}\n              </div>\n              <p className=\"flex min-w-0 flex-wrap items-baseline gap-x-2 @3xl:justify-end\">\n                <Text path={['plans', i, 'price']} value={p.price} as=\"span\" className={cn(nowrapIfShort(p.price), 'text-kh-title font-semibold tabular-nums')} />\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=\"@3xl:min-w-36\" />\n            </li>\n          ))}\n        </ul>\n        <Opt path={['note']} value={props.note} className=\"mt-6 text-kh-small text-kh-muted\" placeholder=\"Note\" />\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingRows);\n"
    }
  ]
}
