sparkdesign 0.4.1 → 0.4.3
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 +112 -204
- package/{cli/dist → dist}/commands/add.js +11 -2
- package/package.json +19 -126
- package/{cli/registry → registry}/chat/markdown.tsx +1 -1
- package/{cli/registry → registry}/chat/tool-invocation-card.tsx +5 -5
- package/registry/meta.json +750 -0
- package/cli/registry/meta.json +0 -1
- package/dist/_basePickBy-DnQN8w3y.js +0 -151
- package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
- package/dist/_baseUniq-B-N2NQ50.js +0 -614
- package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
- package/dist/arc-BQBhijZ6.js +0 -83
- package/dist/arc-mWQt0Yph.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
- package/dist/channel-BQn0o8bs.js +0 -5
- package/dist/channel-DaN7XniJ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
- package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
- package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
- package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
- package/dist/clone-Cde_NQ8V.js +0 -8
- package/dist/clone-DCNjWuM2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
- 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 +0 -267
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
- package/dist/graph-DIbblrZP.cjs +0 -1
- package/dist/graph-DPcK91G3.js +0 -247
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
- package/dist/katex.css +0 -1
- package/dist/layout-Byuh8f-J.cjs +0 -1
- package/dist/layout-CdLdvj1j.js +0 -1335
- package/dist/linear-C2Q_PI9B.js +0 -259
- package/dist/linear-C69aPBW1.cjs +0 -1
- package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
- package/dist/mermaid.core-gFR0XUlD.js +0 -15300
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
- package/dist/qoder-design.css +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
- package/dist/registry/basic/alert-dialog.d.ts +0 -40
- package/dist/registry/basic/avatar.d.ts +0 -30
- package/dist/registry/basic/button.d.ts +0 -16
- package/dist/registry/basic/collapse.d.ts +0 -22
- package/dist/registry/basic/collapsible-card.d.ts +0 -34
- package/dist/registry/basic/collapsible.d.ts +0 -15
- package/dist/registry/basic/dropdown-menu.d.ts +0 -52
- package/dist/registry/basic/icon-button.d.ts +0 -12
- package/dist/registry/basic/icons-inline.d.ts +0 -51
- package/dist/registry/basic/kbd.d.ts +0 -23
- package/dist/registry/basic/option-list.d.ts +0 -16
- package/dist/registry/basic/pagination.d.ts +0 -33
- package/dist/registry/basic/progress.d.ts +0 -18
- package/dist/registry/basic/radio-group.d.ts +0 -25
- package/dist/registry/basic/resizable.d.ts +0 -318
- package/dist/registry/basic/scrollbar.d.ts +0 -12
- package/dist/registry/basic/select.d.ts +0 -35
- package/dist/registry/basic/shimmering-text.d.ts +0 -27
- package/dist/registry/basic/sidebar-menu.d.ts +0 -23
- package/dist/registry/basic/skeleton.d.ts +0 -10
- package/dist/registry/basic/slider.d.ts +0 -16
- package/dist/registry/basic/sonner.d.ts +0 -23
- package/dist/registry/basic/spinner.d.ts +0 -5
- package/dist/registry/basic/switch.d.ts +0 -20
- package/dist/registry/basic/table.d.ts +0 -18
- package/dist/registry/basic/tabs.d.ts +0 -29
- package/dist/registry/basic/tag.d.ts +0 -23
- package/dist/registry/basic/theme-from-document.d.ts +0 -10
- package/dist/registry/basic/toggle.d.ts +0 -29
- package/dist/registry/basic/tooltip.d.ts +0 -34
- package/dist/registry/basic/typography.d.ts +0 -76
- package/dist/registry/chat/ask-user-part.d.ts +0 -24
- package/dist/registry/chat/browser-action-part.d.ts +0 -28
- package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +0 -22
- package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +0 -12
- package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +0 -9
- package/dist/registry/chat/chat-input/compound.d.ts +0 -97
- package/dist/registry/chat/chat-input/context.d.ts +0 -64
- package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +0 -11
- package/dist/registry/chat/chat-input/index.d.ts +0 -34
- package/dist/registry/chat/chat-input/types.d.ts +0 -79
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +0 -7
- package/dist/registry/chat/code-block-part.d.ts +0 -23
- package/dist/registry/chat/file-attachment.d.ts +0 -19
- package/dist/registry/chat/file-card.d.ts +0 -10
- package/dist/registry/chat/file-review-part.d.ts +0 -30
- package/dist/registry/chat/folder-button.d.ts +0 -20
- package/dist/registry/chat/generated-images-grid.d.ts +0 -15
- package/dist/registry/chat/generation-status-bar.d.ts +0 -19
- package/dist/registry/chat/hint-banner.d.ts +0 -28
- package/dist/registry/chat/image-attachment.d.ts +0 -19
- package/dist/registry/chat/image-generating.d.ts +0 -15
- package/dist/registry/chat/markdown.d.ts +0 -8
- package/dist/registry/chat/mermaid-part.d.ts +0 -17
- package/dist/registry/chat/permission-card.d.ts +0 -24
- package/dist/registry/chat/plan-part.d.ts +0 -30
- package/dist/registry/chat/queue-indicator.d.ts +0 -27
- package/dist/registry/chat/reasoning-step/compound.d.ts +0 -17
- package/dist/registry/chat/reasoning-step/context.d.ts +0 -10
- package/dist/registry/chat/reasoning-step/index.d.ts +0 -14
- package/dist/registry/chat/reasoning-step/types.d.ts +0 -95
- package/dist/registry/chat/related-prompts.d.ts +0 -23
- package/dist/registry/chat/response/compound.d.ts +0 -25
- package/dist/registry/chat/response/context.d.ts +0 -9
- package/dist/registry/chat/response/index.d.ts +0 -15
- package/dist/registry/chat/response/types.d.ts +0 -99
- package/dist/registry/chat/send-button.d.ts +0 -17
- package/dist/registry/chat/streaming-markdown-block.d.ts +0 -8
- package/dist/registry/chat/task-part.d.ts +0 -28
- package/dist/registry/chat/terminal-code-block-part.d.ts +0 -18
- package/dist/registry/chat/thinking-indicator.d.ts +0 -14
- package/dist/registry/chat/tool-invocation-card.d.ts +0 -20
- package/dist/registry/chat/user-message.d.ts +0 -6
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -30
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -18
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -20
- package/dist/registry/chat/user-question/compound.d.ts +0 -37
- package/dist/registry/chat/user-question/context.d.ts +0 -55
- package/dist/registry/chat/user-question/index.d.ts +0 -15
- package/dist/registry/chat/user-question/types.d.ts +0 -52
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +0 -17
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
- package/dist/registry/chat/user-question-answer.d.ts +0 -13
- package/dist/registry/lib/file-icon-maps.d.ts +0 -20
- package/dist/registry/lib/use-mermaid-render.d.ts +0 -5
- package/dist/registry/lib/utils.d.ts +0 -11
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
- package/dist/scale/computed.css +0 -103
- package/dist/scale/config.css +0 -110
- package/dist/scale/index.css +0 -30
- package/dist/scale/presets/compact.css +0 -30
- package/dist/scale/presets/dense.css +0 -64
- package/dist/scale/presets/sharp.css +0 -40
- package/dist/scale/presets/soft.css +0 -16
- package/dist/scale.css +0 -13
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
- package/dist/spark-design.cjs.js +0 -265
- package/dist/spark-design.es.js +0 -13425
- package/dist/src/components/basic/AlertDialog/index.d.ts +0 -20
- package/dist/src/components/basic/Avatar/index.d.ts +0 -7
- package/dist/src/components/basic/Button/index.d.ts +0 -7
- package/dist/src/components/basic/Collapse/index.d.ts +0 -15
- package/dist/src/components/basic/Collapsible/index.d.ts +0 -7
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +0 -7
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
- package/dist/src/components/basic/DropdownMenu/index.d.ts +0 -19
- package/dist/src/components/basic/EllipsisText/index.d.ts +0 -53
- package/dist/src/components/basic/IconButton/index.d.ts +0 -7
- package/dist/src/components/basic/Kbd/index.d.ts +0 -7
- package/dist/src/components/basic/OptionList/index.d.ts +0 -7
- package/dist/src/components/basic/Pagination/index.d.ts +0 -7
- package/dist/src/components/basic/Progress/index.d.ts +0 -7
- package/dist/src/components/basic/RadioGroup/index.d.ts +0 -7
- package/dist/src/components/basic/Resizable/index.d.ts +0 -7
- package/dist/src/components/basic/Scrollbar/index.d.ts +0 -7
- package/dist/src/components/basic/Select/index.d.ts +0 -17
- package/dist/src/components/basic/ShimmeringText/index.d.ts +0 -7
- package/dist/src/components/basic/SidebarMenu/index.d.ts +0 -4
- package/dist/src/components/basic/Skeleton/index.d.ts +0 -7
- package/dist/src/components/basic/Slider/index.d.ts +0 -7
- package/dist/src/components/basic/Spinner/index.d.ts +0 -7
- package/dist/src/components/basic/Switch/index.d.ts +0 -38
- package/dist/src/components/basic/Table/index.d.ts +0 -7
- package/dist/src/components/basic/Tabs/index.d.ts +0 -7
- package/dist/src/components/basic/Tag/index.d.ts +0 -10
- package/dist/src/components/basic/Toast/index.d.ts +0 -12
- package/dist/src/components/basic/Toggle/index.d.ts +0 -7
- package/dist/src/components/basic/Tooltip/index.d.ts +0 -21
- package/dist/src/components/basic/Typography/index.d.ts +0 -7
- package/dist/src/components/chat/AskUserPart/index.d.ts +0 -6
- package/dist/src/components/chat/BrowserActionPart/index.d.ts +0 -7
- package/dist/src/components/chat/ChatInput/index.d.ts +0 -29
- package/dist/src/components/chat/CodeBlockPart/index.d.ts +0 -7
- package/dist/src/components/chat/FileAttachment/index.d.ts +0 -3
- package/dist/src/components/chat/FileCard/index.d.ts +0 -3
- package/dist/src/components/chat/FileReviewPart/index.d.ts +0 -7
- package/dist/src/components/chat/FolderButton/index.d.ts +0 -5
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +0 -7
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +0 -7
- package/dist/src/components/chat/HintBanner/index.d.ts +0 -6
- package/dist/src/components/chat/ImageAttachment/index.d.ts +0 -3
- package/dist/src/components/chat/ImageGenerating/index.d.ts +0 -6
- package/dist/src/components/chat/Markdown/demo-content.d.ts +0 -1
- package/dist/src/components/chat/Markdown/index.d.ts +0 -7
- package/dist/src/components/chat/MermaidPart/index.d.ts +0 -6
- package/dist/src/components/chat/PermissionCard/index.d.ts +0 -4
- package/dist/src/components/chat/PlanPart/index.d.ts +0 -6
- package/dist/src/components/chat/QueueIndicator/index.d.ts +0 -4
- package/dist/src/components/chat/ReasoningStep/index.d.ts +0 -13
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +0 -6
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -6
- package/dist/src/components/chat/Response/index.d.ts +0 -16
- package/dist/src/components/chat/SendButton/index.d.ts +0 -5
- package/dist/src/components/chat/TaskPart/index.d.ts +0 -7
- package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +0 -6
- package/dist/src/components/chat/ThinkingIndicator/index.d.ts +0 -6
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +0 -4
- package/dist/src/components/chat/UserMessage/index.d.ts +0 -7
- package/dist/src/components/chat/UserQuestion/index.d.ts +0 -19
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +0 -3
- package/dist/src/components/index.d.ts +0 -138
- package/dist/src/icons/context.d.ts +0 -26
- package/dist/src/icons/types.d.ts +0 -18
- package/dist/src/lib/ThemeStyleContext.d.ts +0 -21
- package/dist/src/lib/file-icon.d.ts +0 -16
- package/dist/src/lib/i18n.d.ts +0 -12
- package/dist/src/lib/index.d.ts +0 -10
- package/dist/src/lib/motion.d.ts +0 -22
- package/dist/src/lib/utils.d.ts +0 -11
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
- package/dist/theme-base.css +0 -270
- package/dist/theme.css +0 -17
- package/dist/themes/dark-parchment.css +0 -133
- package/dist/themes/dark-qoder.css +0 -133
- package/dist/themes/light-parchment.css +0 -124
- package/dist/themes/light-qoder.css +0 -132
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
- package/dist/tokens/index.css +0 -35
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
- /package/{cli/dist → dist}/commands/diff.js +0 -0
- /package/{cli/dist → dist}/commands/init.js +0 -0
- /package/{cli/dist → dist}/commands/list.js +0 -0
- /package/{cli/dist → dist}/index.js +0 -0
- /package/{cli/dist → dist}/utils/config.js +0 -0
- /package/{cli/dist → dist}/utils/registry.js +0 -0
- /package/{cli/dist → dist}/utils/tokens.js +0 -0
- /package/{cli/dist → dist}/utils/transform.js +0 -0
- /package/{cli/registry → registry}/__tests__/basic/button.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/markdown.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
- /package/{cli/registry → registry}/basic/alert-dialog.tsx +0 -0
- /package/{cli/registry → registry}/basic/avatar.tsx +0 -0
- /package/{cli/registry → registry}/basic/button.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapse.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapsible-card.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapsible.tsx +0 -0
- /package/{cli/registry → registry}/basic/dropdown-menu.tsx +0 -0
- /package/{cli/registry → registry}/basic/icon-button.tsx +0 -0
- /package/{cli/registry → registry}/basic/icons-inline.tsx +0 -0
- /package/{cli/registry → registry}/basic/kbd.tsx +0 -0
- /package/{cli/registry → registry}/basic/option-list.tsx +0 -0
- /package/{cli/registry → registry}/basic/pagination.tsx +0 -0
- /package/{cli/registry → registry}/basic/progress.tsx +0 -0
- /package/{cli/registry → registry}/basic/radio-group.tsx +0 -0
- /package/{cli/registry → registry}/basic/resizable.tsx +0 -0
- /package/{cli/registry → registry}/basic/scrollbar.tsx +0 -0
- /package/{cli/registry → registry}/basic/select.tsx +0 -0
- /package/{cli/registry → registry}/basic/shimmering-text.tsx +0 -0
- /package/{cli/registry → registry}/basic/sidebar-menu.tsx +0 -0
- /package/{cli/registry → registry}/basic/skeleton.tsx +0 -0
- /package/{cli/registry → registry}/basic/slider.tsx +0 -0
- /package/{cli/registry → registry}/basic/sonner.tsx +0 -0
- /package/{cli/registry → registry}/basic/spinner.tsx +0 -0
- /package/{cli/registry → registry}/basic/switch.tsx +0 -0
- /package/{cli/registry → registry}/basic/table.tsx +0 -0
- /package/{cli/registry → registry}/basic/tabs.tsx +0 -0
- /package/{cli/registry → registry}/basic/tag.tsx +0 -0
- /package/{cli/registry → registry}/basic/theme-from-document.ts +0 -0
- /package/{cli/registry → registry}/basic/toggle.tsx +0 -0
- /package/{cli/registry → registry}/basic/tooltip.tsx +0 -0
- /package/{cli/registry → registry}/basic/typography.tsx +0 -0
- /package/{cli/registry → registry}/chat/ask-user-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/browser-action-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/types.ts +0 -0
- /package/{cli/registry → registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
- /package/{cli/registry → registry}/chat/code-block-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-attachment.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-card.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-review-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/folder-button.tsx +0 -0
- /package/{cli/registry → registry}/chat/generated-images-grid.tsx +0 -0
- /package/{cli/registry → registry}/chat/generation-status-bar.tsx +0 -0
- /package/{cli/registry → registry}/chat/hint-banner.tsx +0 -0
- /package/{cli/registry → registry}/chat/image-attachment.tsx +0 -0
- /package/{cli/registry → registry}/chat/image-generating.tsx +0 -0
- /package/{cli/registry → registry}/chat/mermaid-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/permission-card.tsx +0 -0
- /package/{cli/registry → registry}/chat/plan-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/queue-indicator.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/types.ts +0 -0
- /package/{cli/registry → registry}/chat/related-prompts.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/types.ts +0 -0
- /package/{cli/registry → registry}/chat/send-button.tsx +0 -0
- /package/{cli/registry → registry}/chat/streaming-markdown-block.tsx +0 -0
- /package/{cli/registry → registry}/chat/task-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/terminal-code-block-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/thinking-indicator.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-message.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionCard.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/types.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question/useUserQuestionState.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question-answer.tsx +0 -0
- /package/{cli/registry → registry}/lib/file-icon-maps.ts +0 -0
- /package/{cli/registry → registry}/lib/use-mermaid-render.ts +0 -0
- /package/{cli/registry → registry}/lib/utils.ts +0 -0
- /package/{cli/registry → registry}/tokens/index.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/computed.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/config.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/index.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/compact.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/dense.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/sharp.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/soft.css +0 -0
- /package/{cli/registry → registry}/tokens/scale.css +0 -0
- /package/{cli/registry → registry}/tokens/scrollbar-utility.css +0 -0
- /package/{cli/registry → registry}/tokens/theme.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/dark-parchment.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/dark-qoder.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/light-parchment.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/light-qoder.css +0 -0
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { s as G, a as W, S as N } from "./chunk-DI55MBZ5-NCQTvayw.js";
|
|
2
|
-
import { _ as f, c as t, d as H, l as S, e as P, k as z, R as _, S as U, O as C, u as F } from "./mermaid.core-gFR0XUlD.js";
|
|
3
|
-
import { G as O } from "./graph-DPcK91G3.js";
|
|
4
|
-
import { l as J } from "./layout-CdLdvj1j.js";
|
|
5
|
-
var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
|
|
6
|
-
const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
|
|
7
|
-
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
|
|
8
|
-
}, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => {
|
|
9
|
-
const d = /* @__PURE__ */ f(function(g, m, B) {
|
|
10
|
-
const E = g.append("tspan").attr("x", 2 * t().state.padding).text(m);
|
|
11
|
-
B || E.attr("dy", t().state.textHeight);
|
|
12
|
-
}, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, x = e.append("text").attr("x", t().state.padding).attr(
|
|
13
|
-
"y",
|
|
14
|
-
l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
|
|
15
|
-
).attr("class", "state-description");
|
|
16
|
-
let a = !0, s = !0;
|
|
17
|
-
i.descriptions.forEach(function(g) {
|
|
18
|
-
a || (d(x, g, s), s = !1), a = !1;
|
|
19
|
-
});
|
|
20
|
-
const w = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + l + t().state.dividerMargin / 2).attr("y2", t().state.padding + l + t().state.dividerMargin / 2).attr("class", "descr-divider"), p = x.node().getBBox(), o = Math.max(p.width, n.width);
|
|
21
|
-
return w.attr("x2", o + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", o + 2 * t().state.padding).attr("height", p.height + l + 2 * t().state.padding).attr("rx", t().state.radius), e;
|
|
22
|
-
}, "drawDescrState"), $ = /* @__PURE__ */ f((e, i, d) => {
|
|
23
|
-
const c = t().state.padding, n = 2 * t().state.padding, l = e.node().getBBox(), x = l.width, a = l.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), p = s.node().getBBox().width + n;
|
|
24
|
-
let o = Math.max(p, x);
|
|
25
|
-
o === x && (o = o + n);
|
|
26
|
-
let g;
|
|
27
|
-
const m = e.node().getBBox();
|
|
28
|
-
i.doc, g = a - c, p > x && (g = (x - o) / 2 + c), Math.abs(a - m.x) < c && p > x && (g = a - (p - x) / 2);
|
|
29
|
-
const B = 1 - t().state.textHeight;
|
|
30
|
-
return e.insert("rect", ":first-child").attr("x", g).attr("y", B).attr("class", d ? "alt-composit" : "composit").attr("width", o).attr(
|
|
31
|
-
"height",
|
|
32
|
-
m.height + t().state.textHeight + t().state.titleShift + 1
|
|
33
|
-
).attr("rx", "0"), s.attr("x", g + c), p <= x && s.attr("x", a + (o - n) / 2 - p / 2 + c), e.insert("rect", ":first-child").attr("x", g).attr(
|
|
34
|
-
"y",
|
|
35
|
-
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
36
|
-
).attr("width", o).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", g).attr(
|
|
37
|
-
"y",
|
|
38
|
-
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
39
|
-
).attr("width", o).attr("height", m.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
|
|
40
|
-
}, "addTitleAndBox"), q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
|
|
41
|
-
"cx",
|
|
42
|
-
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
43
|
-
).attr(
|
|
44
|
-
"cy",
|
|
45
|
-
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
46
|
-
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), Z = /* @__PURE__ */ f((e, i) => {
|
|
47
|
-
let d = t().state.forkWidth, c = t().state.forkHeight;
|
|
48
|
-
if (i.parentId) {
|
|
49
|
-
let n = d;
|
|
50
|
-
d = c, c = n;
|
|
51
|
-
}
|
|
52
|
-
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
|
|
53
|
-
}, "drawForkJoinState"), j = /* @__PURE__ */ f((e, i, d, c) => {
|
|
54
|
-
let n = 0;
|
|
55
|
-
const l = c.append("text");
|
|
56
|
-
l.style("text-anchor", "start"), l.attr("class", "noteText");
|
|
57
|
-
let x = e.replace(/\r\n/g, "<br/>");
|
|
58
|
-
x = x.replace(/\n/g, "<br/>");
|
|
59
|
-
const a = x.split(z.lineBreakRegex);
|
|
60
|
-
let s = 1.25 * t().state.noteMargin;
|
|
61
|
-
for (const w of a) {
|
|
62
|
-
const p = w.trim();
|
|
63
|
-
if (p.length > 0) {
|
|
64
|
-
const o = l.append("tspan");
|
|
65
|
-
if (o.text(p), s === 0) {
|
|
66
|
-
const g = o.node().getBBox();
|
|
67
|
-
s += g.height;
|
|
68
|
-
}
|
|
69
|
-
n += s, o.attr("x", i + t().state.noteMargin), o.attr("y", d + n + 1.25 * t().state.noteMargin);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return { textWidth: l.node().getBBox().width, textHeight: n };
|
|
73
|
-
}, "_drawLongText"), K = /* @__PURE__ */ f((e, i) => {
|
|
74
|
-
i.attr("class", "state-note");
|
|
75
|
-
const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = j(e, 0, 0, c);
|
|
76
|
-
return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
|
|
77
|
-
}, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
|
|
78
|
-
const d = i.id, c = {
|
|
79
|
-
id: d,
|
|
80
|
-
label: i.id,
|
|
81
|
-
width: 0,
|
|
82
|
-
height: 0
|
|
83
|
-
}, n = e.append("g").attr("id", d).attr("class", "stateGroup");
|
|
84
|
-
i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && Z(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
|
|
85
|
-
const l = n.node().getBBox();
|
|
86
|
-
return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
|
|
87
|
-
}, "drawState"), R = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
|
|
88
|
-
const c = /* @__PURE__ */ f(function(s) {
|
|
89
|
-
switch (s) {
|
|
90
|
-
case N.relationType.AGGREGATION:
|
|
91
|
-
return "aggregation";
|
|
92
|
-
case N.relationType.EXTENSION:
|
|
93
|
-
return "extension";
|
|
94
|
-
case N.relationType.COMPOSITION:
|
|
95
|
-
return "composition";
|
|
96
|
-
case N.relationType.DEPENDENCY:
|
|
97
|
-
return "dependency";
|
|
98
|
-
}
|
|
99
|
-
}, "getRelationType");
|
|
100
|
-
i.points = i.points.filter((s) => !Number.isNaN(s.y));
|
|
101
|
-
const n = i.points, l = _().x(function(s) {
|
|
102
|
-
return s.x;
|
|
103
|
-
}).y(function(s) {
|
|
104
|
-
return s.y;
|
|
105
|
-
}).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + R).attr("class", "transition");
|
|
106
|
-
let a = "";
|
|
107
|
-
if (t().state.arrowMarkerAbsolute && (a = C(!0)), x.attr(
|
|
108
|
-
"marker-end",
|
|
109
|
-
"url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
|
|
110
|
-
), d.title !== void 0) {
|
|
111
|
-
const s = e.append("g").attr("class", "stateLabel"), { x: w, y: p } = F.calcLabelPosition(i.points), o = z.getRows(d.title);
|
|
112
|
-
let g = 0;
|
|
113
|
-
const m = [];
|
|
114
|
-
let B = 0, E = 0;
|
|
115
|
-
for (let u = 0; u <= o.length; u++) {
|
|
116
|
-
const h = s.append("text").attr("text-anchor", "middle").text(o[u]).attr("x", w).attr("y", p + g), y = h.node().getBBox();
|
|
117
|
-
B = Math.max(B, y.width), E = Math.min(E, y.x), S.info(y.x, w, p + g), g === 0 && (g = h.node().getBBox().height, S.info("Title height", g, p)), m.push(h);
|
|
118
|
-
}
|
|
119
|
-
let k = g * o.length;
|
|
120
|
-
if (o.length > 1) {
|
|
121
|
-
const u = (o.length - 1) * g * 0.5;
|
|
122
|
-
m.forEach((h, y) => h.attr("y", p + y * g - u)), k = g * o.length;
|
|
123
|
-
}
|
|
124
|
-
const r = s.node().getBBox();
|
|
125
|
-
s.insert("rect", ":first-child").attr("class", "box").attr("x", w - B / 2 - t().state.padding / 2).attr("y", p - k / 2 - t().state.padding / 2 - 3.5).attr("width", B + t().state.padding).attr("height", k + t().state.padding), S.info(r);
|
|
126
|
-
}
|
|
127
|
-
R++;
|
|
128
|
-
}, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
|
|
129
|
-
}, "setConf"), tt = /* @__PURE__ */ f(function(e) {
|
|
130
|
-
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
131
|
-
}, "insertMarkers"), et = /* @__PURE__ */ f(function(e, i, d, c) {
|
|
132
|
-
b = t().state;
|
|
133
|
-
const n = t().securityLevel;
|
|
134
|
-
let l;
|
|
135
|
-
n === "sandbox" && (l = H("#i" + i));
|
|
136
|
-
const x = n === "sandbox" ? H(l.nodes()[0].contentDocument.body) : H("body"), a = n === "sandbox" ? l.nodes()[0].contentDocument : document;
|
|
137
|
-
S.debug("Rendering diagram " + e);
|
|
138
|
-
const s = x.select(`[id='${i}']`);
|
|
139
|
-
tt(s);
|
|
140
|
-
const w = c.db.getRootDoc();
|
|
141
|
-
A(w, s, void 0, !1, x, a, c);
|
|
142
|
-
const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, m = o.height + p * 2, B = g * 1.75;
|
|
143
|
-
P(s, m, B, b.useMaxWidth), s.attr(
|
|
144
|
-
"viewBox",
|
|
145
|
-
`${o.x - b.padding} ${o.y - b.padding} ` + g + " " + m
|
|
146
|
-
);
|
|
147
|
-
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), A = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
|
|
148
|
-
const a = new O({
|
|
149
|
-
compound: !0,
|
|
150
|
-
multigraph: !0
|
|
151
|
-
});
|
|
152
|
-
let s, w = !0;
|
|
153
|
-
for (s = 0; s < e.length; s++)
|
|
154
|
-
if (e[s].stmt === "relation") {
|
|
155
|
-
w = !1;
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
d ? a.setGraph({
|
|
159
|
-
rankdir: "LR",
|
|
160
|
-
multigraph: !0,
|
|
161
|
-
compound: !0,
|
|
162
|
-
// acyclicer: 'greedy',
|
|
163
|
-
ranker: "tight-tree",
|
|
164
|
-
ranksep: w ? 1 : b.edgeLengthFactor,
|
|
165
|
-
nodeSep: w ? 1 : 50,
|
|
166
|
-
isMultiGraph: !0
|
|
167
|
-
// ranksep: 5,
|
|
168
|
-
// nodesep: 1
|
|
169
|
-
}) : a.setGraph({
|
|
170
|
-
rankdir: "TB",
|
|
171
|
-
multigraph: !0,
|
|
172
|
-
compound: !0,
|
|
173
|
-
// isCompound: true,
|
|
174
|
-
// acyclicer: 'greedy',
|
|
175
|
-
// ranker: 'longest-path'
|
|
176
|
-
ranksep: w ? 1 : b.edgeLengthFactor,
|
|
177
|
-
nodeSep: w ? 1 : 50,
|
|
178
|
-
ranker: "tight-tree",
|
|
179
|
-
// ranker: 'network-simplex'
|
|
180
|
-
isMultiGraph: !0
|
|
181
|
-
}), a.setDefaultEdgeLabel(function() {
|
|
182
|
-
return {};
|
|
183
|
-
});
|
|
184
|
-
const p = x.db.getStates(), o = x.db.getRelations(), g = Object.keys(p);
|
|
185
|
-
for (const r of g) {
|
|
186
|
-
const u = p[r];
|
|
187
|
-
d && (u.parentId = d);
|
|
188
|
-
let h;
|
|
189
|
-
if (u.doc) {
|
|
190
|
-
let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
|
|
191
|
-
h = A(u.doc, y, u.id, !c, n, l, x);
|
|
192
|
-
{
|
|
193
|
-
y = $(y, u, c);
|
|
194
|
-
let v = y.node().getBBox();
|
|
195
|
-
h.width = v.width, h.height = v.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
|
|
196
|
-
}
|
|
197
|
-
} else
|
|
198
|
-
h = L(i, u, a);
|
|
199
|
-
if (u.note) {
|
|
200
|
-
const y = {
|
|
201
|
-
descriptions: [],
|
|
202
|
-
id: u.id + "-note",
|
|
203
|
-
note: u.note,
|
|
204
|
-
type: "note"
|
|
205
|
-
}, v = L(i, y, a);
|
|
206
|
-
u.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
|
|
207
|
-
} else
|
|
208
|
-
a.setNode(h.id, h);
|
|
209
|
-
}
|
|
210
|
-
S.debug("Count=", a.nodeCount(), a);
|
|
211
|
-
let m = 0;
|
|
212
|
-
o.forEach(function(r) {
|
|
213
|
-
m++, S.debug("Setting edge", r), a.setEdge(
|
|
214
|
-
r.id1,
|
|
215
|
-
r.id2,
|
|
216
|
-
{
|
|
217
|
-
relation: r,
|
|
218
|
-
width: at(r.title),
|
|
219
|
-
height: b.labelHeight * z.getRows(r.title).length,
|
|
220
|
-
labelpos: "c"
|
|
221
|
-
},
|
|
222
|
-
"id" + m
|
|
223
|
-
);
|
|
224
|
-
}), J(a), S.debug("Graph after layout", a.nodes());
|
|
225
|
-
const B = i.node();
|
|
226
|
-
a.nodes().forEach(function(r) {
|
|
227
|
-
r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + B.id + " #" + r).attr(
|
|
228
|
-
"transform",
|
|
229
|
-
"translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
|
|
230
|
-
), n.select("#" + B.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + B.id + " #" + r + " .divider").forEach((h) => {
|
|
231
|
-
const y = h.parentElement;
|
|
232
|
-
let v = 0, M = 0;
|
|
233
|
-
y && (y.parentElement && (v = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", v - M - 8);
|
|
234
|
-
})) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
|
|
235
|
-
});
|
|
236
|
-
let E = B.getBBox();
|
|
237
|
-
a.edges().forEach(function(r) {
|
|
238
|
-
r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), Q(i, a.edge(r), a.edge(r).relation));
|
|
239
|
-
}), E = B.getBBox();
|
|
240
|
-
const k = {
|
|
241
|
-
id: d || "root",
|
|
242
|
-
label: d || "root",
|
|
243
|
-
width: 0,
|
|
244
|
-
height: 0
|
|
245
|
-
};
|
|
246
|
-
return k.width = E.width + 2 * b.padding, k.height = E.height + 2 * b.padding, S.debug("Doc rendered", k, a), k;
|
|
247
|
-
}, "renderDoc"), it = {
|
|
248
|
-
setConf: V,
|
|
249
|
-
draw: et
|
|
250
|
-
}, ot = {
|
|
251
|
-
parser: W,
|
|
252
|
-
get db() {
|
|
253
|
-
return new N(1);
|
|
254
|
-
},
|
|
255
|
-
renderer: it,
|
|
256
|
-
styles: G,
|
|
257
|
-
init: /* @__PURE__ */ f((e) => {
|
|
258
|
-
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
259
|
-
}, "init")
|
|
260
|
-
};
|
|
261
|
-
export {
|
|
262
|
-
ot as diagram
|
|
263
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { s as a, b as t, a as r, S as s } from "./chunk-DI55MBZ5-NCQTvayw.js";
|
|
2
|
-
import { _ as i } from "./mermaid.core-gFR0XUlD.js";
|
|
3
|
-
var _ = {
|
|
4
|
-
parser: r,
|
|
5
|
-
get db() {
|
|
6
|
-
return new s(2);
|
|
7
|
-
},
|
|
8
|
-
renderer: t,
|
|
9
|
-
styles: a,
|
|
10
|
-
init: /* @__PURE__ */ i((e) => {
|
|
11
|
-
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
12
|
-
}, "init")
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
_ as diagram
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-DI55MBZ5-D1YJMs6x.cjs"),t=require("./mermaid.core-DBwAx_jp.cjs");var a={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=a;
|
package/dist/theme-base.css
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
* [POS]: src/tokens/theme-base.css - Tailwind v4 @theme 映射 + 动画 + 公共样式
|
|
3
|
-
* [OUTPUT]: CSS 变量映射到 Tailwind 工具类
|
|
4
|
-
*
|
|
5
|
-
* 此文件定义了 Token → Tailwind 的映射契约,不包含具体颜色值。
|
|
6
|
-
* 颜色值由 themes/*.css 中的 [data-theme="xxx"] 块定义。
|
|
7
|
-
*
|
|
8
|
-
* 用户自定义主题时只需:
|
|
9
|
-
* 1. 引入此文件(定义映射)
|
|
10
|
-
* 2. 引入自己的主题 CSS(覆盖 --token-color-* 变量)
|
|
11
|
-
* ============================================ */
|
|
12
|
-
|
|
13
|
-
/* ============================================
|
|
14
|
-
Tailwind v4 @theme 映射
|
|
15
|
-
============================================ */
|
|
16
|
-
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *, [data-theme="dark-parchment"], [data-theme="dark-parchment"] *));
|
|
17
|
-
|
|
18
|
-
/* font-size / radius / spacing 随 data-style 变化,需用 @theme inline 让工具类直接引用运行时变量 */
|
|
19
|
-
@theme inline {
|
|
20
|
-
--text-xs: var(--font-size-xs);
|
|
21
|
-
--text-xs--line-height: var(--font-size-xs--line-height);
|
|
22
|
-
--text-sm: var(--font-size-sm);
|
|
23
|
-
--text-sm--line-height: var(--font-size-sm--line-height);
|
|
24
|
-
--text-base: var(--font-size-base);
|
|
25
|
-
--text-base--line-height: var(--font-size-base--line-height);
|
|
26
|
-
--text-lg: var(--font-size-lg);
|
|
27
|
-
--text-lg--line-height: var(--font-size-lg--line-height);
|
|
28
|
-
--text-xl: var(--font-size-xl);
|
|
29
|
-
--text-xl--line-height: var(--font-size-xl--line-height);
|
|
30
|
-
--text-2xl: var(--font-size-2xl);
|
|
31
|
-
--text-2xl--line-height: var(--font-size-2xl--line-height);
|
|
32
|
-
--text-3xl: var(--font-size-3xl);
|
|
33
|
-
--text-3xl--line-height: var(--font-size-3xl--line-height);
|
|
34
|
-
--text-4xl: var(--font-size-4xl);
|
|
35
|
-
--text-4xl--line-height: var(--font-size-4xl--line-height);
|
|
36
|
-
--text-5xl: var(--font-size-5xl);
|
|
37
|
-
--text-5xl--line-height: var(--font-size-5xl--line-height);
|
|
38
|
-
--text-6xl: var(--font-size-6xl);
|
|
39
|
-
--text-6xl--line-height: var(--font-size-6xl--line-height);
|
|
40
|
-
--radius: var(--radius-DEFAULT);
|
|
41
|
-
--radius-none: var(--radius-none);
|
|
42
|
-
--radius-sm: var(--radius-sm);
|
|
43
|
-
--radius-md: var(--radius-md);
|
|
44
|
-
--radius-lg: var(--radius-lg);
|
|
45
|
-
--radius-xl: var(--radius-xl);
|
|
46
|
-
--radius-2xl: var(--radius-2xl);
|
|
47
|
-
--radius-3xl: var(--radius-3xl);
|
|
48
|
-
--radius-full: var(--radius-full);
|
|
49
|
-
--spacing-0: var(--spacing-0);
|
|
50
|
-
--spacing-px: var(--spacing-px);
|
|
51
|
-
--spacing-0\.5: var(--spacing-0\.5);
|
|
52
|
-
--spacing-1: var(--spacing-1);
|
|
53
|
-
--spacing-1\.5: var(--spacing-1\.5);
|
|
54
|
-
--spacing-2: var(--spacing-2);
|
|
55
|
-
--spacing-2\.5: var(--spacing-2\.5);
|
|
56
|
-
--spacing-3: var(--spacing-3);
|
|
57
|
-
--spacing-3\.5: var(--spacing-3\.5);
|
|
58
|
-
--spacing-4: var(--spacing-4);
|
|
59
|
-
--spacing-5: var(--spacing-5);
|
|
60
|
-
--spacing-6: var(--spacing-6);
|
|
61
|
-
--spacing-7: var(--spacing-7);
|
|
62
|
-
--spacing-8: var(--spacing-8);
|
|
63
|
-
--spacing-9: var(--spacing-9);
|
|
64
|
-
--spacing-10: var(--spacing-10);
|
|
65
|
-
--spacing-11: var(--spacing-11);
|
|
66
|
-
--spacing-12: var(--spacing-12);
|
|
67
|
-
--spacing-14: var(--spacing-14);
|
|
68
|
-
--spacing-16: var(--spacing-16);
|
|
69
|
-
--spacing-20: var(--spacing-20);
|
|
70
|
-
--spacing-24: var(--spacing-24);
|
|
71
|
-
--spacing-28: var(--spacing-28);
|
|
72
|
-
--spacing-32: var(--spacing-32);
|
|
73
|
-
--spacing-36: var(--spacing-36);
|
|
74
|
-
--spacing-40: var(--spacing-40);
|
|
75
|
-
--spacing-44: var(--spacing-44);
|
|
76
|
-
--spacing-48: var(--spacing-48);
|
|
77
|
-
--spacing-52: var(--spacing-52);
|
|
78
|
-
--spacing-56: var(--spacing-56);
|
|
79
|
-
--spacing-60: var(--spacing-60);
|
|
80
|
-
--spacing-64: var(--spacing-64);
|
|
81
|
-
--spacing-72: var(--spacing-72);
|
|
82
|
-
--spacing-80: var(--spacing-80);
|
|
83
|
-
--spacing-96: var(--spacing-96);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@theme {
|
|
87
|
-
/* Font */
|
|
88
|
-
--font-display: 'Inter var', system-ui, sans-serif;
|
|
89
|
-
/* Primary */
|
|
90
|
-
--color-primary: var(--token-color-primary);
|
|
91
|
-
--color-primary-hover: var(--token-color-primary-hover);
|
|
92
|
-
--color-primary-active: var(--token-color-primary-active);
|
|
93
|
-
--color-primary-bg: var(--token-color-primary-bg);
|
|
94
|
-
--color-primary-bg-hover: var(--token-color-primary-bg-hover);
|
|
95
|
-
--color-primary-border: var(--token-color-primary-border);
|
|
96
|
-
--color-primary-border-hover: var(--token-color-primary-border-hover);
|
|
97
|
-
--color-primary-text: var(--token-color-primary-text);
|
|
98
|
-
--color-primary-text-hover: var(--token-color-primary-text-hover);
|
|
99
|
-
--color-primary-text-active: var(--token-color-primary-text-active);
|
|
100
|
-
--color-text-on-primary: var(--token-color-text-on-primary);
|
|
101
|
-
|
|
102
|
-
/* Text */
|
|
103
|
-
--color-text: var(--token-color-text);
|
|
104
|
-
--color-text-secondary: var(--token-color-text-secondary);
|
|
105
|
-
--color-text-tertiary: var(--token-color-text-tertiary);
|
|
106
|
-
--color-text-quaternary: var(--token-color-text-quaternary);
|
|
107
|
-
--color-text-base: var(--token-color-text-base);
|
|
108
|
-
|
|
109
|
-
/* Border */
|
|
110
|
-
--color-border: var(--token-color-border);
|
|
111
|
-
/* Select 等 - 映射到现有 token */
|
|
112
|
-
--color-input: var(--token-color-border-tertiary);
|
|
113
|
-
--color-ring: var(--token-color-primary-border);
|
|
114
|
-
--color-popover: var(--token-color-bg-container);
|
|
115
|
-
--color-popover-foreground: var(--token-color-text);
|
|
116
|
-
--color-accent: var(--token-color-fill-secondary);
|
|
117
|
-
--color-accent-foreground: var(--token-color-text);
|
|
118
|
-
--color-muted: var(--token-color-fill-tertiary);
|
|
119
|
-
--color-muted-foreground: var(--token-color-text-secondary);
|
|
120
|
-
--color-background: var(--token-color-bg-base);
|
|
121
|
-
--color-border-secondary: var(--token-color-border-secondary);
|
|
122
|
-
--color-border-tertiary: var(--token-color-border-tertiary);
|
|
123
|
-
|
|
124
|
-
/* Fill */
|
|
125
|
-
--color-fill: var(--token-color-fill);
|
|
126
|
-
--color-fill-secondary: var(--token-color-fill-secondary);
|
|
127
|
-
--color-fill-tertiary: var(--token-color-fill-tertiary);
|
|
128
|
-
--color-fill-quaternary: var(--token-color-fill-quaternary);
|
|
129
|
-
--color-fill-disable: var(--token-color-fill-disable);
|
|
130
|
-
|
|
131
|
-
/* Background */
|
|
132
|
-
--color-bg-container: var(--token-color-bg-container);
|
|
133
|
-
--color-bg-elevated: var(--token-color-bg-elevated);
|
|
134
|
-
--color-bg-layout: var(--token-color-bg-layout);
|
|
135
|
-
--color-bg-spotlight: var(--token-color-bg-spotlight);
|
|
136
|
-
--color-bg-mask: var(--token-color-bg-mask);
|
|
137
|
-
--color-mask-shimmer-weak: var(--token-color-mask-shimmer-weak);
|
|
138
|
-
--color-mask-shimmer-strong: var(--token-color-mask-shimmer-strong);
|
|
139
|
-
--color-mask-shimmer-full: var(--token-color-mask-shimmer-full);
|
|
140
|
-
--color-bg-base: var(--token-color-bg-base);
|
|
141
|
-
--color-bg-highlight: var(--token-color-bg-highlight);
|
|
142
|
-
--color-bg-highlight-hover: var(--token-color-bg-highlight-hover);
|
|
143
|
-
|
|
144
|
-
/* Shadow(1~4 级,与 primary/secondary/tertiary/quaternary 一致) */
|
|
145
|
-
--color-shadow-primary: var(--token-color-shadow-primary);
|
|
146
|
-
--color-shadow-secondary: var(--token-color-shadow-secondary);
|
|
147
|
-
--color-shadow-tertiary: var(--token-color-shadow-tertiary);
|
|
148
|
-
--color-shadow-quaternary: var(--token-color-shadow-quaternary);
|
|
149
|
-
|
|
150
|
-
/* Semantic */
|
|
151
|
-
--color-link: var(--token-color-link);
|
|
152
|
-
--color-error: var(--token-color-error);
|
|
153
|
-
--color-error-hover: var(--token-color-error-hover);
|
|
154
|
-
--color-error-bg: var(--token-color-error-bg);
|
|
155
|
-
--color-error-bg-hover: var(--token-color-error-bg-hover);
|
|
156
|
-
--color-error-border: var(--token-color-error-border);
|
|
157
|
-
--color-info: var(--token-color-info);
|
|
158
|
-
--color-info-hover: var(--token-color-info-hover);
|
|
159
|
-
--color-info-bg: var(--token-color-info-bg);
|
|
160
|
-
--color-info-bg-hover: var(--token-color-info-bg-hover);
|
|
161
|
-
--color-info-border: var(--token-color-info-border);
|
|
162
|
-
--color-success: var(--token-color-success);
|
|
163
|
-
--color-success-hover: var(--token-color-success-hover);
|
|
164
|
-
--color-success-bg: var(--token-color-success-bg);
|
|
165
|
-
--color-success-bg-hover: var(--token-color-success-bg-hover);
|
|
166
|
-
--color-success-border: var(--token-color-success-border);
|
|
167
|
-
--color-warning: var(--token-color-warning);
|
|
168
|
-
--color-warning-hover: var(--token-color-warning-hover);
|
|
169
|
-
--color-warning-bg: var(--token-color-warning-bg);
|
|
170
|
-
--color-warning-bg-hover: var(--token-color-warning-bg-hover);
|
|
171
|
-
--color-warning-border: var(--token-color-warning-border);
|
|
172
|
-
|
|
173
|
-
/* Accent */
|
|
174
|
-
--color-pink: var(--token-color-pink);
|
|
175
|
-
--color-pink-bg: var(--token-color-pink-bg);
|
|
176
|
-
--color-pink-bg-hover: var(--token-color-pink-bg-hover);
|
|
177
|
-
--color-purple: var(--token-color-purple);
|
|
178
|
-
--color-purple-bg: var(--token-color-purple-bg);
|
|
179
|
-
--color-purple-bg-hover: var(--token-color-purple-bg-hover);
|
|
180
|
-
--color-yellow: var(--token-color-yellow);
|
|
181
|
-
--color-yellow-bg: var(--token-color-yellow-bg);
|
|
182
|
-
--color-yellow-bg-hover: var(--token-color-yellow-bg-hover);
|
|
183
|
-
--color-orange: var(--token-color-orange);
|
|
184
|
-
--color-orange-bg: var(--token-color-orange-bg);
|
|
185
|
-
--color-orange-bg-hover: var(--token-color-orange-bg-hover);
|
|
186
|
-
--color-teal: var(--token-color-teal);
|
|
187
|
-
--color-teal-bg: var(--token-color-teal-bg);
|
|
188
|
-
--color-teal-bg-hover: var(--token-color-teal-bg-hover);
|
|
189
|
-
--color-blue: var(--token-color-blue);
|
|
190
|
-
--color-blue-bg: var(--token-color-blue-bg);
|
|
191
|
-
--color-blue-bg-hover: var(--token-color-blue-bg-hover);
|
|
192
|
-
--color-mauve: var(--token-color-mauve);
|
|
193
|
-
--color-mauve-bg: var(--token-color-mauve-bg);
|
|
194
|
-
--color-mauve-bg-hover: var(--token-color-mauve-bg-hover);
|
|
195
|
-
--color-slate: var(--token-color-slate);
|
|
196
|
-
--color-slate-bg: var(--token-color-slate-bg);
|
|
197
|
-
--color-slate-bg-hover: var(--token-color-slate-bg-hover);
|
|
198
|
-
--color-lavender: var(--token-color-lavender);
|
|
199
|
-
--color-lavender-bg: var(--token-color-lavender-bg);
|
|
200
|
-
--color-lavender-bg-hover: var(--token-color-lavender-bg-hover);
|
|
201
|
-
--color-sage: var(--token-color-sage);
|
|
202
|
-
--color-sage-bg: var(--token-color-sage-bg);
|
|
203
|
-
--color-sage-bg-hover: var(--token-color-sage-bg-hover);
|
|
204
|
-
|
|
205
|
-
/* Diff */
|
|
206
|
-
--color-diff-insert: var(--token-color-diff-insert);
|
|
207
|
-
--color-diff-insert-bg: var(--token-color-diff-insert-bg);
|
|
208
|
-
--color-diff-remove: var(--token-color-diff-remove);
|
|
209
|
-
--color-diff-remove-bg: var(--token-color-diff-remove-bg);
|
|
210
|
-
|
|
211
|
-
/* Accordion 展开/收起动画(Radix 提供 --radix-accordion-content-height) */
|
|
212
|
-
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
213
|
-
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
214
|
-
--animate-accordion-right: accordion-right 0.2s ease-out;
|
|
215
|
-
--animate-accordion-left: accordion-left 0.2s ease-out;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* 行高随 data-style 变化,与 text-xs/text-sm/text-base 等配套使用,避免固定 leading-6 等 */
|
|
219
|
-
.leading-xs { line-height: var(--font-size-xs--line-height); }
|
|
220
|
-
.leading-sm { line-height: var(--font-size-sm--line-height); }
|
|
221
|
-
.leading-base { line-height: var(--font-size-base--line-height); }
|
|
222
|
-
.leading-lg { line-height: var(--font-size-lg--line-height); }
|
|
223
|
-
.leading-xl { line-height: var(--font-size-xl--line-height); }
|
|
224
|
-
|
|
225
|
-
@keyframes accordion-down {
|
|
226
|
-
from {
|
|
227
|
-
height: 0;
|
|
228
|
-
}
|
|
229
|
-
to {
|
|
230
|
-
height: var(--radix-accordion-content-height);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
@keyframes accordion-up {
|
|
234
|
-
from {
|
|
235
|
-
height: var(--radix-accordion-content-height);
|
|
236
|
-
}
|
|
237
|
-
to {
|
|
238
|
-
height: 0;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
@keyframes accordion-right {
|
|
242
|
-
from {
|
|
243
|
-
width: 0;
|
|
244
|
-
}
|
|
245
|
-
to {
|
|
246
|
-
width: var(--radix-accordion-content-width);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
@keyframes accordion-left {
|
|
250
|
-
from {
|
|
251
|
-
width: var(--radix-accordion-content-width);
|
|
252
|
-
}
|
|
253
|
-
to {
|
|
254
|
-
width: 0;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/* ============================================
|
|
259
|
-
Seti 文件图标字体(与 QodeChatPanel 一致;需将 qoder-seti.woff 置于 public/ 或根路径)
|
|
260
|
-
============================================ */
|
|
261
|
-
@font-face {
|
|
262
|
-
font-family: 'Seti';
|
|
263
|
-
src: url('/qoder-seti.woff') format('woff');
|
|
264
|
-
font-weight: normal;
|
|
265
|
-
font-style: normal;
|
|
266
|
-
font-display: swap;
|
|
267
|
-
}
|
|
268
|
-
.font-seti {
|
|
269
|
-
font-family: 'Seti', sans-serif;
|
|
270
|
-
}
|
package/dist/theme.css
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
* [DEPRECATED] 此文件已被拆分,保留以向后兼容。
|
|
3
|
-
* 请使用新的引入方式:@import "./tokens/index.css";
|
|
4
|
-
*
|
|
5
|
-
* 新的文件结构:
|
|
6
|
-
* - theme-base.css: @theme 映射 + 动画 + 公共样式
|
|
7
|
-
* - themes/light.css: 亮色主题
|
|
8
|
-
* - themes/dark.css: 暗色主题
|
|
9
|
-
* - themes/light-parchment.css: 羊皮纸亮色
|
|
10
|
-
* - themes/dark-parchment.css: 羊皮纸暗色
|
|
11
|
-
* ============================================ */
|
|
12
|
-
|
|
13
|
-
@import "./theme-base.css";
|
|
14
|
-
@import "./themes/light-qoder.css";
|
|
15
|
-
@import "./themes/dark-qoder.css";
|
|
16
|
-
@import "./themes/light-parchment.css";
|
|
17
|
-
@import "./themes/dark-parchment.css";
|