{
  "component": {
    "id": "notification-center",
    "name": "Notification center",
    "tier": "pro",
    "exampleId": "notification-center",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/notification-center-demo.tsx",
    "exportName": "NotificationCenterDemo",
    "sha256": "8dec8698b2ff2c86f8db18bfc5187cd4dce1f695f5223f815cc66acec4023320",
    "helperImports": [],
    "directComponentImports": [
      "notification-center"
    ],
    "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-center",
    "registryUrl": "https://tidalui.com/r/pro/notification-center.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-center",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/notification-center",
      "registryUrl": "https://tidalui.com/r/pro/notification-center.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/notification-center.tsx",
    "exports": [
      "TidalNotificationCenter",
      "TidalNotificationFilterOption",
      "TidalNotificationRecord"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/notification-center.css",
      "components/ui/sheet-drawer.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [
      "@tidal-pro/sheet-drawer"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "notification-center",
      "sheet-drawer"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/notification-center.css",
      "components/ui/sheet-drawer.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/notification-center.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/notification-center-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useRef, useState } from \"react\";\n\nimport { CalendarDays, MessageCircle, ShieldCheck, Sparkles } from \"lucide-react\";\n\nimport { TidalNotificationCenter, type TidalNotificationFilterOption, type TidalNotificationRecord } from \"./components/ui/notification-center\";\n\nimport \"./components/ui/notification-center.css\";\n\nimport \"./components/ui/sheet-drawer.css\";\n\n\n\nconst tidalExampleStyles = \".notification-center-demo,\\n.notification-center-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .notification-center-demo {\\n  display: grid;\\n  width: 100%;\\n  max-width: 420px;\\n  justify-items: center;\\n  min-width: 0;\\n  gap: 12px;\\n}\\n\\n.notification-center-demo-detail {\\n  display: grid;\\n  min-width: 0;\\n  gap: 4px;\\n  padding: 14px 16px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-card);\\n  outline: 0;\\n  background: var(--t-subtle);\\n  color: var(--t-ink);\\n}\\n\\n.notification-center-demo-detail:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.notification-center-demo-detail > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 720;\\n  letter-spacing: 0.05em;\\n  line-height: 1.3;\\n  text-transform: uppercase;\\n}\\n\\n.notification-center-demo-detail > strong {\\n  font-size: 13px;\\n  line-height: 1.4;\\n  overflow-wrap: anywhere;\\n}\\n\\n.notification-center-demo-detail > p,\\n.notification-center-demo-note {\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n@media (forced-colors: active) {\\n  .notification-center-demo-detail {\\n    border-color: CanvasText;\\n  }\\n}\\n\\n.notification-center-demo-detail {\\n  width: 100%;\\n}\\n.notification-center-demo-detail[hidden] {\\n  display: none;\\n}\\n.notification-center-demo-note {\\n  text-align: center;\\n}\";\n\nconst FILTERS: readonly TidalNotificationFilterOption[] = [\n  { id: \"all\", label: \"All\", mode: \"all\" },\n  { id: \"unread\", label: \"Unread\", mode: \"unread\" },\n  { id: \"mentions\", label: \"Mentions\", mode: \"type\", type: \"mention\" },\n  { id: \"system\", label: \"System\", mode: \"type\", type: \"system\" },\n];\n\nconst INITIAL_NOTIFICATIONS: readonly TidalNotificationRecord[] = [\n  {\n    id: \"review-mention\",\n    accessibleLabel: \"Mina mentioned you in Launch review\",\n    title: \"Mina mentioned you in Launch review\",\n    description: \"The final checklist is ready for your notes.\",\n    type: \"mention\",\n    typeLabel: \"Mention\",\n    read: false,\n    timeLabel: \"8 minutes ago\",\n    dateTime: \"2026-10-14T18:42:00-05:00\",\n    leading: <MessageCircle />,\n    destination: {\n      href: \"#notification-center-detail\",\n      label: \"Open review detail\",\n    },\n  },\n  {\n    id: \"workspace-brief\",\n    accessibleLabel: \"Workspace brief is ready\",\n    title: \"Workspace brief is ready\",\n    description: \"The local sample brief now includes the revised milestones.\",\n    type: \"project\",\n    typeLabel: \"Project\",\n    read: false,\n    timeLabel: \"35 minutes ago\",\n    dateTime: \"2026-10-14T18:15:00-05:00\",\n    leading: <Sparkles />,\n    destination: {\n      href: \"#notification-center-detail\",\n      label: \"Review brief detail\",\n    },\n  },\n  {\n    id: \"calendar-window\",\n    accessibleLabel: \"Review window moved to Thursday\",\n    title: \"Review window moved to Thursday\",\n    description: \"The supplied schedule now shows a 2:30 PM review window.\",\n    type: \"schedule\",\n    typeLabel: \"Schedule\",\n    read: true,\n    timeLabel: \"Yesterday\",\n    dateTime: \"2026-10-13T15:10:00-05:00\",\n    leading: <CalendarDays />,\n    destination: {\n      href: \"#notification-center-detail\",\n      label: \"Open schedule detail\",\n    },\n  },\n  {\n    id: \"access-check\",\n    accessibleLabel: \"Access review completed\",\n    title: \"Access review completed\",\n    description:\n      \"The supplied workspace record reports no pending access changes.\",\n    type: \"system\",\n    typeLabel: \"System\",\n    read: false,\n    timeLabel: \"Monday\",\n    dateTime: \"2026-10-12T11:20:00-05:00\",\n    leading: <ShieldCheck />,\n    destination: {\n      href: \"#notification-center-detail\",\n      label: \"View access detail\",\n    },\n  },\n];\n\nexport function NotificationCenterDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const [notifications, setNotifications] = useState<TidalNotificationRecord[]>(\n    [...INITIAL_NOTIFICATIONS],\n  );\n  const [filter, setFilter] = useState(\"all\");\n  const [open, setOpen] = useState(false);\n  const [selectedId, setSelectedId] = useState<string | null>(null);\n  const detailId = `notification-center-detail-${useId().replace(/:/g, \"\")}`;\n  const detailRef = useRef<HTMLElement>(null);\n  const focusDetail = useRef(false);\n  const selected = notifications.find(\n    (notification) => notification.id === selectedId,\n  );\n\n  return (\n    <section\n      className=\"notification-center-demo\"\n      aria-label=\"Notification center sample\"\n    >\n      <TidalNotificationCenter\n        open={open}\n        onOpenChange={setOpen}\n        triggerLabel=\"Open notifications\"\n        title=\"Notifications\"\n        description=\"Persistent updates from this local workspace sample.\"\n        notifications={notifications.map((notification) => ({\n          ...notification,\n          destination: notification.destination\n            ? {\n                ...notification.destination,\n                href: `#${detailId}`,\n                linkProps: {\n                  onClick: (event: import(\"react\").MouseEvent<HTMLAnchorElement>) => {\n                    if (\n                      event.button !== 0 ||\n                      event.metaKey ||\n                      event.ctrlKey ||\n                      event.shiftKey ||\n                      event.altKey\n                    )\n                      return;\n                    event.preventDefault();\n                    focusDetail.current = true;\n                    setSelectedId(notification.id);\n                    setOpen(false);\n                  },\n                },\n              }\n            : undefined,\n        }))}\n        filters={FILTERS}\n        filterValue={filter}\n        onFilterChange={setFilter}\n        onReadChange={(notification, read) =>\n          setNotifications((current) =>\n            current.map((candidate) =>\n              candidate.id === notification.id\n                ? { ...candidate, read }\n                : candidate,\n            ),\n          )\n        }\n        onMarkAllRead={(ids) => {\n          const selectedIds = new Set(ids);\n          setNotifications((current) =>\n            current.map((notification) =>\n              selectedIds.has(notification.id)\n                ? { ...notification, read: true }\n                : notification,\n            ),\n          );\n        }}\n        sheetProps={{\n          theme,\n          onCloseAutoFocus: (event) => {\n            if (!focusDetail.current) return;\n            event.preventDefault();\n            focusDetail.current = false;\n            detailRef.current?.focus({ preventScroll: true });\n          },\n        }}\n      />\n\n      <section\n        className=\"notification-center-demo-detail\"\n        hidden={!selected}\n        id={detailId}\n        ref={detailRef}\n        tabIndex={-1}\n        aria-label=\"Selected notification detail\"\n      >\n        {selected ? (\n          <>\n            <span>{selected.typeLabel}</span>\n            <strong>{selected.title}</strong>\n            <p>{selected.description}</p>\n          </>\n        ) : (\n          <p>Open a notification to inspect its local sample detail.</p>\n        )}\n      </section>\n\n      <p className=\"notification-center-demo-note\">\n        Local sample records. Changes are not stored or sent.\n      </p>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <NotificationCenterDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/notification-center.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setOpen",
      "proposalCanBeRejected": false
    },
    {
      "prop": "filterValue",
      "type": "inferred-from-existing-demo",
      "initial": "\"all\"",
      "setter": "setFilter",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onFilterChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onMarkAllRead",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOpenChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onReadChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "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": "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": "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": []
}
