{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-split",
  "type": "registry:block",
  "title": "Testimonials, featured and more",
  "description": "One long quote on a tinted panel with a portrait, beside a stack of two or three short quotes. A lead story with supporting voices; unlike the wall, the hierarchy is fixed.",
  "categories": [
    "testimonials"
  ],
  "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"
  ],
  "files": [
    {
      "path": "src/blocks/testimonials-split/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-split/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, media, req, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  featured: z.object({ quote: req(360), name: req(60), role: t(80), photo: media }),\n  more: z.array(z.object({ quote: req(200), name: req(60), role: t(80) })).min(2).max(3),\n});\n\nexport const spec = defineSpec({\n  type: 'testimonials-split',\n  aliases: ['testimonials/split'],\n  name: 'Testimonials, featured and more',\n  category: 'testimonials',\n  role: 'body',\n  description: 'One long quote on a tinted panel with a portrait, beside a stack of two or three short quotes. A lead story with supporting voices; unlike the wall, the hierarchy is fixed.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say who the quotes come from',\n    featured: {\n      quote: 'Quote a customer, in their words, on the result they got, what changed for them and why they would say it again.',\n      name: 'Name a person',\n      role: 'Their role and their company',\n      photo: { src: '', alt: 'Portrait of the person quoted' },\n    },\n    more: [\n      { quote: 'Quote a customer, in their words, on the result they got.', name: 'Name a person', role: 'Their role and their company' },\n      { quote: 'Quote a customer, in their words, on the result they got.', name: 'Name a person', role: 'Their role and their company' },\n      { quote: 'Quote a customer, in their words, on the result they got.', name: 'Name a person', role: 'Their role and their company' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/testimonials-split/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-split/index.tsx",
      "content": "import { useId } from 'react';\nimport { Quote } from 'lucide-react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { Container, Eyebrow, Opt, Section } from '../_shared/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 TestimonialsSplit({ props }: BlockProps<Props>) {\n  const id = useId();\n  const f = props.featured;\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n        <div id={id}>\n          <Text path={['title']} value={props.title} as=\"h2\" className=\"max-w-kh-narrow text-kh-title font-semibold\" />\n        </div>\n        <div className=\"mt-12 grid gap-6 @4xl:grid-cols-[1.4fr_1fr]\">\n          <figure className=\"grid gap-8 rounded-kh-xl bg-kh-accent-soft p-8 @2xl:grid-cols-[1fr_2fr] @2xl:items-center @4xl:p-10\">\n            <Media path={['featured', 'photo']} value={f.photo} ratio=\"4/5\" className=\"rounded-kh-lg border border-kh-line\" />\n            <div>\n              <Quote aria-hidden strokeWidth={1.5} className=\"size-8 text-kh-accent-ink\" />\n              <blockquote className=\"mt-4\">\n                <Text path={['featured', 'quote']} value={f.quote} as=\"p\" multiline className=\"text-kh-lead font-medium leading-snug\" />\n              </blockquote>\n              <figcaption className=\"mt-6 text-kh-small\">\n                <Text path={['featured', 'name']} value={f.name} as=\"span\" className=\"block font-semibold\" />\n                <Opt path={['featured', 'role']} value={f.role} as=\"span\" className=\"block text-kh-muted\" placeholder=\"Role\" />\n              </figcaption>\n            </div>\n          </figure>\n          <ul className=\"grid gap-6 content-start\">\n            {props.more.map((m, i) => (\n              <li key={i}>\n                <figure className=\"rounded-kh-xl border border-kh-line bg-kh-surface p-6\">\n                  <blockquote>\n                    <Text path={['more', i, 'quote']} value={m.quote} as=\"p\" multiline className=\"text-kh-body\" />\n                  </blockquote>\n                  <figcaption className=\"mt-4 text-kh-small\">\n                    <Text path={['more', i, 'name']} value={m.name} as=\"span\" className=\"block font-medium\" />\n                    <Opt path={['more', i, 'role']} value={m.role} as=\"span\" className=\"block text-kh-muted\" placeholder=\"Role\" />\n                  </figcaption>\n                </figure>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TestimonialsSplit);\n"
    }
  ]
}
