@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
|
@@ -1,38 +1,61 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-gauge(进度环 / 仪表盘专属样式)
|
|
3
4
|
* 依赖:charts.css(基座 --chart-tone)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderGauge 构建:
|
|
6
|
-
* .chart-gauge > svg[viewBox="0 0 120 120"](-90° 起笔,环形单值)
|
|
7
|
-
* > .chart-gauge-center > .chart-gauge-value + .chart-gauge-label
|
|
7
|
+
* .icen-chart-gauge > svg[viewBox="0 0 120 120"](-90° 起笔,环形单值)
|
|
8
|
+
* > .icen-chart-gauge-center > .icen-chart-gauge-value + .icen-chart-gauge-label
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
|
-
.chart-gauge {
|
|
11
|
+
.icen-chart-gauge {
|
|
11
12
|
position: relative;
|
|
12
13
|
width: 132px;
|
|
13
14
|
flex-shrink: 0;
|
|
14
15
|
}
|
|
15
|
-
.chart-gauge > svg {
|
|
16
|
+
.icen-chart-gauge > svg {
|
|
16
17
|
display: block;
|
|
17
18
|
width: 132px;
|
|
18
19
|
height: 132px;
|
|
20
|
+
overflow: visible;
|
|
19
21
|
}
|
|
20
|
-
|
|
22
|
+
/* 轨道与进度同宽(10);轨道压到 6 成,进度弧圆头收口 */
|
|
23
|
+
.icen-chart-gauge svg circle {
|
|
24
|
+
stroke-width: 10;
|
|
25
|
+
}
|
|
26
|
+
.icen-chart-gauge svg circle:first-of-type {
|
|
27
|
+
opacity: 0.7;
|
|
28
|
+
}
|
|
29
|
+
.icen-chart-gauge-center {
|
|
21
30
|
position: absolute;
|
|
22
31
|
inset: 0;
|
|
23
32
|
display: flex;
|
|
24
33
|
flex-direction: column;
|
|
25
34
|
align-items: center;
|
|
26
35
|
justify-content: center;
|
|
27
|
-
gap:
|
|
36
|
+
gap: 2px;
|
|
37
|
+
text-align: center;
|
|
28
38
|
}
|
|
29
|
-
.chart-gauge-value {
|
|
30
|
-
font-size: var(--density-font-size-2xl);
|
|
31
|
-
font-weight:
|
|
39
|
+
.icen-chart-gauge-value {
|
|
40
|
+
font-size: var(--icen-density-font-size-2xl);
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
line-height: 1.05;
|
|
43
|
+
letter-spacing: -0.02em;
|
|
32
44
|
font-variant-numeric: tabular-nums;
|
|
33
|
-
color: var(--token-text);
|
|
45
|
+
color: var(--icen-token-text);
|
|
46
|
+
}
|
|
47
|
+
.icen-chart-gauge-label {
|
|
48
|
+
max-width: 88px;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
font-size: 11px;
|
|
53
|
+
letter-spacing: 0.01em;
|
|
54
|
+
color: var(--icen-token-text-faint);
|
|
34
55
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
56
|
+
|
|
57
|
+
@media (forced-colors: active) {
|
|
58
|
+
.icen-chart-gauge svg circle:first-of-type { stroke: CanvasText; }
|
|
59
|
+
}
|
|
60
|
+
|
|
38
61
|
}
|
|
@@ -1,57 +1,72 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-graph(知识图谱 / 力导向 node-link 专属样式)
|
|
3
|
-
* 依赖:charts.css(基座 .chart / tooltip / [data-chart-mark] 交互态 / 可切换图例)
|
|
4
|
+
* 依赖:charts.css(基座 .icen-chart / tooltip / [data-icen-chart-mark] 交互态 / 可切换图例)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderGraph 构建:
|
|
6
|
-
* .chart-graph > svg(360×260 viewBox)
|
|
7
|
-
* ├ g.chart-graph-edges > line.chart-graph-edge(line-soft,簇隐藏联动 .is-off)
|
|
8
|
-
* └ g.chart-graph-nodes > g.chart-graph-node(transform 定位)
|
|
9
|
-
* ├ circle.chart-graph-dot(簇调色;r = 6 + weight 归一 × 12)
|
|
7
|
+
* .icen-chart-graph > svg(360×260 viewBox)
|
|
8
|
+
* ├ g.chart-graph-edges > line.icen-chart-graph-edge(line-soft,簇隐藏联动 .is-off)
|
|
9
|
+
* └ g.chart-graph-nodes > g.icen-chart-graph-node(transform 定位)
|
|
10
|
+
* ├ circle.icen-chart-graph-dot(簇调色;r = 6 + weight 归一 × 12)
|
|
10
11
|
* ├ circle.chart-graph-hit(透明命中圆)+ <title>
|
|
11
12
|
* 布局确定性(同数据同布局,无随机源);拖拽 = pointer + 局部松弛(rAF,
|
|
12
13
|
* 拖拽节点 .is-drag 描边 accent)。
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
|
-
.chart-graph svg {
|
|
16
|
+
.icen-chart-graph svg {
|
|
16
17
|
width: 100%;
|
|
17
18
|
height: auto;
|
|
18
19
|
display: block;
|
|
20
|
+
overflow: visible;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
/*
|
|
22
|
-
.chart-graph-edge {
|
|
23
|
+
/* 边:不参与命中(交互只留节点),任一端簇隐藏时淡化;权重宽度由行为直出 */
|
|
24
|
+
.icen-chart-graph-edge {
|
|
23
25
|
pointer-events: none;
|
|
26
|
+
stroke: var(--icen-token-line);
|
|
27
|
+
opacity: 0.9;
|
|
24
28
|
transition: opacity var(--icen-tx-fast);
|
|
25
29
|
}
|
|
26
|
-
.chart-graph-edge.is-off {
|
|
27
|
-
opacity: 0.
|
|
30
|
+
.icen-chart-graph-edge.is-off {
|
|
31
|
+
opacity: 0.08;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
/* 节点:拖拽抓手(触屏禁默认手势,pointer 拖拽不滚动页面) */
|
|
31
|
-
.chart-graph .chart-graph-node {
|
|
35
|
+
.icen-chart-graph .icen-chart-graph-node {
|
|
32
36
|
cursor: grab;
|
|
33
37
|
touch-action: none;
|
|
34
38
|
}
|
|
35
|
-
.chart-graph .chart-graph-node:active {
|
|
39
|
+
.icen-chart-graph .icen-chart-graph-node:active {
|
|
36
40
|
cursor: grabbing;
|
|
37
41
|
}
|
|
38
|
-
.chart-graph-dot {
|
|
39
|
-
transition: stroke var(--icen-tx-fast), stroke-width var(--icen-tx-fast);
|
|
42
|
+
.icen-chart-graph-dot {
|
|
43
|
+
transition: stroke var(--icen-tx-fast), stroke-width var(--icen-tx-fast), filter var(--icen-tx-fast);
|
|
40
44
|
}
|
|
41
45
|
/* hover:描边换前景色(bindDatumEvents 挂 .is-hover) */
|
|
42
|
-
.chart-graph-node.is-hover .chart-graph-dot {
|
|
43
|
-
stroke: var(--token-text);
|
|
46
|
+
.icen-chart-graph-node.is-hover .icen-chart-graph-dot {
|
|
47
|
+
stroke: var(--icen-token-text);
|
|
44
48
|
stroke-width: 2;
|
|
49
|
+
filter: brightness(1.05);
|
|
45
50
|
}
|
|
46
51
|
/* 拖拽态:accent 描边 */
|
|
47
|
-
.chart-graph-node.is-drag .chart-graph-dot {
|
|
48
|
-
stroke: var(--token-accent);
|
|
52
|
+
.icen-chart-graph-node.is-drag .icen-chart-graph-dot {
|
|
53
|
+
stroke: var(--icen-token-accent);
|
|
49
54
|
stroke-width: 2.5;
|
|
50
55
|
}
|
|
56
|
+
.icen-chart-graph-node.is-off {
|
|
57
|
+
opacity: 0.16;
|
|
58
|
+
}
|
|
51
59
|
|
|
52
60
|
@media (prefers-reduced-motion: reduce) {
|
|
53
|
-
.chart-graph-edge,
|
|
54
|
-
.chart-graph-dot {
|
|
61
|
+
.icen-chart-graph-edge,
|
|
62
|
+
.icen-chart-graph-dot {
|
|
55
63
|
transition: none;
|
|
56
64
|
}
|
|
57
65
|
}
|
|
66
|
+
|
|
67
|
+
@media (forced-colors: active) {
|
|
68
|
+
.icen-chart-graph-edge { stroke: GrayText; }
|
|
69
|
+
.icen-chart-graph-dot { stroke: CanvasText; }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-heatmap(热力图 / 贡献图专属样式)
|
|
3
4
|
* 依赖:charts.css(基座 --chart-tone)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderHeatmap 构建:
|
|
6
|
-
* .chart-heatmap > .chart-heatmap-grid > .chart-heatmap-cell[data-level=0-4][.is-blank]
|
|
7
|
-
* > .chart-heatmap-legend
|
|
8
|
-
* 7 行(周一→周日)× N 周列,5 档色阶(data-level 0-4)。
|
|
7
|
+
* .icen-chart-heatmap > .icen-chart-heatmap-grid > .icen-chart-heatmap-cell[data-icen-level=0-4][.is-blank]
|
|
8
|
+
* > .icen-chart-heatmap-legend
|
|
9
|
+
* 7 行(周一→周日)× N 周列,5 档色阶(data-icen-level 0-4)。
|
|
10
|
+
*
|
|
11
|
+
* RTL 豁免(guard 文件级白名单 scripts/guard/rtl.ts):热力图格子按列号物理百分比定位
|
|
12
|
+
* (贡献图坐标系),RTL 不镜像。
|
|
9
13
|
*/
|
|
10
14
|
|
|
11
|
-
.chart-heatmap {
|
|
15
|
+
.icen-chart-heatmap {
|
|
12
16
|
display: flex;
|
|
13
17
|
flex-direction: column;
|
|
14
|
-
gap:
|
|
18
|
+
gap: 6px;
|
|
15
19
|
}
|
|
16
|
-
.chart-heatmap-grid {
|
|
20
|
+
.icen-chart-heatmap-grid {
|
|
17
21
|
display: grid;
|
|
18
22
|
grid-template-rows: repeat(7, 1fr);
|
|
19
23
|
grid-auto-flow: column;
|
|
@@ -21,72 +25,96 @@
|
|
|
21
25
|
gap: 3px;
|
|
22
26
|
width: 100%;
|
|
23
27
|
}
|
|
24
|
-
.chart-heatmap-cell {
|
|
28
|
+
.icen-chart-heatmap-cell {
|
|
25
29
|
aspect-ratio: 1;
|
|
26
|
-
border-radius:
|
|
27
|
-
background: var(--token-fill-2);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.chart-heatmap-cell
|
|
31
|
-
.chart-heatmap-cell[data-level='
|
|
32
|
-
.chart-heatmap-cell[data-level='
|
|
33
|
-
.chart-heatmap-cell[data-level='
|
|
34
|
-
.chart-heatmap-cell:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
border-radius: var(--icen-radius-xs);
|
|
31
|
+
background: color-mix(in srgb, var(--icen-token-fill-2) 80%, transparent);
|
|
32
|
+
transition: box-shadow var(--icen-tx-fast), filter var(--icen-tx-fast);
|
|
33
|
+
}
|
|
34
|
+
.icen-chart-heatmap-cell.is-blank { background: transparent; }
|
|
35
|
+
.icen-chart-heatmap-cell[data-icen-level='1'] { background: color-mix(in srgb, var(--chart-tone, var(--icen-token-accent)) 24%, var(--icen-token-fill-2)); }
|
|
36
|
+
.icen-chart-heatmap-cell[data-icen-level='2'] { background: color-mix(in srgb, var(--chart-tone, var(--icen-token-accent)) 46%, var(--icen-token-fill-2)); }
|
|
37
|
+
.icen-chart-heatmap-cell[data-icen-level='3'] { background: color-mix(in srgb, var(--chart-tone, var(--icen-token-accent)) 70%, var(--icen-token-fill-2)); }
|
|
38
|
+
.icen-chart-heatmap-cell[data-icen-level='4'] { background: var(--chart-tone, var(--icen-token-accent)); }
|
|
39
|
+
|
|
40
|
+
/* hover:面色内圈 + 色环外圈(不改变格子尺寸,网格不跳) */
|
|
41
|
+
.icen-chart-heatmap-cell:not(.is-blank):hover {
|
|
42
|
+
box-shadow:
|
|
43
|
+
0 0 0 1.5px var(--icen-token-card),
|
|
44
|
+
0 0 0 2.5px var(--chart-tone, var(--icen-token-accent));
|
|
45
|
+
}
|
|
46
|
+
.icen-chart-heatmap-cell:not(.is-blank):active {
|
|
47
|
+
filter: brightness(0.94);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icen-chart-heatmap-legend {
|
|
39
51
|
display: flex;
|
|
40
52
|
align-items: center;
|
|
41
53
|
justify-content: flex-end;
|
|
42
|
-
gap:
|
|
43
|
-
font-size:
|
|
44
|
-
|
|
54
|
+
gap: 4px;
|
|
55
|
+
font-size: 11px;
|
|
56
|
+
letter-spacing: 0.01em;
|
|
57
|
+
color: var(--icen-token-text-faint);
|
|
45
58
|
}
|
|
46
|
-
.chart-heatmap-legend .chart-heatmap-cell {
|
|
59
|
+
.icen-chart-heatmap-legend .icen-chart-heatmap-cell {
|
|
47
60
|
width: 10px;
|
|
48
61
|
height: 10px;
|
|
49
62
|
aspect-ratio: auto;
|
|
63
|
+
border-radius: 2px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
50
64
|
}
|
|
51
|
-
.chart-heatmap-legend > span:first-child { margin-right: 2px; }
|
|
52
|
-
.chart-heatmap-legend > span:last-child { margin-left: 2px; }
|
|
65
|
+
.icen-chart-heatmap-legend > span:first-child { margin-right: 2px; }
|
|
66
|
+
.icen-chart-heatmap-legend > span:last-child { margin-left: 2px; }
|
|
53
67
|
|
|
54
68
|
/* ── 贡献日历(renderCalendar):月份标签 + 星期列 + 周格 ──
|
|
55
69
|
* 布局 grid:左列星期标签(一/三/五/日),右列自上而下 月份行 / 周格 / 图例。
|
|
56
70
|
* 月份标签按周列定位:left = col / columns * 100%。 */
|
|
57
|
-
.chart-calendar {
|
|
71
|
+
.icen-chart-calendar {
|
|
58
72
|
display: grid;
|
|
59
|
-
grid-template-columns:
|
|
73
|
+
grid-template-columns: 16px 1fr;
|
|
60
74
|
grid-template-rows: 14px auto auto;
|
|
61
|
-
column-gap:
|
|
62
|
-
row-gap:
|
|
75
|
+
column-gap: 6px;
|
|
76
|
+
row-gap: 4px;
|
|
63
77
|
}
|
|
64
|
-
.chart-calendar-months {
|
|
78
|
+
.icen-chart-calendar-months {
|
|
65
79
|
grid-column: 2;
|
|
66
80
|
position: relative;
|
|
67
|
-
font-size:
|
|
68
|
-
|
|
81
|
+
font-size: 10px;
|
|
82
|
+
letter-spacing: 0.01em;
|
|
83
|
+
color: var(--icen-token-text-faint);
|
|
69
84
|
}
|
|
70
|
-
.chart-calendar-month {
|
|
85
|
+
.icen-chart-calendar-month {
|
|
71
86
|
position: absolute;
|
|
72
87
|
top: 0;
|
|
73
88
|
left: calc(var(--col, 0) / var(--columns, 1) * 100%);
|
|
74
89
|
white-space: nowrap;
|
|
75
90
|
}
|
|
76
|
-
.chart-calendar-weekdays {
|
|
91
|
+
.icen-chart-calendar-weekdays {
|
|
77
92
|
grid-column: 1;
|
|
78
93
|
grid-row: 2;
|
|
79
94
|
display: grid;
|
|
80
95
|
grid-template-rows: repeat(7, 1fr);
|
|
81
|
-
|
|
82
|
-
|
|
96
|
+
align-items: center;
|
|
97
|
+
font-size: 10px;
|
|
98
|
+
color: var(--icen-token-text-faint);
|
|
83
99
|
line-height: 1;
|
|
84
100
|
}
|
|
85
|
-
.chart-calendar .chart-heatmap-grid {
|
|
101
|
+
.icen-chart-calendar .icen-chart-heatmap-grid {
|
|
86
102
|
grid-column: 2;
|
|
87
103
|
grid-row: 2;
|
|
104
|
+
gap: 2px;
|
|
88
105
|
}
|
|
89
|
-
.chart-calendar .chart-heatmap-legend {
|
|
106
|
+
.icen-chart-calendar .icen-chart-heatmap-legend {
|
|
90
107
|
grid-column: 2;
|
|
91
108
|
grid-row: 3;
|
|
92
109
|
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-reduced-motion: reduce) {
|
|
112
|
+
.icen-chart-heatmap-cell { transition: none; }
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@media (forced-colors: active) {
|
|
116
|
+
.icen-chart-heatmap-cell { border: 1px solid CanvasText; }
|
|
117
|
+
.icen-chart-heatmap-cell.is-blank { border-color: transparent; }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}
|
|
@@ -1,15 +1,74 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-line(折线图专属样式)
|
|
3
4
|
* 依赖:charts.css(基座)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderLine 构建:
|
|
6
|
-
* .chart-line > svg[viewBox="0 0 360 150"]
|
|
7
|
-
* 含面积渐变 + 网格线 + 数据点 + 底部 .chart-labels。
|
|
7
|
+
* .icen-chart-line > svg[viewBox="0 0 360 150"]
|
|
8
|
+
* 含面积渐变 + 网格线 + 数据点 + 底部 .icen-chart-labels。
|
|
9
|
+
* 网格线带 .icen-chart-grid,最底一条同时带 .icen-chart-baseline(轴基线加重)。
|
|
10
|
+
* spec.marks 的 SVG 标记(.icen-chart-mark-line 参考线 / .icen-chart-mark-point
|
|
11
|
+
* 标记点 + .icen-chart-mark-label 标注)直接追加进本 svg,样式属性直出(挡指针事件在基座)。
|
|
8
12
|
*/
|
|
9
13
|
|
|
10
|
-
.chart-line
|
|
14
|
+
.icen-chart-line {
|
|
15
|
+
position: relative;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
}
|
|
18
|
+
.icen-chart-line > svg {
|
|
11
19
|
display: block;
|
|
12
20
|
width: 100%;
|
|
13
21
|
height: 150px;
|
|
14
22
|
overflow: visible;
|
|
15
23
|
}
|
|
24
|
+
|
|
25
|
+
/* 网格:四档横向发丝线;基线略重(1 档灰差,不做粗黑轴) */
|
|
26
|
+
.icen-chart-line svg .icen-chart-grid {
|
|
27
|
+
stroke: var(--icen-token-line-soft);
|
|
28
|
+
opacity: 0.9;
|
|
29
|
+
}
|
|
30
|
+
.icen-chart-line svg .icen-chart-baseline {
|
|
31
|
+
stroke: var(--icen-token-line);
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* 数据线:单/多系列统一 2px(行为给 2.5/2,CSS 归一保持同族粗细) */
|
|
36
|
+
.icen-chart-line svg > path[fill='none'] {
|
|
37
|
+
stroke-width: 2;
|
|
38
|
+
}
|
|
39
|
+
/* 面积渐变压到克制档:首色 .22、尾色 0,避免大色块压过线本身 */
|
|
40
|
+
.icen-chart-line svg stop:first-child { stop-opacity: 0.22; }
|
|
41
|
+
.icen-chart-line svg stop:last-child { stop-opacity: 0; }
|
|
42
|
+
|
|
43
|
+
/* 数据点:白芯 + 色环;hover 放大 1.45×(命中圆在点之后,用相邻选择器把放大
|
|
44
|
+
落到被盖住的实心点上;命中圆自身只铺一层极淡的 accent 晕) */
|
|
45
|
+
.icen-chart-line svg circle[data-icen-chart-mark]:not([data-icen-chart-hit]) {
|
|
46
|
+
transform-box: fill-box;
|
|
47
|
+
transform-origin: center;
|
|
48
|
+
transition: transform var(--icen-duration-fast) var(--icen-ease-out), opacity var(--icen-tx-fast);
|
|
49
|
+
}
|
|
50
|
+
.icen-chart-line svg circle[data-icen-chart-mark]:not([data-icen-chart-hit]):has(+ .is-hover) {
|
|
51
|
+
transform: scale(1.45);
|
|
52
|
+
}
|
|
53
|
+
.icen-chart-line svg circle[data-icen-chart-hit].is-hover {
|
|
54
|
+
fill: color-mix(in srgb, var(--icen-token-accent) 9%, transparent);
|
|
55
|
+
}
|
|
56
|
+
.icen-chart-line svg circle[data-icen-chart-mark].is-off {
|
|
57
|
+
opacity: 0.18;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 轴标签行与绘图区之间留一口气,不贴线 */
|
|
61
|
+
.icen-chart-line .icen-chart-labels {
|
|
62
|
+
margin-top: 5px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.icen-chart-line svg circle[data-icen-chart-mark] { transition: none; }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (forced-colors: active) {
|
|
70
|
+
.icen-chart-line svg .icen-chart-grid,
|
|
71
|
+
.icen-chart-line svg .icen-chart-baseline { stroke: GrayText; }
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -1,20 +1,52 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-pie(饼/环形图专属样式)
|
|
3
|
-
* 依赖:charts.css(基座 .chart-legend)
|
|
4
|
+
* 依赖:charts.css(基座 .icen-chart-legend)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderDonut 构建:
|
|
6
|
-
* .chart-donut > svg[viewBox="0 0 120 120"](-90° 起笔)
|
|
7
|
-
* .chart-donut > .chart-legend
|
|
7
|
+
* .icen-chart-donut > svg[viewBox="0 0 120 120"](-90° 起笔)
|
|
8
|
+
* .icen-chart-donut > .icen-chart-legend
|
|
9
|
+
* 多段时 behavior 在每段尾部留 2.5 用户单位白隙(同色相邻段可辨)。
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
|
-
.chart-donut {
|
|
12
|
+
.icen-chart-donut {
|
|
11
13
|
display: flex;
|
|
12
14
|
align-items: center;
|
|
13
|
-
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: var(--icen-density-space-md);
|
|
14
17
|
min-height: 150px;
|
|
15
18
|
}
|
|
16
|
-
.chart-donut > svg {
|
|
19
|
+
.icen-chart-donut > svg {
|
|
17
20
|
width: 132px;
|
|
18
21
|
height: 132px;
|
|
19
22
|
flex-shrink: 0;
|
|
23
|
+
overflow: visible;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* 环宽 13(轨道与弧一致);hover 段加宽 2px 但不压邻段(底座已留 2.5 缝隙) */
|
|
27
|
+
.icen-chart-donut svg circle {
|
|
28
|
+
stroke-width: 13;
|
|
29
|
+
transition: stroke-width var(--icen-duration-fast) var(--icen-ease-out), opacity var(--icen-tx-fast);
|
|
30
|
+
}
|
|
31
|
+
.icen-chart-donut svg circle[data-icen-chart-mark].is-hover {
|
|
32
|
+
stroke-width: 15;
|
|
33
|
+
}
|
|
34
|
+
.icen-chart-donut svg circle[data-icen-chart-mark].is-off {
|
|
35
|
+
opacity: 0.22;
|
|
36
|
+
stroke-width: 13;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.icen-chart-donut .icen-chart-legend {
|
|
40
|
+
gap: 6px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
.icen-chart-donut svg circle { transition: none; }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (forced-colors: active) {
|
|
48
|
+
.icen-chart-donut svg circle { forced-color-adjust: none; }
|
|
49
|
+
.icen-chart-donut svg circle:first-of-type { stroke: CanvasText; }
|
|
50
|
+
}
|
|
51
|
+
|
|
20
52
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-radar(雷达图专属样式)
|
|
3
|
-
* 依赖:charts.css(基座 .chart-legend)
|
|
4
|
+
* 依赖:charts.css(基座 .icen-chart-legend)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderRadar 构建:
|
|
6
|
-
* .chart-radar > svg[viewBox="0 0 200 200"](N 轴蛛网 + 数据多边形)
|
|
7
|
-
* > .chart-legend
|
|
7
|
+
* .icen-chart-radar > svg[viewBox="0 0 200 200"](N 轴蛛网 + 数据多边形)
|
|
8
|
+
* > .icen-chart-legend
|
|
8
9
|
* 多系列时各系列分配 chart-tone-1..6,图例由 behavior 生成。
|
|
10
|
+
* 蛛网:环与轴都是发丝实线(虚线在 200px 视觉尺寸下会碎),最外环略重。
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
|
-
.chart-radar
|
|
13
|
+
.icen-chart-radar {
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--icen-density-space-md);
|
|
16
|
+
}
|
|
17
|
+
.icen-chart-radar > svg {
|
|
12
18
|
display: block;
|
|
13
19
|
width: 100%;
|
|
14
20
|
max-width: 260px;
|
|
@@ -16,4 +22,50 @@
|
|
|
16
22
|
aspect-ratio: 1;
|
|
17
23
|
overflow: visible;
|
|
18
24
|
}
|
|
19
|
-
|
|
25
|
+
|
|
26
|
+
/* 蛛网环:fill=none 的 polygon 即网格;虚线归一为实线,避免缩放后出现摩尔纹 */
|
|
27
|
+
.icen-chart-radar svg polygon[fill='none'] {
|
|
28
|
+
stroke: var(--icen-token-line-soft);
|
|
29
|
+
stroke-dasharray: none;
|
|
30
|
+
opacity: 0.9;
|
|
31
|
+
}
|
|
32
|
+
.icen-chart-radar svg line {
|
|
33
|
+
stroke: var(--icen-token-line-soft);
|
|
34
|
+
opacity: 0.8;
|
|
35
|
+
}
|
|
36
|
+
.icen-chart-radar svg text {
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
letter-spacing: 0.01em;
|
|
39
|
+
fill: var(--icen-token-text-muted);
|
|
40
|
+
}
|
|
41
|
+
/* 数据多边形:填充 12%,描边 1.75;hover 只加浓填充 */
|
|
42
|
+
.icen-chart-radar svg polygon[fill-opacity] {
|
|
43
|
+
fill-opacity: 0.12;
|
|
44
|
+
stroke-width: 1.75;
|
|
45
|
+
transition: fill-opacity var(--icen-tx-fast);
|
|
46
|
+
}
|
|
47
|
+
.icen-chart-radar svg polygon[fill-opacity]:hover,
|
|
48
|
+
.icen-chart-radar svg polygon[fill-opacity].is-hover {
|
|
49
|
+
fill-opacity: 0.2;
|
|
50
|
+
}
|
|
51
|
+
.icen-chart-radar svg circle[data-icen-chart-mark] {
|
|
52
|
+
stroke-width: 1.75;
|
|
53
|
+
transition: transform var(--icen-duration-fast) var(--icen-ease-out);
|
|
54
|
+
transform-box: fill-box;
|
|
55
|
+
transform-origin: center;
|
|
56
|
+
}
|
|
57
|
+
.icen-chart-radar svg circle[data-icen-chart-mark].is-hover {
|
|
58
|
+
transform: scale(1.35);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
.icen-chart-radar svg polygon[fill-opacity],
|
|
63
|
+
.icen-chart-radar svg circle[data-icen-chart-mark] { transition: none; }
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (forced-colors: active) {
|
|
67
|
+
.icen-chart-radar svg polygon[fill='none'],
|
|
68
|
+
.icen-chart-radar svg line { stroke: GrayText; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
@@ -1,24 +1,64 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-scatter(散点/气泡图专属样式)
|
|
3
|
-
* 依赖:charts.css(基座 .chart / tooltip / [data-chart-mark] 交互态)
|
|
4
|
+
* 依赖:charts.css(基座 .icen-chart / tooltip / [data-icen-chart-mark] 交互态)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderScatter 构建:
|
|
6
|
-
* .chart-scatter > svg(360×220 viewBox,网格 + 刻度 + circle[data-chart-mark])
|
|
7
|
+
* .icen-chart-scatter > svg(360×220 viewBox,网格 + 刻度 + circle[data-icen-chart-mark])
|
|
8
|
+
* 横网格带 .icen-chart-grid、纵向带 .icen-chart-grid--v;左/下轴带 .icen-chart-axis。
|
|
7
9
|
* 气泡第三维:points[].size 映射半径 3–10;hover/点击/右键走通用层委托。
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
|
-
.chart-scatter
|
|
12
|
+
.icen-chart-scatter {
|
|
13
|
+
min-width: 0;
|
|
14
|
+
}
|
|
15
|
+
.icen-chart-scatter svg {
|
|
11
16
|
width: 100%;
|
|
12
17
|
height: auto;
|
|
13
18
|
display: block;
|
|
19
|
+
overflow: visible;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* 网格:横实纵虚;轴线略重,刻度文字 10px(行为直出 8px,CSS 覆盖) */
|
|
23
|
+
.icen-chart-scatter svg .icen-chart-grid {
|
|
24
|
+
stroke: var(--icen-token-line-soft);
|
|
25
|
+
opacity: 0.9;
|
|
26
|
+
}
|
|
27
|
+
.icen-chart-scatter svg .icen-chart-grid--v {
|
|
28
|
+
stroke-dasharray: 2 4;
|
|
29
|
+
opacity: 0.75;
|
|
30
|
+
}
|
|
31
|
+
.icen-chart-scatter svg .icen-chart-axis {
|
|
32
|
+
stroke: var(--icen-token-line);
|
|
33
|
+
stroke-dasharray: none;
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
.icen-chart-scatter svg text {
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
letter-spacing: 0.01em;
|
|
39
|
+
fill: var(--icen-token-text-faint);
|
|
14
40
|
}
|
|
15
|
-
|
|
16
|
-
|
|
41
|
+
|
|
42
|
+
/* 数据点:半透明填充 + 细描边;hover 加浓不放大(气泡半径本身携带尺寸语义) */
|
|
43
|
+
.icen-chart-scatter circle[data-icen-chart-mark] {
|
|
44
|
+
transition: fill-opacity var(--icen-tx-fast), stroke-width var(--icen-tx-fast);
|
|
17
45
|
}
|
|
18
|
-
.chart-scatter circle[data-chart-mark]:hover
|
|
46
|
+
.icen-chart-scatter circle[data-icen-chart-mark]:hover,
|
|
47
|
+
.icen-chart-scatter circle[data-icen-chart-mark].is-hover {
|
|
19
48
|
fill-opacity: 0.85;
|
|
49
|
+
stroke-width: 1.75;
|
|
50
|
+
}
|
|
51
|
+
.icen-chart-scatter circle[data-icen-chart-mark].is-off {
|
|
52
|
+
opacity: 0.14;
|
|
20
53
|
}
|
|
21
54
|
|
|
22
55
|
@media (prefers-reduced-motion: reduce) {
|
|
23
|
-
.chart-scatter circle[data-chart-mark] { transition: none; }
|
|
56
|
+
.icen-chart-scatter circle[data-icen-chart-mark] { transition: none; }
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (forced-colors: active) {
|
|
60
|
+
.icen-chart-scatter svg .icen-chart-grid,
|
|
61
|
+
.icen-chart-scatter svg .icen-chart-axis { stroke: GrayText; }
|
|
62
|
+
}
|
|
63
|
+
|
|
24
64
|
}
|