{
  "$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\">\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};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Button from \"../compose/Button.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Text from \"../compose/Text.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport FigureBlock from \"../components/figure-block.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { tpl } from \"../utils\";\n\nconst {\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} = defineProps<VideoGridProps>();\nconst emit = defineEmits<{ play: [id: string] }>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((quotes?.length ?? 0) === 0)\" icon=\"video\" :title=\"empty\" />\n    <Grid v-else :cols=\"cols\" class=\"gap-4\" data-slot=\"items\">\n      <FigureBlock v-for=\"q in quotes\" :key=\"q.id\" 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            @click=\"() => emit('play', q.id)\"\n          >\n            <LucideIcon name=\"play\" :size=\"20\" />\n          </Button>\n          <Box\n            v-if=\"((caption as string) === 'overlay')\"\n            class=\"absolute inset-x-0 bottom-0 rounded bg-background p-4\"\n            data-slot=\"caption\"\n          >\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        </Box>\n        <Text v-if=\"((caption as string) === 'below')\" 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      </FigureBlock>\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/video-grid.vue",
      "target": "blocks/video-grid.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "video-grid",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "testimonial-grid",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Video Grid",
  "type": "registry:block"
}
