@yuhuanowo/yunui 0.2.16 → 0.2.18

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 (455) hide show
  1. package/README.md +13 -2
  2. package/README.zh-CN.md +14 -1
  3. package/README.zh-TW.md +14 -1
  4. package/dist/ai.d.ts +191 -7
  5. package/dist/ai.js +662 -168
  6. package/dist/ai.js.map +1 -1
  7. package/dist/chat.d.ts +31 -5
  8. package/dist/chat.js +71 -13
  9. package/dist/chat.js.map +1 -1
  10. package/dist/{chunk-5E3O6ANF.js → chunk-AFVENY4D.js} +386 -74
  11. package/dist/chunk-AFVENY4D.js.map +1 -0
  12. package/dist/{chunk-GSPJ5YI6.js → chunk-GAXVET76.js} +36 -24
  13. package/dist/chunk-GAXVET76.js.map +1 -0
  14. package/dist/{chunk-UYYG4XDW.js → chunk-LEBQPP4B.js} +80 -7
  15. package/dist/chunk-LEBQPP4B.js.map +1 -0
  16. package/dist/chunk-ST6TSBVQ.js +208 -0
  17. package/dist/chunk-ST6TSBVQ.js.map +1 -0
  18. package/dist/chunk-V7VJKZ5Q.js +254 -0
  19. package/dist/chunk-V7VJKZ5Q.js.map +1 -0
  20. package/dist/{chunk-5TOGZTAO.js → chunk-YKWRCA2S.js} +184 -208
  21. package/dist/chunk-YKWRCA2S.js.map +1 -0
  22. package/dist/content.d.ts +48 -6
  23. package/dist/content.js +233 -49
  24. package/dist/content.js.map +1 -1
  25. package/dist/index.d.ts +319 -22
  26. package/dist/index.js +4 -4
  27. package/dist/patterns.d.ts +557 -25
  28. package/dist/patterns.js +1076 -186
  29. package/dist/patterns.js.map +1 -1
  30. package/icons/apps/aistudio.webp +0 -0
  31. package/icons/apps/application.png +0 -0
  32. package/icons/apps/baixiaoying.webp +0 -0
  33. package/icons/apps/coze.webp +0 -0
  34. package/icons/apps/dify.webp +0 -0
  35. package/icons/apps/doubao.webp +0 -0
  36. package/icons/apps/flowith.webp +0 -0
  37. package/icons/apps/gemini.webp +0 -0
  38. package/icons/apps/github-copilot.webp +0 -0
  39. package/icons/apps/google.webp +0 -0
  40. package/icons/apps/grok.webp +0 -0
  41. package/icons/apps/kimi.webp +0 -0
  42. package/icons/apps/longcat.webp +0 -0
  43. package/icons/apps/metaso.webp +0 -0
  44. package/icons/apps/monica.webp +0 -0
  45. package/icons/apps/n8n.webp +0 -0
  46. package/icons/apps/nm-search.webp +0 -0
  47. package/icons/apps/notebooklm.webp +0 -0
  48. package/icons/apps/perplexity.webp +0 -0
  49. package/icons/apps/poe.webp +0 -0
  50. package/icons/apps/qingyan.webp +0 -0
  51. package/icons/apps/stepfun.webp +0 -0
  52. package/icons/apps/tiangong.webp +0 -0
  53. package/icons/apps/xiaoyi.webp +0 -0
  54. package/icons/apps/yuanbao.webp +0 -0
  55. package/icons/apps/zai.webp +0 -0
  56. package/icons/models/ai21.webp +0 -0
  57. package/icons/models/aimass.webp +0 -0
  58. package/icons/models/anthropic.webp +0 -0
  59. package/icons/models/baichuan.webp +0 -0
  60. package/icons/models/byte_dance.webp +0 -0
  61. package/icons/models/chatglm.webp +0 -0
  62. package/icons/models/claude.webp +0 -0
  63. package/icons/models/codegeex.webp +0 -0
  64. package/icons/models/cogview3flash.webp +0 -0
  65. package/icons/models/cohere.webp +0 -0
  66. package/icons/models/copilot.webp +0 -0
  67. package/icons/models/dalle.webp +0 -0
  68. package/icons/models/dbrx.webp +0 -0
  69. package/icons/models/deepseek.webp +0 -0
  70. package/icons/models/doubao.webp +0 -0
  71. package/icons/models/flux.webp +0 -0
  72. package/icons/models/gemini.webp +0 -0
  73. package/icons/models/gemma.webp +0 -0
  74. package/icons/models/google.webp +0 -0
  75. package/icons/models/grok.webp +0 -0
  76. package/icons/models/hailuo.webp +0 -0
  77. package/icons/models/huggingface.webp +0 -0
  78. package/icons/models/hunyuan.webp +0 -0
  79. package/icons/models/ibm.webp +0 -0
  80. package/icons/models/ideogram.webp +0 -0
  81. package/icons/models/internlm.webp +0 -0
  82. package/icons/models/jina.webp +0 -0
  83. package/icons/models/llava.webp +0 -0
  84. package/icons/models/luma.webp +0 -0
  85. package/icons/models/magic.webp +0 -0
  86. package/icons/models/microsoft.webp +0 -0
  87. package/icons/models/midjourney.webp +0 -0
  88. package/icons/models/minimax.webp +0 -0
  89. package/icons/models/mistral.webp +0 -0
  90. package/icons/models/moonshot.webp +0 -0
  91. package/icons/models/nousresearch.webp +0 -0
  92. package/icons/models/nvidia.webp +0 -0
  93. package/icons/models/o3.webp +0 -0
  94. package/icons/models/openai.webp +0 -0
  95. package/icons/models/palm.webp +0 -0
  96. package/icons/models/perplexity.webp +0 -0
  97. package/icons/models/qwen.webp +0 -0
  98. package/icons/models/stability.webp +0 -0
  99. package/icons/models/step.webp +0 -0
  100. package/icons/models/suno.webp +0 -0
  101. package/icons/models/upstage.webp +0 -0
  102. package/icons/models/vidu.webp +0 -0
  103. package/icons/models/volcengine.webp +0 -0
  104. package/icons/models/voyageai.webp +0 -0
  105. package/icons/models/wenxin.webp +0 -0
  106. package/icons/models/xirang.png +0 -0
  107. package/icons/models/xirang_dark.png +0 -0
  108. package/icons/models/yi.webp +0 -0
  109. package/icons/models/zai.webp +0 -0
  110. package/icons/models/zero-one.webp +0 -0
  111. package/icons/models/zhipu.webp +0 -0
  112. package/icons/providers/302ai.webp +0 -0
  113. package/icons/providers/DMXAPI-to-img.webp +0 -0
  114. package/icons/providers/Tesseract.js.png +0 -0
  115. package/icons/providers/ace.webp +0 -0
  116. package/icons/providers/adobe.webp +0 -0
  117. package/icons/providers/adobefirefly.webp +0 -0
  118. package/icons/providers/agentvoice.webp +0 -0
  119. package/icons/providers/agui.webp +0 -0
  120. package/icons/providers/ai2.webp +0 -0
  121. package/icons/providers/ai21.webp +0 -0
  122. package/icons/providers/ai302.webp +0 -0
  123. package/icons/providers/ai360.webp +0 -0
  124. package/icons/providers/aiOnly.webp +0 -0
  125. package/icons/providers/aihubmix.webp +0 -0
  126. package/icons/providers/aimass.webp +0 -0
  127. package/icons/providers/aionlabs.webp +0 -0
  128. package/icons/providers/airjelly.webp +0 -0
  129. package/icons/providers/aistudio.webp +0 -0
  130. package/icons/providers/akashchat.webp +0 -0
  131. package/icons/providers/alephalpha.webp +0 -0
  132. package/icons/providers/alibaba.webp +0 -0
  133. package/icons/providers/alibabacloud.webp +0 -0
  134. package/icons/providers/amp.webp +0 -0
  135. package/icons/providers/antgroup.webp +0 -0
  136. package/icons/providers/anthropic.webp +0 -0
  137. package/icons/providers/antigravity.webp +0 -0
  138. package/icons/providers/anyscale.webp +0 -0
  139. package/icons/providers/apertis.webp +0 -0
  140. package/icons/providers/apple.webp +0 -0
  141. package/icons/providers/arcee.webp +0 -0
  142. package/icons/providers/askverdict.webp +0 -0
  143. package/icons/providers/assemblyai.webp +0 -0
  144. package/icons/providers/atlascloud.webp +0 -0
  145. package/icons/providers/automatic.webp +0 -0
  146. package/icons/providers/aws-bedrock.webp +0 -0
  147. package/icons/providers/aws.webp +0 -0
  148. package/icons/providers/aya.webp +0 -0
  149. package/icons/providers/azure.webp +0 -0
  150. package/icons/providers/azureai.webp +0 -0
  151. package/icons/providers/baai.webp +0 -0
  152. package/icons/providers/baichuan.webp +0 -0
  153. package/icons/providers/baidu-cloud.webp +0 -0
  154. package/icons/providers/baidu.webp +0 -0
  155. package/icons/providers/baiducloud.webp +0 -0
  156. package/icons/providers/bailian.webp +0 -0
  157. package/icons/providers/baseten.webp +0 -0
  158. package/icons/providers/bedrock.webp +0 -0
  159. package/icons/providers/bfl.webp +0 -0
  160. package/icons/providers/bigModel.webp +0 -0
  161. package/icons/providers/bilibili.webp +0 -0
  162. package/icons/providers/bilibiliindex.webp +0 -0
  163. package/icons/providers/bing.webp +0 -0
  164. package/icons/providers/briaai.webp +0 -0
  165. package/icons/providers/burncloud.webp +0 -0
  166. package/icons/providers/bytedance.webp +0 -0
  167. package/icons/providers/capcut.webp +0 -0
  168. package/icons/providers/centml.webp +0 -0
  169. package/icons/providers/cephalon.jpeg +0 -0
  170. package/icons/providers/cerebras.webp +0 -0
  171. package/icons/providers/chatglm.webp +0 -0
  172. package/icons/providers/cherryin.png +0 -0
  173. package/icons/providers/cherrystudio.webp +0 -0
  174. package/icons/providers/civitai.webp +0 -0
  175. package/icons/providers/claude.webp +0 -0
  176. package/icons/providers/claudecode.webp +0 -0
  177. package/icons/providers/cline.webp +0 -0
  178. package/icons/providers/clipdrop.webp +0 -0
  179. package/icons/providers/cloudflare.webp +0 -0
  180. package/icons/providers/codebuddy.webp +0 -0
  181. package/icons/providers/codeflicker.webp +0 -0
  182. package/icons/providers/codegeex.webp +0 -0
  183. package/icons/providers/codex.webp +0 -0
  184. package/icons/providers/cogvideo.webp +0 -0
  185. package/icons/providers/cogview.webp +0 -0
  186. package/icons/providers/cogview3flash.webp +0 -0
  187. package/icons/providers/cohere.webp +0 -0
  188. package/icons/providers/colab.webp +0 -0
  189. package/icons/providers/cometapi.webp +0 -0
  190. package/icons/providers/comfyui.webp +0 -0
  191. package/icons/providers/commanda.webp +0 -0
  192. package/icons/providers/copilot.webp +0 -0
  193. package/icons/providers/copilotkit.webp +0 -0
  194. package/icons/providers/coqui.webp +0 -0
  195. package/icons/providers/coze.webp +0 -0
  196. package/icons/providers/crewai.webp +0 -0
  197. package/icons/providers/crusoe.webp +0 -0
  198. package/icons/providers/cursor.webp +0 -0
  199. package/icons/providers/cybercut.webp +0 -0
  200. package/icons/providers/dalle.webp +0 -0
  201. package/icons/providers/dbrx.webp +0 -0
  202. package/icons/providers/deepai.webp +0 -0
  203. package/icons/providers/deepcogito.webp +0 -0
  204. package/icons/providers/deepinfra.webp +0 -0
  205. package/icons/providers/deepl.webp +0 -0
  206. package/icons/providers/deepmind.webp +0 -0
  207. package/icons/providers/deepseek.webp +0 -0
  208. package/icons/providers/devin.webp +0 -0
  209. package/icons/providers/dify.webp +0 -0
  210. package/icons/providers/dmxapi-logo-dark.webp +0 -0
  211. package/icons/providers/dmxapi-logo.webp +0 -0
  212. package/icons/providers/doc2x.webp +0 -0
  213. package/icons/providers/docsearch.webp +0 -0
  214. package/icons/providers/dolphin.webp +0 -0
  215. package/icons/providers/doubao.webp +0 -0
  216. package/icons/providers/dreammachine.webp +0 -0
  217. package/icons/providers/elevenlabs.webp +0 -0
  218. package/icons/providers/elevenx.webp +0 -0
  219. package/icons/providers/essentialai.webp +0 -0
  220. package/icons/providers/exa.webp +0 -0
  221. package/icons/providers/fal.webp +0 -0
  222. package/icons/providers/fastgpt.webp +0 -0
  223. package/icons/providers/featherless.webp +0 -0
  224. package/icons/providers/figma.webp +0 -0
  225. package/icons/providers/fireworks.webp +0 -0
  226. package/icons/providers/fishaudio.webp +0 -0
  227. package/icons/providers/flora.webp +0 -0
  228. package/icons/providers/flowith.webp +0 -0
  229. package/icons/providers/flux.webp +0 -0
  230. package/icons/providers/friendli.webp +0 -0
  231. package/icons/providers/gemini.webp +0 -0
  232. package/icons/providers/geminicli.webp +0 -0
  233. package/icons/providers/gemma.webp +0 -0
  234. package/icons/providers/gitee-ai.webp +0 -0
  235. package/icons/providers/giteeai.webp +0 -0
  236. package/icons/providers/github.webp +0 -0
  237. package/icons/providers/githubcopilot.webp +0 -0
  238. package/icons/providers/glama.webp +0 -0
  239. package/icons/providers/glif.webp +0 -0
  240. package/icons/providers/glmv.webp +0 -0
  241. package/icons/providers/gmi.svg +5 -0
  242. package/icons/providers/google.webp +0 -0
  243. package/icons/providers/googlecloud.webp +0 -0
  244. package/icons/providers/goose.webp +0 -0
  245. package/icons/providers/gradio.webp +0 -0
  246. package/icons/providers/greptile.webp +0 -0
  247. package/icons/providers/grok.webp +0 -0
  248. package/icons/providers/groq.webp +0 -0
  249. package/icons/providers/hailuo.webp +0 -0
  250. package/icons/providers/haiper.webp +0 -0
  251. package/icons/providers/hedra.webp +0 -0
  252. package/icons/providers/hermesagent.webp +0 -0
  253. package/icons/providers/higress.webp +0 -0
  254. package/icons/providers/huawei.webp +0 -0
  255. package/icons/providers/huaweicloud.webp +0 -0
  256. package/icons/providers/huggingface.webp +0 -0
  257. package/icons/providers/hunyuan.webp +0 -0
  258. package/icons/providers/hyperbolic.webp +0 -0
  259. package/icons/providers/ibm.webp +0 -0
  260. package/icons/providers/ideogram.webp +0 -0
  261. package/icons/providers/iflytekcloud.webp +0 -0
  262. package/icons/providers/inception.webp +0 -0
  263. package/icons/providers/inference.webp +0 -0
  264. package/icons/providers/infermatic.webp +0 -0
  265. package/icons/providers/infini.webp +0 -0
  266. package/icons/providers/infinigence.webp +0 -0
  267. package/icons/providers/inflection.webp +0 -0
  268. package/icons/providers/internlm.webp +0 -0
  269. package/icons/providers/jimeng.webp +0 -0
  270. package/icons/providers/jina.webp +0 -0
  271. package/icons/providers/junie.webp +0 -0
  272. package/icons/providers/kilocode.webp +0 -0
  273. package/icons/providers/kimi.webp +0 -0
  274. package/icons/providers/kiro.webp +0 -0
  275. package/icons/providers/kling.webp +0 -0
  276. package/icons/providers/kluster.webp +0 -0
  277. package/icons/providers/kolors.webp +0 -0
  278. package/icons/providers/krea.webp +0 -0
  279. package/icons/providers/kwaikat.webp +0 -0
  280. package/icons/providers/kwaipilot.webp +0 -0
  281. package/icons/providers/lambda.webp +0 -0
  282. package/icons/providers/langchain.webp +0 -0
  283. package/icons/providers/langfuse.webp +0 -0
  284. package/icons/providers/langgraph.webp +0 -0
  285. package/icons/providers/langsmith.webp +0 -0
  286. package/icons/providers/leptonai.webp +0 -0
  287. package/icons/providers/lg.webp +0 -0
  288. package/icons/providers/lightricks.webp +0 -0
  289. package/icons/providers/liquid.webp +0 -0
  290. package/icons/providers/livekit.webp +0 -0
  291. package/icons/providers/llamaindex.webp +0 -0
  292. package/icons/providers/llava.webp +0 -0
  293. package/icons/providers/llmapi.webp +0 -0
  294. package/icons/providers/lmstudio.webp +0 -0
  295. package/icons/providers/lobehub.webp +0 -0
  296. package/icons/providers/longcat.webp +0 -0
  297. package/icons/providers/lovable.webp +0 -0
  298. package/icons/providers/lovart.webp +0 -0
  299. package/icons/providers/luma.webp +0 -0
  300. package/icons/providers/magic.webp +0 -0
  301. package/icons/providers/make.webp +0 -0
  302. package/icons/providers/manus.webp +0 -0
  303. package/icons/providers/mastra.webp +0 -0
  304. package/icons/providers/mcp.webp +0 -0
  305. package/icons/providers/mcpso.webp +0 -0
  306. package/icons/providers/menlo.webp +0 -0
  307. package/icons/providers/meshy.webp +0 -0
  308. package/icons/providers/meta.webp +0 -0
  309. package/icons/providers/metaai.webp +0 -0
  310. package/icons/providers/metagpt.webp +0 -0
  311. package/icons/providers/microsoft.webp +0 -0
  312. package/icons/providers/midjourney.webp +0 -0
  313. package/icons/providers/minimax.webp +0 -0
  314. package/icons/providers/mistral.webp +0 -0
  315. package/icons/providers/modelscope.webp +0 -0
  316. package/icons/providers/monica.webp +0 -0
  317. package/icons/providers/moonshot.webp +0 -0
  318. package/icons/providers/morph.webp +0 -0
  319. package/icons/providers/moxt.webp +0 -0
  320. package/icons/providers/myshell.webp +0 -0
  321. package/icons/providers/n8n.webp +0 -0
  322. package/icons/providers/nanobanana.webp +0 -0
  323. package/icons/providers/nebius.webp +0 -0
  324. package/icons/providers/newapi.webp +0 -0
  325. package/icons/providers/notebooklm.webp +0 -0
  326. package/icons/providers/notion.webp +0 -0
  327. package/icons/providers/nousresearch.webp +0 -0
  328. package/icons/providers/nova.webp +0 -0
  329. package/icons/providers/novelai.webp +0 -0
  330. package/icons/providers/novita.webp +0 -0
  331. package/icons/providers/nplcloud.webp +0 -0
  332. package/icons/providers/nvidia.webp +0 -0
  333. package/icons/providers/o3.webp +0 -0
  334. package/icons/providers/obsidian.webp +0 -0
  335. package/icons/providers/ollama.webp +0 -0
  336. package/icons/providers/openai.webp +0 -0
  337. package/icons/providers/openchat.webp +0 -0
  338. package/icons/providers/openclaw.webp +0 -0
  339. package/icons/providers/opencode.webp +0 -0
  340. package/icons/providers/openhands.webp +0 -0
  341. package/icons/providers/openhuman.webp +0 -0
  342. package/icons/providers/openrouter.webp +0 -0
  343. package/icons/providers/openwebui.webp +0 -0
  344. package/icons/providers/paddleocr.webp +0 -0
  345. package/icons/providers/palm.webp +0 -0
  346. package/icons/providers/parasail.webp +0 -0
  347. package/icons/providers/perplexity.webp +0 -0
  348. package/icons/providers/phidata.webp +0 -0
  349. package/icons/providers/phind.webp +0 -0
  350. package/icons/providers/pika.webp +0 -0
  351. package/icons/providers/pixverse.webp +0 -0
  352. package/icons/providers/player2.webp +0 -0
  353. package/icons/providers/poe.webp +0 -0
  354. package/icons/providers/pollinations.webp +0 -0
  355. package/icons/providers/ppio.webp +0 -0
  356. package/icons/providers/prunaai.webp +0 -0
  357. package/icons/providers/pydanticai.webp +0 -0
  358. package/icons/providers/qingyan.webp +0 -0
  359. package/icons/providers/qiniu.webp +0 -0
  360. package/icons/providers/qoder.webp +0 -0
  361. package/icons/providers/qwen.webp +0 -0
  362. package/icons/providers/railway.webp +0 -0
  363. package/icons/providers/recraft.webp +0 -0
  364. package/icons/providers/relace.webp +0 -0
  365. package/icons/providers/replicate.webp +0 -0
  366. package/icons/providers/replit.webp +0 -0
  367. package/icons/providers/reve.webp +0 -0
  368. package/icons/providers/roocode.webp +0 -0
  369. package/icons/providers/rsshub.webp +0 -0
  370. package/icons/providers/runway.webp +0 -0
  371. package/icons/providers/rwkv.webp +0 -0
  372. package/icons/providers/sambanova.webp +0 -0
  373. package/icons/providers/search1api.webp +0 -0
  374. package/icons/providers/searchapi.webp +0 -0
  375. package/icons/providers/sensenova.webp +0 -0
  376. package/icons/providers/silicon.webp +0 -0
  377. package/icons/providers/siliconcloud.webp +0 -0
  378. package/icons/providers/sillytavern.webp +0 -0
  379. package/icons/providers/skywork.webp +0 -0
  380. package/icons/providers/slock.webp +0 -0
  381. package/icons/providers/smithery.webp +0 -0
  382. package/icons/providers/snowflake.webp +0 -0
  383. package/icons/providers/sophnet.webp +0 -0
  384. package/icons/providers/sora.webp +0 -0
  385. package/icons/providers/spark.webp +0 -0
  386. package/icons/providers/speedai.webp +0 -0
  387. package/icons/providers/stability.webp +0 -0
  388. package/icons/providers/statecloud.webp +0 -0
  389. package/icons/providers/step.webp +0 -0
  390. package/icons/providers/stepfun.webp +0 -0
  391. package/icons/providers/straico.webp +0 -0
  392. package/icons/providers/streamlake.webp +0 -0
  393. package/icons/providers/submodel.webp +0 -0
  394. package/icons/providers/suno.webp +0 -0
  395. package/icons/providers/sync.webp +0 -0
  396. package/icons/providers/targon.webp +0 -0
  397. package/icons/providers/tavily.webp +0 -0
  398. package/icons/providers/tencent-cloud-ti.webp +0 -0
  399. package/icons/providers/tencent.webp +0 -0
  400. package/icons/providers/tencentcloud.webp +0 -0
  401. package/icons/providers/tiangong.webp +0 -0
  402. package/icons/providers/tii.webp +0 -0
  403. package/icons/providers/together.webp +0 -0
  404. package/icons/providers/tokenrouter.png +0 -0
  405. package/icons/providers/topazlabs.webp +0 -0
  406. package/icons/providers/trae.webp +0 -0
  407. package/icons/providers/tripo.webp +0 -0
  408. package/icons/providers/turix.webp +0 -0
  409. package/icons/providers/udio.webp +0 -0
  410. package/icons/providers/unstructured.webp +0 -0
  411. package/icons/providers/upstage.webp +0 -0
  412. package/icons/providers/v0.webp +0 -0
  413. package/icons/providers/vectorizerai.webp +0 -0
  414. package/icons/providers/venice.webp +0 -0
  415. package/icons/providers/vercel.webp +0 -0
  416. package/icons/providers/vertexai.webp +0 -0
  417. package/icons/providers/vidu.webp +0 -0
  418. package/icons/providers/viggle.webp +0 -0
  419. package/icons/providers/vllm.webp +0 -0
  420. package/icons/providers/volcengine.webp +0 -0
  421. package/icons/providers/voyage.webp +0 -0
  422. package/icons/providers/voyageai.webp +0 -0
  423. package/icons/providers/wenxin.webp +0 -0
  424. package/icons/providers/windsurf.webp +0 -0
  425. package/icons/providers/workersai.webp +0 -0
  426. package/icons/providers/worldrouter.webp +0 -0
  427. package/icons/providers/xai.webp +0 -0
  428. package/icons/providers/xiaomimimo.webp +0 -0
  429. package/icons/providers/xinference.webp +0 -0
  430. package/icons/providers/xirang.png +0 -0
  431. package/icons/providers/xpay.webp +0 -0
  432. package/icons/providers/xuanyuan.webp +0 -0
  433. package/icons/providers/yandex.webp +0 -0
  434. package/icons/providers/yi.webp +0 -0
  435. package/icons/providers/youmind.webp +0 -0
  436. package/icons/providers/yuanbao.webp +0 -0
  437. package/icons/providers/zai.webp +0 -0
  438. package/icons/providers/zapier.webp +0 -0
  439. package/icons/providers/zeabur.webp +0 -0
  440. package/icons/providers/zencoder.webp +0 -0
  441. package/icons/providers/zenmux.webp +0 -0
  442. package/icons/providers/zero-one.webp +0 -0
  443. package/icons/providers/zeroone.webp +0 -0
  444. package/icons/providers/zhipu.webp +0 -0
  445. package/package.json +36 -36
  446. package/styles/content.css +3 -1
  447. package/styles/yunui.css +346 -89
  448. package/dist/chunk-5E3O6ANF.js.map +0 -1
  449. package/dist/chunk-5TOGZTAO.js.map +0 -1
  450. package/dist/chunk-AV5TGEJS.js +0 -54
  451. package/dist/chunk-AV5TGEJS.js.map +0 -1
  452. package/dist/chunk-GSPJ5YI6.js.map +0 -1
  453. package/dist/chunk-QEIBYOG2.js +0 -188
  454. package/dist/chunk-QEIBYOG2.js.map +0 -1
  455. package/dist/chunk-UYYG4XDW.js.map +0 -1
