{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customer quotes as cards or plain figures.",
  "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\nexport type Quote = {\n  id: string;\n  author: string;\n  role: string;\n  company: string;\n  quote: string;\n  rating: number;\n  handle: string;\n  time: string;\n  mark: string;\n  image?: string;\n};\n\nexport type QuoteLabels = {\n  /** template of the rating's accessible name, e.g. `｛0｝ out of 5` */\n  rating: string;\n  /** template of the line under the author, e.g. `｛0｝, ｛1｝` (role, company) */\n  byLine: string;\n  /** template of the line under a social author, e.g. `｛0｝ / ｛1｝` (handle, time) */\n  handleLine: string;\n};\n\nexport type QuoteItem = {\n  /** card: boxed; plain: a bare figure; social: a post of a social wall */\n  kind?: \"card\" | \"plain\" | \"social\";\n  /** a round picture of the author */\n  avatar?: \"none\" | \"image\";\n  /** the stars (not on social posts) */\n  rating?: \"show\" | \"hide\";\n  /** a company glyph above the quote */\n  mark?: \"none\" | \"icon\";\n};\n",
      "path": "blocks/testimonial-grid.types.ts",
      "target": "blocks/testimonial-grid.types.ts"
    },
    {
      "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  Customer quotes as cards, plain figures or social posts, in a grid, a masonry, a scroll strip, one featured\n  quote or one narrow column. Axes: layout (grid, single, stack, masonry, strip), columns, item kind (card,\n  plain, social), item avatar, item rating, item mark (a company glyph), density, tone. A carousel is the\n  Carousel port contract around the single layout.\n-->\n<script lang=\"ts\">\nimport type { Quote, QuoteLabels, QuoteItem } from \"./testimonial-grid.types\";\n\nexport type TestimonialGridProps = {\n  id: string;\n  title: string;\n  quotes: Quote[];\n  empty?: string;\n  labels: QuoteLabels;\n  layout?: \"grid\" | \"single\" | \"stack\" | \"masonry\" | \"strip\";\n  cols?: \"1-2\" | \"1-3\";\n  item?: QuoteItem;\n  tone?: \"default\" | \"muted\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport QuoteCard from \"../components/quote-card.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\n\nconst {\n  id,\n  title,\n  quotes,\n  empty = \"\",\n  labels,\n  layout = \"grid\",\n  cols = \"1-3\",\n  item,\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<TestimonialGridProps>();\n</script>\n\n<template>\n  <SectionFrame\n    :id=\"id\"\n    :title=\"title\"\n    :tone=\"tone\"\n    :density=\"density\"\n    :align=\"(((layout as string) === 'single') ? 'center' : 'start')\"\n    :measure=\"(((layout as string) === 'grid') ? 'default' : '2xl')\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <EmptyState v-if=\"((quotes?.length ?? 0) === 0)\" icon=\"message-square-quote\" :title=\"empty\" />\n    <Block v-else-if=\"(((layout as string) === 'masonry') || ((layout as string) === 'strip'))\"\n      tag=\"div\"\n      :class=\"\n        (layout as string) === 'masonry' ? 'columns-1 gap-4 md:columns-2 xl:columns-3'\n        : 'flex snap-x gap-4 overflow-x-auto pb-2'\n      \"\n      data-slot=\"items\"\n    >\n      <QuoteCard v-for=\"q in quotes\" :key=\"q.id\" :q=\"q\" :labels=\"labels\" :item=\"item\" :layout=\"layout\" />\n    </Block>\n    <Grid v-else :cols=\"(((layout as string) === 'grid') ? cols : '1')\" class=\"gap-4\" data-slot=\"items\">\n      <template v-for=\"(q, i) in quotes\" :key=\"q.id\">\n        <QuoteCard\n          v-if=\"(((layout as string) !== 'single') || (i === 0))\"\n          :q=\"q\"\n          :labels=\"labels\"\n          :item=\"item\"\n          :layout=\"layout\"\n        />\n      </template>\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/testimonial-grid.vue",
      "target": "blocks/testimonial-grid.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "testimonial-grid",
  "registryDependencies": [
    "block",
    "empty-state",
    "grid",
    "quote-card",
    "section-frame",
    "utils"
  ],
  "runtime": "vue",
  "title": "Testimonial Grid",
  "type": "registry:block"
}
