@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
@@ -68,17 +68,19 @@
68
68
  position: relative;
69
69
  display: flex;
70
70
  align-items: flex-start;
71
- gap: var(--icen-density-space-sm);
72
- background: var(--icen-token-card-strong);
71
+ gap: var(--icen-control-gap);
72
+ background: color-mix(in srgb, var(--icen-token-surface) 96%, transparent);
73
+ backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
74
+ -webkit-backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
73
75
  color: var(--icen-token-text);
74
- border: 1px solid var(--icen-token-outline-soft);
75
- border-inline-start: 3px solid var(--icen-token-info);
76
- border-radius: var(--icen-radius-md);
77
- box-shadow: var(--icen-token-shadow-overlay);
76
+ border: 1px solid var(--icen-token-material-edge);
77
+ border-inline-start: 2px solid var(--icen-token-info);
78
+ border-radius: var(--icen-radius-lg);
79
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
78
80
  padding-block: var(--icen-density-space-md);
79
- padding-inline: var(--icen-density-space-sm) var(--icen-density-space-md);
81
+ padding-inline: 9px 10px;
80
82
  overflow: hidden; /* 倒计时进度条贴底 */
81
- animation: icen-notif-in var(--icen-tx-normal);
83
+ animation: icen-notif-in var(--icen-duration-normal) var(--icen-ease-enter);
82
84
  }
83
85
  .icen-notification.icen-notification--success { border-inline-start-color: var(--icen-token-success); }
84
86
  .icen-notification.icen-notification--warning { border-inline-start-color: var(--icen-token-warning); }
@@ -87,12 +89,12 @@
87
89
 
88
90
  /* ── 优先级:高优先级强调(起始缘加粗 + 更强阴影)── */
89
91
  .icen-notification.is-priority {
90
- border-inline-start-width: 4px;
91
- box-shadow: var(--icen-token-shadow-overlay), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 24%, transparent);
92
+ border-inline-start-width: 3px;
93
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 24%, transparent);
92
94
  }
93
- .icen-notification.is-priority.icen-notification--success { box-shadow: var(--icen-token-shadow-overlay), 0 0 0 1px color-mix(in srgb, var(--icen-token-success) 28%, transparent); }
94
- .icen-notification.is-priority.icen-notification--warning { box-shadow: var(--icen-token-shadow-overlay), 0 0 0 1px color-mix(in srgb, var(--icen-token-warning) 28%, transparent); }
95
- .icen-notification.is-priority.icen-notification--error { box-shadow: var(--icen-token-shadow-overlay), 0 0 0 1px color-mix(in srgb, var(--icen-token-error) 28%, transparent); }
95
+ .icen-notification.is-priority.icen-notification--success { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-success) 28%, transparent); }
96
+ .icen-notification.is-priority.icen-notification--warning { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-warning) 28%, transparent); }
97
+ .icen-notification.is-priority.icen-notification--error { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-error) 28%, transparent); }
96
98
 
97
99
  /* ── 未读:标题起始缘侧 4px 强调点(inline-block 点,margin-inline-end 与文本同向推开) + 加粗 ── */
98
100
  .icen-notification.is-unread .icen-notification-title::before {
@@ -122,8 +124,8 @@
122
124
  /* 整条 hover 抬升仅可悬停设备生效(触屏关闭,AGENTS 动效守卫) */
123
125
  @media (hover: hover) and (pointer: fine) {
124
126
  .icen-notification.is-clickable:hover {
125
- transform: translateY(-1px);
126
- border-color: var(--icen-token-accent);
127
+ transform: none;
128
+ border-color: var(--icen-token-control-border-hover);
127
129
  }
128
130
  }
129
131
 
@@ -133,13 +135,13 @@
133
135
  align-items: center;
134
136
  justify-content: center;
135
137
  flex-shrink: 0;
136
- width: 22px;
137
- height: 22px;
138
+ width: 20px;
139
+ height: 20px;
138
140
  margin-top: 1px;
139
141
  border-radius: var(--icen-radius-full);
140
- color: var(--icen-token-text-faint);
142
+ color: var(--icen-token-text-muted);
141
143
  }