package/dist/patterns.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import './chunk-5E3O6ANF.js';
3
- import { copyToClipboard } from './chunk-UYYG4XDW.js';
4
- export { Footer } from './chunk-UYYG4XDW.js';
5
- import './chunk-GSPJ5YI6.js';
6
- import { ImageLightbox } from './chunk-QEIBYOG2.js';
7
- import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-5TOGZTAO.js';
8
- import { cn } from './chunk-AV5TGEJS.js';
2
+ import './chunk-AFVENY4D.js';
3
+ import { capabilityBadgeColor, capabilityIconColor, copyToClipboard } from './chunk-LEBQPP4B.js';
4
+ export { Footer } from './chunk-LEBQPP4B.js';
5
+ import './chunk-GAXVET76.js';
6
+ import { ImageLightbox } from './chunk-ST6TSBVQ.js';
7
+ import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-YKWRCA2S.js';
8
+ import { cn } from './chunk-V7VJKZ5Q.js';
9
9
  import { useYunUI } from './chunk-3RT24MSH.js';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
  import React, { useState, useEffect, useCallback, useRef, useMemo } from 'react';
12
- import { AlertCircle, RefreshCw, Check, Copy, Plus, FileText, ExternalLink, Calendar, Clock, User, ChevronLeft, ChevronRight, PanelLeftClose, X, ArrowUpRight, ArrowDownRight, GraduationCap, ArrowRight, Award, Waves, SlidersHorizontal, Layers, Fingerprint, Ban, Image, Brain, Eye, Code, MessageSquare, XCircle, Zap, CheckCircle, FileCode, EyeOff, Sparkles, Globe, Loader2, LogOut, Pause, Play, Download, Grid, List, Bell, Trash2, Camera, Info, CheckCircle2, AlertTriangle } from 'lucide-react';
12
+ import { AlertCircle, RefreshCw, Check, Copy, Plus, FileText, ExternalLink, Calendar, Clock, User, ChevronLeft, ChevronRight, ArrowUp, PanelLeftClose, X, ArrowUpRight, ArrowDownRight, GraduationCap, ArrowRight, Award, Waves, SlidersHorizontal, Layers, Fingerprint, Ban, DatabaseZap, Image, Brain, Eye, Code, MessageSquare, XCircle, Zap, CheckCircle, FileCode, EyeOff, Sparkles, Globe, Loader2, LogOut, Pause, Play, Download, Grid, List, Bell, Trash2, Camera, Quote, ChevronDown, Info, CheckCircle2, AlertTriangle } from 'lucide-react';
13
13
 
