@icen.ai/ui 0.9.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 (431) hide show
  1. package/AGENTS.md +82 -254
  2. package/LICENSE +21 -0
  3. package/README.md +60 -96
  4. package/dist/base.css +258 -188
  5. package/dist/behaviors/accordion.mjs +8 -8
  6. package/dist/behaviors/ai-branch.d.mts +1 -1
  7. package/dist/behaviors/ai-branch.mjs +1011 -94
  8. package/dist/behaviors/ai-chat.d.mts +9 -9
  9. package/dist/behaviors/ai-chat.mjs +1122 -169
  10. package/dist/behaviors/ai-composer.d.mts +47 -15
  11. package/dist/behaviors/ai-composer.mjs +2018 -534
  12. package/dist/behaviors/ai-core.d.mts +1 -1
  13. package/dist/behaviors/ai-core.mjs +1017 -107
  14. package/dist/behaviors/ai-diff.mjs +1020 -127
  15. package/dist/behaviors/ai-feedback.d.mts +1 -1
  16. package/dist/behaviors/ai-feedback.mjs +1036 -126
  17. package/dist/behaviors/ai-panel.d.mts +10 -10
  18. package/dist/behaviors/ai-panel.mjs +1285 -266
  19. package/dist/behaviors/ai-provider.d.mts +1 -1
  20. package/dist/behaviors/ai-provider.mjs +1004 -101
  21. package/dist/behaviors/ai-threads.d.mts +1 -1
  22. package/dist/behaviors/ai-threads.mjs +1069 -154
  23. package/dist/behaviors/ai-tool.d.mts +3 -3
  24. package/dist/behaviors/ai-tool.mjs +2087 -413
  25. package/dist/behaviors/ai-tools.d.mts +89 -16
  26. package/dist/behaviors/ai-tools.mjs +5365 -380
  27. package/dist/behaviors/autocomplete.d.mts +53 -0
  28. package/dist/behaviors/autocomplete.mjs +1601 -0
  29. package/dist/behaviors/back-top.d.mts +1 -1
  30. package/dist/behaviors/back-top.mjs +952 -14
  31. package/dist/behaviors/carousel.d.mts +1 -1
  32. package/dist/behaviors/carousel.mjs +914 -12
  33. package/dist/behaviors/cascader.d.mts +48 -0
  34. package/dist/behaviors/cascader.mjs +1867 -0
  35. package/dist/behaviors/charts.d.mts +72 -8
  36. package/dist/behaviors/charts.mjs +1953 -272
  37. package/dist/behaviors/code-block.d.mts +36 -0
  38. package/dist/behaviors/code-block.mjs +1619 -0
  39. package/dist/behaviors/command-palette.d.mts +9 -6
  40. package/dist/behaviors/command-palette.mjs +164 -62
  41. package/dist/behaviors/context-menu.d.mts +10 -9
  42. package/dist/behaviors/context-menu.mjs +1113 -44
  43. package/dist/behaviors/controls.d.mts +21 -21
  44. package/dist/behaviors/controls.mjs +1024 -134
  45. package/dist/behaviors/copy.d.mts +21 -2
  46. package/dist/behaviors/copy.mjs +1207 -42
  47. package/dist/behaviors/datatable.d.mts +55 -5
  48. package/dist/behaviors/datatable.mjs +2033 -212
  49. package/dist/behaviors/date-picker.d.mts +0 -1
  50. package/dist/behaviors/date-picker.mjs +1341 -293
  51. package/dist/behaviors/design.d.mts +54 -0
  52. package/dist/behaviors/design.mjs +109 -0
  53. package/dist/behaviors/dropdown.d.mts +5 -6
  54. package/dist/behaviors/dropdown.mjs +262 -110
  55. package/dist/behaviors/events.d.mts +127 -10
  56. package/dist/behaviors/events.mjs +58 -3
  57. package/dist/behaviors/feedback.d.mts +30 -0
  58. package/dist/behaviors/feedback.mjs +296 -0
  59. package/dist/behaviors/focus.d.mts +8 -0
  60. package/dist/behaviors/focus.mjs +24 -0
  61. package/dist/behaviors/form-validate.d.mts +111 -0
  62. package/dist/behaviors/form-validate.mjs +1746 -0
  63. package/dist/behaviors/i18n.d.mts +790 -0
  64. package/dist/behaviors/i18n.mjs +1713 -0
  65. package/dist/behaviors/icons.d.mts +93 -0
  66. package/dist/behaviors/icons.mjs +113 -0
  67. package/dist/behaviors/input.d.mts +9 -1
  68. package/dist/behaviors/input.mjs +1059 -60
  69. package/dist/behaviors/kb-access.d.mts +3 -3
  70. package/dist/behaviors/kb-access.mjs +2135 -239
  71. package/dist/behaviors/kb-acl.d.mts +8 -8
  72. package/dist/behaviors/kb-acl.mjs +1120 -179
  73. package/dist/behaviors/kb-answer.d.mts +2 -2
  74. package/dist/behaviors/kb-answer.mjs +2120 -435
  75. package/dist/behaviors/kb-audit.d.mts +3 -3
  76. package/dist/behaviors/kb-audit.mjs +1077 -154
  77. package/dist/behaviors/kb-canvas.d.mts +3 -3
  78. package/dist/behaviors/kb-canvas.mjs +1101 -177
  79. package/dist/behaviors/kb-chain.d.mts +2 -2
  80. package/dist/behaviors/kb-chain.mjs +1023 -100
  81. package/dist/behaviors/kb-checkpoint.d.mts +3 -3
  82. package/dist/behaviors/kb-checkpoint.mjs +1320 -169
  83. package/dist/behaviors/kb-chunks.d.mts +2 -2
  84. package/dist/behaviors/kb-chunks.mjs +1153 -213
  85. package/dist/behaviors/kb-citation.d.mts +3 -3
  86. package/dist/behaviors/kb-citation.mjs +1221 -185
  87. package/dist/behaviors/kb-clarify.d.mts +2 -2
  88. package/dist/behaviors/kb-clarify.mjs +1059 -130
  89. package/dist/behaviors/kb-conflict.d.mts +2 -2
  90. package/dist/behaviors/kb-conflict.mjs +1042 -119
  91. package/dist/behaviors/kb-connector.d.mts +2 -2
  92. package/dist/behaviors/kb-connector.mjs +1105 -176
  93. package/dist/behaviors/kb-core.d.mts +7 -2
  94. package/dist/behaviors/kb-core.mjs +1078 -162
  95. package/dist/behaviors/kb-eval.d.mts +2 -2
  96. package/dist/behaviors/kb-eval.mjs +1977 -144
  97. package/dist/behaviors/kb-explain.d.mts +3 -3
  98. package/dist/behaviors/kb-explain.mjs +1037 -104
  99. package/dist/behaviors/kb-filter.d.mts +2 -2
  100. package/dist/behaviors/kb-filter.mjs +2014 -178
  101. package/dist/behaviors/kb-gap.d.mts +3 -3
  102. package/dist/behaviors/kb-gap.mjs +1044 -121
  103. package/dist/behaviors/kb-hittest.d.mts +3 -3
  104. package/dist/behaviors/kb-hittest.mjs +1095 -151
  105. package/dist/behaviors/kb-metadata.mjs +1058 -130
  106. package/dist/behaviors/kb-passage.d.mts +4 -4
  107. package/dist/behaviors/kb-passage.mjs +1102 -161
  108. package/dist/behaviors/kb-pipeline.d.mts +4 -4
  109. package/dist/behaviors/kb-pipeline.mjs +1083 -162
  110. package/dist/behaviors/kb-qa.mjs +1089 -160
  111. package/dist/behaviors/kb-rerank.d.mts +2 -2
  112. package/dist/behaviors/kb-rerank.mjs +1048 -114
  113. package/dist/behaviors/kb-retrieval.d.mts +2 -2
  114. package/dist/behaviors/kb-retrieval.mjs +2079 -226
  115. package/dist/behaviors/kb-review.d.mts +2 -2
  116. package/dist/behaviors/kb-review.mjs +1996 -159
  117. package/dist/behaviors/kb-sandbox.d.mts +3 -3
  118. package/dist/behaviors/kb-sandbox.mjs +1033 -105
  119. package/dist/behaviors/kb-segment.d.mts +2 -2
  120. package/dist/behaviors/kb-segment.mjs +1112 -179
  121. package/dist/behaviors/kb-select.d.mts +24 -0
  122. package/dist/behaviors/kb-select.mjs +1995 -0
  123. package/dist/behaviors/kb-sources.d.mts +3 -3
  124. package/dist/behaviors/kb-sources.mjs +1085 -170
  125. package/dist/behaviors/kb-sql.d.mts +3 -3
  126. package/dist/behaviors/kb-sql.mjs +1144 -226
  127. package/dist/behaviors/kb-trace.d.mts +3 -3
  128. package/dist/behaviors/kb-trace.mjs +1051 -131
  129. package/dist/behaviors/kb-visibility.d.mts +2 -2
  130. package/dist/behaviors/kb-visibility.mjs +1087 -158
  131. package/dist/behaviors/kb-who-can.d.mts +2 -2
  132. package/dist/behaviors/kb-who-can.mjs +1980 -137
  133. package/dist/behaviors/mentions.d.mts +93 -0
  134. package/dist/behaviors/mentions.mjs +2153 -0
  135. package/dist/behaviors/modal.d.mts +4 -3
  136. package/dist/behaviors/modal.mjs +1056 -33
  137. package/dist/behaviors/nav.d.mts +1 -1
  138. package/dist/behaviors/nav.mjs +6 -6
  139. package/dist/behaviors/notification.d.mts +16 -8
  140. package/dist/behaviors/notification.mjs +1629 -268
  141. package/dist/behaviors/panel.d.mts +4 -0
  142. package/dist/behaviors/panel.mjs +995 -0
  143. package/dist/behaviors/popover.d.mts +28 -5
  144. package/dist/behaviors/popover.mjs +225 -24
  145. package/dist/behaviors/scroll-area.d.mts +17 -0
  146. package/dist/behaviors/scroll-area.mjs +59 -0
  147. package/dist/behaviors/select.d.mts +5 -2
  148. package/dist/behaviors/select.mjs +1416 -117
  149. package/dist/behaviors/sidebar.d.mts +1 -1
  150. package/dist/behaviors/sidebar.mjs +13 -13
  151. package/dist/behaviors/slider.d.mts +1 -1
  152. package/dist/behaviors/slider.mjs +12 -12
  153. package/dist/behaviors/split-pane.d.mts +1 -1
  154. package/dist/behaviors/split-pane.mjs +9 -7
  155. package/dist/behaviors/suggestions.d.mts +27 -0
  156. package/dist/behaviors/suggestions.mjs +1090 -0
  157. package/dist/behaviors/svg-parse.d.mts +14 -0
  158. package/dist/behaviors/svg-parse.mjs +37 -0
  159. package/dist/behaviors/tabs.d.mts +2 -2
  160. package/dist/behaviors/tabs.mjs +35 -25
  161. package/dist/behaviors/tag-input.d.mts +23 -5
  162. package/dist/behaviors/tag-input.mjs +1360 -104
  163. package/dist/behaviors/theme-switcher.d.mts +24 -0
  164. package/dist/behaviors/theme-switcher.mjs +1996 -0
  165. package/dist/behaviors/theme.d.mts +15 -8
  166. package/dist/behaviors/theme.mjs +406 -30
  167. package/dist/behaviors/toast.d.mts +24 -25
  168. package/dist/behaviors/toast.mjs +1267 -88
  169. package/dist/behaviors/tooltip.d.mts +4 -0
  170. package/dist/behaviors/tooltip.mjs +378 -0
  171. package/dist/behaviors/tree-select.d.mts +69 -0
  172. package/dist/behaviors/tree-select.mjs +1921 -0
  173. package/dist/behaviors/tree.d.mts +1 -1
  174. package/dist/behaviors/tree.mjs +18 -18
  175. package/dist/behaviors/upload.d.mts +3 -2
  176. package/dist/behaviors/upload.mjs +1077 -66
  177. package/dist/behaviors/url-safety.d.mts +8 -0
  178. package/dist/behaviors/url-safety.mjs +11 -0
  179. package/dist/cli.mjs +5 -6
  180. package/dist/components/accordion.d.mts +2 -0
  181. package/dist/components/ai-branch.d.mts +2 -0
  182. package/dist/components/ai-chat.css +682 -582
  183. package/dist/components/ai-chat.d.mts +2 -0
  184. package/dist/components/ai-composer.d.mts +2 -0
  185. package/dist/components/ai-context.d.mts +2 -0
  186. package/dist/components/ai-context.mjs +1 -0
  187. package/dist/components/ai-diff.css +153 -132
  188. package/dist/components/ai-diff.d.mts +2 -0
  189. package/dist/components/ai-feedback.d.mts +2 -0
  190. package/dist/components/ai-files.d.mts +2 -0
  191. package/dist/components/ai-message.d.mts +2 -0
  192. package/dist/components/ai-panel.css +353 -343
  193. package/dist/components/ai-reasoning.d.mts +2 -0
  194. package/dist/components/ai-subagent.d.mts +2 -0
  195. package/dist/components/ai-subagent.mjs +1 -0
  196. package/dist/components/ai-threads.d.mts +2 -0
  197. package/dist/components/ai-todo.d.mts +2 -0
  198. package/dist/components/ai-todo.mjs +1 -0
  199. package/dist/components/ai-tool-call.d.mts +2 -0
  200. package/dist/components/ai-tool-call.mjs +1 -0
  201. package/dist/components/ai-tool.css +397 -242
  202. package/dist/components/ai-usage.d.mts +2 -0
  203. package/dist/components/alert.d.mts +2 -0
  204. package/dist/components/autocomplete.css +61 -0
  205. package/dist/components/autocomplete.d.mts +2 -0
  206. package/dist/components/autocomplete.mjs +3 -0
  207. package/dist/components/avatar.d.mts +2 -0
  208. package/dist/components/back-top.css +74 -40
  209. package/dist/components/back-top.d.mts +2 -0
  210. package/dist/components/badge.css +44 -41
  211. package/dist/components/badge.d.mts +2 -0
  212. package/dist/components/breadcrumb.css +85 -46
  213. package/dist/components/breadcrumb.d.mts +2 -0
  214. package/dist/components/btn.css +105 -94
  215. package/dist/components/btn.d.mts +2 -0
  216. package/dist/components/card.css +124 -113
  217. package/dist/components/card.d.mts +2 -0
  218. package/dist/components/carousel.d.mts +2 -0
  219. package/dist/components/cascader.css +332 -0
  220. package/dist/components/cascader.d.mts +2 -0
  221. package/dist/components/cascader.mjs +3 -0
  222. package/dist/components/chart-area.css +54 -2
  223. package/dist/components/chart-area.d.mts +2 -0
  224. package/dist/components/chart-bar.css +147 -38
  225. package/dist/components/chart-bar.d.mts +2 -0
  226. package/dist/components/chart-calendar.d.mts +2 -0
  227. package/dist/components/chart-gauge.css +36 -13
  228. package/dist/components/chart-gauge.d.mts +2 -0
  229. package/dist/components/chart-graph.css +35 -20
  230. package/dist/components/chart-graph.d.mts +2 -0
  231. package/dist/components/chart-heatmap.css +67 -39
  232. package/dist/components/chart-heatmap.d.mts +2 -0
  233. package/dist/components/chart-line.css +62 -3
  234. package/dist/components/chart-line.d.mts +2 -0
  235. package/dist/components/chart-map.d.mts +2 -0
  236. package/dist/components/chart-pie.css +38 -6
  237. package/dist/components/chart-pie.d.mts +2 -0
  238. package/dist/components/chart-radar.css +57 -5
  239. package/dist/components/chart-radar.d.mts +2 -0
  240. package/dist/components/chart-scatter.css +47 -7
  241. package/dist/components/chart-scatter.d.mts +2 -0
  242. package/dist/components/chart-sparkline.css +25 -2
  243. package/dist/components/chart-sparkline.d.mts +2 -0
  244. package/dist/components/chart-stack.css +27 -13
  245. package/dist/components/chart-stack.d.mts +2 -0
  246. package/dist/components/charts.css +220 -84
  247. package/dist/components/charts.d.mts +2 -0
  248. package/dist/components/code-block.css +420 -0
  249. package/dist/components/code-block.d.mts +2 -0
  250. package/dist/components/code-block.mjs +4 -0
  251. package/dist/components/command-palette.css +150 -122
  252. package/dist/components/command-palette.d.mts +2 -0
  253. package/dist/components/content.css +274 -263
  254. package/dist/components/context-menu.d.mts +2 -0
  255. package/dist/components/copy.css +73 -45
  256. package/dist/components/copy.d.mts +2 -0
  257. package/dist/components/datatable.css +457 -202
  258. package/dist/components/datatable.d.mts +2 -0
  259. package/dist/components/date-picker.css +136 -105
  260. package/dist/components/date-picker.d.mts +2 -0
  261. package/dist/components/desc.d.mts +2 -0
  262. package/dist/components/dropdown.d.mts +2 -0
  263. package/dist/components/empty.css +72 -69
  264. package/dist/components/empty.d.mts +2 -0
  265. package/dist/components/feedback.css +211 -191
  266. package/dist/components/form-validate.css +134 -0
  267. package/dist/components/form-validate.d.mts +2 -0
  268. package/dist/components/form-validate.mjs +3 -0
  269. package/dist/components/form.css +157 -131
  270. package/dist/components/form.d.mts +2 -0
  271. package/dist/components/icon.css +113 -0
  272. package/dist/components/icon.d.mts +2 -0
  273. package/dist/components/icon.mjs +3 -0
  274. package/dist/components/input.css +163 -108
  275. package/dist/components/input.d.mts +2 -0
  276. package/dist/components/kb-access.d.mts +2 -0
  277. package/dist/components/kb-acl.d.mts +2 -0
  278. package/dist/components/kb-agent.css +300 -206
  279. package/dist/components/kb-answer.d.mts +2 -0
  280. package/dist/components/kb-audit.d.mts +2 -0
  281. package/dist/components/kb-canvas.d.mts +2 -0
  282. package/dist/components/kb-chain.d.mts +2 -0
  283. package/dist/components/kb-checkpoint.d.mts +2 -0
  284. package/dist/components/kb-chunks.d.mts +2 -0
  285. package/dist/components/kb-citation.d.mts +2 -0
  286. package/dist/components/kb-clarify.d.mts +2 -0
  287. package/dist/components/kb-conflict.d.mts +2 -0
  288. package/dist/components/kb-connector.d.mts +2 -0
  289. package/dist/components/kb-data.css +431 -315
  290. package/dist/components/kb-eval.d.mts +2 -0
  291. package/dist/components/kb-explain.d.mts +2 -0
  292. package/dist/components/kb-filter.d.mts +2 -0
  293. package/dist/components/kb-gap.d.mts +2 -0
  294. package/dist/components/kb-ground.css +333 -229
  295. package/dist/components/kb-hittest.d.mts +2 -0
  296. package/dist/components/kb-ingest.css +613 -434
  297. package/dist/components/kb-metadata.d.mts +2 -0
  298. package/dist/components/kb-ops.css +422 -302
  299. package/dist/components/kb-passage.d.mts +2 -0
  300. package/dist/components/kb-perm.css +374 -314
  301. package/dist/components/kb-pipeline.d.mts +2 -0
  302. package/dist/components/kb-qa.d.mts +2 -0
  303. package/dist/components/kb-rerank.d.mts +2 -0
  304. package/dist/components/kb-retrieval.d.mts +2 -0
  305. package/dist/components/kb-review.d.mts +2 -0
  306. package/dist/components/kb-sandbox.d.mts +2 -0
  307. package/dist/components/kb-search.css +653 -459
  308. package/dist/components/kb-segment.d.mts +2 -0
  309. package/dist/components/kb-sources.d.mts +2 -0
  310. package/dist/components/kb-sql.d.mts +2 -0
  311. package/dist/components/kb-trace.d.mts +2 -0
  312. package/dist/components/kb-visibility.d.mts +2 -0
  313. package/dist/components/kb-who-can.d.mts +2 -0
  314. package/dist/components/kb.css +170 -135
  315. package/dist/components/kb.d.mts +2 -0
  316. package/dist/components/kbd.d.mts +2 -0
  317. package/dist/components/layout.css +86 -83
  318. package/dist/components/layout.d.mts +2 -0
  319. package/dist/components/list.d.mts +2 -0
  320. package/dist/components/material-chinese.css +83 -0
  321. package/dist/components/material-soviet.css +86 -0
  322. package/dist/components/material.css +318 -0
  323. package/dist/components/media-card.d.mts +2 -0
  324. package/dist/components/media.css +225 -176
  325. package/dist/components/mentions.css +190 -0
  326. package/dist/components/mentions.d.mts +2 -0
  327. package/dist/components/mentions.mjs +3 -0
  328. package/dist/components/menu.css +121 -109
  329. package/dist/components/modal.css +116 -118
  330. package/dist/components/modal.d.mts +2 -0
  331. package/dist/components/nav.css +136 -129
  332. package/dist/components/nav.d.mts +2 -0
  333. package/dist/components/notification.css +247 -177
  334. package/dist/components/notification.d.mts +2 -0
  335. package/dist/components/pagination.css +62 -57
  336. package/dist/components/pagination.d.mts +2 -0
  337. package/dist/components/panel.css +70 -68
  338. package/dist/components/panel.d.mts +2 -0
  339. package/dist/components/panel.mjs +1 -0
  340. package/dist/components/pill.css +83 -72
  341. package/dist/components/pill.d.mts +2 -0
  342. package/dist/components/popover.css +80 -57
  343. package/dist/components/popover.d.mts +2 -0
  344. package/dist/components/progress.d.mts +2 -0
  345. package/dist/components/rating.d.mts +2 -0
  346. package/dist/components/result.d.mts +2 -0
  347. package/dist/components/scroll-area.css +29 -54
  348. package/dist/components/scroll-area.d.mts +2 -0
  349. package/dist/components/scroll-area.mjs +1 -0
  350. package/dist/components/segmented.css +167 -146
  351. package/dist/components/segmented.d.mts +2 -0
  352. package/dist/components/select.css +250 -191
  353. package/dist/components/select.d.mts +2 -0
  354. package/dist/components/sidebar.css +157 -143
  355. package/dist/components/sidebar.d.mts +2 -0
  356. package/dist/components/skeleton.d.mts +2 -0
  357. package/dist/components/slider.css +135 -128
  358. package/dist/components/slider.d.mts +2 -0
  359. package/dist/components/spinner.d.mts +2 -0
  360. package/dist/components/split-pane.css +120 -108
  361. package/dist/components/split-pane.d.mts +2 -0
  362. package/dist/components/stat.css +116 -109
  363. package/dist/components/stat.d.mts +2 -0
  364. package/dist/components/steps.css +114 -108
  365. package/dist/components/steps.d.mts +2 -0
  366. package/dist/components/switch.css +192 -149
  367. package/dist/components/switch.d.mts +2 -0
  368. package/dist/components/table.css +158 -112
  369. package/dist/components/table.d.mts +2 -0
  370. package/dist/components/tabs.css +143 -116
  371. package/dist/components/tabs.d.mts +2 -0
  372. package/dist/components/tag-input.css +52 -133
  373. package/dist/components/tag-input.d.mts +2 -0
  374. package/dist/components/tag.css +90 -72
  375. package/dist/components/tag.d.mts +2 -0
  376. package/dist/components/theme-switcher.css +105 -0
  377. package/dist/components/theme-switcher.d.mts +2 -0
  378. package/dist/components/theme-switcher.mjs +3 -0
  379. package/dist/components/timeline.d.mts +2 -0
  380. package/dist/components/toast.css +115 -97
  381. package/dist/components/toast.d.mts +2 -0
  382. package/dist/components/toolbar.css +47 -43
  383. package/dist/components/toolbar.d.mts +2 -0
  384. package/dist/components/tooltip.css +103 -43
  385. package/dist/components/tooltip.d.mts +2 -0
  386. package/dist/components/tooltip.mjs +1 -0
  387. package/dist/components/tree-select.css +439 -0
  388. package/dist/components/tree-select.d.mts +2 -0
  389. package/dist/components/tree-select.mjs +3 -0
  390. package/dist/components/tree.d.mts +2 -0
  391. package/dist/components/upload.css +138 -97
  392. package/dist/components/upload.d.mts +2 -0
  393. package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
  394. package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
  395. package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
  396. package/dist/fonts/OFL.txt +96 -0
  397. package/dist/fonts/README.md +14 -0
  398. package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
  399. package/dist/index.d.mts +85 -70
  400. package/dist/index.mjs +17330 -5773
  401. package/dist/react.d.mts +91 -0
  402. package/dist/react.mjs +8307 -0
  403. package/dist/registry.json +918 -70
  404. package/dist/tokens/chinese.css +44 -0
  405. package/dist/tokens/colors.css +371 -1222
  406. package/dist/tokens/design.css +209 -0
  407. package/dist/tokens/dtcg.json +15926 -0
  408. package/dist/tokens/figma.variables.json +10779 -0
  409. package/dist/tokens/icon-masks.css +78 -0
  410. package/dist/tokens/pixel.css +53 -0
  411. package/dist/tokens/scrollbars.css +40 -0
  412. package/dist/tokens/soviet.css +44 -0
  413. package/dist/tokens/style-profiles.css +36 -547
  414. package/dist/tokens/themes.json +308 -0
  415. package/dist/tokens/tokens-studio.json +11648 -0
  416. package/dist/tokens/typography.css +21 -18
  417. package/dist/tokens.css +1783 -1806
  418. package/dist/ui.css +14796 -10750
  419. package/dist/vue.d.mts +344 -0
  420. package/dist/vue.mjs +7876 -0
  421. package/docs/spec/ai-input-experience.md +75 -0
  422. package/docs/spec/ai-native.md +238 -147
  423. package/docs/spec/design-philosophy.md +189 -0
  424. package/docs/spec/design-primitives.md +196 -0
  425. package/docs/spec/kb-family.md +147 -115
  426. package/docs/spec/scrollbars.md +46 -0
  427. package/package.json +56 -8
  428. package/dist/retro-effects.css +0 -255
  429. package/dist/tokens/retro-effects.css +0 -255
  430. package/docs/research/2026-10-03-ai-kb-components.md +0 -392
  431. package/docs/research/2026-10-03-kb-permissions.md +0 -992