142
- .icen-notification-icon svg { width: 16px; height: 16px; }
144
+ .icen-notification-icon svg { width: 15px; height: 15px; }
143
145
  .icen-notification--success .icen-notification-icon { color: var(--icen-token-success); }
144
146
  .icen-notification--warning .icen-notification-icon { color: var(--icen-token-warning); }
145
147
  .icen-notification--error .icen-notification-icon { color: var(--icen-token-error); }
@@ -173,7 +175,7 @@
173
175
  }
174
176
  .icen-notification-title {
175
177
  margin: 0;
176
- font-size: var(--icen-density-font-size-md);
178
+ font-size: var(--icen-font-size-control);
177
179
  font-weight: 600;
178
180
  line-height: 1.4;
179
181
  overflow: hidden;
@@ -205,7 +207,8 @@
205
207
  border: 1px solid var(--icen-token-outline-soft);
206
208
  border-radius: var(--icen-radius-sm);
207
209
  background: var(--icen-token-fill-1);
208
- color: var(--icen-token-text-muted);
210
+ /* 操作钮是功能性文字,不吃 muted 弱化(fill-1 上 4.27:1 过不了 AA) */
211
+ color: var(--icen-token-text);
209
212
  font: inherit;
210
213
  font-size: var(--icen-density-font-size-xs);
211
214
  font-weight: 500;
@@ -251,7 +254,8 @@
251
254
  }
252
255
  .icen-notification-link {
253
256
  font-size: var(--icen-density-font-size-sm);
254
- color: var(--icen-token-accent);
257
+ /* accent-text 与全站 a 基线(base.css)同源:裸 accent 对浅色卡片 ~3.6:1 低于 AA */
258
+ color: var(--icen-token-accent-text);
255
259
  text-decoration: none;
256
260
  border-bottom: 1px dashed color-mix(in srgb, var(--icen-token-accent) 40%, transparent);
257
261
  transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast);
@@ -284,7 +288,7 @@
284
288
  height: 100%;
285
289
  background: var(--icen-token-accent);
286
290
  border-radius: var(--icen-radius-full);
287
- transition: width var(--icen-tx-normal) var(--icen-ease-out);
291
+ transition: width var(--icen-duration-normal) var(--icen-ease-out);
288
292
  }
289
293
  .icen-notification.icen-notification--success .icen-notification-progress-bar { background: var(--icen-token-success); }
290
294
  .icen-notification.icen-notification--warning .icen-notification-progress-bar { background: var(--icen-token-warning); }
@@ -356,7 +360,7 @@
356
360
 
357
361
  /* ── 暂停态(hover 时) ── */
358
362
  .icen-notification.is-paused {
359
- box-shadow: var(--icen-token-shadow-overlay), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 14%, transparent);
363
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 14%, transparent);
360
364
  }
361
365
 
362
366
  /* ── 退场动画 ── */
@@ -431,7 +435,8 @@
431
435
  border: 1px solid var(--icen-token-outline-soft);
432
436
  border-radius: var(--icen-radius-sm);
433
437
  background: var(--icen-token-fill-1);
434
- color: var(--icen-token-text-muted);
438
+ /* 功能性文字不吃 muted 弱化(fill-1 上 4.27:1 过不了 AA;hover 态本来就是正文色) */
439
+ color: var(--icen-token-text);
435
440
  font: inherit;
436
441
  font-size: var(--icen-density-font-size-xs);
437
442
  text-align: start;
@@ -447,4 +452,5 @@
447
452
  @media (prefers-reduced-motion: reduce) { .icen-notification-group-toggle, .icen-notification-group-toggle > svg { transition: none; } .icen-notification.is-group-revealing { animation: none; } }
448
453
  :root[data-icen-style="pixel"] .icen-notification.is-group-revealing { animation-timing-function: steps(2,end); }
449
454
 
455
+
450
456
  }
@@ -0,0 +1,2 @@
1
+ // kit: notification 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/notification.mjs';
@@ -26,22 +26,23 @@
26
26
  min-width: 28px;
