@yuhuanowo/yunui 0.2.18 → 0.2.19

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 (558) hide show
  1. package/README.md +55 -6
  2. package/README.zh-CN.md +19 -5
  3. package/README.zh-TW.md +19 -5
  4. package/THIRD_PARTY_NOTICES.md +13 -0
  5. package/agent/catalog.generated.json +29368 -0
  6. package/agent/recipes/analytics.tsx +121 -0
  7. package/agent/recipes/chat.tsx +154 -0
  8. package/agent/recipes/conversation-units.tsx +28 -0
  9. package/agent/recipes/dashboard.tsx +38 -0
  10. package/agent/recipes/landing.tsx +26 -0
  11. package/agent/recipes/setup.md +44 -0
  12. package/agent/skills/yunui/SKILL.md +82 -0
  13. package/dist/adapters.d.ts +5 -0
  14. package/dist/adapters.js +1 -1
  15. package/dist/ai.d.ts +429 -320
  16. package/dist/ai.js +1228 -1966
  17. package/dist/ai.js.map +1 -1
  18. package/dist/charts.d.ts +149 -0
  19. package/dist/charts.js +849 -0
  20. package/dist/charts.js.map +1 -0
  21. package/dist/chat.d.ts +202 -23
  22. package/dist/chat.js +879 -129
  23. package/dist/chat.js.map +1 -1
  24. package/dist/{chunk-GAXVET76.js → chunk-ASPPAL7E.js} +16 -14
  25. package/dist/chunk-ASPPAL7E.js.map +1 -0
  26. package/dist/chunk-AVXIR7ZQ.js +197 -0
  27. package/dist/chunk-AVXIR7ZQ.js.map +1 -0
  28. package/dist/chunk-FJ52MVRF.js +82 -0
  29. package/dist/chunk-FJ52MVRF.js.map +1 -0
  30. package/dist/chunk-GRUB2GXF.js +15 -0
  31. package/dist/chunk-GRUB2GXF.js.map +1 -0
  32. package/dist/{chunk-3RT24MSH.js → chunk-GWD5W5F5.js} +2 -2
  33. package/dist/{chunk-3RT24MSH.js.map → chunk-GWD5W5F5.js.map} +1 -1
  34. package/dist/{chunk-YKWRCA2S.js → chunk-I2DAKAD5.js} +356 -138
  35. package/dist/chunk-I2DAKAD5.js.map +1 -0
  36. package/dist/{chunk-ST6TSBVQ.js → chunk-OM7B4O6K.js} +9 -24
  37. package/dist/chunk-OM7B4O6K.js.map +1 -0
  38. package/dist/chunk-OZIDZFMF.js +70 -0
  39. package/dist/chunk-OZIDZFMF.js.map +1 -0
  40. package/dist/chunk-P6LU2FWV.js +35 -0
  41. package/dist/chunk-P6LU2FWV.js.map +1 -0
  42. package/dist/chunk-SXWMKFKM.js +41 -0
  43. package/dist/chunk-SXWMKFKM.js.map +1 -0
  44. package/dist/chunk-TMTXJFNN.js +2715 -0
  45. package/dist/chunk-TMTXJFNN.js.map +1 -0
  46. package/dist/chunk-VNKAEQKU.js +501 -0
  47. package/dist/chunk-VNKAEQKU.js.map +1 -0
  48. package/dist/chunk-VSS7ASN2.js +12 -0
  49. package/dist/chunk-VSS7ASN2.js.map +1 -0
  50. package/dist/chunk-VYVFMNM7.js +112 -0
  51. package/dist/chunk-VYVFMNM7.js.map +1 -0
  52. package/dist/chunk-YKUQ7GCJ.js +230 -0
  53. package/dist/chunk-YKUQ7GCJ.js.map +1 -0
  54. package/dist/chunk-Z6WXDNBJ.js +366 -0
  55. package/dist/chunk-Z6WXDNBJ.js.map +1 -0
  56. package/dist/chunk-ZBRV6NHL.js +1115 -0
  57. package/dist/chunk-ZBRV6NHL.js.map +1 -0
  58. package/dist/code.d.ts +42 -0
  59. package/dist/code.js +8 -0
  60. package/dist/code.js.map +1 -0
  61. package/dist/content.d.ts +17 -39
  62. package/dist/content.js +373 -401
  63. package/dist/content.js.map +1 -1
  64. package/dist/footer-BCd-S806.d.ts +122 -0
  65. package/dist/index.d.ts +565 -89
  66. package/dist/index.js +7 -5
  67. package/dist/language.d.ts +30 -0
  68. package/dist/language.js +5 -0
  69. package/dist/language.js.map +1 -0
  70. package/dist/model-card.d.ts +43 -0
  71. package/dist/model-card.js +116 -0
  72. package/dist/model-card.js.map +1 -0
  73. package/dist/model.d.ts +51 -0
  74. package/dist/model.js +91 -0
  75. package/dist/model.js.map +1 -0
  76. package/dist/motion.d.ts +11 -0
  77. package/dist/motion.js +9 -0
  78. package/dist/motion.js.map +1 -0
  79. package/dist/patterns.d.ts +443 -8
  80. package/dist/patterns.js +1223 -147
  81. package/dist/patterns.js.map +1 -1
  82. package/dist/pickers.d.ts +134 -0
  83. package/dist/pickers.js +751 -0
  84. package/dist/pickers.js.map +1 -0
  85. package/dist/provider-icons-bgBTnami.d.ts +88 -0
  86. package/dist/segmented-bar-Bsr0PZIL.d.ts +58 -0
  87. package/dist/sparkline-vy5ec5C6.d.ts +67 -0
  88. package/icons/apps/aistudio.webp +0 -0
  89. package/icons/apps/coze.webp +0 -0
  90. package/icons/apps/dify.webp +0 -0
  91. package/icons/apps/doubao.webp +0 -0
  92. package/icons/apps/flowith.webp +0 -0
  93. package/icons/apps/gemini.webp +0 -0
  94. package/icons/apps/github-copilot.webp +0 -0
  95. package/icons/apps/google.webp +0 -0
  96. package/icons/apps/grok.webp +0 -0
  97. package/icons/apps/kimi.webp +0 -0
  98. package/icons/apps/ling.webp +0 -0
  99. package/icons/apps/longcat.webp +0 -0
  100. package/icons/apps/monica.webp +0 -0
  101. package/icons/apps/n8n.webp +0 -0
  102. package/icons/apps/notebooklm.webp +0 -0
  103. package/icons/apps/perplexity.webp +0 -0
  104. package/icons/apps/poe.webp +0 -0
  105. package/icons/apps/qingyan.webp +0 -0
  106. package/icons/apps/stepfun.webp +0 -0
  107. package/icons/apps/tiangong.webp +0 -0
  108. package/icons/apps/yuanbao.webp +0 -0
  109. package/icons/apps/zai.webp +0 -0
  110. package/icons/models/ai21.webp +0 -0
  111. package/icons/models/aimass.webp +0 -0
  112. package/icons/models/anthropic.webp +0 -0
  113. package/icons/models/baichuan.webp +0 -0
  114. package/icons/models/byte_dance.webp +0 -0
  115. package/icons/models/chatglm.webp +0 -0
  116. package/icons/models/claude.webp +0 -0
  117. package/icons/models/codegeex.webp +0 -0
  118. package/icons/models/cogview3flash.webp +0 -0
  119. package/icons/models/cohere.webp +0 -0
  120. package/icons/models/copilot.webp +0 -0
  121. package/icons/models/dalle.webp +0 -0
  122. package/icons/models/dbrx.webp +0 -0
  123. package/icons/models/deepseek.webp +0 -0
  124. package/icons/models/doubao.webp +0 -0
  125. package/icons/models/flux.webp +0 -0
  126. package/icons/models/gemini.webp +0 -0
  127. package/icons/models/gemma.webp +0 -0
  128. package/icons/models/google.webp +0 -0
  129. package/icons/models/grok.webp +0 -0
  130. package/icons/models/hailuo.webp +0 -0
  131. package/icons/models/huggingface.webp +0 -0
  132. package/icons/models/hunyuan.webp +0 -0
  133. package/icons/models/ibm.webp +0 -0
  134. package/icons/models/ideogram.webp +0 -0
  135. package/icons/models/internlm.webp +0 -0
  136. package/icons/models/jina.webp +0 -0
  137. package/icons/models/ling.webp +0 -0
  138. package/icons/models/llava.webp +0 -0
  139. package/icons/models/luma.webp +0 -0
  140. package/icons/models/magic.webp +0 -0
  141. package/icons/models/microsoft.webp +0 -0
  142. package/icons/models/midjourney.webp +0 -0
  143. package/icons/models/minimax.webp +0 -0
  144. package/icons/models/mistral.webp +0 -0
  145. package/icons/models/moonshot.webp +0 -0
  146. package/icons/models/nousresearch.webp +0 -0
  147. package/icons/models/nvidia.webp +0 -0
  148. package/icons/models/o3.webp +0 -0
  149. package/icons/models/openai.webp +0 -0
  150. package/icons/models/palm.webp +0 -0
  151. package/icons/models/perplexity.webp +0 -0
  152. package/icons/models/qwen.webp +0 -0
  153. package/icons/models/stability.webp +0 -0
  154. package/icons/models/step.webp +0 -0
  155. package/icons/models/suno.webp +0 -0
  156. package/icons/models/upstage.webp +0 -0
  157. package/icons/models/vidu.webp +0 -0
  158. package/icons/models/volcengine.webp +0 -0
  159. package/icons/models/voyageai.webp +0 -0
  160. package/icons/models/wenxin.webp +0 -0
  161. package/icons/models/yi.webp +0 -0
  162. package/icons/models/zai.webp +0 -0
  163. package/icons/models/zero-one.webp +0 -0
  164. package/icons/models/zhipu.webp +0 -0
  165. package/icons/providers/302ai.webp +0 -0
  166. package/icons/providers/ace.webp +0 -0
  167. package/icons/providers/adobe.webp +0 -0
  168. package/icons/providers/adobefirefly.webp +0 -0
  169. package/icons/providers/agentvoice.webp +0 -0
  170. package/icons/providers/agnesai.webp +0 -0
  171. package/icons/providers/agui.webp +0 -0
  172. package/icons/providers/ai2.webp +0 -0
  173. package/icons/providers/ai21.webp +0 -0
  174. package/icons/providers/ai302.webp +0 -0
  175. package/icons/providers/ai360.webp +0 -0
  176. package/icons/providers/aihubmix.webp +0 -0
  177. package/icons/providers/aimass.webp +0 -0
  178. package/icons/providers/aimlapi.webp +0 -0
  179. package/icons/providers/aionlabs.webp +0 -0
  180. package/icons/providers/airjelly.webp +0 -0
  181. package/icons/providers/aistudio.webp +0 -0
  182. package/icons/providers/akashchat.webp +0 -0
  183. package/icons/providers/alephalpha.webp +0 -0
  184. package/icons/providers/alibaba.webp +0 -0
  185. package/icons/providers/alibabacloud.webp +0 -0
  186. package/icons/providers/amdradeoncloud.webp +0 -0
  187. package/icons/providers/amp.webp +0 -0
  188. package/icons/providers/anspire.webp +0 -0
  189. package/icons/providers/antgroup.webp +0 -0
  190. package/icons/providers/anthropic.webp +0 -0
  191. package/icons/providers/antigravity.webp +0 -0
  192. package/icons/providers/anyscale.webp +0 -0
  193. package/icons/providers/apertis.webp +0 -0
  194. package/icons/providers/apple.webp +0 -0
  195. package/icons/providers/appwrite.webp +0 -0
  196. package/icons/providers/arcee.webp +0 -0
  197. package/icons/providers/askverdict.webp +0 -0
  198. package/icons/providers/assemblyai.webp +0 -0
  199. package/icons/providers/atlascloud.webp +0 -0
  200. package/icons/providers/automatic.webp +0 -0
  201. package/icons/providers/aws-bedrock.webp +0 -0
  202. package/icons/providers/aws.webp +0 -0
  203. package/icons/providers/aya.webp +0 -0
  204. package/icons/providers/azure.webp +0 -0
  205. package/icons/providers/azureai.webp +0 -0
  206. package/icons/providers/baai.webp +0 -0
  207. package/icons/providers/baichuan.webp +0 -0
  208. package/icons/providers/baidu-cloud.webp +0 -0
  209. package/icons/providers/baidu.webp +0 -0
  210. package/icons/providers/baiducloud.webp +0 -0
  211. package/icons/providers/bailian.webp +0 -0
  212. package/icons/providers/baseten.webp +0 -0
  213. package/icons/providers/bedrock.webp +0 -0
  214. package/icons/providers/bfl.webp +0 -0
  215. package/icons/providers/bigModel.webp +0 -0
  216. package/icons/providers/bilibili.webp +0 -0
  217. package/icons/providers/bilibiliindex.webp +0 -0
  218. package/icons/providers/bing.webp +0 -0
  219. package/icons/providers/bocha.webp +0 -0
  220. package/icons/providers/brave.webp +0 -0
  221. package/icons/providers/briaai.webp +0 -0
  222. package/icons/providers/browserless.webp +0 -0
  223. package/icons/providers/burncloud.webp +0 -0
  224. package/icons/providers/bytedance.webp +0 -0
  225. package/icons/providers/capcut.webp +0 -0
  226. package/icons/providers/celestoai.webp +0 -0
  227. package/icons/providers/centml.webp +0 -0
  228. package/icons/providers/cerebras.webp +0 -0
  229. package/icons/providers/chatglm.webp +0 -0
  230. package/icons/providers/cheaperinference.webp +0 -0
  231. package/icons/providers/cherrystudio.webp +0 -0
  232. package/icons/providers/chutes.webp +0 -0
  233. package/icons/providers/civitai.webp +0 -0
  234. package/icons/providers/claude.webp +0 -0
  235. package/icons/providers/claudecode.webp +0 -0
  236. package/icons/providers/cline.webp +0 -0
  237. package/icons/providers/clipdrop.webp +0 -0
  238. package/icons/providers/cloudflare.webp +0 -0
  239. package/icons/providers/codebuddy.webp +0 -0
  240. package/icons/providers/codeflicker.webp +0 -0
  241. package/icons/providers/codegeex.webp +0 -0
  242. package/icons/providers/codex.webp +0 -0
  243. package/icons/providers/cogvideo.webp +0 -0
  244. package/icons/providers/cogview.webp +0 -0
  245. package/icons/providers/cogview3flash.webp +0 -0
  246. package/icons/providers/cohere.webp +0 -0
  247. package/icons/providers/colab.webp +0 -0
  248. package/icons/providers/cometapi.webp +0 -0
  249. package/icons/providers/comfyui.webp +0 -0
  250. package/icons/providers/commanda.webp +0 -0
  251. package/icons/providers/commandcode.webp +0 -0
  252. package/icons/providers/copilot.webp +0 -0
  253. package/icons/providers/copilotkit.webp +0 -0
  254. package/icons/providers/coqui.webp +0 -0
  255. package/icons/providers/coze.webp +0 -0
  256. package/icons/providers/crewai.webp +0 -0
  257. package/icons/providers/crusoe.webp +0 -0
  258. package/icons/providers/cursor.webp +0 -0
  259. package/icons/providers/cybercut.webp +0 -0
  260. package/icons/providers/dalle.webp +0 -0
  261. package/icons/providers/dbrx.webp +0 -0
  262. package/icons/providers/decart.webp +0 -0
  263. package/icons/providers/deepai.webp +0 -0
  264. package/icons/providers/deepcogito.webp +0 -0
  265. package/icons/providers/deepinfra.webp +0 -0
  266. package/icons/providers/deepl.webp +0 -0
  267. package/icons/providers/deepmind.webp +0 -0
  268. package/icons/providers/deepseek.webp +0 -0
  269. package/icons/providers/devin.webp +0 -0
  270. package/icons/providers/dify.webp +0 -0
  271. package/icons/providers/digitalocean.webp +0 -0
  272. package/icons/providers/doc2x.webp +0 -0
  273. package/icons/providers/docsearch.webp +0 -0
  274. package/icons/providers/dolphin.webp +0 -0
  275. package/icons/providers/dothoosh.webp +0 -0
  276. package/icons/providers/dotsstudio.webp +0 -0
  277. package/icons/providers/doubao.webp +0 -0
  278. package/icons/providers/dreammachine.webp +0 -0
  279. package/icons/providers/elevenlabs.webp +0 -0
  280. package/icons/providers/elevenx.webp +0 -0
  281. package/icons/providers/empiriolabs.webp +0 -0
  282. package/icons/providers/essentialai.webp +0 -0
  283. package/icons/providers/exa.webp +0 -0
  284. package/icons/providers/fal.webp +0 -0
  285. package/icons/providers/fastgpt.webp +0 -0
  286. package/icons/providers/featherless.webp +0 -0
  287. package/icons/providers/figma.webp +0 -0
  288. package/icons/providers/firecrawl.webp +0 -0
  289. package/icons/providers/fireworks.webp +0 -0
  290. package/icons/providers/fishaudio.webp +0 -0
  291. package/icons/providers/flexai.webp +0 -0
  292. package/icons/providers/flora.webp +0 -0
  293. package/icons/providers/flowith.webp +0 -0
  294. package/icons/providers/flux.webp +0 -0
  295. package/icons/providers/friendli.webp +0 -0
  296. package/icons/providers/gemini.webp +0 -0
  297. package/icons/providers/geminicli.webp +0 -0
  298. package/icons/providers/gemma.webp +0 -0
  299. package/icons/providers/gitee-ai.webp +0 -0
  300. package/icons/providers/giteeai.webp +0 -0
  301. package/icons/providers/github.webp +0 -0
  302. package/icons/providers/githubcopilot.webp +0 -0
  303. package/icons/providers/glama.webp +0 -0
  304. package/icons/providers/glif.webp +0 -0
  305. package/icons/providers/glmv.webp +0 -0
  306. package/icons/providers/gmicloud.webp +0 -0
  307. package/icons/providers/google.webp +0 -0
  308. package/icons/providers/googlecloud.webp +0 -0
  309. package/icons/providers/goose.webp +0 -0
  310. package/icons/providers/gradio.webp +0 -0
  311. package/icons/providers/greenpt.webp +0 -0
  312. package/icons/providers/greptile.webp +0 -0
  313. package/icons/providers/grok.webp +0 -0
  314. package/icons/providers/grokbot.webp +0 -0
  315. package/icons/providers/groq.webp +0 -0
  316. package/icons/providers/hailuo.webp +0 -0
  317. package/icons/providers/haiper.webp +0 -0
  318. package/icons/providers/happyhorse.webp +0 -0
  319. package/icons/providers/hedra.webp +0 -0
  320. package/icons/providers/hermesagent.webp +0 -0
  321. package/icons/providers/higress.webp +0 -0
  322. package/icons/providers/huawei.webp +0 -0
  323. package/icons/providers/huaweicloud.webp +0 -0
  324. package/icons/providers/huggingface.webp +0 -0
  325. package/icons/providers/hunyuan.webp +0 -0
  326. package/icons/providers/hyperbolic.webp +0 -0
  327. package/icons/providers/ibm.webp +0 -0
  328. package/icons/providers/ideogram.webp +0 -0
  329. package/icons/providers/iflytekcloud.webp +0 -0
  330. package/icons/providers/inception.webp +0 -0
  331. package/icons/providers/inceptron.webp +0 -0
  332. package/icons/providers/inference.webp +0 -0
  333. package/icons/providers/infermatic.webp +0 -0
  334. package/icons/providers/infini.webp +0 -0
  335. package/icons/providers/infinigence.webp +0 -0
  336. package/icons/providers/inflection.webp +0 -0
  337. package/icons/providers/internlm.webp +0 -0
  338. package/icons/providers/ionet.webp +0 -0
  339. package/icons/providers/jimeng.webp +0 -0
  340. package/icons/providers/jina.webp +0 -0
  341. package/icons/providers/junie.webp +0 -0
  342. package/icons/providers/kagi.webp +0 -0
  343. package/icons/providers/kilocode.webp +0 -0
  344. package/icons/providers/kimi.webp +0 -0
  345. package/icons/providers/kiro.webp +0 -0
  346. package/icons/providers/kling.webp +0 -0
  347. package/icons/providers/kluster.webp +0 -0
  348. package/icons/providers/kolors.webp +0 -0
  349. package/icons/providers/krea.webp +0 -0
  350. package/icons/providers/kwaikat.webp +0 -0
  351. package/icons/providers/kwaipilot.webp +0 -0
  352. package/icons/providers/lambda.webp +0 -0
  353. package/icons/providers/langchain.webp +0 -0
  354. package/icons/providers/langfuse.webp +0 -0
  355. package/icons/providers/langgraph.webp +0 -0
  356. package/icons/providers/langsmith.webp +0 -0
  357. package/icons/providers/leptonai.webp +0 -0
  358. package/icons/providers/lg.webp +0 -0
  359. package/icons/providers/lightricks.webp +0 -0
  360. package/icons/providers/ling.webp +0 -0
  361. package/icons/providers/liquid.webp +0 -0
  362. package/icons/providers/livekit.webp +0 -0
  363. package/icons/providers/llamaindex.webp +0 -0
  364. package/icons/providers/llava.webp +0 -0
  365. package/icons/providers/llmapi.webp +0 -0
  366. package/icons/providers/llmgateway.webp +0 -0
  367. package/icons/providers/lmstudio.webp +0 -0
  368. package/icons/providers/lobehub.webp +0 -0
  369. package/icons/providers/lobot.webp +0 -0
  370. package/icons/providers/longcat.webp +0 -0
  371. package/icons/providers/lovable.webp +0 -0
  372. package/icons/providers/lovart.webp +0 -0
  373. package/icons/providers/luma.webp +0 -0
  374. package/icons/providers/magic.webp +0 -0
  375. package/icons/providers/magpie.webp +0 -0
  376. package/icons/providers/make.webp +0 -0
  377. package/icons/providers/manus.webp +0 -0
  378. package/icons/providers/mastra.webp +0 -0
  379. package/icons/providers/mcp.webp +0 -0
  380. package/icons/providers/mcpso.webp +0 -0
  381. package/icons/providers/menlo.webp +0 -0
  382. package/icons/providers/meshy.webp +0 -0
  383. package/icons/providers/meta.webp +0 -0
  384. package/icons/providers/metaai.webp +0 -0
  385. package/icons/providers/metagpt.webp +0 -0
  386. package/icons/providers/microsoft.webp +0 -0
  387. package/icons/providers/midjourney.webp +0 -0
  388. package/icons/providers/minimax.webp +0 -0
  389. package/icons/providers/mistral.webp +0 -0
  390. package/icons/providers/modelscope.webp +0 -0
  391. package/icons/providers/monica.webp +0 -0
  392. package/icons/providers/moonshot.webp +0 -0
  393. package/icons/providers/morph.webp +0 -0
  394. package/icons/providers/moxt.webp +0 -0
  395. package/icons/providers/muse.webp +0 -0
  396. package/icons/providers/myshell.webp +0 -0
  397. package/icons/providers/n8n.webp +0 -0
  398. package/icons/providers/nanobanana.webp +0 -0
  399. package/icons/providers/nebius.webp +0 -0
  400. package/icons/providers/newapi.webp +0 -0
  401. package/icons/providers/nextbit.webp +0 -0
  402. package/icons/providers/notebooklm.webp +0 -0
  403. package/icons/providers/notion.webp +0 -0
  404. package/icons/providers/nousresearch.webp +0 -0
  405. package/icons/providers/nova.webp +0 -0
  406. package/icons/providers/novelai.webp +0 -0
  407. package/icons/providers/novita.webp +0 -0
  408. package/icons/providers/nplcloud.webp +0 -0
  409. package/icons/providers/nvidia.webp +0 -0
  410. package/icons/providers/o3.webp +0 -0
  411. package/icons/providers/obsidian.webp +0 -0
  412. package/icons/providers/ollama.webp +0 -0
  413. package/icons/providers/omlx.webp +0 -0
  414. package/icons/providers/openai.webp +0 -0
  415. package/icons/providers/openchat.webp +0 -0
  416. package/icons/providers/openclaw.webp +0 -0
  417. package/icons/providers/opencode.webp +0 -0
  418. package/icons/providers/openhands.webp +0 -0
  419. package/icons/providers/openhuman.webp +0 -0
  420. package/icons/providers/openrouter.webp +0 -0
  421. package/icons/providers/openwebui.webp +0 -0
  422. package/icons/providers/paddleocr.webp +0 -0
  423. package/icons/providers/palm.webp +0 -0
  424. package/icons/providers/parasail.webp +0 -0
  425. package/icons/providers/perceptron.webp +0 -0
  426. package/icons/providers/perplexity.webp +0 -0
  427. package/icons/providers/phala.webp +0 -0
  428. package/icons/providers/phidata.webp +0 -0
  429. package/icons/providers/phind.webp +0 -0
  430. package/icons/providers/pi.webp +0 -0
  431. package/icons/providers/pika.webp +0 -0
  432. package/icons/providers/pixverse.webp +0 -0
  433. package/icons/providers/player2.webp +0 -0
  434. package/icons/providers/poe.webp +0 -0
  435. package/icons/providers/pollinations.webp +0 -0
  436. package/icons/providers/poolside.webp +0 -0
  437. package/icons/providers/ppio.webp +0 -0
  438. package/icons/providers/prunaai.webp +0 -0
  439. package/icons/providers/pydanticai.webp +0 -0
  440. package/icons/providers/qingyan.webp +0 -0
  441. package/icons/providers/qiniu.webp +0 -0
  442. package/icons/providers/qoder.webp +0 -0
  443. package/icons/providers/qwen.webp +0 -0
  444. package/icons/providers/railway.webp +0 -0
  445. package/icons/providers/recraft.webp +0 -0
  446. package/icons/providers/reflection.webp +0 -0
  447. package/icons/providers/reka.webp +0 -0
  448. package/icons/providers/relace.webp +0 -0
  449. package/icons/providers/replicate.webp +0 -0
  450. package/icons/providers/replit.webp +0 -0
  451. package/icons/providers/reve.webp +0 -0
  452. package/icons/providers/roocode.webp +0 -0
  453. package/icons/providers/rsshub.webp +0 -0
  454. package/icons/providers/runway.webp +0 -0
  455. package/icons/providers/rwkv.webp +0 -0
  456. package/icons/providers/sakana.webp +0 -0
  457. package/icons/providers/sambanova.webp +0 -0
  458. package/icons/providers/search1api.webp +0 -0
  459. package/icons/providers/searchapi.webp +0 -0
  460. package/icons/providers/searxng.webp +0 -0
  461. package/icons/providers/sensenova.webp +0 -0
  462. package/icons/providers/silicon.webp +0 -0
  463. package/icons/providers/siliconcloud.webp +0 -0
  464. package/icons/providers/sillytavern.webp +0 -0
  465. package/icons/providers/skywork.webp +0 -0
  466. package/icons/providers/slock.webp +0 -0
  467. package/icons/providers/smithery.webp +0 -0
  468. package/icons/providers/snowflake.webp +0 -0
  469. package/icons/providers/sophnet.webp +0 -0
  470. package/icons/providers/sora.webp +0 -0
  471. package/icons/providers/spark.webp +0 -0
  472. package/icons/providers/speedai.webp +0 -0
  473. package/icons/providers/stability.webp +0 -0
  474. package/icons/providers/statecloud.webp +0 -0
  475. package/icons/providers/step.webp +0 -0
  476. package/icons/providers/stepfun.webp +0 -0
  477. package/icons/providers/straico.webp +0 -0
  478. package/icons/providers/streamlake.webp +0 -0
  479. package/icons/providers/sub2api.webp +0 -0
  480. package/icons/providers/submodel.webp +0 -0
  481. package/icons/providers/suno.webp +0 -0
  482. package/icons/providers/sync.webp +0 -0
  483. package/icons/providers/tabbit.webp +0 -0
  484. package/icons/providers/targon.webp +0 -0
  485. package/icons/providers/tavily.webp +0 -0
  486. package/icons/providers/tencent-cloud-ti.webp +0 -0
  487. package/icons/providers/tencent.webp +0 -0
  488. package/icons/providers/tencentcloud.webp +0 -0
  489. package/icons/providers/tiangong.webp +0 -0
  490. package/icons/providers/tii.webp +0 -0
  491. package/icons/providers/together.webp +0 -0
  492. package/icons/providers/topazlabs.webp +0 -0
  493. package/icons/providers/trae.webp +0 -0
  494. package/icons/providers/tripo.webp +0 -0
  495. package/icons/providers/turix.webp +0 -0
  496. package/icons/providers/typesafeai.webp +0 -0
  497. package/icons/providers/udio.webp +0 -0
  498. package/icons/providers/unionalpha.webp +0 -0
  499. package/icons/providers/unsloth.webp +0 -0
  500. package/icons/providers/unstructured.webp +0 -0
  501. package/icons/providers/upstage.webp +0 -0
  502. package/icons/providers/v0.webp +0 -0
  503. package/icons/providers/vectorizerai.webp +0 -0
  504. package/icons/providers/venice.webp +0 -0
  505. package/icons/providers/vercel.webp +0 -0
  506. package/icons/providers/vertexai.webp +0 -0
  507. package/icons/providers/vidu.webp +0 -0
  508. package/icons/providers/viggle.webp +0 -0
  509. package/icons/providers/vllm.webp +0 -0
  510. package/icons/providers/volcengine.webp +0 -0
  511. package/icons/providers/voyage.webp +0 -0
  512. package/icons/providers/voyageai.webp +0 -0
  513. package/icons/providers/wafer.webp +0 -0
  514. package/icons/providers/wandb.webp +0 -0
  515. package/icons/providers/wavespeed.webp +0 -0
  516. package/icons/providers/wenxin.webp +0 -0
  517. package/icons/providers/windsurf.webp +0 -0
  518. package/icons/providers/workbuddy.webp +0 -0
  519. package/icons/providers/workersai.webp +0 -0
  520. package/icons/providers/worldrouter.webp +0 -0
  521. package/icons/providers/xai.webp +0 -0
  522. package/icons/providers/xiaomimimo.webp +0 -0
  523. package/icons/providers/xinference.webp +0 -0
  524. package/icons/providers/xpay.webp +0 -0
  525. package/icons/providers/xuanyuan.webp +0 -0
  526. package/icons/providers/yandex.webp +0 -0
  527. package/icons/providers/yi.webp +0 -0
  528. package/icons/providers/youmind.webp +0 -0
  529. package/icons/providers/yuanbao.webp +0 -0
  530. package/icons/providers/zai.webp +0 -0
  531. package/icons/providers/zapier.webp +0 -0
  532. package/icons/providers/zeabur.webp +0 -0
  533. package/icons/providers/zencoder.webp +0 -0
  534. package/icons/providers/zenmux.webp +0 -0
  535. package/icons/providers/zero-one.webp +0 -0
  536. package/icons/providers/zeroone.webp +0 -0
  537. package/icons/providers/zhipu.webp +0 -0
  538. package/licenses/beautiful-ui-MIT.txt +21 -0
  539. package/package.json +51 -7
  540. package/scripts/yunui-audit.mjs +664 -0
  541. package/scripts/yunui-cli.mjs +868 -0
  542. package/scripts/yunui-init.mjs +138 -0
  543. package/styles/content.css +34 -2
  544. package/styles/tokens.css +41 -0
  545. package/styles/yunui.css +1389 -57
  546. package/dist/chunk-AFVENY4D.js +0 -1466
  547. package/dist/chunk-AFVENY4D.js.map +0 -1
  548. package/dist/chunk-GAXVET76.js.map +0 -1
  549. package/dist/chunk-LEBQPP4B.js +0 -152
  550. package/dist/chunk-LEBQPP4B.js.map +0 -1
  551. package/dist/chunk-ST6TSBVQ.js.map +0 -1
  552. package/dist/chunk-V7VJKZ5Q.js +0 -254
  553. package/dist/chunk-V7VJKZ5Q.js.map +0 -1
  554. package/dist/chunk-YKWRCA2S.js.map +0 -1
  555. package/dist/footer-BoFu7Wqq.d.ts +0 -46
  556. package/icons/apps/ling.png +0 -0
  557. package/icons/models/ling.png +0 -0
  558. package/icons/providers/Kwaipilot.png +0 -0
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as framer_motion from 'framer-motion';
2
1
  import * as React$1 from 'react';
