{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Free delivery, returns, warranty and help in one band.",
  "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/usp-strip.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// UspStripProps are the props of UspStrip; the values are the JSON shapes of the TypeScript props.\ntype UspStripProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tPerks any `json:\"perks\"`\n\tEmpty any `json:\"empty\"`\n\tLayout any `json:\"layout\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The promises of a store in one band: free delivery, returns, warranty, help. Axes: layout (strip: one muted panel, cards: a card each, bar: a thin line of icons and titles), tone, density.\ntempl UspStrip(p UspStripProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := uiutils.Def(p.Title, \"\") }}\n\t{{ vPerks := p.Perks }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"strip\") }}\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(vPerks), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"truck\", Title: vEmpty})\n\t\t} else if uiutils.Eq(vLayout, \"bar\") {\n\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Tag: \"ul\", Class: \"flex flex-wrap items-center justify-center gap-x-8 gap-y-4\", Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vP := range uiutils.L(vPerks) {\n\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"flex items-center gap-2 text-sm font-medium\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vP, \"icon\")), Size: 16})\n\t\t\t\t\t\t@compose.Inline(compose.InlineProps{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}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t@compose.Grid(compose.GridProps{Cols: \"1-4\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"strip\")), \"rounded bg-muted p-6\", \"\"))), Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vP := range uiutils.L(vPerks) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"cards\")), \"rounded bg-card inset-ring inset-ring-border p-6\", \"\")), Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex size-10 shrink-0 items-center justify-center rounded bg-muted\"}}) {\n\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vP, \"icon\")), Size: 20})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\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, \"title\")) }\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, \"text\")) }\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/usp-strip.templ",
      "target": "blocks/usp-strip.templ"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "storefront",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "usp-strip",
  "registryDependencies": [
    "box",
    "empty-state",
    "grid",
    "inline",
    "kit-box",
    "kit-text",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Usp Strip",
  "type": "registry:block"
}