27
27
  height: 28px;
28
28
  padding: 0 var(--icen-density-space-xs);
29
- border-radius: var(--icen-radius-sm);
30
- font-size: var(--icen-density-font-size-sm);
29
+ border-radius: var(--icen-radius-xs);
30
+ font-size: var(--icen-font-size-control);
31
31
  display: inline-flex;
32
32
  align-items: center;
33
33
  justify-content: center;
34
34
  color: var(--icen-token-text-muted);
35
35
  background: none;
36
- border: 0;
36
+ border: 1px solid transparent;
37
37
  cursor: pointer;
38
38
  -webkit-tap-highlight-color: transparent;
39
39
  transition:
40
40
  background-color var(--icen-tx-fast),
41
+ border-color var(--icen-tx-fast),
41
42
  color var(--icen-tx-fast);
42
43
  }
43
44
  .icen-page-btn:not(.is-active):hover {
44
- background: var(--icen-token-control-hover);
45
+ background: var(--icen-token-fill-hover);
45
46
  color: var(--icen-token-text);
46
47
  }
47
48
  .icen-page-btn:focus-visible {
@@ -50,10 +51,11 @@
50
51
  }
51
52
  .icen-page-btn.is-active,
52
53
  .icen-page-btn[aria-current='page'] {
53
- background: var(--icen-token-accent-strong);
54
- color: var(--icen-token-on-accent);
55
- font-weight: 500;
56
- box-shadow: var(--icen-token-shadow-elevated);
54
+ background: var(--icen-token-fill-selected);
55
+ border-color: color-mix(in srgb, var(--icen-token-accent) 24%, transparent);
56
+ color: var(--icen-token-text);
57
+ font-weight: 600;
58
+ box-shadow: none;
57
59
  }
58
60
  .icen-page-btn.is-disabled,
59
61
  .icen-page-btn:disabled,
@@ -76,8 +78,8 @@
76
78
  /* 尺寸变体 */
77
79
  .icen-pagination--sm .icen-page-btn,
78
80
  .icen-pagination--sm .icen-page-ellipsis {
79
- min-width: 22px;
80
- height: 22px;
81
+ min-width: 24px; /* WCAG 2.5.8 下限(22 → 24) */
82
+ height: 24px;
81
83
  font-size: var(--icen-density-font-size-xs);
82
84
  }
83
85
 
@@ -102,14 +104,14 @@
102
104
  padding: 0 var(--icen-density-space-xs);
103
105
  text-align: center;
104
106
  background: var(--icen-token-control);
105
- border: 1px solid var(--icen-token-outline-soft);
106
- border-radius: var(--icen-radius-sm);
107
+ border: 1px solid var(--icen-token-control-border);
108
+ border-radius: var(--icen-radius-xs);
107
109
  color: var(--icen-token-text);
108
110
  font: inherit;
109
111
  font-size: var(--icen-density-font-size-sm);
110
112
  transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
111
113
  }
112
- .icen-pagination-jump-input:hover { border-color: var(--icen-hover-border); }
114
+ .icen-pagination-jump-input:hover { border-color: var(--icen-token-control-border-hover); }
113
115
  .icen-pagination-jump-input:focus-visible {
114
116
  outline: none;
115
117
  border-color: var(--icen-control-focus-border);
@@ -0,0 +1,2 @@
1
+ // kit: pagination 类型面(构建产物,勿手改)
2
+ export { initPagination } from '../behaviors/controls.mjs';
@@ -30,9 +30,9 @@
30
30
 
31
31
  .icen-panel {
32
32
  background: var(--icen-token-surface);
33
- border: 1px solid var(--icen-token-line-soft);
33
+ border: 1px solid var(--icen-token-separator-soft);
34
34
  border-radius: var(--icen-radius-lg);
35
- box-shadow: var(--icen-token-shadow-elevated);
35
+ box-shadow: none;
36
36
  margin-bottom: var(--icen-density-space-lg);
37
37
  overflow: hidden;
38
38
  }
@@ -43,12 +43,12 @@
43
43
  align-items: center;
44
44
  justify-content: space-between;
45
45
  gap: var(--icen-density-space-sm);
46
- padding: var(--icen-density-space-sm) var(--icen-density-space-md);
47
- border-bottom: 1px solid var(--icen-token-line-soft);
48
- font-size: var(--icen-density-font-size-xs);
49
- letter-spacing: 0.08em;
50
- color: var(--icen-token-text-muted);
51
- text-transform: uppercase;
46
+ min-block-size: var(--icen-control-height-md);
47
+ padding: 6px var(--icen-density-space-md);
48
+ border-bottom: 1px solid var(--icen-token-separator-soft);
49
+ font-size: var(--icen-font-size-caption);
50
+ letter-spacing: var(--icen-letter-spacing-caption);
51
+ color: var(--icen-token-text);
52
52
  font-weight: 600;
53
53
  }