3
- import { ReactNode, ButtonHTMLAttributes, RefObject } from 'react';
2
+ import { ReactNode, ButtonHTMLAttributes, HTMLAttributes, RefObject } from 'react';
4
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
5
4
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
6
5
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
@@ -13,6 +12,8 @@ import { LucideIcon } from 'lucide-react';
13
12
  import * as Primitive from '@radix-ui/react-collapsible';
14
13
  import * as PopoverPrimitive from '@radix-ui/react-popover';
15
14
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
15
+ export { M as MetricChartGroup, a as MetricChartGroupProps, c as Sparkline, d as SparklineProps, e as SparklineTone, u as useMetricGroup } from './sparkline-vy5ec5C6.js';
16
+ export { B as BarMark, a as BarSegment, S as SegmentTone, b as SegmentedBar, c as SegmentedBarProps } from './segmented-bar-Bsr0PZIL.js';
16
17
  import { ToasterProps } from 'sonner';
17
18
  import { ClassValue } from 'clsx';
18
19
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
@@ -151,10 +152,17 @@ interface SheetProps {
151
152
  /** Hide on large screens (`lg`+) — for mobile-only drawers (e.g. a sidebar
152
153
  * that's permanent on desktop). @defaultValue false (shows on all sizes). */
153
154
  mobileOnly?: boolean;
155
+ /** Optional secondary line under the title (12px, muted). */
156
+ description?: string;
157
+ /** Sticky footer actions, pinned under the scrolling body. */
158
+ footer?: React.ReactNode;
154
159
  }
