@icen.ai/ui 0.10.0 → 0.11.0

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 (355) hide show
  1. package/AGENTS.md +79 -309
  2. package/LICENSE +21 -0
  3. package/README.md +43 -54
  4. package/dist/base.css +57 -16
  5. package/dist/behaviors/accordion.mjs +1 -1
  6. package/dist/behaviors/ai-branch.mjs +1 -0
  7. package/dist/behaviors/ai-chat.d.mts +2 -2
  8. package/dist/behaviors/ai-chat.mjs +53 -10
  9. package/dist/behaviors/ai-composer.d.mts +5 -5
  10. package/dist/behaviors/ai-composer.mjs +21 -10
  11. package/dist/behaviors/ai-core.mjs +1 -0
  12. package/dist/behaviors/ai-diff.mjs +1 -0
  13. package/dist/behaviors/ai-feedback.mjs +1 -0
  14. package/dist/behaviors/ai-panel.d.mts +2 -2
  15. package/dist/behaviors/ai-panel.mjs +1 -0
  16. package/dist/behaviors/ai-provider.d.mts +1 -1
  17. package/dist/behaviors/ai-provider.mjs +1 -0
  18. package/dist/behaviors/ai-threads.mjs +1 -0
  19. package/dist/behaviors/ai-tool.d.mts +1 -1
  20. package/dist/behaviors/ai-tool.mjs +57 -24
  21. package/dist/behaviors/ai-tools.mjs +937 -28
  22. package/dist/behaviors/autocomplete.d.mts +1 -1
  23. package/dist/behaviors/autocomplete.mjs +1 -0
  24. package/dist/behaviors/back-top.mjs +1 -0
  25. package/dist/behaviors/carousel.mjs +8 -1
  26. package/dist/behaviors/cascader.mjs +14 -0
  27. package/dist/behaviors/charts.mjs +56 -20
  28. package/dist/behaviors/code-block.mjs +9 -1
  29. package/dist/behaviors/command-palette.mjs +3 -3
  30. package/dist/behaviors/context-menu.d.mts +2 -2
  31. package/dist/behaviors/context-menu.mjs +1 -0
  32. package/dist/behaviors/controls.d.mts +8 -8
  33. package/dist/behaviors/controls.mjs +37 -6
  34. package/dist/behaviors/copy.mjs +1 -0
  35. package/dist/behaviors/datatable.d.mts +3 -3
  36. package/dist/behaviors/datatable.mjs +76 -11
  37. package/dist/behaviors/date-picker.mjs +1 -0
  38. package/dist/behaviors/events.d.mts +10 -10
  39. package/dist/behaviors/events.mjs +11 -1
  40. package/dist/behaviors/form-validate.d.mts +10 -1
  41. package/dist/behaviors/form-validate.mjs +266 -4611
  42. package/dist/behaviors/i18n.d.mts +1 -0
  43. package/dist/behaviors/i18n.mjs +2 -0
  44. package/dist/behaviors/input.mjs +3 -0
  45. package/dist/behaviors/kb-access.d.mts +2 -2
  46. package/dist/behaviors/kb-access.mjs +8 -2
  47. package/dist/behaviors/kb-acl.d.mts +2 -2
  48. package/dist/behaviors/kb-acl.mjs +1 -0
  49. package/dist/behaviors/kb-answer.d.mts +2 -2
  50. package/dist/behaviors/kb-answer.mjs +56 -23
  51. package/dist/behaviors/kb-audit.d.mts +2 -2
  52. package/dist/behaviors/kb-audit.mjs +1 -0
  53. package/dist/behaviors/kb-canvas.d.mts +3 -3
  54. package/dist/behaviors/kb-canvas.mjs +1 -0
  55. package/dist/behaviors/kb-chain.d.mts +2 -2
  56. package/dist/behaviors/kb-chain.mjs +1 -0
  57. package/dist/behaviors/kb-checkpoint.d.mts +2 -2
  58. package/dist/behaviors/kb-checkpoint.mjs +1 -0
  59. package/dist/behaviors/kb-chunks.d.mts +2 -2
  60. package/dist/behaviors/kb-chunks.mjs +1 -0
  61. package/dist/behaviors/kb-citation.d.mts +2 -2
  62. package/dist/behaviors/kb-citation.mjs +20 -6
  63. package/dist/behaviors/kb-clarify.d.mts +2 -2
  64. package/dist/behaviors/kb-clarify.mjs +1 -0
  65. package/dist/behaviors/kb-conflict.d.mts +2 -2
  66. package/dist/behaviors/kb-conflict.mjs +1 -0
  67. package/dist/behaviors/kb-connector.d.mts +2 -2
  68. package/dist/behaviors/kb-connector.mjs +1 -0
  69. package/dist/behaviors/kb-core.d.mts +1 -1
  70. package/dist/behaviors/kb-core.mjs +1 -0
  71. package/dist/behaviors/kb-eval.d.mts +2 -2
  72. package/dist/behaviors/kb-eval.mjs +8 -2
  73. package/dist/behaviors/kb-explain.d.mts +2 -2
  74. package/dist/behaviors/kb-explain.mjs +13 -2
  75. package/dist/behaviors/kb-filter.d.mts +2 -2
  76. package/dist/behaviors/kb-filter.mjs +8 -2
  77. package/dist/behaviors/kb-gap.d.mts +2 -2
  78. package/dist/behaviors/kb-gap.mjs +1 -0
  79. package/dist/behaviors/kb-hittest.d.mts +2 -2
  80. package/dist/behaviors/kb-hittest.mjs +2 -1
  81. package/dist/behaviors/kb-metadata.mjs +6 -0
  82. package/dist/behaviors/kb-passage.d.mts +2 -2
  83. package/dist/behaviors/kb-passage.mjs +1 -0
  84. package/dist/behaviors/kb-pipeline.d.mts +2 -2
  85. package/dist/behaviors/kb-pipeline.mjs +1 -0
  86. package/dist/behaviors/kb-qa.mjs +1 -0
  87. package/dist/behaviors/kb-rerank.d.mts +2 -2
  88. package/dist/behaviors/kb-rerank.mjs +1 -0
  89. package/dist/behaviors/kb-retrieval.d.mts +2 -2
  90. package/dist/behaviors/kb-retrieval.mjs +18 -4
  91. package/dist/behaviors/kb-review.d.mts +2 -2
  92. package/dist/behaviors/kb-review.mjs +8 -2
  93. package/dist/behaviors/kb-sandbox.d.mts +2 -2
  94. package/dist/behaviors/kb-sandbox.mjs +7 -1
  95. package/dist/behaviors/kb-segment.d.mts +2 -2
  96. package/dist/behaviors/kb-segment.mjs +2 -1
  97. package/dist/behaviors/kb-select.mjs +8 -2
  98. package/dist/behaviors/kb-sources.d.mts +2 -2
  99. package/dist/behaviors/kb-sources.mjs +1 -0
  100. package/dist/behaviors/kb-sql.d.mts +2 -2
  101. package/dist/behaviors/kb-sql.mjs +1 -0
  102. package/dist/behaviors/kb-trace.d.mts +2 -2
  103. package/dist/behaviors/kb-trace.mjs +9 -3
  104. package/dist/behaviors/kb-visibility.d.mts +2 -2
  105. package/dist/behaviors/kb-visibility.mjs +1 -0
  106. package/dist/behaviors/kb-who-can.d.mts +2 -2
  107. package/dist/behaviors/kb-who-can.mjs +8 -2
  108. package/dist/behaviors/mentions.d.mts +1 -1
  109. package/dist/behaviors/mentions.mjs +1 -0
  110. package/dist/behaviors/modal.d.mts +1 -1
  111. package/dist/behaviors/modal.mjs +1 -0
  112. package/dist/behaviors/notification.d.mts +2 -2
  113. package/dist/behaviors/notification.mjs +14 -3
  114. package/dist/behaviors/panel.mjs +1 -0
  115. package/dist/behaviors/scroll-area.d.mts +17 -0
  116. package/dist/behaviors/scroll-area.mjs +59 -0
  117. package/dist/behaviors/select.mjs +8 -2
  118. package/dist/behaviors/slider.mjs +3 -3
  119. package/dist/behaviors/split-pane.mjs +2 -0
  120. package/dist/behaviors/suggestions.mjs +1 -0
  121. package/dist/behaviors/tabs.mjs +10 -0
  122. package/dist/behaviors/tag-input.mjs +1 -0
  123. package/dist/behaviors/theme-switcher.d.mts +2 -2
  124. package/dist/behaviors/theme-switcher.mjs +17 -2
  125. package/dist/behaviors/theme.mjs +16 -2
  126. package/dist/behaviors/toast.d.mts +2 -2
  127. package/dist/behaviors/toast.mjs +1 -0
  128. package/dist/behaviors/tree-select.mjs +14 -0
  129. package/dist/behaviors/tree.mjs +4 -4
  130. package/dist/behaviors/upload.mjs +1 -0
  131. package/dist/behaviors/url-safety.d.mts +8 -0
  132. package/dist/behaviors/url-safety.mjs +11 -0
  133. package/dist/components/accordion.d.mts +2 -0
  134. package/dist/components/ai-branch.d.mts +2 -0
  135. package/dist/components/ai-chat.css +40 -33
  136. package/dist/components/ai-chat.d.mts +2 -0
  137. package/dist/components/ai-composer.d.mts +2 -0
  138. package/dist/components/ai-context.d.mts +2 -0
  139. package/dist/components/ai-context.mjs +1 -0
  140. package/dist/components/ai-diff.css +6 -6
  141. package/dist/components/ai-diff.d.mts +2 -0
  142. package/dist/components/ai-feedback.d.mts +2 -0
  143. package/dist/components/ai-files.d.mts +2 -0
  144. package/dist/components/ai-message.d.mts +2 -0
  145. package/dist/components/ai-panel.css +12 -10
  146. package/dist/components/ai-reasoning.d.mts +2 -0
  147. package/dist/components/ai-subagent.d.mts +2 -0
  148. package/dist/components/ai-subagent.mjs +1 -0
  149. package/dist/components/ai-threads.d.mts +2 -0
  150. package/dist/components/ai-todo.d.mts +2 -0
  151. package/dist/components/ai-todo.mjs +1 -0
  152. package/dist/components/ai-tool-call.d.mts +2 -0
  153. package/dist/components/ai-tool-call.mjs +1 -0
  154. package/dist/components/ai-tool.css +16 -16
  155. package/dist/components/ai-usage.d.mts +2 -0
  156. package/dist/components/alert.d.mts +2 -0
  157. package/dist/components/autocomplete.css +12 -12
  158. package/dist/components/autocomplete.d.mts +2 -0
  159. package/dist/components/avatar.d.mts +2 -0
  160. package/dist/components/back-top.css +47 -16
  161. package/dist/components/back-top.d.mts +2 -0
  162. package/dist/components/badge.css +1 -1
  163. package/dist/components/badge.d.mts +2 -0
  164. package/dist/components/breadcrumb.css +26 -8
  165. package/dist/components/breadcrumb.d.mts +2 -0
  166. package/dist/components/btn.css +67 -62
  167. package/dist/components/btn.d.mts +2 -0
  168. package/dist/components/card.css +22 -22
  169. package/dist/components/card.d.mts +2 -0
  170. package/dist/components/carousel.d.mts +2 -0
  171. package/dist/components/cascader.css +56 -35
  172. package/dist/components/cascader.d.mts +2 -0
  173. package/dist/components/chart-area.css +46 -0
  174. package/dist/components/chart-area.d.mts +2 -0
  175. package/dist/components/chart-bar.css +66 -19
  176. package/dist/components/chart-bar.d.mts +2 -0
  177. package/dist/components/chart-calendar.d.mts +2 -0
  178. package/dist/components/chart-gauge.css +23 -3
  179. package/dist/components/chart-gauge.d.mts +2 -0
  180. package/dist/components/chart-graph.css +15 -3
  181. package/dist/components/chart-graph.d.mts +2 -0
  182. package/dist/components/chart-heatmap.css +117 -95
  183. package/dist/components/chart-heatmap.d.mts +2 -0
  184. package/dist/components/chart-line.css +54 -0
  185. package/dist/components/chart-line.d.mts +2 -0
  186. package/dist/components/chart-map.d.mts +2 -0
  187. package/dist/components/chart-pie.css +29 -0
  188. package/dist/components/chart-pie.d.mts +2 -0
  189. package/dist/components/chart-radar.css +50 -1
  190. package/dist/components/chart-radar.d.mts +2 -0
  191. package/dist/components/chart-scatter.css +39 -2
  192. package/dist/components/chart-scatter.d.mts +2 -0
  193. package/dist/components/chart-sparkline.css +20 -0
  194. package/dist/components/chart-sparkline.d.mts +2 -0
  195. package/dist/components/chart-stack.css +16 -5
  196. package/dist/components/chart-stack.d.mts +2 -0
  197. package/dist/components/charts.css +80 -35
  198. package/dist/components/charts.d.mts +2 -0
  199. package/dist/components/code-block.css +10 -8
  200. package/dist/components/code-block.d.mts +2 -0
  201. package/dist/components/command-palette.css +45 -38
  202. package/dist/components/command-palette.d.mts +2 -0
  203. package/dist/components/content.css +62 -57
  204. package/dist/components/context-menu.d.mts +2 -0
  205. package/dist/components/copy.css +10 -10
  206. package/dist/components/copy.d.mts +2 -0
  207. package/dist/components/datatable.css +72 -59
  208. package/dist/components/datatable.d.mts +2 -0
  209. package/dist/components/date-picker.css +26 -26
  210. package/dist/components/date-picker.d.mts +2 -0
  211. package/dist/components/desc.d.mts +2 -0
  212. package/dist/components/dropdown.d.mts +2 -0
  213. package/dist/components/empty.css +16 -16
  214. package/dist/components/empty.d.mts +2 -0
  215. package/dist/components/feedback.css +31 -29
  216. package/dist/components/form-validate.css +20 -6
  217. package/dist/components/form-validate.d.mts +2 -0
  218. package/dist/components/form.css +17 -14
  219. package/dist/components/form.d.mts +2 -0
  220. package/dist/components/icon.css +21 -10
  221. package/dist/components/icon.d.mts +2 -0
  222. package/dist/components/input.css +22 -22
  223. package/dist/components/input.d.mts +2 -0
  224. package/dist/components/kb-access.d.mts +2 -0
  225. package/dist/components/kb-acl.d.mts +2 -0
  226. package/dist/components/kb-agent.css +134 -55
  227. package/dist/components/kb-answer.d.mts +2 -0
  228. package/dist/components/kb-audit.d.mts +2 -0
  229. package/dist/components/kb-canvas.d.mts +2 -0
  230. package/dist/components/kb-chain.d.mts +2 -0
  231. package/dist/components/kb-checkpoint.d.mts +2 -0
  232. package/dist/components/kb-chunks.d.mts +2 -0
  233. package/dist/components/kb-citation.d.mts +2 -0
  234. package/dist/components/kb-clarify.d.mts +2 -0
  235. package/dist/components/kb-conflict.d.mts +2 -0
  236. package/dist/components/kb-connector.d.mts +2 -0
  237. package/dist/components/kb-data.css +192 -80
  238. package/dist/components/kb-eval.d.mts +2 -0
  239. package/dist/components/kb-explain.d.mts +2 -0
  240. package/dist/components/kb-filter.d.mts +2 -0
  241. package/dist/components/kb-gap.d.mts +2 -0
  242. package/dist/components/kb-ground.css +165 -73
  243. package/dist/components/kb-hittest.d.mts +2 -0
  244. package/dist/components/kb-ingest.css +308 -113
  245. package/dist/components/kb-metadata.d.mts +2 -0
  246. package/dist/components/kb-ops.css +189 -75
  247. package/dist/components/kb-passage.d.mts +2 -0
  248. package/dist/components/kb-perm.css +158 -87
  249. package/dist/components/kb-pipeline.d.mts +2 -0
  250. package/dist/components/kb-qa.d.mts +2 -0
  251. package/dist/components/kb-rerank.d.mts +2 -0
  252. package/dist/components/kb-retrieval.d.mts +2 -0
  253. package/dist/components/kb-review.d.mts +2 -0
  254. package/dist/components/kb-sandbox.d.mts +2 -0
  255. package/dist/components/kb-search.css +353 -116
  256. package/dist/components/kb-segment.d.mts +2 -0
  257. package/dist/components/kb-sources.d.mts +2 -0
  258. package/dist/components/kb-sql.d.mts +2 -0
  259. package/dist/components/kb-trace.d.mts +2 -0
  260. package/dist/components/kb-visibility.d.mts +2 -0
  261. package/dist/components/kb-who-can.d.mts +2 -0
  262. package/dist/components/kb.css +60 -36
  263. package/dist/components/kb.d.mts +2 -0
  264. package/dist/components/kbd.d.mts +2 -0
  265. package/dist/components/layout.css +10 -10
  266. package/dist/components/layout.d.mts +2 -0
  267. package/dist/components/list.d.mts +2 -0
  268. package/dist/components/material-chinese.css +10 -0
  269. package/dist/components/material-soviet.css +10 -0
  270. package/dist/components/material.css +61 -18
  271. package/dist/components/media-card.d.mts +2 -0
  272. package/dist/components/media.css +22 -27
  273. package/dist/components/mentions.css +18 -17
  274. package/dist/components/mentions.d.mts +2 -0
  275. package/dist/components/menu.css +32 -28
  276. package/dist/components/modal.css +30 -27
  277. package/dist/components/modal.d.mts +2 -0
  278. package/dist/components/nav.css +48 -44
  279. package/dist/components/nav.d.mts +2 -0
  280. package/dist/components/notification.css +31 -25
  281. package/dist/components/notification.d.mts +2 -0
  282. package/dist/components/pagination.css +15 -13
  283. package/dist/components/pagination.d.mts +2 -0
  284. package/dist/components/panel.css +19 -20
  285. package/dist/components/panel.d.mts +2 -0
  286. package/dist/components/pill.css +8 -7
  287. package/dist/components/pill.d.mts +2 -0
  288. package/dist/components/popover.css +32 -23
  289. package/dist/components/popover.d.mts +2 -0
  290. package/dist/components/progress.d.mts +2 -0
  291. package/dist/components/rating.d.mts +2 -0
  292. package/dist/components/result.d.mts +2 -0
  293. package/dist/components/scroll-area.css +84 -112
  294. package/dist/components/scroll-area.d.mts +2 -0
  295. package/dist/components/scroll-area.mjs +1 -0
  296. package/dist/components/segmented.css +47 -29
  297. package/dist/components/segmented.d.mts +2 -0
  298. package/dist/components/select.css +80 -41
  299. package/dist/components/select.d.mts +2 -0
  300. package/dist/components/sidebar.css +42 -38
  301. package/dist/components/sidebar.d.mts +2 -0
  302. package/dist/components/skeleton.d.mts +2 -0
  303. package/dist/components/slider.css +26 -22
  304. package/dist/components/slider.d.mts +2 -0
  305. package/dist/components/spinner.d.mts +2 -0
  306. package/dist/components/split-pane.css +16 -7
  307. package/dist/components/split-pane.d.mts +2 -0
  308. package/dist/components/stat.css +17 -16
  309. package/dist/components/stat.d.mts +2 -0
  310. package/dist/components/steps.css +26 -26
  311. package/dist/components/steps.d.mts +2 -0
  312. package/dist/components/switch.css +78 -39
  313. package/dist/components/switch.d.mts +2 -0
  314. package/dist/components/table.css +54 -32
  315. package/dist/components/table.d.mts +2 -0
  316. package/dist/components/tabs.css +53 -32
  317. package/dist/components/tabs.d.mts +2 -0
  318. package/dist/components/tag-input.css +12 -8
  319. package/dist/components/tag-input.d.mts +2 -0
  320. package/dist/components/tag.css +20 -12
  321. package/dist/components/tag.d.mts +2 -0
  322. package/dist/components/theme-switcher.css +7 -7
  323. package/dist/components/theme-switcher.d.mts +2 -0
  324. package/dist/components/timeline.d.mts +2 -0
  325. package/dist/components/toast.css +34 -30
  326. package/dist/components/toast.d.mts +2 -0
  327. package/dist/components/toolbar.css +19 -18
  328. package/dist/components/toolbar.d.mts +2 -0
  329. package/dist/components/tooltip.css +9 -8
  330. package/dist/components/tooltip.d.mts +2 -0
  331. package/dist/components/tree-select.css +63 -40
  332. package/dist/components/tree-select.d.mts +2 -0
  333. package/dist/components/tree.d.mts +2 -0
  334. package/dist/components/upload.css +9 -11
  335. package/dist/components/upload.d.mts +2 -0
  336. package/dist/index.d.mts +85 -84
  337. package/dist/index.mjs +14764 -14311
  338. package/dist/react.d.mts +18 -18
  339. package/dist/react.mjs +135 -36
  340. package/dist/registry.json +795 -64
  341. package/dist/tokens/colors.css +6 -0
  342. package/dist/tokens/design.css +130 -30
  343. package/dist/tokens/dtcg.json +6189 -1461
  344. package/dist/tokens/figma.variables.json +4107 -345
  345. package/dist/tokens/pixel.css +3 -0
  346. package/dist/tokens/scrollbars.css +40 -0
  347. package/dist/tokens/tokens-studio.json +5191 -271
  348. package/dist/tokens.css +304 -81
  349. package/dist/ui.css +4050 -2148
  350. package/dist/vue.d.mts +17 -17
  351. package/dist/vue.mjs +129 -34
  352. package/docs/spec/design-philosophy.md +5 -5
  353. package/docs/spec/design-primitives.md +10 -10
  354. package/docs/spec/scrollbars.md +46 -0
  355. package/package.json +16 -3
