@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.
- package/AGENTS.md +82 -254
- package/LICENSE +21 -0
- package/README.md +60 -96
- package/dist/base.css +258 -188
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +1 -1
- package/dist/behaviors/ai-branch.mjs +1011 -94
- package/dist/behaviors/ai-chat.d.mts +9 -9
- package/dist/behaviors/ai-chat.mjs +1122 -169
- package/dist/behaviors/ai-composer.d.mts +47 -15
- package/dist/behaviors/ai-composer.mjs +2018 -534
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1017 -107
- package/dist/behaviors/ai-diff.mjs +1020 -127
- package/dist/behaviors/ai-feedback.d.mts +1 -1
- package/dist/behaviors/ai-feedback.mjs +1036 -126
- package/dist/behaviors/ai-panel.d.mts +10 -10
- package/dist/behaviors/ai-panel.mjs +1285 -266
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +1004 -101
- package/dist/behaviors/ai-threads.d.mts +1 -1
- package/dist/behaviors/ai-threads.mjs +1069 -154
- package/dist/behaviors/ai-tool.d.mts +3 -3
- package/dist/behaviors/ai-tool.mjs +2087 -413
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +5365 -380
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1601 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +952 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +914 -12
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1867 -0
- package/dist/behaviors/charts.d.mts +72 -8
- package/dist/behaviors/charts.mjs +1953 -272
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1619 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +164 -62
- package/dist/behaviors/context-menu.d.mts +10 -9
- package/dist/behaviors/context-menu.mjs +1113 -44
- package/dist/behaviors/controls.d.mts +21 -21
- package/dist/behaviors/controls.mjs +1024 -134
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1207 -42
- package/dist/behaviors/datatable.d.mts +55 -5
- package/dist/behaviors/datatable.mjs +2033 -212
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1341 -293
- package/dist/behaviors/design.d.mts +54 -0
- package/dist/behaviors/design.mjs +109 -0
- package/dist/behaviors/dropdown.d.mts +5 -6
- package/dist/behaviors/dropdown.mjs +262 -110
- package/dist/behaviors/events.d.mts +127 -10
- package/dist/behaviors/events.mjs +58 -3
- package/dist/behaviors/feedback.d.mts +30 -0
- package/dist/behaviors/feedback.mjs +296 -0
- package/dist/behaviors/focus.d.mts +8 -0
- package/dist/behaviors/focus.mjs +24 -0
- package/dist/behaviors/form-validate.d.mts +111 -0
- package/dist/behaviors/form-validate.mjs +1746 -0
- package/dist/behaviors/i18n.d.mts +790 -0
- package/dist/behaviors/i18n.mjs +1713 -0
- package/dist/behaviors/icons.d.mts +93 -0
- package/dist/behaviors/icons.mjs +113 -0
- package/dist/behaviors/input.d.mts +9 -1
- package/dist/behaviors/input.mjs +1059 -60
- package/dist/behaviors/kb-access.d.mts +3 -3
- package/dist/behaviors/kb-access.mjs +2135 -239
- package/dist/behaviors/kb-acl.d.mts +8 -8
- package/dist/behaviors/kb-acl.mjs +1120 -179
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +2120 -435
- package/dist/behaviors/kb-audit.d.mts +3 -3
- package/dist/behaviors/kb-audit.mjs +1077 -154
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +1101 -177
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +1023 -100
- package/dist/behaviors/kb-checkpoint.d.mts +3 -3
- package/dist/behaviors/kb-checkpoint.mjs +1320 -169
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +1153 -213
- package/dist/behaviors/kb-citation.d.mts +3 -3
- package/dist/behaviors/kb-citation.mjs +1221 -185
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +1059 -130
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +1042 -119
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +1105 -176
- package/dist/behaviors/kb-core.d.mts +7 -2
- package/dist/behaviors/kb-core.mjs +1078 -162
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +1977 -144
- package/dist/behaviors/kb-explain.d.mts +3 -3
- package/dist/behaviors/kb-explain.mjs +1037 -104
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +2014 -178
- package/dist/behaviors/kb-gap.d.mts +3 -3
- package/dist/behaviors/kb-gap.mjs +1044 -121
- package/dist/behaviors/kb-hittest.d.mts +3 -3
- package/dist/behaviors/kb-hittest.mjs +1095 -151
- package/dist/behaviors/kb-metadata.mjs +1058 -130
- package/dist/behaviors/kb-passage.d.mts +4 -4
- package/dist/behaviors/kb-passage.mjs +1102 -161
- package/dist/behaviors/kb-pipeline.d.mts +4 -4
- package/dist/behaviors/kb-pipeline.mjs +1083 -162
- package/dist/behaviors/kb-qa.mjs +1089 -160
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +1048 -114
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +2079 -226
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +1996 -159
- package/dist/behaviors/kb-sandbox.d.mts +3 -3
- package/dist/behaviors/kb-sandbox.mjs +1033 -105
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +1112 -179
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1995 -0
- package/dist/behaviors/kb-sources.d.mts +3 -3
- package/dist/behaviors/kb-sources.mjs +1085 -170
- package/dist/behaviors/kb-sql.d.mts +3 -3
- package/dist/behaviors/kb-sql.mjs +1144 -226
- package/dist/behaviors/kb-trace.d.mts +3 -3
- package/dist/behaviors/kb-trace.mjs +1051 -131
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +1087 -158
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +1980 -137
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2153 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1056 -33
- package/dist/behaviors/nav.d.mts +1 -1
- package/dist/behaviors/nav.mjs +6 -6
- package/dist/behaviors/notification.d.mts +16 -8
- package/dist/behaviors/notification.mjs +1629 -268
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +995 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1416 -117
- package/dist/behaviors/sidebar.d.mts +1 -1
- package/dist/behaviors/sidebar.mjs +13 -13
- package/dist/behaviors/slider.d.mts +1 -1
- package/dist/behaviors/slider.mjs +12 -12
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +9 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1090 -0
- package/dist/behaviors/svg-parse.d.mts +14 -0
- package/dist/behaviors/svg-parse.mjs +37 -0
- package/dist/behaviors/tabs.d.mts +2 -2
- package/dist/behaviors/tabs.mjs +35 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1360 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1996 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +406 -30
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1267 -88
- package/dist/behaviors/tooltip.d.mts +4 -0
- package/dist/behaviors/tooltip.mjs +378 -0
- package/dist/behaviors/tree-select.d.mts +69 -0
- package/dist/behaviors/tree-select.mjs +1921 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +18 -18
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1077 -66
- package/dist/behaviors/url-safety.d.mts +8 -0
- package/dist/behaviors/url-safety.mjs +11 -0
- package/dist/cli.mjs +5 -6
- package/dist/components/accordion.d.mts +2 -0
- package/dist/components/ai-branch.d.mts +2 -0
- package/dist/components/ai-chat.css +682 -582
- package/dist/components/ai-chat.d.mts +2 -0
- package/dist/components/ai-composer.d.mts +2 -0
- package/dist/components/ai-context.d.mts +2 -0
- package/dist/components/ai-context.mjs +1 -0
- package/dist/components/ai-diff.css +153 -132
- package/dist/components/ai-diff.d.mts +2 -0
- package/dist/components/ai-feedback.d.mts +2 -0
- package/dist/components/ai-files.d.mts +2 -0
- package/dist/components/ai-message.d.mts +2 -0
- package/dist/components/ai-panel.css +353 -343
- package/dist/components/ai-reasoning.d.mts +2 -0
- package/dist/components/ai-subagent.d.mts +2 -0
- package/dist/components/ai-subagent.mjs +1 -0
- package/dist/components/ai-threads.d.mts +2 -0
- package/dist/components/ai-todo.d.mts +2 -0
- package/dist/components/ai-todo.mjs +1 -0
- package/dist/components/ai-tool-call.d.mts +2 -0
- package/dist/components/ai-tool-call.mjs +1 -0
- package/dist/components/ai-tool.css +397 -242
- package/dist/components/ai-usage.d.mts +2 -0
- package/dist/components/alert.d.mts +2 -0
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.d.mts +2 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/avatar.d.mts +2 -0
- package/dist/components/back-top.css +74 -40
- package/dist/components/back-top.d.mts +2 -0
- package/dist/components/badge.css +44 -41
- package/dist/components/badge.d.mts +2 -0
- package/dist/components/breadcrumb.css +85 -46
- package/dist/components/breadcrumb.d.mts +2 -0
- package/dist/components/btn.css +105 -94
- package/dist/components/btn.d.mts +2 -0
- package/dist/components/card.css +124 -113
- package/dist/components/card.d.mts +2 -0
- package/dist/components/carousel.d.mts +2 -0
- package/dist/components/cascader.css +332 -0
- package/dist/components/cascader.d.mts +2 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +54 -2
- package/dist/components/chart-area.d.mts +2 -0
- package/dist/components/chart-bar.css +147 -38
- package/dist/components/chart-bar.d.mts +2 -0
- package/dist/components/chart-calendar.d.mts +2 -0
- package/dist/components/chart-gauge.css +36 -13
- package/dist/components/chart-gauge.d.mts +2 -0
- package/dist/components/chart-graph.css +35 -20
- package/dist/components/chart-graph.d.mts +2 -0
- package/dist/components/chart-heatmap.css +67 -39
- package/dist/components/chart-heatmap.d.mts +2 -0
- package/dist/components/chart-line.css +62 -3
- package/dist/components/chart-line.d.mts +2 -0
- package/dist/components/chart-map.d.mts +2 -0
- package/dist/components/chart-pie.css +38 -6
- package/dist/components/chart-pie.d.mts +2 -0
- package/dist/components/chart-radar.css +57 -5
- package/dist/components/chart-radar.d.mts +2 -0
- package/dist/components/chart-scatter.css +47 -7
- package/dist/components/chart-scatter.d.mts +2 -0
- package/dist/components/chart-sparkline.css +25 -2
- package/dist/components/chart-sparkline.d.mts +2 -0
- package/dist/components/chart-stack.css +27 -13
- package/dist/components/chart-stack.d.mts +2 -0
- package/dist/components/charts.css +220 -84
- package/dist/components/charts.d.mts +2 -0
- package/dist/components/code-block.css +420 -0
- package/dist/components/code-block.d.mts +2 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +150 -122
- package/dist/components/command-palette.d.mts +2 -0
- package/dist/components/content.css +274 -263
- package/dist/components/context-menu.d.mts +2 -0
- package/dist/components/copy.css +73 -45
- package/dist/components/copy.d.mts +2 -0
- package/dist/components/datatable.css +457 -202
- package/dist/components/datatable.d.mts +2 -0
- package/dist/components/date-picker.css +136 -105
- package/dist/components/date-picker.d.mts +2 -0
- package/dist/components/desc.d.mts +2 -0
- package/dist/components/dropdown.d.mts +2 -0
- package/dist/components/empty.css +72 -69
- package/dist/components/empty.d.mts +2 -0
- package/dist/components/feedback.css +211 -191
- package/dist/components/form-validate.css +134 -0
- package/dist/components/form-validate.d.mts +2 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +157 -131
- package/dist/components/form.d.mts +2 -0
- package/dist/components/icon.css +113 -0
- package/dist/components/icon.d.mts +2 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +163 -108
- package/dist/components/input.d.mts +2 -0
- package/dist/components/kb-access.d.mts +2 -0
- package/dist/components/kb-acl.d.mts +2 -0
- package/dist/components/kb-agent.css +300 -206
- package/dist/components/kb-answer.d.mts +2 -0
- package/dist/components/kb-audit.d.mts +2 -0
- package/dist/components/kb-canvas.d.mts +2 -0
- package/dist/components/kb-chain.d.mts +2 -0
- package/dist/components/kb-checkpoint.d.mts +2 -0
- package/dist/components/kb-chunks.d.mts +2 -0
- package/dist/components/kb-citation.d.mts +2 -0
- package/dist/components/kb-clarify.d.mts +2 -0
- package/dist/components/kb-conflict.d.mts +2 -0
- package/dist/components/kb-connector.d.mts +2 -0
- package/dist/components/kb-data.css +431 -315
- package/dist/components/kb-eval.d.mts +2 -0
- package/dist/components/kb-explain.d.mts +2 -0
- package/dist/components/kb-filter.d.mts +2 -0
- package/dist/components/kb-gap.d.mts +2 -0
- package/dist/components/kb-ground.css +333 -229
- package/dist/components/kb-hittest.d.mts +2 -0
- package/dist/components/kb-ingest.css +613 -434
- package/dist/components/kb-metadata.d.mts +2 -0
- package/dist/components/kb-ops.css +422 -302
- package/dist/components/kb-passage.d.mts +2 -0
- package/dist/components/kb-perm.css +374 -314
- package/dist/components/kb-pipeline.d.mts +2 -0
- package/dist/components/kb-qa.d.mts +2 -0
- package/dist/components/kb-rerank.d.mts +2 -0
- package/dist/components/kb-retrieval.d.mts +2 -0
- package/dist/components/kb-review.d.mts +2 -0
- package/dist/components/kb-sandbox.d.mts +2 -0
- package/dist/components/kb-search.css +653 -459
- package/dist/components/kb-segment.d.mts +2 -0
- package/dist/components/kb-sources.d.mts +2 -0
- package/dist/components/kb-sql.d.mts +2 -0
- package/dist/components/kb-trace.d.mts +2 -0
- package/dist/components/kb-visibility.d.mts +2 -0
- package/dist/components/kb-who-can.d.mts +2 -0
- package/dist/components/kb.css +170 -135
- package/dist/components/kb.d.mts +2 -0
- package/dist/components/kbd.d.mts +2 -0
- package/dist/components/layout.css +86 -83
- package/dist/components/layout.d.mts +2 -0
- package/dist/components/list.d.mts +2 -0
- package/dist/components/material-chinese.css +83 -0
- package/dist/components/material-soviet.css +86 -0
- package/dist/components/material.css +318 -0
- package/dist/components/media-card.d.mts +2 -0
- package/dist/components/media.css +225 -176
- package/dist/components/mentions.css +190 -0
- package/dist/components/mentions.d.mts +2 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +121 -109
- package/dist/components/modal.css +116 -118
- package/dist/components/modal.d.mts +2 -0
- package/dist/components/nav.css +136 -129
- package/dist/components/nav.d.mts +2 -0
- package/dist/components/notification.css +247 -177
- package/dist/components/notification.d.mts +2 -0
- package/dist/components/pagination.css +62 -57
- package/dist/components/pagination.d.mts +2 -0
- package/dist/components/panel.css +70 -68
- package/dist/components/panel.d.mts +2 -0
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +83 -72
- package/dist/components/pill.d.mts +2 -0
- package/dist/components/popover.css +80 -57
- package/dist/components/popover.d.mts +2 -0
- package/dist/components/progress.d.mts +2 -0
- package/dist/components/rating.d.mts +2 -0
- package/dist/components/result.d.mts +2 -0
- package/dist/components/scroll-area.css +29 -54
- package/dist/components/scroll-area.d.mts +2 -0
- package/dist/components/scroll-area.mjs +1 -0
- package/dist/components/segmented.css +167 -146
- package/dist/components/segmented.d.mts +2 -0
- package/dist/components/select.css +250 -191
- package/dist/components/select.d.mts +2 -0
- package/dist/components/sidebar.css +157 -143
- package/dist/components/sidebar.d.mts +2 -0
- package/dist/components/skeleton.d.mts +2 -0
- package/dist/components/slider.css +135 -128
- package/dist/components/slider.d.mts +2 -0
- package/dist/components/spinner.d.mts +2 -0
- package/dist/components/split-pane.css +120 -108
- package/dist/components/split-pane.d.mts +2 -0
- package/dist/components/stat.css +116 -109
- package/dist/components/stat.d.mts +2 -0
- package/dist/components/steps.css +114 -108
- package/dist/components/steps.d.mts +2 -0
- package/dist/components/switch.css +192 -149
- package/dist/components/switch.d.mts +2 -0
- package/dist/components/table.css +158 -112
- package/dist/components/table.d.mts +2 -0
- package/dist/components/tabs.css +143 -116
- package/dist/components/tabs.d.mts +2 -0
- package/dist/components/tag-input.css +52 -133
- package/dist/components/tag-input.d.mts +2 -0
- package/dist/components/tag.css +90 -72
- package/dist/components/tag.d.mts +2 -0
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.d.mts +2 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/timeline.d.mts +2 -0
- package/dist/components/toast.css +115 -97
- package/dist/components/toast.d.mts +2 -0
- package/dist/components/toolbar.css +47 -43
- package/dist/components/toolbar.d.mts +2 -0
- package/dist/components/tooltip.css +103 -43
- package/dist/components/tooltip.d.mts +2 -0
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +439 -0
- package/dist/components/tree-select.d.mts +2 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/tree.d.mts +2 -0
- package/dist/components/upload.css +138 -97
- package/dist/components/upload.d.mts +2 -0
- package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
- package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
- package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
- package/dist/fonts/OFL.txt +96 -0
- package/dist/fonts/README.md +14 -0
- package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
- package/dist/index.d.mts +85 -70
- package/dist/index.mjs +17330 -5773
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8307 -0
- package/dist/registry.json +918 -70
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +371 -1222
- package/dist/tokens/design.css +209 -0
- package/dist/tokens/dtcg.json +15926 -0
- package/dist/tokens/figma.variables.json +10779 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +53 -0
- package/dist/tokens/scrollbars.css +40 -0
- package/dist/tokens/soviet.css +44 -0
- package/dist/tokens/style-profiles.css +36 -547
- package/dist/tokens/themes.json +308 -0
- package/dist/tokens/tokens-studio.json +11648 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1783 -1806
- package/dist/ui.css +14796 -10750
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7876 -0
- package/docs/spec/ai-input-experience.md +75 -0
- package/docs/spec/ai-native.md +238 -147
- package/docs/spec/design-philosophy.md +189 -0
- package/docs/spec/design-primitives.md +196 -0
- package/docs/spec/kb-family.md +147 -115
- package/docs/spec/scrollbars.md +46 -0
- package/package.json +56 -8
- package/dist/retro-effects.css +0 -255
- package/dist/tokens/retro-effects.css +0 -255
- package/docs/research/2026-10-03-ai-kb-components.md +0 -392
- package/docs/research/2026-10-03-kb-permissions.md +0 -992
package/dist/components/kb.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — kb 族共享视觉基座(与 docs/spec/kb-family.md §2 配套)
|
|
3
4
|
*
|
|
@@ -5,248 +6,282 @@
|
|
|
5
6
|
* kb-search/kb-data/kb-ops/kb-agent.css)不再重复定义这里的原语。
|
|
6
7
|
*
|
|
7
8
|
* 设计纪律(族内一致性硬约束):
|
|
8
|
-
* - 数字一律 .kb-num(等宽 + tabular-nums);元信息 .kb-meta(11.5px faint)
|
|
9
|
-
* - 证据引用体 .kb-quote
|
|
10
|
-
* - 行基元 .kb-row(28px 节奏,data-density="compact" 收 24px)
|
|
11
|
-
* - 分数条 .kb-score(序数呈现:条长=排序信号,不标榜比例语义)
|
|
12
|
-
* - 状态点 .kb-dot(语义色,只此一处给状态上色)
|
|
13
|
-
* - 徽标 .kb-badge(official 线框 accent / fresh·stale 中性+警示 / restricted 锁形)
|
|
14
|
-
* - 折叠摘要行 .kb-fold-head(状态徽章 + 计数/时长,muted 内容体 .kb-fold-body)
|
|
9
|
+
* - 数字一律 .icen-kb-num(等宽 + tabular-nums);元信息 .icen-kb-meta(11.5px faint)
|
|
10
|
+
* - 证据引用体 .icen-kb-quote(起始缘 2px 证据线——RTL 自动镜像,颜色只用层级色不用装饰色)
|
|
11
|
+
* - 行基元 .icen-kb-row(28px 节奏,data-icen-density="compact" 收 24px)
|
|
12
|
+
* - 分数条 .icen-kb-score(序数呈现:条长=排序信号,不标榜比例语义)
|
|
13
|
+
* - 状态点 .icen-kb-dot(语义色,只此一处给状态上色)
|
|
14
|
+
* - 徽标 .icen-kb-badge(official 线框 accent / fresh·stale 中性+警示 / restricted 锁形)
|
|
15
|
+
* - 折叠摘要行 .icen-kb-fold-head(状态徽章 + 计数/时长,muted 内容体 .kb-fold-body)
|
|
15
16
|
* - 动效 ≤240ms ease-out;流式脉冲 1.6s;reduced-motion 走全局规则
|
|
16
17
|
*/
|
|
17
18
|
|
|
18
|
-
.kb-row {
|
|
19
|
+
.icen-kb-row {
|
|
19
20
|
display: grid;
|
|
20
21
|
grid-template-columns: auto 1fr auto;
|
|
21
22
|
align-items: center;
|
|
22
23
|
gap: 10px;
|
|
23
|
-
min-height:
|
|
24
|
+
min-height: var(--icen-density-item-height);
|
|
24
25
|
padding: 2px 8px;
|
|
25
|
-
border-radius: var(--radius-
|
|
26
|
+
border-radius: var(--icen-radius-xs);
|
|
27
|
+
transition: background-color var(--icen-tx-fast);
|
|
26
28
|
}
|
|
27
|
-
.kb-row:hover { background: var(--token-
|
|
28
|
-
.kb-row-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
|
|
29
|
-
.kb-row-title {
|
|
30
|
-
font-size:
|
|
31
|
-
color: var(--token-text);
|
|
29
|
+
.icen-kb-row:hover { background: var(--icen-token-fill-hover); }
|
|
30
|
+
.icen-kb-row-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
|
|
31
|
+
.icen-kb-row-title {
|
|
32
|
+
font-size: var(--icen-density-font-size-md);
|
|
33
|
+
color: var(--icen-token-text);
|
|
32
34
|
white-space: nowrap;
|
|
33
35
|
overflow: hidden;
|
|
34
36
|
text-overflow: ellipsis;
|
|
35
37
|
}
|
|
36
|
-
.kb-row-sub { font-size:
|
|
37
|
-
.kb-row-side { display: inline-flex; align-items: center; gap: 8px; }
|
|
38
|
+
.icen-kb-row-sub { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
39
|
+
.icen-kb-row-side { display: inline-flex; align-items: center; gap: 8px; }
|
|
38
40
|
|
|
39
41
|
/* 密度:compact 档(管理台/密集列表) */
|
|
40
|
-
[data-density='compact'] .kb-row { min-height:
|
|
42
|
+
[data-icen-density='compact'] .icen-kb-row { min-height: var(--icen-density-item-height); gap: 8px; }
|
|
41
43
|
|
|
42
44
|
/* 数字与元信息 */
|
|
43
|
-
.kb-num {
|
|
44
|
-
font-family: var(--font-mono
|
|
45
|
+
.icen-kb-num {
|
|
46
|
+
font-family: var(--icen-font-mono);
|
|
45
47
|
font-variant-numeric: tabular-nums;
|
|
46
|
-
font-size:
|
|
47
|
-
|
|
48
|
+
font-size: var(--icen-density-font-size-xs);
|
|
49
|
+
letter-spacing: 0.01em;
|
|
50
|
+
color: var(--icen-token-text-muted);
|
|
48
51
|
white-space: nowrap;
|
|
49
52
|
}
|
|
50
|
-
.kb-meta {
|
|
51
|
-
font-family: var(--font-mono
|
|
52
|
-
font-size:
|
|
53
|
-
letter-spacing: 0.
|
|
54
|
-
color: var(--token-text-faint);
|
|
53
|
+
.icen-kb-meta {
|
|
54
|
+
font-family: var(--icen-font-mono);
|
|
55
|
+
font-size: var(--icen-density-font-size-xs);
|
|
56
|
+
letter-spacing: 0.2px;
|
|
57
|
+
color: var(--icen-token-text-faint);
|
|
55
58
|
white-space: nowrap;
|
|
59
|
+
/* nowrap 必须配省略截断(诚实截断纪律):裸 nowrap 会让长文本横向溢出盖到邻列 */
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
/* 状态点(族内状态色的唯一入口) */
|
|
59
|
-
.kb-dot {
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
65
|
+
.icen-kb-dot {
|
|
66
|
+
width: 6px;
|
|
67
|
+
height: 6px;
|
|
62
68
|
border-radius: 50%;
|
|
63
69
|
flex: 0 0 auto;
|
|
64
|
-
background: var(--token-text-faint);
|
|
70
|
+
background: var(--icen-token-text-faint);
|
|
65
71
|
opacity: 0.6;
|
|
72
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--icen-token-card) 70%, transparent);
|
|
66
73
|
}
|
|
67
|
-
.kb-dot.is-ok { background: var(--token-success); opacity: 1; }
|
|
68
|
-
.kb-dot.is-warn { background: var(--token-warning); opacity: 1; }
|
|
69
|
-
.kb-dot.is-err { background: var(--
|
|
70
|
-
.kb-dot.is-live { background: var(--token-accent); opacity: 1; animation: kb-pulse 1.6s ease-in-out infinite; }
|
|
74
|
+
.icen-kb-dot.is-ok { background: var(--icen-token-success); opacity: 1; }
|
|
75
|
+
.icen-kb-dot.is-warn { background: var(--icen-token-warning); opacity: 1; }
|
|
76
|
+
.icen-kb-dot.is-err { background: var(--icen-token-error); opacity: 1; }
|
|
77
|
+
.icen-kb-dot.is-live { background: var(--icen-token-accent); opacity: 1; animation: kb-pulse 1.6s ease-in-out infinite; }
|
|
71
78
|
|
|
72
79
|
@keyframes kb-pulse {
|
|
73
|
-
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--token-accent) 35%, transparent); }
|
|
74
|
-
50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--token-accent) 0%, transparent); }
|
|
80
|
+
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--icen-token-accent) 35%, transparent); }
|
|
81
|
+
50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--icen-token-accent) 0%, transparent); }
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
/* 分数条(序数纪律:null 分数不渲染条) */
|
|
78
|
-
.kb-score { display: inline-flex; align-items: center; gap: 6px; min-
|
|
79
|
-
.kb-score-bar {
|
|
85
|
+
.icen-kb-score { display: inline-flex; align-items: center; gap: 6px; min-inline-size: 88px; }
|
|
86
|
+
.icen-kb-score-bar {
|
|
80
87
|
flex: 1 1 auto;
|
|
81
88
|
height: 3px;
|
|
82
|
-
border-radius: 2px;
|
|
83
|
-
background: var(--token-line-soft);
|
|
89
|
+
border-radius: 2px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
90
|
+
background: var(--icen-token-line-soft);
|
|
84
91
|
overflow: hidden;
|
|
85
|
-
min-
|
|
92
|
+
min-inline-size: 40px;
|
|
86
93
|
}
|
|
87
|
-
.kb-score-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--token-accent); opacity: 0.
|
|
88
|
-
.kb-score-value { font-family: var(--font-mono
|
|
94
|
+
.icen-kb-score-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--icen-token-accent-strong); opacity: 0.85; /* guard:allow-radius 微构件(指示条等图形级,不属容器圆角面) */ }
|
|
95
|
+
.icen-kb-score-value { font-family: var(--icen-font-mono); font-variant-numeric: tabular-nums; font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); min-inline-size: 34px; text-align: right; /* guard:allow-physical 分数数字右对齐惯例(数字是 LTR 文种,RTL 不镜像) */ }
|
|
89
96
|
|
|
90
|
-
/* 证据引用体(原文摘录、citedText、chunk
|
|
91
|
-
.kb-quote {
|
|
97
|
+
/* 证据引用体(原文摘录、citedText、chunk 预览;证据线沿 inline-start,RTL 镜像) */
|
|
98
|
+
.icen-kb-quote {
|
|
92
99
|
position: relative;
|
|
93
|
-
padding: 2px
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
padding-block: 2px;
|
|
101
|
+
padding-inline-start: 12px;
|
|
102
|
+
font-size: var(--icen-density-font-size-md);
|
|
103
|
+
line-height: 1.75;
|
|
104
|
+
color: var(--icen-token-text-muted);
|
|
97
105
|
}
|
|
98
|
-
.kb-quote::before {
|
|
106
|
+
.icen-kb-quote::before {
|
|
99
107
|
content: '';
|
|
100
108
|
position: absolute;
|
|
101
|
-
|
|
109
|
+
inset-inline-start: 0;
|
|
102
110
|
top: 4px;
|
|
103
111
|
bottom: 4px;
|
|
104
112
|
width: 2px;
|
|
105
|
-
border-radius: 1px;
|
|
106
|
-
background: var(--token-line);
|
|
107
|
-
}
|
|
108
|
-
.kb-quote mark,
|
|
109
|
-
.kb-passage-body mark,
|
|
110
|
-
.kb-hit mark {
|
|
111
|
-
background: color-mix(in srgb, var(--token-accent) 18%, transparent);
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
border-radius: 1px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
114
|
+
background: var(--icen-token-line);
|
|
115
|
+
}
|
|
116
|
+
.icen-kb-quote mark,
|
|
117
|
+
.icen-kb-passage-body mark,
|
|
118
|
+
.icen-kb-hit mark {
|
|
119
|
+
background: color-mix(in srgb, var(--icen-token-accent) 18%, transparent);
|
|
120
|
+
/* 全量正文色:命中片段底色是 muted,inherit 只有 ~3.8-4.2:1(12.5px 低于 AA);
|
|
121
|
+
高亮词本就该比环绕文本更醒目而非更淡 */
|
|
122
|
+
color: var(--icen-token-text);
|
|
123
|
+
border-radius: 2px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
114
124
|
padding: 0 2px;
|
|
115
125
|
}
|
|
116
|
-
/* 多命中分色(data-hit 轮转 3 色) */
|
|
117
|
-
.kb-quote mark[data-hit='1'],
|
|
118
|
-
.kb-passage-body mark[data-hit='1'] { background: color-mix(in srgb, var(--token-warning) 22%, transparent); }
|
|
119
|
-
.kb-quote mark[data-hit='2'],
|
|
120
|
-
.kb-passage-body mark[data-hit='2'] { background: color-mix(in srgb, var(--token-info
|
|
126
|
+
/* 多命中分色(data-icen-hit 轮转 3 色) */
|
|
127
|
+
.icen-kb-quote mark[data-icen-hit='1'],
|
|
128
|
+
.icen-kb-passage-body mark[data-icen-hit='1'] { background: color-mix(in srgb, var(--icen-token-warning) 22%, transparent); }
|
|
129
|
+
.icen-kb-quote mark[data-icen-hit='2'],
|
|
130
|
+
.icen-kb-passage-body mark[data-icen-hit='2'] { background: color-mix(in srgb, var(--icen-token-info) 20%, transparent); }
|
|
121
131
|
|
|
122
132
|
/* 徽标(来源元数据:官方/新鲜度/权限) */
|
|
123
|
-
.kb-badge {
|
|
133
|
+
.icen-kb-badge {
|
|
124
134
|
display: inline-flex;
|
|
125
135
|
align-items: center;
|
|
126
136
|
gap: 4px;
|
|
127
|
-
|
|
137
|
+
min-height: 22px;
|
|
138
|
+
padding: 0 7px;
|
|
139
|
+
font-size: var(--icen-density-font-size-xs);
|
|
128
140
|
line-height: 1;
|
|
129
|
-
letter-spacing:
|
|
130
|
-
color: var(--token-text-
|
|
131
|
-
border: 1px solid var(--token-
|
|
132
|
-
border-radius:
|
|
133
|
-
padding: 2.5px 7px;
|
|
141
|
+
letter-spacing: .02em;
|
|
142
|
+
color: var(--icen-token-text-muted);
|
|
143
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
144
|
+
border-radius: var(--icen-radius-full);
|
|
134
145
|
white-space: nowrap;
|
|
135
146
|
}
|
|
136
|
-
.kb-badge svg { width:
|
|
137
|
-
.kb-badge--official {
|
|
138
|
-
color: var(--token-accent);
|
|
139
|
-
border-color: color-mix(in srgb, var(--token-accent) 45%, transparent);
|
|
140
|
-
background: var(--token-accent-subtle
|
|
147
|
+
.icen-kb-badge svg { width: 11px; height: 11px; }
|
|
148
|
+
.icen-kb-badge--official {
|
|
149
|
+
color: var(--icen-token-accent-text);
|
|
150
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 45%, transparent);
|
|
151
|
+
background: var(--icen-token-accent-subtle);
|
|
141
152
|
}
|
|
142
|
-
.kb-badge--stale { color: var(--token-warning); border-color: color-mix(in srgb, var(--token-warning) 40%, transparent); }
|
|
143
|
-
.kb-badge--restricted { color: var(--token-text-faint); }
|
|
144
|
-
.kb-badge--trusted {
|
|
145
|
-
color: var(--token-success);
|
|
146
|
-
border-color: color-mix(in srgb, var(--token-success) 45%, transparent);
|
|
147
|
-
background: color-mix(in srgb, var(--token-success) 8%, transparent);
|
|
153
|
+
.icen-kb-badge--stale { color: color-mix(in srgb, var(--icen-token-warning) 50%, var(--icen-token-text)); border-color: color-mix(in srgb, var(--icen-token-warning) 40%, transparent); }
|
|
154
|
+
.icen-kb-badge--restricted { color: var(--icen-token-text-faint); }
|
|
155
|
+
.icen-kb-badge--trusted {
|
|
156
|
+
color: var(--icen-token-success);
|
|
157
|
+
border-color: color-mix(in srgb, var(--icen-token-success) 45%, transparent);
|
|
158
|
+
background: color-mix(in srgb, var(--icen-token-success) 8%, transparent);
|
|
148
159
|
}
|
|
149
|
-
.kb-badge--admin { font-family: var(--font-mono
|
|
160
|
+
.icen-kb-badge--admin { font-family: var(--icen-font-mono); }
|
|
150
161
|
|
|
151
|
-
/* 中性 chip(表名/关键词/过滤值;展示性标签用 tag.css 的 .tag,这里只做 kb 域自持变体) */
|
|
152
|
-
.kb-chip {
|
|
162
|
+
/* 中性 chip(表名/关键词/过滤值;展示性标签用 tag.css 的 .icen-tag,这里只做 kb 域自持变体) */
|
|
163
|
+
.icen-kb-chip {
|
|
153
164
|
display: inline-flex;
|
|
154
165
|
align-items: center;
|
|
155
166
|
gap: 4px;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
167
|
+
min-height: 22px;
|
|
168
|
+
padding: 0 7px;
|
|
169
|
+
font-family: var(--icen-font-mono);
|
|
170
|
+
font-size: var(--icen-density-font-size-xs);
|
|
171
|
+
letter-spacing: 0.01em;
|
|
172
|
+
color: var(--icen-token-text-muted);
|
|
173
|
+
background: var(--icen-token-bg-soft);
|
|
174
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
175
|
+
border-radius: var(--icen-radius-sm);
|
|
176
|
+
max-inline-size: 220px;
|
|
164
177
|
white-space: nowrap;
|
|
165
178
|
overflow: hidden;
|
|
166
179
|
text-overflow: ellipsis;
|
|
167
180
|
}
|
|
168
181
|
|
|
169
182
|
/* 折叠两段式(摘要行 + muted 内容体;与 ai 族渐进披露同构) */
|
|
170
|
-
.kb-fold-head {
|
|
183
|
+
.icen-kb-fold-head {
|
|
171
184
|
display: flex;
|
|
172
185
|
align-items: center;
|
|
173
186
|
gap: 8px;
|
|
174
187
|
width: 100%;
|
|
175
|
-
min-height:
|
|
188
|
+
min-height: var(--icen-density-item-height);
|
|
176
189
|
padding: 2px 8px;
|
|
177
190
|
border: none;
|
|
178
191
|
background: none;
|
|
179
|
-
border-radius: var(--radius-sm
|
|
192
|
+
border-radius: var(--icen-radius-sm);
|
|
180
193
|
font: inherit;
|
|
181
|
-
font-size:
|
|
182
|
-
color: var(--token-text-muted);
|
|
194
|
+
font-size: var(--icen-density-font-size-md);
|
|
195
|
+
color: var(--icen-token-text-muted);
|
|
183
196
|
cursor: pointer;
|
|
184
|
-
text-align:
|
|
197
|
+
text-align: start;
|
|
198
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
185
199
|
}
|
|
186
|
-
.kb-fold-head:hover { color: var(--token-text); background: var(--token-
|
|
187
|
-
.kb-fold-head:
|
|
188
|
-
.kb-fold-
|
|
200
|
+
.icen-kb-fold-head:hover { color: var(--icen-token-text); background: var(--icen-token-fill-hover); }
|
|
201
|
+
.icen-kb-fold-head:active { background: var(--icen-token-fill-pressed); }
|
|
202
|
+
.icen-kb-fold-head:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
203
|
+
.icen-kb-fold-caret {
|
|
189
204
|
display: inline-block;
|
|
190
205
|
width: 1em;
|
|
191
|
-
color: var(--token-text-faint);
|
|
192
|
-
font-size:
|
|
193
|
-
transition: transform
|
|
206
|
+
color: var(--icen-token-text-faint);
|
|
207
|
+
font-size: var(--icen-density-font-size-xs);
|
|
208
|
+
transition: transform var(--icen-tx-fast);
|
|
194
209
|
flex: 0 0 auto;
|
|
195
210
|
}
|
|
196
|
-
.kb-fold-head[aria-expanded='true'] .kb-fold-caret { transform: rotate(90deg); }
|
|
197
|
-
.kb-fold-count { margin-
|
|
211
|
+
.icen-kb-fold-head[aria-expanded='true'] .icen-kb-fold-caret { transform: rotate(90deg); }
|
|
212
|
+
.icen-kb-fold-count { margin-inline-start: auto; }
|
|
198
213
|
|
|
199
214
|
/* 键位提示(标注队列快捷键等) */
|
|
200
|
-
.kb-key {
|
|
201
|
-
font-family: var(--font-mono
|
|
202
|
-
font-size:
|
|
203
|
-
|
|
204
|
-
|
|
215
|
+
.icen-kb-key {
|
|
216
|
+
font-family: var(--icen-font-mono);
|
|
217
|
+
font-size: var(--icen-density-font-size-xs);
|
|
218
|
+
line-height: 1;
|
|
219
|
+
color: var(--icen-token-text-faint);
|
|
220
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
205
221
|
border-bottom-width: 2px;
|
|
206
|
-
border-radius: 4px;
|
|
207
|
-
padding:
|
|
208
|
-
background: var(--token-bg-soft);
|
|
222
|
+
border-radius: 4px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
223
|
+
padding: 3px 5px;
|
|
224
|
+
background: var(--icen-token-bg-soft);
|
|
209
225
|
}
|
|
210
226
|
|
|
211
227
|
/* 空态/无死路行动(组件空态的最小底座;复杂空态用 empty.css) */
|
|
212
|
-
.kb-empty {
|
|
228
|
+
.icen-kb-empty {
|
|
213
229
|
display: flex;
|
|
214
230
|
flex-direction: column;
|
|
215
231
|
align-items: center;
|
|
216
232
|
gap: 8px;
|
|
217
233
|
padding: 28px 16px;
|
|
218
|
-
color: var(--token-text-faint);
|
|
219
|
-
font-size:
|
|
234
|
+
color: var(--icen-token-text-faint);
|
|
235
|
+
font-size: var(--icen-density-font-size-xs);
|
|
236
|
+
line-height: 1.6;
|
|
220
237
|
text-align: center;
|
|
221
238
|
}
|
|
222
239
|
|
|
223
240
|
/* 截断/边界声明(诚实呈现) */
|
|
224
|
-
.kb-notice {
|
|
241
|
+
.icen-kb-notice {
|
|
225
242
|
display: flex;
|
|
226
243
|
align-items: center;
|
|
227
244
|
gap: 6px;
|
|
228
|
-
font-size:
|
|
229
|
-
|
|
230
|
-
|
|
245
|
+
font-size: var(--icen-density-font-size-xs);
|
|
246
|
+
line-height: 1.5;
|
|
247
|
+
color: var(--icen-token-text-faint);
|
|
248
|
+
padding: 6px 8px;
|
|
231
249
|
}
|
|
232
|
-
.kb-notice svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
250
|
+
.icen-kb-notice svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
233
251
|
/* flex 容器内 hidden 会被 display 覆盖——notice 显隐必须显式归零 */
|
|
234
|
-
.kb-notice[hidden] { display: none; }
|
|
252
|
+
.icen-kb-notice[hidden] { display: none; }
|
|
235
253
|
|
|
236
254
|
/* 检索过滤层徽标(权限域注入检索域的共享原语,放基座使 kit/kb-retrieval 与 kit/kb-* 均自持;
|
|
237
255
|
三态:pre ✓ 安全基线 / post ⚠ 缺陷层 / none ✕ fail-open 危险——spec §9.0-1/§9.7) */
|
|
238
|
-
.kb-layer-chip {
|
|
239
|
-
font-family: var(--font-mono
|
|
240
|
-
font-size:
|
|
256
|
+
.icen-kb-layer-chip {
|
|
257
|
+
font-family: var(--icen-font-mono);
|
|
258
|
+
font-size: var(--icen-density-font-size-xs);
|
|
259
|
+
min-height: 22px;
|
|
241
260
|
cursor: pointer;
|
|
242
261
|
}
|
|
243
|
-
.kb-layer-chip[data-layer='pre'] { color: var(--token-success); border-color: color-mix(in srgb, var(--token-success) 45%, transparent); }
|
|
244
|
-
.kb-layer-chip[data-layer='post'] { color: var(--token-warning); border-color: color-mix(in srgb, var(--token-warning) 45%, transparent); }
|
|
245
|
-
.kb-layer-chip[data-layer='none'] { color: var(--token-error
|
|
246
|
-
.kb-layer-chip:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
262
|
+
.icen-kb-layer-chip[data-icen-layer='pre'] { color: var(--icen-token-success); border-color: color-mix(in srgb, var(--icen-token-success) 45%, transparent); }
|
|
263
|
+
.icen-kb-layer-chip[data-icen-layer='post'] { color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent); }
|
|
264
|
+
.icen-kb-layer-chip[data-icen-layer='none'] { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
|
|
265
|
+
.icen-kb-layer-chip:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
247
266
|
|
|
248
267
|
|
|
249
|
-
/* 动效守卫:kb-pulse(.kb-dot.is-live 的存活脉冲)在减少动效偏好下停帧(保持静态高亮,不隐状态) */
|
|
268
|
+
/* 动效守卫:kb-pulse(.icen-kb-dot.is-live 的存活脉冲)在减少动效偏好下停帧(保持静态高亮,不隐状态) */
|
|
250
269
|
@media (prefers-reduced-motion: reduce) {
|
|
251
|
-
.kb-dot.is-live { animation: none; }
|
|
270
|
+
.icen-kb-dot.is-live { animation: none; }
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* 高对比模式:状态与证据结构不能只靠底色差 */
|
|
274
|
+
@media (forced-colors: active) {
|
|
275
|
+
.icen-kb-dot { border: 1px solid CanvasText; }
|
|
276
|
+
.icen-kb-badge,
|
|
277
|
+
.icen-kb-chip,
|
|
278
|
+
.icen-kb-key { border-color: CanvasText; }
|
|
279
|
+
.icen-kb-score-bar { border: 1px solid CanvasText; }
|
|
280
|
+
.icen-kb-quote::before { background: CanvasText; }
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* ── RTL:方向性折叠 caret 镜像(▸ 收起态指向行进方向) ── */
|
|
284
|
+
:is([dir='rtl']) .icen-kb-fold-caret { transform: scaleX(-1); }
|
|
285
|
+
:is([dir='rtl']) .icen-kb-fold-head[aria-expanded='true'] .icen-kb-fold-caret { transform: rotate(90deg) scaleX(-1); }
|
|
286
|
+
|
|
252
287
|
}
|