54
54
  .icen-panel-title-text {
@@ -67,8 +67,7 @@
67
67
  font-size: var(--icen-density-font-size-xs);
68
68
  font-weight: 400;
69
69
  letter-spacing: 0;
70
- text-transform: none;
71
- color: var(--icen-token-text-faint);
70
+ color: var(--icen-token-text-muted);
72
71
  overflow: hidden;
73
72
  text-overflow: ellipsis;
74
73
  white-space: nowrap;
@@ -121,7 +120,7 @@
121
120
  border-bottom-color: transparent;
122
121
  }
123
122
  .icen-panel--collapsible .icen-panel-body {
124
- animation: panel-expand var(--icen-tx-normal) var(--icen-ease-out);
123
+ animation: panel-expand var(--icen-duration-normal) var(--icen-ease-out);
125
124
  }
126
125
  @keyframes panel-expand {
127
126
  from { opacity: 0; transform: translateY(-8px); }
@@ -130,9 +129,9 @@
130
129
 
131
130
  /* ── body / foot ── */
132
131
  .icen-panel-body {
133
- padding: var(--icen-density-space-md);
134
- font-size: var(--icen-density-font-size-md);
135
- line-height: 1.6;
132
+ padding: var(--icen-density-space-md) var(--icen-density-space-md) var(--icen-density-space-lg);
133
+ font-size: var(--icen-font-size-control);
134
+ line-height: 1.55;
136
135
  }
137
136
  .icen-panel--flush .icen-panel-body { padding: 0; }
138
137
 
@@ -142,21 +141,21 @@
142
141
  justify-content: flex-end;
143
142
  gap: var(--icen-density-space-sm);
144
143
  padding: var(--icen-density-space-sm) var(--icen-density-space-md);
145
- border-top: 1px solid var(--icen-token-line-soft);
146
- background: color-mix(in srgb, var(--icen-token-bg-soft) 50%, transparent);
144
+ border-top: 1px solid var(--icen-token-separator-soft);
145
+ background: var(--icen-token-surface-chrome);
147
146
  }
148
147
 
149
148
  /* ── 强调变体 ── */
150
- .icen-panel--accent { border-color: color-mix(in srgb, var(--icen-token-accent) 30%, transparent); }
149
+ .icen-panel--accent { border-color: color-mix(in srgb, var(--icen-token-accent) 30%, var(--icen-token-separator)); }
151
150
  .icen-panel--accent .icen-panel-title {
152
- color: var(--icen-token-accent);
151
+ color: var(--icen-token-accent-text);
153
152
  background: var(--icen-token-accent-subtle);
154
153
  }
155
154
 
156
155
  /* ── 平面变体(无阴影,嵌套时用) ── */
157
156
  .icen-panel--flat {
158
- box-shadow: none;
159
- background: var(--icen-token-bg-soft);
157
+ background: var(--icen-token-surface-chrome);
158
+ border-color: transparent;
160
159
  }
161
160
 
162
161
  /* ── 可折叠模式:标题栏可点(纯 CSS 方案用 details/summary) ── */
@@ -0,0 +1,2 @@
1
+ // kit: panel 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/panel.mjs';
@@ -13,14 +13,15 @@
13
13
  display: inline-flex;
