{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notice-banner",
  "type": "registry:ui",
  "title": "Notice Banner",
  "description": "A full-width strip for something that needs action.",
  "categories": [
    "feedback"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/notice-banner.tsx",
      "type": "registry:ui",
      "target": "components/ui/notice-banner.tsx",
      "content": "import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/sprout/classes';\n\nexport const noticeBannerCompactNames = ['sm', 'md', 'lg'] as const;\n\nexport type NoticeBannerCompactBelow = (typeof noticeBannerCompactNames)[number];\n\nexport interface NoticeBannerProps extends Omit<ComponentProps<'section'>, 'children'> {\n  children: ReactNode;\n  actions?: ReactNode;\n  compact?: boolean | NoticeBannerCompactBelow | undefined;\n}\n\nexport function NoticeBanner({ children, actions, compact, className, ...props }: NoticeBannerProps) {\n  return (\n    <section\n      data-slot=\"notice-banner\"\n      data-compact={compact === true ? '' : compact || undefined}\n      className={cn('sprout-notice-banner', className)}\n      {...props}\n    >\n      <div data-slot=\"notice-banner-content\" className=\"sprout-notice-banner-content\">\n        {children}\n      </div>\n      {actions != null && actions !== false && (\n        <div data-slot=\"notice-banner-actions\" className=\"sprout-notice-banner-actions\">\n          {actions}\n        </div>\n      )}\n    </section>\n  );\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-notice-banner": {
        "box-sizing": "border-box",
        "border-bottom": "1px solid var(--sprout-line)",
        "background": "var(--sprout-surface)",
        "width": "100%",
        "min-width": "0",
        "color": "var(--sprout-muted)",
        "font-family": "var(--sprout-font)",
        "font-size": "var(--sprout-text-sm)",
        "flex-direction": "column",
        "flex-shrink": "0",
        "gap": "8px",
        "padding": "8px 16px",
        "line-height": "1.25rem",
        "display": "flex"
      },
      ".sprout-notice-banner-content": {
        "overflow-wrap": "anywhere",
        "min-width": "0"
      },
      ".sprout-notice-banner-content :where(p)": {
        "margin": "0"
      },
      ".sprout-notice-banner-actions": {
        "flex-wrap": "wrap",
        "flex-shrink": "0",
        "align-items": "center",
        "gap": "8px",
        "width": "100%",
        "min-width": "0",
        "display": "flex"
      },
      "@media (width >= 640px)": {
        ".sprout-notice-banner": {
          "flex-direction": "row",
          "align-items": "center",
          "gap": "16px",
          "padding-inline": "24px"
        },
        ".sprout-notice-banner-actions": {
          "width": "auto"
        }
      },
      ".sprout-notice-banner[data-compact=\"\"]": {
        "flex-direction": "row",
        "align-items": "center",
        "gap": "12px"
      },
      ".sprout-notice-banner[data-compact=\"\"] > .sprout-notice-banner-content, .sprout-notice-banner[data-compact=\"\"] > .sprout-notice-banner-content > *": {
        "white-space": "nowrap",
        "text-overflow": "ellipsis",
        "overflow-wrap": "normal",
        "overflow": "hidden"
      },
      ".sprout-notice-banner[data-compact=\"\"] > .sprout-notice-banner-content": {
        "flex": "auto"
      },
      ".sprout-notice-banner[data-compact=\"\"] > .sprout-notice-banner-actions": {
        "flex-wrap": "nowrap",
        "width": "auto"
      },
      "@media (width < 640px)": {
        ".sprout-notice-banner[data-compact=\"sm\"]": {
          "flex-direction": "row",
          "align-items": "center",
          "gap": "12px"
        },
        ".sprout-notice-banner[data-compact=\"sm\"] > .sprout-notice-banner-content, .sprout-notice-banner[data-compact=\"sm\"] > .sprout-notice-banner-content > *": {
          "white-space": "nowrap",
          "text-overflow": "ellipsis",
          "overflow-wrap": "normal",
          "overflow": "hidden"
        },
        ".sprout-notice-banner[data-compact=\"sm\"] > .sprout-notice-banner-content": {
          "flex": "auto"
        },
        ".sprout-notice-banner[data-compact=\"sm\"] > .sprout-notice-banner-actions": {
          "flex-wrap": "nowrap",
          "width": "auto"
        }
      },
      "@media (width < 768px)": {
        ".sprout-notice-banner[data-compact=\"md\"]": {
          "flex-direction": "row",
          "align-items": "center",
          "gap": "12px"
        },
        ".sprout-notice-banner[data-compact=\"md\"] > .sprout-notice-banner-content, .sprout-notice-banner[data-compact=\"md\"] > .sprout-notice-banner-content > *": {
          "white-space": "nowrap",
          "text-overflow": "ellipsis",
          "overflow-wrap": "normal",
          "overflow": "hidden"
        },
        ".sprout-notice-banner[data-compact=\"md\"] > .sprout-notice-banner-content": {
          "flex": "auto"
        },
        ".sprout-notice-banner[data-compact=\"md\"] > .sprout-notice-banner-actions": {
          "flex-wrap": "nowrap",
          "width": "auto"
        }
      },
      "@media (width < 1024px)": {
        ".sprout-notice-banner[data-compact=\"lg\"]": {
          "flex-direction": "row",
          "align-items": "center",
          "gap": "12px"
        },
        ".sprout-notice-banner[data-compact=\"lg\"] > .sprout-notice-banner-content, .sprout-notice-banner[data-compact=\"lg\"] > .sprout-notice-banner-content > *": {
          "white-space": "nowrap",
          "text-overflow": "ellipsis",
          "overflow-wrap": "normal",
          "overflow": "hidden"
        },
        ".sprout-notice-banner[data-compact=\"lg\"] > .sprout-notice-banner-content": {
          "flex": "auto"
        },
        ".sprout-notice-banner[data-compact=\"lg\"] > .sprout-notice-banner-actions": {
          "flex-wrap": "nowrap",
          "width": "auto"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-notice-banner": {
          "border-bottom-color": "canvastext"
        }
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-notice-banner": {
          "animation": "sprout-notice-banner-in var(--sprout-motion-normal) var(--sprout-motion-ease)"
        }
      },
      "@keyframes sprout-notice-banner-in": {
        "from": {
          "opacity": "0",
          "transform": "translateY(-2px)"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/notice-banner/",
  "meta": {
    "source": "packages/sprout/src/components/notice-banner.tsx"
  }
}