14
14
  function BackgroundEffects() {
15
15
  return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 h-full w-full pointer-events-none select-none overflow-hidden bg-(--bg-base)", children: /* @__PURE__ */ jsx(
@@ -136,7 +136,7 @@ function highlightCode(code) {
136
136
  const lines = code.split("\n");
137
137
  return lines.map((line, i) => {
138
138
  const rendered = renderLine(line) || " ";
139
- return `<div class="table-row group"><span class="table-cell select-none text-right pr-4 w-8 text-(--text-muted) text-xs opacity-0 group-hover:opacity-50 transition-opacity">${i + 1}</span><span class="table-cell">${rendered}</span></div>`;
139
+ return `<div class="table-row group"><span class="table-cell select-none text-right pr-4 w-8 text-(--text-tertiary) text-xs opacity-0 group-hover:opacity-100 transition-opacity">${i + 1}</span><span class="table-cell">${rendered}</span></div>`;
140
140
  }).join("");
141
141
  }
142
142
  function CodeBlock({
@@ -201,67 +201,73 @@ function CodeBlock({
201
201
  }
202
202
  )
203
203
  ] }),
204
- /* @__PURE__ */ jsx("div", { className: "p-4 bg-(--bg-base)", children: /* @__PURE__ */ jsx("pre", { className: "text-sm overflow-x-auto", children: /* @__PURE__ */ jsx("code", { className: "font-mono", style: { color: "var(--text-primary)" }, children: showLineNumbers ? /* @__PURE__ */ jsx(
204
+ /* @__PURE__ */ jsx("div", { className: "p-4 bg-(--bg-base)", children: /* @__PURE__ */ jsx("pre", { className: "text-sm overflow-x-auto", tabIndex: 0, children: /* @__PURE__ */ jsx("code", { className: "font-mono", style: { color: "var(--text-primary)" }, children: showLineNumbers ? /* @__PURE__ */ jsx(
205
205
  "div",
206
206
  {
207
207
  className: "table",
208
208
  dangerouslySetInnerHTML: {
209
209
  __html: highlightedHtml || code.split("\n").map(
210
- (line, i) => `<div class="table-row group"><span class="table-cell select-none text-right pr-4 w-8 text-(--text-muted) text-xs opacity-0 group-hover:opacity-50 transition-opacity">${i + 1}</span><span class="table-cell">${escapeHtml(line) || "&nbsp;"}</span></div>`
210
+ (line, i) => `<div class="table-row group"><span class="table-cell select-none text-right pr-4 w-8 text-(--text-tertiary) text-xs opacity-0 group-hover:opacity-100 transition-opacity">${i + 1}</span><span class="table-cell">${escapeHtml(line) || "&nbsp;"}</span></div>`
211
211
  ).join("")
212
212
  }
213
213
  }
214
214
  ) : code }) }) })
215
215
  ] });
216
216
  }
217
- var codeSnippets = {
218
- python: `import openai
217
+ function snippets(baseUrl, model, apiKey, prompt) {
218
+ const j = (s) => JSON.stringify(s);
219
+ const sq = (s) => `'${s.replace(/'/g, "\\'")}'`;
220
+ return {
221
+ python: `import openai
219
222
 
220
223
  client = openai.OpenAI(
221
- base_url="https://api.example.com/v1",
222
- api_key="your_api_key"
224
+ base_url=${j(baseUrl)},
225
+ api_key=${j(apiKey)}
223
226
  )
224
227
 
225
228
  response = client.chat.completions.create(
226
- model="deepseek-r1",
227
- messages=[{"role": "user", "content": "Hello!"}]
229
+ model=${j(model)},
230
+ messages=[{"role": "user", "content": ${j(prompt)}}]
228
231
  )
229
232
 
230
233
  print(response.choices[0].message.content)`,
231
- javascript: `import OpenAI from 'openai';
234
+ javascript: `import OpenAI from 'openai';
232
235
 
233
236
  const client = new OpenAI({
234
- baseURL: 'https://api.example.com/v1',
235
- apiKey: 'your_api_key'
237
+ baseURL: ${sq(baseUrl)},
238
+ apiKey: ${sq(apiKey)}
236
239
  });
237
240
 
238
241
  const response = await client.chat.completions.create({
239
- model: 'deepseek-r1',
240
- messages: [{ role: 'user', content: 'Hello!' }]
242
+ model: ${sq(model)},
243
+ messages: [{ role: 'user', content: ${sq(prompt)} }]
241
244
  });
242
245
 
243
246
  console.log(response.choices[0].message.content);`,
244
- curl: `curl https://api.example.com/v1/chat/completions \\
245
- -H "Authorization: Bearer your_api_key" \\
247
+ curl: `curl ${baseUrl}/chat/completions \\
248
+ -H "Authorization: Bearer ${apiKey}" \\
246
249
  -H "Content-Type: application/json" \\
247
250
  -d '{
248
- "model": "deepseek-r1",
249
- "messages": [{"role": "user", "content": "Hello!"}]
251
+ "model": ${j(model)},
252
+ "messages": [{"role": "user", "content": ${j(prompt)}}]
250
253
  }'`
251
- };
252
- function CodeDemo() {
254
+ };
255
+ }
256
+ function CodeDemo({
257
+ baseUrl = "https://api.example.com/v1",
258
+ model = "deepseek-r1",
259
+ apiKeyPlaceholder = "your_api_key",
260
+ prompt = "Hello!",
261
+ labels,
262
+ className
263
+ } = {}) {
264
+ const code = snippets(baseUrl, model, apiKeyPlaceholder, prompt);
253
265
  const tabs = [
254
- { id: "python", label: "Python", code: codeSnippets.python, language: "python" },
255
- { id: "javascript", label: "Node.js", code: codeSnippets.javascript, language: "javascript" },
256
- { id: "curl", label: "cURL", code: codeSnippets.curl, language: "bash" }
266
+ { id: "python", label: labels?.python ?? "Python", code: code.python, language: "python" },
267
+ { id: "javascript", label: labels?.javascript ?? "Node.js", code: code.javascript, language: "javascript" },
268
+ { id: "curl", label: labels?.curl ?? "cURL", code: code.curl, language: "bash" }
257
269
  ];
258
- return /* @__PURE__ */ jsx("div", { className: "w-full max-w-2xl mx-auto", children: /* @__PURE__ */ jsx(
259
- CodeBlock,
260
- {
261
- code: codeSnippets.python,
262
- tabs
263
- }
264
- ) });
270
+ return /* @__PURE__ */ jsx("div", { className: className ?? "w-full max-w-2xl mx-auto", children: /* @__PURE__ */ jsx(CodeBlock, { code: code.python, tabs }) });
265
271
  }
266
272
  function FAQ({ items, defaultOpenIndex = 0 }) {
267
273
  const [openIndex, setOpenIndex] = useState(defaultOpenIndex);
@@ -303,9 +309,9 @@ function FAQ({ items, defaultOpenIndex = 0 }) {
303
309
  }
304
310
  var actionClass = cn(
305
311
  "inline-flex items-center gap-1.5 px-2 py-1 text-xs",
306
- "text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors rounded-md hover:bg-fd-accent"
312
+ "text-muted-foreground hover:text-accent-foreground transition-colors rounded-md hover:bg-accent"
307
313
  );
308
- function LLMCopyButton({ markdownUrl }) {
314
+ function LLMCopyButton({ markdownUrl, labels }) {
309
315
  const [copied, setCopied] = useState(false);
310
316
  const handleCopy = useCallback(async () => {
311
317
  try {
@@ -320,15 +326,12 @@ function LLMCopyButton({ markdownUrl }) {
320
326
  setTimeout(() => setCopied(false), 2e3);
321
327
  }
322
328
  }, [markdownUrl]);
323
- return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleCopy, title: "Copy as Markdown for LLM", className: actionClass, children: [
329
+ return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleCopy, title: labels?.title ?? "Copy as Markdown for LLM", className: actionClass, children: [
324
330
  copied ? /* @__PURE__ */ jsx(Check, { className: "size-3" }) : /* @__PURE__ */ jsx(Copy, { className: "size-3" }),
325
- copied ? "Copied" : "Copy"
331
+ copied ? labels?.copied ?? "Copied" : labels?.copy ?? "Copy"
326
332
  ] });
327
333
  }
328
- function ViewOptions({
329
- markdownUrl,
330
- githubUrl
331
- }) {
334
+ function ViewOptions({ markdownUrl, githubUrl, labels }) {
332
335
  return /* @__PURE__ */ jsxs(Fragment, { children: [
333
336
  /* @__PURE__ */ jsxs(
334
337
  "a",
@@ -337,10 +340,10 @@ function ViewOptions({
337
340
  target: "_blank",
338
341
  rel: "noreferrer noopener",
339
342
  className: cn(actionClass, "no-underline"),
340
- title: "View as Markdown",
343
+ title: labels?.markdownTitle ?? "View as Markdown",
341
344
  children: [
342
345
  /* @__PURE__ */ jsx(FileText, { className: "size-3" }),
343
- "Markdown"
346
+ labels?.markdown ?? "Markdown"
344
347
  ]
345
348
  }
346
349
  ),
@@ -351,10 +354,10 @@ function ViewOptions({
351
354
  target: "_blank",
352
355
  rel: "noreferrer noopener",
353
356
  className: cn(actionClass, "no-underline"),
354
- title: "Edit on GitHub",
357
+ title: labels?.githubTitle ?? "Edit on GitHub",
355
358
  children: [
356
359
  /* @__PURE__ */ jsx(ExternalLink, { className: "size-3" }),
357
- "GitHub"
360
+ labels?.github ?? "GitHub"
358
361
  ]
359
362
  }
360
363
  )
@@ -511,8 +514,9 @@ function BlogPagination({
511
514
  size: "sm",
512
515
  onClick: () => handlePageChange(currentPage - 1),
513
516
  disabled: currentPage === 1,
517
+ "aria-label": previousLabel,
514
518
  children: [
515
- /* @__PURE__ */ jsx(ChevronLeft, { size: 16 }),
519
+ /* @__PURE__ */ jsx(ChevronLeft, { size: 16, "aria-hidden": true }),
516
520
  /* @__PURE__ */ jsx("span", { className: "ml-1 hidden sm:inline", children: previousLabel })
517
521
  ]
518
522
  }
@@ -556,14 +560,108 @@ function BlogPagination({
556
560
  size: "sm",
557
561
  onClick: () => handlePageChange(currentPage + 1),
558
562
  disabled: currentPage === totalPages,
563
+ "aria-label": nextLabel,
559
564
  children: [
560
565
  /* @__PURE__ */ jsx("span", { className: "mr-1 hidden sm:inline", children: nextLabel }),
561
- /* @__PURE__ */ jsx(ChevronRight, { size: 16 })
566
+ /* @__PURE__ */ jsx(ChevronRight, { size: 16, "aria-hidden": true })
562
567
  ]
563
568
  }
564
569
  )
565
570
  ] });
566
571
  }
572
+ var RING_RADIUS = 21;
573
+ var RING_CIRCUMFERENCE = 2 * Math.PI * RING_RADIUS;
574
+ function ReadingProgress({
575
+ threshold = 600,
576
+ bar = true,
577
+ backToTop = true,
578
+ labels,
579
+ className = ""
580
+ }) {
581
+ const [progress, setProgress] = useState(0);
582
+ const [show, setShow] = useState(false);
583
+ const backToTopLabel = labels?.backToTop ?? "Back to top";
584
+ useEffect(() => {
585
+ let frame = 0;
586
+ const measure = () => {
587
+ frame = 0;
588
+ const scrolled = window.scrollY;
589
+ const reach = document.documentElement.scrollHeight - window.innerHeight;
590
+ setProgress(reach > 0 ? Math.min(100, scrolled / reach * 100) : 0);
591
+ setShow(scrolled > threshold);
592
+ };
593
+ const onScroll = () => {
594
+ if (!frame) frame = window.requestAnimationFrame(measure);
595
+ };
596
+ measure();
597
+ window.addEventListener("scroll", onScroll, { passive: true });
598
+ window.addEventListener("resize", onScroll, { passive: true });
599
+ return () => {
600
+ window.removeEventListener("scroll", onScroll);
601
+ window.removeEventListener("resize", onScroll);
602
+ if (frame) window.cancelAnimationFrame(frame);
603
+ };
604
+ }, [threshold]);
605
+ if (!bar && !backToTop) return null;
606
+ const interactive = backToTop;
607
+ const Tag = interactive ? "button" : "div";
608
+ return /* @__PURE__ */ jsxs(
609
+ Tag,
610
+ {
611
+ ...interactive ? {
612
+ type: "button",
613
+ "aria-label": backToTopLabel,
614
+ onClick: () => window.scrollTo({ top: 0, behavior: "smooth" })
615
+ } : { "aria-hidden": true },
616
+ className: (
617
+ // The canonical YunUI elevated-overlay surface (same recipe as menus &
618
+ // dropdowns): translucent popover + backdrop blur, hairline border, the
619
+ // house shadow and focus ring. House colour classes bridge to the token
620
+ // system through @theme.
621
+ "group fixed bottom-6 right-6 z-50 grid h-12 w-12 place-items-center rounded-full border border-border bg-popover/85 backdrop-blur-2xl text-muted-foreground shadow-lg shadow-black/5 transition-all duration-300 ease-out " + (interactive ? "hover:-translate-y-0.5 hover:bg-popover hover:text-foreground hover:shadow-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background " : "pointer-events-none ") + (show ? "translate-y-0 scale-100 opacity-100 " : "pointer-events-none translate-y-3 scale-90 opacity-0 ") + className
622
+ ),
623
+ children: [
624
+ bar && /* @__PURE__ */ jsxs(
625
+ "svg",
626
+ {
627
+ viewBox: "0 0 48 48",
628
+ className: "absolute inset-0 h-full w-full -rotate-90",
629
+ "aria-hidden": "true",
630
+ children: [
631
+ /* @__PURE__ */ jsx(
632
+ "circle",
633
+ {
634
+ cx: "24",
635
+ cy: "24",
636
+ r: RING_RADIUS,
637
+ fill: "none",
638
+ strokeWidth: "2",
639
+ style: { stroke: "var(--border)" }
640
+ }
641
+ ),
642
+ /* @__PURE__ */ jsx(
643
+ "circle",
644
+ {
645
+ cx: "24",
646
+ cy: "24",
647
+ r: RING_RADIUS,
648
+ fill: "none",
649
+ strokeWidth: "2.5",
650
+ strokeLinecap: "round",
651
+ className: "transition-[stroke-dashoffset] duration-150 ease-out",
652
+ style: { stroke: "var(--accent)" },
653
+ strokeDasharray: RING_CIRCUMFERENCE,
654
+ strokeDashoffset: RING_CIRCUMFERENCE * (1 - progress / 100)
655
+ }
656
+ )
657
+ ]
658
+ }
659
+ ),
660
+ backToTop && /* @__PURE__ */ jsx(ArrowUp, { size: 17, strokeWidth: 2, className: "relative transition-transform duration-200 group-hover:-translate-y-0.5" })
661
+ ]
662
+ }
663
+ );
664
+ }
567
665
  function SimplePagination({
568
666
  currentPage,
569
667
  hasPrevious,
@@ -577,14 +675,14 @@ function SimplePagination({
577
675
  const nextLabel = labels?.next ?? "Next";
578
676
  const pageNode = labels?.page ? labels.page(currentPage) : `Page ${currentPage}`;
579
677
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-1.5 sm:gap-2", children: [
580
- /* @__PURE__ */ jsxs(Button, { variant: "ghost", size: "sm", onClick: onPrevious, disabled: !canPrev, children: [
581
- /* @__PURE__ */ jsx(ChevronLeft, { size: 16 }),
678
+ /* @__PURE__ */ jsxs(Button, { variant: "ghost", size: "sm", onClick: onPrevious, disabled: !canPrev, "aria-label": previousLabel, children: [
679
+ /* @__PURE__ */ jsx(ChevronLeft, { size: 16, "aria-hidden": true }),
582
680
  /* @__PURE__ */ jsx("span", { className: "ml-1 hidden sm:inline", children: previousLabel })
583
681
  ] }),
584
682
  /* @__PURE__ */ jsx("span", { className: "px-3 text-sm font-medium tabular-nums whitespace-nowrap", children: pageNode }),
585
- /* @__PURE__ */ jsxs(Button, { variant: "ghost", size: "sm", onClick: onNext, disabled: !hasNext, children: [
683
+ /* @__PURE__ */ jsxs(Button, { variant: "ghost", size: "sm", onClick: onNext, disabled: !hasNext, "aria-label": nextLabel, children: [
586
684
  /* @__PURE__ */ jsx("span", { className: "mr-1 hidden sm:inline", children: nextLabel }),
587
- /* @__PURE__ */ jsx(ChevronRight, { size: 16 })
685
+ /* @__PURE__ */ jsx(ChevronRight, { size: 16, "aria-hidden": true })
588
686
  ] })
589
687
  ] });
590
688
  }
@@ -623,10 +721,32 @@ function CategoryFilter({
623
721
  ))
624
722
  ] });
625
723
  }
626
- function isItemActive(item, currentPath, homeHref) {
627
- if (currentPath === item.href) return true;
628
- if (item.href !== homeHref && currentPath.startsWith(item.href)) return true;
629
- return item.match?.some((m) => currentPath.startsWith(m)) ?? false;
724
+ function NavStateIndicator({
725
+ active,
726
+ running,
727
+ className,
728
+ ...props
729
+ }) {
730
+ return /* @__PURE__ */ jsx(
731
+ "span",
732
+ {
733
+ "aria-hidden": "true",
734
+ "data-active": active || void 0,
735
+ "data-running": running || void 0,
736
+ className: cn("nav-state-indicator", className),
737
+ ...props
738
+ }
739
+ );
740
+ }
741
+ function matchStrength(item, currentPath, homeHref) {
742
+ let best = -1;
743
+ for (const prefix of [item.href, ...item.match ?? []]) {
744
+ if (currentPath === prefix) best = Math.max(best, prefix.length);
745
+ else if (prefix !== homeHref && currentPath.startsWith(prefix.replace(/\/$/, "") + "/")) {
746
+ best = Math.max(best, prefix.length);
747
+ }
748
+ }
749
+ return best;
630
750
  }
631
751
  function Sidebar({
632
752
  appName,
@@ -642,21 +762,44 @@ function Sidebar({
642
762
  footer,
643
763
  closeLabel = "Close",
644
764
  loading = false,
645
- scrollStorageKey = "yunui-sidebar-scroll"
765
+ scrollStorageKey = "yunui-sidebar-scroll",
766
+ layout = "fixed",
767
+ header,
768
+ children,
769
+ className,
770
+ role = "navigation",
771
+ ariaLabel = "Main navigation"
646
772
  }) {
647
773
  const { Link, Image } = useYunUI();
648
774
  const navRef = useRef(null);
775
+ const strongestMatch = useMemo(
776
+ () => sections.reduce(
777
+ (best, section) => section.items.reduce((inner, item) => Math.max(inner, matchStrength(item, currentPath, homeHref)), best),
778
+ -1
779
+ ),
780
+ [sections, currentPath, homeHref]
781
+ );
649
782
  useEffect(() => {
650
783
  const nav = navRef.current;
651
784
  if (!nav) return;
652
785
  const saved = sessionStorage.getItem(scrollStorageKey);
653
786
  if (saved) nav.scrollTop = parseInt(saved, 10);
654
- const onScroll = () => sessionStorage.setItem(scrollStorageKey, String(nav.scrollTop));
655
- nav.addEventListener("scroll", onScroll);
656
- return () => nav.removeEventListener("scroll", onScroll);
787
+ let frame = 0;
788
+ const onScroll = () => {
789
+ if (frame) return;
790
+ frame = requestAnimationFrame(() => {
791
+ frame = 0;
792
+ sessionStorage.setItem(scrollStorageKey, String(nav.scrollTop));
793
+ });
794
+ };
795
+ nav.addEventListener("scroll", onScroll, { passive: true });
796
+ return () => {
797
+ if (frame) cancelAnimationFrame(frame);
798
+ nav.removeEventListener("scroll", onScroll);
799
+ };
657
800
  }, [scrollStorageKey]);
658
801
  return /* @__PURE__ */ jsxs(Fragment, { children: [
659
- isOpen && /* @__PURE__ */ jsx(
802
+ layout === "fixed" && isOpen && /* @__PURE__ */ jsx(
660
803
  "div",
661
804
  {
662
805
  className: "fixed inset-0 bg-black/20 backdrop-blur-sm z-40 lg:hidden",
@@ -667,17 +810,16 @@ function Sidebar({
667
810
  /* @__PURE__ */ jsxs(
668
811
  "aside",
669
812
  {
670
- role: "navigation",
671
- "aria-label": "Main navigation",
672
- className: `
673
- fixed inset-y-0 left-0 z-50
674
- min-w-64 w-64 bg-(--bg-base) border-r border-(--border-hairline)
675
- flex flex-col h-dvh
676
- transition-transform duration-200 ease-in-out
677
- ${isOpen ? "translate-x-0" : collapsed ? "-translate-x-full" : "-translate-x-full lg:translate-x-0"}
678
- `,
813
+ role,
814
+ "aria-label": ariaLabel,
815
+ className: cn(
816
+ "min-w-64 w-64 bg-(--bg-base) border-r border-(--border-hairline) flex flex-col",
817
+ layout === "fixed" ? "fixed inset-y-0 left-0 z-50 h-dvh transition-transform duration-200 ease-in-out" : "relative z-0 h-full min-w-0 w-full",
818
+ layout === "fixed" && (isOpen ? "translate-x-0" : collapsed ? "-translate-x-full" : "-translate-x-full lg:translate-x-0"),
819
+ className
820
+ ),
679
821
  children: [
680
- /* @__PURE__ */ jsx("div", { className: "py-3 px-3 shrink-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center py-2 pl-0 pr-1 gap-2", children: [
822
+ header !== void 0 ? header : /* @__PURE__ */ jsx("div", { className: "py-3 px-3 shrink-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center py-2 pl-0 pr-1 gap-2", children: [
681
823
  /* @__PURE__ */ jsxs(Link, { href: homeHref, className: "flex-1 min-w-0 flex items-center gap-2.5 rounded-lg pl-3 pr-3 py-1.5 hover:bg-foreground/5 transition-colors duration-200", children: [
682
824
  /* @__PURE__ */ jsx(Image, { src: logoSrc, alt: appName, width: 36, height: 36, className: "shrink-0" }),
683
825
  /* @__PURE__ */ jsx("span", { className: "font-semibold text-[18px] truncate", children: appName })
@@ -696,16 +838,17 @@ function Sidebar({
696
838
  ] }),
697
839
  onClose && /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(X, { size: 20 }), label: closeLabel, onClick: onClose, className: "lg:hidden" })
698
840
  ] }) }),
699
- /* @__PURE__ */ jsx("nav", { ref: navRef, className: "flex-1 overflow-y-auto py-3 px-3", children: loading ? /* @__PURE__ */ jsx("div", { className: "space-y-2 animate-pulse", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx("div", { className: "h-9 rounded-lg bg-foreground/5" }, i)) }) : sections.map((section, i) => /* @__PURE__ */ jsxs("div", { className: i > 0 ? "mt-4" : "", children: [
841
+ children != null ? /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children }) : /* @__PURE__ */ jsx("nav", { ref: navRef, className: "flex-1 overflow-y-auto py-3 px-3", children: loading ? /* @__PURE__ */ jsx("div", { className: "space-y-2 animate-pulse", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx("div", { className: "h-9 rounded-lg bg-foreground/5" }, i)) }) : sections.map((section, i) => /* @__PURE__ */ jsxs("div", { className: i > 0 ? "mt-4" : "", children: [
700
842
  section.title && /* @__PURE__ */ jsx("div", { className: "nav-section", children: section.title }),
701
843
  section.items.map((item) => {
702
- const active = isItemActive(item, currentPath, homeHref);
844
+ const active = strongestMatch >= 0 && matchStrength(item, currentPath, homeHref) === strongestMatch;
703
845
  const Icon = item.icon;
704
846
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
847
+ /* @__PURE__ */ jsx(NavStateIndicator, { active }),
705
848
  Icon && /* @__PURE__ */ jsx(Icon, { size: 18, strokeWidth: 1.75, className: "shrink-0" }),
706
849
  /* @__PURE__ */ jsx("span", { className: "flex-1 min-w-0 truncate", children: item.label })
707
850
  ] });
708
- const className = `nav-item ${active ? "active" : ""}`;
851
+ const className2 = `nav-item ${active ? "active" : ""}`;
709
852
  return onNavigate ? /* @__PURE__ */ jsx(
710
853
  "a",
711
854
  {
@@ -715,11 +858,11 @@ function Sidebar({
715
858
  onNavigate(item.href);
716
859
  onClose?.();
717
860
  },
718
- className,
861
+ className: className2,
719
862
  children: content
720
863
  },
721
864
  item.href
722
- ) : /* @__PURE__ */ jsx(Link, { href: item.href, onClick: () => onClose?.(), className, children: content }, item.href);
865
+ ) : /* @__PURE__ */ jsx(Link, { href: item.href, onClick: () => onClose?.(), className: className2, children: content }, item.href);
723
866
  })
724
867
  ] }, i)) }),
725
868
  footer && /* @__PURE__ */ jsx("div", { className: "p-3 shrink-0", children: footer })
@@ -744,11 +887,12 @@ function PageLayout({
744
887
  hideFooter = false,
745
888
  transparentBg = false,
746
889
  mainClassName,
890
+ mainId = "main-content",
747
891
  className
748
892
  }) {
749
893
  return /* @__PURE__ */ jsxs("div", { className: cn("min-h-dvh flex flex-col relative", !transparentBg && "bg-background", className), children: [
750
894
  navbar,
751
- /* @__PURE__ */ jsx("main", { className: cn("flex-1 pt-28", mainClassName), children }),
895
+ /* @__PURE__ */ jsx("main", { id: mainId, className: cn("flex-1 pt-28", mainClassName), children }),
752
896
  !hideFooter && footer
753
897
  ] });
754
898
  }
@@ -759,17 +903,28 @@ function PageLoadingState({ message }) {
759
903
  ] });
760
904
  }
761
905
  function PageErrorState({ message, onRetry, retryLabel = "Retry" }) {
762
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-16 text-center", children: [
763
- /* @__PURE__ */ jsx("div", { className: "text-error font-medium mb-2", children: message }),
764
- onRetry && /* @__PURE__ */ jsx(
765
- "button",
766
- {
767
- onClick: onRetry,
768
- className: "text-sm text-muted-foreground hover:text-foreground transition-colors underline outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",
769
- children: retryLabel
770
- }
771
- )
772
- ] });
906
+ return /* @__PURE__ */ jsxs(
907
+ "div",
908
+ {
909
+ role: "alert",
910
+ className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center px-4 py-12 text-center",
911
+ children: [
912
+ /* @__PURE__ */ jsx("span", { className: "mb-3 flex h-10 w-10 items-center justify-center rounded-xl bg-error-soft", children: /* @__PURE__ */ jsx(AlertCircle, { size: 20, className: "text-error", "aria-hidden": "true" }) }),
913
+ /* @__PURE__ */ jsx("div", { className: "max-w-full text-sm font-medium leading-6 text-foreground", children: message }),
914
+ onRetry && /* @__PURE__ */ jsx(
915
+ Button,
916
+ {
917
+ type: "button",
918
+ variant: "outline",
919
+ size: "sm",
920
+ onClick: onRetry,
921
+ className: "mt-4 min-w-20",
922
+ children: retryLabel
923
+ }
924
+ )
925
+ ]
926
+ }
927
+ );
773
928
  }
774
929
  function PageEmptyState({ icon: Icon, title, description, action }) {
775
930
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-16 text-center", children: [
@@ -779,12 +934,23 @@ function PageEmptyState({ icon: Icon, title, description, action }) {
779
934
  action && /* @__PURE__ */ jsx("div", { className: "mt-4", children: action })
780
935
  ] });
781
936
  }
937
+ var SEMANTIC_TONES = {
938
+ warning: { card: "border-warning-soft bg-warning-soft", value: "text-warning" },
939
+ success: { card: "border-success-soft bg-success-soft", value: "text-success" },
940
+ info: { card: "border-info-soft bg-info-soft", value: "text-info" },
941
+ error: { card: "border-error-soft bg-error-soft", value: "text-error" },
942
+ // No `.text-accent` helper exists (unlike the four status tones), so the
943
+ // value colour reads the token directly rather than a dead utility class.
944
+ accent: { card: "border-accent-soft bg-accent-soft", value: "text-(--accent)" }
945
+ };
782
946
  var TONES = {
783
- amber: { card: "border-amber-500/20 bg-amber-500/5", value: "text-amber-600 dark:text-amber-400" },
784
- emerald: { card: "border-emerald-500/20 bg-emerald-500/5", value: "text-emerald-600 dark:text-emerald-400" },
785
- blue: { card: "border-blue-500/20 bg-blue-500/5", value: "text-blue-600 dark:text-blue-400" },
786
- red: { card: "border-red-500/20 bg-red-500/5", value: "text-red-600 dark:text-red-400" },
787
- purple: { card: "border-purple-500/20 bg-purple-500/5", value: "text-purple-600 dark:text-purple-400" }
947
+ ...SEMANTIC_TONES,
948
+ // Legacy colour-named aliases.
949
+ amber: SEMANTIC_TONES.warning,
950
+ emerald: SEMANTIC_TONES.success,
951
+ blue: SEMANTIC_TONES.info,
952
+ red: SEMANTIC_TONES.error,
953
+ purple: SEMANTIC_TONES.accent
788
954
  };
789
955
  function StatCard({ icon: Icon, label, value, subtext, trend, tone, delay = 0, inline = false, valueFirst = false, compact = false, className }) {
790
956
  const toneCfg = tone ? TONES[tone] : void 0;
@@ -798,9 +964,10 @@ function StatCard({ icon: Icon, label, value, subtext, trend, tone, delay = 0, i
798
964
  "%"
799
965
  ] })
800
966
  ] }) : null;
967
+ const mutedInk = toneCfg ? "text-foreground/75" : "text-muted-foreground";
801
968
  if (inline) {
802
969
  return /* @__PURE__ */ jsxs("div", { className: cn("card p-4", toneCfg?.card, className), children: [
803
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
970
+ /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 text-sm", mutedInk), children: [
804
971
  Icon && /* @__PURE__ */ jsx(Icon, { size: 18 }),
805
972
  /* @__PURE__ */ jsx("span", { children: label })
806
973
  ] }),
@@ -816,8 +983,8 @@ function StatCard({ icon: Icon, label, value, subtext, trend, tone, delay = 0, i
816
983
  children: [
817
984
  topRow,
818
985
  /* @__PURE__ */ jsx("div", { className: cn("text-2xl font-semibold mb-1", toneCfg?.value), children: value }),
819
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: label }),
820
- subtext && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground/60 mt-1", children: subtext })
986
+ /* @__PURE__ */ jsx("div", { className: cn("text-sm", mutedInk), children: label }),
987
+ subtext && /* @__PURE__ */ jsx("div", { className: cn("text-xs mt-1", toneCfg ? "text-foreground/75" : "text-muted-foreground"), children: subtext })
821
988
  ]
822
989
  }
823
990
  );
@@ -856,7 +1023,7 @@ function FellowsBanner({
856
1023
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
857
1024
  /* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm", children: title }),
858
1025
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: description }),
859
- features.length > 0 && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground/70 mt-1", children: features.join(" \xB7 ") })
1026
+ features.length > 0 && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-1", children: features.join(" \xB7 ") })
860
1027
  ] })
861
1028
  ] }),
862
1029
  /* @__PURE__ */ jsxs("span", { className: "shrink-0 w-full sm:w-auto inline-flex items-center justify-center gap-1.5 px-4 py-2.5 rounded-xl bg-primary/10 text-primary text-sm font-medium group-hover:bg-primary/15 transition-colors", children: [
@@ -1000,31 +1167,35 @@ function MediaErrorState({ message, onRetry }) {
1000
1167
  function FellowBadge({ variant = "inline", className = "" }) {
1001
1168
  const t = useYunUI().useT("components.badges");
1002
1169
  if (variant === "pill") {
1003
- return /* @__PURE__ */ jsxs("span", { className: `badge inline-flex items-center gap-1 text-xs bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20 ${className}`, children: [
1004
- /* @__PURE__ */ jsx(Award, { size: 11, className: "text-amber-500" }),
1170
+ return /* @__PURE__ */ jsxs("span", { className: `badge inline-flex items-center gap-1 text-xs bg-amber-500/10 text-amber-700 dark:text-amber-400 border-amber-500/20 ${className}`, children: [
1171
+ /* @__PURE__ */ jsx(Award, { size: 11, className: "text-amber-600" }),
1005
1172
  t("fellow")
1006
1173
  ] });
1007
1174
  }
1008
- return /* @__PURE__ */ jsxs("span", { className: `inline-flex items-center gap-1 text-xs font-medium text-amber-600 dark:text-amber-400 ${className}`, children: [
1009
- /* @__PURE__ */ jsx(Award, { size: 10, className: "text-amber-500" }),
1175
+ return /* @__PURE__ */ jsxs("span", { className: `inline-flex items-center gap-1 text-xs font-medium text-amber-700 dark:text-amber-400 ${className}`, children: [
1176
+ /* @__PURE__ */ jsx(Award, { size: 10, className: "text-amber-600" }),
1010
1177
  t("fellow")
1011
1178
  ] });
1012
1179
  }
1013
1180
  function CapabilityBadge({ capability, short = false }) {
1014
1181
  const t = useYunUI().useT("components.badges");
1015
1182
  const configs = {
1016
- chat: { icon: MessageSquare, iconColor: "text-blue-500", color: "bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20", labelKey: "chat" },
1017
- streaming: { icon: Waves, iconColor: "text-cyan-500", color: "bg-cyan-500/10 text-cyan-600 dark:text-cyan-400 border-cyan-500/20", labelKey: "streaming" },
1018
- function_calling: { icon: Code, iconColor: "text-purple-500", color: "bg-purple-500/10 text-purple-600 dark:text-purple-400 border-purple-500/20", labelKey: "functionCalling" },
1019
- vision: { icon: Eye, iconColor: "text-amber-500", color: "bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20", labelKey: "vision" },
1020
- thinking: { icon: Brain, iconColor: "text-pink-500", color: "bg-pink-500/10 text-pink-600 dark:text-pink-400 border-pink-500/20", labelKey: "thinking" },
1021
- image_edit: { icon: Image, iconColor: "text-orange-500", color: "bg-orange-500/10 text-orange-600 dark:text-orange-400 border-orange-500/20", labelKey: "imageEdit" },
1022
- negative_prompt: { icon: Ban, iconColor: "text-red-500", color: "bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20", labelKey: "negativePrompt" },
1023
- seed_control: { icon: Fingerprint, iconColor: "text-indigo-500", color: "bg-indigo-500/10 text-indigo-600 dark:text-indigo-400 border-indigo-500/20", labelKey: "seedControl" },
1024
- lora: { icon: Layers, iconColor: "text-teal-500", color: "bg-teal-500/10 text-teal-600 dark:text-teal-400 border-teal-500/20", labelKey: "loraSupport" },
1025
- guidance_scale: { icon: SlidersHorizontal, iconColor: "text-yellow-500", color: "bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 border-yellow-500/20", labelKey: "guidanceScale" },
1026
- strength: { icon: SlidersHorizontal, iconColor: "text-orange-500", color: "bg-orange-500/10 text-orange-600 dark:text-orange-400 border-orange-500/20", labelKey: "strength" },
1027
- batch: { icon: Waves, iconColor: "text-cyan-500", color: "bg-cyan-500/10 text-cyan-600 dark:text-cyan-400 border-cyan-500/20", labelKey: "batchGeneration" }
1183
+ chat: { icon: MessageSquare, iconColor: capabilityIconColor("chat"), color: capabilityBadgeColor("chat"), labelKey: "chat" },
1184
+ streaming: { icon: Waves, iconColor: capabilityIconColor("streaming"), color: capabilityBadgeColor("streaming"), labelKey: "streaming" },
1185
+ function_calling: { icon: Code, iconColor: capabilityIconColor("function_calling"), color: capabilityBadgeColor("function_calling"), labelKey: "functionCalling" },
1186
+ vision: { icon: Eye, iconColor: capabilityIconColor("vision"), color: capabilityBadgeColor("vision"), labelKey: "vision" },
1187
+ thinking: { icon: Brain, iconColor: capabilityIconColor("thinking"), color: capabilityBadgeColor("thinking"), labelKey: "thinking" },
1188
+ image_edit: { icon: Image, iconColor: capabilityIconColor("image_edit"), color: capabilityBadgeColor("image_edit"), labelKey: "imageEdit" },
1189
+ // Whether the model CAN reuse a cached prompt — a separate question from what caching
1190
+ // costs. An unquoted or zero cache price says nothing about the capability.
1191
+ prompt_caching: { icon: DatabaseZap, iconColor: capabilityIconColor("prompt_caching"), color: capabilityBadgeColor("prompt_caching"), labelKey: "promptCaching" },
1192
+ context_caching: { icon: DatabaseZap, iconColor: capabilityIconColor("context_caching"), color: capabilityBadgeColor("context_caching"), labelKey: "contextCaching" },
1193
+ negative_prompt: { icon: Ban, iconColor: capabilityIconColor("negative_prompt"), color: capabilityBadgeColor("negative_prompt"), labelKey: "negativePrompt" },
1194
+ seed_control: { icon: Fingerprint, iconColor: capabilityIconColor("seed_control"), color: capabilityBadgeColor("seed_control"), labelKey: "seedControl" },
1195
+ lora: { icon: Layers, iconColor: capabilityIconColor("lora"), color: capabilityBadgeColor("lora"), labelKey: "loraSupport" },
1196
+ guidance_scale: { icon: SlidersHorizontal, iconColor: capabilityIconColor("guidance_scale"), color: capabilityBadgeColor("guidance_scale"), labelKey: "guidanceScale" },
1197
+ strength: { icon: SlidersHorizontal, iconColor: capabilityIconColor("strength"), color: capabilityBadgeColor("strength"), labelKey: "strength" },
1198
+ batch: { icon: Waves, iconColor: capabilityIconColor("batch"), color: capabilityBadgeColor("batch"), labelKey: "batchGeneration" }
1028
1199
  };
1029
1200
  const config = configs[capability];
1030
1201
  if (!config) return null;
@@ -1053,8 +1224,8 @@ function StatusBadge({ status, size = "sm" }) {
1053
1224
  function SourceBadge({ source, showIcon = true }) {
1054
1225
  const t = useYunUI().useT("common.badge");
1055
1226
  const configs = {
1056
- yaml: { icon: FileCode, color: "bg-purple-500/10 text-purple-600 dark:text-purple-400 border-purple-500/20", label: t("yaml") },
1057
- api: { icon: FileText, color: "bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20", label: t("api") }
1227
+ yaml: { icon: FileCode, color: "bg-purple-500/10 text-purple-700 dark:text-purple-400 border-purple-500/20", label: t("yaml") },
1228
+ api: { icon: FileText, color: "bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20", label: t("api") }
1058
1229
  };
1059
1230
  const config = configs[source.toLowerCase()];
1060
1231
  if (!config) return null;
@@ -1081,7 +1252,7 @@ function FeatureLockedState({ icon, title, description, noteTitle, noteText, cla
1081
1252
  /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full bg-muted/50 flex items-center justify-center mx-auto mb-4", children: icon ?? /* @__PURE__ */ jsx(Sparkles, { className: "w-8 h-8 text-muted-foreground" }) }),
1082
1253
  /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold mb-2", children: title }),
1083
1254
  description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-6", children: description }),
1084
- (noteTitle || noteText) && /* @__PURE__ */ jsx("div", { className: "card p-4 bg-muted/30 border border-dashed", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-muted-foreground", children: [
1255
+ (noteTitle || noteText) && /* @__PURE__ */ jsx("div", { className: "card p-4 bg-muted/30 border border-dashed border-border", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-muted-foreground", children: [
1085
1256
  /* @__PURE__ */ jsx(AlertCircle, { className: "w-5 h-5 shrink-0 mt-0.5" }),
1086
1257
  /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
1087
1258
  noteTitle && /* @__PURE__ */ jsx("p", { className: "font-medium mb-1", children: noteTitle }),
@@ -1097,47 +1268,74 @@ function SessionItem({
1097
1268
  ip,
1098
1269
  time,
1099
1270
  current,
1100
- currentLabel,
1101
1271
  inactive,
1102
- inactiveLabel,
1272
+ selected,
1273
+ running,
1103
1274
  onRevoke,
1104
1275
  revoking,
1276
+ labels,
1277
+ currentLabel,
1278
+ inactiveLabel,
1279
+ runningLabel,
1105
1280
  revokeLabel,
1106
1281
  className
1107
1282
  }) {
1108
- return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start gap-3 p-2 rounded-lg bg-(--bg-elevated) relative", inactive && "opacity-50", className), children: [
1109
- icon != null && /* @__PURE__ */ jsx("div", { className: "w-8 h-8 rounded-lg bg-muted flex items-center justify-center shrink-0", children: icon }),
1110
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
1111
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1112
- /* @__PURE__ */ jsx("span", { className: "text-xs font-medium truncate", children: name }),
1113
- current && /* @__PURE__ */ jsx("span", { className: "text-[10px] px-1.5 py-0.5 rounded-full badge-success shrink-0", children: currentLabel }),
1114
- inactive && /* @__PURE__ */ jsx("span", { className: "text-[10px] px-1.5 py-0.5 rounded-full badge-neutral shrink-0", children: inactiveLabel })
1115
- ] }),
1116
- detail && /* @__PURE__ */ jsx("div", { className: "text-[10px] text-(--text-tertiary) mt-0.5 truncate", children: detail }),
1117
- (ip != null || time != null) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mt-1 text-[10px] text-(--text-tertiary)", children: [
1118
- ip != null && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-0.5", children: [
1119
- /* @__PURE__ */ jsx(Globe, { size: 8 }),
1120
- ip
1283
+ return /* @__PURE__ */ jsxs(
1284
+ "div",
1285
+ {
1286
+ "data-selected": selected || void 0,
1287
+ "data-running": running || void 0,
1288
+ "aria-busy": running || void 0,
1289
+ className: cn(
1290
+ "relative flex items-start gap-3 overflow-hidden rounded-lg bg-(--bg-elevated) p-2",
1291
+ selected && "text-foreground",
1292
+ inactive && "opacity-50",
1293
+ className
1294
+ ),
1295
+ children: [
1296
+ (selected || running) && /* @__PURE__ */ jsx(
1297
+ NavStateIndicator,
1298
+ {
1299
+ active: true,
1300
+ running,
1301
+ "data-session-activity-rail": true
1302
+ }
1303
+ ),
1304
+ running && (labels?.running ?? runningLabel) != null && /* @__PURE__ */ jsx("span", { className: "sr-only", children: labels?.running ?? runningLabel }),
1305
+ icon != null && /* @__PURE__ */ jsx("div", { className: "w-8 h-8 rounded-lg bg-muted flex items-center justify-center shrink-0", children: icon }),
1306
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
1307
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
1308
+ /* @__PURE__ */ jsx("span", { className: "block min-w-0 flex-1 truncate text-xs font-medium", children: name }),
1309
+ current && /* @__PURE__ */ jsx("span", { className: "text-[10px] px-1.5 py-0.5 rounded-full badge-success shrink-0", children: labels?.current ?? currentLabel }),
1310
+ inactive && /* @__PURE__ */ jsx("span", { className: "text-[10px] px-1.5 py-0.5 rounded-full badge-neutral shrink-0", children: labels?.inactive ?? inactiveLabel })
1311
+ ] }),
1312
+ detail && /* @__PURE__ */ jsx("div", { className: "text-[10px] text-(--text-tertiary) mt-0.5 truncate", children: detail }),
1313
+ (ip != null || time != null) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mt-1 text-[10px] text-(--text-tertiary)", children: [
1314
+ ip != null && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-0.5", children: [
1315
+ /* @__PURE__ */ jsx(Globe, { size: 8 }),
1316
+ ip
1317
+ ] }),
1318
+ time != null && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-0.5", children: [
1319
+ /* @__PURE__ */ jsx(Clock, { size: 8 }),
1320
+ time
1321
+ ] })
1322
+ ] })
1121
1323
  ] }),
1122
- time != null && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-0.5", children: [
1123
- /* @__PURE__ */ jsx(Clock, { size: 8 }),
1124
- time
1125
- ] })
1126
- ] })
1127
- ] }),
1128
- !current && onRevoke && /* @__PURE__ */ jsx(
1129
- "button",
1130
- {
1131
- type: "button",
1132
- onClick: onRevoke,
1133
- disabled: revoking,
1134
- "aria-label": revokeLabel,
1135
- title: revokeLabel,
1136
- className: "p-1.5 hover:bg-error-soft rounded text-(--text-tertiary) hover:text-error transition-colors shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-ring",
1137
- children: revoking ? /* @__PURE__ */ jsx(Loader2, { size: 12, className: "animate-spin" }) : /* @__PURE__ */ jsx(LogOut, { size: 12 })
1138
- }
1139
- )
1140
- ] });
1324
+ !current && onRevoke && /* @__PURE__ */ jsx(
1325
+ "button",
1326
+ {
1327
+ type: "button",
1328
+ onClick: onRevoke,
1329
+ disabled: revoking,
1330
+ "aria-label": labels?.revoke ?? revokeLabel,
1331
+ title: labels?.revoke ?? revokeLabel,
1332
+ className: "p-1.5 hover:bg-error-soft rounded text-(--text-tertiary) hover:text-error transition-colors shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-ring",
1333
+ children: revoking ? /* @__PURE__ */ jsx(Loader2, { size: 12, className: "animate-spin" }) : /* @__PURE__ */ jsx(LogOut, { size: 12 })
1334
+ }
1335
+ )
1336
+ ]
1337
+ }
1338
+ );
1141
1339
  }
1142
1340
  function MetricBar({ icon, label, value, percentage, color, className }) {
1143
1341
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-3", className), children: [
@@ -1151,6 +1349,7 @@ function MetricBar({ icon, label, value, percentage, color, className }) {
1151
1349
  "div",
1152
1350
  {
1153
1351
  role: "progressbar",
1352
+ "aria-label": typeof label === "string" ? label : void 0,
1154
1353
  "aria-valuenow": Math.max(0, Math.min(100, percentage)),
1155
1354
  "aria-valuemin": 0,
1156
1355
  "aria-valuemax": 100,
@@ -1308,7 +1507,7 @@ function MediaBody({
1308
1507
  return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-1 bg-muted px-3 text-center", children: [
1309
1508
  /* @__PURE__ */ jsx(AlertCircle, { size: 22, className: "text-error" }),
1310
1509
  /* @__PURE__ */ jsx("span", { className: "text-xs text-error", children: status === "failed" ? labels.failed : labels.expired }),
1311
- item.error && /* @__PURE__ */ jsx("span", { className: "mt-0.5 max-w-[85%] truncate text-xs text-error/70", children: item.error })
1510
+ item.error && /* @__PURE__ */ jsx("span", { className: "mt-0.5 max-w-[85%] truncate text-xs text-error", children: item.error })
1312
1511
  ] });
1313
1512
  }
1314
1513
  if (kind === "audio") {
@@ -1597,36 +1796,40 @@ function MediaGallery({
1597
1796
  ] });
1598
1797
  }
1599
1798
  var TONES2 = {
1799
+ // Token-driven, matching Alert/Badge: the raw `blue/amber/red/green-500`
1800
+ // palette these used to carry is not the same colour as `--info`/`--warning`/
1801
+ // `--error`/`--success`, so a Banner and an Alert reading the same severity
1802
+ // rendered as two different hues and neither followed a brand theme.
1600
1803
  info: {
1601
- bg: "bg-linear-to-r from-blue-500/10 via-blue-500/5 to-blue-500/10",
1602
- border: "border-blue-500/25",
1603
- text: "text-blue-700 dark:text-blue-300",
1604
- icon: "text-blue-500",
1605
- dismissHover: "hover:bg-blue-500/10",
1804
+ bg: "bg-info-soft",
1805
+ border: "border-info-soft",
1806
+ text: "text-info",
1807
+ icon: "text-info",
1808
+ dismissHover: "hover:bg-info-soft",
1606
1809
  defaultIcon: /* @__PURE__ */ jsx(Info, { size: 16 })
1607
1810
  },
1608
1811
  warning: {
1609
- bg: "bg-linear-to-r from-amber-500/10 via-amber-500/5 to-amber-500/10",
1610
- border: "border-amber-500/25",
1611
- text: "text-amber-700 dark:text-amber-300",
1612
- icon: "text-amber-500",
1613
- dismissHover: "hover:bg-amber-500/10",
1812
+ bg: "bg-warning-soft",
1813
+ border: "border-warning-soft",
1814
+ text: "text-warning",
1815
+ icon: "text-warning",
1816
+ dismissHover: "hover:bg-warning-soft",
1614
1817
  defaultIcon: /* @__PURE__ */ jsx(AlertTriangle, { size: 16 })
1615
1818
  },
1616
1819
  critical: {
1617
- bg: "bg-linear-to-r from-red-500/10 via-red-500/5 to-red-500/10",
1618
- border: "border-red-500/25",
1619
- text: "text-red-700 dark:text-red-300",
1620
- icon: "text-red-500",
1621
- dismissHover: "hover:bg-red-500/10",
1820
+ bg: "bg-error-soft",
1821
+ border: "border-error-soft",
1822
+ text: "text-error",
1823
+ icon: "text-error",
1824
+ dismissHover: "hover:bg-error-soft",
1622
1825
  defaultIcon: /* @__PURE__ */ jsx(AlertCircle, { size: 16 })
1623
1826
  },
1624
1827
  success: {
1625
- bg: "bg-linear-to-r from-green-500/10 via-green-500/5 to-green-500/10",
1626
- border: "border-green-500/25",
1627
- text: "text-green-700 dark:text-green-300",
1628
- icon: "text-green-500",
1629
- dismissHover: "hover:bg-green-500/10",
1828
+ bg: "bg-success-soft",
1829
+ border: "border-success-soft",
1830
+ text: "text-success",
1831
+ icon: "text-success",
1832
+ dismissHover: "hover:bg-success-soft",
1630
1833
  defaultIcon: /* @__PURE__ */ jsx(CheckCircle2, { size: 16 })
1631
1834
  },
1632
1835
  neutral: {
@@ -1658,7 +1861,7 @@ function Banner({
1658
1861
  /* @__PURE__ */ jsx("span", { className: cn("text-sm font-medium", t.text), children: title }),
1659
1862
  description && /* @__PURE__ */ jsx("span", { className: cn("text-sm ml-2 hidden sm:inline opacity-70", t.text), children: description })
1660
1863
  ] }),
1661
- meta != null && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground/70 shrink-0", children: meta }),
1864
+ meta != null && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground shrink-0", children: meta }),
1662
1865
  actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 shrink-0", children: actions }),
1663
1866
  dismissible && /* @__PURE__ */ jsx(
1664
1867
  "button",
@@ -1709,9 +1912,9 @@ function NotificationItem({
1709
1912
  icon != null && /* @__PURE__ */ jsx("div", { className: cn("shrink-0 rounded-lg p-1.5", iconClassName ?? "bg-muted"), children: icon }),
1710
1913
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
1711
1914
  /* @__PURE__ */ jsx("p", { className: cn("text-sm leading-snug truncate", unread ? "font-medium" : "text-muted-foreground"), children: title }),
1712
- body && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground/60 mt-0.5 line-clamp-1", children: body })
1915
+ body && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5 line-clamp-1", children: body })
1713
1916
  ] }),
1714
- time != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 self-center text-[10px] text-muted-foreground/50", children: time })
1917
+ time != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 self-center text-[10px] text-muted-foreground", children: time })
1715
1918
  ] });