@@ -52,7 +52,7 @@
52
52
  * 同页面共存时后加载者覆盖同款属性,视觉不冲突。
53
53
  * - keyframes ai-status-pulse 为组件局部定义(等同 pill.css 的 pill-pulse),
54
54
  * 时长走 var(--pill-pulse-duration, 1.5s):pill.css 在场时与其同步,否则自洽。
55
- * - blink keyframes 来自 tokens/colors.css(.icen-animate-blink 同款,共享复用)。
55
+ * - icen-blink keyframes 来自 base.css(共享复用)。
56
56
  * - base.css:--icen-z-chrome / --icen-tx-* / --icen-ring。只消费 --icen-token-* / --icen-density-* / --icen-radius-*。
57
57
  */
58
58
 
@@ -208,13 +208,13 @@
208
208
  height: 4px;
209
209
  border-radius: var(--icen-radius-full);
210
210
  overflow: hidden;
211
- background: color-mix(in srgb, var(--icen-token-line-soft) 40%, transparent);
211
+ background: var(--icen-token-fill-2);
212
212
  }
213
213
  .icen-ai-todo-bar > i {
214
214
  display: block;
215
215
  height: 100%;
216
216
  border-radius: var(--icen-radius-full);
217
- background: var(--icen-token-accent);
217
+ background: var(--icen-token-accent-strong);
218
218
  transition: width var(--icen-tx-slow);
219
219
  }