155
- /** Slide-in panel from the right with a backdrop. By default it shows on every
156
- * screen size; set `mobileOnly` to hide it on `lg`+ (a mobile-only drawer). */
157
- declare function Sheet({ open, onClose, children, title, closeLabel, mobileOnly }: SheetProps): React$1.ReactPortal | null;
160
+ /** Floating card panel. On phones (< `sm`) it is a content-height bottom card with
161
+ * a grabber that closes on swipe-down; from `sm` up it is an inset side card on the
162
+ * right. Header = title (14/600) + optional description + close; `footer` is sticky;
163
+ * the body fades at its bottom edge. Enter 280 ms expo ease-out, exit 200 ms ease-in (motion tokens); opacity only under
164
+ * reduced motion. Set `mobileOnly` to hide it on `lg`+. */
165
+ declare function Sheet({ open, onClose, children, title, description, footer, closeLabel, mobileOnly }: SheetProps): React$1.ReactPortal | null;
158
166
 
159
167
  interface CheckboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "checked" | "onChange" | "type" | "role" | "disabled" | "id" | "className"> {
160
168
  /** Whether the box is checked. `"indeterminate"` shows a dash — for a
@@ -246,9 +254,9 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPri
246
254
  /** Clickable header that toggles its section; shows a chevron that rotates when open. */
247
255
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
248
256
  /**
249
- * Collapsible panel body. Animates its height open/closed by transitioning the
250
- * `grid-template-rows` `0fr` → `1fr` track, driven by Radix's
251
- * `data-state` attribute. Self-contained (no external keyframes required).
257
+ * Collapsible panel body. Animates its height open/closed with a keyframe on the
258
+ * `grid-template-rows` `0fr` → `1fr` track (`.yunui-rows-motion`). It has to be a keyframe, not a
259
+ * transition: Radix unmounts the closed content as soon as no animation is running.
252
260
  */
253
261
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
254
262
 
@@ -397,6 +405,8 @@ declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttribu
397
405
  onSort?: () => void;
398
406
  sortDirection?: "asc" | "desc" | false;
399
407
  align?: "left" | "right" | "center";
408
+ /** `true` (default) is the uppercase, tracked label; `false` is normal case, as in ModelCompare. */
409
+ uppercase?: boolean;
400
410
  } & React$1.RefAttributes<HTMLTableCellElement>>;
