@icen.ai/ui 0.8.1 → 0.10.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 +176 -75
- package/README.md +66 -88
- package/dist/base.css +208 -179
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +19 -0
- package/dist/behaviors/ai-branch.mjs +1133 -0
- package/dist/behaviors/ai-chat.d.mts +12 -10
- package/dist/behaviors/ai-chat.mjs +1125 -155
- package/dist/behaviors/ai-composer.d.mts +44 -12
- package/dist/behaviors/ai-composer.mjs +2084 -523
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1016 -107
- package/dist/behaviors/ai-diff.mjs +1019 -127
- package/dist/behaviors/ai-feedback.d.mts +26 -0
- package/dist/behaviors/ai-feedback.mjs +1212 -0
- package/dist/behaviors/ai-panel.d.mts +21 -7
- package/dist/behaviors/ai-panel.mjs +1308 -264
- package/dist/behaviors/ai-provider.mjs +1003 -101
- package/dist/behaviors/ai-threads.d.mts +38 -0
- package/dist/behaviors/ai-threads.mjs +1233 -0
- package/dist/behaviors/ai-tool.d.mts +2 -2
- package/dist/behaviors/ai-tool.mjs +2042 -396
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +4453 -372
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1600 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +951 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +906 -11
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1853 -0
- package/dist/behaviors/charts.d.mts +174 -8
- package/dist/behaviors/charts.mjs +2632 -192
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1611 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +161 -59
- package/dist/behaviors/context-menu.d.mts +9 -8
- package/dist/behaviors/context-menu.mjs +1112 -44
- package/dist/behaviors/controls.d.mts +13 -13
- package/dist/behaviors/controls.mjs +989 -130
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1206 -42
- package/dist/behaviors/datatable.d.mts +53 -3
- package/dist/behaviors/datatable.mjs +1963 -207
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1340 -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 +313 -3
- package/dist/behaviors/events.mjs +47 -2
- 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 +102 -0
- package/dist/behaviors/form-validate.mjs +6091 -0
- package/dist/behaviors/i18n.d.mts +789 -0
- package/dist/behaviors/i18n.mjs +1711 -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 +1056 -60
- package/dist/behaviors/kb-access.d.mts +34 -0
- package/dist/behaviors/kb-access.mjs +2459 -0
- package/dist/behaviors/kb-acl.d.mts +50 -0
- package/dist/behaviors/kb-acl.mjs +1345 -0
- package/dist/behaviors/kb-answer.d.mts +38 -0
- package/dist/behaviors/kb-answer.mjs +3707 -0
- package/dist/behaviors/kb-audit.d.mts +23 -0
- package/dist/behaviors/kb-audit.mjs +1297 -0
- package/dist/behaviors/kb-canvas.d.mts +44 -0
- package/dist/behaviors/kb-canvas.mjs +1512 -0
- package/dist/behaviors/kb-chain.d.mts +15 -0
- package/dist/behaviors/kb-chain.mjs +1192 -0
- package/dist/behaviors/kb-checkpoint.d.mts +16 -0
- package/dist/behaviors/kb-checkpoint.mjs +1492 -0
- package/dist/behaviors/kb-chunks.d.mts +31 -0
- package/dist/behaviors/kb-chunks.mjs +1414 -0
- package/dist/behaviors/kb-citation.d.mts +38 -0
- package/dist/behaviors/kb-citation.mjs +1699 -0
- package/dist/behaviors/kb-clarify.d.mts +20 -0
- package/dist/behaviors/kb-clarify.mjs +1176 -0
- package/dist/behaviors/kb-conflict.d.mts +22 -0
- package/dist/behaviors/kb-conflict.mjs +1206 -0
- package/dist/behaviors/kb-connector.d.mts +17 -0
- package/dist/behaviors/kb-connector.mjs +1303 -0
- package/dist/behaviors/kb-core.d.mts +534 -0
- package/dist/behaviors/kb-core.mjs +1805 -0
- package/dist/behaviors/kb-eval.d.mts +22 -0
- package/dist/behaviors/kb-eval.mjs +2235 -0
- package/dist/behaviors/kb-explain.d.mts +11 -0
- package/dist/behaviors/kb-explain.mjs +1165 -0
- package/dist/behaviors/kb-filter.d.mts +31 -0
- package/dist/behaviors/kb-filter.mjs +2417 -0
- package/dist/behaviors/kb-gap.d.mts +27 -0
- package/dist/behaviors/kb-gap.mjs +1195 -0
- package/dist/behaviors/kb-hittest.d.mts +34 -0
- package/dist/behaviors/kb-hittest.mjs +1352 -0
- package/dist/behaviors/kb-metadata.d.mts +29 -0
- package/dist/behaviors/kb-metadata.mjs +1248 -0
- package/dist/behaviors/kb-passage.d.mts +41 -0
- package/dist/behaviors/kb-passage.mjs +1469 -0
- package/dist/behaviors/kb-pipeline.d.mts +18 -0
- package/dist/behaviors/kb-pipeline.mjs +1301 -0
- package/dist/behaviors/kb-qa.d.mts +26 -0
- package/dist/behaviors/kb-qa.mjs +1260 -0
- package/dist/behaviors/kb-rerank.d.mts +20 -0
- package/dist/behaviors/kb-rerank.mjs +1248 -0
- package/dist/behaviors/kb-retrieval.d.mts +49 -0
- package/dist/behaviors/kb-retrieval.mjs +2585 -0
- package/dist/behaviors/kb-review.d.mts +44 -0
- package/dist/behaviors/kb-review.mjs +2282 -0
- package/dist/behaviors/kb-sandbox.d.mts +33 -0
- package/dist/behaviors/kb-sandbox.mjs +1247 -0
- package/dist/behaviors/kb-segment.d.mts +32 -0
- package/dist/behaviors/kb-segment.mjs +1431 -0
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1989 -0
- package/dist/behaviors/kb-sources.d.mts +27 -0
- package/dist/behaviors/kb-sources.mjs +1287 -0
- package/dist/behaviors/kb-sql.d.mts +43 -0
- package/dist/behaviors/kb-sql.mjs +1865 -0
- package/dist/behaviors/kb-trace.d.mts +16 -0
- package/dist/behaviors/kb-trace.mjs +1328 -0
- package/dist/behaviors/kb-visibility.d.mts +44 -0
- package/dist/behaviors/kb-visibility.mjs +1331 -0
- package/dist/behaviors/kb-who-can.d.mts +32 -0
- package/dist/behaviors/kb-who-can.mjs +2216 -0
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2152 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1055 -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 +1615 -265
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +994 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1410 -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 +9 -9
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +7 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1089 -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 +25 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1359 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1981 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +390 -28
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1266 -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 +1907 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +15 -15
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1076 -66
- package/dist/cli.mjs +5 -6
- package/dist/components/ai-branch.mjs +3 -0
- package/dist/components/ai-chat.css +846 -458
- package/dist/components/ai-diff.css +153 -132
- package/dist/components/ai-feedback.mjs +3 -0
- package/dist/components/ai-panel.css +495 -270
- package/dist/components/ai-threads.mjs +3 -0
- package/dist/components/ai-tool.css +393 -238
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/back-top.css +34 -31
- package/dist/components/badge.css +44 -41
- package/dist/components/breadcrumb.css +67 -46
- package/dist/components/btn.css +80 -74
- package/dist/components/card.css +117 -106
- package/dist/components/cascader.css +311 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +8 -2
- package/dist/components/chart-bar.css +95 -33
- package/dist/components/chart-gauge.css +14 -11
- package/dist/components/chart-graph.css +60 -0
- package/dist/components/chart-graph.mjs +4 -0
- package/dist/components/chart-heatmap.css +96 -90
- package/dist/components/chart-line.css +8 -3
- package/dist/components/chart-map.mjs +3 -0
- package/dist/components/chart-pie.css +9 -6
- package/dist/components/chart-radar.css +8 -5
- package/dist/components/chart-scatter.css +9 -6
- package/dist/components/chart-scatter.mjs +1 -1
- package/dist/components/chart-sparkline.css +5 -2
- package/dist/components/chart-stack.css +14 -11
- package/dist/components/charts.css +190 -67
- package/dist/components/charts.mjs +1 -0
- package/dist/components/code-block.css +418 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +138 -117
- package/dist/components/content.css +257 -251
- package/dist/components/copy.css +72 -44
- package/dist/components/datatable.css +423 -181
- package/dist/components/date-picker.css +135 -104
- package/dist/components/empty.css +68 -65
- package/dist/components/feedback.css +201 -183
- package/dist/components/form-validate.css +120 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +150 -127
- package/dist/components/icon.css +102 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +159 -104
- package/dist/components/kb-access.mjs +4 -0
- package/dist/components/kb-acl.mjs +4 -0
- package/dist/components/kb-agent.css +496 -0
- package/dist/components/kb-answer.mjs +4 -0
- package/dist/components/kb-audit.mjs +4 -0
- package/dist/components/kb-canvas.mjs +4 -0
- package/dist/components/kb-chain.mjs +4 -0
- package/dist/components/kb-checkpoint.mjs +4 -0
- package/dist/components/kb-chunks.mjs +4 -0
- package/dist/components/kb-citation.mjs +4 -0
- package/dist/components/kb-clarify.mjs +4 -0
- package/dist/components/kb-conflict.mjs +4 -0
- package/dist/components/kb-connector.mjs +4 -0
- package/dist/components/kb-data.css +653 -0
- package/dist/components/kb-eval.mjs +4 -0
- package/dist/components/kb-explain.mjs +4 -0
- package/dist/components/kb-filter.mjs +4 -0
- package/dist/components/kb-gap.mjs +4 -0
- package/dist/components/kb-ground.css +578 -0
- package/dist/components/kb-hittest.mjs +4 -0
- package/dist/components/kb-ingest.css +882 -0
- package/dist/components/kb-metadata.mjs +4 -0
- package/dist/components/kb-ops.css +554 -0
- package/dist/components/kb-passage.mjs +4 -0
- package/dist/components/kb-perm.css +433 -0
- package/dist/components/kb-pipeline.mjs +4 -0
- package/dist/components/kb-qa.mjs +4 -0
- package/dist/components/kb-rerank.mjs +4 -0
- package/dist/components/kb-retrieval.mjs +4 -0
- package/dist/components/kb-review.mjs +4 -0
- package/dist/components/kb-sandbox.mjs +4 -0
- package/dist/components/kb-search.css +897 -0
- package/dist/components/kb-segment.mjs +4 -0
- package/dist/components/kb-sources.mjs +4 -0
- package/dist/components/kb-sql.mjs +4 -0
- package/dist/components/kb-trace.mjs +4 -0
- package/dist/components/kb-visibility.mjs +4 -0
- package/dist/components/kb-who-can.mjs +4 -0
- package/dist/components/kb.css +263 -0
- package/dist/components/kb.mjs +9 -0
- package/dist/components/layout.css +85 -82
- package/dist/components/material-chinese.css +73 -0
- package/dist/components/material-soviet.css +76 -0
- package/dist/components/material.css +275 -0
- package/dist/components/media.css +220 -166
- package/dist/components/mentions.css +189 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +113 -105
- package/dist/components/modal.css +107 -112
- package/dist/components/nav.css +118 -115
- package/dist/components/notification.css +238 -174
- package/dist/components/pagination.css +56 -53
- package/dist/components/panel.css +66 -63
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +81 -71
- package/dist/components/popover.css +67 -53
- package/dist/components/scroll-area.css +113 -110
- package/dist/components/segmented.css +146 -143
- package/dist/components/select.css +206 -186
- package/dist/components/sidebar.css +137 -127
- package/dist/components/slider.css +117 -114
- package/dist/components/split-pane.css +112 -109
- package/dist/components/stat.css +112 -106
- package/dist/components/steps.css +109 -103
- package/dist/components/switch.css +138 -134
- package/dist/components/table.css +131 -107
- package/dist/components/tabs.css +114 -108
- package/dist/components/tag-input.css +48 -133
- package/dist/components/tag.css +81 -71
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/toast.css +100 -86
- package/dist/components/toolbar.css +45 -42
- package/dist/components/tooltip.css +102 -43
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +416 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/upload.css +135 -92
- 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 +64 -15
- package/dist/index.mjs +28049 -8595
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8208 -0
- package/dist/registry.json +454 -15
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +365 -1222
- package/dist/tokens/design.css +109 -0
- package/dist/tokens/dtcg.json +11198 -0
- package/dist/tokens/figma.variables.json +7017 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +50 -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 +6728 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1555 -1801
- package/dist/ui.css +16147 -8597
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7781 -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 +475 -0
- package/package.json +42 -7
- package/dist/retro-effects.css +0 -255
- package/dist/tokens/retro-effects.css +0 -255
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@layer icen.components {
|
|
2
|
+
/* Material contract (default 现代 primitive; theme via data-icen-preset):
|
|
3
|
+
* <section data-icen-material="content|chrome|floating">arbitrary content</section>
|
|
4
|
+
* content = opaque reading; chrome = translucent navigation; floating = temporary
|
|
5
|
+
* operations. HTML primitives need no JS. Existing components consume the same
|
|
6
|
+
* recipes automatically. Force opaque via html[data-icen-transparency="reduced"].
|
|
7
|
+
* This file ships with tokens.css as well as ui.css; kit consumers need no extras.
|
|
8
|
+
*/
|
|
9
|
+
/* The base layer also defines interaction defaults. Keep the primitive's
|
|
10
|
+
* interaction recipe in the components layer so separately imported base.css
|
|
11
|
+
* cannot quietly restore a different press/focus model. */
|
|
12
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) {
|
|
13
|
+
--icen-press: scale(.985);
|
|
14
|
+
--icen-press-soft: scale(.99);
|
|
15
|
+
--icen-hover-border: var(--icen-token-line);
|
|
16
|
+
--icen-hover-border-strong: var(--icen-token-line-strong);
|
|
17
|
+
--icen-ring: 0 0 0 2px var(--icen-token-surface), 0 0 0 4px var(--icen-token-accent);
|
|
18
|
+
--icen-ring-soft: 0 0 0 3px var(--icen-token-accent-subtle);
|
|
19
|
+
--icen-control-focus-border: var(--icen-token-accent);
|
|
20
|
+
--icen-control-focus-shadow: var(--icen-token-shadow-inset), var(--icen-ring-soft);
|
|
21
|
+
--icen-disabled-opacity: .48;
|
|
22
|
+
}
|
|
23
|
+
/* Selection is a contained surface, never a check glyph. ARIA remains the source
|
|
24
|
+
* of truth for keyboard/assistive technology; focus has its own outer outline. */
|
|
25
|
+
:root :is(.icen-theme-switcher-option[aria-pressed="true"], .icen-select-option.is-selected, .icen-cascader-item.is-selected, .icen-cascader-item.is-active, .icen-tree-select-row.is-selected, .icen-tree-select-row.is-checked, .icen-menu-item[aria-checked="true"], .icen-menu-item--checked:not([aria-checked="false"]), .icen-ai-composer-popup-option[aria-selected="true"], .icen-kb-checkpoint-menu-item.is-checked) {
|
|
26
|
+
background: var(--icen-token-accent-subtle);
|
|
27
|
+
color: var(--icen-token-text);
|
|
28
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 65%, var(--icen-token-line-soft));
|
|
29
|
+
}
|
|
30
|
+
:root :is(.icen-select-option.is-focused, .icen-cascader-item.is-focused, .icen-tree-select-row.is-focused) { outline: 1px solid var(--icen-token-outline); outline-offset: -3px; }
|
|
31
|
+
|
|
32
|
+
/* Native selection controls keep native values, keyboard behavior and mixed state,
|
|
33
|
+
* but their selected geometry is an inset core rather than an OS check glyph. */
|
|
34
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]) {
|
|
35
|
+
appearance: none;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
inline-size: 16px;
|
|
38
|
+
block-size: 16px;
|
|
39
|
+
flex: 0 0 auto;
|
|
40
|
+
border: 1.5px solid var(--icen-token-outline);
|
|
41
|
+
border-radius: var(--icen-radius-xs);
|
|
42
|
+
padding: 3px;
|
|
43
|
+
background: var(--icen-token-surface);
|
|
44
|
+
background-clip: content-box;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):checked {
|
|
48
|
+
border-color: var(--icen-token-accent);
|
|
49
|
+
background-color: var(--icen-token-accent);
|
|
50
|
+
}
|
|
51
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):indeterminate {
|
|
52
|
+
border-color: var(--icen-token-accent);
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
background-image: linear-gradient(var(--icen-token-accent),var(--icen-token-accent));
|
|
55
|
+
background-size: 8px 2px;
|
|
56
|
+
background-position: center;
|
|
57
|
+
background-repeat: no-repeat;
|
|
58
|
+
}
|
|
59
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
:root :is(.icen-theme-switcher-option[aria-pressed="true"], .icen-select-option.is-selected, .icen-cascader-item.is-selected, .icen-tree-select-row.is-selected, .icen-tree-select-row.is-checked, .icen-menu-item[aria-checked="true"], .icen-ai-composer-popup-option[aria-selected="true"], .icen-kb-checkpoint-menu-item.is-checked) { outline: 3px double Highlight; outline-offset: -3px; }
|
|
62
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]) { forced-color-adjust: none; border-color: CanvasText; background-color: Canvas; }
|
|
63
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):checked { background-color: Highlight; }
|
|
64
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):indeterminate { background-image: linear-gradient(Highlight,Highlight); }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Component display rules must not override native hidden semantics. Preserve
|
|
68
|
+
* until-found so browser find-in-page can reveal intentionally searchable content. */
|
|
69
|
+
:where([class^="icen-"], [class*=" icen-"])[hidden]:not([hidden="until-found"]) {
|
|
70
|
+
display: none !important; /* guard:allow-important native hidden must win over component display:flex/grid */
|
|
71
|
+
}
|
|
72
|
+
:root[data-icen-design-changing] *,
|
|
73
|
+
:root[data-icen-design-changing] *::before,
|
|
74
|
+
:root[data-icen-design-changing] *::after {
|
|
75
|
+
transition: none !important; /* guard:allow-important palette changes must not pass through unreadable intermediate colors */
|
|
76
|
+
}
|
|
77
|
+
:root body {
|
|
78
|
+
font-family: var(--icen-font-body);
|
|
79
|
+
font-variant-numeric: normal;
|
|
80
|
+
font-size: var(--icen-density-font-size-md);
|
|
81
|
+
line-height: var(--icen-line-height-body);
|
|
82
|
+
letter-spacing: var(--icen-letter-spacing-body);
|
|
83
|
+
background: var(--icen-token-canvas);
|
|
84
|
+
color: var(--icen-token-text);
|
|
85
|
+
}
|
|
86
|
+
:root :is(h1,h2,h3,h4,h5,h6) {
|
|
87
|
+
font-family: var(--icen-font-heading);
|
|
88
|
+
letter-spacing: var(--icen-letter-spacing-heading);
|
|
89
|
+
line-height: var(--icen-line-height-heading);
|
|
90
|
+
text-wrap: balance;
|
|
91
|
+
}
|
|
92
|
+
:root :is(button,input,textarea,select) { font-family: var(--icen-font-body); }
|
|
93
|
+
:root [data-icen-material] {
|
|
94
|
+
background: var(--icen-token-surface);
|
|
95
|
+
color: var(--icen-token-text);
|
|
96
|
+
border: 1px solid var(--icen-token-outline-soft);
|
|
97
|
+
border-radius: var(--icen-radius-lg);
|
|
98
|
+
}
|
|
99
|
+
:root :is([data-icen-material="content"],.icen-card) {
|
|
100
|
+
background: var(--icen-token-surface);
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
}
|
|
103
|
+
/* Opaque fallback is the default. Enable transparency only with browser support. */
|
|
104
|
+
:root :is([data-icen-material="chrome"],[data-icen-material="floating"],.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) {
|
|
105
|
+
background: var(--icen-token-surface);
|
|
106
|
+
border-color: var(--icen-token-material-edge);
|
|
107
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
108
|
+
backdrop-filter: none;
|
|
109
|
+
-webkit-backdrop-filter: none;
|
|
110
|
+
}
|
|
111
|
+
:root [data-icen-material="chrome"] { box-shadow: var(--icen-token-material-light); }
|
|
112
|
+
:root .icen-nav[data-icen-scroll-reactive]:not(.is-scrolled) {
|
|
113
|
+
background: var(--icen-token-surface);
|
|
114
|
+
backdrop-filter: none;
|
|
115
|
+
-webkit-backdrop-filter: none;
|
|
116
|
+
}
|
|
117
|
+
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
118
|
+
:root :is([data-icen-material="chrome"],[data-icen-material="floating"],.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) {
|
|
119
|
+
background: var(--icen-token-surface-glass);
|
|
120
|
+
backdrop-filter: blur(var(--icen-design-glass-blur)) saturate(1.15);
|
|
121
|
+
-webkit-backdrop-filter: blur(var(--icen-design-glass-blur)) saturate(1.15);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
:root .icen-nav { box-shadow: var(--icen-token-material-light); }
|
|
125
|
+
:root .icen-btn {
|
|
126
|
+
--btn-border-hover: var(--icen-token-line);
|
|
127
|
+
gap: var(--icen-density-space-sm);
|
|
128
|
+
border-radius: var(--icen-radius-md);
|
|
129
|
+
letter-spacing: 0;
|
|
130
|
+
}
|
|
131
|
+
:root .icen-btn-primary { --btn-border-hover: var(--icen-token-accent-strong); }
|
|
132
|
+
:root :is(.icen-btn-ghost,.icen-btn-link) { --btn-border-hover: transparent; }
|
|
133
|
+
:root .icen-btn-link { --btn-fg: var(--icen-token-accent-text); }
|
|
134
|
+
:root .icen-btn-primary:hover:not(:focus-visible) { box-shadow: none; }
|
|
135
|
+
:root .icen-btn:active:not(:disabled):not([aria-disabled="true"]):not([data-icen-disabled]):not(.is-loading) { transform: var(--icen-press-soft); }
|
|
136
|
+
:root .icen-btn-danger:hover { color: var(--icen-token-error); background: var(--icen-token-error-muted); }
|
|
137
|
+
:root .icen-segmented { padding: var(--icen-density-space-xs); gap: var(--icen-density-space-xs); }
|
|
138
|
+
:root .icen-segmented-item { border-radius: max(0px, calc(var(--icen-radius-md) - var(--icen-density-space-xs) - 1px)); }
|
|
139
|
+
:root :is(.icen-segmented-item.is-active,.icen-segmented-item[aria-checked="true"],.icen-toggle-group-btn.is-active) {
|
|
140
|
+
background: var(--icen-token-surface);
|
|
141
|
+
color: var(--icen-token-text);
|
|
142
|
+
box-shadow: var(--icen-token-shadow-card);
|
|
143
|
+
}
|
|
144
|
+
:root :is(.icen-menu,.icen-popover,.icen-select-panel) { border-radius: var(--icen-radius-lg); }
|
|
145
|
+
:root .icen-modal {
|
|
146
|
+
border-radius: var(--icen-radius-xl);
|
|
147
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-overlay);
|
|
148
|
+
}
|
|
149
|
+
:root :is(.icen-modal-backdrop,.icen-command-palette-backdrop) {
|
|
150
|
+
background: var(--icen-token-scrim);
|
|
151
|
+
backdrop-filter: none;
|
|
152
|
+
-webkit-backdrop-filter: none;
|
|
153
|
+
}
|
|
154
|
+
:root .icen-card--elevated { box-shadow: var(--icen-token-shadow-card); }
|
|
155
|
+
:root .icen-card--interactive:hover { transform: none; border-color: var(--icen-token-line); }
|
|
156
|
+
:root .icen-card--interactive:focus-within { box-shadow: var(--icen-ring); }
|
|
157
|
+
:root .icen-switch-thumb { background: var(--icen-token-text-muted); }
|
|
158
|
+
:root .icen-switch[aria-checked="true"] .icen-switch-thumb { background: var(--icen-token-on-accent); }
|
|
159
|
+
:root .icen-input-wrap--sm { padding-inline: var(--icen-density-space-sm); }
|
|
160
|
+
/* 现代: small controls have a legible edge and a quiet, tactile surface. Keep
|
|
161
|
+
* these optical refinements local to the default primitive; other primitives
|
|
162
|
+
* supply their own surface physics without fighting a global component rule. */
|
|
163
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:not(.icen-btn-ghost):not(.icen-btn-link) {
|
|
164
|
+
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--icen-token-top-highlight) 45%, transparent), 0 1px 2px color-mix(in srgb, var(--icen-design-shadow-color) calc(var(--icen-design-shadow-strength) * .35), transparent);
|
|
165
|
+
}
|
|
166
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:focus-visible {
|
|
167
|
+
box-shadow: var(--icen-ring);
|
|
168
|
+
}
|
|
169
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:active:not(:disabled):not([aria-disabled="true"]):not([data-icen-disabled]):not(.is-loading) {
|
|
170
|
+
box-shadow: var(--icen-token-shadow-inset);
|
|
171
|
+
}
|
|
172
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:active:focus-visible {
|
|
173
|
+
box-shadow: var(--icen-token-shadow-inset), var(--icen-ring);
|
|
174
|
+
}
|
|
175
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is(.icen-input-wrap,.icen-textarea-wrap) {
|
|
176
|
+
padding-inline: var(--icen-density-space-md);
|
|
177
|
+
}
|
|
178
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is(.icen-input,.icen-textarea)::placeholder {
|
|
179
|
+
color: var(--icen-token-text-faint);
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
/* Data readability is explicit, never applied to every numeral in prose. */
|
|
183
|
+
:root :is(.icen-numeric,.icen-table,.icen-datatable,.icen-stat-num) { font-variant-numeric: lining-nums tabular-nums; }
|
|
184
|
+
/* Any translucent material has an opaque alternative, including native controls. */
|
|
185
|
+
:root[data-icen-transparency="reduced"] :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) {
|
|
186
|
+
background: var(--icen-token-surface);
|
|
187
|
+
backdrop-filter: none;
|
|
188
|
+
-webkit-backdrop-filter: none;
|
|
189
|
+
}
|
|
190
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
191
|
+
:root :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) {
|
|
192
|
+
background: var(--icen-token-surface);
|
|
193
|
+
backdrop-filter: none;
|
|
194
|
+
-webkit-backdrop-filter: none;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
@media (prefers-reduced-motion: reduce) {
|
|
198
|
+
:root *, :root *::before, :root *::after {
|
|
199
|
+
animation-duration: .01ms !important; /* guard:allow-important accessibility override must beat component animation */
|
|
200
|
+
transition-duration: .01ms !important; /* guard:allow-important accessibility override must beat component transition */
|
|
201
|
+
scroll-behavior: auto !important; /* guard:allow-important reduced motion includes scrolling */
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
@media (pointer: coarse) {
|
|
205
|
+
:root :is(.icen-btn,.icen-segmented-item,.icen-menu-item,.icen-modal-close) { min-block-size: var(--icen-density-input-height-md); }
|
|
206
|
+
/* Preserve the switch's visual geometry, expand its pointer target instead. */
|
|
207
|
+
:root .icen-switch::before {
|
|
208
|
+
content: '';
|
|
209
|
+
position: absolute;
|
|
210
|
+
inset-block: calc((100% - 44px) / 2);
|
|
211
|
+
inset-inline: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
@media (forced-colors: active) {
|
|
215
|
+
:root :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
|
|
216
|
+
:root :is([data-icen-material],.icen-menu,.icen-popover,.icen-card--glass) {
|
|
217
|
+
background: Canvas;
|
|
218
|
+
color: CanvasText;
|
|
219
|
+
border-color: CanvasText;
|
|
220
|
+
box-shadow: none;
|
|
221
|
+
backdrop-filter: none;
|
|
222
|
+
-webkit-backdrop-filter: none;
|
|
223
|
+
}
|
|
224
|
+
:root .icen-segmented-item[aria-checked="true"] { outline: 2px solid Highlight; }
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Pixel adapters: inherit palette, replace surface physics. */
|
|
228
|
+
:root[data-icen-style="pixel"] :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) {
|
|
229
|
+
background: var(--icen-token-surface);
|
|
230
|
+
border-color: var(--icen-token-line-strong);
|
|
231
|
+
backdrop-filter: none;
|
|
232
|
+
-webkit-backdrop-filter: none;
|
|
233
|
+
}
|
|
234
|
+
:root[data-icen-style="pixel"] :is(.icen-btn,.icen-input-wrap,.icen-textarea-wrap,.icen-select-trigger,.icen-segmented,[data-icen-material],.icen-card,.icen-modal) {
|
|
235
|
+
border-width: 2px;
|
|
236
|
+
border-radius: var(--icen-radius-md);
|
|
237
|
+
}
|
|
238
|
+
:root[data-icen-style="pixel"] :is(.icen-btn,.icen-input-wrap,.icen-select-trigger) { box-shadow: var(--icen-token-shadow-card); }
|
|
239
|
+
:root[data-icen-style="pixel"] :is(.icen-btn-ghost,.icen-btn-link) { box-shadow: none; }
|
|
240
|
+
:root[data-icen-style="pixel"] .icen-btn:active:not(:disabled):not([aria-disabled="true"]) { box-shadow: none; }
|
|
241
|
+
:root[data-icen-style="pixel"] .icen-btn:focus-visible { box-shadow: var(--icen-ring); }
|
|
242
|
+
:root[data-icen-style="pixel"] .icen-input-wrap:focus-within { box-shadow: var(--icen-control-focus-shadow); }
|
|
243
|
+
:root[data-icen-style="pixel"] :is(h1,h2,h3,h4,h5,h6) { font-weight: 400; letter-spacing: 0; }
|
|
244
|
+
:root[data-icen-style="pixel"] h1 { font-size: 48px; }
|
|
245
|
+
:root[data-icen-style="pixel"] :is(h2,h3) { font-size: 24px; }
|
|
246
|
+
:root[data-icen-style="pixel"] :is(button,input,select,textarea) { font-weight: 400; }
|
|
247
|
+
:root[data-icen-style="pixel"] .icen-segmented-item { border-radius: var(--icen-radius-md); }
|
|
248
|
+
:root[data-icen-style="pixel"] :is(.icen-switch,.icen-switch-thumb) { border-radius: var(--icen-radius-md); }
|
|
249
|
+
:root[data-icen-style="pixel"] :is(.icen-avatar,.icen-stat-icon) { border-radius: var(--icen-radius-md); }
|
|
250
|
+
/* Halftone is reserved for selected/structural surfaces, never under long text. */
|
|
251
|
+
:root[data-icen-style="pixel"] .icen-segmented {
|
|
252
|
+
background-color: var(--icen-token-bg-soft);
|
|
253
|
+
background-image: repeating-linear-gradient(135deg,transparent 0 2px,var(--icen-token-line-soft) 2px 3px,transparent 3px 5px);
|
|
254
|
+
}
|
|
255
|
+
:root[data-icen-style="pixel"] :is(.icen-toast,.icen-notification,.icen-tooltip,.icen-date-picker-panel,.icen-menu,.icen-popover) {
|
|
256
|
+
border: 2px solid var(--icen-token-line-strong);
|
|
257
|
+
box-shadow: var(--icen-token-shadow-elevated);
|
|
258
|
+
}
|
|
259
|
+
:root[data-icen-style="pixel"] :is(.icen-menu-item,.icen-select-option) { border-radius: var(--icen-radius-md); }
|
|
260
|
+
:root[data-icen-style="pixel"] :is(.icen-menu-item,.icen-select-option).is-focused {
|
|
261
|
+
outline: 2px solid var(--icen-token-accent);
|
|
262
|
+
outline-offset: -2px;
|
|
263
|
+
}
|
|
264
|
+
:root[data-icen-style="pixel"] :is(.icen-progress-track,.icen-slider-track) {
|
|
265
|
+
border: 1px solid var(--icen-token-line-strong);
|
|
266
|
+
border-radius: var(--icen-radius-md);
|
|
267
|
+
background-image: repeating-linear-gradient(90deg,transparent 0 3px,var(--icen-token-line-soft) 3px 4px);
|
|
268
|
+
}
|
|
269
|
+
/* Standalone outline, including when shadows disappear in forced colors. */
|
|
270
|
+
:root[data-icen-style="pixel"] :focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 3px; }
|
|
271
|
+
@media (max-width: 640px) {
|
|
272
|
+
:root[data-icen-style="pixel"] h1 { font-size: 36px; }
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
}
|