1716
1919
  const rowClass = cn("flex items-center gap-2.5 px-3 py-2.5", dismissible ? "pr-9" : "pr-3");
1717
1920
  return /* @__PURE__ */ jsxs("div", { className: cn("group/notif relative rounded-xl hover:bg-foreground/5 transition-colors", className), children: [
@@ -1735,10 +1938,11 @@ function NotificationItem({
1735
1938
  function NotificationPanel({
1736
1939
  title,
1737
1940
  unreadCount = 0,
1738
- unreadLabel,
1739
1941
  loading,
1740
- loadingLabel,
1741
1942
  empty,
1943
+ labels,
1944
+ unreadLabel,
1945
+ loadingLabel,
1742
1946
  emptyLabel,
1743
1947
  footer,
1744
1948
  children,
@@ -1748,7 +1952,7 @@ function NotificationPanel({
1748
1952
  "div",
1749
1953
  {
1750
1954
  className: cn(
1751
- "w-80 sm:w-[400px] rounded-2xl border border-border bg-background/60 backdrop-blur-2xl shadow-lg shadow-black/5",
1955
+ "w-80 sm:w-[400px] rounded-2xl border border-border bg-popover/85 backdrop-blur-2xl shadow-lg shadow-black/5",
1752
1956
  className
1753
1957
  ),
1754
1958
  children: [
@@ -1756,15 +1960,15 @@ function NotificationPanel({
1756
1960
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children: title }),
1757
1961
  unreadCount > 0 && /* @__PURE__ */ jsxs("span", { className: "text-[10px] font-medium text-primary", children: [
1758
1962
  unreadCount,
1759
- unreadLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [
1963
+ labels?.unread ?? unreadLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [
1760
1964
  " ",
1761
- unreadLabel
1965
+ labels?.unread ?? unreadLabel
1762
1966
  ] }) : null
1763
1967
  ] })
1764
1968
  ] }),
1765
- /* @__PURE__ */ jsx("div", { className: "max-h-[400px] overflow-y-auto px-2 pb-2 flex flex-col gap-1", children: loading ? /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: loadingLabel }) : empty ? /* @__PURE__ */ jsxs("div", { className: "p-6 text-center", children: [
1969
+ /* @__PURE__ */ jsx("div", { className: "max-h-[400px] overflow-y-auto px-2 pb-2 flex flex-col gap-1", children: loading ? /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: labels?.loading ?? loadingLabel }) : empty ? /* @__PURE__ */ jsxs("div", { className: "p-6 text-center", children: [
1766
1970
  /* @__PURE__ */ jsx(Bell, { size: 24, className: "mx-auto mb-2 text-muted-foreground/40" }),
1767
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: emptyLabel })
1971
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: labels?.empty ?? emptyLabel })
1768
1972
  ] }) : children }),
1769
1973
  footer && /* @__PURE__ */ jsx("div", { className: "text-center text-xs text-muted-foreground hover:text-foreground transition-colors [&>a]:block [&>a]:py-2.5", children: footer })
1770
1974
  ]
@@ -1780,6 +1984,91 @@ function SettingRow({ title, description, control, className }) {
1780
1984
  control != null && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: control })
1781
1985
  ] });
