{"$schema":"aisquare-ui/agent-index@1","generatedFrom":{"package":"@aisquare/ui","version":"1.27.1"},"entryPoints":[".","./stock","./console","./console.css","./chat","./icons","./tailwind.preset","./tailwind.tokens.preset","./tokens/tokens.template.css","./tokens/foundations.css","./tokens/fonts.css","./tokens/shadcn-extras.css","./themes/v2.css","./themes/v2.shape.css","./themes/fe.css","./themes/fe.shape.css","./onyx-hex.css","./package.json","./mcp/server.mjs","./mcp/registry.json","./skills/aisquare-ui/SKILL.md"],"versions":["v0.1.0","v0.2.0","v1.1.0","v1.2.0","v1.3.0","v1.4.0","v1.5.0","v1.6.0","v1.7.0","v1.8.0","v1.11.0","v1.12.0","v1.16.0","v1.20.0"],"latestVersion":"v1.20.0","categoriesByLayer":{"stock":["Feedback","Forms","Layout & Data","Navigation","Overlays"],"primitive":["Collaboration","Foundations","Layout","Material","Navigation","Primitives","Review & diff","Surfaces"],"component":["AI","Auth","Cards","Chat blocks","Chat surface","Feedback","Forms","Inputs","Motion & Effects","Navigation","Onboarding","Review & diff","Status","Utilities"]},"layers":{"stock":{"dir":"src/ui/","importPath":"@aisquare/ui/stock","blurb":"Byte-for-byte shadcn/ui v4 primitives, re-themed by tokens only. Re-imported by script — never hand-edited."},"primitive":{"dir":"src/primitives/","importPath":"@aisquare/ui","blurb":"Brand-flavored wrappers of shadcn primitives: same API surface plus AISquare styling, motion, and defaults."},"component":{"dir":"src/components/","importPath":"@aisquare/ui","blurb":"Composed, AISquare-original patterns — the Aiko surface system, chat blocks, entity cards, higher-level flows."},"hook":{"dir":"src/hooks/","importPath":"@aisquare/ui","blurb":"SSR-safe React hooks."},"util":{"dir":"src/lib/","importPath":"@aisquare/ui","blurb":"Utilities: cn, motion presets, onyx material helpers, color math."},"icon":{"dir":"src/icons/","importPath":"@aisquare/ui/icons","blurb":"Brand icons."}},"tokens":{"semantic":{"light":{"--radius":{"value":"12px","note":null},"--background":{"value":"0 0% 100%","note":null},"--foreground":{"value":"213 80% 13%","note":"#071E3C"},"--card":{"value":"0 0% 100%","note":null},"--card-foreground":{"value":"213 80% 13%","note":null},"--popover":{"value":"0 0% 100%","note":null},"--popover-foreground":{"value":"213 80% 13%","note":null},"--primary":{"value":"213 80% 13%","note":"= navy-900 — brand navy #071E3C"},"--primary-foreground":{"value":"0 0% 100%","note":null},"--secondary":{"value":"210 40% 96%","note":null},"--secondary-foreground":{"value":"213 80% 13%","note":null},"--muted":{"value":"210 40% 96%","note":"≈ slate-100"},"--muted-foreground":{"value":"215 16% 47%","note":"≈ slate-500"},"--accent":{"value":"213 100% 56%","note":"= accent-500 — brand blue #1F84FF"},"--accent-foreground":{"value":"0 0% 100%","note":null},"--destructive":{"value":"0 84% 60%","note":"≈ red-500"},"--destructive-foreground":{"value":"0 0% 100%","note":null},"--success":{"value":"142 71% 45%","note":"≈ green-500 — accessible on light bg"},"--success-foreground":{"value":"0 0% 100%","note":null},"--warning":{"value":"38 92% 50%","note":"≈ amber-500 — warm"},"--warning-foreground":{"value":"38 75% 12%","note":null},"--info":{"value":"199 89% 48%","note":"≈ sky-500 — distinct from --accent"},"--info-foreground":{"value":"0 0% 100%","note":null},"--premium":{"value":"38 92% 50%","note":"≈ amber-500 — warm gold for paid-tier badges"},"--premium-foreground":{"value":"38 25% 12%","note":null},"--border":{"value":"214 32% 91%","note":"≈ slate-200"},"--input":{"value":"214 32% 91%","note":"≈ slate-200"},"--ring":{"value":"213 80% 13%","note":"= navy-900"},"--shadow-glow-sm":{"value":"0 4px 12px hsl(var(--accent) / 0.15)","note":null},"--shadow-glow":{"value":"0 8px 24px hsl(var(--accent) / 0.20)","note":null},"--shadow-glow-lg":{"value":"0 12px 36px hsl(var(--accent) / 0.28)","note":null},"--shadow-glow-xl":{"value":"0 20px 60px hsl(var(--accent) / 0.36)","note":null},"--shadow-pop":{"value":"0 30px 60px rgba(10, 37, 64, 0.18)","note":null},"--hairline":{"value":"#e1e7ef","note":null},"--hairline-strong":{"value":"#c7cfdb","note":null},"--mesh-1":{"value":"var(--accent)","note":null},"--mesh-2":{"value":"var(--primary)","note":null},"--mesh-3":{"value":"var(--accent)","note":null},"--mood-field-1":{"value":"hsl(var(--accent) / 0.07)","note":null},"--mood-field-2":{"value":"hsl(var(--primary) / 0.045)","note":null},"--mood-glow":{"value":"hsl(var(--accent) / 0.5)","note":null},"--mood-stage-bg":{"value":"213 80% 13%","note":"fixed dark ink mat — dark in both modes"},"--mood-stage-glow":{"value":"hsl(var(--accent) / 0.4)","note":null},"--surface-glass-bg":{"value":"var(--background)","note":null},"--surface-glass-alpha":{"value":"0.6","note":"used inside hsl(var(--surface-glass-bg) / var(--surface-glass-alpha))"},"--surface-glass-border":{"value":"var(--border)","note":null},"--surface-glass-blur":{"value":"12px","note":null},"--aiko-paper":{"value":"30 25% 98.5%","note":"near-white with a barely-there warm tint"},"--aiko-spark":{"value":"76 55% 70%","note":"Whisper · silent presence (pastel sage)"},"--aiko-warm":{"value":"33 70% 72%","note":"Nudge · soft suggestion (pastel amber)"},"--aiko-hot":{"value":"9 68% 70%","note":"Intervene · active help (pastel coral)"},"--ins":{"value":"152 55% 36%","note":"insertion green — solid"},"--ins-bg":{"value":"152 60% 92%","note":"insertion soft fill"},"--del":{"value":"355 65% 45%","note":"deletion red — solid"},"--del-bg":{"value":"355 70% 95%","note":"deletion soft fill"},"--font-display":{"value":"var(--font-sans)","note":null}},"dark":{"--background":{"value":"213 80% 6%","note":null},"--foreground":{"value":"0 0% 100%","note":null},"--card":{"value":"213 80% 9%","note":null},"--card-foreground":{"value":"0 0% 100%","note":null},"--popover":{"value":"213 80% 9%","note":null},"--popover-foreground":{"value":"0 0% 100%","note":null},"--primary":{"value":"0 0% 100%","note":null},"--primary-foreground":{"value":"213 80% 13%","note":null},"--secondary":{"value":"213 50% 15%","note":null},"--secondary-foreground":{"value":"0 0% 100%","note":null},"--muted":{"value":"213 50% 15%","note":null},"--muted-foreground":{"value":"215 16% 70%","note":null},"--accent":{"value":"213 100% 56%","note":null},"--accent-foreground":{"value":"0 0% 100%","note":null},"--destructive":{"value":"0 70% 50%","note":"≈ red-600"},"--destructive-foreground":{"value":"0 0% 100%","note":null},"--success":{"value":"142 60% 55%","note":"≈ between green-400/500"},"--success-foreground":{"value":"0 0% 100%","note":null},"--warning":{"value":"38 80% 60%","note":"≈ amber-400"},"--warning-foreground":{"value":"38 25% 8%","note":null},"--info":{"value":"199 80% 58%","note":"≈ between sky-400/500"},"--info-foreground":{"value":"0 0% 100%","note":null},"--premium":{"value":"38 80% 62%","note":"≈ amber-400"},"--premium-foreground":{"value":"38 25% 8%","note":null},"--border":{"value":"213 50% 18%","note":null},"--input":{"value":"213 50% 18%","note":null},"--ring":{"value":"213 100% 56%","note":null},"--shadow-glow-sm":{"value":"0 4px 12px hsl(var(--accent) / 0.22)","note":null},"--shadow-glow":{"value":"0 8px 24px hsl(var(--accent) / 0.30)","note":null},"--shadow-glow-lg":{"value":"0 12px 36px hsl(var(--accent) / 0.40)","note":null},"--shadow-glow-xl":{"value":"0 20px 60px hsl(var(--accent) / 0.50)","note":null},"--shadow-pop":{"value":"0 30px 60px rgba(0, 0, 0, 0.55)","note":null},"--hairline":{"value":"rgba(255, 255, 255, 0.1)","note":null},"--hairline-strong":{"value":"rgba(255, 255, 255, 0.16)","note":null},"--mesh-1":{"value":"var(--accent)","note":null},"--mesh-2":{"value":"var(--primary)","note":null},"--mesh-3":{"value":"var(--accent)","note":null},"--mood-field-1":{"value":"hsl(var(--accent) / 0.10)","note":null},"--mood-field-2":{"value":"hsl(var(--primary) / 0.07)","note":null},"--mood-glow":{"value":"hsl(var(--accent) / 0.55)","note":null},"--mood-stage-bg":{"value":"213 80% 13%","note":"unchanged — fixed dark in both modes"},"--mood-stage-glow":{"value":"hsl(var(--accent) / 0.45)","note":null},"--surface-glass-bg":{"value":"var(--card)","note":null},"--surface-glass-alpha":{"value":"0.55","note":null},"--surface-glass-border":{"value":"var(--border)","note":null},"--aiko-paper":{"value":"218 22% 13%","note":"lifted dark with a cool-blue hint"},"--aiko-spark":{"value":"76 45% 60%","note":"Whisper — desaturated sage in dark"},"--aiko-warm":{"value":"33 60% 64%","note":"Nudge — desaturated amber in dark"},"--aiko-hot":{"value":"9 60% 62%","note":"Intervene — desaturated coral in dark"},"--surface-glass-blur":{"value":"14px","note":null},"--ins":{"value":"152 60% 55%","note":null},"--ins-bg":{"value":"152 50% 18%","note":null},"--del":{"value":"355 70% 62%","note":null},"--del-bg":{"value":"355 50% 22%","note":null},"--font-display":{"value":"var(--font-sans)","note":null}}},"foundations":{"COLOR_RAMPS":{"navy":{"50":"213 45% 96%","100":"213 42% 91%","200":"213 38% 83%","300":"213 34% 71%","400":"214 28% 56%","500":"214 30% 42%","600":"214 40% 32%","700":"213 55% 24%","800":"213 68% 18%","900":"213 80% 13%","950":"214 85% 8%"},"accent":{"50":"213 100% 97%","100":"213 100% 93%","200":"213 100% 87%","300":"213 100% 78%","400":"213 100% 67%","500":"213 100% 56%","600":"213 90% 48%","700":"213 85% 40%","800":"213 80% 32%","900":"213 78% 24%","950":"213 80% 16%"},"slate":{"50":"210 40% 98%","100":"210 40% 96.1%","200":"214 31.8% 91.4%","300":"213 26.8% 83.9%","400":"215 20.2% 65.1%","500":"215 16.3% 46.9%","600":"215 19.3% 34.5%","700":"215 25% 26.7%","800":"217 32.6% 17.5%","900":"222 47.4% 11.2%","950":"229 84% 4.9%"},"red":{"50":"0 85.7% 97.3%","100":"0 93.3% 94.1%","200":"0 96.3% 89.4%","300":"0 93.5% 81.8%","400":"0 90.6% 70.8%","500":"0 84.2% 60.2%","600":"0 72.2% 50.6%","700":"0 73.7% 41.8%","800":"0 70% 35.3%","900":"0 62.8% 30.6%","950":"0 74.7% 15.5%"},"green":{"50":"138 76.5% 96.7%","100":"141 84.2% 92.5%","200":"141 78.9% 85.1%","300":"142 76.6% 73.1%","400":"142 69.2% 58%","500":"142 70.6% 45.3%","600":"142 76.2% 36.3%","700":"142 71.8% 29.2%","800":"143 64.2% 24.1%","900":"144 61.2% 20.2%","950":"145 80.4% 10%"},"amber":{"50":"48 100% 96.1%","100":"48 96.5% 88.8%","200":"48 96.6% 76.7%","300":"46 96.7% 64.5%","400":"43 96.4% 56.3%","500":"38 92.1% 50.2%","600":"32 94.6% 43.7%","700":"26 90.5% 37.1%","800":"23 82.5% 31.4%","900":"22 77.8% 26.5%","950":"21 91.7% 14.1%"},"sky":{"50":"204 100% 97.1%","100":"204 93.8% 93.7%","200":"201 94.4% 86.1%","300":"199 95.5% 73.9%","400":"198 93.2% 59.6%","500":"199 88.7% 48.4%","600":"200 98% 39.4%","700":"201 96.3% 32.2%","800":"201 90% 27.5%","900":"202 80.3% 23.9%","950":"204 80.2% 15.9%"}},"SPACE":{"0":"0px","1":"4px","2":"8px","3":"12px","4":"16px","5":"20px","6":"24px","8":"32px","10":"40px","12":"48px","16":"64px","20":"80px","24":"96px"},"RADIUS":{"0":"0px","1":"4px","2":"8px","3":"12px","4":"16px","5":"20px","6":"24px","full":"9999px"},"MOTION_DURATIONS":{"fast":"120ms","base":"180ms","moderate":"240ms","slow":"320ms","slower":"480ms"},"MOTION_EASINGS":{"smooth-out":"cubic-bezier(0.16, 1, 0.3, 1)","snappy":"cubic-bezier(0.4, 0, 0.2, 1)","anticipate":"cubic-bezier(0.7, -0.2, 0.4, 1.3)","out-soft":"cubic-bezier(0.22, 1, 0.36, 1)"},"GRID":{"columns":"12","gutter":"24px","margin":"32px","content-max":"1280px"},"ELEVATION_LIGHT":{"1":"0 1px 3px rgba(10, 37, 64, 0.1)","2":"0 2px 4px rgba(10, 37, 64, 0.1), 0 10px 22px rgba(10, 37, 64, 0.13)","3":"0 2px 6px rgba(10, 37, 64, 0.08), 0 18px 40px rgba(10, 37, 64, 0.17)","4":"0 30px 60px rgba(10, 37, 64, 0.18)"},"ELEVATION_DARK":{"1":"0 1px 2px rgba(0, 0, 0, 0.3)","2":"0 1px 1px rgba(0, 0, 0, 0.3), 0 7px 16px rgba(0, 0, 0, 0.32)","3":"0 1px 1px rgba(0, 0, 0, 0.4), 0 16px 34px rgba(0, 0, 0, 0.4)","4":"0 30px 60px rgba(0, 0, 0, 0.55)"}},"material":{"glass":{"back":"glass-back","panel":"glass-panel","composer":"glass-composer"},"GLASS_BACKDROP_FILTER":"blur(22px) saturate(150%)","GLASS_SHEEN_GRADIENT":"radial-gradient(circle at 82% -8%, var(--glassSheen), transparent 58%)"}},"counts":{"modules":297,"exports":682,"components":507,"withStory":249},"entries":[{"name":"AIResponseBlock","kind":"component","layer":"component","file":"src/components/AIResponseBlock.tsx","module":"AIResponseBlock","primary":true,"importPaths":["@aisquare/ui"],"category":"AI","since":"v1.1.0","demoId":"ai-response-block","summary":"AIResponseBlock — persona-attributed AI answer card: persona header, markdown body, optional source chips, and a confidence / latency / model metadata row.","doc":"AIResponseBlock — persona-attributed AI answer card: persona header,\nmarkdown body, optional source chips, and a confidence / latency / model\nmetadata row. The grounding-and-attribution shell for AI answers that need\nto show their work (Explore answers, Intelligence summaries, studio Q&A).\n\nPorted from Creator Studio v2 (`src/components/ui/AIResponseBlock.tsx`)\nand re-themed: the app-global `as-response-block` / `source-chip` CSS\nclasses and `font-ui` family are replaced with card + border tokens, and\nthe body renders through this library's `<Markdown>` (react-markdown +\nsanitize) instead of the app's regex parser. The app-specific `mode` enum\n(\"explore\" | \"studio\" | \"intelligence\") is generalised to `contextLabel`.\n\nFor the pre-first-token state, pair with `<ThinkingDots>` or\n`<TypingIndicator>` rather than rendering an empty block; once tokens\nstream, pass `streaming` to show the caret.\n\n@example\n  <AIResponseBlock\n    persona={{ name: \"Aiko\", avatar: \"A\" }}\n    contextLabel=\"Explore\"\n    content={answerMarkdown}\n    sources={[{ type: \"pdf\", label: \"onboarding-guide.pdf\" }]}\n    confidence={0.92}\n    latency=\"1.2s\"\n    model=\"claude-opus-4-8\"\n  />","props":[{"name":"persona","type":"{ name: string; avatar?: React.ReactNode }","required":true,"doc":"Persona shown in the header."},{"name":"content","type":"string","required":true,"doc":"Markdown body, rendered through `<Markdown>`."},{"name":"sources","type":"readonly AISource[]","required":false,"doc":"Optional source chips rendered under the body."},{"name":"confidence","type":"number","required":false,"doc":"0 to 1 confidence score, rendered as a percentage in the metadata row."},{"name":"latency","type":"string","required":false,"doc":"Response latency copy, e.g."},{"name":"model","type":"string","required":false,"doc":"Model name, e.g."},{"name":"contextLabel","type":"React.ReactNode","required":false,"doc":"Right-aligned header label naming the surface (\"Explore\", \"Intelligence\", ...)."},{"name":"animate","type":"boolean","required":false,"doc":"Animate the block in on mount."},{"name":"streaming","type":"boolean","required":false,"doc":"Forwarded to `<Markdown streaming>` — renders a trailing caret while tokens arrive."},{"name":"sourcesLabel","type":"string","required":false,"doc":"Heading above the source chips."}],"propsType":"AIResponseBlockProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"actionInputVariants","kind":"variants","layer":"component","file":"src/components/ActionInput.tsx","module":"ActionInput","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ActionInput — the generalized \"input with one trailing CTA\" primitive.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ActionInput","kind":"component","layer":"component","file":"src/components/ActionInput.tsx","module":"ActionInput","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ActionInput — the generalized \"input with one trailing CTA\" primitive.","doc":"ActionInput — the generalized \"input with one trailing CTA\" primitive.\n\nThis is the loose-coupling base. ChatInput, ExploreSearchBar, landing-style\nemail-capture, single-key URL entry — all are thin specializations of this.\n\nBehavior:\n- Renders an `<input>` (or `<textarea>` if `multiline`)\n- Optional `leadingIcon` slot (left, decorative, pointer-events-none)\n- Optional `trailingAction` slot (right, the CTA button)\n  - Animates in/out via Framer when `showActionWhen` is satisfied (default:\n    value is non-empty)\n- Optional `loading` state (shimmers the input, disables interaction)\n- Optional `error` state (border + a11y attributes)\n- Hybrid controlled / uncontrolled (provide `value`+`onChange` or omit)\n\nWhy this exists separately from <Input>:\n  <Input> is a single DOM node primitive. ActionInput is a wrapper that\n  composes Input + a Framer-animated trailing slot. Different concerns.","props":[],"propsType":"ActionInputProps","variants":{"variants":{"variant":["default","chat","search","ghost"],"size":["sm","default","lg"],"hasError":["true","false"]},"defaults":{"variant":"default","size":"default","hasError":"false"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoAnchor","kind":"component","layer":"component","file":"src/components/AikoAnchor.tsx","module":"AikoAnchor","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoAnchor — declares a stable, namespaced reference to a DOM element so AIKO's reasoning code can point at it without holding a ref.","doc":"AikoAnchor — declares a stable, namespaced reference to a DOM element so\nAIKO's reasoning code can point at it without holding a ref.\n\n  <AikoAnchor id=\"wizard.cover-button\">\n    <Button disabled={!hasTitle}>Pick cover</Button>\n  </AikoAnchor>\n\n  // …elsewhere, in the side that decides what AIKO should highlight:\n  const aiko = useAiko();\n  aiko.point({\n    target: \"wizard.cover-button\",\n    reason: \"Cover sets the tone for the whole studio.\",\n  });\n\nRenders nothing of its own — composes with the child via the Radix Slot\npattern, stamping `data-aiko-anchor={id}` onto whatever the child renders.\nThe lookup side (`useAikoTarget`, `aiko.point()`) reads that attribute.\n\nWhy a `data-` attribute and not a registry of refs:\n\n- Survives unrelated re-renders. The selector keeps working even when the\n  child remounts.\n- Decouples the consumer's component code from the AIKO reasoning code.\n  Components don't import \"the list of hints AIKO might fire at me.\"\n- Greppable. Refactoring `wizard.cover-button` is a project-wide\n  string-replace, not a ref-graph migration.\n\nAnchor IDs SHOULD be namespaced by feature: `<feature>.<element>`\n(e.g. `wizard.cover-button`, `studio.publish-cta`, `aiko-chat.send`).\nEasy to grep, hard to collide.\n\n[…truncated — read the source file for the rest]","props":[{"name":"id","type":"string","required":true,"doc":"Stable, feature-namespaced anchor id (e.g."},{"name":"children","type":"React.ReactElement","required":true,"doc":"Single React element child; `data-aiko-anchor={id}` is merged onto it."}],"propsType":"AikoAnchorProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoHint","kind":"component","layer":"component","file":"src/components/AikoHint.tsx","module":"AikoHint","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoHint — small Aiko mark that teases on hover and reveals on click.","doc":"AikoHint — small Aiko mark that teases on hover and reveals on click.\n\nAnatomy:\n\n  <AikoHint title=\"Why this matters\" body=\"One sentence.\" />\n\n  <AikoHint\n    title=\"Heads up\"\n    body=\"This will overwrite the current draft.\"\n    actions={[{ label: \"Got it\" }]}\n  />\n\nRenders a small icon-button containing only the AikoMark. Pointer hover\n(after a 120ms delay) opens a tiny label tip showing the `teaser` text.\nClick opens a fuller info card with title + body + optional actions. Click\noutside, Esc, or click the trigger again to close.\n\nUse cases:\n  - Inline hint on a form field that explains _why_ — the hint is quiet by\n    default and informative on demand. Replaces always-visible\n    `FormDescription` / \"subtext\" patterns where the explanation should be\n    one click away.\n  - Any \"small Aiko knows something\" gesture inside dense UI.\n\nBuilt on Radix Popover. Click-mode behavior matches `<AikoTip>` (focus\nlocks inside, Esc / outside dismiss). Hover-mode timing matches\n`<AikoTooltip>` (120ms open, 180ms close).\n\n**Anti-intrusion:** pass `channelId` + wrap in `<AikoProvider>` for the\nchannel-snooze / mute / session-silence contract. See\n[`docs/contracts/aiko-intrusion.md`](../../docs/contracts/aiko-intrusion.md).\n\nVisual shell comes from the shared `aikoShell` (`src/lib/aiko-shell.ts`).\nEdit there to retune every Aiko surface at once.","props":[{"name":"title","type":"string","required":true,"doc":"Title shown in click mode."},{"name":"body","type":"React.ReactNode","required":true,"doc":"Body shown in click mode."},{"name":"teaser","type":"string","required":false,"doc":"Hover-mode teaser."},{"name":"actions","type":"AikoTipAction[]","required":false,"doc":"0–3 actions for click mode."},{"name":"onClickOpen","type":"() => void","required":false,"doc":"Fires when the click popover opens (i.e."},{"name":"channelId","type":"string","required":false,"doc":"Anti-intrusion channel."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Side of the trigger to place the popover on."},{"name":"align","type":"\"start\" | \"center\" | \"end\"","required":false,"doc":"Alignment along that side."},{"name":"sideOffset","type":"number","required":false,"doc":"Px gap between trigger and popover."},{"name":"alignOffset","type":"number","required":false,"doc":"Px nudge along the alignment axis."},{"name":"className","type":"string","required":false,"doc":"className override on the popover content."},{"name":"triggerClassName","type":"string","required":false,"doc":"className override on the trigger button."},{"name":"markSize","type":"AikoMarkProps[\"size\"]","required":false,"doc":"AikoMark size for the trigger."},{"name":"popoverMarkSize","type":"AikoMarkProps[\"size\"]","required":false,"doc":"AikoMark size inside the popover."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"aria-label on the trigger button."}],"propsType":"AikoHintProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoLoader","kind":"component","layer":"component","file":"src/components/AikoLoader.tsx","module":"AikoLoader","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoLoader — branded loading indicator.","doc":"AikoLoader — branded loading indicator.\n\nUse for \"the platform is doing AI work\" moments that take >300ms:\ninitial load, generation, processing. For inline / sub-300ms loading\n(Button submit, validating an input), reach for `Spinner` instead.\n\nComposes `AikoMark` (the brand-mascot breathing animation already\nlives there — touching the breath rhythm is a one-file change in\nAikoMark, not here) with a soft pulse-glow aura behind the mark and\nan optional label slot below. Honors `prefers-reduced-motion`\nautomatically: AikoMark stops breathing, the glow stops pulsing.","props":[{"name":"label","type":"React.ReactNode","required":false,"doc":"Optional label rendered below the mark."},{"name":"glow","type":"boolean","required":false,"doc":"Soft pulse-glow halo behind the mark."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Screen-reader label for the wrapper's `role=\"status\"`."}],"propsType":"AikoLoaderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoMark","kind":"component","layer":"component","file":"src/components/AikoMark.tsx","module":"AikoMark","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoMark — AISquare's brand mascot, single-file source of truth.","doc":"AikoMark — AISquare's brand mascot, single-file source of truth.\n\nEVERYTHING about the mark lives in this file. To update Aiko (different\npaths, different animation, different container shape, different sizes)\ntouch ONLY this file — every consumer of `<AikoMark>` (tooltips, sheets,\nloaders, marketing surfaces) inherits the change.\n\nAnatomy:\n  - Container: rounded `--primary`-tinted square (the \"hex\"), sized via the\n    `size` prop. Container radius scales with size (~25% of width).\n  - SVG: hex-pentagon outline + breathing top + bouncing eyeball + blinking\n    eyes. Paths and SMIL `<animate>` elements live inline below.\n\nBehavior:\n  - Animated by default. Pass `animated={false}` to render the resting frame.\n  - Honors `prefers-reduced-motion` automatically (resting frame).\n  - Decorative by default (`aria-hidden=\"true\"`). Pass `aria-label` to make\n    it announce — the wrapper switches to `role=\"img\"`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"tone","type":"\"primary\" | \"steel\"","required":false,"doc":"Visual tone of the container."},{"name":"animated","type":"boolean","required":false,"doc":"Toggle the breathing animation."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"When provided, the wrapper is announced via `role=\"img\"` with this label."},{"name":"sizeOverride","type":"number","required":false,"doc":"Exact pixel size for the container (width and height)."}],"propsType":"AikoMarkProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoProvider","kind":"component","layer":"component","file":"src/components/AikoProvider.tsx","module":"AikoProvider","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoProvider — the anti-intrusion contract layer.","doc":"AikoProvider — the anti-intrusion contract layer.\n\nThe full contract (rules, channel-naming, anti-patterns, open questions)\nlives at `docs/contracts/aiko-intrusion.md`. This file is the runtime\nenforcement; the doc is the spec. **Read the doc before extending this\nprovider or adding a new Aiko surface.**\n\nOne-line summary: dismiss in one click, snooze 30 min after dismiss, three\ndismisses in a session → silent for the session, mute per-surface persists\nin localStorage, surfaces never block the canvas.\n\nWrap once near the app root:\n\n  <AikoProvider>\n    <App />\n  </AikoProvider>\n\nThen any AikoTip with `channelId` becomes managed:\n\n  <AikoTip channelId=\"expert.grounding-strictness\" variant=\"rail\" ...>\n    <Button>?</Button>\n  </AikoTip>\n\nOr use the hook directly for advanced surfaces:\n\n  const { canShow, dismiss, mute } = useAikoChannel(\"some.channel\");\n\nWithout a provider, AikoTip with channelId still works (it just runs\nunmanaged — no snooze tracking, no mute persistence). The provider is the\ngate to actually using the contract.\n\nPersistence: snoozedUntil + muted persist via `useLocalStorage` keyed by\n`storageKey` (default `aisquare-pretty-aiko-state`). Session dismiss count\nlives in memory only — resets per page load.","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"defaultSnoozeDuration","type":"number","required":false,"doc":"Override the default 30-minute snooze."},{"name":"sessionDismissThreshold","type":"number","required":false,"doc":"Override the 3-dismiss session-silence threshold."},{"name":"storageKey","type":"string","required":false,"doc":"Override the localStorage key used for persistence."}],"propsType":"AikoProviderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAiko","kind":"function","layer":"component","file":"src/components/AikoProvider.tsx","module":"AikoProvider","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Read the global Aiko context.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoChannel","kind":"function","layer":"component","file":"src/components/AikoProvider.tsx","module":"AikoProvider","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Per-channel handle.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoSignal","kind":"function","layer":"component","file":"src/components/AikoSignal.tsx","module":"AikoSignal","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoSignal — the detector + escalation engine for Phase 3.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoDwellSignal","kind":"function","layer":"component","file":"src/components/AikoSignal.tsx","module":"AikoSignal","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoRageClickSignal","kind":"function","layer":"component","file":"src/components/AikoSignal.tsx","module":"AikoSignal","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoHoverLoopSignal","kind":"function","layer":"component","file":"src/components/AikoSignal.tsx","module":"AikoSignal","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoWhisper","kind":"component","layer":"component","file":"src/components/AikoSurfaces.tsx","module":"AikoSurfaces","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoSurfaces — the three Phase 3 intrusion levels as standalone primitives.","doc":null,"props":[{"name":"anchorRef","type":"AnyRef","required":true,"doc":"The element the whisper sits beside."},{"name":"open","type":"boolean","required":true,"doc":"Controlled open state."},{"name":"channelId","type":"string","required":false,"doc":"Channel id — when set, dismissing the whisper (Esc / click-outside / pip tap) fires `dismiss()` on the channel per the contract."},{"name":"onDismiss","type":"() => void","required":false,"doc":"Fires when the whisper closes — Esc, click-outside, or pip tap."},{"name":"onExpand","type":"() => void","required":false,"doc":"Fires when the user taps the pip to expand (consumer can escalate to nudge)."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Side of the anchor to place the pip on."},{"name":"sideOffset","type":"number","required":false,"doc":"Px offset from anchor."},{"name":"previewText","type":"string","required":false,"doc":"Optional hover-preview copy."},{"name":"previewSide","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Side of the pip the preview AikoTip places on."}],"propsType":"AikoWhisperProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoNudge","kind":"component","layer":"component","file":"src/components/AikoSurfaces.tsx","module":"AikoSurfaces","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"anchorRef","type":"AnyRef","required":true,"doc":null},{"name":"open","type":"boolean","required":true,"doc":null},{"name":"children","type":"React.ReactNode","required":true,"doc":"The hint text."},{"name":"channelId","type":"string","required":false,"doc":null},{"name":"onDismiss","type":"() => void","required":false,"doc":null},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":null},{"name":"sideOffset","type":"number","required":false,"doc":null}],"propsType":"AikoNudgeProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoIntervene","kind":"component","layer":"component","file":"src/components/AikoSurfaces.tsx","module":"AikoSurfaces","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"anchorRef","type":"AnyRef","required":true,"doc":null},{"name":"open","type":"boolean","required":true,"doc":null},{"name":"title","type":"string","required":true,"doc":null},{"name":"body","type":"React.ReactNode","required":true,"doc":null},{"name":"actions","type":"AikoInterveneAction[]","required":true,"doc":"Primary CTA + optional secondary actions."},{"name":"onSnooze","type":"() => void","required":false,"doc":"Optional snooze handler."},{"name":"channelId","type":"string","required":false,"doc":null},{"name":"onDismiss","type":"() => void","required":false,"doc":null},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":null},{"name":"sideOffset","type":"number","required":false,"doc":null}],"propsType":"AikoInterveneProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoTip","kind":"component","layer":"component","file":"src/components/AikoTip.tsx","module":"AikoTip","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoTip — the Aiko helper bubble.","doc":"AikoTip — the Aiko helper bubble. Six content silhouettes share one paper\nshell and the breathing AikoMark. Drop-in replacement for traditional\ntooltips when the helper has personality + content + (optionally) actions.\n\nAnatomy:\n\n  <AikoTip variant=\"rail\" title=\"...\" body=\"...\" actions={[...]}>\n    <Button>Help</Button>           {/* the trigger * /}\n  </AikoTip>\n\nVariants (per the Phase 3 design — same shell, six silhouettes):\n\n  label         — title only (≤4 words). Lightest possible explanation.\n  info          — title + body. No actions.\n  single        — title + body + one full-width primary action.\n  rail          — title + body + 2-3 button rail (default smart tooltip).\n  pages         — multi-page walkthrough, dots + Next button (sticky footer).\n  pages-passive — multi-page passive tip, auto-advances with progress bar.\n\nTrigger modes:\n\n[…truncated — read the source file for the rest]","props":[],"propsType":"AikoTipProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoTooltip","kind":"component","layer":"component","file":"src/components/AikoTooltip.tsx","module":"AikoTooltip","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AikoTooltip — drop-in tooltip with the AIKO voice.","doc":"AikoTooltip — drop-in tooltip with the AIKO voice.\n\nReplaces shadcn-style `<Tooltip><TooltipTrigger><TooltipContent>` compositions\nwith a single-prop API. The visual treatment auto-adapts to the content via\nthe `tone` heuristic (default `\"auto\"`):\n\n  - `title` set → `\"full\"`: branded paper card with the AikoMark in the header.\n  - body is a short string (≤32 chars) and no title → `\"minimal\"`: light\n    tooltip shell, no mark, tighter padding. Reads as a label, not a card.\n  - otherwise (long body, JSX node) → `\"full\"`: paper card with the mark\n    inline before the text.\n\nThe heuristic exists so consumers don't have to think about which variant fits.\nBrand the act, not the chrome — short button labels stay quiet so substantive\nAIKO comms stand out. Override with `tone=\"full\"` or `tone=\"minimal\"` when\nthe heuristic guesses wrong.\n\nAnatomy:\n\n  <AikoTooltip body=\"Save\" />                                   // → minimal\n  <AikoTooltip body=\"This will permanently delete the experience.\" />  // → full\n  <AikoTooltip title=\"Save\" body=\"Saves and exits the editor\" /> // → full (header)\n  <AikoTooltip body=\"Save\" tone=\"full\" />                        // pin full\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactElement","required":true,"doc":"The single trigger element."},{"name":"body","type":"React.ReactNode","required":true,"doc":"Tooltip body."},{"name":"title","type":"string","required":false,"doc":"Optional bold title above the body."},{"name":"tone","type":"AikoTooltipTone","required":false,"doc":"Visual treatment."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Side of the anchor to place the bubble on."},{"name":"align","type":"\"start\" | \"center\" | \"end\"","required":false,"doc":"Alignment along that side."},{"name":"sideOffset","type":"number","required":false,"doc":"Px gap between trigger and bubble."},{"name":"alignOffset","type":"number","required":false,"doc":"Px nudge along the alignment axis."},{"name":"delayDuration","type":"number","required":false,"doc":"Hover-open delay in ms."},{"name":"open","type":"boolean","required":false,"doc":"Controlled open state."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Uncontrolled initial open state."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Fires on open / close."},{"name":"className","type":"string","required":false,"doc":"className override on the bubble."},{"name":"markSize","type":"AikoMarkProps[\"size\"]","required":false,"doc":"AikoMark size."},{"name":"hideMark","type":"boolean","required":false,"doc":"Hide the AikoMark in `tone=\"full\"`."},{"name":"channelId","type":"string","required":false,"doc":"Opt this tooltip into the anti-intrusion contract."}],"propsType":"AikoTooltipProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoTour","kind":"function","layer":"component","file":"src/components/AikoTour.tsx","module":"AikoTour","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Drive an `AikoTour`'s open + one-time-seen lifecycle.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoSpotlight","kind":"component","layer":"component","file":"src/components/AikoTour.tsx","module":"AikoTour","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Renders one tour step: the spotlight cutout around `target` plus a Radix Popover tooltip card pinned to it via the `virtualRef` bridge.","doc":null,"props":[{"name":"target","type":"HTMLElement | null","required":true,"doc":"The resolved target element to spotlight + anchor against."},{"name":"step","type":"TourStep","required":true,"doc":"Step content."},{"name":"index","type":"number","required":true,"doc":"Zero-based index of this step."},{"name":"total","type":"number","required":true,"doc":"Total step count (for the progress dots + Done label)."},{"name":"overlayOpacity","type":"number","required":true,"doc":"Backdrop dim opacity."},{"name":"scrollOffset","type":"number","required":true,"doc":"Top offset (px) when scrolling the target into view."},{"name":"dismissOnStepZeroOnly","type":"boolean","required":true,"doc":"Show the dismiss X only on step 0."},{"name":"nextLabel","type":"string","required":true,"doc":"Button copy."},{"name":"doneLabel","type":"string","required":true,"doc":null},{"name":"backLabel","type":"string","required":true,"doc":null},{"name":"onNext","type":"() => void","required":true,"doc":"Navigation callbacks (wired to the Stepper state by `AikoTour`)."},{"name":"onPrev","type":"() => void","required":true,"doc":null},{"name":"onSkip","type":"() => void","required":true,"doc":null},{"name":"onGoto","type":"(index: number) => void","required":true,"doc":null}],"propsType":"AikoSpotlightProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AikoTour","kind":"component","layer":"component","file":"src/components/AikoTour.tsx","module":"AikoTour","primary":true,"importPaths":["@aisquare/ui"],"category":"Onboarding","since":"v1.4.0","demoId":"aiko-tour","summary":"AikoTour - a product-tour engine (spotlight coach-marks) built ON the lib's existing Aiko anchor layer, not on a third-party tour library.","doc":"AikoTour - a product-tour engine (spotlight coach-marks) built ON the lib's\nexisting Aiko anchor layer, not on a third-party tour library.\n\n  <AikoTour\n    steps={[\n      { anchorId: \"home.composer\", title: \"Start here\", body: \"Describe what you want to build.\" },\n      { anchorId: \"home.create-tile\", title: \"Create\", body: \"Spin up a studio.\", side: \"bottom\" },\n    ]}\n    storageKey=\"home-first-run\"\n    onComplete={() => markOnboarded()}\n  />\n\nTargets are marked the lib's normal way - `<AikoAnchor id=\"home.composer\">` or a\nraw `data-aiko-anchor=\"home.composer\"`. The tour resolves each step's `anchorId`\nthrough `useAikoTarget` (MutationObserver-backed, SSR-safe), pins a Radix Popover\ntooltip to the live element via the same `virtualRef` bridge `AikoSurfaces` uses,\nand paints a single-box-shadow spotlight cutout around the target rect.\n\nWhat this reuses (so the spotlight math is not re-derived):\n- `useAikoTarget` - resolve `anchorId` -> live element + visibility, re-render on DOM churn.\n- the `useVirtualAnchor` pattern from `AikoSurfaces` - pin a portalled Popover to a moving node.\n- `Stepper`'s headless state - `next` / `prev` / `goto` / `complete` + a11y (we drive it as a render-prop).\n- the lib motion presets (`springs` / `transitions` / `durations`) + `useReducedMotion`.\n- `useLocalStorage` - persist the \"seen\" flag so a one-time tour does not re-run.\n\n[…truncated — read the source file for the rest]","props":[{"name":"steps","type":"TourStep[]","required":true,"doc":"Ordered steps."},{"name":"open","type":"boolean","required":false,"doc":"Controlled open state."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Uncontrolled initial open state."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Fires whenever the tour opens or closes (skip / complete both close it)."},{"name":"index","type":"number","required":false,"doc":"Controlled active step index."},{"name":"defaultIndex","type":"number","required":false,"doc":"Uncontrolled initial step index."},{"name":"onIndexChange","type":"(index: number) => void","required":false,"doc":"Fires when the active step changes."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fires when the user finishes the last step (Done / next past the end)."},{"name":"onSkip","type":"() => void","required":false,"doc":"Fires when the user dismisses the tour early (step-0 X / Esc)."},{"name":"storageKey","type":"string","required":false,"doc":"localStorage key for the one-time \"seen\" flag."},{"name":"scrollOffset","type":"number","required":false,"doc":"Default px top offset when scrolling a target into view."},{"name":"overlayOpacity","type":"number","required":false,"doc":"Backdrop dim opacity for the spotlight (0..1)."},{"name":"dismissOnStepZeroOnly","type":"boolean","required":false,"doc":"Show the dismiss X only on step 0 (donor behavior)."},{"name":"queueTimeoutMs","type":"number","required":false,"doc":"Bound (ms) on how long a `\"queue\"` step waits for its anchor before auto-skipping."},{"name":"nextLabel","type":"string","required":false,"doc":"Copy override for the advance button on non-final steps."},{"name":"doneLabel","type":"string","required":false,"doc":"Copy override for the advance button on the final step."},{"name":"backLabel","type":"string","required":false,"doc":"Copy override for the back button."}],"propsType":"AikoTourProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AnimatedContent","kind":"component","layer":"component","file":"src/components/AnimatedContent.tsx","module":"AnimatedContent","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AnimatedContent — scroll-triggered entrance for arbitrary content.","doc":"AnimatedContent — scroll-triggered entrance for arbitrary content. Slides /\nscales / fades in once the element crosses a viewport threshold, with\noptional auto-disappearance on a delay.\n\nAdopted from React Bits (`@react-bits/AnimatedContent-TS-TW`) and adapted to\npretty's anatomy:\n- `forwardRef` + `displayName` per the anatomy contract.\n- **Default scroll target is `window`** — the upstream source defaulted to\n  `document.getElementById(\"snap-main-container\")` (a Lovable-specific\n  container that has no business in a shared primitive). Pass `container`\n  explicitly when the consumer scrolls a non-window region.\n- `useReducedMotion()` integration: when reduced, the element renders in\n  its final state immediately (no entrance translate / scale / opacity\n  choreography, no auto-disappear). `onComplete` still fires once on the\n  first render so consumer state machines that gate on it still resolve.\n- `cn` for className merge (drops the upstream's `${className}` literal\n  concat, which silently dropped className conflicts).\n\nUse cases inside the AISquare platform:\n- Studio landing page sections that animate in as you scroll.\n- About-page timeline blocks with directional reveals (note → quest →\n  podcast → video).\n- Marketing-style feature strips on the home / explore surfaces.\n\nCompanion primitive: `<FadeContent>` for plain opacity (with optional blur)\nscroll-into-view fades.\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":"Content to reveal once the element crosses the threshold."},{"name":"container","type":"Element | string | null","required":false,"doc":"Scroll container that drives the trigger."},{"name":"distance","type":"number","required":false,"doc":"Translate distance in px from the resting position."},{"name":"direction","type":"\"vertical\" | \"horizontal\"","required":false,"doc":"Translate axis."},{"name":"reverse","type":"boolean","required":false,"doc":"Reverse the entrance translate axis (e.g."},{"name":"duration","type":"number","required":false,"doc":"Entrance duration in seconds."},{"name":"ease","type":"string","required":false,"doc":"GSAP easing string."},{"name":"initialOpacity","type":"number","required":false,"doc":"Initial opacity before entrance."},{"name":"animateOpacity","type":"boolean","required":false,"doc":"When `false`, opacity stays at 1 throughout — only the translate / scale animate."},{"name":"scale","type":"number","required":false,"doc":"Initial scale before entrance."},{"name":"threshold","type":"number","required":false,"doc":"Threshold (0 to 1) for how much of the element must enter the viewport before the entrance fires."},{"name":"delay","type":"number","required":false,"doc":"Delay before entrance starts, in seconds."},{"name":"disappearAfter","type":"number","required":false,"doc":"Auto-disappear delay in seconds (after the entrance completes)."},{"name":"disappearDuration","type":"number","required":false,"doc":"Disappear-animation duration in seconds."},{"name":"disappearEase","type":"string","required":false,"doc":"Disappear-animation easing."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fired when the entrance animation completes."},{"name":"onDisappearanceComplete","type":"() => void","required":false,"doc":"Fired when the disappear animation completes (only when `disappearAfter > 0`)."}],"propsType":"AnimatedContentProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AnimatedCounter","kind":"component","layer":"component","file":"src/components/AnimatedCounter.tsx","module":"AnimatedCounter","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AnimatedCounter — number that eases toward `value`, formatted with locale thousands separators (optional fixed `decimals`, `prefix`, `suffix`).","doc":"AnimatedCounter — number that eases toward `value`, formatted with locale\nthousands separators (optional fixed `decimals`, `prefix`, `suffix`).\n\nTwo ways to use it:\n- **Plain** (no `from`) — displays `value` immediately on mount, exactly like\n  a static number, then glides to any later `value` change. This is the\n  original contract and stays the default: pass nothing new and nothing\n  changes.\n- **Scroll-triggered intro** (`from` set) — renders at `from` until the\n  counter first scrolls into view, then eases up to `value` once. Pass a\n  `from` above-the-fold and it starts immediately (no waiting on a scroll\n  that will never come) — the fold check and the `IntersectionObserver`\n  both fire the same one-shot reveal, so whichever gets there first wins.\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"number","required":true,"doc":null},{"name":"duration","type":"number","required":false,"doc":"Animation duration in ms, used for both the intro and any glide."},{"name":"format","type":"(n: number) => string","required":false,"doc":"Format the displayed number."},{"name":"from","type":"number","required":false,"doc":"Starting value for a scroll-triggered intro."},{"name":"decimals","type":"number","required":false,"doc":"Fixed decimal places for the default formatter."},{"name":"prefix","type":"string","required":false,"doc":"Rendered before the number, inside the same span."},{"name":"suffix","type":"string","required":false,"doc":"Rendered after the number, inside the same span."},{"name":"animateOnChange","type":"boolean","required":false,"doc":"Whether a `value` change after the counter has settled (intro complete, or no intro requested) glides the rolling digits, or snaps instantly."}],"propsType":"AnimatedCounterProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"getAnimatedExperienceType","kind":"function","layer":"component","file":"src/components/AnimatedExperienceTypeIcon.tsx","module":"AnimatedExperienceTypeIcon","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Normalize a raw experience type to its animation variant, or `null` if the type has no animation.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AnimatedExperienceTypeIcon","kind":"component","layer":"component","file":"src/components/AnimatedExperienceTypeIcon.tsx","module":"AnimatedExperienceTypeIcon","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.3.0","demoId":"animated-experience-type-icon","summary":"AnimatedExperienceTypeIcon — \"live icon\" hover treatment for the five AI Experience type glyphs.","doc":"AnimatedExperienceTypeIcon — \"live icon\" hover treatment for the five AI\nExperience type glyphs. While `active`, each type plays a signature motion\nlayered *around* its anchored barrel icon (the icon itself never swaps out,\nso the type affordance is preserved at all times):\n\n  - **podcast** (Headphones) — bob + orange equalizer bars + ♪ notes drifting up\n  - **video**   (Video)      — tracking-pan + blinking red REC dot + film frames streaming out\n  - **quest**   (Compass)    — needle \"searching\" wobble + a dotted trail to a popping ⚑ flag\n  - **expert**  (Brain)      — heartbeat pulse + chat typing-indicator dots above\n  - **note**    (FileText)   — paper sway + ✎ pencil scribbling + ✦ AI sparkles\n\nNo two types share a movement, glyph, or motion direction. Every layer is\ntransform/opacity-only and mounts **only while `active`**, so idle cards in a\nlarge grid pay zero animation cost. `prefers-reduced-motion` falls back to the\nplain static icon, and the whole thing is `aria-hidden` (decorative — pair it\nwith a text label or <ExperienceTypeBadge> for the accessible name).\n\nThe icon for each type comes from the same source of truth as\n<ExperienceTypeBadge> (`getExperienceTypeMeta`), so the static and animated\nsurfaces can never drift apart.\n\n[…truncated — read the source file for the rest]","props":[{"name":"type","type":"string","required":true,"doc":"Raw experience type (e.g."},{"name":"active","type":"boolean","required":true,"doc":"Drives the animation — pass the card/row hover (or focus) state."},{"name":"size","type":"\"md\" | \"sm\"","required":false,"doc":"\"md\" = 32px icon (cover overlays) · \"sm\" = 16px (rows, badges)."},{"name":"className","type":"string","required":false,"doc":"Applied to the root — set the **text color** here; glyphs + ripple inherit it."},{"name":"iconClassName","type":"string","required":false,"doc":"Applied to the icon element (custom sizing, shadows)."},{"name":"accentClassName","type":"string","required":false,"doc":"Background class for the accent element (EQ bars / REC dot / trail / typing dots)."},{"name":"fallback","type":"React.ReactNode","required":false,"doc":"Rendered when `type` has no animation variant (default: nothing)."},{"name":"style","type":"React.CSSProperties","required":false,"doc":null}],"propsType":"AnimatedExperienceTypeIconProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AnimatedList","kind":"component","layer":"component","file":"src/components/AnimatedList.tsx","module":"AnimatedList","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AnimatedList — vertically-stacked list with motion-driven entrance / exit animations, optional auto-add cycling, swipe-to-dismiss, click effects, and fade-edge masks.","doc":"AnimatedList — vertically-stacked list with motion-driven entrance / exit\nanimations, optional auto-add cycling, swipe-to-dismiss, click effects, and\nfade-edge masks.\n\nAdopted from React Bits Pro (`@reactbits-starter/animated-list-tw`) and\nadapted to pretty's conventions:\n- All hardcoded palette colors swapped for theme tokens (`bg-card`,\n  `border-border`, `text-foreground`, `text-destructive`, `bg-foreground/15`).\n  Renders dark/light cleanly under any consumer's `--background` / `--card`.\n- Honors `prefers-reduced-motion` — entrance / exit transitions collapse to\n  instant when the user opts out, the spring \"bounce\" animation falls back\n  to the fade tween, and the swipe-dismiss rotation is suppressed.\n- Forwards a ref to the outer wrapper for layout measurement.\n\nUse cases inside the AISquare platform:\n- The Studio Quick-Filter sidebar (Creator Studio): per-studio pill rail\n  that animates in on mount and gracefully cycles when filters change.\n- Aiko surfaces: notification stacks where new whispers slide in and old\n  ones expire on a timer.\n- Activity feeds + recent-events panels with bounded `maxItems`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"items","type":"AnimatedListItem[]","required":true,"doc":"Array of items to display."},{"name":"duration","type":"number","required":false,"doc":"Duration of item entrance / exit animation in seconds."},{"name":"easing","type":"[number, number, number, number]","required":false,"doc":"Animation easing as a cubic-bezier 4-tuple."},{"name":"autoAddDelay","type":"number","required":false,"doc":"Delay between auto-cycled re-adds in ms."},{"name":"maxItems","type":"number","required":false,"doc":"Maximum number of items to keep in the list."},{"name":"startFrom","type":"\"top\" | \"center\" | \"bottom\"","required":false,"doc":"Vertical alignment of items within the container."},{"name":"animationType","type":"\"slide\" | \"fade\" | \"scale\" | \"bounce\" | \"blur\"","required":false,"doc":"Type of entrance / exit animation."},{"name":"enterFrom","type":"\"top\" | \"bottom\" | \"left\" | \"right\"","required":false,"doc":"Direction items enter from."},{"name":"pauseOnHover","type":"boolean","required":false,"doc":"Pause auto-cycling while the cursor is over the list."},{"name":"hoverEffect","type":"\"none\" | \"scale\"","required":false,"doc":"Hover effect applied to each item."},{"name":"clickEffect","type":"\"none\" | \"ripple\" | \"press\"","required":false,"doc":"Click effect applied to each item."},{"name":"fadeEdges","type":"boolean","required":false,"doc":"Render edge fades at the top + bottom of the scroll region."},{"name":"fadeEdgeSize","type":"number","required":false,"doc":"Fade-edge size in pixels."},{"name":"fadeColor","type":"string","required":false,"doc":"**Deprecated path.** When set, renders two colored gradient overlay divs instead of using a transparent mask-fade."},{"name":"swipeToDismiss","type":"boolean","required":false,"doc":"Allow horizontal drag-to-dismiss on each item."},{"name":"onDismiss","type":"(item: AnimatedListItem) => void","required":false,"doc":"Fired when an item is dismissed (via swipe or programmatic removal)."},{"name":"onItemClick","type":"(item: AnimatedListItem) => void","required":false,"doc":"Fired when an item is clicked (after the click effect, if any)."},{"name":"itemGap","type":"number","required":false,"doc":"Vertical gap between items in pixels."},{"name":"renderItem","type":"(item: AnimatedListItem) => React.ReactNode","required":false,"doc":"Custom item renderer."},{"name":"height","type":"string | number","required":false,"doc":"Container height."},{"name":"loading","type":"boolean","required":false,"doc":"The roster has not arrived yet — renders row silhouettes carrying the real row's card geometry, so the list does not collapse to zero height and then shove the page down when the feed lands."},{"name":"loadingRows","type":"number","required":false,"doc":"Silhouette count while `loading`."},{"name":"empty","type":"React.ReactNode","required":false,"doc":"Rendered when the list is genuinely empty — either nothing was passed, or the user dismissed the last row."}],"propsType":"AnimatedListProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"recommendedFocusWidth","kind":"function","layer":"component","file":"src/components/ArtifactFocus.tsx","module":"ArtifactFocus","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The width the host panel should grow to on drill-in (grow-only: the host does `Math.max(currentWidth, recommendedFocusWidth(item))`).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ArtifactFocus","kind":"component","layer":"component","file":"src/components/ArtifactFocus.tsx","module":"ArtifactFocus","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.5.0","demoId":"artifact-focus","summary":"ArtifactFocus — the drill-in detail view for one Brain artifact.","doc":"ArtifactFocus — the drill-in detail view for one Brain artifact.\n\nWhen a creator clicks a card in the Brain/session sidebar, the panel focuses\nthat one item: a dark hero stage that names it, a live Preview of the artifact\nbody, its Details, its Sources, and type-aware Actions whose primary CTA is\n\"Open draft\" / \"Open live ↗\". It is the expanded counterpart to `ArtifactTile`\n— same panel, no layout jump.\n\nPresentational only. It consumes one already-mapped `ArtifactFocusItem`\n(the host maps a unified#103 `/items/` item into this view-model) and emits\n`onAction` / `onClose` intents — it never fetches, owns no router/breadcrumb,\nand never imports the AIStudio-v3 renderers (those arrive via the `preview`\nslot, keeping `@aisquare/ui` dependency-clean). For non-experience kinds with\nno v3 renderer it falls back to a lightweight per-kind preview stand-in.\n\nTokens: authored against the library's semantic tokens (`bg-primary` hero,\n`bg-card`, `text-accent`, ...) — NOT the design mock's `--hero`/`--plum`/`--ac`\nnames, which do not exist in the lib. Per-type identity color is derived the\nlib way from `getExperienceTypeMeta` (identity-only: the icon tile + label\ndot), not a raw `accentVar` string. Theme-aware (light + `.dark`),\nreduced-motion safe (transform-only entrances; the hero aurora loop degrades\nto a static glow under the preset's reduced-motion guard).\n\n[…truncated — read the source file for the rest]","props":[{"name":"item","type":"ArtifactFocusItem","required":true,"doc":null},{"name":"preview","type":"React.ReactNode","required":false,"doc":"The real artifact body (for experiences, the AIStudio-v3 CenterStage stage, built + passed by the host)."},{"name":"stageVariant","type":"\"carded\" | \"bare\" | \"detached\" | \"flush\"","required":false,"doc":"Preview stage presentation."},{"name":"actions","type":"React.ReactNode","required":false,"doc":"Host-supplied actions row, rendered in place of the library's type-aware default (Edit / Settings / Open-draft, ...)."},{"name":"headerMedia","type":"React.ReactNode","required":false,"doc":"Host-owned hero media panel (PQA#2615): rendered as the header's full-height media column IN PLACE of the static `item.cover` image, so a host can put its live cover component — with its upload / AI-generate dropdown controls — directly in"},{"name":"headerExtra","type":"React.ReactNode","required":false,"doc":"Extra header meta for the right-side column, rendered under the tags (PQA#2615: e.g."},{"name":"actionsPlacement","type":"\"end\" | \"belowHero\"","required":false,"doc":"Where the status + actions block renders (PQA#2615: \"the buttons need to be right below the header so that action is easy and upfront\")."},{"name":"belowPreview","type":"React.ReactNode","required":false,"doc":"Rendered between the preview row and the Details/Sources row (PQA#2615: \"tags need to be right below the preview and right above the details stuff\" — the host's EDITABLE tags block lands here; the header's `tags` stay the read-at-a-glance c"},{"name":"onAction","type":"(action: string) => void","required":false,"doc":null},{"name":"onClose","type":"() => void","required":false,"doc":null}],"propsType":"ArtifactFocusProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ArtifactTile","kind":"component","layer":"component","file":"src/components/ArtifactTile.tsx","module":"ArtifactTile","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.5.0","demoId":"artifact-tile","summary":"ArtifactTile — one card for every citizen of the Brain.","doc":"ArtifactTile — one card for every citizen of the Brain.\n\nThe Brain (the multi-experience / multi-file session sidebar, unified#103)\nrenders everything a chat session produced — experiences, files, AI analyses,\nreferences, connectors — as one grouped bento list. The adoption principle is\n\"the Brain is artifact-kind agnostic\": every citizen is the **same tile** with\na different `kind`, so adding a kind is \"give it an icon and a status, it\ninherits tile / glow / drill-in for free\". This is that single visual\nprimitive.\n\nAnatomy (one tile, every kind): a header row (icon tile + status indicator),\na 2-line title, and a mono meta/provenance line. The only place per-type\n**color** appears is the 28x28 icon tile — title, meta, keyline, glow, and\nstatus chrome stay monochrome slate/ink/accent (identity-only color, Handoff\nL68). Supporting kinds (file/chart/analysis/link/connector/fetched/studio) are\nfully neutral.\n\n[…truncated — read the source file for the rest]","props":[{"name":"kind","type":"ArtifactKind","required":true,"doc":"Which Brain citizen this is."},{"name":"experienceType","type":"string","required":false,"doc":"For `kind=\"experience\"`: the experience type (quest/note/video/podcast/expert/...) driving icon + identity color."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Overrides the kind-derived main glyph rendered in the 28x28 icon tile."},{"name":"status","type":"string","required":false,"doc":"Lifecycle status (domain word or canonical state); resolved via `STATUS_ALIAS`."},{"name":"title","type":"string","required":true,"doc":"Primary title (2-line clamp)."},{"name":"meta","type":"string","required":false,"doc":"Provenance / dedupe line, e.g."},{"name":"fresh","type":"boolean","required":false,"doc":"Just created/uploaded this turn -> a `New` badge (highest-precedence indicator)."},{"name":"active","type":"boolean","required":false,"doc":"This tile is the focused artifact in the router -> one accent ring."},{"name":"attention","type":"\"error\" | \"review\" | boolean","required":false,"doc":"Drives the left accent keyline (sb56xx) — a ~3px vertical accent bar on the tile's left edge signalling this artifact needs attention."},{"name":"asChild","type":"boolean","required":false,"doc":"Render as the consumer's own element (`<a>`/`<button>`) for the trace-back target."}],"propsType":"ArtifactTileProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ArtifactTileSkeleton","kind":"component","layer":"component","file":"src/components/ArtifactTile.tsx","module":"ArtifactTile","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ArtifactTileSkeleton — the loading placeholder tile (shimmer on a card base), matching the tile's footprint so a loading grid does not reflow when real tiles arrive.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AttributionBadge","kind":"component","layer":"component","file":"src/components/AttributionBadge.tsx","module":"AttributionBadge","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AttributionBadge — the fixed \"Generated by Atlas @ AISquare\" brand-attribution pill.","doc":"AttributionBadge — the fixed \"Generated by Atlas @ AISquare\" brand-attribution\npill. Ported from the unified app's `<AtlasBadge>` (`src/components/AtlasBadge.tsx`).\n\nThis is deliberately NOT a variant of `Badge` (`../primitives/Badge`).\n`Badge` is a CONFIGURABLE status pill — a `variant`/`size`/`appearance` axis,\narbitrary `children`, meant to signal state (success, new, premium...) and\nchange per call site. `AttributionBadge` is the opposite shape: the text,\nthe link, and the mark are all fixed — there is no `variant` prop, no\n`children` slot, because the one thing this component exists to guarantee\nis that it reads identically everywhere it appears. A `variant=\"attribution\"`\non `Badge` would invite callers to override exactly that; a dedicated\ncomponent makes it structurally impossible to.\n\nAlways rendered at the BOTTOM of AI-generated output, always shown (not\nremovable), linking to the AISquare home.\n\nShips as a matched pair with `attributionBadgeHtml()`\n(`../lib/attributionBadgeHtml`), which renders the same pill as an\ninline-styled HTML string for contexts where React/Tailwind isn't\navailable (exports, emails). Both forms share the label + mark-geometry\nconstants from that module so they can never drift apart.\n\n[…truncated — read the source file for the rest]","props":[],"propsType":"AttributionBadgeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AuthBackground","kind":"component","layer":"component","file":"src/components/AuthBackground.tsx","module":"AuthBackground","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthBackground - the logo-masked flickering-grid backdrop for the full-page auth stage.","doc":"AuthBackground - the logo-masked flickering-grid backdrop for the full-page\nauth stage.\n\nPorted from the unified app's `src/auth/FlickerGrid.tsx`: two panels (one\nbleeding off each edge) of softly flickering navy squares, clipped through\nthe AISquare logo mark via a `destination-in` composite so the mark reads as\na textured silhouette. Distinct from the existing `FlickeringGrid` (a\nfull-area square field) - this is the logo-clipped diamond the auth route\nmounts, hence its own component.\n\nSizing: the mark is a consistent viewport-derived size (so it is identical on\nlogin / signup / forgot / reset regardless of the card), and its vertical\ncenter follows the auth card via a `ResizeObserver` on the `.gs-card` hook\n`AuthCard` sets - so the diamond locks to the card as it grows (the password\npanel expanding) instead of clipping. Falls back to viewport-center when no\ncard is found.\n\nSSR-safe: every `window` / `document` / canvas access lives inside\n`useEffect`. Honors `prefers-reduced-motion` via `useReducedMotion()` - when\nthe user prefers reduced motion it paints a single static frame (texture\nstays, the strobe stops), exactly like `FlickeringGrid`.\n\n`aria-hidden` - purely decorative.\n\n  <AuthBackground />                      // default mark + navy squares\n  <AuthBackground logoSrc=\"/logo-mark.png\" color=\"hsl(var(--primary))\" />","props":[{"name":"logoSrc","type":"string","required":false,"doc":"URL of the logo mark used as the clip mask."},{"name":"color","type":"string","required":false,"doc":"Square colour."},{"name":"maxOpacity","type":"number","required":false,"doc":"Peak square opacity (0 to 1)."}],"propsType":"AuthBackgroundProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthCard","kind":"component","layer":"component","file":"src/components/AuthCard.tsx","module":"AuthCard","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthCard - the branded card the auth route renders inside `AuthShell`.","doc":"AuthCard - the branded card the auth route renders inside `AuthShell`.\n\nThe `max-w-[460px] bg-surface border border-hairline rounded-2xl shadow-lift`\ncard + logo header that the unified AuthScreen / ForgotPassword /\nResetPassword each hand-built (and ResetPassword half-extracted into a local\n`Shell`). Re-expressed in brand tokens (`bg-card`, `border-border`,\n`shadow-lift`). The consumer fills the body with the auth slot atoms\n(`AuthFieldRow`, `PasswordInput`, `AuthErrorAlert`, `AuthBadge`,\n`PasswordRequirements`) plus `OAuthProviderButtons` / `SuccessState`.\n\nSets the `.gs-card` hook automatically so `AuthBackground` can lock its\nlogo-mask diamond onto the card and follow it as the body grows.\n\nMotion: mounts with `transitions.surface` (opacity + a small `y` lift),\nreplacing the unified `fadeIn 0.22s`. Honors `prefers-reduced-motion` via\n`useReducedMotion()` - reduced motion mounts at the final state with no\nspring. The stage's own fade lives on `AuthShell`.\n\n  <AuthShell>\n    <AuthCard logoSrc=\"/logo-blue.png\">\n      <h2>Sign in to your account</h2>\n      ...\n    </AuthCard>\n  </AuthShell>","props":[{"name":"logoSrc","type":"string | null","required":false,"doc":"Logo shown in the card header."},{"name":"logoAlt","type":"string","required":false,"doc":"Alt text for the logo."},{"name":"maxWidth","type":"number","required":false,"doc":"Max card width in px."},{"name":"animate","type":"boolean","required":false,"doc":"Animate the card-mount spring."}],"propsType":"AuthCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_OAUTH_PROVIDERS","kind":"component","layer":"component","file":"src/components/AuthModal.tsx","module":"AuthModal","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default OAuth providers.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthModal","kind":"component","layer":"component","file":"src/components/AuthModal.tsx","module":"AuthModal","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthModal — reusable sign-in modal for AISquare apps.","doc":"AuthModal — reusable sign-in modal for AISquare apps.\n\nPurely presentational. Owns the UI (floating-label inputs, OAuth grid,\nerror display, animations, focus trap, keyboard handling) but delegates\nall logic to the consumer via callbacks:\n\n- `onEmailLogin(email, password)` — consumer calls their login API\n- `onOAuthClick(providerId)` — consumer builds the OAuth URL and redirects\n- `onForgotPassword` / `onCreateAccount` — optional navigation callbacks\n\nConsumer also controls visibility (`open`) and passes back error/loading\nstate (`errorMessage`, `isSubmitting`). This keeps the component free of\nRedux, API clients, env vars, and query caches.","props":[{"name":"open","type":"boolean","required":true,"doc":"Controls visibility of the modal."},{"name":"onClose","type":"() => void","required":true,"doc":"Called when the user requests to close the modal (backdrop click, Escape, close button)."},{"name":"onEmailLogin","type":"(email: string, password: string) => void | Promise<void>","required":true,"doc":"Called when the user submits the email/password form."},{"name":"onOAuthClick","type":"(providerId: string) => void | Promise<void>","required":false,"doc":"Called when the user clicks an OAuth provider button."},{"name":"onForgotPassword","type":"() => void","required":false,"doc":"Called when \"Forgot password?\" is clicked."},{"name":"onCreateAccount","type":"() => void","required":false,"doc":"Called when \"Create your account\" is clicked."},{"name":"oauthProviders","type":"OAuthProviderConfig[]","required":false,"doc":"Which OAuth providers to show."},{"name":"canDismiss","type":"boolean","required":false,"doc":"When false, the close button is hidden and backdrop click is disabled."},{"name":"logoSrc","type":"string","required":false,"doc":"Brand logo URL shown at the top of the modal."},{"name":"logoClassName","type":"string","required":false,"doc":"Additional class names for the logo image element."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading text."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Subtext below the heading."},{"name":"errorMessage","type":"string | null","required":false,"doc":"Error message to display."},{"name":"isSubmitting","type":"boolean","required":false,"doc":"Loading state."},{"name":"animate","type":"boolean","required":false,"doc":"Mount/unmount animation."},{"name":"termsUrl","type":"string | null","required":false,"doc":"URL for the Terms of Service link."},{"name":"privacyUrl","type":"string | null","required":false,"doc":"URL for the Privacy Policy link."},{"name":"className","type":"string","required":false,"doc":"Additional class names for the outer container."}],"propsType":"AuthModalProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthShell","kind":"component","layer":"component","file":"src/components/AuthShell.tsx","module":"AuthShell","primary":true,"importPaths":["@aisquare/ui"],"category":"Auth","since":"v1.4.0","demoId":"auth-shell","summary":"AuthShell - the full-page stage the auth ROUTE mounts (login / signup / forgot-password / reset-password).","doc":"AuthShell - the full-page stage the auth ROUTE mounts (login / signup /\nforgot-password / reset-password). Distinct from `AuthModal`, which is the\ndismissible overlay (focus-trap + floating labels). Both coexist: reach for\n`AuthModal` to interrupt a logged-out user mid-flow, and `AuthShell` for the\ndedicated `/login`-style page.\n\nReproduces the scaffold the unified AuthScreen / ForgotPassword /\nResetPassword each copy-pasted: a `fixed inset-0 z-[300]` viewport stage on\n`bg-background`, a cheap CSS fade-in, and a safe-centered, scrollable column.\n`[justify-content:safe_center]` matters - it keeps a tall card scrollable\nfrom the top on short viewports instead of clipping its header.\n\nBackground slot (default `\"logo-mask\"`):\n  - `\"logo-mask\"` - the logo-clipped flickering diamond (`AuthBackground`),\n    bleeding off each edge and vertically locked to the card. This is the one\n    the unified app uses.\n  - `\"grid\"`      - the full-area `FlickeringGrid` field (re-tints per theme).\n  - `\"none\"`      - flat `bg-background`, no canvas.\n  - any `ReactNode` - your own backdrop, rendered behind the column.\n\n[…truncated — read the source file for the rest]","props":[{"name":"background","type":"\"logo-mask\" | \"grid\" | \"none\" | React.ReactNode","required":false,"doc":"Backdrop behind the centered column."},{"name":"logoSrc","type":"string","required":false,"doc":"Logo mark URL forwarded to the `\"logo-mask\"` background."},{"name":"columnClassName","type":"string","required":false,"doc":"Extra classes on the safe-centered scroll column (the card's container)."}],"propsType":"AuthShellProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AvailabilityInput","kind":"component","layer":"component","file":"src/components/AvailabilityInput.tsx","module":"AvailabilityInput","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"availability-input","summary":"AvailabilityInput — a debounced slug / name field with a live status glyph and one-tap \"apply this suggestion\".","doc":"AvailabilityInput — a debounced slug / name field with a live status glyph\nand one-tap \"apply this suggestion\". The consolidation of the studio\ncustom-URL field, the workspace-name field, and the account-username field,\nwhich each hand-rolled the same debounce, status state machine, suggestion\nwiring, and (in two of three copies) off-brand hex.\n\nIt is a thin shell over the brand `Input` primitive plus\n`useDebouncedAvailabilityCheck` (the debounce + AbortController/request-id\nout-of-order guard + tri-state machine). The trailing glyph morphs\nidle -> spinner (checking) -> check (available) -> cross (taken) ->\nwarn (error) through an `AnimatePresence` keyed on status; under\n`prefers-reduced-motion` the swap and the suggestion entrance become instant\nopacity toggles (no spring, no rise).\n\nWhat lives here vs. what stays in the consumer:\n  - The field owns: the framed input (optional `prefix` / `suffix`\n    adornments such as `.aisquare.studio`), the focus ring, the status glyph,\n    the `aria-live` status row, and the suggestion-apply UI.\n  - The consumer owns: the transport (`checkAvailability`, injected, never\n    service-imported), any client-side sanitization (`sanitize`) and sync\n    validation (`validate`), and persistence.\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"string","required":false,"doc":"Current value (controlled)."},{"name":"onChange","type":"(value: string) => void","required":false,"doc":"Receives the next value on every keystroke and on suggestion-apply."},{"name":"checkAvailability","type":"( value: string, signal?: AbortSignal, ) => Promise<{ available: boolean; suggested?: string; message?: string }>","required":true,"doc":"Injected availability transport — required, never a service import."},{"name":"getAvailability","type":"(res: { available: boolean; suggested?: string; message?: string; }) => AvailabilityResult","required":false,"doc":"Adapt a non-default response onto `{ available, suggestion?, message?"},{"name":"sanitize","type":"(raw: string) => string","required":false,"doc":"Sync sanitizer run on every keystroke before `onChange` (e.g."},{"name":"validate","type":"(value: string) => string | null","required":false,"doc":"Sync client rule returning an error string, or null when valid."},{"name":"transform","type":"(value: string) => string","required":false,"doc":"Normalize the value before compare / fire (e.g."},{"name":"delay","type":"number","required":false,"doc":"Stillness before firing, in ms."},{"name":"minLength","type":"number","required":false,"doc":"Below this length nothing fires; the field rests at idle."},{"name":"minRecommended","type":"number","required":false,"doc":"Soft nudge threshold — values shorter than this draw a \"short names are cool\" hint."},{"name":"skipWhenEqualTo","type":"string","required":false,"doc":"The current persisted value, so re-saving it unchanged never flags \"taken\"."},{"name":"prefix","type":"React.ReactNode","required":false,"doc":"Leading adornment inside the frame (e.g."},{"name":"suffix","type":"React.ReactNode","required":false,"doc":"Trailing adornment inside the frame (e.g."},{"name":"suggestionStyle","type":"SuggestionStyle","required":false,"doc":"Inline-link (default) vs."},{"name":"onApplySuggestion","type":"(value: string) => void","required":false,"doc":"Called when the user applies a suggestion (after `onChange` fires with it)."},{"name":"onStatusChange","type":"(status: AvailabilityStatus) => void","required":false,"doc":"Mirror of fe-react's `onUrlValidationChange` — fires on every status transition."},{"name":"onErrorTreatAs","type":"ErrorTreatAs","required":false,"doc":"Whether a flaky check blocks (default \"error\") or passes (\"available\")."},{"name":"wrapperClassName","type":"string","required":false,"doc":"Override the wrapper className (not the inner input)."},{"name":"hintClassName","type":"string","required":false,"doc":"className for the status / hint row under the field."}],"propsType":"AvailabilityInputProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BorderGlow","kind":"component","layer":"component","file":"src/components/BorderGlow.tsx","module":"BorderGlow","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"BorderGlow — steady halo around the perimeter of a surface, optionally breathing.","doc":"BorderGlow — steady halo around the perimeter of a surface, optionally\nbreathing.\n\nAdapted from React Bits Pro `@reactbits-starter/border-glow-tw`,\nre-implemented against pretty's anatomy. Sibling to the existing\n`<BorderBeam>` (used internally on `<Badge variant=\"premium\">`):\n\n- **BorderBeam** — sweeping bright arc rotating around the border\n  (an \"earned attention\" treatment).\n- **BorderGlow** — steady or pulsing halo around the perimeter (an\n  \"active / special / stay-here\" treatment).\n\nThe two compose: `<BorderBeam>` wraps `<BorderGlow>` (or vice versa) on\nthe same host renders a \"premium + active\" state cleanly.\n\nGlow color drives from theme tokens (`--primary` / `--accent` /\n`--success` / `--warning`) — never a hardcoded hex. Pulse animation\nreuses pretty's preset `animate-pulse-glow` keyframe by overriding\n`--shadow-glow` + `--shadow-glow-aurora` per-instance, so the same\nkeyframe drives any color without per-instance keyframe duplication.\n\nSSR-safe — `useReducedMotion()` resolves on the client and collapses\nthe pulse to a static glow (the affordance stays visible). For\n`pulse={false}`, the static glow renders without animation regardless.\n\n    <BorderGlow color=\"primary\" intensity=\"default\">\n      <StudioCard />\n    </BorderGlow>\n\n    <BorderGlow color=\"success\" pulse={false} asChild>\n      <Link to=\"/upgrade\">Upgrade</Link>\n    </BorderGlow>","props":[{"name":"intensity","type":"\"subtle\" | \"default\" | \"strong\"","required":false,"doc":"Glow strength."},{"name":"color","type":"\"primary\" | \"accent\" | \"success\" | \"warning\"","required":false,"doc":"Theme token that drives the halo color."},{"name":"pulse","type":"boolean","required":false,"doc":"Pulse the glow between dim and bright."},{"name":"track","type":"\"none\" | \"cursor\"","required":false,"doc":"How the glow is anchored: - `\"none\"` (default) — the steady / pulsing perimeter halo (box-shadow)."},{"name":"asChild","type":"boolean","required":false,"doc":"Forward props onto a single slotted child instead of rendering a wrapping div."}],"propsType":"BorderGlowProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BrandTile","kind":"component","layer":"component","file":"src/components/BrandTile.tsx","module":"BrandTile","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"brand-tile","summary":"BrandTile — the brand anchor tile.","doc":"BrandTile — the brand anchor tile.\n\nBrandTile is the one surface BrandTile renders itself: a steel-toned,\n`rounded-2xl` square (matching `Card`'s post-redesign chrome) holding the\n`<AikoMark>` glyph — a real CSS `border`, no clip-path. The navy steel fill\nstays as the gradient substrate (`--steel-bg`/`-to`); the mark itself\nrenders `tone=\"primary\"` so it contributes no competing chrome.\n\nCSS vars: `--steel-bg`, `--steel-bg-to`, `--steel-fg`, `--border`.\nDesign ref: design-handoff.md §5.","props":[{"name":"size","type":"number","required":false,"doc":"Tile size in px."}],"propsType":"BrandTileProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"captionVariants","kind":"variants","layer":"component","file":"src/components/Caption.tsx","module":"Caption","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Caption — mono uppercase tracked text for section labels.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Caption","kind":"component","layer":"component","file":"src/components/Caption.tsx","module":"Caption","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Caption — mono uppercase tracked text for section labels.","doc":"Caption — mono uppercase tracked text for section labels.\n\nUsed for: ACTIVE, PAUSED, SEALED, ITER LOAD, QUEUE · JATIN, WORKLOG · w24,\nand any surface that needs a de-emphasised category label or eyebrow.\n\nReads `--font-mono` (via Tailwind's `font-mono`) and `--muted-foreground`\nso it inherits the consumer's typography and theme tokens automatically.\nThis is the canonical eyebrow consumer of the type system:\n`font-mono` resolves to the system mono stack with `tabular-nums` on, matching the\npreset's `text-eyebrow` token (11px / 0.12em / 600 mono).\n\nMigrated from AISquare Office plugins/office/web/src/components/primitives/Caption.tsx\n(office-visual-parity iter-05 / iter-13).","props":[{"name":"as","type":"\"div\" | \"span\"","required":false,"doc":"Render as a block div (default) or an inline span."}],"propsType":"CaptionProps","variants":{"variants":{"size":["sm","default","lg"],"as":["div","span"]},"defaults":{"size":"default","as":"div"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CardCommandBar","kind":"component","layer":"component","file":"src/components/CardCommandBar.tsx","module":"CardCommandBar","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CardCommandBar — the dedicated zone below a card's image that holds the card's \"command\" surface: a brief summary of details on the left, an `<AikoMark>`-led expandable trigger on the right, and an action row that unfolds inline when the tr","doc":"CardCommandBar — the dedicated zone below a card's image that holds the\ncard's \"command\" surface: a brief summary of details on the left, an\n`<AikoMark>`-led expandable trigger on the right, and an action row that\nunfolds inline when the trigger is clicked. Replaces the 3-dot menu pattern\nwith something more on-brand and discoverable.\n\nThe bar has two states:\n- **Collapsed** (default): `[AIKO ▾] summary text`. The AIKO mark + chevron\n  are the click target — the rest of the bar stays passive so the card's\n  own click handler still fires from the summary area.\n- **Expanded**: the action row drops in below the summary line. Smooth\n  height auto motion via Framer; static crossfade under reduced-motion.\n\nUse either `actions` (declarative list — the bar renders the buttons) or\n`children` (custom layout) for the expanded content. If both are provided,\n`children` wins.\n\n  <CardCommandBar\n    summary={<>12 experiences · 1.2k followers</>}\n    actions={[\n      { label: \"Manage\", icon: <Settings />, onSelect: ... },\n      { label: \"Promote\", icon: <Megaphone />, onSelect: ... },\n      { label: \"Delete\", icon: <Trash2 />, onSelect: ..., variant: \"destructive\" },\n    ]}\n  />\n\nContainer caveats: the trigger button calls `e.stopPropagation()` so a\nsurrounding `<Card onClick=...>` doesn't fire the primary action when the\nuser is just opening the menu. Action buttons do the same.","props":[{"name":"summary","type":"React.ReactNode","required":false,"doc":"Inline summary text shown alongside the AIKO trigger."},{"name":"actions","type":"CardCommandAction[]","required":false,"doc":"Action descriptors."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Custom expanded content."},{"name":"defaultExpanded","type":"boolean","required":false,"doc":"Initial expanded state."},{"name":"expanded","type":"boolean","required":false,"doc":"Controlled expanded state."},{"name":"onExpandedChange","type":"(expanded: boolean) => void","required":false,"doc":"Notified when the bar expands or collapses."},{"name":"noTrigger","type":"boolean","required":false,"doc":"Hide the AIKO trigger entirely."},{"name":"triggerLabel","type":"string","required":false,"doc":"Accessible label for the trigger button."},{"name":"triggerIcon","type":"React.ReactNode","required":false,"doc":"Replace the default `<AikoMark>` trigger glyph with custom content."},{"name":"summaryRevealOnHover","type":"boolean","required":false,"doc":"Show the `summary` only when an ancestor with the `group` class is hovered or focused; fade in via `group-hover:opacity-100`."}],"propsType":"CardCommandBarProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CardCommandSummary","kind":"component","layer":"component","file":"src/components/CardCommandBar.tsx","module":"CardCommandBar","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"Array<React.ReactNode | null | undefined>","required":true,"doc":"Each item renders as a span; consecutive items are separated by a dot."}],"propsType":"CardCommandSummaryProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CardGrid","kind":"component","layer":"component","file":"src/components/CardGrid.tsx","module":"CardGrid","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.6.0","demoId":"card-grid","summary":"CardGrid — the generic card-grid engine for @aisquare/ui.","doc":"CardGrid — the generic card-grid engine for @aisquare/ui.\n\nOwns the canonical responsive grid rhythm, a `popLayout` reflow, a per-row\nstaggered spring entrance, a crossfade from the loading skeletons to the real\ncards, and count-matched skeletons so the layout never collapses while a\nresult set loads. It is the engine the existing type-specific grids\n(`ExperienceCardGrid` / `StudioCardGrid` / `CollectionCardGrid`) will fold\ninto; it is shipped additively here (it does not touch those grids, so their\npublished API is unchanged) and the consolidation is a follow-on.\n\nBehaviour:\n- **Per-row staggered entrance.** Cells fan in by column *within each row*\n  (`delay: (i % cols) * 0.04`), so the whole grid settles in roughly one beat\n  instead of rippling diagonally from a single global ramp. Each cell lands\n  with a short scale+fade and a layout spring (stiffness 260 / damping 30).\n  Motion technique referenced from React Bits Pro `ecommerce-6` (per-row\n  modulo stagger + flat spring transition); reimplemented, not copied. The\n  constants also match the in-house `card-in` token in `tailwind.preset.ts`.\n- **Crossfade.** One `AnimatePresence` wraps BOTH the skeleton set and the\n  live set, so on a loading -> content swap the skeletons exit as the cards\n  enter, instead of an abrupt branch switch. The skeleton cells share the\n  same per-row stagger so the loading and loaded states speak\n\n[…truncated — read the source file for the rest]","props":[{"name":"items","type":"T[]","required":true,"doc":null},{"name":"renderItem","type":"(item: T, index: number) => React.ReactNode","required":true,"doc":"Render one card for an item."},{"name":"getKey","type":"(item: T, index: number) => React.Key","required":true,"doc":"Stable key per item (drives the reflow diff)."},{"name":"columns","type":"keyof typeof GRID_COLUMNS","required":false,"doc":"Responsive column rhythm."},{"name":"animate","type":"boolean","required":false,"doc":"Animate the reflow + entrance (default true)."},{"name":"loading","type":"boolean","required":false,"doc":"Show skeletons instead of items."},{"name":"empty","type":"React.ReactNode","required":false,"doc":"Rendered when the result set is legitimately zero-length."},{"name":"skeleton","type":"React.ReactNode","required":false,"doc":"Skeleton rendered per slot while loading."},{"name":"skeletonCount","type":"number","required":false,"doc":"Skeleton count."},{"name":"transitionKey","type":"React.Key","required":false,"doc":"Changing this replays the staggered fill-from-empty entrance."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"CardGridProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Celebration","kind":"component","layer":"component","file":"src/components/Celebration.tsx","module":"Celebration","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Celebration — the declarative wrapper around `celebrate()` / `useCelebrate()`.","doc":"Celebration — the declarative wrapper around `celebrate()` / `useCelebrate()`.\n\nDrop it where a success *state* lives and drive it off the same boolean the UI\nalready flips on publish success. The confetti is edge-triggered off `trigger`\n(falsy → truthy) so it fires exactly once per success, never on every re-render:\n\n  <Celebration trigger={justPublished} intensity=\"shower\" onCelebrate={announce}>\n    <PublishSuccess viewHref={url} />\n  </Celebration>\n\nReduced motion: the confetti is dropped (see `useCelebrate`) but `children` and\n`onCelebrate` are untouched — the emotional peak degrades to the calm panel,\nnever to nothing.\n\nRenders `children` verbatim in a fragment — no wrapper DOM — so it never\ndisturbs the consumer's layout.","props":[{"name":"trigger","type":"boolean","required":false,"doc":"Edge-triggered fire signal."},{"name":"fireOnMount","type":"boolean","required":false,"doc":"Fire once on mount — for a surface that mounts already-succeeded."},{"name":"intensity","type":"CelebrateIntensity","required":false,"doc":"Burst intensity: `sparkle` · `burst` (default) · `shower`."},{"name":"ignoreReducedMotion","type":"boolean","required":false,"doc":"Run the burst even under `prefers-reduced-motion`."},{"name":"onCelebrate","type":"() => void","required":false,"doc":"Fired right after the burst is dispatched — AND still fired when the burst is skipped under reduced motion, so a caller can hang the calm *state* change (panel swap, toast) off the same signal and keep it when motion is off."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Optional content rendered verbatim (e.g."}],"propsType":"CelebrationProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ChatInput","kind":"component","layer":"component","file":"src/components/ChatInput.tsx","module":"ChatInput","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ChatInput — chat-style input with autoresize + animated send button.","doc":"ChatInput — chat-style input with autoresize + animated send button.\n\nComposed from ActionInput (multiline + chat variant). The trailing action\nis a Send button that animates in when there's content. Spinner state\ncontrolled via `isSending` for \"we're thinking...\" moments.\n\nOptional voice input (Web Speech API, feature-detected + SSR-safe) appends\ndictated text to the composer when `voice` is enabled. Optional file picker\nreveals a paperclip leading-action and fires `onPickFiles` for the consumer\nto upload + manage chips outside the primitive — chips render via the\n`attachments` slot above the input.\n\nDefaults baked in (override per-call):\n- Placeholder: \"Type a message\"\n- Submits on Enter (Shift+Enter inserts newline)\n- maxRows: 8\n- Send button is icon-sized, motion-disabled (its appearance is the motion)\n- With attachments: send is allowed even when text is empty (the consumer\n  may still want to send the file).","props":[{"name":"onSubmit","type":"(value: string) => void","required":true,"doc":"Called with the trimmed value on Enter or Send-button click"},{"name":"isSending","type":"boolean","required":false,"doc":"Show spinner inside Send instead of the arrow (server processing)"},{"name":"submitLabel","type":"string","required":false,"doc":"Aria label for the send button"},{"name":"leadingActions","type":"React.ReactNode","required":false,"doc":"Custom slot rendered to the LEFT of the send button."},{"name":"modeToggle","type":"React.ReactNode","required":false,"doc":"Opt-in slot for a mode / model control (e.g."},{"name":"sendIcon","type":"React.ReactNode","required":false,"doc":"Override the icon inside the send button."},{"name":"voice","type":"| boolean | { onStart?: () => void; onStop?: () => void; onTranscript?: (text: string) => void; onError?: (code: string) => void; }","required":false,"doc":"Enable Web Speech voice dictation."},{"name":"voiceLabel","type":"{ start?: string; stop?: string }","required":false,"doc":"Aria label for the mic button."},{"name":"onPickFiles","type":"(files: File[]) => void","required":false,"doc":"When provided, renders a paperclip leading-action that opens a hidden file picker."},{"name":"accept","type":"string","required":false,"doc":"`accept` attribute for the file picker."},{"name":"multipleFiles","type":"boolean","required":false,"doc":"Allow multi-select in the file picker."},{"name":"attachLabel","type":"string","required":false,"doc":"Aria label for the attach button."},{"name":"attachments","type":"React.ReactNode","required":false,"doc":"Attachment chips slot — renders ABOVE the input row inside the same vertical stack."},{"name":"expandable","type":"boolean","required":false,"doc":"Show a top-right Maximize2 / Minimize2 toggle that switches the textarea between a tight collapsed height and a tall expanded height."},{"name":"expanded","type":"boolean","required":false,"doc":"Controlled expanded state."},{"name":"onExpandedChange","type":"(next: boolean) => void","required":false,"doc":"Notified when the user toggles."},{"name":"collapsedMaxRows","type":"number","required":false,"doc":"maxRows applied while collapsed."},{"name":"expandedMaxRows","type":"number","required":false,"doc":"maxRows applied while expanded."},{"name":"expandedMinHeight","type":"number | string","required":false,"doc":"CSS min-height applied to the textarea while expanded so the typing surface always has room even when content is short."},{"name":"expandLabel","type":"{ collapse?: string; expand?: string }","required":false,"doc":"Aria labels for the toggle."},{"name":"showExpandToggleWhen","type":"\"overflow\" | \"always\"","required":false,"doc":"When to show the expand / collapse toggle."},{"name":"glassFrame","type":"boolean","required":false,"doc":"Wrap the composer in a `<GlassInputFrame>` gradient ring."},{"name":"glassColorScheme","type":"\"brand\" | \"studio\"","required":false,"doc":"Color scheme for the GlassInputFrame gradient ring."},{"name":"restoreFocusOnUnblock","type":"boolean","required":false,"doc":"When the composer transitions from \"blocked\" (`disabled=true` or `isSending=true`) back to \"unblocked\", return focus to the textarea so the user can keep typing without re-clicking."}],"propsType":"ChatInputProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ChatLog","kind":"component","layer":"component","file":"src/components/ChatLog.tsx","module":"ChatLog","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ChatLog — scroll container for a conversation of `<MessageRow>` children.","doc":"ChatLog — scroll container for a conversation of `<MessageRow>` children.\n\nOwns the right CSS for an append-only chat surface: vertical overflow, a\n`scrollbar-gutter: stable` reserve so the column doesn't jiggle when chips\nappear, and `overflow-anchor: auto` so newly-rendered messages don't yank\nthe scroll position when the user is reading older content. Wraps children\nin a flex column with consistent vertical rhythm.\n\nComposition:\n\n  const { scrollRef, sentinelRef, isAtBottom, scrollToBottom } =\n    useScrollToBottom<HTMLDivElement, HTMLDivElement>();\n\n  <ChatLog\n    ref={scrollRef}\n    onLoadOlder={loadOlder}\n    isLoadingOlder={isLoadingOlder}\n    empty={<EmptyState title=\"Say hi to AIKO\" />}\n  >\n    {messages.map(m => <MessageRow key={m.id} {...m} />)}\n    <div ref={sentinelRef} aria-hidden />\n  </ChatLog>\n  <ScrollToBottomButton visible={!isAtBottom} onClick={() => scrollToBottom()} />\n\nPagination: pass `onLoadOlder` to render a 1px sentinel at the top of the\nlog; when the user scrolls it into view the callback fires once. Pass\n`isLoadingOlder` to surface a small `<Spinner>` above the messages while\nthe older page is loading.\n\nEmpty state: pass an `empty` slot to render when there are no children.\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactNode","required":false,"doc":"Conversation rows."},{"name":"empty","type":"React.ReactNode","required":false,"doc":"Empty-state slot."},{"name":"onLoadOlder","type":"() => void","required":false,"doc":"Pagination hook — fires once when the top sentinel intersects the scroller."},{"name":"isLoadingOlder","type":"boolean","required":false,"doc":"When true, renders a small AIKO-voiced \"Loading earlier messages…\" affordance at the top of the log."},{"name":"loadingOlderLabel","type":"string","required":false,"doc":"Override the loading-older copy."},{"name":"loading","type":"boolean","required":false,"doc":"The transcript itself has not arrived yet — renders alternating message silhouettes in place of the rows."},{"name":"loadingRows","type":"number","required":false,"doc":"Silhouette count while `loading`."},{"name":"loadingLabel","type":"string","required":false,"doc":"Accessible name for the loading region."}],"propsType":"ChatLogProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CitationRow","kind":"component","layer":"component","file":"src/components/CitationRow.tsx","module":"CitationRow","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CitationRow — footnote-style anchor + hover preview for cited resources surfaced by AIKO chat.","doc":"CitationRow — footnote-style anchor + hover preview for cited\nresources surfaced by AIKO chat.\n\nTwo variants for two render contexts:\n\n  - `anchor` (default) — inline `[N]` superscript-style chip the chat\n    stream slips between sentences. Hover / focus opens a Radix\n    Popover with the full row content (title, summary, thumbnail).\n    Click activates the citation (`onActivate` or `href`). Sized to\n    drop into prose without breaking line height.\n\n  - `row` — the full citation card on its own line. Used in a\n    \"Sources\" list at the bottom of an assistant message, or as a\n    standalone reference in any consumer surface. Renders the same\n    content the popover holds, just inline.\n\nBoth variants share the same content vocabulary:\n  - `index` — the citation number (or any `ReactNode`); `[1]`, `[1.2]`,\n    a custom badge, etc.\n  - `title` — the resource's display name. Required.\n  - `summary?` — short one-line description.\n  - `thumbnail?` — small image (URL or `ReactNode`) rendered before the\n    title; truthy `string` renders as `<img>` with role-aware `alt`.\n  - `badge?` — resource type or scope chip (e.g., `\"quest\"`); accepts\n    a string or full `ReactNode` so consumers can drop in\n    `<ExperienceTypeBadge>`-style siblings.\n\n[…truncated — read the source file for the rest]","props":[{"name":"index","type":"React.ReactNode","required":true,"doc":"Citation number or label rendered in the anchor chip and as the row's leading marker."},{"name":"title","type":"string","required":true,"doc":"Resource title."},{"name":"summary","type":"string","required":false,"doc":"Optional short description shown beneath the title in the row body."},{"name":"thumbnail","type":"React.ReactNode","required":false,"doc":"Optional thumbnail."},{"name":"badge","type":"React.ReactNode","required":false,"doc":"Optional badge (resource type, scope, source)."},{"name":"onActivate","type":"(event: React.MouseEvent<HTMLElement>) => void","required":false,"doc":"Click handler."},{"name":"href","type":"string","required":false,"doc":"Optional href."},{"name":"variant","type":"CitationRowVariant","required":false,"doc":"Visual treatment."},{"name":"asChild","type":"boolean","required":false,"doc":"Slot through the anchor or row to a custom child (e.g., a router `<Link>`)."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the popover entrance animation (anchor variant only)."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Override the popover's anchored side."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Override the accessible name applied to the anchor chip."},{"name":"renderPreview","type":"React.ReactNode","required":false,"doc":"Replace the popover preview body (anchor variant only)."}],"propsType":"CitationRowProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"citationAnchorVariants","kind":"const","layer":"component","file":"src/components/CitationRow.tsx","module":"CitationRow","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"citationRowVariants","kind":"const","layer":"component","file":"src/components/CitationRow.tsx","module":"CitationRow","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollapsedMessageBody","kind":"component","layer":"component","file":"src/components/CollapsedMessageBody.tsx","module":"CollapsedMessageBody","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CollapsedMessageBody — inline collapse/expand for long message bodies.","doc":"CollapsedMessageBody — inline collapse/expand for long message bodies.\n\nIf children's plain-text length is <= threshold, renders children directly\nwith no collapse chrome. Otherwise shows a one-line headline + \"Show more\"\ntoggle. Body DOM is UNMOUNTED when collapsed (not display:none) so React\ntrees with many off-screen rows stay light.\n\nHeadline auto-extraction: walks children for the first text node, strips\nleading markdown headers (# / ## / ### etc.), takes the first line, trims\nto 140 chars + \"...\" if longer. Override via the `headline` prop.\n\nA11y: toggle button has aria-expanded + aria-controls. Body region has a\nmatching id so assistive tech connects the two.","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"headline","type":"string","required":false,"doc":"One-line summary shown when collapsed."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Render expanded on first mount."},{"name":"threshold","type":"number","required":false,"doc":"Plain-text character count above which the collapse chrome appears."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"CollapsedMessageBodyProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollectionCardSkeleton","kind":"component","layer":"component","file":"src/components/CollectionCard.tsx","module":"CollectionCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null}],"propsType":"CollectionCardSkeletonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollectionCardGrid","kind":"component","layer":"component","file":"src/components/CollectionCard.tsx","module":"CollectionCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"CollectionCardEntity[]","required":true,"doc":null},{"name":"renderItem","type":"(collection: CollectionCardEntity, index: number) => React.ReactNode","required":true,"doc":null},{"name":"animate","type":"boolean","required":false,"doc":null},{"name":"columns","type":"\"2\" | \"3\" | \"4\"","required":false,"doc":null},{"name":"loading","type":"boolean","required":false,"doc":null},{"name":"skeletonCount","type":"number","required":false,"doc":null}],"propsType":"CollectionCardGridProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollectionCard","kind":"component","layer":"component","file":"src/components/CollectionCard.tsx","module":"CollectionCard","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"collection-card","summary":"CollectionCard — entity card for AI Studio Collections.","doc":"CollectionCard — entity card for AI Studio Collections. Unique among the\nthree domain cards: instead of a cover image, the cover area renders an\nanimated `<Folder>` (adapted from React Bits) with the collection's first\nthree items as papers — cover thumbnails of experiences peek out of the\nfolder. Hovering nudges the papers up and skews the front flap; clicking\nthe folder fans the papers out for inspection.\n\nClick semantics:\n- Folder is its own click target (toggles open/close, stops propagation)\n- Clicking an open paper navigates to the collection (fires `onView`)\n- Card body click (title / description / footer button) → `onView`\n\nAIKO whispers a contextual hint on title hover — pass `aikoTooltip={false}`\nto opt out, or a custom string / node to override.\n\nSurface: composes the brand `Card`, so the plain `rounded-2xl` surface (a\nreal `border` + a real hover `box-shadow`) is INHERITED — this shell adds\nno border/box-shadow of its own. The grid `overflow-visible` only lets the\nfolder papers fan out past the cover; the card's `rounded-2xl` still shapes\nthe card silhouette. `CollectionCard.Skeleton` is hand-rolled (not via\n`Card`) so it applies the same recipe directly: `rounded-2xl` + `bg-card`\n+ a real `border border-[color:var(--cardBd,hsl(var(--border)/0.7))]`.","props":[{"name":"collection","type":"CollectionCardEntity","required":true,"doc":null},{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null},{"name":"mode","type":"\"manage\" | \"explore\" | \"community\"","required":true,"doc":null},{"name":"hover","type":"\"lift\" | \"glow\" | \"none\"","required":false,"doc":null},{"name":"onView","type":"() => void","required":false,"doc":"Primary card action — also fires on whole-card click."},{"name":"onEdit","type":"() => void","required":false,"doc":null},{"name":"onDelete","type":"() => void","required":false,"doc":null},{"name":"aikoTooltip","type":"React.ReactNode | false","required":false,"doc":"AIKO hover-tooltip helper."},{"name":"folderColor","type":"string","required":false,"doc":"Folder color (the front flap)."}],"propsType":"CollectionCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"COLOR_PICKER_PRESETS","kind":"component","layer":"component","file":"src/components/ColorPicker.tsx","module":"ColorPicker","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The donor palette (unified `MoodLighting` presets) — a sensible default row.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ColorPickerPopover","kind":"component","layer":"component","file":"src/components/ColorPicker.tsx","module":"ColorPicker","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ColorPicker.Popover — the controlled picker folded into the brand `<Popover>`.","doc":null,"props":[{"name":"value","type":"string","required":true,"doc":"Controlled hex value (`#rrggbb`)."},{"name":"onChange","type":"(hex: string) => void","required":true,"doc":"Fires with the next `#rrggbb` hex on every change."},{"name":"children","type":"React.ReactNode","required":true,"doc":"The popover trigger — wrapped with Radix `asChild`, so pass one element."},{"name":"align","type":"\"start\" | \"center\" | \"end\"","required":false,"doc":"Forwarded to Radix `PopoverContent`."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Forwarded to Radix `PopoverContent`."},{"name":"className","type":"string","required":false,"doc":"Extra classes on the popover content panel."}],"propsType":"ColorPickerPopoverProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ColorPicker","kind":"component","layer":"component","file":"src/components/ColorPicker.tsx","module":"ColorPicker","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"color-picker","summary":"ColorPicker — one accessible HSV color picker for the whole platform.","doc":"ColorPicker — one accessible HSV color picker for the whole platform.\n\nConsolidates three hand-rolled donor pickers (`unified:src/shell/MoodLighting`,\n`fe-react:.../ColorPickerPopover`, plus a third inline copy) that each\nreimplemented a global `mousemove`/`mouseup` drag loop with no touch, no\nkeyboard, and no a11y. The saturation square + hue strip are now\n[react-colorful](https://github.com/omgovich/react-colorful)'s\n`<HexColorPicker>` (pointer + touch + keyboard, ~2.8kB, zero deps), re-skinned\nto the brand via its documented class hooks; the hex field is its\n`<HexColorInput>` (sanitize + clamp built in, replacing the manual regex).\n\nOn top of react-colorful this adds the AISquare flavor: a branded hex field\nwith a leading `#` affordance, an optional eyedropper button (native\nEyeDropper API via {@link useEyeDropper}, omitted where unsupported), and an\noptional preset-swatch row. The companion {@link ColorPickerPopover}\n(`ColorPicker.Popover`) folds the whole thing into the brand `<Popover>` with\na spring-in, matching fe-react's controlled + popover shape.\n\nColor math lives in `colorUtils` (`hexToRgb` / `rgbToHex` / `hexToHSV` /\n`hsvToHex`), exported from the same package; the picker itself keeps its\nstate as the hex string react-colorful manages and only reaches for\n`colorUtils` to compare a value against the presets (`normalizeHex`).\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"string","required":false,"doc":"Controlled hex value (`#rrggbb`)."},{"name":"defaultValue","type":"string","required":false,"doc":"Initial hex value when uncontrolled."},{"name":"onChange","type":"(hex: string) => void","required":false,"doc":"Fires with the next `#rrggbb` hex on every change."},{"name":"presets","type":"readonly string[]","required":false,"doc":"Preset swatches shown in a row under the picker."},{"name":"showEyedropper","type":"boolean","required":false,"doc":"Show the eyedropper button."}],"propsType":"ColorPickerProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"filterCommands","kind":"function","layer":"component","file":"src/components/CommandPalette.tsx","module":"CommandPalette","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Case-insensitive substring match on `label` + `keywords`, order preserved.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"wrapIndex","kind":"function","layer":"component","file":"src/components/CommandPalette.tsx","module":"CommandPalette","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Move a selection index by `delta` within `[0, len)`, wrapping at both ends (down from the last lands on the first, and vice versa).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CommandPalette","kind":"component","layer":"component","file":"src/components/CommandPalette.tsx","module":"CommandPalette","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CommandPalette — a keyboard-first, surface-agnostic command launcher (⌘K-style).","doc":"CommandPalette — a keyboard-first, surface-agnostic command launcher\n(⌘K-style). Renders + drives an INJECTED `commands` list with full\nin-palette keyboard nav (type-to-filter, arrow-to-move with wrap,\nEnter-to-run, Esc-to-close) and dialog a11y. Commands are a prop, not a\nbaked-in list, so the same palette serves any surface — app shell\nnavigation, a document's block commands, an admin console's actions —\nwithout a rewrite; the host owns what commands exist and what they do,\nthis component owns finding + running one of them.\n\nComposes this library's modal idiom: `createPortal` to `document.body` +\n`role=\"dialog\"` + `useFocusTrap` (auto-focuses the first focusable element,\ntraps Tab, restores focus to whatever was focused before opening). Fully\ncontrolled via `open`/`onOpenChange` — mount it once per app (typically\nbehind your own global open-hotkey, e.g. Cmd/Ctrl-K) and hand it whatever\n`commands` are relevant to the current context.\n\n  const [open, setOpen] = useState(false);\n  <CommandPalette\n    open={open}\n    onOpenChange={setOpen}\n    commands={[\n      { id: \"new-doc\", label: \"New document\", hint: \"⌘N\", onSelect: createDoc },\n      { id: \"settings\", label: \"Open settings\", keywords: [\"preferences\"], onSelect: openSettings },\n    ]}\n  />","props":[{"name":"open","type":"boolean","required":true,"doc":"Controls visibility."},{"name":"onOpenChange","type":"(open: boolean) => void","required":true,"doc":"Called to open/close the palette (Escape, backdrop click, or a command running)."},{"name":"commands","type":"CommandItem[]","required":true,"doc":"The commands this palette searches and runs."},{"name":"placeholder","type":"string","required":false,"doc":"Input placeholder / accessible name for the search field."},{"name":"ariaLabel","type":"string","required":false,"doc":"Accessible name for the dialog and its listbox."},{"name":"className","type":"string","required":false,"doc":"Additional class names for the dialog panel."}],"propsType":"CommandPaletteProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"imageFromPaste","kind":"function","layer":"component","file":"src/components/CommentPopover.tsx","module":"CommentPopover","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Extract the first image from a paste event's clipboard items.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CommentPopover","kind":"component","layer":"component","file":"src/components/CommentPopover.tsx","module":"CommentPopover","primary":true,"importPaths":["@aisquare/ui"],"category":"Review & diff","since":"v1.5.0","demoId":"comment-popover","summary":"CommentPopover - a popover composer for adding a comment to an inline edit, a clause, or any attribution chip.","doc":"CommentPopover - a popover composer for adding a comment to an inline edit,\na clause, or any attribution chip. It folds the brand `<Popover>` into a\ncomment-specific shell:\n\n  - header: avatar + author name (caller-supplied, usually the current user)\n  - body:   auto-grow textarea with placeholder (\"Why this change?\")\n  - paste:  inline image-paste affordance - Cmd/Ctrl+V drops the clipboard\n            image into the composer; consumers supply `onUploadImage` to\n            persist the blob and return a public URL\n  - footer: Cancel / Post controls (Cmd/Ctrl+Enter also posts)\n\nComposition: it reuses the lib's own `Popover` / `PopoverTrigger` /\n`PopoverContent` (which portal, trap focus, dismiss on Escape + click\noutside, and pass `side` / `align` / `sideOffset` through to Radix) plus the\nbrand `Avatar`, `Button`, `Spinner`, and `Textarea` primitives. It does not\nimport `@radix-ui/react-popover` directly. The panel springs in via\n`motion/react`, gated on `useReducedMotion()` so reduced-motion users get a\nstatic surface.\n\nThe component is content-agnostic about *what* a comment is: it owns the UX,\nnot the persistence. `onSubmit` receives `{ text, imageUrl }`; the consumer\nwires it to the right endpoint. It imports no app/office data model, route,\nor service, and has no realtime / presence concern - those stay in the\nconsumer app, behind the injected seams.\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":"Trigger element - usually an attribution chip or \"Add comment\" button."},{"name":"authorAvatarUrl","type":"string | null","required":false,"doc":"Avatar URL of the comment author."},{"name":"authorName","type":"string","required":true,"doc":"Author display name."},{"name":"placeholder","type":"string","required":false,"doc":"Placeholder copy for the textarea."},{"name":"defaultValue","type":"string","required":false,"doc":"Seed the composer with existing text (e.g."},{"name":"onUploadImage","type":"(blob: Blob, file?: File) => Promise<string>","required":false,"doc":"Persist a pasted / uploaded image."},{"name":"onSubmit","type":"(payload: CommentPopoverSubmit) => void | Promise<void>","required":true,"doc":"Fires when the user posts."},{"name":"onCancel","type":"() => void","required":false,"doc":"Fires when the user clicks Cancel or dismisses without posting."},{"name":"open","type":"boolean","required":false,"doc":"Controlled open state."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Controlled open-change handler."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Side of the trigger to place the popover on."},{"name":"align","type":"\"start\" | \"center\" | \"end\"","required":false,"doc":"Alignment along that side."},{"name":"sideOffset","type":"number","required":false,"doc":"Px gap between trigger and popover."},{"name":"submitLabel","type":"string","required":false,"doc":"Submit button label."},{"name":"cancelLabel","type":"string","required":false,"doc":"Cancel button label."},{"name":"contentClassName","type":"string","required":false,"doc":"Class name for the popover content surface."}],"propsType":"CommentPopoverProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"composerHintVariants","kind":"variants","layer":"component","file":"src/components/ComposerHint.tsx","module":"ComposerHint","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ComposerHint","kind":"component","layer":"component","file":"src/components/ComposerHint.tsx","module":"ComposerHint","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"ComposerHint — the muted status line above a chat composer that explains, in words, why a send affordance is gated or close to a limit.","doc":"ComposerHint — the muted status line above a chat composer that explains, in\nwords, why a send affordance is gated or close to a limit.\n\nThe problem it solves: a gated control cannot explain itself. `title` on a\ndisabled button is browser-inconsistent and unreachable on touch, and the\nother affordances a composer gates (Enter, suggestion chips, interactive\nblocks) swallow the interaction silently. This is the one always-visible\nexplanation, sitting where the user is already looking.\n\nTHE LIVE REGION STAYS MOUNTED and only its content toggles. That is the whole\nreason this is a component rather than a `{cond && <p/>}` at each call site:\nscreen readers reliably announce text added to an EXISTING live region, but a\nregion injected together with its text is frequently missed. So the consumer\nrenders it unconditionally and passes nullish `children` when there is nothing\nto say — zero height, no announcement, region intact:\n\n  <ComposerHint tone=\"pending\">{uploading ? UPLOAD_WAIT_COPY : null}</ComposerHint>\n\nPolicy stays with the consumer. WHEN a hint shows and WHAT it says are product\nrules that want their own unit tests (an upload still in flight, a full\nattachment tray, a paste that lost characters at the cap), and they derive\nfrom the same predicate that gates `send` so the hint and the gate can never\ndisagree. This owns only the shape.\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactNode","required":false,"doc":"The hint copy."},{"name":"dot","type":"boolean","required":false,"doc":"Hide the leading dot (e.g."},{"name":"srOnlyText","type":"string | null","required":false,"doc":"A stable sentence for assistive tech when `children` changes too often to announce (a live counter)."},{"name":"loading","type":"boolean","required":false,"doc":"The hint's copy is still resolving (a policy that has to wait on a fetch, e.g."}],"propsType":"ComposerHintProps","variants":{"variants":{"tone":["neutral","pending","warning","danger"]},"defaults":{"tone":"neutral"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ContentTypeIcon","kind":"component","layer":"component","file":"src/components/ContentTypeIcon.tsx","module":"ContentTypeIcon","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ContentTypeIcon — bare glyph that renders the canonical icon for a content type (Video, Note, Expert, Podcast, Quiz, Studio, Collection, Experience).","doc":"ContentTypeIcon — bare glyph that renders the canonical icon for a content\ntype (Video, Note, Expert, Podcast, Quiz, Studio, Collection, Experience).\n\nPulls the icon component and tone colour from `getExperienceTypeMeta`, the\nsame lookup `<ExperienceTypeBadge>` reads. So the icon you render inline\nnext to a label always matches the badge chip on the same surface, without\ncall sites maintaining their own switch statement.\n\nTwo tones:\n- **`colored`** (default) — paints the glyph in the type's brand colour\n  (cyan for Video, sky for Note, emerald for Expert, etc.). Use on neutral\n  backgrounds where the colour is the legibility cue.\n- **`plain`** — uses `currentColor` so the glyph inherits its parent's text\n  colour. Use inside coloured chips, on photo overlays, anywhere the icon\n  should not introduce its own hue.\n\nComposition: pass `aria-label` to make the icon meaningful to screen readers\n(announced as a real graphic), or omit it — the default is decorative\n(`aria-hidden`), which is correct when an adjacent text label already\nannounces the type.\n\n@example\n  <ContentTypeIcon type=\"video\" />            // cyan Video glyph, decorative\n  <ContentTypeIcon type=\"expert\" size=\"lg\" /> // larger emerald Brain\n  <ContentTypeIcon type=\"quest\" tone=\"plain\" aria-label=\"Quiz\" />","props":[{"name":"type","type":"ExperienceType","required":true,"doc":"The content type."},{"name":"tone","type":"\"colored\" | \"plain\"","required":false,"doc":"Glyph colouring."},{"name":"toneOverride","type":"ExperienceTypeTone","required":false,"doc":"Override the auto-selected colour with a specific tone."}],"propsType":"ContentTypeIconProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"contentTypeIconVariants","kind":"const","layer":"component","file":"src/components/ContentTypeIcon.tsx","module":"ContentTypeIcon","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextBar","kind":"component","layer":"component","file":"src/components/ContextBar.tsx","module":"ContextBar","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ContextBar — \"AIKO knows you're on X\" sticky banner above a chat scroller.","doc":"ContextBar — \"AIKO knows you're on X\" sticky banner above a chat scroller.\n\nUsed to make the agent's loaded scope visible: when the chat panel is bound\nto an experience or a workspace, this bar shows the user *which* one. Three\nslots — `lead` (icon, conventionally an AikoMark), `context` (the label),\n`actions` (optional Clear / Edit / Exit-experience buttons).\n\nTwo visual variants:\n  - `default` — bordered card surface; reads as a stand-alone banner.\n  - `muted`   — flatter `bg-muted` pill; tucks under a chat header.\n\nThe primitive is a regular block-level element. Sticky behaviour is the\nconsumer's call (wrap in `<div className=\"sticky top-0 z-10\">` if you want\nit to ride along the scroller); the JSDoc and README spell that out so\nagents don't try to bake `position: sticky` into the primitive itself.\n\nAccessibility: announces as `role=\"status\"` with `aria-live=\"polite\"` so\nscreen readers pick up scope changes as they happen (\"AIKO is in Founders\n& Friends\" → \"AIKO is in your global workspace\"). Default entrance is a\n240ms fade+slide-down; opt out with `motion={false}` or\n`prefers-reduced-motion`.\n\nUsage with `MessageRow`/`ChatLog`:\n\n[…truncated — read the source file for the rest]","props":[{"name":"lead","type":"React.ReactNode","required":false,"doc":"Optional leading glyph."},{"name":"context","type":"React.ReactNode","required":true,"doc":"The context label."},{"name":"actions","type":"React.ReactNode","required":false,"doc":"Optional trailing affordances (Clear, Edit, Exit-experience)."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the entrance fade+slide-down."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Screen-reader label for the live region."}],"propsType":"ContextBarProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CopyMessageButton","kind":"component","layer":"component","file":"src/components/CopyMessageButton.tsx","module":"CopyMessageButton","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"CopyMessageButton — the per-message copy affordance for a settled assistant turn, sized for the hover-revealed actions rail beside `MessageRow`.","doc":"CopyMessageButton — the per-message copy affordance for a settled assistant\nturn, sized for the hover-revealed actions rail beside `MessageRow`.\n\nWrites BOTH clipboard flavours when there is rich text to write, which is the\nreason this exists rather than a bare `useCopyToClipboard()` call. That hook\n(and `navigator.clipboard.writeText`) can only ever produce `text/plain`, so a\ncopied markdown link pastes into a document as the literal characters\n`[title](https://…)` instead of a hyperlink. Pass `html` and the button writes\na `ClipboardItem` carrying `text/plain` + `text/html`, so a paste into a doc,\nan email, or a rich composer arrives formatted the way the answer looks on\nscreen. A paste target picks `text/html` when it can and falls back to\n`text/plain` itself, so the plain string is never lost.\n\n`html` is a THUNK, not a string, and that is load-bearing: rendering an answer\nto HTML is real work, most messages are never copied, and a transcript\nre-renders on every streamed frame. The thunk runs on click and nowhere else.\n\nEvery rich-path failure degrades to the plain write rather than to an error —\nno `ClipboardItem` (older Safari, jsdom), a rejected multi-flavour write, or a\nrenderer fault returning null. Losing formatting is a disappointment; losing\nthe copy is a bug. Only a failure of BOTH paths calls `onError`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"text","type":"string","required":true,"doc":"The plain text to copy — the markdown/plain the row rendered, never HTML."},{"name":"html","type":"() => string | null","required":false,"doc":"The rich flavour, built on demand."},{"name":"onError","type":"(error: unknown) => void","required":false,"doc":"Fired when BOTH clipboard paths fail."},{"name":"onCopied","type":"(flavours: { plain: true; html: boolean }) => void","required":false,"doc":"Fired after a successful write, with the flavours actually written."},{"name":"copyLabel","type":"string","required":false,"doc":"Accessible name at rest."},{"name":"copiedLabel","type":"string","required":false,"doc":"Accessible name while the check is up."},{"name":"isCopying","type":"boolean","required":false,"doc":"A copy is in flight: swaps the icon for a `<Spinner>` and force-disables."}],"propsType":"CopyMessageButtonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"cornerMarkVariants","kind":"variants","layer":"component","file":"src/components/CornerMark.tsx","module":"CornerMark","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CornerMark — compact count or label badge, typically notched into a card corner.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CornerMark","kind":"component","layer":"component","file":"src/components/CornerMark.tsx","module":"CornerMark","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"CornerMark — compact count or label badge, typically notched into a card corner.","doc":"CornerMark — compact count or label badge, typically notched into a card corner.\n\nTwo display modes, inferred from the `value` prop type:\n  - count mode (number): solid accent background, white foreground, pill-shaped.\n    Numbers > 99 are clamped to \"99+\" to prevent overflow.\n  - label mode (string): tinted background + accent border + uppercase text.\n    Used for text labels like \"F0 · DECISION\".\n\nThe `glow` prop adds a soft ambient ring (box-shadow) — intended for rail\nunread counts where the badge needs a subtle presence on a dark background.\n\nColor: defaults to `accent` (maps to `--accent`). Pass a CSS color string\nvia `color` to use an arbitrary brand hue (e.g., a founder hue or coral red).\n\nDesign ref: design-handoff.md §4.2 (coral mention pill on rail items),\n§4.5 (F0 · DECISION corner label).\n\nMigrated from AISquare Office plugins/office/web/src/components/primitives/CornerMark.tsx\n(office-visual-parity iter-11 / iter-13).","props":[{"name":"value","type":"number | string","required":true,"doc":"The value to display."},{"name":"color","type":"string","required":false,"doc":"CSS color override."},{"name":"accent","type":"\"accent\" | \"success\" | \"destructive\" | \"info\" | \"muted\"","required":false,"doc":"Semantic accent variant."},{"name":"glow","type":"boolean","required":false,"doc":"Adds a soft ambient glow ring (box-shadow in the accent/color hue)."}],"propsType":"CornerMarkProps","variants":{"variants":{"accent":["accent","success","destructive","info","muted"],"mode":["count","label"]},"defaults":{"accent":"accent","mode":"count"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DaySeparator","kind":"component","layer":"component","file":"src/components/DaySeparator.tsx","module":"DaySeparator","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"DaySeparator — the day-boundary bar in a chat transcript: a centred label between two hairlines, marking where a conversation crossed midnight.","doc":"DaySeparator — the day-boundary bar in a chat transcript: a centred label\nbetween two hairlines, marking where a conversation crossed midnight.\n\nPresentation only, and deliberately so. Whether a boundary exists and what it\nsays are CALENDAR questions — they depend on the reader's timezone, on the\nconsumer's locale and copy (\"Today\" / \"Yesterday\" / \"12 March\"), and on a\nclock that has to keep ticking so a conversation left open across midnight\ndoes not keep a stale \"Today\" bar over yesterday's turns. None of that is\nshape, so none of it lives here: the consumer resolves the label and hands it\nover. Pass `null`/`undefined` and the bar renders nothing, so call sites stay\nguard-free:\n\n  <DaySeparator label={dayLabel(prev?.at, msg.at)} />\n\nA real `role=\"separator\"` carrying the label as its accessible name, so a\nscreen reader announces the boundary instead of reading a bare word floating\nbetween two messages. The rules are `aria-hidden` — they are the drawing, and\nthe label is already the name.\n\nComposition with `ChatLog` / `MessageRow`:\n\n  {messages.map((m, i) => (\n    <React.Fragment key={m.id}>\n      <DaySeparator label={dayLabel(messages[i - 1]?.at, m.at)} />\n      <MessageRow role={m.role}>{m.text}</MessageRow>\n    </React.Fragment>\n  ))}","props":[{"name":"label","type":"string | null","required":false,"doc":"The resolved boundary label (\"Today\", \"Yesterday\", \"12 March\")."},{"name":"loading","type":"boolean","required":false,"doc":"Render the bar's geometry with a placeholder in place of the label, for a transcript still hydrating."}],"propsType":"DaySeparatorProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"DepthCard","kind":"component","layer":"component","file":"src/components/DepthCard.tsx","module":"DepthCard","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"depth-card","summary":"DepthCard — large 3D parallax card with cursor-tracked rotation, optional multi-layer depth, optional cursor-following spotlight, and a staggered text-reveal overlay that slides title + description up on hover.","doc":"DepthCard — large 3D parallax card with cursor-tracked rotation, optional\nmulti-layer depth, optional cursor-following spotlight, and a staggered\ntext-reveal overlay that slides title + description up on hover.\n\n  ┌─ card · perspective · rounded-2xl surface ──────┐\n  │  ┌─ image layers (parallax tilt + scale 1.3) ──┐ │\n  │  │                                            │ │\n  │  │ (spotlight overlay tracks cursor)          │ │\n  │  │                                            │ │\n  │  ├─ dark gradient veil (bottom 2/3) ──────────┤ │\n  │  │  Title  (slide-up + fade)                  │ │\n  │  │  Description  (slide-up + fade · 75ms)     │ │\n  │  └────────────────────────────────────────────┘ │\n  └─────────────────────────────────────────────────┘\n\nThe surface is a plain rounded-rect: a real CSS `border` plus a soft\n`box-shadow` that deepens on hover, matching `Card`'s post-notch-removal\nchrome. Unlike `Card` (which uses a Tailwind `hover:` variant), the\nborder/shadow pair here is toggled off the `isHovered` React state instead\nof CSS `:hover` — the 3D tilt + parallax + spotlight effects already need\n`onMouseEnter`/`onMouseLeave` handlers to drive `requestAnimationFrame`, so\nthe elevation state rides along with that same state instead of a second,\nindependent hover mechanism.\n\nAdapted from the ReactBits Pro \"depth-card-tw\" recipe. Pretty's adaptations:\n\n[…truncated — read the source file for the rest]","props":[{"name":"image","type":"string","required":false,"doc":"Background image URL for the card."},{"name":"title","type":"string","required":true,"doc":"Card title — always rendered on top of the gradient veil."},{"name":"description","type":"string","required":false,"doc":"Optional card description — reveals beneath the title on hover."},{"name":"width","type":"number","required":false,"doc":"Width of the card in pixels."},{"name":"height","type":"number","required":false,"doc":"Height of the card in pixels."},{"name":"maxRotation","type":"number","required":false,"doc":"Maximum rotation angle in degrees."},{"name":"maxTranslation","type":"number","required":false,"doc":"Maximum translation for parallax effect in pixels."},{"name":"borderRadius","type":"string","required":false,"doc":"Border radius of the card (CSS length)."},{"name":"className","type":"string","required":false,"doc":"Additional CSS classes for the wrapper."},{"name":"contentClassName","type":"string","required":false,"doc":"Additional CSS classes for the inner card content."},{"name":"onClick","type":"() => void","required":false,"doc":"Callback when card is clicked."},{"name":"href","type":"string","required":false,"doc":"URL to navigate to when card is clicked."},{"name":"target","type":"\"_blank\" | \"_self\" | \"_parent\" | \"_top\"","required":false,"doc":"Target for link navigation."},{"name":"imageAlt","type":"string","required":false,"doc":"Alt text for the background image."},{"name":"disableOnMobile","type":"boolean","required":false,"doc":"Disable 3D effects on mobile devices (UA + width < 768)."},{"name":"ariaLabel","type":"string","required":false,"doc":"ARIA label for accessibility."},{"name":"layers","type":"DepthLayer[]","required":false,"doc":"Multiple layers for advanced parallax effect."},{"name":"staggerDelay","type":"number","required":false,"doc":"Stagger delay between title and description reveals, in ms."},{"name":"revealAnimation","type":"\"slide\" | \"fade\" | \"scale\" | \"none\"","required":false,"doc":"Content reveal animation type."},{"name":"respectReducedMotion","type":"boolean","required":false,"doc":"Respect `prefers-reduced-motion`."},{"name":"spotlight","type":"boolean","required":false,"doc":"Enable cursor-following spotlight overlay."},{"name":"spotlightColor","type":"string","required":false,"doc":"Spotlight color (any CSS color)."},{"name":"footer","type":"React.ReactNode","required":false,"doc":"Optional content rendered inside the same tilt + perspective + rounded silhouette as the cover, immediately below the image region."}],"propsType":"DepthCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DiffRow","kind":"component","layer":"component","file":"src/components/DiffRow.tsx","module":"DiffRow","primary":true,"importPaths":["@aisquare/ui"],"category":"Review & diff","since":"v1.5.0","demoId":"diff-row","summary":"DiffRow — single-row diff view for inline change lists.","doc":"DiffRow — single-row diff view for inline change lists. The left cell shows\nthe removed text, the right cell the added text. Optional `meta` line\nappears under the diff (anchor / clause reference / context note), and an\noptional `verdict` slot floats on the right edge for status badges or\naccept/reject controls.\n\nDesigned for \"show me a long list of small changes\" surfaces — counter-\nredline review, version diff side-rail, audit-log entries that compare\nbefore/after. Not a general-purpose word-level differ; the consumer is\nexpected to pass already-segmented strings.\n\nComposition: each cell renders its text through `RedlineSpan` (the\n`deletion` / `insertion` variants) so the strikethrough + ins/del coloring\nstay consistent with inline redlines elsewhere in the document. The cell\n`<div>` carries the bordered, tinted container chrome.\n\nToken reads: `--del-bg` for the removed cell tint, `--ins-bg` for the added\ncell tint, `--del` / `--ins` for the foreground text colors (via the\ncomposed `RedlineSpan`). Falls back through the diff-token defaults so\nconsumers without `tokens.template.css` still get a working palette.\n\nMotion: the only animated property is the interactive `transition-colors`,\ngated with `motion-reduce:transition-none` so reduced-motion users get an\ninstant hover state.","props":[{"name":"removed","type":"string","required":true,"doc":"Original text (the left cell)."},{"name":"added","type":"string","required":true,"doc":"New text (the right cell)."},{"name":"meta","type":"React.ReactNode","required":false,"doc":"Optional meta line below the diff — usually a clause anchor or context note."},{"name":"verdict","type":"React.ReactNode","required":false,"doc":"Optional verdict slot — accept/reject buttons, status badge, etc."},{"name":"onClick","type":"() => void","required":false,"doc":"Optional click handler for the entire row (e.g."}],"propsType":"DiffRowProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"diffRowVariants","kind":"const","layer":"component","file":"src/components/DiffRow.tsx","module":"DiffRow","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EditingBeam","kind":"component","layer":"component","file":"src/components/EditingBeam.tsx","module":"EditingBeam","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"EditingBeam — wrapper that signals \"AIKO is editing this block.\"","doc":"EditingBeam — wrapper that signals \"AIKO is editing this block.\"\n\nTwo phases:\n  loading=true  → children dim to muted-foreground + select-none + pointer-\n                  events-none, and a skewed gradient beam glides across the\n                  surface so the block reads as in-progress without a\n                  spinner or banner. Same pattern Stripe checkout and\n                  Vercel skeletons use to mean \"processing, hands off.\"\n  loading=false → plain pass-through. Children render at full ink and\n                  regain pointer-events.\n\nThe wrapper itself is a `rounded-2xl border bg-card p-5` paper card by\ndefault — override the surface with `className` for inline / fieldset /\nborderless contexts. `aria-busy={loading}` is the screen-reader cue.\n\nMotion opt-out:\n  - `motion={false}` drops the beam (dim + aria-busy stay).\n  - `prefers-reduced-motion` does the same automatically.\n\nUse for: AIKO rewriting a title/paragraph/draft, autopilot regenerating a\nprompt, an inline AI-edit operation. For chat-row \"AIKO is typing\" cues\nreach for `<TypingIndicator>` instead — EditingBeam is a block-level\nsurface treatment, not an inline composing indicator.","props":[{"name":"loading","type":"boolean","required":true,"doc":"Toggles the editing cue: dim children + glide beam when true."},{"name":"children","type":"React.ReactNode","required":true,"doc":"Content to render — the field/title/block being rewritten."},{"name":"speed","type":"number","required":false,"doc":"Beam cycle duration in seconds."},{"name":"motion","type":"boolean","required":false,"doc":"Animate the beam."}],"propsType":"EditingBeamProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EmailChipInput","kind":"component","layer":"component","file":"src/components/EmailChipInput.tsx","module":"EmailChipInput","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"email-chip-input","summary":"EmailChipInput — validated, bulk-paste email entry that renders each address as a removable chip.","doc":"EmailChipInput — validated, bulk-paste email entry that renders each address\nas a removable chip.\n\nA thin composer over `TagInput`: the chip markup, Enter-to-add,\nBackspace-on-empty-pops-the-last, exact-match dedup, `focus-within` ring,\n`role=\"combobox\"` + listbox ARIA, and the forwarded `ref` to the inner\n`<input>` all live in `TagInput` so the keyboard + a11y model stays in one\nplace. EmailChipInput adds the three things email entry needs on top:\n\n  1. A validation gate, every candidate is checked (default regex\n     `^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$`) before it becomes a chip, invalid entries\n     are rejected and reported, never added.\n  2. Bulk-paste splitting, pasting `a@x.com, b@y.com\\n c@z.com` splits on\n     `/[,\\n\\s]+/`, normalizes, validates, dedups, and commits every valid\n     address in a single gesture.\n  3. Invalid-entry surfacing, a headless `onInvalid(reason, value)` callback\n     (the seam that replaces the donor screens' direct `toast.error`) plus an\n     opt-in inline error string. The primitive owns no toast channel.\n\n[…truncated — read the source file for the rest]","props":[{"name":"label","type":"React.ReactNode","required":false,"doc":"Field label rendered above the control via the `<Label>` primitive."},{"name":"value","type":"readonly string[]","required":true,"doc":"Current emails (controlled)."},{"name":"onChange","type":"(emails: string[]) => void","required":true,"doc":"Receives the next email list on add / paste / remove."},{"name":"validate","type":"(email: string) => boolean","required":false,"doc":"Per-address validity gate."},{"name":"normalize","type":"\"lowercase\" | \"none\"","required":false,"doc":"Case handling before validate / store / dedup."},{"name":"max","type":"number","required":false,"doc":"Soft cap on the number of emails."},{"name":"onInvalid","type":"(reason: EmailChipInvalidReason, value: string) => void","required":false,"doc":"Headless rejection callback, fires once per rejected entry."},{"name":"showInlineError","type":"boolean","required":false,"doc":"Render the built-in inline error string."},{"name":"errorMessages","type":"Partial<EmailChipErrorMessages>","required":false,"doc":"Override the inline-error copy per reason."},{"name":"hint","type":"React.ReactNode","required":false,"doc":"Helper text under the field."},{"name":"placeholder","type":"string","required":false,"doc":"Input placeholder, shown while no emails exist."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole control."}],"propsType":"EmailChipInputProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EmptyState","kind":"component","layer":"component","file":"src/components/EmptyState.tsx","module":"EmptyState","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"EmptyState — for \"you have nothing yet\" surfaces.","doc":"EmptyState — for \"you have nothing yet\" surfaces.\n\nWired with the AIKO voice by default: warm, slightly self-aware, never\npatronizing. Override `title` and `description` per surface; the defaults\nare sensible for \"lists / collections of stuff this user could create\".\n\nComposition:\n- `icon` — typically an icon from this library's icon barrel, sized in a\n  soft tinted circle (matches `ErrorState`'s icon treatment — the two are\n  a matched pair)\n- `title` — short heading (default: \"Nothing here yet.\")\n- `description` — one-line subtext (default: \"First one's the hardest. After that, the rest just show up.\")\n- `primaryCta` / `secondaryCta` — the common case: one or two CTAs, rendered\n  via the library's own `Button` (pass `href` for a link-flavored CTA, no\n  router dependency; `onClick` for an imperative one). Prefer these over\n  `action` for anything that's really just \"a button or two.\"\n- `action` — a fully open slot for anything more custom; ignored if either\n  CTA prop is set.\n- `children` — \"productive empty\" content below the actions (a suggestion\n  list, starter chips) — for surfaces where \"nothing here yet\" should also\n  suggest what to do next, not just how to create the first thing.\n\n[…truncated — read the source file for the rest]","props":[{"name":"icon","type":"React.ReactNode","required":false,"doc":null},{"name":"title","type":"React.ReactNode","required":false,"doc":null},{"name":"description","type":"React.ReactNode","required":false,"doc":null},{"name":"action","type":"React.ReactNode","required":false,"doc":"Open action slot."},{"name":"primaryCta","type":"EmptyStateCta","required":false,"doc":"Primary CTA, rendered via the library `Button`."},{"name":"secondaryCta","type":"EmptyStateCta","required":false,"doc":"Secondary CTA (outline treatment), alongside `primaryCta`."},{"name":"children","type":"React.ReactNode","required":false,"doc":"\"Productive empty\" content below the actions (a suggestion list, starter chips)."},{"name":"bordered","type":"boolean","required":false,"doc":"Draws the dashed-border host chrome."},{"name":"animate","type":"boolean","required":false,"doc":"When true, animates in on mount via Framer (subtle fade + lift)."},{"name":"iconWrapClassName","type":"string","required":false,"doc":"Merges onto the icon bubble — restate its size or tint without forking the layout."},{"name":"titleClassName","type":"string","required":false,"doc":"Merges onto the heading — restate the type treatment (e.g."},{"name":"descriptionClassName","type":"string","required":false,"doc":"Merges onto the description — restate the subtext treatment."},{"name":"bodyClassName","type":"string","required":false,"doc":"Merges onto the block wrapping the heading and description — restate the text measure (the default is `max-w-sm`) without forking the layout."},{"name":"headingLevel","type":"1 | 2 | 3 | 4 | 5 | 6","required":false,"doc":"Heading tag for `title`."}],"propsType":"EmptyStateProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ErrorPage","kind":"component","layer":"component","file":"src/components/ErrorPage.tsx","module":"ErrorPage","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ErrorPage — the full-screen branded crash surface: an oversized error-code numeral, five floating `AnimatedExperienceTypeIcon` glyphs arranged in a loose orbit around it, an optional brand-mark centerpiece, code-aware default copy, and the","doc":"ErrorPage — the full-screen branded crash surface: an oversized error-code\nnumeral, five floating `AnimatedExperienceTypeIcon` glyphs arranged in a\nloose orbit around it, an optional brand-mark centerpiece, code-aware\ndefault copy, and the Retry/Reload + \"Take me home\" recovery actions.\n\nThis is a DIFFERENT tier than `ErrorState`, not a merge: `ErrorState` is the\nsmall inline \"something broke, try again\" block for a card or panel;\n`ErrorPage` is the whole-page 404/500 surface a router or error boundary\nrenders in place of the entire app. Reach for `ErrorState` when one region\nfailed; reach for `ErrorPage` when the page itself IS the error.\n\nPorted from the production app's `ErrorPage` with two deliberate\ngeneralizations:\n- The app's Featurebase feedback widget (a 3rd-party SDK, Redux selectors,\n  and an app-specific feature flag) is not portable design-system\n  material. It's replaced with an `onReportIssue` slot: pass a handler and\n  the \"Report an issue\" affordance renders and calls it on click; omit it\n  and the affordance doesn't render at all. The library takes no opinion on\n  which vendor (or in-house flow) receives the report.\n- The app's brand mark (`AtlasMark`) is not hardcoded here — which mark\n  this library ships is an open rebrand decision outside this component's\n  scope. Pass whatever mark you want via `brandMark` (e.g. `<AikoMark />`);\n  omit it for a leaner pag\n\n[…truncated — read the source file for the rest]","props":[{"name":"code","type":"string","required":false,"doc":"\"404\" (default), \"500\", or any other code string."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Override the headline."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Override the body copy."},{"name":"onRetry","type":"() => void","required":false,"doc":"Retry the failed render in place (e.g."},{"name":"homeHref","type":"string","required":false,"doc":"Navigate home via a plain link, rendered through `Button`'s `asChild`."},{"name":"onGoHome","type":"() => void","required":false,"doc":"Navigate home via a callback (e.g."},{"name":"onReportIssue","type":"() => void","required":false,"doc":"Slot for a \"report an issue\" affordance."},{"name":"brandMark","type":"React.ReactNode","required":false,"doc":"Optional brand-mark centerpiece, rendered as a badge anchored on the numeral's lower edge."},{"name":"animate","type":"boolean","required":false,"doc":"Disable the mount/float animation outright."}],"propsType":"ErrorPageProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ErrorState","kind":"component","layer":"component","file":"src/components/ErrorState.tsx","module":"ErrorState","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ErrorState — for \"something broke, here's how to recover\" surfaces.","doc":"ErrorState — for \"something broke, here's how to recover\" surfaces.\n\nAIKO voice defaults: direct, owns the failure, gives the user one clear next\nstep. Never blames the user, never hides what happened.\n\nComposition:\n- `icon` — defaults to AlertCircle in a destructive-tinted circle\n- `title` — short, owns it (default: \"Something broke.\")\n- `description` — one line (default: \"We're looking at it. Try again, or come back in a minute.\")\n- `onRetry` — when provided, renders a \"Try again\" button\n- `action` — escape hatch: render any custom action instead of retry","props":[{"name":"icon","type":"React.ReactNode","required":false,"doc":null},{"name":"title","type":"React.ReactNode","required":false,"doc":null},{"name":"description","type":"React.ReactNode","required":false,"doc":null},{"name":"onRetry","type":"() => void","required":false,"doc":"Renders a Try-again button."},{"name":"isRetrying","type":"boolean","required":false,"doc":"Loading state on the retry button (between click and outcome)."},{"name":"action","type":"React.ReactNode","required":false,"doc":"Override the entire action area."},{"name":"animate","type":"boolean","required":false,"doc":"When true, animates in on mount via Framer (subtle fade + lift)."}],"propsType":"ErrorStateProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceType","kind":"component","layer":"component","file":"src/components/ExperienceCard.tsx","module":"ExperienceCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceCardSkeleton","kind":"component","layer":"component","file":"src/components/ExperienceCard.tsx","module":"ExperienceCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null},{"name":"density","type":"ExperienceCardDensity","required":false,"doc":"Match the density of the cards being loaded (see ExperienceCard)."}],"propsType":"ExperienceCardSkeletonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceCardGrid","kind":"component","layer":"component","file":"src/components/ExperienceCard.tsx","module":"ExperienceCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"ExperienceCardEntity[]","required":true,"doc":null},{"name":"renderItem","type":"(experience: ExperienceCardEntity, index: number) => React.ReactNode","required":true,"doc":null},{"name":"animate","type":"boolean","required":false,"doc":null},{"name":"columns","type":"\"2\" | \"3\" | \"4\"","required":false,"doc":"Column count at xl breakpoint."},{"name":"loading","type":"boolean","required":false,"doc":null},{"name":"skeletonCount","type":"number","required":false,"doc":null},{"name":"density","type":"ExperienceCardDensity","required":false,"doc":"Density of the cards in this grid; the loading skeletons match it."}],"propsType":"ExperienceCardGridProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceCard","kind":"component","layer":"component","file":"src/components/ExperienceCard.tsx","module":"ExperienceCard","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ExperienceCard — community-card-style entity card for AI Experiences (Quest / Video / Note / Podcast / Expert).","doc":"ExperienceCard — community-card-style entity card for AI Experiences\n(Quest / Video / Note / Podcast / Expert). Image on top with overlaid\ntype tag + draft chip + visibility, content below with hard 2-line\nclamps for view stability, primary CTA + dropdown chevron in the footer.\n\nAIKO whispers a contextual hint when the title or description is hovered\n(subtle helper, 400ms hover delay, dismissable). Pass `aikoTooltip={false}`\nto opt out, or pass a custom message string / node.\n\nThe live card is the brand `Card`, so it INHERITS the plain `rounded-2xl`\nsurface (a real `border` + a real hover `box-shadow`) — we do NOT re-apply\nthat chrome here. The `.Skeleton` renders its own placeholder surface, so\nit matches the same recipe directly: `rounded-2xl` + `bg-card` + a real\n`border border-[color:var(--cardBd,hsl(var(--border)/0.7))]`.","props":[{"name":"experience","type":"ExperienceCardEntity","required":true,"doc":null},{"name":"deployedResourceId","type":"string","required":false,"doc":"The deployed resource ID (forwarded to consumer-side analytics if needed)."},{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null},{"name":"mode","type":"\"manage\" | \"explore\" | \"community\"","required":true,"doc":null},{"name":"hover","type":"\"lift\" | \"glow\" | \"none\"","required":false,"doc":null},{"name":"onView","type":"() => void","required":false,"doc":"Primary card action — also fires on whole-card click."},{"name":"onEdit","type":"() => void","required":false,"doc":null},{"name":"onDelete","type":"() => void","required":false,"doc":null},{"name":"onCollection","type":"() => void","required":false,"doc":null},{"name":"isLiked","type":"boolean","required":false,"doc":null},{"name":"onLikeToggle","type":"(liked: boolean) => void","required":false,"doc":null},{"name":"tagTone","type":"ExperienceTypeTone","required":false,"doc":"Override the default type-tag color tone."},{"name":"aikoTooltip","type":"React.ReactNode | false","required":false,"doc":"AIKO hover-tooltip helper."},{"name":"density","type":"ExperienceCardDensity","required":false,"doc":"Card density."}],"propsType":"ExperienceCardProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"getExperienceStateMeta","kind":"const","layer":"component","file":"src/components/ExperienceStateBadge.tsx","module":"ExperienceStateBadge","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Look up the canonical label + tone for a state.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceStateBadge","kind":"component","layer":"component","file":"src/components/ExperienceStateBadge.tsx","module":"ExperienceStateBadge","primary":true,"importPaths":["@aisquare/ui"],"category":"Status","since":"v1.1.0","demoId":"experience-state-badge","summary":"ExperienceStateBadge — lifecycle chip for an AI Experience: Draft, In Progress, Ready, Shared, Archived.","doc":"ExperienceStateBadge — lifecycle chip for an AI Experience: Draft,\nIn Progress, Ready, Shared, Archived. Completes the badge family next\nto `<ExperienceTypeBadge>` (what it is) and `<VisibilityBadge>` (who can\nsee it) — this one says where it is in the publish pipeline.\n\nPorted from Creator Studio v2\n(`src/components/experience/ExperienceStateBadge.tsx`) and re-themed: the\napp's `--color-*` palette with hex fallbacks is replaced with this\nlibrary's semantic tokens (`--info`, `--accent`, `--success`, `--muted`),\nand the state → label/tone lookup is exported as\n`getExperienceStateMeta` following the `getExperienceTypeMeta` /\n`getVisibilityMeta` convention so list rows, filters, and toasts can reuse\nthe canonical labels without rendering the badge.\n\nUnknown states render with a neutral tone and a humanised label\n(`\"in_review\"` → \"In Review\") so consumers never have to guard the prop.\n\n@example\n  <ExperienceStateBadge state=\"published\" />\n  <ExperienceStateBadge state=\"in_progress\" size=\"sm\" />","props":[{"name":"state","type":"ExperienceState","required":true,"doc":"Lifecycle state."},{"name":"tone","type":"ExperienceStateTone","required":false,"doc":"Override the auto-selected tone."}],"propsType":"ExperienceStateBadgeProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"getExperienceTypeMeta","kind":"const","layer":"component","file":"src/components/ExperienceTypeBadge.tsx","module":"ExperienceTypeBadge","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Look up the meta for a given experience type.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ExperienceTypeBadge","kind":"component","layer":"component","file":"src/components/ExperienceTypeBadge.tsx","module":"ExperienceTypeBadge","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ExperienceTypeBadge — opaque, reusable chip that labels an AI Experience by type (Quest / Video / Note / Podcast / Expert / Studio / Collection / Experience).","doc":"ExperienceTypeBadge — opaque, reusable chip that labels an AI Experience by\ntype (Quest / Video / Note / Podcast / Expert / Studio / Collection /\nExperience). The whole \"type → label, icon, tone, gradient\" lookup lives\nhere so card domain shells, list rows, detail headers, fallback cover\nplaceholders, and any other surface that surfaces an Experience can pull\nfrom one source of truth.\n\nThree appearances:\n- **`solid`** (default) — fully opaque tone background with white text.\n  Designed for cover overlays where translucency competes with the photo\n  underneath. The badge strip on `<ExperienceCard>` uses this.\n- **`soft`** — the existing `<CardTag>`-style pale tinted chip. Use in\n  in-content contexts (filter bars, breadcrumbs) where a louder solid badge\n  would be visually heavy.\n- **`overlay`** — glass-tinted middle ground for cover photos.\n\nPass `tone` to override the auto-selected colour for the type — useful when\na studio wants its own type colour palette without subclassing the badge.\n\nIcon + tone choices match the Creator Studio + AI Studio (v3) consumer apps\nso a card swapped from a local icon-map to this primitive looks identical.","props":[{"name":"type","type":"ExperienceType","required":true,"doc":"The experience type."},{"name":"tone","type":"ExperienceTypeTone","required":false,"doc":"Override the auto-selected tone."},{"name":"noIcon","type":"boolean","required":false,"doc":"Skip the icon, render label only."},{"name":"iconOnly","type":"boolean","required":false,"doc":"Skip the label, render icon only (square chip)."},{"name":"label","type":"string","required":false,"doc":"Surface-specific wording in place of the canonical type label."}],"propsType":"ExperienceTypeBadgeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ExploreSearchBar","kind":"component","layer":"component","file":"src/components/ExploreSearchBar.tsx","module":"ExploreSearchBar","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ExploreSearchBar — pill input with search prefix, animated clear button, and an optional suggestions dropdown.","doc":"ExploreSearchBar — pill input with search prefix, animated clear button,\nand an optional suggestions dropdown.\n\nComposed from ActionInput (search variant) + Button (ghost) for the clear.\n\nBehavior:\n- Search icon prefix (always visible)\n- Clear button slides in when value is non-empty (only if onClear provided)\n- Suggestions panel slides down on focus when `suggestions` is provided\n- Blur is delayed 150ms so suggestion clicks register","props":[{"name":"onClear","type":"() => void","required":false,"doc":"Called when the clear button is pressed"},{"name":"suggestions","type":"React.ReactNode","required":false,"doc":"Anything below the input on focus (list, recents, shortcuts)"},{"name":"wrapperClassName","type":"string","required":false,"doc":"Override the wrapper className"}],"propsType":"ExploreSearchBarProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FadeContent","kind":"component","layer":"component","file":"src/components/FadeContent.tsx","module":"FadeContent","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FadeContent — quiet scroll-triggered fade-in (with optional blur ramp) for arbitrary content.","doc":"FadeContent — quiet scroll-triggered fade-in (with optional blur ramp) for\narbitrary content. Lighter sibling to `<AnimatedContent>` — when you want\n\"this section just slid into view\" without the directional translate or\nscale.\n\nAdopted from React Bits (`@react-bits/FadeContent-TS-TW`) and adapted to\npretty's anatomy:\n- `forwardRef` + `displayName` per the anatomy contract.\n- **Default scroll target is `window`** — the upstream source defaulted to\n  `document.getElementById(\"snap-main-container\")` (a Lovable-specific\n  container). Pass `container` explicitly when the consumer scrolls a\n  non-window region.\n- `useReducedMotion()` integration: when reduced, the element renders fully\n  visible immediately (no opacity ramp, no blur ramp). `onComplete` still\n  fires so consumer state machines resolve identically to the animated\n  path.\n- **Units settled to seconds.** Upstream had a `getSeconds(val)` heuristic\n  (`val > 10 ? val / 1000 : val`) that let consumers pass either ms or\n  seconds — ambiguous and hard to reason about. All time props are now\n  seconds, matching gsap + motion conventions. JSDoc reflects this.\n- The `useEffect` deps are now exhaustive — prop changes after mount\n  correctly tear down + re-create the timeline.\n- `cn` for className merge.\n\n[…truncated — read the source file for the rest]","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":"Content to fade in once the element crosses the threshold."},{"name":"container","type":"Element | string | null","required":false,"doc":"Scroll container that drives the trigger."},{"name":"blur","type":"boolean","required":false,"doc":"Whether to ramp blur from `10px → 0` alongside the opacity ramp."},{"name":"duration","type":"number","required":false,"doc":"Fade-in duration in seconds."},{"name":"ease","type":"string","required":false,"doc":"GSAP easing string."},{"name":"delay","type":"number","required":false,"doc":"Delay before fade-in starts, in seconds."},{"name":"threshold","type":"number","required":false,"doc":"Threshold (0 to 1) for how much of the element must enter the viewport before the fade fires."},{"name":"initialOpacity","type":"number","required":false,"doc":"Initial opacity."},{"name":"disappearAfter","type":"number","required":false,"doc":"Auto-disappear delay in seconds (after fade-in completes)."},{"name":"disappearDuration","type":"number","required":false,"doc":"Disappear-animation duration in seconds."},{"name":"disappearEase","type":"string","required":false,"doc":"Disappear-animation easing."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fired when the fade-in completes."},{"name":"onDisappearanceComplete","type":"() => void","required":false,"doc":"Fired when the disappear animation completes (only when `disappearAfter > 0`)."}],"propsType":"FadeContentProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FeatureTabs","kind":"component","layer":"component","file":"src/components/FeatureTabs.tsx","module":"FeatureTabs","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FeatureTabs — persona-card tab selector with an animated radial-gradient indicator that slides between active triggers, plus motion-driven content fade-up on swap.","doc":"FeatureTabs — persona-card tab selector with an animated radial-gradient\nindicator that slides between active triggers, plus motion-driven content\nfade-up on swap. Composes `@radix-ui/react-tabs` underneath for full\nkeyboard navigation (←/→ between triggers, Home/End, Enter/Space activate),\n`role=\"tablist\"` / `role=\"tab\"` / `role=\"tabpanel\"` semantics, and ARIA\nwiring out of the box.\n\nAdopted from React Bits Pro (`@reactbits-pro/features-9`) and adapted to\npretty's anatomy:\n- All hardcoded `neutral-*` palette swapped for theme tokens (`bg-card`,\n  `border-border`, `text-foreground`, `text-muted-foreground`). Renders\n  light/dark cleanly under any consumer's `--background` / `--card`.\n- Active-card halo uses `--accent` (per-studio brand color) instead of the\n  source's hardcoded sky-blue rgba, so the indicator follows retinting.\n- Honors `prefers-reduced-motion`: the layoutId-driven indicator slide\n  collapses to instant, the content fade-up becomes a snap, and the\n  per-trigger transition shortens to a colour swap.\n- Data-driven (`tabs={[{ value, label, icon, content }]}`) rather than the\n  source's hardcoded persona list — usable as a generic feature selector,\n  not a one-shot marketing block.\n- SSR-safe (Radix handles).\n\n[…truncated — read the source file for the rest]","props":[{"name":"tabs","type":"FeatureTab[]","required":true,"doc":"The tabs to render."},{"name":"className","type":"string","required":false,"doc":"Class on the outer Tabs root."},{"name":"triggerClassName","type":"string","required":false,"doc":"Class merged into each tab trigger card."},{"name":"panelClassName","type":"string","required":false,"doc":"Class merged into the panel container (the area below the trigger row)."},{"name":"motion","type":"boolean","required":false,"doc":"Disable motion@12 layoutId indicator + content fade-up."}],"propsType":"FeatureTabsProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FileOverlay","kind":"component","layer":"component","file":"src/components/FileOverlay.tsx","module":"FileOverlay","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.6.0","demoId":"file-overlay","summary":"FileOverlay — a full-screen preview lightbox for a chat attachment (ported library-clean from the AI-Expert FileOverlay / SentFileOverlay, unified into one component).","doc":"FileOverlay — a full-screen preview lightbox for a chat attachment (ported\nlibrary-clean from the AI-Expert FileOverlay / SentFileOverlay, unified into\none component).\n\nRenders an image full-bleed, or a document as a labelled card. Built on the\n`Dialog` primitive, so it inherits focus-trap, Escape-to-close, scroll-lock,\nand the portal for free (the source overlay had none of these). Pass\n`onDelete` for the editable \"composer\" variant; omit it for the read-only\n\"sent\" variant.\n\nLayout follows the PhotoSwipe / medium-zoom lightbox convention: controls\nbind to the *media* box, not the wide transparent dialog box. The close X\nsits at the top-right corner of the image / card itself, and the download /\ndelete actions sit in a centered bar directly below it — so they always hug\nthe rendered artwork instead of floating out in the dialog's empty gutters.\nBrand tokens only.","props":[{"name":"open","type":"boolean","required":true,"doc":"Whether the overlay is open (controlled)."},{"name":"onOpenChange","type":"(open: boolean) => void","required":true,"doc":"Fires when the overlay requests close (scrim, Escape, or the close button)."},{"name":"file","type":"FileOverlayFile","required":true,"doc":"The file to preview."},{"name":"onDownload","type":"() => void","required":false,"doc":"Download handler."},{"name":"onDelete","type":"() => void","required":false,"doc":"Delete handler."}],"propsType":"FileOverlayProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"FilterChip","kind":"component","layer":"component","file":"src/components/FilterBar.tsx","module":"FilterBar","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FilterChip — a pill-shaped dropdown filter built on the library's Radix `DropdownMenu`.","doc":null,"props":[{"name":"label","type":"string","required":true,"doc":"Leading label, e.g."},{"name":"options","type":"FilterOption[]","required":true,"doc":"Selectable options."},{"name":"value","type":"string","required":false,"doc":"Single-select value (controlled)."},{"name":"defaultValue","type":"string","required":false,"doc":"Single-select default."},{"name":"onValueChange","type":"(next: string) => void","required":false,"doc":"Single-select change handler."},{"name":"multi","type":"boolean","required":false,"doc":"Switch to multi-select (checkbox) mode."},{"name":"values","type":"string[]","required":false,"doc":"Multi-select values (controlled)."},{"name":"onValuesChange","type":"(next: string[]) => void","required":false,"doc":"Multi-select change handler."},{"name":"tone","type":"FilterChipTone","required":false,"doc":"Active-state color."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the chip."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible name for the trigger."},{"name":"className","type":"string","required":false,"doc":"Extra classes for the chip trigger."},{"name":"align","type":"\"start\" | \"center\" | \"end\"","required":false,"doc":"Alignment of the menu relative to the trigger."}],"propsType":"FilterChipProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FilterBar","kind":"component","layer":"component","file":"src/components/FilterBar.tsx","module":"FilterBar","primary":true,"importPaths":["@aisquare/ui"],"category":"Navigation","since":"v1.4.0","demoId":"filter-bar","summary":"FilterBar — a config-driven listing toolbar: an optional `SmartSearch` slot, a row of `FilterChip` controls, a right-aligned sort chip, and a slot for consumer-owned header actions.","doc":"FilterBar — a config-driven listing toolbar: an optional `SmartSearch` slot,\na row of `FilterChip` controls, a right-aligned sort chip, and a slot for\nconsumer-owned header actions. Consolidates the hand-built search + filter +\nsort toolbars duplicated across the listing surfaces into one accessible,\non-brand, animated primitive.\n\nIt owns layout + composition only: search, filter chips, and sort. View\ntoggles, Create buttons, and permission gating stay with the consumer and\nare passed via `right`.\n\nSizes: `md` (Studios default) and `sm` (Agents compact). Chips animate their\nactive morph + clear-X and inherit the Radix menu entrance; everything\ndegrades to a static state under reduced motion.\n\n@example Studios — search + 4 chips (3 filters + sort), spread layout\n```tsx\n<FilterBar\n  searchSlot={\n    <SmartSearch\n      value={search}\n      onChange={setSearch}\n      placeholderPrompts={[\"Search your studios...\", \"Find a studio by name...\"]}\n    />\n  }\n  sort={\n    <FilterChip label=\"Sort\" value={sort} defaultValue=\"recent\" onValueChange={setSort} options={sortOptions} />\n  }\n>\n  <FilterChip label=\"Role\" value={role} defaultValue=\"all\" onValueChange={setRole} options={roleOptions} />\n  <FilterChip label=\"Visibility\" value={vis} defaultValue=\"all\" onValueChange={setVis} options={visOptions} />\n  <FilterChip label=\"Status\" value={status} defaultValue=\"active\" onValueChange={setStatus\n\n[…truncated — read the source file for the rest]","props":[{"name":"searchSlot","type":"React.ReactNode","required":false,"doc":"Search control."},{"name":"children","type":"React.ReactNode","required":false,"doc":"The filter chips."},{"name":"sort","type":"React.ReactNode","required":false,"doc":"The sort chip, kept distinct so `align=\"spread\"` can push it to the far right of the chip row (reproducing the donor's `flex-1` spacer)."},{"name":"right","type":"React.ReactNode","required":false,"doc":"Consumer-owned header actions (view toggle, Create button, permission gating)."},{"name":"align","type":"\"start\" | \"spread\"","required":false,"doc":"Chip-row alignment."},{"name":"wrap","type":"boolean","required":false,"doc":"Wrap chips onto multiple lines when they overflow."}],"propsType":"FilterBarProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FlickeringGrid","kind":"component","layer":"component","file":"src/components/FlickeringGrid.tsx","module":"FlickeringGrid","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.1.0","demoId":"flickering-grid","summary":"FlickeringGrid — canvas-driven field of softly flickering squares for hero and section backgrounds.","doc":"FlickeringGrid — canvas-driven field of softly flickering squares for hero\nand section backgrounds. Ported from Creator Studio v2\n(`src/components/ui/flickering-grid.tsx`) and re-themed: the default colour\nreads the consumer's `--accent` token instead of hardcoded black, so the\ngrid re-tints per studio and in dark mode without prop changes.\n\nColour resolution: `color` accepts any CSS colour. Strings containing a\n`var(--token)` reference are resolved against the container's computed\nstyle at mount (and whenever `color` changes), then rasterised once for the\ncanvas. A mid-session theme flip re-resolves on the next `color` /\ndimension prop change, not automatically.\n\nPerformance: one `requestAnimationFrame` loop drives the whole grid; an\nIntersectionObserver pauses it entirely while off-screen and a\nResizeObserver re-seeds the grid on container resize.\n\nHonours `prefers-reduced-motion`: renders a single static frame (the\ntexture stays, the strobe goes).\n\nSSR-safe: all `window` / `document` access lives inside `useEffect`.\n\n@example\n  <div className=\"relative h-64 overflow-hidden rounded-2xl\">\n    <FlickeringGrid className=\"absolute inset-0\" maxOpacity={0.2} />\n    <h2 className=\"relative\">Build your first AI Studio</h2>\n  </div>","props":[{"name":"squareSize","type":"number","required":false,"doc":"Square edge length, px."},{"name":"gridGap","type":"number","required":false,"doc":"Gap between squares, px."},{"name":"flickerChance","type":"number","required":false,"doc":"Per-square chance (0 to 1) of re-rolling opacity each second."},{"name":"color","type":"string","required":false,"doc":"Square colour."},{"name":"width","type":"number","required":false,"doc":"Fixed canvas width, px."},{"name":"height","type":"number","required":false,"doc":"Fixed canvas height, px."},{"name":"maxOpacity","type":"number","required":false,"doc":"Peak square opacity (0 to 1)."},{"name":"maskImage","type":"string","required":false,"doc":"Opt-in image mask URL."},{"name":"maskSize","type":"\"contain\" | \"cover\"","required":false,"doc":"How the mask image fits the canvas, CSS-style."},{"name":"maskPosition","type":"string","required":false,"doc":"Mask anchor, CSS `background-position` syntax — keywords (`left`/`right`/`top`/`bottom`/`center`) or percentages (`\"100% 50%\"`)."}],"propsType":"FlickeringGridProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"flowButtonVariants","kind":"variants","layer":"component","file":"src/components/FlowButton.tsx","module":"FlowButton","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FlowButton — pill button whose hover state floods in as a circular wash from the corner (a `before` pseudo-element scaling into place).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FlowButton","kind":"component","layer":"component","file":"src/components/FlowButton.tsx","module":"FlowButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.1.0","demoId":"flow-button","summary":"FlowButton — pill button whose hover state floods in as a circular wash from the corner (a `before` pseudo-element scaling into place).","doc":"FlowButton — pill button whose hover state floods in as a circular wash\nfrom the corner (a `before` pseudo-element scaling into place). Ported from\nCreator Studio v2 (`src/components/ui/flow-hover-button.tsx`) and\nre-themed: the hardcoded navy palette is replaced with `--primary` /\n`--accent` / `--border` tokens so the wash re-tints per studio.\n\nSits between `<Button>` (everyday actions) and `<ShimmerButton>` (hero\nmoments): same sizes as Button, one extra dose of delight on hover.\n\nOnyx press: this is a PILL (`rounded-full`) signature-animated control, so it\nstays round — no hex notch, no travel block, no keyline ring (those are for\nrectangular keys and would clash with the round flood). It joins the lib's\nshared press language with just the springy bounce + a 1px press-DOWN on\n`:active` (the round/flat tier), replacing the old `active:scale-[0.98]`.\n\n- `icon` renders before the label, sized by the same `[&_svg]` rule Button uses\n- the flood + press transitions collapse under `prefers-reduced-motion`\n  (colours still change, nothing moves)\n\n@example\n  <FlowButton icon={<ArrowRight />}>Continue</FlowButton>\n  <FlowButton variant=\"ghost\" size=\"sm\">Skip for now</FlowButton>","props":[{"name":"icon","type":"React.ReactNode","required":false,"doc":"Optional leading icon, rendered before the label."}],"propsType":"FlowButtonProps","variants":{"variants":{"variant":["primary","secondary","ghost"],"size":["sm","md","lg"]},"defaults":{"variant":"primary","size":"md"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Folder","kind":"component","layer":"component","file":"src/components/Folder.tsx","module":"Folder","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Folder — animated folder visual adapted from React Bits' open-source `Folder` component (https://reactbits.dev).","doc":"Folder — animated folder visual adapted from React Bits' open-source `Folder`\ncomponent (https://reactbits.dev). Renders a stylized folder shape (pure CSS,\nno SVG) with up to three \"papers\" peeking out of the top. On hover the\npapers nudge upward and the front flap skews open; on click the folder\nfans the papers out and they scale on hover. Click again to close.\n\nUsed by `<CollectionCard>` to visualize a collection's first three items as\na stack of papers — cover thumbnails of experiences, basically — that the\nuser can pop open inline. Standalone consumers can render any\n`React.ReactNode[]` as the `items` prop.\n\nProps (matching the React Bits source so consumers can copy / paste demos):\n- `color`         primary folder color. Default `\"#5227FF\"`.\n- `size`          scale factor (1 = 100x80px). Default `1`.\n- `items`         up to three React nodes; each becomes a paper. Default `[]`.\n- `onItemClick`   optional callback fired when a paper is clicked **while\n                  the folder is open**. Useful for routing on item click.\n                  Click bubbling is stopped when this fires so the parent\n                  surface (e.g. a Card with its own onClick) doesn't double-\n                  fire on the same gesture.\n- `onOpenChange`  optional callback fired when the folder opens or closes.\n- `defaultOpen`   uncontrolled initial open state. Default `false`.\n- `open`\n\n[…truncated — read the source file for the rest]","props":[{"name":"color","type":"string","required":false,"doc":null},{"name":"size","type":"number","required":false,"doc":null},{"name":"items","type":"React.ReactNode[]","required":false,"doc":null},{"name":"onItemClick","type":"(index: number) => void","required":false,"doc":"Notified when a paper is clicked while the folder is open."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Notified when the folder transitions between open and closed."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Default open state for uncontrolled use."},{"name":"open","type":"boolean","required":false,"doc":"Controlled open state."},{"name":"toggleOnClick","type":"boolean","required":false,"doc":"Click on the folder body (closed state) → toggles open."}],"propsType":"FolderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"formItemVariants","kind":"variants","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`formItemVariants` — the only styling surface on the parts.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useFormField","kind":"const","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormProvider","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"form-field","summary":null,"doc":null,"props":null,"propsType":null,"variants":{"variants":{"spacing":["default","tight"]},"defaults":{"spacing":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormFieldController","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormItem","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"FormItemProps","variants":{"variants":{"spacing":["default","tight"]},"defaults":{"spacing":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormLabel","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormControl","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormDescription","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FormMessage","kind":"component","layer":"component","file":"src/components/FormField.tsx","module":"FormField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"FormMessageProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GenerationProgress","kind":"component","layer":"component","file":"src/components/GenerationProgress.tsx","module":"GenerationProgress","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"GenerationProgress — the real-backend-status-driven staged progress + reveal for AI generation surfaces (Studio / Experience / artifact creation).","doc":"GenerationProgress — the real-backend-status-driven staged progress + reveal\nfor AI generation surfaces (Studio / Experience / artifact creation).\n\nSibling note: `<GenerationTimeline>` self-paces on internal timers — a \"fake\nsmooth progress\" presentational pattern that runs independent of the real\nbackend. `GenerationProgress` is the controlled counterpart: `status` and\n`activeStage` are INJECTED by the caller from real backend state, never\nadvanced internally. Reach for this one whenever the surface actually knows\nits generation status; reach for `GenerationTimeline` when it only knows\n\"in flight\" and wants a confident, scripted wait.\n\nSurface-agnostic: the stages, the live status, and the revealed content are\nall injected props, so any creation surface adopts it without a rewrite.\nComposes `Stepper` (`interactive={false}`, `indicator=\"progress\"` — a\ndisplay-only progress track) for the staged view, `Skeleton`\n(`animation=\"shimmer\"`) for the indeterminate fallback, and `Celebration`\nfor the done reveal.\n\n**Honesty constraint.** When `stages` is empty, the backend has given no\nreal phase signal — so this renders a claim-free indeterminate shimmer\ninstead of fabricating named phases the backend never reported.\n\n[…truncated — read the source file for the rest]","props":[{"name":"stages","type":"GenerationStage[]","required":false,"doc":"Ordered stages for this generation type, injected by the caller."},{"name":"activeStage","type":"number","required":false,"doc":"The current stage index while generating (clamped into range)."},{"name":"status","type":"GenerationStatus","required":true,"doc":"The real backend generation status."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Optional heading above the stepper/shimmer (e.g."},{"name":"reveal","type":"React.ReactNode","required":false,"doc":"The finished artifact, revealed inside `Celebration` once `status` is `\"done\"`."},{"name":"failedMessage","type":"React.ReactNode","required":false,"doc":"Failed-state copy."},{"name":"onRetry","type":"() => void","required":false,"doc":"When provided, renders a \"Try again\" button in the failed state."},{"name":"className","type":"string","required":false,"doc":"Extra classes merged onto the generating/failed state wrapper."}],"propsType":"GenerationProgressProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_GENERATION_PHASES","kind":"component","layer":"component","file":"src/components/GenerationTimeline.tsx","module":"GenerationTimeline","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The Creator Studio v2 \"create an experience\" script.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GenerationTimeline","kind":"component","layer":"component","file":"src/components/GenerationTimeline.tsx","module":"GenerationTimeline","primary":true,"importPaths":["@aisquare/ui"],"category":"AI","since":"v1.1.0","demoId":"generation-timeline","summary":"GenerationTimeline — system-driven phase list for long AI generation waits.","doc":"GenerationTimeline — system-driven phase list for long AI generation waits.\nEach phase ticks through pending → active (spinner) → completed (check),\nwith optional timed reassurance copy for the long phases so the wait reads\nas progress instead of a stall.\n\nPorted from Creator Studio v2 (`src/components/create/GenerationTimeline.tsx`)\nand re-themed: inline navy hexes replaced with `--accent` / `--muted` /\n`--foreground` tokens; the local `@keyframes` block replaced with the\npreset's `animate-spin` / `animate-in` / `animate-shimmer` utilities; the\nhardcoded phase script is now a prop (`phases`), with the Creator Studio\nscript shipped as `DEFAULT_GENERATION_PHASES`.\n\nPacing is presentational: phases advance on their own timers (duration +\njitter), independent of the real backend work. The standard pattern is to\nrun the timeline while the request is in flight and gate the reveal on\nBOTH `onComplete` and the response landing.\n\nSibling note: `<Stepper>` is the user-driven cousin (click/keyboard\nnavigation between steps); GenerationTimeline runs itself.\n\nHonours `prefers-reduced-motion` via `motion-reduce:` gates on the spinner,\nshimmer bar, and entrance animations.\n\n@example\n  <GenerationTimeline\n    onComplete={() => setTimelineDone(true)}\n    onPhaseChange={(i) => track(\"gen_phase\", { i })}\n  />\n\n[…truncated — read the source file for the rest]","props":[{"name":"phases","type":"readonly GenerationPhase[]","required":false,"doc":"Phase script."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fired once, after the last phase completes."},{"name":"onPhaseChange","type":"(phaseIndex: number) => void","required":false,"doc":"Fired when a phase becomes active, with its index."},{"name":"jitter","type":"number","required":false,"doc":"Max random ms added to each phase duration."}],"propsType":"GenerationTimelineProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GlassInputFrame","kind":"component","layer":"component","file":"src/components/GlassInputFrame.tsx","module":"GlassInputFrame","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"GlassInputFrame — gradient-ring card-in-card input wrapper.","doc":"GlassInputFrame — gradient-ring card-in-card input wrapper.\n\nExtracted from AISquare-AIStudio-v3 AikoChat.tsx lines 370-438 where the\ncomposer sits inside a gradient-ringed outer shell:\n\n  <div class=\"bg-gradient-to-r from-blue-400/30 via-purple-400/30 to-indigo-400/30\n              rounded-2xl p-[1px]\">\n    <div class=\"bg-background rounded-2xl ...\">\n      ...children\n    </div>\n  </div>\n\nThe outer ring uses the primary + accent token range for the gradient so\nit adapts to the consumer's theme rather than always reading blue/purple.\nThe `colorScheme` prop lets callers stay on the brand colors (default) or\nrequest the literal blue-purple-indigo spectrum from the Studio v3 original.\n\n`<ChatInput glassFrame>` is the canonical consumer. Use this wrapper directly\nwhen you need the ring around a non-ChatInput composer.","props":[{"name":"colorScheme","type":"\"brand\" | \"studio\"","required":false,"doc":"Gradient color scheme for the outer ring."},{"name":"innerClassName","type":"string","required":false,"doc":"Inner panel background + rounding class override."}],"propsType":"GlassInputFrameProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"imageUploaderVariants","kind":"variants","layer":"component","file":"src/components/ImageUploader.tsx","module":"ImageUploader","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ImageUploader","kind":"component","layer":"component","file":"src/components/ImageUploader.tsx","module":"ImageUploader","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"image-uploader","summary":"ImageUploader — drag-drop / click image input with object-URL preview, type + size validation, and a pixel-reveal transition into the preview.","doc":"ImageUploader — drag-drop / click image input with object-URL preview,\ntype + size validation, and a pixel-reveal transition into the preview.\n\nConsolidates four hand-rolled image pickers across the platform (the two\nunified logo wells in `CreateStudioModal` / `CreateWorkspaceModal`, plus\nfe-react's `ProfileHero` avatar and `CoverImageUpload` cover surface) into\none accessible, leak-free seam. The component owns the parts every copy got\nsubtly wrong: the object URL is created **and revoked** internally (on\nunmount and on every replace), the hidden `<input>` is reset to `\"\"` after\neach select so re-picking the same file re-fires `onChange`, and validation\nrejections are reported **outward** via `onReject` rather than toasted from\ninside — the consumer decides what to persist and what to surface.\n\nDrag-drop is native (`onDragEnter` / `onDragOver` / `onDragLeave` / `onDrop`\n+ a counter to survive child-element drag bubbling) plus a hidden\n`<input type=\"file\">` for click / keyboard, so the component ships with\n**zero** new dependencies — it composes the existing `Image` primitive for\nthe rendered preview (loading skeleton + `onError` fallback for free) and\n`PixelCard` (controlled) for the reveal.\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"File | string | null","required":false,"doc":"Controlled file value."},{"name":"defaultValue","type":"File | string | null","required":false,"doc":"Uncontrolled initial value."},{"name":"onChange","type":"(file: File | null) => void","required":false,"doc":"Fires with the next file on select / drop, and `null` on remove."},{"name":"accept","type":"readonly string[]","required":false,"doc":"Accepted MIME types."},{"name":"maxSizeBytes","type":"number","required":false,"doc":"Max file size in bytes."},{"name":"onReject","type":"(rejections: ImageRejection[]) => void","required":false,"doc":"Called with every file that failed validation (wrong type / too large) so the consumer can toast."},{"name":"upload","type":"(file: File) => Promise<string>","required":false,"doc":"Persistence seam."},{"name":"onUploadingChange","type":"(uploading: boolean) => void","required":false,"doc":"Mirrors the uploading flag outward (matches `onUploadStatusChange`)."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading copy (dropzone variant)."},{"name":"subtitle","type":"React.ReactNode","required":false,"doc":"Sub-copy under the title (dropzone variant)."},{"name":"hint","type":"React.ReactNode","required":false,"doc":"Constraint hint (dropzone variant), e.g."},{"name":"name","type":"string","required":false,"doc":"Name used for the avatar initial-letter fallback + the preview `alt`."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible label for the control."},{"name":"renderPreview","type":"(src: string) => React.ReactNode","required":false,"doc":"Replace the default rendered preview entirely."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable all interaction."}],"propsType":"ImageUploaderProps","variants":{"variants":{"variant":["avatar","dropzone"],"shape":["square","circle"],"size":["sm","md","lg"],"dragging":["true","false"],"hasError":["true","false"],"disabled":["true","false"]},"defaults":{"variant":"dropzone","shape":"square","size":"md","dragging":"false","hasError":"false","disabled":"false"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Kbd","kind":"component","layer":"component","file":"src/components/Kbd.tsx","module":"Kbd","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Kbd — keyboard shortcut display.","doc":"Kbd — keyboard shortcut display. Renders inside a `<kbd>` element with a\nsubtle inset shadow that suggests a physical key.\n\nUse for inline shortcuts: \"Press <Kbd>⌘ K</Kbd> to search.\"","props":[],"propsType":"KbdProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"LineSidebar","kind":"component","layer":"component","file":"src/components/LineSidebar.tsx","module":"LineSidebar","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"LineSidebarItem[]","required":true,"doc":"The items to render, top to bottom."},{"name":"active","type":"string | null","required":false,"doc":"Controlled active item id (or `null` for none)."},{"name":"defaultActive","type":"string | null","required":false,"doc":"Initial active item id in uncontrolled mode."},{"name":"onActiveChange","type":"(id: string | null, item: LineSidebarItem | null) => void","required":false,"doc":"Fires on click, or Enter/Space on a focused item."},{"name":"showIndex","type":"boolean","required":false,"doc":"Show the zero-padded index badge (`\"01\"`) beside each label."},{"name":"showMarker","type":"boolean","required":false,"doc":"Show the connecting tick/marker line to the left of each item."},{"name":"hoverLabels","type":"boolean","required":false,"doc":"Ticks-only rest state: hide inline labels and reveal them as an anchored, `aria-hidden` tooltip on hover/focus-visible, while each tick carries the label via `aria-label` so assistive tech always has it."},{"name":"proximityRadius","type":"number","required":false,"doc":"Pointer distance (px) at which the proximity effect fully fades out."},{"name":"maxShift","type":"number","required":false,"doc":"Max horizontal shift (px) an item travels at full proximity/active effect."},{"name":"falloff","type":"LineSidebarFalloff","required":false,"doc":"Easing curve mapping proximity (0–1) to effect strength."},{"name":"markerLength","type":"number","required":false,"doc":"Tick/marker line length in px."},{"name":"markerGap","type":"number","required":false,"doc":"Gap in px between the marker line and the item column."},{"name":"tickScale","type":"number","required":false,"doc":"Marker line length multiplier for the per-item tick."},{"name":"scaleTick","type":"boolean","required":false,"doc":"Scale the per-item tick's length by its effect strength."},{"name":"itemGap","type":"number","required":false,"doc":"Vertical gap in px between items."},{"name":"fontSize","type":"number","required":false,"doc":"Item label font size in rem."},{"name":"smoothing","type":"number","required":false,"doc":"Exponential-smoothing time constant in ms — higher is lazier."},{"name":"accentColor","type":"string","required":false,"doc":"Color an item's label/marker eases toward at full effect strength."},{"name":"textColor","type":"string","required":false,"doc":"Resting label color."},{"name":"markerColor","type":"string","required":false,"doc":"Resting marker/tick color."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible name for the `<nav>` landmark."}],"propsType":"LineSidebarProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ListeningOverlay","kind":"component","layer":"component","file":"src/components/ListeningOverlay.tsx","module":"ListeningOverlay","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.6.0","demoId":"listening-overlay","summary":"ListeningOverlay — the active voice-input affordance: an animated waveform, a live transcript (or a \"Listening...\" placeholder), and a stop button (ported library-clean from the AI-Expert chat).","doc":"ListeningOverlay — the active voice-input affordance: an animated waveform, a\nlive transcript (or a \"Listening...\" placeholder), and a stop button (ported\nlibrary-clean from the AI-Expert chat).\n\nThe container is an `aria-live=\"polite\"` status region so the transcript is\nannounced as it streams; the waveform bars are decorative (`aria-hidden`) and\npulse via a component-scoped keyframe that is disabled under\n`prefers-reduced-motion`. Brand tokens only.","props":[{"name":"onStop","type":"() => void","required":true,"doc":"Stop / cancel handler for the active recording."},{"name":"transcript","type":"string","required":false,"doc":"Live transcript; falls back to `placeholder` while empty."},{"name":"placeholder","type":"string","required":false,"doc":"Shown when there is no transcript yet."},{"name":"bars","type":"number","required":false,"doc":"Number of waveform bars."},{"name":"stopLabel","type":"string","required":false,"doc":"Aria label for the stop button."}],"propsType":"ListeningOverlayProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ListeningWave","kind":"component","layer":"component","file":"src/components/ListeningWave.tsx","module":"ListeningWave","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"ListeningWave — the in-composer recording state: an animated equalizer, the live transcript as it is recognized, and a stop button.","doc":"ListeningWave — the in-composer recording state: an animated equalizer, the\nlive transcript as it is recognized, and a stop button.\n\nSwaps IN PLACE of the composer's textarea while the mic is on, rather than\nfloating over it (that is `ListeningOverlay`, for surfaces where dictation is\na modal moment). Stopping leaves the transcribed text in the composer — the\nhost has been syncing it all along — so the user lands back on a normal,\neditable textarea pre-filled with what they said.\n\nThe transcript WRAPS and grows rather than truncating to one line, because\nanything past the first breath would otherwise scroll out of view unread. It\ngrows to `maxHeight` and then scrolls PINNED TO THE TAIL, so the newest words\nstay in view: a reader tracks what they are saying now, not what they opened\nwith. Pass the host composer's own typing cap as `maxHeight` and the strip and\nthe textarea agree — no height jump at the swap.\n\nThe equalizer and the stop button anchor to the BOTTOM (`items-end`), beside\nthe line currently being written, so they hold still while the text grows\nupward.\n\nThe bars ride `animate-voicebar` from the preset, which the reduced-motion\nplugin already gates — a moving level meter is decorative, and its job (a\nrecording is live) is carried by the transcript and the stop button too.\n\n[…truncated — read the source file for the rest]","props":[{"name":"transcript","type":"string","required":true,"doc":"The live transcript so far."},{"name":"onStop","type":"() => void","required":true,"doc":"Stop recording and keep what was said."},{"name":"maxHeight","type":"number","required":true,"doc":"The host composer's typing cap in px."},{"name":"placeholder","type":"string","required":false,"doc":"Shown before the first words land."},{"name":"stopLabel","type":"string","required":false,"doc":"Accessible name for the stop button."},{"name":"connecting","type":"boolean","required":false,"doc":"The mic is opening and no audio has been heard yet."},{"name":"barClassName","type":"string","required":false,"doc":"Classes for the equalizer bars, so a surface can tint the meter to its own action accent."}],"propsType":"ListeningWaveProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"LogoutLoader","kind":"component","layer":"component","file":"src/components/LogoutLoader.tsx","module":"LogoutLoader","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"LogoutLoader — full-screen overlay shown while a logout is in progress.","doc":"LogoutLoader — full-screen overlay shown while a logout is in progress.\n\nPurely presentational. The consumer controls when it shows via the `open`\nprop and handles the actual logout logic (API calls, cache clearing,\nredirects) externally.\n\nUses AikoLoader for the branded breathing animation and defaults to warm\nAIKO-voice farewell copy. Override `title` and `description` for custom\nmessaging.","props":[{"name":"open","type":"boolean","required":true,"doc":"Controls visibility of the overlay."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading text."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Subtext below the heading."},{"name":"logoSrc","type":"string","required":false,"doc":"Logo or brand image URL shown above the loader."},{"name":"logoClassName","type":"string","required":false,"doc":"Additional class names for the logo image element."},{"name":"animate","type":"boolean","required":false,"doc":"Mount/unmount animation."}],"propsType":"LogoutLoaderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MagicEditButton","kind":"component","layer":"component","file":"src/components/MagicEditButton.tsx","module":"MagicEditButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Inputs","since":"v1.6.0","demoId":"magic-edit-button","summary":"MagicEditButton — an inline \"edit this with AI\" affordance: a pencil trigger that opens a small popover with a one-line instruction field and a send button (ported library-clean from the creation wizard's MagicEditButton).","doc":"MagicEditButton — an inline \"edit this with AI\" affordance: a pencil trigger\nthat opens a small popover with a one-line instruction field and a send\nbutton (ported library-clean from the creation wizard's MagicEditButton).\n\n`onEdit` receives the trimmed instruction; the popover clears and closes on\nsubmit. Composes the `Popover` + `Button` + `Input` primitives, so Radix owns\nfocus management (the field is focused on open) and the trigger's\n`aria-expanded` / `aria-haspopup`. Brand tokens only; the trigger reads in\n`primary` while open.\n\nBoth controls inherit the Onyx press language from `Button` (this is a pure\ncomposition — no raw faces here), and both are icon-only sizes, which render\nFLAT: no travel block (behind a 32px circle the offset block reads as a\ndetached crescent, PlatformQA#2829), a springy 1px press-DOWN on `:active`.\nThe ghost pencil trigger is quiet (no keyline ring); the primary submit\ncarries the filled face + rim. So this affordance presses consistently with\nthe rest of the lib with zero local press/notch code.","props":[{"name":"onEdit","type":"(prompt: string) => void","required":true,"doc":"Called with the trimmed instruction when the user submits the edit."},{"name":"sectionName","type":"string","required":false,"doc":"Name of the thing being edited, woven into the labels (e.g."},{"name":"disabled","type":"boolean","required":false,"doc":"Disables submit (e.g."},{"name":"side","type":"\"top\" | \"right\" | \"bottom\" | \"left\"","required":false,"doc":"Which side the popover opens on."},{"name":"className","type":"string","required":false,"doc":"Extra classes for the trigger button."}],"propsType":"MagicEditButtonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Magnetic","kind":"component","layer":"component","file":"src/components/Magnetic.tsx","module":"Magnetic","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Magnetic — wrap any element so it pulls toward the cursor on hover.","doc":"Magnetic — wrap any element so it pulls toward the cursor on hover.\n\n  <Magnetic>\n    <Button>Save</Button>\n  </Magnetic>\n\n  <Magnetic strength={0.4} fullWidth>\n    <Button className=\"w-full\">Continue</Button>\n  </Magnetic>\n\nAnatomy: a static outer `<span>` that holds the bounding-rect we read\nfrom, plus an inner `<motion.span>` that translates by spring. Reading\nthe rect off the static parent (not the moving inner) keeps the math\nout of a feedback loop — the cursor delta is always measured against\nthe resting frame.\n\nHonors `prefers-reduced-motion` automatically: the spring is set up\nbut the cursor handler short-circuits, so the inner stays at rest.\n\nDefaults are tuned for page-level CTAs (subtle, springy, brief). For\nlarger surfaces (a card hover, a hero image) bump `strength` and\nsoften the spring via `springConfig`.","props":[{"name":"strength","type":"number","required":false,"doc":"How much the inner shifts toward the cursor as a fraction of the cursor-to-center distance."},{"name":"fullWidth","type":"boolean","required":false,"doc":"When the wrapped element is `w-full`, set this so the static parent also fills width instead of collapsing to content inside an `inline-flex` ancestor."},{"name":"springConfig","type":"SpringOptions","required":false,"doc":"Override the spring tuning."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"MagneticProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"markdownSanitizeSchema","kind":"const","layer":"component","file":"src/components/Markdown.tsx","module":"Markdown","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Rehype-sanitize schema extension that allows `language-*` className on `<code>` elements.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Markdown","kind":"component","layer":"component","file":"src/components/Markdown.tsx","module":"Markdown","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.16.0","demoId":"markdown","summary":"Markdown — sealed renderer for chat-aligned markdown content.","doc":"Markdown — sealed renderer for chat-aligned markdown content.\n\nRenders user-supplied markdown with the defaults that AISquare's chat\nsurfaces share:\n\n- GFM (GitHub-flavored markdown — tables, strikethrough, task lists, autolinks).\n- Soft line breaks (single newline → `<br>`, via `remark-breaks`) so chat\n  lines render visually like the user typed them.\n- HTML sanitization via `rehype-sanitize` with the schema extended to allow\n  `language-*` className on `<code>` (so syntax highlighting survives the\n  sanitize pass).\n- Fenced code blocks render via `react-syntax-highlighter` Prism + `oneDark`.\n  Blocks WITH a language label show a header bar (language + Copy / Copied\n  button); blocks WITHOUT a language show a floating copy icon (top-right,\n  reveal on hover).\n- Inline code styled as `bg-muted` token.\n- Tables wrapped in `overflow-x-auto` so they scroll on narrow viewports\n  instead of overflowing the chat bubble.\n- Anchors open in a new tab (`target=\"_blank\" rel=\"noopener noreferrer\"`).\n- Empty / whitespace-only `content` returns `null` (no empty wrapper div).\n\nComposition seam: pass a `components` prop with element overrides to\nintercept specific element renderers (most commonly `a` for app-specific\nrouting or `code` for a custom highlighter). Your overrides shallow-merge\nwith the defaults — keys you provide replace, keys you omit stay default.\n\n  <Markdown content={text} />\n\n[…truncated — read the source file for the rest]","props":[{"name":"content","type":"string","required":true,"doc":"Markdown source."},{"name":"className","type":"string","required":false,"doc":"Extra classes appended (via `cn`) to the prose container."},{"name":"components","type":"Partial<Components>","required":false,"doc":"Per-element renderer overrides, shallow-merged with the primitive's defaults."},{"name":"streaming","type":"boolean","required":false,"doc":"Render an inline-block blinking caret as the last child of the prose container, signalling that more tokens are arriving."},{"name":"loading","type":"boolean","required":false,"doc":"The source has not arrived yet — renders placeholder prose lines instead."},{"name":"loadingLines","type":"number","required":false,"doc":"Placeholder line count while `loading`."}],"propsType":"MarkdownProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MemberPicker","kind":"component","layer":"component","file":"src/components/MemberPicker.tsx","module":"MemberPicker","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"member-picker","summary":"MemberPicker — a searchable, keyboard-accessible multi-select for picking workspace members (co-creators / collaborators / share targets).","doc":"MemberPicker — a searchable, keyboard-accessible multi-select for picking\nworkspace members (co-creators / collaborators / share targets).\n\nBuilt on `cmdk` (the command-menu primitive) inside the library's\n`Popover`, with the chosen members surfaced as an `AvatarGroup` plus\nremovable chips. `cmdk` supplies the filtering, full keyboard navigation\n(Up / Down / Enter / Esc), `aria-activedescendant`, and `role=\"listbox\" /\n\"option\"` semantics — the exact a11y three different apps kept\nhand-rolling (and the outside-click capture-phase `mousedown` workaround\nthe unified picker fought is gone, because Popover owns focus + dismiss).\n\nFully data-agnostic and controlled: the caller passes `members`, `value`,\nand `onChange`; the library renders. There is no service import. Identity\nis the **lowercased email** (matching the donor pickers), so the same\nperson can never be added twice regardless of `id` drift.\n\n[…truncated — read the source file for the rest]","props":[{"name":"members","type":"MemberOption[]","required":true,"doc":"The full candidate list (a workspace's members)."},{"name":"value","type":"MemberOption[]","required":true,"doc":"Currently selected members (controlled)."},{"name":"onChange","type":"(next: MemberOption[]) => void","required":true,"doc":"Receives the next selection on every add / remove."},{"name":"onAdd","type":"(member: MemberOption) => Promise<void>","required":false,"doc":"Async commit for adding an existing member."},{"name":"onInvite","type":"(email: string, role: string) => void | Promise<void>","required":false,"doc":"Commit for inviting a brand-new email."},{"name":"onSearch","type":"(query: string) => void","required":false,"doc":"Async filter seam: caller-driven search (debounced server query, etc.)."},{"name":"roles","type":"RoleOption[]","required":false,"doc":"Invite-role vocabulary."},{"name":"normalizeRole","type":"(raw?: string) => string","required":false,"doc":"Map a raw role codename to the committed set."},{"name":"filterMember","type":"(m: MemberOption) => boolean","required":false,"doc":"Exclude-self / exclude-viewer / exclude-owner policy as a predicate."},{"name":"state","type":"\"idle\" | \"loading\" | \"error\" | \"ok\"","required":false,"doc":"List lifecycle — caller owns the data, the library owns the rendering."},{"name":"onRetry","type":"() => void","required":false,"doc":"Retry handler shown in the error state."},{"name":"emptyLabel","type":"string","required":false,"doc":"Copy for the empty (no members at all) state."},{"name":"noMatchLabel","type":"string","required":false,"doc":"Copy for the \"search matched nothing\" state."},{"name":"errorLabel","type":"string","required":false,"doc":"Copy for the error state."},{"name":"canManage","type":"boolean","required":false,"doc":"When false, renders a \"Limited access\" lock panel instead of the picker."},{"name":"showInvite","type":"boolean","required":false,"doc":"Show the inline invite row."},{"name":"hideRoleBadge","type":"boolean","required":false,"doc":"Hide the per-row role badge."},{"name":"placeholder","type":"string","required":false,"doc":"Trigger placeholder when nothing is selected."},{"name":"searchPlaceholder","type":"string","required":false,"doc":"Search input placeholder."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole control."}],"propsType":"MemberPickerProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MessageFeedback","kind":"component","layer":"component","file":"src/components/MessageFeedback.tsx","module":"MessageFeedback","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.6.0","demoId":"message-feedback","summary":"MessageFeedback — thumbs-up / thumbs-down rating for an assistant message, with optimistic selection + rollback on a failed submit (ported library-clean from the AI-Expert chat).","doc":"MessageFeedback — thumbs-up / thumbs-down rating for an assistant message,\nwith optimistic selection + rollback on a failed submit (ported library-clean\nfrom the AI-Expert chat).\n\nControlled via `value`; the component renders the selection optimistically on\nclick and calls `onRate` with the new rating (`0` toggles the current choice\noff). If `onRate` rejects, the selection reverts. After a successful non-zero\nrating it shows a brief \"thanks\" confirmation that auto-hides after\n`thanksDurationMs`.\n\nComposition: thin wrapper over two `<Button size=\"icon-xs\" variant=\"ghost\">`\nthumbs. Brand tokens only — the selected thumb reads in `primary`, idle in\n`muted-foreground`; only a `transition-colors` is used, so it is safe under\n`prefers-reduced-motion` (no transform/opacity motion to suppress).","props":[{"name":"value","type":"FeedbackRating","required":false,"doc":"Current rating (controlled)."},{"name":"onRate","type":"(rating: FeedbackRating) => void | Promise<void>","required":true,"doc":"Submit handler for a rating change."},{"name":"label","type":"string","required":false,"doc":"Prompt shown before the thumbs."},{"name":"thanksLabel","type":"string","required":false,"doc":"Confirmation shown briefly after a non-zero rating."},{"name":"thanksDurationMs","type":"number","required":false,"doc":"How long (ms) the thanks confirmation stays before reverting to the controls; `0` keeps it until the next value change."}],"propsType":"MessageFeedbackProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MessageRegenerate","kind":"component","layer":"component","file":"src/components/MessageRegenerate.tsx","module":"MessageRegenerate","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"MessageRegenerate — \"run this prompt again\", the second control in a settled assistant turn's actions rail, sized to sit beside `CopyMessageButton`.","doc":"MessageRegenerate — \"run this prompt again\", the second control in a settled\nassistant turn's actions rail, sized to sit beside `CopyMessageButton`.\n\nA SIBLING of `MessageRetry`, not a variant of it, because the two answer\ndifferent questions. `MessageRetry` belongs to a USER message that never\nlanded (connection dropped, stream errored, 5xx) and offers to send it again.\nThis belongs to an ASSISTANT message that landed fine and offers a different\nanswer to the same prompt. They live at opposite ends of a turn, carry\nopposite voices (a failure notice vs. a quiet icon), and change for different\nreasons, so they are two components.\n\nDisabled rather than hidden while sending is impossible. The rail is\nhover-revealed and only a couple of controls wide, so dropping one shifts the\nother under the cursor mid-hover — the control stays put and greys out, and\n`disabledReason` gives the consumer's tooltip something honest to say.\n\nThe component owns only the affordance. What \"regenerate\" means is the\ncaller's: most hosts replay the original prompt server-side against the\nmessage id rather than re-sending from the composer, so no duplicate user\nbubble appears and a reload agrees with the live transcript. Which turns are\neligible is the caller's too — typically only the newest assistant message,\nsince replaying mid-history would leave later turns referencing an answer that\nno longer exists.\n\n[…truncated — read the source file for the rest]","props":[{"name":"onRegenerate","type":"() => void","required":true,"doc":"Re-run the prompt this answer came from."},{"name":"disabledReason","type":"string","required":false,"doc":"Why the control is disabled, for the consumer's tooltip."},{"name":"label","type":"string","required":false,"doc":"Accessible name."},{"name":"isRegenerating","type":"boolean","required":false,"doc":"A regeneration is in flight: swaps the icon for a `<Spinner>` and force-disables, so the same turn cannot be queued twice."}],"propsType":"MessageRegenerateProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MessageRetry","kind":"component","layer":"component","file":"src/components/MessageRetry.tsx","module":"MessageRetry","primary":true,"importPaths":["@aisquare/ui"],"category":"AI","since":"v1.7.0","demoId":"message-retry","summary":"MessageRetry — retry affordance for a failed user message.","doc":"MessageRetry — retry affordance for a failed user message.\n\nShown when a user message couldn't reach the assistant (connection\ndropped, stream errored, server returned 5xx). Two layouts share one\nvoice + one disabled-while-busy contract:\n\n  - `inline` — slot into `<MessageRow actions={...}>`. Renders as a\n    tiny ghost icon-button so it disappears into the bubble's hover\n    row. Use when the failed message and its retry sit close to other\n    hover-revealed message actions (copy / edit).\n  - `block` — render directly below the failed `<MessageRow>`. A\n    destructive-tinted helper line with the failure reason on the\n    left and a \"Send again\" pill on the right. Use when the failure\n    itself is the dominant signal and the user's eyes are on the\n    bottom of the chat.\n\nThe primitive does not own retry mechanics. It calls `onRetry()` and\nlets the consumer decide what \"retry\" means: prefill the input\n(`onRetry` returns the failed message text and the consumer drops it\ninto `<ChatInput value=...>`), or fire the network call directly.\n\nLoading state: pass `isRetrying` to swap the icon for a `<Spinner>`\nand force-disable the button. Reduced-motion users get the spinner\nwithout animation per the existing `Spinner` primitive.\n\n[…truncated — read the source file for the rest]","props":[{"name":"onRetry","type":"() => void","required":true,"doc":"Fired when the user wants to retry."},{"name":"isRetrying","type":"boolean","required":false,"doc":"Loading flag for the in-flight retry."},{"name":"reason","type":"string","required":false,"doc":"Short reason rendered next to the icon in the `block` layout."},{"name":"label","type":"string","required":false,"doc":"Override the button label."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the press springback."}],"propsType":"MessageRetryProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"messageRetryVariants","kind":"const","layer":"component","file":"src/components/MessageRetry.tsx","module":"MessageRetry","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MessageRow","kind":"component","layer":"component","file":"src/components/MessageRow.tsx","module":"MessageRow","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"MessageRow — chat-row anatomy.","doc":"MessageRow — chat-row anatomy.\n\nA single message in a chat scroller. Five roles, each with its own visual\ntreatment but a shared slot vocabulary (`avatar`, `actions`, `timestamp`,\nchildren-as-content):\n\n  - `user`      — right-aligned bubble, soft primary tint, actions on hover left of bubble.\n  - `assistant` — left-aligned bare text, AIKO mark on the leading edge, actions below.\n  - `tool`      — left-aligned card-style host (ToolCard goes inside as content).\n  - `system`    — full-width centered divider for thread-state cues (\"Returned to AIKO chat\").\n  - `error`     — left-aligned destructive surface for stream-interruption / tool-failure cues.\n\nSlots are passed as props rather than compound children so the per-role\nlayout owns where each slot renders. Pass `null` / omit to opt out.\n\nDefault entrance animation is a 240ms fade+slide-up (`prefers-reduced-motion`\nforces it off; `animate={false}` opts out per call). Action groups are\nCSS-only (`group-hover`) so they don't compete with the entrance animation\ntiming, and `actionsVisibility=\"always\"` opts a surface out of hover-gating\nentirely (touch has no hover; see ActionsSlot).\n\nFor the empty placeholder while AIKO composes, render a `<TypingIndicator>`\ninside `<MessageRow role=\"assistant\">` rather than reaching for a custom\nsurface — same rhythm, same bubble, same spacing.","props":[{"name":"role","type":"MessageRole","required":true,"doc":"Speaker / message kind."},{"name":"avatar","type":"React.ReactNode","required":false,"doc":"Avatar slot."},{"name":"actions","type":"React.ReactNode","required":false,"doc":"Action affordances — copy, retry, share."},{"name":"actionsVisibility","type":"ActionsVisibility","required":false,"doc":"How `actions` is revealed."},{"name":"timestamp","type":"React.ReactNode","required":false,"doc":"Relative or absolute time."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Message body — plain string, `<Markdown>`, `<TypingIndicator>`, `<ToolCard>`, etc."},{"name":"animate","type":"boolean","required":false,"doc":"Disable Framer Motion entrance animation."},{"name":"senderName","type":"string","required":false,"doc":"Display name for the sender."},{"name":"loading","type":"boolean","required":false,"doc":"The body has not arrived — renders placeholder lines in place of `children`, inside this role's own layout (avatar, side, bubble tint) so the row is already sitting where the message will sit."},{"name":"loadingLines","type":"number","required":false,"doc":"Placeholder line count."}],"propsType":"MessageRowProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MessageTimestamp","kind":"component","layer":"component","file":"src/components/MessageTimestamp.tsx","module":"MessageTimestamp","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"MessageTimestamp — the timestamp leaf for a chat transcript.","doc":"MessageTimestamp — the timestamp leaf for a chat transcript.\n\nA real `<time dateTime>`, so the machine-readable moment is in the DOM\nwhatever the visible label says, plus the full absolute moment carried on\nBOTH `title` and `aria-label`. That pairing is the point of the component:\n`title` alone puts the exact time behind a hover, which is unreachable on\ntouch, so the absolute rides the accessible name too and the short relative\nlabel (\"Just now\", \"14:32\") is all that has to fit on screen.\n\nPresentation only. Formatting is a locale + timezone + live-clock problem the\nconsumer already owns — a transcript left open needs \"Just now\" to become\n\"2 min ago\" without repainting the whole conversation, which is a ticking\nsubscription the host holds. So the consumer resolves both strings:\n\n  <MessageTimestamp\n    dateTime={m.at}\n    label={relative(m.at, now)}\n    absoluteLabel={absolute(m.at)}\n  />\n\nRenders NOTHING without a `dateTime` and a `label`. A still-streaming turn has\nno persisted row yet, and an empty label must not leave a stray element behind\n— a bubble reading as \"avatar + timestamp, empty body\" is the ghost-row\nfailure this guard exists to prevent.\n\n[…truncated — read the source file for the rest]","props":[{"name":"dateTime","type":"string | null","required":false,"doc":"ISO-8601 moment."},{"name":"label","type":"string | null","required":false,"doc":"The short visible label (\"Just now\", \"14:32\")."},{"name":"absoluteLabel","type":"string","required":false,"doc":"The full absolute moment (\"12 March 2026 at 14:32\")."},{"name":"loading","type":"boolean","required":false,"doc":"Hold the label's footprint with a placeholder while the row hydrates."}],"propsType":"MessageTimestampProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MeterBar","kind":"component","layer":"component","file":"src/components/MeterBar.tsx","module":"MeterBar","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"MeterBar — a share of a total drawn as a bar (or, with `segments`, as a row of milestones).","doc":"MeterBar — a share of a total drawn as a bar (or, with `segments`, as a row of milestones). Motion-free (the width\neases through a CSS transition a theme may switch on) and token-driven.\n\nReproduces, from variables alone:\n  - v2's Bar (6px / 8px track, accent/ok/warn/muted fill) and MilestoneMeter (16 x 5px segments, 3px gap).\n  - aisquare-fe's MeterBar (6px track on --muted, ink or good fill, width eased over 250ms).\n\nReads `--ui-meter-*`, every one with a fallback. Accessible: with `label` it is `role=\"meter\"` with\nvaluemin/max/now; without one it is `aria-hidden` (the words beside it say the number, as fe does).","props":[{"name":"value","type":"number","required":false,"doc":"How much of `max` to fill."},{"name":"max","type":"number","required":false,"doc":null},{"name":"label","type":"string","required":false,"doc":"What it measures, for assistive tech."},{"name":"tone","type":"MeterBarTone","required":false,"doc":null},{"name":"size","type":"\"sm\" | \"md\"","required":false,"doc":null},{"name":"segments","type":"readonly MeterBarSegment[]","required":false,"doc":"Milestone mode: one state per segment, in order (v2 MilestoneMeter)."}],"propsType":"MeterBarProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MicButton","kind":"component","layer":"component","file":"src/components/MicButton.tsx","module":"MicButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Inputs","since":"v1.7.0","demoId":"mic-button","summary":"MicButton — shared mic affordance for primitives that ship voice input.","doc":"MicButton — shared mic affordance for primitives that ship voice input.\n\nEncapsulates the icon swap (`Mic` ↔ `MicOff`), the aria semantics\n(`aria-pressed` + listening-aware `aria-label`), and the theme tokens\nfor idle / hover / listening so every primitive that exposes voice\ndictation reads as the same recording affordance:\n\n  - **Idle**:     `text-muted-foreground` · hover bumps to `bg-muted/50 text-foreground`\n  - **Listening**: `bg-destructive/10 text-destructive` · hover stays destructive-tinted\n\nListening uses the destructive token rather than accent because the\naction a click performs while listening is \"stop recording\" — the\nred read matches the user's mental model from native voice UIs.\n\nPress language (Onyx \"offset key\"): MicButton is a ROUND control, so it keeps\nits circle — the hex notch is for rectangular surfaces. It still shares the\noffset-key feel via the press: a springy 1px press-DOWN on `:active` (a CSS\ntranslate + overshoot ease, the same bounce every Button/KeycapButton uses),\nso the whole lib presses consistently. No notch, no travel block, no keyline\nring. The underlying Button stays `motion={false}` (its notch-oriented\ndiagonal press doesn't apply to a round face); the round press rides on\n`className` instead.\n\n[…truncated — read the source file for the rest]","props":[{"name":"listening","type":"boolean","required":true,"doc":"Whether voice recognition is actively listening — drives icon + theme tokens."},{"name":"startLabel","type":"string","required":false,"doc":"Aria label when not listening."},{"name":"stopLabel","type":"string","required":false,"doc":"Aria label when listening."}],"propsType":"MicButtonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MoodLighting","kind":"component","layer":"component","file":"src/components/MoodLighting.tsx","module":"MoodLighting","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.6.0","demoId":"mood-lighting","summary":"MoodLighting — the ambient gradient *field* behind a reserved moment.","doc":"MoodLighting — the ambient gradient *field* behind a reserved moment.\n\nA full-bleed, decorative backdrop for the small set of surfaces that earn\ndepth (hero greeting, empty states, onboarding, the dark preview stage). It\ncomposes two layers:\n\n  Layer A — a slow, transform-only drift of two soft radial blobs anchored\n            just inside opposite corners (`--mood-field-1` / `--mood-field-2`)\n            so their mass is on-canvas and the calm 14s drift is perceptible\n            at rest. Painted at full low alpha from the first frame so\n            html-to-image / PDF export never captures a blank backdrop. When\n            `hoverResponse` is set, the field brightens + lifts slightly while\n            the pointer is over the host (a clear, opt-in hover wake).\n  Layer B — an optional cursor glow (`--mood-glow`) that tracks the pointer\n            within the host when `interactive`, fading in over 240ms.\n\nThis is the *field* layer and is deliberately distinct from the lib's\nperimeter/border effects — do not reach for it when you mean one of those:\n\n  - `<BorderGlow>`  — steady/pulsing halo around a surface's perimeter.\n  - `<EditingBeam>` — a beam gliding across a block being rewritten.\n  - `<BorderBeam>`  — a bright arc sweeping the border (Badge \"premium\").\n\n[…truncated — read the source file for the rest]","props":[{"name":"tone","type":"\"light\" | \"stage\"","required":false,"doc":"Which surface the field is painted for."},{"name":"interactive","type":"boolean","required":false,"doc":"Enable the cursor glow that tracks the pointer within the host."},{"name":"hoverResponse","type":"boolean","required":false,"doc":"Brighten + lift the ambient field while the pointer is over the host — an opt-in hover wake on top of the always-on drift."},{"name":"intensity","type":"\"subtle\" | \"default\"","required":false,"doc":"Field + glow strength."},{"name":"glowRadius","type":"number","required":false,"doc":"Cursor-glow radius in px."}],"propsType":"MoodLightingProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MorphingRail","kind":"component","layer":"component","file":"src/components/MorphingRail.tsx","module":"MorphingRail","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"MorphingRailItem[]","required":true,"doc":"Items to render as morphing circles."},{"name":"activeId","type":"string","required":false,"doc":"Currently-active item id."},{"name":"onSelect","type":"(id: string) => void","required":false,"doc":"Fires when a circle is clicked / Enter / Space."},{"name":"onDismiss","type":"(id: string) => void","required":false,"doc":"Fires when a circle's dismiss `X` is clicked."},{"name":"morphGroup","type":"string","required":false,"doc":"Namespace for the layoutId pairing."},{"name":"iconSize","type":"IconSize","required":false,"doc":"Item pixel size."},{"name":"shape","type":"RailShape","required":false,"doc":"Item silhouette."},{"name":"orientation","type":"\"vertical\" | \"horizontal\"","required":false,"doc":"Stack orientation."},{"name":"gap","type":"GapStep","required":false,"doc":"Tailwind gap step between circles."},{"name":"ariaLabel","type":"string","required":false,"doc":"Plain-text label for the toolbar landmark."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the layout-id FLIP and the spring transitions."},{"name":"showTooltip","type":"boolean","required":false,"doc":"Show the per-tile tooltip on hover."},{"name":"magnify","type":"boolean","required":false,"doc":"Cursor-driven magnification (macOS-dock pattern)."}],"propsType":"MorphingRailProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MorphingRailStage","kind":"component","layer":"component","file":"src/components/MorphingRail.tsx","module":"MorphingRail","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"morphId","type":"string","required":true,"doc":"Item id whose circle this stage morphs from / to."},{"name":"morphGroup","type":"string","required":false,"doc":"Namespace for layoutId — must match the paired `<MorphingRail morphGroup>`."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the layout-id FLIP."},{"name":"borderRadius","type":"number | string | null","required":false,"doc":"Inline CSS `border-radius` applied to the stage wrapper."}],"propsType":"MorphingRailStageProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"oauthProviderButtonsVariants","kind":"variants","layer":"component","file":"src/components/OAuthProviderButtons.tsx","module":"OAuthProviderButtons","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"OAuthProviderButtons","kind":"component","layer":"component","file":"src/components/OAuthProviderButtons.tsx","module":"OAuthProviderButtons","primary":true,"importPaths":["@aisquare/ui"],"category":"Auth","since":"v1.4.0","demoId":"oauth-provider-buttons","summary":"OAuthProviderButtons — one reusable social sign-in row.","doc":"OAuthProviderButtons — one reusable social sign-in row.\n\nThe \"row of provider tiles that calls back with a provider id\" was rebuilt\nthree times across the apps (fe-react's `SocialAuthButtons`, AuthModal's\ninlined grid, unified's bespoke `AuthScreen` grid), each with a different\nicon source and layout. This is the single branded version. It maps over the\ncanonical `OAuthProviderConfig[]` (default `DEFAULT_OAUTH_PROVIDERS`, both\nre-exported here from `./AuthModal` so there is one definition) and renders\none tile per provider.\n\nComposition (we do not hand-roll a button):\n- `appearance=\"icon\"` (default) renders the `IconButton` primitive as a\n  rectangular brand tile: a plain `rounded-lg` face with a real `border`\n  keyline. We override IconButton's round resting surface with\n  `provider.color` / `provider.hoverColor` (the brand-token classes already\n  on each config) and keep IconButton's own springy 1px press feedback\n  (gated by `motion`), so there's a single press mechanic, not a doubled one.\n- `appearance=\"labeled\"` renders `Button variant=\"outline\"` with\n  `{verb} {label}` text (fe-react's full-width shape) — a plain bordered\n  pill button; Button owns its own hover/focus chrome, no press mechanics.\n\n[…truncated — read the source file for the rest]","props":[{"name":"providers","type":"OAuthProviderConfig[]","required":false,"doc":"Providers to render."},{"name":"onSelect","type":"(providerId: string) => void","required":true,"doc":"Called with the provider id when a tile is activated."},{"name":"appearance","type":"\"icon\" | \"labeled\"","required":false,"doc":"Tile appearance: icon-only (`IconButton`) or full-width labeled (`Button variant=\"outline\"`)."},{"name":"columns","type":"number","required":false,"doc":"Grid columns when `layout=\"grid\"`."},{"name":"mode","type":"\"login\" | \"signup\"","required":false,"doc":"Verb prefix for the accessible label / title / tooltip / labeled text (\"Sign in with\" by default)."},{"name":"verb","type":"string","required":false,"doc":"Explicit verb prefix; overrides `mode`."},{"name":"disabled","type":"boolean","required":false,"doc":"Global busy flag — disables every tile (maps to unified's `busy || checking` and AuthModal's `isSubmitting`)."},{"name":"loadingProviderId","type":"string","required":false,"doc":"Render the per-tile loading morph (icon -> Spinner) for this provider id."},{"name":"showTooltip","type":"boolean","required":false,"doc":"Wrap each tile in the brand Tooltip showing `{verb} {label}`."},{"name":"getTestId","type":"(providerId: string) => string","required":false,"doc":"Map a provider id to its `data-testid`."},{"name":"animated","type":"boolean","required":false,"doc":"Stagger the tiles in on mount."},{"name":"motion","type":"boolean","required":false,"doc":"Disable per-tile press-spring (forwarded to the primitive)."}],"propsType":"OAuthProviderButtonsProps","variants":{"variants":{"layout":["grid","row"]},"defaults":{"layout":"grid"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"OptionField","kind":"component","layer":"component","file":"src/components/OptionField.tsx","module":"OptionField","primary":true,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.6.0","demoId":"option-field","summary":"OptionField + OptionCardGroup — the configurable-field building blocks for the experience config / create surfaces (the chassis-first core of the OptionField family).","doc":"OptionField + OptionCardGroup — the configurable-field building blocks for the\nexperience config / create surfaces (the chassis-first core of the OptionField\nfamily).\n\n- `OptionField` wraps any control in a labelled row: label (+ required mark),\n  the control, and a helper line that flips to an error message when `error`\n  is set.\n- `OptionCardGroup` is the selectable option-card / radio-chip pattern, built\n  on the Radix RadioGroup primitive so single-select semantics, roving focus,\n  and the `radiogroup`/`radio` ARIA roles come for free and stay correct. The\n  whole card is the click target; the checked card reads in `primary`.\n\nBrand tokens only; the checked highlight + hover are `transition-colors` so\nthey are safe under `prefers-reduced-motion`.\n\nThe rest of the family (SwatchGroup / SegmentedOptions / QuantityStepper) and\nthe ConfigPanel shell are separate follow-ons.","props":[{"name":"label","type":"React.ReactNode","required":false,"doc":"Field label."},{"name":"htmlFor","type":"string","required":false,"doc":"`htmlFor` for the label, when the control has an id."},{"name":"helper","type":"React.ReactNode","required":false,"doc":"Helper text under the control (hidden when `error` is set)."},{"name":"error","type":"React.ReactNode","required":false,"doc":"Error message; when set it replaces the helper and reads in `destructive`."},{"name":"required","type":"boolean","required":false,"doc":"Show a required mark next to the label."}],"propsType":"OptionFieldProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"OptionCardGroup","kind":"component","layer":"component","file":"src/components/OptionField.tsx","module":"OptionField","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"options","type":"OptionCardOption[]","required":true,"doc":null},{"name":"value","type":"string","required":false,"doc":"Controlled selected value."},{"name":"defaultValue","type":"string","required":false,"doc":"Uncontrolled initial value."},{"name":"onValueChange","type":"(value: string) => void","required":false,"doc":null},{"name":"name","type":"string","required":false,"doc":null},{"name":"disabled","type":"boolean","required":false,"doc":null},{"name":"columns","type":"1 | 2 | 3","required":false,"doc":"Responsive columns for the card grid."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"OptionCardGroupProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"PermissionWrapper","kind":"component","layer":"component","file":"src/components/PermissionWrapper.tsx","module":"PermissionWrapper","primary":true,"importPaths":["@aisquare/ui"],"category":"Utilities","since":"v1.4.0","demoId":"permission-wrapper","summary":"PermissionWrapper - gate any action and, when it is off, tell the user why.","doc":"PermissionWrapper - gate any action and, when it is off, tell the user why.\n\nWraps a single action element (usually a `Button`). When `hasPermission` is\nfalse it disables the child, swallows its click, dims it, and shows the reason\nin a Tooltip on hover/focus. When permission is granted it either renders the\nchild untouched (the hot path, zero wrapper DOM) or, if `allowedTooltip` is\nset, wraps it in an informational Tooltip while keeping it live.\n\nBuilt on the in-house `Tooltip` primitive (Radix-backed), so focus management,\nkeyboard dismissal, portalling, collision-aware placement, and the\n`role=\"tooltip\"` / `aria-describedby` wiring come for free. The denied control\nis wrapped in a live `<div>` (rather than cloning the trigger onto a disabled\nbutton) because Radix `Tooltip.Trigger asChild` needs a single ref-able child,\nand a disabled native button does not reliably forward hover/focus - the div\nis what Radix attaches to and what receives hover. Do not collapse it onto the\nchild.\n\n[…truncated — read the source file for the rest]","props":[{"name":"hasPermission","type":"boolean","required":true,"doc":"Whether the user has permission to perform the action."},{"name":"children","type":"React.ReactElement","required":true,"doc":"The single child element to wrap (typically a Button)."},{"name":"deniedMessage","type":"string","required":false,"doc":"Tooltip message shown when permission is denied."},{"name":"hideOnDenied","type":"boolean","required":false,"doc":"When true, render nothing instead of the dimmed control if permission is denied (drops the control entirely)."},{"name":"allowedTooltip","type":"string","required":false,"doc":"Informational tooltip shown on the live control when permission IS granted (e.g."},{"name":"tone","type":"PermissionWrapperTone","required":false,"doc":"Dim treatment for the denied state."}],"propsType":"PermissionWrapperProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Pill","kind":"component","layer":"component","file":"src/components/Pill.tsx","module":"Pill","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Pill — larger rounded status label.","doc":"Pill — larger rounded status label.\n\nThin composer on top of `Badge`. Collapses the earlier `font-mono uppercase`\n+ duplicated compound-variant table (iter-17-F1 substrate-discipline trigger)\n— the fill-mode / color / shape logic already exists on Badge; Pill was\nmaintaining a parallel copy without reason.\n\nShape chosen: thin wrapper (not deletion) to preserve the typed `label` +\n`tone` + `appearance` contract used in playground demos and office designs.\nBadge receives no new props. If Pill is ever deleted, consumers migrate to:\n  <Badge variant={tone} appearance={appearance} size=\"default\">{label}</Badge>\n\ntone → Badge variant mapping (shared with Tag):\n  success     → success\n  destructive → destructive\n  info        → info\n  accent      → accent\n  premium     → premium\n  secondary   → secondary\n\nThe `appearance` axis passes through unchanged — Badge already has\nsolid / soft / steel with identical semantics.\n\nsteel: Badge handles the inline-style gradient directly; Pill just\ndelegates. No duplication of steelStyle logic here.\n\nMigrated from AISquare Office iter-05 / iter-13; collapsed into Badge\ncomposer in iter-17-F1.","props":[{"name":"tone","type":"PillTone","required":false,"doc":"Semantic color."},{"name":"appearance","type":"\"solid\" | \"soft\" | \"steel\"","required":false,"doc":"Fill mode — identical axis to Badge.appearance: \"solid\" — opaque accent background, foreground text (high emphasis)."},{"name":"label","type":"string","required":true,"doc":"Text label to display."}],"propsType":"PillProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PublishSuccess","kind":"component","layer":"component","file":"src/components/PublishSuccess.tsx","module":"PublishSuccess","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PublishSuccess — the calm, resolved inline panel a surface settles into *after* a publish lands.","doc":"PublishSuccess — the calm, resolved inline panel a surface settles into *after*\na publish lands. The quiet half of the \"silent emotional peak\": the\n`celebrate()` burst is the loud, transient beat; this panel is the durable\n\"it's live\" confirmation the user reads and acts on.\n\nA sibling of `SuccessState` in the EmptyState / ErrorState / SuccessState\nfamily — same success-token medallion, same `role=\"status\"` a11y posture, same\ncalm skeleton — specialised for publish:\n  - defaults to a `CheckCircle2` medallion + a \"Published\" heading;\n  - a convenience `viewHref` renders the primary \"View\" affordance (a plain,\n    router-free `<a>` styled as an outline button) so the user can open the\n    thing they just published;\n  - an `action` slot for anything richer (a router `<Link>`, secondary buttons).\n\nMotion — the two-beat \"slide, then fade\" entrance the house style calls for:\nthe panel translates up first (`y`), and opacity ramps *after* the slide is\nunderway (a short `delay` on the opacity tween), never in lockstep. The\nmedallion pops in on the success spring. All of it collapses to the final,\nstatic state under `prefers-reduced-motion` (via `useReducedMotion()`), where\nthe panel simply *is* — no entrance, no medallion pop. `null` (pre-resolve) is\ntreated as \"allowed\" to avoid an animate-then-snap flash.\n\n[…truncated — read the source file for the rest]","props":[{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading."},{"name":"description","type":"React.ReactNode","required":false,"doc":"One calm line under the heading."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Medallion glyph."},{"name":"viewHref","type":"string","required":false,"doc":"Convenience primary affordance: renders a router-free `<a href>` styled as an outline button (\"View\" by default)."},{"name":"viewLabel","type":"React.ReactNode","required":false,"doc":"Label for the `viewHref` affordance."},{"name":"action","type":"React.ReactNode","required":false,"doc":"Extra CTA slot (secondary buttons / a router link)."},{"name":"animate","type":"boolean","required":false,"doc":"Animate the entrance (slide-then-fade + medallion pop)."},{"name":"celebrate","type":"boolean | CelebrateIntensity","required":false,"doc":"Opt-in confetti on mount."}],"propsType":"PublishSuccessProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"PulseDot","kind":"component","layer":"component","file":"src/components/PulseDot.tsx","module":"PulseDot","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PulseDot — small live-status indicator with a soft outward pulse.","doc":"PulseDot — small live-status indicator with a soft outward pulse.\n\nUses CSS keyframes (no JS). Pairs nicely with a \"Live\" / \"Online\" Badge.","props":[{"name":"static","type":"boolean","required":false,"doc":"Disable the pulse animation (still shows the dot)."}],"propsType":"PulseDotProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"railNavButtonVariants","kind":"variants","layer":"component","file":"src/components/RailNavButton.tsx","module":"RailNavButton","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"RailNavButton","kind":"component","layer":"component","file":"src/components/RailNavButton.tsx","module":"RailNavButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Navigation","since":"v1.6.0","demoId":"rail-nav-button","summary":"RailNavButton — a navigation control for the app's left rail, rendered as a LARGE GLASS ICON TILE with its name beside it.","doc":"RailNavButton — a navigation control for the app's left rail, rendered as a\nLARGE GLASS ICON TILE with its name beside it.\n\nThe hero is the frosted tile: the icon sits inside a two-layer `GlassSurface`\n(the `rounded-lg` tile shape, `--glass*` tokens), so the control reads as \"a\nlarge glass icon first.\" The label is VISIBLE AT REST to the right of the tile (issue\n#165 — the resting state shows the name). In a dock context (a shared cursor\n`mousePos` is passed) the tile magnifies via proximity to the cursor, driven\nby a transform SCALE spring (the macOS-dock feel) — never by animating the\nbox width/height (that reflows the row and shoves the label every frame).\n\nThree label modes (`labelMode`):\n  - `\"rest\"`  (default) — the name is always visible beside the tile.\n  - `\"hover\"` — the name is collapsed at rest and slides in on hover / focus\n    (the legacy #144 behaviour; `revealOnHover` maps onto this).\n  - `\"tooltip\"` — no inline label; the tile stands alone (a magnify-dock\n    context that uses a separate tooltip). The `<span>{label}</span>` still\n    renders for the a11y tree, just visually hidden.\n\n[…truncated — read the source file for the rest]","props":[{"name":"icon","type":"React.ReactNode","required":true,"doc":"Leading icon, shown inside the glass tile."},{"name":"label","type":"string","required":true,"doc":"Row label + accessible name."},{"name":"labelMode","type":"RailNavLabelMode","required":false,"doc":"How the label is shown: - `\"rest\"` (default) — visible at rest beside the tile (issue #165)."},{"name":"revealOnHover","type":"boolean","required":false,"doc":""},{"name":"mousePos","type":"MotionValue<number>","required":false,"doc":"Optional shared cursor position (`clientX`/`clientY`) for dock-context proximity magnify."},{"name":"axis","type":"\"vertical\" | \"horizontal\"","required":false,"doc":"Axis the `mousePos` motion value tracks."},{"name":"motion","type":"boolean","required":false,"doc":"Disable all motion (the enlarge spring / magnify)."}],"propsType":"RailNavButtonProps","variants":{"variants":{"variant":["active","inactive"],"size":["default","compact"]},"defaults":{"variant":"inactive","size":"default"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"RotatingHints","kind":"component","layer":"component","file":"src/components/RotatingHints.tsx","module":"RotatingHints","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.11.0","demoId":"rotating-hints","summary":"RotatingHints, a quiet single line of usage tips for wait states.","doc":"RotatingHints, a quiet single line of usage tips for wait states. Drop it\ninto the \"thinking\" / long-tool-run row of a chat surface so the user learns\nwhat they can do while the assistant works, then let it disappear the moment\nprose starts streaming.\n\nIt is decorative on purpose (`aria-hidden`), so it never steals a screen\nreader's attention from the real streamed answer. Mount it while you are\nwaiting; unmount it on the first prose token.\n\nBehavior:\n- **Grace first.** Renders nothing until `graceMs` has elapsed, so a fast\n  answer never flashes a tip. Keep this component mounted only during the\n  wait, and it self-suppresses on quick turns.\n- **Rotates.** After the grace, it shows one hint and advances to the next\n  every `intervalMs`, cycling the list. The start index is random by default\n  (so repeat visitors do not always open on hint 1); pass `startIndex` to pin\n  it (tests do this for determinism).\n- **House two-beat swap.** Each rotation slides on the library's signature\n  `[0.16, 1, 0.3, 1]` curve with opacity ramping a beat after the transform,\n  never simultaneous. Under `prefers-reduced-motion` it collapses to a calm\n  opacity-only cross-fade with no transform.\n- **No jank.** The incoming line takes the slot immediately (`popLayout`) and\n  the outgoing line animates out on top, so a swap never shifts layout. The\n  row is clipped to itself, and each tip is a single t\n\n[…truncated — read the source file for the rest]","props":[{"name":"hints","type":"string[]","required":true,"doc":"The tips to cycle through, shown verbatim, one per rotation."},{"name":"intervalMs","type":"number","required":false,"doc":"Milliseconds each hint stays before the next one slides in."},{"name":"graceMs","type":"number","required":false,"doc":"Milliseconds to wait before showing the first hint."},{"name":"startIndex","type":"number","required":false,"doc":"Index of the first hint to show."}],"propsType":"RotatingHintsProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ScrollToBottomButton","kind":"component","layer":"component","file":"src/components/ScrollToBottomButton.tsx","module":"ScrollToBottomButton","primary":true,"importPaths":["@aisquare/ui"],"category":"AI","since":"v1.7.0","demoId":"scroll-to-bottom-button","summary":"ScrollToBottomButton — floating \"Jump to latest\" affordance for chat scrollers.","doc":"ScrollToBottomButton — floating \"Jump to latest\" affordance for chat scrollers.\n\nPairs with the `useScrollToBottom()` hook. The hook tells you whether the\nuser has scrolled up; this button gives them a one-click way back. Default\nicon is an `ArrowDown`; while AIKO is composing, consumers typically pass\n`<TypingIndicator />` to render a live cue inside the button instead.\n\nThe button is absolutely positioned by default so it floats above the\nscroller — `absolute bottom-3 left-1/2 -translate-x-1/2 z-10`. Override the\npositioning via `className` when you need a different placement (e.g.\nbottom-right inside a sidebar). Visible/hidden state is controlled via the\n`visible` prop wrapped in `<AnimatePresence>` for a quiet fade+slide.\n\nUnread badge: pass a positive integer in `unreadCount` to render a small\nbadge in the top-right corner (\"Jump · 4 new\"). Counts ≥100 render as \"99+\".\n\n[…truncated — read the source file for the rest]","props":[{"name":"onClick","type":"React.MouseEventHandler<HTMLButtonElement>","required":true,"doc":"Click handler — typically the `scrollToBottom` returned by `useScrollToBottom()`."},{"name":"visible","type":"boolean","required":false,"doc":"Whether the button is on-screen."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Optional inner content."},{"name":"unreadCount","type":"number","required":false,"doc":"When > 0, renders an unread-count pill in the top-right corner."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the fade+slide motion on visible toggle."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Screen-reader label."}],"propsType":"ScrollToBottomButtonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"setupChecklistVariants","kind":"variants","layer":"component","file":"src/components/SetupChecklist.tsx","module":"SetupChecklist","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SetupChecklist","kind":"component","layer":"component","file":"src/components/SetupChecklist.tsx","module":"SetupChecklist","primary":true,"importPaths":["@aisquare/ui"],"category":"Onboarding","since":"v1.4.0","demoId":"setup-checklist","summary":"SetupChecklist: one collapsible onboarding checklist with an animated progress bar, motion-driven rows, a two-tap dismiss guard, and a celebrate-on-complete moment.","doc":"SetupChecklist: one collapsible onboarding checklist with an animated\nprogress bar, motion-driven rows, a two-tap dismiss guard, and a\ncelebrate-on-complete moment.\n\nConsolidates the two copy-paste forks from Creator Studio / FE-React\n(`TeamSetupChecklist`, `StarterChecklist`) into one configurable component\nbuilt on primitives the library already ships:\n- `Progress` (Radix) for the determinate bar,\n- `Collapsible` (Radix) for the keyboard-accessible expand / collapse,\n- `Tooltip` for the toggle hint,\n- `celebrate()` for the confetti when every task lands, and\n- `motion/react` `AnimatePresence` for the row enter / exit, gated on\n  `useReducedMotion` with a static fallback.\n\nRow motion note: this composes `AnimatePresence` directly rather than the\n`AnimatedList` component because `AnimatedList` hardcodes a per-row\n`rounded-2xl border bg-card` card chrome on its row wrapper that `renderItem`\ncannot override, which would box every task in its own card. The donor\nchecklists (and this port) want flat rows, so we drive the same\n`AnimatePresence` slide-in/out that `AnimatedList` wraps, with flat\ndonor-matching row styling.\n\nRouter-free by design: incomplete rows that carry an `href` are wrapped in a\nconsumer-supplied `linkComponent` (the app's `<Link>`); the library imports\nno router. For full control over a row, pass `renderRow`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"tasks","type":"SetupChecklistTask[]","required":true,"doc":"The checklist rows."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading above the card."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Sub-line inside the header."},{"name":"percentComplete","type":"number","required":false,"doc":"Override the derived `completed / total` percentage with a server-computed value (0-100), matching Starter's `checklist_completion`."},{"name":"onDismiss","type":"() => void","required":false,"doc":"Fired when the dismiss control is confirmed."},{"name":"confirmDismiss","type":"boolean","required":false,"doc":"Require two taps to dismiss (the first arms a \"Click again to confirm\" state)."},{"name":"dismissLabel","type":"React.ReactNode","required":false,"doc":"Label for the dismiss button."},{"name":"onCollapseChange","type":"(collapsed: boolean) => void","required":false,"doc":"Fired whenever the collapsed state changes."},{"name":"defaultCollapsed","type":"boolean","required":false,"doc":"Start collapsed."},{"name":"linkComponent","type":"React.ElementType","required":false,"doc":"The consumer's router link component, used to wrap incomplete rows that carry an `href`."},{"name":"renderRow","type":"(ctx: SetupChecklistRowContext) => React.ReactNode","required":false,"doc":"Full row escape hatch."},{"name":"loading","type":"boolean","required":false,"doc":"The task list has not arrived yet — renders the card with placeholder rows."},{"name":"loadingRows","type":"number","required":false,"doc":"Placeholder row count while `loading`."},{"name":"celebrateOnComplete","type":"boolean","required":false,"doc":"Fire `celebrate()` once when progress reaches 100%."},{"name":"celebrateIntensity","type":"CelebrateIntensity","required":false,"doc":"Confetti intensity for the completion moment."}],"propsType":"SetupChecklistProps","variants":{"variants":{"size":["compact","comfortable"]},"defaults":{"size":"comfortable"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ShimmerButton","kind":"component","layer":"component","file":"src/components/ShimmerButton.tsx","module":"ShimmerButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.1.0","demoId":"shimmer-button","summary":"ShimmerButton — hero CTA with a conic spark orbiting inside the border and a soft inner highlight that deepens on hover/press.","doc":"ShimmerButton — hero CTA with a conic spark orbiting inside the border and\na soft inner highlight that deepens on hover/press. Ported from Creator\nStudio v2 (`src/components/ui/shimmer-button.tsx`) and re-themed: fill and\nspark default to the consumer's `--primary` / `--primary-foreground`\ntokens instead of hardcoded navy + white, so each studio keeps its theme.\n\nUse sparingly — one per surface. For everyday actions reach for `<Button>`;\nthis is the \"publish\", \"upgrade\", \"create my studio\" moment.\n\nPress: in the Onyx \"offset key\" language this is a SIGNATURE-animated control,\nso the spark is preserved untouched and it takes the quiet press tier — a 1px\npress-DOWN on `:active` with the shared springy overshoot bounce (no notch, no\ntravel block: the silhouette is a pill by design and the spark mask + inner\nbackdrop are built on its `border-radius`, which a notch `clip-path` would\nfight). This replaces the old uniform `scale(0.98)` so it presses like the\nrest of the lib; reduced-motion users still get a static button.\n\nAnatomy notes:\n- Inline CSS vars are namespaced `--sb-*` so they never collide with the\n  global `--radius` token (the upstream source leaked one).\n- The spark animates via the preset's `animate-shimmer-slide` /\n  `animate-spin-around` utilities, which the preset's reduced-motion\n  backstop disables globally — reduced-motion users get a static button.\n\n[…truncated — read the source file for the rest]","props":[{"name":"shimmerColor","type":"string","required":false,"doc":"Spark colour."},{"name":"shimmerSize","type":"string","required":false,"doc":"Border channel the spark travels in."},{"name":"borderRadius","type":"string","required":false,"doc":"Outer radius."},{"name":"shimmerDuration","type":"string","required":false,"doc":"Duration of one spark pass."},{"name":"background","type":"string","required":false,"doc":"Button fill."}],"propsType":"ShimmerButtonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ShinyText","kind":"component","layer":"component","file":"src/components/ShinyText.tsx","module":"ShinyText","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ShinyText — animated shimmer over a span of text.","doc":"ShinyText — animated shimmer over a span of text.\n\nA specular gradient sweeps across the rendered text on a fixed cycle,\nso a paragraph of static prose looks like it's being touched by light.\nDesigned for \"AIKO is editing this\" surfaces: the user sees that the\ntext shouldn't be edited right now without us having to overlay a\nspinner or a banner.\n\nSourced from React Bits (`@react-bits/ShinyText-TS-TW`) and adapted\nto pretty conventions: named export with `forwardRef`, token-aware\ndefaults (`color` reads `--muted-foreground`, `shineColor` reads\n`--foreground`), and `prefers-reduced-motion` respect — under reduced\nmotion the shimmer freezes so the text reads cleanly without animation.\n\nThe component renders an inline `<motion.span>` so it composes inside\na paragraph, an `<h2>`, a list item, or a card body without breaking\nsurrounding flow. For block-level animation use a wrapping element.","props":[{"name":"text","type":"React.ReactNode","required":true,"doc":"Text to shimmer over."},{"name":"disabled","type":"boolean","required":false,"doc":"Pause the animation."},{"name":"speed","type":"number","required":false,"doc":"Animation duration in seconds for one full sweep."},{"name":"color","type":"string","required":false,"doc":"Base text color."},{"name":"shineColor","type":"string","required":false,"doc":"Highlight color the shimmer transitions to."},{"name":"spread","type":"number","required":false,"doc":"Gradient angle in degrees."},{"name":"yoyo","type":"boolean","required":false,"doc":"Bounce the shimmer back on each cycle instead of looping."},{"name":"pauseOnHover","type":"boolean","required":false,"doc":"Pause the shimmer while the cursor is over the element."},{"name":"direction","type":"\"left\" | \"right\"","required":false,"doc":"Sweep direction."},{"name":"delay","type":"number","required":false,"doc":"Pause between cycles in seconds."}],"propsType":"ShinyTextProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SlugTag","kind":"component","layer":"component","file":"src/components/SlugTag.tsx","module":"SlugTag","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SlugTag — inline channel-name pill / session reference chip.","doc":"SlugTag — inline channel-name pill / session reference chip.\n\nUsed in: center-pane message stream (per-message sender label), thread reply\nrows, composer session chip, worklog entry refs.\n\nUnlike Tag/Pill (which are status labels), SlugTag is an identity label:\n  - No uppercase transform — slugs are lowercase (\"founder-0\", \"jatin\").\n  - No semantic accent enum — hue is passed directly as a CSS color string\n    because founder hues are brand colors, not semantic states.\n  - Two prefix forms: angle-bracket `<slug>` or hash-prefix `#slug`.\n\nThe `asChild` prop (Radix Slot pattern) lets the consumer render SlugTag as\nany element — useful for making it a link without wrapping in an extra span.\n\nDesign ref: design-handoff.md §4.3, §4.4.\n\nMigrated from AISquare Office plugins/office/web/src/components/primitives/SlugTag.tsx\n(office-visual-parity iter-11 / iter-13).","props":[{"name":"slug","type":"string","required":true,"doc":"The slug to render — e.g."},{"name":"hue","type":"string","required":false,"doc":"Hue for this slug as a CSS color string (hex, rgb, hsl, etc.)."},{"name":"angularBracket","type":"boolean","required":false,"doc":"When true, renders as \"<slug>\" (angle-bracket form for message stream)."},{"name":"asChild","type":"boolean","required":false,"doc":"Render the chip as a child element via Radix Slot."}],"propsType":"SlugTagProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SmartPagination","kind":"component","layer":"component","file":"src/components/SmartPagination.tsx","module":"SmartPagination","primary":true,"importPaths":["@aisquare/ui"],"category":"Navigation","since":"v1.4.0","demoId":"smart-pagination","summary":"SmartPagination — the smart windowing layer over the stock `@aisquare/ui` `Pagination` primitives.","doc":"SmartPagination — the smart windowing layer over the stock `@aisquare/ui`\n`Pagination` primitives. Consumes {@link usePagination} for the sliding-window\nmath (first/last pin, edge-expansion, gap-aware ellipsis) and renders the\non-brand stock parts, so a dev passing only `currentPage` / `totalPages` /\n`onPageChange` gets a polished, a11y-correct pager.\n\nExported as `SmartPagination` (not `Pagination`) so it does not collide with\nthe stock `Pagination` symbol re-exported through `@aisquare/ui/stock`.\n\nBehaviour ported from FE-React's `SlidingPagination` + `CompactPagination`:\n- Self-hides when `totalPages <= 1`.\n- Re-clicking the active page is a no-op (never fires `onPageChange`).\n- Prev / Next are guarded at the edges and rendered disabled there.\n- `variant=\"sliding\"` animates the active marker between buttons with a\n  shared-layout `layoutId` and fades window entries via `AnimatePresence`;\n  `variant=\"compact\"` is the two-window navy pill row.\n\nMotion uses the lib presets ({@link springs} for the slide, {@link durations}\n/ {@link easings} for fades) and is fully gated on\n{@link useReducedMotion} — when reduced, the `layoutId` slide and the\n`AnimatePresence` transitions are dropped (static render) and the opt-in\nscroll uses `behavior: \"auto\"`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"currentPage","type":"number","required":true,"doc":"Currently active page (1-based)."},{"name":"totalPages","type":"number","required":true,"doc":"Total number of pages."},{"name":"onPageChange","type":"(page: number) => void","required":true,"doc":"Fired with the next page."},{"name":"variant","type":"\"sliding\" | \"compact\"","required":false,"doc":"Layout."},{"name":"siblingCount","type":"number","required":false,"doc":"Page numbers shown each side of current (sliding only)."},{"name":"boundaryCount","type":"number","required":false,"doc":"Pages pinned at each end (sliding only)."},{"name":"scrollToTopOnChange","type":"boolean","required":false,"doc":"Scroll the window to the top after a page change."},{"name":"renderLink","type":"(page: number, children: React.ReactNode) => React.ReactNode","required":false,"doc":"Render a page link as a custom element (e.g."}],"propsType":"SmartPaginationProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SmartSearch","kind":"component","layer":"component","file":"src/components/SmartSearch.tsx","module":"SmartSearch","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SmartSearch — AI-aware search input with voice, animated placeholder, scored fuzzy match, and an optional \"Ask Atlas\" footer.","doc":"SmartSearch — AI-aware search input with voice, animated placeholder,\nscored fuzzy match, and an optional \"Ask Atlas\" footer.\n\nSibling to `<ExploreSearchBar>` (lean default). SmartSearch is the variant\nfor surfaces that want the assistant-flavored affordances; consumers who\njust need a vanilla search input should keep using `<ExploreSearchBar>`.\n\nComposes pretty primitives — `<ActionInput variant=\"search\" size=\"lg\">`\nfor the chrome, `<Button variant=\"ghost\">` for clear + mic icons,\n`<AikoMark size=\"xs\">` for the AI footer mascot. No new external deps —\nvoice input is the native Web Speech API, feature-detected and SSR-safe.\n\n@example\n```tsx\n<SmartSearch\n  value={query}\n  onChange={setQuery}\n  data={items}\n  onItemSelect={(item) => navigate(item.id)}\n  placeholderPrompts={[\n    \"Search your content...\",\n    \"Find a quest...\",\n    \"Search by tag or status...\",\n  ]}\n  voice\n  assistant={{ label: \"Ask Atlas\", onAsk: openAskPanel }}\n/>\n```\n\n@example AISquare-mascot leading icon\n```tsx\n<SmartSearch\n  leadingIcon={<AikoMark size=\"xs\" />}\n  value={query}\n  onChange={setQuery}\n  data={items}\n/>\n```\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"string","required":true,"doc":"Controlled value."},{"name":"onChange","type":"(next: string) => void","required":true,"doc":"Controlled change handler."},{"name":"data","type":"SearchableItem[]","required":false,"doc":"Items to score + render in the dropdown."},{"name":"groups","type":"SmartSearchGroup[]","required":false,"doc":"Pre-grouped items."},{"name":"onItemSelect","type":"(item: SearchableItem) => void","required":false,"doc":"Click handler for a suggestion row."},{"name":"getItemIcon","type":"(item: SearchableItem) => React.ReactNode","required":false,"doc":"Override the default item icon (type-driven icon)."},{"name":"getItemSubtitle","type":"(item: SearchableItem) => string","required":false,"doc":"Override the default subtitle (joins `type` + `status` with \" · \")."},{"name":"maxResults","type":"number","required":false,"doc":"Cap on visible suggestions."},{"name":"placeholderPrompts","type":"string[]","required":false,"doc":"Cycle through these as the placeholder while value is empty + input is unfocused."},{"name":"placeholder","type":"string","required":false,"doc":"Static placeholder."},{"name":"voice","type":"boolean | SmartSearchVoiceCallbacks","required":false,"doc":"Enable voice input."},{"name":"assistant","type":"SmartSearchAssistantSlot","required":false,"doc":"Render an \"Ask <assistant> ...\" footer in the dropdown."},{"name":"searchAll","type":"SmartSearchAllSlot","required":false,"doc":"Render a \"Search all results\" footer in the dropdown."},{"name":"loading","type":"boolean","required":false,"doc":"Async results are in-flight."},{"name":"emptyMessage","type":"string | ((query: string) => React.ReactNode)","required":false,"doc":"Empty-state copy when query length is non-trivial and there are no results."},{"name":"leadingIcon","type":"React.ReactNode","required":false,"doc":"Override the leading icon."},{"name":"wrapperClassName","type":"string","required":false,"doc":"Wrapper className for the outer positioned container."}],"propsType":"SmartSearchProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SmoothScroll","kind":"component","layer":"component","file":"src/components/SmoothScroll.tsx","module":"SmoothScroll","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"SmoothScroll — Lenis-powered smooth scroll provider with sensible defaults.","doc":"SmoothScroll — Lenis-powered smooth scroll provider with sensible defaults.\n\nWrap once near the app root. Honors `prefers-reduced-motion` automatically\n(silently pauses, native scroll resumes). Pass `enabled={false}` to pause\ninside surfaces where smooth scroll fights inputs (e.g. the studio editor's\ncode surfaces). The Lenis instance stays mounted across toggles so scroll\nposition and any consumer-side scroll subscriptions don't churn.\n\n  <SmoothScroll>\n    <App />\n  </SmoothScroll>\n\n  <SmoothScroll enabled={!isEditorFocused}>...</SmoothScroll>\n\nInside the tree, consumers can subscribe to the active Lenis instance via\nthe re-exported `useLenis` for advanced use-cases (scroll-linked motion,\nsnap points, programmatic scroll-to).","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":"App tree."},{"name":"enabled","type":"boolean","required":false,"doc":"When false, the Lenis instance stays mounted but pauses via `lenis.stop()` (no instance churn, scroll position preserved on toggle)."},{"name":"options","type":"LenisOptions","required":false,"doc":"Lenis options passthrough — override duration, easing, smoothing, lerp, etc."}],"propsType":"SmoothScrollProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useLenis","kind":"const","layer":"component","file":"src/components/SmoothScroll.tsx","module":"SmoothScroll","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Re-exported from `lenis/react` — read the active Lenis instance inside a `<SmoothScroll>` tree.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SpotlightCard","kind":"component","layer":"component","file":"src/components/SpotlightCard.tsx","module":"SpotlightCard","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"spotlight-card","summary":"SpotlightCard — surface wrapper with a cursor-following radial-glow overlay.","doc":"SpotlightCard — surface wrapper with a cursor-following radial-glow overlay.\n\nAdapted from the React Bits Pro `@reactbits-starter/spotlight-card-tw`\npattern, re-implemented against pretty's anatomy:\n- It's a plain surface with a real CSS `border` (corner rounding driven by\n  the `radius` prop), matching `Card.tsx`'s chrome — no clip-path, no\n  separate keyline overlay. `overflow-hidden` keeps the spotlight gradient\n  clipped to the rounded corners — the glow can never bleed past the\n  card's edge.\n- Glow color drives from theme tokens (`--primary` / `--accent` / `--secondary`),\n  never a hardcoded hex. Per-studio brand retinting via `<StudioBrand>` flows\n  through automatically.\n- `prefers-reduced-motion` honored: the cursor-tracked spotlight collapses\n  to a centered static glow on hover, so the affordance stays visible\n  without the live-tracking motion.\n- SSR-safe — no `window` / `document` at module scope; cursor coords\n  resolve inside `onMouseMove` only after first interaction.\n- `forwardRef<HTMLDivElement>` for layout measurement.\n\nUse cases inside the AISquare platform:\n- Quest cards, studio tile grids, featured-experience cards (replaces\n  ad-hoc `hover:shadow-lg` + `hover:-translate-y` hover affordances).\n- Aiko nudge surfaces — the spotlight reads as \"the assistant is paying\n  attention to where you are\" without needing extra copy.\n\n[…truncated — read the source file for the rest]","props":[{"name":"intensity","type":"\"subtle\" | \"default\" | \"strong\"","required":false,"doc":"Spotlight glow strength."},{"name":"color","type":"\"primary\" | \"accent\" | \"secondary\"","required":false,"doc":"Theme token that drives the glow color."},{"name":"spread","type":"number","required":false,"doc":"Glow spread in pixels (the radius of the radial gradient)."}],"propsType":"SpotlightCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"spotlightCardVariants","kind":"const","layer":"component","file":"src/components/SpotlightCard.tsx","module":"SpotlightCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StaggeredText","kind":"component","layer":"component","file":"src/components/StaggeredText.tsx","module":"StaggeredText","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StaggeredText — one-shot per-element reveal animation.","doc":"StaggeredText — one-shot per-element reveal animation. Distinct from\n`<Typewriter>` (which loops phrases with a typing cursor).\n\nRight for: hero headlines, AI streaming reveals, \"page came in\"\nchoreography. Splits the text once on mount and animates each\nchar/word in sequence.\n\nUsage:\n\n  <StaggeredText text=\"Hi, I'm Aiko.\" preset=\"fade-up\" />\n  <StaggeredText text=\"...\" by=\"word\" staggerDelay={0.05} />\n\n  // Imperative replay (chat / streaming use cases):\n  const ref = useRef<StaggeredTextHandle>(null);\n  <StaggeredText ref={ref} text={message} />;\n  ref.current?.play();\n  ref.current?.reset();\n\nHonors `prefers-reduced-motion` — renders the full text instantly,\nno per-element animation.\n\nWhy no SplitType / GSAP: `Array.from(text)` correctly handles\nsurrogate pairs, and motion@12 already covers the stagger curve. A\n12 KB dep would be a tax on every consumer for ~30 LOC of work.","props":[{"name":"text","type":"string","required":true,"doc":null},{"name":"by","type":"\"char\" | \"word\"","required":false,"doc":"Granularity."},{"name":"staggerDelay","type":"number","required":false,"doc":"Per-element stagger in seconds."},{"name":"duration","type":"number","required":false,"doc":"Per-element animation duration in seconds."},{"name":"preset","type":"\"fade\" | \"fade-up\" | \"blur\"","required":false,"doc":"Entry animation."},{"name":"replayOnChange","type":"boolean","required":false,"doc":"Replay when `text` changes."},{"name":"autoPlay","type":"boolean","required":false,"doc":"Auto-play on mount."}],"propsType":"StaggeredTextProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"STATUS_CHIP_LABEL","kind":"component","layer":"component","file":"src/components/StatusChip.tsx","module":"StatusChip","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"The word each status shows when no `label` is given.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"statusChipVariants","kind":"variants","layer":"component","file":"src/components/StatusChip.tsx","module":"StatusChip","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Status to colour family.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StatusChip","kind":"component","layer":"component","file":"src/components/StatusChip.tsx","module":"StatusChip","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StatusChip — a neutral status pill in the verdict vocabulary: Clean, Flagged, Corrected, Held, Blocked, plus a generic `neutral`.","doc":"StatusChip — a neutral status pill in the verdict vocabulary: Clean, Flagged, Corrected, Held, Blocked, plus a\ngeneric `neutral`. Motion-free and token-driven: a theme decides how it looks.\n\nReproduces (from variables alone):\n  - v2's Chip (RunStatusChip, ReadStateChip, RunOutcomeChips): soft fill, 6px status dot, 11px/1.35 semibold,\n    padding 6/7, pill. Outlined pills (`outline`) are v2's `ring-1 ring-inset ring-current`.\n  - aisquare-fe's StatusPill: soft fill, no dot, 24px tall, 12px/16px 500, padding 12, pill.\n\nReads `--ui-status-<tone>-fg/-bg` (colour) and `--ui-chip-*` (shape), every one with a fallback, so with no theme\nit is a plain tinted pill built from the library's semantic tokens.\n\nAccessibility. The text label is always rendered, so colour never says the status alone. The chip is static (no\nhover, focus or role); the dot is `aria-hidden`. A longer explanation belongs in `title` (as v2 does) or beside\nthe chip, never inside it.","props":[{"name":"status","type":"StatusChipStatus","required":false,"doc":null},{"name":"label","type":"string","required":false,"doc":"The word."},{"name":"size","type":"StatusChipSize","required":false,"doc":null},{"name":"outline","type":"boolean","required":false,"doc":"No fill, an inset ring in the current colour (v2's outline pills)."}],"propsType":"StatusChipProps","variants":{"variants":{"status":["clean","flagged","corrected","held","blocked","neutral"],"size":["md","sm"],"outline":["true","false"]},"defaults":{"status":"neutral","size":"md","outline":"false"}},"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"STATUS_ALIAS","kind":"component","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":true,"importPaths":["@aisquare/ui"],"category":"Status","since":"v1.5.0","demoId":"status-expression","summary":"Domain-word → canonical-state map.","doc":"Domain-word → canonical-state map. Callers pass their surface's own status\nliteral (a file's `\"Indexing\"`, a connector's `\"Synced\"`, an experience's\n`\"published\"`) and get the canonical treatment. Keys are lowercased before\nlookup, so casing does not matter. Unknown words fall back to `draft`\n(the neutral \"we don't have a settled signal yet\" read).","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"resolveStatus","kind":"const","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Resolve any domain status word to one of the five canonical states.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"statusToken","kind":"const","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The canonical status → presentation mapping: label + tone (from the shared `getExperienceStateMeta`), the color token, the matching `Badge` variant, and the indicator kind.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"statusRingClass","kind":"const","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Resolve any domain status word to the full-perimeter card chrome (a complete `border` keyline + faint tint).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"StatusChip","kind":"component","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StatusChip — a single lifecycle chip: leading dot + label, color from the token map.","doc":null,"props":[{"name":"status","type":"string","required":true,"doc":"Status (domain word or canonical state)."},{"name":"label","type":"string","required":false,"doc":"Override the auto-derived label (defaults to the canonical label)."},{"name":"size","type":"\"sm\" | \"default\"","required":false,"doc":"Chip size."}],"propsType":"StatusChipProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"StatusStripe","kind":"component","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StatusStripe — a 2px accent stripe carrying the status color.","doc":null,"props":[{"name":"status","type":"string","required":true,"doc":"Status (domain word or canonical state)."},{"name":"asChild","type":"boolean","required":false,"doc":"Render onto the consumer's own element (e.g."}],"propsType":"StatusStripeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"StatusProgress","kind":"component","layer":"component","file":"src/components/StatusExpression.tsx","module":"StatusExpression","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StatusProgress — a thin top-edge progress line, rendered **only** while the status resolves to `generating` (hidden for every settled state).","doc":null,"props":[{"name":"status","type":"string","required":true,"doc":"Status (domain word or canonical state)."},{"name":"value","type":"number","required":false,"doc":"Determinate completion percent (0-100)."},{"name":"valueText","type":"string","required":false,"doc":"Accessible description of a determinate value (e.g."},{"name":"label","type":"string","required":false,"doc":"Accessible name for the indeterminate sweep."}],"propsType":"StatusProgressProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Stepper","kind":"component","layer":"component","file":"src/components/Stepper.tsx","module":"Stepper","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Stepper — multi-step indicator with optional content + keyboard navigation.","doc":"Stepper — multi-step indicator with optional content + keyboard navigation.\n\nAdapted from the React Bits Pro `@reactbits-starter/stepper-tw` pattern;\nre-implemented against pretty's anatomy. Drives multi-step flows (first-run\nwalkthrough, quest authoring tutorial, paywall onboarding, Aiko-led recovery)\nthat previously lived as ad-hoc `useState({ step: 0..3 })` per surface.\n\nTwo complementary modes:\n- **Self-rendering.** Pass `steps={[{ label, content }]}` and Stepper renders\n  the indicator chrome + the active step's `content` below.\n- **Headless render-prop.** Pass `children` as a function and Stepper renders\n  only the indicator; the consumer lays out content + navigation footer using\n  the `{ step, total, next, prev, goto, complete }` state.\n\nBoth modes can coexist — render-prop wins when both are passed (consumer's\nintent to take over the layout).\n\nComposes with `<AikoTip>`: pass `<Stepper>{({ next, prev }) => <footer>...</footer>}</Stepper>`\ninside an AikoTip body to wire footer buttons without prop-drilling. A future\n`<AikoTip steps={[...]}>` shortcut is queued as a follow-up.\n\n[…truncated — read the source file for the rest]","props":[{"name":"steps","type":"StepperStep[]","required":true,"doc":"Step descriptors."},{"name":"value","type":"number","required":false,"doc":"Controlled active-step index."},{"name":"defaultValue","type":"number","required":false,"doc":"Uncontrolled initial active-step index."},{"name":"onValueChange","type":"(value: number) => void","required":false,"doc":"Fires when the active step changes via click / keyboard / `next` / `prev` / `goto`."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fires when the user advances past the last step (`next` from final step OR `complete()`)."},{"name":"interactive","type":"boolean","required":false,"doc":"Whether step indicators are clickable / keyboard-navigable."},{"name":"indicator","type":"\"numbers\" | \"dots\" | \"progress\"","required":false,"doc":"Indicator visual."},{"name":"size","type":"\"sm\" | \"default\" | \"lg\"","required":false,"doc":"Indicator size."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"ARIA label for the indicator group."},{"name":"children","type":"(state: StepperState) => React.ReactNode","required":false,"doc":"Render-prop children."}],"propsType":"StepperProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StreamingText","kind":"component","layer":"component","file":"src/components/StreamingText.tsx","module":"StreamingText","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StreamingText — animates a target string in character-by-character with a blinking cursor, then settles.","doc":"StreamingText — animates a target string in character-by-character with a\nblinking cursor, then settles. The \"AI is writing this\" surface treatment\nthe industry has converged on (ChatGPT, Claude.ai, Cursor, Notion AI all\nship a variant of it).\n\nUse for: a field whose value is being rewritten by AIKO, an assistant\nmessage landing into chat, a code block being filled in by tab-completion.\nThe visual reads as \"this content is in motion, don't touch it yet\";\ncombine with `animate-pulse-glow` on the wrapping container if the\nsurface also needs a chrome-level cue.\n\nBehavior:\n- On mount or whenever `text` changes, restart the reveal from char 0.\n- Opt into `streaming` for the token-by-token case (an assistant message or\n  thinking-text growing \"H\" -> \"He\" -> \"Hel\" -> ...): a `text` change that\n  merely EXTENDS the shown prefix continues the reveal from where it is, so\n  only the freshly-arrived tail types in instead of the whole string\n  restarting on every appended token. See the `streaming` prop.\n- Characters drop in at `speed` ms each.\n- A blinking caret stays at the trailing edge during the reveal and\n  disappears once `text` is fully typed (or stays via `cursor=\"always\"`).\n- `prefers-reduced-motion` skips the animation: the full string\n  renders immediately, the cursor hides, `onComplete` fires next tick\n  (in `streaming` mode too — motion-off always settles immediately).\n\n[…truncated — read the source file for the rest]","props":[{"name":"text","type":"string","required":true,"doc":"The target string to reveal."},{"name":"speed","type":"number","required":false,"doc":"ms per character while typing."},{"name":"cursor","type":"\"reveal\" | \"always\" | \"never\"","required":false,"doc":"Cursor mode: - `\"reveal\"` (default) — blinks while typing, hides on complete."},{"name":"cursorChar","type":"string","required":false,"doc":"Cursor character."},{"name":"streaming","type":"boolean","required":false,"doc":"Streaming / append mode."},{"name":"onComplete","type":"() => void","required":false,"doc":"Fires once the full `text` has been revealed."}],"propsType":"StreamingTextProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"StudioBrand","kind":"component","layer":"component","file":"src/components/StudioBrand.tsx","module":"StudioBrand","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"StudioBrand — scoped per-studio brand cascade.","doc":"StudioBrand — scoped per-studio brand cascade.\n\nSets CSS variables on a wrapper element so every aisquare-pretty primitive\ninside it inherits the studio's brand. Outside the wrapper the global\ntheme applies. Pure CSS cascade — no per-primitive code change.\n\n  <StudioBrand primary=\"280 70% 50%\" accent=\"220 80% 60%\" radius=\"14px\">\n    <Button>Visit Studio</Button>\n  </StudioBrand>\n\nTwo side-by-side studios with different brands compose without leakage:\n\n  <div className=\"grid grid-cols-2\">\n    <StudioBrand primary=\"280 70% 50%\"><App /></StudioBrand>\n    <StudioBrand primary=\"14 90% 55%\"><App /></StudioBrand>\n  </div>\n\nColor values: pass an HSL triplet (`\"280 70% 50%\"`) or a wrapped string\n(`\"hsl(280 70% 50%)\"`) — both work. Internally the wrapper is stripped so the\nvalue composes with the Tailwind preset, which expects raw triplets.\n\nComposition with ThemeProvider: ThemeProvider toggles `dark` on `<html>`;\nStudioBrand sets brand vars on the wrapper. Vars not overridden (e.g.\n`--background`) cascade from the active theme.","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"primary","type":"string","required":false,"doc":"Brand primary color."},{"name":"primaryForeground","type":"string","required":false,"doc":"Foreground color paired with `primary` (text on primary surfaces)."},{"name":"accent","type":"string","required":false,"doc":"Brand accent color (links, focus rings, glow)."},{"name":"accentForeground","type":"string","required":false,"doc":"Foreground paired with `accent`."},{"name":"secondary","type":"string","required":false,"doc":"Secondary brand color (muted brand surfaces)."},{"name":"secondaryForeground","type":"string","required":false,"doc":"Foreground paired with `secondary`."},{"name":"destructive","type":"string","required":false,"doc":"Destructive / error color."},{"name":"destructiveForeground","type":"string","required":false,"doc":"Foreground paired with `destructive`."},{"name":"background","type":"string","required":false,"doc":"Studio canvas background."},{"name":"foreground","type":"string","required":false,"doc":"Default text color."},{"name":"muted","type":"string","required":false,"doc":"Muted backgrounds (skeleton, input)."},{"name":"mutedForeground","type":"string","required":false,"doc":"Foreground paired with `muted`."},{"name":"border","type":"string","required":false,"doc":"Border / divider color."},{"name":"ring","type":"string","required":false,"doc":"Focus-ring color."},{"name":"radius","type":"string","required":false,"doc":"Corner radius (e.g."},{"name":"font","type":"string","required":false,"doc":"Font family (e.g."},{"name":"vars","type":"Record<string, string>","required":false,"doc":"Extra CSS variable overrides."},{"name":"asChild","type":"boolean","required":false,"doc":"Render via Radix Slot — applies vars + className to the child element directly, no wrapper `<div>`."},{"name":"style","type":"React.CSSProperties","required":false,"doc":"Inline style merged after the brand vars."}],"propsType":"StudioBrandProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"STUDIO_CARD_COVER_ASPECT","kind":"component","layer":"component","file":"src/components/StudioCard.tsx","module":"StudioCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Cover aspect ratio for every StudioCard surface.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"STUDIO_CARD_COVER_ASPECT_CLASS","kind":"component","layer":"component","file":"src/components/StudioCard.tsx","module":"StudioCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StudioCardSkeleton","kind":"component","layer":"component","file":"src/components/StudioCard.tsx","module":"StudioCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null}],"propsType":"StudioCardSkeletonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StudioCardGrid","kind":"component","layer":"component","file":"src/components/StudioCard.tsx","module":"StudioCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"StudioCardEntity[]","required":true,"doc":null},{"name":"renderItem","type":"(studio: StudioCardEntity, index: number) => React.ReactNode","required":true,"doc":null},{"name":"animate","type":"boolean","required":false,"doc":null},{"name":"columns","type":"\"2\" | \"3\" | \"4\"","required":false,"doc":"Column count at xl breakpoint."},{"name":"loading","type":"boolean","required":false,"doc":null},{"name":"skeletonCount","type":"number","required":false,"doc":null}],"propsType":"StudioCardGridProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"StudioCard","kind":"component","layer":"component","file":"src/components/StudioCard.tsx","module":"StudioCard","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"studio-card","summary":"StudioCard — community-card-style entity card.","doc":"StudioCard — community-card-style entity card. Composes the brand `Card`, so\nit inherits Card's plain surface: a real `rounded-2xl` + `border`, with a\nsoft `box-shadow` that deepens on hover. We do NOT re-draw the border /\nshadow here — that would double the box-shadow channel. Only the loading\n`.Skeleton` (a surface this file renders directly, not via `Card`) draws\nits own matching surface — a real border + a subtler `shadow-sm` (it's a\nstatic placeholder, not an interactive card). Layout:\n\n  ┌─ outer card · rounded-2xl · border · shadow (deepens on hover) ────┐\n  │  ┌─ 16:9 image, top-flush ──────────────────────┐ │\n  │  │  [visibility]                  [premium]      │ │\n  │  │              (gradient veil bottom)           │ │\n  │  │      [logo float, bottom-left]                │ │\n  │  └────────────────────────────────────────────────┘│\n  │  ┌─ content · padding p-4 ────────────────────────┐│\n  │  │  Logo · Title (clamp-1)                        ││\n  │  │  Description (clamp-2, min-h-10 reserves space)││\n  │  │  Owner · stats                                 ││\n  │  │  ┌─ action footer ────────────────────────┐   ││\n  │  │  │ [Primary CTA — flex-grow] [▾ extras]    │   ││\n  │  │  └─────────────────────────────────────────┘   ││\n  │  └─────────────────────────────────────────────────┘│\n  └────────────────────────────────────────────────────┘\n\n[…truncated — read the source file for the rest]","props":[{"name":"studio","type":"StudioCardEntity","required":true,"doc":null},{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null},{"name":"mode","type":"\"manage\" | \"explore\" | \"community\"","required":true,"doc":null},{"name":"hover","type":"\"lift\" | \"glow\" | \"none\"","required":false,"doc":null},{"name":"onPreview","type":"() => void","required":false,"doc":"Primary card action — also fires on whole-card click."},{"name":"onManage","type":"() => void","required":false,"doc":null},{"name":"onPromote","type":"() => void","required":false,"doc":null},{"name":"onDelete","type":"() => void","required":false,"doc":null},{"name":"onFollowToggle","type":"() => void","required":false,"doc":null},{"name":"isFollowing","type":"boolean","required":false,"doc":null},{"name":"followLoading","type":"boolean","required":false,"doc":null},{"name":"userCanManageStudio","type":"boolean","required":false,"doc":null},{"name":"userCanDeleteStudio","type":"boolean","required":false,"doc":null},{"name":"isTeamWorkspace","type":"boolean","required":false,"doc":null},{"name":"aikoTooltip","type":"React.ReactNode | false","required":false,"doc":"Optional helper string AIKO whispers when the user hovers the title."},{"name":"glow","type":"StudioCardGlow","required":false,"doc":"Wrap the card in a `<BorderGlow>` halo."}],"propsType":"StudioCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SuccessState","kind":"component","layer":"component","file":"src/components/SuccessState.tsx","module":"SuccessState","primary":true,"importPaths":["@aisquare/ui"],"category":"Feedback","since":"v1.4.0","demoId":"success-state","summary":"SuccessState - for \"you did it\" confirmation surfaces (reset-password done, email verified, invite accepted).","doc":"SuccessState - for \"you did it\" confirmation surfaces (reset-password done,\nemail verified, invite accepted). The third member of the\nEmptyState / ErrorState set: same prop names, same wrapper skeleton, same\n0.24s fade+lift, so a screen can swap `ErrorState` -> `SuccessState` by\nchanging the tag.\n\nAIKO voice defaults: short, owns the win, points the user onward without\ngloating. Override `title` / `description` per surface (reset-password\npasses \"You can now log in with your new password.\").\n\nComposition:\n- `icon` - defaults to `CheckCircle2` in a success-tinted medallion that\n  pops in with a light overshoot (the \"confirmation pop\")\n- a ping halo `<span>` behind the medallion (a soft pulse outward)\n- `title` - short heading (default: \"All set.\")\n- `description` - one line (default: \"That worked. You can carry on from here.\")\n- `action` - the single CTA slot (consumer passes a `Button` / `Link`; the\n  primitive never imports a router, so the same component serves\n  reset-password -> /login and verify-email -> wherever)\n- `celebrate` - opt-in confetti for the big-moment screens, via the in-repo\n  `celebrate()` helper (off by default so list / inline successes stay quiet)\n\nAccessibility: the wrapper is `aria-live=\"polite\"` (success is a status, not\nan `alert`), the title is a semantic `h3`, and focus styling is inherited\nfrom whatever `action` you pass.\n\n[…truncated — read the source file for the rest]","props":[{"name":"icon","type":"React.ReactNode","required":false,"doc":null},{"name":"title","type":"React.ReactNode","required":false,"doc":null},{"name":"description","type":"React.ReactNode","required":false,"doc":null},{"name":"action","type":"React.ReactNode","required":false,"doc":"The single CTA slot."},{"name":"animate","type":"boolean","required":false,"doc":"When true, animates in on mount via Framer (subtle fade + lift, scale-in medallion, looped halo)."},{"name":"celebrate","type":"boolean | CelebrateIntensity","required":false,"doc":"Opt-in confetti for the big-moment screens."}],"propsType":"SuccessStateProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SuggestedReplies","kind":"component","layer":"component","file":"src/components/SuggestedReplies.tsx","module":"SuggestedReplies","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SuggestedReplies — pill chips that appear under an assistant message.","doc":"SuggestedReplies — pill chips that appear under an assistant message.\n\nAfter AIKO finishes a reply, the agent emits 2-4 short follow-ups the user\ncan tap instead of typing — \"Show me my top studios\", \"What can I do here?\",\n\"Switch to AI Studio One\". This primitive lays them out as a wrap-friendly\nrow of pill buttons; clicking one fires `onSelect(text)` so the consumer\ncan drop the value into the composer or send it directly.\n\nDefault entrance is a 24ms-staggered fade-in (the chips arrive together\nbut slightly offset, the way subtitles do). Pass `motion={false}` to opt\nout per call; `prefers-reduced-motion` forces it off regardless.\n\nComposition with `MessageRow`:\n\n  <MessageRow role=\"assistant\" avatar={<AikoMark />}>\n    <Markdown content={msg.text} />\n  </MessageRow>\n  <SuggestedReplies replies={msg.actionChips ?? []} onSelect={onChipSelect} />\n\nReturns `null` when `replies` is empty so consumers can lean on\n`<SuggestedReplies replies={msg.actionChips ?? []} />` without an outer\nlength guard.","props":[{"name":"replies","type":"ReadonlyArray<string>","required":true,"doc":"Reply strings, in order."},{"name":"onSelect","type":"(text: string) => void","required":true,"doc":"Fired when a chip is clicked."},{"name":"variant","type":"\"default\" | \"muted\"","required":false,"doc":"Visual treatment."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable every chip (e.g., while the assistant is composing the next reply)."},{"name":"loading","type":"boolean","required":false,"doc":"The follow-ups are still being generated — renders chip silhouettes of mixed width in their place."},{"name":"loadingCount","type":"number","required":false,"doc":"Silhouette count while `loading`."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the staggered fade-in."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible group label."}],"propsType":"SuggestedRepliesProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableEmpty","kind":"component","layer":"component","file":"src/components/TableStates.tsx","module":"TableStates","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"TableEmpty / TableSkeleton — the two states a data table spends real time in.","doc":"TableEmpty / TableSkeleton — the two states a data table spends real time in.\n\nThese live in `src/components/` rather than in `src/ui/table.tsx` ON PURPOSE.\n`table` is on the shadcn re-import allowlist in\n`scripts/import-from-shadcn.mjs`, and that script's contract is that\n`src/ui/` stays byte-for-byte identical to upstream so visual diffs against\nshadcn stay reviewable. Anything added there is silently overwritten on the\nnext re-import. So they compose the shadcn parts from the house tier instead,\nwhich is also the layering the rest of the library already follows.\n\nBoth render a real `<tr>` and are meant to sit inside `<TableBody>`, so the\ntable keeps one column model and the browser keeps one table layout:\n\n  <Table>\n    <TableHeader>…</TableHeader>\n    <TableBody>\n      {loading ? (\n        <TableSkeleton columns={4} />\n      ) : rows.length === 0 ? (\n        <TableEmpty colSpan={4}>No invoices yet.</TableEmpty>\n      ) : (\n        rows.map(…)\n      )}\n    </TableBody>\n  </Table>\n\nThat `loading ? … : empty ? … : rows` order is the whole point of shipping\nthese together: a table that shows \"no results\" over a request still in\nflight is the single most common way this pair gets told wrong.","props":[{"name":"colSpan","type":"number","required":true,"doc":"Number of columns to span."},{"name":"children","type":"React.ReactNode","required":false,"doc":"The message."},{"name":"className","type":"string","required":false,"doc":"Height of the empty row."}],"propsType":"TableEmptyProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableSkeleton","kind":"component","layer":"component","file":"src/components/TableStates.tsx","module":"TableStates","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"columns","type":"number","required":true,"doc":"Column count."},{"name":"rows","type":"number","required":false,"doc":"Placeholder row count."},{"name":"className","type":"string","required":false,"doc":"Class for each placeholder bar."}],"propsType":"TableSkeletonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Tag","kind":"component","layer":"component","file":"src/components/Tag.tsx","module":"Tag","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Tag — small inline semantic status chip.","doc":"Tag — small inline semantic status chip.\n\nThin composer on top of `Badge`. Collapses the earlier `rounded-[4px]` /\n`font-mono uppercase` shape (iter-17-F1 substrate-discipline trigger) —\nthose visual distinctions existed without reason when Badge already covers\nthe same status-label semantic.\n\nShape chosen: thin wrapper (not deletion) to preserve the typed `label`\nprop + `pulse` composition contract. Badge receives no new props.\nIf Tag is ever deleted in a future iter, consumers migrate to:\n  <Badge variant={tone} size=\"sm\">{label}</Badge>\n\ntone → Badge variant mapping:\n  success     → success\n  destructive → destructive\n  info        → info\n  accent      → accent\n  premium     → premium\n  secondary   → secondary\n  muted       → secondary  (Badge has no muted variant; secondary reads as\n                            the inactive/de-emphasised state)\n\nThe `pulse` prop composes a PulseDot beside the label exactly as before —\nthe composition logic lives here, not in Badge, to avoid prop-surface growth\non a general-purpose primitive.\n\nMigrated from AISquare Office iter-05 / iter-13; collapsed into Badge\ncomposer in iter-17-F1.","props":[{"name":"tone","type":"TagTone","required":false,"doc":"Semantic color."},{"name":"label","type":"string","required":true,"doc":"Text label to render."},{"name":"pulse","type":"boolean","required":false,"doc":"When true, renders a PulseDot beside the label — indicates an active or attention-seeking state (unclaimed, stuck, live)."},{"name":"statusTone","type":"BadgeTone","required":false,"doc":"Theme-driven colour (Badge `tone`): v2 draws the word in the tone colour on the neutral chip, fe a soft fill."},{"name":"dot","type":"boolean","required":false,"doc":"A status dot in the current colour (v2 Chip)."},{"name":"outline","type":"boolean","required":false,"doc":"Outlined: no fill, an inset ring in the current colour."}],"propsType":"TagProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TagInput","kind":"component","layer":"component","file":"src/components/TagInput.tsx","module":"TagInput","primary":true,"importPaths":["@aisquare/ui"],"category":"Inputs","since":"v1.1.0","demoId":"tag-input","summary":"TagInput — controlled multi-tag field: type and press Enter to add a chip, Backspace on empty input to pop the last one, with an optional filtered suggestion list underneath.","doc":"TagInput — controlled multi-tag field: type and press Enter to add a chip,\nBackspace on empty input to pop the last one, with an optional filtered\nsuggestion list underneath.\n\nPorted from Creator Studio v2 (`src/components/audience/TagInputField.tsx`)\nand re-themed: every inline navy hex (`#0A2540` borders, chip fills, hover\nwashes) is replaced with `--input` / `--ring` / `--primary` / `--muted`\ntokens, the label renders through the `<Label>` primitive, and the\nsuggestion list gains keyboard navigation (ArrowUp / ArrowDown / Enter /\nEscape) plus listbox ARIA the original lacked.\n\nControlled only: `value` is the current tag list, `onChange` receives the\nnext list on every add / remove. Duplicates are ignored (exact match).\n\n`className` styles the root; the forwarded ref reaches the inner\n`<input>` so consumers can focus it imperatively.\n\n@example\n  const [tags, setTags] = React.useState<string[]>([\"creators\"]);\n  <TagInput\n    label=\"Audience tags\"\n    value={tags}\n    onChange={setTags}\n    suggestions={[\"creators\", \"educators\", \"founders\"]}\n  />","props":[{"name":"label","type":"React.ReactNode","required":false,"doc":"Field label rendered above the control via the `<Label>` primitive."},{"name":"value","type":"readonly string[]","required":true,"doc":"Current tags (controlled)."},{"name":"onChange","type":"(tags: string[]) => void","required":true,"doc":"Receives the next tag list on add / remove."},{"name":"suggestions","type":"readonly string[]","required":false,"doc":"Pool of suggestions, filtered by the current input text."},{"name":"maxSuggestions","type":"number","required":false,"doc":"Max suggestions shown at once."},{"name":"placeholder","type":"string","required":false,"doc":"Input placeholder, shown while no tags exist."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole control."}],"propsType":"TagInputProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"textLinkVariants","kind":"variants","layer":"component","file":"src/components/TextLink.tsx","module":"TextLink","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"TextLink — inline text-styled link primitive.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TextLink","kind":"component","layer":"component","file":"src/components/TextLink.tsx","module":"TextLink","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"TextLink — inline text-styled link primitive.","doc":"TextLink — inline text-styled link primitive.\n\nUse anywhere an inline link belongs in flowing text — auth flows\n(\"Forgot password?\", \"Sign up\"), header navigation (\"Log In\"),\nonboarding skip-out, recovery links on error pages.\n\nAnatomy (canonical, fixed across the platform):\n- Inherits font size from parent — composes inline into sentence\n  text without layout breaks. No pill, no border, no fixed height.\n- Default color: `text-foreground` so link text is legible against\n  the page background. Hover shifts to brand `text-primary` AND\n  animates the affordance dot.\n- **Discoverability dot.** A small primary-colored dot sits below\n  (or above, opt-in) the text, signaling \"this is clickable\" without\n  the heaviness of an underline-always treatment. Dot is 4px,\n  primary/60 at rest, scales 1.25× and goes full primary on hover.\n  Opt out with `dot=\"none\"`.\n- `asChild` composes onto `<a>` (external) or react-router `<Link>`\n  (internal). Default render is `<button type=\"button\">`.\n- SSR-safe — no `window` / `document` at module scope.\n\nNo `size` prop, no `motion` prop, no springback. TextLink is meant\nto read like an inline `<a>` and stay quiet — anything richer wants\n`<Button variant=\"default\">` or `<IconButton>` instead.","props":[{"name":"asChild","type":"boolean","required":false,"doc":"Render children via Radix Slot (e.g."}],"propsType":"TextLinkProps","variants":{"variants":{"dot":["below","above","none"]},"defaults":{"dot":"below"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ThemeProvider","kind":"component","layer":"component","file":"src/components/ThemeProvider.tsx","module":"ThemeProvider","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ThemeProvider — light / dark / system theme cascade.","doc":"ThemeProvider — light / dark / system theme cascade.\n\nSets the `dark` (or `light`) class on `<html>` so the consumer's CSS variables\ncascade through every primitive that reads from `bg-background`, `bg-primary`,\netc. Persists the user's preference in `localStorage` and follows the OS\n`prefers-color-scheme` when `theme` is `\"system\"`.\n\nUsage:\n\n  <ThemeProvider defaultTheme=\"system\" storageKey=\"aisquare-theme\">\n    <App />\n  </ThemeProvider>\n\n  const { theme, resolvedTheme, setTheme } = useTheme();\n  <Button onClick={() => setTheme(resolvedTheme === \"dark\" ? \"light\" : \"dark\")}>\n    Switch\n  </Button>\n\nSSR / FOUC: the provider reads `localStorage` lazily, so first paint matches\n`defaultTheme`. For zero-flash apps (Next.js, Remix), inline `getThemeScript()`\nin `<head>` so the class is set before React hydrates.\n\nComposition: `ThemeProvider` is global (light/dark on `<html>`); `StudioBrand`\nis scoped (per-studio brand vars on a wrapper). Both compose freely.","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"defaultTheme","type":"Theme","required":false,"doc":"Theme used until a stored preference loads."},{"name":"storageKey","type":"string","required":false,"doc":"`localStorage` key for persistence."},{"name":"attribute","type":"\"class\" | \"data-theme\"","required":false,"doc":"How to apply the theme to `<html>`."},{"name":"disableSystem","type":"boolean","required":false,"doc":"When `true`, ignores `prefers-color-scheme` and treats `\"system\"` as `\"light\"`."}],"propsType":"ThemeProviderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useTheme","kind":"function","layer":"component","file":"src/components/ThemeProvider.tsx","module":"ThemeProvider","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Read the current theme + setter.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"getThemeScript","kind":"function","layer":"component","file":"src/components/ThemeProvider.tsx","module":"ThemeProvider","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Inline this script in `<head>` (Next.js / Remix / Astro) to set the theme class before React hydrates and avoid a flash:","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ThinkingDots","kind":"component","layer":"component","file":"src/components/ThinkingDots.tsx","module":"ThinkingDots","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ThinkingDots — three staggered bouncing dots for AI thinking states.","doc":"ThinkingDots — three staggered bouncing dots for AI thinking states.\n\nPorted from AISquare-AIStudio-v3 AikoChat.tsx local `ThinkingDots` component.\nImplemented as a thin wrapper over `<TypingIndicator variant=\"dots\">` so the\nunderlying animation, reduced-motion handling, and a11y contract are shared.\n\n`<TypingIndicator>` is the canonical primitive; `<ThinkingDots>` is a\nconvenience alias with a Studio-v3-parity prop surface (size sm|md).","props":[{"name":"size","type":"\"sm\" | \"md\"","required":false,"doc":"Dot cluster size."}],"propsType":"ThinkingDotsProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ToolCard","kind":"component","layer":"component","file":"src/components/ToolCard.tsx","module":"ToolCard","primary":true,"importPaths":["@aisquare/ui"],"category":"Cards","since":"v1.7.0","demoId":"tool-card","summary":"ToolCard — collapsible tool-call surface for AIKO chat.","doc":"ToolCard — collapsible tool-call surface for AIKO chat.\n\nRenders a single agent tool call as a card-shaped row inside an assistant\nmessage: a canonical `StatusChip` on the right, label on the left, optional\nicon leading the label, and a collapsible body that holds the call's `args`\nand `result`. The card frame stays monochrome (ArtifactTile discipline #162);\nstatus reads only from the chip, in the SAME form + color as every artifact.\n\nThree statuses drive the visual, mapped onto the shared lifecycle vocabulary\n(`STATUS_TO_CANONICAL`) so the chip matches the Brain's status language:\n  - `pending`  — `generating` shimmer chip (label `Running`), body usually\n                 open so the user can see the tool taking shape live.\n  - `success`  — `ready` settled success dot (label `Done`), body collapsed\n                 by default so the assistant's reply remains the focus.\n  - `error`    — `failed` destructive dot (label `Failed`), body open by\n                 default so the user immediately sees what went wrong.\n\nBody sections are skipped when their slot is empty — passing only `result`\nyields a card with just one section. Pass `<Markdown content={...} />` for\nrich text; the primitive only owns layout, not content rendering.\n\n[…truncated — read the source file for the rest]","props":[{"name":"label","type":"React.ReactNode","required":true,"doc":"Tool name."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Optional leading icon."},{"name":"status","type":"ToolCardStatus","required":false,"doc":"Lifecycle state."},{"name":"args","type":"React.ReactNode","required":false,"doc":"Pre-formatted call arguments (typically a `<pre>{JSON}</pre>` block)."},{"name":"result","type":"React.ReactNode","required":false,"doc":"Pre-formatted call result (typically `<Markdown />` or a small component)."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Initial expanded state."},{"name":"open","type":"boolean","required":false,"doc":"Controlled expanded state."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Notified when the disclosure toggles."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the height-animate disclosure motion."}],"propsType":"ToolCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TOOL_CHIP_DURATION_MIN_MS","kind":"component","layer":"component","file":"src/components/ToolChip.tsx","module":"ToolChip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The one threshold, shared by the component and its tests.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ToolChip","kind":"component","layer":"component","file":"src/components/ToolChip.tsx","module":"ToolChip","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ToolChip - the one-line, never-expand tool-call status primitive for the Atlas transcript (Atlas LOCKS section D, Milestone 1).","doc":"ToolChip - the one-line, never-expand tool-call status primitive for the\nAtlas transcript (Atlas LOCKS section D, Milestone 1).\n\nA single agent tool call renders as ONE bordered pill on ONE line: a leading\nstatus indicator, the mono `name(args)` (name full-strength, args dimmed),\nand a right-side status read. Per the LOCKS \"handoff purism\" override the\nchip is PURE one-line and NEVER expands - no drawer, no `aria-expanded`, no\nauto-open, no disclosure. Rich results render as blocks or in the side\ncontext bar; the full args + result history lives in observability (the\njournal), not the transcript. This is the deliberate successor to\n`ToolCard`'s expand/disclosure model for the Atlas surface.\n\nStatus is carried by color, not a decorative fill: a token-colored dot (or a\nspinner while in flight) plus a toned status word. It reuses the repo's\nexisting status vocabulary (`text-success` / `text-destructive` /\n`text-muted-foreground`, the same `--success` / `--destructive` tokens that\n`StatusExpression` and the T6 Stat card use) - no new status util, no new\ncolor token. Only `success` and `error` paint a status color; everything else\nstays neutral / muted, so a wall of tool calls does not read as a wall of\ncolored pills.\n\n[…truncated — read the source file for the rest]","props":[{"name":"name","type":"string","required":true,"doc":"Tool name, rendered mono at full strength (e.g."},{"name":"args","type":"string","required":false,"doc":"Compact arg summary, rendered mono + dimmed inside parens (e.g."},{"name":"status","type":"ToolChipStatus","required":true,"doc":"Lifecycle state."},{"name":"progressNote","type":"string","required":false,"doc":"A swapping sub-note shown during `progress` (the runtime `tool_progress` frame)."},{"name":"durationMs","type":"number","required":false,"doc":"Elapsed time, in ms."},{"name":"onApprove","type":"() => void","required":false,"doc":"`needs-approval` row action - the single primary Allow."},{"name":"onDeny","type":"() => void","required":false,"doc":"`needs-approval` row action - the ghost Deny (settles the chip to `denied`)."}],"propsType":"ToolChipProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"truncateVariants","kind":"variants","layer":"component","file":"src/components/Truncate.tsx","module":"Truncate","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`<Truncate>` — text container that truncates at N lines AND auto-renders an `<AikoTooltip>` showing the full text only when overflow is actually present.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Truncate","kind":"component","layer":"component","file":"src/components/Truncate.tsx","module":"Truncate","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"as","type":"keyof JSX.IntrinsicElements","required":false,"doc":"Underlying tag."},{"name":"disableTooltip","type":"boolean","required":false,"doc":"Disable the tooltip even when text overflows."},{"name":"tooltipBody","type":"React.ReactNode","required":false,"doc":"Override the tooltip body."},{"name":"tooltipSide","type":"AikoTooltipProps[\"side\"]","required":false,"doc":"Tooltip side."},{"name":"tooltipAlign","type":"AikoTooltipProps[\"align\"]","required":false,"doc":"Tooltip alignment."},{"name":"tooltipDelayDuration","type":"AikoTooltipProps[\"delayDuration\"]","required":false,"doc":"Hover-open delay in ms."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"TruncateProps","variants":{"variants":{"lines":["1","2","3","4"]},"defaults":{"lines":"1"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Trunk","kind":"component","layer":"component","file":"src/components/Trunk.tsx","module":"Trunk","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Trunk — vertical thread spine for reply chains.","doc":"Trunk — vertical thread spine for reply chains.\n\nRenders a 1px vertical line with optional node-dot markers that visually\nconnects a parent message to its reply chain. Designed to sit in a fixed-\nwidth column (20px) beside a message-body column; it fills that column's\nfull height via `height: 100%`.\n\nConnector semantics:\n  - `last=false` (default): line extends above AND below the dot, so\n    consecutive Trunks appear visually continuous.\n  - `last=true`: line extends only above the dot; the bottom fades to\n    transparent signalling the chain is complete.\n\nColor: defaults to `--border` via Tailwind `bg-border`. Pass an explicit\n`color` (CSS color string) to use a founder/brand hue for coloured threads.\n\nDesign ref: design-handoff.md §4.4 — TreeReply connector column.\n\nMigrated from AISquare Office plugins/office/web/src/components/primitives/Trunk.tsx\n(office-visual-parity iter-11 / iter-13).","props":[{"name":"last","type":"boolean","required":false,"doc":"When true this is the final reply in the chain."},{"name":"color","type":"string","required":false,"doc":"Accent color for the trunk line and node dot as a CSS color string."},{"name":"showDot","type":"boolean","required":false,"doc":"Whether to render the node dot at the attachment point."}],"propsType":"TrunkProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Typewriter","kind":"component","layer":"component","file":"src/components/Typewriter.tsx","module":"Typewriter","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Typewriter — cycles through phrases with a typewriter effect.","doc":"Typewriter — cycles through phrases with a typewriter effect.\n\nUse for hero headings, idle placeholders, and \"what could you build\" hints.\nRespects `prefers-reduced-motion` — when set, just shows the longest phrase.\n\nPhases per phrase: type → hold → erase → next.","props":[{"name":"phrases","type":"string[]","required":true,"doc":null},{"name":"typeSpeed","type":"number","required":false,"doc":"ms per character while typing."},{"name":"eraseSpeed","type":"number","required":false,"doc":"ms per character while erasing."},{"name":"holdDuration","type":"number","required":false,"doc":"ms to hold the full phrase before erasing."},{"name":"cursor","type":"boolean","required":false,"doc":"Show a blinking cursor character."}],"propsType":"TypewriterProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TypewriterText","kind":"component","layer":"component","file":"src/components/TypewriterText.tsx","module":"TypewriterText","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"TypewriterText — types a single string character by character, once.","doc":"TypewriterText — types a single string character by character, once.\n\nPorted from AISquare-AIStudio-v3 AikoChat.tsx local `TypewriterText`\ncomponent. Unlike `<Typewriter>` (which cycles phrases in a loop),\nTypewriterText types ONE string to completion and fires `onDone`.\n\nRespects `prefers-reduced-motion` — when set, renders the full text\nimmediately and fires `onDone` synchronously on mount.\n\nCursor: a blinking caret after the current character while typing; hidden\nonce done.\n\nAdapted from ReactBits \"Typewriter\" one-shot pattern.","props":[{"name":"text","type":"string","required":true,"doc":"The string to type out."},{"name":"speed","type":"number","required":false,"doc":"Ms per character."},{"name":"onDone","type":"() => void","required":false,"doc":"Called once when typing completes (or immediately when reduced-motion)."}],"propsType":"TypewriterTextProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TypingIndicator","kind":"component","layer":"component","file":"src/components/TypingIndicator.tsx","module":"TypingIndicator","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"TypingIndicator — chat-row \"Atlas is typing\" cue.","doc":"TypingIndicator — chat-row \"Atlas is typing\" cue.\n\nDrop inside a MessageRow placeholder while the assistant is composing.\nTwo variants:\n  - `dots`  (default) — three dots that arrive in sequence; the universal\n                        chat convention (iMessage, WhatsApp, Slack).\n  - `aiko`            — breathing AikoMark; reinforces brand presence on\n                        AIKO-led surfaces (AikoChat panel, hero greeters).\n\nFor `prefers-reduced-motion` users (and `motion={false}`), both variants\nrender their resting frame so the indicator still reads as \"active\" via\n`role=\"status\"` + `aria-label`, but no continuous animation runs.\n\nFor longer-running platform AI work that isn't a chat row (initial load,\ngeneration), reach for `<AikoLoader>` instead — TypingIndicator is sized\nto live inline next to or inside a message bubble.","props":[{"name":"variant","type":"\"dots\" | \"aiko\"","required":false,"doc":"Visual treatment."},{"name":"motion","type":"boolean","required":false,"doc":"Disable continuous animation."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Screen-reader label for `role=\"status\"`."},{"name":"label","type":"React.ReactNode","required":false,"doc":"Optional VISIBLE word rendered before the dots, e.g."}],"propsType":"TypingIndicatorProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"VaultMorph","kind":"component","layer":"component","file":"src/components/VaultMorph.tsx","module":"VaultMorph","primary":true,"importPaths":["@aisquare/ui"],"category":"Motion & Effects","since":"v1.6.0","demoId":"vault-morph","summary":"VaultMorph — a \"converge / transform\" delight animation: incoming item glyphs fly in from the left and resolve into a center anchor, on a loop while it is `running`.","doc":"VaultMorph — a \"converge / transform\" delight animation: incoming item glyphs\nfly in from the left and resolve into a center anchor, on a loop while it is\n`running`. The on-brand depiction of \"items being converted into an\nexperience\" (e.g. the sidebar Vault affordance while an experience is\ngenerating / updating).\n\nAdapted from the React Bits starter component `magic-transform`\n(\"Documents fly in and resolve into results\") and renamed to a domain name\nper this repo's convention (cf. `Folder`, `MorphingRail`, `AnimatedList`).\nReimplemented on `motion/react` (the registry source is license-gated): all\npalette swapped for theme tokens, `forwardRef` on the outer wrapper, `cva`\nsize variants. Honors `prefers-reduced-motion` — the fly-in collapses to a\nstatic centered frame (just the resolved center).\n\nGeneric by design: `center` is any node (defaults to the AISquare mark) and\n`items` are the incoming glyphs (default three document glyphs).\n\n@example\n  <VaultMorph running={isGenerating} items={vaultDocs.map(d => ({ id: d.id, label: d.name }))} />","props":[{"name":"items","type":"VaultMorphItem[]","required":false,"doc":"Incoming glyphs."},{"name":"center","type":"React.ReactNode","required":false,"doc":"The center anchor the items resolve into."},{"name":"running","type":"boolean","required":false,"doc":"Run the converge loop."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible label for the whole figure."}],"propsType":"VaultMorphProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"getVisibilityMeta","kind":"const","layer":"component","file":"src/components/VisibilityBadge.tsx","module":"VisibilityBadge","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"VisibilityBadge","kind":"component","layer":"component","file":"src/components/VisibilityBadge.tsx","module":"VisibilityBadge","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"VisibilityBadge — opaque, reusable chip for an entity's visibility (Public / Private / Team).","doc":"VisibilityBadge — opaque, reusable chip for an entity's visibility\n(Public / Private / Team). Centralises the icon + colour + label so cards,\ndetail headers, table rows, and any access-controlled surface share a\nsingle source of truth — without re-defining the visibility lookup.\n\nTwo appearances:\n- **`solid`** (default) — opaque tone-tinted background. Designed for cover\n  overlays where the badge sits on a photographic image.\n- **`soft`** — pale tinted chip. Use in dense content rows / settings UIs\n  where the louder solid styling is too heavy.","props":[{"name":"visibility","type":"Visibility","required":true,"doc":null},{"name":"noIcon","type":"boolean","required":false,"doc":"Skip the icon, render label only."}],"propsType":"VisibilityBadgeProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"WizardStageIndicator","kind":"component","layer":"component","file":"src/components/WizardStageIndicator.tsx","module":"WizardStageIndicator","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"WizardStageIndicator — read-only \"you are here\" breadcrumb for multi-stage flows.","doc":"WizardStageIndicator — read-only \"you are here\" breadcrumb for multi-stage\nflows. Conventionally renders inside `<ContextBar>` (in the `actions` slot\nor alongside `context`) so AIKO's currently-loaded scope can show stage\nprogression without bespoke per-page UI. Generic `stages` prop so any\nmulti-step page can drop it in.\n\nTwo visual variants:\n  - `\"compact\"` (default) — dots + a single \"Step N of T · Label\" line.\n    Tight enough to live inside `<ContextBar>` without bloating the bar's\n    single-line shape.\n  - `\"labels\"` — all stage labels visible with completed / current /\n    pending icons. Wider; suitable for standalone breadcrumbs on a page\n    header where horizontal space is available.\n\n`<Stepper>` is the interactive multi-step flow primitive (drives content\npanels, click + keyboard nav). `<WizardStageIndicator>` is the **read-only\nindicator** — no panels, no nav, no click handlers, just a status read-out.\nPick Stepper when the user controls the step; pick WizardStageIndicator\nwhen the consumer state machine controls the step and you just want to\nsurface \"where am I\" to the user / agent.\n\n    <WizardStageIndicator\n      stages={[\"Upload\", \"Review\", \"Publish\"]}\n      current={1}\n    />\n\n[…truncated — read the source file for the rest]","props":[{"name":"stages","type":"ReadonlyArray<StageInput>","required":true,"doc":"Ordered list of stages."},{"name":"current","type":"string | number","required":false,"doc":"Current stage."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the entrance fade-in."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Override the SR `aria-label`."}],"propsType":"WizardStageIndicatorProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"WorkspaceTransitionOverlay","kind":"component","layer":"component","file":"src/components/WorkspaceTransitionOverlay.tsx","module":"WorkspaceTransitionOverlay","primary":true,"importPaths":["@aisquare/ui"],"category":"Feedback","since":"v1.4.0","demoId":"workspace-transition-overlay","summary":"WorkspaceTransitionOverlay: full-bleed blocking overlay for async transitions that must finish before the user moves on (the canonical case: switching workspaces).","doc":"WorkspaceTransitionOverlay: full-bleed blocking overlay for async transitions\nthat must finish before the user moves on (the canonical case: switching\nworkspaces). It runs a small phase machine: it opens on a spinner, morphs to a\nsuccess check once the in-flight `loading` clears, then auto-dismisses via\n`onComplete`. A hang fallback fires `onComplete` after `timings.fallback` so a\nstalled request never traps the user behind the scrim.\n\nPresentational only (props in, `onComplete` out). The donor in the unified app\nwas wired to a Redux host; that host stays in the app and maps slice fields to\nthese props. Promoted (and de-app-coupled) from unified's\n`WorkspaceTransitionToast`, renamed because it is a blocking overlay, not a\ncorner toast (`Toaster`/sonner already owns \"toast\"). The app glyphs are not\nimported here: the fallback figure is the `icon` slot, falling through to\n`Avatar`'s name-initials when neither `avatar` nor `icon` is set.\n\nSibling of `LogoutLoader`: same `fixed inset-0 z-[9999]` AnimatePresence\noverlay shell and a11y posture (a live region announces the heading swap), with\nthe added phase morph. Composes `Avatar` (the rounded brand tile) and `Spinner`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"open","type":"boolean","required":true,"doc":"Controls visibility of the overlay."},{"name":"loading","type":"boolean","required":true,"doc":"Whether the underlying async work is still in flight."},{"name":"onComplete","type":"() => void","required":true,"doc":"Fired once when the overlay should clear: after the success dwell, or immediately on the hang fallback."},{"name":"name","type":"string","required":true,"doc":"Target name."},{"name":"type","type":"\"personal\" | \"team\" | string","required":false,"doc":"Workspace kind."},{"name":"avatar","type":"string | null","required":false,"doc":"Avatar image URL."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Fallback figure shown in the tile when there is no `avatar` (e.g."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Heading override."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Subtext override."},{"name":"pillLabel","type":"React.ReactNode","required":false,"doc":"Pill text override."},{"name":"loadingLabel","type":"string","required":false,"doc":"Accessible label for the loading badge."},{"name":"successLabel","type":"string","required":false,"doc":"Accessible label for the success badge."},{"name":"animate","type":"boolean","required":false,"doc":"Mount/unmount + phase animation."},{"name":"timings","type":"WorkspaceTransitionTimings","required":false,"doc":"Override the phase timings (successDelay / dismiss / fallback ms)."}],"propsType":"WorkspaceTransitionOverlayProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Approval","kind":"component","layer":"component","file":"src/components/blocks/Approval.tsx","module":"Approval","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Approval - a confirm / decide card for a consequential action.","doc":"Approval - a confirm / decide card for a consequential action. Renderer for\nthe K2 `approval` block (`docs/contracts/block-registry.md`): the platform's\nchat `BlockRenderer` passes an `approval` block's `props` straight through, so\nthe prop names match the block payload exactly. INTERACTIVE.\n\nBlock props (`{ title?, body?, options, submit_to, receipt? }`):\n  - `title?` - the decision heading.\n  - `body?` - supporting detail, rendered as markdown.\n  - `options` - the decision affordances, each\n    `{ value, label, intent?: \"primary\" | \"default\" | \"danger\" }`. The\n    clicked option's `value` is sent back.\n  - `submit_to` - destination routing token (mirrors `form.submit_to`).\n  - `receipt?` - once decided, the durable settled state\n    (`{ outcome, summary, identifiers?, at }`). When present, the settled\n    receipt renders instead of the live buttons - so a history reload shows\n    the decision that was made, not a fresh, re-clickable control. This is\n    the bug the receipt backfill fixes.\n\nOn click the block emits the shared block-submit event keyed by `block_id` +\nthe chosen option value (see `blockSubmit.tsx`).\n\nClient-only props (never part of the streamed block): `className`, `onDecide`\n(wired by the block adapter to the submit context), `disabled`.\n\nToken-themed (`bg-card`, `border-border`, `bg-primary`, `text-destructive`,\n...) with no hardcoded colors. SSR-safe.","props":[{"name":"title","type":"string","required":false,"doc":"Decision heading."},{"name":"body","type":"string","required":false,"doc":"Supporting detail, rendered as markdown."},{"name":"options","type":"ApprovalOption[]","required":true,"doc":"The decision options."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of live buttons when present."},{"name":"onDecide","type":"(option: ApprovalOption) => void","required":false,"doc":"Decision handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction (e.g."}],"propsType":"ApprovalProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"approvalVariants","kind":"const","layer":"component","file":"src/components/blocks/Approval.tsx","module":"Approval","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"approvalOptionVariants","kind":"const","layer":"component","file":"src/components/blocks/Approval.tsx","module":"Approval","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ArtifactBlock","kind":"component","layer":"component","file":"src/components/blocks/ArtifactBlock.tsx","module":"ArtifactBlock","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"artifact-block","summary":"ArtifactBlock - downloadable file card.","doc":"ArtifactBlock - downloadable file card. Renderer for the K2 `artifact`\nblock (`docs/contracts/block-registry.md`): the platform's chat\n`BlockRenderer` passes an `artifact` block's `props` straight through, so\nthe prop names match the block payload exactly.\n\nA job (a run, an agent step) produces a file - a generated report, an\nexport, a rendered video - and streams it into the conversation as an\n`artifact` block. The card shows the file, and the Download action is live\nat every status so the user can pull a partial / in-progress file the\nmoment a `download_url` exists, not only once the job finishes.\n\nBlock props (`{ artifact_id, name, mime, size_bytes, download_url, status, run_id?, message_id? }`):\n  - `artifact_id` - stable id for the artifact. Required.\n  - `name` - the file name shown on the card (e.g. `\"q3-report.pdf\"`).\n    Required. Drives the fallback type icon when `mime` is absent.\n  - `mime` - MIME type (e.g. `\"application/pdf\"`). Picks the type icon.\n    Falls back to the extension in `name`, then a generic file glyph.\n  - `size_bytes` - file size in bytes. Rendered human-readable\n    (`1.2 MB`). Omit / `0` while a streaming job has not sized the file yet.\n  - `download_url` - the href the Download action points at. Works at ANY\n    status; absent only when the job has not yet produced a URL.\n  - `status` - `\"processing\" | \"ready\" | \"error\"`:\n      - `processing` -\n\n[…truncated — read the source file for the rest]","props":[{"name":"artifact_id","type":"string","required":true,"doc":"Stable artifact id."},{"name":"name","type":"string","required":true,"doc":"File name shown on the card."},{"name":"mime","type":"string","required":false,"doc":"MIME type."},{"name":"size_bytes","type":"number","required":false,"doc":"File size in bytes."},{"name":"download_url","type":"string","required":false,"doc":"Download href."},{"name":"status","type":"ArtifactStatus","required":false,"doc":"Lifecycle status."},{"name":"run_id","type":"string","required":false,"doc":"Provenance: the run that produced the artifact."},{"name":"message_id","type":"string","required":false,"doc":"Provenance: the message the artifact belongs to."},{"name":"errorMessage","type":"string","required":false,"doc":"Copy shown in the `error` state."},{"name":"downloadLabel","type":"string","required":false,"doc":"Label on the Download action."},{"name":"onDownload","type":"(artifact: { artifact_id: string; name: string; status: ArtifactStatus }) => void","required":false,"doc":"Fired when the Download action is activated, alongside the native navigation (it does not preventDefault)."},{"name":"animate","type":"boolean","required":false,"doc":"Animate the status row on status change."}],"propsType":"ArtifactBlockProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"artifactBlockVariants","kind":"const","layer":"component","file":"src/components/blocks/ArtifactBlock.tsx","module":"ArtifactBlock","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"formatBytes","kind":"const","layer":"component","file":"src/components/blocks/ArtifactBlock.tsx","module":"ArtifactBlock","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"iconForArtifact","kind":"const","layer":"component","file":"src/components/blocks/ArtifactBlock.tsx","module":"ArtifactBlock","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"BetterAnswer","kind":"component","layer":"component","file":"src/components/blocks/BetterAnswer.tsx","module":"BetterAnswer","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"BetterAnswer - the post-answer \"I can answer this better\" nudge, as a shared K2 block.","doc":"BetterAnswer - the post-answer \"I can answer this better\" nudge, as a shared\nK2 block. Renderer for the `better_answer` block, raised from the runtime's\n`better_answer_suggestion` post-answer signal (ais-agent-runtime\n`events.better_answer_suggestion` -> `PostProcessSignals`,\nAISquare-Studio/ais-agent-runtime#115). The platform's chat `BlockRenderer`\npasses the block's `props` straight through, so the prop names match the\nblock payload exactly. INTERACTIVE.\n\nThis is the reusable replacement for AIStudio-v3's bespoke `BetterAnswerCard`\n(RT#61): both FE chats (Creator Studio FE-React + AIStudio-v3) render the\nsame block instead of each hand-rolling the card. It is a gentle, optional\n\"I could do better - want me to?\" nudge, NOT an error/warning: low-contrast\nsurface, subtle border, no destructive colour. It NEVER alters the delivered\nanswer; accept re-submits `rewrittenQuery` as a normal new turn.\n\n[…truncated — read the source file for the rest]","props":[{"name":"kind","type":"BetterAnswerKind","required":true,"doc":"The gap class; drives the leading icon."},{"name":"label","type":"string","required":true,"doc":"The human prompt shown on the nudge."},{"name":"rewrittenQuery","type":"string","required":true,"doc":"The query re-submitted as a new turn on accept."},{"name":"acceptLabel","type":"string","required":false,"doc":"Accept button copy."},{"name":"dismissLabel","type":"string","required":false,"doc":"Dismiss button copy."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of the live nudge when present."},{"name":"onAccept","type":"(rewrittenQuery: string) => void","required":false,"doc":"Accept handler."},{"name":"onDismiss","type":"() => void","required":false,"doc":"Dismiss handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction (e.g."}],"propsType":"BetterAnswerProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"betterAnswerVariants","kind":"const","layer":"component","file":"src/components/blocks/BetterAnswer.tsx","module":"BetterAnswer","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"betterAnswerActionVariants","kind":"const","layer":"component","file":"src/components/blocks/BetterAnswer.tsx","module":"BetterAnswer","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"defaultBlockRegistry","kind":"const","layer":"component","file":"src/components/blocks/BlockRenderer.tsx","module":"BlockRenderer","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default type -> renderer map.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"mergeRegistry","kind":"function","layer":"component","file":"src/components/blocks/BlockRenderer.tsx","module":"BlockRenderer","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Shallow-merge a consumer registry over the defaults.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"BlockRenderer","kind":"component","layer":"component","file":"src/components/blocks/BlockRenderer.tsx","module":"BlockRenderer","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.1.0","demoId":"block-renderer","summary":"BlockRenderer - renders one K2 block envelope to the right widget.","doc":"BlockRenderer - renders one K2 block envelope to the right widget.\n\nThe platform streams rich chat UI as `data-block` parts, each a typed,\nschema-validated envelope (see ais-agent-runtime\n`docs/contracts/block-registry.md` + `stream-protocol.md`). This component is\nthe single render seam both Creator Studio (FE-React) and the Studio template\n(AIStudio-v3) consume so a block renders identically on both surfaces.\n\nEnvelope (K2):\n\n  { block_id, type, version, props, layout? }\n\nType -> renderer mapping (`registry`):\n  - `chart`    -> `Chart`     (the flat BE#2577 props - `chart_type` /\n    `x` / `series` / `data` / `value_format` / `summary` / ... - or the\n    legacy nested `props.spec`; recharts)\n  - `table`    -> `DataTable` (props.columns / rows / sort? / page?)\n  - `stat`     -> `Stat`      (props.label / value / delta? / unit?)\n  - `citation` -> `Citation`  (props.title / url / snippet?)\n  - `code`     -> `CodeBlock` (props.language / source)\n  - `artifact` -> `ArtifactBlock` (props.name / mime / size_bytes /\n    download_url / status) - a downloadable file card, download live at any\n    status\n  - `callout`  -> `Callout`   (props.variant / title? / body)\n  - `media`    -> `Media`     (props.kind / src / alt? / caption? / ...)\n  - `key_value`-> `KeyValue`  (props.title? / pairs / columns?)\n  - `carousel` -> `Carousel`  (props.title? / items; composition + actions)\n  - `reasoni\n\n[…truncated — read the source file for the rest]","props":[{"name":"block","type":"Block","required":true,"doc":"The K2 block envelope to render."},{"name":"registry","type":"BlockRegistry","required":false,"doc":"Extra / override renderers, shallow-merged over the built-ins."},{"name":"onBlockSubmit","type":"BlockSubmitHandler","required":false,"doc":"Host handler called when an INTERACTIVE block (`suggestions`, `form`, `approval`, the post-process signals `memory_save` / `enriched_suggestion` / `better_answer`, or an actioned `carousel`) is acted on."},{"name":"resolveRef","type":"BlockRefResolver","required":false,"doc":"Resolve a nested `{ ref }` pointer to a `Block` for composition blocks (`carousel` today)."}],"propsType":"BlockRendererProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"BlockList","kind":"component","layer":"component","file":"src/components/blocks/BlockRenderer.tsx","module":"BlockRenderer","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Render a list of blocks in arrival order, keyed by `block_id` so progressive updates patch in place.","doc":null,"props":[{"name":"blocks","type":"Block[]","required":true,"doc":"Blocks to render in arrival order."}],"propsType":"BlockListProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Callout","kind":"component","layer":"component","file":"src/components/blocks/Callout.tsx","module":"Callout","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"callout","summary":"Callout - a titled, semantic banner for caveats and notices.","doc":"Callout - a titled, semantic banner for caveats and notices. Renderer for the\nK2 `callout` block (`docs/contracts/block-registry.md`): the platform's chat\n`BlockRenderer` passes a `callout` block's `props` straight through, so the\nprop names match the block payload exactly.\n\nBlock props (`{ variant, title?, body }`):\n  - `variant` - semantic tone: `\"info\"` | `\"success\"` | `\"warning\"` |\n    `\"error\"` | `\"tip\"`. Drives the icon + color. Defaults to `\"info\"`.\n  - `title?` - optional bold heading line.\n  - `body` - the message. Rendered as markdown (links, emphasis, lists).\n    Required.\n\nClient-only props (never part of the streamed block): `className`, `icon`\n(override the default per-variant icon).\n\nMaps onto the same banner anatomy as the stock `Alert` primitive but is\nvariant-driven by the five semantic tones the model emits, with the body\nrendered through the shared `Markdown` primitive so a caveat can carry a link\nor a short list. Theming is entirely token-driven (`bg-info/5`,\n`text-success`, `border-warning/30`, ...) so per-studio retint + dark mode\nwork with no hardcoded colors. SSR-safe: no `window` / `document` access.","props":[{"name":"title","type":"string","required":false,"doc":"Optional bold heading line."},{"name":"body","type":"string","required":true,"doc":"The message body."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Override the default per-variant icon."}],"propsType":"CalloutProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"calloutVariants","kind":"const","layer":"component","file":"src/components/blocks/Callout.tsx","module":"Callout","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Carousel","kind":"component","layer":"component","file":"src/components/blocks/Carousel.tsx","module":"Carousel","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"carousel","summary":"Carousel - a horizontal scroller of compact cards (id, title, subtitle, image, optional actions).","doc":"Carousel - a horizontal scroller of compact cards (id, title, subtitle,\nimage, optional actions). Renderer for the K2 `carousel` block\n(`docs/contracts/block-registry.md`): the platform's chat `BlockRenderer`\npasses a `carousel` block's `props` straight through, so the prop names match\nthe block payload exactly.\n\nBlock props (`{ title?, description?, items }`):\n  - `title?` / `description?` - optional header above the rail.\n  - `items` - the cards. Each is EITHER a compact descriptor\n    `{ id, name, subtitle?, image?, actions?: [{ id, label }] }` (the common\n    case, lifted from tool-ui's Item Carousel), OR a nested `block_ref`\n    (an inline block envelope) for richer cells. Block-ref cells render\n    through the shared child-block resolver `grid` uses - the carousel is one\n    of the composition blocks that share that one code path (catalog §5).\n\nA carousel is display-only until a card carries `actions`; then it is\ninteractive and a clicked action emits the shared block-submit event keyed by\n`block_id` + the action id (see `blockSubmit.tsx`), reusing the form /\napproval transport - no new mechanism.\n\nClient-only props (never part of the streamed block): `className`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"title","type":"string","required":false,"doc":"Optional header title."},{"name":"description","type":"string","required":false,"doc":"Optional header description."},{"name":"items","type":"CarouselEntry[]","required":true,"doc":"The cards (compact descriptors and/or nested block refs)."},{"name":"onAction","type":"(itemId: string, actionId: string) => void","required":false,"doc":"Action handler for card actions."}],"propsType":"CarouselProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"carouselVariants","kind":"const","layer":"component","file":"src/components/blocks/Carousel.tsx","module":"Carousel","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Chart","kind":"component","layer":"component","file":"src/components/blocks/Chart.tsx","module":"Chart","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.1.0","demoId":"chart","summary":"Chart - themed chart for the K2 `chart` block (`docs/contracts/block-registry.md`).","doc":"Chart - themed chart for the K2 `chart` block\n(`docs/contracts/block-registry.md`). Renders every BE#2577 chart family -\n`bar` (vertical / horizontal / grouped / stacked), `line`, `area`\n(stackable), `pie` (donut-able), and `scatter` - with recharts (the K2\nchart decision + the existing FE `chart.tsx` both pin recharts, not vega).\nPlot semantics (formatting, palette resolution, dense-label handling,\nper-family recharts wiring) are PORTED from AIStudio-v3's production\n`ChartBlock.tsx` / `chart-format.ts` so consumers can converge on this\npackage renderer without a visible change.\n\n`spec` accepts EITHER shape (see `chartSpec.ts`, the normalization seam):\n\n- **The flat BE#2577 block props** (`ChartBlockProps`) - what the runtime\n  emits and the BE validates/persists (`chart_block.py`): `chart_type`,\n  `title`, `subtitle?`, `x: {key, label?, type?}`, `series: [{key, label?,\n  color?}]`, `data`, `value_format`, `summary`, `orientation?`, `stacked?`,\n  `source_note?`. This is the PRIMARY shape; `BlockRenderer`'s `ChartBlock`\n  routes a streamed chart block's props here directly.\n- **The legacy nested `ChartSpec`** - `type` / `data` / `xKey` / `series` /\n  `colors?` / `showLegend?` / `showGrid?` / `title?` / `description?`, kept\n  backward-compatible, plus the newer optional variant fields (`xType` /\n  `orientation` / `stacked` / `donut` / `valueFormat` / `summary` /\n  `sourceNote`) s\n\n[…truncated — read the source file for the rest]","props":[{"name":"spec","type":"ChartSpec | ChartBlockProps","required":true,"doc":"The chart payload - the flat BE#2577 block props (`ChartBlockProps`, the primary shape) or the legacy nested `ChartSpec`."},{"name":"height","type":"number","required":false,"doc":"Plot height in px."},{"name":"loading","type":"boolean","required":false,"doc":"Render a loading skeleton instead of content."},{"name":"error","type":"boolean | string","required":false,"doc":"Render an error message instead of content."},{"name":"locale","type":"string","required":false,"doc":"BCP-47 locale for value formatting."}],"propsType":"ChartProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"chartVariants","kind":"const","layer":"component","file":"src/components/blocks/Chart.tsx","module":"Chart","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"buildCitationModel","kind":"function","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Build the view-model from the flat streamed citation list.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"confidenceTier","kind":"function","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Map a 0..1 support score to a tier.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ConfidenceShade","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Shade children by per-claim confidence.","doc":null,"props":[{"name":"support","type":"number","required":false,"doc":"Support score in [0, 1]."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"ConfidenceShadeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"FreshnessBadge","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Relative-time freshness badge.","doc":null,"props":[{"name":"value","type":"string | number","required":false,"doc":"ISO timestamp or epoch millis."},{"name":"className","type":"string","required":false,"doc":"Extra classes appended to the badge."}],"propsType":"FreshnessBadgeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CitationMarker","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"One inline `[n]` marker.","doc":null,"props":[{"name":"entry","type":"CitationSourceEntry","required":true,"doc":"The deduped, numbered source this marker points at."},{"name":"onActivate","type":"(n: number) => void","required":false,"doc":"Fired with the source number on activation (e.g."},{"name":"className","type":"string","required":false,"doc":"Extra classes forwarded to the anchor chip."}],"propsType":"CitationMarkerProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CitationMarkers","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The inline marker strip for a claim's sources, e.g.","doc":null,"props":[{"name":"entries","type":"CitationSourceEntry[]","required":true,"doc":"The sources to render markers for, e.g."},{"name":"onActivate","type":"(n: number) => void","required":false,"doc":"Fired with a source number when a marker is activated."},{"name":"className","type":"string","required":false,"doc":"Extra classes for the wrapping strip."}],"propsType":"CitationMarkersProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AbstentionNotice","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The explicit \"I can't ground this\" state.","doc":null,"props":[{"name":"abstained","type":"boolean","required":false,"doc":"When true, render the notice."},{"name":"scope","type":"\"this\" | \"claim\"","required":false,"doc":"Whether the notice is for the whole turn (`this`) or one `claim`."}],"propsType":"AbstentionNoticeProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SourcesPanel","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"A collapsible panel listing every deduped cited source, numbered to match the inline markers.","doc":null,"props":[{"name":"model","type":"CitationModel","required":true,"doc":"The deduped view-model."},{"name":"openSignal","type":"number","required":false,"doc":"Bump to request the panel open (e.g."},{"name":"highlight","type":"number | null","required":false,"doc":"Source number to scroll to / highlight when opened."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Start expanded."}],"propsType":"SourcesPanelProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ChatCitations","kind":"component","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat surface","since":"v1.1.0","demoId":"chat-citations","summary":"ChatCitations + SourcesPanel - the cited-sources surface for the collective-intelligence chat.","doc":"ChatCitations + SourcesPanel - the cited-sources surface for the\ncollective-intelligence chat. One source of truth both Creator Studio\n(FE-React) and the Studio template (AIStudio-v3) consume to render the\n`data-citation` parts the runtime streams (see ais-agent-runtime\n`docs/contracts/stream-protocol.md` + `block-registry.md`).\n\nWhat it renders:\n  - inline numbered `[n]` markers (via `CitationRow`'s anchor variant) wired\n    to a collapsible sources panel; hover / focus previews the source;\n  - sources deduped by URL and numbered in first-seen order, so a source\n    cited twice gets one number and one panel row;\n  - per-claim confidence shading (optional `support` in [0, 1]);\n  - a relative-time freshness badge per source (optional `freshness`);\n  - an explicit \"I can't ground this\" abstention state (optional\n    `abstained`).\n\nDormant-until-runtime (F6 in the contract): `support`, `freshness`, and\n`abstained` are OPTIONAL. The citation gate that emits them is not built yet;\nwhen a field is absent, its affordance renders nothing and the numbered\nmarkers + panel stand on their own. When the gate lights them up, the same\ncomponents react with no further change.\n\n[…truncated — read the source file for the rest]","props":[{"name":"citations","type":"CitationData[]","required":false,"doc":"The streamed citations for this turn (the `data-citation` parts)."},{"name":"model","type":"CitationModel","required":false,"doc":"A prebuilt view-model (from `buildCitationModel`)."},{"name":"abstained","type":"boolean","required":false,"doc":"Turn-level abstention (`run_end.abstained`)."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Start the sources panel expanded."},{"name":"showMarkers","type":"boolean","required":false,"doc":"Render the trailing inline marker strip (`[1][2]...`) above the panel."}],"propsType":"ChatCitationsProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"chatCitationsVariants","kind":"const","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"confidenceChipVariants","kind":"const","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"citationSafeUrl","kind":"const","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"citationHostOf","kind":"const","layer":"component","file":"src/components/blocks/ChatCitations.tsx","module":"ChatCitations","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Citation","kind":"component","layer":"component","file":"src/components/blocks/Citation.tsx","module":"Citation","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.1.0","demoId":"citation","summary":"Citation - a source chip / card.","doc":"Citation - a source chip / card. Renderer for the K2 `citation` block\n(`docs/contracts/block-registry.md`): the platform's chat `BlockRenderer`\npasses a `citation` block's `props` straight through, so the prop names\nmatch the block payload exactly.\n\nBlock props (`{ title, url, snippet }`):\n  - `title` - the source's display name. Required.\n  - `url` - the source URL. Required by the block schema. Surfaced as the\n    domain chip and makes the whole card a real link (so middle-click /\n    cmd-click / right-click behave as users expect). A non-http(s) URL is\n    treated as missing and the card renders inert.\n  - `snippet` - short supporting excerpt shown under the title.\n\nClient-only props (never part of the streamed block): `className`,\n`variant`, `onNavigate`, `target`.\n\nTwo render contexts via `variant`:\n  - `card` (default) - the full source card for a \"Sources\" list.\n  - `chip` - a compact inline pill (favicon-less) for dense surfaces.\n\nRelationship to `CitationRow`: `CitationRow` is the richer chat-stream\nprimitive (numbered `[N]` anchor + hover popover, `index/thumbnail/badge`\nvocabulary). `Citation` is the K2-block renderer - its props are exactly\nthe streamed `{ title, url, snippet }`, nothing more, so the runtime can\nhand a block straight to it.\n\n[…truncated — read the source file for the rest]","props":[{"name":"title","type":"string","required":true,"doc":"Source title."},{"name":"url","type":"string","required":true,"doc":"Source URL."},{"name":"snippet","type":"string","required":false,"doc":"Short supporting excerpt shown under the title."},{"name":"onNavigate","type":"(url: string) => void","required":false,"doc":"Intercept navigation (e.g."},{"name":"target","type":"React.HTMLAttributeAnchorTarget","required":false,"doc":"Anchor target."}],"propsType":"CitationProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"citationVariants","kind":"const","layer":"component","file":"src/components/blocks/Citation.tsx","module":"Citation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CodeBlock","kind":"component","layer":"component","file":"src/components/blocks/CodeBlock.tsx","module":"CodeBlock","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.1.0","demoId":"code-block","summary":"CodeBlock - syntax-highlighted code with a copy button.","doc":"CodeBlock - syntax-highlighted code with a copy button. Renderer for the\nK2 `code` block (`docs/contracts/block-registry.md`): the platform's chat\n`BlockRenderer` passes a `code` block's `props` straight through, so the\nprop names match the block payload exactly.\n\nBlock props (`{ language, source }`):\n  - `language` - the language label (e.g. `\"python\"`, `\"tsx\"`). Drives the\n    Prism grammar and the header label. Falls back to `\"text\"` (plain)\n    when empty.\n  - `source` - the code text. Required. Empty / whitespace-only renders a\n    muted empty state rather than an empty highlighter shell.\n\nClient-only props (never part of the streamed block): `className`,\n`filename`, `showLineNumbers`, `loading`, `error`, `copyable`.\n\nUses `react-syntax-highlighter` (already shipped + externalized by the\nbuild) with the Prism `oneDark` theme - the same stack the `Markdown`\nprimitive's fenced-code renderer uses, so chat code reads consistently\nacross the markdown body and standalone code blocks. The copy button is\nfeature-checked (`navigator.clipboard`), runs only in `onClick` (never at\nrender), and silently no-ops when unavailable - SSR-safe.\n\nChrome is token-driven (`bg-card`, `border-border`, `text-muted-foreground`,\n…); the highlighted body uses the Prism `oneDark` palette by design (a code\nsurface is intentionally its own dark canvas, matching `Markdown`).","props":[{"name":"language","type":"string","required":false,"doc":"Language label + Prism grammar."},{"name":"source","type":"string","required":true,"doc":"The code text."},{"name":"filename","type":"string","required":false,"doc":"Optional filename shown in the header in place of the language label."},{"name":"showLineNumbers","type":"boolean","required":false,"doc":"Show a gutter of line numbers."},{"name":"loading","type":"boolean","required":false,"doc":"Render a loading skeleton instead of content."},{"name":"error","type":"boolean | string","required":false,"doc":"Render an error message instead of content."},{"name":"copyable","type":"boolean","required":false,"doc":"Show the copy button."}],"propsType":"CodeBlockProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"codeBlockVariants","kind":"const","layer":"component","file":"src/components/blocks/CodeBlock.tsx","module":"CodeBlock","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"DataTable","kind":"component","layer":"component","file":"src/components/blocks/DataTable.tsx","module":"DataTable","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.1.0","demoId":"data-table","summary":"DataTable - sortable, paginated table.","doc":"DataTable - sortable, paginated table. Renderer for the K2 `table` block\n(`docs/contracts/block-registry.md`): the platform's chat `BlockRenderer`\npasses a `table` block's `props` straight through, so the prop names match\nthe block payload exactly.\n\nBlock props (`{ columns[], rows[][], sort?, page? }`):\n  - `columns` - column definitions. Each is `{ key, label, align?, sortable? }`\n    or a bare string (used as both key + label). Order is the render order;\n    `rows` cells are positional and index 1:1 against this array.\n  - `rows` - an array of rows, each row an array of cell values, indexed to\n    `columns`. Cells are primitives (string / number / boolean / null).\n  - `sort?` - initial sort: `{ by, direction }` where `by` is a column key\n    or numeric index and `direction` is `\"asc\"` | `\"desc\"`. Sorting is\n    applied client-side; clicking a sortable header re-sorts.\n  - `page?` - pagination: `{ size, index? }`. When `size` is set, the table\n    paginates client-side with prev / next controls. Omit for no paging.\n\nClient-only props (never part of the streamed block): `className`,\n`caption`, `loading`, `error`, `emptyMessage`, `onSortChange`,\n`onPageChange`.\n\nBoth `sort` and `page` are treated as *initial* state the widget then owns\n(so a streamed block renders interactively out of the box); pass\n`onSortChange` / `onPageChange` to mirror the state back to a controller.\n\n[…truncated — read the source file for the rest]","props":[{"name":"columns","type":"DataTableColumnInput[]","required":true,"doc":"Column definitions; `rows` cells index against this array."},{"name":"rows","type":"CellValue[][]","required":true,"doc":"Rows of positional cell values."},{"name":"sort","type":"DataTableSort","required":false,"doc":"Initial sort the widget then owns."},{"name":"page","type":"DataTablePage","required":false,"doc":"Pagination config."},{"name":"caption","type":"React.ReactNode","required":false,"doc":"Caption rendered below the table."},{"name":"loading","type":"boolean","required":false,"doc":"Render a loading skeleton instead of content."},{"name":"error","type":"boolean | string","required":false,"doc":"Render an error message instead of content."},{"name":"emptyMessage","type":"string","required":false,"doc":"Message shown when there are no rows."},{"name":"onSortChange","type":"(sort: DataTableSort) => void","required":false,"doc":"Fired when the user re-sorts via a header click."},{"name":"onPageChange","type":"(index: number) => void","required":false,"doc":"Fired when the user pages."}],"propsType":"DataTableProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"dataTableVariants","kind":"const","layer":"component","file":"src/components/blocks/DataTable.tsx","module":"DataTable","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"EnrichedSuggestion","kind":"component","layer":"component","file":"src/components/blocks/EnrichedSuggestion.tsx","module":"EnrichedSuggestion","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"EnrichedSuggestion - a follow-up suggestion chip carrying metadata, richer than the plain-string chips in `Suggestions`.","doc":"EnrichedSuggestion - a follow-up suggestion chip carrying metadata, richer\nthan the plain-string chips in `Suggestions`. Renderer for the K2\n`enriched_suggestion` block, one of the post-answer signals the runtime's\nresponse post-processor emits (ais-agent-runtime `PostProcessSignals`,\nAISquare-Studio/ais-agent-runtime#115). The platform's chat `BlockRenderer`\npasses an `enriched_suggestion` block's `props` straight through, so the prop\nnames match the block payload exactly. INTERACTIVE.\n\nWhere `Suggestions` renders bare quick-replies, an enriched suggestion knows\nwhat KIND of follow-up it is (a clarifying question, a richer rewrite, an\nexperience to create) and optionally how CONFIDENT the model is, so the chip\ncan carry a kind icon and a subtle confidence tint. The runtime emits these\none at a time; the BlockRenderer adapter accepts either a single suggestion\nor a `suggestions: [...]` list (a thin wrapper renders the row).\n\n[…truncated — read the source file for the rest]","props":[{"name":"prompt","type":"string","required":false,"doc":"Optional lead-in line above the chips."},{"name":"suggestions","type":"EnrichedSuggestionItem[]","required":true,"doc":"The enriched suggestions."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of live chips when present."},{"name":"onSelect","type":"(suggestion: EnrichedSuggestionItem) => void","required":false,"doc":"Selection handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction (e.g."}],"propsType":"EnrichedSuggestionProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"enrichedSuggestionVariants","kind":"const","layer":"component","file":"src/components/blocks/EnrichedSuggestion.tsx","module":"EnrichedSuggestion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"enrichedSuggestionChipVariants","kind":"const","layer":"component","file":"src/components/blocks/EnrichedSuggestion.tsx","module":"EnrichedSuggestion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"confidenceTier","kind":"const","layer":"component","file":"src/components/blocks/EnrichedSuggestion.tsx","module":"EnrichedSuggestion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Form","kind":"component","layer":"component","file":"src/components/blocks/Form.tsx","module":"Form","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Form - a small structured-input form the model can ask the user to fill.","doc":"Form - a small structured-input form the model can ask the user to fill.\nRenderer for the K2 `form` block (`docs/contracts/block-registry.md`): the\nplatform's chat `BlockRenderer` passes a `form` block's `props` straight\nthrough, so the prop names match the block payload exactly. INTERACTIVE.\n\nBlock props (`{ title?, description?, fields, submitLabel?, submit_to,\nreceipt? }`):\n  - `title?` / `description?` - optional header.\n  - `fields` - the inputs, each\n    `{ name, label, type, placeholder?, required?, options?, defaultValue? }`,\n    where `type` is `\"text\" | \"textarea\" | \"select\" | \"checkbox\" | \"email\" |\n    \"number\"`. `select` reads `options: [{ value, label }]`.\n  - `submitLabel?` - the submit button copy. Defaults to \"Submit\".\n  - `submit_to` - destination routing token, carried on the submit event.\n  - `receipt?` - once submitted, the durable settled state\n    (`{ outcome, summary, identifiers?, at }`). When present, the settled\n    receipt renders instead of the live form - so a history reload shows what\n    was submitted rather than a fresh, re-submittable control. This is the\n    bug the receipt backfill fixes.\n\nOn submit the block emits the shared block-submit event keyed by `block_id` +\nthe collected `values` (see `blockSubmit.tsx`).\n\n[…truncated — read the source file for the rest]","props":[{"name":"title","type":"string","required":false,"doc":"Optional header title."},{"name":"description","type":"string","required":false,"doc":"Optional header description."},{"name":"fields","type":"FormField[]","required":true,"doc":"The fields."},{"name":"submitLabel","type":"string","required":false,"doc":"Submit button copy."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of the live form when present."},{"name":"onSubmit","type":"(values: Record<string, string | boolean>) => void","required":false,"doc":"Submit handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole form (e.g."}],"propsType":"FormProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"formVariants","kind":"const","layer":"component","file":"src/components/blocks/Form.tsx","module":"Form","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"KeyValue","kind":"component","layer":"component","file":"src/components/blocks/KeyValue.tsx","module":"KeyValue","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"key-value","summary":"KeyValue - a definition / spec list of label -> value pairs (entity attributes, a config dump, response metadata).","doc":"KeyValue - a definition / spec list of label -> value pairs (entity\nattributes, a config dump, response metadata). Renderer for the K2\n`key_value` block (`docs/contracts/block-registry.md`): the platform's chat\n`BlockRenderer` passes a `key_value` block's `props` straight through, so the\nprop names match the block payload exactly.\n\nBlock props (`{ title?, pairs, columns? }`):\n  - `title?` - optional heading above the list.\n  - `pairs` - the entries, each `{ label, value, href?, copyable? }`:\n      - `label` - the term (rendered in a `<dt>`).\n      - `value` - the value (rendered in a `<dd>`). string | number.\n      - `href?` - when set, the value renders as a safe external link.\n      - `copyable?` - when set, a copy button sits next to the value.\n  - `columns?` - `1` (default, stacked) or `2` (a two-column grid on wider\n    viewports; collapses to one column on narrow ones).\n\nClient-only props (never part of the streamed block): `className`.\n\nRendered as a real `<dl>` so screen readers announce term / definition\npairs. Links go through the same safe-URL guard the citation widgets use\n(http/https/mailto only). The copy button is feature-checked\n(`navigator.clipboard`), runs only in `onClick`, and silently no-ops when\nunavailable - SSR-safe. Token-themed (`border-border`, `text-foreground`,\n`text-muted-foreground`, ...) with no hardcoded colors.","props":[{"name":"title","type":"string","required":false,"doc":"Optional heading above the list."},{"name":"pairs","type":"KeyValuePair[]","required":true,"doc":"The entries."}],"propsType":"KeyValueProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"keyValueVariants","kind":"const","layer":"component","file":"src/components/blocks/KeyValue.tsx","module":"KeyValue","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Media","kind":"component","layer":"component","file":"src/components/blocks/Media.tsx","module":"Media","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"media","summary":"Media - one image, video, or audio clip with an optional caption.","doc":"Media - one image, video, or audio clip with an optional caption. Renderer\nfor the K2 `media` block (`docs/contracts/block-registry.md`): the platform's\nchat `BlockRenderer` passes a `media` block's `props` straight through, so the\nprop names match the block payload exactly.\n\nBlock props (`{ kind, src, alt?, caption?, poster?, width?, height? }`):\n  - `kind` - `\"image\"` | `\"video\"` | `\"audio\"`. Selects the element.\n  - `src` - the resource URL. Required.\n  - `alt?` - alternative text (images) / accessible label (video/audio).\n  - `caption?` - a short caption rendered under the media in a `<figcaption>`.\n  - `poster?` - poster frame for `video`.\n  - `width?` / `height?` - intrinsic pixel dimensions; used to reserve space\n    (CLS prevention) via an aspect ratio when both are present.\n\nClient-only props (never part of the streamed block): `className`.\n\nImages go through the `Image` primitive (lazy-load, skeleton, error chrome).\nVideo and audio use the native elements with `controls` + `preload=\"metadata\"`\nso a clip never auto-downloads its whole stream. Lifted from tool-ui's\nImage / Video / Audio schemas (MIT) + OpenAI Apps SDK Video, re-authored to\nthis repo's conventions. Token-themed (`border-border`, `bg-card`, ...) with\nno hardcoded colors. SSR-safe: native elements render without JS; no\n`window` / `document` access at module top or render.","props":[{"name":"kind","type":"MediaKind","required":true,"doc":"The media kind."},{"name":"src","type":"string","required":true,"doc":"Resource URL."},{"name":"alt","type":"string","required":false,"doc":"Alt text (image) / accessible label (video/audio)."},{"name":"caption","type":"string","required":false,"doc":"Short caption rendered under the media."},{"name":"poster","type":"string","required":false,"doc":"Poster frame for `video`."},{"name":"width","type":"number","required":false,"doc":"Intrinsic width in px (with `height`, reserves aspect-ratio space)."},{"name":"height","type":"number","required":false,"doc":"Intrinsic height in px (with `width`, reserves aspect-ratio space)."}],"propsType":"MediaProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"mediaVariants","kind":"const","layer":"component","file":"src/components/blocks/Media.tsx","module":"Media","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MemorySave","kind":"component","layer":"component","file":"src/components/blocks/MemorySave.tsx","module":"MemorySave","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.8.0","demoId":"memory-save","summary":"MemorySave - a \"save this to memory?\" affordance.","doc":"MemorySave - a \"save this to memory?\" affordance. Renderer for the K2\n`memory_save` block, one of the post-answer signals the runtime's response\npost-processor emits (ais-agent-runtime `PostProcessSignals`,\nAISquare-Studio/ais-agent-runtime#115; BE relays the\n`memory_save_suggestion` frame, persistence lands via BE#2517). The\nplatform's chat `BlockRenderer` passes a `memory_save` block's `props`\nstraight through, so the prop names match the block payload exactly.\nINTERACTIVE.\n\nAfter an answer, the runtime may detect a durable fact worth remembering (a\npreference, a name, a recurring constraint) and surface it as an opt-in\n\"save this?\" nudge - never an auto-write. It is gentle, not an\nerror/warning: low-contrast muted surface, hairline border, no destructive\ncolour.\n\n[…truncated — read the source file for the rest]","props":[{"name":"text","type":"string","required":true,"doc":"The memory candidate - the fact phrased as it would be stored."},{"name":"prompt","type":"string","required":false,"doc":"Lead-in label above the candidate."},{"name":"saveLabel","type":"string","required":false,"doc":"Save button copy."},{"name":"dismissLabel","type":"string","required":false,"doc":"Dismiss button copy."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of the live affordance when present."},{"name":"onSave","type":"(text: string) => void","required":false,"doc":"Accept handler."},{"name":"onDismiss","type":"() => void","required":false,"doc":"Dismiss handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction (e.g."}],"propsType":"MemorySaveProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"memorySaveVariants","kind":"const","layer":"component","file":"src/components/blocks/MemorySave.tsx","module":"MemorySave","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"memorySaveActionVariants","kind":"const","layer":"component","file":"src/components/blocks/MemorySave.tsx","module":"MemorySave","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Reasoning","kind":"component","layer":"component","file":"src/components/blocks/Reasoning.tsx","module":"Reasoning","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"reasoning","summary":"Reasoning - a collapsible \"thinking / chain-of-thought\" disclosure.","doc":"Reasoning - a collapsible \"thinking / chain-of-thought\" disclosure. Renderer\nfor the K2 `reasoning` block (`docs/contracts/block-registry.md`): the\nplatform's chat `BlockRenderer` passes a `reasoning` block's `props` straight\nthrough, so the prop names match the block payload exactly.\n\nBlock props (`{ title?, steps?, text?, defaultOpen? }`):\n  - `title?` - the trigger label. Defaults to \"Thinking\".\n  - `steps?` - discrete reasoning steps, each `{ label, detail? }`. When\n    present, rendered as an ordered list.\n  - `text?` - free-form chain-of-thought, rendered as markdown. Used when\n    there are no discrete `steps`.\n  - `defaultOpen?` - whether the disclosure starts expanded. Defaults to\n    `false` (the settled state; a streaming UI opens it live, then lets it\n    collapse once the answer arrives).\n\nClient-only props (never part of the streamed block): `className`, `open` /\n`onOpenChange` (drive it as a controlled disclosure, e.g. auto-open while a\ntoken stream is active and auto-close on completion).\n\nBuilt on the stock `Collapsible` primitive; the panel uses Radix\n`data-state` open/close animations, disabled under reduced motion. Sources:\nAI Elements Reasoning + assistant-ui ChainOfThought + prompt-kit Reasoning.\nToken-themed (`bg-muted/30`, `text-muted-foreground`, ...) with no hardcoded\ncolors. SSR-safe.","props":[{"name":"title","type":"string","required":false,"doc":"Trigger label."},{"name":"steps","type":"ReasoningStep[]","required":false,"doc":"Discrete reasoning steps."},{"name":"text","type":"string","required":false,"doc":"Free-form chain-of-thought, rendered as markdown (used without `steps`)."},{"name":"defaultOpen","type":"boolean","required":false,"doc":"Whether the disclosure starts expanded (uncontrolled)."},{"name":"open","type":"boolean","required":false,"doc":"Controlled open state."},{"name":"onOpenChange","type":"(open: boolean) => void","required":false,"doc":"Controlled open-state change handler."}],"propsType":"ReasoningProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"reasoningVariants","kind":"const","layer":"component","file":"src/components/blocks/Reasoning.tsx","module":"Reasoning","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Stat","kind":"component","layer":"component","file":"src/components/blocks/Stat.tsx","module":"Stat","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.1.0","demoId":"stat","summary":"Stat - KPI / metric card.","doc":"Stat - KPI / metric card. Renderer for the K2 `stat` block\n(`docs/contracts/block-registry.md`): the platform's chat\n`BlockRenderer` passes a `stat` block's `props` straight through, so\nthe prop names match the block payload exactly.\n\nBlock props (`{ label, value, delta?, unit? }`):\n  - `label` - the metric's name (e.g. \"Monthly revenue\"). Required.\n  - `value` - the headline number or string (e.g. `42_300`, `\"99.9\"`).\n    Required. Numbers render with locale grouping; strings render as-is.\n  - `delta?` - period-over-period change. A bare FINITE number is read as a\n    percentage; a preformatted string (e.g. \"+3.2pp\") renders verbatim; pass\n    `{ value, unit?, direction? }` for finer control. Positive reads as up /\n    good, negative as down / bad, by default. A non-finite number (NaN /\n    Infinity) renders NO delta rather than \"NaN%\" (#240).\n  - `unit?` - suffix appended to the value (e.g. `\"%\"`, `\"ms\"`, `\"req/s\"`).\n\nClient-only props (never part of the streamed block): `className`,\n`loading`, `error`, `direction`, `locale`.\n\nStates:\n  - `loading` - a token-tinted skeleton in the card's shape.\n  - `error` - a destructive-tinted inline message (the thread never\n    crashes on a bad block; the registry contract requires a safe render).\n\n[…truncated — read the source file for the rest]","props":[{"name":"label","type":"string","required":true,"doc":"Metric name."},{"name":"value","type":"string | number","required":true,"doc":"Headline value."},{"name":"unit","type":"string","required":false,"doc":"Suffix appended to the value (e.g."},{"name":"delta","type":"number | string | StatDelta","required":false,"doc":"Period-over-period change."},{"name":"direction","type":"StatDeltaDirection","required":false,"doc":"Force the delta direction."},{"name":"loading","type":"boolean","required":false,"doc":"Render the loading skeleton instead of content."},{"name":"error","type":"boolean | string","required":false,"doc":"Render an error message instead of content."},{"name":"locale","type":"string","required":false,"doc":"BCP-47 locale for number grouping."}],"propsType":"StatProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"statVariants","kind":"const","layer":"component","file":"src/components/blocks/Stat.tsx","module":"Stat","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Steps","kind":"component","layer":"component","file":"src/components/blocks/Steps.tsx","module":"Steps","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"steps","summary":"Steps - a vertical stepper / progress tracker showing an ordered process and each step's status.","doc":"Steps - a vertical stepper / progress tracker showing an ordered process and\neach step's status. Renderer for the K2 `steps` block\n(`docs/contracts/block-registry.md`): the platform's chat `BlockRenderer`\npasses a `steps` block's `props` straight through, so the prop names match\nthe block payload exactly.\n\nBlock props (`{ title?, steps, elapsedMs?, receipt? }`):\n  - `title?` - optional heading.\n  - `steps` - the ordered steps, each\n    `{ id, label, description?, status }`, where `status` is one of\n    `\"pending\" | \"in_progress\" | \"completed\" | \"failed\" | \"cancelled\"`.\n  - `elapsedMs?` - total elapsed time in ms, shown next to the title.\n  - `receipt?` - when the whole process has settled, the durable outcome\n    (`{ outcome, summary, identifiers?, at }`); rendered above the steps.\n\nClient-only props (never part of the streamed block): `className`.\n\nMerges tool-ui's Plan + Progress Tracker (their split is not worth two block\ntypes). Each step shows a status glyph on a connecting rail; the in-progress\nstep spins (disabled under reduced motion). Token-themed (`text-success`,\n`text-destructive`, `border-border`, ...) with no hardcoded colors. SSR-safe.","props":[{"name":"title","type":"string","required":false,"doc":"Optional heading."},{"name":"steps","type":"StepItem[]","required":true,"doc":"The ordered steps."},{"name":"elapsedMs","type":"number","required":false,"doc":"Total elapsed time in ms, shown next to the title."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled outcome for the whole process, rendered above the steps."}],"propsType":"StepsProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"stepsVariants","kind":"const","layer":"component","file":"src/components/blocks/Steps.tsx","module":"Steps","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Suggestions","kind":"component","layer":"component","file":"src/components/blocks/Suggestions.tsx","module":"Suggestions","primary":true,"importPaths":["@aisquare/ui"],"category":"Chat blocks","since":"v1.2.0","demoId":"suggestions","summary":"Suggestions - a row of quick-reply / follow-up chips.","doc":"Suggestions - a row of quick-reply / follow-up chips. Clicking one sends it\nback as the next user turn. Renderer for the K2 `suggestions` block\n(`docs/contracts/block-registry.md`): the platform's chat `BlockRenderer`\npasses a `suggestions` block's `props` straight through, so the prop names\nmatch the block payload exactly. INTERACTIVE.\n\nBlock props (`{ prompt?, suggestions, submit_to, receipt? }`):\n  - `prompt?` - optional lead-in line above the chips (\"You could ask:\").\n  - `suggestions` - the chips, each `{ id, label, value? }`. `value` defaults\n    to `label` (what gets sent back).\n  - `submit_to` - the destination routing token (mirrors `form.submit_to`);\n    carried on the emitted submit event.\n  - `receipt?` - once a chip is chosen, the durable settled state\n    (`{ outcome, summary, identifiers?, at }`). When present, the settled\n    receipt renders instead of the live chips, so a history reload shows the\n    chosen reply rather than re-offering live, un-actioned chips.\n\nOn click the block emits the shared block-submit event keyed by `block_id` +\nthe chosen chip id + value (see `blockSubmit.tsx`) - the same transport\n`form` / `approval` use, no new mechanism.\n\nClient-only props (never part of the streamed block): `className`, `onSelect`\n(wired by the block adapter to the submit context).\n\n[…truncated — read the source file for the rest]","props":[{"name":"prompt","type":"string","required":false,"doc":"Optional lead-in line above the chips."},{"name":"suggestions","type":"SuggestionChip[]","required":true,"doc":"The chips."},{"name":"receipt","type":"BlockReceipt | unknown","required":false,"doc":"Settled state - renders the receipt instead of live chips when present."},{"name":"onSelect","type":"(chip: SuggestionChip) => void","required":false,"doc":"Selection handler."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction (e.g."}],"propsType":"SuggestionsProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"suggestionsVariants","kind":"const","layer":"component","file":"src/components/blocks/Suggestions.tsx","module":"Suggestions","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ToolGateCorrection","kind":"component","layer":"component","file":"src/components/blocks/ToolGateCorrection.tsx","module":"ToolGateCorrection","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ToolGateCorrection - a subtle inline notice that an action the answer mentioned should be performed through a control / tool rather than described in prose.","doc":"ToolGateCorrection - a subtle inline notice that an action the answer\nmentioned should be performed through a control / tool rather than described\nin prose. Renderer for the K2 `tool_gate_correction` block, raised from the\nruntime's `missing_tool_use` post-answer signal (ais-agent-runtime\n`PostProcessSignals`, AISquare-Studio/ais-agent-runtime#115). The platform's\nchat `BlockRenderer` passes the block's `props` straight through, so the prop\nnames match the block payload exactly. DISPLAY-ONLY (no submit).\n\nWhen the post-processor notices the answer narrated a mutation (\"I've\npublished it\", \"I scheduled the post\") but the turn proposed no corresponding\ntool / action, it does NOT rewrite the answer here - the runtime's own\nno-fabrication downgrade handles the wording. This block is the gentle,\nuser-facing footnote pointing the user at the real control: \"to actually do\nthat, use the Publish button.\" It is a hint, not an error: muted surface,\nthin border, no destructive colour.\n\nBlock props (`{ message }`):\n  - `message` - the correction copy. Rendered as markdown so it can carry a\n    short emphasis or inline link to the control. Required.\n\nClient-only props (never part of the streamed block): `className`, `icon`\n(override / hide the default wrench icon).\n\n[…truncated — read the source file for the rest]","props":[{"name":"message","type":"string","required":true,"doc":"The correction copy."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Override the default wrench icon."}],"propsType":"ToolGateCorrectionProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"toolGateCorrectionVariants","kind":"const","layer":"component","file":"src/components/blocks/ToolGateCorrection.tsx","module":"ToolGateCorrection","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BlockRegistryProvider","kind":"component","layer":"component","file":"src/components/blocks/blockChildren.tsx","module":"blockChildren","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Provider set up by `BlockRenderer`; carries the merged registry + the core renderer.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BlockChildren","kind":"component","layer":"component","file":"src/components/blocks/blockChildren.tsx","module":"blockChildren","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Render a list of nested `block_ref`s through the ambient registry.","doc":"Render a list of nested `block_ref`s through the ambient registry. Renders a\nsmall inert note (never throws) when used outside a `BlockRenderer` tree or\nwhen a `{ ref }` cannot be resolved, so a malformed composition block\ndegrades gracefully like every other block.","props":[{"name":"items","type":"BlockRef[]","required":true,"doc":"The nested `block_ref`s to render in order."},{"name":"className","type":"string","required":false,"doc":"Wrapper className for the children container."},{"name":"renderItem","type":"(child: React.ReactNode, index: number, block: Block | undefined) => React.ReactNode","required":false,"doc":"Wrap each rendered child."}],"propsType":"BlockChildrenProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"readReceipt","kind":"function","layer":"component","file":"src/components/blocks/blockReceipt.tsx","module":"blockReceipt","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Narrow an `unknown` payload (a streamed value that may be malformed) to a `BlockReceipt`, or `undefined` if it is absent / the wrong shape.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BlockReceiptView","kind":"component","layer":"component","file":"src/components/blocks/blockReceipt.tsx","module":"blockReceipt","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Renders an interactive block's settled state.","doc":"Renders an interactive block's settled state. Every interactive block (new +\nthe backfilled `form` / `approval`) delegates here when `props.receipt` is\npresent, so the settled look is identical across the palette.\n\nToken-themed throughout (`bg-success/5`, `text-destructive`, ...); a11y via\n`role=\"status\"` + an `sr-only` outcome word so screen readers announce the\nterminal state. SSR-safe (timestamp formatting reads the locale only at\nrender, never `window`/`document`).","props":[{"name":"receipt","type":"BlockReceipt","required":true,"doc":"The settled receipt to render."}],"propsType":"BlockReceiptViewProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"receiptVariants","kind":"const","layer":"component","file":"src/components/blocks/blockReceipt.tsx","module":"blockReceipt","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BlockSubmitProvider","kind":"component","layer":"component","file":"src/components/blocks/blockSubmit.tsx","module":"blockSubmit","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Provides the host's `onBlockSubmit` to every descendant interactive block.","doc":"Provides the host's `onBlockSubmit` to every descendant interactive block.\n`BlockRenderer` / `BlockList` wrap their tree in this when the host passes\n`onBlockSubmit`, so consumers wire the handler once at the chat root.","props":[{"name":"onBlockSubmit","type":"BlockSubmitHandler","required":false,"doc":"The host handler interactive blocks call on action."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"BlockSubmitProviderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useBlockSubmit","kind":"function","layer":"component","file":"src/components/blocks/blockSubmit.tsx","module":"blockSubmit","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Returns a stable emitter an interactive block calls on a user action.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BLOCK_SURFACE_FRAME","kind":"component","layer":"component","file":"src/components/blocks/blockSurface.ts","module":"blockSurface","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"The shared surface frame: radius + hairline border + card fill.","doc":"The shared surface frame: radius + hairline border + card fill. The\nborder color reads var(--cardBd, hsl(var(--border)/0.7)) — undefined by\ndefault (identical to plain `border-border/70`), overridable by a\nconsumer whose --border can't carry alpha sensibly. See Card.tsx.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BLOCK_SURFACE_PADDING","kind":"component","layer":"component","file":"src/components/blocks/blockSurface.ts","module":"blockSurface","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"The blanket internal padding for a single-region surface.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BLOCK_SURFACE","kind":"component","layer":"component","file":"src/components/blocks/blockSurface.ts","module":"blockSurface","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Frame + padding — the common case (a block that is one padded surface).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BLOCK_SURFACE_INSET","kind":"component","layer":"component","file":"src/components/blocks/blockSurface.ts","module":"blockSurface","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"The horizontal inset used by self-padding regions (a code/table header bar, a chart caption) so their content lines up with the surface's rounded edge at the same gutter the blanket padding uses.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BLOCK_STACK_GAP","kind":"component","layer":"component","file":"src/components/blocks/blockSurface.ts","module":"blockSurface","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Vertical rhythm between stacked blocks (in `BlockList`) and between a surface's internal rows.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"isFlatChartProps","kind":"function","layer":"component","file":"src/components/blocks/chartSpec.ts","module":"chartSpec","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"True iff `input` is (or claims to be) the flat BE#2577 chart-block props: a `chart_type` string, or an `x` object carrying a string `key`.","doc":"True iff `input` is (or claims to be) the flat BE#2577 chart-block props:\na `chart_type` string, or an `x` object carrying a string `key`. The legacy\nnested `ChartSpec` (`type` / `xKey`) matches neither.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"resolveChartSpec","kind":"function","layer":"component","file":"src/components/blocks/chartSpec.ts","module":"chartSpec","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Resolve EITHER chart shape — the flat BE#2577 block props or the legacy nested `ChartSpec` — into the one internal `ResolvedChartSpec`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"formatChartValue","kind":"function","layer":"component","file":"src/components/blocks/chartSpec.ts","module":"chartSpec","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Format a numeric value for tooltips (and the full-precision end of axis ticks) per the block's `value_format`:","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"formatAxisTick","kind":"function","layer":"component","file":"src/components/blocks/chartSpec.ts","module":"chartSpec","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Compact axis-tick formatter — like {@link formatChartValue} but abbreviates large magnitudes (`1.2K`, `3.4M`) so a dense value axis stays readable.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"truncateLabel","kind":"function","layer":"component","file":"src/components/blocks/chartSpec.ts","module":"chartSpec","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Truncate a long category label for an axis tick / pie-slice label so dense axes don't collide.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ConnectorConnectPrompt","kind":"component","layer":"component","file":"src/components/connectors/ConnectorConnectPrompt.tsx","module":"ConnectorConnectPrompt","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ConnectorConnectPrompt — the inline \"connect to continue\" row (the design's `.connect-prompt` / `ConnectPrompt`).","doc":"ConnectorConnectPrompt — the inline \"connect to continue\" row (the design's\n`.connect-prompt` / `ConnectPrompt`). Shown after a user dismisses the slate\nbut the request still needs the connector: a logo tile, a line of copy, and a\nConnect button that re-opens the onboarding flow.\n\nPresentational only — the parent owns `onConnect` (typically re-opens\n`<ConnectorOnboarding>`).","props":[{"name":"connector","type":"ConnectorMeta","required":true,"doc":"The connector to connect."},{"name":"onConnect","type":"() => void","required":true,"doc":"Fired when the Connect button is pressed."}],"propsType":"ConnectorConnectPromptProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConnectorOnboarding","kind":"component","layer":"component","file":"src/components/connectors/ConnectorOnboarding.tsx","module":"ConnectorOnboarding","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ConnectorOnboarding — the connect \"slate\" + OAuth handshake surface, ported from the design's onboarding slate.","doc":"ConnectorOnboarding — the connect \"slate\" + OAuth handshake surface, ported\nfrom the design's onboarding slate. A CONTROLLED component: the parent owns\n`phase` and advances it on real OAuth events (no internal timers / no fake\nstate machine).\n\nThree presentations via `slateStyle`:\n  - `composer` (default) — an inline box that REPLACES the chat input pill.\n    `intro` shows the scope grid + Continue CTA; non-intro phases morph the\n    box into the consent / authorizing / success body.\n  - `modal` — a centered overlay card.\n  - `panel` — a right-edge drawer.\n  For `modal`/`panel`, the `intro` card renders in the overlay, and non-intro\n  phases render the full-screen OAuth consent overlay on top.\n\nPhase bodies:\n  - `intro`       — scopes + \"Continue with {name}\" (fires `onContinue`)\n  - `oauth`       — consent: app↔connector brand-link, account row, read-only\n                    perms list, Authorize (fires `onAuthorize`) / Cancel\n  - `authorizing` — spinner \"Authorizing with {name}…\"\n  - `success`     — check pop \"{name} connected\"\n\nHost-app neutral: no product name is hard-coded. The consent screen reads\n\"{appName} is requesting access to your {name} account\" (default\nappName \"AISquare\") and shows `appMark` (default a neutral `Boxes` tile).\n\n[…truncated — read the source file for the rest]","props":[{"name":"connector","type":"ConnectorMeta","required":true,"doc":"The connector being connected."},{"name":"slateStyle","type":"ConnectorSlateStyle","required":false,"doc":"Presentation style."},{"name":"phase","type":"ConnectorOnboardingPhase","required":true,"doc":"Current phase (controlled by the parent)."},{"name":"account","type":"string","required":false,"doc":"Signed-in account label for the consent view."},{"name":"onContinue","type":"() => void","required":true,"doc":"Intro CTA — parent opens the OAuth popup and advances `phase`."},{"name":"onAuthorize","type":"() => void","required":false,"doc":"Consent CTA — fired by the simulated \"Authorize\" button (optional)."},{"name":"onCancel","type":"() => void","required":true,"doc":"Close / dismiss (the X, \"Not now\", overlay backdrop, and consent Cancel)."},{"name":"appName","type":"string","required":false,"doc":"Host app name shown on the consent screen."},{"name":"appMark","type":"React.ReactNode","required":false,"doc":"Host app mark shown on the consent brand-link row."}],"propsType":"ConnectorOnboardingProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConnectorResult","kind":"component","layer":"component","file":"src/components/connectors/ConnectorResult.tsx","module":"ConnectorResult","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ConnectorResult — renders the post-connect result block for a connector tool call (the design's `RESULT_RENDERERS`).","doc":"ConnectorResult — renders the post-connect result block for a connector tool\ncall (the design's `RESULT_RENDERERS`). One component, five renderers picked\nby `kind`:\n  - `issues` — GitHub-style list: status dot, title, `#id · opened …`, colored labels\n  - `files`  — Drive-style list: type icon (doc=blue / sheet=green), name, meta, open arrow\n  - `emails` — Gmail-style list: deterministic-color avatar, from/time, preview, unread badge\n  - `events` — Calendar-style list: a calendar glyph, title, `when` (mono) + where/calendar meta\n  - `draft`  — a draft card with body paragraphs and Send / Edit actions (uses `<Button>`)\n\n`lead` renders as a paragraph above the list when provided. Presentational\nonly — the consuming app supplies the items and wires the draft `onSend` /\n`onEdit` via `draftActions`.","props":[{"name":"kind","type":"ConnectorResultKind","required":true,"doc":"Which renderer to use."},{"name":"lead","type":"string","required":false,"doc":"Optional lead paragraph rendered above the list."},{"name":"items","type":"ConnectorResultItem[]","required":true,"doc":"The result items."},{"name":"draftActions","type":"ConnectorDraftActions","required":false,"doc":"Send / Edit handlers + copy for `kind=\"draft\"`."}],"propsType":"ConnectorResultProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConnectorTile","kind":"component","layer":"component","file":"src/components/connectors/ConnectorTile.tsx","module":"ConnectorTile","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ConnectorTile — a connector's brand glyph centered in a rounded, bordered square (the `.ob-tile` design surface).","doc":"ConnectorTile — a connector's brand glyph centered in a rounded, bordered\nsquare (the `.ob-tile` design surface). Used in the slate header, the OAuth\nbrand-link row, the connect prompt, and anywhere a connector needs a logo\nchip.\n\nThe glyph paints at ~50% of the tile edge (the design ratio). When the\nconnector is `mono` (GitHub), the tile sets `text-foreground` so the\n`currentColor` glyph follows the theme ink; multicolor glyphs ignore it.","props":[{"name":"connector","type":"ConnectorMeta","required":true,"doc":"The connector whose glyph to render."},{"name":"size","type":"number","required":false,"doc":"Tile edge length in px."}],"propsType":"ConnectorTileProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConnectorToolCall","kind":"component","layer":"component","file":"src/components/connectors/ConnectorToolCall.tsx","module":"ConnectorToolCall","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ConnectorToolCall — the agent tool-call pill (the design's `.tool` / `ToolBlock`).","doc":"ConnectorToolCall — the agent tool-call pill (the design's `.tool` /\n`ToolBlock`). A monospace `name(args)` call, the connector's glyph, and a\nstatus cluster on the right that reads the lifecycle:\n  - `running` — a spinner + \"calling tool…\"\n  - `error`   — a destructive X badge + \"not connected\"\n  - `success` — a success check badge + \"200 OK\"\n\nThe frame stays neutral (`bg-muted`); status color lives only in the right\ncluster (success / destructive tokens), matching the library's\n\"color is signal\" tool-surface discipline.\n\nPresentational only — the consuming app owns the call lifecycle and sets\n`status`.","props":[{"name":"connector","type":"ConnectorMeta","required":true,"doc":"The connector whose glyph leads the pill."},{"name":"toolName","type":"string","required":true,"doc":"Tool name, e.g."},{"name":"toolArgs","type":"string","required":false,"doc":"Optional argument string, e.g."},{"name":"status","type":"ConnectorToolStatus","required":true,"doc":"Lifecycle state."}],"propsType":"ConnectorToolCallProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ScopeIcon","kind":"component","layer":"component","file":"src/components/connectors/ScopeIcon.tsx","module":"ScopeIcon","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ScopeIcon — the small stroke line-icon shown inside a scope row (and the OAuth perms list).","doc":"ScopeIcon — the small stroke line-icon shown inside a scope row (and the\nOAuth perms list). Maps a stable scope-icon key (carried on\n`ConnectorScope.icon`) to a glyph from the library's icon barrel, so call\nsites never import an icon package directly and the mapping lives in one\nplace.\n\nUnknown keys fall back to a check glyph (the design's behavior).","props":[{"name":"name","type":"string","required":true,"doc":"Scope-icon key (e.g."},{"name":"size","type":"number","required":false,"doc":"Glyph edge length in px."}],"propsType":"ScopeIconProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GITHUB","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GMAIL","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GOOGLE_DRIVE","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GOOGLE_CALENDAR","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_CONNECTORS","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_ISSUES","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_FILES","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_EMAILS","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_EVENTS","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SAMPLE_DRAFT","kind":"component","layer":"component","file":"src/components/connectors/sampleData.ts","module":"sampleData","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AddSourceModal","kind":"component","layer":"component","file":"src/components/source-ingestion/AddSourceModal.tsx","module":"AddSourceModal","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AddSourceModal — the SourceIngestion family root: a `Dialog` that opens on a source-picker grid and swaps to back-able panels (paste text, URL, YouTube, RSS, email, Drive) with a directional slide.","doc":"AddSourceModal — the SourceIngestion family root: a `Dialog` that opens on a\nsource-picker grid and swaps to back-able panels (paste text, URL, YouTube,\nRSS, email, Drive) with a directional slide.\n\nPorted from Creator Studio's `AddToVaultModal` + `ViewRenderer` + `MainView`\n+ `useAddToVault`, keeping the **shape** of the state machine and dropping\nevery app concern behind a prop (the donor's seams):\n  - **No Redux** — the consumer owns the thunks; the family takes\n    `onAddFiles` / `onSubmit` and a controlled `queue`.\n  - **No `WebSocketService`** — the import banner is driven by the optional\n    `importProgress` + `isTransferring` props.\n  - **No `sonner`** — duplicate / \"please wait\" / copy messages surface via\n    the optional `onNotify` callback; the family mounts no toaster.\n  - **No `import.meta.env`** — `accept` / `maxFileSize` are props.\n  - **No `document.getElementById`** — `FileDropZone` uses a ref (SSR-safe).\n\nControlled: `view` / `onViewChange`, `values` / `onValueChange`, and\n`queue` are owned by the consumer. The source grid is **data-driven** via\n`sources` (defaults to `DEFAULT_SOURCES`); disabled source types render as\n\"Soon\" until enabled.\n\n[…truncated — read the source file for the rest]","props":[{"name":"open","type":"boolean","required":true,"doc":"Whether the modal is open."},{"name":"onOpenChange","type":"(open: boolean) => void","required":true,"doc":"Open-state change handler."},{"name":"view","type":"SourceView","required":false,"doc":"Active panel (controlled)."},{"name":"onViewChange","type":"(view: SourceView) => void","required":false,"doc":"View change handler (required when `view` is controlled)."},{"name":"values","type":"Partial<Record<SourceView, string>>","required":false,"doc":"Per-source input values keyed by `SourceView` (controlled)."},{"name":"onValueChange","type":"(view: SourceView, value: string) => void","required":false,"doc":"Fires when a panel's input changes."},{"name":"pasteFileName","type":"string","required":false,"doc":"Paste panel: the file-name input value (controlled)."},{"name":"onPasteFileNameChange","type":"(name: string) => void","required":false,"doc":"Paste panel: file-name change handler."},{"name":"queue","type":"UploadFile[]","required":false,"doc":"The upload queue (controlled by the consumer)."},{"name":"onAddFiles","type":"(files: File[]) => void","required":false,"doc":"Fired with files dropped / chosen."},{"name":"onRemoveFile","type":"(id: string) => void","required":false,"doc":"Remove a queued file."},{"name":"onRetryFile","type":"(id: string) => void","required":false,"doc":"Retry a failed upload."},{"name":"onSubmit","type":"(kind: SourceKind, content: string) => void","required":false,"doc":"Fired when a panel submits: `(kind, content)`."},{"name":"sources","type":"SourceDefinition[]","required":false,"doc":"Data-driven source grid."},{"name":"accept","type":"string","required":false,"doc":"Hidden-input `accept` filter."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Modal title."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Modal description."},{"name":"onNotify","type":"(kind: SourceNotifyKind, message: string) => void","required":false,"doc":"Optional notification callback (no toaster is mounted)."},{"name":"importProgress","type":"SourceImportProgress","required":false,"doc":"Import-progress banner payload (fed from the consumer's socket)."},{"name":"isTransferring","type":"boolean","required":false,"doc":"Transfer-in-progress spinner banner."},{"name":"onConnectDrive","type":"() => void","required":false,"doc":"Drive: fired when the user clicks Continue (the consumer runs OAuth)."},{"name":"driveConnecting","type":"boolean","required":false,"doc":"Drive: busy state for the connect CTA."},{"name":"appLogo","type":"React.ReactNode","required":false,"doc":"Drive: left logo slot (host-app mark)."},{"name":"driveLogo","type":"React.ReactNode","required":false,"doc":"Drive: right logo slot (Drive mark)."},{"name":"emailAddress","type":"string","required":false,"doc":"Email: the user's unique vault address."},{"name":"className","type":"string","required":false,"doc":"Extra class on the `DialogContent`."}],"propsType":"AddSourceModalProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SourceIngestion","kind":"component","layer":"component","file":"src/components/source-ingestion/AddSourceModal.tsx","module":"AddSourceModal","primary":false,"importPaths":["@aisquare/ui"],"category":"Forms","since":"v1.4.0","demoId":"source-ingestion","summary":"Alias — the issue names the family root both `AddSourceModal` and `SourceIngestion`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FileDropZone","kind":"component","layer":"component","file":"src/components/source-ingestion/FileDropZone.tsx","module":"FileDropZone","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FileDropZone — dashed-border drag-and-drop target with a click-to-browse affordance.","doc":"FileDropZone — dashed-border drag-and-drop target with a click-to-browse\naffordance. Native drag-drop, ZERO dependency.\n\nPorted from Creator Studio's `vault/upload/DropZone.tsx` and hardened:\n  - The donor triggered the hidden `<input>` via\n    `document.getElementById(\"file-upload\").click()` — fragile (id\n    collisions when two dropzones mount) and not SSR-safe. We use a `ref`\n    instead: no `document` access, no id, two zones never collide.\n  - Inline `blue-50` / `gray-300` washes become brand tokens\n    (`border-border` / `border-primary`, `bg-primary/5`, `bg-muted/40`).\n  - Drag highlight is a token color change (kept for reduced-motion users);\n    the drop-icon's spring scale-up is gated on `useReducedMotion()`.\n\nThe drag counter (`enter`/`leave` bump a ref) fixes the classic flicker\nwhere dragging over a child element fires `dragleave` on the parent. The\nzone is keyboard-accessible: it is a real `<button>`-less region whose\n\"Browse files\" control is a focusable `<Button>`, plus the root responds to\nEnter / Space to open the picker.\n\n@example\n  <FileDropZone\n    accept=\".pdf,.docx,.txt,.csv,.md\"\n    multiple\n    onDrop={(files) => addFiles(files)}\n  />\n\n  // Compact variant for \"add more\" once the queue has entries:\n  <FileDropZone compact onDrop={addFiles} />","props":[{"name":"accept","type":"string","required":false,"doc":"`accept` filter forwarded to the hidden `<input type=\"file\">`."},{"name":"multiple","type":"boolean","required":false,"doc":"Allow selecting / dropping multiple files."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole zone."},{"name":"compact","type":"boolean","required":false,"doc":"Compact \"add more files or drag here\" variant (smaller padding + icon)."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Headline text in the full (non-compact) variant."},{"name":"hint","type":"React.ReactNode","required":false,"doc":"Sub-text under the headline in the full variant."},{"name":"onDrop","type":"(files: File[]) => void","required":true,"doc":"Fired with the dropped / chosen files."},{"name":"renderEmpty","type":"(state: { isDragActive: boolean }) => React.ReactNode","required":false,"doc":"Override the default empty-state content (full variant only)."}],"propsType":"FileDropZoneProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FileItem","kind":"component","layer":"component","file":"src/components/source-ingestion/FileItem.tsx","module":"FileItem","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FileItem — one row of the upload queue.","doc":"FileItem — one row of the upload queue.\n\nPorted from the per-row body of Creator Studio's `FileUploadList.tsx`.\nThe headline behavior is the **status-pill morph**: the trailing pill\ncross-fades between `uploading` (spinner + \"Uploading\"), `success` (check +\n\"Uploaded\", `success` token) and `error` (alert + \"Failed\", `destructive`\ntoken, plus a retry button). The donor inlined two raw `<svg>` spinners and\ntinted rows with `bg-red-50` / `bg-green-50` / `bg-gray-50`; here the tint\nuses `success` / `destructive` / `muted` tokens and the spinner is the\nbarrel `Loader2` icon with a token color.\n\nMotion: the pill swap is an `AnimatePresence` cross-fade and the `Progress`\nwidth animates via a spring. On `error` the row does a short shake to draw\nthe eye to the retry affordance. Everything is gated on\n`useReducedMotion()` — reduced-motion users get instant pill swaps, no\nshake, and the progress bar still moves (it is the determinate signal).\n\nNames longer than 60 chars are truncated mid-string (matching the donor's\n`slice(0, 57) + \"...\"`). a11y: the status pill exposes the state via text +\n`role=\"status\"`; retry / remove are labelled icon buttons.\n\nTypically rendered inside `<UploadQueue>`; exported standalone for custom\nlayouts.","props":[{"name":"file","type":"UploadFile","required":true,"doc":"The file to render."},{"name":"onRetry","type":"(id: string) => void","required":false,"doc":"Retry handler — shown as a button when `status === \"error\"`."},{"name":"onRemove","type":"(id: string) => void","required":false,"doc":"Remove handler — shows an `X` button when provided."}],"propsType":"FileItemProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"fileItemEnterSpring","kind":"const","layer":"component","file":"src/components/source-ingestion/FileItem.tsx","module":"FileItem","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Spring used by `UploadQueue` to animate row entrance.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FilePreview","kind":"component","layer":"component","file":"src/components/source-ingestion/FilePreview.tsx","module":"FilePreview","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"FilePreview — a presentational card for an already-ingested file.","doc":"FilePreview — a presentational card for an already-ingested file.\n\nThe donor's stored-vault listing (`vault/FileItem.tsx` + `FilePreview.tsx`)\nis a separate \"VaultList family\" follow-up (it is coupled to\n`contentVaultSlice`, `documentUrlService`, role gating). This is the\ndesign-system shell of that preview: it takes a name / size / mime and\noptional `onPreview` / `onDownload` callbacks, and renders an icon, the\nmetadata, and labelled action buttons — no transport, no signed URLs, no\nRedux. The full listing grid lands with the VaultList port.\n\nProvide `thumbnail` to show an image instead of the type icon. All colors\nare brand tokens; light-theme only.\n\n@example\n  <FilePreview\n    name=\"brand-guidelines.pdf\"\n    size=\"2.4 MB\"\n    type=\"application/pdf\"\n    onPreview={() => open(doc)}\n    onDownload={() => download(doc)}\n  />","props":[{"name":"name","type":"string","required":true,"doc":"File display name."},{"name":"size","type":"string","required":false,"doc":"Human-readable size (e.g."},{"name":"type","type":"string","required":false,"doc":"MIME type — drives the fallback icon."},{"name":"thumbnail","type":"string","required":false,"doc":"Optional thumbnail URL (rendered in place of the type icon)."},{"name":"onPreview","type":"() => void","required":false,"doc":"Show + wire an Eye preview button."},{"name":"onDownload","type":"() => void","required":false,"doc":"Show + wire a Download button."}],"propsType":"FilePreviewProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"sourceCardVariants","kind":"variants","layer":"component","file":"src/components/source-ingestion/SourceCard.tsx","module":"SourceCard","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SourceCard — a clickable tile in the \"import from other sources\" grid (Paste Text, Webpage / GitHub URL, YouTube, Google Drive, Email, RSS, ...).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SourceCard","kind":"component","layer":"component","file":"src/components/source-ingestion/SourceCard.tsx","module":"SourceCard","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SourceCard — a clickable tile in the \"import from other sources\" grid (Paste Text, Webpage / GitHub URL, YouTube, Google Drive, Email, RSS, ...).","doc":"SourceCard — a clickable tile in the \"import from other sources\" grid\n(Paste Text, Webpage / GitHub URL, YouTube, Google Drive, Email, RSS, ...).\n\nPorted from Creator Studio's `vault/upload/SourceCard.tsx`. Every inline\nnavy hex (`#0A2540` borders / fills) and `blue-50` / `green-*` / `red-*`\nwash is replaced with brand tokens (`border-border`, `bg-card`,\n`text-primary`, `bg-primary`, `success`, `destructive`). The connection\nbadge keeps the donor's \"Connected ✓ -> Disconnect on hover\" CSS\n`group-hover` cross-fade and the `stopPropagation` that keeps a badge click\nfrom triggering the card's `onClick`.\n\nThree visual states via cva `state`:\n  - `default`   — interactive, hover lifts the border + tints the surface.\n  - `disabled`  — greyed, `cursor-not-allowed`, no click (the gated source\n                  types: YouTube / Drive / Email / RSS until enabled).\n  - `connected` — same as default but the surface carries a faint success\n                  tint to read as \"wired up\".\n\nMotion: a subtle hover lift via `motion/react`, gated on\n`useReducedMotion()` (reduced-motion users keep the color/border change,\nwhich is not motion, but lose the translate). a11y: when interactive the\ncard is a `role=\"button\"` with `tabIndex` and Enter/Space activation; the\nconnection badge is a real `<button>`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"icon","type":"React.ReactNode","required":false,"doc":"Leading icon (typically a barrel icon, from `../../icons`, sized `size-5`)."},{"name":"title","type":"React.ReactNode","required":true,"doc":"Tile title."},{"name":"description","type":"React.ReactNode","required":false,"doc":"One-line description under the title."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the tile — greys it, removes click + hover, sets `aria-disabled`."},{"name":"connectionStatus","type":"SourceConnectionStatus","required":false,"doc":"Connection badge mode."},{"name":"onClick","type":"() => void","required":false,"doc":"Card activation (click / Enter / Space)."},{"name":"onConnect","type":"(e: React.MouseEvent) => void","required":false,"doc":"Connect-badge click."},{"name":"onDisconnect","type":"(e: React.MouseEvent) => void","required":false,"doc":"Disconnect-badge click (shown on hover over a connected pill)."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Optional extra content rendered under the description."}],"propsType":"SourceCardProps","variants":{"variants":{"state":["default","disabled","connected"]},"defaults":{"state":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"UploadQueue","kind":"component","layer":"component","file":"src/components/source-ingestion/UploadQueue.tsx","module":"UploadQueue","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"UploadQueue — the live upload list (the donor's `FileUploadList.tsx`).","doc":"UploadQueue — the live upload list (the donor's `FileUploadList.tsx`).\n\nRenders a header (\"Attached files\"), a scroll-capped column of `FileItem`\nrows, and animates rows in as files are added / out on\nremove + complete. The entrance / exit is the same spring-driven\n`AnimatePresence` pattern `AnimatedList` uses internally.\n\nWhy not wrap `<AnimatedList>` directly (the issue's suggested base): that\ncomponent is built for ephemeral notification stacks — it auto-cycles items\non a timer (`autoAddDelay` default 2000ms, which would re-inject queue\nrows), and it wraps every item in its own non-overridable\n`rounded-2xl border bg-card p-4` card, which double-chromes a `FileItem`\nthat already owns its row surface + status tint. A controlled upload queue\nneeds neither, so we compose the same motion primitive (`AnimatePresence` +\n`springs.gentle`) at the row level and skip the stack machinery. The visual\nresult — rows slide in, exit on remove — is identical.\n\nReduced-motion: rows appear without the spring entrance (gated on\n`useReducedMotion()`), matching `AnimatedList`'s own fallback.\n\nControlled: the consumer owns `items` and mutates each row's\n`status` / `progress` as its transport resolves. Returns `null` when empty.\n\n@example\n  <UploadQueue items={queue} onRetry={retry} onRemove={remove} />","props":[{"name":"items","type":"UploadFile[]","required":true,"doc":"The queue (controlled by the consumer)."},{"name":"onRetry","type":"(id: string) => void","required":false,"doc":"Retry handler, forwarded to each errored row."},{"name":"onRemove","type":"(id: string) => void","required":false,"doc":"Remove handler, forwarded to each row (shows an X when provided)."},{"name":"title","type":"React.ReactNode","required":false,"doc":"Header label."},{"name":"maxHeight","type":"number | string","required":false,"doc":"Max height of the scroll region."},{"name":"renderRow","type":"(file: UploadFile) => React.ReactNode","required":false,"doc":"Escape hatch: render a custom row instead of `<FileItem>`."}],"propsType":"UploadQueueProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DrivePanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/DrivePanel.tsx","module":"DrivePanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"DrivePanel — the presentational shell of the Google Drive connect step.","doc":"DrivePanel — the presentational shell of the Google Drive connect step.\n\nThe donor's `GoogleDriveConnectModal.tsx` is almost entirely\napp/transport: it opens a centered OAuth popup, listens for `postMessage`\n`GOOGLE_DRIVE_OAUTH_CODE` / `_ERROR`, runs a 60s timeout, and dispatches a\nRedux callback. None of that is design-system concern. This component ports\nONLY the shell: the \"your logo <-> dots <-> Drive logo\" header, the three\nprivacy info blocks, and the full-width \"Continue to Google Drive\" CTA. The\npopup / postMessage / Redux orchestration stays in the consumer, invoked via\nthe `onConnect` prop. (The live OAuth wiring is a deferred follow-up.)\n\nThe two logos are slots (`appLogo`, `driveLogo`) — the donor imported\n`aisquare-logo.png` directly; here the consumer supplies both so the shell\ncarries no asset import. `connecting` disables the CTA + shows busy copy.","props":[{"name":"onBack","type":"() => void","required":true,"doc":"Back-to-grid handler."},{"name":"onConnect","type":"() => void","required":true,"doc":"Fired when the user clicks \"Continue\" — the consumer runs the OAuth dance."},{"name":"appLogo","type":"React.ReactNode","required":false,"doc":"Left logo slot (the host app's mark)."},{"name":"driveLogo","type":"React.ReactNode","required":false,"doc":"Right logo slot (a Google Drive mark supplied by the consumer)."},{"name":"connecting","type":"boolean","required":false,"doc":"Busy state — disables the CTA and swaps the label."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"DrivePanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EmailPanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/EmailPanel.tsx","module":"EmailPanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"EmailPanel — show the user's unique email-to-vault address with a copy button.","doc":"EmailPanel — show the user's unique email-to-vault address with a copy\nbutton. Read-only, no submit.\n\nPorted from the donor's `EmailView.tsx`. The donor called\n`navigator.clipboard.writeText` directly + a `sonner` success toast; here\nthe copy goes through the library's `useCopyToClipboard` hook (SSR-safe,\nwith a graceful fallback) and the success is surfaced via the optional\n`onNotify` callback so the panel has no toast dependency. The button also\nshows a transient check + \"Copied\" affordance regardless. Gated off by\ndefault in the grid (`enabled: false`).\n\nThe vault address is a prop (`address`) — the donor hardcoded\n`your-vault@aisquare.app`; the consumer supplies the real per-user address.","props":[{"name":"address","type":"string","required":true,"doc":"The user's unique email-to-vault address."},{"name":"onBack","type":"() => void","required":true,"doc":"Back-to-grid handler."},{"name":"onNotify","type":"(kind: SourceNotifyKind, message: string) => void","required":false,"doc":"Optional notification callback (the library mounts no toaster of its own)."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"EmailPanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PanelHeader","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/PanelHeader.tsx","module":"PanelHeader","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PanelHeader — the shared back-arrow header used by every source panel (Paste / URL / YouTube / RSS / Email / Drive).","doc":"PanelHeader — the shared back-arrow header used by every source panel\n(Paste / URL / YouTube / RSS / Email / Drive). A ghost-icon back button +\na title + an optional description, matching the donor's per-panel\n`DialogHeader` shape but factored out so all panels read as one family.\n\nThe title renders as an `<h2>` (the panels live inside a Dialog whose\n`DialogTitle` names the surface; per-panel headings are section headings).\nThe back button is labelled for screen readers.","props":[{"name":"title","type":"React.ReactNode","required":true,"doc":"Panel title."},{"name":"description","type":"React.ReactNode","required":false,"doc":"One-line description under the title."},{"name":"onBack","type":"() => void","required":true,"doc":"Back-to-grid handler."},{"name":"backLabel","type":"string","required":false,"doc":"Accessible label for the back button."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"PanelHeaderProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PanelFooter","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/PanelHeader.tsx","module":"PanelHeader","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PanelFooter — the shared right-aligned action row (Cancel + primary CTA) with a top hairline, matching the donor's panel footers.","doc":null,"props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"PanelFooterProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PasteTextPanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/PasteTextPanel.tsx","module":"PasteTextPanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PasteTextPanel — paste raw text into the vault.","doc":"PasteTextPanel — paste raw text into the vault. LIVE panel.\n\nPorted from the donor's `PasteTextView.tsx`. Keeps the File Name input, the\ncontent textarea, and the **live character counter**\n(`text.length.toLocaleString()` + \"characters\"). The submit CTA is disabled\nuntil the content is non-empty (`!text.trim()`), exactly as the donor.\nNavy hex / `bg-white` / `gray-*` become brand tokens via the `<Input>` /\n`<Textarea>` / `<Label>` primitives.\n\nControlled: the parent owns `text` + `fileName`. The auto-filename behavior\n(derive a name from the first 30 chars of pasted text) lives in the parent\nvia `autoFilenameFromText` so this panel stays presentational.","props":[{"name":"text","type":"string","required":true,"doc":"Content textarea value (controlled)."},{"name":"onTextChange","type":"(text: string) => void","required":true,"doc":"Content change handler."},{"name":"fileName","type":"string","required":true,"doc":"File-name input value (controlled)."},{"name":"onFileNameChange","type":"(name: string) => void","required":true,"doc":"File-name change handler."},{"name":"onBack","type":"() => void","required":true,"doc":"Back-to-grid handler."},{"name":"onSubmit","type":"() => void","required":true,"doc":"Submit handler — fired only when content is non-empty."},{"name":"submitLabel","type":"string","required":false,"doc":"Submit button label."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"PasteTextPanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"RssPanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/RssPanel.tsx","module":"RssPanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"RssPanel — sync content from an RSS / newsletter feed.","doc":"RssPanel — sync content from an RSS / newsletter feed. Single-URL panel.\n\nPorted from the donor's `RssInputView.tsx`: a single `<Input>` plus an\n\"automatically sync\" checkbox and a sync-settings info block, submit\ndisabled until non-empty. The donor's raw `<input type=\"checkbox\">` becomes\nthe brand `<Checkbox>` primitive; `blue-*` washes become tokens. Gated off\nby default in the grid (`enabled: false`); panel fully built.\n\n`autoSync` is controlled by the parent so the consumer can read it on\nsubmit; defaults to uncontrolled-internal when not provided.","props":[{"name":"value","type":"string","required":true,"doc":null},{"name":"onChange","type":"(value: string) => void","required":true,"doc":null},{"name":"onBack","type":"() => void","required":true,"doc":null},{"name":"onSubmit","type":"() => void","required":true,"doc":null},{"name":"autoSync","type":"boolean","required":false,"doc":"Auto-sync checkbox state (controlled)."},{"name":"onAutoSyncChange","type":"(checked: boolean) => void","required":false,"doc":null},{"name":"submitLabel","type":"string","required":false,"doc":null},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"RssPanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"UrlPanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/UrlPanel.tsx","module":"UrlPanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"UrlPanel — import one or more web / GitHub URLs.","doc":"UrlPanel — import one or more web / GitHub URLs. LIVE panel.\n\nThe richest panel, ported from the donor's `UrlInputView.tsx` with the\nvalidation logic kept VERBATIM (via `validateUrls` / `parseUrlLines` in\n`lib/fileUtils`):\n  - multi-URL textarea (one link per line),\n  - `validateUrls` against `/^https?:\\/\\/.+\\..+/i` -> inline\n    `Invalid URL: ...` banner with an `AlertCircle`,\n  - a live \"{n} link(s) detected\" counter,\n  - Enter-inserts-a-newline (Shift+Enter excluded), restoring the caret\n    after the inserted `\\n` synchronously (via `flushSync`) so fast\n    typing right after Enter can't race the caret-restore and corrupt\n    the next few characters,\n  - the \"We'll extract / Notes & Guidelines\" info block.\n\nSubmit is disabled while the input is empty or a validation error stands.\nThe donor's navy hex / `blue-50` / `red-50` / `amber-*` become brand tokens\n(`text-primary`, `bg-muted/40`, `destructive`, `warning`).\n\nControlled: the parent owns `value`. The validation error is local panel\nstate (cleared on edit), exactly as the donor.","props":[{"name":"value","type":"string","required":true,"doc":"Multi-line URL textarea value (controlled)."},{"name":"onChange","type":"(value: string) => void","required":true,"doc":"Change handler."},{"name":"onBack","type":"() => void","required":true,"doc":"Back-to-grid handler."},{"name":"onSubmit","type":"() => void","required":true,"doc":"Submit handler — fired only when every line validates."},{"name":"submitLabel","type":"string","required":false,"doc":"Submit button label."},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"UrlPanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"YoutubePanel","kind":"component","layer":"component","file":"src/components/source-ingestion/panels/YoutubePanel.tsx","module":"YoutubePanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"YoutubePanel — extract content from a YouTube video.","doc":"YoutubePanel — extract content from a YouTube video. Single-URL panel.\n\nPorted from the donor's `YoutubeInputView.tsx`: a single `<Input>` + a\n\"We'll extract\" info block, submit disabled until non-empty. Brand tokens\nreplace the donor's `blue-500` CTA / `blue-50` info wash. This source type\nis gated off by default in the grid (`enabled: false`); the panel itself is\nfully built so wiring it on is a one-line config change.","props":[{"name":"value","type":"string","required":true,"doc":null},{"name":"onChange","type":"(value: string) => void","required":true,"doc":null},{"name":"onBack","type":"() => void","required":true,"doc":null},{"name":"onSubmit","type":"() => void","required":true,"doc":null},{"name":"submitLabel","type":"string","required":false,"doc":null},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"YoutubePanelProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_SOURCES","kind":"component","layer":"component","file":"src/components/source-ingestion/sources.tsx","module":"sources","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"DEFAULT_SOURCES — the canonical \"import from other sources\" grid, mirroring the donor's `MainView` tiles.","doc":"DEFAULT_SOURCES — the canonical \"import from other sources\" grid, mirroring\nthe donor's `MainView` tiles. The two live panels (Paste text, Webpage /\nGitHub URL) are `enabled`; the heavier source types (YouTube, Google Drive,\nEmail, RSS) ship `enabled: false` so they render as \"Soon\" until a consumer\nflips them on and wires the callback. Pass your own `sources` array to\n`<AddSourceModal>` to override entirely.","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_ACCEPT","kind":"component","layer":"component","file":"src/components/source-ingestion/sources.tsx","module":"sources","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default `accept` filter (the donor's supported document formats).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useAikoTarget","kind":"function","layer":"hook","file":"src/hooks/useAikoTarget.ts","module":"useAikoTarget","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useAikoTarget — resolve an `<AikoAnchor id>` into a live element + state.","doc":"useAikoTarget — resolve an `<AikoAnchor id>` into a live element + state.\n\n  const { element, exists, visible, disabled } = useAikoTarget(\"wizard.cover-button\");\n\nReturns a snapshot that re-renders when the matching element appears,\ndisappears, becomes hidden, or gains/loses a `disabled` attribute. Both\n`<AikoProvider>`'s hint resolver and consumer code can use this hook to\nmake the same decisions about a target — visible vs hidden vs disabled vs\nmissing — without each caller wiring its own `MutationObserver`.\n\nVisibility is checked via `offsetParent` (cheap, picks up `display:none`\non any ancestor) plus an explicit `hidden` attribute check. Position-fixed\nelements (which have `null` offsetParent in spec) are treated as visible\nunless their computed style says otherwise.\n\nDisabled is checked via the native `disabled` property (buttons, inputs,\nfieldsets, selects, textareas) and via `aria-disabled=\"true\"` for\nnon-form-control elements.\n\nSSR-safe: returns the empty snapshot on the server and resolves on the\nfirst client effect.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useCelebrate","kind":"function","layer":"hook","file":"src/hooks/useCelebrate.ts","module":"useCelebrate","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useCelebrate — the declarative, reduced-motion-aware handle for the imperative `celebrate()` confetti burst.","doc":"useCelebrate — the declarative, reduced-motion-aware handle for the imperative\n`celebrate()` confetti burst.\n\nReturns a stable `fire` callback to hand to any success event (publish landed,\nmilestone unlocked, checklist complete). Bind default options once, override\nper-call at the fire site:\n\n  const fire = useCelebrate({ intensity: \"shower\" });\n  ...\n  <Button onClick={() => fire()}>Publish</Button>            // shower\n  <Button onClick={() => fire({ intensity: \"sparkle\" })}>Save</Button>\n\nReduced motion: when the user prefers reduced motion the burst is skipped (the\ncallback is a no-op) unless the call opts in with `ignoreReducedMotion`. This\nmirrors `celebrate()`'s own `disableForReducedMotion` guard, but makes the\ndecision observable to the caller (the underlying `celebrate()` is simply never\ninvoked), so a surface can still run its calm *state* change — swap in the\n`<PublishSuccess>` panel, show a toast — while the confetti is dropped.\n\nSSR-safe: `celebrate()` self-guards `window`, and `useReducedMotion()` resolves\nto `null` (treated here as \"motion allowed\") until the client resolves the\npref, so the first client fire is honored rather than swallowed.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"useCopyToClipboard","kind":"function","layer":"hook","file":"src/hooks/useCopyToClipboard.ts","module":"useCopyToClipboard","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Copy-to-clipboard with feedback state.","doc":"Copy-to-clipboard with feedback state. Returns:\n  - `copy(text)` — async, resolves true on success\n  - `copiedText` — the last successfully copied string (or null)\n  - `isSupported` — boolean for whether the Clipboard API is available\n\n  const { copy, copiedText } = useCopyToClipboard();\n  <Button onClick={() => copy(snippet)}>{copiedText ? \"Copied\" : \"Copy\"}</Button>\n\nAdapted from usehooks-ts (MIT). Falls back gracefully when the Clipboard API\nisn't available (older browsers, insecure contexts).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useDebouncedAvailabilityCheck","kind":"function","layer":"hook","file":"src/hooks/useDebouncedAvailabilityCheck.ts","module":"useDebouncedAvailabilityCheck","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useDebouncedAvailabilityCheck — the missing request-lifecycle layer on top of the package's `useDebouncedValue`.","doc":"useDebouncedAvailabilityCheck — the missing request-lifecycle layer on top of\nthe package's `useDebouncedValue`. Every \"is this name / URL free?\" field\n(studio custom URL, workspace name, account username) hand-rolls the same\neffect: debounce the input, fire one network check, render\nidle / checking / available / taken, surface a suggestion, and stop a slow\nearlier response from clobbering a fast later one. This hook owns exactly\nthat, and nothing else (no input sanitization, no rendered copy), so it can\nback any of those fields regardless of transport.\n\nCorrectness property (the load-bearing reason this exists): a monotonic\nrequest-id is captured before each fire and re-checked after the promise\nsettles, in the resolve, the reject, AND the cleanup paths. A response is\ndropped if a newer request has started since it was issued, so an out-of-\norder resolution can never win. An `AbortSignal` is also handed to `check`\nso transports that honor it (fetch, RTK Query) cancel the in-flight request\noutright; the id guard is the backstop for transports that do not.\n\n[…truncated — read the source file for the rest]","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"useDebouncedValue","kind":"function","layer":"hook","file":"src/hooks/useDebouncedValue.ts","module":"useDebouncedValue","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useDebouncedValue — returns a value that updates only after `delay` ms of stillness.","doc":"useDebouncedValue — returns a value that updates only after `delay` ms of\nstillness. Common use: debouncing search-input change events before firing\na network request.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useDocumentVisibility","kind":"function","layer":"hook","file":"src/hooks/useDocumentVisibility.ts","module":"useDocumentVisibility","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Reactive boolean for whether the document is currently visible.","doc":"Reactive boolean for whether the document is currently visible. Useful for\npausing animations / polling when the tab is backgrounded.\n\n  const visible = useDocumentVisibility();\n  useInterval(poll, visible ? 5000 : null);\n\nSSR-safe: returns `true` on the server.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Strongly-typed `addEventListener` wrapper.","doc":"Strongly-typed `addEventListener` wrapper. Auto-cleans on unmount, captures\nthe latest handler in a ref so the listener doesn't need to be re-bound on\nevery render.\n\n  useEventListener(\"keydown\", (e) => { if (e.key === \"Escape\") close(); });\n  useEventListener(\"scroll\", onScroll, scrollContainerRef);\n\nAdapted from usehooks-ts (MIT).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEventListener","kind":"function","layer":"hook","file":"src/hooks/useEventListener.ts","module":"useEventListener","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useEyeDropper","kind":"function","layer":"hook","file":"src/hooks/useEyeDropper.ts","module":"useEyeDropper","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useEyeDropper — SSR-safe wrapper around the browser [EyeDropper API](https://developer.mozilla.org/docs/Web/API/EyeDropper).","doc":"useEyeDropper — SSR-safe wrapper around the browser\n[EyeDropper API](https://developer.mozilla.org/docs/Web/API/EyeDropper).\n\n  const { supported, open, picking } = useEyeDropper();\n  {supported && <button onClick={async () => {\n    const hex = await open();\n    if (hex) onChange(hex);\n  }}>Pick</button>}\n\n`supported` is `null` until the first client resolution (matches\n`useReducedMotion` / `useVoiceInput` semantics) so SSR markup can avoid\nrendering the eyedropper button and then flashing it away on hydration. After\nmount it is `true` when `window.EyeDropper` exists, `false` otherwise.\n\n`open()` resolves to the picked `sRGBHex` (e.g. `\"#0a2540\"`), or `null` when\nthe user cancels (Escape) — the cancel rejection is swallowed so consumers\nnever need their own `try/catch`. It is a no-op resolving to `null` when the\nAPI is unsupported.\n\nConsolidated from the three donor pickers, each of which feature-detected\n`window.EyeDropper` and hand-wrapped the cancel rejection inline.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useFocusTrap","kind":"function","layer":"hook","file":"src/hooks/useFocusTrap.ts","module":"useFocusTrap","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Traps Tab focus inside an open dialog/drawer/overlay.","doc":"Traps Tab focus inside an open dialog/drawer/overlay. While `active`:\nfocuses the first focusable element inside the returned ref's node (or the\nnode itself if it has no focusable children), cycles Tab at the edges\n(Shift+Tab on the first wraps to the last, Tab on the last wraps to the\nfirst), and restores focus to whatever was focused before activation once\n`active` goes false / the component unmounts.\n\n  const dialogRef = useFocusTrap<HTMLDivElement>(open);\n  <div ref={dialogRef} role=\"dialog\" aria-modal=\"true\">...</div>\n\nSSR-safe (only touches `document` inside the effect, never at module\nscope) and a no-op while `active` is false, so it is cheap to call\nunconditionally from a component that toggles open/closed.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useInView","kind":"function","layer":"hook","file":"src/hooks/useInView.ts","module":"useInView","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Boolean for whether `ref.current` is in the viewport (or a custom root).","doc":"Boolean for whether `ref.current` is in the viewport (or a custom root).\nPowers scroll-triggered reveals.\n\n  const ref = useRef<HTMLDivElement>(null);\n  const inView = useInView(ref, { threshold: 0.4, once: true });\n\nMechanism-agnostic name (matches Motion's `useInView`); the underlying impl\nis IntersectionObserver-driven. SSR-safe: returns false until mount.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useInViewport","kind":"const","layer":"hook","file":"src/hooks/useInView.ts","module":"useInView","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useInterval","kind":"function","layer":"hook","file":"src/hooks/useInterval.ts","module":"useInterval","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`setInterval` as a hook.","doc":"`setInterval` as a hook. Pass `delay = null` to pause. Captures the latest\ncallback in a ref so consumers can pass inline functions without re-running\nthe effect on every render.\n\n  const [running, setRunning] = useState(true);\n  useInterval(() => poll(), running ? 5000 : null);\n\nAdapted from Dan Abramov's \"Making setInterval Declarative\" (overreacted.io)\nand usehooks-ts (MIT).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useIsomorphicLayoutEffect","kind":"const","layer":"hook","file":"src/hooks/useIsomorphicLayoutEffect.ts","module":"useIsomorphicLayoutEffect","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Use `useLayoutEffect` on the client, `useEffect` on the server.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useLocalStorage","kind":"function","layer":"hook","file":"src/hooks/useLocalStorage.ts","module":"useLocalStorage","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Synced state with `localStorage`.","doc":"Synced state with `localStorage`. Returns `[value, setValue, removeValue]`.\nSSR-safe: returns `initialValue` during the first render, then hydrates from\nstorage on mount. Listens for `storage` events so the value stays in sync\nacross tabs.\n\n  const [theme, setTheme] = useLocalStorage<\"light\" | \"dark\">(\"theme\", \"light\");\n\nAdapted from usehooks-ts (MIT). The `initialValue` reference is captured on\nfirst render so passing an inline object/array doesn't cause re-renders.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useMeasure","kind":"function","layer":"hook","file":"src/hooks/useMeasure.ts","module":"useMeasure","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Track the size of an element via `ResizeObserver`.","doc":"Track the size of an element via `ResizeObserver`. Returns a tuple of\n`[ref, rect]` — pass the ref to your element, read `rect.width` / `rect.height`\nduring render.\n\n  const [ref, { width, height }] = useMeasure<HTMLDivElement>();\n  <div ref={ref}>...</div>\n\nSSR-safe: returns 0/0 until mount.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useMediaQuery","kind":"function","layer":"hook","file":"src/hooks/useMediaQuery.ts","module":"useMediaQuery","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Reactive boolean for a CSS media query.","doc":"Reactive boolean for a CSS media query. SSR-safe: returns the optional\n`defaultValue` (false by default) on first render, then syncs after mount.\n\n  const isDesktop = useMediaQuery(\"(min-width: 1024px)\");\n  const reducedMotion = useMediaQuery(\"(prefers-reduced-motion: reduce)\");\n\nAdapted from usehooks-ts (MIT).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useMountReveal","kind":"function","layer":"hook","file":"src/hooks/useMountReveal.ts","module":"useMountReveal","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`useMountReveal` — the one-shot entrance the app hand-rolls everywhere (`initial`/`animate`/`transition` on a `motion.*` element), captured once so every surface reveals with the same house choreography.","doc":"`useMountReveal` — the one-shot entrance the app hand-rolls everywhere\n(`initial`/`animate`/`transition` on a `motion.*` element), captured once so\nevery surface reveals with the same house choreography.\n\nThe motion is a **two-beat, slide-then-fade** on the library's signature\n`[0.16, 1, 0.3, 1]` curve ({@link easings.smoothOut}): the transform leads,\nopacity ramps in just after — calm and never simultaneous. Under\n`prefers-reduced-motion` it collapses to an **opacity-only** cross-fade with\nno transform (the accessible cross-fade, not a hard cut).\n\nReturns motion props to apply explicitly; do not spread the whole result onto\na DOM node (`reduced` is a signal, not an attribute).\n\n@example\n  const { initial, animate, transition } = useMountReveal({ from: \"up\" });\n  <motion.div initial={initial} animate={animate} transition={transition}>…</motion.div>\n\n@example // staggered list\n  {items.map((item, i) => {\n    const reveal = useMountReveal({ index: i });\n    return <motion.li key={item.id} initial={reveal.initial} animate={reveal.animate} transition={reveal.transition}>…</motion.li>;\n  })}","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"useMounted","kind":"function","layer":"hook","file":"src/hooks/useMounted.ts","module":"useMounted","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useMounted — true after the component has mounted on the client.","doc":"useMounted — true after the component has mounted on the client.\nSSR-safe escape hatch for code that only makes sense in the browser.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useMousePosition","kind":"function","layer":"hook","file":"src/hooks/useMousePosition.ts","module":"useMousePosition","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Live mouse position.","doc":"Live mouse position. Powers `<Spotlight>`, `<Magnetic>`, `<Tilt>` and similar\nmouse-tracking effects.\n\nPass an optional ref to a target element to get coordinates relative to that\nelement's bounding box (origin at the top-left).\n\n  const { clientX, clientY } = useMousePosition();\n\n  const ref = useRef<HTMLDivElement>(null);\n  const { x, y } = useMousePosition(ref);   // origin at the element's top-left\n\n**Throttled to one update per animation frame.** Native `mousemove` fires up\nto ~120Hz; without rAF coalescing this hook would trigger ~120 React renders\nper second on hover. SSR-safe (returns zeros until first move on the client).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"usePagination","kind":"function","layer":"hook","file":"src/hooks/usePagination.ts","module":"usePagination","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"usePagination — pure sliding-window math for a smart pager, returned as a typed item list ready to map straight onto the stock `Pagination` primitives.","doc":"usePagination — pure sliding-window math for a smart pager, returned as a\ntyped item list ready to map straight onto the stock `Pagination` primitives.\n\nPorted verbatim from FE-React's `SlidingPagination` windowing (the behaviour\nthat 8 sites reimplemented by hand) and lifted into a hook so the math has a\nsingle seam that is testable in isolation, with no DOM. SSR-safe: no\n`window` / `document`, no side effects, just a memoized computation.\n\nBehaviour preserved exactly:\n- Returns `[]` when `totalPages <= 1` (the component self-hides on this).\n- With the defaults (`siblingCount = 1`, `boundaryCount = 1`): if\n  `totalPages <= windowSize + 2` every page is rendered with no ellipsis;\n  otherwise page 1 and the last page are pinned, a window slides around the\n  current page, an edge-expansion loop keeps the visible window at full\n  `windowSize` near either end, and a start / end ellipsis appears only when\n  it would replace more than one hidden page.\n\n@example\n  const items = usePagination({ currentPage: 5, totalPages: 20 });\n  // [ {page:1}, {ellipsis:\"start\"}, {page:4}, {page:5,active}, {page:6}, {ellipsis:\"end\"}, {page:20} ]","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"useProgressivePolling","kind":"function","layer":"hook","file":"src/hooks/useProgressivePolling.ts","module":"useProgressivePolling","primary":true,"importPaths":["@aisquare/ui"],"category":"Feedback","since":"v1.4.0","demoId":"progressive-polling","summary":"Progressive (backoff) polling, visibility-aware.","doc":"Progressive (backoff) polling, visibility-aware. A headless timing engine\nthat drives status morphs in consuming components (an upload chip going\nindexing then ready, a generation job, a vault re-index); it renders nothing\nitself.\n\nComposed from the library's own `useInterval` (declarative `setInterval`,\npaused on `delay === null`) and `useDocumentVisibility` (SSR-safe). The\nbackoff state machine on top recomputes the delay from `currentPollIndex`\nagainst the schedule and hands it to `useInterval`; the delay is `null`\n(paused) whenever polling is not active, a terminal/predicate stop fires, the\n`maxDurationMs` cap elapses, or the tab is hidden and `pauseWhenHidden` is on.\n\nSchedule: 1s, 2s, 3s, 5s, 8s, 10s, then 15s indefinitely (override via\n`schedule` / `finalIntervalMs`).\n\nSSR-safe: no `window`/`document` is read at module load (visibility comes\nfrom the SSR-safe hook), so it is safe to import on the server.\n\n@example\n```tsx\nconst { resetPollingSchedule } = useProgressivePolling({\n  pollFn: () => refetch(),\n  isActive: isPanelOpen,\n  shouldStopPolling: () => files.every((f) => f.status === \"uploaded\" || f.status === \"failed\"),\n  resetDependencies: [filters.status, filters.type],\n});\n\n// After a fresh upload, give the user fast feedback again:\nresetPollingSchedule();\n```","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"useReducedMotion","kind":"function","layer":"hook","file":"src/hooks/useReducedMotion.ts","module":"useReducedMotion","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Reactive nullable-boolean indicating whether the user prefers reduced motion.","doc":"Reactive nullable-boolean indicating whether the user prefers reduced motion.\nReturns `null` until the first client-side resolution (matches Motion's\n`useReducedMotion` semantics) so SSR-rendered content avoids the\n\"animate-then-snap\" flash that a plain `false` default would cause.\n\n  const reduced = useReducedMotion();\n  <motion.div animate={reduced === false ? { opacity: 1, y: 0 } : {}} />\n\n  // Or treat null as \"unknown, default to allowing motion\":\n  const animateAllowed = reduced === false || reduced === null;\n\nWorks regardless of motion library — does not import from `motion/react` or\n`framer-motion`. Same shape as Motion's hook so consumers can swap freely.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useScrollProgress","kind":"function","layer":"hook","file":"src/hooks/useScrollProgress.ts","module":"useScrollProgress","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Returns the current scroll progress (0 → 1) for the document or a target element.","doc":"Returns the current scroll progress (0 → 1) for the document or a target\nelement. Useful for scroll-linked motion (parallax, progress bars,\nscroll-reveal sequences).\n\n  const progress = useScrollProgress();              // whole page\n\n  const ref = useRef<HTMLElement>(null);\n  const sectionProgress = useScrollProgress(ref);    // 0 when section enters,\n                                                      // 1 when it exits\n\n**Throttled to one update per animation frame.** Native `scroll` events fire\nvery frequently (often 60-120Hz on trackpad/momentum); rAF coalescing keeps\nthis to one React render per frame. SSR-safe (returns 0 until mount).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useScrollToBottom","kind":"function","layer":"hook","file":"src/hooks/useScrollToBottom.ts","module":"useScrollToBottom","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useScrollToBottom — observe whether a scroll container is anchored at its bottom edge, and provide a function to jump there.","doc":"useScrollToBottom — observe whether a scroll container is anchored at its\nbottom edge, and provide a function to jump there.\n\nReturns three refs and a hook:\n\n  const { scrollRef, sentinelRef, isAtBottom, scrollToBottom } = useScrollToBottom<HTMLDivElement>();\n\n  <div ref={scrollRef} className=\"h-full overflow-y-auto relative\">\n    {messages.map(...)}\n    <div ref={sentinelRef} aria-hidden />\n    <ScrollToBottomButton visible={!isAtBottom} onClick={() => scrollToBottom()} />\n  </div>\n\n- `scrollRef`: attach to the overflow container.\n- `sentinelRef`: attach to a 0-height element placed AFTER the last message\n  so it lives at the bottom of the content. Kept for API parity with the\n  pre-rewrite version (consumers already render it); the new\n  implementation does not actually use it.\n- `isAtBottom`: boolean tracking whether the user is anchored near the\n  bottom. Defaults to `true` on mount so the affordance stays hidden until\n  the user actually scrolls up.\n- `scrollToBottom({ smooth })`: smoothly scrolls to the bottom; pass\n  `{ smooth: false }` for an instant jump (used e.g. on session restore).\n\nWhy this is not an IntersectionObserver:\n\n[…truncated — read the source file for the rest]","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useVoiceInput","kind":"function","layer":"hook","file":"src/hooks/useVoiceInput.ts","module":"useVoiceInput","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"useVoiceInput — Web Speech API wrapper, SSR-safe, focused on chat dictation.","doc":"useVoiceInput — Web Speech API wrapper, SSR-safe, focused on chat dictation.\n\n  const { supported, isListening, transcript, start, stop, reset } = useVoiceInput();\n\n`supported` is `null` until first client resolution so SSR markup can avoid\nrendering the mic and then flashing it on hydration. After mount it becomes\n`true` (browser has SpeechRecognition) or `false` (it doesn't, or the user\ndisabled the hook via `enabled={false}`).\n\n`transcript` is the running concatenated text since the last `reset()`.\nConsumers usually fold it into their composer's value; the hook does not\nown the text input field itself.\n\nThe recognizer auto-stops after 4 seconds of silence — matches how AIKO\nchat consumers expect dictation to end. Manual `stop()` works too. Errors\nsurface via the optional `onError` callback (a string code, e.g. \"not-allowed\",\n\"no-speech\") and through a final `isListening=false`.\n\nAdapted from the in-flight private hook inside `<SmartSearch>`. When\n`<SmartSearch>` migrates to this shared hook (issue #31), they will call\nthe same code path.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GitHubIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"GitHub — the filled Octocat mark.","doc":"GitHub — the filled Octocat mark.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GmailIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Gmail — the multicolor envelope mark.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GoogleDriveIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Google Drive — the tri-color triangle mark.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GoogleCalendarIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Google Calendar — the on-brand calendar mark.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropboxIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Dropbox — the four-diamond flag mark in Dropbox blue.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"OneDriveIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"OneDrive — the Microsoft cloud mark in its four brand blues.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"GoogleIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Google — the generic four-color \"G\" sign-in mark (distinct from `GoogleDriveIcon`/`GoogleCalendarIcon`, which are specific Google Workspace apps).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MicrosoftIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Microsoft — the four-square window mark.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DiscordIcon","kind":"component","layer":"icon","file":"src/icons/BrandIcons.tsx","module":"BrandIcons","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Discord — the Clyde mark.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"aikoShell","kind":"const","layer":"util","file":"src/lib/aiko-shell.ts","module":"aiko-shell","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Canonical paper-card shell.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"aikoSurfaceBase","kind":"const","layer":"util","file":"src/lib/aiko-shell.ts","module":"aiko-shell","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Just the paper background + radius + motion — for `<AikoSurfaces>` variants (`<AikoNudge>`, `<AikoIntervene>`) that need level-specific tinted borders and heavier depth shadows.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"aikoShellTight","kind":"const","layer":"util","file":"src/lib/aiko-shell.ts","module":"aiko-shell","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Tighter sibling of `aikoShell` for label-style tooltips.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ATTRIBUTION_BADGE_TEXT","kind":"component","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The badge label.","doc":"The badge label. Owner ruling (2026-08-19): every user-facing string says\n Atlas, never Aiko — this pill already matched that ruling in the source app.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ATTRIBUTION_HOME_URL","kind":"component","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Where the badge links.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ATTRIBUTION_MARK_VIEWBOX","kind":"component","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The Atlas mark (source: `public/atlas-mark-mono.svg` in the unified app) inlined as path data so both badge forms draw the SAME geometry with no network fetch — an `<img src>` would leave the pill glyph-less in an exported/shared document,","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ATTRIBUTION_MARK_RING","kind":"component","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ATTRIBUTION_MARK_SPOKES","kind":"component","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"attributionBadgeHtml","kind":"function","layer":"util","file":"src/lib/attributionBadgeHtml.ts","module":"attributionBadgeHtml","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"attributionBadgeHtml — the inline-styled HTML-STRING twin of `<AttributionBadge>` (`../components/AttributionBadge`).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MAX_PASSWORD_LENGTH","kind":"component","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Upper bound on password length.","doc":"Upper bound on password length. The reference app caps it because the RSA\npassword-encryption step has a maximum plaintext size; mirrored here so a\nconsumer's \"too long\" rule matches the backend. Override at the call site if\nyour backend differs - these helpers accept the value implicitly via the\nexported constant.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"validEmail","kind":"const","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"True for a syntactically plausible email.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"passwordChecks","kind":"function","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PASSWORD_REQUIREMENTS","kind":"component","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PASSWORD_HINT","kind":"component","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"passwordProblem","kind":"function","layer":"util","file":"src/lib/authValidation.ts","module":"authValidation","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"First failing rule as a human-readable message, or `null` when valid.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BorderBeam","kind":"component","layer":"util","file":"src/lib/border-beam.tsx","module":"border-beam","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"BorderBeam — animated conic-gradient border.","doc":"BorderBeam — animated conic-gradient border. The beam runs around the\ninside of a parent's border using a CSS mask so it shows up as a\nsingle bright arc rotating clockwise.\n\nWhy vendored, not a dep:\n  The whole pattern is one mask + one keyframe. Adding `@magicui/*`\n  for it would pull in unrelated components and bump our bundle. The\n  wider visual ecosystem this style comes from (Aceternity, Magic UI)\n  is open-source MIT — we built our own variant tuned to our tokens.\n\nUse through Badge's `shimmer` prop. Don't reach for it directly\nunless you're sure — it's expressive and earns its place only on\n\"earned attention\" surfaces (premium / new / accent).\n\nReduce-motion: renders a static border, no rotation.","props":[{"name":"size","type":"number","required":false,"doc":"Beam width in px."},{"name":"duration","type":"number","required":false,"doc":"Animation duration in seconds."},{"name":"color","type":"string","required":false,"doc":"CSS color for the bright edge."},{"name":"radius","type":"string","required":false,"doc":"Border radius — should match the wrapped element's radius."},{"name":"innerClassName","type":"string","required":false,"doc":"Optional class on the inner content wrapper."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"BorderBeamProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"celebrate","kind":"function","layer":"util","file":"src/lib/celebrate.ts","module":"celebrate","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Fire confetti at the calibrated intensity.","doc":"Fire confetti at the calibrated intensity. Honors `prefers-reduced-motion`\nvia canvas-confetti's built-in `disableForReducedMotion` flag (no-op when\nthe OS pref is set, unless `ignoreReducedMotion: true`). SSR-safe.\n\n  import { celebrate } from \"@aisquare/ui\";\n  celebrate();                        // default burst (~1.5s)\n  celebrate({ intensity: \"sparkle\" }); // restrained\n  celebrate({ intensity: \"shower\" }); // big moment\n\nThe Toaster integration `aiko.celebrate(message)` fires `burst` and shows a\ntoast at the same time.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"cn","kind":"function","layer":"util","file":"src/lib/cn.ts","module":"cn","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/chat"],"category":null,"since":null,"demoId":null,"summary":"Merge Tailwind class names with conflict resolution.","doc":"Merge Tailwind class names with conflict resolution.\n\nThe library's primitives use this internally so consumer-supplied `className`\nalways wins over the default classes. Re-exported for consumers that want the\nsame merge behavior in their own code.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":"cn"},{"name":"hexToRgb","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Parse a hex color to RGB channels (0-255), or `null` on a malformed string.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"rgbToHex","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Pack RGB channels into a 6-digit lowercase `#rrggbb` hex.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"hexToHSV","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Convert a hex color to HSV (`h` 0-360, `s`/`v` 0-100, all rounded to integers).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"hsvToHex","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Convert HSV (`h` 0-360, `s`/`v` 0-100) to a 6-digit lowercase hex.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"normalizeHex","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Normalize a hex string to canonical 6-digit lowercase `#rrggbb`, or `null` if it is not a valid hex.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"readableTextColor","kind":"const","layer":"util","file":"src/lib/colorUtils.ts","module":"colorUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Pick the more readable foreground (`\"#000000\"` or `\"#ffffff\"`) to lay over a given background hex, using the WCAG relative-luminance threshold (0.179).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"getFileIcon","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Map a MIME type to a lucide icon element.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"getFileIconForName","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Derive an icon from a filename's extension (the donor's `FileUploadList` picked icons by extension, not MIME).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"formatFileSize","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Human-readable byte size.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"createUploadFile","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Build an `UploadFile` queue entry from a browser `File`, in the initial `uploading` state with a derived icon.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"URL_PATTERN","kind":"component","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The donor's URL pattern — `http(s)://` then at least `x.y`.","doc":"The donor's URL pattern — `http(s)://` then at least `x.y`. Kept exact.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"parseUrlLines","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Split a multi-line URL blob into trimmed, non-empty lines (the donor's `split(\"\\n\").filter(...)` shape).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"validateUrls","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Validate a multi-line URL blob.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"autoFilenameFromText","kind":"function","layer":"util","file":"src/lib/fileUtils.tsx","module":"fileUtils","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Auto-derive a filename from pasted text — first 30 chars, whitespace to underscore, non-alphanumerics stripped, `\"untitled\"` fallback.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"RAMP_STEPS","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Foundation token VALUES — the primitive design-token tier (WS-15 token set).","doc":"Foundation token VALUES — the primitive design-token tier (WS-15 token set).\n\nSingle TS source of truth consumed by two readers (the same split\n`src/lib/onyx-material.ts` uses):\n  - `foundationTokensPlugin` in `tailwind.preset.ts` injects these as CSS\n    custom properties via `addBase`, so every preset consumer gets the\n    primitives with zero imports.\n  - `src/foundations/*.stories.tsx` iterate them to render the Storybook\n    Foundations pages.\n\n`src/tokens/foundations.css` is the OPT-IN mirror for non-preset consumers\n(the `onyx-hex.css` pattern) — keep it in sync when editing values here.\n\nRamp anchors (brand contract):\n  - navy-900  = `213 80% 13%` — brand navy #071E3C, the exact light-mode\n    `--primary` / `--foreground` triplet.\n  - accent-500 = `213 100% 56%` — brand blue #1F84FF, the exact `--accent`\n    triplet (both modes).\n  - slate/red/green/amber/sky are the Tailwind v3 palettes verbatim (as HSL\n    triplets). Their 500 steps sit within 1 RGB point per channel of the\n    existing `--destructive`/`--success`/`--warning`/`--info` light values\n    (the semantics keep rounded triplets; the ramps carry Tailwind's\n    decimals) — visually identical, so adopting a ramp step is seamless,\n    but the pairs are NOT literally equal: never substitute\n    `hsl(var(--<ramp>-500))` for a semantic token.\n    `foundation-tokens.test.ts` pins both invariants (mirror parity +\n\n[…truncated — read the source file for the rest]","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"COLOR_RAMPS","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"HSL triplets (no commas), `--<ramp>-<step>`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SPACE","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The 4px grid, keyed to mirror Tailwind (`p-4` ↔ `--space-4` = 16px).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"RADIUS","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Radius primitives — raw scale.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MOTION_DURATIONS","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Durations name the steps the preset's `duration-*` utilities use.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MOTION_EASINGS","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Easings name the preset's `ease-*` curves; `out-soft` is the card-in / Brain-contract curve, previously anonymous.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"GRID","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"12-column layout contract.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ELEVATION_LIGHT","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Elevation ladder — named neutral rungs, navy-tinted rgba(10,37,64,…).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ELEVATION_DARK","kind":"component","layer":"util","file":"src/lib/foundation-tokens.ts","module":"foundation-tokens","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Dark elevation — pure-black rungs at the same weights as `ELEVATION_LIGHT` plus --shadow-pop.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"springs","kind":"const","layer":"util","file":"src/lib/motion.ts","module":"motion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AISquare motion presets — spring physics, easing curves, durations, and ready- made transition objects that pair with `motion/react` (or framer-motion 11+).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"easings","kind":"const","layer":"util","file":"src/lib/motion.ts","module":"motion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"durations","kind":"const","layer":"util","file":"src/lib/motion.ts","module":"motion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"transitions","kind":"const","layer":"util","file":"src/lib/motion.ts","module":"motion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"aiActivity","kind":"const","layer":"util","file":"src/lib/motion.ts","module":"motion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"glass","kind":"const","layer":"util","file":"src/lib/onyx-material.ts","module":"onyx-material","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"glass layer — frost + sheen + `--glassBd` rim (the floating panel role).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"GLASS_BLUR_PX","kind":"component","layer":"util","file":"src/lib/onyx-material.ts","module":"onyx-material","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Glass material geometry — theme-agnostic, lifted verbatim from the design file's live glass node.","doc":"Glass material geometry — theme-agnostic, lifted verbatim from the design\nfile's live glass node. Imported by the preset plugin so the recipe lives in\nexactly one place; only the 7 glass token VALUES flip under `.dark`.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"GLASS_BACKDROP_FILTER","kind":"component","layer":"util","file":"src/lib/onyx-material.ts","module":"onyx-material","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`backdrop-filter` value at the canonical 22px blur (the `GlassSurface` default).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"GLASS_SHEEN_GRADIENT","kind":"component","layer":"util","file":"src/lib/onyx-material.ts","module":"onyx-material","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"The blue-lumen sheen, a top-right radial (origin + falloff verbatim from the design node).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"PortalContainerProvider","kind":"component","layer":"util","file":"src/lib/portal-container.tsx","module":"portal-container","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"container","type":"PortalContainer","required":true,"doc":"Where portalled surfaces should mount."},{"name":"children","type":"React.ReactNode","required":true,"doc":null}],"propsType":"PortalContainerProviderProps","variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":"PortalContainerProvider"},{"name":"usePortalContainer","kind":"function","layer":"util","file":"src/lib/portal-container.tsx","module":"portal-container","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Resolves the container for one portal: an explicit `override` wins, otherwise the nearest provider, otherwise `undefined` (Radix's `document.body`).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":"usePortalContainer"},{"name":"tableToTsv","kind":"function","layer":"util","file":"src/lib/tableToTsv.ts","module":"tableToTsv","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"tableToTsv — flatten a rendered HTML table into tab-separated values.","doc":"tableToTsv — flatten a rendered HTML table into tab-separated values.\n\nReads the DOM rows/cells (not the markdown source), so it works for any\nGFM table the Markdown renderer produced and pastes cleanly into\nspreadsheets. Ported from the unified chat one-off (PQA#2641) as part of\nthe table-treatment consolidation; exported for consumers that build their\nown copy affordances around tables.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"EDGE_WIDTH","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Border width from the theme (default: the 1px `border` it replaces).","doc":"Border width from the theme (default: the 1px `border` it replaces).","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EDGE_RING","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Inset ring in the edge colour; invisible (0px, transparent) unless the theme sets `--ui-ring-w`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EDGE_RING_FIELD","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Edge ring plus the field elevation (`--ui-field-shadow`); with no theme the field has no shadow.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"EDGE_RING_FIELD_XS","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Same, but with no theme the field keeps the `shadow-xs` it had (the Select trigger).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"edgeColour","kind":"const","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Edge colour variable set from the colour role the border utility already names.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FIELD_FACE","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Field face (default variant): `--ui-field-face` (v2: the white surface), and a disabled fill `--ui-field-disabled-bg` (v2: the page ground).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"FIELD_FOCUS_EDGE","kind":"component","layer":"util","file":"src/lib/theme-seams.ts","module":"theme-seams","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Focused edge colour: `--ui-field-focus-edge` (v2: the accent line); with no theme the edge keeps its `--input` colour.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TYPE_ROLES","kind":"component","layer":"util","file":"src/lib/type-roles.ts","module":"type-roles","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Type roles: the typography a theme can set, the way `--ui-radius-*` and `--ui-control-h-*` set shape.","doc":"Type roles: the typography a theme can set, the way `--ui-radius-*` and `--ui-control-h-*` set shape.\n\nSeven roles, each read through `--ui-text-<role>-{size,line,weight,tracking}`, and four text colours read through\n`--ui-text-{primary,secondary,tertiary,disabled}`. The `ui-text-<role>` and `ui-text-<tone>` classes\n(tailwind.tokens.preset.ts, `typeRolesPlugin`) and the `Text` / `Heading` primitives use them.\n\nDEFAULTS are the library's own scale today (tailwind.tokens.preset.ts `fontSize`, the Card title), so with no theme\na role draws exactly what the matching library step draws: numeric and title-page = `heading`, title-section =\n`title`, title-card = Card's md title, body = `body`, body-sm = `caption`, overline = `eyebrow`. Nothing defines the\nvariables unless a theme is loaded (docs/THEMES.md), so existing consumers compute what they computed before.","props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TEXT_TONES","kind":"component","layer":"util","file":"src/lib/type-roles.ts","module":"type-roles","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TYPE_ROLE_DEFAULTS","kind":"component","layer":"util","file":"src/lib/type-roles.ts","module":"type-roles","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TEXT_TONE_DEFAULTS","kind":"component","layer":"util","file":"src/lib/type-roles.ts","module":"type-roles","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"typeRoleDeclarations","kind":"function","layer":"util","file":"src/lib/type-roles.ts","module":"type-roles","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"The CSS a role class carries: every property reads its role variable, falling back to the library default.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Accordion","kind":"component","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Accordion — Radix-based collapsible-section primitive matching pretty's surface tokens.","doc":"Accordion — Radix-based collapsible-section primitive matching pretty's\nsurface tokens.\n\nWraps `@radix-ui/react-accordion` so consumers get pretty's spacing,\nradius, border colour, and `data-state`-driven animation defaults\nwithout re-implementing the open/close keyframes per app. Single\n(`type=\"single\"`) and multiple (`type=\"multiple\"`) selection both work\nbecause Radix's union type passes through.\n\n  <Accordion type=\"single\" collapsible>\n    <AccordionItem value=\"features\">\n      <AccordionTrigger>What's in the box</AccordionTrigger>\n      <AccordionContent>\n        <p>Five experience types. One studio. Zero glue code.</p>\n      </AccordionContent>\n    </AccordionItem>\n    <AccordionItem value=\"pricing\">\n      <AccordionTrigger>Pricing</AccordionTrigger>\n      <AccordionContent>Free while we're cooking.</AccordionContent>\n    </AccordionItem>\n  </Accordion>\n\nTwo visual variants, picked at the `<AccordionItem>` level so\ndifferent items can mix-and-match within one Accordion if a surface\nneeds it (e.g. an FAQ where the first item is a \"card\" callout):\n\n[…truncated — read the source file for the rest]","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AccordionItem","kind":"component","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"value","type":"string","required":true,"doc":null}],"propsType":"AccordionItemProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AccordionTrigger","kind":"component","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"level","type":"\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"","required":false,"doc":"Override Radix's default `<h3>` heading level."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Override the icon shown next to the label."},{"name":"asHeader","type":"boolean","required":false,"doc":"When false, skip the `<AccordionPrimitive.Header>` wrapper (the `<h3>` element)."}],"propsType":"AccordionTriggerProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AccordionContent","kind":"component","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"AccordionContentProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"accordionItemVariants","kind":"const","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"accordionTriggerVariants","kind":"const","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"accordionContentVariants","kind":"const","layer":"primitive","file":"src/primitives/Accordion.tsx","module":"Accordion","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"actionIconTileClasses","kind":"const","layer":"primitive","file":"src/primitives/ActionIconTile.tsx","module":"ActionIconTile","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"ActionIconTile — the chat-chrome flat action tile (B19 / PQA#2620 round 2): a rounded-SQUARE, hairline-bordered, icon-only control for action rows (the share receipt's copy/open/platform/agent row, the table copy button, block-card actions).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"ActionIconTile","kind":"component","layer":"primitive","file":"src/primitives/ActionIconTile.tsx","module":"ActionIconTile","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.16.0","demoId":"action-icon-tile","summary":"ActionIconTile — the chat-chrome flat action tile (B19 / PQA#2620 round 2): a rounded-SQUARE, hairline-bordered, icon-only control for action rows (the share receipt's copy/open/platform/agent row, the table copy button, block-card actions).","doc":"ActionIconTile — the chat-chrome flat action tile (B19 / PQA#2620 round 2):\na rounded-SQUARE, hairline-bordered, icon-only control for action rows\n(the share receipt's copy/open/platform/agent row, the table copy button,\nblock-card actions).\n\nA SIBLING of `IconButton` by design, not a variant of it (design pick on\nthe ui-first umbrella): the platform round IconButton (borderless ghost,\nfixed 40, toolbars/close affordances) and this tile (bordered square tile,\n36, chat-surface action rows) change for different reasons, so they are\ntwo primitives. IconButton's round/fixed-40 doctrine is untouched.\n\nShape (canonical for the tile family):\n- 36×36 (`h-9 w-9`), `rounded-lg`, hairline border on the card surface,\n  muted glyph that inks up on hover with the border strengthening.\n- `no-underline` is load-bearing on the anchor form: consumers with\n  Tailwind preflight OFF get the UA anchor underline leaking into content\n  otherwise (the uni#541 regression class).\n- Required `aria-label` (TS-enforced, the IconButton precedent). Pair with\n  the consumer's tooltip (unified's UiTooltip promotes the label to the\n  accessible name on icon-only controls, so label and tooltip stay one\n  string).\n- `asChild` composes onto a real anchor — share targets are links, and the\n  anchor semantics (middle-click, copy-address) must survive.\n\n[…truncated — read the source file for the rest]","props":[{"name":"\"aria-label\"","type":"string","required":true,"doc":"Screen-reader label."},{"name":"asChild","type":"boolean","required":false,"doc":"Render children via Radix Slot (e.g."}],"propsType":"ActionIconTileProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AnimatedSeparator","kind":"component","layer":"primitive","file":"src/primitives/AnimatedSeparator.tsx","module":"AnimatedSeparator","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AnimatedSeparator — a horizontal divider whose reveal grows CENTER-OUT and whose exit collapses center-inward (PQA#2642; ported from the unified approve-card one-off per the ui-first directive, so unified and v3 share one motion source).","doc":"AnimatedSeparator — a horizontal divider whose reveal grows CENTER-OUT and\nwhose exit collapses center-inward (PQA#2642; ported from the unified\napprove-card one-off per the ui-first directive, so unified and v3 share\none motion source).\n\nTransition-only on purpose: it mounts at `scale-x-0` and flips to\n`scale-x-100` on the next animation frame, so the grow is a plain CSS\ntransition and consumers ship NO keyframes, preset changes, or animation\nwiring. `collapsed` drives the reverse beat (center-inward) with the same\ntransition. Motion-reduce drops the transition entirely: the line simply\nis there, or is not.\n\n  <AnimatedSeparator />                    // reveals center-out on mount\n  <AnimatedSeparator collapsed={done} />   // collapses center-in when done\n\nRole wiring mirrors `Separator` (decorative by default, `role=\"none\"`);\nhorizontal-only, because the center-out grow is a horizontal idea — a\nvertical variant earns its way in when a surface actually wants one.","props":[{"name":"collapsed","type":"boolean","required":false,"doc":"True collapses the line center-inward (the exit beat)."},{"name":"decorative","type":"boolean","required":false,"doc":"When true (default), renders `role=\"none\"` so screen readers ignore it."}],"propsType":"AnimatedSeparatorProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_BRAIN_WIDTH","kind":"component","layer":"primitive","file":"src/primitives/AppShell.tsx","module":"AppShell","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default Brain width when a session first \"earns\" the region (#103).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_BRAIN_MIN_WIDTH","kind":"component","layer":"primitive","file":"src/primitives/AppShell.tsx","module":"AppShell","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default clamp floor for the splitter / drag.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DEFAULT_BRAIN_MAX_WIDTH","kind":"component","layer":"primitive","file":"src/primitives/AppShell.tsx","module":"AppShell","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Default clamp ceiling for the splitter / drag.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AppShell","kind":"component","layer":"primitive","file":"src/primitives/AppShell.tsx","module":"AppShell","primary":true,"importPaths":["@aisquare/ui"],"category":"Layout","since":"v1.6.0","demoId":"app-shell","summary":"AppShell - the experience-OS frame (rail / center / Brain region).","doc":"AppShell - the experience-OS frame (rail / center / Brain region).\n\nThe single structural host for the Creator-Studio surfaces. Delta 004 model:\na fixed, full-viewport box with an ambient FIELD layer behind everything,\nthen TWO PLANES laid out as a FLEX ROW:\n\n  ┌──────────────────────────────────────────────────────┐\n  │ field (absolute, pointer-events:none, z-0)            │\n  │ ┌──────╷──────────────────────────┐  ╔════════════╗   │\n  │ │ rail │ center (flex-1 min-w-0)   │  ║ Brain      ║   │\n  │ │ 0 0  │ {children - routed view}  │  ║ GlassSurf. ║   │  ← flush base + floating glass\n  │ │ rail │                           │ ◂║ splitter   ║   │\n  │ └──────╵──────────────────────────┘  ╚════════════╝   │\n  └──────────────────────────────────────────────────────┘\n\nPLANE 1 — rail + center = ONE FLUSH integrated base. Full-bleed,\ntransparent, FLAT: no notch, no per-pane float shadow, no rounded panel\nchrome. The rail and the center read as one continuous mood-lit canvas,\ndivided only by a 1px rail line (the hairline token). This replaces the\nsuperseded steel \"three floating panels\" model (#127 v1).\n\n[…truncated — read the source file for the rest]","props":[{"name":"rail","type":"React.ReactNode","required":false,"doc":"Left slot - the fixed-width icon column (NavRail lives here; AppShell only reserves the slot)."},{"name":"topbar","type":"React.ReactNode","required":false,"doc":"Optional top slot."},{"name":"brain","type":"React.ReactNode","required":false,"doc":"Right region - the controlled-width Brain pane (BrainPanel router / SessionSidebar live here)."},{"name":"brainWidth","type":"number","required":false,"doc":"Controlled Brain width in px."},{"name":"brainMinWidth","type":"number","required":false,"doc":"Drag / keyboard clamp floor."},{"name":"brainMaxWidth","type":"number","required":false,"doc":"Drag / keyboard clamp ceiling."},{"name":"onBrainResize","type":"(width: number) => void","required":false,"doc":"Fired by the splitter (pointer drag + Arrow / Home / End keys) with the next clamped width."},{"name":"brainResizeStep","type":"number","required":false,"doc":"Px the Arrow keys nudge the Brain width per press."},{"name":"field","type":"React.ReactNode","required":false,"doc":"Optional ambient FIELD layer (mood-lighting)."},{"name":"railWidth","type":"number | string","required":false,"doc":"Rail slot width."},{"name":"splitterLabel","type":"string","required":false,"doc":"Accessible label for the resize splitter."},{"name":"children","type":"React.ReactNode","required":false,"doc":"The center pane content (the routed view / chat)."}],"propsType":"AppShellProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AttributionChip","kind":"component","layer":"primitive","file":"src/primitives/AttributionChip.tsx","module":"AttributionChip","primary":true,"importPaths":["@aisquare/ui"],"category":"Collaboration","since":"v1.5.0","demoId":"attribution-chip","summary":"AttributionChip — small floating chip that attributes an inline edit / comment / suggestion to a user.","doc":"AttributionChip — small floating chip that attributes an inline edit /\ncomment / suggestion to a user. Composes the Avatar primitive on the left,\na name + timestamp pair in the middle, and a slot for inline actions\n(accept/reject mini-buttons, \"view comment\", etc.) on the right.\n\nPositioning is consumer-owned. The chip is `position: absolute` by default\nso the consumer can wrap it in a relatively-positioned anchor and offset it\nfrom the edited region with `top` / `left`. Pass `placement=\"inline\"` to\ndrop the absolute positioning and use it as a regular flow element (e.g.\ninside a sidebar list of recent edits).\n\nTones: `default` (neutral, human-authored edits) and `ai` (AI-suggestion\nsource, tinted via the existing `--accent` token). The diff-tinted `ins` /\n`del` tones from pretty are intentionally not ported here — they need a\nseparate diff-color token family that the redline-tokens work owns.\n\nMount animation: a short fade + slide-up via `motion/react` using the\n`transitions.surface` preset (240ms, smooth-out). Honors\n`prefers-reduced-motion` via `useReducedMotion()` — reduced-motion users get\na static, non-animated render. Pass `motion={false}` to opt out everywhere.","props":[{"name":"name","type":"string","required":true,"doc":"User's display name."},{"name":"avatarUrl","type":"string | null","required":false,"doc":"Avatar image."},{"name":"timestamp","type":"string","required":false,"doc":"ISO timestamp shown next to the name."},{"name":"formattedTimestamp","type":"string","required":false,"doc":"Already-formatted timestamp; bypasses the ISO formatter."},{"name":"actions","type":"React.ReactNode","required":false,"doc":"Right-side slot for accept/reject/view actions."},{"name":"compact","type":"boolean","required":false,"doc":"Compact mode — drops the timestamp, keeps avatar + name + actions."},{"name":"motion","type":"boolean","required":false,"doc":"Disable the mount animation."},{"name":"avatarShape","type":"AvatarProps[\"shape\"]","required":false,"doc":"Avatar shape."}],"propsType":"AttributionChipProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"attributionChipVariants","kind":"const","layer":"primitive","file":"src/primitives/AttributionChip.tsx","module":"AttributionChip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"authBadgeVariants","kind":"variants","layer":"primitive","file":"src/primitives/AuthBadge.tsx","module":"AuthBadge","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthBadge - the rounded icon medallion that crowns an auth card's heading.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthBadge","kind":"component","layer":"primitive","file":"src/primitives/AuthBadge.tsx","module":"AuthBadge","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthBadge - the rounded icon medallion that crowns an auth card's heading.","doc":"AuthBadge - the rounded icon medallion that crowns an auth card's heading.\n\nUnifies the two badges the unified screens hand-rolled: ForgotPassword's\n`MailBadge` (a blue-tinted tile, `bg-[#eaf1fe] text-forest`) and\nResetPassword's `LockBadge` (which also had a `sage` success variant,\n`bg-[#e7f0e4] text-sage`). Re-expressed in brand tokens:\n  - `tone=\"accent\"` (default) - the blue \"in progress / informational\" tile\n    (the old `forest` mail badge), using `--accent`.\n  - `tone=\"success\"` - the green \"done / verified\" tile (the old `sage` lock\n    badge), using `--success`.\n\nPass any node as `icon` (typically a barrel icon from `../icons` or an\ninline SVG sized ~22px). Decorative by default (`aria-hidden`) since the\nheading carries the meaning; pass `aria-hidden={false}` + a label if you\nneed it announced.\n\n  <AuthBadge tone=\"accent\" icon={<Mail className=\"h-[22px] w-[22px]\" />} />\n  <AuthBadge tone=\"success\" icon={<Lock className=\"h-[22px] w-[22px]\" />} />","props":[{"name":"icon","type":"React.ReactNode","required":true,"doc":"The glyph to render inside the medallion."}],"propsType":"AuthBadgeProps","variants":{"variants":{"tone":["accent","success"]},"defaults":{"tone":"accent"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthErrorAlert","kind":"component","layer":"primitive","file":"src/primitives/AuthErrorAlert.tsx","module":"AuthErrorAlert","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthErrorAlert - the inline error box every auth screen re-hand-rolled.","doc":"AuthErrorAlert - the inline error box every auth screen re-hand-rolled.\n\nThe unified auth screens repeated the exact same literal four times:\n`bg-[rgba(192,87,70,0.10)] border border-[rgba(192,87,70,0.4)]\ntext-[#a8482e]` with `role=\"alert\"`. This is that box, once, with the raw\nterracotta hex replaced by the brand `--destructive` token (so it retints\nwith the theme and reads on-brand). It always carries `role=\"alert\"` so a\nscreen reader announces the failure the moment it mounts.\n\nDecoding contract (documented here so consumers keep it): the unified\nResetPassword normalizes RTK Query errors through `toError`, so the backend\npayload lives on `error.data.detail` (not `error.response.data`). Read that\nin the consumer's catch, then pass the string here - this atom only renders.\n\nMotion: enters/exits with a ~0.15s opacity fade (matching AuthModal's error\npattern). Honors `prefers-reduced-motion` via `useReducedMotion()` - when the\nuser prefers reduced motion it mounts at full opacity with no tween. Wrap in\n`<AnimatePresence>` at the call site for the exit fade.\n\n  <AnimatePresence>\n    {error && <AuthErrorAlert key=\"err\">{error}</AuthErrorAlert>}\n  </AnimatePresence>","props":[{"name":"message","type":"React.ReactNode","required":false,"doc":"The error copy."},{"name":"children","type":"React.ReactNode","required":false,"doc":null},{"name":"animate","type":"boolean","required":false,"doc":"Animate the opacity fade on mount/exit."}],"propsType":"AuthErrorAlertProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AuthFieldRow","kind":"component","layer":"primitive","file":"src/primitives/AuthFieldRow.tsx","module":"AuthFieldRow","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AuthFieldRow - a labeled field with an optional leading icon and the brand focus ring, for the auth card body.","doc":"AuthFieldRow - a labeled field with an optional leading icon and the brand\nfocus ring, for the auth card body.\n\nThe unified screens repeated the same shape for every field: an uppercase\nmicro-label, a relatively-positioned wrapper with a leading icon absolutely\nplaced, and an `<input>` re-declaring the brand focus ring\n(`focus:shadow-[0_0_0_3px_rgba(10,37,64,0.15)]`) by hand. This composes the\nlib's `Label` + `Input` so the field inherits the canonical focus-visible\nring (`--ring`, the brand navy) and token colors instead of re-deriving them.\n\nNamed `AuthFieldRow` (not `FieldRow`) on purpose: a private `FormFieldRow`\nalready lives inside `blocks/Form.tsx`, so the `Auth*` prefix keeps the auth\nsurface distinct and collision-free.\n\nFor password fields, reach for `PasswordInput` directly (it ships the reveal\ntoggle + success check). This row is for plain text / email inputs; if you\nneed an icon + a password field, pass `<PasswordInput>` via `children`.\n\n  <AuthFieldRow label=\"Email\" htmlFor=\"email\" icon={<Mail className=\"h-[15px] w-[15px]\" />}>\n    <Input id=\"email\" type=\"email\" autoComplete=\"username\" />\n  </AuthFieldRow>\n\n  // Convenience: omit children to render the built-in <Input> with inputProps.\n  <AuthFieldRow label=\"Email\" htmlFor=\"email\" error={emailError}\n    inputProps={{ id: \"email\", type: \"email\", value, onChange }} />","props":[{"name":"label","type":"React.ReactNode","required":true,"doc":"The field caption."},{"name":"htmlFor","type":"string","required":false,"doc":"Links the label to the control."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"Optional leading glyph, placed at the input's left edge."},{"name":"error","type":"React.ReactNode","required":false,"doc":"An error message; renders an `AuthErrorAlert` beneath the field when set."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Render a custom control (e.g."},{"name":"inputProps","type":"InputProps","required":false,"doc":"Props forwarded to the built-in `Input` when `children` is omitted."},{"name":"className","type":"string","required":false,"doc":"Extra classes on the row wrapper."}],"propsType":"AuthFieldRowProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Avatar","kind":"component","layer":"primitive","file":"src/primitives/Avatar.tsx","module":"Avatar","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Avatar — image with smart fallback + optional status dot.","doc":"Avatar — image with smart fallback + optional status dot.\n\nRender priority: src (loaded) → fallback → initials(name) → \"?\"\n\nThree quality-of-life upgrades over the v1 API:\n\n 1. `fallback` — pass any ReactNode to override initials. Right for icon\n    buttons in toolbars, status pills, AI-agent avatars where the persona\n    is a glyph, not a name.\n 2. `colorFromName` — when there's no image and no fallback, paint a\n    deterministic gradient backdrop derived from the name hash. Linear /\n    Notion default. Free polish; opt-in (false by default until consumer\n    apps confirm they want it everywhere).\n 3. Image-load skeleton — track image-loaded state. While `src` is\n    fetching, show a subtle pulse instead of flashing initials → image.\n 4. `shape` — `circle` (default, profile-picture read), `rounded`\n    (rounded-2xl, monogram-tile / brand-placeholder read), `square`\n    (hard corners). Together with `colorFromName`, retires the\n    `InitialAvatar` companion components both consumer apps shipped\n    locally. See issue #81.\n\nSized via variant. Status dot positions bottom-right and reads from\n`--success` / `--warning` / `--destructive` so dark-mode + per-studio\nretinting work.","props":[{"name":"src","type":"string","required":false,"doc":"Image source."},{"name":"name","type":"string","required":false,"doc":"Display name."},{"name":"fallback","type":"React.ReactNode","required":false,"doc":"Custom fallback content (icon, number, glyph)."},{"name":"colorFromName","type":"boolean","required":false,"doc":"Paint a deterministic gradient backdrop derived from `name`."},{"name":"status","type":"\"online\" | \"offline\" | \"busy\" | \"away\" | null","required":false,"doc":"Optional status dot in bottom-right."}],"propsType":"AvatarProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AvatarGroup","kind":"component","layer":"primitive","file":"src/primitives/AvatarGroup.tsx","module":"AvatarGroup","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"AvatarGroup — stacked overlapping avatars with a `+N` overflow pill, optional per-item tooltip (showing the name), and three opt-in hover effects.","doc":"AvatarGroup — stacked overlapping avatars with a `+N` overflow pill,\noptional per-item tooltip (showing the name), and three opt-in hover\neffects.\n\nAnatomy:\n\n  <AvatarGroup\n    items={[{ name: \"Alice\", src }, ...]}\n    maxVisible={4}\n    size=\"sm\"\n    hoverEffect=\"fan\"\n    onItemClick={(item, i) => ...}\n    onOverflowClick={(hidden) => openMembersDialog(hidden)}\n  />\n\n`hoverEffect` modes:\n\n  none — default. A quiet stack. Right for toolbars and table cells.\n  lift — single avatar lifts on hover (z-index + scale 1.05).\n  fan  — the whole group spreads out on hover via motion@12 layout\n         animation. Right for \"team\" pickers and hero showcases.\n\nHonors `prefers-reduced-motion` — the `fan` animation falls back to a\nsnappy CSS-gap transition without the layout interpolation.\n\nSelf-wraps a `<TooltipProvider>` only if no parent provider exists,\nmaking the component drop-in safe even in apps that haven't set one\nup at the root.","props":[{"name":"items","type":"AvatarGroupItem[]","required":true,"doc":null},{"name":"maxVisible","type":"number","required":false,"doc":"Max avatars to render before overflowing into a `+N` pill."},{"name":"loading","type":"boolean","required":false,"doc":"The roster is still loading — renders stacked circle silhouettes at the real diameter, ring and overlap, so the row reserves its exact width."},{"name":"loadingCount","type":"number","required":false,"doc":"Silhouette count while `loading`."},{"name":"empty","type":"React.ReactNode","required":false,"doc":"Rendered when `items` is empty — e.g."},{"name":"size","type":"AvatarProps[\"size\"]","required":false,"doc":"Avatar size — passed through to each Avatar."},{"name":"shape","type":"AvatarProps[\"shape\"]","required":false,"doc":"Avatar shape — forwarded to each inner Avatar, the ring wrapper, and the `+N` overflow pill so consumer apps that have standardized on a non-circular avatar read can render groups consistently."},{"name":"spacing","type":"\"tight\" | \"normal\" | \"loose\"","required":false,"doc":"Overlap density."},{"name":"hoverEffect","type":"\"none\" | \"lift\" | \"fan\"","required":false,"doc":"Hover behavior on the whole group."},{"name":"showTooltip","type":"boolean","required":false,"doc":"Render an inline tooltip over each avatar (uses Tooltip + name)."},{"name":"onItemClick","type":"(item: AvatarGroupItem, index: number) => void","required":false,"doc":"Click handler per avatar (not invoked for the +N pill)."},{"name":"onOverflowClick","type":"(hidden: AvatarGroupItem[]) => void","required":false,"doc":"Click handler for the +N overflow pill."}],"propsType":"AvatarGroupProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"badgeVariants","kind":"variants","layer":"primitive","file":"src/primitives/Badge.tsx","module":"Badge","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Badge — small status pill.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"badgeToneVariants","kind":"variants","layer":"primitive","file":"src/primitives/Badge.tsx","module":"Badge","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BADGE_DOT_CLASS","kind":"component","layer":"primitive","file":"src/primitives/Badge.tsx","module":"Badge","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Status dot: `currentColor`, sized by `--ui-dot-size` (v2 Chip: 6px).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Badge","kind":"component","layer":"primitive","file":"src/primitives/Badge.tsx","module":"Badge","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Badge — small status pill.","doc":"Badge — small status pill. Covers the semantic states + the product\ntaxonomy pills that consumer apps actually need (public/private/premium).\n\nEvery semantic variant routes through CSS-variable tokens (`--success`,\n`--warning`, `--info`, `--premium`) so per-studio retinting + dark mode\njust work. If you need a literal color (e.g., a brand-partner pill),\nreach for `outline` and pass a className override — don't add a one-off\nvariant here.\n\nAppearance axis (additive on top of variant):\n  - `\"solid\"` (default) — current behavior. The variant drives bg + border + text.\n  - `\"soft\"` — pale tinted chip. Drops bg to /15 and border to /30 alpha,\n    matching the existing `secondary` variant treatment. Use in dense rows.\n  - `\"steel\"` — navy gradient container via `--steel-*` tokens. Renders\n    the BrandTile / AikoMark steel chrome on a badge shape. Applied via\n    inline style (gradient + shadow can't be expressed as Tailwind utilities\n    without arbitrary CSS var references). Use sparingly — for premium /\n    brand-tier surfaces only.\n\nUse sparingly — a wall of badges loses meaning. One per surface, max two.","props":[{"name":"shimmer","type":"boolean","required":false,"doc":"Wrap the badge in an animated `<BorderBeam>`."},{"name":"tone","type":"BadgeTone","required":false,"doc":"Theme-driven colour model (see `badgeToneVariants`)."},{"name":"dot","type":"boolean","required":false,"doc":"A status dot in the current colour before the label (v2 Chip)."},{"name":"outline","type":"boolean","required":false,"doc":"No fill, the edge as an inset ring in the current colour (v2 outline pills)."},{"name":"shimmerColor","type":"string","required":false,"doc":"BorderBeam color override (defaults to `hsl(var(--accent))`)."},{"name":"shimmerDuration","type":"number","required":false,"doc":"BorderBeam loop duration in seconds (default 4)."}],"propsType":"BadgeProps","variants":{"variants":{"variant":["default","secondary","outline","success","warning","info","destructive","accent","live","new","beta","public","private","premium","published","recommendation"],"appearance":["solid","soft","steel"],"size":["sm","default","lg"]},"defaults":{"variant":"default","size":"default","appearance":"solid"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BlurHighlight","kind":"component","layer":"primitive","file":"src/primitives/BlurHighlight.tsx","module":"BlurHighlight","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"BlurHighlight — animated paragraph with a blur-in reveal and automatic text highlighting.","doc":"BlurHighlight — animated paragraph with a blur-in reveal and automatic\ntext highlighting.\n\nDisplays text that smoothly transitions from blurred to sharp as it\nenters the viewport (or once `viewportOptions.once` fires, permanently),\nwhile specific words or phrases named in `highlightedBits` sweep in an\nanimated colored background behind them — a highlighter-marker effect\ndriven by `backgroundSize`, not a fill/color transition.\n\nReduced motion renders the fully-settled state immediately: full opacity,\nno blur, and every highlighted span pre-swept to its final background\nsize. Nothing animates in response to scroll position or `trigger()`, but\nthe imperative `trigger`/`reset` handle still resolves without erroring.","props":[{"name":"children","type":"React.ReactNode","required":true,"doc":"Text content to display"},{"name":"highlightedBits","type":"(string | HighlightBit)[]","required":false,"doc":"Array of text strings or objects to highlight"},{"name":"highlightColor","type":"string","required":false,"doc":"Color for highlighted text."},{"name":"highlightClassName","type":"string","required":false,"doc":"Additional class name for highlighted text"},{"name":"blurAmount","type":"number","required":false,"doc":"Initial blur amount in pixels"},{"name":"inactiveOpacity","type":"number","required":false,"doc":"Opacity when not in view"},{"name":"blurDelay","type":"number","required":false,"doc":"Blur animation delay in seconds"},{"name":"blurDuration","type":"number","required":false,"doc":"Blur animation duration in seconds"},{"name":"highlightDelay","type":"number","required":false,"doc":"Highlight animation delay in seconds"},{"name":"highlightDuration","type":"number","required":false,"doc":"Highlight animation duration in seconds"},{"name":"highlightDirection","type":"\"left\" | \"right\" | \"top\" | \"bottom\"","required":false,"doc":"Direction of highlight animation"},{"name":"viewportOptions","type":"{ once?: boolean; amount?: number; }","required":false,"doc":"Viewport intersection options"},{"name":"className","type":"string","required":false,"doc":"Additional class name"}],"propsType":"BlurHighlightProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"buttonVariants","kind":"variants","layer":"primitive","file":"src/primitives/Button.tsx","module":"Button","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Button — the brand button.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":"buttonVariants"},{"name":"Button","kind":"component","layer":"primitive","file":"src/primitives/Button.tsx","module":"Button","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.1.0","demoId":"button","summary":"Button — the brand button.","doc":"Button — the brand button. A single flat element: a full pill\n(`rounded-full`) — this is the shape the product actually ships (verified\nagainst the production app's default button chrome, `--r-pill: 999px`) —\nwith flat token colors and a simple hover/focus state. No gradient, no\nbox-shadow press depth, no translate-on-active: those read as dated\n\"keycap\" theatrics next to a plain, confident fill. Every value reads from\na token.\n\nVariants:\n- `default` — solid `--primary` fill, the main CTA.\n- `gradient` — the same fill with a subtle top-lit sheen; opt in only when\n  a screen specifically wants that texture (hero CTAs), not the default.\n- `secondary` — surface face with a real border.\n- `destructive` — solid `--destructive` fill.\n- `outline` — bordered, transparent fill.\n- `ghost` — quiet, no border; soft hover fill only.\n- `link` — inline text link (no pill, no border, no press).\n\nComposition:\n- `asChild` renders children through Radix Slot (e.g. wrap an `<a>` / router Link).\n- `isLoading` renders a Spinner before children, forces `disabled`, sets `aria-busy`.\n- `loadingText` swaps in copy while loading; falls back to `children`.\n- Defaults `type=\"button\"` (safer than a bare button's native `submit`); pass\n  `type=\"submit\"` explicitly for a form-submit button. Stock `ui/button` keeps\n  the native default, so set an explicit `type` on the brand Button in forms.","props":[{"name":"asChild","type":"boolean","required":false,"doc":"Render children via Radix Slot (no `<button>` wrapper)."},{"name":"motion","type":"boolean","required":false,"doc":""},{"name":"isLoading","type":"boolean","required":false,"doc":"Render a Spinner before children, force `disabled`, set `aria-busy`."},{"name":"loadingText","type":"React.ReactNode","required":false,"doc":"Optional copy to render while `isLoading`."}],"propsType":"ButtonProps","variants":{"variants":{"variant":["default","gradient","secondary","destructive","outline","ghost","link"],"size":["xs","sm","default","lg","icon","icon-xs","icon-sm","icon-lg"]},"defaults":{"variant":"default","size":"default"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":"Button"},{"name":"cardVariants","kind":"variants","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Card — slot-composed surface for entity cards (Studios, Experiences, Collections, etc.).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Card","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":true,"importPaths":["@aisquare/ui"],"category":"Surfaces","since":"v1.7.0","demoId":"card","summary":"Card — slot-composed surface for entity cards (Studios, Experiences, Collections, etc.).","doc":"Card — slot-composed surface for entity cards (Studios, Experiences, Collections,\netc.). Two layout modes via `view`: `\"grid\"` is the blog-7-style image-on-top\ncard; `\"list\"` is the blog-3-style horizontal row. Hover behaviour is opt-in\nvia `hover` (\"lift\" | \"glow\" | \"none\"); both variants honour\n`prefers-reduced-motion` automatically.\n\nComposition is sub-component based, like shadcn:\n\n  <Card view=\"grid\" hover=\"lift\" onClick={...}>\n    <CardCover src={...} aspectRatio=\"16/11\" />\n    <CardBody>\n      <CardTag tone=\"violet\">Quest</CardTag>\n      <CardTitle>Build your first AI Studio</CardTitle>\n      <CardDescription>Walk through topic, content, AI experience setup.</CardDescription>\n      <CardMeta items={[\"Aug 6, 2025\", \"Sahaj Garg\", \"2 min read\"]} />\n      <CardStats stats={[{ icon: <Users />, value: 42 }]} />\n    </CardBody>\n    <CardFooter>\n      <CardActions>...</CardActions>\n    </CardFooter>\n  </Card>\n\nFor loading state, render `<CardSkeleton view=\"grid\" />` directly — domain\nshells (StudioCard, ExperienceCard, CollectionCard) export `.Skeleton` static\nfields tuned to their slot tree.\n\nThe cover image self-manages its loading + error chrome via the Image\nprimitive — consumers don't need to track imageLoading state per card.\n\n[…truncated — read the source file for the rest]","props":[],"propsType":"CardProps","variants":{"variants":{"view":["grid","list"],"hover":["none","lift","glow"],"interactive":["true","false"]},"defaults":{"view":"grid","hover":"lift","interactive":"false"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardCover","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"className","type":"string","required":false,"doc":null},{"name":"children","type":"React.ReactNode","required":false,"doc":"Children render absolutely-positioned over the image (badges, overlay controls, gradient veil)."},{"name":"hoverZoom","type":"boolean","required":false,"doc":"Hover scale of the inner image."},{"name":"fallback","type":"React.ReactNode","required":false,"doc":"Branded fallback rendered when `src` is missing or the image errors."},{"name":"pixelEffect","type":"CardCoverPixelEffect","required":false,"doc":"When set, overlays a `<PixelCard>` canvas on top of the cover image and dims the image on hover so absolutely-positioned overlay children (badges, status pills, scroll strip) read more clearly."}],"propsType":"CardCoverProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardBody","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"CardBodyProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardHeader","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"CardHeaderProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardFooter","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Footer slot for `<Card>`.","doc":null,"props":[],"propsType":"CardFooterProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardTag","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[],"propsType":"CardTagProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardTitle","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"as","type":"\"h2\" | \"h3\" | \"h4\"","required":false,"doc":null},{"name":"size","type":"\"sm\" | \"md\" | \"lg\"","required":false,"doc":"Visual size — independent of the heading tag."},{"name":"clamp","type":"1 | 2 | 3","required":false,"doc":null},{"name":"emptyFallback","type":"React.ReactNode","required":false,"doc":"Fallback rendered when children is empty / nullish."}],"propsType":"CardTitleProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardDescription","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"clamp","type":"1 | 2 | 3","required":false,"doc":null}],"propsType":"CardDescriptionProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardMeta","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"items","type":"Array<React.ReactNode | null | undefined>","required":true,"doc":"Each item renders as a span; consecutive items are separated by a dot."}],"propsType":"CardMetaProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardStats","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"stats","type":"CardStat[]","required":true,"doc":null}],"propsType":"CardStatsProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardActions","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"layout","type":"\"end\" | \"between\" | \"stretch\"","required":false,"doc":"Default `\"end\"` — actions sit on the right edge."}],"propsType":"CardActionsProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"CardSkeleton","kind":"component","layer":"primitive","file":"src/primitives/Card.tsx","module":"Card","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"view","type":"\"grid\" | \"list\"","required":false,"doc":null},{"name":"aspect","type":"\"16/11\" | \"16/9\" | \"4/3\" | \"square\"","required":false,"doc":"Aspect ratio of the cover skeleton — defaults to \"16/11\" (matches grid)."},{"name":"hasTag","type":"boolean","required":false,"doc":"Show a tag pill skeleton above the title."},{"name":"hasMeta","type":"boolean","required":false,"doc":"Show a meta strip after the description."},{"name":"hasFooter","type":"boolean","required":false,"doc":"Show a footer action skeleton row."},{"name":"animation","type":"\"pulse\" | \"shimmer\" | \"none\"","required":false,"doc":"Loading animation."}],"propsType":"CardSkeletonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Checkbox","kind":"component","layer":"primitive","file":"src/primitives/Checkbox.tsx","module":"Checkbox","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.1.0","demoId":"checkbox","summary":"Checkbox — token-driven Radix checkbox.","doc":"Checkbox — token-driven Radix checkbox.\n\nThree states via Radix's `checked` prop: `false`, `true`, `\"indeterminate\"`.\nThe indicator switches glyph based on state — `<Minus>` for indeterminate\n(used for \"some items selected\" tri-state lists), `<Check>` for true.\n\n  <div className=\"flex items-center gap-2\">\n    <Checkbox id=\"terms\" checked={agreed} onCheckedChange={setAgreed} />\n    <Label htmlFor=\"terms\">I agree to the terms</Label>\n  </div>\n\nOverride the icon per-instance via `icon` if you need a non-Check glyph\n(rare — most surfaces want the canonical check / minus pair).\n\nVisual treatment is calm-by-default to read well in both compact form rows\nand standalone use:\n\n- **Rest border** is `border-input` (neutral) instead of a saturated\n  primary tint. Hover ramps the border slightly to signal interactivity\n  without flashing brand color.\n- **Box** is `h-4 w-4` with `rounded-[5px]` — softer than `rounded-sm` so\n  the corner profile matches `<Input rounded-lg>`'s feel at a smaller\n  visual weight.\n- **Check / Minus glyphs** sit at `h-3 w-3` so the checked state reads\n  crisply with breathing room around the glyph instead of filling the box\n  edge to edge. Stroke weight is baked into the icon barrel's source SVGs\n  (not a runtime prop — see `src/icons.tsx`).\n- **Transitions** use `transition-[background-color,border-color,color]\n  duration-180 ease-smooth-out`, matching `<Input>`'\n\n[…truncated — read the source file for the rest]","props":[{"name":"icon","type":"IconType","required":false,"doc":"Replace the checked-state glyph."}],"propsType":"CheckboxProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Checkbox"},{"name":"Collapse","kind":"component","layer":"primitive","file":"src/primitives/Collapse.tsx","module":"Collapse","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Collapse — the grid-rows drawer (PQA#2642; ported from the unified approve-card one-off per the ui-first directive).","doc":"Collapse — the grid-rows drawer (PQA#2642; ported from the unified\napprove-card one-off per the ui-first directive). `open` renders the row at\n`1fr`, closed at `0fr`, and the height change is a plain CSS transition:\nno measured heights, no keyframes, no consumer animation wiring.\n\n  <Collapse open={!settled}>...</Collapse>\n  <Collapse open={!settled} delayMs={100}>...</Collapse>  // two-beat close\n\n`delayMs` holds the height move so a sibling exit can lead — the\napprove-card close reads as two beats because its AnimatedSeparator\ncollapses first and the drawer follows a beat later. Content stays MOUNTED\nwhile closed (height 0, clipped): the consumer owns unmounting (the\napprove-card's refetch removes the whole park), so closing is never a\ndata decision here. While closed the shell carries the `inert` attribute,\nso the visually-hidden children leave the tab order and the a11y tree\n(ui#232 review: height-0 + overflow-hidden alone kept an invisible button\nreachable by keyboard). Motion-reduce drops the transition: open/closed\nsnap.","props":[{"name":"open","type":"boolean","required":true,"doc":"True renders the content at full height; false collapses to zero."},{"name":"delayMs","type":"number","required":false,"doc":"Milliseconds to hold before the height moves (the two-beat stagger)."}],"propsType":"CollapseProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCallout","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCallout.tsx","module":"ConsoleCallout","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"ConsoleCallout — a tinted note or banner with tones, an icon slot and an action slot: motion-free, drawn from `--ui-callout-*`.","doc":"ConsoleCallout — a tinted note or banner with tones, an icon slot and an action slot: motion-free,\ndrawn from `--ui-callout-*`.\n\nReproduces Explainability v2's Callout (solid and dashed notes; neutral, info, warn, ok, warn-fill tones;\nactions at the right, a dismiss button last; a `role=\"status\"` draws its first line in the tone's colour)\nand aisquare-fe's Alert / adopted InlineNotice (an 8px card with a real border, the icon in a column, the\naction under the text). Colour is per tone: `--ui-callout-<tone>-bg/-border/-fg`. With no theme each tone\nderives from the semantic colours (`info`, `warning`, `success`, `destructive`, `muted`).\n\nVariables (fallback after the comma is the no-theme value): --ui-callout-radius/-px/-py/-gap/-text/\n-title-text/-title-weight/-icon/-icon-col/-icon-mt-titled/-gap-plain/-border-w,\n-dashed-radius/-dashed-leading (the dashed note's corners and line height), --ui-callout-actions-ml/-basis, --ui-callout-body-fg,\nand per tone T in neutral|info|warn|ok|destructive|warn-fill: --ui-callout-T-bg/-border/-fg.\nThe dashed variant is a v2 drawing: fixed padding and text size, but its radius and line height follow the theme.","props":[{"name":"tone","type":"ConsoleCalloutTone","required":false,"doc":null},{"name":"variant","type":"\"solid\" | \"dashed\"","required":false,"doc":null},{"name":"role","type":"\"note\" | \"status\" | \"alert\"","required":false,"doc":"\"status\" announces politely and draws the first line in the tone's colour; \"alert\" is read at once."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"The icon before the text; decorative."},{"name":"title","type":"React.ReactNode","required":false,"doc":"The bold first line."},{"name":"actions","type":"React.ReactNode","required":false,"doc":"The action slot: buttons at the right (v2) or under the text (fe)."},{"name":"onDismiss","type":"() => void","required":false,"doc":"Shows a dismiss button last; called when pressed."},{"name":"dismissLabel","type":"string","required":false,"doc":null}],"propsType":"ConsoleCalloutProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCard","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"ConsoleCard — the console's card: motion-free, drawn only from `--ui-card-*` theme variables.","doc":"ConsoleCard — the console's card: motion-free, drawn only from `--ui-card-*` theme variables.\n\nWHY A SECOND CARD. The library's `Card` lifts on hover through `motion`, so it cannot be in the console\nentry (see docs/CONSOLE.md). This one has no motion, no cover image and no variants: a bordered surface\nwith an optional header, body and footer. Both existing consumers keep using `Card`; this is additive.\n\nUnder no theme the card is a 1px bordered `--card` surface with `--radius` corners and 1rem edges.\nUnder `data-ui-theme=\"v2\"` it is Explainability v2's `.card` (10px radius, 1px border, compact 12px/8px\nheader at 12px semibold, a rule under the header and over the footer). Under `fe` it is aisquare-fe's Card\n(12px radius, inset ring instead of a border, a 24px `--card-pad` on every side, 16px semibold title).\n\nParts: ConsoleCardHeader (+ ConsoleCardTitle, ConsoleCardDescription, ConsoleCardAction), ConsoleCardBody,\nConsoleCardFooter. `ConsoleCardHeader` also takes `title`, `description` and `action` as shorthand.\n\n[…truncated — read the source file for the rest]","props":[],"propsType":"ConsoleCardProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardHeader","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"title","type":"React.ReactNode","required":false,"doc":"Shorthand: the title, drawn in the header's type."},{"name":"description","type":"React.ReactNode","required":false,"doc":"Shorthand: muted text after (v2) or under (fe) the title."},{"name":"action","type":"React.ReactNode","required":false,"doc":"Shorthand: the right-hand side: a count, a link or a small button."}],"propsType":"ConsoleCardHeaderProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardTitle","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardDescription","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"Inline (v2: \"ranked by what needs you\") or stacked (fe), by `--ui-card-desc-display`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardAction","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardBody","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleCardFooter","kind":"component","layer":"primitive","file":"src/primitives/ConsoleCard.tsx","module":"ConsoleCard","primary":false,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ConsoleEmptyState","kind":"component","layer":"primitive","file":"src/primitives/ConsoleEmptyState.tsx","module":"ConsoleEmptyState","primary":true,"importPaths":[],"category":null,"since":null,"demoId":null,"summary":"ConsoleEmptyState — what a place shows when it has nothing yet: motion-free, drawn from `--ui-empty-*`.","doc":"ConsoleEmptyState — what a place shows when it has nothing yet: motion-free, drawn from `--ui-empty-*`.\n\nThe library's `EmptyState` fades in through `motion`, so it is not in the console entry. This one is\ncompositional (icon slot, title, description, action slot) and has four sizes, the four drawings of\nExplainability v2's EmptyState:\n  - \"page\"  a 480px column, a tile with the icon, an optional mono eyebrow (\"404\"), a page-size title.\n  - \"card\"  a 280px column, the bare icon in the empty-icon grey, a small title, stacked actions.\n  - \"chart\" a surface box with a title and one line; the caller positions it.\n  - \"row\"   a tile beside left-aligned text, for a table with no rows.\naisquare-fe has one drawing: a dashed 12px box with an 8px-radius icon tile. The fe theme sets the frame\nvariables (dashed border, radius, padding) and the tile variables, so every size reads as that box with the\nsize's own layout; what a variable cannot change is the layout itself (the width of a \"page\" column, the\ngrid of a \"row\"), which stays the size's.\n\n[…truncated — read the source file for the rest]","props":[{"name":"size","type":"ConsoleEmptyStateSize","required":false,"doc":"Default \"card\"."},{"name":"icon","type":"React.ReactNode","required":false,"doc":"The icon slot (decorative; the title says it)."},{"name":"title","type":"React.ReactNode","required":true,"doc":null},{"name":"titleAs","type":"TitleTag","required":false,"doc":"The title's element: h1 for a page, h2 elsewhere."},{"name":"description","type":"React.ReactNode","required":false,"doc":null},{"name":"action","type":"React.ReactNode","required":false,"doc":"The action slot: buttons, in a row (\"page\"), stacked (\"card\") or under the text (\"row\")."},{"name":"eyebrow","type":"React.ReactNode","required":false,"doc":"The mono line above the title (\"page\" only)."},{"name":"caption","type":"React.ReactNode","required":false,"doc":"The small line under the actions (\"page\" and \"card\")."}],"propsType":"ConsoleEmptyStateProps","variants":null,"hasStory":false,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenu","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"DropdownMenu — radix-based menu primitive matching pretty's surface tokens.","doc":"DropdownMenu — radix-based menu primitive matching pretty's surface tokens.\n\n  <DropdownMenu>\n    <DropdownMenuTrigger asChild>\n      <Button variant=\"outline\" size=\"icon\">\n        <ChevronDown />\n      </Button>\n    </DropdownMenuTrigger>\n    <DropdownMenuContent align=\"end\">\n      <DropdownMenuItem onSelect={onPromote}>\n        <Megaphone />\n        <span>Promote</span>\n      </DropdownMenuItem>\n      <DropdownMenuSeparator />\n      <DropdownMenuItem onSelect={onDelete} variant=\"destructive\">\n        <Trash2 />\n        <span>Delete</span>\n      </DropdownMenuItem>\n    </DropdownMenuContent>\n  </DropdownMenu>\n\nAnimations come from radix's data-state attributes paired with Tailwind's\n`data-[state=open]:animate-in` utilities, so reduced-motion is honored\nwithout extra wiring.","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuTrigger","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuContent","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuItem","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuCheckboxItem","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuRadioItem","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuLabel","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuSeparator","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuShortcut","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuGroup","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuPortal","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuSub","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuSubContent","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuSubTrigger","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DropdownMenuRadioGroup","kind":"component","layer":"primitive","file":"src/primitives/DropdownMenu.tsx","module":"DropdownMenu","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ElasticSlider","kind":"component","layer":"primitive","file":"src/primitives/ElasticSlider.tsx","module":"ElasticSlider","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.6.0","demoId":"elastic-slider","summary":"ElasticSlider — the canonical single-value slider primitive for `@aisquare/ui`.","doc":"ElasticSlider — the canonical single-value slider primitive for `@aisquare/ui`.\n\nA faithful reimplementation of the React Bits \"Elastic Slider\" interaction\n(NOT a Radix slider). The track is a custom horizontal bar flanked by a left\nand a right icon (volume down / up by default) with a numeric readout. The\nfeel is the point: while dragging, pulling the pointer PAST either edge of the\ntrack makes the whole bar STRETCH elastically outward — `scaleX` grows while\n`scaleY` thins, the transform-origin flips to the opposite edge so it grows\naway from the pointer, and the overshot end-icon nudges out and pulses. The\novershoot saturates (rubber-bands) toward a cap via a sigmoid decay, and on\nrelease the bar SPRINGS back with a bouncy spring. Hovering / touching the\nbar swells it slightly (scale 1 -> 1.2, height 6px -> 12px).\n\nConventions vs the reference: brand token classes (bg-muted track, bg-primary\nfill, text-muted-foreground icons/readout) instead of bundled CSS, this\nlibrary's own `Volume1`/`Volume2` icons instead of Chakra/react-icons, and\ntwo things the reference lacks entirely — (1) full keyboard + ARIA\n`role=\"slider\"` support, and (2) `prefers-reduced-motion` safety: when\nreduced, the elastic overshoot, the spring-back, and the hover swell are\nall suppressed while the bar stays fully draggable and reports accurate\nvalues.\n\n[…truncated — read the source file for the rest]","props":[{"name":"value","type":"number","required":false,"doc":"Controlled value (single thumb)."},{"name":"defaultValue","type":"number","required":false,"doc":"Uncontrolled initial value."},{"name":"min","type":"number","required":false,"doc":"Minimum value."},{"name":"max","type":"number","required":false,"doc":"Maximum value."},{"name":"step","type":"number","required":false,"doc":"Step granularity."},{"name":"onValueChange","type":"(value: number) => void","required":false,"doc":"Fires on every value change (drag move + keyboard step)."},{"name":"onValueCommit","type":"(value: number) => void","required":false,"doc":"Fires once the interaction settles (pointer up / keyboard)."},{"name":"leftIcon","type":"React.ReactNode","required":false,"doc":"Leading icon (defaults to a low-volume glyph)."},{"name":"rightIcon","type":"React.ReactNode","required":false,"doc":"Trailing icon (defaults to a high-volume glyph)."},{"name":"showValue","type":"boolean","required":false,"doc":"Show the numeric value readout to the right."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable interaction."}],"propsType":"ElasticSliderProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"glassSurfaceVariants","kind":"variants","layer":"primitive","file":"src/primitives/GlassSurface.tsx","module":"GlassSurface","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"GlassSurface — frosted-glass elevation for FLOATING surfaces (the AppShell Brain, the chat composer, ArtifactFocus).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"GlassSurface","kind":"component","layer":"primitive","file":"src/primitives/GlassSurface.tsx","module":"GlassSurface","primary":true,"importPaths":["@aisquare/ui"],"category":"Material","since":"v1.6.0","demoId":"glass-surface","summary":"GlassSurface — frosted-glass elevation for FLOATING surfaces (the AppShell Brain, the chat composer, ArtifactFocus).","doc":"GlassSurface — frosted-glass elevation for FLOATING surfaces (the AppShell\nBrain, the chat composer, ArtifactFocus). A translucent, blurred, blue-lumen\npanel that lifts off a flush mood-lit base.\n\nTHE LOAD-BEARING TWO-LAYER RULE: a floating glass panel is TWO stacked\nlayers inside a positioning wrapper, because `backdrop-filter` and `filter`\nCANCEL when applied to the same node. So they are split, and they must\nnever be collapsed back onto one element:\n  - BACKING layer (`.glass-back`, z-0): carries ONLY `filter: var(--dropFloat)`\n    (the float drop-shadow) over the `--glassBack` backstop fill. Empty +\n    `aria-hidden`; it is purely a shadow caster.\n  - GLASS layer (`.glass-panel` / `.glass-composer`, z-1): carries\n    `backdrop-filter: blur(22px) saturate(150%)` over the `--glass`\n    translucent fill, the `--glassSheen` top-right lumen, the `--glassHi`\n    top highlight, a real `border` rim (`--glassBd` for `panel`, `--acLine`\n    for `composer`), and `children`.\n\n[…truncated — read the source file for the rest]","props":[{"name":"variant","type":"\"panel\" | \"composer\"","required":false,"doc":"Keyline + role."},{"name":"nx","type":"GlassSize","required":false,"doc":"Corner-radius size, applied IDENTICALLY to BOTH layers so the silhouettes register."},{"name":"as","type":"React.ElementType","required":false,"doc":"Polymorphic element for the positioning WRAPPER (the outer node only)."},{"name":"asChild","type":"boolean","required":false,"doc":"Radix Slot escape hatch on the WRAPPER — merges GlassSurface's wrapper props/ref onto the single passed child (a motion element, a router node) instead of rendering its own wrapper."},{"name":"className","type":"string","required":false,"doc":"Merged onto the GLASS (top) layer's content box — padding, layout (flex/grid), min/max sizing, justify/align of the panel body."},{"name":"wrapperClassName","type":"string","required":false,"doc":"Merged onto the positioning WRAPPER — width/height/flex-basis (the Brain animates width here), absolute/fixed positioning, z-index, margins."},{"name":"blur","type":"number","required":false,"doc":"Override the backdrop blur radius in px."},{"name":"children","type":"React.ReactNode","required":false,"doc":"Panel/composer content — rendered inside the GLASS (top) layer only."}],"propsType":"GlassSurfaceProps","variants":{"variants":{"variant":["panel","composer"]},"defaults":{"variant":"panel"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"iconButtonVariants","kind":"variants","layer":"primitive","file":"src/primitives/IconButton.tsx","module":"IconButton","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"IconButton — icon-only inline interactive control.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"IconButton","kind":"component","layer":"primitive","file":"src/primitives/IconButton.tsx","module":"IconButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"icon-button","summary":"IconButton — icon-only inline interactive control.","doc":"IconButton — icon-only inline interactive control.\n\nUse for toolbars, kebab menus, close/back affordances inside modals,\npassword-eye toggles inside inputs — anywhere a `<Button>` would feel\nheavy because the action is a small icon-only nudge.\n\nShape (canonical, fixed across the platform):\n- 40×40 hit target, 16px glyph, fully-rounded.\n- No border or fill at rest. Hover renders a faint accent tint and\n  shifts text to `--accent-foreground`.\n- Round, NOT notched: the Onyx hex notch is for rectangular surfaces; a\n  round icon control keeps its circle. It still shares the offset-key\n  language via the press — a springy 1px press-DOWN on `:active` (a CSS\n  translate + overshoot ease, the same bounce every Button/KeycapButton\n  uses), so the whole lib presses consistently.\n- Required `aria-label` — TS-enforced + dev-only runtime warning if\n  missing or empty.\n- `motion={false}` opts out of the press feedback (static).\n- `asChild` composes onto a router Link or other custom element.\n\nWhy a fixed size: every IconButton across the platform is the same\nsize so users can predict the hit target and so designers don't have\nto pick. If a single call site genuinely needs a different size (a\nvery rare escape hatch), pass `className=\"h-X w-X\"` and accept the\ninconsistency at that one site.\n\n[…truncated — read the source file for the rest]","props":[{"name":"\"aria-label\"","type":"string","required":true,"doc":"Screen-reader label."},{"name":"asChild","type":"boolean","required":false,"doc":"Render children via Radix Slot (e.g."},{"name":"motion","type":"boolean","required":false,"doc":"Disable framer-motion press-feedback."}],"propsType":"IconButtonProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"imageVariants","kind":"variants","layer":"primitive","file":"src/primitives/Image.tsx","module":"Image","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Image — sealed wrapper around `<img>` that owns the loading skeleton, one-shot fallback retry, error chrome, and CLS-prevention slot.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Image","kind":"component","layer":"primitive","file":"src/primitives/Image.tsx","module":"Image","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Image — sealed wrapper around `<img>` that owns the loading skeleton, one-shot fallback retry, error chrome, and CLS-prevention slot.","doc":"Image — sealed wrapper around `<img>` that owns the loading skeleton,\none-shot fallback retry, error chrome, and CLS-prevention slot.\n\nDefaults:\n- `loading=\"lazy\"` (native browser lazy-loading; flips to `eager` +\n  `fetchpriority=\"high\"` when `priority` is set).\n- `decoding=\"async\"` so the renderer can hand decode work to a worker\n  thread instead of blocking the main thread.\n- Skeleton overlay during load (covered by the existing `Skeleton`\n  primitive — same shimmer + theme tokens consumers already see).\n- Error state: `<ImageOff>` icon (from `../icons`) centered on `bg-muted`, with a\n  tiny `errorLabel` rendered alongside when the wrapper is at least\n  64px on the shorter side. Smaller wrappers get just the icon.\n- Empty / undefined `src` renders the error state directly (does not\n  render an empty `<img>`).\n\nComposition seam: consumer-provided `errorContent` overrides the\ndefault error chrome. `fallbackSrc` provides one-shot retry; if the\nfallback also errors (or none was given), the consumer's `onError`\nfires AFTER the internal retry so they can run a fancier multi-step\nfallback chain (AS's `experience-image-fallback` keeps working — if\nthe consumer changes `src` from their `onError`, the primitive's\n`useEffect` resyncs to the new source).\n\n[…truncated — read the source file for the rest]","props":[{"name":"src","type":"string | undefined","required":true,"doc":"Image source URL."},{"name":"alt","type":"string","required":true,"doc":"Required."},{"name":"aspectRatio","type":"string","required":false,"doc":"CSS aspect ratio for the wrapper."},{"name":"priority","type":"boolean","required":false,"doc":"Mark this image as above-the-fold / LCP-critical."},{"name":"fallbackSrc","type":"string","required":false,"doc":"Single-retry fallback URL."},{"name":"errorContent","type":"React.ReactNode","required":false,"doc":"Custom error-state content."},{"name":"errorLabel","type":"string","required":false,"doc":"Label rendered alongside the error icon when the wrapper is at least ~64px on the shorter side."},{"name":"className","type":"string","required":false,"doc":"Wrapper className."},{"name":"style","type":"React.CSSProperties","required":false,"doc":"Wrapper inline style."},{"name":"wrapperProps","type":"WrapperHTMLAttributes","required":false,"doc":"Pass-through wrapper HTML attributes (data-*, aria-*, etc.)."}],"propsType":"ImageProps","variants":{"variants":{"rounded":["none","sm","default","lg","full"]},"defaults":{"rounded":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"inputVariants","kind":"variants","layer":"primitive","file":"src/primitives/Input.tsx","module":"Input","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Input — base text-input primitive.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Input","kind":"component","layer":"primitive","file":"src/primitives/Input.tsx","module":"Input","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.2.0","demoId":"input","summary":"Input — base text-input primitive.","doc":"Input — base text-input primitive. Variants:\n  - default : standard form input, rounded-lg\n  - ghost   : borderless, transparent, for inline-edit / table-cell scenarios\n  - chat    : softer fill, rounded-2xl, glow-on-focus (composed by ChatInput)\n  - search  : pill, icon-prefix slot via padding (composed by ExploreSearchBar)\n\nSizes: sm / default / lg\n\nAll colors via consumer CSS vars; no hardcoded brand values.","props":[],"propsType":"InputProps","variants":{"variants":{"variant":["default","ghost","chat","search"],"size":["sm","default","lg"]},"defaults":{"variant":"default","size":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Input"},{"name":"KeycapButton","kind":"component","layer":"primitive","file":"src/primitives/KeycapButton.tsx","module":"KeycapButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"keycap-button","summary":"KeycapButton — a single flat element (see `Button`, its full-featured sibling, for the same shape/color language).","doc":"KeycapButton — a single flat element (see `Button`, its full-featured\nsibling, for the same shape/color language). A full pill (`rounded-full`,\nmatching the shape the product actually ships) with flat token colors and\na simple hover/focus state — no gradient, no press-depth theatrics.\n\n- `primary` — solid `--primary` fill, the main CTA.\n- `secondary` — surface face with a real border; `destructive` — red.\n- `outline` — flat bordered, transparent fill.\n- `ghost` — quiet text, soft hover.\n`asChild` renders the consumer's element (e.g. an `<a>`) as the key face.","props":[{"name":"asChild","type":"boolean","required":false,"doc":"Render the consumer's child element via Radix Slot (e.g."}],"propsType":"KeycapButtonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"labelVariants","kind":"variants","layer":"primitive","file":"src/primitives/Label.tsx","module":"Label","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Label — form-field caption.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Label","kind":"component","layer":"primitive","file":"src/primitives/Label.tsx","module":"Label","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.1.0","demoId":"label","summary":"Label — form-field caption.","doc":"Label — form-field caption.\n\nPlain `<label>` (linked to inputs via `htmlFor`) + the disabled-input\nstyling shadcn consumers already expect. No Radix dependency — `<label>`\nalready gives keyboard + a11y wiring through the standard\nlabel/control association, and the peer-disabled className handles the\n\"input is disabled, label dims with it\" affordance via Tailwind's `peer`\nmodifier on a sibling input.\n\n  <Label htmlFor=\"email\">Email</Label>\n  <Input id=\"email\" type=\"email\" />\n\nVariants are intentionally minimal — Label sits inside Input/Textarea\npairings where the field carries the visual weight, not the label.","props":[],"propsType":"LabelProps","variants":{"variants":{"size":["sm","default","lg"]},"defaults":{"size":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Label"},{"name":"MagneticButton","kind":"component","layer":"primitive","file":"src/primitives/MagneticButton.tsx","module":"MagneticButton","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"MagneticButton — the primary-CTA wrapper around `Button`: while the pointer is over it, the button drifts toward the cursor, then springs back to rest on leave.","doc":"MagneticButton — the primary-CTA wrapper around `Button`: while the pointer\nis over it, the button drifts toward the cursor, then springs back to rest\non leave. Cursor-attraction is reserved for the KEY action of a surface;\nevery other button on that surface should stay a plain `Button`\n(secondary/outline/ghost) — reaching for this everywhere dilutes the cue.\n\nBuilt on `motion` (spring `{stiffness: 260, damping: 18, mass: 0.4}` — a\nsnappy-but-soft return with enough overshoot to read as \"magnetic\", not\nbouncy) layered on top of the unmodified brand `Button`; this wraps\ntoday's flat pill `Button` as-is and adds no visual of its own.\n\nNo magnet — a plain `Button`, no wrapper, no transform — under\n`prefers-reduced-motion`, `disabled`, or `isLoading`. A control the user\ncannot act on, or a user who has asked not to see motion, never gets a\ndrifting target; never a stuck offset either, since there's no wrapper to\nleave one in.\n\n`fullWidth` (form submits: login, forgot-password, reset) fills its\ncontainer and CLAMPS the drift to ±10px so a wide button leans toward the\ncursor across the whole width instead of sliding off its baseline under\nthe unbounded center-drift a hugging CTA uses.","props":[{"name":"magnetStrength","type":"number","required":false,"doc":"How far the button drifts toward the cursor, as a fraction of the pointer's offset from the button center."},{"name":"fullWidth","type":"boolean","required":false,"doc":"Full-width form submits: the wrapper fills its container so the button spans the form, and the pull is clamped (see `FULLWIDTH_MAGNET_MAX_PX`) so a wide button leans toward the cursor wherever it is across the width, instead of the unbounde"}],"propsType":"MagneticButtonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"MorphSwap","kind":"component","layer":"primitive","file":"src/primitives/MorphSwap.tsx","module":"MorphSwap","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`MorphSwap` — cross-fades / layout-morphs between two states of the same region.","doc":"`MorphSwap` — cross-fades / layout-morphs between two states of the same\nregion. Wraps `AnimatePresence` so the outgoing state slide-fades out on the\n`[0.16, 1, 0.3, 1]` curve while the incoming one slide-fades in. Built for\ngrid ↔ focus ↔ chat surface transitions, tab bodies, and empty ↔ loaded.\n\nUnder `prefers-reduced-motion` it becomes an **instant swap** — no fade, no\ntransform, no exit delay.\n\nThe first render does not animate in (`AnimatePresence initial={false}`): the\nstarting state is simply present, and only subsequent `swapKey` changes morph.\n\n@example\n  <MorphSwap swapKey={view}>\n    {view === \"grid\" ? <Grid /> : view === \"focus\" ? <Focus /> : <Chat />}\n  </MorphSwap>","props":[{"name":"swapKey","type":"React.Key","required":true,"doc":"Identity of the currently rendered state."},{"name":"children","type":"React.ReactNode","required":true,"doc":"Content for the current `swapKey`."},{"name":"mode","type":"\"wait\" | \"sync\" | \"popLayout\"","required":false,"doc":"`AnimatePresence` mode."},{"name":"from","type":"MountRevealDirection","required":false,"doc":"Travel direction of the entering state."},{"name":"distance","type":"number","required":false,"doc":"Slide distance in px for the enter/exit offset."},{"name":"duration","type":"number","required":false,"doc":"Transition duration in seconds."},{"name":"layout","type":"boolean","required":false,"doc":"Forward Motion layout animation to the state wrapper (shared-layout morphs)."}],"propsType":"MorphSwapProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"navRailVariants","kind":"variants","layer":"primitive","file":"src/primitives/NavRail.tsx","module":"NavRail","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`<NavRail>` — the Onyx app-shell left rail (the SHELL, `aisquare-ui#128`).","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"NavRail","kind":"component","layer":"primitive","file":"src/primitives/NavRail.tsx","module":"NavRail","primary":true,"importPaths":["@aisquare/ui"],"category":"Navigation","since":"v1.6.0","demoId":"nav-rail","summary":null,"doc":null,"props":[{"name":"brand","type":"React.ReactNode","required":false,"doc":"Brand mark anchored at the top (the AikoMark slot)."},{"name":"children","type":"React.ReactNode","required":false,"doc":"The destination stack — a column of `<RailNavButton>`s."},{"name":"footer","type":"React.ReactNode","required":false,"doc":"Bottom-anchored cluster passed through untouched (avatar / help / etc.)."},{"name":"themeToggle","type":"boolean","required":false,"doc":"Mount the foot `<ThemeToggleButton variant=\"rail\">`."},{"name":"magnify","type":"boolean","required":false,"doc":"Enable the dock magnify for opted-in buttons."},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible name for the `<nav>` landmark."},{"name":"forceCompact","type":"boolean","required":false,"doc":"Force the compact (48px) layout regardless of viewport."}],"propsType":"NavRailProps","variants":{"variants":{"size":["default","compact"]},"defaults":{"size":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"NavRailMagnifyContext","kind":"component","layer":"primitive","file":"src/primitives/NavRailMagnifyContext.tsx","module":"NavRailMagnifyContext","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"useNavRailMagnify","kind":"function","layer":"primitive","file":"src/primitives/NavRailMagnifyContext.tsx","module":"NavRailMagnifyContext","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Read the rail's shared magnify state.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"NotchPanel","kind":"component","layer":"primitive","file":"src/primitives/NotchPanel.tsx","module":"NotchPanel","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"notch-panel","summary":"NotchPanel — the general-purpose FLAT surface: the base container for arbitrary content (sections, cards, toolbars).","doc":"NotchPanel — the general-purpose FLAT surface: the base container for\narbitrary content (sections, cards, toolbars). Distinct from its\nneighbours: `ArtifactTile` is artifact-specific, `GlassSurface` is a\nfrosted FLOATING panel, `Card` is the entity-card family — NotchPanel is\nthe plain box.\n\nA `rounded-xl` surface with a real `border` (the `keyline`) and a real\n`box-shadow` for elevation — `card` matches `Card`'s own resting shadow;\n`panel` is a deeper, floating-surface weight.","props":[{"name":"asChild","type":"boolean","required":false,"doc":"Render the consumer's element (e.g."}],"propsType":"NotchPanelProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"NotchSegmented","kind":"component","layer":"primitive","file":"src/primitives/NotchSegmented.tsx","module":"NotchSegmented","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"notch-segmented","summary":"NotchSegmented — a controlled segmented selector (the app's This-Workspace / All-Workspaces and Fast / Pro toggles).","doc":"NotchSegmented — a controlled segmented selector (the app's\nThis-Workspace / All-Workspaces and Fast / Pro toggles). A bordered track\nholds the options; the selected one is a `rounded-md` accent segment, the\nrest are quiet text. Radio semantics (`role=\"radiogroup\"` / `aria-checked`)\n+ roving arrow-key focus.","props":[{"name":"options","type":"ReadonlyArray<NotchSegmentedOption>","required":true,"doc":null},{"name":"value","type":"string","required":true,"doc":null},{"name":"onValueChange","type":"(value: string) => void","required":true,"doc":null},{"name":"\"aria-label\"","type":"string","required":false,"doc":"Accessible name for the group."}],"propsType":"NotchSegmentedProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"NotchTextarea","kind":"component","layer":"primitive","file":"src/primitives/NotchTextarea.tsx","module":"NotchTextarea","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"notch-textarea","summary":"NotchTextarea — the multi-line field, sibling to NotchedInput (form descriptions, longer notes).","doc":"NotchTextarea — the multi-line field, sibling to NotchedInput (form\ndescriptions, longer notes). Same border contract: `--border` hairline at\nrest → `--ring` accent on focus (`focus-within`) → `--destructive` on\n`aria-invalid` — plus an accent drop-shadow glow on focus. `ref` forwards\nto the `<textarea>`.","props":[{"name":"wrapperClassName","type":"string","required":false,"doc":"Class for the outer field box; `className` lands on the `<textarea>`."}],"propsType":"NotchTextareaProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"NotchedInput","kind":"component","layer":"primitive","file":"src/primitives/NotchedInput.tsx","module":"NotchedInput","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"notched-input","summary":"NotchedInput — a text field with a real `border`: `--border` hairline at rest, `--ring` accent on focus (`focus-within`, since the wrapper owns the fill/border and the input itself is transparent/borderless), and `--destructive` on `aria-in","doc":"NotchedInput — a text field with a real `border`: `--border` hairline at\nrest, `--ring` accent on focus (`focus-within`, since the wrapper owns the\nfill/border and the input itself is transparent/borderless), and\n`--destructive` on `aria-invalid`. An accent drop-shadow glow lifts the\nfield on focus. `ref` forwards to the inner `<input>` so form libraries\nregister it directly.","props":[{"name":"leadingIcon","type":"React.ReactNode","required":false,"doc":"Optional leading glyph rendered inside the field, before the input."},{"name":"wrapperClassName","type":"string","required":false,"doc":"Class for the outer field box; `className` lands on the `<input>`."}],"propsType":"NotchedInputProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"PasswordInput","kind":"component","layer":"primitive","file":"src/primitives/PasswordInput.tsx","module":"PasswordInput","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.4.0","demoId":"password-input","summary":"PasswordInput — a password field with a built-in reveal/hide toggle.","doc":"PasswordInput — a password field with a built-in reveal/hide toggle.\n\nComposes the base `Input` primitive (so it inherits every variant, size,\ntoken color, and focus-ring) and layers on the two things every auth\nsurface re-implements by hand: a visibility toggle and an optional\n\"all good\" success check.\n\nWhy this exists: login, signup, and reset-password screens each need an\nidentical password field. Before this primitive, `AuthModal` hand-rolled\nits own (twice, once per animation branch). This is the single reusable\natom those surfaces compose instead.\n\nFramework-agnostic by design — it forwards `ref` to the underlying input\nand passes `value`/`onChange` straight through, so it drops into a\nreact-hook-form `<Controller>` (or plain controlled/uncontrolled use)\nwith no wrapper.\n\n  <PasswordInput aria-label=\"Password\" autoComplete=\"current-password\" />\n  <PasswordInput value={pw} onValueChange={setPw} valid={isStrong} />\n\nAccessibility:\n- The toggle is a real `<button type=\"button\">` (never submits the form),\n  carries an `aria-label` that flips with state, and exposes `aria-pressed`\n  so screen readers announce reveal/hide.\n- `tabIndex={-1}` keeps the toggle out of the Tab order — the field-then-\n  submit flow stays uninterrupted, matching the platform's auth UX.","props":[{"name":"showToggle","type":"boolean","required":false,"doc":"Render the reveal/hide visibility toggle."},{"name":"revealLabel","type":"string","required":false,"doc":"aria-label for the toggle while the password is hidden."},{"name":"hideLabel","type":"string","required":false,"doc":"aria-label for the toggle while the password is visible."},{"name":"valid","type":"boolean","required":false,"doc":"When `true` and the field is non-empty, render a success check to the left of the toggle."},{"name":"onValueChange","type":"(value: string) => void","required":false,"doc":"Convenience callback firing the raw string value on every change."}],"propsType":"PasswordInputProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PasswordRequirements","kind":"component","layer":"primitive","file":"src/primitives/PasswordRequirements.tsx","module":"PasswordRequirements","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PasswordRequirements - the live \"rules met\" checklist the reset-password screen shows under its password field.","doc":"PasswordRequirements - the live \"rules met\" checklist the reset-password\nscreen shows under its password field.\n\nDrives off the shared `passwordChecks` rule set (one source of truth with the\nconsuming screens, see `lib/authValidation`). Each row is sage-when-met:\ngreen (`--success`) with a check once satisfied, muted with an open circle\nuntil then. Pass `value` and it computes the checks for you, or pass\npre-computed `checks` + `requirements` for full control (e.g. a backend-driven\nrule set).\n\nAccessibility: the list is a real `<ul>`; each row carries `data-met` so a\ntest (and assistive tech via the glyph's label) can read pass/fail, and the\nglyph itself is `aria-hidden` with the rule text doing the announcing.\n\n  <PasswordRequirements value={pw} />\n  <PasswordRequirements checks={checks} requirements={CUSTOM_RULES} />","props":[{"name":"value","type":"string","required":false,"doc":"The current password."},{"name":"checks","type":"PasswordCheckResult","required":false,"doc":"Pre-computed per-rule booleans."},{"name":"requirements","type":"readonly PasswordRequirement[]","required":false,"doc":"The rules to render."}],"propsType":"PasswordRequirementsProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PixelCard","kind":"component","layer":"primitive","file":"src/primitives/PixelCard.tsx","module":"PixelCard","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"PixelCard — canvas-driven pixel-scatter overlay adapted from React Bits' open-source `PixelCard` (https://reactbits.dev).","doc":"PixelCard — canvas-driven pixel-scatter overlay adapted from React Bits'\nopen-source `PixelCard` (https://reactbits.dev). On hover (or focus, unless\n`noFocus`), tiny coloured squares spawn from the centre outward in a\ndelay-by-distance pattern, settle into a gentle shimmer, then disappear when\nthe pointer leaves.\n\nIn aisquare-pretty the primary consumer is `<CardCover>`, where the pixel\nlayer overlays the cover image so the image visually recedes on hover and\nthe badges that sit on top read more clearly. Standalone usage matches the\nupstream React Bits API so demos copy / paste cleanly.\n\nTwo modes:\n- **Self-managed** (default) — bind your own children inside; the wrapper\n  listens for mouseenter / mouseleave / focus / blur and runs the\n  appear / disappear animations.\n- **Controlled** — pass `active={boolean}`. Useful when a parent already\n  tracks hover (e.g. `<CardCover>` listens at the cover boundary so the\n  pixel layer aligns with the image's hover, not the whole card's). When\n  controlled, the wrapper does NOT bind its own pointer / focus handlers.\n\nHonours `prefers-reduced-motion`: the hover delay-by-distance staircase is\ncollapsed to zero and pixel speed throttles to a near-static reveal so\nusers who opt out still see the colour shift without the strobe.\n\nSSR-safe: all `window` access is guarded inside `useEffect`; the canvas\ndraws nothing until mounted client-side.","props":[{"name":"variant","type":"PixelVariant","required":false,"doc":"Preset bundle."},{"name":"gap","type":"number","required":false,"doc":"Pixel grid spacing (px)."},{"name":"speed","type":"number","required":false,"doc":"Animation speed scalar."},{"name":"colors","type":"string","required":false,"doc":"Comma-separated CSS colour list — pixels pick one at random per cell."},{"name":"noFocus","type":"boolean","required":false,"doc":"Skip focus / blur handlers (mouse-only)."},{"name":"active","type":"boolean","required":false,"doc":"Controlled mode."},{"name":"overlay","type":"boolean","required":false,"doc":"If true, the canvas overlay is positioned `absolute inset-0` and the wrapper itself becomes a no-op (no fixed size, no border)."},{"name":"className","type":"string","required":false,"doc":null},{"name":"children","type":"React.ReactNode","required":false,"doc":null}],"propsType":"PixelCardProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"RedlineSpan","kind":"component","layer":"primitive","file":"src/primitives/RedlineSpan.tsx","module":"RedlineSpan","primary":true,"importPaths":["@aisquare/ui"],"category":"Review & diff","since":"v1.5.0","demoId":"redline-span","summary":"RedlineSpan — inline span for tracked-changes / suggestion / comment-anchor marks inside a document.","doc":"RedlineSpan — inline span for tracked-changes / suggestion / comment-anchor\nmarks inside a document. Renders as a `<span>` by default and inherits the\nsurrounding text flow (no block-level shift).\n\nReads the diff / review-preview token set:\n  --ins / --ins-bg   insertion (green)\n  --del / --del-bg   deletion (red strikethrough)\nplus `--warning` for the comment-anchor marker (the amber comment hue).\n\nVariants tell the reader whether the change is from a deterministic source\n(`insertion`, `deletion` — already accepted) or pending judgement\n(`suggestion` — dotted underline indicates an AI proposal). `comment-anchor`\nis a non-destructive marker that ties text to a comment thread.\n\nUse `data-sug-id` (or `data-edit-id`) for click delegation: a parent\ndocument handler can read the dataset to open the right reasoning popover\nor comment thread.\n\nComposition: `asChild` swaps the `<span>` for a Radix Slot — useful when\nthe consumer's clause renderer already wraps text in `<em>` / `<strong>` /\nother inline elements.\n\nMotion: the only animated property is `transition-colors`, gated with\n`motion-reduce:transition-none` so users who prefer reduced motion get an\ninstant color change rather than a fade.","props":[{"name":"asChild","type":"boolean","required":false,"doc":"Render as a Radix Slot, merging classes onto the child element."},{"name":"suggestionId","type":"string","required":false,"doc":"AI-suggestion identifier — surfaces as `data-sug-id` for click delegation to the consumer's reasoning popover handler."},{"name":"editId","type":"string","required":false,"doc":"Human-edit identifier — surfaces as `data-edit-id` for click delegation to the consumer's comment popover."}],"propsType":"RedlineSpanProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"redlineSpanVariants","kind":"const","layer":"primitive","file":"src/primitives/RedlineSpan.tsx","module":"RedlineSpan","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"RevealPanel","kind":"component","layer":"primitive","file":"src/primitives/RevealPanel.tsx","module":"RevealPanel","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`RevealPanel` — a container that plays the house entrance ({@link useMountReveal}) on its content: a two-beat slide-then-fade on the `[0.16, 1, 0.3, 1]` curve, collapsing to an opacity-only cross-fade under `prefers-reduced-motion`.","doc":"`RevealPanel` — a container that plays the house entrance\n({@link useMountReveal}) on its content: a two-beat slide-then-fade on the\n`[0.16, 1, 0.3, 1]` curve, collapsing to an opacity-only cross-fade under\n`prefers-reduced-motion`.\n\nTwo shapes:\n- **Whole-panel** (default) — the panel reveals as one unit. Give sibling\n  panels an ascending `index` to cascade a preview/catalog column.\n- **Staggered** (`stagger`) — the panel's direct children reveal in sequence,\n  driven by Motion variant propagation.\n\nReveal on mount (default) or when scrolled into view (`onView`).\n\n@example // catalog column: three panels cascade in on mount\n  <RevealPanel index={0}>…</RevealPanel>\n  <RevealPanel index={1}>…</RevealPanel>\n  <RevealPanel index={2}>…</RevealPanel>\n\n@example // a list that cascades when it scrolls into view\n  <RevealPanel onView stagger>\n    {rows.map((r) => <Row key={r.id} {...r} />)}\n  </RevealPanel>","props":[{"name":"children","type":"React.ReactNode","required":false,"doc":"Panel content."},{"name":"onView","type":"boolean","required":false,"doc":"Reveal when the panel scrolls into view instead of on mount."},{"name":"viewThreshold","type":"number","required":false,"doc":"IntersectionObserver visibility ratio for `onView`."},{"name":"viewMargin","type":"string","required":false,"doc":"IntersectionObserver `rootMargin` for `onView` (e.g."},{"name":"stagger","type":"boolean | number","required":false,"doc":"Cascade the panel's *direct children* instead of revealing the panel as a single unit."}],"propsType":"RevealPanelProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"segmentedControlVariants","kind":"variants","layer":"primitive","file":"src/primitives/SegmentedControl.tsx","module":"SegmentedControl","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SegmentedControl","kind":"component","layer":"primitive","file":"src/primitives/SegmentedControl.tsx","module":"SegmentedControl","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SegmentedControl — a compact single-select toggle: a bordered track holds two or more segments; the selected one is lifted by a \"thumb\" pill that slides between segments as the value changes.","doc":"SegmentedControl — a compact single-select toggle: a bordered track holds\ntwo or more segments; the selected one is lifted by a \"thumb\" pill that\nslides between segments as the value changes.\n\nBuilt from scratch (not Radix) so it can own the animated thumb, but it\nfollows the same house idioms as the rest of the library:\n- Fully data-driven (`options` / `value` / `onChange`), like `<FilterBar>` /\n  `<FeatureTabs>` — usable as a generic control, not a one-shot layout.\n- Roving tabindex + arrow-key navigation with **selection-follows-focus**,\n  the expected feel for a segmented control (arrow moves AND selects). Home /\n  End jump to the first / last enabled segment; disabled segments are skipped.\n  Space / Enter select the focused segment. Only the selected (or, when\n  nothing is selected, the first enabled) segment is in the Tab order.\n- Two ARIA shapes for two jobs — `semantics=\"tablist\"` (default; `role=tab`,\n  `aria-selected`, optional `aria-controls` per option) when the segments\n  switch a view, and `semantics=\"radiogroup\"` (`role=radio`, `aria-checked`)\n  when they set a value. Give the group a name via `aria-label` /\n  `aria-labelledby`.\n- Reduced-motion aware: the thumb slide is a `motion` layout animation that\n  degrades to an instant snap under `prefers-reduced-motion` (the thumb still\n  renders under the selected segment — only the slide is dropped).\n- Token-driven (`\n\n[…truncated — read the source file for the rest]","props":[{"name":"options","type":"SegmentedControlOption[]","required":true,"doc":"The segments to render."},{"name":"value","type":"string","required":false,"doc":"Controlled selected value."},{"name":"defaultValue","type":"string","required":false,"doc":"Uncontrolled initial value."},{"name":"onChange","type":"(value: string) => void","required":false,"doc":"Fires with the newly-selected value (click or keyboard)."},{"name":"semantics","type":"\"tablist\" | \"radiogroup\"","required":false,"doc":"ARIA shape."},{"name":"disabled","type":"boolean","required":false,"doc":"Disable the whole control."},{"name":"motion","type":"boolean","required":false,"doc":"Animate the thumb slide."}],"propsType":"SegmentedControlProps","variants":{"variants":{"size":["sm","md"],"fullWidth":["true","false"]},"defaults":{"size":"md","fullWidth":"false"}},"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Separator","kind":"component","layer":"primitive","file":"src/primitives/Separator.tsx","module":"Separator","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.1.0","demoId":"separator","summary":"Separator — thin divider between content blocks.","doc":"Separator — thin divider between content blocks.\n\nPlain `<div role=\"separator\">` with token-driven background. Default is\ndecorative (role=\"none\") so screen readers don't announce a meaningless\nboundary; pass `decorative={false}` for genuinely structural splits\n(e.g. between a header section and a content section that constitute\ndifferent landmarks for assistive tech).\n\n  <Separator />                              // horizontal, decorative\n  <Separator orientation=\"vertical\" />       // vertical\n  <Separator decorative={false} />           // semantic separator\n\nNo Radix dep — the shadcn version of this primitive wraps\n`@radix-ui/react-separator` for the decorative-vs-semantic role\nswitch, but the same role/aria wiring is two lines of pure HTML.","props":[{"name":"orientation","type":"\"horizontal\" | \"vertical\"","required":false,"doc":"Visual orientation."},{"name":"decorative","type":"boolean","required":false,"doc":"When true (default), renders `role=\"none\"` so screen readers ignore the divider."}],"propsType":"SeparatorProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Separator"},{"name":"Skeleton","kind":"component","layer":"primitive","file":"src/primitives/Skeleton.tsx","module":"Skeleton","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Skeleton — gray pulsing placeholder for content that's loading.","doc":"Skeleton — gray pulsing placeholder for content that's loading.\n\nTailwind only, no JS animation. Matches consumer's `--muted` token.\nDefaults `aria-hidden=\"true\"` (it's an empty placeholder with no content\nworth announcing) — pass your own `aria-hidden` to override, or pass a\n`role` (e.g. `role=\"progressbar\"` for an indeterminate-progress skeleton)\nto opt the element back into the accessibility tree; an explicit `role`\nsuppresses the `aria-hidden` default since you're declaring it meaningful.\n\nCommon patterns are exposed as variants instead of asking each consumer to\nremember the right radius/aspect:\n  - `text` (single line)\n  - `paragraph` (multiple lines, decreasing widths)\n  - `avatar` (circle)\n  - `card` (rounded rect)\n  - `button` (pill, sized like Button default)\n\nFor custom shapes, use `variant=\"block\"` and pass your own className.","props":[],"propsType":"SkeletonProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SkeletonParagraph","kind":"component","layer":"primitive","file":"src/primitives/Skeleton.tsx","module":"Skeleton","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SkeletonParagraph — convenience wrapper that renders 3 text-skeletons with decreasing widths (90%, 100%, 65%) for the typical paragraph placeholder.","doc":null,"props":[{"name":"lines","type":"number","required":false,"doc":"Number of lines."}],"propsType":"SkeletonParagraphProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Spinner","kind":"component","layer":"primitive","file":"src/primitives/Spinner.tsx","module":"Spinner","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Spinner — minimal loading indicator.","doc":"Spinner — minimal loading indicator. Wraps the Loader2 icon.\n\nThree sizes; inherits `currentColor` so it picks up parent text color\nautomatically. Add `aria-label` if used in isolation (not paired with copy).","props":[{"name":"decorative","type":"boolean","required":false,"doc":"When true, applies aria-hidden — for spinners next to a text label"}],"propsType":"SpinnerProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MorphContainer","kind":"component","layer":"primitive","file":"src/primitives/StepperMorph.tsx","module":"StepperMorph","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`MorphContainer` — morphs its content between phases (e.g.","doc":"`MorphContainer` — morphs its content between phases (e.g. a composer bar\ngrowing into a stepped form, or back again) using a shared `layout`\nanimation keyed on `phaseKey`. Give each phase a stable `phaseKey`;\nchanging it hands off to `AnimatePresence` in `popLayout` mode so the old\nphase can exit while the new one measures and settles.\n\nReduced motion drops the scale/blur and shortens the fade to a plain\nopacity transition; `layout` is disabled entirely so the box resizes\nwithout an animated height tween.","props":[{"name":"phaseKey","type":"string","required":true,"doc":"A stable key for the current phase; changing it triggers the morph."},{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"className","type":"string","required":false,"doc":null}],"propsType":"MorphContainerProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"StaggerReveal","kind":"component","layer":"primitive","file":"src/primitives/StepperMorph.tsx","module":"StepperMorph","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"children","type":"React.ReactNode","required":true,"doc":null},{"name":"stagger","type":"number","required":false,"doc":"Seconds between each child's entrance."},{"name":"delay","type":"number","required":false,"doc":"Delay before the first child starts."},{"name":"className","type":"string","required":false,"doc":null},{"name":"role","type":"React.AriaRole","required":false,"doc":"ARIA passthrough — the group is often a radiogroup/group, so it must be able to carry its role + labelling (label or labelledby) onto the element."},{"name":"\"aria-label\"","type":"string","required":false,"doc":null},{"name":"\"aria-labelledby\"","type":"string","required":false,"doc":null}],"propsType":"StaggerRevealProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"BlurReveal","kind":"component","layer":"primitive","file":"src/primitives/StepperMorph.tsx","module":"StepperMorph","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`BlurReveal` — a one-shot blur-to-sharp entrance for a string of text, fired on mount.","doc":null,"props":[{"name":"text","type":"string","required":true,"doc":null},{"name":"className","type":"string","required":false,"doc":null},{"name":"duration","type":"number","required":false,"doc":"Seconds for the blur-to-sharp entrance."}],"propsType":"BlurRevealProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"WordReveal","kind":"component","layer":"primitive","file":"src/primitives/StepperMorph.tsx","module":"StepperMorph","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`WordReveal` — reveals `text` one word at a time on mount, each word rising 6px and sharpening from a 5px blur in sequence.","doc":null,"props":[{"name":"text","type":"string","required":true,"doc":null},{"name":"className","type":"string","required":false,"doc":null},{"name":"stagger","type":"number","required":false,"doc":"Seconds between each word."},{"name":"delay","type":"number","required":false,"doc":"Delay before the first word."}],"propsType":"WordRevealProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Switch","kind":"component","layer":"primitive","file":"src/primitives/Switch.tsx","module":"Switch","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.1.0","demoId":"switch","summary":"Switch — controlled boolean toggle.","doc":"Switch — controlled boolean toggle.\n\nWraps Radix's Switch.Root + Switch.Thumb with token-driven styling\n(`data-[state=checked]:bg-primary`, `data-[state=unchecked]:bg-input`),\nmatching the rest of pretty's interactive primitives. Pair with\n`<Label>` for the field caption.\n\n  <div className=\"flex items-center gap-3\">\n    <Switch id=\"notifications\" checked={on} onCheckedChange={setOn} />\n    <Label htmlFor=\"notifications\">Push notifications</Label>\n  </div>\n\nPretty's defaults match the canonical shadcn-style toggle (h-6 w-11\ntrack, h-5 w-5 thumb, 5px thumb travel) so no consumer override is\nneeded for the common case. Pass `size=\"sm\"` for dense surfaces\n(toolbars, table rows).","props":[{"name":"size","type":"keyof typeof SWITCH_SIZES","required":false,"doc":"Track/thumb scale."}],"propsType":"SwitchProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Switch"},{"name":"textRoleClass","kind":"const","layer":"primitive","file":"src/primitives/Text.tsx","module":"Text","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Text and Heading — type by ROLE, drawn from the theme's `--ui-text-*` variables (docs/THEMES.md \"Type roles\").","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"textToneClass","kind":"const","layer":"primitive","file":"src/primitives/Text.tsx","module":"Text","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Text","kind":"component","layer":"primitive","file":"src/primitives/Text.tsx","module":"Text","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Text and Heading — type by ROLE, drawn from the theme's `--ui-text-*` variables (docs/THEMES.md \"Type roles\").","doc":"Text and Heading — type by ROLE, drawn from the theme's `--ui-text-*` variables (docs/THEMES.md \"Type roles\").\n\nWHY. A page should name what a piece of text is (a page title, a card title, a caption, an overline) and let the\napp's theme decide its size, line height, weight, tracking and colour. Under `data-ui-theme=\"v2\"` the roles are\nExplainability v2's scale (20/28 page title, 14/20 card title, 13/20 body, 12/16 small, 11/16 overline); under `fe`\nthey are aisquare-fe's; with no theme they are the library's own steps (`heading`, `title`, `body`, `caption`,\n`eyebrow`), so nothing changes for a consumer that does not load a theme.\n\nPlain elements: no motion, no browser API, safe for the console entry.\n\n  <Heading level={1}>Dashboard</Heading>                        // h1, title-page\n  <Heading level={2} variant=\"title-card\">Needs you</Heading>   // h2 drawn as a card title\n  <Text variant=\"body-sm\" tone=\"tertiary\">Updated 2 min ago</Text>\n  <Text variant=\"overline\" as=\"div\">Rules</Text>\n\nThe heading LEVEL follows the page's outline; the VARIANT follows the look. Keep them separate: a card title is an\nh2 on a page and an h3 under a dialog's title, and draws the same in both.","props":[{"name":"variant","type":"TypeRole","required":false,"doc":"The type role."},{"name":"tone","type":"TextTone","required":false,"doc":"The text colour."},{"name":"as","type":"\"span\" | \"p\" | \"div\" | \"label\" | \"dt\" | \"dd\" | \"li\" | \"strong\" | \"em\" | \"small\" | \"time\"","required":false,"doc":"The element."}],"propsType":"TextProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Heading","kind":"component","layer":"primitive","file":"src/primitives/Text.tsx","module":"Text","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"level","type":"HeadingLevel","required":false,"doc":"The outline level (h1-h6)."},{"name":"variant","type":"TypeRole","required":false,"doc":"The look, when it differs from the level's default (h1 title-page, h2 title-section, h3+ title-card)."},{"name":"tone","type":"TextTone","required":false,"doc":"The text colour."}],"propsType":"HeadingProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"textareaVariants","kind":"variants","layer":"primitive","file":"src/primitives/Textarea.tsx","module":"Textarea","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Textarea — multi-line input primitive.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Textarea","kind":"component","layer":"primitive","file":"src/primitives/Textarea.tsx","module":"Textarea","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v0.2.0","demoId":"textarea","summary":"Textarea — multi-line input primitive.","doc":"Textarea — multi-line input primitive. Mirrors `<Input>`'s shape so a\nform composed of both reads as one family: same border treatment, same\nfocus ring, same disabled affordance, same size scale.\n\n  <Textarea placeholder=\"Notes\" />            // default\n  <Textarea variant=\"ghost\" />                // borderless, for inline edit\n  <Textarea size=\"sm\" rows={2} />\n\n`<Input>` and `<Textarea>` share the same variant + size names so a\nfield-grouping helper can pass through the prop blindly.\n\nWidth: the base is `w-full`, exactly matching `<Input>`. The consumer's\ncontainer dictates how wide the field renders — wrap in `max-w-md` for a\ntypical form field, `max-w-2xl` for a card-body description. Don't\nhardcode a fixed width on the primitive; it makes inline-edit surfaces\n(where parents own height + width) jam. Resize is vertical-only on\n`default` (`resize-y`) and disabled on `ghost` (`resize-none`); horizontal\nresize is intentionally omitted because it breaks layouts that rely on\nthe parent's width budget.","props":[],"propsType":"TextareaProps","variants":{"variants":{"variant":["default","ghost"],"size":["sm","default","lg"]},"defaults":{"variant":"default","size":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":"Textarea"},{"name":"themeToggleVariants","kind":"variants","layer":"primitive","file":"src/primitives/ThemeToggleButton.tsx","module":"ThemeToggleButton","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`<ThemeToggleButton>` — light/dark toggle wired to the existing `ThemeProvider`.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ThemeToggleButton","kind":"component","layer":"primitive","file":"src/primitives/ThemeToggleButton.tsx","module":"ThemeToggleButton","primary":true,"importPaths":["@aisquare/ui"],"category":"Primitives","since":"v1.7.0","demoId":"theme-toggle-button","summary":null,"doc":null,"props":[{"name":"\"aria-label\"","type":"string","required":false,"doc":"Override the accessible name."}],"propsType":"ThemeToggleButtonProps","variants":{"variants":{"variant":["rail","inline"],"size":["default","compact"]},"defaults":{"variant":"rail","size":"default"}},"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Toaster","kind":"component","layer":"primitive","file":"src/primitives/Toaster.tsx","module":"Toaster","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Toaster — wrap your app once.","doc":"Toaster — wrap your app once. Sonner under the hood, themed via CSS vars.\n\n  <Toaster /> // mount once near root\n\n  import { aiko } from \"aisquare-pretty\"\n  aiko.success(\"Saved.\")\n  aiko.error(\"Couldn't save. Try again.\")\n  aiko.loading(\"Saving\")  // returns id; resolve with aiko.success(id, {...})","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"aiko","kind":"const","layer":"primitive","file":"src/primitives/Toaster.tsx","module":"Toaster","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"`aiko` — voice-aligned toast helpers.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TooltipProvider","kind":"component","layer":"primitive","file":"src/primitives/Tooltip.tsx","module":"Tooltip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Tooltip — Radix tooltip with AISquare styling.","doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"Tooltip","kind":"component","layer":"primitive","file":"src/primitives/Tooltip.tsx","module":"Tooltip","primary":true,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"Tooltip — Radix tooltip with AISquare styling.","doc":"Tooltip — Radix tooltip with AISquare styling.\n\nUsage:\n\n  <TooltipProvider>\n    <Tooltip>\n      <TooltipTrigger asChild>\n        <Button>Hover me</Button>\n      </TooltipTrigger>\n      <TooltipContent>Some hint</TooltipContent>\n    </Tooltip>\n  </TooltipProvider>\n\nWrap your app once with `<TooltipProvider>` and reuse Tooltip everywhere.\n\nFor a single-prop tooltip that doesn't need the Root/Trigger/Content\ncomposition — and that adds truncate-gating, automatic aria-label\nbackfill, and its own self-contained Provider (no app-root setup\nrequired) — see `SimpleTooltip` below.","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"TooltipTrigger","kind":"component","layer":"primitive","file":"src/primitives/Tooltip.tsx","module":"Tooltip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"TooltipContent","kind":"component","layer":"primitive","file":"src/primitives/Tooltip.tsx","module":"Tooltip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"SimpleTooltip","kind":"component","layer":"primitive","file":"src/primitives/Tooltip.tsx","module":"Tooltip","primary":false,"importPaths":["@aisquare/ui"],"category":null,"since":null,"demoId":null,"summary":"SimpleTooltip — single-prop tooltip for callers who don't need the full `Tooltip`/`TooltipTrigger`/`TooltipContent` composition above.","doc":null,"props":[{"name":"label","type":"React.ReactNode","required":false,"doc":"Hint content."},{"name":"children","type":"React.ReactElement","required":true,"doc":"Exactly one hoverable / focusable trigger element."},{"name":"side","type":"React.ComponentProps<typeof TooltipPrimitive.Content>[\"side\"]","required":false,"doc":"Side of the trigger the bubble opens on."},{"name":"align","type":"React.ComponentProps<typeof TooltipPrimitive.Content>[\"align\"]","required":false,"doc":"Alignment along that side."},{"name":"sideOffset","type":"number","required":false,"doc":"Px gap between trigger and bubble."},{"name":"truncate","type":"boolean","required":false,"doc":"Only open when the trigger's rendered box is actually clipping its content — `scrollWidth > clientWidth` (single-line `truncate`) or `scrollHeight > clientHeight` (multi-line `line-clamp`), measured at hover/focus time."},{"name":"triggerWrapper","type":"boolean","required":false,"doc":"Wrap the trigger in an inline-flex `<span>`."},{"name":"delayDuration","type":"number","required":false,"doc":"Hover-open delay in ms for this SimpleTooltip's own internal Provider."},{"name":"contentClassName","type":"string","required":false,"doc":"Extra classes on the tooltip bubble, merged onto `TooltipContent`'s defaults."}],"propsType":"SimpleTooltipProps","variants":null,"hasStory":true,"hasTest":true,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialog","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.1.0","demoId":"alert-dialog","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogAction","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogCancel","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogContent","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogDescription","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogFooter","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogHeader","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogMedia","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogOverlay","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogPortal","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogTitle","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDialogTrigger","kind":"component","layer":"stock","file":"src/ui/alert-dialog.tsx","module":"alert-dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Alert","kind":"component","layer":"stock","file":"src/ui/alert.tsx","module":"alert","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Feedback","since":"v0.1.0","demoId":"alert","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertTitle","kind":"component","layer":"stock","file":"src/ui/alert.tsx","module":"alert","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AlertDescription","kind":"component","layer":"stock","file":"src/ui/alert.tsx","module":"alert","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"AspectRatio","kind":"component","layer":"stock","file":"src/ui/aspect-ratio.tsx","module":"aspect-ratio","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Layout & Data","since":"v0.2.0","demoId":"aspect-ratio","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Breadcrumb","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Navigation","since":"v0.2.0","demoId":"breadcrumb","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbList","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbItem","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbLink","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbPage","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbSeparator","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"BreadcrumbEllipsis","kind":"component","layer":"stock","file":"src/ui/breadcrumb.tsx","module":"breadcrumb","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Button","kind":"component","layer":"stock","file":"src/ui/button.tsx","module":"button","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.1.0","demoId":"button","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Button","stockAlternative":null},{"name":"buttonVariants","kind":"const","layer":"stock","file":"src/ui/button.tsx","module":"button","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Checkbox","kind":"component","layer":"stock","file":"src/ui/checkbox.tsx","module":"checkbox","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.1.0","demoId":"checkbox","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Checkbox","stockAlternative":null},{"name":"Collapsible","kind":"component","layer":"stock","file":"src/ui/collapsible.tsx","module":"collapsible","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Layout & Data","since":"v0.2.0","demoId":"collapsible","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollapsibleTrigger","kind":"component","layer":"stock","file":"src/ui/collapsible.tsx","module":"collapsible","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CollapsibleContent","kind":"component","layer":"stock","file":"src/ui/collapsible.tsx","module":"collapsible","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Command","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":"Command — the command-menu / combobox primitive (a thin shadcn-style wrapper over `cmdk`).","doc":"Command — the command-menu / combobox primitive (a thin shadcn-style\nwrapper over `cmdk`).\n\n`cmdk` gives filtering, full keyboard navigation (Up / Down / Enter /\nEsc), `aria-activedescendant`, `role=\"listbox\"` / `role=\"option\"`, and\ntypeahead out of the box — the exact a11y a hand-rolled member/option\nlist keeps getting wrong. This file re-themes the stock shadcn `Command`\nonto the library's tokens (`bg-popover` / `text-popover-foreground` /\n`bg-accent` / `text-muted-foreground` / `border-border`) and tags each\npart with a `data-slot` for styling hooks.\n\nIntentionally NOT exported from the top-level barrel — it is an\nimplementation primitive for `MemberPicker` (see issue #46). Reach for\nthe composed `MemberPicker` instead of wiring `Command` by hand.","props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandInput","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandList","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandEmpty","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandGroup","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandItem","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"CommandSeparator","kind":"component","layer":"stock","file":"src/ui/command.tsx","module":"command","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenu","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.2.0","demoId":"context-menu","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuTrigger","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuContent","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuItem","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuCheckboxItem","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuRadioItem","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuLabel","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuSeparator","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuShortcut","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuGroup","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuPortal","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuSub","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuSubContent","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuSubTrigger","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ContextMenuRadioGroup","kind":"component","layer":"stock","file":"src/ui/context-menu.tsx","module":"context-menu","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Dialog","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.1.0","demoId":"dialog","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogClose","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogContent","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogDescription","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogFooter","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogHeader","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogOverlay","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogPortal","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogTitle","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"DialogTrigger","kind":"component","layer":"stock","file":"src/ui/dialog.tsx","module":"dialog","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"HoverCard","kind":"component","layer":"stock","file":"src/ui/hover-card.tsx","module":"hover-card","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.2.0","demoId":"hover-card","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"HoverCardTrigger","kind":"component","layer":"stock","file":"src/ui/hover-card.tsx","module":"hover-card","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"HoverCardContent","kind":"component","layer":"stock","file":"src/ui/hover-card.tsx","module":"hover-card","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Input","kind":"component","layer":"stock","file":"src/ui/input.tsx","module":"input","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.2.0","demoId":"input","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Input","stockAlternative":null},{"name":"Label","kind":"component","layer":"stock","file":"src/ui/label.tsx","module":"label","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.1.0","demoId":"label","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Label","stockAlternative":null},{"name":"Menubar","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.2.0","demoId":"menubar","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarPortal","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarMenu","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarTrigger","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarContent","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarGroup","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarSeparator","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarLabel","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarItem","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarShortcut","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarCheckboxItem","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarRadioGroup","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarRadioItem","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarSub","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarSubTrigger","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"MenubarSubContent","kind":"component","layer":"stock","file":"src/ui/menubar.tsx","module":"menubar","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Pagination","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Navigation","since":"v0.2.0","demoId":"pagination","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationContent","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationLink","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":[{"name":"isActive","type":"boolean","required":false,"doc":null}],"propsType":"PaginationLinkProps","variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationItem","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationPrevious","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationNext","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PaginationEllipsis","kind":"component","layer":"stock","file":"src/ui/pagination.tsx","module":"pagination","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Popover","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.2.0","demoId":"popover","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverTrigger","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverContent","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverAnchor","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverHeader","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverTitle","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"PopoverDescription","kind":"component","layer":"stock","file":"src/ui/popover.tsx","module":"popover","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Progress","kind":"component","layer":"stock","file":"src/ui/progress.tsx","module":"progress","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Feedback","since":"v0.2.0","demoId":"progress","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"RadioGroup","kind":"component","layer":"stock","file":"src/ui/radio-group.tsx","module":"radio-group","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Forms","since":"v0.1.0","demoId":"radio-group","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"RadioGroupItem","kind":"component","layer":"stock","file":"src/ui/radio-group.tsx","module":"radio-group","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ScrollArea","kind":"component","layer":"stock","file":"src/ui/scroll-area.tsx","module":"scroll-area","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Layout & Data","since":"v0.2.0","demoId":"scroll-area","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ScrollBar","kind":"component","layer":"stock","file":"src/ui/scroll-area.tsx","module":"scroll-area","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Select","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Forms","since":"v0.1.0","demoId":"select","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectContent","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectGroup","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectItem","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectLabel","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectScrollDownButton","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectScrollUpButton","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectSeparator","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectTrigger","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SelectValue","kind":"component","layer":"stock","file":"src/ui/select.tsx","module":"select","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Separator","kind":"component","layer":"stock","file":"src/ui/separator.tsx","module":"separator","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.1.0","demoId":"separator","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Separator","stockAlternative":null},{"name":"Sheet","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Overlays","since":"v0.1.0","demoId":"sheet","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetTrigger","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetClose","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetContent","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetHeader","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetFooter","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetTitle","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"SheetDescription","kind":"component","layer":"stock","file":"src/ui/sheet.tsx","module":"sheet","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Slider","kind":"component","layer":"stock","file":"src/ui/slider.tsx","module":"slider","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Forms","since":"v0.1.0","demoId":"slider","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Switch","kind":"component","layer":"stock","file":"src/ui/switch.tsx","module":"switch","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.1.0","demoId":"switch","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Switch","stockAlternative":null},{"name":"Table","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Layout & Data","since":"v0.1.0","demoId":"table","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableHeader","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableBody","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableFooter","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableHead","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableRow","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableCell","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TableCaption","kind":"component","layer":"stock","file":"src/ui/table.tsx","module":"table","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Tabs","kind":"component","layer":"stock","file":"src/ui/tabs.tsx","module":"tabs","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Navigation","since":"v0.2.0","demoId":"tabs","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TabsList","kind":"component","layer":"stock","file":"src/ui/tabs.tsx","module":"tabs","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TabsTrigger","kind":"component","layer":"stock","file":"src/ui/tabs.tsx","module":"tabs","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"TabsContent","kind":"component","layer":"stock","file":"src/ui/tabs.tsx","module":"tabs","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"tabsListVariants","kind":"const","layer":"stock","file":"src/ui/tabs.tsx","module":"tabs","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Textarea","kind":"component","layer":"stock","file":"src/ui/textarea.tsx","module":"textarea","primary":true,"importPaths":["@aisquare/ui/stock"],"category":"Primitives","since":"v0.2.0","demoId":"textarea","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":"Textarea","stockAlternative":null},{"name":"ToggleGroup","kind":"component","layer":"stock","file":"src/ui/toggle-group.tsx","module":"toggle-group","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Forms","since":"v0.2.0","demoId":"toggle-group","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"ToggleGroupItem","kind":"component","layer":"stock","file":"src/ui/toggle-group.tsx","module":"toggle-group","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"Toggle","kind":"component","layer":"stock","file":"src/ui/toggle.tsx","module":"toggle","primary":true,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":"Forms","since":"v0.2.0","demoId":"toggle","summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null},{"name":"toggleVariants","kind":"const","layer":"stock","file":"src/ui/toggle.tsx","module":"toggle","primary":false,"importPaths":["@aisquare/ui","@aisquare/ui/stock"],"category":null,"since":null,"demoId":null,"summary":null,"doc":null,"props":null,"propsType":null,"variants":null,"hasStory":true,"hasTest":false,"brandAlternative":null,"stockAlternative":null}],"orphanExports":["UsePaginationItem","enrichedSuggestionConfidenceTier","ConnectorFileItem","CommandPaletteItem"]}
