@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,14 +1,37 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-sparkline(迷你趋势线专属样式)
|
|
3
4
|
* 依赖:charts.css(基座)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderSparkline 构建:
|
|
6
|
-
* .chart-sparkline > svg[viewBox="0 0 96 28"](无轴,末点高亮)
|
|
7
|
+
* .icen-chart-sparkline > svg[viewBox="0 0 96 28"](无轴,末点高亮)
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
|
-
.chart-sparkline
|
|
10
|
+
.icen-chart-sparkline {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
line-height: 0;
|
|
15
|
+
}
|
|
16
|
+
.icen-chart-sparkline > svg {
|
|
10
17
|
display: block;
|
|
11
18
|
width: 96px;
|
|
12
19
|
height: 28px;
|
|
13
20
|
overflow: visible;
|
|
14
21
|
}
|
|
22
|
+
|
|
23
|
+
/* 迷你线不比正文抢眼:1.75px 圆头,渐变只做落影暗示 */
|
|
24
|
+
.icen-chart-sparkline svg > path[fill='none'] {
|
|
25
|
+
stroke-width: 1.75;
|
|
26
|
+
}
|
|
27
|
+
.icen-chart-sparkline svg stop:first-child { stop-opacity: 0.22; }
|
|
28
|
+
.icen-chart-sparkline svg stop:last-child { stop-opacity: 0; }
|
|
29
|
+
.icen-chart-sparkline svg circle {
|
|
30
|
+
stroke-width: 1.6;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (forced-colors: active) {
|
|
34
|
+
.icen-chart-sparkline svg circle { fill: Canvas; }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
}
|
|
@@ -1,30 +1,44 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: chart-stack(堆叠条图专属样式)
|
|
3
|
-
* 依赖:charts.css(基座 .chart-legend)
|
|
4
|
+
* 依赖:charts.css(基座 .icen-chart-legend)
|
|
4
5
|
*
|
|
5
6
|
* DOM 由 behaviors/charts.ts 的 renderStack 构建:
|
|
6
|
-
* .chart-stack > .chart-stack-seg[]
|
|
7
|
-
* .chart-legend
|
|
7
|
+
* .icen-chart-stack > .icen-chart-stack-seg[]
|
|
8
|
+
* .icen-chart-legend
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
|
-
.chart-stack {
|
|
11
|
-
height:
|
|
11
|
+
.icen-chart-stack {
|
|
12
|
+
height: 14px;
|
|
12
13
|
display: flex;
|
|
13
14
|
overflow: hidden;
|
|
14
|
-
border-radius: var(--radius-
|
|
15
|
-
background: var(--token-fill-2);
|
|
16
|
-
margin-bottom: var(--density-space-sm);
|
|
15
|
+
border-radius: var(--icen-radius-xs);
|
|
16
|
+
background: color-mix(in srgb, var(--icen-token-fill-2) 70%, transparent);
|
|
17
|
+
margin-bottom: var(--icen-density-space-sm);
|
|
18
|
+
margin-inline: 0;
|
|
17
19
|
}
|
|
18
|
-
.chart-stack-seg {
|
|
20
|
+
.icen-chart-stack-seg {
|
|
19
21
|
height: 100%;
|
|
20
22
|
min-width: 3px;
|
|
21
|
-
background: var(--chart-tone, var(--token-accent));
|
|
22
|
-
transition: width var(--icen-
|
|
23
|
+
background: var(--chart-tone, var(--icen-token-accent));
|
|
24
|
+
transition: width var(--icen-duration-slow) var(--icen-ease-out), filter var(--icen-tx-fast);
|
|
23
25
|
}
|
|
24
|
-
|
|
26
|
+
/* 段缝:2px 面色内阴影(不改宽度,不改百分比契约;同色相邻段也能分界) */
|
|
27
|
+
.icen-chart-stack-seg + .icen-chart-stack-seg {
|
|
28
|
+
box-shadow: inset 2px 0 0 var(--icen-token-card);
|
|
29
|
+
}
|
|
30
|
+
.icen-chart-stack-seg:hover,
|
|
31
|
+
.icen-chart-stack-seg.is-hover {
|
|
25
32
|
filter: brightness(1.08);
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
@media (prefers-reduced-motion: reduce) {
|
|
29
|
-
.chart-stack-seg { transition: none; }
|
|
36
|
+
.icen-chart-stack-seg { transition: none; }
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (forced-colors: active) {
|
|
40
|
+
.icen-chart-stack { border: 1px solid CanvasText; background: Canvas; }
|
|
41
|
+
.icen-chart-stack-seg + .icen-chart-stack-seg { box-shadow: inset 2px 0 0 Canvas; }
|
|
42
|
+
}
|
|
43
|
+
|
|
30
44
|
}
|
|
@@ -1,175 +1,292 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: charts base(图表共享基座,与 behaviors/charts 配套)
|
|
3
4
|
*
|
|
4
|
-
* 仅含所有图表类型共用的契约:.chart 容器、.chart-empty 空态、.chart-legend 图例、
|
|
5
|
-
* .chart-labels 轴标签行、.chart-tone-* 调色盘。
|
|
5
|
+
* 仅含所有图表类型共用的契约:.icen-chart 容器、.icen-chart-empty 空态、.icen-chart-legend 图例、
|
|
6
|
+
* .icen-chart-labels 轴标签行、.chart-tone-* 调色盘。
|
|
6
7
|
* 各图表类型的专属样式在独立 CSS 文件中(chart-line / chart-bar / chart-pie /
|
|
7
8
|
* chart-stack / chart-heatmap / chart-sparkline / chart-gauge / chart-radar / chart-area),
|
|
8
9
|
* 按需引入——kit/chart-<type> 入口会自动带上本基座 + 对应专属 CSS。
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
+
* 重度数据场景契约(renderChart 管线产出):
|
|
12
|
+
* 头部行 .icen-chart-head 附加件——.icen-chart-note(降采样诚实提示「已抽样 N→M 点」)、
|
|
13
|
+
* .icen-chart-zoom-reset(缩放态「重置缩放」chip);
|
|
14
|
+
* .icen-chart-zoom-rect(缩放手势选区,拖拽期挂 body,--icen-token-accent 10% 填充);
|
|
15
|
+
* .icen-chart-skeleton / .icen-chart-skeleton-bar(loading 骨架,复用 base.css 共享
|
|
16
|
+
* keyframes icen-skeleton-pulse;根挂 .icen-chart.is-loading,优先于空态);
|
|
17
|
+
* 标记 .icen-chart-mark-line / .icen-chart-mark-point / .icen-chart-mark-label
|
|
18
|
+
* (spec.marks:SVG 变体属性直出样式仅挡指针事件,vbar DOM 变体在 chart-bar.css)。
|
|
19
|
+
*
|
|
20
|
+
* 图表是「数据墨水」而非装饰面:网格与轴用发丝线,数据用饱和色,文字一律等宽数字,
|
|
21
|
+
* 悬浮只提亮不位移。单色调通过容器或条上的 --chart-tone 自定义属性注入(默认 accent)。
|
|
11
22
|
*/
|
|
12
23
|
|
|
13
|
-
.chart {
|
|
24
|
+
.icen-chart {
|
|
14
25
|
width: 100%;
|
|
26
|
+
min-width: 0;
|
|
15
27
|
display: flex;
|
|
16
28
|
flex-direction: column;
|
|
17
|
-
gap: var(--density-space-sm);
|
|
29
|
+
gap: var(--icen-density-space-sm);
|
|
30
|
+
color: var(--icen-token-text);
|
|
31
|
+
font-variant-numeric: tabular-nums;
|
|
18
32
|
}
|
|
19
|
-
.chart-empty {
|
|
20
|
-
height:
|
|
33
|
+
.icen-chart-empty {
|
|
34
|
+
height: 160px;
|
|
21
35
|
display: flex;
|
|
22
36
|
align-items: center;
|
|
23
37
|
justify-content: center;
|
|
24
|
-
|
|
25
|
-
|
|
38
|
+
gap: 6px;
|
|
39
|
+
font-size: var(--icen-font-size-caption);
|
|
40
|
+
letter-spacing: 0.01em;
|
|
41
|
+
color: var(--icen-token-text-muted);
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
/* ── 图例 / 轴标签(donut / stack / vbar / line 共用) ── */
|
|
29
|
-
.chart-legend {
|
|
45
|
+
.icen-chart-legend {
|
|
30
46
|
display: flex;
|
|
31
47
|
flex-direction: column;
|
|
32
|
-
gap:
|
|
48
|
+
gap: 5px;
|
|
33
49
|
min-width: 0;
|
|
34
50
|
flex: 1;
|
|
35
51
|
}
|
|
36
|
-
.chart-legend-item {
|
|
52
|
+
.icen-chart-legend-item {
|
|
37
53
|
display: flex;
|
|
38
54
|
align-items: center;
|
|
39
|
-
gap:
|
|
40
|
-
font-size: var(--density-font-size-xs);
|
|
55
|
+
gap: 7px;
|
|
41
56
|
min-width: 0;
|
|
57
|
+
font-size: var(--icen-font-size-caption);
|
|
58
|
+
line-height: 1.45;
|
|
42
59
|
}
|
|
43
|
-
.chart-legend-dot {
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
60
|
+
.icen-chart-legend-dot {
|
|
61
|
+
width: 6px;
|
|
62
|
+
height: 6px;
|
|
46
63
|
flex-shrink: 0;
|
|
47
|
-
border-radius: var(--radius-full);
|
|
48
|
-
background: var(--chart-tone, var(--token-accent));
|
|
64
|
+
border-radius: var(--icen-radius-full);
|
|
65
|
+
background: var(--chart-tone, var(--icen-token-accent));
|
|
66
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--icen-token-card) 70%, transparent);
|
|
49
67
|
}
|
|
50
|
-
.chart-legend-label {
|
|
68
|
+
.icen-chart-legend-label {
|
|
51
69
|
flex: 1;
|
|
52
70
|
min-width: 0;
|
|
53
71
|
overflow: hidden;
|
|
54
72
|
text-overflow: ellipsis;
|
|
55
73
|
white-space: nowrap;
|
|
56
|
-
color: var(--token-text-muted);
|
|
74
|
+
color: var(--icen-token-text-muted);
|
|
57
75
|
}
|
|
58
|
-
.chart-legend-value {
|
|
76
|
+
.icen-chart-legend-value {
|
|
59
77
|
flex-shrink: 0;
|
|
78
|
+
font-family: var(--icen-font-mono);
|
|
79
|
+
font-size: 11px;
|
|
60
80
|
font-variant-numeric: tabular-nums;
|
|
61
|
-
color: var(--token-text-faint);
|
|
81
|
+
color: var(--icen-token-text-faint);
|
|
62
82
|
}
|
|
63
83
|
|
|
64
|
-
.chart-labels {
|
|
84
|
+
.icen-chart-labels {
|
|
65
85
|
display: flex;
|
|
66
|
-
gap: var(--density-space-xs);
|
|
67
|
-
margin-top:
|
|
86
|
+
gap: var(--icen-density-space-xs);
|
|
87
|
+
margin-top: 4px;
|
|
68
88
|
}
|
|
69
|
-
.chart-labels > span {
|
|
89
|
+
.icen-chart-labels > span {
|
|
70
90
|
flex: 1;
|
|
71
91
|
min-width: 0;
|
|
72
92
|
text-align: center;
|
|
73
|
-
font-size:
|
|
74
|
-
|
|
93
|
+
font-size: 11px;
|
|
94
|
+
line-height: 1.3;
|
|
95
|
+
letter-spacing: 0.01em;
|
|
96
|
+
color: var(--icen-token-text-faint);
|
|
75
97
|
overflow: hidden;
|
|
76
98
|
text-overflow: ellipsis;
|
|
77
99
|
white-space: nowrap;
|
|
78
100
|
font-variant-numeric: tabular-nums;
|
|
79
101
|
}
|
|
80
102
|
|
|
103
|
+
/* Point labels use the sampled data index, never equal-width distribution.
|
|
104
|
+
* A bounded cell truncates long labels instead of overlapping adjacent ticks. */
|
|
105
|
+
.icen-chart-labels--points {
|
|
106
|
+
display: block;
|
|
107
|
+
position: relative;
|
|
108
|
+
min-block-size: 1.5em;
|
|
109
|
+
font-size: 11px;
|
|
110
|
+
}
|
|
111
|
+
.icen-chart-labels--points > span {
|
|
112
|
+
position: absolute;
|
|
113
|
+
transform: translateX(-50%);
|
|
114
|
+
}
|
|
115
|
+
|
|
81
116
|
/* ── 调色盘:手写 markup 调色盘;behavior 走 charts.ts PALETTE_VARS 内联同值(两处值需人工同步) ── */
|
|
82
|
-
.chart-tone-1 { --chart-tone: var(--token-accent); }
|
|
83
|
-
.chart-tone-2 { --chart-tone: var(--token-accent-cold); }
|
|
84
|
-
.chart-tone-3 { --chart-tone: var(--token-success); }
|
|
85
|
-
.chart-tone-4 { --chart-tone: var(--token-warning); }
|
|
86
|
-
.chart-tone-5 { --chart-tone: var(--token-info); }
|
|
87
|
-
.chart-tone-6 { --chart-tone: color-mix(in srgb, var(--token-text) 50%, transparent); }
|
|
117
|
+
.icen-chart-tone-1 { --chart-tone: var(--icen-token-accent); }
|
|
118
|
+
.icen-chart-tone-2 { --chart-tone: var(--icen-token-accent-cold); }
|
|
119
|
+
.icen-chart-tone-3 { --chart-tone: var(--icen-token-success); }
|
|
120
|
+
.icen-chart-tone-4 { --chart-tone: var(--icen-token-warning); }
|
|
121
|
+
.icen-chart-tone-5 { --chart-tone: var(--icen-token-info); }
|
|
122
|
+
.icen-chart-tone-6 { --chart-tone: color-mix(in srgb, var(--icen-token-text) 50%, transparent); }
|
|
88
123
|
|
|
89
124
|
/* ═══ 通用层(renderChart):标题 / 内置 tooltip / 标记交互 / 图例切换 ═══ */
|
|
90
125
|
|
|
91
126
|
/* 标题(spec.title 有值时渲染) */
|
|
92
|
-
.chart-title {
|
|
93
|
-
font-size: var(--
|
|
127
|
+
.icen-chart-title {
|
|
128
|
+
font-size: var(--icen-font-size-control);
|
|
94
129
|
font-weight: 600;
|
|
95
|
-
|
|
130
|
+
line-height: 1.35;
|
|
131
|
+
letter-spacing: -0.005em;
|
|
132
|
+
color: var(--icen-token-text);
|
|
96
133
|
}
|
|
97
134
|
|
|
98
135
|
/* 头部行(renderChart 渲染):标题 + 图例可见性小眼睛 */
|
|
99
|
-
.chart-head {
|
|
136
|
+
.icen-chart-head {
|
|
100
137
|
display: flex;
|
|
101
138
|
align-items: center;
|
|
102
139
|
justify-content: space-between;
|
|
103
|
-
gap: var(--density-space-sm);
|
|
140
|
+
gap: var(--icen-density-space-sm);
|
|
104
141
|
min-height: 24px;
|
|
105
142
|
}
|
|
106
|
-
.chart-legend-eye {
|
|
143
|
+
.icen-chart-legend-eye {
|
|
107
144
|
display: inline-flex;
|
|
108
145
|
align-items: center;
|
|
109
146
|
justify-content: center;
|
|
110
|
-
width:
|
|
111
|
-
height:
|
|
147
|
+
width: 24px;
|
|
148
|
+
height: 24px;
|
|
112
149
|
padding: 0;
|
|
113
150
|
border: 0;
|
|
114
|
-
border-radius: var(--radius-xs);
|
|
151
|
+
border-radius: var(--icen-radius-xs);
|
|
115
152
|
background: transparent;
|
|
116
|
-
color: var(--token-text-faint);
|
|
153
|
+
color: var(--icen-token-text-faint);
|
|
117
154
|
cursor: pointer;
|
|
118
155
|
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
119
156
|
}
|
|
120
|
-
.chart-legend-eye:hover { color: var(--token-text); background: var(--token-fill-
|
|
121
|
-
.chart-legend-eye:
|
|
122
|
-
.chart-legend-eye
|
|
157
|
+
.icen-chart-legend-eye:hover { color: var(--icen-token-text); background: var(--icen-token-fill-hover); }
|
|
158
|
+
.icen-chart-legend-eye:active { background: var(--icen-token-fill-pressed); }
|
|
159
|
+
.icen-chart-legend-eye:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
160
|
+
.icen-chart-legend-eye svg { width: 14px; height: 14px; }
|
|
161
|
+
@media (pointer: coarse) {
|
|
162
|
+
.icen-chart-legend-eye { min-inline-size: 44px; min-block-size: 44px; }
|
|
163
|
+
.icen-chart-legend-toggle-item { min-block-size: 44px; }
|
|
164
|
+
}
|
|
123
165
|
|
|
124
|
-
/* 图例统一隐藏:容器级继承——data-legend-hidden 一条选择器覆盖全部图型的图例 */
|
|
125
|
-
[data-legend-hidden='true'] .chart-legend,
|
|
126
|
-
[data-legend-hidden='true'] .chart-legend--toggle,
|
|
127
|
-
[data-legend-hidden='true'] .chart-heatmap-legend {
|
|
166
|
+
/* 图例统一隐藏:容器级继承——data-icen-legend-hidden 一条选择器覆盖全部图型的图例 */
|
|
167
|
+
[data-icen-legend-hidden='true'] .icen-chart-legend,
|
|
168
|
+
[data-icen-legend-hidden='true'] .icen-chart-legend--toggle,
|
|
169
|
+
[data-icen-legend-hidden='true'] .icen-chart-heatmap-legend {
|
|
128
170
|
display: none;
|
|
129
171
|
}
|
|
130
172
|
|
|
131
|
-
/* 内置 tooltip:portal 到 body 的单例,position: fixed
|
|
132
|
-
|
|
173
|
+
/* 内置 tooltip:portal 到 body 的单例,position: fixed 跟随指针。
|
|
174
|
+
浮层物理:玻璃面 + 发丝边 + 抬升阴影;无 backdrop-filter 时回落不透明面。 */
|
|
175
|
+
.icen-chart-tooltip {
|
|
133
176
|
position: fixed;
|
|
134
|
-
z-index: var(--z-tooltip);
|
|
177
|
+
z-index: var(--icen-z-tooltip);
|
|
135
178
|
max-width: 280px;
|
|
136
|
-
padding:
|
|
137
|
-
border-radius: var(--radius-sm);
|
|
138
|
-
background: var(--token-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
179
|
+
padding: 6px 10px;
|
|
180
|
+
border-radius: var(--icen-radius-sm);
|
|
181
|
+
background: var(--icen-token-surface-glass);
|
|
182
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
183
|
+
backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
184
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
185
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
186
|
+
font-size: var(--icen-font-size-caption);
|
|
187
|
+
line-height: 1.45;
|
|
188
|
+
letter-spacing: 0.005em;
|
|
142
189
|
font-variant-numeric: tabular-nums;
|
|
143
|
-
color: var(--token-text);
|
|
190
|
+
color: var(--icen-token-text);
|
|
144
191
|
pointer-events: none;
|
|
145
192
|
}
|
|
146
|
-
.chart-tooltip[hidden] { display: none; }
|
|
193
|
+
.icen-chart-tooltip[hidden] { display: none; }
|
|
194
|
+
|
|
195
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
196
|
+
.icen-chart-tooltip { background: var(--icen-token-surface-raised); }
|
|
197
|
+
}
|
|
147
198
|
|
|
148
199
|
/* 数据标记(各图型的条/点/段/格):交互态由委托层挂 .is-hover,图例切换挂 .is-off */
|
|
149
|
-
[data-chart-mark] { cursor: pointer; }
|
|
150
|
-
[data-chart-mark].is-hover { filter: brightness(1.
|
|
151
|
-
[data-chart-mark].is-off { opacity: 0.16; pointer-events: none; }
|
|
152
|
-
svg circle[data-chart-mark].is-hover { stroke-width: 3; }
|
|
200
|
+
[data-icen-chart-mark] { cursor: pointer; }
|
|
201
|
+
[data-icen-chart-mark].is-hover { filter: brightness(1.06); }
|
|
202
|
+
[data-icen-chart-mark].is-off { opacity: 0.16; pointer-events: none; }
|
|
203
|
+
svg circle[data-icen-chart-mark].is-hover { stroke-width: 3; }
|
|
153
204
|
|
|
154
205
|
/* 可切换图例:行可点(Enter/Space 等价),.is-off 划线淡化 */
|
|
155
|
-
.chart-legend--toggle .chart-legend-toggle-item {
|
|
206
|
+
.icen-chart-legend--toggle .icen-chart-legend-toggle-item {
|
|
156
207
|
cursor: pointer;
|
|
157
|
-
border-radius: var(--radius-xs);
|
|
158
|
-
padding:
|
|
159
|
-
margin: -
|
|
208
|
+
border-radius: var(--icen-radius-xs);
|
|
209
|
+
padding: 3px 5px;
|
|
210
|
+
margin: -3px -5px;
|
|
160
211
|
transition: background-color var(--icen-tx-fast);
|
|
161
212
|
}
|
|
162
|
-
.chart-legend--toggle .chart-legend-toggle-item:hover { background: var(--token-fill-
|
|
163
|
-
.chart-legend--toggle .chart-legend-toggle-item:
|
|
213
|
+
.icen-chart-legend--toggle .icen-chart-legend-toggle-item:hover { background: var(--icen-token-fill-hover); }
|
|
214
|
+
.icen-chart-legend--toggle .icen-chart-legend-toggle-item:active { background: var(--icen-token-fill-pressed); }
|
|
215
|
+
.icen-chart-legend--toggle .icen-chart-legend-toggle-item:focus-visible {
|
|
164
216
|
outline: none;
|
|
165
217
|
box-shadow: var(--icen-ring);
|
|
166
218
|
}
|
|
167
|
-
.chart-legend--toggle .is-off .chart-legend-label,
|
|
168
|
-
.chart-legend--toggle .is-off .chart-legend-value {
|
|
169
|
-
color: var(--token-text-faint);
|
|
219
|
+
.icen-chart-legend--toggle .is-off .icen-chart-legend-label,
|
|
220
|
+
.icen-chart-legend--toggle .is-off .icen-chart-legend-value {
|
|
221
|
+
color: var(--icen-token-text-faint);
|
|
170
222
|
text-decoration: line-through;
|
|
171
223
|
}
|
|
172
|
-
.chart-legend--toggle .is-off .chart-legend-dot { opacity: 0.3; }
|
|
224
|
+
.icen-chart-legend--toggle .is-off .icen-chart-legend-dot { opacity: 0.3; }
|
|
225
|
+
|
|
226
|
+
/* ═══ 重度数据场景(renderChart 管线产出)═══ */
|
|
227
|
+
|
|
228
|
+
/* 头部行附加件:降采样诚实提示(faint)+ 缩放态「重置缩放」chip */
|
|
229
|
+
.icen-chart-note {
|
|
230
|
+
flex: 1;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
text-overflow: ellipsis;
|
|
234
|
+
white-space: nowrap;
|
|
235
|
+
font-size: 11px;
|
|
236
|
+
letter-spacing: 0.01em;
|
|
237
|
+
color: var(--icen-token-text-faint);
|
|
238
|
+
}
|
|
239
|
+
.icen-chart-zoom-reset {
|
|
240
|
+
flex-shrink: 0;
|
|
241
|
+
min-height: 22px;
|
|
242
|
+
padding: 0 9px;
|
|
243
|
+
border: 1px solid var(--icen-token-line);
|
|
244
|
+
border-radius: var(--icen-radius-full);
|
|
245
|
+
background: var(--icen-token-fill-1);
|
|
246
|
+
font-size: 11px;
|
|
247
|
+
color: var(--icen-token-text-muted);
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
250
|
+
}
|
|
251
|
+
.icen-chart-zoom-reset:hover { color: var(--icen-token-text); background: var(--icen-token-fill-2); border-color: var(--icen-token-line-strong); }
|
|
252
|
+
.icen-chart-zoom-reset:active { background: var(--icen-token-fill-pressed); }
|
|
253
|
+
.icen-chart-zoom-reset:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
254
|
+
|
|
255
|
+
/* 缩放手势选区(拖拽期挂 body,position:fixed;accent 10% 填充) */
|
|
256
|
+
.icen-chart-zoom-rect {
|
|
257
|
+
position: fixed;
|
|
258
|
+
z-index: var(--icen-z-tooltip);
|
|
259
|
+
border: 1px solid var(--icen-token-accent);
|
|
260
|
+
background: color-mix(in srgb, var(--icen-token-accent) 10%, transparent);
|
|
261
|
+
pointer-events: none;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* 加载态骨架(复用 base.css 共享 keyframes icen-skeleton-pulse,不各自重定义) */
|
|
265
|
+
.icen-chart-skeleton {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
gap: var(--icen-density-space-sm);
|
|
270
|
+
height: 150px;
|
|
271
|
+
}
|
|
272
|
+
.icen-chart-skeleton-bar {
|
|
273
|
+
height: 8px;
|
|
274
|
+
border-radius: var(--icen-radius-xs);
|
|
275
|
+
background: color-mix(in srgb, var(--icen-token-text) 8%, transparent);
|
|
276
|
+
animation: icen-skeleton-pulse var(--skeleton-duration, 2s) ease-in-out infinite;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* 标记(spec.marks):SVG 变体(line/area)样式由 behaviors 属性直出,此处只挡指针
|
|
280
|
+
事件(防遮 tooltip 与 mark 点击);vbar DOM 变体见 chart-bar.css */
|
|
281
|
+
svg .icen-chart-mark-line,
|
|
282
|
+
svg .icen-chart-mark-point,
|
|
283
|
+
svg .icen-chart-mark-label {
|
|
284
|
+
pointer-events: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
@media (prefers-reduced-motion: reduce) {
|
|
288
|
+
.icen-chart-skeleton-bar { animation: none; }
|
|
289
|
+
}
|
|
173
290
|
|
|
174
291
|
/* ═══ 知识图谱 / 嵌入地图追加区(graph 专属在独立 chart-graph.css;此处为 map 变体)═══ */
|
|
175
292
|
|
|
@@ -177,28 +294,47 @@ svg circle[data-chart-mark].is-hover { stroke-width: 3; }
|
|
|
177
294
|
* chart-map:embedding 2D 散点(renderMap)—— renderScatter 的去轴变体:
|
|
178
295
|
* 无刻度文字、只留细虚线网格(预投影坐标的刻度无意义);点 4px 半透明
|
|
179
296
|
* (fill-opacity .7,高密度层叠可辨)。DOM 由 behaviors/charts.ts 的
|
|
180
|
-
* renderMap 构建(.chart-map > svg > g.chart-map-point > dot + hit + title)。
|
|
297
|
+
* renderMap 构建(.icen-chart-map > svg > g.icen-chart-map-point > dot + hit + title)。
|
|
181
298
|
* 样式并入基座(map 无独立 css,与 chart-calendar 并入 chart-heatmap 同策略)。
|
|
182
299
|
*/
|
|
183
|
-
.chart-map svg {
|
|
300
|
+
.icen-chart-map svg {
|
|
184
301
|
width: 100%;
|
|
185
302
|
height: auto;
|
|
186
303
|
display: block;
|
|
187
304
|
}
|
|
188
|
-
.chart-map .chart-map-point {
|
|
305
|
+
.icen-chart-map .icen-chart-map-point {
|
|
189
306
|
cursor: pointer;
|
|
190
307
|
}
|
|
191
|
-
.chart-map-dot {
|
|
192
|
-
transition: transform var(--icen-tx-fast);
|
|
308
|
+
.icen-chart-map-dot {
|
|
309
|
+
transition: transform var(--icen-duration-fast) var(--icen-ease-out), fill-opacity var(--icen-tx-fast);
|
|
193
310
|
transform-box: fill-box;
|
|
194
311
|
transform-origin: center;
|
|
195
312
|
}
|
|
196
|
-
.chart-map-point.is-hover .chart-map-dot {
|
|
313
|
+
.icen-chart-map-point.is-hover .icen-chart-map-dot {
|
|
197
314
|
transform: scale(1.5);
|
|
315
|
+
fill-opacity: 0.9;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* 高对比模式:图表配色由系统接管,只保留结构可辨的最小描边 */
|
|
319
|
+
@media (forced-colors: active) {
|
|
320
|
+
.icen-chart-tooltip {
|
|
321
|
+
background: Canvas;
|
|
322
|
+
border-color: CanvasText;
|
|
323
|
+
box-shadow: none;
|
|
324
|
+
-webkit-backdrop-filter: none;
|
|
325
|
+
backdrop-filter: none;
|
|
326
|
+
}
|
|
327
|
+
.icen-chart-legend-dot,
|
|
328
|
+
.icen-chart-legend--toggle .icen-chart-legend-dot {
|
|
329
|
+
border: 1px solid CanvasText;
|
|
330
|
+
}
|
|
331
|
+
.icen-chart-zoom-reset { border-color: CanvasText; }
|
|
198
332
|
}
|
|
199
333
|
|
|
200
334
|
@media (prefers-reduced-motion: reduce) {
|
|
201
|
-
.chart-map-dot {
|
|
335
|
+
.icen-chart-map-dot {
|
|
202
336
|
transition: none;
|
|
203
337
|
}
|
|
204
338
|
}
|
|
339
|
+
|
|
340
|
+
}
|