14
14
  align-items: center;
15
15
  gap: 4px;
16
- padding: 2px var(--icen-density-space-sm);
16
+ min-block-size: 19px;
17
+ padding: 1px 7px;
17
18
  border-radius: var(--icen-radius-full);
18
19
  font-size: var(--icen-density-font-size-xs);
19
- letter-spacing: 0.02em;
20
+ letter-spacing: .01em;
20
21
  font-weight: 500;
21
- background: var(--icen-token-surface-strong);
22
+ background: var(--icen-token-fill-hover);
22
23
  color: var(--icen-token-text-muted);
23
- border: 1px solid var(--icen-token-line-soft);
24
+ border: 1px solid var(--icen-token-separator-soft);
24
25
  white-space: nowrap;
25
26
  vertical-align: middle;
26
27
  }
@@ -41,9 +42,9 @@
41
42
  background: color-mix(in srgb, var(--icen-token-error) 9%, transparent);
42
43
  }
43
44
  .icen-pill--accent {
44
- color: var(--icen-token-accent-deep, var(--icen-token-accent));
45
- border-color: color-mix(in srgb, var(--icen-token-accent) 40%, transparent);
46
- background: color-mix(in srgb, var(--icen-token-accent) 9%, transparent);
45
+ color: var(--icen-token-accent-text);
46
+ border-color: color-mix(in srgb, var(--icen-token-accent) 30%, transparent);
47
+ background: var(--icen-token-accent-subtle);
47
48
  }
48
49
  .icen-pill--info {
49
50
  color: var(--icen-token-info);
@@ -0,0 +1,2 @@
1
+ // kit: pill 类型面(构建产物,勿手改)
2
+ export {};
@@ -26,17 +26,19 @@
26
26
  min-inline-size: 200px;
27
27
  max-inline-size: min(360px, calc(100vw - 32px));
28
28
  padding: var(--icen-density-space-sm);
29
- background: var(--icen-token-card-strong);
29
+ background: color-mix(in srgb, var(--icen-token-surface) 94%, transparent);
30
+ backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
31
+ -webkit-backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
30
32
  color: var(--icen-token-text);
31
- border: 1px solid var(--icen-token-outline);
32
- box-shadow: var(--icen-token-shadow-overlay);
33
+ border: 1px solid var(--icen-token-material-edge);
34
+ box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
33
35
  border-radius: var(--icen-radius-lg);
34
- animation: icen-popover-in var(--icen-tx-fast);
36
+ animation: icen-popover-in var(--icen-duration-fast) var(--icen-ease-enter);
35
37
  transform-origin: top center;
36
38
  /* 退场走过渡(可中断回弹);与菜单同收敛配方 */
37
39
  transition:
38
- opacity var(--icen-tx-fast) var(--icen-ease-out),
39
- transform var(--icen-tx-fast) var(--icen-ease-out);
40
+ opacity var(--icen-duration-fast) var(--icen-ease-out),
41
+ transform var(--icen-duration-fast) var(--icen-ease-out);
40
42
  }
41
43
  .icen-popover[data-icen-state='closing'] {
42
44
  animation: none; /* 打断可能仍在跑的进场 */
@@ -65,14 +67,14 @@
65
67
  align-items: flex-start;
66
68
  justify-content: space-between;
67
69
  gap: var(--icen-density-space-sm);
68
- padding: var(--icen-density-space-xs) var(--icen-density-space-xs) var(--icen-density-space-sm);
69
- border-bottom: 1px solid var(--icen-token-line-soft);
70
- margin-bottom: var(--icen-density-space-sm);
70
+ padding: var(--icen-density-space-xs);
71
+ border-bottom: 1px solid var(--icen-token-separator-soft);
72
+ margin-bottom: var(--icen-density-space-xs);
71
73
  }
72
74
  .icen-popover-title {
73
75
  margin: 0;
74
- font-size: var(--icen-density-font-size-sm);
75
- font-weight: 600;
76
+ font-size: var(--icen-font-size-control);
77
+ font-weight: var(--icen-font-weight-title);
76
78
  font-family: var(--icen-font-heading);
77
79
  line-height: 1.3;
78
80
  }
