{
  "$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<!--\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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Quote, QuoteLabels, QuoteItem } from \"./testimonial-grid.types\";\n\n  export 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 lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import QuoteCard from \"../components/quote-card.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n\n  let {\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  }: TestimonialGridProps = $props();\n</script>\n\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  {#if ((quotes?.length ?? 0) === 0)}\n    <EmptyState icon=\"message-square-quote\" title={empty} />\n  {:else if (((layout as string) === \"masonry\") || ((layout as string) === \"strip\"))}\n    <Block\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      {#each quotes as q (q.id)}\n        <QuoteCard q={q} labels={labels} item={item} layout={layout} />\n      {/each}\n    </Block>\n  {:else}\n    <Grid cols={(((layout as string) === \"grid\") ? cols : \"1\")} class=\"gap-4\" data-slot=\"items\">\n      {#each quotes as q, i (q.id)}\n        {#if (((layout as string) !== \"single\") || (i === 0))}\n          <QuoteCard q={q} labels={labels} item={item} layout={layout} />\n        {/if}\n      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/testimonial-grid.svelte",
      "target": "blocks/testimonial-grid.svelte"
    },
    {
      "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"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "testimonial-grid",
  "registryDependencies": [
    "block",
    "empty-state",
    "grid",
    "quote-card",
    "section-frame",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Testimonial Grid",
  "type": "registry:block"
}
