{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A thin strip above the page with one sentence and a link.",
  "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/announcement-bar.json\n    A thin strip above the page: an icon, one sentence, a link and an optional close button. Axes: tone (default, muted), layout (center, split), dismiss (show, hide).\n    Props (p): label, text, cta, ctaHref, icon, dismissLabel, tone, layout, dismiss, badgeLabel, badge, position, landmarkLabel. *}\n{var $v_label = ($p['label'] ?? null)}\n{var $v_text = ($p['text'] ?? null)}\n{var $v_cta = ($p['cta'] ?? null)}\n{var $v_ctaHref = ($p['ctaHref'] ?? null)}\n{var $v_icon = ($p['icon'] ?? 'megaphone')}\n{var $v_dismissLabel = ($p['dismissLabel'] ?? null)}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_layout = ($p['layout'] ?? 'center')}\n{var $v_dismiss = ($p['dismiss'] ?? 'hide')}\n{var $v_badgeLabel = ($p['badgeLabel'] ?? null)}\n{var $v_badge = ($p['badge'] ?? 'none')}\n{var $v_position = ($p['position'] ?? 'top')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_7}\n  {capture $c_6}\n    {capture $c_4}\n      {=og_include('icons/LucideIcon.latte', ['name' => og_s($v_icon), 'size' => 16])|noescape}\n      {if og_t(og_eq($v_badge, 'show'))}\n        {capture $c_1}\n          {=og_text($v_badgeLabel)}\n        {/capture}\n        {=og_include('compose/Inline.latte', ['class' => 'rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current', 'attrs' => og_attrs(['data-slot', 'announcement-badge']), 'children' => (string) $c_1])|noescape}\n      {/if}\n      {capture $c_2}\n        {=og_text($v_text)}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_2])|noescape}\n      {if og_t($v_cta)}\n        {capture $c_3}\n          {=og_text($v_cta)}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-right', 'size' => 16])|noescape}\n        {/capture}\n        {=og_include('compose/LinkPlain.latte', ['href' => og_url(og_s($v_ctaHref)), 'class' => 'inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4', 'attrs' => og_attrs(['data-slot', 'announcement-cta']), 'children' => (string) $c_3])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'class' => og_s(og_cnv(['min-w-0 flex-wrap', (og_t(og_and([og_eq($v_layout, 'center'), og_eq($v_dismiss, 'show')])) ? 'ml-auto' : '')])), 'children' => (string) $c_4])|noescape}\n    {if og_t(og_eq($v_dismiss, 'show'))}\n      {capture $c_5}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'x', 'size' => 16])|noescape}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'ghost', 'size' => 'sm', 'class' => 'ml-auto shrink-0 text-current', 'type' => 'button', 'attrs' => og_attrs(['aria-label', $v_dismissLabel]), 'children' => (string) $c_5])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Container.latte', ['class' => og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex items-center gap-4 py-2', (og_t(og_eq($v_layout, 'split')) ? 'justify-between' : 'justify-center')])), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_6])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'aside', 'class' => og_s(og_cnv(['w-full', (og_t(og_eq($v_position, 'bottom')) ? 'sticky bottom-0 z-40 border-t border-border' : ''), (og_t(og_eq($v_tone, 'muted')) ? 'bg-muted text-foreground' : 'bg-primary text-primary-foreground')])), 'attrs' => og_attrs(['aria-label', og_coalesce([$v_landmarkLabel, $v_label]), 'data-layout', $v_layout, 'data-slot', 'announcement']), 'children' => (string) $c_7])|noescape}\n",
      "path": "blocks/announcement-bar.latte",
      "target": "blocks/announcement-bar.latte"
    }
  ],
  "meta": {
    "category": "promo",
    "group": "banner",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "announcement-bar",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "group",
    "inline",
    "link-plain",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Announcement Bar",
  "type": "registry:block"
}
