{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-list",
  "type": "registry:block",
  "title": "Testimonials, list",
  "description": "A plain heading above a single column of quotes in ruled rows, each with a small round portrait beside the quote and the speaker under it; on a phone the portrait sits above the quote.",
  "categories": [
    "testimonials"
  ],
  "dependencies": [
    "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"
  ],
  "files": [
    {
      "path": "src/blocks/testimonials-list/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-list/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, media, t } from '../_shared/schema';\n\nconst item = z.object({\n  /** The quote, one or two sentences. */\n  quote: t(200),\n  /** The speaker's name, then their role, on one line. */\n  byline: t(60),\n  /** A small round portrait; empty draws the placeholder. */\n  media,\n});\n\nconst schema = z.object({\n  title: t(80),\n  /** A list is an array field, never a slot. */\n  items: z.array(item).min(1).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'testimonials-list',\n  aliases: ['testimonials/list'],\n  sourceRuns: ['rmwj1xnnb5b140f', 'rmwj1xbmk73c2ca'],\n  name: 'Testimonials, list',\n  category: 'testimonials',\n  role: 'body',\n  description: 'A plain heading above a single column of quotes in ruled rows, each with a small round portrait beside the quote and the speaker under it; on a phone the portrait sits above the quote.',\n  schema,\n  defaults: {\n    title: 'Say what these quotes are about',\n    items: [\n      { quote: 'Write one short quote the speaker would stand behind.', byline: 'Name, role and company', media: { src: '', alt: 'Portrait of the first speaker' } },\n      { quote: 'Write a fuller quote about what changed for the speaker and how it felt.', byline: 'Name, role and company', media: { src: '', alt: 'Portrait of the second speaker' } },\n      { quote: 'Write one short quote the speaker would stand behind.', byline: 'Name only', media: { src: '', alt: 'Portrait of the third speaker' } },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/testimonials-list/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-list/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { Container, Section } from '../_shared/kit';\nimport { useHeadingId } from '../_shared/c-proof-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 TestimonialsList({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container className=\"@md:max-w-none @md:px-16\">\n        <div id={id}>\n          <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-heading font-normal\" />\n        </div>\n        <ul className=\"mt-10 border-t border-kh-line\">\n          {props.items.map((it, i) => (\n            <li key={i} className=\"flex flex-col gap-5 border-b border-kh-line py-8 @md:flex-row @md:gap-8\">\n              <Media path={['items', i, 'media']} value={it.media} ratio=\"1 / 1\" className=\"size-12 shrink-0 overflow-hidden rounded-full\" />\n              <figure className=\"min-w-0 flex-1\">\n                <blockquote>\n                  <Text path={['items', i, 'quote']} value={it.quote} as=\"p\" multiline className=\"text-kh-lead text-kh-ink [overflow-wrap:anywhere]\" />\n                </blockquote>\n                <figcaption className=\"mt-3\">\n                  <Text path={['items', i, 'byline']} value={it.byline} as=\"span\" className=\"text-kh-small text-kh-muted\" />\n                </figcaption>\n              </figure>\n            </li>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TestimonialsList);\n"
    }
  ]
}
