{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/before-after.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// BeforeAfterProps are the props of BeforeAfter; the values are the JSON shapes of the TypeScript props.\ntype BeforeAfterProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tPoints any `json:\"points\"`\n\tEmpty any `json:\"empty\"`\n\tLabels any `json:\"labels\"`\n\tLayout any `json:\"layout\"`\n\tIcons any `json:\"icons\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.\ntempl BeforeAfter(p BeforeAfterProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vPoints := p.Points }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vLabels := p.Labels }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"cards\") }}\n\t{{ vIcons := uiutils.Def(p.Icons, \"show\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vPoints), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"git-compare\", Title: vEmpty})\n\t\t} else if uiutils.Eq(vLayout, \"cards\") {\n\t\t\t@compose.Grid(compose.GridProps{Cols: \"1-2\", BoxProps: box.BoxProps{Class: \"items-stretch gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"sides\")}}) {\n\t\t\t\t@compose.Card(compose.CardProps{Variant: \"muted\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"h-full\", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, \"compact\")), \"gap-4 p-4\", \"\"))), Attrs: uiutils.Attrs(\"data-side\", \"before\")}}) {\n\t\t\t\t\t@compose.CardContent(compose.CardContentProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-4\"}}) {\n\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"before\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: \"m-0 flex list-none flex-col gap-4 p-0\"}}) {\n\t\t\t\t\t\t\tfor _, vP := range uiutils.L(vPoints) {\n\t\t\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"flex items-start gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t\t\t\tif uiutils.Eq(vIcons, \"show\") {\n\t\t\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"x\", Size: 16, Class: \"h-lh shrink-0 text-sm\"})\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"before\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Card(compose.CardProps{Variant: \"default\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"h-full\", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, \"compact\")), \"gap-4 p-4\", \"\"))), Attrs: uiutils.Attrs(\"data-side\", \"after\")}}) {\n\t\t\t\t\t@compose.CardContent(compose.CardContentProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-4\"}}) {\n\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"after\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: \"m-0 flex list-none flex-col gap-4 p-0\"}}) {\n\t\t\t\t\t\t\tfor _, vP := range uiutils.L(vPoints) {\n\t\t\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"flex items-start gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t\t\t\tif uiutils.Eq(vIcons, \"show\") {\n\t\t\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"check\", Size: 16, Class: \"h-lh shrink-0 text-sm\"})\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"after\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"rows\")}}) {\n\t\t\t\tfor _, vP := range uiutils.L(vPoints) {\n\t\t\t\t\t@compose.Grid(compose.GridProps{Cols: \"1-3\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"items-center gap-4\", \"rounded bg-card inset-ring inset-ring-border p-4\")), Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"title\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\tif uiutils.Eq(vIcons, \"show\") {\n\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"x\", Size: 16, Class: \"h-lh shrink-0 text-sm text-muted-foreground\"})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"before\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\tif uiutils.Eq(vIcons, \"show\") {\n\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"check\", Size: 16, Class: \"h-lh shrink-0 text-sm text-primary\"})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"after\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/before-after.templ",
      "target": "blocks/before-after.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "before-after",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "group",
    "kit-box",
    "kit-text",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Before After",
  "type": "registry:block"
}