1782
1986
  }
1987
+ function SettingsShell({
1988
+ header,
1989
+ groups,
1990
+ value,
1991
+ onValueChange,
1992
+ children,
1993
+ navigationLabel = "Settings",
1994
+ className,
1995
+ sidebarClassName,
1996
+ contentClassName
1997
+ }) {
1998
+ const items = groups.flatMap((group) => group.items);
1999
+ const activeItem = items.find((item) => item.key === value);
2000
+ const ActiveIcon = activeItem?.icon;
2001
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex h-full min-h-0", className), children: [
2002
+ /* @__PURE__ */ jsxs(
2003
+ "aside",
2004
+ {
2005
+ className: cn(
2006
+ "hidden w-56 shrink-0 flex-col border-r border-border bg-muted/15 sm:flex",
2007
+ sidebarClassName
2008
+ ),
2009
+ children: [
2010
+ /* @__PURE__ */ jsx("div", { className: "shrink-0 px-6 pb-4 pt-6", children: header }),
2011
+ /* @__PURE__ */ jsx(
2012
+ "nav",
2013
+ {
2014
+ "aria-label": navigationLabel,
2015
+ className: "min-h-0 flex-1 overflow-y-auto px-3 pb-5",
2016
+ children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs(
2017
+ "section",
2018
+ {
2019
+ "aria-label": typeof group.label === "string" ? group.label : void 0,
2020
+ className: cn(groupIndex > 0 && "mt-4 border-t border-border/70 pt-4"),
2021
+ children: [
2022
+ group.label ? /* @__PURE__ */ jsx("div", { className: "px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground", children: group.label }) : null,
2023
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: group.items.map((item) => {
2024
+ const Icon = item.icon;
2025
+ const active = item.key === value;
2026
+ return /* @__PURE__ */ jsxs(
2027
+ "button",
2028
+ {
2029
+ type: "button",
2030
+ className: cn(
2031
+ "nav-item w-full text-left",
2032
+ active && "active"
2033
+ ),
2034
+ "aria-current": active ? "page" : void 0,
2035
+ onClick: () => onValueChange(item.key),
2036
+ children: [
2037
+ /* @__PURE__ */ jsx(NavStateIndicator, { active }),
2038
+ Icon ? /* @__PURE__ */ jsx(Icon, { "aria-hidden": true, size: 18, strokeWidth: 1.75, className: "shrink-0" }) : null,
2039
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-left", children: item.label })
2040
+ ]
2041
+ },
2042
+ item.key
2043
+ );
2044
+ }) })
2045
+ ]
2046
+ },
2047
+ group.key
2048
+ ))
2049
+ }
2050
+ )
2051
+ ]
2052
+ }
2053
+ ),
2054
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
2055
+ /* @__PURE__ */ jsxs("div", { className: "shrink-0 border-b border-border px-4 pb-3 pt-4 sm:hidden", children: [
2056
+ /* @__PURE__ */ jsx("div", { className: "mb-3", children: header }),
2057
+ /* @__PURE__ */ jsxs(Select, { value, onValueChange, children: [
2058
+ /* @__PURE__ */ jsx(SelectTrigger, { "aria-label": navigationLabel, className: "h-10 bg-background", children: /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [
2059
+ ActiveIcon ? /* @__PURE__ */ jsx(ActiveIcon, { "aria-hidden": true, size: 16, strokeWidth: 1.75, className: "shrink-0 text-muted-foreground" }) : null,
2060
+ /* @__PURE__ */ jsx(SelectValue, {})
2061
+ ] }) }),
2062
+ /* @__PURE__ */ jsx(SelectContent, { className: "bg-popover backdrop-blur-none", children: groups.map((group) => /* @__PURE__ */ jsxs("div", { children: [
2063
+ group.label ? /* @__PURE__ */ jsx("div", { className: "px-3 pb-1 pt-2 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground", children: group.label }) : null,
2064
+ group.items.map((item) => /* @__PURE__ */ jsx(SelectItem, { value: item.key, children: item.label }, item.key))
2065
+ ] }, group.key)) })
2066
+ ] })
2067
+ ] }),
2068
+ /* @__PURE__ */ jsx("div", { className: cn("min-h-0 flex-1 overflow-hidden", contentClassName), children })
2069
+ ] })
2070
+ ] });
2071
+ }
1783
2072
  function LinkRow({ icon, title, description, href, external, className }) {
1784
2073
  const { Link } = useYunUI();
1785
2074
  const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1890,7 +2179,608 @@ function AvatarUploader({
1890
2179
  }
1891
2180
  );
1892
2181
  }