401
411
  /** Standard data cell (`<td>`). */
402
412
  declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & {
@@ -495,12 +505,12 @@ declare const Pagination: React$1.ForwardRefExoticComponent<PaginationProps & Re
495
505
 
496
506
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
497
507
  /**
498
- * Visual style. Options: `primary`, `secondary`, `ghost`, `accent`, `outline`, `amber`, `red`/`destructive`.
508
+ * Visual style. Options: `primary`, `secondary`, `ghost`, `link`, `accent`, `outline`, `amber`, `red`/`destructive`.
499
509
  * @defaultValue "default"
500
510
  */
501
- variant?: /** @deprecated alias of `primary` */ "default" | "primary" | "secondary" | "ghost" | "accent" | /** Solid fill from the runtime-themeable brand token (data-brand). */ "brand" | "outline" | "amber" | /** @deprecated alias of `destructive` */ "red" | "destructive";
502
- /** Size: `sm`, `md` (default), `lg`, or `icon` (square 40×40). */
503
- size?: "sm" | "md" | "lg" | "icon";
511
+ variant?: /** @deprecated alias of `primary` */ "default" | "primary" | "secondary" | "ghost" | /** Text action: no fill, no padding, underline on hover. */ "link" | "accent" | /** Solid fill from the runtime-themeable brand token (data-brand). */ "brand" | "outline" | "amber" | /** @deprecated alias of `destructive` */ "red" | "destructive";
512
+ /** Size: `xs` (11px text, compact line box), `sm`, `md` (default), `lg`, or `icon` (square 40×40). */
513
+ size?: "xs" | "sm" | "md" | "lg" | "icon";
504
514
  /** Show a spinner before the children and disable the button while busy. */
505
515
  loading?: boolean;
506
516
  /** Render the single child element with the button styling instead of a <button> (e.g. wrap a <Link>). */
@@ -605,7 +615,7 @@ interface SeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
605
615
  /** A thin divider line. Horizontal by default; set `orientation="vertical"` inside a flex row. */
606
616
  declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): React$1.JSX.Element;
607
617
  interface AlertProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
608
- variant?: "info" | "success" | "warning" | "error" | "accent";
618
+ variant?: "info" | "success" | "warning" | "error" | "accent" | "neutral";
609
619
  /** Optional bold title above the body. */
610
620
  title?: React$1.ReactNode;
611
621
  /** Leading icon. Defaults to a variant-appropriate icon; pass `null` to hide. */
@@ -621,6 +631,17 @@ interface TagProps extends React$1.HTMLAttributes<HTMLSpanElement> {
621
631
  }
622
632
  /** A small label, optionally removable. Use `Badge` for non-interactive status text. */
623
633
  declare function Tag({ className, children, onRemove, removeLabel, ...props }: TagProps): React$1.JSX.Element;
634
+ interface ChipProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
635
+ /** Pressed (selected) state of a filter chip. Rendered as `aria-pressed`. @defaultValue false */
636
+ pressed?: boolean;
637
+ /** Render the single child element with the chip styling instead of a <button> (e.g. wrap a trigger). */
638
+ asChild?: boolean;
639
+ }
640
+ /**
641
+ * Interactive pill for filters and toggles. Unlike `Badge` (a static status label) it is a
642
+ * button with a pressed state; it reuses Badge's `text-xs` size and colour tokens.
643
+ */
644
+ declare const Chip: React$1.ForwardRefExoticComponent<ChipProps & React$1.RefAttributes<HTMLButtonElement>>;
624
645
  interface StatusIndicatorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
625
646
  status?: "online" | "offline" | "busy" | "away" | "neutral";
626
647
  /** Add a pulsing halo to signal "live". */
@@ -709,7 +730,10 @@ declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.Sel
709
730
  /** Groups related SelectItems together. */
710
731
  declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
711
732
  /** Button that opens the select dropdown and shows the current value. */
712
- declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
733
+ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
734
+ /** `md` (default) is the 40 px trigger; `sm` is a 32 px compact trigger for dense toolbars. */
735
+ size?: "md" | "sm";
736
+ } & React$1.RefAttributes<HTMLButtonElement>>;
713
737
  /** Portalled, animated dropdown panel holding the SelectItems. */
714
738
  declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
715
739
  /** A selectable option in the dropdown (shows a check when selected). */
@@ -731,10 +755,18 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
731
755
  */
732
756
  label?: string;
733
757
  } & React$1.RefAttributes<HTMLSpanElement>>;
734
- /** Horizontal progress bar; `value` is the percent complete (0–100). */
758
+ /**
759
+ * Horizontal progress bar; `value` is the percent complete (0–100). Set
760
+ * `indeterminate` when the amount of work is unknown (waiting on a queue,
761
+ * loading a model): the bar slides, the root drops `aria-valuenow` and gains
762
+ * `aria-busy`. Under `prefers-reduced-motion` the slide stops and a static
763
+ * half-strength bar is shown instead.
764
+ */
735
765
  declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
736
- /** Percent complete, 0–100. */
766
+ /** Percent complete, 0–100. Ignored while `indeterminate`. */
737
767
  value?: number;
768
+ /** Unknown duration: animated sliding bar, no percentage announced. */
769
+ indeterminate?: boolean;
738
770
  /**
739
771
  * Accessible name, e.g. "Upload progress". Radix gives the root
740
772
  * `role="progressbar"`, and a progressbar with no name is announced as
@@ -745,7 +777,14 @@ declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive
745
777
  /** Radix Tabs root — manages the active tab. Compose with TabsList/TabsTrigger/TabsContent. */
746
778
  declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
747
779
  /** Horizontal container holding the TabsTriggers. */
748
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
780
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
781
+ /**
782
+ * Draw a raised indicator behind the active trigger that slides to the next one (0.15 s
783
+ * ease-out, none on first paint, instant under reduced motion). The active trigger then
784
+ * needs no fill of its own. Reads `--tray-selected` / `--tray-selected-ring` when defined.
785
+ */
786
+ indicator?: boolean;
787
+ } & React$1.RefAttributes<HTMLDivElement>>;
749
788
  /** Clickable tab that activates its matching TabsContent. */
750
789
  declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
751
790
  /** Panel shown when its matching TabsTrigger is active. */
@@ -770,7 +809,7 @@ declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
770
809
  declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
771
810
  /** The floating tooltip bubble. */
772
811
  declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
