{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature-alternating-rows",
  "title": "Feature Deep-Dive — Alternating Rows",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-react/blocks/feature-alternating-rows/FeatureAlternatingRows.tsx",
      "content": "'use client'\n\nimport type { ComponentType, SVGProps } from 'react'\nimport { ArrowRight, Check, GitBranch, ShieldCheck, Zap } from 'lucide-react'\nimport { Badge } from '@/components/ui/badge'\nimport { Button } from '@/components/ui/button'\nimport { Card, CardContent } from '@/components/ui/card'\nimport { Separator } from '@/components/ui/separator'\n\n// Explicit shape: the three preview panels are structurally different, so the\n// optional keys keep the union from collapsing when the JSX narrows.\ninterface FeatureRow {\n  eyebrow: string\n  icon: ComponentType<SVGProps<SVGSVGElement>>\n  title: string\n  body: string\n  points: string[]\n  link: string\n  reverse: boolean\n  preview: {\n    label: string\n    lines?: { text: string; tone: 'add' | 'remove' | 'same' }[]\n    rules?: { scope: string; value: string; allowed: boolean }[]\n    stats?: { name: string; detail: string }[]\n  }\n}\n\nconst rows: FeatureRow[] = [\n  {\n    eyebrow: 'Versioning',\n    icon: GitBranch,\n    title: 'Every change is a reviewable diff',\n    body: 'Dashboards, metrics, and permissions are stored as plain files. Changes open a pull request instead of silently overwriting production.',\n    points: ['Branch per change', 'Review before publish', 'One-click revert'],\n    link: 'How version control works',\n    reverse: false,\n    preview: {\n      label: 'metrics/revenue.yml',\n      lines: [\n        { text: '+ window: trailing_28d', tone: 'add' },\n        { text: '- window: trailing_30d', tone: 'remove' },\n        { text: '  owner: finance-analytics', tone: 'same' },\n      ],\n    },\n  },\n  {\n    eyebrow: 'Access',\n    icon: ShieldCheck,\n    title: 'Permissions that follow the row, not the dashboard',\n    body: 'Scope is evaluated at query time from your identity provider, so a shared link never leaks a region or account the viewer cannot see.',\n    points: ['Row-level filters', 'SCIM group sync', 'Audited every query'],\n    link: 'Read the access model',\n    reverse: true,\n    preview: {\n      label: 'Effective access — EMEA analyst',\n      rules: [\n        { scope: 'region', value: 'EMEA only', allowed: true },\n        { scope: 'revenue.net', value: 'Visible', allowed: true },\n        { scope: 'payroll.*', value: 'Blocked', allowed: false },\n      ],\n    },\n  },\n  {\n    eyebrow: 'Performance',\n    icon: Zap,\n    title: 'Cached where it matters, fresh where it counts',\n    body: 'Hot aggregates are materialised on a schedule you control. Everything else falls through to the warehouse so the number is never stale by accident.',\n    points: ['Per-metric freshness', 'Warehouse pass-through', 'Cost ceiling per team'],\n    link: 'See the caching rules',\n    reverse: false,\n    preview: {\n      label: 'Freshness',\n      stats: [\n        { name: 'Revenue rollup', detail: 'materialised · 5 min' },\n        { name: 'Pipeline by stage', detail: 'materialised · 1 hr' },\n        { name: 'Raw event search', detail: 'live query' },\n      ],\n    },\n  },\n]\n\nexport function FeatureAlternatingRows() {\n  return (\n    <section data-slot=\"feature-alternating-rows\" className=\"bg-background\">\n      <div className=\"mx-auto max-w-6xl px-6 py-20 lg:py-28\">\n        <div className=\"max-w-2xl\">\n          <Badge variant=\"secondary\">Platform</Badge>\n          <h2 className=\"mt-4 text-3xl font-semibold tracking-tight sm:text-4xl\">\n            Built like infrastructure, not a widget\n          </h2>\n          <p className=\"text-muted-foreground mt-3 text-lg\">\n            Three decisions that stop a reporting layer from rotting after the first quarter.\n          </p>\n        </div>\n\n        <div className=\"mt-16 space-y-16 lg:space-y-24\">\n          {rows.map((row) => (\n            <div key={row.title} className=\"grid items-center gap-10 lg:grid-cols-2 lg:gap-16\">\n              <div className={row.reverse ? 'lg:order-2' : undefined}>\n                <div className=\"text-muted-foreground flex items-center gap-2\">\n                  <row.icon className=\"size-4\" aria-hidden=\"true\" />\n                  <span className=\"font-mono text-xs tracking-[0.14em] uppercase\">{row.eyebrow}</span>\n                </div>\n                <h3 className=\"mt-4 text-2xl font-semibold tracking-tight\">{row.title}</h3>\n                <p className=\"text-muted-foreground mt-3 leading-relaxed\">{row.body}</p>\n                <ul className=\"mt-6 space-y-2.5\">\n                  {row.points.map((point) => (\n                    <li key={point} className=\"flex items-start gap-2.5 text-sm\">\n                      <Check className=\"text-primary mt-0.5 size-4 shrink-0\" aria-hidden=\"true\" />\n                      <span>{point}</span>\n                    </li>\n                  ))}\n                </ul>\n                <Button variant=\"link\" className=\"mt-5 h-auto p-0\">\n                  {row.link}\n                  <ArrowRight className=\"ml-1.5 size-3.5\" aria-hidden=\"true\" />\n                </Button>\n              </div>\n\n              <Card className={row.reverse ? 'lg:order-1' : undefined}>\n                <CardContent className=\"p-0\">\n                  <div className=\"border-border text-muted-foreground border-b px-4 py-2.5 font-mono text-xs\">\n                    {row.preview.label}\n                  </div>\n\n                  {/* Diff preview */}\n                  {row.preview.lines && (\n                    <div className=\"space-y-1 p-4 font-mono text-xs\">\n                      {row.preview.lines.map((line) => (\n                        <p\n                          key={line.text}\n                          className={\n                            line.tone === 'add'\n                              ? 'text-success'\n                              : line.tone === 'remove'\n                                ? 'text-destructive'\n                                : 'text-muted-foreground'\n                          }\n                        >\n                          {line.text}\n                        </p>\n                      ))}\n                    </div>\n                  )}\n\n                  {/* Access preview */}\n                  {row.preview.rules && (\n                    <div className=\"divide-border divide-y\">\n                      {row.preview.rules.map((rule) => (\n                        <div key={rule.scope} className=\"flex items-center justify-between gap-4 px-4 py-3\">\n                          <span className=\"font-mono text-xs\">{rule.scope}</span>\n                          <Badge variant={rule.allowed ? 'secondary' : 'outline'}>{rule.value}</Badge>\n                        </div>\n                      ))}\n                    </div>\n                  )}\n\n                  {/* Freshness preview */}\n                  {row.preview.stats && (\n                    <div className=\"p-4\">\n                      <ul className=\"space-y-3\">\n                        {row.preview.stats.map((stat) => (\n                          <li key={stat.name}>\n                            <div className=\"flex items-baseline justify-between gap-4\">\n                              <span className=\"text-sm font-medium\">{stat.name}</span>\n                              <span className=\"text-muted-foreground font-mono text-xs\">{stat.detail}</span>\n                            </div>\n                            <Separator className=\"mt-3\" />\n                          </li>\n                        ))}\n                      </ul>\n                    </div>\n                  )}\n                </CardContent>\n              </Card>\n            </div>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:block",
      "target": "~/components/blocks/FeatureAlternatingRows.tsx"
    }
  ],
  "dependencies": [
    "lucide-react"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://uipkge.dev/r/react/badge.json",
    "https://uipkge.dev/r/react/button.json",
    "https://uipkge.dev/r/react/card.json",
    "https://uipkge.dev/r/react/separator.json"
  ],
  "description": "Classic zig-zag feature deep-dive: three full-width rows alternating copy and visual, each with an eyebrow, headline, checklist, inline link, and a bordered preview panel built from real primitives.",
  "categories": [
    "marketing"
  ]
}