2182
+ function Eyebrow({ icon, children, className, ...props }) {
2183
+ return /* @__PURE__ */ jsxs(
2184
+ "div",
2185
+ {
2186
+ className: cn(
2187
+ "inline-flex items-center gap-2 rounded-full border border-(--accent-muted) bg-(--accent-subtle) px-3 py-1",
2188
+ className
2189
+ ),
2190
+ ...props,
2191
+ children: [
2192
+ icon,
2193
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children })
2194
+ ]
2195
+ }
2196
+ );
2197
+ }
2198
+ function SectionHeading({
2199
+ badge,
2200
+ icon,
2201
+ title,
2202
+ subtitle,
2203
+ align = "center",
2204
+ animate = true,
2205
+ className,
2206
+ ...props
2207
+ }) {
2208
+ const enter = animate ? "animate-enter" : void 0;
2209
+ return /* @__PURE__ */ jsxs(
2210
+ "div",
2211
+ {
2212
+ className: cn("mb-16", align === "center" ? "text-center" : "text-left", className),
2213
+ ...props,
2214
+ children: [
2215
+ badge != null && /* @__PURE__ */ jsx(Eyebrow, { icon, className: cn("mb-4", enter), children: badge }),
2216
+ /* @__PURE__ */ jsx(
2217
+ "h2",
2218
+ {
2219
+ className: cn("heading-xl mb-4 text-balance", enter),
2220
+ style: animate ? { animationDelay: "100ms" } : void 0,
2221
+ children: title
2222
+ }
2223
+ ),
2224
+ subtitle != null && /* @__PURE__ */ jsx(
2225
+ "p",
2226
+ {
2227
+ className: cn(
2228
+ "text-body text-lg text-pretty",
2229
+ align === "center" && "mx-auto max-w-2xl",
2230
+ enter
2231
+ ),
2232
+ style: animate ? { animationDelay: "200ms" } : void 0,
2233
+ children: subtitle
2234
+ }
2235
+ )
2236
+ ]
2237
+ }
2238
+ );
2239
+ }
2240
+ function FeatureCard({
2241
+ icon,
2242
+ title,
2243
+ description,
2244
+ delay,
2245
+ children,
2246
+ className,
2247
+ style,
2248
+ ...props
2249
+ }) {
2250
+ return /* @__PURE__ */ jsxs(
2251
+ "div",
2252
+ {
2253
+ className: cn(
2254
+ "group relative h-full overflow-hidden rounded-2xl border border-border bg-card/50 p-8 shadow-sm backdrop-blur-xl",
2255
+ "transition-all duration-300 hover:-translate-y-1 hover:shadow-xl",
2256
+ delay != null && "animate-enter",
2257
+ className
2258
+ ),
2259
+ style: delay != null ? { animationDelay: `${delay}ms`, ...style } : style,
2260
+ ...props,
2261
+ children: [
2262
+ /* @__PURE__ */ jsx(
2263
+ "div",
2264
+ {
2265
+ "aria-hidden": true,
2266
+ className: "pointer-events-none absolute inset-x-0 top-0 h-px bg-linear-to-r from-transparent via-foreground/15 to-transparent"
2267
+ }
2268
+ ),
2269
+ /* @__PURE__ */ jsx(
2270
+ "div",
2271
+ {
2272
+ "aria-hidden": true,
2273
+ className: "pointer-events-none absolute -top-16 -right-16 h-40 w-40 rounded-full bg-foreground/5 blur-3xl opacity-0 transition-opacity duration-500 group-hover:opacity-100"
2274
+ }
2275
+ ),
2276
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2277
+ icon && /* @__PURE__ */ jsx("div", { className: "feature-icon mb-5 transition-transform duration-200 group-hover:scale-105", children: icon }),
2278
+ /* @__PURE__ */ jsx("h3", { className: "heading-md mb-3", children: title }),
2279
+ description != null && /* @__PURE__ */ jsx("p", { className: "text-body leading-relaxed", children: description }),
2280
+ children
2281
+ ] })
2282
+ ]
2283
+ }
2284
+ );
2285
+ }
2286
+ function MembershipCard({
2287
+ brand,
2288
+ badge,
2289
+ watermark,
2290
+ label,
2291
+ status,
2292
+ stats = [],
2293
+ chip = true,
2294
+ className,
2295
+ ...props
2296
+ }) {
2297
+ return /* @__PURE__ */ jsxs(
2298
+ "div",
2299
+ {
2300
+ className: cn(
2301
+ "group relative w-full max-w-md mx-auto lg:mx-0 aspect-[1.586/1] min-h-56 rounded-[20px]",
2302
+ "bg-foreground/80 backdrop-blur-2xl border border-background/15 text-background",
2303
+ "shadow-2xl overflow-hidden select-none animate-enter",
2304
+ "transition-transform duration-300 hover:-translate-y-1",
2305
+ className
2306
+ ),
2307
+ ...props,
2308
+ children: [
2309
+ /* @__PURE__ */ jsx("div", { className: "absolute -top-1/3 -left-1/4 w-2/3 h-2/3 rounded-full bg-background/15 blur-3xl" }),
2310
+ /* @__PURE__ */ jsx("div", { className: "absolute -bottom-1/3 -right-1/4 w-1/2 h-2/3 rounded-full bg-background/8 blur-3xl" }),
2311
+ watermark != null && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "absolute -right-8 -bottom-9 opacity-[0.06]", children: watermark }),
2312
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute top-0 -left-1/3 h-full w-1/3 -skew-x-12 bg-background/15 blur-xl translate-x-[-200%] group-hover:translate-x-[450%] transition-transform duration-[900ms] ease-out" }),
2313
+ /* @__PURE__ */ jsxs("div", { className: "relative h-full flex flex-col justify-between p-6 sm:p-7", children: [
2314
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2315
+ brand != null && /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold tracking-tight", children: brand }),
2316
+ badge != null && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-background/15 text-[11px] font-medium", children: [
2317
+ badge.icon,
2318
+ badge.label
2319
+ ] })
2320
+ ] }),
2321
+ /* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between gap-4", children: [
2322
+ /* @__PURE__ */ jsxs("div", { children: [
2323
+ label != null && /* @__PURE__ */ jsx("div", { className: "text-[10px] uppercase tracking-[0.22em] opacity-50 mb-1.5", children: label }),
2324
+ status != null && /* @__PURE__ */ jsx("div", { className: "text-lg font-medium leading-tight", children: status })
2325
+ ] }),
2326
+ chip && /* @__PURE__ */ jsx("div", { className: "hidden sm:block w-9 h-7 rounded-md bg-background/15 border border-background/10 shrink-0" })
2327
+ ] }),
2328
+ stats.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-end gap-6", children: stats.map((stat, i) => /* @__PURE__ */ jsxs("div", { children: [
2329
+ /* @__PURE__ */ jsx("div", { className: "text-base font-semibold tabular-nums leading-none", children: stat.value }),
2330
+ /* @__PURE__ */ jsx("div", { className: "text-[11px] opacity-50 mt-1", children: stat.label })
2331
+ ] }, i)) })
2332
+ ] })
2333
+ ]
2334
+ }
2335
+ );
2336
+ }
2337
+ function CTASection({
2338
+ title,
2339
+ body,
2340
+ actions,
2341
+ eyebrow,
2342
+ animate = true,
2343
+ className,
2344
+ ...props
2345
+ }) {
2346
+ const enter = animate ? "animate-enter" : void 0;
2347
+ return /* @__PURE__ */ jsxs(
2348
+ "div",
2349
+ {
2350
+ className: cn(
2351
+ // `isolate` is load-bearing: the radial wash below is `-z-10`, and `relative`
2352
+ // alone is NOT a stacking context — without this the wash escapes to the
2353
+ // root and disappears the moment a consumer nests this in an opaque box.
2354
+ "relative isolate overflow-hidden rounded-3xl border border-border p-12 text-center md:p-16",
2355
+ className
2356
+ ),
2357
+ ...props,
2358
+ children: [
2359
+ /* @__PURE__ */ jsx(
2360
+ "div",
2361
+ {
2362
+ "aria-hidden": true,
2363
+ className: "absolute inset-0 -z-10",
2364
+ style: {
2365
+ background: "radial-gradient(70% 120% at 50% 0%, var(--accent-subtle), transparent 70%)"
2366
+ }
2367
+ }
2368
+ ),
2369
+ eyebrow != null && /* @__PURE__ */ jsx("div", { className: cn("mb-4", enter), children: eyebrow }),
2370
+ /* @__PURE__ */ jsx("h2", { className: cn("heading-xl mb-4 text-balance", enter), children: title }),
2371
+ body != null && /* @__PURE__ */ jsx(
2372
+ "p",
2373
+ {
2374
+ className: cn("text-body mx-auto mb-8 max-w-xl text-lg text-pretty", enter),
2375
+ style: animate ? { animationDelay: "100ms" } : void 0,
2376
+ children: body
2377
+ }
2378
+ ),
2379
+ actions != null && /* @__PURE__ */ jsx(
2380
+ "div",
2381
+ {
2382
+ className: cn("flex flex-wrap items-center justify-center gap-3", enter),
2383
+ style: animate ? { animationDelay: "200ms" } : void 0,
2384
+ children: actions
2385
+ }
2386
+ )
2387
+ ]
2388
+ }
2389
+ );
2390
+ }
2391
+ function PullQuote({
2392
+ children,
2393
+ cite,
2394
+ showIcon = true,
2395
+ className,
2396
+ ...props
2397
+ }) {
2398
+ return /* @__PURE__ */ jsxs("figure", { className: cn("mx-auto max-w-4xl text-center", className), ...props, children: [
2399
+ showIcon && /* @__PURE__ */ jsx(Quote, { "aria-hidden": true, className: "mx-auto mb-6 h-8 w-8 text-muted-foreground/30" }),
2400
+ /* @__PURE__ */ jsx("blockquote", { className: "bg-linear-to-r from-foreground to-muted-foreground/70 bg-clip-text text-2xl leading-snug font-semibold tracking-tight text-balance text-transparent md:text-3xl", children }),
2401
+ cite != null && /* @__PURE__ */ jsx("figcaption", { className: "text-caption mt-6", children: cite })
2402
+ ] });
2403
+ }
2404
+ function MarketingHero({
2405
+ badge,
2406
+ title,
2407
+ subtitle,
2408
+ actions,
2409
+ facts,
2410
+ scrollToId,
2411
+ scrollLabel = "Scroll down",
2412
+ fullHeight = true,
2413
+ className,
2414
+ ...props
2415
+ }) {
2416
+ return /* @__PURE__ */ jsxs(
2417
+ "section",
2418
+ {
2419
+ className: cn(
2420
+ // `isolate` is load-bearing: the radial wash below is `-z-10`, and `relative`
2421
+ // alone is NOT a stacking context, so the wash would escape to the root
2422
+ // and vanish behind any opaque ancestor a consumer wraps this in.
2423
+ "relative isolate flex flex-col items-center justify-center px-6 pt-32 pb-28",
2424
+ fullHeight && "min-h-dvh",
2425
+ className
2426
+ ),
2427
+ ...props,
2428
+ children: [
2429
+ /* @__PURE__ */ jsx(
2430
+ "div",
2431
+ {
2432
+ "aria-hidden": true,
2433
+ className: "absolute inset-0 -z-10",
2434
+ style: {
2435
+ background: "radial-gradient(60% 50% at 50% 30%, var(--accent-subtle), transparent 70%)"
2436
+ }
2437
+ }
2438
+ ),
2439
+ /* @__PURE__ */ jsxs("div", { className: "relative z-10 mx-auto w-full max-w-6xl text-center", children: [
2440
+ badge != null && /* @__PURE__ */ jsx("div", { className: "mb-8 animate-enter", children: badge }),
2441
+ /* @__PURE__ */ jsx(
2442
+ "h1",
2443
+ {
2444
+ className: "mb-6 animate-enter text-4xl font-bold tracking-tight text-balance sm:text-5xl md:text-6xl lg:text-7xl",
2445
+ style: { animationDelay: "100ms" },
2446
+ children: title
2447
+ }
2448
+ ),
2449
+ subtitle != null && /* @__PURE__ */ jsx(
2450
+ "p",
2451
+ {
2452
+ className: "mx-auto mb-10 max-w-2xl animate-enter text-lg leading-relaxed text-pretty text-muted-foreground md:text-xl",
2453
+ style: { animationDelay: "300ms" },
2454
+ children: subtitle
2455
+ }
2456
+ ),
2457
+ actions != null && /* @__PURE__ */ jsx(
2458
+ "div",
2459
+ {
2460
+ className: "flex animate-enter flex-col items-center justify-center gap-4 sm:flex-row",
2461
+ style: { animationDelay: "400ms" },
2462
+ children: actions
2463
+ }
2464
+ ),
2465
+ facts && facts.length > 0 && /* @__PURE__ */ jsx(
2466
+ "div",
2467
+ {
2468
+ className: "mt-8 flex animate-enter flex-wrap items-center justify-center gap-2",
2469
+ style: { animationDelay: "500ms" },
2470
+ children: facts.map((fact, i) => /* @__PURE__ */ jsx(
2471
+ "span",
2472
+ {
2473
+ className: "rounded-full border border-border bg-card/60 px-3 py-1 text-xs text-muted-foreground backdrop-blur-sm",
2474
+ children: fact
2475
+ },
2476
+ i
2477
+ ))
2478
+ }
2479
+ )
2480
+ ] }),
2481
+ scrollToId && /* @__PURE__ */ jsx(
2482
+ "a",
2483
+ {
2484
+ href: `#${scrollToId}`,
2485
+ "aria-label": scrollLabel,
2486
+ className: "absolute bottom-8 left-1/2 z-10 -translate-x-1/2 animate-bounce text-muted-foreground/60 transition-colors hover:text-foreground",
2487
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-5 w-5" })
2488
+ }
2489
+ )
2490
+ ]
2491
+ }
2492
+ );
2493
+ }
2494
+ function HeroAccent({ children }) {
2495
+ return /* @__PURE__ */ jsx("span", { className: "bg-linear-to-r from-foreground via-foreground to-muted-foreground/70 bg-clip-text text-transparent", children });
2496
+ }
2497
+ function ProseArticle({ children, prose = true, className, ...props }) {
2498
+ return /* @__PURE__ */ jsx("article", { className: cn("mx-auto max-w-3xl px-6 py-16", className), ...props, children: prose ? /* @__PURE__ */ jsx("div", { className: "prose prose-neutral dark:prose-invert max-w-none", children }) : children });
2499
+ }
2500
+ function BackLink({ href, children, className }) {
2501
+ const { Link } = useYunUI();
2502
+ return /* @__PURE__ */ jsxs(
2503
+ Link,
2504
+ {
2505
+ href,
2506
+ className: cn(
2507
+ "mb-8 inline-flex items-center gap-1 text-sm text-muted-foreground transition-colors hover:text-foreground",
2508
+ className
2509
+ ),
2510
+ children: [
2511
+ /* @__PURE__ */ jsx(ChevronLeft, { size: 16, "aria-hidden": true }),
2512
+ children
2513
+ ]
2514
+ }
2515
+ );
2516
+ }
2517
+ function AuthShell({
2518
+ brand,
2519
+ homeHref,
2520
+ title,
2521
+ subtitle,
2522
+ error,
2523
+ icon,
2524
+ children,
2525
+ footer,
2526
+ centered = false,
2527
+ width = "sm",
2528
+ className,
2529
+ cardClassName,
2530
+ ...props
2531
+ }) {
2532
+ const { Link } = useYunUI();
2533
+ const brandRowClass = "flex items-center justify-center gap-2.5 mb-8";
2534
+ return /* @__PURE__ */ jsx(
2535
+ "div",
2536
+ {
2537
+ className: cn(
2538
+ "min-h-dvh bg-background flex items-center justify-center px-6",
2539
+ className
2540
+ ),
2541
+ ...props,
2542
+ children: /* @__PURE__ */ jsxs("div", { className: cn("w-full", width === "sm" ? "max-w-sm" : "max-w-md"), children: [
2543
+ brand != null && (homeHref ? /* @__PURE__ */ jsx(Link, { href: homeHref, className: brandRowClass, children: brand }) : /* @__PURE__ */ jsx("div", { className: brandRowClass, children: brand })),
2544
+ /* @__PURE__ */ jsxs(
2545
+ "div",
2546
+ {
2547
+ className: cn(
2548
+ "p-6 bg-card border border-border rounded-xl",
2549
+ centered && "text-center",
2550
+ cardClassName
2551
+ ),
2552
+ children: [
2553
+ icon != null && /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-4", children: icon }),
2554
+ title != null && /* @__PURE__ */ jsx(
2555
+ "h1",
2556
+ {
2557
+ className: cn(
2558
+ "text-xl font-semibold text-center",
2559
+ subtitle != null ? "mb-2" : "mb-6"
2560
+ ),
2561
+ children: title
2562
+ }
2563
+ ),
2564
+ subtitle != null && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm text-center mb-6", children: subtitle }),
2565
+ error ? /* @__PURE__ */ jsx("div", { className: "mb-4 p-3 bg-error-soft text-error text-sm rounded-lg border border-error-soft", children: error }) : null,
2566
+ children
2567
+ ]
2568
+ }
2569
+ ),
2570
+ footer != null && /* @__PURE__ */ jsx("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
2571
+ ] })
2572
+ }
2573
+ );
2574
+ }
2575
+ function TableState({
2576
+ children,
2577
+ loading = false,
2578
+ surface = "plain",
2579
+ className,
2580
+ ...props
2581
+ }) {
2582
+ return /* @__PURE__ */ jsxs(
2583
+ "div",
2584
+ {
2585
+ className: cn(
2586
+ "flex items-center justify-center gap-2 p-8 text-center text-sm text-muted-foreground",
2587
+ surface === "card" && "card",
2588
+ className
2589
+ ),
2590
+ ...props,
2591
+ children: [
2592
+ loading && /* @__PURE__ */ jsx(Loader2, { "aria-hidden": true, className: "h-4 w-4 animate-spin" }),
2593
+ children
2594
+ ]
2595
+ }
2596
+ );
2597
+ }
2598
+ function StatGrid({ children, columns = 4, className, ...props }) {
2599
+ return /* @__PURE__ */ jsx(
2600
+ "div",
2601
+ {
2602
+ className: cn(
2603
+ "grid grid-cols-2 gap-4",
2604
+ columns === 2 && "sm:grid-cols-2",
2605
+ columns === 3 && "sm:grid-cols-3",
2606
+ columns === 4 && "sm:grid-cols-4",
2607
+ className
2608
+ ),
2609
+ ...props,
2610
+ children
2611
+ }
2612
+ );
2613
+ }
2614
+ function DashboardPage({
2615
+ children,
2616
+ width = "7xl",
2617
+ className,
2618
+ ...props
2619
+ }) {
2620
+ return /* @__PURE__ */ jsx(
2621
+ "div",
2622
+ {
2623
+ className: cn(
2624
+ "mx-auto space-y-6",
2625
+ width === "5xl" && "max-w-5xl",
2626
+ width === "6xl" && "max-w-6xl",
2627
+ width === "7xl" && "max-w-7xl",
2628
+ className
2629
+ ),
2630
+ ...props,
2631
+ children
2632
+ }
2633
+ );
2634
+ }
2635
+ function SectionRow({ title, action, className, ...props }) {
2636
+ return /* @__PURE__ */ jsxs("div", { className: cn("mb-4 flex items-center justify-between gap-3", className), ...props, children: [
2637
+ /* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold text-foreground", children: title }),
2638
+ action
2639
+ ] });
2640
+ }
2641
+ function SectionNav({ items, offset = 112, label = "Sections", className }) {
2642
+ const [active, setActive] = useState(items[0]?.id ?? null);
2643
+ useEffect(() => {
2644
+ if (items.length === 0) return;
2645
+ const observer = new IntersectionObserver(
2646
+ (entries) => {
2647
+ const visible = entries.filter((e) => e.isIntersecting).sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
2648
+ if (visible[0]) setActive(visible[0].target.id);
2649
+ },
2650
+ {
2651
+ // Shrink the viewport to a band just under the header: without it a
2652
+ // section counts as visible while it is still behind the navbar.
2653
+ rootMargin: `-${offset}px 0px -55% 0px`,
2654
+ threshold: 0
2655
+ }
2656
+ );
2657
+ for (const item of items) {
2658
+ const el = document.getElementById(item.id);
2659
+ if (el) observer.observe(el);
2660
+ }
2661
+ return () => observer.disconnect();
2662
+ }, [items, offset]);
2663
+ if (items.length === 0) return null;
2664
+ return /* @__PURE__ */ jsx("nav", { "aria-label": label, className, children: /* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: items.map((item) => {
2665
+ const isActive = item.id === active;
2666
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
2667
+ "a",
2668
+ {
2669
+ href: `#${item.id}`,
2670
+ "aria-current": isActive ? "true" : void 0,
2671
+ className: cn(
2672
+ "group flex items-center justify-between gap-2 rounded-lg px-3 py-1.5 text-sm transition-colors",
2673
+ isActive ? "bg-foreground/5 font-medium text-foreground" : "text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
2674
+ ),
2675
+ children: [
2676
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: item.label }),
2677
+ item.count !== void 0 && /* @__PURE__ */ jsx(
2678
+ "span",
2679
+ {
2680
+ className: cn(
2681
+ "shrink-0 text-xs tabular-nums",
2682
+ isActive ? "text-foreground" : "text-muted-foreground"
2683
+ ),
2684
+ children: item.count
2685
+ }
2686
+ )
2687
+ ]
2688
+ }
2689
+ ) }, item.id);
2690
+ }) }) });
2691
+ }
2692
+ var DEFAULT_WEEKDAYS = ["S", "M", "T", "W", "T", "F", "S"];
2693
+ function parts(date) {
2694
+ const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(date);
2695
+ return m ? { y: +m[1], m: +m[2], d: +m[3] } : null;
2696
+ }
2697
+ function pad(n) {
2698
+ return String(n).padStart(2, "0");
2699
+ }
2700
+ function monthShape(year, month) {
2701
+ return {
2702
+ days: new Date(Date.UTC(year, month, 0)).getUTCDate(),
2703
+ firstDay: new Date(Date.UTC(year, month - 1, 1)).getUTCDay()
2704
+ };
2705
+ }
2706
+ function ArchiveCalendar({
2707
+ dates,
2708
+ href,
2709
+ maxMonths = 24,
2710
+ weekdays = DEFAULT_WEEKDAYS,
2711
+ formatMonth = (year, month) => `${year}-${String(month).padStart(2, "0")}`,
2712
+ formatCount,
2713
+ formatDayLabel = (date) => date,
2714
+ className = ""
2715
+ }) {
2716
+ const { Link } = useYunUI();
2717
+ const have = new Set(dates);
2718
+ const sorted = [...dates].sort();
2719
+ const newest = parts(sorted.at(-1) ?? "");
2720
+ const oldest = parts(sorted[0] ?? "");
2721
+ if (!newest || !oldest) return null;
2722
+ const span = (newest.y - oldest.y) * 12 + (newest.m - oldest.m) + 1;
2723
+ const grid = [];
2724
+ for (let back = 0; back < Math.min(span, maxMonths); back++) {
2725
+ const month = newest.m - back;
2726
+ grid.push({
2727
+ year: newest.y + Math.floor((month - 1) / 12),
2728
+ month: ((month - 1) % 12 + 12) % 12 + 1
2729
+ });
2730
+ }
2731
+ return /* @__PURE__ */ jsx("div", { className: `grid gap-6 sm:grid-cols-2 lg:grid-cols-3 ${className}`, children: grid.map(({ year, month }) => {
2732
+ const { days, firstDay } = monthShape(year, month);
2733
+ const cells = [
2734
+ ...Array.from({ length: firstDay }, () => null),
2735
+ ...Array.from({ length: days }, (_, i) => i + 1)
2736
+ ];
2737
+ const filled = cells.filter(
2738
+ (day) => day && have.has(`${year}-${pad(month)}-${pad(day)}`)
2739
+ ).length;
2740
+ return /* @__PURE__ */ jsxs("div", { children: [
2741
+ /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-baseline justify-between", children: [
2742
+ /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold tracking-tight tabular-nums", children: formatMonth(year, month) }),
2743
+ formatCount && /* @__PURE__ */ jsx("span", { className: "text-caption tabular-nums", children: formatCount(filled) })
2744
+ ] }),
2745
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-7 gap-1", role: "presentation", children: [
2746
+ weekdays.map((label, i) => /* @__PURE__ */ jsx(
2747
+ "div",
2748
+ {
2749
+ "aria-hidden": true,
2750
+ className: "text-caption grid h-6 place-items-center text-[0.6875rem]",
2751
+ children: label
2752
+ },
2753
+ `${label}-${i}`
2754
+ )),
2755
+ cells.map((day, i) => {
2756
+ if (!day) return /* @__PURE__ */ jsx("div", { "aria-hidden": true }, `pad-${i}`);
2757
+ const date = `${year}-${pad(month)}-${pad(day)}`;
2758
+ if (!have.has(date)) {
2759
+ return /* @__PURE__ */ jsx(
2760
+ "div",
2761
+ {
2762
+ className: "text-muted-foreground grid h-8 place-items-center text-xs tabular-nums",
2763
+ children: day
2764
+ },
2765
+ date
2766
+ );
2767
+ }
2768
+ return /* @__PURE__ */ jsx(
2769
+ Link,
2770
+ {
2771
+ href: href(date),
2772
+ className: "border-border hover:border-(--accent) hover:text-(--accent) grid h-8 place-items-center rounded-md border text-xs font-medium tabular-nums transition-colors",
2773
+ "aria-label": formatDayLabel(date),
2774
+ children: day
2775
+ },
2776
+ date
2777
+ );
2778
+ })
2779
+ ] })
2780
+ ] }, `${year}-${month}`);
2781
+ }) });
2782
+ }
1893
2783
 