220
220
  .icen-ai-todo.is-complete .icen-ai-todo-bar > i {
@@ -236,7 +236,7 @@
236
236
  transition: background-color var(--icen-tx-fast);
237
237
  }
238
238
  .icen-ai-todo-item[role='button']:hover {
239
- background: var(--icen-token-fill-1);
239
+ background: var(--icen-token-fill-hover);
240
240
  }
241
241
  .icen-ai-todo-item:focus-visible {
242
242
  outline: none;
@@ -436,7 +436,7 @@
436
436
  display: flex;
437
437
  flex-direction: column;
438
438
  background: var(--icen-token-surface);
439
- border-inline-start: 1px solid var(--icen-token-line-soft);
439
+ border-inline-start: 1px solid var(--icen-token-separator);
440
440
  box-shadow: var(--icen-token-shadow-overlay);
441
441
  transform: translateX(100%); /* guard:allow-physical 隐藏位沿物理右缘滑出(LTR 抽屉侧),RTL 镜像规则翻为 translateX(-100%) */
442
442
  transition: transform var(--ai-context-duration, var(--icen-duration-normal)) var(--icen-ease-out);
@@ -457,9 +457,9 @@
457
457
  z-index: auto;
458
458
  transform: none;
459
459
  transition: none;
460
- border: 1px solid var(--icen-token-line-soft);
461
- border-radius: var(--icen-radius-md);
462
- box-shadow: var(--icen-token-shadow-elevated);
460
+ border: 1px solid var(--icen-token-separator-soft);
461
+ border-radius: var(--icen-control-radius-lg);
462
+ box-shadow: none;
463
463
  overflow-y: visible;
464
464
  }
