{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Two sides of the same points: how it was and how it is, as two cards or as rows.",
  "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 Contrast = {\n  id: string;\n  title: string;\n  before: string;\n  after: string;\n};\n\nexport type BeforeAfterLabels = {\n  before: string;\n  after: string;\n};\n",
      "path": "blocks/before-after.types.ts",
      "target": "blocks/before-after.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  Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two\n  cards, rows: one row per point), icons (show, hide), tone, density.\n-->\n<script lang=\"ts\">\nimport type { Contrast, BeforeAfterLabels } from \"./before-after.types\";\n\nexport type BeforeAfterProps = {\n  id: string;\n  title: string;\n  points: Contrast[];\n  empty?: string;\n  labels: BeforeAfterLabels;\n  layout?: \"cards\" | \"rows\";\n  icons?: \"show\" | \"hide\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Card from \"../compose/Card.vue\";\nimport CardContent from \"../compose/CardContent.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport Group from \"../compose/Group.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { cn } from \"../utils\";\n\nconst {\n  id,\n  title,\n  points,\n  empty = \"\",\n  labels,\n  layout = \"cards\",\n  icons = \"show\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<BeforeAfterProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((points?.length ?? 0) === 0)\" icon=\"git-compare\" :title=\"empty\" />\n    <Grid v-else-if=\"((layout as string) === 'cards')\" cols=\"1-2\" class=\"items-stretch gap-4\" data-slot=\"sides\">\n      <Card\n        variant=\"muted\"\n        :class=\"cn('h-full', (((density as string) === 'compact') ? 'gap-4 p-4' : ''))\"\n        data-side=\"before\"\n      >\n        <CardContent class=\"flex flex-col gap-4\">\n          <Title :as=\"3\" size=\"xl\" weight=\"bold\">\n            {{ labels.before }}\n          </Title>\n          <List class=\"m-0 flex list-none flex-col gap-4 p-0\">\n            <ListItem v-for=\"p in points\" :key=\"p.id\" class=\"flex items-start gap-4\" data-slot=\"item\">\n              <LucideIcon v-if=\"((icons as string) === 'show')\" name=\"x\" :size=\"16\" class=\"h-lh shrink-0 text-sm\" />\n              <Text size=\"sm\">\n                {{ p.before }}\n              </Text>\n            </ListItem>\n          </List>\n        </CardContent>\n      </Card>\n      <Card\n        variant=\"default\"\n        :class=\"cn('h-full', (((density as string) === 'compact') ? 'gap-4 p-4' : ''))\"\n        data-side=\"after\"\n      >\n        <CardContent class=\"flex flex-col gap-4\">\n          <Title :as=\"3\" size=\"xl\" weight=\"bold\">\n            {{ labels.after }}\n          </Title>\n          <List class=\"m-0 flex list-none flex-col gap-4 p-0\">\n            <ListItem v-for=\"p in points\" :key=\"p.id\" class=\"flex items-start gap-4\" data-slot=\"item\">\n              <LucideIcon v-if=\"((icons as string) === 'show')\" name=\"check\" :size=\"16\" class=\"h-lh shrink-0 text-sm\" />\n              <Text size=\"sm\">\n                {{ p.after }}\n              </Text>\n            </ListItem>\n          </List>\n        </CardContent>\n      </Card>\n    </Grid>\n    <Stack v-else gap=\"2\" align=\"stretch\" data-slot=\"rows\">\n      <Grid v-for=\"p in points\" :key=\"p.id\"\n        cols=\"1-3\"\n        :class=\"cn('items-center gap-4', 'rounded bg-card inset-ring inset-ring-border p-4')\"\n        data-slot=\"item\"\n      >\n        <Text size=\"base\" weight=\"semibold\">\n          {{ p.title }}\n        </Text>\n        <Group gap=\"2\" align=\"start\">\n          <LucideIcon\n            v-if=\"((icons as string) === 'show')\"\n            name=\"x\"\n            :size=\"16\"\n            class=\"h-lh shrink-0 text-sm text-muted-foreground\"\n          />\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {{ p.before }}\n          </Text>\n        </Group>\n        <Group gap=\"2\" align=\"start\">\n          <LucideIcon\n            v-if=\"((icons as string) === 'show')\"\n            name=\"check\"\n            :size=\"16\"\n            class=\"h-lh shrink-0 text-sm text-primary\"\n          />\n          <Text size=\"sm\" weight=\"semibold\">\n            {{ p.after }}\n          </Text>\n        </Group>\n      </Grid>\n    </Stack>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/before-after.vue",
      "target": "blocks/before-after.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "before-after",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Before After",
  "type": "registry:block"
}
