{
  "component": {
    "id": "onboarding-checklist",
    "name": "Onboarding checklist",
    "tier": "pro",
    "exampleId": "onboarding-checklist",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/onboarding-checklist-demo.tsx",
    "exportName": "OnboardingChecklistDemo",
    "sha256": "93cdf240d0f08bc5322e1d8ae57cbb38cd01a03f21d7a05edd5563614f64223d",
    "helperImports": [],
    "directComponentImports": [
      "onboarding-checklist"
    ],
    "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/onboarding-checklist",
    "registryUrl": "https://tidalui.com/r/pro/onboarding-checklist.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/onboarding-checklist",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/onboarding-checklist",
      "registryUrl": "https://tidalui.com/r/pro/onboarding-checklist.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/onboarding-checklist.tsx",
    "exports": [
      "TidalOnboardingChecklist",
      "TidalOnboardingChecklistStep"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/onboarding-checklist.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "onboarding-checklist"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/onboarding-checklist.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/onboarding-checklist.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/onboarding-checklist-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useLayoutEffect, useMemo, useRef, useState } from \"react\";\n\nimport { RotateCcw } from \"lucide-react\";\n\nimport { TidalOnboardingChecklist, type TidalOnboardingChecklistStep } from \"./components/ui/onboarding-checklist\";\n\nimport \"./components/ui/onboarding-checklist.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .onboarding-checklist-demo,\\n.tidal-scope .onboarding-checklist-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .onboarding-checklist-demo {\\n  width: 100%;\\n  max-width: 1060px;\\n  min-width: 0;\\n  padding: clamp(12px, 3vw, 34px);\\n  color: var(--t-ink);\\n  background:\\n    linear-gradient(var(--t-border) 1px, transparent 1px),\\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\\n    var(--t-subtle);\\n  background-size: 28px 28px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  container: onboarding-demo / inline-size;\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-layout,\\n.tidal-scope .onboarding-checklist-demo-layout > .tidal-onboarding-checklist {\\n  max-width: none;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 14px;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-footer > span {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-footer > button {\\n  gap: 7px;\\n  flex: none;\\n  padding: 9px 11px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  font: inherit;\\n  font-size: 11px;\\n  cursor: pointer;\\n  transition:\\n    background 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-footer > button:hover {\\n  background: var(--t-wash);\\n}\\n\\n.tidal-scope .onboarding-checklist-demo-footer > button:active {\\n  transform: scale(0.98);\\n}\\n\\n@container onboarding-demo (max-width: 520px) {\\n\\n  .tidal-scope .onboarding-checklist-demo-footer {\\n    align-items: flex-start;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .onboarding-checklist-demo-footer > button {\\n    width: 100%;\\n  }\\n}\\n\\n@media (max-width: 390px) {\\n  .tidal-scope .onboarding-checklist-demo {\\n    padding: 8px;\\n    background-size: 20px 20px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .onboarding-checklist-demo-footer > button {\\n    transition: none;\\n    transform: none;\\n  }\\n}\";\n\nconst STEP_ORDER = [\"name\", \"review\", \"board\", \"invite\"] as const;\n\nconst LOCAL_RESULTS: Record<(typeof STEP_ORDER)[number], string> = {\n  name: \"The sample workspace name is prepared locally. Nothing was saved.\",\n  review: \"A weekly review rhythm is selected for this preview only.\",\n  board: \"A sample planning board is now visible in local state.\",\n  invite:\n    \"The invite note is previewed locally. No message or account was created.\",\n};\n\nexport function OnboardingChecklistDemo() {\n  const [completed, setCompleted] = useState<Set<string>>(\n    () => new Set([\"name\"]),\n  );\n  const [expandedStepId, setExpandedStepId] = useState<string | null>(\"review\");\n  const [notice, setNotice] = useState(\n    \"One sample step is ready. Changes stay in this preview.\",\n  );\n  const nameActionRef = useRef<HTMLButtonElement>(null);\n  const reviewActionRef = useRef<HTMLButtonElement>(null);\n  const boardActionRef = useRef<HTMLButtonElement>(null);\n  const inviteActionRef = useRef<HTMLButtonElement>(null);\n  const resetButtonRef = useRef<HTMLButtonElement>(null);\n  const pendingFocusRef = useRef<(typeof STEP_ORDER)[number] | \"reset\" | null>(\n    null,\n  );\n\n  useLayoutEffect(() => {\n    const pendingFocus = pendingFocusRef.current;\n    if (!pendingFocus) return;\n    const target =\n      pendingFocus === \"reset\"\n        ? resetButtonRef.current\n        : {\n            name: nameActionRef.current,\n            review: reviewActionRef.current,\n            board: boardActionRef.current,\n            invite: inviteActionRef.current,\n          }[pendingFocus];\n    target?.focus({ preventScroll: true });\n    pendingFocusRef.current = null;\n  }, [completed]);\n\n  const currentStepId = STEP_ORDER.find(\n    (id) => id !== \"invite\" && !completed.has(id),\n  );\n  const steps = useMemo<readonly TidalOnboardingChecklistStep[]>(\n    () => [\n      {\n        id: \"name\",\n        title: \"Name the workspace\",\n        description: \"Use a clear label for the local setup preview.\",\n        details: (\n          <p>\n            Sample value: <strong>Northstar workspace</strong>. It exists only\n            in this rendered demo.\n          </p>\n        ),\n        completed: completed.has(\"name\"),\n        actionLabel: completed.has(\"name\") ? \"Complete\" : \"Use sample name\",\n        actionButtonProps: { disabled: completed.has(\"name\") },\n        actionRef: nameActionRef,\n      },\n      {\n        id: \"review\",\n        title: \"Choose a review rhythm\",\n        description: \"Set a simple cadence for checking the sample workspace.\",\n        details: (\n          <p>\n            Weekly review is the local sample choice. No calendar event or\n            reminder is created.\n          </p>\n        ),\n        completed: completed.has(\"review\"),\n        actionLabel: completed.has(\"review\") ? \"Complete\" : \"Choose weekly\",\n        actionButtonProps: { disabled: completed.has(\"review\") },\n        actionRef: reviewActionRef,\n      },\n      {\n        id: \"board\",\n        title: \"Add a planning board\",\n        description: \"Prepare one local board for priorities and open work.\",\n        details: (\n          <p>\n            The board contains three fictional columns: Planned, In progress,\n            and Ready for review.\n          </p>\n        ),\n        completed: completed.has(\"board\"),\n        actionLabel: completed.has(\"board\") ? \"Complete\" : \"Add sample board\",\n        actionButtonProps: { disabled: completed.has(\"board\") },\n        actionRef: boardActionRef,\n      },\n      {\n        id: \"invite\",\n        title: \"Preview an invite note\",\n        description: \"Review wording without contacting anyone.\",\n        details: (\n          <p>\n            The preview names a fictional teammate and never sends, stores, or\n            logs the message.\n          </p>\n        ),\n        optional: true,\n        completed: completed.has(\"invite\"),\n        actionLabel: completed.has(\"invite\") ? \"Complete\" : \"Preview note\",\n        actionButtonProps: { disabled: completed.has(\"invite\") },\n        actionRef: inviteActionRef,\n      },\n    ],\n    [completed],\n  );\n\n  function completeStep(step: TidalOnboardingChecklistStep) {\n    if (step.completed) return;\n    const nextCompleted = new Set(completed).add(step.id);\n    setCompleted(nextCompleted);\n    const nextStep = STEP_ORDER.find((id) => !nextCompleted.has(id));\n    pendingFocusRef.current = nextStep ?? \"reset\";\n    setExpandedStepId(nextStep ?? null);\n    setNotice(\n      LOCAL_RESULTS[step.id as (typeof STEP_ORDER)[number]] ??\n        \"The sample step changed locally.\",\n    );\n  }\n\n  function resetPreview() {\n    pendingFocusRef.current = \"review\";\n    setCompleted(new Set([\"name\"]));\n    setExpandedStepId(\"review\");\n    setNotice(\"Local setup reset. No account or saved workspace was changed.\");\n  }\n\n  return (\n    <section className=\"onboarding-checklist-demo\">\n      <div className=\"onboarding-checklist-demo-layout\">\n        <TidalOnboardingChecklist\n          title=\"Prepare a useful workspace.\"\n          description=\"Four concrete setup steps with progress owned entirely by this local preview.\"\n          steps={steps}\n          currentStepId={currentStepId}\n          expandedStepId={expandedStepId}\n          onExpandedStepChange={setExpandedStepId}\n          onStepAction={completeStep}\n          footer={\n            <div className=\"onboarding-checklist-demo-footer\">\n              <span role=\"status\" aria-live=\"polite\">\n                {notice}\n              </span>\n              <button ref={resetButtonRef} type=\"button\" onClick={resetPreview}>\n                <RotateCcw size={14} aria-hidden=\"true\" />\n                Reset local setup\n              </button>\n            </div>\n          }\n        />\n      </div>\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      <OnboardingChecklistDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/onboarding-checklist.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "expandedStepId",
      "type": "inferred-from-existing-demo",
      "initial": "\"review\"",
      "setter": "setExpandedStepId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onExpandedStepChange",
      "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": "onStepAction",
      "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": 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": "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": []
}