465
465
 
@@ -471,8 +471,10 @@
471
471
  align-items: center;
472
472
  justify-content: space-between;
473
473
  gap: var(--icen-density-space-sm);
474
- padding: var(--icen-density-space-sm) var(--icen-density-space-md);
475
- background: var(--icen-token-surface);
474
+ min-block-size: 42px;
475
+ padding: 8px 12px;
476
+ background: var(--icen-token-surface-chrome);
477
+ border-bottom: 1px solid var(--icen-token-separator-soft);
476
478
  border-bottom: 1px solid var(--icen-token-line-soft);
477
479
  font-size: var(--icen-density-font-size-sm);
478
480
  font-weight: 600;
@@ -0,0 +1,2 @@
1
+ // kit: ai-reasoning 类型面(构建产物,勿手改)
2
+ export { createAiStream, initAiChat } from '../behaviors/ai-chat.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: ai-subagent 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/ai-tool.mjs';
@@ -1,2 +1,3 @@
1
1
  // @icen.ai/ui — kit: ai-subagent(CSS + behavior 一行入口;构建产物,勿手改)
2
2
  import './ai-tool.css';
3
+ export * from '../behaviors/ai-tool.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: ai-threads 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/ai-threads.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: ai-todo 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/ai-panel.mjs';
@@ -1,2 +1,3 @@
1
1
  // @icen.ai/ui — kit: ai-todo(CSS + behavior 一行入口;构建产物,勿手改)
