{
  "component": {
    "id": "uptime-history",
    "name": "Uptime history",
    "tier": "pro",
    "exampleId": "uptime-history",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/uptime-history-demo.tsx",
    "exportName": "UptimeHistoryDemo",
    "sha256": "73dea3840622adfe6c72cf1f73d487b27329434cf1ef42e1e355ce5c098c8dca",
    "helperImports": [],
    "directComponentImports": [
      "uptime-history"
    ],
    "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/uptime-history",
    "registryUrl": "https://tidalui.com/r/pro/uptime-history.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/uptime-history",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/uptime-history",
      "registryUrl": "https://tidalui.com/r/pro/uptime-history.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/uptime-history.tsx",
    "exports": [
      "TidalUptimeHistory",
      "TidalUptimePeriod"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/uptime-history.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "uptime-history"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/uptime-history.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/uptime-history.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/uptime-history-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useMemo, useState, type MouseEvent } from \"react\";\n\nimport { TidalUptimeHistory, type TidalUptimePeriod } from \"./components/ui/uptime-history\";\n\nimport \"./components/ui/uptime-history.css\";\n\n\n\nconst tidalExampleStyles = \".uptime-demo,\\n.uptime-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.uptime-demo {\\n  display: grid;\\n  width: min(100%, 720px);\\n  min-width: 0;\\n  gap: 12px;\\n}\\n\\n.uptime-demo-note {\\n  min-width: 0;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n\\n.uptime-demo-note summary {\\n  display: flex;\\n  min-height: 44px;\\n  align-items: center;\\n  padding: 8px 12px;\\n  font-size: 12px;\\n  font-weight: 720;\\n  cursor: pointer;\\n  overflow-wrap: anywhere;\\n}\\n\\n.uptime-demo-note summary:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.uptime-demo-note p,\\n.uptime-demo-boundary {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.uptime-demo-note p {\\n  padding: 0 12px 12px;\\n}\\n\\n.uptime-demo-boundary {\\n  text-align: center;\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .uptime-demo-note,\\n  .uptime-demo-note * {\\n    scroll-behavior: auto;\\n  }\\n}\";\n\nconst SAMPLE_PERIODS: readonly TidalUptimePeriod[] = [\n  {\n    id: \"oct-01\",\n    dateLabel: \"Oct 1\",\n    dateTime: \"2026-10-01\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-02\",\n    dateLabel: \"Oct 2\",\n    dateTime: \"2026-10-02\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-03\",\n    dateLabel: \"Oct 3\",\n    dateTime: \"2026-10-03\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-04\",\n    dateLabel: \"Oct 4\",\n    dateTime: \"2026-10-04\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-05\",\n    dateLabel: \"Oct 5\",\n    dateTime: \"2026-10-05\",\n    status: \"degraded\",\n    duration: \"1 h 12 m\",\n  },\n  {\n    id: \"oct-06\",\n    dateLabel: \"Oct 6\",\n    dateTime: \"2026-10-06\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-07\",\n    dateLabel: \"Oct 7\",\n    dateTime: \"2026-10-07\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-08\",\n    dateLabel: \"Oct 8\",\n    dateTime: \"2026-10-08\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-09\",\n    dateLabel: \"Oct 9\",\n    dateTime: \"2026-10-09\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-10\",\n    dateLabel: \"Oct 10\",\n    dateTime: \"2026-10-10\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-11\",\n    dateLabel: \"Oct 11\",\n    dateTime: \"2026-10-11\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-12\",\n    dateLabel: \"Oct 12\",\n    dateTime: \"2026-10-12\",\n    status: \"maintenance\",\n    duration: \"30 m\",\n    incident: {\n      label: \"Maintenance note\",\n      href: \"#sample-maintenance-note\",\n    },\n  },\n  {\n    id: \"oct-13\",\n    dateLabel: \"Oct 13\",\n    dateTime: \"2026-10-13\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n  {\n    id: \"oct-14\",\n    dateLabel: \"Oct 14\",\n    dateTime: \"2026-10-14\",\n    status: \"operational\",\n    duration: \"24 h\",\n  },\n];\n\nexport function UptimeHistoryDemo() {\n  const noteId = `sample-maintenance-note-${useId().replace(/:/g, \"\")}`;\n  const [noteOpen, setNoteOpen] = useState(false);\n  const periods = useMemo(\n    () =>\n      SAMPLE_PERIODS.map((period) =>\n        period.incident\n          ? {\n              ...period,\n              incident: {\n                ...period.incident,\n                href: `#${noteId}`,\n                anchorProps: {\n                  onClick: (event: MouseEvent<HTMLAnchorElement>) => {\n                    if (\n                      event.button !== 0 ||\n                      event.metaKey ||\n                      event.ctrlKey ||\n                      event.shiftKey ||\n                      event.altKey\n                    )\n                      return;\n                    setNoteOpen(true);\n                    const note =\n                      event.currentTarget.ownerDocument.getElementById(noteId);\n                    if (note instanceof HTMLDetailsElement) note.open = true;\n                  },\n                },\n              },\n            }\n          : period,\n      ),\n    [noteId],\n  );\n  const [activePeriodId, setActivePeriodId] = useState(\"oct-12\");\n\n  return (\n    <section className=\"uptime-demo\" aria-label=\"Uptime history sample\">\n      <TidalUptimeHistory\n        title=\"Availability history\"\n        description=\"Daily history for the sample workspace.\"\n        summary=\"12 operational · 1 degraded · 1 maintenance\"\n        periods={periods}\n        activePeriodId={activePeriodId}\n        onActivePeriodChange={setActivePeriodId}\n      />\n      <details\n        className=\"uptime-demo-note\"\n        id={noteId}\n        open={noteOpen}\n        onToggle={(event) => setNoteOpen(event.currentTarget.open)}\n      >\n        <summary>Maintenance note</summary>\n        <p>Planned sample cache update · 30 minutes.</p>\n      </details>\n      <p className=\"uptime-demo-boundary\">\n        Sample dates and durations. No monitoring or uptime calculation.\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      <UptimeHistoryDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/uptime-history.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "activePeriodId",
      "type": "inferred-from-existing-demo",
      "initial": "\"oct-12\"",
      "setter": "setActivePeriodId",
      "proposalCanBeRejected": false
    },
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setNoteOpen",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onActivePeriodChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onToggle",
      "nativeType": "component callback",
      "callerFirst": true,
      "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": "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": "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": []
}
