@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,200 +1,203 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: toast(轻提示,与 behaviors/toast 配套)
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
+
* 容器固定在行内末端下角(LTR 右下 / RTL 镜像左下),起始缘 3px 语义色条;滑入动画用 motion token。
|
|
5
6
|
*
|
|
6
7
|
* 完整契约:
|
|
7
|
-
* <div class="toast-container" role="status" aria-live="polite">
|
|
8
|
-
* <div class="toast [toast--success|toast--error|toast--warning|toast--info]" role="status|alert">
|
|
9
|
-
* <span class="toast-msg">文本</span>
|
|
10
|
-
* <button class="toast-action">撤销</button> ← 可选 action
|
|
8
|
+
* <div class="icen-toast-container" role="status" aria-live="polite">
|
|
9
|
+
* <div class="icen-toast [icen-toast--success|icen-toast--error|icen-toast--warning|icen-toast--info]" role="status|icen-alert">
|
|
10
|
+
* <span class="icen-toast-msg">文本</span>
|
|
11
|
+
* <button class="icen-toast-action">撤销</button> ← 可选 action
|
|
11
12
|
* </div>
|
|
12
13
|
* </div>
|
|
13
14
|
*
|
|
14
15
|
* behavior 自动维护 role 与 aria-live。
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
|
-
.toast-container {
|
|
18
|
+
.icen-toast-container {
|
|
18
19
|
position: fixed;
|
|
19
|
-
|
|
20
|
-
bottom: var(--density-space-md);
|
|
21
|
-
z-index: var(--z-toast);
|
|
20
|
+
inset-inline-end: var(--icen-density-space-md);
|
|
21
|
+
bottom: var(--icen-density-space-md);
|
|
22
|
+
z-index: var(--icen-z-toast);
|
|
22
23
|
display: flex;
|
|
23
24
|
flex-direction: column;
|
|
24
|
-
gap: var(--density-space-sm);
|
|
25
|
+
gap: var(--icen-density-space-sm);
|
|
25
26
|
align-items: flex-end;
|
|
26
27
|
pointer-events: none;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
.toast {
|
|
30
|
+
.icen-toast {
|
|
30
31
|
pointer-events: auto;
|
|
31
32
|
position: relative;
|
|
32
33
|
overflow: hidden;
|
|
33
34
|
display: inline-flex;
|
|
34
35
|
align-items: center;
|
|
35
|
-
gap: var(--
|
|
36
|
-
background: var(--token-surface);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
border
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
gap: var(--icen-control-gap);
|
|
37
|
+
background: color-mix(in srgb, var(--icen-token-surface) 96%, transparent);
|
|
38
|
+
backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
39
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
40
|
+
color: var(--icen-token-text);
|
|
41
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
42
|
+
border-inline-start: 2px solid var(--icen-token-separator-strong);
|
|
43
|
+
border-radius: var(--icen-radius-lg);
|
|
44
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
45
|
+
padding: 8px 10px;
|
|
46
|
+
font-size: var(--icen-font-size-control);
|
|
44
47
|
line-height: 1.4;
|
|
45
|
-
max-
|
|
46
|
-
animation: icen-toast-in var(--icen-
|
|
48
|
+
max-inline-size: 400px;
|
|
49
|
+
animation: icen-toast-in var(--icen-duration-normal) var(--icen-ease-enter);
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
/*
|
|
50
|
-
.toast--success { border-
|
|
51
|
-
.toast--error { border-
|
|
52
|
-
.toast--warning { border-
|
|
53
|
-
.toast--info { border-
|
|
52
|
+
/* 语义色:起始缘 3px 强调 */
|
|
53
|
+
.icen-toast--success { border-inline-start-color: var(--icen-token-success); }
|
|
54
|
+
.icen-toast--error { border-inline-start-color: var(--icen-token-error); }
|
|
55
|
+
.icen-toast--warning { border-inline-start-color: var(--icen-token-warning); }
|
|
56
|
+
.icen-toast--info { border-inline-start-color: var(--icen-token-info); }
|
|
54
57
|
|
|
55
|
-
.toast-msg {
|
|
58
|
+
.icen-toast-msg {
|
|
56
59
|
flex: 1;
|
|
57
60
|
min-width: 0;
|
|
58
61
|
word-break: break-word;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
|
-
.toast-action {
|
|
64
|
+
.icen-toast-action {
|
|
62
65
|
flex-shrink: 0;
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
min-block-size: 24px;
|
|
67
|
+
padding-inline: 8px;
|
|
68
|
+
background: var(--icen-token-fill-hover);
|
|
65
69
|
border: 0;
|
|
70
|
+
border-radius: var(--icen-radius-xs);
|
|
66
71
|
cursor: pointer;
|
|
67
|
-
color: var(--token-
|
|
72
|
+
color: var(--icen-token-text);
|
|
68
73
|
font: inherit;
|
|
69
|
-
font-size: var(--density-font-size-sm);
|
|
74
|
+
font-size: var(--icen-density-font-size-sm);
|
|
70
75
|
font-weight: 500;
|
|
71
|
-
text-decoration:
|
|
72
|
-
text-underline-offset: 3px;
|
|
76
|
+
text-decoration: none;
|
|
73
77
|
-webkit-tap-highlight-color: transparent;
|
|
74
|
-
transition: color var(--icen-tx-fast);
|
|
78
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
75
79
|
}
|
|
76
|
-
.toast-action:hover { color: var(--token-
|
|
77
|
-
.toast-action:focus-visible {
|
|
80
|
+
.icen-toast-action:hover { color: var(--icen-token-text); background: var(--icen-token-fill-2); }
|
|
81
|
+
.icen-toast-action:focus-visible {
|
|
78
82
|
outline: none;
|
|
79
|
-
border-radius: var(--radius-xs);
|
|
83
|
+
border-radius: var(--icen-radius-xs);
|
|
80
84
|
box-shadow: var(--icen-ring);
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/* ── 增强 ── */
|
|
84
88
|
|
|
85
89
|
/* 语义图标 */
|
|
86
|
-
.toast-icon {
|
|
90
|
+
.icen-toast-icon {
|
|
87
91
|
flex-shrink: 0;
|
|
88
92
|
display: inline-flex;
|
|
89
93
|
align-items: center;
|
|
90
94
|
justify-content: center;
|
|
91
|
-
color: var(--token-text-
|
|
95
|
+
color: var(--icen-token-text-muted);
|
|
92
96
|
}
|
|
93
|
-
.toast-icon svg { width:
|
|
94
|
-
.toast--success .toast-icon { color: var(--token-success); }
|
|
95
|
-
.toast--error .toast-icon { color: var(--token-error); }
|
|
96
|
-
.toast--warning .toast-icon { color: var(--token-warning); }
|
|
97
|
-
.toast--info .toast-icon { color: var(--token-info); }
|
|
97
|
+
.icen-toast-icon svg { width: 15px; height: 15px; }
|
|
98
|
+
.icen-toast--success .icen-toast-icon { color: var(--icen-token-success); }
|
|
99
|
+
.icen-toast--error .icen-toast-icon { color: var(--icen-token-error); }
|
|
100
|
+
.icen-toast--warning .icen-toast-icon { color: var(--icen-token-warning); }
|
|
101
|
+
.icen-toast--info .icen-toast-icon { color: var(--icen-token-info); }
|
|
98
102
|
|
|
99
103
|
/* 关闭按钮 */
|
|
100
|
-
.toast-close {
|
|
104
|
+
.icen-toast-close {
|
|
101
105
|
flex-shrink: 0;
|
|
102
106
|
display: inline-flex;
|
|
103
107
|
align-items: center;
|
|
104
108
|
justify-content: center;
|
|
105
|
-
width:
|
|
106
|
-
height:
|
|
109
|
+
width: 24px;
|
|
110
|
+
height: 24px;
|
|
107
111
|
padding: 0;
|
|
108
112
|
border: 0;
|
|
109
|
-
border-radius: var(--radius-xs);
|
|
113
|
+
border-radius: var(--icen-radius-xs);
|
|
110
114
|
background: transparent;
|
|
111
|
-
color: var(--token-text-
|
|
115
|
+
color: var(--icen-token-text-muted);
|
|
112
116
|
cursor: pointer;
|
|
113
117
|
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
114
118
|
}
|
|
115
|
-
.toast-close:hover {
|
|
116
|
-
color: var(--token-text);
|
|
117
|
-
background: var(--token-fill-
|
|
119
|
+
.icen-toast-close:hover {
|
|
120
|
+
color: var(--icen-token-text);
|
|
121
|
+
background: var(--icen-token-fill-hover);
|
|
118
122
|
}
|
|
119
|
-
.toast-close svg { width: 12px; height: 12px; }
|
|
123
|
+
.icen-toast-close svg { width: 12px; height: 12px; }
|
|
120
124
|
|
|
121
125
|
/* 富内容(标题 + 正文) */
|
|
122
|
-
.toast-content {
|
|
126
|
+
.icen-toast-content {
|
|
123
127
|
flex: 1;
|
|
124
128
|
min-width: 0;
|
|
125
129
|
}
|
|
126
|
-
.toast-title {
|
|
127
|
-
font-size: var(--
|
|
128
|
-
font-weight:
|
|
129
|
-
color: var(--token-text);
|
|
130
|
+
.icen-toast-title {
|
|
131
|
+
font-size: var(--icen-font-size-control);
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
color: var(--icen-token-text);
|
|
130
134
|
line-height: 1.4;
|
|
131
135
|
}
|
|
132
|
-
.toast-body {
|
|
133
|
-
font-size: var(--density-font-size-sm);
|
|
134
|
-
color: var(--token-text-muted);
|
|
136
|
+
.icen-toast-body {
|
|
137
|
+
font-size: var(--icen-density-font-size-sm);
|
|
138
|
+
color: var(--icen-token-text-muted);
|
|
135
139
|
margin-top: 2px;
|
|
136
140
|
line-height: 1.5;
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/* 超时进度条 */
|
|
140
|
-
.toast-progress {
|
|
144
|
+
.icen-toast-progress {
|
|
141
145
|
position: absolute;
|
|
142
146
|
bottom: 0;
|
|
143
|
-
|
|
144
|
-
right: 0;
|
|
147
|
+
inset-inline: 0;
|
|
145
148
|
height: 2px;
|
|
146
149
|
background: transparent;
|
|
147
150
|
overflow: hidden;
|
|
148
|
-
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
|
|
151
|
+
border-radius: 0 0 var(--icen-radius-sm) var(--icen-radius-sm);
|
|
149
152
|
}
|
|
150
|
-
.toast-progress-fill {
|
|
153
|
+
.icen-toast-progress-fill {
|
|
151
154
|
height: 100%;
|
|
152
|
-
background: var(--token-accent);
|
|
153
|
-
transform-origin: left;
|
|
155
|
+
background: var(--icen-token-accent);
|
|
156
|
+
transform-origin: left; /* guard:allow-physical 倒计时压缩方向是动画语义(LTR 自左向右消减),RTL 下保持同一物理节奏 */
|
|
154
157
|
animation: toast-countdown linear forwards;
|
|
155
158
|
}
|
|
156
|
-
.toast--success .toast-progress-fill { background: var(--token-success); }
|
|
157
|
-
.toast--error .toast-progress-fill { background: var(--token-error); }
|
|
158
|
-
.toast--warning .toast-progress-fill { background: var(--token-warning); }
|
|
159
|
-
.toast--info .toast-progress-fill { background: var(--token-info); }
|
|
159
|
+
.icen-toast--success .icen-toast-progress-fill { background: var(--icen-token-success); }
|
|
160
|
+
.icen-toast--error .icen-toast-progress-fill { background: var(--icen-token-error); }
|
|
161
|
+
.icen-toast--warning .icen-toast-progress-fill { background: var(--icen-token-warning); }
|
|
162
|
+
.icen-toast--info .icen-toast-progress-fill { background: var(--icen-token-info); }
|
|
160
163
|
@keyframes toast-countdown {
|
|
161
164
|
from { transform: scaleX(1); }
|
|
162
165
|
to { transform: scaleX(0); }
|
|
163
166
|
}
|
|
164
167
|
|
|
165
|
-
/*
|
|
166
|
-
.toast-container[data-position='top-left'] {
|
|
167
|
-
right: auto;
|
|
168
|
+
/* 容器定位变体(位置名为物理角契约,RTL 语义不变) */
|
|
169
|
+
.icen-toast-container[data-icen-position='top-left'] {
|
|
170
|
+
right: auto; /* guard:allow-physical 物理角位置变体 top-left */
|
|
168
171
|
bottom: auto;
|
|
169
|
-
top: var(--density-space-md);
|
|
170
|
-
left: var(--density-space-md);
|
|
172
|
+
top: var(--icen-density-space-md);
|
|
173
|
+
left: var(--icen-density-space-md); /* guard:allow-physical 物理角位置变体 top-left */
|
|
171
174
|
align-items: flex-start;
|
|
172
175
|
}
|
|
173
|
-
.toast-container[data-position='top-right'] {
|
|
176
|
+
.icen-toast-container[data-icen-position='top-right'] {
|
|
174
177
|
bottom: auto;
|
|
175
|
-
top: var(--density-space-md);
|
|
178
|
+
top: var(--icen-density-space-md);
|
|
176
179
|
}
|
|
177
|
-
.toast-container[data-position='top-center'] {
|
|
178
|
-
right: auto;
|
|
180
|
+
.icen-toast-container[data-icen-position='top-center'] {
|
|
181
|
+
right: auto; /* guard:allow-physical 物理角位置变体 top-center */
|
|
179
182
|
bottom: auto;
|
|
180
|
-
top: var(--density-space-md);
|
|
181
|
-
left: 50%;
|
|
183
|
+
top: var(--icen-density-space-md);
|
|
184
|
+
left: 50%; /* guard:allow-physical 水平居中:left 50% + translateX(-50%) 任意方向下均为视口水平中心 */
|
|
182
185
|
transform: translateX(-50%);
|
|
183
186
|
align-items: center;
|
|
184
187
|
}
|
|
185
|
-
.toast-container[data-position='bottom-left'] {
|
|
186
|
-
right: auto;
|
|
187
|
-
left: var(--density-space-md);
|
|
188
|
+
.icen-toast-container[data-icen-position='bottom-left'] {
|
|
189
|
+
right: auto; /* guard:allow-physical 物理角位置变体 bottom-left */
|
|
190
|
+
left: var(--icen-density-space-md); /* guard:allow-physical 物理角位置变体 bottom-left */
|
|
188
191
|
align-items: flex-start;
|
|
189
192
|
}
|
|
190
|
-
.toast-container[data-position='bottom-center'] {
|
|
191
|
-
right: auto;
|
|
192
|
-
left: 50%;
|
|
193
|
+
.icen-toast-container[data-icen-position='bottom-center'] {
|
|
194
|
+
right: auto; /* guard:allow-physical 物理角位置变体 bottom-center */
|
|
195
|
+
left: 50%; /* guard:allow-physical 水平居中:left 50% + translateX(-50%) 任意方向下均为视口水平中心 */
|
|
193
196
|
transform: translateX(-50%);
|
|
194
197
|
align-items: center;
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
.toast.is-leaving {
|
|
200
|
+
.icen-toast.is-leaving {
|
|
198
201
|
opacity: 0;
|
|
199
202
|
transform: translateY(8px);
|
|
200
203
|
transition:
|
|
@@ -203,15 +206,30 @@
|
|
|
203
206
|
}
|
|
204
207
|
|
|
205
208
|
@keyframes icen-toast-in {
|
|
206
|
-
from { opacity: 0; transform: translateY(
|
|
207
|
-
to { opacity: 1; transform: translateY(0); }
|
|
209
|
+
from { opacity: 0; transform: translateY(6px) scale(.99); }
|
|
210
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
@media (max-width: 480px) {
|
|
211
|
-
.toast-container {
|
|
212
|
-
.toast { max-
|
|
214
|
+
.icen-toast-container { inset-inline: var(--icen-density-space-sm); bottom: var(--icen-density-space-sm); align-items: stretch; }
|
|
215
|
+
.icen-toast { max-inline-size: none; }
|
|
213
216
|
}
|
|
214
217
|
|
|
215
218
|
@media (prefers-reduced-motion: reduce) {
|
|
216
|
-
.toast { animation: none; }
|
|
219
|
+
.icen-toast { animation: none; }
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Quiet close shares the same fixed action slot as other interface controls. */
|
|
223
|
+
.icen-toast-close.icen-icon-action { inline-size: 28px; block-size: 28px; }
|
|
224
|
+
.icen-toast-close.icen-icon-action > svg { inline-size: 14px; block-size: 14px; }
|
|
225
|
+
.icen-toast-close:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
226
|
+
@media (pointer: coarse) { .icen-toast-close.icen-icon-action { min-inline-size: 44px; min-block-size: 44px; } }
|
|
227
|
+
|
|
228
|
+
.icen-toast-content { min-inline-size: 0; }
|
|
229
|
+
.icen-toast { max-inline-size: min(400px, calc(100vw - 2 * var(--icen-density-space-md))); }
|
|
230
|
+
.icen-toast-action { min-block-size: 24px; background: var(--icen-token-fill-hover); }
|
|
231
|
+
.icen-toast-action:hover { background: var(--icen-token-fill-2); }
|
|
232
|
+
@media (pointer: coarse) { .icen-toast-action { min-inline-size: 44px; min-block-size: 44px; } }
|
|
233
|
+
|
|
234
|
+
|
|
217
235
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: toolbar(工具条)
|
|
3
4
|
*
|
|
@@ -7,95 +8,98 @@
|
|
|
7
8
|
* - toolbar = 宽松的按钮/控件容器,可分组、可分隔、可换行
|
|
8
9
|
*
|
|
9
10
|
* 完整契约:
|
|
10
|
-
* <div class="toolbar [--sm|--lg] [--wrap] [--borderless]">
|
|
11
|
-
* <button class="btn btn-sm">…</button>
|
|
12
|
-
* <div class="toolbar-group">
|
|
13
|
-
* <button class="btn btn-sm">…</button>
|
|
14
|
-
* <button class="btn btn-sm">…</button>
|
|
11
|
+
* <div class="icen-toolbar [--sm|--lg] [--wrap] [--borderless]">
|
|
12
|
+
* <button class="icen-btn icen-btn-sm">…</button>
|
|
13
|
+
* <div class="icen-toolbar-group">
|
|
14
|
+
* <button class="icen-btn icen-btn-sm">…</button>
|
|
15
|
+
* <button class="icen-btn icen-btn-sm">…</button>
|
|
15
16
|
* </div>
|
|
16
|
-
* <span class="toolbar-separator"></span>
|
|
17
|
-
* <div class="toolbar-spacer"></div> ←
|
|
18
|
-
* <span class="toolbar-label">3 项</span>
|
|
17
|
+
* <span class="icen-toolbar-separator"></span>
|
|
18
|
+
* <div class="icen-toolbar-spacer"></div> ← 弹性占位,把后续元素推到行内末尾(RTL 镜像到左侧)
|
|
19
|
+
* <span class="icen-toolbar-label">3 项</span>
|
|
19
20
|
* </div>
|
|
20
21
|
*
|
|
21
22
|
* 编辑器顶栏(与 fixed 子项配套):
|
|
22
|
-
* <div class="toolbar toolbar--elevated">
|
|
23
|
+
* <div class="icen-toolbar icen-toolbar--elevated">
|
|
23
24
|
* …
|
|
24
25
|
* </div>
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
|
-
.toolbar {
|
|
28
|
+
.icen-toolbar {
|
|
28
29
|
display: flex;
|
|
29
30
|
align-items: center;
|
|
30
|
-
gap: var(--density-space-sm);
|
|
31
|
+
gap: var(--icen-density-space-sm);
|
|
31
32
|
flex-wrap: nowrap;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
border
|
|
33
|
+
min-block-size: 44px;
|
|
34
|
+
padding: 6px 8px;
|
|
35
|
+
background: var(--icen-token-surface-chrome);
|
|
36
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
37
|
+
border-radius: var(--icen-control-radius-lg);
|
|
36
38
|
}
|
|
37
|
-
.toolbar--wrap { flex-wrap: wrap; }
|
|
38
|
-
.toolbar--borderless {
|
|
39
|
+
.icen-toolbar--wrap { flex-wrap: wrap; }
|
|
40
|
+
.icen-toolbar--borderless {
|
|
39
41
|
background: transparent;
|
|
40
42
|
border-color: transparent;
|
|
41
43
|
padding: 0;
|
|
42
44
|
}
|
|
43
|
-
.toolbar--elevated {
|
|
44
|
-
background: var(--token-
|
|
45
|
-
border-color: var(--token-
|
|
46
|
-
box-shadow: var(--token-shadow-elevated);
|
|
45
|
+
.icen-toolbar--elevated {
|
|
46
|
+
background: var(--icen-token-surface);
|
|
47
|
+
border-color: var(--icen-token-material-edge);
|
|
48
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
/* ── 尺寸 ── */
|
|
50
|
-
.toolbar--sm { padding: 4px
|
|
51
|
-
.toolbar--lg { padding:
|
|
52
|
+
.icen-toolbar--sm { min-block-size: 36px; padding: 4px 6px; gap: var(--icen-density-space-xs); }
|
|
53
|
+
.icen-toolbar--lg { min-block-size: 52px; padding: 8px 12px; gap: var(--icen-density-space-md); }
|
|
52
54
|
|
|
53
55
|
/* ── 分组(紧贴一组按钮) ── */
|
|
54
|
-
.toolbar-group {
|
|
56
|
+
.icen-toolbar-group {
|
|
55
57
|
display: inline-flex;
|
|
56
58
|
align-items: center;
|
|
57
59
|
gap: 2px;
|
|
58
60
|
padding: 2px;
|
|
59
|
-
background: var(--token-fill-
|
|
60
|
-
border-radius: var(--radius-
|
|
61
|
+
background: var(--icen-token-fill-hover);
|
|
62
|
+
border-radius: var(--icen-radius-xs);
|
|
61
63
|
}
|
|
62
|
-
.toolbar-group > .btn { border-color: transparent; background: transparent; }
|
|
63
|
-
.toolbar-group > .btn:hover { background: var(--token-fill-
|
|
64
|
+
.icen-toolbar-group > .icen-btn { border-color: transparent; background: transparent; box-shadow: none; }
|
|
65
|
+
.icen-toolbar-group > .icen-btn:hover { background: var(--icen-token-fill-hover); }
|
|
64
66
|
|
|
65
67
|
/* ── 分隔符 ── */
|
|
66
|
-
.toolbar-separator {
|
|
68
|
+
.icen-toolbar-separator {
|
|
67
69
|
width: 1px;
|
|
68
|
-
height:
|
|
69
|
-
background: var(--token-
|
|
70
|
+
height: 18px;
|
|
71
|
+
background: var(--icen-token-separator);
|
|
70
72
|
flex-shrink: 0;
|
|
71
73
|
}
|
|
72
|
-
.toolbar--sm .toolbar-separator { height:
|
|
73
|
-
.toolbar--lg .toolbar-separator { height:
|
|
74
|
+
.icen-toolbar--sm .icen-toolbar-separator { height: 14px; }
|
|
75
|
+
.icen-toolbar--lg .icen-toolbar-separator { height: 22px; }
|
|
74
76
|
|
|
75
77
|
/* 水平工具条里的垂直分隔(用于纵向 toolbar) */
|
|
76
|
-
.toolbar--vertical { flex-direction: column; align-items: stretch; }
|
|
77
|
-
.toolbar--vertical .toolbar-separator {
|
|
78
|
+
.icen-toolbar--vertical { flex-direction: column; align-items: stretch; }
|
|
79
|
+
.icen-toolbar--vertical .icen-toolbar-separator {
|
|
78
80
|
width: auto;
|
|
79
81
|
height: 1px;
|
|
80
|
-
margin: var(--density-space-xs) 0;
|
|
82
|
+
margin: var(--icen-density-space-xs) 0;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
/* ── 弹性占位 ── */
|
|
84
|
-
.toolbar-spacer { flex: 1 1 auto; min-width: var(--density-space-xs); }
|
|
86
|
+
.icen-toolbar-spacer { flex: 1 1 auto; min-width: var(--icen-density-space-xs); }
|
|
85
87
|
|
|
86
88
|
/* ── 内嵌文字(计数 / 状态) ── */
|
|
87
|
-
.toolbar-label {
|
|
88
|
-
font-size: var(--density-font-size-sm);
|
|
89
|
-
color: var(--token-text-muted);
|
|
89
|
+
.icen-toolbar-label {
|
|
90
|
+
font-size: var(--icen-density-font-size-sm);
|
|
91
|
+
color: var(--icen-token-text-muted);
|
|
90
92
|
font-variant-numeric: tabular-nums;
|
|
91
93
|
white-space: nowrap;
|
|
92
94
|
}
|
|
93
|
-
.toolbar-label.accent { color: var(--token-accent); }
|
|
95
|
+
.icen-toolbar-label.icen-accent { color: var(--icen-token-accent-text); }
|
|
94
96
|
|
|
95
97
|
@media (max-width: 480px) {
|
|
96
|
-
.toolbar { flex-wrap: wrap; }
|
|
98
|
+
.icen-toolbar { flex-wrap: wrap; }
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
@media (prefers-reduced-motion: reduce) {
|
|
100
|
-
.toolbar * { transition: none !important; }
|
|
102
|
+
.icen-toolbar * { transition: none !important; /* guard:allow-important 动效守卫:降级媒体查询需压制组件动画 */ }
|
|
103
|
+
}
|
|
104
|
+
|
|
101
105
|
}
|