2
2
  import './ai-panel.css';
3
+ export * from '../behaviors/ai-panel.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: ai-tool-call 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/ai-tool.mjs';
@@ -1,2 +1,3 @@
1
1
  // @icen.ai/ui — kit: ai-tool-call(CSS + behavior 一行入口;构建产物,勿手改)
2
2
  import './ai-tool.css';
3
+ export * from '../behaviors/ai-tool.mjs';
@@ -102,7 +102,7 @@
102
102
  display: flex;
103
103
  flex-wrap: wrap;
104
104
  align-items: center;
105
- gap: var(--icen-density-space-sm);
105
+ gap: var(--icen-control-gap);
106
106
  min-width: 0;
107
107
  align-self: stretch; /* 宽度自稳定:宿主 flex/grid 居中时不 shrink-wrap(width:100% 会塌成 min-content,禁用) */
108
108
  }
@@ -112,16 +112,16 @@
112
112
  align-items: center;
113
113
  justify-content: center;
114
114
  flex-shrink: 0;
115
- inline-size: 28px;
116
- block-size: 28px;
117
- border-radius: var(--icen-radius-sm);
115
+ inline-size: 24px;
116
+ block-size: 24px;
117
+ border-radius: var(--icen-radius-xs);
118
118
  background: color-mix(in srgb, var(--ai-item-tint) 8%, var(--icen-token-surface));