1894
- export { AccountLockedCard, ActiveBadge, AudioPlayer, AvatarUploader, BackgroundEffects, Banner, BlogCard, BlogPagination, BlogPostHeader, CapabilityBadge, CategoryFilter, CodeBlock, CodeDemo, ConnectedAccountRow, DeprecatedBadge, ErrorBoundary, FAQ, FeatureLockedState, FellowBadge, FellowsBanner, LLMCopyButton, LinkRow, MediaEmptyState, MediaErrorState, MediaGallery, MediaLoadingState, MediaPageHeader, MetricBar, NotificationBell, NotificationItem, NotificationPanel, PageEmptyState, PageErrorState, PageHeader, PageLayout, PageLoadingState, SessionItem, SettingRow, Sidebar, SimplePagination, SourceBadge, StatCard, StatusBadge, ViewOptions };
2784
+ export { AccountLockedCard, ActiveBadge, ArchiveCalendar, AudioPlayer, AuthShell, AvatarUploader, BackLink, BackgroundEffects, Banner, BlogCard, BlogPagination, BlogPostHeader, CTASection, CapabilityBadge, CategoryFilter, CodeBlock, CodeDemo, ConnectedAccountRow, DashboardPage, DeprecatedBadge, ErrorBoundary, Eyebrow, FAQ, FeatureCard, FeatureLockedState, FellowBadge, FellowsBanner, HeroAccent, LLMCopyButton, LinkRow, MarketingHero, MediaEmptyState, MediaErrorState, MediaGallery, MediaLoadingState, MediaPageHeader, MembershipCard, MetricBar, NavStateIndicator, NotificationBell, NotificationItem, NotificationPanel, PageEmptyState, PageErrorState, PageHeader, PageLayout, PageLoadingState, ProseArticle, PullQuote, ReadingProgress, SectionHeading, SectionNav, SectionRow, SessionItem, SettingRow, SettingsShell, Sidebar, SimplePagination, SourceBadge, StatCard, StatGrid, StatusBadge, TableState, ViewOptions };
1895
2785
  //# sourceMappingURL=patterns.js.map
1896
2786
  //# sourceMappingURL=patterns.js.map