@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,109 +1,112 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: layout(布局原语,全部是工具类,无 JS)
|
|
3
4
|
* stack / divider / surface / text / grid / center / container / aspect / visually-hidden
|
|
4
|
-
* 全部消费 --token-* 与 --density-*;档位类名与 opengal primitives/layout(-containers) 一一对应。
|
|
5
|
+
* 全部消费 --icen-token-* 与 --icen-density-*;档位类名与 opengal primitives/layout(-containers) 一一对应。
|
|
5
6
|
*/
|
|
6
7
|
|
|
7
8
|
/* ── Stack:flex 堆叠(默认列向,gap = density-space-sm) ── */
|
|
8
|
-
.stack { display: flex; flex-direction: column; gap: var(--density-space-sm); }
|
|
9
|
-
.stack--row { flex-direction: row; }
|
|
10
|
-
.stack--inline { display: inline-flex; }
|
|
11
|
-
.stack--wrap { flex-wrap: wrap; }
|
|
12
|
-
.stack--gap-0 { gap: 0; }
|
|
13
|
-
.stack--gap-1 { gap: var(--density-space-xs); }
|
|
14
|
-
.stack--gap-2 { gap: var(--density-space-sm); }
|
|
15
|
-
.stack--gap-3 { gap: var(--density-space-md); }
|
|
16
|
-
.stack--gap-4 { gap: var(--density-space-lg); }
|
|
17
|
-
.stack--gap-6 { gap: var(--density-space-xl); }
|
|
18
|
-
.stack--gap-8 { gap: var(--density-space-2xl); }
|
|
19
|
-
.stack--gap-12 { gap: var(--density-space-3xl); }
|
|
20
|
-
.stack--gap-16 { gap: var(--density-space-4xl); }
|
|
21
|
-
.stack--items-start { align-items: flex-start; }
|
|
22
|
-
.stack--items-center { align-items: center; }
|
|
23
|
-
.stack--items-end { align-items: flex-end; }
|
|
24
|
-
.stack--items-stretch { align-items: stretch; }
|
|
25
|
-
.stack--items-baseline { align-items: baseline; }
|
|
26
|
-
.stack--justify-start { justify-content: flex-start; }
|
|
27
|
-
.stack--justify-center { justify-content: center; }
|
|
28
|
-
.stack--justify-end { justify-content: flex-end; }
|
|
29
|
-
.stack--justify-between { justify-content: space-between; }
|
|
30
|
-
.stack--justify-around { justify-content: space-around; }
|
|
31
|
-
.stack--justify-evenly { justify-content: space-evenly; }
|
|
9
|
+
.icen-stack { display: flex; flex-direction: column; gap: var(--icen-density-space-sm); }
|
|
10
|
+
.icen-stack--row { flex-direction: row; }
|
|
11
|
+
.icen-stack--inline { display: inline-flex; }
|
|
12
|
+
.icen-stack--wrap { flex-wrap: wrap; }
|
|
13
|
+
.icen-stack--gap-0 { gap: 0; }
|
|
14
|
+
.icen-stack--gap-1 { gap: var(--icen-density-space-xs); }
|
|
15
|
+
.icen-stack--gap-2 { gap: var(--icen-density-space-sm); }
|
|
16
|
+
.icen-stack--gap-3 { gap: var(--icen-density-space-md); }
|
|
17
|
+
.icen-stack--gap-4 { gap: var(--icen-density-space-lg); }
|
|
18
|
+
.icen-stack--gap-6 { gap: var(--icen-density-space-xl); }
|
|
19
|
+
.icen-stack--gap-8 { gap: var(--icen-density-space-2xl); }
|
|
20
|
+
.icen-stack--gap-12 { gap: var(--icen-density-space-3xl); }
|
|
21
|
+
.icen-stack--gap-16 { gap: var(--icen-density-space-4xl); }
|
|
22
|
+
.icen-stack--items-start { align-items: flex-start; }
|
|
23
|
+
.icen-stack--items-center { align-items: center; }
|
|
24
|
+
.icen-stack--items-end { align-items: flex-end; }
|
|
25
|
+
.icen-stack--items-stretch { align-items: stretch; }
|
|
26
|
+
.icen-stack--items-baseline { align-items: baseline; }
|
|
27
|
+
.icen-stack--justify-start { justify-content: flex-start; }
|
|
28
|
+
.icen-stack--justify-center { justify-content: center; }
|
|
29
|
+
.icen-stack--justify-end { justify-content: flex-end; }
|
|
30
|
+
.icen-stack--justify-between { justify-content: space-between; }
|
|
31
|
+
.icen-stack--justify-around { justify-content: space-around; }
|
|
32
|
+
.icen-stack--justify-evenly { justify-content: space-evenly; }
|
|
32
33
|
|
|
33
34
|
/* ── Divider:分隔线 ── */
|
|
34
|
-
.divider { background: var(--token-
|
|
35
|
-
.divider--vertical { width: 1px; height: 100%; align-self: stretch; }
|
|
35
|
+
.icen-divider { background: var(--icen-token-separator-soft); height: 1px; width: 100%; }
|
|
36
|
+
.icen-divider--vertical { width: 1px; height: 100%; align-self: stretch; }
|
|
36
37
|
|
|
37
|
-
/* ── Surface:卡片容器(默认
|
|
38
|
-
.surface {
|
|
39
|
-
border-radius: var(--radius-lg);
|
|
40
|
-
background: var(--token-
|
|
41
|
-
border: 1px solid var(--token-
|
|
42
|
-
box-shadow:
|
|
43
|
-
padding: var(--density-space-lg);
|
|
38
|
+
/* ── Surface:卡片容器(默认 hairline 表面,无内阴影) ── */
|
|
39
|
+
.icen-surface {
|
|
40
|
+
border-radius: var(--icen-control-radius-lg);
|
|
41
|
+
background: var(--icen-token-surface);
|
|
42
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
padding: var(--icen-density-space-lg);
|
|
44
45
|
}
|
|
45
|
-
.surface--elevated { box-shadow: var(--token-shadow-card); }
|
|
46
|
-
.surface--overlay {
|
|
47
|
-
background: var(--token-
|
|
48
|
-
border-color: var(--token-
|
|
49
|
-
box-shadow: var(--token-shadow-overlay);
|
|
46
|
+
.icen-surface--elevated { box-shadow: var(--icen-token-shadow-card); }
|
|
47
|
+
.icen-surface--overlay {
|
|
48
|
+
background: var(--icen-token-surface);
|
|
49
|
+
border-color: var(--icen-token-material-edge);
|
|
50
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-overlay);
|
|
50
51
|
}
|
|
51
|
-
.surface--p-none { padding: 0; }
|
|
52
|
-
.surface--p-sm { padding: var(--density-space-md); }
|
|
53
|
-
.surface--p-md { padding: var(--density-space-lg); }
|
|
54
|
-
.surface--p-lg { padding: calc(var(--density-space-lg) + var(--density-space-xs)); }
|
|
52
|
+
.icen-surface--p-none { padding: 0; }
|
|
53
|
+
.icen-surface--p-sm { padding: var(--icen-density-space-md); }
|
|
54
|
+
.icen-surface--p-md { padding: var(--icen-density-space-lg); }
|
|
55
|
+
.icen-surface--p-lg { padding: calc(var(--icen-density-space-lg) + var(--icen-density-space-xs)); }
|
|
55
56
|
|
|
56
57
|
/* ── Text:字号 / 语义色 / 截断 ── */
|
|
57
|
-
.text--xs { font-size: var(--density-font-size-xs); }
|
|
58
|
-
.text--sm { font-size: var(--density-font-size-sm); }
|
|
59
|
-
.text--base { font-size: var(--density-font-size-md); }
|
|
60
|
-
.text--md { font-size: var(--density-font-size-lg); }
|
|
61
|
-
.text--lg { font-size: var(--density-font-size-lg); }
|
|
62
|
-
.text--xl { font-size: var(--density-font-size-xl); }
|
|
63
|
-
.text--2xl { font-size: var(--density-font-size-2xl); }
|
|
64
|
-
.text--muted { color: var(--token-text-muted); }
|
|
65
|
-
.text--faint { color: var(--token-text-faint); }
|
|
66
|
-
.text--accent { color: var(--token-accent); }
|
|
67
|
-
.text--success { color: var(--token-success); }
|
|
68
|
-
.text--warning { color: var(--token-warning); }
|
|
69
|
-
.text--error { color: var(--token-error); }
|
|
70
|
-
.text--truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
58
|
+
.icen-text--xs { font-size: var(--icen-density-font-size-xs); }
|
|
59
|
+
.icen-text--sm { font-size: var(--icen-density-font-size-sm); }
|
|
60
|
+
.icen-text--base { font-size: var(--icen-density-font-size-md); }
|
|
61
|
+
.icen-text--md { font-size: var(--icen-density-font-size-lg); }
|
|
62
|
+
.icen-text--lg { font-size: var(--icen-density-font-size-lg); }
|
|
63
|
+
.icen-text--xl { font-size: var(--icen-density-font-size-xl); }
|
|
64
|
+
.icen-text--2xl { font-size: var(--icen-density-font-size-2xl); }
|
|
65
|
+
.icen-text--muted { color: var(--icen-token-text-muted); }
|
|
66
|
+
.icen-text--faint { color: var(--icen-token-text-faint); }
|
|
67
|
+
.icen-text--accent { color: var(--icen-token-accent-text); }
|
|
68
|
+
.icen-text--success { color: var(--icen-token-success); }
|
|
69
|
+
.icen-text--warning { color: var(--icen-token-warning); }
|
|
70
|
+
.icen-text--error { color: var(--icen-token-error); }
|
|
71
|
+
.icen-text--truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
71
72
|
|
|
72
73
|
/* ── Grid:栅格(默认 gap = density-space-md) ── */
|
|
73
|
-
.grid { display: grid; gap: var(--density-space-md); }
|
|
74
|
-
.grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
75
|
-
.grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
76
|
-
.grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
77
|
-
.grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
78
|
-
.grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
79
|
-
.grid--cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
|
|
80
|
-
.grid--gap-0 { gap: 0; }
|
|
81
|
-
.grid--gap-4 { gap: var(--density-space-xs); }
|
|
82
|
-
.grid--gap-8 { gap: var(--density-space-sm); }
|
|
83
|
-
.grid--gap-12 { gap: var(--density-space-md); }
|
|
84
|
-
.grid--gap-16 { gap: var(--density-space-lg); }
|
|
85
|
-
.grid--gap-24 { gap: var(--density-space-xl); }
|
|
74
|
+
.icen-grid { display: grid; gap: var(--icen-density-space-md); }
|
|
75
|
+
.icen-grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
76
|
+
.icen-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
77
|
+
.icen-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
78
|
+
.icen-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
79
|
+
.icen-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
80
|
+
.icen-grid--cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
|
|
81
|
+
.icen-grid--gap-0 { gap: 0; }
|
|
82
|
+
.icen-grid--gap-4 { gap: var(--icen-density-space-xs); }
|
|
83
|
+
.icen-grid--gap-8 { gap: var(--icen-density-space-sm); }
|
|
84
|
+
.icen-grid--gap-12 { gap: var(--icen-density-space-md); }
|
|
85
|
+
.icen-grid--gap-16 { gap: var(--icen-density-space-lg); }
|
|
86
|
+
.icen-grid--gap-24 { gap: var(--icen-density-space-xl); }
|
|
86
87
|
|
|
87
88
|
/* ── Center:flex 居中盒 ── */
|
|
88
|
-
.center { display: flex; align-items: center; justify-content: center; }
|
|
89
|
+
.icen-center { display: flex; align-items: center; justify-content: center; }
|
|
89
90
|
|
|
90
91
|
/* ── Container:限宽容器(默认 960px) ── */
|
|
91
|
-
.container { width: 100%; margin-inline: auto; padding-inline: var(--density-space-lg); max-width: 960px; }
|
|
92
|
-
.container--sm { max-width: 480px; }
|
|
93
|
-
.container--md { max-width: 720px; }
|
|
94
|
-
.container--lg { max-width: 960px; }
|
|
95
|
-
.container--xl { max-width: 1200px; }
|
|
96
|
-
.container--full { max-width: none; }
|
|
92
|
+
.icen-container { width: 100%; margin-inline: auto; padding-inline: var(--icen-density-space-lg); max-width: 960px; }
|
|
93
|
+
.icen-container--sm { max-width: 480px; }
|
|
94
|
+
.icen-container--md { max-width: 720px; }
|
|
95
|
+
.icen-container--lg { max-width: 960px; }
|
|
96
|
+
.icen-container--xl { max-width: 1200px; }
|
|
97
|
+
.icen-container--full { max-width: none; }
|
|
97
98
|
|
|
98
99
|
/* ── Aspect:固定比例盒(aspect-ratio,内容 absolute inset:0 铺满) ── */
|
|
99
|
-
.aspect { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; }
|
|
100
|
-
.aspect--square { aspect-ratio: 1 / 1; }
|
|
101
|
-
.aspect--4-3 { aspect-ratio: 4 / 3; }
|
|
102
|
-
.aspect--2-3 { aspect-ratio: 2 / 3; }
|
|
103
|
-
.aspect > * { position: absolute; inset: 0; }
|
|
100
|
+
.icen-aspect { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; }
|
|
101
|
+
.icen-aspect--square { aspect-ratio: 1 / 1; }
|
|
102
|
+
.icen-aspect--4-3 { aspect-ratio: 4 / 3; }
|
|
103
|
+
.icen-aspect--2-3 { aspect-ratio: 2 / 3; }
|
|
104
|
+
.icen-aspect > * { position: absolute; inset: 0; }
|
|
104
105
|
|
|
105
106
|
/* ── VisuallyHidden:屏幕阅读器专用文本(sr-only 等价) ── */
|
|
106
|
-
.visually-hidden {
|
|
107
|
+
.icen-visually-hidden {
|
|
107
108
|
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
|
|
108
109
|
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
|
109
110
|
}
|
|
111
|
+
|
|
112
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@layer icen.components {
|
|
2
|
+
/* 中式 material adapter. DOM contract: html[data-icen-style="chinese"] with
|
|
3
|
+
* existing ICEN components or [data-icen-material="content|chrome|floating"].
|
|
4
|
+
* No additional wrappers, decorative pseudo-elements or JavaScript required.
|
|
5
|
+
* 分层登记(guard: tier-direction 白名单):横切材料适配引用 Beta 类名
|
|
6
|
+
* .icen-ai-composer-popup,理由同 material.css 头注释。
|
|
7
|
+
*/
|
|
8
|
+
:root[data-icen-style="chinese"] {
|
|
9
|
+
--icen-press: scale(.995);
|
|
10
|
+
--icen-press-soft: scale(.995);
|
|
11
|
+
--icen-hover-border: var(--icen-token-line);
|
|
12
|
+
--icen-hover-border-strong: var(--icen-token-line-strong);
|
|
13
|
+
--icen-ring: 0 0 0 2px var(--icen-token-surface), 0 0 0 4px var(--icen-token-accent);
|
|
14
|
+
--icen-ring-soft: 0 0 0 3px var(--icen-token-accent-subtle);
|
|
15
|
+
--icen-control-focus-shadow: var(--icen-ring-soft);
|
|
16
|
+
--icen-control-focus-border: var(--icen-token-accent);
|
|
17
|
+
}
|
|
18
|
+
:root[data-icen-style="chinese"] :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
19
|
+
background: var(--icen-token-surface);
|
|
20
|
+
border-color: var(--icen-token-line);
|
|
21
|
+
backdrop-filter: none;
|
|
22
|
+
-webkit-backdrop-filter: none;
|
|
23
|
+
}
|
|
24
|
+
:root[data-icen-style="chinese"] :is(h1,h2,h3,h4,h5,h6,.icen-card-title,.icen-modal-title) {
|
|
25
|
+
font-family: var(--icen-font-heading);
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
letter-spacing: var(--icen-letter-spacing-heading);
|
|
28
|
+
line-height: var(--icen-line-height-heading);
|
|
29
|
+
}
|
|
30
|
+
:root[data-icen-style="chinese"] :is(.icen-btn,.icen-page-tab,.icen-segmented-item) {
|
|
31
|
+
font-family: var(--icen-font-body);
|
|
32
|
+
letter-spacing: .025em;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
}
|
|
35
|
+
:root[data-icen-style="chinese"] :is(.icen-card,.icen-panel,[data-icen-material="content"]) {
|
|
36
|
+
border-color: var(--icen-token-line-soft);
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
}
|
|
39
|
+
:root[data-icen-style="chinese"] .icen-card--elevated { box-shadow: var(--icen-token-shadow-card); }
|
|
40
|
+
:root[data-icen-style="chinese"] :is(.icen-card.is-selected,.icen-card--interactive:focus-within) { box-shadow: var(--icen-ring); }
|
|
41
|
+
:root[data-icen-style="chinese"] .icen-panel-title {
|
|
42
|
+
padding-block: var(--icen-density-space-md);
|
|
43
|
+
color: var(--icen-token-text);
|
|
44
|
+
letter-spacing: .06em;
|
|
45
|
+
text-transform: none;
|
|
46
|
+
}
|
|
47
|
+
:root[data-icen-style="chinese"] :is(.icen-card-desc,.icen-modal-desc,.icen-panel-subtitle) { line-height: var(--icen-line-height-body); }
|
|
48
|
+
:root[data-icen-style="chinese"] .icen-segmented {
|
|
49
|
+
background: var(--icen-token-bg-soft);
|
|
50
|
+
border-color: var(--icen-token-line-soft);
|
|
51
|
+
}
|
|
52
|
+
:root[data-icen-style="chinese"] :is(.icen-segmented-item.is-active,.icen-segmented-item[aria-checked="true"],.icen-toggle-group-btn.is-active) {
|
|
53
|
+
box-shadow: inset 0 0 0 1px var(--icen-token-line), var(--icen-token-shadow-card);
|
|
54
|
+
}
|
|
55
|
+
/* A quiet ink rule makes navigation legible without changing its layout. */
|
|
56
|
+
:root[data-icen-style="chinese"] .icen-tabs:not(.icen-tabs--cards):not(.icen-tabs--segment):not(.icen-tabs--vertical) .icen-page-tab { border-block-end-width: 1px; }
|
|
57
|
+
:root[data-icen-style="chinese"] :is(.icen-btn,.icen-menu-item,.icen-select-option,.icen-segmented-item):focus-visible {
|
|
58
|
+
outline: 2px solid var(--icen-token-accent);
|
|
59
|
+
outline-offset: 3px;
|
|
60
|
+
}
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
:root[data-icen-style="chinese"] { --icen-press: none; --icen-press-soft: none; }
|
|
63
|
+
}
|
|
64
|
+
/* 减少透明偏好:玻璃面回落实底,文字不叠在内容上 */
|
|
65
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
66
|
+
:root[data-icen-style="chinese"] :is(.icen-card--glass, [data-icen-material="floating"], .icen-command-palette) {
|
|
67
|
+
background: var(--icen-token-surface-raised);
|
|
68
|
+
-webkit-backdrop-filter: none;
|
|
69
|
+
backdrop-filter: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media (forced-colors: active) {
|
|
73
|
+
:root[data-icen-style="chinese"] :is([data-icen-material],.icen-card,.icen-panel,.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-modal,.icen-nav) {
|
|
74
|
+
background: Canvas;
|
|
75
|
+
color: CanvasText;
|
|
76
|
+
border-color: CanvasText;
|
|
77
|
+
box-shadow: none;
|
|
78
|
+
}
|
|
79
|
+
:root[data-icen-style="chinese"] :focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
|
|
80
|
+
:root[data-icen-style="chinese"] :is(.icen-card.is-selected,.icen-card--interactive:focus-within) { box-shadow: none; outline: 2px solid Highlight; outline-offset: 2px; }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@layer icen.components {
|
|
2
|
+
/* 苏式 material adapter. DOM contract: html[data-icen-style="soviet"] with
|
|
3
|
+
* existing ICEN components or [data-icen-material="content|chrome|floating"].
|
|
4
|
+
* Structural emphasis belongs to frame/header/action, not long-form text.
|
|
5
|
+
* 分层登记(guard: tier-direction 白名单):横切材料适配引用 Beta 类名
|
|
6
|
+
* .icen-ai-composer-popup,理由同 material.css 头注释。
|
|
7
|
+
*/
|
|
8
|
+
:root[data-icen-style="soviet"] {
|
|
9
|
+
--icen-press: translateY(1px);
|
|
10
|
+
--icen-press-soft: translateY(1px);
|
|
11
|
+
--icen-hover-border: var(--icen-token-line-strong);
|
|
12
|
+
--icen-hover-border-strong: var(--icen-token-text);
|
|
13
|
+
--icen-ring: 0 0 0 2px var(--icen-token-surface), 0 0 0 4px var(--icen-token-accent);
|
|
14
|
+
--icen-ring-soft: 0 0 0 2px var(--icen-token-accent-subtle);
|
|
15
|
+
--icen-control-focus-shadow: inset 0 -2px 0 var(--icen-token-accent);
|
|
16
|
+
--icen-control-focus-border: var(--icen-token-accent);
|
|
17
|
+
}
|
|
18
|
+
:root[data-icen-style="soviet"] :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
19
|
+
background: var(--icen-token-surface);
|
|
20
|
+
border-color: var(--icen-token-line-strong);
|
|
21
|
+
backdrop-filter: none;
|
|
22
|
+
-webkit-backdrop-filter: none;
|
|
23
|
+
}
|
|
24
|
+
:root[data-icen-style="soviet"] :is(h1,h2,h3,h4,h5,h6,.icen-card-title,.icen-modal-title) {
|
|
25
|
+
font-family: var(--icen-font-heading);
|
|
26
|
+
font-weight: 750;
|
|
27
|
+
letter-spacing: var(--icen-letter-spacing-heading);
|
|
28
|
+
line-height: var(--icen-line-height-heading);
|
|
29
|
+
}
|
|
30
|
+
/* Only display text is condensed; labels, forms and paragraphs stay comfortable. */
|
|
31
|
+
:root[data-icen-style="soviet"] :is(h1,h2) { font-stretch: condensed; }
|
|
32
|
+
:root[data-icen-style="soviet"] :is(.icen-btn,.icen-page-tab,.icen-panel-title,.icen-table th) {
|
|
33
|
+
font-family: var(--icen-font-body);
|
|
34
|
+
font-weight: 650;
|
|
35
|
+
letter-spacing: .035em;
|
|
36
|
+
}
|
|
37
|
+
:root[data-icen-style="soviet"] :is(.icen-btn,.icen-input-wrap,.icen-textarea-wrap,.icen-select-trigger,.icen-segmented) { border-width: 2px; }
|
|
38
|
+
:root[data-icen-style="soviet"] :is(.icen-btn-ghost,.icen-btn-link) { border-color: transparent; }
|
|
39
|
+
:root[data-icen-style="soviet"] :is(.icen-card,.icen-panel,[data-icen-material="content"]) {
|
|
40
|
+
border-color: var(--icen-token-line);
|
|
41
|
+
border-block-start: 3px solid var(--icen-token-line-strong);
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
}
|
|
44
|
+
:root[data-icen-style="soviet"] .icen-card--elevated { box-shadow: var(--icen-token-shadow-card); }
|
|
45
|
+
:root[data-icen-style="soviet"] :is(.icen-card.is-selected,.icen-card--interactive:focus-within) { box-shadow: var(--icen-ring); }
|
|
46
|
+
:root[data-icen-style="soviet"] .icen-panel-title {
|
|
47
|
+
color: var(--icen-token-text);
|
|
48
|
+
padding-block: var(--icen-density-space-md);
|
|
49
|
+
border-block-end: 2px solid var(--icen-token-line);
|
|
50
|
+
}
|
|
51
|
+
:root[data-icen-style="soviet"] .icen-panel.is-collapsed .icen-panel-title { border-block-end-color: transparent; }
|
|
52
|
+
:root[data-icen-style="soviet"] .icen-modal { border: 2px solid var(--icen-token-line-strong); }
|
|
53
|
+
:root[data-icen-style="soviet"] :is(.icen-switch,.icen-switch-thumb) { border-radius: var(--icen-radius-sm); }
|
|
54
|
+
:root[data-icen-style="soviet"] :is(.icen-segmented-item.is-active,.icen-segmented-item[aria-checked="true"],.icen-toggle-group-btn.is-active) {
|
|
55
|
+
background: var(--icen-token-surface);
|
|
56
|
+
box-shadow: inset 0 -3px 0 var(--icen-token-accent), inset 0 0 0 1px var(--icen-token-line);
|
|
57
|
+
}
|
|
58
|
+
:root[data-icen-style="soviet"] .icen-tabs:not(.icen-tabs--cards):not(.icen-tabs--segment):not(.icen-tabs--vertical) .icen-page-tab { border-block-end-width: 3px; }
|
|
59
|
+
:root[data-icen-style="soviet"] :is(.icen-btn,.icen-menu-item,.icen-select-option,.icen-segmented-item):focus-visible {
|
|
60
|
+
outline: 2px solid var(--icen-token-accent);
|
|
61
|
+
outline-offset: 3px;
|
|
62
|
+
}
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
:root[data-icen-style="soviet"] { --icen-press: none; --icen-press-soft: none; }
|
|
65
|
+
}
|
|
66
|
+
/* 减少透明偏好:玻璃面回落实底,文字不叠在内容上 */
|
|
67
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
68
|
+
:root[data-icen-style="soviet"] :is(.icen-card--glass, [data-icen-material="floating"], .icen-command-palette) {
|
|
69
|
+
background: var(--icen-token-surface-raised);
|
|
70
|
+
-webkit-backdrop-filter: none;
|
|
71
|
+
backdrop-filter: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
:root[data-icen-style="soviet"] :is([data-icen-material],.icen-card,.icen-panel,.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-modal,.icen-nav) {
|
|
76
|
+
background: Canvas;
|
|
77
|
+
color: CanvasText;
|
|
78
|
+
border-color: CanvasText;
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
}
|
|
81
|
+
:root[data-icen-style="soviet"] :is(.icen-segmented-item[aria-checked="true"],.icen-segmented-item.is-active,.icen-toggle-group-btn.is-active) { outline: 2px solid Highlight; outline-offset: -2px; }
|
|
82
|
+
:root[data-icen-style="soviet"] :focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
|
|
83
|
+
:root[data-icen-style="soviet"] :is(.icen-card.is-selected,.icen-card--interactive:focus-within) { box-shadow: none; outline: 2px solid Highlight; outline-offset: 2px; }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|