119
119
  color: var(--ai-item-tint);
120
120
  transition: color var(--icen-tx-fast);
121
121
  }
122
122
  .icen-ai-item-icon > svg {
123
- width: 16px;
124
- height: 16px;
123
+ width: 15px;
124
+ height: 15px;
125
125
  }
126
126
 
127
127
  .icen-ai-item-main {
@@ -132,7 +132,7 @@
132
132
  gap: 1px;
133
133
  }
134
134
  .icen-ai-item-title {
135
- font-size: var(--icen-density-font-size-md);
135
+ font-size: var(--icen-font-size-control);
136
136
  line-height: 1.4;
137
137
  color: var(--icen-token-text);
138
138
  overflow: hidden;
@@ -196,13 +196,13 @@
196
196
  50% { opacity: 0.4; transform: scale(0.7); }
197
197
  }
198
198
 
199
- /* 流式中:▍光标闪烁(复用 colors.css 的 blink keyframes,animate-blink 同款) */
199
+ /* 流式中:▍光标闪烁(共享 base.css 的 icen-blink keyframes) */
200
200
  :is(.icen-ai-item, .icen-ai-tool, .icen-ai-subagent).is-streaming .icen-ai-item-status {
201
201
  width: 3px;
202
202
  height: 12px;
203
203
  border-radius: 1px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
204
204
  background: var(--ai-item-tint);
205
- animation: blink var(--ai-item-blink-duration) step-end infinite;
205
+ animation: icen-blink var(--ai-item-blink-duration) step-end infinite;
206
206
  }
207
207
 
208
208
  /* 待人确认:warning 点 + 外环 */
@@ -243,8 +243,8 @@
243
243
  .icen-ai-tool {
244
244
  --ai-item-tint: var(--icen-token-accent);
245
245
  align-self: stretch; /* 宽度自稳定:宿主 flex/grid 居中时不 shrink-wrap */
246
- border: 1px solid var(--icen-token-line-soft);
247
- border-radius: var(--icen-radius-md);
246
+ border: 1px solid var(--icen-token-separator-soft);
247
+ border-radius: var(--icen-control-radius-lg);
248
248
  background: var(--icen-token-surface);
249
249
  }
250
250
 
@@ -276,9 +276,9 @@
276
276
  .icen-ai-subagent-head {
277
277
  display: flex;
278
278
  align-items: center;
279
- gap: var(--icen-density-space-sm);
279
+ gap: var(--icen-control-gap-sm);
280
280
  width: 100%;
281
- padding: var(--icen-density-space-xs) var(--icen-density-space-sm);
281
+ padding: 4px var(--icen-density-space-sm);
282
282
  border: none;
283
283
  border-radius: inherit; /* hover 底色不戳破卡片圆角 */
284
284
  background: transparent;
@@ -291,7 +291,7 @@
291
291
  }
292
292
  .icen-ai-tool-head:hover,
293
293
  .icen-ai-subagent-head:hover {
294
- background: var(--icen-token-fill-1);
294
+ background: var(--icen-token-fill-hover);
295
295
  }
296
296
  .icen-ai-tool-head:focus-visible,
297
297
  .icen-ai-subagent-head:focus-visible {
@@ -303,9 +303,9 @@
303
303
  .icen-ai-tool-body {
304
304
  display: flex;
305
305
  flex-direction: column;
306
- gap: var(--icen-density-space-sm);
306
+ gap: var(--icen-control-gap-sm);
307
307
  padding: var(--icen-density-space-sm);
308
- border-top: 1px solid var(--icen-token-line-soft);
308
+ border-top: 1px solid var(--icen-token-separator-soft);
309
309
  animation: icen-pop-in var(--icen-tx-fast);
310
310
  }
311
311
  .icen-ai-tool-body[hidden],
@@ -0,0 +1,2 @@
1
+ // kit: ai-usage 类型面(构建产物,勿手改)
2
+ export { renderAiUsage, renderAiUsageRing, renderAiAudit } from '../behaviors/ai-panel.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: alert 类型面(构建产物,勿手改)
2
+ export {};
@@ -12,11 +12,11 @@
12
12
  z-index: var(--icen-z-popover);
13
13
  overflow-y: auto;
14
14
  overscroll-behavior: contain;
15
- padding: 4px;
16
- background: var(--icen-token-card-strong);
17
- border: 1px solid var(--icen-token-outline);
18
- border-radius: var(--icen-radius-md);
19
- box-shadow: var(--icen-token-shadow-overlay);
15
+ padding: var(--icen-density-space-xs);
16
+ background: var(--icen-token-surface);
17
+ border: 1px solid var(--icen-token-material-edge);
18
+ border-radius: var(--icen-radius-lg);
19
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
20
20
  transform-origin: top center;
21
21
  animation: icen-pop-in var(--icen-tx-fast);
22
22
  }
