{
  "$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 */\nimport { Fragment, type ReactNode } from \"react\";\nimport { Block, Grid } from \"../compose\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { QuoteCard } from \"../components/quote-card\";\nimport { SectionFrame } from \"../components/section-frame\";\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\nexport function TestimonialGrid({\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) {\n  return (\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      {((quotes?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"message-square-quote\" title={empty} />\n      ) : (((layout as string) === \"masonry\") || ((layout as string) === \"strip\")) ? (\n        <Block\n          tag=\"div\"\n          className={\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          {(quotes ?? []).map((q) => (\n            <QuoteCard key={q.id} q={q} labels={labels} item={item} layout={layout} />\n          ))}\n        </Block>\n      ) : (\n        <Grid cols={(((layout as string) === \"grid\") ? cols : \"1\")} className=\"gap-4\" data-slot=\"items\">\n          {(quotes ?? []).map((q, i) => (\n            <Fragment key={q.id}>\n              {(((layout as string) !== \"single\") || (i === 0)) ? (\n                <QuoteCard q={q} labels={labels} item={item} layout={layout} />\n              ) : null}\n            </Fragment>\n          ))}\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/testimonial-grid.tsx",
      "target": "blocks/testimonial-grid.tsx"
    },
    {
      "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": [
      "react",
      "block"
    ]
  },
  "name": "testimonial-grid",
  "registryDependencies": [
    "compose",
    "empty-state",
    "quote-card",
    "section-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Testimonial Grid",
  "type": "registry:block"
}
