{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Ways to get help: email, chat, docs.",
  "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/support-channels.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// SupportChannelsProps are the props of SupportChannels; the values are the JSON shapes of the TypeScript props.\ntype SupportChannelsProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tChannels any `json:\"channels\"`\n\tEmpty any `json:\"empty\"`\n\tOpen any `json:\"open\"`\n\tLayout any `json:\"layout\"`\n\tCols any `json:\"cols\"`\n\tAction any `json:\"action\"`\n\tTone any `json:\"tone\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout (grid, list), columns, action (link, none), tone (default, muted).\ntempl SupportChannels(p SupportChannelsProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vChannels := p.Channels }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vOpen := p.Open }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"grid\") }}\n\t{{ vCols := uiutils.Def(p.Cols, \"1-3\") }}\n\t{{ vAction := uiutils.Def(p.Action, \"link\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vChannels), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"life-buoy\", Title: vEmpty})\n\t\t} else {\n\t\t\t@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"list\")), \"1\", vCols)), BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vC := range uiutils.L(vChannels) {\n\t\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(vLayout, \"list\")), \"flex-row items-center\", \"\")))}}) {\n\t\t\t\t\t\t@compose.CardContent(compose.CardContentProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex flex-1 gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"list\")), \"items-center\", \"flex-col\")))}}) {\n\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vC, \"icon\")), Size: 24})\n\t\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"flex-1\"}}) {\n\t\t\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"base\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vC, \"title\")) }\n\t\t\t\t\t\t\t\t}\n\t\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\t{ uiutils.Text(uiutils.Get(vC, \"text\")) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif uiutils.Eq(vAction, \"link\") {\n\t\t\t\t\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vC, \"href\"), Class: uiutils.Cnv(\"font-semibold\"), Testid: \"open\"}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(vOpen) }\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}\n\t}\n}\n",
      "path": "blocks/support-channels.templ",
      "target": "blocks/support-channels.templ"
    }
  ],
  "meta": {
    "category": "support",
    "group": "contact",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "support-channels",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "menu-entry",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Support Channels",
  "type": "registry:block"
}
