{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One quote beside a picture, a rating panel or over logo tiles; stacked quotes beside a picture; four compact quotes; figures over a featured quote and a stack.",
  "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 * Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture,\n * logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three\n * stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured\n * quote beside a stack), mediaSide, tone.\n */\nimport { Fragment, type ReactNode } from \"react\";\nimport { Box, Stack } from \"../compose\";\nimport { ActionGroup } from \"../components/action-group\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { QuoteFigures } from \"../components/quote-figures\";\nimport { QuoteLogoTiles } from \"../components/quote-logo-tiles\";\nimport { QuoteRatingPanel } from \"../components/quote-rating-panel\";\nimport { QuoteSlot } from \"../components/quote-slot\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport type { QuoteExtras } from \"./quote-split.types\";\nimport type { Quote, QuoteLabels } from \"./testimonial-grid.types\";\nimport type { Stat } from \"./stats-band.types\";\nimport type { Logo } from \"./logo-cloud.types\";\nimport type { LinkActions } from \"./error-page.types\";\n\nexport type QuoteSplitProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  badge?: string;\n  quotes: Quote[];\n  labels: QuoteLabels;\n  extras: QuoteExtras;\n  actions: LinkActions;\n  layout?: \"media\" | \"logos\" | \"rating\" | \"stack\" | \"compact\" | \"bento\";\n  mediaSide?: \"end\" | \"start\";\n  tone?: \"default\" | \"muted\";\n  empty?: string;\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function QuoteSplit({\n  id,\n  title,\n  lead = \"\",\n  badge = \"\",\n  quotes,\n  labels,\n  extras,\n  actions,\n  layout = \"media\",\n  mediaSide = \"end\",\n  tone = \"default\",\n  empty = \"\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: QuoteSplitProps) {\n  return (\n    <>\n      {((quotes?.length ?? 0) === 0) ? (\n        <SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>\n          <EmptyState icon=\"quote\" title={empty} />\n        </SectionFrame>\n      ) : (((layout as string) === \"compact\") || ((layout as string) === \"bento\")) ? (\n        <SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>\n          {((layout as string) === \"bento\") ? (\n            <QuoteFigures extras={extras} />\n          ) : null}\n          <Box\n            className={\n              (layout as string) === \"bento\" ? \"grid grid-cols-1 gap-4 lg:grid-cols-2\"\n              : \"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\"\n            }\n          >\n            {(quotes ?? []).map((q, i) => (\n              <QuoteSlot key={q.id}\n                q={q}\n                labels={labels}\n                layout={((((layout as string) === \"bento\") && (i === 0)) ? \"single\" : \"grid\")}\n                className={((((layout as string) === \"bento\") && (i === 0)) ? \"lg:row-span-3\" : \"\")}\n              />\n            ))}\n          </Box>\n        </SectionFrame>\n      ) : (\n        <SectionFrame\n          id={id}\n          title={title}\n          lead={lead}\n          heading={{ badge }}\n          tone={tone}\n          layout=\"split\"\n          media={{ show: true, side: mediaSide }}\n          landmarkLabel={landmarkLabel}\n          aside={(\n            <>\n              {((layout as string) === \"rating\") ? (\n                <QuoteRatingPanel extras={extras} labels={labels} />\n              ) : (\n                <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n              )}\n            </>\n          )}\n        >\n          {(((layout as string) === \"media\") || ((layout as string) === \"logos\") || ((layout as string) === \"rating\")) ? (\n            <>\n              {(quotes ?? []).map((q, i) => (\n                <Fragment key={q.id}>\n                  {(i < 1) ? (\n                    <QuoteSlot\n                      q={q}\n                      labels={labels}\n                      kind={(((layout as string) === \"media\") ? \"card\" : \"plain\")}\n                      layout=\"single\"\n                      className=\"\"\n                    />\n                  ) : null}\n                </Fragment>\n              ))}\n            </>\n          ) : null}\n          {((layout as string) === \"logos\") ? (\n            <QuoteLogoTiles extras={extras} />\n          ) : null}\n          {((layout as string) === \"stack\") ? (\n            <Stack gap=\"4\" align=\"stretch\">\n              {(quotes ?? []).map((q, i) => (\n                <Fragment key={q.id}>\n                  {(i < 3) ? (\n                    <QuoteSlot q={q} labels={labels} layout=\"stack\" className=\"\" />\n                  ) : null}\n                </Fragment>\n              ))}\n            </Stack>\n          ) : null}\n          {(((layout as string) === \"media\") || ((layout as string) === \"logos\") || ((layout as string) === \"rating\")) ? (\n            <ActionGroup\n              primary={actions.cta}\n              primaryHref={actions.href}\n              secondary={((actions.mode === \"two\") ? actions.secondary : undefined)}\n              secondaryHref={actions.secondaryHref}\n            />\n          ) : null}\n        </SectionFrame>\n      )}\n    </>\n  );\n}\n",
      "path": "blocks/quote-split.tsx",
      "target": "blocks/quote-split.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\nimport type { Stat } from \"./stats-band.types\";\nimport type { Logo } from \"./logo-cloud.types\";\n\nexport type QuoteExtras = {\n  stats: Stat[];\n  logos: Logo[];\n  rating: number;\n  score: string;\n  reviews: string;\n};\n",
      "path": "blocks/quote-split.types.ts",
      "target": "blocks/quote-split.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "quote-split",
  "registryDependencies": [
    "action-group",
    "compose",
    "empty-state",
    "error-page",
    "logo-cloud",
    "media-frame",
    "quote-figures",
    "quote-logo-tiles",
    "quote-rating-panel",
    "quote-slot",
    "section-frame",
    "stats-band",
    "testimonial-grid",
    "utils"
  ],
  "runtime": "react",
  "title": "Quote Split",
  "type": "registry:block"
}
