sparkdesign 0.4.3 → 0.4.4

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.
Files changed (467) hide show
  1. package/README.md +205 -111
  2. package/dist/_basePickBy-DnQN8w3y.js +151 -0
  3. package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
  4. package/dist/_baseUniq-B-N2NQ50.js +614 -0
  5. package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
  6. package/dist/arc-BQBhijZ6.js +83 -0
  7. package/dist/arc-mWQt0Yph.cjs +1 -0
  8. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
  9. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
  10. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
  11. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
  12. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
  13. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
  14. package/dist/channel-BQn0o8bs.js +5 -0
  15. package/dist/channel-DaN7XniJ.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
  17. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
  18. package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
  19. package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
  20. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
  21. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
  22. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
  23. package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
  24. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
  25. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
  26. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
  27. package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
  28. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
  29. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
  30. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
  31. package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
  32. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
  33. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
  34. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
  35. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
  36. package/dist/clone-Cde_NQ8V.js +8 -0
  37. package/dist/clone-DCNjWuM2.cjs +1 -0
  38. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
  39. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
  40. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  41. package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
  42. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
  43. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
  44. package/dist/defaultLocale-BgPVtth8.js +171 -0
  45. package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
  46. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
  47. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
  48. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
  49. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
  50. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
  51. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
  52. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
  53. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
  54. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
  55. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
  56. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  57. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  58. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  59. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  60. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  61. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  62. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  75. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  76. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  85. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  87. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  88. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  89. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  90. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  91. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  92. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  98. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  99. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  100. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  101. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  116. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
  117. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
  118. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
  119. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
  120. package/dist/graph-DIbblrZP.cjs +1 -0
  121. package/dist/graph-DPcK91G3.js +247 -0
  122. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
  123. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
  124. package/dist/init-CHZsXQcr.cjs +1 -0
  125. package/dist/init-DjUOC4st.js +16 -0
  126. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
  127. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
  128. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
  129. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
  130. package/dist/katex.css +1 -0
  131. package/dist/layout-Byuh8f-J.cjs +1 -0
  132. package/dist/layout-CdLdvj1j.js +1335 -0
  133. package/dist/linear-C2Q_PI9B.js +259 -0
  134. package/dist/linear-C69aPBW1.cjs +1 -0
  135. package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
  136. package/dist/mermaid.core-gFR0XUlD.js +15300 -0
  137. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
  138. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
  139. package/dist/ordinal-B6-f3MAq.js +61 -0
  140. package/dist/ordinal-CagbB1m8.cjs +1 -0
  141. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
  142. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
  143. package/dist/qoder-design.css +2 -0
  144. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
  145. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
  146. package/dist/registry/basic/alert-dialog.d.ts +40 -0
  147. package/dist/registry/basic/avatar.d.ts +30 -0
  148. package/dist/registry/basic/button.d.ts +16 -0
  149. package/dist/registry/basic/collapse.d.ts +22 -0
  150. package/dist/registry/basic/collapsible-card.d.ts +34 -0
  151. package/dist/registry/basic/collapsible.d.ts +15 -0
  152. package/dist/registry/basic/dropdown-menu.d.ts +52 -0
  153. package/dist/registry/basic/icon-button.d.ts +12 -0
  154. package/dist/registry/basic/icons-inline.d.ts +51 -0
  155. package/dist/registry/basic/kbd.d.ts +23 -0
  156. package/dist/registry/basic/option-list.d.ts +16 -0
  157. package/dist/registry/basic/pagination.d.ts +33 -0
  158. package/dist/registry/basic/progress.d.ts +18 -0
  159. package/dist/registry/basic/radio-group.d.ts +25 -0
  160. package/dist/registry/basic/resizable.d.ts +318 -0
  161. package/dist/registry/basic/scrollbar.d.ts +12 -0
  162. package/dist/registry/basic/select.d.ts +35 -0
  163. package/dist/registry/basic/shimmering-text.d.ts +27 -0
  164. package/dist/registry/basic/sidebar-menu.d.ts +23 -0
  165. package/dist/registry/basic/skeleton.d.ts +10 -0
  166. package/dist/registry/basic/slider.d.ts +16 -0
  167. package/dist/registry/basic/sonner.d.ts +23 -0
  168. package/dist/registry/basic/spinner.d.ts +5 -0
  169. package/dist/registry/basic/switch.d.ts +20 -0
  170. package/dist/registry/basic/table.d.ts +18 -0
  171. package/dist/registry/basic/tabs.d.ts +29 -0
  172. package/dist/registry/basic/tag.d.ts +23 -0
  173. package/dist/registry/basic/theme-from-document.d.ts +10 -0
  174. package/dist/registry/basic/toggle.d.ts +29 -0
  175. package/dist/registry/basic/tooltip.d.ts +34 -0
  176. package/dist/registry/basic/typography.d.ts +76 -0
  177. package/dist/registry/chat/ask-user-part.d.ts +24 -0
  178. package/dist/registry/chat/browser-action-part.d.ts +28 -0
  179. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
  180. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
  181. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
  182. package/dist/registry/chat/chat-input/compound.d.ts +97 -0
  183. package/dist/registry/chat/chat-input/context.d.ts +64 -0
  184. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
  185. package/dist/registry/chat/chat-input/index.d.ts +34 -0
  186. package/dist/registry/chat/chat-input/types.d.ts +79 -0
  187. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
  188. package/dist/registry/chat/code-block-part.d.ts +23 -0
  189. package/dist/registry/chat/file-attachment.d.ts +19 -0
  190. package/dist/registry/chat/file-card.d.ts +10 -0
  191. package/dist/registry/chat/file-review-part.d.ts +30 -0
  192. package/dist/registry/chat/folder-button.d.ts +20 -0
  193. package/dist/registry/chat/generated-images-grid.d.ts +15 -0
  194. package/dist/registry/chat/generation-status-bar.d.ts +19 -0
  195. package/dist/registry/chat/hint-banner.d.ts +28 -0
  196. package/dist/registry/chat/image-attachment.d.ts +19 -0
  197. package/dist/registry/chat/image-generating.d.ts +15 -0
  198. package/dist/registry/chat/markdown.d.ts +8 -0
  199. package/dist/registry/chat/mermaid-part.d.ts +17 -0
  200. package/dist/registry/chat/permission-card.d.ts +24 -0
  201. package/dist/registry/chat/plan-part.d.ts +30 -0
  202. package/dist/registry/chat/queue-indicator.d.ts +27 -0
  203. package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
  204. package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
  205. package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
  206. package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
  207. package/dist/registry/chat/related-prompts.d.ts +23 -0
  208. package/dist/registry/chat/response/compound.d.ts +25 -0
  209. package/dist/registry/chat/response/context.d.ts +9 -0
  210. package/dist/registry/chat/response/index.d.ts +15 -0
  211. package/dist/registry/chat/response/types.d.ts +99 -0
  212. package/dist/registry/chat/send-button.d.ts +17 -0
  213. package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
  214. package/dist/registry/chat/task-part.d.ts +28 -0
  215. package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
  216. package/dist/registry/chat/thinking-indicator.d.ts +14 -0
  217. package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
  218. package/dist/registry/chat/user-message.d.ts +6 -0
  219. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
  220. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
  221. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
  222. package/dist/registry/chat/user-question/compound.d.ts +37 -0
  223. package/dist/registry/chat/user-question/context.d.ts +55 -0
  224. package/dist/registry/chat/user-question/index.d.ts +15 -0
  225. package/dist/registry/chat/user-question/types.d.ts +52 -0
  226. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
  227. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
  228. package/dist/registry/chat/user-question-answer.d.ts +13 -0
  229. package/dist/registry/lib/file-icon-maps.d.ts +20 -0
  230. package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
  231. package/dist/registry/lib/utils.d.ts +11 -0
  232. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
  233. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
  234. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
  235. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
  236. package/dist/scale/computed.css +103 -0
  237. package/dist/scale/config.css +110 -0
  238. package/dist/scale/index.css +30 -0
  239. package/dist/scale/presets/compact.css +30 -0
  240. package/dist/scale/presets/dense.css +64 -0
  241. package/dist/scale/presets/sharp.css +40 -0
  242. package/dist/scale/presets/soft.css +16 -0
  243. package/dist/scale.css +13 -0
  244. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
  245. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
  246. package/dist/spark-design.cjs.js +265 -0
  247. package/dist/spark-design.es.js +13486 -0
  248. package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
  249. package/dist/src/components/basic/Avatar/index.d.ts +7 -0
  250. package/dist/src/components/basic/Button/index.d.ts +7 -0
  251. package/dist/src/components/basic/Collapse/index.d.ts +15 -0
  252. package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
  253. package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
  254. package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
  255. package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
  256. package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
  257. package/dist/src/components/basic/IconButton/index.d.ts +7 -0
  258. package/dist/src/components/basic/Kbd/index.d.ts +7 -0
  259. package/dist/src/components/basic/OptionList/index.d.ts +7 -0
  260. package/dist/src/components/basic/Pagination/index.d.ts +7 -0
  261. package/dist/src/components/basic/Progress/index.d.ts +7 -0
  262. package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
  263. package/dist/src/components/basic/Resizable/index.d.ts +7 -0
  264. package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
  265. package/dist/src/components/basic/Select/index.d.ts +17 -0
  266. package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
  267. package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
  268. package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
  269. package/dist/src/components/basic/Slider/index.d.ts +7 -0
  270. package/dist/src/components/basic/Spinner/index.d.ts +7 -0
  271. package/dist/src/components/basic/Switch/index.d.ts +38 -0
  272. package/dist/src/components/basic/Table/index.d.ts +7 -0
  273. package/dist/src/components/basic/Tabs/index.d.ts +7 -0
  274. package/dist/src/components/basic/Tag/index.d.ts +10 -0
  275. package/dist/src/components/basic/Toast/index.d.ts +12 -0
  276. package/dist/src/components/basic/Toggle/index.d.ts +7 -0
  277. package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
  278. package/dist/src/components/basic/Typography/index.d.ts +7 -0
  279. package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
  280. package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
  281. package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
  282. package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
  283. package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
  284. package/dist/src/components/chat/FileCard/index.d.ts +3 -0
  285. package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
  286. package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
  287. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
  288. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
  289. package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
  290. package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
  291. package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
  292. package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
  293. package/dist/src/components/chat/Markdown/index.d.ts +7 -0
  294. package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
  295. package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
  296. package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
  297. package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
  298. package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
  299. package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
  300. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
  301. package/dist/src/components/chat/Response/index.d.ts +16 -0
  302. package/dist/src/components/chat/SendButton/index.d.ts +5 -0
  303. package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
  304. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
  305. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
  306. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
  307. package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
  308. package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
  309. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
  310. package/dist/src/components/index.d.ts +138 -0
  311. package/dist/src/icons/context.d.ts +26 -0
  312. package/dist/src/icons/types.d.ts +18 -0
  313. package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
  314. package/dist/src/lib/file-icon.d.ts +16 -0
  315. package/dist/src/lib/i18n.d.ts +12 -0
  316. package/dist/src/lib/index.d.ts +10 -0
  317. package/dist/src/lib/motion.d.ts +22 -0
  318. package/dist/src/lib/utils.d.ts +11 -0
  319. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
  320. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
  321. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
  322. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
  323. package/dist/theme-base.css +270 -0
  324. package/dist/theme.css +17 -0
  325. package/dist/themes/dark-parchment.css +133 -0
  326. package/dist/themes/dark-qoder.css +133 -0
  327. package/dist/themes/light-parchment.css +124 -0
  328. package/dist/themes/light-qoder.css +132 -0
  329. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
  330. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
  331. package/dist/tokens/CLAUDE.md +305 -0
  332. package/dist/tokens/index.css +35 -0
  333. package/dist/tokens/scale/computed.css +103 -0
  334. package/dist/tokens/scale/config.css +110 -0
  335. package/dist/tokens/scale/index.css +30 -0
  336. package/dist/tokens/scale/presets/compact.css +30 -0
  337. package/dist/tokens/scale/presets/dense.css +64 -0
  338. package/dist/tokens/scale/presets/sharp.css +40 -0
  339. package/dist/tokens/scale/presets/soft.css +16 -0
  340. package/dist/tokens/scale.css +13 -0
  341. package/dist/tokens/scrollbar-utility.css +35 -0
  342. package/dist/tokens/theme-base.css +270 -0
  343. package/dist/tokens/theme.css +17 -0
  344. package/dist/tokens/themes/dark-parchment.css +133 -0
  345. package/dist/tokens/themes/dark-qoder.css +133 -0
  346. package/dist/tokens/themes/light-parchment.css +124 -0
  347. package/dist/tokens/themes/light-qoder.css +132 -0
  348. package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
  349. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
  350. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
  352. package/package.json +128 -19
  353. /package/{dist → cli/dist}/commands/add.js +0 -0
  354. /package/{dist → cli/dist}/commands/diff.js +0 -0
  355. /package/{dist → cli/dist}/commands/init.js +0 -0
  356. /package/{dist → cli/dist}/commands/list.js +0 -0
  357. /package/{dist → cli/dist}/index.js +0 -0
  358. /package/{dist → cli/dist}/utils/config.js +0 -0
  359. /package/{dist → cli/dist}/utils/registry.js +0 -0
  360. /package/{dist → cli/dist}/utils/tokens.js +0 -0
  361. /package/{dist → cli/dist}/utils/transform.js +0 -0
  362. /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
  363. /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
  364. /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  365. /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  366. /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
  367. /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
  368. /package/{registry → cli/registry}/basic/button.tsx +0 -0
  369. /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
  370. /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
  371. /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
  372. /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
  373. /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
  374. /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
  375. /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
  376. /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
  377. /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
  378. /package/{registry → cli/registry}/basic/progress.tsx +0 -0
  379. /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
  380. /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
  381. /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
  382. /package/{registry → cli/registry}/basic/select.tsx +0 -0
  383. /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
  384. /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
  385. /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
  386. /package/{registry → cli/registry}/basic/slider.tsx +0 -0
  387. /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
  388. /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
  389. /package/{registry → cli/registry}/basic/switch.tsx +0 -0
  390. /package/{registry → cli/registry}/basic/table.tsx +0 -0
  391. /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
  392. /package/{registry → cli/registry}/basic/tag.tsx +0 -0
  393. /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
  394. /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
  395. /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
  396. /package/{registry → cli/registry}/basic/typography.tsx +0 -0
  397. /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
  398. /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
  399. /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  400. /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  401. /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  402. /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
  403. /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
  404. /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  405. /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
  406. /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
  407. /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  408. /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
  409. /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
  410. /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
  411. /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
  412. /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
  413. /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
  414. /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
  415. /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
  416. /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
  417. /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
  418. /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
  419. /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
  420. /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
  421. /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
  422. /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
  423. /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
  424. /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
  425. /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
  426. /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
  427. /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
  428. /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
  429. /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
  430. /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
  431. /package/{registry → cli/registry}/chat/response/types.ts +0 -0
  432. /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
  433. /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
  434. /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
  435. /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
  436. /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
  437. /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
  438. /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
  439. /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  440. /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  441. /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  442. /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
  443. /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
  444. /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
  445. /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
  446. /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  447. /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
  448. /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
  449. /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
  450. /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
  451. /package/{registry → cli/registry}/lib/utils.ts +0 -0
  452. /package/{registry → cli/registry}/meta.json +0 -0
  453. /package/{registry → cli/registry}/tokens/index.css +0 -0
  454. /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
  455. /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
  456. /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
  457. /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
  458. /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
  459. /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
  460. /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
  461. /package/{registry → cli/registry}/tokens/scale.css +0 -0
  462. /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
  463. /package/{registry → cli/registry}/tokens/theme.css +0 -0
  464. /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
  465. /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
  466. /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
  467. /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
