{
  "component": {
    "id": "footer-newsletter",
    "name": "Newsletter footer",
    "tier": "pro",
    "exampleId": "footer-newsletter",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-newsletter-demo.tsx",
    "exportName": "FooterNewsletterDemo",
    "sha256": "c85d469074198139ce7a470244798c3471a0cf5f676cb354f50c5aaa463424af",
    "helperImports": [],
    "directComponentImports": [
      "footer-newsletter",
      "newsletter-signup"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/footer-newsletter",
    "registryUrl": "https://tidalui.com/r/pro/footer-newsletter.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/footer-newsletter",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-newsletter",
      "registryUrl": "https://tidalui.com/r/pro/footer-newsletter.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-newsletter.tsx",
    "exports": [
      "TidalFooterNewsletter",
      "TidalFooterNewsletterLinkItem",
      "TidalNewsletterSignupStatus"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-newsletter.css",
      "components/ui/newsletter-signup.css",
      "components/ui/form-field.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/newsletter-signup"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "footer-newsletter",
      "form-field",
      "newsletter-signup"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-newsletter.css",
      "components/ui/newsletter-signup.css",
      "components/ui/form-field.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-newsletter.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/footer-pilot-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useRef, useState, type FormEvent, type MouseEvent, type ReactNode } from \"react\";\n\nimport type { TidalNewsletterSignupStatus } from \"./components/ui/newsletter-signup\";\n\nimport { TidalFooterNewsletter, type TidalFooterNewsletterLinkItem } from \"./components/ui/footer-newsletter\";\n\nimport \"./components/ui/newsletter-signup.css\";\n\nimport \"./components/ui/footer-newsletter.css\";\n\nimport \"./components/ui/form-field.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .footer-pilot-demo,\\n.tidal-scope .footer-pilot-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .footer-pilot-demo {\\n  inline-size: min(100%, 1240px);\\n  min-inline-size: 0;\\n  margin-inline: auto;\\n}\";\n\nfunction isPlainPrimary(event: MouseEvent<HTMLAnchorElement>) {\n  return (\n    event.button === 0 &&\n    !event.metaKey &&\n    !event.ctrlKey &&\n    !event.shiftKey &&\n    !event.altKey\n  );\n}\n\nexport function FooterNewsletterDemo() {\n  const [email, setEmail] = useState(\"\");\n  const [emailError, setEmailError] = useState<string>();\n  const [status, setStatus] = useState<TidalNewsletterSignupStatus>(\"idle\");\n  const [message, setMessage] = useState<ReactNode>();\n  const emailRef = useRef<HTMLInputElement>(null);\n\n  function announce(nextStatus: TidalNewsletterSignupStatus, next: string) {\n    setStatus(nextStatus);\n    setMessage(next);\n  }\n\n  function sampleLink(\n    id: string,\n    label: string,\n  ): TidalFooterNewsletterLinkItem {\n    return {\n      id,\n      label,\n      href: \"#footer-newsletter-demo\",\n      onClick: (event: import(\"react\").MouseEvent<HTMLAnchorElement>) => {\n        if (!isPlainPrimary(event)) return;\n        event.preventDefault();\n        announce(\"success\", `${label} selected locally.`);\n      },\n    };\n  }\n\n  function handleSubmit(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    const input = emailRef.current;\n    if (!input?.validity.valid) {\n      const nextError = input?.validity.valueMissing\n        ? \"Enter an email address.\"\n        : \"Enter an email address in the correct format.\";\n      setEmailError(nextError);\n      announce(\n        \"error\",\n        \"Review the email field and try the local sample again.\",\n      );\n      input?.focus();\n      return;\n    }\n\n    setEmailError(undefined);\n    announce(\n      \"success\",\n      \"Sample email validated locally. No subscription was created.\",\n    );\n  }\n\n  return (\n    <div className=\"footer-pilot-demo\" id=\"footer-newsletter-demo\">\n      <TidalFooterNewsletter\n        brand=\"TidalUI\"\n        title=\"Product updates, once a month.\"\n        description=\"New components, practical examples and release notes.\"\n        links={[\n          sampleLink(\"archive\", \"Read the archive\"),\n          sampleLink(\"principles\", \"What to expect\"),\n          sampleLink(\"privacy\", \"Privacy\"),\n        ]}\n        newsletterProps={{\n          noValidate: true,\n          onSubmit: handleSubmit,\n          status,\n          statusMessage: message,\n          emailLabel: \"Work email\",\n          emailDescription: \"Used only for this local component sample.\",\n          emailError,\n          emailRef,\n          emailInputProps: {\n            value: email,\n            placeholder: \"you@example.com\",\n            onChange: (event: import(\"react\").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n              setEmail(event.currentTarget.value);\n              setEmailError(undefined);\n              setStatus(\"idle\");\n              setMessage(undefined);\n            },\n          },\n          submitLabel: \"Validate sample email\",\n          consent:\n            \"This preview validates the field in your browser and does not send or store the address.\",\n        }}\n        legal=\"© 2026 TidalUI. Sample form only.\"\n      />\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <FooterNewsletterDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-newsletter.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
