{
  "component": {
    "id": "notification-stack",
    "name": "Notification stack",
    "tier": "pro",
    "exampleId": "notification-stack",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "NotificationDemo",
    "sha256": "de58abbc8e70e2b4ca0ddd86df5053d1a1d8d2468efdd078bc774e44c637df53",
    "helperImports": [],
    "directComponentImports": [
      "notification-stack",
      "tidal-button"
    ],
    "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/notification-stack",
    "registryUrl": "https://tidalui.com/r/pro/notification-stack.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/notification-stack",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/notification-stack",
      "registryUrl": "https://tidalui.com/r/pro/notification-stack.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/notification-stack.tsx",
    "exports": [
      "TidalButton",
      "TidalNotification",
      "TidalNotificationStack"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/notification-stack.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-toast",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "notification-stack",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/notification-stack.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/notification-stack.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState, useRef } from \"react\";\n\nimport { Plus } from \"lucide-react\";\n\nimport { TidalNotificationStack, type TidalNotification } from \"./components/ui/notification-stack\";\n\nimport \"./components/ui/notification-stack.css\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\n\n\nconst tidalExampleStyles = \".demo-footnote{font-size:11px;color:var(--t-muted);margin-top:12px}\\n\\n.notifications-specimen{width:100%;max-width:350px}.notifications-specimen>.tidal-button{display:flex;margin:17px auto 0;font-size:11px}.notifications-specimen>.demo-footnote{text-align:center;font-size:11px}\";\n\nexport function NotificationDemo() {\n  const [notifications, setNotifications] = useState<TidalNotification[]>([\n    {\n      id: \"welcome\",\n      title: \"Workspace ready\",\n      description: \"The sample workspace is ready.\",\n      tone: \"success\",\n    },\n    {\n      id: \"invite\",\n      title: \"Teammate invited\",\n      description: \"The sample teammate was added to the project.\",\n      tone: \"info\",\n    },\n  ]);\n  const count = useRef(0);\n  return (\n    <div className=\"notifications-specimen\">\n      <TidalNotificationStack\n        notifications={notifications}\n        onDismiss={(id) =>\n          setNotifications((items) => items.filter((item) => item.id !== id))\n        }\n      />\n      <TidalButton\n        variant=\"secondary\"\n        onClick={() => {\n          count.current += 1;\n          const id = \"new-\" + count.current;\n          const next: TidalNotification = {\n            id,\n            title: \"Changes saved\",\n            description: \"The local sample was updated.\",\n            tone: \"success\",\n          };\n          setNotifications((items) => [...items, next].slice(-3));\n        }}\n      >\n        <Plus size={14} aria-hidden=\"true\" />\n        Show a notification\n      </TidalButton>\n      <p className=\"demo-footnote\">\n        Dismiss one. Add another. Press F8 to focus.\n      </p>\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      <NotificationDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/notification-stack.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "notifications",
      "type": "inferred-from-existing-demo",
      "initial": "[\n    {\n      id: \"welcome\",\n      title: \"Workspace ready\",\n      description: \"The sample workspace is ready.\",\n      tone: \"success\",\n    },\n    {\n      id: \"invite\",\n      title: \"Teammate invited\",\n      description: \"The sample teammate was added to the project.\",\n      tone: \"info\",\n    },\n  ]",
      "setter": "setNotifications",
      "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."
    },
    {
      "name": "onDismiss",
      "nativeType": "component 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": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "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": []
}
