sparkdesign 0.0.1 → 0.2.6
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 +279 -5
- package/cli/dist/commands/add.js +84 -0
- package/cli/dist/commands/diff.js +54 -0
- package/cli/dist/commands/init.js +96 -0
- package/cli/dist/commands/list.js +25 -0
- package/cli/dist/index.js +37 -0
- package/cli/dist/utils/config.js +53 -0
- package/cli/dist/utils/registry.js +34 -0
- package/cli/dist/utils/tokens.js +90 -0
- package/cli/dist/utils/transform.js +19 -0
- package/cli/registry/basic/alert-dialog.tsx +180 -0
- package/cli/registry/basic/avatar.tsx +120 -0
- package/cli/registry/basic/button.tsx +100 -0
- package/cli/registry/basic/collapse.tsx +94 -0
- package/cli/registry/basic/collapsible-card.tsx +230 -0
- package/cli/registry/basic/collapsible.tsx +21 -0
- package/cli/registry/basic/dropdown-menu.tsx +254 -0
- package/cli/registry/basic/icon-button.tsx +66 -0
- package/cli/registry/basic/icons-inline.tsx +206 -0
- package/cli/registry/basic/kbd.tsx +50 -0
- package/cli/registry/basic/option-list.tsx +125 -0
- package/cli/registry/basic/pagination.tsx +132 -0
- package/cli/registry/basic/progress.tsx +42 -0
- package/cli/registry/basic/radio-group.tsx +69 -0
- package/cli/registry/basic/resizable.tsx +67 -0
- package/cli/registry/basic/scrollbar.tsx +114 -0
- package/cli/registry/basic/select.tsx +177 -0
- package/cli/registry/basic/skeleton.tsx +33 -0
- package/cli/registry/basic/slider.tsx +55 -0
- package/cli/registry/basic/sonner.tsx +104 -0
- package/cli/registry/basic/spinner.tsx +17 -0
- package/cli/registry/basic/switch.tsx +49 -0
- package/cli/registry/basic/table.tsx +117 -0
- package/cli/registry/basic/tabs.tsx +85 -0
- package/cli/registry/basic/tag.tsx +161 -0
- package/cli/registry/basic/theme-from-document.ts +10 -0
- package/cli/registry/basic/toggle.tsx +223 -0
- package/cli/registry/basic/tooltip.tsx +80 -0
- package/cli/registry/basic/typography.tsx +201 -0
- package/cli/registry/chat/browser-use-part.tsx +166 -0
- package/cli/registry/chat/chat-input/chat-input-folder-selector.tsx +185 -0
- package/cli/registry/chat/chat-input/chat-input-model-switcher.tsx +131 -0
- package/cli/registry/chat/chat-input/chat-input-textarea.tsx +67 -0
- package/cli/registry/chat/chat-input/compound.tsx +334 -0
- package/cli/registry/chat/chat-input/context.tsx +189 -0
- package/cli/registry/chat/chat-input/folder-permission-dialog.tsx +61 -0
- package/cli/registry/chat/chat-input/index.tsx +123 -0
- package/cli/registry/chat/chat-input/types.ts +77 -0
- package/cli/registry/chat/chat-input/useAutoResizeTextarea.ts +20 -0
- package/cli/registry/chat/code-block-part.tsx +151 -0
- package/cli/registry/chat/file-attachment.tsx +44 -0
- package/cli/registry/chat/file-card.tsx +68 -0
- package/cli/registry/chat/file-review-part.tsx +259 -0
- package/cli/registry/chat/folder-button.tsx +169 -0
- package/cli/registry/chat/generated-images-grid.tsx +56 -0
- package/cli/registry/chat/generation-status-bar.tsx +72 -0
- package/cli/registry/chat/image-attachment.tsx +166 -0
- package/cli/registry/chat/image-generating.tsx +281 -0
- package/cli/registry/chat/markdown.tsx +146 -0
- package/cli/registry/chat/mermaid-part.tsx +90 -0
- package/cli/registry/chat/permission-card.tsx +178 -0
- package/cli/registry/chat/plan-part.tsx +168 -0
- package/cli/registry/chat/question-part.tsx +70 -0
- package/cli/registry/chat/queue-indicator.tsx +234 -0
- package/cli/registry/chat/reasoning-step.tsx +358 -0
- package/cli/registry/chat/related-prompts.tsx +91 -0
- package/cli/registry/chat/request.tsx +38 -0
- package/cli/registry/chat/response.tsx +271 -0
- package/cli/registry/chat/send-button.tsx +94 -0
- package/cli/registry/chat/sidebar-menu.tsx +177 -0
- package/cli/registry/chat/streaming-markdown-block.tsx +111 -0
- package/cli/registry/chat/suggestion-part.tsx +165 -0
- package/cli/registry/chat/task-part.tsx +109 -0
- package/cli/registry/chat/terminal-code-block-part.tsx +69 -0
- package/cli/registry/chat/thinking-indicator.tsx +91 -0
- package/cli/registry/chat/tool-invocation-card.tsx +132 -0
- package/cli/registry/chat/user-question/UserQuestionCard.tsx +198 -0
- package/cli/registry/chat/user-question/UserQuestionFooter.tsx +66 -0
- package/cli/registry/chat/user-question/UserQuestionHeader.tsx +64 -0
- package/cli/registry/chat/user-question/index.tsx +340 -0
- package/cli/registry/chat/user-question/types.ts +61 -0
- package/cli/registry/chat/user-question/useUserQuestionKeyboard.ts +127 -0
- package/cli/registry/chat/user-question/useUserQuestionState.ts +165 -0
- package/cli/registry/chat/user-question-answer.tsx +62 -0
- package/cli/registry/lib/file-icon-maps.ts +150 -0
- package/cli/registry/lib/use-mermaid-render.ts +76 -0
- package/cli/registry/lib/utils.ts +6 -0
- package/cli/registry/meta.json +1 -0
- package/cli/registry/tokens/scale.css +299 -0
- package/cli/registry/tokens/theme.css +633 -0
- 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/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/browser-use-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/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/question-part.d.ts +24 -0
- package/dist/registry/chat/queue-indicator.d.ts +27 -0
- package/dist/registry/chat/reasoning-step.d.ts +35 -0
- package/dist/registry/chat/related-prompts.d.ts +23 -0
- package/dist/registry/chat/request.d.ts +6 -0
- package/dist/registry/chat/response.d.ts +28 -0
- package/dist/registry/chat/send-button.d.ts +17 -0
- package/dist/registry/chat/sidebar-menu.d.ts +23 -0
- package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
- package/dist/registry/chat/suggestion-part.d.ts +28 -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-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/index.d.ts +7 -0
- package/dist/registry/chat/user-question/types.d.ts +52 -0
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +18 -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.css +307 -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 +13207 -0
- package/dist/src/components/chat/BrowserUsePart/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/CollapsibleCard/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/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/QuestionPart/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 +7 -0
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
- package/dist/src/components/chat/Request/index.d.ts +7 -0
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
- package/dist/src/components/chat/Response/index.d.ts +6 -0
- package/dist/src/components/chat/SendButton/index.d.ts +5 -0
- package/dist/src/components/chat/SidebarMenu/index.d.ts +4 -0
- package/dist/src/components/chat/SuggestionPart/index.d.ts +6 -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/UserQuestion/index.d.ts +5 -0
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
- package/dist/src/components/foundation/AlertDialog/index.d.ts +20 -0
- package/dist/src/components/foundation/Avatar/index.d.ts +7 -0
- package/dist/src/components/foundation/Button/index.d.ts +7 -0
- package/dist/src/components/foundation/Collapse/index.d.ts +15 -0
- package/dist/src/components/foundation/Collapsible/index.d.ts +7 -0
- package/dist/src/components/foundation/CollapsibleSection/index.d.ts +43 -0
- package/dist/src/components/foundation/DropdownMenu/index.d.ts +19 -0
- package/dist/src/components/foundation/EllipsisText/index.d.ts +53 -0
- package/dist/src/components/foundation/IconButton/index.d.ts +7 -0
- package/dist/src/components/foundation/Kbd/index.d.ts +7 -0
- package/dist/src/components/foundation/OptionList/index.d.ts +7 -0
- package/dist/src/components/foundation/Pagination/index.d.ts +7 -0
- package/dist/src/components/foundation/Progress/index.d.ts +7 -0
- package/dist/src/components/foundation/RadioGroup/index.d.ts +7 -0
- package/dist/src/components/foundation/Resizable/index.d.ts +7 -0
- package/dist/src/components/foundation/Scrollbar/index.d.ts +7 -0
- package/dist/src/components/foundation/Select/index.d.ts +17 -0
- package/dist/src/components/foundation/Skeleton/index.d.ts +7 -0
- package/dist/src/components/foundation/Slider/index.d.ts +7 -0
- package/dist/src/components/foundation/Spinner/index.d.ts +7 -0
- package/dist/src/components/foundation/Switch/index.d.ts +38 -0
- package/dist/src/components/foundation/Table/index.d.ts +7 -0
- package/dist/src/components/foundation/Tabs/index.d.ts +7 -0
- package/dist/src/components/foundation/Tag/index.d.ts +10 -0
- package/dist/src/components/foundation/Toast/index.d.ts +12 -0
- package/dist/src/components/foundation/Toggle/index.d.ts +7 -0
- package/dist/src/components/foundation/Tooltip/index.d.ts +21 -0
- package/dist/src/components/foundation/Typography/index.d.ts +7 -0
- package/dist/src/components/index.d.ts +136 -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 +21 -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.css +804 -0
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -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 +111 -9
- package/index.js +0 -5
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
Design Token System - Tailwind 原生映射
|
|
3
|
+
============================================
|
|
4
|
+
设计理念:5 种风格 → spacing/radius/font-size;颜色独立 data-theme。
|
|
5
|
+
结构(Good Taste):只覆盖差异,避免整段复制。
|
|
6
|
+
- :root + neutral:完整基准
|
|
7
|
+
- soft:仅覆盖 --radius(继承 spacing/font)
|
|
8
|
+
- compact + sharp:共用 spacing/font 块,再分别补 radius
|
|
9
|
+
- dense:独立完整 scale(与基准差异大)
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
/* ============================================
|
|
13
|
+
维度 1: 布局风格 (data-style)
|
|
14
|
+
============================================ */
|
|
15
|
+
|
|
16
|
+
/* --- Neutral: 平衡的标准 --- */
|
|
17
|
+
:root,
|
|
18
|
+
[data-style="neutral"] {
|
|
19
|
+
/* Tailwind 基准:h-7 = calc(var(--spacing)*7),需与 scale 对齐 */
|
|
20
|
+
--spacing: var(--spacing-1);
|
|
21
|
+
/* Spacing Scale (Tailwind 兼容) */
|
|
22
|
+
--spacing-0: 0;
|
|
23
|
+
--spacing-px: 1px;
|
|
24
|
+
--spacing-0\.5: 2px; /* 0.5 */
|
|
25
|
+
--spacing-1: 4px; /* 1 */
|
|
26
|
+
--spacing-1\.5: 6px; /* 1.5 */
|
|
27
|
+
--spacing-2: 8px; /* 2 */
|
|
28
|
+
--spacing-2\.5: 10px; /* 2.5 */
|
|
29
|
+
--spacing-3: 12px; /* 3 */
|
|
30
|
+
--spacing-3\.5: 14px; /* 3.5 */
|
|
31
|
+
--spacing-4: 16px; /* 4 */
|
|
32
|
+
--spacing-5: 20px; /* 5 */
|
|
33
|
+
--spacing-6: 24px; /* 6 */
|
|
34
|
+
--spacing-7: 28px; /* 7 */
|
|
35
|
+
--spacing-8: 32px; /* 8 */
|
|
36
|
+
--spacing-9: 36px; /* 9 */
|
|
37
|
+
--spacing-10: 40px; /* 10 */
|
|
38
|
+
--spacing-11: 44px; /* 11 */
|
|
39
|
+
--spacing-12: 48px; /* 12 */
|
|
40
|
+
--spacing-14: 56px; /* 14 */
|
|
41
|
+
--spacing-16: 64px; /* 16 */
|
|
42
|
+
--spacing-20: 80px; /* 20 */
|
|
43
|
+
--spacing-24: 96px; /* 24 */
|
|
44
|
+
--spacing-28: 112px; /* 28 */
|
|
45
|
+
--spacing-32: 128px; /* 32 */
|
|
46
|
+
--spacing-36: 144px; /* 36 */
|
|
47
|
+
--spacing-40: 160px; /* 40 */
|
|
48
|
+
--spacing-44: 176px; /* 44 */
|
|
49
|
+
--spacing-48: 192px; /* 48 */
|
|
50
|
+
--spacing-52: 208px; /* 52 */
|
|
51
|
+
--spacing-56: 224px; /* 56 */
|
|
52
|
+
--spacing-60: 240px; /* 60 */
|
|
53
|
+
--spacing-64: 256px; /* 64 */
|
|
54
|
+
--spacing-72: 288px; /* 72 */
|
|
55
|
+
--spacing-80: 320px; /* 80 */
|
|
56
|
+
--spacing-96: 384px; /* 96 */
|
|
57
|
+
|
|
58
|
+
/* Radius Scale (Tailwind 兼容),--radius 供 .rounded 在子树上解析 */
|
|
59
|
+
--radius-none: 0;
|
|
60
|
+
--radius-sm: 4px;
|
|
61
|
+
--radius-DEFAULT: 6px;
|
|
62
|
+
--radius-md: 6px;
|
|
63
|
+
--radius-lg: 8px;
|
|
64
|
+
--radius-xl: 12px;
|
|
65
|
+
--radius-2xl: 16px;
|
|
66
|
+
--radius-3xl: 24px;
|
|
67
|
+
--radius-full: 9999px;
|
|
68
|
+
--radius: var(--radius-DEFAULT);
|
|
69
|
+
|
|
70
|
+
/* Font Size Scale (Tailwind 兼容),行高/字号均为偶数 px */
|
|
71
|
+
--font-size-xs: 12px;
|
|
72
|
+
--font-size-xs--line-height: 16px;
|
|
73
|
+
--font-size-sm: 14px;
|
|
74
|
+
--font-size-sm--line-height: 20px;
|
|
75
|
+
--font-size-base: 14px;
|
|
76
|
+
--font-size-base--line-height: 20px;
|
|
77
|
+
--font-size-lg: 16px;
|
|
78
|
+
--font-size-lg--line-height: 24px;
|
|
79
|
+
--font-size-xl: 18px;
|
|
80
|
+
--font-size-xl--line-height: 24px;
|
|
81
|
+
--font-size-2xl: 20px;
|
|
82
|
+
--font-size-2xl--line-height: 24px;
|
|
83
|
+
--font-size-3xl: 24px;
|
|
84
|
+
--font-size-3xl--line-height: 28px;
|
|
85
|
+
--font-size-4xl: 30px;
|
|
86
|
+
--font-size-4xl--line-height: 32px;
|
|
87
|
+
--font-size-5xl: 36px;
|
|
88
|
+
--font-size-5xl--line-height: 36px;
|
|
89
|
+
--font-size-6xl: 48px;
|
|
90
|
+
--font-size-6xl--line-height: 1;
|
|
91
|
+
--font-size-7xl: 60px;
|
|
92
|
+
--font-size-7xl--line-height: 1;
|
|
93
|
+
--font-size-8xl: 72px;
|
|
94
|
+
--font-size-8xl--line-height: 1;
|
|
95
|
+
--font-size-9xl: 96px;
|
|
96
|
+
--font-size-9xl--line-height: 1;
|
|
97
|
+
|
|
98
|
+
/* Motion tokens */
|
|
99
|
+
--motion-duration-fast: 150ms;
|
|
100
|
+
--motion-duration-base: 200ms;
|
|
101
|
+
--motion-duration-slow: 300ms;
|
|
102
|
+
--motion-ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
|
|
103
|
+
--motion-ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
104
|
+
--motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* --- Compact / Sharp: 共用 scale(h-7/9/11=28/32/40,px-2/3/4 与高度同比例)--- */
|
|
108
|
+
[data-style="compact"],
|
|
109
|
+
[data-style="sharp"] {
|
|
110
|
+
--spacing: var(--spacing-1);
|
|
111
|
+
--spacing-0: 0;
|
|
112
|
+
--spacing-px: 1px;
|
|
113
|
+
--spacing-0\.5: 2px;
|
|
114
|
+
--spacing-1: 4px;
|
|
115
|
+
--spacing-1\.5: 6px;
|
|
116
|
+
--spacing-2: 8px;
|
|
117
|
+
--spacing-2\.5: 10px;
|
|
118
|
+
--spacing-3: 10px;
|
|
119
|
+
--spacing-3\.5: 12px;
|
|
120
|
+
--spacing-4: 14px;
|
|
121
|
+
--spacing-5: 20px;
|
|
122
|
+
--spacing-6: 24px;
|
|
123
|
+
--spacing-7: 28px;
|
|
124
|
+
--spacing-8: 32px;
|
|
125
|
+
--spacing-9: 32px;
|
|
126
|
+
--spacing-10: 40px;
|
|
127
|
+
--spacing-11: 40px;
|
|
128
|
+
--spacing-12: 48px;
|
|
129
|
+
--spacing-14: 56px;
|
|
130
|
+
--spacing-16: 64px;
|
|
131
|
+
--spacing-20: 80px;
|
|
132
|
+
--spacing-24: 96px;
|
|
133
|
+
--spacing-28: 112px;
|
|
134
|
+
--spacing-32: 128px;
|
|
135
|
+
--spacing-36: 144px;
|
|
136
|
+
--spacing-40: 160px;
|
|
137
|
+
--spacing-44: 176px;
|
|
138
|
+
--spacing-48: 192px;
|
|
139
|
+
--spacing-52: 208px;
|
|
140
|
+
--spacing-56: 224px;
|
|
141
|
+
--spacing-60: 240px;
|
|
142
|
+
--spacing-64: 256px;
|
|
143
|
+
--spacing-72: 288px;
|
|
144
|
+
--spacing-80: 320px;
|
|
145
|
+
--spacing-96: 384px;
|
|
146
|
+
|
|
147
|
+
--font-size-xs: 12px;
|
|
148
|
+
--font-size-xs--line-height: 16px;
|
|
149
|
+
--font-size-sm: 12px;
|
|
150
|
+
--font-size-sm--line-height: 20px;
|
|
151
|
+
--font-size-base: 14px;
|
|
152
|
+
--font-size-base--line-height: 20px;
|
|
153
|
+
--font-size-lg: 14px;
|
|
154
|
+
--font-size-lg--line-height: 24px;
|
|
155
|
+
--font-size-xl: 16px;
|
|
156
|
+
--font-size-xl--line-height: 24px;
|
|
157
|
+
--font-size-2xl: 18px;
|
|
158
|
+
--font-size-2xl--line-height: 24px;
|
|
159
|
+
--font-size-3xl: 22px;
|
|
160
|
+
--font-size-3xl--line-height: 28px;
|
|
161
|
+
--font-size-4xl: 28px;
|
|
162
|
+
--font-size-4xl--line-height: 32px;
|
|
163
|
+
--font-size-5xl: 34px;
|
|
164
|
+
--font-size-5xl--line-height: 36px;
|
|
165
|
+
--font-size-6xl: 44px;
|
|
166
|
+
--font-size-6xl--line-height: 1;
|
|
167
|
+
--font-size-7xl: 56px;
|
|
168
|
+
--font-size-7xl--line-height: 1;
|
|
169
|
+
--font-size-8xl: 64px;
|
|
170
|
+
--font-size-8xl--line-height: 1;
|
|
171
|
+
--font-size-9xl: 88px;
|
|
172
|
+
--font-size-9xl--line-height: 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-style="compact"] {
|
|
176
|
+
--radius-none: 0;
|
|
177
|
+
--radius-sm: 4px;
|
|
178
|
+
--radius-DEFAULT: 6px;
|
|
179
|
+
--radius-md: 6px;
|
|
180
|
+
--radius-lg: 8px;
|
|
181
|
+
--radius-xl: 10px;
|
|
182
|
+
--radius-2xl: 12px;
|
|
183
|
+
--radius-3xl: 16px;
|
|
184
|
+
--radius-full: 9999px;
|
|
185
|
+
--radius: var(--radius-DEFAULT);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* --- Soft: 舒适至上(继承 neutral spacing/font,圆角全量放大)--- */
|
|
189
|
+
[data-style="soft"] {
|
|
190
|
+
--radius-none: 0;
|
|
191
|
+
--radius-sm: 8px;
|
|
192
|
+
--radius-DEFAULT: 12px;
|
|
193
|
+
--radius-md: 12px;
|
|
194
|
+
--radius-lg: 16px;
|
|
195
|
+
--radius-xl: 20px;
|
|
196
|
+
--radius-2xl: 24px;
|
|
197
|
+
--radius-3xl: 28px;
|
|
198
|
+
--radius-full: 9999px;
|
|
199
|
+
--radius: var(--radius-DEFAULT);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* --- Sharp: 继承 compact scale,仅圆角 0 + 等宽字体 --- */
|
|
203
|
+
[data-style="sharp"] {
|
|
204
|
+
--radius-none: 0;
|
|
205
|
+
--radius-sm: 0;
|
|
206
|
+
--radius-DEFAULT: 0;
|
|
207
|
+
--radius-md: 0;
|
|
208
|
+
--radius-lg: 0;
|
|
209
|
+
--radius-xl: 0;
|
|
210
|
+
--radius-2xl: 0;
|
|
211
|
+
--radius-3xl: 0;
|
|
212
|
+
--radius-full: 0;
|
|
213
|
+
--radius: var(--radius-DEFAULT);
|
|
214
|
+
--font-sans: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
215
|
+
font-family: var(--font-sans);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* --- Dense: 信息密集(h-7/9/11=20/28/32,px-2/3/4 与高度同比例)--- */
|
|
219
|
+
[data-style="dense"] {
|
|
220
|
+
--spacing: var(--spacing-1);
|
|
221
|
+
--spacing-0: 0;
|
|
222
|
+
--spacing-px: 1px;
|
|
223
|
+
--spacing-0\.5: 2px;
|
|
224
|
+
--spacing-1: 4px;
|
|
225
|
+
--spacing-1\.5: 6px;
|
|
226
|
+
--spacing-2: 6px;
|
|
227
|
+
--spacing-2\.5: 8px;
|
|
228
|
+
--spacing-3: 8px;
|
|
229
|
+
--spacing-3\.5: 10px;
|
|
230
|
+
--spacing-4: 12px;
|
|
231
|
+
--spacing-5: 16px;
|
|
232
|
+
--spacing-6: 20px;
|
|
233
|
+
--spacing-7: 20px;
|
|
234
|
+
--spacing-8: 28px;
|
|
235
|
+
--spacing-9: 28px;
|
|
236
|
+
--spacing-10: 32px;
|
|
237
|
+
--spacing-11: 32px;
|
|
238
|
+
--spacing-12: 40px;
|
|
239
|
+
--spacing-14: 48px;
|
|
240
|
+
--spacing-16: 56px;
|
|
241
|
+
--spacing-20: 64px;
|
|
242
|
+
--spacing-24: 80px;
|
|
243
|
+
--spacing-28: 96px;
|
|
244
|
+
--spacing-32: 112px;
|
|
245
|
+
--spacing-36: 128px;
|
|
246
|
+
--spacing-40: 144px;
|
|
247
|
+
--spacing-44: 160px;
|
|
248
|
+
--spacing-48: 176px;
|
|
249
|
+
--spacing-52: 192px;
|
|
250
|
+
--spacing-56: 208px;
|
|
251
|
+
--spacing-60: 224px;
|
|
252
|
+
--spacing-64: 240px;
|
|
253
|
+
--spacing-72: 272px;
|
|
254
|
+
--spacing-80: 304px;
|
|
255
|
+
--spacing-96: 368px;
|
|
256
|
+
|
|
257
|
+
/* Radius Scale:偶数 */
|
|
258
|
+
--radius-none: 0;
|
|
259
|
+
--radius-sm: 2px;
|
|
260
|
+
--radius-DEFAULT: 4px;
|
|
261
|
+
--radius-md: 4px;
|
|
262
|
+
--radius-lg: 6px;
|
|
263
|
+
--radius-xl: 6px;
|
|
264
|
+
--radius-2xl: 8px;
|
|
265
|
+
--radius-3xl: 8px;
|
|
266
|
+
--radius-full: 9999px;
|
|
267
|
+
--radius: var(--radius-DEFAULT);
|
|
268
|
+
|
|
269
|
+
/* ChatInput 生成状态栏与输入框 overlap,dense 下缩小使文字到顶端/输入框顶端距离相等 */
|
|
270
|
+
--chat-status-overlap: 4px;
|
|
271
|
+
|
|
272
|
+
/* Font Size Scale:偶数 px,行高偶数 */
|
|
273
|
+
--font-size-xs: 10px;
|
|
274
|
+
--font-size-xs--line-height: 16px;
|
|
275
|
+
--font-size-sm: 12px;
|
|
276
|
+
--font-size-sm--line-height: 20px;
|
|
277
|
+
--font-size-base: 12px;
|
|
278
|
+
--font-size-base--line-height: 20px;
|
|
279
|
+
--font-size-lg: 14px;
|
|
280
|
+
--font-size-lg--line-height: 24px;
|
|
281
|
+
--font-size-xl: 14px;
|
|
282
|
+
--font-size-xl--line-height: 24px;
|
|
283
|
+
--font-size-2xl: 16px;
|
|
284
|
+
--font-size-2xl--line-height: 24px;
|
|
285
|
+
--font-size-3xl: 18px;
|
|
286
|
+
--font-size-3xl--line-height: 28px;
|
|
287
|
+
--font-size-4xl: 22px;
|
|
288
|
+
--font-size-4xl--line-height: 32px;
|
|
289
|
+
--font-size-5xl: 28px;
|
|
290
|
+
--font-size-5xl--line-height: 36px;
|
|
291
|
+
--font-size-6xl: 36px;
|
|
292
|
+
--font-size-6xl--line-height: 1;
|
|
293
|
+
--font-size-7xl: 44px;
|
|
294
|
+
--font-size-7xl--line-height: 1;
|
|
295
|
+
--font-size-8xl: 56px;
|
|
296
|
+
--font-size-8xl--line-height: 1;
|
|
297
|
+
--font-size-9xl: 72px;
|
|
298
|
+
--font-size-9xl--line-height: 1;
|
|
299
|
+
}
|