{
  "component": {
    "id": "footer-feedback",
    "name": "Feedback footer",
    "tier": "pro",
    "exampleId": "footer-feedback",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-feedback-demo.tsx",
    "exportName": "FooterFeedbackDemo",
    "sha256": "28af0481cffb878e9113995df52f67d3b51ab48d33f8a5d2bcfc825ff50b3f30",
    "helperImports": [],
    "directComponentImports": [
      "footer-feedback",
      "response-feedback"
    ],
    "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-feedback",
    "registryUrl": "https://tidalui.com/r/pro/footer-feedback.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-feedback",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-feedback",
      "registryUrl": "https://tidalui.com/r/pro/footer-feedback.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-feedback.tsx",
    "exports": [
      "TidalFeedbackChoice",
      "TidalFeedbackReason",
      "TidalFooterFeedback",
      "TidalFooterFeedbackNavGroup"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-feedback.css",
      "components/ui/response-feedback.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/response-feedback"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "footer-feedback",
      "response-feedback"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-feedback.css",
      "components/ui/response-feedback.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-feedback.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/footer-feedback-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState, type FormEvent, type MouseEvent } from \"react\";\n\nimport { TidalFooterFeedback, type TidalFooterFeedbackNavGroup } from \"./components/ui/footer-feedback\";\n\nimport type { TidalFeedbackChoice, TidalFeedbackReason } from \"./components/ui/response-feedback\";\n\nimport \"./components/ui/response-feedback.css\";\n\nimport \"./components/ui/footer-feedback.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .footer-pilot-05-demo,\\n.tidal-scope .footer-pilot-05-demo-shell {\\n  min-inline-size: 0;\\n  inline-size: 100%;\\n}\";\n\nconst reasons: readonly TidalFeedbackReason[] = [\n  { id: \"unclear\", label: \"The explanation was unclear\" },\n  { id: \"missing\", label: \"A step was missing\" },\n  { id: \"example\", label: \"I needed another example\" },\n];\n\nconst navigationGroups: readonly TidalFooterFeedbackNavGroup[] = [\n  {\n    id: \"docs\",\n    label: \"Docs\",\n    links: [\n      { id: \"components\", label: \"Components\", href: \"#preview-components\" },\n      { id: \"guides\", label: \"Guides\", href: \"#preview-guides\" },\n      { id: \"api\", label: \"API reference\", href: \"#preview-api\" },\n    ],\n  },\n  {\n    id: \"help\",\n    label: \"Help\",\n    links: [\n      {\n        id: \"accessibility\",\n        label: \"Accessibility\",\n        href: \"#preview-accessibility\",\n      },\n      { id: \"support\", label: \"Support\", href: \"#preview-support\" },\n    ],\n  },\n];\n\nfunction handlePreviewClick(\n  label: string,\n  setStatus: (status: string) => void,\n) {\n  return (event: MouseEvent<HTMLAnchorElement>) => {\n    if (\n      event.defaultPrevented ||\n      event.button !== 0 ||\n      event.metaKey ||\n      event.ctrlKey ||\n      event.shiftKey ||\n      event.altKey ||\n      event.currentTarget.target\n    ) {\n      return;\n    }\n    event.preventDefault();\n    setStatus(`${label} selected in this local preview.`);\n  };\n}\n\nexport function FooterFeedbackDemo() {\n  const [choice, setChoice] = useState<TidalFeedbackChoice | null>(null);\n  const [selectedReasons, setSelectedReasons] = useState<readonly string[]>([]);\n  const [comment, setComment] = useState(\"\");\n  const [completed, setCompleted] = useState(false);\n  const [lastChoice, setLastChoice] = useState(\"No preview feedback selected.\");\n  const previewNavigationGroups = navigationGroups.map((group) => ({\n    ...group,\n    links: group.links.map((link) => ({\n      ...link,\n      onClick: handlePreviewClick(String(link.label), setLastChoice),\n    })),\n  }));\n\n  function handleChoice(\n    next: TidalFeedbackChoice,\n    _event: MouseEvent<HTMLButtonElement>,\n  ) {\n    setChoice(next);\n    setLastChoice(\n      next === \"helpful\"\n        ? \"Helpful selected in local preview.\"\n        : \"Not helpful selected in local preview.\",\n    );\n  }\n\n  function handleSubmit(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    setCompleted(true);\n    setLastChoice(\"Local preview complete. No feedback was sent or stored.\");\n  }\n\n  return (\n    <div className=\"footer-pilot-05-demo\">\n      <div className=\"footer-pilot-05-demo-shell\">\n        <TidalFooterFeedback\n          aria-label=\"Feedback footer example\"\n          brand={\n            <a\n              href=\"#preview-home\"\n              onClick={handlePreviewClick(\"Home\", setLastChoice)}\n            >\n              TidalUI\n            </a>\n          }\n          heading=\"Was this page useful?\"\n          feedbackTitle=\"Page feedback\"\n          description=\"Help us improve this guide.\"\n          completionMessage=\"Thanks for checking this page. This preview did not send or store a response.\"\n          completed={completed}\n          feedback={{\n            choice,\n            onChoiceChange: handleChoice,\n            reasons,\n            selectedReasons,\n            onReasonsChange: setSelectedReasons,\n            comment,\n            onCommentChange: setComment,\n            onSubmit: handleSubmit,\n            labels: { submit: \"Complete preview\" },\n          }}\n          navigationGroups={previewNavigationGroups}\n          legal={<span>© 2026 TidalUI preview</span>}\n          status={<span role=\"status\">{lastChoice}</span>}\n        />\n      </div>\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      <FooterFeedbackDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-feedback.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "completed",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setCompleted",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": false,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "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": "Existing demo label or ARIA prop",
    "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": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "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": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "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": []
}