@@ -1,21 +1,22 @@
1
+ @layer icen.components {
1
2
  /*
2
3
  * @icen.ai/ui — Component: sidebar(侧栏导航,分组折叠配套 behaviors/sidebar)
3
4
  *
4
5
  * 完整契约:
5
- * <aside class="sidebar [sidebar--sticky] [sidebar--sm|sidebar--lg]">
6
- * <div class="sidebar-section"> ← 可选区块标题
7
- * <span class="sidebar-section-label">主菜单</span>
6
+ * <aside class="icen-sidebar [icen-sidebar--sticky] [icen-sidebar--sm|icen-sidebar--lg]">
7
+ * <div class="icen-sidebar-section"> ← 可选区块标题
8
+ * <span class="icen-sidebar-section-label">主菜单</span>
8
9
  * </div>
9
- * <div class="sidebar-group is-open">
10
- * <button class="sidebar-group-title" aria-expanded="true">
11
- * <span class="sidebar-group-title-text">分组</span>
10
+ * <div class="icen-sidebar-group is-open">
11
+ * <button class="icen-sidebar-group-title" aria-expanded="true">
12
+ * <span class="icen-sidebar-group-title-text">分组</span>
12
13
  * </button>
13
- * <div class="sidebar-group-panel">
14
- * <div class="sidebar-group-panel-inner">
15
- * <a class="sidebar-item [.is-active]" href="…" [aria-current="page"]>
16
- * <svg class="sidebar-item-icon">…</svg>
17
- * <span class="sidebar-item-label">条目</span>
18
- * <span class="sidebar-item-badge">3</span> ← 可选徽章
14
+ * <div class="icen-sidebar-group-panel">
15
+ * <div class="icen-sidebar-group-panel-inner">
16
+ * <a class="icen-sidebar-item [.is-active]" href="…" [aria-current="page"]>
17
+ * <svg class="icen-sidebar-item-icon">…</svg>
18
+ * <span class="icen-sidebar-item-label">条目</span>
19
+ * <span class="icen-sidebar-item-badge">3</span> ← 可选徽章
19
20
  * </a>
20
21
  * </div>
21
22
  * </div>
@@ -26,48 +27,47 @@
26
27
  * 展开动画 = grid-template-rows 0fr↔1fr(同 accordion 约定)。
27
28
  */
28
29
 
29
- .sidebar {
30
- width: 260px;
30
+ .icen-sidebar {
31
+ inline-size: 260px;
31
32
  flex-shrink: 0;
32
33
  overflow-y: auto;
33
34
  overscroll-behavior: contain;
34
- padding-right: var(--density-space-xs);
35
+ padding-inline-end: var(--icen-density-space-xs);
35
36
  }
36
- .sidebar--sticky {
37
+ .icen-sidebar--sticky {
37
38
  position: sticky;
38
39
  top: 80px;
39
40
  max-height: calc(100vh - 100px);
40
41
  }
41
- .sidebar--sm { width: 220px; }
42
- .sidebar--lg { width: 320px; }
42
+ .icen-sidebar--sm { inline-size: 220px; }
43
+ .icen-sidebar--lg { inline-size: 320px; }
43
44
 
44
- .sidebar-section {
45
- padding: var(--density-space-md) var(--density-space-sm) var(--density-space-xs);
46
- margin-top: var(--density-space-sm);
45
+ .icen-sidebar-section {
46
+ padding: var(--icen-density-space-md) var(--icen-density-space-sm) var(--icen-density-space-xs);
47
+ margin-top: var(--icen-density-space-sm);
47
48
  }
48
- .sidebar-section-label {
49
- font-size: var(--density-font-size-xs);
49
+ .icen-sidebar-section-label {
50
+ font-size: var(--icen-font-size-caption);
50
51
  font-weight: 600;
51
- color: var(--token-text-faint);
52
- text-transform: uppercase;
53
- letter-spacing: 0.08em;
52
+ color: var(--icen-token-text-muted);
53
+ letter-spacing: var(--icen-letter-spacing-caption);
54
54
  }
55
55
 
56
- .sidebar-group { margin-bottom: var(--density-space-xs); }
57
- .sidebar-group-title {
56
+ .icen-sidebar-group { margin-bottom: var(--icen-density-space-xs); }
57
+ .icen-sidebar-group-title {
58
58
  width: 100%;
59
59
  display: flex;
60
60
  align-items: center;
61
61
  justify-content: space-between;
62
- gap: var(--density-space-xs);
63
- padding: var(--density-space-sm) var(--density-space-sm);
64
- border-radius: var(--radius-sm);
62
+ gap: var(--icen-density-space-xs);
63
+ min-block-size: 26px;
64
+ padding: 3px var(--icen-density-space-sm);
65
+ border-radius: var(--icen-radius-xs);
65
66
  font-family: inherit;
66
- font-size: var(--density-font-size-xs);
67
+ font-size: var(--icen-font-size-caption);
67
68
  font-weight: 600;
68
- text-transform: uppercase;
69
- letter-spacing: 0.05em;
70
- color: var(--token-text-muted);
69
+ letter-spacing: var(--icen-letter-spacing-caption);
70
+ color: var(--icen-token-text-muted);
71
71
  background: none;
72
72
  border: 0;
73
73
  cursor: pointer;
@@ -75,50 +75,58 @@
75
75
  background-color var(--icen-tx-fast),
76
76
  color var(--icen-tx-fast);
77
77
  }
78
- .sidebar-group-title:hover {
79
- background: var(--token-control-hover);
80
- color: var(--token-text);
78
+ .icen-sidebar-group-title:hover {
79
+ background: var(--icen-token-fill-hover);
80
+ color: var(--icen-token-text);
81
81
  }
82
- .sidebar-group-title:focus-visible {
82
+ .icen-sidebar-group-title:focus-visible {
83
83
  outline: none;
84
84
  box-shadow: var(--icen-ring);
85
85
  }
86
- .sidebar-group-title-text {
86
+ .icen-sidebar-group-title-text {
87
87
  flex: 1;
88
- text-align: left;
88
+ text-align: start;
89
89
  }
90
90
  /* chevron:闭合态 rotate(-90deg),展开回正 */
91
- .sidebar-group-title::after {
92
- content: '▾';
93
- font-size: var(--density-font-size-sm);
91
+ .icen-sidebar-group-title::after {
92
+ content: '';
93
+ display: inline-block;
94
+ inline-size: 16px;
95
+ block-size: 16px;
96
+ flex: none;
97
+ vertical-align: middle;
98
+ background: currentColor;
99
+ mask: var(--icen-token-icon-chevron-down) center / contain no-repeat;
100
+ font-size: var(--icen-density-font-size-sm);
94
101
  line-height: 1;
95
- color: var(--token-text-muted);
102
+ color: var(--icen-token-text-muted);
96
103
  transform: rotate(-90deg);
97
104
  transition: transform var(--icen-tx-normal);
98
105
  }
99
- .sidebar-group.is-open .sidebar-group-title::after { transform: none; }
106
+ .icen-sidebar-group.is-open .icen-sidebar-group-title::after { transform: none; }
100
107
 
101
- .sidebar-group-panel {
108
+ .icen-sidebar-group-panel {
102
109
  display: grid;
103
110
  grid-template-rows: 0fr;
104
111
  transition: grid-template-rows var(--icen-tx-normal);
105
112
  }
106
- .sidebar-group.is-open .sidebar-group-panel { grid-template-rows: 1fr; }
107
- .sidebar-group-panel-inner {
113
+ .icen-sidebar-group.is-open .icen-sidebar-group-panel { grid-template-rows: 1fr; }
114
+ .icen-sidebar-group-panel-inner {
108
115
  overflow: hidden;
109
116
  min-height: 0;
110
117
  }
111
118
 
112
- .sidebar-item {
113
- width: 100%;
119
+ .icen-sidebar-item {
120
+ inline-size: 100%;
114
121
  display: flex;
115
122
  align-items: center;
116
- gap: var(--density-space-xs);
117
- padding: var(--density-space-sm) var(--density-space-sm);
118
- border-radius: var(--radius-md);
119
- font-size: var(--density-font-size-md);
120
- color: var(--token-text);
121
- text-align: left;
123
+ gap: 7px;
124
+ min-block-size: var(--icen-control-height-sm);
125
+ padding: 3px var(--icen-density-space-sm);
126
+ border-radius: var(--icen-radius-xs);
127
+ font-size: var(--icen-font-size-control);
128
+ color: var(--icen-token-text);
129
+ text-align: start;
122
130
  text-decoration: none;
123
131
  background: none;
124
132
  border: 0;
@@ -127,174 +135,180 @@
127
135
  background-color var(--icen-tx-fast),
128
136
  color var(--icen-tx-fast);
129
137
  }
130
- .sidebar-item:hover {
131
- background: var(--token-control-hover);
138
+ .icen-sidebar-item:hover {
139
+ background: var(--icen-token-fill-hover);
132
140
  text-decoration: none;
133
- color: var(--token-text);
141
+ color: var(--icen-token-text);
134
142
  }
135
- .sidebar-item:focus-visible {
143
+ .icen-sidebar-item:focus-visible {
136
144
  outline: none;
137
- box-shadow: var(--icen-ring);
145
+ box-shadow: var(--icen-ring-inset);
138
146
  }
139
- .sidebar-item.is-active,
140
- .sidebar-item[aria-current='page'] {
141
- background: var(--token-accent-subtle);
142
- color: var(--token-accent);
143
- font-weight: 500;
147
+ .icen-sidebar-item.is-active,
148
+ .icen-sidebar-item[aria-current='page'] {
149
+ background: var(--icen-token-fill-selected);
150
+ color: var(--icen-token-text);
151
+ font-weight: var(--icen-font-weight-control);
144
152
  }
145
- .sidebar-item.is-disabled,
146
- .sidebar-item[aria-disabled='true'],
147
- .sidebar-item[data-disabled] {
153
+ .icen-sidebar-item.is-disabled,
154
+ .icen-sidebar-item[aria-disabled='true'],
155
+ .icen-sidebar-item[data-icen-disabled] {
148
156
  opacity: var(--icen-disabled-opacity);
149
157
  pointer-events: none;
150
158
  }
151
- .sidebar-item-icon {
152
- width: 14px;
153
- height: 14px;
159
+ .icen-sidebar-item-icon {
160
+ width: 16px;
161
+ height: 16px;
154
162
  flex-shrink: 0;
155
- color: var(--token-text-muted);
163
+ color: var(--icen-token-text-muted);
156
164
  }
157
- .sidebar-item.is-active .sidebar-item-icon { color: var(--token-accent); }
158
- .sidebar-item-label {
165
+ .icen-sidebar-item.is-active .icen-sidebar-item-icon { color: var(--icen-token-accent-strong); }
166
+ .icen-sidebar-item-label {
159
167
  flex: 1;
160
168
  overflow: hidden;
161
169
  text-overflow: ellipsis;
162
170
  white-space: nowrap;
163
171
  }
164
- .sidebar-item-badge {
172
+ .icen-sidebar-item-badge {
165
173
  display: inline-flex;
166
174
  align-items: center;
167
175
  justify-content: center;
168
176
  min-width: 18px;
169
177
  height: 18px;
170
178
  padding: 0 5px;
171
- font-size: var(--density-font-size-xs);
179
+ font-size: var(--icen-density-font-size-xs);
172
180
  font-weight: 600;
173
- color: var(--token-on-accent);
174
- background: var(--token-accent);
175
- border-radius: var(--radius-full);
181
+ color: var(--icen-token-text-muted);
182
+ background: var(--icen-token-fill-2);
183
+ border-radius: var(--icen-radius-full);
176
184
  font-variant-numeric: tabular-nums;
177
185
  }
186
+ .icen-sidebar-item.is-active .icen-sidebar-item-badge,
187
+ .icen-sidebar-item[aria-current='page'] .icen-sidebar-item-badge {
188
+ color: var(--icen-token-on-accent);
189
+ background: var(--icen-token-accent-strong);
190
+ }
178
191
 
179
192
  @media (prefers-reduced-motion: reduce) {
180
- .sidebar-group-panel,
181
- .sidebar-group-title::after { transition: none; }
193
+ .icen-sidebar-group-panel,
194
+ .icen-sidebar-group-title::after { transition: none; }
182
195
  }
183
196
 
184
197
  /* ── 增强 ── */
185
198
 
186
199
  /* 侧栏头部(品牌/标题) */
187
- .sidebar-header {
200
+ .icen-sidebar-header {
188
201
  display: flex;
189
202
  align-items: center;
190
- gap: var(--density-space-sm);
191
- padding: var(--density-space-sm);
192
- border-bottom: 1px solid var(--token-outline-soft);
193
- margin-bottom: var(--density-space-sm);
203
+ gap: var(--icen-density-space-sm);
204
+ padding: var(--icen-density-space-sm);
205
+ border-bottom: 1px solid var(--icen-token-outline-soft);
206
+ margin-bottom: var(--icen-density-space-sm);
194
207
  }
195
- .sidebar-header-brand {
208
+ .icen-sidebar-header-brand {
196
209
  display: inline-flex;
197
210
  align-items: center;
198
- gap: var(--density-space-xs);
199
- font-family: var(--font-heading);
200
- font-size: var(--density-font-size-md);
211
+ gap: var(--icen-density-space-xs);
212
+ font-family: var(--icen-font-heading);
213
+ font-size: var(--icen-density-font-size-md);
201
214
  font-weight: 600;
202
- color: var(--token-text);
215
+ color: var(--icen-token-text);
203
216
  text-decoration: none;
204
217
  }
205
- .sidebar-header-brand > svg,
206
- .sidebar-header-brand > img {
218
+ .icen-sidebar-header-brand > svg,
219
+ .icen-sidebar-header-brand > img {
207
220
  width: 24px;
208
221
  height: 24px;
209
222
  }
210
- .sidebar-header-toggle {
211
- margin-left: auto;
223
+ .icen-sidebar-header-toggle {
224
+ margin-inline-start: auto;
212
225
  display: inline-flex;
213
226
  align-items: center;
214
227
  justify-content: center;
215
228
  width: 28px;
216
229
  height: 28px;
217
230
  border: 0;
218
- border-radius: var(--radius-sm);
231
+ border-radius: var(--icen-radius-sm);
219
232
  background: transparent;
220
- color: var(--token-text-faint);
233
+ color: var(--icen-token-text-faint);
221
234
  cursor: pointer;
222
235
  transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
223
236
  }
224
- .sidebar-header-toggle:hover {
225
- color: var(--token-text);
226
- background: var(--token-fill-1);
237
+ .icen-sidebar-header-toggle:hover {
238
+ color: var(--icen-token-text);
239
+ background: var(--icen-token-fill-1);
227
240
  }
228
241
 
229
242
  /* 侧栏底部 */
230
- .sidebar-footer {
231
- padding: var(--density-space-sm);
232
- border-top: 1px solid var(--token-outline-soft);
243
+ .icen-sidebar-footer {
244
+ padding: var(--icen-density-space-sm);
245
+ border-top: 1px solid var(--icen-token-outline-soft);
233
246
  margin-top: auto;
234
247
  }
235
248
 
236
- /* 激活态左侧指示条 */
237
- .sidebar-item.is-active,
238
- .sidebar-item[aria-current='page'] {
239
- position: relative;
240
- }
241
- .sidebar-item.is-active::before,
242
- .sidebar-item[aria-current='page']::before {
243
- content: '';
244
- position: absolute;
245
- left: 0;
246
- top: 50%;
247
- transform: translateY(-50%);
248
- width: 3px;
249
- height: 60%;
250
- border-radius: var(--radius-full);
251
- background: var(--token-accent);
249
+ /* 选中项使用整行圆角底色,不再叠加起始缘指示条(源列表语义)。 */
250
+ .icen-sidebar-item.is-active::before,
251
+ .icen-sidebar-item[aria-current='page']::before {
252
+ content: none;
252
253
  }
253
254
 
254
255
  /* 折叠/轨道模式(icon-only mini sidebar) */
255
- .sidebar--collapsed {
256
- width: 56px;
257
- }
258
- .sidebar--collapsed .sidebar-item-label,
259
- .sidebar--collapsed .sidebar-item-badge,
260
- .sidebar--collapsed .sidebar-section-label,
261
- .sidebar--collapsed .sidebar-group-title-text,
262
- .sidebar--collapsed .sidebar-group-title::after {
256
+ .icen-sidebar--collapsed {
257
+ inline-size: 56px;
258
+ }
259
+ .icen-sidebar--collapsed .icen-sidebar-item-label,
260
+ .icen-sidebar--collapsed .icen-sidebar-item-badge,
261
+ .icen-sidebar--collapsed .icen-sidebar-section-label,
262
+ .icen-sidebar--collapsed .icen-sidebar-group-title-text,
263
+ .icen-sidebar--collapsed .icen-sidebar-group-title::after {
263
264
  display: none;
264
265
  }
265
- .sidebar--collapsed .sidebar-group-title {
266
+ .icen-sidebar--collapsed .icen-sidebar-group-title {
266
267
  justify-content: center;
267
- padding: var(--density-space-sm);
268
+ padding: var(--icen-density-space-sm);
268
269
  }
269
- .sidebar--collapsed .sidebar-item {
270
+ .icen-sidebar--collapsed .icen-sidebar-item {
270
271
  justify-content: center;
271
- padding: var(--density-space-sm);
272
+ padding: var(--icen-density-space-sm);
272
273
  }
273
- .sidebar--collapsed .sidebar-item-icon {
274
+ .icen-sidebar--collapsed .icen-sidebar-item-icon {
274
275
  width: 18px;
275
276
  height: 18px;
276
277
  }
277
278
 
278
279
  /* 侧栏内搜索 */
279
- .sidebar-search {
280
- margin-bottom: var(--density-space-sm);
280
+ .icen-sidebar-search {
281
+ margin-bottom: var(--icen-density-space-sm);
281
282
  }
282
283
 
283
284
  /* 分组分隔线 */
284
- .sidebar-divider {
285
+ .icen-sidebar-divider {
285
286
  height: 1px;
286
- background: var(--token-outline-soft);
287
- margin: var(--density-space-sm) 0;
287
+ background: var(--icen-token-outline-soft);
288
+ margin: var(--icen-density-space-sm) 0;
288
289
  }
289
290
 
290
291
  /* 徽章变体色 */
291
- .sidebar-item-badge--success { background: var(--token-success); }
292
- .sidebar-item-badge--warning { background: var(--token-warning); }
293
- .sidebar-item-badge--error { background: var(--token-error); }
294
- .sidebar-item-badge--dot {
292
+ .icen-sidebar-item-badge--success { background: var(--icen-token-success); }
293
+ .icen-sidebar-item-badge--warning { background: var(--icen-token-warning); }
294
+ .icen-sidebar-item-badge--error { background: var(--icen-token-error); }
295
+ .icen-sidebar-item-badge--dot {
295
296
  width: 8px;
296
297
  min-width: 8px;
297
298
  height: 8px;
298
299
  padding: 0;
299
300
  font-size: 0;
300
301
  }
302
+
303
+ /* 高对比模式:当前项不能只靠填充色 */
304
+ @media (forced-colors: active) {
305
+ .icen-sidebar-item.is-active,
306
+ .icen-sidebar-item[aria-current='page'] {
307
+ background: Highlight;
308
+ color: HighlightText;
309
+ }
310
+ .icen-sidebar-item.is-active .icen-sidebar-item-icon,
311
+ .icen-sidebar-item[aria-current='page'] .icen-sidebar-item-icon { color: HighlightText; }
312
+ }
313
+
314
+ }
@@ -0,0 +1,2 @@
1
+ // kit: sidebar 类型面(构建产物,勿手改)
2
+ export * from '../behaviors/sidebar.mjs';
@@ -0,0 +1,2 @@
1
+ // kit: skeleton 类型面(构建产物,勿手改)
2
+ export {};