{
  "$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{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_text = og_def(p['text'], none) -%}\n{%- set v_cta = og_def(p['cta'], none) -%}\n{%- set v_ctaHref = og_def(p['ctaHref'], none) -%}\n{%- set v_icon = og_def(p['icon'], 'megaphone') -%}\n{%- set v_dismissLabel = og_def(p['dismissLabel'], none) -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_layout = og_def(p['layout'], 'center') -%}\n{%- set v_dismiss = og_def(p['dismiss'], 'hide') -%}\n{%- set v_badgeLabel = og_def(p['badgeLabel'], none) -%}\n{%- set v_badge = og_def(p['badge'], 'none') -%}\n{%- set v_position = og_def(p['position'], 'top') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_7 -%}\n  {%- set c_6 -%}\n    {%- set c_4 -%}\n      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(v_icon), 'Size': 16}}) }}\n      {%- if og_t(og_eq(v_badge, 'show')) %}\n        {%- set c_1 -%}\n          {{ og_text(v_badgeLabel) }}\n        {%- endset -%}\n        {{ og_include('compose/inline.html.j2', {'p': {'Class': 'rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current', 'Attrs': og_attrs(['data-slot', 'announcement-badge'])}, 'children': c_1}) }}\n      {%- endif %}\n      {%- set c_2 -%}\n        {{ og_text(v_text) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_2}) }}\n      {%- if og_t(v_cta) %}\n        {%- set c_3 -%}\n          {{ og_text(v_cta) }}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'arrow-right', 'Size': 16}}) }}\n        {%- endset -%}\n        {{ og_include('compose/link-plain.html.j2', {'p': {'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': c_3}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': og_s(og_cnv(['min-w-0 flex-wrap', ('ml-auto' if og_t(og_and([og_eq(v_layout, 'center'), og_eq(v_dismiss, 'show')])) else '')]))}, 'children': c_4}) }}\n    {%- if og_t(og_eq(v_dismiss, 'show')) %}\n      {%- set c_5 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16}}) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Class': 'ml-auto shrink-0 text-current', 'Type': 'button', 'Attrs': og_attrs(['aria-label', v_dismissLabel])}, 'children': c_5}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex items-center gap-4 py-2', ('justify-between' if og_t(og_eq(v_layout, 'split')) else 'justify-center')])), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_6}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'aside', 'Class': og_s(og_cnv(['w-full', ('sticky bottom-0 z-40 border-t border-border' if og_t(og_eq(v_position, 'bottom')) else ''), ('bg-muted text-foreground' if og_t(og_eq(v_tone, 'muted')) else 'bg-primary text-primary-foreground')])), 'Attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, v_label]), 'data-layout', v_layout, 'data-slot', 'announcement'])}, 'children': c_7}) }}\n",
      "path": "blocks/announcement-bar.html.j2",
      "target": "blocks/announcement-bar.html.j2"
    }
  ],
  "meta": {
    "category": "promo",
    "group": "banner",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "announcement-bar",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "group",
    "inline",
    "link-plain",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Announcement Bar",
  "type": "registry:block"
}