773
- /** Pulsing placeholder block for loading states; size it via `className`. */
812
+ /** Calm shimmering placeholder block (one low-contrast sweep, linear 1.6 s) for loading states; size it via `className`. */
774
813
  declare function Skeleton({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
775
814
  interface SpinnerProps extends React$1.HTMLAttributes<HTMLDivElement> {
776
815
  /** Size: `sm` (16px), `md` (24px, default), or `lg` (32px). */
@@ -789,17 +828,23 @@ declare function PageLoader({ title, subtitle, className, ...props }: PageLoader
789
828
  interface EmptyStateProps {
790
829
  /** Icon/illustration shown above the title. */
791
830
  icon?: React$1.ReactNode;
792
- /** Heading text. */
831
+ /** Heading text. In the `inline` size this is the message itself. */
793
832
  title: string;
794
833
  /** Supporting text below the title. */
795
834
  description?: string;
796
835
  /** Action slot (e.g. a primary button) below the text. */
797
836
  action?: React$1.ReactNode;
837
+ /**
838
+ * `default` is the full-screen placeholder. `inline` is the compact variant for a card or
839
+ * pane that has nothing in it (after YunDesign's `YunEmptyState`): a 26px light glyph over a
840
+ * 13px tertiary message, centred, at most 260px wide. A card holding one line of grey text
841
+ * reads as a bug; a glyph above the sentence makes the emptiness look deliberate.
842
+ */
843
+ size?: "default" | "inline";
844
+ className?: string;
798
845
  }
799
846
  /** Centered "nothing here" placeholder with an icon, title, description, and action. */
800
- declare function EmptyState({ icon, title, description, action }: EmptyStateProps): React$1.JSX.Element;
801
- declare const MotionDiv: framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>;
802
- declare const MotionSpan: framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>;
847
+ declare function EmptyState({ icon, title, description, action, size, className }: EmptyStateProps): React$1.JSX.Element;
803
848
  declare const fadeIn: {
804
849
  initial: {
805
850
  opacity: number;
@@ -839,6 +884,14 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
839
884
  icon: React$1.ReactNode;
840
885
  /** Accessible label, also shown as the hover tooltip. */
841
886
  label: string;
887
+ /**
888
+ * `md` (default) is the padded 8 px button. `sm` is a 32 px box, for dense toolbars and
889
+ * docs navigation. `xs` is an 11 px glyph box with a 24 px hit area (`hit-area`), for inline close buttons.
890
+ * @defaultValue "md"
891
+ */
892
+ size?: "xs" | "sm" | "md";
893
+ /** Show the hover/focus tooltip with `label`. Pass `false` when the label is enough. @defaultValue true */
894
+ tooltip?: boolean;
842
895
  }
843
896
  /** Icon-only button with a built-in tooltip (uses `label` for both a11y and the tooltip text). */
844
897
  declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
@@ -964,10 +1017,22 @@ interface SegmentedSelectProps<T = string> {
964
1017
  className?: string;
965
1018
  /** Disable interaction and dim the control. */
966
1019
  disabled?: boolean;
1020
+ /**
1021
+ * Break the row into balanced lines instead of letting the last one run short (six options that
1022
+ * fit five per line go three and three, never five and one). Never uses more lines than the
1023
+ * default wrap. After YunDesign's `YunWrap(balanced:)`.
1024
+ */
1025
+ wrap?: boolean;
1026
+ /**
1027
+ * Give every option on a line an equal share of the width so both edges are flush and a wrapped
1028
+ * control reads as a grid drawn on purpose. Implies `wrap`. After YunDesign's `YunWrap(fills:)`.
1029
+ */
1030
+ fill?: boolean;
967
1031
  }
968
1032
  /** Inline segmented control — a row of buttons where one option is active at a time.
969
- * For 2-5 always-visible choices (not a dropdown); see `Select`'s doc for "which select do I use". */
970
- declare function SegmentedSelect<T = string>({ options, value, onChange, className, disabled, }: SegmentedSelectProps<T>): React$1.JSX.Element;
1033
+ * For 2-5 always-visible choices (not a dropdown); see `Select`'s doc for "which select do I use".
1034
+ * `wrap` balances line breaks and `fill` makes each line flush on both edges; both are opt-in. */
1035
+ declare function SegmentedSelect<T = string>({ options, value, onChange, className, disabled, wrap, fill, }: SegmentedSelectProps<T>): React$1.JSX.Element;
971
1036
 
972
1037
  interface NavTab {
973
1038
  /** Unique key; matched against `activeKey` to mark the active tab. */
@@ -1000,6 +1065,61 @@ interface NavTabsProps {
1000
1065
  */
1001
1066
  declare function NavTabs({ tabs, activeKey, onChange, className, ariaLabel }: NavTabsProps): React$1.JSX.Element;
1002
1067
 
1068
+ interface NavItemProps {
1069
+ /** The row's text. */
1070
+ label: ReactNode;
1071
+ /** Optional leading icon. */
1072
+ icon?: ReactNode;
1073
+ /** When set, the item renders as a route Link instead of a button. */
1074
+ href?: string;
1075
+ /** Button-mode click handler. Ignored when `href` is set. */
1076
+ onClick?: () => void;
1077
+ /** Marks the current item (`.nav-item.active`; `aria-current="page"` in link mode). */
1078
+ active?: boolean;
1079
+ /**
1080
+ * For a disclosure row (a folder). Sets `aria-expanded` on the control.
1081
+ * Omit it for a plain navigation row.
1082
+ */
1083
+ expanded?: boolean;
1084
+ /** Trailing slot, e.g. a chevron that turns with `expanded`. Pushed to the right edge. */
1085
+ chevron?: ReactNode;
1086
+ /**
1087
+ * Nesting level of a row in a tree (0 = top level, the default). Each level adds one
1088
+ * `--nav-indent` step of left padding through the `.nav-item` token.
1089
+ */
1090
+ depth?: number;
1091
+ className?: string;
1092
+ }
1093
+ /**
1094
+ * A sidebar navigation row built on the `.nav-item` class. It is a button (in-page action or
1095
+ * disclosure toggle, with `expanded`) or a Link (when `href` is set), with the same hover, focus
1096
+ * and active indicator as the sidebar. `NavTabs` is the horizontal counterpart.
1097
+ */
1098
+ declare function NavItem({ label, icon, href, onClick, active, expanded, chevron, depth, className }: NavItemProps): React$1.JSX.Element;
1099
+
1100
+ interface ListItemProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
1101
+ /** Render the single child element with the row styling instead of a <button> (e.g. a routing link). */
1102
+ asChild?: boolean;
1103
+ }
1104
+ /**
1105
+ * A full-width, left-aligned selectable row on the `.dropdown-item` style, for result lists
1106
+ * (search hits, pick lists). Put it inside an `<li>` in a `divide-y` list.
1107
+ */
1108
+ declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLButtonElement>>;
1109
+
1110
+ interface EmptyValueProps extends Omit<HTMLAttributes<HTMLSpanElement>, "title"> {
1111
+ /** The short reason shown in place of the number ("No cold prefill yet"). Never a bare dash. */
1112
+ label: ReactNode;
1113
+ /** Longer explanation, available as the tooltip and to assistive tech. Defaults to `label` when it is a string. */
1114
+ why?: string;
1115
+ }
1116
+ /**
1117
+ * A value that has nothing to show yet, and says why. Use it in a stat, table cell or readout instead of "-":
1118
+ * `label` is the reason in a few words, `why` the full sentence (tooltip + accessible description). Muted,
1119
+ * normal weight, so it never reads as data.
1120
+ */
1121
+ declare function EmptyValue({ label, why, className, ...rest }: EmptyValueProps): React$1.JSX.Element;
1122
+
1003
1123
  /** CTA button with an animated shimmer sweep and a trailing arrow; renders a Link when `href` is set. */
1004
1124
  declare function ShinyButton({ children, className, href, onClick, }: {
1005
1125
  children: ReactNode;
@@ -1128,47 +1248,144 @@ interface AnimatedNumberProps {
1128
1248
  * `NODE_ENV === "test"` escape hatch. Pass an explicit boolean to override.
1129
1249
  */
1130
1250
  immediate?: boolean;
1251
+ /**
1252
+ * Minimum time, in ms, between two value changes for the spring to run on the
1253
+ * second one. A value that updates faster than this (a polled metric) jumps
1254
+ * straight to its new value instead of springing, so digits never keep
1255
+ * moving. The first run on mount always springs. Default 5000; pass 0 to
1256
+ * always spring.
1257
+ */
1258
+ settleMs?: number;
1131
1259
  }
1132
1260
  /**
1133
- * A number that springs from 0 up to `value` on mount / when `value` changes.
1261
+ * A number that springs from 0 up to `value` on mount. Later changes spring only when
1262
+ * they are at least `settleMs` apart; faster (polled) updates jump, so the digits are never
1263
+ * mid-flight. Tabular figures keep the width constant while it runs.
1134
1264
  * Starts at 0 on both server and client, so it is SSR-hydration safe.
1135
1265
  */
1136
- declare function AnimatedNumber({ value, suffix, decimals, immediate, }: AnimatedNumberProps): React$1.JSX.Element;
1266
+ declare function AnimatedNumber({ value, suffix, decimals, immediate, settleMs, }: AnimatedNumberProps): React$1.JSX.Element;
1137
1267
 
1138
- type SparklineTone = "accent" | "success" | "warning" | "error" | "info" | "neutral";
1139
- interface SparklineProps extends Omit<React.SVGProps<SVGSVGElement>, "color"> {
1140
- /** The series to plot, oldest → newest. Fewer than 2 points renders nothing. */
1141
- data: number[];
1142
- /** Intrinsic viewBox width; the SVG still scales to its container. */
1143
- width?: number;
1144
- /** Intrinsic viewBox height. */
1145
- height?: number;
1146
- /** Semantic stroke color. Ignored when `color` is set. */
1147
- tone?: SparklineTone;
1148
- /** Explicit CSS color for the stroke (and area fill), overriding `tone`. */
1149
- color?: string;
1150
- /** Stroke width in viewBox units. */
1151
- strokeWidth?: number;
1152
- /** Fill the area under the line with a vertical gradient of the stroke color. */
1153
- area?: boolean;
1154
- /** Lower bound of the value axis. Defaults to the data minimum. */
1268
+ interface MotionNumberProps {
1269
+ /** A number, or an already formatted string (digits roll, other characters stay put). */
1270
+ value: number | string;
1271
+ /** Decimal places (fixed). Default 0. */
1272
+ decimals?: number;
1273
+ prefix?: string;
1274
+ suffix?: string;
1275
+ /** Custom formatter; wins over `decimals`. Digits in its output roll, other characters pop in. */
1276
+ format?: (value: number) => string;
1277
+ /** Group thousands with the locale separator. Default false. */
1278
+ grouping?: boolean;
1279
+ locale?: string;
1280
+ className?: string;
1281
+ }
1282
+ /**
1283
+ * A number whose changing digits roll vertically (with a short blur), in tabular figures; the box
1284
+ * width animates when the digit count changes. The first paint is static (no entrance), and under
1285
+ * reduced motion a change is an instant swap. Use it for metrics that change discretely (counters,
1286
+ * totals). Readings that tick continuously at 1-4 Hz should glide with a tween instead.
1287
+ * The only text in the DOM is the formatted string (visually hidden); the digit strips and the other
1288
+ * characters are drawn with CSS content, so `textContent` and screen readers see the value once.
1289
+ */
1290
+ declare function MotionNumber({ value, decimals, prefix, suffix, format, grouping, locale, className }: MotionNumberProps): React$1.JSX.Element;
1291
+
1292
+ type ViewTransitionKind = "page" | "theme";
1293
+ /**
1294
+ * Run a synchronous DOM-changing `update` (typically a React state change) inside
1295
+ * `document.startViewTransition` where it exists, so the old and new states cross-fade
1296
+ * (`page`: outgoing 120 ms, incoming does the soft entrance; `theme`: plain cross-fade with every
1297
+ * element transition switched off for the duration, so nothing flashes). Without the API, or
1298
+ * under `prefers-reduced-motion`, `update` simply runs. `flushSync` makes React commit inside the
1299
+ * snapshot callback. Resolves when the transition has finished.
1300
+ */
1301
+ declare function runViewTransition(update: () => void, kind?: ViewTransitionKind): Promise<void>;
1302
+ /** `const { start } = useViewTransition(); start(() => setTheme("dark"), "theme")`. */
1303
+ declare function useViewTransition(): {
1304
+ start: (update: () => void, kind?: ViewTransitionKind) => Promise<void>;
1305
+ };
1306
+
1307
+ /**
1308
+ * One element that slides between the items of a group (nav, tabs, segmented control)
1309
+ * instead of each item toggling its own background.
1310
+ *
1311
+ * Render `<span ref={pillRef} className="yunui-slider-pill" aria-hidden />` as the first child of the
1312
+ * `position: relative` container that `containerRef` points at. The hook finds the active item with
1313
+ * `selector`, writes its box into CSS variables (`--pill-x/y/w/h`, `--pill-o`) and the stylesheet
1314
+ * animates transform + size with the motion tokens. The first placement and any container resize
1315
+ * are instant (`data-ready="false"`), so nothing slides in from 0,0 on mount.
1316
+ * Only transform / size / opacity change; no React state, so no re-render per move.
1317
+ */
1318
+ declare function useSlidingPill<C extends HTMLElement = HTMLElement, P extends HTMLElement = HTMLElement>(selector: string, deps: readonly unknown[]): {
1319
+ containerRef: RefObject<C | null>;
1320
+ pillRef: RefObject<P | null>;
1321
+ };
1322
+
1323
+ type MetricHeroState = "live" | "held" | "idle";
1324
+ interface MetricHeroProps {
1325
+ /** The headline value. `null`/`undefined` renders an em dash. */
1326
+ value?: number | null;
1327
+ /** Unit shown beside the number, e.g. "tok/s". */
1328
+ unit?: ReactNode;
1329
+ /** Caption above the number, e.g. "Decode speed". Also the accessible name. */
1330
+ label: string;
1331
+ /**
1332
+ * `live` — the value is updating now (green pulse dot, pulse stops under
1333
+ * reduced motion); `held` — the last value kept after the source stopped;
1334
+ * `idle` — no state indicator (default).
1335
+ */
1336
+ state?: MetricHeroState;
1337
+ /** Decimal places (trailing zeros stripped, as AnimatedNumber). */
1338
+ decimals?: number;
1339
+ /** Rolling window drawn as a Sparkline to the right. Fewer than 2 points hides it. */
1340
+ history?: number[];
1341
+ /** Sparkline axis bounds; default to the data range. */
1155
1342
  min?: number;
1156
- /** Upper bound of the value axis. Defaults to the data maximum. */
1157
1343
  max?: number;
1158
1344
  /**
1159
- * Accessible name for the whole graphic, e.g. "Storage used: 62%".
1160
- * Without it the element is treated as decoration rather than being
1161
- * announced as an anonymous image — an unnamed `role="img"` tells a screen
1162
- * reader there is a picture here and nothing about it.
1345
+ * Spring the number toward each new value. Off by default: a value that
1346
+ * changes many times a second should show the true reading, not trail it.
1347
+ * Reduced-motion users never get the spring either way.
1163
1348
  */
1164
- label?: string;
1349
+ animate?: boolean;
1350
+ /** State chip text. English defaults: "Live" / "Held". */
1351
+ labels?: {
1352
+ live?: string;
1353
+ held?: string;
1354
+ };
1165
1355
  className?: string;
1166
1356
  }
1167
1357
  /**
1168
- * A minimal inline line chart. Give it a rolling window of numbers and it draws
1169
- * a smooth, container-width sparkline; set `area` for a gradient fill.
1358
+ * A big tabular number with unit, live/held state and optional sparkline. The
1359
+ * number is announced once as "label: value unit" (state included) via a hidden
1360
+ * summary; the animated digits themselves are hidden from assistive tech so a
1361
+ * fast-updating value never floods a screen reader.
1170
1362
  */
1171
- declare function Sparkline({ data, width, height, tone, color, strokeWidth, area, min, max, label, className, ...props }: SparklineProps): React$1.JSX.Element;
1363
+ declare function MetricHero({ value, unit, label, state, decimals, history, min, max, animate, labels, className, }: MetricHeroProps): React$1.JSX.Element;
1364
+
1365
+ type StackedProgressTone = "accent" | "info" | "success" | "warning" | "error" | "neutral";
1366
+ interface StackedProgressSegment {
1367
+ /** Size in the same unit as `total` (tokens, bytes). Negative or non-finite counts as 0. */
1368
+ value: number;
1369
+ tone: StackedProgressTone;
1370
+ /** What this segment is ("Cache hit"); shown in the tooltip. */
1371
+ label?: string;
1372
+ }
1373
+ interface StackedProgressProps {
1374
+ segments: readonly StackedProgressSegment[];
1375
+ /** The whole: the bar is full when the segments add up to it. */
1376
+ total: number;
1377
+ /** Accessible name. */
1378
+ label: string;
1379
+ /** Human reading for assistive tech and the tooltip ("12,000 of 48,000 tokens"). */
1380
+ valueText?: string;
1381
+ height?: number;
1382
+ className?: string;
1383
+ }
1384
+ /** Each segment's width as a fraction of the total; their sum never passes 1. */
1385
+ declare function stackedFractions(segments: readonly {
1386
+ value: number;
1387
+ }[], total: number): number[];
1388
+ declare function StackedProgress({ segments, total, label, valueText, height, className }: StackedProgressProps): React$1.JSX.Element;
1172
1389
 
1173
1390
  type GaugeTone = "accent" | "success" | "warning" | "error" | "info" | "neutral";
1174
1391
  interface GaugeProps {
@@ -1199,42 +1416,89 @@ interface GaugeProps {
1199
1416
  */
1200
1417
  declare function Gauge({ value, size, thickness, tone, color, label, ariaLabel, counterClockwise, className, }: GaugeProps): React$1.JSX.Element;
1201
1418
 
1202
- type SegmentTone = "accent" | "success" | "warning" | "error" | "info" | "neutral";
1203
- interface BarSegment {
1204
- /** Segment magnitude, in the same unit as `total`. */
1419
+ type SegmentMeterTone = "accent" | "info" | "success" | "warning" | "error" | "neutral";
1420
+ /**
1421
+ * How a `0..1` value maps to a position on the bar.
1422
+ *
1423
+ * - `linear` - position equals value. Right for memory, queue depth, fill ratios.
1424
+ * - `log` - a straight decibel scale from -60 dB to 0 dB. Overcorrects: a healthy -11 dB
1425
+ * signal lands at 82% and looks like it is about to clip.
1426
+ * - `broadcast` - the value is an amplitude; the top 20 dB take half the bar and the 40 dB
1427
+ * below take the other half, as in YunDesign's level meter.
1428
+ */
1429
+ type SegmentMeterCurve = "linear" | "log" | "broadcast";
1430
+ /** Maps an amplitude-like value in `0..1` to a bar position in `0..1` along the chosen curve. */
1431
+ declare function meterPosition(value: number, curve?: SegmentMeterCurve): number;
1432
+ type SegmentBand = "tone" | "warning" | "danger";
1433
+ /**
1434
+ * The band a segment belongs to. A segment is in a headroom band when its upper edge is past the
1435
+ * threshold, so the defaults (0.9, 0.96) on 24 segments give segments 21 and 22 warning and 23 danger,
1436
+ * the same split as YunDesign. Pass `warnAt`/`dangerAt` as `null` to turn a band off.
1437
+ */
1438
+ declare function segmentBand(index: number, segments: number, warnAt: number | null, dangerAt: number | null): SegmentBand;
1439
+ interface SegmentMeterProps {
1440
+ /** Current value, `0..1` (clamped). Mapped through `curve`. */
1205
1441
  value: number;
1206
- /** Semantic color. Ignored when `color` is set. */
1207
- tone?: SegmentTone;
1208
- /** Explicit CSS color, overriding `tone`. */
1209
- color?: string;
1210
- /** Legend label and segment title (tooltip). */
1211
- label?: ReactNode;
1212
- }
1213
- interface SegmentedBarProps {
1214
- /** The segments, drawn left → right. */
1215
- segments: BarSegment[];
1216
- /** Axis total. Defaults to the sum of segment values; the remainder shows as track. */
1217
- total?: number;
1218
- /** Bar thickness in px. */
1219
- height?: number;
1220
- /** Show a legend of segments with their values below the bar. */
1221
- legend?: boolean;
1222
- /** Format a segment value for the legend (e.g. bytes → "1.2 GB"). */
1223
- formatValue?: (value: number) => ReactNode;
1224
- /**
1225
- * Accessible name for the whole graphic, e.g. "Storage used: 62%".
1226
- * Without it the element is treated as decoration rather than being
1227
- * announced as an anonymous image — an unnamed `role="img"` tells a screen
1228
- * reader there is a picture here and nothing about it.
1229
- */
1230
- label?: string;
1442
+ /** Peak-hold value, `0..1`. Drawn as the lit color at 45% opacity on the segment it reaches, when that segment is not lit. */
1443
+ hold?: number;
1444
+ /** Number of segments. Default 24. */
1445
+ segments?: number;
1446
+ /** Value to position mapping. Default `linear`; `broadcast` is for audio amplitude only. */
1447
+ curve?: SegmentMeterCurve;
1448
+ /** Bar position above which segments use the warning hue. Default 0.9; `null` disables. */
1449
+ warnAt?: number | null;
1450
+ /** Bar position above which segments use the danger hue. Default 0.96; `null` disables. */
1451
+ dangerAt?: number | null;
1452
+ /** Lit color of the normal band. Default `accent`. */
1453
+ tone?: SegmentMeterTone;
1454
+ /** Accessible name of the meter. */
1455
+ label: string;
1456
+ /** Human-readable reading for assistive tech ("18.2 / 64 GB"). Default: a percentage. */
1457
+ valueText?: string;
1458
+ /** Color of unlit segments. Default `--bg-elevated`; pass a stronger one when the meter sits on an elevated surface. */
1459
+ trackColor?: string;
1231
1460
  className?: string;
1232
1461
  }
1233
1462
  /**
1234
- * A proportional multi-segment bar. Give it segments and (optionally) a `total`;
1235
- * each segment takes a slice of the width, with any leftover shown as track.
1463
+ * Segmented level meter with a warning/danger headroom band and an optional peak-hold marker.
1464
+ * Unlit segments use `--bg-elevated`; lit segments use the tone, the top segments `--warning` and `--error`.
1465
+ */
1466
+ declare function SegmentMeter({ value, hold, segments, curve, warnAt, dangerAt, tone, label, valueText, trackColor, className, }: SegmentMeterProps): React$1.JSX.Element;
1467
+
1468
+ /** Default fade depth in CSS pixels. Shallow enough never to cover a whole row (rows are 28px and up). */
1469
+ declare const SCROLL_FADE_DEPTH = 22;
1470
+ /** True while the scroller can still scroll down. `tolerance` absorbs sub-pixel rounding. */
1471
+ declare function hasMoreBelow(metrics: {
1472
+ scrollTop: number;
1473
+ clientHeight: number;
1474
+ scrollHeight: number;
1475
+ }, tolerance?: number): boolean;
1476
+ interface ScrollFadeProps extends HTMLAttributes<HTMLDivElement> {
1477
+ /** Fade depth in pixels. Default 22; keep it a constant, not a percentage. */
1478
+ depth?: number;
1479
+ }
1480
+ /**
1481
+ * A vertically scrolling region that fades its bottom edge only while more content is below.
1482
+ * Give it a bounded height (`max-h-*` or a flex/grid parent); scrollbars are untouched.
1483
+ */
1484
+ declare const ScrollFade: React$1.ForwardRefExoticComponent<ScrollFadeProps & React$1.RefAttributes<HTMLDivElement>>;
1485
+
1486
+ /**
1487
+ * Where lines break in a wrapping row, as a pure function of the item widths.
1488
+ * After YunDesign's `YunWrap.breaks` (YunAudio).
1489
+ *
1490
+ * Greedy packing is right for a row of pills that happens to be long. It is wrong for a tab bar:
1491
+ * six tabs across a column that fits five leave one alone on a second line, which reads as a
1492
+ * mistake. Balanced, the same six go three and three and it reads as deliberate. Balancing never
1493
+ * uses more lines than greedy packing would: the point is the shape of the wrap, not more wrapping.
1494
+ *
1495
+ * @param widths natural width of each item
1496
+ * @param maxWidth space available to one line
1497
+ * @param spacing distance between neighbouring items
1498
+ * @param balanced spread the items evenly over as many lines as greedy packing used
1499
+ * @returns the item indices assigned to each line
1236
1500
  */
1237
- declare function SegmentedBar({ segments, total, height, legend, formatValue, label, className, }: SegmentedBarProps): React$1.JSX.Element;
1501
+ declare function balancedBreaks(widths: readonly number[], maxWidth: number, spacing: number, balanced: boolean): number[][];
1238
1502
 
1239
1503
  interface FileDropzoneProps {
1240
1504
  /** Called with the selected/dropped files (already filtered to a File[]). */
@@ -1300,12 +1564,150 @@ interface AreaChartProps {
1300
1564
  */
1301
1565
  declare function AreaChart({ data, tone, color, height, formatValue, showGrid, showTooltip, showXAxis, strokeWidth, ariaLabel, noDataLabel, className, }: AreaChartProps): React$1.JSX.Element;
1302
1566
 
1567
+ type TimeSeriesTone = "accent" | "info" | "success" | "warning" | "error" | "neutral";
1568
+ interface TimeSeriesPoint {
1569
+ /** Numeric domain value (for example a timestamp in epoch milliseconds). */
1570
+ x: number;
1571
+ /** Missing, null, undefined, NaN and infinities are gaps, never zeroes. */
1572
+ values: Readonly<Record<string, number | null | undefined>>;
1573
+ }
1574
+ interface TimeSeriesDefinition {
1575
+ /** Stable key that selects the corresponding value in each point. */
1576
+ key: string;
1577
+ label: string;
1578
+ tone?: TimeSeriesTone;
1579
+ /** Explicit CSS color override for this series. */
1580
+ color?: string;
1581
+ dashed?: boolean;
1582
+ }
1583
+ interface TimeSeriesChartProps {
1584
+ data: readonly TimeSeriesPoint[];
1585
+ series: readonly TimeSeriesDefinition[];
1586
+ ariaLabel: string;
1587
+ emptyLabel?: string;
1588
+ unavailableLabel?: string;
1589
+ hiddenLabel?: string;
1590
+ missingValueLabel?: string;
1591
+ legendLabel?: string;
1592
+ keyboardHint?: string;
1593
+ height?: number;
1594
+ formatX?: (value: number) => string;
1595
+ formatY?: (value: number) => string;
1596
+ /** Break a line when adjacent sorted x values differ by more than this value. */
1597
+ maxGap?: number;
1598
+ /** Controlled selection; without `onActiveXChange`, a supplied value is read-only. */
1599
+ activeX?: number | null;
1600
+ /** Render the always-on value row under the plot (default true). Hosts that read values from the tooltip and legend turn it off. */
1601
+ showReadout?: boolean;
1602
+ onActiveXChange?: (value: number | null) => void;
1603
+ showLegend?: boolean;
1604
+ /**
1605
+ * Opt-in idle treatment (YunDesign's idle spectrum): the plot is drawn at 35% opacity with two
1606
+ * faint hairline rules at one third and two thirds of its height, so the quiet chart still reads
1607
+ * as headroom rather than as a broken or empty one. Axes, legend and keyboard behavior are unchanged.
1608
+ */
1609
+ idle?: boolean;
1610
+ /**
1611
+ * Value-axis floor. "zero" (default) starts non-negative series at 0 so noise between 19.7 and 19.8
1612
+ * renders as a flat line instead of a canyon; "auto" zooms to the data range.
1613
+ */
1614
+ baseline?: "zero" | "auto";
1615
+ /**
1616
+ * Fixed x domain `[min, max]`. By default the x axis spans the first to the newest sample, so every new
1617
+ * sample re-scales everything. A host that animates time itself (a live chart that slides with the clock)
1618
+ * passes the window instead, and points sit at positions that depend on their own time only.
1619
+ */
1620
+ xDomain?: readonly [number, number];
1621
+ /** Explicit x tick values (absolute, inside `xDomain` or the data extent); replaces the sample-snapped ticks. */
1622
+ xTicks?: readonly number[];
1623
+ /**
1624
+ * Upper bound of the value axis. The axis never ends below the data (it grows to fit), but it does not
1625
+ * shrink to the data either, so a host can hold a stable "nice" maximum and the plot stops rescaling
1626
+ * on every sample.
1627
+ */
1628
+ yMax?: number;
1629
+ /** Below this many samples the chart shows the calm idle treatment with dots only, not a jagged line. */
1630
+ minSamples?: number;
1631
+ /** Caption shown over the idle plot while fewer than `minSamples` samples exist. */
1632
+ collectingLabel?: (have: number, need: number) => string;
1633
+ className?: string;
1634
+ }
1635
+ /** Responsive, dependency-free multi-series time chart for arbitrary numeric x data. */
1636
+ declare function TimeSeriesChart({ data, series, ariaLabel, emptyLabel, unavailableLabel, hiddenLabel, missingValueLabel, legendLabel, keyboardHint, height, formatX, formatY, maxGap, activeX, showReadout, onActiveXChange, showLegend, idle: idleProp, baseline, xDomain, xTicks, yMax, minSamples, collectingLabel, className, }: TimeSeriesChartProps): React$1.JSX.Element;
1637
+
1638
+ /** Semantic roles used by the distribution charts. */
1639
+ type ChartTone = "accent" | "success" | "warning" | "error" | "info" | "neutral";
1640
+ /** One host-supplied chart value. `null` means unavailable, while `0` is data. */
1641
+ interface ChartDatum {
1642
+ id: string;
1643
+ label: string;
1644
+ value: number | null;
1645
+ tone?: ChartTone;
1646
+ /** Explicit CSS color for this datum, when a semantic tone is insufficient. */
1647
+ color?: string;
1648
+ }
1649
+ interface BarChartProps {
1650
+ /** Values must be nonnegative; negative and non-finite values are shown as unavailable. */
1651
+ data: readonly ChartDatum[];
1652
+ ariaLabel: string;
1653
+ formatValue?: (value: number) => string;
1654
+ emptyLabel?: string;
1655
+ unavailableLabel?: string;
1656
+ height?: number;
1657
+ onSelect?: (datum: ChartDatum) => void;
1658
+ className?: string;
1659
+ }
1660
+ interface DonutChartProps extends Omit<BarChartProps, "height"> {
1661
+ /**
1662
+ * Color the slices as a single-hue ink ramp (strongest first) instead of one semantic tone per
1663
+ * datum. Explicit `color` values still win. Use when slice identity is carried by the legend.
1664
+ */
1665
+ monochrome?: boolean;
1666
+ center?: ReactNode;
1667
+ size?: number;
1668
+ }
1669
+ interface HeatmapProps {
1670
+ rows: readonly string[];
1671
+ columns: readonly string[];
1672
+ data: readonly (readonly (number | null)[])[];
1673
+ ariaLabel: string;
1674
+ formatValue?: (value: number) => string;
1675
+ emptyLabel?: string;
1676
+ unavailableLabel?: string;
1677
+ tone?: ChartTone;
1678
+ onSelect?: (rowIndex: number, columnIndex: number) => void;
1679
+ className?: string;
1680
+ }
1681
+ /**
1682
+ * A vertical comparison of nonnegative values. When the bars do not fit at 56px each, they
1683
+ * shrink to the container (no sideways scroll) and only every n-th bar prints its value and label;
1684
+ * every bar keeps its aria-label and title.
1685
+ */
1686
+ declare function BarChart({ data, ariaLabel, formatValue, emptyLabel, unavailableLabel, height, onSelect, className, }: BarChartProps): React$1.JSX.Element;
1687
+ /** A proportional ring with a textual legend; negative/non-finite values are unavailable. */
1688
+ declare function DonutChart({ data, ariaLabel, formatValue, emptyLabel, unavailableLabel, center, monochrome, size, onSelect, className, }: DonutChartProps): React$1.JSX.Element;
1689
+ /** A semantic grid for comparing signed or unsigned values across named rows/columns. */
1690
+ declare function Heatmap({ rows, columns, data, ariaLabel, formatValue, emptyLabel, unavailableLabel, tone, onSelect, className, }: HeatmapProps): React$1.JSX.Element;
1691
+
1303
1692
  declare function Toaster({ position, visibleToasts, expand, toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
1693
+ /** A button inside the toast, e.g. "Undo". The toast closes after `onClick` runs. */
1694
+ interface ToastAction {
1695
+ label: string;
1696
+ onClick: () => void;
1697
+ }
1698
+ interface ToastOptions {
1699
+ /** One action button on the right of the toast. */
1700
+ action?: ToastAction;
1701
+ /** Milliseconds before it closes; `Infinity` keeps it until dismissed. */
1702
+ duration?: number;
1703
+ /** Reuse an id to replace a toast instead of stacking a new one. */
1704
+ id?: string | number;
1705
+ }
1304
1706
  declare const toast: {
1305
- success: (message: string, description?: string) => void;
1306
- error: (message: string, description?: string) => void;
1307
- info: (message: string, description?: string) => void;
1308
- warning: (message: string, description?: string) => void;
1707
+ success: (message: string, description?: string, options?: ToastOptions) => void;
1708
+ error: (message: string, description?: string, options?: ToastOptions) => void;
1709
+ info: (message: string, description?: string, options?: ToastOptions) => void;
1710
+ warning: (message: string, description?: string, options?: ToastOptions) => void;
1309
1711
  loading: (message: string) => string | number;
1310
1712
  dismiss: (id?: string | number) => void;
1311
1713
  promise: <T>(promise: Promise<T>, messages: {
@@ -1342,7 +1744,9 @@ declare const toast: {
1342
1744
  * ```
1343
1745
  */
1344
1746
  declare function useEscapeKey(onEscape: () => void, enabled?: boolean): void;
1345
- declare function useBodyScrollLock(locked?: boolean): void;
1747
+ declare function useBodyScrollLock(locked?: boolean, options?: {
1748
+ pin?: boolean;
1749
+ }): void;
1346
1750
  /**
1347
1751
  * Combined hook for modal behavior: Escape key + body scroll lock
1348
1752
  *
@@ -1415,6 +1819,15 @@ declare function useDismissOnOutside(open: boolean, onDismiss: () => void, ref:
1415
1819
  * ```
1416
1820
  */
1417
1821
  declare function useScrollableTabStop(ref: RefObject<HTMLElement | null>, axis?: "x" | "y"): 0 | undefined;
1822
+ /**
1823
+ * Presence without a motion library: `present` keeps a floating panel mounted while its exit
1824
+ * transition runs, `shown` drives the CSS (opacity / transform) so it enters one frame after mount
1825
+ * and leaves before it unmounts. Under reduced motion it mounts and unmounts at once.
1826
+ */
1827
+ declare function usePresence(open: boolean, exitMs?: number): {
1828
+ present: boolean;
1829
+ shown: boolean;
1830
+ };
1418
1831
 
1419
1832
  interface AnchoredPosition {
1420
1833
  /** Horizontal nudge (px) to keep the panel on-screen. Apply as `marginLeft`
@@ -1424,6 +1837,8 @@ interface AnchoredPosition {
1424
1837
  /** Cap (px) so the panel can't run off the edge; pair with an internal scroll
1425
1838
  * region (`flex-1 min-h-0` / `overflow-y-auto`). */
1426
1839
  maxHeight?: number;
1840
+ /** Optional width cap for panels that must fit a narrow clipping ancestor. */
1841
+ maxWidth?: number;
1427
1842
  /** Which side of the trigger to render on. `"top"` when there isn't room
1428
1843
  * below but there is above — the consumer flips `top-full mt-*` to
1429
1844
  * `bottom-full mb-*`. Defaults to `"bottom"`. */
@@ -1441,8 +1856,69 @@ interface AnchoredPosition {
1441
1856
  declare function useAnchoredPosition(open: boolean, panelRef: React.RefObject<HTMLElement | null>, opts?: {
1442
1857
  gutter?: number;
1443
1858
  minHeight?: number;
1859
+ maxWidth?: number;
1444
1860
  }): AnchoredPosition;
1445
1861
 
1862
+ interface FloatingPosition {
1863
+ /** Viewport x of the panel's left edge (px). */
1864
+ left: number;
1865
+ /** Viewport y of the panel's top edge (px) when it opens below the anchor. */
1866
+ top?: number;
1867
+ /** Distance from the viewport bottom (px) when it opens above the anchor. */
1868
+ bottom?: number;
1869
+ /** Height cap (px): the room left on the chosen side. Undefined when the content fits. */
1870
+ maxHeight?: number;
1871
+ /** Width cap (px): the viewport minus the gutters. */
1872
+ maxWidth: number;
1873
+ /** Exact width (px) when the panel is asked to follow the anchor's width. */
1874
+ width?: number;
1875
+ placement: "top" | "bottom";
1876
+ /** The anchor has scrolled out of every box that shows it: hide the panel (it comes back with the anchor). */
1877
+ hidden?: boolean;
1878
+ }
1879
+ interface FloatingOptions {
1880
+ /** Which anchor edge the panel lines up with. `"end"` hangs the panel's right edge
1881
+ * on the anchor's right edge. @defaultValue "start" */
1882
+ align?: "start" | "end";
1883
+ /** Minimum distance (px) kept to every viewport edge. @defaultValue 8 */
1884
+ gutter?: number;
1885
+ /** Gap (px) between the anchor and the panel. @defaultValue 8 */
1886
+ offset?: number;
1887
+ /** Follow the anchor's width instead of the panel's own width. */
1888
+ matchWidth?: boolean;
1889
+ }
1890
+ /**
1891
+ * Viewport placement for a panel that is portaled to `document.body` and positioned
1892
+ * with `position: fixed`, so no ancestor's `overflow` or `transform` can clip it.
1893
+ * Opens below the anchor and lines up with its `align` edge, flips above when the
1894
+ * room below is smaller than the content and the room above is larger, shifts
1895
+ * sideways to stay `gutter` px inside the viewport, and caps its width and height to
1896
+ * what is left. Follows scroll, resize and size changes of the anchor and the panel.
1897
+ */
1898
+ declare function useFloatingPosition(open: boolean, anchorRef: RefObject<HTMLElement | null>, panelRef: RefObject<HTMLElement | null>, opts?: FloatingOptions): FloatingPosition;
1899
+ interface FloatingPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1900
+ /** The element the panel hangs from (usually the trigger's wrapper). */
1901
+ anchorRef: RefObject<HTMLElement | null>;
1902
+ align?: "start" | "end";
1903
+ gutter?: number;
1904
+ offset?: number;
1905
+ matchWidth?: boolean;
1906
+ /** A CSS length the height never exceeds, combined with the room left on the chosen side. */
1907
+ maxHeightLimit?: string;
1908
+ /** Tab / Shift+Tab from anywhere in the panel leaves it for the control after / the trigger (a select
1909
+ * that closes on Tab). By default only the first and last control of the panel hand focus across. */
1910
+ tabExits?: boolean;
1911
+ children?: ReactNode;
1912
+ }
1913
+ /**
1914
+ * A dropdown panel that floats: rendered into `document.body` with `position: fixed`
1915
+ * (never clipped by an ancestor's overflow), placed by {@link useFloatingPosition}.
1916
+ * Mount it only while the dropdown is open. The panel is outside the trigger's DOM,
1917
+ * so pass its ref to `useDismissOnOutside(..., { extraRefs })`; React events still
1918
+ * bubble to the trigger's component tree, so key handlers on the wrapper keep working.
1919
+ */
1920
+ declare const FloatingPanel: React$1.ForwardRefExoticComponent<FloatingPanelProps & React$1.RefAttributes<HTMLDivElement>>;
1921
+
1446
1922
  /**
1447
1923
  * Runtime theming for YunUI's token system.
1448
1924
  *
@@ -1656,4 +2132,4 @@ declare function CommandPalette({ open, onClose, query, onQueryChange, items, lo
1656
2132
  */
1657
2133
  declare function useCommandPaletteShortcut(onOpen: () => void): void;
1658
2134
 
1659
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, type AnimatedNumberProps, AreaChart, type AreaChartPoint, type AreaChartProps, type AreaChartTone, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, type BarSegment, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, CommandPalette, type CommandPaletteItem, type CommandPaletteProps, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FileDropzone, type FileDropzoneProps, Flex, type FlexProps, Gauge, type GaugeProps, type GaugeTone, Grid, type GridCount, type GridProps, IconButton, InlineCode, InlineStatus, type InlineStatusKind, Input, Kbd, Label, type LabelProps, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, NumberInput, PageLoader, Pagination, type PaginationProps, PasswordInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, ScrollArea, ScrollBar, SearchInput, type SegmentTone, SegmentedBar, type SegmentedBarProps, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Sparkline, type SparklineProps, type SparklineTone, Spinner, Stack, StatusIndicator, Steps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, TextShimmer, type TextShimmerProps, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, YUNUI_THEME_PRESETS, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, type YunUIThemePreset, type YunUIThemePresetName, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useAnchoredPosition, useBodyScrollLock, useCommandPaletteShortcut, useDismissOnOutside, useEscapeKey, useFocusTrap, useModalBehavior, useScrollableTabStop, useYunUITheme };
2135
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, type AnimatedNumberProps, AreaChart, type AreaChartPoint, type AreaChartProps, type AreaChartTone, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, BarChart, type BarChartProps, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartDatum, type ChartTone, Checkbox, type CheckboxProps, Chip, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, CommandPalette, type CommandPaletteItem, type CommandPaletteProps, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyValue, type EmptyValueProps, FileDropzone, type FileDropzoneProps, Flex, type FlexProps, type FloatingOptions, FloatingPanel, type FloatingPanelProps, type FloatingPosition, Gauge, type GaugeProps, type GaugeTone, Grid, type GridCount, type GridProps, Heatmap, type HeatmapProps, IconButton, InlineCode, InlineStatus, type InlineStatusKind, Input, Kbd, Label, type LabelProps, ListItem, type ListItemProps, Marquee, MetricHero, type MetricHeroProps, type MetricHeroState, Modal, MotionNumber, type MotionNumberProps, NavItem, type NavItemProps, type NavTab, NavTabs, NumberInput, PageLoader, Pagination, type PaginationProps, PasswordInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SCROLL_FADE_DEPTH, ScrollArea, ScrollBar, ScrollFade, type ScrollFadeProps, SearchInput, type SegmentBand, SegmentMeter, type SegmentMeterCurve, type SegmentMeterProps, type SegmentMeterTone, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, StackedProgress, type StackedProgressProps, type StackedProgressSegment, type StackedProgressTone, StatusIndicator, Steps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, TextShimmer, type TextShimmerProps, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesDefinition, type TimeSeriesPoint, type TimeSeriesTone, type ToastAction, type ToastOptions, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, type ViewTransitionKind, YUNUI_PALETTES, YUNUI_THEME_PRESETS, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, type YunUIThemePreset, type YunUIThemePresetName, applyTheme, balancedBreaks, cn, fadeIn, hasMoreBelow, meterPosition, readTheme, runViewTransition, segmentBand, stackedFractions, staggerContainer, staggerItem, toast, useAnchoredPosition, useBodyScrollLock, useCommandPaletteShortcut, useDismissOnOutside, useEscapeKey, useFloatingPosition, useFocusTrap, useModalBehavior, usePresence, useScrollableTabStop, useSlidingPill, useViewTransition, useYunUITheme };