{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Quote } from \"./testimonial-grid.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Button from \"../compose/Button.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import FigureBlock from \"../components/figure-block.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { tpl } from \"../utils\";\n\n  let {\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 = $props();\n</script>\n\n<SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n  {#if ((quotes?.length ?? 0) === 0)}\n    <EmptyState icon=\"video\" title={empty} />\n  {:else}\n    <Grid cols={cols} class=\"gap-4\" data-slot=\"items\">\n      {#each quotes as q (q.id)}\n        <FigureBlock class=\"m-0 flex flex-col gap-4\" testid=\"item\">\n          <Box class=\"relative\">\n            <MediaFrame alt={q.author} src={q.image} />\n            <Button\n              variant=\"default\"\n              size=\"default\"\n              type=\"button\"\n              class=\"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            {#if ((caption as string) === \"overlay\")}\n              <Box class=\"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\" class=\"text-muted-foreground\">\n                  {tpl(byLine, q.role, q.company)}\n                </Text>\n              </Box>\n            {/if}\n          </Box>\n          {#if ((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\" class=\"text-muted-foreground\">\n                {tpl(byLine, q.role, q.company)}\n              </Text>\n            </Text>\n          {/if}\n        </FigureBlock>\n      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/video-grid.svelte",
      "target": "blocks/video-grid.svelte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "video-grid",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "testimonial-grid",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Video Grid",
  "type": "registry:block"
}
