{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customer videos as thumbnails with a play button. Playing is a port contract (VideoEmbed).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port\n * contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone,\n * density.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, Button, Grid, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { FigureBlock } from \"../components/figure-block\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { tpl } from \"../utils\";\nimport type { Quote } from \"./testimonial-grid.types\";\n\nexport type VideoGridProps = {\n  id: string;\n  title: string;\n  quotes: Quote[];\n  empty?: string;\n  playLabel: string;\n  byLine: string;\n  cols?: \"1-2\" | \"1-3\";\n  caption?: \"below\" | \"overlay\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n  onPlay?: (id: string) => void;\n};\n\nexport function VideoGrid({\n  id,\n  title,\n  quotes,\n  empty = \"\",\n  playLabel,\n  byLine,\n  cols = \"1-3\",\n  caption = \"below\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n  onPlay,\n}: VideoGridProps) {\n  return (\n    <SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n      {((quotes?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"video\" title={empty} />\n      ) : (\n        <Grid cols={cols} className=\"gap-4\" data-slot=\"items\">\n          {(quotes ?? []).map((q) => (\n            <FigureBlock key={q.id} className=\"m-0 flex flex-col gap-4\" testid=\"item\">\n              <Box className=\"relative\">\n                <MediaFrame alt={q.author} src={q.image} />\n                <Button\n                  variant=\"default\"\n                  size=\"default\"\n                  type=\"button\"\n                  className=\"absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0\"\n                  aria-label={tpl(playLabel, q.author)}\n                  onClick={() => onPlay?.(q.id)}\n                >\n                  <LucideIcon name=\"play\" size={20} />\n                </Button>\n                {((caption as string) === \"overlay\") ? (\n                  <Box className=\"absolute inset-x-0 bottom-0 rounded bg-background p-4\" data-slot=\"caption\">\n                    <Text size=\"sm\" weight=\"semibold\">\n                      {q.author}\n                    </Text>\n                    <Text size=\"xs\" className=\"text-muted-foreground\">\n                      {tpl(byLine, q.role, q.company)}\n                    </Text>\n                  </Box>\n                ) : null}\n              </Box>\n              {((caption as string) === \"below\") ? (\n                <Text tag=\"figcaption\" data-slot=\"caption\">\n                  <Text size=\"sm\" weight=\"semibold\">\n                    {q.author}\n                  </Text>\n                  <Text size=\"xs\" className=\"text-muted-foreground\">\n                    {tpl(byLine, q.role, q.company)}\n                  </Text>\n                </Text>\n              ) : null}\n            </FigureBlock>\n          ))}\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/video-grid.tsx",
      "target": "blocks/video-grid.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "video-grid",
  "registryDependencies": [
    "compose",
    "empty-state",
    "figure-block",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "testimonial-grid",
    "utils"
  ],
  "runtime": "react",
  "title": "Video Grid",
  "type": "registry:block"
}
