@icen.ai/ui 0.10.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 +79 -309
- package/LICENSE +21 -0
- package/README.md +43 -54
- package/dist/base.css +57 -16
- package/dist/behaviors/accordion.mjs +1 -1
- package/dist/behaviors/ai-branch.mjs +1 -0
- package/dist/behaviors/ai-chat.d.mts +2 -2
- package/dist/behaviors/ai-chat.mjs +53 -10
- package/dist/behaviors/ai-composer.d.mts +5 -5
- package/dist/behaviors/ai-composer.mjs +21 -10
- package/dist/behaviors/ai-core.mjs +1 -0
- package/dist/behaviors/ai-diff.mjs +1 -0
- package/dist/behaviors/ai-feedback.mjs +1 -0
- package/dist/behaviors/ai-panel.d.mts +2 -2
- package/dist/behaviors/ai-panel.mjs +1 -0
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +1 -0
- package/dist/behaviors/ai-threads.mjs +1 -0
- package/dist/behaviors/ai-tool.d.mts +1 -1
- package/dist/behaviors/ai-tool.mjs +57 -24
- package/dist/behaviors/ai-tools.mjs +937 -28
- package/dist/behaviors/autocomplete.d.mts +1 -1
- package/dist/behaviors/autocomplete.mjs +1 -0
- package/dist/behaviors/back-top.mjs +1 -0
- package/dist/behaviors/carousel.mjs +8 -1
- package/dist/behaviors/cascader.mjs +14 -0
- package/dist/behaviors/charts.mjs +56 -20
- package/dist/behaviors/code-block.mjs +9 -1
- package/dist/behaviors/command-palette.mjs +3 -3
- package/dist/behaviors/context-menu.d.mts +2 -2
- package/dist/behaviors/context-menu.mjs +1 -0
- package/dist/behaviors/controls.d.mts +8 -8
- package/dist/behaviors/controls.mjs +37 -6
- package/dist/behaviors/copy.mjs +1 -0
- package/dist/behaviors/datatable.d.mts +3 -3
- package/dist/behaviors/datatable.mjs +76 -11
- package/dist/behaviors/date-picker.mjs +1 -0
- package/dist/behaviors/events.d.mts +10 -10
- package/dist/behaviors/events.mjs +11 -1
- package/dist/behaviors/form-validate.d.mts +10 -1
- package/dist/behaviors/form-validate.mjs +266 -4611
- package/dist/behaviors/i18n.d.mts +1 -0
- package/dist/behaviors/i18n.mjs +2 -0
- package/dist/behaviors/input.mjs +3 -0
- package/dist/behaviors/kb-access.d.mts +2 -2
- package/dist/behaviors/kb-access.mjs +8 -2
- package/dist/behaviors/kb-acl.d.mts +2 -2
- package/dist/behaviors/kb-acl.mjs +1 -0
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +56 -23
- package/dist/behaviors/kb-audit.d.mts +2 -2
- package/dist/behaviors/kb-audit.mjs +1 -0
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +1 -0
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +1 -0
- package/dist/behaviors/kb-checkpoint.d.mts +2 -2
- package/dist/behaviors/kb-checkpoint.mjs +1 -0
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +1 -0
- package/dist/behaviors/kb-citation.d.mts +2 -2
- package/dist/behaviors/kb-citation.mjs +20 -6
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +1 -0
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +1 -0
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +1 -0
- package/dist/behaviors/kb-core.d.mts +1 -1
- package/dist/behaviors/kb-core.mjs +1 -0
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +8 -2
- package/dist/behaviors/kb-explain.d.mts +2 -2
- package/dist/behaviors/kb-explain.mjs +13 -2
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +8 -2
- package/dist/behaviors/kb-gap.d.mts +2 -2
- package/dist/behaviors/kb-gap.mjs +1 -0
- package/dist/behaviors/kb-hittest.d.mts +2 -2
- package/dist/behaviors/kb-hittest.mjs +2 -1
- package/dist/behaviors/kb-metadata.mjs +6 -0
- package/dist/behaviors/kb-passage.d.mts +2 -2
- package/dist/behaviors/kb-passage.mjs +1 -0
- package/dist/behaviors/kb-pipeline.d.mts +2 -2
- package/dist/behaviors/kb-pipeline.mjs +1 -0
- package/dist/behaviors/kb-qa.mjs +1 -0
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +1 -0
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +18 -4
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +8 -2
- package/dist/behaviors/kb-sandbox.d.mts +2 -2
- package/dist/behaviors/kb-sandbox.mjs +7 -1
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +2 -1
- package/dist/behaviors/kb-select.mjs +8 -2
- package/dist/behaviors/kb-sources.d.mts +2 -2
- package/dist/behaviors/kb-sources.mjs +1 -0
- package/dist/behaviors/kb-sql.d.mts +2 -2
- package/dist/behaviors/kb-sql.mjs +1 -0
- package/dist/behaviors/kb-trace.d.mts +2 -2
- package/dist/behaviors/kb-trace.mjs +9 -3
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +1 -0
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +8 -2
- package/dist/behaviors/mentions.d.mts +1 -1
- package/dist/behaviors/mentions.mjs +1 -0
- package/dist/behaviors/modal.d.mts +1 -1
- package/dist/behaviors/modal.mjs +1 -0
- package/dist/behaviors/notification.d.mts +2 -2
- package/dist/behaviors/notification.mjs +14 -3
- package/dist/behaviors/panel.mjs +1 -0
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.mjs +8 -2
- package/dist/behaviors/slider.mjs +3 -3
- package/dist/behaviors/split-pane.mjs +2 -0
- package/dist/behaviors/suggestions.mjs +1 -0
- package/dist/behaviors/tabs.mjs +10 -0
- package/dist/behaviors/tag-input.mjs +1 -0
- package/dist/behaviors/theme-switcher.d.mts +2 -2
- package/dist/behaviors/theme-switcher.mjs +17 -2
- package/dist/behaviors/theme.mjs +16 -2
- package/dist/behaviors/toast.d.mts +2 -2
- package/dist/behaviors/toast.mjs +1 -0
- package/dist/behaviors/tree-select.mjs +14 -0
- package/dist/behaviors/tree.mjs +4 -4
- package/dist/behaviors/upload.mjs +1 -0
- package/dist/behaviors/url-safety.d.mts +8 -0
- package/dist/behaviors/url-safety.mjs +11 -0
- package/dist/components/accordion.d.mts +2 -0
- package/dist/components/ai-branch.d.mts +2 -0
- package/dist/components/ai-chat.css +40 -33
- 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 +6 -6
- 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 +12 -10
- 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 +16 -16
- package/dist/components/ai-usage.d.mts +2 -0
- package/dist/components/alert.d.mts +2 -0
- package/dist/components/autocomplete.css +12 -12
- package/dist/components/autocomplete.d.mts +2 -0
- package/dist/components/avatar.d.mts +2 -0
- package/dist/components/back-top.css +47 -16
- package/dist/components/back-top.d.mts +2 -0
- package/dist/components/badge.css +1 -1
- package/dist/components/badge.d.mts +2 -0
- package/dist/components/breadcrumb.css +26 -8
- package/dist/components/breadcrumb.d.mts +2 -0
- package/dist/components/btn.css +67 -62
- package/dist/components/btn.d.mts +2 -0
- package/dist/components/card.css +22 -22
- package/dist/components/card.d.mts +2 -0
- package/dist/components/carousel.d.mts +2 -0
- package/dist/components/cascader.css +56 -35
- package/dist/components/cascader.d.mts +2 -0
- package/dist/components/chart-area.css +46 -0
- package/dist/components/chart-area.d.mts +2 -0
- package/dist/components/chart-bar.css +66 -19
- package/dist/components/chart-bar.d.mts +2 -0
- package/dist/components/chart-calendar.d.mts +2 -0
- package/dist/components/chart-gauge.css +23 -3
- package/dist/components/chart-gauge.d.mts +2 -0
- package/dist/components/chart-graph.css +15 -3
- package/dist/components/chart-graph.d.mts +2 -0
- package/dist/components/chart-heatmap.css +117 -95
- package/dist/components/chart-heatmap.d.mts +2 -0
- package/dist/components/chart-line.css +54 -0
- package/dist/components/chart-line.d.mts +2 -0
- package/dist/components/chart-map.d.mts +2 -0
- package/dist/components/chart-pie.css +29 -0
- package/dist/components/chart-pie.d.mts +2 -0
- package/dist/components/chart-radar.css +50 -1
- package/dist/components/chart-radar.d.mts +2 -0
- package/dist/components/chart-scatter.css +39 -2
- package/dist/components/chart-scatter.d.mts +2 -0
- package/dist/components/chart-sparkline.css +20 -0
- package/dist/components/chart-sparkline.d.mts +2 -0
- package/dist/components/chart-stack.css +16 -5
- package/dist/components/chart-stack.d.mts +2 -0
- package/dist/components/charts.css +80 -35
- package/dist/components/charts.d.mts +2 -0
- package/dist/components/code-block.css +10 -8
- package/dist/components/code-block.d.mts +2 -0
- package/dist/components/command-palette.css +45 -38
- package/dist/components/command-palette.d.mts +2 -0
- package/dist/components/content.css +62 -57
- package/dist/components/context-menu.d.mts +2 -0
- package/dist/components/copy.css +10 -10
- package/dist/components/copy.d.mts +2 -0
- package/dist/components/datatable.css +72 -59
- package/dist/components/datatable.d.mts +2 -0
- package/dist/components/date-picker.css +26 -26
- 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 +16 -16
- package/dist/components/empty.d.mts +2 -0
- package/dist/components/feedback.css +31 -29
- package/dist/components/form-validate.css +20 -6
- package/dist/components/form-validate.d.mts +2 -0
- package/dist/components/form.css +17 -14
- package/dist/components/form.d.mts +2 -0
- package/dist/components/icon.css +21 -10
- package/dist/components/icon.d.mts +2 -0
- package/dist/components/input.css +22 -22
- 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 +134 -55
- 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 +192 -80
- 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 +165 -73
- package/dist/components/kb-hittest.d.mts +2 -0
- package/dist/components/kb-ingest.css +308 -113
- package/dist/components/kb-metadata.d.mts +2 -0
- package/dist/components/kb-ops.css +189 -75
- package/dist/components/kb-passage.d.mts +2 -0
- package/dist/components/kb-perm.css +158 -87
- 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 +353 -116
- 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 +60 -36
- package/dist/components/kb.d.mts +2 -0
- package/dist/components/kbd.d.mts +2 -0
- package/dist/components/layout.css +10 -10
- package/dist/components/layout.d.mts +2 -0
- package/dist/components/list.d.mts +2 -0
- package/dist/components/material-chinese.css +10 -0
- package/dist/components/material-soviet.css +10 -0
- package/dist/components/material.css +61 -18
- package/dist/components/media-card.d.mts +2 -0
- package/dist/components/media.css +22 -27
- package/dist/components/mentions.css +18 -17
- package/dist/components/mentions.d.mts +2 -0
- package/dist/components/menu.css +32 -28
- package/dist/components/modal.css +30 -27
- package/dist/components/modal.d.mts +2 -0
- package/dist/components/nav.css +48 -44
- package/dist/components/nav.d.mts +2 -0
- package/dist/components/notification.css +31 -25
- package/dist/components/notification.d.mts +2 -0
- package/dist/components/pagination.css +15 -13
- package/dist/components/pagination.d.mts +2 -0
- package/dist/components/panel.css +19 -20
- package/dist/components/panel.d.mts +2 -0
- package/dist/components/pill.css +8 -7
- package/dist/components/pill.d.mts +2 -0
- package/dist/components/popover.css +32 -23
- 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 +84 -112
- package/dist/components/scroll-area.d.mts +2 -0
- package/dist/components/scroll-area.mjs +1 -0
- package/dist/components/segmented.css +47 -29
- package/dist/components/segmented.d.mts +2 -0
- package/dist/components/select.css +80 -41
- package/dist/components/select.d.mts +2 -0
- package/dist/components/sidebar.css +42 -38
- package/dist/components/sidebar.d.mts +2 -0
- package/dist/components/skeleton.d.mts +2 -0
- package/dist/components/slider.css +26 -22
- package/dist/components/slider.d.mts +2 -0
- package/dist/components/spinner.d.mts +2 -0
- package/dist/components/split-pane.css +16 -7
- package/dist/components/split-pane.d.mts +2 -0
- package/dist/components/stat.css +17 -16
- package/dist/components/stat.d.mts +2 -0
- package/dist/components/steps.css +26 -26
- package/dist/components/steps.d.mts +2 -0
- package/dist/components/switch.css +78 -39
- package/dist/components/switch.d.mts +2 -0
- package/dist/components/table.css +54 -32
- package/dist/components/table.d.mts +2 -0
- package/dist/components/tabs.css +53 -32
- package/dist/components/tabs.d.mts +2 -0
- package/dist/components/tag-input.css +12 -8
- package/dist/components/tag-input.d.mts +2 -0
- package/dist/components/tag.css +20 -12
- package/dist/components/tag.d.mts +2 -0
- package/dist/components/theme-switcher.css +7 -7
- package/dist/components/theme-switcher.d.mts +2 -0
- package/dist/components/timeline.d.mts +2 -0
- package/dist/components/toast.css +34 -30
- package/dist/components/toast.d.mts +2 -0
- package/dist/components/toolbar.css +19 -18
- package/dist/components/toolbar.d.mts +2 -0
- package/dist/components/tooltip.css +9 -8
- package/dist/components/tooltip.d.mts +2 -0
- package/dist/components/tree-select.css +63 -40
- package/dist/components/tree-select.d.mts +2 -0
- package/dist/components/tree.d.mts +2 -0
- package/dist/components/upload.css +9 -11
- package/dist/components/upload.d.mts +2 -0
- package/dist/index.d.mts +85 -84
- package/dist/index.mjs +14764 -14311
- package/dist/react.d.mts +18 -18
- package/dist/react.mjs +135 -36
- package/dist/registry.json +795 -64
- package/dist/tokens/colors.css +6 -0
- package/dist/tokens/design.css +130 -30
- package/dist/tokens/dtcg.json +6189 -1461
- package/dist/tokens/figma.variables.json +4107 -345
- package/dist/tokens/pixel.css +3 -0
- package/dist/tokens/scrollbars.css +40 -0
- package/dist/tokens/tokens-studio.json +5191 -271
- package/dist/tokens.css +304 -81
- package/dist/ui.css +4050 -2148
- package/dist/vue.d.mts +17 -17
- package/dist/vue.mjs +129 -34
- package/docs/spec/design-philosophy.md +5 -5
- package/docs/spec/design-primitives.md +10 -10
- package/docs/spec/scrollbars.md +46 -0
- package/package.json +16 -3
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
justify-content: center;
|
|
48
48
|
padding-top: 12vh;
|
|
49
49
|
padding-inline: var(--icen-density-space-md);
|
|
50
|
-
background:
|
|
51
|
-
backdrop-filter:
|
|
52
|
-
-webkit-backdrop-filter:
|
|
50
|
+
background: var(--icen-token-scrim);
|
|
51
|
+
backdrop-filter: none;
|
|
52
|
+
-webkit-backdrop-filter: none;
|
|
53
53
|
animation: icen-cp-fade-in var(--icen-tx-fast);
|
|
54
54
|
/* 退场走过渡(behavior 的 closing 阶段;可中断续接) */
|
|
55
|
-
transition: opacity var(--icen-
|
|
55
|
+
transition: opacity var(--icen-duration-fast) var(--icen-ease-out);
|
|
56
56
|
}
|
|
57
57
|
.icen-command-palette-backdrop[hidden] { display: none; }
|
|
58
58
|
.icen-command-palette-backdrop[data-icen-state='closing'] {
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
max-inline-size: 560px;
|
|
69
69
|
max-block-size: 70vh;
|
|
70
70
|
overflow: hidden;
|
|
71
|
-
background: var(--icen-token-
|
|
72
|
-
border: 1px solid var(--icen-token-
|
|
71
|
+
background: var(--icen-token-surface);
|
|
72
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
73
73
|
border-radius: var(--icen-radius-lg);
|
|
74
|
-
box-shadow: var(--icen-token-shadow-overlay);
|
|
75
|
-
animation: icen-cp-scale-in var(--icen-
|
|
76
|
-
transition: transform var(--icen-
|
|
74
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-overlay);
|
|
75
|
+
animation: icen-cp-scale-in var(--icen-duration-normal) var(--icen-ease-enter);
|
|
76
|
+
transition: transform var(--icen-duration-fast) var(--icen-ease-exit);
|
|
77
77
|
}
|
|
78
78
|
.icen-command-palette-backdrop[data-icen-state='closing'] .icen-command-palette {
|
|
79
79
|
transform: translateY(2px) scale(0.99);
|
|
@@ -85,17 +85,18 @@
|
|
|
85
85
|
display: flex;
|
|
86
86
|
align-items: center;
|
|
87
87
|
gap: var(--icen-density-space-sm);
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
min-block-size: 48px;
|
|
89
|
+
padding: 8px var(--icen-density-space-md);
|
|
90
|
+
border-bottom: 1px solid var(--icen-token-separator-soft);
|
|
90
91
|
}
|
|
91
92
|
.icen-command-palette-search-icon {
|
|
92
93
|
display: inline-flex;
|
|
93
94
|
align-items: center;
|
|
94
95
|
justify-content: center;
|
|
95
|
-
color: var(--icen-token-text-
|
|
96
|
+
color: var(--icen-token-text-muted);
|
|
96
97
|
flex-shrink: 0;
|
|
97
98
|
}
|
|
98
|
-
.icen-command-palette-search-icon svg { width:
|
|
99
|
+
.icen-command-palette-search-icon svg { width: 18px; height: 18px; }
|
|
99
100
|
.icen-command-palette-input {
|
|
100
101
|
flex: 1;
|
|
101
102
|
min-width: 0;
|
|
@@ -104,17 +105,23 @@
|
|
|
104
105
|
background: transparent;
|
|
105
106
|
color: var(--icen-token-text);
|
|
106
107
|
font: inherit;
|
|
107
|
-
font-size: var(--icen-density-font-size-
|
|
108
|
+
font-size: var(--icen-density-font-size-lg);
|
|
109
|
+
}
|
|
110
|
+
/* 搜索栏不是 .icen-control(吃不到全局 focus-within 环):输入框是开面板即聚焦的
|
|
111
|
+
主控件,焦点可见性自持——包裹层给 focus-within 软环 */
|
|
112
|
+
.icen-command-palette-search:focus-within {
|
|
113
|
+
box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--icen-token-accent) 30%, transparent);
|
|
114
|
+
border-radius: 0;
|
|
108
115
|
}
|
|
109
116
|
.icen-command-palette-input::placeholder {
|
|
110
|
-
color:
|
|
117
|
+
color: var(--icen-token-text-muted);
|
|
111
118
|
}
|
|
112
119
|
.icen-command-palette-esc {
|
|
113
120
|
font-family: var(--icen-font-mono);
|
|
114
121
|
font-size: var(--icen-density-font-size-xs);
|
|
115
|
-
color: var(--icen-token-text-
|
|
122
|
+
color: var(--icen-token-text-muted);
|
|
116
123
|
padding: 2px 6px;
|
|
117
|
-
border: 1px solid var(--icen-token-
|
|
124
|
+
border: 1px solid var(--icen-token-control-border);
|
|
118
125
|
border-radius: var(--icen-radius-xs);
|
|
119
126
|
flex-shrink: 0;
|
|
120
127
|
}
|
|
@@ -136,38 +143,38 @@
|
|
|
136
143
|
}
|
|
137
144
|
.icen-command-palette-group:last-child { margin-bottom: 0; }
|
|
138
145
|
.icen-command-palette-group-label {
|
|
139
|
-
margin: var(--icen-density-space-sm) var(--icen-density-space-sm)
|
|
140
|
-
font-size: var(--icen-
|
|
146
|
+
margin: var(--icen-density-space-sm) var(--icen-density-space-sm) 3px;
|
|
147
|
+
font-size: var(--icen-font-size-caption);
|
|
141
148
|
font-weight: 600;
|
|
142
|
-
color: var(--icen-token-text-
|
|
143
|
-
letter-spacing:
|
|
144
|
-
text-transform: uppercase;
|
|
149
|
+
color: var(--icen-token-text-muted);
|
|
150
|
+
letter-spacing: var(--icen-letter-spacing-caption);
|
|
145
151
|
}
|
|
146
152
|
.icen-command-palette-group:first-child .icen-command-palette-group-label { margin-top: 0; }
|
|
147
153
|
|
|
148
154
|
.icen-command-palette-item {
|
|
149
155
|
display: flex;
|
|
150
156
|
align-items: center;
|
|
151
|
-
gap: var(--icen-
|
|
157
|
+
gap: var(--icen-control-gap-sm);
|
|
152
158
|
width: 100%;
|
|
153
|
-
|
|
159
|
+
min-block-size: var(--icen-control-height-sm);
|
|
160
|
+
padding: 5px var(--icen-density-space-sm);
|
|
154
161
|
border: 0;
|
|
155
|
-
border-radius: var(--icen-radius-
|
|
162
|
+
border-radius: var(--icen-radius-xs);
|
|
156
163
|
background: transparent;
|
|
157
164
|
color: var(--icen-token-text);
|
|
158
165
|
font: inherit;
|
|
159
|
-
font-size: var(--icen-
|
|
166
|
+
font-size: var(--icen-font-size-control);
|
|
160
167
|
text-align: start;
|
|
161
168
|
cursor: pointer;
|
|
162
169
|
-webkit-tap-highlight-color: transparent;
|
|
163
170
|
transition: background-color var(--icen-tx-fast);
|
|
164
171
|
}
|
|
165
|
-
.icen-command-palette-item:hover { background: var(--icen-token-fill-
|
|
172
|
+
.icen-command-palette-item:hover { background: var(--icen-token-fill-hover); }
|
|
166
173
|
.icen-command-palette-item.is-active {
|
|
167
|
-
/* 当前候选 =
|
|
168
|
-
background: var(--icen-token-
|
|
174
|
+
/* 当前候选 = 选中表面;与菜单/选择器同语言 */
|
|
175
|
+
background: var(--icen-token-fill-selected);
|
|
169
176
|
color: var(--icen-token-text);
|
|
170
|
-
box-shadow:
|
|
177
|
+
box-shadow: none;
|
|
171
178
|
}
|
|
172
179
|
.icen-command-palette-item:focus-visible {
|
|
173
180
|
outline: none;
|
|
@@ -181,9 +188,9 @@
|
|
|
181
188
|
flex-shrink: 0;
|
|
182
189
|
width: 18px;
|
|
183
190
|
height: 18px;
|
|
184
|
-
color: var(--icen-token-text-
|
|
191
|
+
color: var(--icen-token-text-muted);
|
|
185
192
|
}
|
|
186
|
-
.icen-command-palette-item.is-active .icen-command-palette-item-icon { color: var(--icen-token-accent); }
|
|
193
|
+
.icen-command-palette-item.is-active .icen-command-palette-item-icon { color: var(--icen-token-accent-strong); }
|
|
187
194
|
.icen-command-palette-item-icon svg { width: 16px; height: 16px; }
|
|
188
195
|
.icen-command-palette-item-label {
|
|
189
196
|
flex: 1;
|
|
@@ -221,22 +228,22 @@
|
|
|
221
228
|
|
|
222
229
|
/* ── 底栏 ── */
|
|
223
230
|
.icen-command-palette-foot {
|
|
224
|
-
padding:
|
|
225
|
-
border-top: 1px solid var(--icen-token-
|
|
226
|
-
background: var(--icen-token-
|
|
231
|
+
padding: 6px var(--icen-density-space-md);
|
|
232
|
+
border-top: 1px solid var(--icen-token-separator-soft);
|
|
233
|
+
background: var(--icen-token-surface-chrome);
|
|
227
234
|
}
|
|
228
235
|
.icen-command-palette-foot-hint {
|
|
229
236
|
display: inline-flex;
|
|
230
237
|
align-items: center;
|
|
231
238
|
gap: var(--icen-density-space-sm);
|
|
232
239
|
font-size: var(--icen-density-font-size-xs);
|
|
233
|
-
color: var(--icen-token-text-
|
|
240
|
+
color: var(--icen-token-text-muted);
|
|
234
241
|
}
|
|
235
242
|
.icen-command-palette-foot-hint kbd {
|
|
236
243
|
font-family: var(--icen-font-mono);
|
|
237
244
|
font-size: var(--icen-density-font-size-2xs);
|
|
238
245
|
padding: 1px 4px;
|
|
239
|
-
border: 1px solid var(--icen-token-
|
|
246
|
+
border: 1px solid var(--icen-token-control-border);
|
|
240
247
|
border-radius: var(--icen-radius-xs);
|
|
241
248
|
background: var(--icen-token-surface);
|
|
242
249
|
}
|
|
@@ -246,7 +253,7 @@
|
|
|
246
253
|
to { opacity: 1; }
|
|
247
254
|
}
|
|
248
255
|
@keyframes icen-cp-scale-in {
|
|
249
|
-
from { opacity: 0; transform: translateY(-
|
|
256
|
+
from { opacity: 0; transform: translateY(-4px) scale(0.985); }
|
|
250
257
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
251
258
|
}
|
|
252
259
|
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
font-family: var(--icen-font-mono);
|
|
20
20
|
font-weight: 500;
|
|
21
21
|
border-radius: var(--icen-radius-xs);
|
|
22
|
-
border: 1px solid var(--icen-token-
|
|
22
|
+
border: 1px solid var(--icen-token-control-border);
|
|
23
23
|
background: var(--icen-token-control);
|
|
24
24
|
color: var(--icen-token-text-muted);
|
|
25
|
-
box-shadow: var(--icen-token-
|
|
26
|
-
height:
|
|
27
|
-
min-width:
|
|
28
|
-
padding: 0
|
|
25
|
+
box-shadow: 0 1px 0 var(--icen-token-control-border);
|
|
26
|
+
height: 19px;
|
|
27
|
+
min-width: 19px;
|
|
28
|
+
padding: 0 5px;
|
|
29
29
|
font-size: var(--icen-density-font-size-xs);
|
|
30
30
|
}
|
|
31
31
|
.icen-kbd--sm {
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
padding: 2px var(--icen-density-space-xs);
|
|
50
50
|
border-radius: var(--icen-radius-xs);
|
|
51
51
|
background: var(--icen-token-control);
|
|
52
|
-
border: 1px solid var(--icen-token-
|
|
52
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
53
53
|
font-size: 0.9em;
|
|
54
54
|
font-family: var(--icen-font-mono);
|
|
55
|
-
color: var(--icen-token-accent-text
|
|
55
|
+
color: var(--icen-token-accent-text);
|
|
56
56
|
word-break: break-word;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -67,13 +67,14 @@
|
|
|
67
67
|
padding: 0;
|
|
68
68
|
}
|
|
69
69
|
.icen-list-item {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
min-block-size: var(--icen-control-height-sm);
|
|
71
|
+
padding: 4px var(--icen-density-space-sm);
|
|
72
|
+
border-radius: var(--icen-radius-xs);
|
|
72
73
|
transition: background-color var(--icen-tx-fast);
|
|
73
74
|
}
|
|
74
|
-
.icen-list-item:hover { background: var(--icen-token-
|
|
75
|
-
.icen-list .icen-list-item + .icen-list-item { border-top: 1px solid var(--icen-token-
|
|
76
|
-
.icen-list--compact .icen-list-item { padding:
|
|
75
|
+
.icen-list-item:hover { background: var(--icen-token-fill-hover); }
|
|
76
|
+
.icen-list .icen-list-item + .icen-list-item { border-top: 1px solid var(--icen-token-separator-soft); }
|
|
77
|
+
.icen-list--compact .icen-list-item { padding: 2px var(--icen-density-space-sm); }
|
|
77
78
|
|
|
78
79
|
/* ══════════════ accordion · 手风琴(behaviors/accordion 配套) ══════════════
|
|
79
80
|
* DOM:
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
* data-icen-single:展开一项自动收起其余(behavior 实现)。
|
|
88
89
|
*/
|
|
89
90
|
.icen-accordion-item {
|
|
90
|
-
border-bottom: 1px solid var(--icen-token-
|
|
91
|
+
border-bottom: 1px solid var(--icen-token-separator-soft);
|
|
91
92
|
}
|
|
92
93
|
.icen-accordion-item:last-child { border-bottom: 0; }
|
|
93
94
|
.icen-accordion-trigger {
|
|
@@ -96,19 +97,20 @@
|
|
|
96
97
|
align-items: center;
|
|
97
98
|
justify-content: space-between;
|
|
98
99
|
gap: var(--icen-density-space-sm);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
font-
|
|
100
|
+
min-block-size: 32px;
|
|
101
|
+
padding: 5px var(--icen-density-space-sm);
|
|
102
|
+
font-size: var(--icen-font-size-control);
|
|
103
|
+
font-weight: var(--icen-font-weight-control);
|
|
102
104
|
color: var(--icen-token-text);
|
|
103
105
|
text-align: start;
|
|
104
106
|
background: none;
|
|
105
107
|
border: 0;
|
|
106
108
|
cursor: pointer;
|
|
107
|
-
border-radius: var(--icen-radius-
|
|
109
|
+
border-radius: var(--icen-radius-xs);
|
|
108
110
|
transition: background-color var(--icen-tx-fast);
|
|
109
111
|
}
|
|
110
112
|
.icen-accordion-trigger:hover {
|
|
111
|
-
background: var(--icen-token-
|
|
113
|
+
background: var(--icen-token-fill-hover);
|
|
112
114
|
}
|
|
113
115
|
.icen-accordion-trigger:focus-visible {
|
|
114
116
|
outline: none;
|
|
@@ -147,21 +149,21 @@
|
|
|
147
149
|
transition: padding-block-end var(--icen-tx-normal);
|
|
148
150
|
font-size: var(--icen-density-font-size-sm);
|
|
149
151
|
color: var(--icen-token-text-muted);
|
|
150
|
-
line-height: 1.
|
|
152
|
+
line-height: 1.55;
|
|
151
153
|
}
|
|
152
154
|
.icen-accordion-item.is-open .icen-accordion-panel-inner { padding-block-end: var(--icen-density-space-sm); }
|
|
153
155
|
|
|
154
156
|
/* 卡片式手风琴:整组包在带边框的卡片里 */
|
|
155
157
|
.icen-accordion--cards {
|
|
156
|
-
border: 1px solid var(--icen-token-
|
|
157
|
-
border-radius: var(--icen-radius-
|
|
158
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
159
|
+
border-radius: var(--icen-control-radius-lg);
|
|
158
160
|
overflow: hidden;
|
|
159
161
|
}
|
|
160
162
|
.icen-accordion--cards .icen-accordion-item {
|
|
161
163
|
border-bottom: 0;
|
|
162
164
|
}
|
|
163
165
|
.icen-accordion--cards .icen-accordion-item + .icen-accordion-item {
|
|
164
|
-
border-top: 1px solid var(--icen-token-
|
|
166
|
+
border-top: 1px solid var(--icen-token-separator-soft);
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
/* ══════════════ timeline · 时间线 ══════════════
|
|
@@ -186,7 +188,7 @@
|
|
|
186
188
|
top: 32px;
|
|
187
189
|
bottom: 0;
|
|
188
190
|
width: 1px;
|
|
189
|
-
background: var(--icen-token-
|
|
191
|
+
background: var(--icen-token-separator);
|
|
190
192
|
}
|
|
191
193
|
.icen-timeline-dot {
|
|
192
194
|
width: 28px;
|
|
@@ -196,8 +198,8 @@
|
|
|
196
198
|
display: flex;
|
|
197
199
|
align-items: center;
|
|
198
200
|
justify-content: center;
|
|
199
|
-
background: var(--icen-token-
|
|
200
|
-
border: 1px solid var(--icen-token-
|
|
201
|
+
background: var(--icen-token-surface);
|
|
202
|
+
border: 1px solid var(--icen-token-control-border);
|
|
201
203
|
color: var(--icen-token-text-muted);
|
|
202
204
|
z-index: 1;
|
|
203
205
|
}
|
|
@@ -215,20 +217,21 @@
|
|
|
215
217
|
gap: var(--icen-density-space-sm);
|
|
216
218
|
}
|
|
217
219
|
.icen-timeline-title {
|
|
218
|
-
font-size: var(--icen-
|
|
219
|
-
font-weight:
|
|
220
|
+
font-size: var(--icen-font-size-control);
|
|
221
|
+
font-weight: var(--icen-font-weight-control);
|
|
220
222
|
color: var(--icen-token-text);
|
|
221
223
|
}
|
|
222
224
|
.icen-timeline-time {
|
|
223
225
|
font-size: var(--icen-density-font-size-xs);
|
|
224
|
-
color: var(--icen-token-text-
|
|
226
|
+
color: var(--icen-token-text-muted);
|
|
225
227
|
margin-inline-start: auto;
|
|
226
228
|
font-variant-numeric: tabular-nums;
|
|
229
|
+
letter-spacing: .01em;
|
|
227
230
|
}
|
|
228
231
|
.icen-timeline-desc {
|
|
229
232
|
font-size: var(--icen-density-font-size-sm);
|
|
230
233
|
color: var(--icen-token-text-muted);
|
|
231
|
-
margin:
|
|
234
|
+
margin: 3px 0 0;
|
|
232
235
|
line-height: 1.5;
|
|
233
236
|
}
|
|
234
237
|
|
|
@@ -238,8 +241,8 @@
|
|
|
238
241
|
*/
|
|
239
242
|
.icen-desc { display: flex; flex-direction: column; gap: var(--icen-density-space-sm); }
|
|
240
243
|
.icen-desc-title {
|
|
241
|
-
font-size: var(--icen-
|
|
242
|
-
font-weight:
|
|
244
|
+
font-size: var(--icen-font-size-title);
|
|
245
|
+
font-weight: var(--icen-font-weight-title);
|
|
243
246
|
color: var(--icen-token-text);
|
|
244
247
|
margin: 0;
|
|
245
248
|
}
|
|
@@ -250,15 +253,15 @@
|
|
|
250
253
|
margin: 0;
|
|
251
254
|
}
|
|
252
255
|
.icen-desc--bordered .icen-desc-grid {
|
|
253
|
-
background: var(--icen-token-
|
|
254
|
-
border: 1px solid var(--icen-token-
|
|
255
|
-
border-radius: var(--icen-radius-
|
|
256
|
+
background: var(--icen-token-separator-soft);
|
|
257
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
258
|
+
border-radius: var(--icen-control-radius-lg);
|
|
256
259
|
overflow: hidden;
|
|
257
260
|
}
|
|
258
261
|
.icen-desc-item { grid-column: span var(--desc-span, 1); }
|
|
259
262
|
.icen-desc--bordered .icen-desc-item {
|
|
260
|
-
background: var(--icen-token-
|
|
261
|
-
padding:
|
|
263
|
+
background: var(--icen-token-surface);
|
|
264
|
+
padding: 6px 10px;
|
|
262
265
|
}
|
|
263
266
|
.icen-desc:not(.icen-desc--bordered) .icen-desc-item {
|
|
264
267
|
display: flex;
|
|
@@ -267,10 +270,10 @@
|
|
|
267
270
|
}
|
|
268
271
|
.icen-desc-item dt {
|
|
269
272
|
font-size: var(--icen-density-font-size-xs);
|
|
270
|
-
color: var(--icen-token-text-
|
|
273
|
+
color: var(--icen-token-text-muted);
|
|
271
274
|
}
|
|
272
275
|
.icen-desc-item dd {
|
|
273
|
-
font-size: var(--icen-
|
|
276
|
+
font-size: var(--icen-font-size-control);
|
|
274
277
|
color: var(--icen-token-text);
|
|
275
278
|
margin: 0;
|
|
276
279
|
line-height: 1.5;
|
|
@@ -300,27 +303,28 @@
|
|
|
300
303
|
.icen-tree-node {
|
|
301
304
|
display: flex;
|
|
302
305
|
align-items: center;
|
|
303
|
-
gap: var(--icen-
|
|
306
|
+
gap: var(--icen-control-gap-sm);
|
|
304
307
|
/* 深度缩进沿 inline-start(RTL 下树向左侧生长) */
|
|
305
|
-
|
|
308
|
+
min-block-size: var(--icen-control-height-sm);
|
|
309
|
+
padding-block: 3px;
|
|
306
310
|
padding-inline: calc(4px + var(--depth, 0) * 14px) var(--icen-density-space-sm);
|
|
307
|
-
border-radius: var(--icen-radius-
|
|
308
|
-
font-size: var(--icen-
|
|
311
|
+
border-radius: var(--icen-radius-xs);
|
|
312
|
+
font-size: var(--icen-font-size-control);
|
|
309
313
|
color: var(--icen-token-text);
|
|
310
314
|
cursor: pointer;
|
|
311
315
|
transition: background-color var(--icen-tx-fast);
|
|
312
316
|
}
|
|
313
|
-
.icen-tree-node:hover { background: var(--icen-token-
|
|
317
|
+
.icen-tree-node:hover { background: var(--icen-token-fill-hover); }
|
|
314
318
|
.icen-tree-node:focus-visible,
|
|
315
319
|
.icen-tree-node:focus-within {
|
|
316
320
|
outline: none;
|
|
317
|
-
box-shadow: var(--icen-ring);
|
|
321
|
+
box-shadow: var(--icen-ring-inset);
|
|
318
322
|
}
|
|
319
323
|
.icen-tree-node.is-selected,
|
|
320
324
|
.icen-tree-node[aria-selected='true'] {
|
|
321
|
-
background: var(--icen-token-
|
|
322
|
-
color: var(--icen-token-
|
|
323
|
-
font-weight:
|
|
325
|
+
background: var(--icen-token-fill-selected);
|
|
326
|
+
color: var(--icen-token-text);
|
|
327
|
+
font-weight: var(--icen-font-weight-control);
|
|
324
328
|
}
|
|
325
329
|
.icen-tree-node.is-disabled,
|
|
326
330
|
.icen-tree-node[aria-disabled='true'] {
|
|
@@ -365,11 +369,11 @@
|
|
|
365
369
|
}
|
|
366
370
|
.icen-tree-icon {
|
|
367
371
|
flex-shrink: 0;
|
|
368
|
-
width:
|
|
369
|
-
height:
|
|
372
|
+
width: 15px;
|
|
373
|
+
height: 15px;
|
|
370
374
|
color: var(--icen-token-text-muted);
|
|
371
375
|
}
|
|
372
|
-
.icen-tree-node.is-selected .icen-tree-icon { color: var(--icen-token-accent); }
|
|
376
|
+
.icen-tree-node.is-selected .icen-tree-icon { color: var(--icen-token-accent-strong); }
|
|
373
377
|
.icen-tree-badge {
|
|
374
378
|
display: inline-flex;
|
|
375
379
|
align-items: center;
|
|
@@ -410,7 +414,7 @@
|
|
|
410
414
|
gap: 1px;
|
|
411
415
|
}
|
|
412
416
|
.icen-list-item-title {
|
|
413
|
-
font-size: var(--icen-
|
|
417
|
+
font-size: var(--icen-font-size-control);
|
|
414
418
|
color: var(--icen-token-text);
|
|
415
419
|
overflow: hidden;
|
|
416
420
|
text-overflow: ellipsis;
|
|
@@ -418,7 +422,7 @@
|
|
|
418
422
|
}
|
|
419
423
|
.icen-list-item-meta {
|
|
420
424
|
font-size: var(--icen-density-font-size-xs);
|
|
421
|
-
color: var(--icen-token-text-
|
|
425
|
+
color: var(--icen-token-text-muted);
|
|
422
426
|
}
|
|
423
427
|
.icen-list-item-trailing {
|
|
424
428
|
flex-shrink: 0;
|
|
@@ -430,9 +434,9 @@
|
|
|
430
434
|
cursor: pointer;
|
|
431
435
|
}
|
|
432
436
|
.icen-list-item.is-selected {
|
|
433
|
-
background: var(--icen-token-
|
|
437
|
+
background: var(--icen-token-fill-selected);
|
|
434
438
|
}
|
|
435
|
-
.icen-list-item.is-selected .icen-list-item-title { color: var(--icen-token-
|
|
439
|
+
.icen-list-item.is-selected .icen-list-item-title { color: var(--icen-token-text); font-weight: var(--icen-font-weight-control); }
|
|
436
440
|
|
|
437
441
|
/* 列表项 flex 布局(leading + content + trailing) */
|
|
438
442
|
.icen-list-item--flex {
|
|
@@ -477,8 +481,9 @@
|
|
|
477
481
|
.icen-timeline-extra {
|
|
478
482
|
margin-top: var(--icen-density-space-xs);
|
|
479
483
|
padding: var(--icen-density-space-sm);
|
|
480
|
-
background: var(--icen-token-
|
|
481
|
-
border
|
|
484
|
+
background: var(--icen-token-surface-chrome);
|
|
485
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
486
|
+
border-radius: var(--icen-radius-xs);
|
|
482
487
|
font-size: var(--icen-density-font-size-sm);
|
|
483
488
|
}
|
|
484
489
|
|
|
@@ -533,7 +538,7 @@
|
|
|
533
538
|
position: relative;
|
|
534
539
|
margin-inline-start: 7px;
|
|
535
540
|
padding-inline-start: 0;
|
|
536
|
-
border-inline-start: 1px solid var(--icen-token-
|
|
541
|
+
border-inline-start: 1px solid var(--icen-token-separator-soft);
|
|
537
542
|
}
|
|
538
543
|
.icen-tree--lined .icen-tree-node {
|
|
539
544
|
position: relative;
|
package/dist/components/copy.css
CHANGED
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
align-items: center;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
gap: var(--icen-density-space-xs);
|
|
31
|
-
height: var(--icen-
|
|
32
|
-
padding: 0 var(--icen-
|
|
31
|
+
height: var(--icen-control-height-sm);
|
|
32
|
+
padding: 0 var(--icen-control-padding-inline-sm);
|
|
33
33
|
background: var(--icen-token-control);
|
|
34
34
|
color: var(--icen-token-text-muted);
|
|
35
|
-
border: 1px solid var(--icen-token-
|
|
36
|
-
border-radius: var(--icen-radius-sm);
|
|
35
|
+
border: 1px solid var(--icen-token-control-border);
|
|
36
|
+
border-radius: var(--icen-control-radius-sm);
|
|
37
37
|
font: inherit;
|
|
38
38
|
font-size: var(--icen-density-font-size-sm);
|
|
39
39
|
cursor: pointer;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
.icen-copy-btn:hover {
|
|
47
47
|
color: var(--icen-token-text);
|
|
48
|
-
border-color: var(--icen-
|
|
48
|
+
border-color: var(--icen-token-control-border-hover);
|
|
49
49
|
}
|
|
50
50
|
.icen-copy-btn:focus-visible {
|
|
51
51
|
outline: none;
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
/* ghost 变体:透明底,纯描边 / hover 才显底 */
|
|
62
62
|
.icen-copy-btn--ghost {
|
|
63
63
|
background: transparent;
|
|
64
|
-
border-color: var(--icen-token-
|
|
64
|
+
border-color: var(--icen-token-separator-soft);
|
|
65
65
|
}
|
|
66
66
|
.icen-copy-btn--ghost:hover {
|
|
67
|
-
background: var(--icen-token-fill-
|
|
68
|
-
border-color: var(--icen-token-
|
|
67
|
+
background: var(--icen-token-fill-hover);
|
|
68
|
+
border-color: var(--icen-token-control-border-hover);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/* ── 成功闪烁态(behavior 1.4s 后移除)── */
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
|
|
78
78
|
/* ── 图标变体:方形按钮,仅放 svg ── */
|
|
79
79
|
.icen-copy-btn--icon {
|
|
80
|
-
inline-size: var(--icen-
|
|
81
|
-
block-size: var(--icen-
|
|
80
|
+
inline-size: var(--icen-control-height-sm);
|
|
81
|
+
block-size: var(--icen-control-height-sm);
|
|
82
82
|
padding: 0;
|
|
83
83
|
}
|
|
84
84
|
.icen-copy-btn--icon svg {
|