@@ -25,20 +25,20 @@
25
25
  .icen-autocomplete-option {
26
26
  display: flex;
27
27
  align-items: center;
28
- gap: var(--icen-density-space-xs);
29
- padding: 6px var(--icen-density-space-sm);
30
- font-size: var(--icen-density-font-size-sm);
28
+ gap: var(--icen-control-gap-sm);
29
+ padding: 4px var(--icen-density-space-sm);
30
+ font-size: var(--icen-font-size-control);
31
31
  color: var(--icen-token-text);
32
- border-radius: var(--icen-radius-sm);
32
+ border-radius: var(--icen-radius-xs);
33
33
  cursor: pointer;
34
- min-block-size: var(--icen-density-input-height-sm);
34
+ min-block-size: var(--icen-control-height-sm);
35
35
  overflow-wrap: anywhere;
36
36
  transition:
37
37
  background-color var(--icen-tx-fast),
38
38
  color var(--icen-tx-fast);
39
39
  }
40
- .icen-autocomplete-option:hover { background: var(--icen-token-fill-1); }
41
- .icen-autocomplete-option.is-active { background: var(--icen-token-fill-2); }
40
+ .icen-autocomplete-option:hover { background: var(--icen-token-fill-hover); }
41
+ .icen-autocomplete-option.is-active { background: var(--icen-token-fill-selected); }
42
42
 
43
43
  /* 命中片段高亮(behavior 以 <mark> 包裹 query 命中,大小写不敏感) */
44
44
  .icen-autocomplete-option mark {
@@ -0,0 +1,2 @@
1
+ // kit: autocomplete 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/autocomplete.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: avatar 类型面(构建产物,勿手改)
2
+ export {};
@@ -11,6 +11,7 @@
11
11
  * initBackTop({ autoCreate: true }) // 自动创建一个默认样式的按钮
12
12
  *
13
13
  * 默认滚动超过 320px 后出现;点击后 window.scrollTo({ top: 0, behavior: 'smooth' })。
14
+ * 视觉:36px 玻璃浮钮 + 发丝边;无 backdrop-filter 或减少透明偏好时回落实面。
14
15
  */
15
16
 
16
17
  .icen-back-top {
@@ -21,23 +22,26 @@
21
22
  display: inline-flex;
22
23
  align-items: center;
23
24
  justify-content: center;
24
- width: 40px;
25
- height: 40px;
25
+ width: 36px;
26
+ height: 36px;
26
27
  padding: 0;
27
- background: var(--icen-token-card-strong);
28
+ background: var(--icen-token-surface-glass);
29
+ -webkit-backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
30
+ backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
28
31
  color: var(--icen-token-text-muted);
29
- border: 1px solid var(--icen-token-outline-soft);
32
+ border: 1px solid var(--icen-token-material-edge);
30
33
  border-radius: var(--icen-radius-full);
31
- box-shadow: var(--icen-token-shadow-overlay);
34
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
32
35
  cursor: pointer;
33
36
  -webkit-tap-highlight-color: transparent;
34
37
  opacity: 0;
35
- transform: translateY(12px) scale(0.9);
38
+ transform: translateY(10px) scale(0.94);
36
39
  pointer-events: none;
37
40
  transition:
38
41
  opacity var(--icen-tx-normal),
39
42
  transform var(--icen-tx-normal),
40
43
  color var(--icen-tx-fast),
44
+ background-color var(--icen-tx-fast),
41
45
  border-color var(--icen-tx-fast);
42
46
  }
43
47
  .icen-back-top.is-shown {
@@ -46,30 +50,35 @@
46
50
  pointer-events: auto;
47
51
  }
48
52
  .icen-back-top:hover {
49
- color: var(--icen-token-accent);
50
- border-color: var(--icen-token-accent);
53
+ color: var(--icen-token-text);
54
+ border-color: var(--icen-token-line-strong);
55
+ background: var(--icen-token-surface-raised);
56
+ }
57
+ .icen-back-top:active {
58
+ transform: translateY(0) scale(0.97);
59
+ background: var(--icen-token-surface-pressed);
51
60
  }
52
61
  .icen-back-top:focus-visible {
53
62
  outline: none;
54
- box-shadow: var(--icen-token-shadow-overlay), var(--icen-ring);
63
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), var(--icen-ring);
55
64
  }
56
65
  .icen-back-top svg {
57
- width: 18px;
58
- height: 18px;
66
+ width: 17px;
67
+ height: 17px;
59
68
  flex-shrink: 0;
60
69
  }
61
70
 
62
71
  /* 尺寸变体 */
63
72
  .icen-back-top--sm {
64
- width: 32px;
65
- height: 32px;
73
+ width: 28px;
74
+ height: 28px;
66
75
  }
67
76
  .icen-back-top--sm svg { width: 14px; height: 14px; }
68
77
  .icen-back-top--lg {
69
- width: 48px;
70
- height: 48px;
78
+ width: 44px;
79
+ height: 44px;
71
80
  }
