sparkdesign 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -111
- package/dist/_basePickBy-DnQN8w3y.js +151 -0
- package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
- package/dist/_baseUniq-B-N2NQ50.js +614 -0
- package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
- package/dist/arc-BQBhijZ6.js +83 -0
- package/dist/arc-mWQt0Yph.cjs +1 -0
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
- package/dist/channel-BQn0o8bs.js +5 -0
- package/dist/channel-DaN7XniJ.cjs +1 -0
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
- package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
- package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
- package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
- package/dist/clone-Cde_NQ8V.js +8 -0
- package/dist/clone-DCNjWuM2.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
- package/dist/graph-DIbblrZP.cjs +1 -0
- package/dist/graph-DPcK91G3.js +247 -0
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
- package/dist/katex.css +1 -0
- package/dist/layout-Byuh8f-J.cjs +1 -0
- package/dist/layout-CdLdvj1j.js +1335 -0
- package/dist/linear-C2Q_PI9B.js +259 -0
- package/dist/linear-C69aPBW1.cjs +1 -0
- package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
- package/dist/mermaid.core-gFR0XUlD.js +15300 -0
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
- package/dist/qoder-design.css +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
- package/dist/registry/basic/alert-dialog.d.ts +40 -0
- package/dist/registry/basic/avatar.d.ts +30 -0
- package/dist/registry/basic/button.d.ts +16 -0
- package/dist/registry/basic/collapse.d.ts +22 -0
- package/dist/registry/basic/collapsible-card.d.ts +34 -0
- package/dist/registry/basic/collapsible.d.ts +15 -0
- package/dist/registry/basic/dropdown-menu.d.ts +52 -0
- package/dist/registry/basic/icon-button.d.ts +12 -0
- package/dist/registry/basic/icons-inline.d.ts +51 -0
- package/dist/registry/basic/kbd.d.ts +23 -0
- package/dist/registry/basic/option-list.d.ts +16 -0
- package/dist/registry/basic/pagination.d.ts +33 -0
- package/dist/registry/basic/progress.d.ts +18 -0
- package/dist/registry/basic/radio-group.d.ts +25 -0
- package/dist/registry/basic/resizable.d.ts +318 -0
- package/dist/registry/basic/scrollbar.d.ts +12 -0
- package/dist/registry/basic/select.d.ts +35 -0
- package/dist/registry/basic/shimmering-text.d.ts +27 -0
- package/dist/registry/basic/sidebar-menu.d.ts +23 -0
- package/dist/registry/basic/skeleton.d.ts +10 -0
- package/dist/registry/basic/slider.d.ts +16 -0
- package/dist/registry/basic/sonner.d.ts +23 -0
- package/dist/registry/basic/spinner.d.ts +5 -0
- package/dist/registry/basic/switch.d.ts +20 -0
- package/dist/registry/basic/table.d.ts +18 -0
- package/dist/registry/basic/tabs.d.ts +29 -0
- package/dist/registry/basic/tag.d.ts +23 -0
- package/dist/registry/basic/theme-from-document.d.ts +10 -0
- package/dist/registry/basic/toggle.d.ts +29 -0
- package/dist/registry/basic/tooltip.d.ts +34 -0
- package/dist/registry/basic/typography.d.ts +76 -0
- package/dist/registry/chat/ask-user-part.d.ts +24 -0
- package/dist/registry/chat/browser-action-part.d.ts +28 -0
- package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
- package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
- package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
- package/dist/registry/chat/chat-input/compound.d.ts +97 -0
- package/dist/registry/chat/chat-input/context.d.ts +64 -0
- package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
- package/dist/registry/chat/chat-input/index.d.ts +34 -0
- package/dist/registry/chat/chat-input/types.d.ts +79 -0
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
- package/dist/registry/chat/code-block-part.d.ts +23 -0
- package/dist/registry/chat/file-attachment.d.ts +19 -0
- package/dist/registry/chat/file-card.d.ts +10 -0
- package/dist/registry/chat/file-review-part.d.ts +30 -0
- package/dist/registry/chat/folder-button.d.ts +20 -0
- package/dist/registry/chat/generated-images-grid.d.ts +15 -0
- package/dist/registry/chat/generation-status-bar.d.ts +19 -0
- package/dist/registry/chat/hint-banner.d.ts +28 -0
- package/dist/registry/chat/image-attachment.d.ts +19 -0
- package/dist/registry/chat/image-generating.d.ts +15 -0
- package/dist/registry/chat/markdown.d.ts +8 -0
- package/dist/registry/chat/mermaid-part.d.ts +17 -0
- package/dist/registry/chat/permission-card.d.ts +24 -0
- package/dist/registry/chat/plan-part.d.ts +30 -0
- package/dist/registry/chat/queue-indicator.d.ts +27 -0
- package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
- package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
- package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
- package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
- package/dist/registry/chat/related-prompts.d.ts +23 -0
- package/dist/registry/chat/response/compound.d.ts +25 -0
- package/dist/registry/chat/response/context.d.ts +9 -0
- package/dist/registry/chat/response/index.d.ts +15 -0
- package/dist/registry/chat/response/types.d.ts +99 -0
- package/dist/registry/chat/send-button.d.ts +17 -0
- package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
- package/dist/registry/chat/task-part.d.ts +28 -0
- package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
- package/dist/registry/chat/thinking-indicator.d.ts +14 -0
- package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
- package/dist/registry/chat/user-message.d.ts +6 -0
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
- package/dist/registry/chat/user-question/compound.d.ts +37 -0
- package/dist/registry/chat/user-question/context.d.ts +55 -0
- package/dist/registry/chat/user-question/index.d.ts +15 -0
- package/dist/registry/chat/user-question/types.d.ts +52 -0
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
- package/dist/registry/chat/user-question-answer.d.ts +13 -0
- package/dist/registry/lib/file-icon-maps.d.ts +20 -0
- package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
- package/dist/registry/lib/utils.d.ts +11 -0
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
- package/dist/scale/computed.css +103 -0
- package/dist/scale/config.css +110 -0
- package/dist/scale/index.css +30 -0
- package/dist/scale/presets/compact.css +30 -0
- package/dist/scale/presets/dense.css +64 -0
- package/dist/scale/presets/sharp.css +40 -0
- package/dist/scale/presets/soft.css +16 -0
- package/dist/scale.css +13 -0
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
- package/dist/spark-design.cjs.js +265 -0
- package/dist/spark-design.es.js +13486 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
- package/dist/src/components/basic/Avatar/index.d.ts +7 -0
- package/dist/src/components/basic/Button/index.d.ts +7 -0
- package/dist/src/components/basic/Collapse/index.d.ts +15 -0
- package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
- package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
- package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
- package/dist/src/components/basic/IconButton/index.d.ts +7 -0
- package/dist/src/components/basic/Kbd/index.d.ts +7 -0
- package/dist/src/components/basic/OptionList/index.d.ts +7 -0
- package/dist/src/components/basic/Pagination/index.d.ts +7 -0
- package/dist/src/components/basic/Progress/index.d.ts +7 -0
- package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
- package/dist/src/components/basic/Resizable/index.d.ts +7 -0
- package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
- package/dist/src/components/basic/Select/index.d.ts +17 -0
- package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
- package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
- package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
- package/dist/src/components/basic/Slider/index.d.ts +7 -0
- package/dist/src/components/basic/Spinner/index.d.ts +7 -0
- package/dist/src/components/basic/Switch/index.d.ts +38 -0
- package/dist/src/components/basic/Table/index.d.ts +7 -0
- package/dist/src/components/basic/Tabs/index.d.ts +7 -0
- package/dist/src/components/basic/Tag/index.d.ts +10 -0
- package/dist/src/components/basic/Toast/index.d.ts +12 -0
- package/dist/src/components/basic/Toggle/index.d.ts +7 -0
- package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
- package/dist/src/components/basic/Typography/index.d.ts +7 -0
- package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
- package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
- package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
- package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
- package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/FileCard/index.d.ts +3 -0
- package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
- package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
- package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
- package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
- package/dist/src/components/chat/Markdown/index.d.ts +7 -0
- package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
- package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
- package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
- package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
- package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
- package/dist/src/components/chat/Response/index.d.ts +16 -0
- package/dist/src/components/chat/SendButton/index.d.ts +5 -0
- package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
- package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
- package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
- package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
- package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
- package/dist/src/components/index.d.ts +138 -0
- package/dist/src/icons/context.d.ts +26 -0
- package/dist/src/icons/types.d.ts +18 -0
- package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
- package/dist/src/lib/file-icon.d.ts +16 -0
- package/dist/src/lib/i18n.d.ts +12 -0
- package/dist/src/lib/index.d.ts +10 -0
- package/dist/src/lib/motion.d.ts +22 -0
- package/dist/src/lib/utils.d.ts +11 -0
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
- package/dist/theme-base.css +270 -0
- package/dist/theme.css +17 -0
- package/dist/themes/dark-parchment.css +133 -0
- package/dist/themes/dark-qoder.css +133 -0
- package/dist/themes/light-parchment.css +124 -0
- package/dist/themes/light-qoder.css +132 -0
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
- package/dist/tokens/CLAUDE.md +305 -0
- package/dist/tokens/index.css +35 -0
- package/dist/tokens/scale/computed.css +103 -0
- package/dist/tokens/scale/config.css +110 -0
- package/dist/tokens/scale/index.css +30 -0
- package/dist/tokens/scale/presets/compact.css +30 -0
- package/dist/tokens/scale/presets/dense.css +64 -0
- package/dist/tokens/scale/presets/sharp.css +40 -0
- package/dist/tokens/scale/presets/soft.css +16 -0
- package/dist/tokens/scale.css +13 -0
- package/dist/tokens/scrollbar-utility.css +35 -0
- package/dist/tokens/theme-base.css +270 -0
- package/dist/tokens/theme.css +17 -0
- package/dist/tokens/themes/dark-parchment.css +133 -0
- package/dist/tokens/themes/dark-qoder.css +133 -0
- package/dist/tokens/themes/light-parchment.css +124 -0
- package/dist/tokens/themes/light-qoder.css +132 -0
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
- package/package.json +128 -19
- /package/{dist → cli/dist}/commands/add.js +0 -0
- /package/{dist → cli/dist}/commands/diff.js +0 -0
- /package/{dist → cli/dist}/commands/init.js +0 -0
- /package/{dist → cli/dist}/commands/list.js +0 -0
- /package/{dist → cli/dist}/index.js +0 -0
- /package/{dist → cli/dist}/utils/config.js +0 -0
- /package/{dist → cli/dist}/utils/registry.js +0 -0
- /package/{dist → cli/dist}/utils/tokens.js +0 -0
- /package/{dist → cli/dist}/utils/transform.js +0 -0
- /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
- /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
- /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
- /package/{registry → cli/registry}/basic/button.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
- /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
- /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
- /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
- /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
- /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
- /package/{registry → cli/registry}/basic/progress.tsx +0 -0
- /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
- /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
- /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
- /package/{registry → cli/registry}/basic/select.tsx +0 -0
- /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
- /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
- /package/{registry → cli/registry}/basic/slider.tsx +0 -0
- /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
- /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
- /package/{registry → cli/registry}/basic/switch.tsx +0 -0
- /package/{registry → cli/registry}/basic/table.tsx +0 -0
- /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
- /package/{registry → cli/registry}/basic/tag.tsx +0 -0
- /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
- /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
- /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
- /package/{registry → cli/registry}/basic/typography.tsx +0 -0
- /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
- /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
- /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
- /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
- /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
- /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
- /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
- /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/types.ts +0 -0
- /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
- /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
- /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
- /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
- /package/{registry → cli/registry}/lib/utils.ts +0 -0
- /package/{registry → cli/registry}/meta.json +0 -0
- /package/{registry → cli/registry}/tokens/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
- /package/{registry → cli/registry}/tokens/scale.css +0 -0
- /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
- /package/{registry → cli/registry}/tokens/theme.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (AlertDialogContentProps, AlertDialogActionProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 确认对话框,基于 Registry 单一来源;主库额外提供 AlertDialogMedia
|
|
4
|
+
* [POS]: components/foundation/AlertDialog - 从 registry 再导出 + Media 占位 + 注入 useThemeStyle
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/alert-dialog.tsx,主库注入 useThemeStyle 使 Portal 随 ThemeStyleProvider
|
|
8
|
+
* 2. AlertDialogMedia 为 registry 未提供的扩展,保留在主库薄实现
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import { AlertDialog as AlertDialogRoot, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel } from '../../../../registry/basic/alert-dialog';
|
|
12
|
+
export { AlertDialogRoot as AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
13
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<import(".").AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { AlertDialogContent };
|
|
15
|
+
export type { AlertDialogContentProps, AlertDialogActionProps } from '../../../../registry/basic/alert-dialog';
|
|
16
|
+
export type AlertDialogHeaderProps = React.ComponentPropsWithoutRef<typeof AlertDialogHeader>;
|
|
17
|
+
export type AlertDialogFooterProps = React.ComponentPropsWithoutRef<typeof AlertDialogFooter>;
|
|
18
|
+
export type AlertDialogMediaProps = React.HTMLAttributes<HTMLDivElement>;
|
|
19
|
+
declare const AlertDialogMedia: React.ForwardRefExoticComponent<AlertDialogMediaProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { AlertDialogMedia };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (AvatarProps, AvatarImageProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 头像,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Avatar - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount, avatarVariants, } from '../../../../registry/basic/avatar';
|
|
7
|
+
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps, AvatarBadgeProps, AvatarGroupProps, AvatarGroupCountProps, } from '../../../../registry/basic/avatar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ButtonProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 基础按钮,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Button - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Button, buttonVariants } from '../../../../registry/basic/button';
|
|
7
|
+
export type { ButtonProps } from '../../../../registry/basic/button';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (CollapseProps, CollapseItemProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 折叠面板,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Collapse - 从 registry 再导出
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/collapse.tsx,主库仅 re-export
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { Collapse, CollapseItem, CollapseTrigger, CollapseContent } from '../../../../registry/basic/collapse';
|
|
11
|
+
export { Collapse, CollapseItem, CollapseTrigger, CollapseContent };
|
|
12
|
+
export type CollapseProps = React.ComponentPropsWithoutRef<typeof Collapse>;
|
|
13
|
+
export type CollapseItemProps = React.ComponentPropsWithoutRef<typeof CollapseItem>;
|
|
14
|
+
export type CollapseTriggerProps = React.ComponentPropsWithoutRef<typeof CollapseTrigger>;
|
|
15
|
+
export type CollapseContentProps = React.ComponentPropsWithoutRef<typeof CollapseContent>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (Collapsible 受控/非受控 props)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - Radix Collapsible 原始组件,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Collapsible - 从 registry 再导出(单面板展开/收起)
|
|
5
|
+
* 与 Collapse(手风琴多面板)不同;与 CollapsibleSection(带标题/描述/滚动)不同。
|
|
6
|
+
*/
|
|
7
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, } from '../../../../registry/basic/collapsible';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (CollapsibleCardProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: components/basic/CollapsibleCard - 通用折叠卡片,从 registry/basic 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { CollapsibleCard, } from '../../../../registry/basic/collapsible-card';
|
|
7
|
+
export type { CollapsibleCardProps } from '../../../../registry/basic/collapsible-card';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (CollapsibleSectionProps) - 标题、描述、内容、折叠状态
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 可折叠区块(标题栏 + 动画展开/收起的内容区)
|
|
4
|
+
* [POS]: components/CollapsibleSection - 基础可折叠面板,被 TaskMonitor 等业务组件使用
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 文件逻辑变更时必须同步更新此 Header
|
|
8
|
+
* 2. 更新后必须上浮检查 L2(components/CLAUDE.md)、L1(qoder-design/CLAUDE.md)文档
|
|
9
|
+
* 3. Token 使用检查:所有颜色是否使用 token
|
|
10
|
+
* 4. 类型导出检查:CollapsibleSectionProps 是否完整导出
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactNode } from 'react';
|
|
13
|
+
export interface CollapsibleSectionProps {
|
|
14
|
+
/** 区块标题 */
|
|
15
|
+
title: string;
|
|
16
|
+
/** 展开时的描述文案(可选) */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** 展开时的内容区域 */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/** 是否展开 */
|
|
21
|
+
open: boolean;
|
|
22
|
+
/** 切换展开/收起 */
|
|
23
|
+
onToggle: () => void;
|
|
24
|
+
/** 是否为最后一项(最后一项无底部分割线) */
|
|
25
|
+
isLast?: boolean;
|
|
26
|
+
/** 自定义 className */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** 无障碍:内容区 id,不传则自动生成 */
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 内容区最大高度(px),超出时内部滚动并显示上下渐变遮罩。
|
|
32
|
+
* 不传则无高度限制、不产生内部滚动。
|
|
33
|
+
*/
|
|
34
|
+
contentMaxHeight?: number;
|
|
35
|
+
/**
|
|
36
|
+
* 吸底节点(如「查看全部」按钮)。与 contentMaxHeight 同时传入时,内容区为「可滚动列表 + 底部固定 footer」布局。
|
|
37
|
+
*/
|
|
38
|
+
footer?: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
export declare function CollapsibleSection({ title, description, children, open, onToggle, isLast, className, id: idProp, contentMaxHeight, footer, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare namespace CollapsibleSection {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (Radix DropdownMenu + 各子组件 props)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 下拉菜单,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/DropdownMenu - 从 registry 再导出,SubTrigger 注入 IconsProvider,Content 注入 useThemeStyle
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/dropdown-menu.tsx;主库 Content 注入 useThemeStyle 使 Portal 随 ThemeStyleProvider
|
|
8
|
+
* 2. SubTrigger 未传 subTriggerIcon 时使用 useIcon('arrowRight')
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubTrigger as RegistryDropdownMenuSubTrigger, DropdownMenuRadioGroup } from '../../../../registry/basic/dropdown-menu';
|
|
12
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<import("../../../../registry/basic/dropdown-menu").DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare function DropdownMenuSubTriggerWithIcon(props: React.ComponentPropsWithoutRef<typeof RegistryDropdownMenuSubTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<import("../../../../registry/basic/dropdown-menu").DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTriggerWithIcon as DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
16
|
+
export type DropdownMenuItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuItem>;
|
|
17
|
+
export type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<typeof RegistryDropdownMenuSubTrigger>;
|
|
18
|
+
export type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuSubContent>;
|
|
19
|
+
export type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<typeof DropdownMenuLabel>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (EllipsisTextProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 超长省略文本,溢出时 hover 显示 tooltip
|
|
4
|
+
* [POS]: components/foundation/EllipsisText
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 文件逻辑变更时必须同步更新此 Header
|
|
8
|
+
* 2. 更新后必须上浮检查 L2、L1 文档
|
|
9
|
+
* 3. Token 使用检查:所有样式使用 Tailwind 类名(设计 token)
|
|
10
|
+
* 4. 类型导出检查:EllipsisTextProps 是否完整导出
|
|
11
|
+
*
|
|
12
|
+
* 设计规范(Spark Design):
|
|
13
|
+
* - lines: 1 单行省略,>1 多行 -webkit-line-clamp
|
|
14
|
+
* - placement: top | bottom | left | right,仅溢出时显示 tooltip
|
|
15
|
+
* - 仅溢出时用 foundation Tooltip 组件展示气泡,样式与行为统一
|
|
16
|
+
*
|
|
17
|
+
* Theme 支持:
|
|
18
|
+
* - 由 Tooltip 内部 useThemeStyle 注入 data-style/data-theme
|
|
19
|
+
*/
|
|
20
|
+
import { type ReactNode, type CSSProperties } from 'react';
|
|
21
|
+
export interface EllipsisTextProps {
|
|
22
|
+
/** 要显示的文本内容 */
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* 最大显示行数,超出会显示省略号
|
|
26
|
+
* @default 1
|
|
27
|
+
*/
|
|
28
|
+
lines?: number;
|
|
29
|
+
/** 容器额外类名 */
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Tooltip 弹出方向
|
|
33
|
+
* @default 'top'
|
|
34
|
+
*/
|
|
35
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
36
|
+
/** Tooltip 内容额外类名 */
|
|
37
|
+
tooltipClassName?: string;
|
|
38
|
+
/** 自定义 tooltip 内容,默认使用 children */
|
|
39
|
+
tooltipContent?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* 是否禁用 tooltip
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** 容器行内样式 */
|
|
46
|
+
style?: CSSProperties;
|
|
47
|
+
/**
|
|
48
|
+
* 文本元素的标签类型
|
|
49
|
+
* @default 'span'
|
|
50
|
+
*/
|
|
51
|
+
as?: 'span' | 'div' | 'p';
|
|
52
|
+
}
|
|
53
|
+
export declare const EllipsisText: import("react").ForwardRefExoticComponent<EllipsisTextProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (IconButtonProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 图标按钮,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/IconButton - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { IconButton, iconButtonVariants } from '../../../../registry/basic/icon-button';
|
|
7
|
+
export type { IconButtonProps } from '../../../../registry/basic/icon-button';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (KbdProps, KbdGroupProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 键盘按键样式,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Kbd - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Kbd, KbdGroup } from '../../../../registry/basic/kbd';
|
|
7
|
+
export type { KbdProps, KbdGroupProps } from '../../../../registry/basic/kbd';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (OptionListProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 选项列表,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/OptionList - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { OptionList } from '../../../../registry/basic/option-list';
|
|
7
|
+
export type { OptionListProps, OptionItem } from '../../../../registry/basic/option-list';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (PaginationLinkProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 分页导航,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Pagination - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationEllipsis, } from '../../../../registry/basic/pagination';
|
|
7
|
+
export type { PaginationLinkProps, PaginationPreviousProps, PaginationNextProps, } from '../../../../registry/basic/pagination';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ProgressProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 进度条,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Progress - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Progress } from '../../../../registry/basic/progress';
|
|
7
|
+
export type { ProgressProps } from '../../../../registry/basic/progress';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (RadioGroupProps, RadioGroupItemProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 单选组,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/RadioGroup - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { RadioGroup, RadioGroupItem, radioGroupVariants, radioGroupItemVariants, } from '../../../../registry/basic/radio-group';
|
|
7
|
+
export type { RadioGroupProps, RadioGroupItemProps } from '../../../../registry/basic/radio-group';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ResizablePanelGroupProps | ResizablePanelProps | ResizableHandleProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 可调整面板,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Resizable - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle, } from '../../../../registry/basic/resizable';
|
|
7
|
+
export type { ResizablePanelGroupProps, ResizablePanelProps, ResizableHandleProps, } from '../../../../registry/basic/resizable';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ScrollbarProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 带美化滚动条的容器,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Scrollbar - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Scrollbar } from '../../../../registry/basic/scrollbar';
|
|
7
|
+
export type { ScrollbarProps, ScrollbarVisibility } from '../../../../registry/basic/scrollbar';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (SelectProps, SelectTriggerProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 下拉选择器,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Select - 从 registry 再导出,Content 注入 useThemeStyle 使 Portal 随 ThemeStyleProvider
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/select.tsx;主库 SelectContent 注入 useThemeStyle
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { Select, SelectGroup, SelectValue, SelectTrigger, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton } from '../../../../registry/basic/select';
|
|
11
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-select").SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
+
dataStyle?: string;
|
|
13
|
+
dataTheme?: string;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
16
|
+
export type { SelectTriggerProps } from '../../../../registry/basic/select';
|
|
17
|
+
export type { SelectProps, SelectValueProps, SelectContentProps, SelectLabelProps, SelectSeparatorProps, SelectGroupProps, SelectItemProps, } from '@radix-ui/react-select';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ShimmeringTextProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 带渐变闪烁效果的动画文本组件,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/basic/ShimmeringText - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { ShimmeringText } from '../../../../registry/basic/shimmering-text';
|
|
7
|
+
export type { ShimmeringTextProps } from '../../../../registry/basic/shimmering-text';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SidebarMenuProps as RegistrySidebarMenuProps, SidebarMenuItem, SidebarMenuItemAction } from '../../../../registry/basic/sidebar-menu';
|
|
2
|
+
export type { SidebarMenuItem, SidebarMenuItemAction };
|
|
3
|
+
export type SidebarMenuProps = Omit<RegistrySidebarMenuProps, 'moreIcon'>;
|
|
4
|
+
export declare const SidebarMenu: import("react").ForwardRefExoticComponent<SidebarMenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (SkeletonProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 骨架屏,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Skeleton - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Skeleton, skeletonVariants } from '../../../../registry/basic/skeleton';
|
|
7
|
+
export type { SkeletonProps } from '../../../../registry/basic/skeleton';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (SliderProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 滑块,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Slider - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Slider } from '../../../../registry/basic/slider';
|
|
7
|
+
export type { SliderProps } from '../../../../registry/basic/slider';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (SpinnerProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 加载指示器,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Spinner - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Spinner } from '../../../../registry/basic/spinner';
|
|
7
|
+
export type { SpinnerProps } from '../../../../registry/basic/spinner';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (SwitchProps) - toggle 用 registry;segment 主库保留(含 FunctionSwitch)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 布尔开关或分段切换
|
|
4
|
+
* [POS]: components/foundation/Switch
|
|
5
|
+
*
|
|
6
|
+
* variant=toggle:从 registry 再导出并包一层 data-style/data-theme。
|
|
7
|
+
* variant=segment:主库实现,默认图标用 registry icons-inline。
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import type { SwitchProps as RegistrySwitchProps } from '../../../../registry/basic/switch';
|
|
11
|
+
export type FunctionSwitchValue = 'code' | 'preview';
|
|
12
|
+
export type FunctionSwitchSize = 'sm' | 'md';
|
|
13
|
+
export interface SegmentOption {
|
|
14
|
+
value: string;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SwitchProps extends Omit<RegistrySwitchProps, 'size'> {
|
|
19
|
+
variant?: 'toggle' | 'segment';
|
|
20
|
+
size?: 'md' | 'lg';
|
|
21
|
+
options?: SegmentOption[];
|
|
22
|
+
value?: string;
|
|
23
|
+
defaultValue?: string;
|
|
24
|
+
onValueChange?: (value: string) => void;
|
|
25
|
+
segmentSize?: FunctionSwitchSize;
|
|
26
|
+
}
|
|
27
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
/** @deprecated 使用 <Switch variant="segment" /> 替代 */
|
|
29
|
+
export interface FunctionSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
30
|
+
size?: FunctionSwitchSize;
|
|
31
|
+
value?: FunctionSwitchValue;
|
|
32
|
+
defaultValue?: FunctionSwitchValue;
|
|
33
|
+
onValueChange?: (value: FunctionSwitchValue) => void;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** @deprecated 使用 <Switch variant="segment" value={...} onValueChange={...} /> 替代 */
|
|
37
|
+
declare function FunctionSwitch({ size, value, defaultValue, onValueChange, disabled, className, ...rest }: FunctionSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export { Switch, FunctionSwitch };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TableProps, TableHeaderProps 等)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 表格,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Table - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from '../../../../registry/basic/table';
|
|
7
|
+
export type { TableProps, TableHeaderProps, TableBodyProps, TableFooterProps, TableRowProps, TableHeadProps, TableCellProps, TableCaptionProps, } from '../../../../registry/basic/table';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 标签页,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Tabs - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, tabsTriggerVariants, } from '../../../../registry/basic/tabs';
|
|
7
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps, } from '../../../../registry/basic/tabs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TagProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 标签,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Tag - 从 registry 再导出
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/tag.tsx,主库仅 re-export
|
|
8
|
+
*/
|
|
9
|
+
export { Tag, tagVariants } from '../../../../registry/basic/tag';
|
|
10
|
+
export type { TagProps } from '../../../../registry/basic/tag';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ToasterProps as RegistryToasterProps } from '../../../../registry/basic/sonner';
|
|
2
|
+
export { toast } from 'sonner';
|
|
3
|
+
export type ToasterProps = RegistryToasterProps & {
|
|
4
|
+
/** 显式传入 data-style,优先于 useThemeStyle */
|
|
5
|
+
dataStyle?: string;
|
|
6
|
+
/** 显式传入 data-theme,优先于 useThemeStyle */
|
|
7
|
+
dataTheme?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function Toaster({ theme, toastOptions, dataStyle: dataStyleProp, dataTheme: dataThemeProp, ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace Toaster {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (ToggleProps, ToggleGroupProps, ToggleGroupItemProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - Toggle / ToggleGroup,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Toggle - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants, } from '../../../../registry/basic/toggle';
|
|
7
|
+
export type { ToggleProps, ToggleGroupProps, ToggleGroupItemProps, } from '../../../../registry/basic/toggle';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TooltipProps,兼容 placement 与 side)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 工具提示,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Tooltip - 从 registry 再导出并兼容 placement
|
|
5
|
+
*
|
|
6
|
+
* [PROTOCOL]:
|
|
7
|
+
* 1. 实现来自根目录 registry/basic/tooltip.tsx;主库注入 useThemeStyle 使 Portal 随 ThemeStyleProvider
|
|
8
|
+
*/
|
|
9
|
+
import { TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent } from '../../../../registry/basic/tooltip';
|
|
10
|
+
import type { TooltipProps as RegistryTooltipProps } from '../../../../registry/basic/tooltip';
|
|
11
|
+
export { TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent };
|
|
12
|
+
/** 对外 API:支持 placement(兼容旧用法)与 side(与 registry 一致) */
|
|
13
|
+
export interface TooltipProps extends Omit<RegistryTooltipProps, 'side'> {
|
|
14
|
+
/** 弹出方向,与 side 二选一;推荐使用 side */
|
|
15
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
16
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
17
|
+
}
|
|
18
|
+
export declare function Tooltip({ placement, side, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare namespace Tooltip {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (Typography*Props)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 排版组件,基于 Registry 单一来源
|
|
4
|
+
* [POS]: components/foundation/Typography - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyP, TypographyBlockquote, TypographyTable, TypographyList, TypographyInlineCode, TypographyLead, TypographyLarge, TypographySmall, TypographyMuted, } from '../../../../registry/basic/typography';
|
|
7
|
+
export type { TypographyH1Props, TypographyH2Props, TypographyH3Props, TypographyH4Props, TypographyPProps, TypographyBlockquoteProps, TypographyTableProps, TypographyListProps, TypographyInlineCodeProps, TypographyLeadProps, TypographyLargeProps, TypographySmallProps, TypographyMutedProps, } from '../../../../registry/basic/typography';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AskUserPartProps as RegistryAskUserPartProps } from '../../../../registry/chat/ask-user-part';
|
|
2
|
+
export type AskUserPartProps = Omit<RegistryAskUserPartProps, 'headerIcon'>;
|
|
3
|
+
export declare function AskUserPart(props: AskUserPartProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace AskUserPart {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BrowserActionPartProps as RegistryBrowserActionPartProps, BrowserActionStatus } from '../../../../registry/chat/browser-action-part';
|
|
2
|
+
export type { BrowserActionStatus };
|
|
3
|
+
export type BrowserActionPartProps = Omit<RegistryBrowserActionPartProps, 'normalIcon' | 'failedIcon' | 'skippedIcon'>;
|
|
4
|
+
export declare function BrowserActionPart(props: BrowserActionPartProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace BrowserActionPart {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ChatInputRootProps } from '../../../../registry/chat/chat-input/context';
|
|
2
|
+
import { type ChatInputProps as RegistryChatInputProps, ChatInputAbove, ChatInputBox, ChatInputAttachments, ChatInputInput, ChatInputActions, ChatInputActionsLeft, ChatInputActionsRight, ChatInputExpandButton, ChatInputFolderButton, ChatInputMoreButton, ChatInputFooterLeft } from '../../../../registry/chat/chat-input';
|
|
3
|
+
export type ChatInputProps = Omit<RegistryChatInputProps, 'addLargeIcon' | 'folderIcon' | 'folderOpenIcon' | 'historyIcon' | 'arrowDownIcon' | 'subMenuArrowIcon' | 'folderFillIcon' | 'closeIcon'>;
|
|
4
|
+
export type { FolderPermissionConfig, GenerationStatusConfig, FooterLeftModelSwitchConfig, FooterLeftModelSwitchItem, ChatInputRootProps, ChatInputAboveProps, ChatInputBoxProps, ChatInputAttachmentsProps, ChatInputInputProps, ChatInputActionsProps, ChatInputActionsLeftProps, ChatInputActionsRightProps, ChatInputExpandButtonProps, } from '../../../../registry/chat/chat-input';
|
|
5
|
+
/** 复合用法下的 Root:注入 IconsProvider 图标(含 subMenuArrowIcon、folderFillIcon、closeIcon),使 FolderButton 与菜单图标随图标库切换 */
|
|
6
|
+
declare function ChatInputRootWithIcons(props: ChatInputRootProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace ChatInputRootWithIcons {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
declare function ChatInputSendButtonWithIcons(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace ChatInputSendButtonWithIcons {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ChatInput: import("react").ForwardRefExoticComponent<ChatInputProps & import("react").RefAttributes<HTMLTextAreaElement>> & {
|
|
15
|
+
Root: typeof ChatInputRootWithIcons;
|
|
16
|
+
Above: typeof ChatInputAbove;
|
|
17
|
+
Box: typeof ChatInputBox;
|
|
18
|
+
Attachments: typeof ChatInputAttachments;
|
|
19
|
+
Input: import("react").ForwardRefExoticComponent<Omit<import(".").ChatInputInputProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
20
|
+
Actions: typeof ChatInputActions;
|
|
21
|
+
ActionsLeft: typeof ChatInputActionsLeft;
|
|
22
|
+
ActionsRight: typeof ChatInputActionsRight;
|
|
23
|
+
ExpandButton: typeof ChatInputExpandButton;
|
|
24
|
+
FolderButton: typeof ChatInputFolderButton;
|
|
25
|
+
MoreButton: typeof ChatInputMoreButton;
|
|
26
|
+
SendButton: typeof ChatInputSendButtonWithIcons;
|
|
27
|
+
FooterLeft: typeof ChatInputFooterLeft;
|
|
28
|
+
};
|
|
29
|
+
export { ChatInputRootWithIcons as ChatInputRoot, ChatInputAbove, ChatInputBox, ChatInputAttachments, ChatInputInput, ChatInputActions, ChatInputActionsLeft, ChatInputActionsRight, ChatInputExpandButton, ChatInputFolderButton, ChatInputMoreButton, ChatInputSendButtonWithIcons as ChatInputSendButton, ChatInputFooterLeft, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CodeBlockPartProps as RegistryCodeBlockPartProps, CodeBlockDiffType } from '../../../../registry/chat/code-block-part';
|
|
2
|
+
export type { CodeBlockDiffType };
|
|
3
|
+
export type CodeBlockPartProps = RegistryCodeBlockPartProps;
|
|
4
|
+
export declare function CodeBlockPart(props: CodeBlockPartProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace CodeBlockPart {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FileAttachmentProps as RegistryFileAttachmentProps } from '../../../../registry/chat/file-attachment';
|
|
2
|
+
export type FileAttachmentProps = Omit<RegistryFileAttachmentProps, 'getFileIcon'>;
|
|
3
|
+
export declare const FileAttachment: import("react").ForwardRefExoticComponent<FileAttachmentProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FileCardProps as RegistryFileCardProps } from '../../../../registry/chat/file-card';
|
|
2
|
+
export type FileCardProps = Omit<RegistryFileCardProps, 'getFileIcon'>;
|
|
3
|
+
export declare const FileCard: import("react").ForwardRefExoticComponent<FileCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FileReviewPartProps as RegistryFileReviewPartProps, FileReviewFile } from '../../../../registry/chat/file-review-part';
|
|
2
|
+
export type { FileReviewFile };
|
|
3
|
+
export type FileReviewPartProps = Omit<RegistryFileReviewPartProps, 'headerIcon' | 'acceptIcon' | 'rejectIcon'>;
|
|
4
|
+
export declare function FileReviewPart(props: FileReviewPartProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace FileReviewPart {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { folderButtonVariants } from '../../../../registry/chat/folder-button';
|
|
2
|
+
import type { FolderButtonProps as RegistryFolderButtonProps } from '../../../../registry/chat/folder-button';
|
|
3
|
+
export type FolderButtonProps = Omit<RegistryFolderButtonProps, 'folderIcon' | 'folderFillIcon' | 'arrowRightIcon' | 'closeIcon'>;
|
|
4
|
+
export declare const FolderButton: import("react").ForwardRefExoticComponent<FolderButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { folderButtonVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (GeneratedImagesGridProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 多图网格
|
|
4
|
+
* [POS]: components/chat/GeneratedImagesGrid - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { GeneratedImagesGrid } from '../../../../registry/chat/generated-images-grid';
|
|
7
|
+
export type { GeneratedImagesGridProps } from '../../../../registry/chat/generated-images-grid';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (GenerationStatusBarProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 生成状态条
|
|
4
|
+
* [POS]: components/chat/GenerationStatusBar - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { GenerationStatusBar } from '../../../../registry/chat/generation-status-bar';
|
|
7
|
+
export type { GenerationStatusBarProps } from '../../../../registry/chat/generation-status-bar';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HintBannerProps } from '../../../../registry/chat/hint-banner';
|
|
2
|
+
export type { HintBannerProps };
|
|
3
|
+
export declare function HintBanner(props: Omit<HintBannerProps, 'closeIcon' | 'arrowDownSIcon' | 'suggestionIcon'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace HintBanner {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ImageAttachmentProps as RegistryImageAttachmentProps } from '../../../../registry/chat/image-attachment';
|
|
2
|
+
export type ImageAttachmentProps = Omit<RegistryImageAttachmentProps, 'closeIcon' | 'closeLargeIcon'>;
|
|
3
|
+
export declare const ImageAttachment: import("react").ForwardRefExoticComponent<ImageAttachmentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ImageGeneratingProps as RegistryImageGeneratingProps } from '../../../../registry/chat/image-generating';
|
|
2
|
+
export type ImageGeneratingProps = Omit<RegistryImageGeneratingProps, 'sparklingIcon'>;
|
|
3
|
+
export declare function ImageGenerating(props: ImageGeneratingProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace ImageGenerating {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MARKDOWN_DEMO_CONTENT = "# What is Qoder Work\n\n**Qoder Work** is Anthropic\u2019s AI assistant that works alongside you in the same workspace. It\u2019s not just chat\u2014it actually participates in docs, code, and workflows as a real **coworker**.\n\n## Core capabilities\n\n- **Context-aware**: Understands your needs from open files and the current project\n- **Multimodal**: Handles text, code, diagrams, and structured output\n- **Executable**: Runs code and tools in a controlled environment, from $0 \\rightarrow 1$\n\n---\n\n## Why \u201CCowork\u201D\n\n> Traditional conversational AI is more like \u201Cadvice over the shoulder\u201D\u2014you describe the problem, it suggests steps. \n> Cowork aims to **sit at the same table**: edit docs together, write code together, move tasks forward together.\n\nUsing a blockquote like this separates \u201Cthinking / context\u201D from \u201Cfinal answer\u201D and keeps long replies easy to scan.\n\n### How it differs from regular Claude\n\n| Dimension | Regular Claude | Qoder Work |\n|-----------|----------------------|--------------------------------|\n| Mode | Turn-by-turn Q&A | Ongoing edit in one workspace |\n| Context | Mostly the thread | Docs, code, and project |\n| Output | Text and code blocks | Direct edits in your files |\n\nThe table above is **responsive**: on narrow screens it scrolls horizontally via `overflow-x: auto` (inline code here) so the layout doesn\u2019t break.\n\n### Typical use cases (ordered list)\n\n1. **Clarify requirements**: Turn PRDs or notes into concrete, executable steps\n2. **Code together**: Complete, refactor, or fix bugs in real projects instead of \u201Cpaste an example\u201D\n3. **Docs and knowledge**: Draft specs, API docs, meeting notes\n4. **Task flow**: From idea to deliverable, $\\frac{idea}{time} \\rightarrow deliverable$\n\n---\n\n## What happens in a session (H4 subheadings)\n\n#### Execution-log style (H4 / H5)\n\nUse smaller weight and muted color so \u201Cprocess\u201D doesn\u2019t compete with the main answer.\n\n##### View steps (H5)\n\n- [x] Permission and context checks\n- [x] Resolve workspace path and open files\n- [ ] Generate or edit according to your instructions\n\nAbove is a **task list**: checked = done, unchecked = in progress\u2014good for steps and checklists.\n\n---\n\n## Code and math examples\n\nInline code like `cowork.plan()` and `cowork.edit(file, diff)` sits in the sentence; fenced code keeps monospace and line height for readability:\n\n```python\n# Qoder Work concept (pseudo-code)\ndef cowork_session(context: WorkspaceContext, user_goal: str):\n plan = cowork.plan(goal=user_goal, context=context)\n for step in plan.steps:\n if step.kind == \"edit_file\":\n cowork.edit(step.target, step.diff)\n elif step.kind == \"run_command\":\n cowork.run(step.command, cwd=context.root)\n return cowork.summary()\n```\n\nInline math: from idea to delivery can be written as $\\mathbb{E}[delivery] = f(idea, context, time)$. \nDisplay math (when KaTeX is enabled) can be centered and on its own line for longer derivations.\n\n---\n\n## Summary\n\n- Use **H1** only for the main title; **H2 / H3** for sections; **H4\u2013H6** for steps or log-style subheadings.\n- **Blockquotes** for \u201Cthinking / premise\u201D; body text for the actual answer.\n- **Task lists** for progress and checklists; **tables** for structured comparison; **code** and **math** for clarity and rigor.\n\n*Qoder Work is designed so the AI moves from \u201Cthe other end of the chat\u201D into \u201Cthis file and this project you\u2019re editing\u201D\u2014as a real Coworker.*\n";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (MarkdownBodyProps)
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - Markdown 渲染
|
|
4
|
+
* [POS]: components/chat/Markdown - 从 registry 再导出
|
|
5
|
+
*/
|
|
6
|
+
export { MarkdownBody } from '../../../../registry/chat/markdown';
|
|
7
|
+
export type { MarkdownBodyProps } from '../../../../registry/chat/markdown';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MermaidPartProps as RegistryMermaidPartProps } from '../../../../registry/chat/mermaid-part';
|
|
2
|
+
export type MermaidPartProps = Omit<RegistryMermaidPartProps, 'headerIcon' | 'dataStyle'>;
|
|
3
|
+
export declare function MermaidPart(props: MermaidPartProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace MermaidPart {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PermissionCardProps as RegistryPermissionCardProps, PermissionCardAction } from '../../../../registry/chat/permission-card';
|
|
2
|
+
export type { PermissionCardAction };
|
|
3
|
+
export type PermissionCardProps = Omit<RegistryPermissionCardProps, 'closeIcon' | 'warningIcon' | 'expandLabel' | 'collapseLabel' | 'commaLabel'>;
|
|
4
|
+
export declare const PermissionCard: import("react").ForwardRefExoticComponent<PermissionCardProps & import("react").RefAttributes<HTMLDivElement>>;
|