@@ -0,0 +1,40 @@
1
+ /**
2
+ * [INPUT]: (AlertDialog*Props)
3
+ * [OUTPUT]: (JSX.Element) - 警告对话框组件
4
+ * [POS]: registry/basic/alert-dialog - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff alert-dialog 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
12
+ import { type VariantProps } from 'class-variance-authority';
13
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
14
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
15
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
16
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const contentVariants: (props?: ({
18
+ size?: "sm" | "default" | null | undefined;
19
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
+ export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>, VariantProps<typeof contentVariants> {
21
+ size?: 'default' | 'sm';
22
+ /** When provided (e.g. from ThemeStyleProvider), used for portal wrapper */
23
+ dataStyle?: string;
24
+ dataTheme?: string;
25
+ }
26
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
27
+ declare const AlertDialogHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const AlertDialogFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
29
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
30
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
31
+ declare const actionVariants: (props?: ({
32
+ destructive?: boolean | null | undefined;
33
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
34
+ export interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>, VariantProps<typeof actionVariants> {
35
+ destructive?: boolean;
36
+ }
37
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
38
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
+ export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
40
+ export { contentVariants as alertDialogContentVariants, actionVariants as alertDialogActionVariants };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * [INPUT]: (AvatarProps, AvatarImageProps, AvatarFallbackProps, AvatarBadgeProps, AvatarGroupProps)
3
+ * [OUTPUT]: (JSX.Element) - 用户头像组件(含 badge/group)
4
+ * [POS]: registry/basic/avatar - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff avatar 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
12
+ import { type VariantProps } from 'class-variance-authority';
13
+ declare const avatarVariants: (props?: ({
14
+ size?: "sm" | "lg" | "default" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
17
+ }
18
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
19
+ export type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
20
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
21
+ export type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
22
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
23
+ export type AvatarBadgeProps = React.HTMLAttributes<HTMLSpanElement>;
24
+ declare const AvatarBadge: React.ForwardRefExoticComponent<AvatarBadgeProps & React.RefAttributes<HTMLSpanElement>>;
25
+ export type AvatarGroupProps = React.HTMLAttributes<HTMLDivElement>;
26
+ declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
27
+ export type AvatarGroupCountProps = React.HTMLAttributes<HTMLSpanElement>;
28
+ declare const AvatarGroupCount: React.ForwardRefExoticComponent<AvatarGroupCountProps & React.RefAttributes<HTMLSpanElement>>;
29
+ export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount, };
30
+ export { avatarVariants };
@@ -0,0 +1,16 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "text" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ rounded?: "square" | "pill" | null | undefined;
7
+ textOnly?: boolean | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
+ children: ReactNode;
11
+ textButton?: boolean;
12
+ prefixIcon?: ReactNode;
13
+ suffixIcon?: ReactNode;
14
+ }
15
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
16
+ export { Button, buttonVariants };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * [INPUT]: (Collapse*Props)
3
+ * [OUTPUT]: (JSX.Element) - 折叠面板组件(Accordion)
4
+ * [POS]: registry/basic/collapse - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff collapse 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
12
+ declare const Collapse: React.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
13
+ declare const CollapseItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export interface CollapseTriggerProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> {
15
+ chevronIcon?: React.ReactNode;
16
+ }
17
+ declare const CollapseTrigger: React.ForwardRefExoticComponent<CollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
18
+ declare const CollapseContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ export type CollapseProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
20
+ export type CollapseItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;
21
+ export type CollapseContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;
22
+ export { Collapse, CollapseItem, CollapseTrigger, CollapseContent };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * [INPUT]: (CollapsibleCardProps) - 可折叠卡片:headerIcon/headerTitle/headerRight、children、footer、defaultExpanded、contentPadding、collapsible、showExpandAllBar、maxHeight
3
+ * [OUTPUT]: (JSX.Element)
4
+ * [POS]: registry/basic - 对话流内 Part 组件共用卡片容器
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 文件逻辑变更时必须同步更新此 Header
8
+ * 2. 所有样式使用 design token 类名
9
+ * 3. showExpandAllBar:内容超过 maxHeight 时显示底部展开/收起栏,与 QodeChatPanel 逻辑一致
10
+ */
11
+ import { type ReactNode } from 'react';
12
+ export interface CollapsibleCardProps {
13
+ headerIcon?: ReactNode;
14
+ headerTitle: ReactNode;
15
+ headerRight?: ReactNode;
16
+ children?: ReactNode;
17
+ defaultExpanded?: boolean;
18
+ /** CSS padding 如 '6px 8px',或 Tailwind 类 */
19
+ contentPadding?: string;
20
+ onToggle?: (expanded: boolean) => void;
21
+ collapsible?: boolean;
22
+ footer?: ReactNode;
23
+ contentMaxHeight?: number;
24
+ /** 是否启用内容区底部展开/收起栏:内容高度超过 maxHeight 时显示,点击切换全部展开或收起 */
25
+ showExpandAllBar?: boolean;
26
+ /** showExpandAllBar 为 true 时,未展开全部时的内容区最大高度(px) */
27
+ maxHeight?: number;
28
+ titleShimmer?: boolean;
29
+ className?: string;
30
+ }
31
+ export declare function CollapsibleCard({ headerIcon, headerTitle, headerRight, children, defaultExpanded, contentPadding, onToggle, collapsible, footer, contentMaxHeight, showExpandAllBar, maxHeight, titleShimmer, className, }: CollapsibleCardProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare namespace CollapsibleCard {
33
+ var displayName: string;
34
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * [INPUT]: (CollapsibleProps)
3
+ * [OUTPUT]: (JSX.Element) - 可折叠面板组件(Radix primitive)
4
+ * [POS]: registry/basic/collapsible - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff collapsible 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
12
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
14
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * [INPUT]: (DropdownMenu*Props)
3
+ * [OUTPUT]: (JSX.Element) - 下拉菜单组件
4
+ * [POS]: registry/basic/dropdown-menu - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff dropdown-menu 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
12
+ import { type VariantProps } from 'class-variance-authority';
13
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
14
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
15
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
16
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
17
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
18
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
19
+ export interface DropdownMenuContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> {
20
+ /** When provided (e.g. from ThemeStyleProvider), used for portal wrapper */
21
+ dataStyle?: string;
22
+ dataTheme?: string;
23
+ }
24
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
25
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
26
+ inset?: boolean | null | undefined;
27
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
28
+ subTriggerIcon?: React.ReactNode;
29
+ } & React.RefAttributes<HTMLDivElement>>;
30
+ export interface DropdownMenuSubContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> {
31
+ /** When provided (e.g. from ThemeStyleProvider), used for portal wrapper */
32
+ dataStyle?: string;
33
+ dataTheme?: string;
34
+ }
35
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
36
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
37
+ variant?: "default" | "destructive" | null | undefined;
38
+ inset?: boolean | null | undefined;
39
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
40
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
41
+ checkIcon?: React.ReactNode;
42
+ } & React.RefAttributes<HTMLDivElement>>;
43
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
45
+ inset?: boolean | null | undefined;
46
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
47
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
+ declare const DropdownMenuShortcut: {
49
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
50
+ displayName: string;
51
+ };
52
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -0,0 +1,12 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const iconButtonVariants: (props?: ({
4
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "iconOnly" | null | undefined;
5
+ rounded?: "square" | "pill" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
9
+ icon: ReactNode;
10
+ }
11
+ export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
12
+ export { iconButtonVariants };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * [INPUT]: (InlineIconProps)
3
+ * [OUTPUT]: (JSX.Element) - 内联 SVG 图标组件(Remix Icon 风格)
4
+ * [POS]: registry/basic/icons-inline - 注册表默认图标,无 useIcon 依赖
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用于 registry 组件的默认图标
8
+ * 2. 用户可通过 IconsProvider 注入自定义图标替换
9
+ */
10
+ import * as React from 'react';
11
+ export interface InlineIconProps extends React.SVGAttributes<SVGSVGElement> {
12
+ className?: string;
13
+ size?: number | string;
14
+ }
15
+ export declare const ArrowDownLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
16
+ export declare const ArrowUpLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
17
+ export declare const ArrowRightLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
18
+ export declare const ArrowLeftLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
19
+ export declare const CheckLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
20
+ export declare const CloseLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
21
+ export declare const CloseLargeLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
22
+ export declare const CodeSSlashLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
23
+ export declare const EyeLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
24
+ export declare const LoaderLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
25
+ export declare const SendPlaneLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
26
+ export declare const StopLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
27
+ export declare const MicLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
28
+ export declare const FolderLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
29
+ export declare const FolderFillLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
30
+ export declare const FileLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
31
+ export declare const Chat3Line: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
32
+ export declare const WarningLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
33
+ export declare const ArrowDownSLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
34
+ export declare const SparklingLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
35
+ export declare const TimeLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
36
+ export declare const CheckboxCircleLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
37
+ export declare const CloseCircleLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
38
+ export declare const MoreLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
39
+ export declare const QuestionAnswerLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
40
+ export declare const RequestChangesLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
41
+ export declare const CatalogLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
42
+ export declare const CircleLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
43
+ export declare const IndeterminateCircleLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
44
+ export declare const ArrowRightCircleFillLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
45
+ export declare const FileList2Line: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
46
+ export declare const DownloadLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
47
+ export declare const QuestionnaireLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
48
+ export declare const TerminalBoxLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
49
+ export declare const ExternalLinkLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
50
+ export declare const GlobalLine: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
51
+ export declare const Forbid2Line: React.ForwardRefExoticComponent<InlineIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * [INPUT]: (KbdProps, KbdGroupProps)
3
+ * [OUTPUT]: (JSX.Element) - 键盘按键展示组件
4
+ * [POS]: registry/basic/kbd - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff kbd 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ export type KbdProps = React.ComponentProps<'kbd'>;
12
+ declare function Kbd({ className, ...props }: KbdProps): import("react/jsx-runtime").JSX.Element;
13
+ declare namespace Kbd {
14
+ var displayName: string;
15
+ }
16
+ export interface KbdGroupProps extends React.ComponentProps<'span'> {
17
+ separator?: React.ReactNode;
18
+ }
19
+ declare function KbdGroup({ className, children, separator, ...props }: KbdGroupProps): import("react/jsx-runtime").JSX.Element;
20
+ declare namespace KbdGroup {
21
+ var displayName: string;
22
+ }
23
+ export { Kbd, KbdGroup };
@@ -0,0 +1,16 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export interface OptionItem {
3
+ id: string;
4
+ label: string;
5
+ description?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface OptionListProps extends HTMLAttributes<HTMLDivElement> {
9
+ items: OptionItem[];
10
+ selectedIds?: string[];
11
+ focusedId?: string;
12
+ onItemClick?: (item: OptionItem, index: number) => void;
13
+ showPrefix?: boolean;
14
+ disabled?: boolean;
15
+ }
16
+ export declare const OptionList: import("react").ForwardRefExoticComponent<OptionListProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * [INPUT]: (Pagination*Props)
3
+ * [OUTPUT]: (JSX.Element) - 分页导航组件
4
+ * [POS]: registry/basic/pagination - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff pagination 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ declare const Pagination: {
12
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
16
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
17
+ export interface PaginationLinkProps extends React.ComponentProps<'a'> {
18
+ isActive?: boolean;
19
+ }
20
+ declare const PaginationLink: React.ForwardRefExoticComponent<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
21
+ export interface PaginationPreviousProps extends React.ComponentProps<'a'> {
22
+ text?: string;
23
+ }
24
+ declare const PaginationPrevious: React.ForwardRefExoticComponent<Omit<PaginationPreviousProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
25
+ export interface PaginationNextProps extends React.ComponentProps<'a'> {
26
+ text?: string;
27
+ }
28
+ declare const PaginationNext: React.ForwardRefExoticComponent<Omit<PaginationNextProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
29
+ declare const PaginationEllipsis: {
30
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
31
+ displayName: string;
32
+ };
33
+ export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationEllipsis, };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * [INPUT]: (ProgressProps)
3
+ * [OUTPUT]: (JSX.Element) - 进度条组件
4
+ * [POS]: registry/basic/progress - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff progress 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
12
+ export interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, 'value'> {
13
+ value?: number | null;
14
+ max?: number;
15
+ className?: string;
16
+ }
17
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
18
+ export { Progress };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * [INPUT]: (RadioGroupProps, RadioGroupItemProps)
3
+ * [OUTPUT]: (JSX.Element) - 单选按钮组组件
4
+ * [POS]: registry/basic/radio-group - 注册表模板,复制到用户项目后可自由修改
5
+ *
6
+ * [PROTOCOL]:
7
+ * 1. 用户可自由修改此文件
8
+ * 2. 更新时使用 npx sparkdesign diff radio-group 查看差异
9
+ */
10
+ import * as React from 'react';
11
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
12
+ import { type VariantProps } from 'class-variance-authority';
13
+ declare const rootVariants: (props?: ({
14
+ orientation?: "horizontal" | "vertical" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ declare const itemVariants: (props?: ({
17
+ size?: "sm" | "md" | "lg" | null | undefined;
18
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
+ export interface RadioGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, 'orientation'>, VariantProps<typeof rootVariants> {
20
+ }
21
+ export interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, VariantProps<typeof itemVariants> {
22
+ }
23
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
24
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
25
+ export { RadioGroup, RadioGroupItem, rootVariants as radioGroupVariants, itemVariants as radioGroupItemVariants };