{
  "component": {
    "id": "footer-locale",
    "name": "Locale footer",
    "tier": "pro",
    "exampleId": "footer-locale",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-locale-demo.tsx",
    "exportName": "FooterLocaleDemo",
    "sha256": "740b703e6d353a25a497937f73facc5e6cb99638cf888c7a8d4544204fad0129",
    "helperImports": [],
    "directComponentImports": [
      "footer-locale"
    ],
    "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-locale",
    "registryUrl": "https://tidalui.com/r/pro/footer-locale.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-locale",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-locale",
      "registryUrl": "https://tidalui.com/r/pro/footer-locale.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-locale.tsx",
    "exports": [
      "TidalFooterLocale",
      "TidalFooterLocaleGroup",
      "TidalFooterLocaleLinkItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-locale.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "footer-locale"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-locale.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-locale.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/footer-pilot-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useMemo, useState, type MouseEvent } from \"react\";\n\nimport { TidalFooterLocale, type TidalFooterLocaleGroup, type TidalFooterLocaleLinkItem } from \"./components/ui/footer-locale\";\n\nimport \"./components/ui/footer-locale.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\ntype LocaleKey = \"en\" | \"es\" | \"de\";\n\nconst copy: Record<\n  LocaleKey,\n  {\n    brand: string;\n    title: string;\n    description: string;\n    groups: readonly { title: string; links: readonly string[] }[];\n    legal: string;\n  }\n> = {\n  en: {\n    brand: \"TidalUI\",\n    title: \"Build with TidalUI.\",\n    description: \"React components, blocks and templates.\",\n    groups: [\n      { title: \"Product\", links: [\"Components\", \"Templates\"] },\n      { title: \"Company\", links: [\"About\", \"Journal\"] },\n      { title: \"Help\", links: [\"Documentation\", \"Contact\"] },\n    ],\n    legal: \"© 2026 TidalUI. Sample localized copy only.\",\n  },\n  es: {\n    brand: \"TidalUI\",\n    title: \"Crea con TidalUI.\",\n    description: \"Componentes, bloques y plantillas de React.\",\n    groups: [\n      { title: \"Producto\", links: [\"Componentes\", \"Plantillas\"] },\n      { title: \"Empresa\", links: [\"Acerca de\", \"Diario\"] },\n      { title: \"Ayuda\", links: [\"Documentación\", \"Contacto\"] },\n    ],\n    legal: \"© 2026 TidalUI. Solo texto localizado de muestra.\",\n  },\n  de: {\n    brand: \"TidalUI\",\n    title: \"Entwickle mit TidalUI.\",\n    description: \"React-Komponenten, Blöcke und Vorlagen.\",\n    groups: [\n      { title: \"Produkt\", links: [\"Komponenten\", \"Vorlagen\"] },\n      { title: \"Unternehmen\", links: [\"Über uns\", \"Journal\"] },\n      { title: \"Hilfe\", links: [\"Dokumentation\", \"Kontakt\"] },\n    ],\n    legal: \"© 2026 TidalUI. Nur lokalisierter Beispieltext.\",\n  },\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 FooterLocaleDemo() {\n  const [locale, setLocale] = useState<LocaleKey>(\"en\");\n  const [region, setRegion] = useState(\"us\");\n  const [notice, setNotice] = useState(\n    \"English copy loaded. Choose a language or region.\",\n  );\n  const localized = copy[locale];\n\n  const groups = useMemo<readonly TidalFooterLocaleGroup[]>(\n    () =>\n      localized.groups.map((group, groupIndex) => ({\n        id: `${locale}-group-${groupIndex}`,\n        title: group.title,\n        links: group.links.map(\n          (label, linkIndex): TidalFooterLocaleLinkItem => ({\n            id: `${locale}-link-${groupIndex}-${linkIndex}`,\n            href: \"#footer-locale-demo\",\n            label,\n            onClick: (event: import(\"react\").MouseEvent<HTMLAnchorElement>) => {\n              if (!isPlainPrimary(event)) return;\n              event.preventDefault();\n              setNotice(\n                `${label} selected in ${locale.toUpperCase()} for ${region.toUpperCase()}. No navigation occurred.`,\n              );\n            },\n          }),\n        ),\n      })),\n    [locale, localized.groups, region],\n  );\n\n  return (\n    <div className=\"footer-pilot-demo\" id=\"footer-locale-demo\">\n      <TidalFooterLocale\n        brand={localized.brand}\n        title={localized.title}\n        description={localized.description}\n        groups={groups}\n        locale={{\n          value: locale,\n          options: [\n            { value: \"en\", label: \"English\" },\n            { value: \"es\", label: \"Español\" },\n            { value: \"de\", label: \"Deutsch\" },\n          ],\n          label: \"Language\",\n          onChange: (value) => {\n            const next = value as LocaleKey;\n            setLocale(next);\n            setNotice(\n              `${copy[next].brand} copy loaded for ${next.toUpperCase()}.`,\n            );\n          },\n        }}\n        region={{\n          value: region,\n          options: [\n            { value: \"us\", label: \"United States\" },\n            { value: \"eu\", label: \"Europe\" },\n            { value: \"jp\", label: \"Japan\" },\n          ],\n          label: \"Region\",\n          onChange: (value) => {\n            setRegion(value);\n            setNotice(\n              `Region changed to ${value.toUpperCase()}. Consumer callback received the selection.`,\n            );\n          },\n        }}\n        legal={localized.legal}\n        status={\n          <span role=\"status\" aria-live=\"polite\">\n            {notice}\n          </span>\n        }\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      <FooterLocaleDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-locale.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": "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": []
}
