{
  "component": {
    "id": "account-menu-profile-card",
    "name": "Account menu + profile card",
    "tier": "pro",
    "exampleId": "account-menu-profile-card",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/account-menu-profile-card-demo.tsx",
    "exportName": "AccountMenuProfileCardDemo",
    "sha256": "8cb54165e06b95b24f33114b442a7e14d2140b9e553b15ec81f2e4ad8dcd703c",
    "helperImports": [],
    "directComponentImports": [
      "account-menu-profile-card"
    ],
    "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/account-menu-profile-card",
    "registryUrl": "https://tidalui.com/r/pro/account-menu-profile-card.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/account-menu-profile-card",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/account-menu-profile-card",
      "registryUrl": "https://tidalui.com/r/pro/account-menu-profile-card.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/account-menu-profile-card.tsx",
    "exports": [
      "TidalAccountMenuGroup",
      "TidalAccountMenuProfileCard"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/account-menu-profile-card.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-popover",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "account-menu-profile-card"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/account-menu-profile-card.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/account-menu-profile-card.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/account-menu-profile-card-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useId, useMemo, useRef, useState } from \"react\";\n\nimport { Accessibility, LayoutGrid, RotateCcw, Settings2, UserRound } from \"lucide-react\";\n\nimport { TidalAccountMenuProfileCard, type TidalAccountMenuGroup } from \"./components/ui/account-menu-profile-card\";\n\nimport \"./components/ui/account-menu-profile-card.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .account-profile-demo,\\n.tidal-scope .account-profile-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .account-profile-demo {\\n  display: grid;\\n  width: 100%;\\n  max-width: 1160px;\\n  min-width: 0;\\n  grid-template-columns: minmax(0, 1fr);\\n  overflow: hidden;\\n  border: 1px solid var(--t-border);\\n  border-radius: 22px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  box-shadow: 0 32px 70px -50px #0000008f;\\n  container: account-profile-demo / inline-size;\\n}\\n\\n.tidal-scope .account-profile-demo-kicker {\\n  display: block;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 690;\\n  letter-spacing: 0.11em;\\n  line-height: 1.4;\\n  text-transform: uppercase;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .account-profile-demo-stage {\\n  display: flex;\\n  min-width: 0;\\n  flex-direction: column;\\n  padding: 25px;\\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: 22px 22px;\\n}\\n\\n.tidal-scope .account-profile-demo-topbar {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 18px;\\n  padding: 13px 13px 13px 16px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .account-profile-demo-topbar > div:first-child {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .account-profile-demo-topbar p {\\n  max-width: 42ch;\\n  margin: 4px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .account-profile-demo-sheet {\\n  width: min(100%, 600px);\\n  min-width: 0;\\n  margin: auto;\\n  padding: 22px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  background: var(--t-surface);\\n  box-shadow: 0 20px 50px -42px #0000008f;\\n  transition:\\n    padding 320ms var(--t-ease-out),\\n    transform 320ms var(--t-ease-out);\\n}\\n\\n.tidal-scope\\n  .account-profile-demo[data-density=\\\"compact\\\"]\\n  .account-profile-demo-sheet {\\n  padding-block: 15px;\\n  transform: scale(0.985);\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 16px;\\n  padding-bottom: 17px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head h3 {\\n  margin: 6px 0 0;\\n  font-size: 20px;\\n  font-weight: 560;\\n  letter-spacing: -0.04em;\\n  line-height: 1.1;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head button {\\n  display: inline-flex;\\n  min-width: 44px;\\n  min-height: 44px;\\n  flex: none;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 8px;\\n  padding: 8px 12px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  cursor: pointer;\\n  transition:\\n    background 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head button:hover {\\n  background: var(--t-wash);\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .account-profile-demo-sheet-head button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .account-profile-demo-fields {\\n  display: grid;\\n  grid-template-columns: repeat(3, minmax(0, 1fr));\\n  min-width: 0;\\n  margin-top: 18px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  overflow: hidden;\\n}\\n\\n.tidal-scope .account-profile-demo-fields > div {\\n  min-width: 0;\\n  padding: 13px;\\n  background: var(--t-subtle);\\n  transition: padding 320ms var(--t-ease-out);\\n}\\n\\n.tidal-scope\\n  .account-profile-demo[data-density=\\\"compact\\\"]\\n  .account-profile-demo-fields\\n  > div {\\n  padding-block: 8px;\\n}\\n\\n.tidal-scope .account-profile-demo-fields > div + div {\\n  border-inline-start: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .account-profile-demo-fields span,\\n.tidal-scope .account-profile-demo-fields strong {\\n  display: block;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .account-profile-demo-fields span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .account-profile-demo-fields strong {\\n  margin-top: 5px;\\n  font-size: 11px;\\n  font-weight: 650;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .account-profile-demo-status {\\n  min-height: 34px;\\n  margin: 16px 0 0;\\n  padding-inline-start: 12px;\\n  border-inline-start: 2px solid var(--t-ink);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container account-profile-demo (max-width: 700px) {\\n  .tidal-scope .account-profile-demo {\\n    grid-template-columns: 1fr;\\n  }\\n\\n  .tidal-scope .account-profile-demo-stage {\\n    min-height: 480px;\\n  }\\n}\\n\\n@container account-profile-demo (max-width: 420px) {\\n  \\n  .tidal-scope .account-profile-demo-stage {\\n    padding: 14px;\\n  }\\n\\n  .tidal-scope .account-profile-demo-topbar {\\n    align-items: flex-start;\\n    padding: 10px;\\n  }\\n\\n  .tidal-scope .account-profile-demo-topbar > div:first-child {\\n    flex: 1;\\n  }\\n\\n  .tidal-scope .account-profile-demo-sheet {\\n    margin-top: 28px;\\n    padding: 15px;\\n  }\\n\\n  .tidal-scope .account-profile-demo-sheet-head {\\n    align-items: flex-start;\\n  }\\n\\n  .tidal-scope .account-profile-demo-sheet-head button {\\n    width: 44px;\\n    padding-inline: 0;\\n    font-size: 0;\\n  }\\n\\n  .tidal-scope .account-profile-demo-sheet-head button svg {\\n    width: 16px;\\n    height: 16px;\\n  }\\n\\n  .tidal-scope .account-profile-demo-fields {\\n    grid-template-columns: 1fr;\\n  }\\n\\n  .tidal-scope .account-profile-demo-fields > div + div {\\n    border-inline-start: 0;\\n    border-top: 1px solid var(--t-border);\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .account-profile-demo-sheet,\\n  .tidal-scope .account-profile-demo-fields > div,\\n  .tidal-scope .account-profile-demo-sheet-head button {\\n    transition-duration: 0.01ms;\\n  }\\n}\";\n\nexport function AccountMenuProfileCardDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const profileTargetId = `account-demo-${generatedId}-profile`;\n  const preferencesTargetId = `account-demo-${generatedId}-preferences`;\n  const accessibilityTargetId = `account-demo-${generatedId}-accessibility`;\n  const [menuOpen, setMenuOpen] = useState(false);\n  const [compact, setCompact] = useState(false);\n  const [message, setMessage] = useState(\n    \"Open the account menu to preview its links and actions.\",\n  );\n  const triggerRef = useRef<HTMLButtonElement>(null);\n\n  const groups = useMemo<readonly TidalAccountMenuGroup[]>(\n    () => [\n      {\n        id: \"account\",\n        label: \"Account\",\n        items: [\n          {\n            kind: \"link\",\n            id: \"profile\",\n            label: \"Profile details\",\n            description: \"Review name and contact details\",\n            href: `#${profileTargetId}`,\n            icon: <UserRound size={16} />,\n            linkProps: {\n              onClick: () =>\n                setMessage(\"Profile details target selected in this preview.\"),\n            },\n          },\n          {\n            kind: \"link\",\n            id: \"preferences\",\n            label: \"Preferences\",\n            description: \"Review workspace preferences\",\n            href: `#${preferencesTargetId}`,\n            icon: <Settings2 size={16} />,\n            badge: \"3 sections\",\n            linkProps: {\n              onClick: () =>\n                setMessage(\"Preferences target selected in this preview.\"),\n            },\n          },\n        ],\n      },\n      {\n        id: \"display\",\n        label: \"Display\",\n        items: [\n          {\n            kind: \"action\",\n            id: \"density\",\n            label: compact ? \"Use comfortable layout\" : \"Use compact layout\",\n            description: \"Adjust the workspace density\",\n            icon: <LayoutGrid size={16} />,\n            badge: compact ? \"Compact\" : \"Comfortable\",\n            closeOnSelect: false,\n            onAction: () => {\n              setCompact((current) => !current);\n              setMessage(\n                compact\n                  ? \"Comfortable sample layout restored.\"\n                  : \"Compact sample layout selected.\",\n              );\n            },\n          },\n          {\n            kind: \"link\",\n            id: \"accessibility\",\n            label: \"Accessibility settings\",\n            description: \"Review display preferences\",\n            href: `#${accessibilityTargetId}`,\n            icon: <Accessibility size={16} />,\n            linkProps: {\n              onClick: () =>\n                setMessage(\"Accessibility target selected in this preview.\"),\n            },\n          },\n        ],\n      },\n    ],\n    [accessibilityTargetId, compact, preferencesTargetId, profileTargetId],\n  );\n\n  function resetPreview() {\n    setCompact(false);\n    setMenuOpen(false);\n    setMessage(\"The local sample was reset. No account data changed.\");\n    triggerRef.current?.focus({ preventScroll: true });\n  }\n\n  return (\n    <section\n      className=\"account-profile-demo\"\n      data-density={compact ? \"compact\" : \"comfortable\"}\n      aria-label=\"Account menu and profile card preview\"\n    >\n      <div className=\"account-profile-demo-stage\">\n        <header className=\"account-profile-demo-topbar\">\n          <div>\n            <p>Workspace</p>\n          </div>\n          <TidalAccountMenuProfileCard\n            profile={{\n              name: \"Rowan Vale\",\n              email: \"rowan@example.test\",\n              detail: \"Sample workspace editor\",\n              initials: \"RV\",\n            }}\n            groups={groups}\n            open={menuOpen}\n            onOpenChange={setMenuOpen}\n            triggerRef={triggerRef}\n            footer={<span>Sample profile. Changes stay in this preview.</span>}\n          />\n        </header>\n\n        <div className=\"account-profile-demo-sheet\">\n          <div className=\"account-profile-demo-sheet-head\">\n            <div>\n              <span className=\"account-profile-demo-kicker\">PROFILE</span>\n              <h3 id={profileTargetId}>Account overview</h3>\n            </div>\n            <button type=\"button\" onClick={resetPreview}>\n              <RotateCcw size={15} aria-hidden=\"true\" />\n              Reset sample\n            </button>\n          </div>\n\n          <div className=\"account-profile-demo-fields\" id={preferencesTargetId}>\n            <div>\n              <span>Display name</span>\n              <strong>Rowan Vale</strong>\n            </div>\n            <div>\n              <span>Email</span>\n              <strong>rowan@example.test</strong>\n            </div>\n            <div id={accessibilityTargetId}>\n              <span>Layout density</span>\n              <strong>{compact ? \"Compact\" : \"Comfortable\"}</strong>\n            </div>\n          </div>\n\n          <p\n            className=\"account-profile-demo-status\"\n            role=\"status\"\n            aria-live=\"polite\"\n          >\n            {message}\n          </p>\n        </div>\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      <AccountMenuProfileCardDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/account-menu-profile-card.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": "setMenuOpen",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "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": false,
      "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": "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": "Verify focus returns to the invoking control after dismissal.",
    "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": []
}