@@ -80,30 +82,37 @@
80
82
  display: inline-flex;
81
83
  align-items: center;
82
84
  justify-content: center;
83
- width: 22px;
84
- height: 22px;
85
+ width: 24px;
86
+ height: 24px;
85
87
  padding: 0;
86
88
  border: none;
87
89
  background: transparent;
88
90
  cursor: pointer;
89
- color: var(--icen-token-text-faint);
90
- border-radius: var(--icen-radius-sm);
91
+ color: var(--icen-token-text-muted);
92
+ border-radius: var(--icen-radius-full);
91
93
  flex-shrink: 0;
92
94
  transition:
93
95
  background-color var(--icen-tx-fast),
94
96
  color var(--icen-tx-fast);
95
97
  }
96
98
  .icen-popover-close:hover {
97
- background: var(--icen-token-surface-hover);
99
+ background: var(--icen-token-fill-hover);
98
100
  color: var(--icen-token-text);
99
101
  }
100
102
  .icen-popover-close:focus-visible {
101
103
  outline: none;
102
104
  box-shadow: var(--icen-ring);
103
105
  }
106
+ /* 触屏抬到 44px 触达面(同 modal/toast/notification 关闭钮口径;桌面保持 22px 紧凑视觉) */
107
+ @media (pointer: coarse) {
108
+ .icen-popover-close {
109
+ min-inline-size: 44px;
110
+ min-block-size: 44px;
111
+ }
112
+ }
104
113
 
105
114
  .icen-popover-body {
106
- font-size: var(--icen-density-font-size-sm);
115
+ font-size: var(--icen-font-size-control);
107
116
  line-height: 1.5;
108
117
  }
109
118
 
@@ -113,24 +122,24 @@
113
122
  gap: var(--icen-density-space-xs);
114
123
  margin-top: var(--icen-density-space-sm);
115
124
  padding-top: var(--icen-density-space-sm);
116
- border-top: 1px solid var(--icen-token-line-soft);
125
+ border-top: 1px solid var(--icen-token-separator-soft);
117
126
  }
118
127
 
119
- /* ── 进场动画(与菜单同配方:fade + scale(.985),按侧别反向位移 3px) ── */
128
+ /* ── 进场动画(与菜单同配方:fade + scale(.98),按侧别反向位移 2px) ── */
120
129
  @keyframes icen-popover-in {
121
- from { opacity: 0; transform: scale(0.985) translateY(-3px); }
130
+ from { opacity: 0; transform: scale(0.98) translateY(-2px); }
122
131
  to { opacity: 1; transform: scale(1) translateY(0); }
123
132
  }
124
133
  @keyframes icen-popover-in-top {
125
- from { opacity: 0; transform: scale(0.985) translateY(3px); }
134
+ from { opacity: 0; transform: scale(0.98) translateY(2px); }
126
135
  to { opacity: 1; transform: scale(1) translateY(0); }
127
136
  }
128
137
  @keyframes icen-popover-in-left {
129
- from { opacity: 0; transform: scale(0.985) translateX(3px); }
138
+ from { opacity: 0; transform: scale(0.98) translateX(2px); }
130
139
  to { opacity: 1; transform: scale(1) translateX(0); }
131
140
  }
132
141
  @keyframes icen-popover-in-right {
133
- from { opacity: 0; transform: scale(0.985) translateX(-3px); }
142
+ from { opacity: 0; transform: scale(0.98) translateX(-2px); }
134
143
  to { opacity: 1; transform: scale(1) translateX(0); }
135
144
  }
136
145
 
@@ -0,0 +1,2 @@
1
+ // kit: popover 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/popover.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: progress 类型面(构建产物,勿手改)
2
+ export {};
@@ -0,0 +1,2 @@
1
+ // kit: rating 类型面(构建产物,勿手改)
2
+ export { initRating } from '../behaviors/controls.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: result 类型面(构建产物,勿手改)
2
+ export {};