72
- .icen-back-top--lg svg { width: 22px; height: 22px; }
81
+ .icen-back-top--lg svg { width: 20px; height: 20px; }
73
82
 
74
83
  /* 方向变体:箭头方向(默认上) */
75
84
  .icen-back-top[data-icen-dir='left'] svg { transform: rotate(90deg); }
@@ -83,6 +92,28 @@
83
92
  }
84
93
  }
85
94
 
95
+ /* 没有模糊能力时用实面,避免半透明底压字 */
96
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
97
+ .icen-back-top { background: var(--icen-token-surface-raised); }
98
+ }
99
+
100
+ @media (prefers-reduced-transparency: reduce) {
101
+ .icen-back-top {
102
+ background: var(--icen-token-surface-raised);
103
+ -webkit-backdrop-filter: none;
104
+ backdrop-filter: none;
105
+ }
106
+ }
107
+
108
+ @media (forced-colors: active) {
109
+ .icen-back-top {
110
+ background: Canvas;
111
+ border-color: CanvasText;
112
+ box-shadow: none;
113
+ forced-color-adjust: none;
114
+ }
115
+ }
116
+
86
117
  @media (prefers-reduced-motion: reduce) {
87
118
  .icen-back-top { transition: opacity var(--icen-tx-fast); transform: none !important; /* guard:allow-important 动效守卫:降级媒体查询需压制组件动画 */ }
88
119
  .icen-back-top.is-shown { transform: none !important; /* guard:allow-important 动效守卫:降级媒体查询需压制组件动画 */ }
@@ -0,0 +1,2 @@
1
+ // kit: back-top 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/back-top.mjs';
@@ -54,7 +54,7 @@
54
54
  background: var(--icen-token-error);
55
55
  border: 2px solid var(--icen-token-surface);
56
56
  border-radius: var(--icen-radius-full);
57
- box-shadow: var(--icen-token-shadow-inset);
57
+ box-shadow: none;
58
58
  pointer-events: none;
59
59
  white-space: nowrap;
60
60
  transform-origin: center;
@@ -0,0 +1,2 @@
1
+ // kit: badge 类型面(构建产物,勿手改)
2
+ export {};
@@ -23,7 +23,7 @@
23
23
  .icen-breadcrumb {
24
24
  display: flex;
25
25
  align-items: center;
26
- font-size: var(--icen-density-font-size-md);
26
+ font-size: var(--icen-font-size-control);
27
27
  }
28
28
  .icen-breadcrumb ol {
29
29
  display: flex;
@@ -54,7 +54,7 @@
54
54
  transition: color var(--icen-tx-fast);
55
55
  }
56
56
  .icen-breadcrumb-link:hover {
57
- color: var(--icen-token-accent);
57
+ color: var(--icen-token-text);
58
58
  text-decoration: none;
59
59
  }
60
60
  .icen-breadcrumb-link:focus-visible {
@@ -76,8 +76,8 @@
76
76
  }
77
77
  .icen-breadcrumb-sep::after { content: '';
78
78
  display: inline-block;
79
- inline-size: 16px;
80
- block-size: 16px;
79
+ inline-size: 12px;
80
+ block-size: 12px;
81
81
  flex: none;
82
82
  vertical-align: middle;
83
83
  background: currentColor;
@@ -114,16 +114,33 @@
114
114
  }
115
115
 
116
116
  /* ── 面包屑分隔符变体 ── */
117
- .icen-breadcrumb--slash .icen-breadcrumb-sep::after { content: '/'; }
117
+ /* 字符型变体必须显式撤掉基础规则的 chevron mask/背景/定宽,
118
+ 否则字被遮在实底剪影里永不显示(--arrow 全量重写所以无此问题) */
119
+ .icen-breadcrumb--slash .icen-breadcrumb-sep::after {
120
+ content: '/';
121
+ background: none;
122
+ mask: none;
123
+ inline-size: auto;
124
+ block-size: auto;
125
+ vertical-align: baseline;
126
+ }
118
127
  .icen-breadcrumb--arrow .icen-breadcrumb-sep::after { content: '';
119
128
  display: inline-block;
120
- inline-size: 16px;
121
- block-size: 16px;
129
+ inline-size: 12px;
130
+ block-size: 12px;
122
131
  flex: none;
123
132
  vertical-align: middle;
124
133
  background: currentColor;
125
134
  mask: var(--icen-token-icon-arrow-right) center / contain no-repeat; }
126
- .icen-breadcrumb--dot .icen-breadcrumb-sep::after { content: '·'; font-size: 1.2em; }
135
+ .icen-breadcrumb--dot .icen-breadcrumb-sep::after {
136
+ content: '·';
137
+ font-size: 1.2em;
138
+ background: none;
139
+ mask: none;
140
+ inline-size: auto;
141
+ block-size: auto;
142
+ vertical-align: baseline;
143
+ }
127
144
 
128
145
  /* ── 面包屑尺寸变体 ── */
129
146
  .icen-breadcrumb--sm {
@@ -143,4 +160,5 @@
143
160
  :is([dir='rtl']) .icen-breadcrumb-sep::after { transform: scaleX(-1); }
144
161
  :is([dir='rtl']) .icen-breadcrumb--arrow .icen-breadcrumb-sep::after { transform: scaleX(-1); }
145
162
 
163
+
146
164
  }
@@ -0,0 +1,2 @@
1
+ // kit: breadcrumb 类型面(构建产物,勿手改)
2
+ export {};