@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
|
@@ -68,17 +68,19 @@
|
|
|
68
68
|
position: relative;
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: flex-start;
|
|
71
|
-
gap: var(--icen-
|
|
72
|
-
background: var(--icen-token-
|
|
71
|
+
gap: var(--icen-control-gap);
|
|
72
|
+
background: color-mix(in srgb, var(--icen-token-surface) 96%, transparent);
|
|
73
|
+
backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
74
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
73
75
|
color: var(--icen-token-text);
|
|
74
|
-
border: 1px solid var(--icen-token-
|
|
75
|
-
border-inline-start:
|
|
76
|
-
border-radius: var(--icen-radius-
|
|
77
|
-
box-shadow: var(--icen-token-shadow-
|
|
76
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
77
|
+
border-inline-start: 2px solid var(--icen-token-info);
|
|
78
|
+
border-radius: var(--icen-radius-lg);
|
|
79
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
78
80
|
padding-block: var(--icen-density-space-md);
|
|
79
|
-
padding-inline:
|
|
81
|
+
padding-inline: 9px 10px;
|
|
80
82
|
overflow: hidden; /* 倒计时进度条贴底 */
|
|
81
|
-
animation: icen-notif-in var(--icen-
|
|
83
|
+
animation: icen-notif-in var(--icen-duration-normal) var(--icen-ease-enter);
|
|
82
84
|
}
|
|
83
85
|
.icen-notification.icen-notification--success { border-inline-start-color: var(--icen-token-success); }
|
|
84
86
|
.icen-notification.icen-notification--warning { border-inline-start-color: var(--icen-token-warning); }
|
|
@@ -87,12 +89,12 @@
|
|
|
87
89
|
|
|
88
90
|
/* ── 优先级:高优先级强调(起始缘加粗 + 更强阴影)── */
|
|
89
91
|
.icen-notification.is-priority {
|
|
90
|
-
border-inline-start-width:
|
|
91
|
-
box-shadow: var(--icen-token-shadow-
|
|
92
|
+
border-inline-start-width: 3px;
|
|
93
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 24%, transparent);
|
|
92
94
|
}
|
|
93
|
-
.icen-notification.is-priority.icen-notification--success { box-shadow: var(--icen-token-shadow-
|
|
94
|
-
.icen-notification.is-priority.icen-notification--warning { box-shadow: var(--icen-token-shadow-
|
|
95
|
-
.icen-notification.is-priority.icen-notification--error { box-shadow: var(--icen-token-shadow-
|
|
95
|
+
.icen-notification.is-priority.icen-notification--success { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-success) 28%, transparent); }
|
|
96
|
+
.icen-notification.is-priority.icen-notification--warning { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-warning) 28%, transparent); }
|
|
97
|
+
.icen-notification.is-priority.icen-notification--error { box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-error) 28%, transparent); }
|
|
96
98
|
|
|
97
99
|
/* ── 未读:标题起始缘侧 4px 强调点(inline-block 点,margin-inline-end 与文本同向推开) + 加粗 ── */
|
|
98
100
|
.icen-notification.is-unread .icen-notification-title::before {
|
|
@@ -122,8 +124,8 @@
|
|
|
122
124
|
/* 整条 hover 抬升仅可悬停设备生效(触屏关闭,AGENTS 动效守卫) */
|
|
123
125
|
@media (hover: hover) and (pointer: fine) {
|
|
124
126
|
.icen-notification.is-clickable:hover {
|
|
125
|
-
transform:
|
|
126
|
-
border-color: var(--icen-token-
|
|
127
|
+
transform: none;
|
|
128
|
+
border-color: var(--icen-token-control-border-hover);
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
|
|
@@ -133,13 +135,13 @@
|
|
|
133
135
|
align-items: center;
|
|
134
136
|
justify-content: center;
|
|
135
137
|
flex-shrink: 0;
|
|
136
|
-
width:
|
|
137
|
-
height:
|
|
138
|
+
width: 20px;
|
|
139
|
+
height: 20px;
|
|
138
140
|
margin-top: 1px;
|
|
139
141
|
border-radius: var(--icen-radius-full);
|
|
140
|
-
color: var(--icen-token-text-
|
|
142
|
+
color: var(--icen-token-text-muted);
|
|
141
143
|
}
|
|
142
|
-
.icen-notification-icon svg { width:
|
|
144
|
+
.icen-notification-icon svg { width: 15px; height: 15px; }
|
|
143
145
|
.icen-notification--success .icen-notification-icon { color: var(--icen-token-success); }
|
|
144
146
|
.icen-notification--warning .icen-notification-icon { color: var(--icen-token-warning); }
|
|
145
147
|
.icen-notification--error .icen-notification-icon { color: var(--icen-token-error); }
|
|
@@ -173,7 +175,7 @@
|
|
|
173
175
|
}
|
|
174
176
|
.icen-notification-title {
|
|
175
177
|
margin: 0;
|
|
176
|
-
font-size: var(--icen-
|
|
178
|
+
font-size: var(--icen-font-size-control);
|
|
177
179
|
font-weight: 600;
|
|
178
180
|
line-height: 1.4;
|
|
179
181
|
overflow: hidden;
|
|
@@ -205,7 +207,8 @@
|
|
|
205
207
|
border: 1px solid var(--icen-token-outline-soft);
|
|
206
208
|
border-radius: var(--icen-radius-sm);
|
|
207
209
|
background: var(--icen-token-fill-1);
|
|
208
|
-
|
|
210
|
+
/* 操作钮是功能性文字,不吃 muted 弱化(fill-1 上 4.27:1 过不了 AA) */
|
|
211
|
+
color: var(--icen-token-text);
|
|
209
212
|
font: inherit;
|
|
210
213
|
font-size: var(--icen-density-font-size-xs);
|
|
211
214
|
font-weight: 500;
|
|
@@ -251,7 +254,8 @@
|
|
|
251
254
|
}
|
|
252
255
|
.icen-notification-link {
|
|
253
256
|
font-size: var(--icen-density-font-size-sm);
|
|
254
|
-
|
|
257
|
+
/* accent-text 与全站 a 基线(base.css)同源:裸 accent 对浅色卡片 ~3.6:1 低于 AA */
|
|
258
|
+
color: var(--icen-token-accent-text);
|
|
255
259
|
text-decoration: none;
|
|
256
260
|
border-bottom: 1px dashed color-mix(in srgb, var(--icen-token-accent) 40%, transparent);
|
|
257
261
|
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
@@ -284,7 +288,7 @@
|
|
|
284
288
|
height: 100%;
|
|
285
289
|
background: var(--icen-token-accent);
|
|
286
290
|
border-radius: var(--icen-radius-full);
|
|
287
|
-
transition: width var(--icen-
|
|
291
|
+
transition: width var(--icen-duration-normal) var(--icen-ease-out);
|
|
288
292
|
}
|
|
289
293
|
.icen-notification.icen-notification--success .icen-notification-progress-bar { background: var(--icen-token-success); }
|
|
290
294
|
.icen-notification.icen-notification--warning .icen-notification-progress-bar { background: var(--icen-token-warning); }
|
|
@@ -356,7 +360,7 @@
|
|
|
356
360
|
|
|
357
361
|
/* ── 暂停态(hover 时) ── */
|
|
358
362
|
.icen-notification.is-paused {
|
|
359
|
-
box-shadow: var(--icen-token-shadow-
|
|
363
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated), 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 14%, transparent);
|
|
360
364
|
}
|
|
361
365
|
|
|
362
366
|
/* ── 退场动画 ── */
|
|
@@ -431,7 +435,8 @@
|
|
|
431
435
|
border: 1px solid var(--icen-token-outline-soft);
|
|
432
436
|
border-radius: var(--icen-radius-sm);
|
|
433
437
|
background: var(--icen-token-fill-1);
|
|
434
|
-
|
|
438
|
+
/* 功能性文字不吃 muted 弱化(fill-1 上 4.27:1 过不了 AA;hover 态本来就是正文色) */
|
|
439
|
+
color: var(--icen-token-text);
|
|
435
440
|
font: inherit;
|
|
436
441
|
font-size: var(--icen-density-font-size-xs);
|
|
437
442
|
text-align: start;
|
|
@@ -447,4 +452,5 @@
|
|
|
447
452
|
@media (prefers-reduced-motion: reduce) { .icen-notification-group-toggle, .icen-notification-group-toggle > svg { transition: none; } .icen-notification.is-group-revealing { animation: none; } }
|
|
448
453
|
:root[data-icen-style="pixel"] .icen-notification.is-group-revealing { animation-timing-function: steps(2,end); }
|
|
449
454
|
|
|
455
|
+
|
|
450
456
|
}
|
|
@@ -26,22 +26,23 @@
|
|
|
26
26
|
min-width: 28px;
|
|
27
27
|
height: 28px;
|
|
28
28
|
padding: 0 var(--icen-density-space-xs);
|
|
29
|
-
border-radius: var(--icen-radius-
|
|
30
|
-
font-size: var(--icen-
|
|
29
|
+
border-radius: var(--icen-radius-xs);
|
|
30
|
+
font-size: var(--icen-font-size-control);
|
|
31
31
|
display: inline-flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: center;
|
|
34
34
|
color: var(--icen-token-text-muted);
|
|
35
35
|
background: none;
|
|
36
|
-
border:
|
|
36
|
+
border: 1px solid transparent;
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
-webkit-tap-highlight-color: transparent;
|
|
39
39
|
transition:
|
|
40
40
|
background-color var(--icen-tx-fast),
|
|
41
|
+
border-color var(--icen-tx-fast),
|
|
41
42
|
color var(--icen-tx-fast);
|
|
42
43
|
}
|
|
43
44
|
.icen-page-btn:not(.is-active):hover {
|
|
44
|
-
background: var(--icen-token-
|
|
45
|
+
background: var(--icen-token-fill-hover);
|
|
45
46
|
color: var(--icen-token-text);
|
|
46
47
|
}
|
|
47
48
|
.icen-page-btn:focus-visible {
|
|
@@ -50,10 +51,11 @@
|
|
|
50
51
|
}
|
|
51
52
|
.icen-page-btn.is-active,
|
|
52
53
|
.icen-page-btn[aria-current='page'] {
|
|
53
|
-
background: var(--icen-token-
|
|
54
|
-
color: var(--icen-token-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
background: var(--icen-token-fill-selected);
|
|
55
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 24%, transparent);
|
|
56
|
+
color: var(--icen-token-text);
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
box-shadow: none;
|
|
57
59
|
}
|
|
58
60
|
.icen-page-btn.is-disabled,
|
|
59
61
|
.icen-page-btn:disabled,
|
|
@@ -76,8 +78,8 @@
|
|
|
76
78
|
/* 尺寸变体 */
|
|
77
79
|
.icen-pagination--sm .icen-page-btn,
|
|
78
80
|
.icen-pagination--sm .icen-page-ellipsis {
|
|
79
|
-
min-width:
|
|
80
|
-
height:
|
|
81
|
+
min-width: 24px; /* WCAG 2.5.8 下限(22 → 24) */
|
|
82
|
+
height: 24px;
|
|
81
83
|
font-size: var(--icen-density-font-size-xs);
|
|
82
84
|
}
|
|
83
85
|
|
|
@@ -102,14 +104,14 @@
|
|
|
102
104
|
padding: 0 var(--icen-density-space-xs);
|
|
103
105
|
text-align: center;
|
|
104
106
|
background: var(--icen-token-control);
|
|
105
|
-
border: 1px solid var(--icen-token-
|
|
106
|
-
border-radius: var(--icen-radius-
|
|
107
|
+
border: 1px solid var(--icen-token-control-border);
|
|
108
|
+
border-radius: var(--icen-radius-xs);
|
|
107
109
|
color: var(--icen-token-text);
|
|
108
110
|
font: inherit;
|
|
109
111
|
font-size: var(--icen-density-font-size-sm);
|
|
110
112
|
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
111
113
|
}
|
|
112
|
-
.icen-pagination-jump-input:hover { border-color: var(--icen-
|
|
114
|
+
.icen-pagination-jump-input:hover { border-color: var(--icen-token-control-border-hover); }
|
|
113
115
|
.icen-pagination-jump-input:focus-visible {
|
|
114
116
|
outline: none;
|
|
115
117
|
border-color: var(--icen-control-focus-border);
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
.icen-panel {
|
|
32
32
|
background: var(--icen-token-surface);
|
|
33
|
-
border: 1px solid var(--icen-token-
|
|
33
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
34
34
|
border-radius: var(--icen-radius-lg);
|
|
35
|
-
box-shadow:
|
|
35
|
+
box-shadow: none;
|
|
36
36
|
margin-bottom: var(--icen-density-space-lg);
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
}
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: space-between;
|
|
45
45
|
gap: var(--icen-density-space-sm);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
min-block-size: var(--icen-control-height-md);
|
|
47
|
+
padding: 6px var(--icen-density-space-md);
|
|
48
|
+
border-bottom: 1px solid var(--icen-token-separator-soft);
|
|
49
|
+
font-size: var(--icen-font-size-caption);
|
|
50
|
+
letter-spacing: var(--icen-letter-spacing-caption);
|
|
51
|
+
color: var(--icen-token-text);
|
|
52
52
|
font-weight: 600;
|
|
53
53
|
}
|
|
54
54
|
.icen-panel-title-text {
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
font-size: var(--icen-density-font-size-xs);
|
|
68
68
|
font-weight: 400;
|
|
69
69
|
letter-spacing: 0;
|
|
70
|
-
text-
|
|
71
|
-
color: var(--icen-token-text-faint);
|
|
70
|
+
color: var(--icen-token-text-muted);
|
|
72
71
|
overflow: hidden;
|
|
73
72
|
text-overflow: ellipsis;
|
|
74
73
|
white-space: nowrap;
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
border-bottom-color: transparent;
|
|
122
121
|
}
|
|
123
122
|
.icen-panel--collapsible .icen-panel-body {
|
|
124
|
-
animation: panel-expand var(--icen-
|
|
123
|
+
animation: panel-expand var(--icen-duration-normal) var(--icen-ease-out);
|
|
125
124
|
}
|
|
126
125
|
@keyframes panel-expand {
|
|
127
126
|
from { opacity: 0; transform: translateY(-8px); }
|
|
@@ -130,9 +129,9 @@
|
|
|
130
129
|
|
|
131
130
|
/* ── body / foot ── */
|
|
132
131
|
.icen-panel-body {
|
|
133
|
-
padding: var(--icen-density-space-md);
|
|
134
|
-
font-size: var(--icen-
|
|
135
|
-
line-height: 1.
|
|
132
|
+
padding: var(--icen-density-space-md) var(--icen-density-space-md) var(--icen-density-space-lg);
|
|
133
|
+
font-size: var(--icen-font-size-control);
|
|
134
|
+
line-height: 1.55;
|
|
136
135
|
}
|
|
137
136
|
.icen-panel--flush .icen-panel-body { padding: 0; }
|
|
138
137
|
|
|
@@ -142,21 +141,21 @@
|
|
|
142
141
|
justify-content: flex-end;
|
|
143
142
|
gap: var(--icen-density-space-sm);
|
|
144
143
|
padding: var(--icen-density-space-sm) var(--icen-density-space-md);
|
|
145
|
-
border-top: 1px solid var(--icen-token-
|
|
146
|
-
background:
|
|
144
|
+
border-top: 1px solid var(--icen-token-separator-soft);
|
|
145
|
+
background: var(--icen-token-surface-chrome);
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
/* ── 强调变体 ── */
|
|
150
|
-
.icen-panel--accent { border-color: color-mix(in srgb, var(--icen-token-accent) 30%,
|
|
149
|
+
.icen-panel--accent { border-color: color-mix(in srgb, var(--icen-token-accent) 30%, var(--icen-token-separator)); }
|
|
151
150
|
.icen-panel--accent .icen-panel-title {
|
|
152
|
-
color: var(--icen-token-accent);
|
|
151
|
+
color: var(--icen-token-accent-text);
|
|
153
152
|
background: var(--icen-token-accent-subtle);
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
/* ── 平面变体(无阴影,嵌套时用) ── */
|
|
157
156
|
.icen-panel--flat {
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
background: var(--icen-token-surface-chrome);
|
|
158
|
+
border-color: transparent;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
/* ── 可折叠模式:标题栏可点(纯 CSS 方案用 details/summary) ── */
|
package/dist/components/pill.css
CHANGED
|
@@ -13,14 +13,15 @@
|
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
gap: 4px;
|
|
16
|
-
|
|
16
|
+
min-block-size: 19px;
|
|
17
|
+
padding: 1px 7px;
|
|
17
18
|
border-radius: var(--icen-radius-full);
|
|
18
19
|
font-size: var(--icen-density-font-size-xs);
|
|
19
|
-
letter-spacing:
|
|
20
|
+
letter-spacing: .01em;
|
|
20
21
|
font-weight: 500;
|
|
21
|
-
background: var(--icen-token-
|
|
22
|
+
background: var(--icen-token-fill-hover);
|
|
22
23
|
color: var(--icen-token-text-muted);
|
|
23
|
-
border: 1px solid var(--icen-token-
|
|
24
|
+
border: 1px solid var(--icen-token-separator-soft);
|
|
24
25
|
white-space: nowrap;
|
|
25
26
|
vertical-align: middle;
|
|
26
27
|
}
|
|
@@ -41,9 +42,9 @@
|
|
|
41
42
|
background: color-mix(in srgb, var(--icen-token-error) 9%, transparent);
|
|
42
43
|
}
|
|
43
44
|
.icen-pill--accent {
|
|
44
|
-
color: var(--icen-token-accent-
|
|
45
|
-
border-color: color-mix(in srgb, var(--icen-token-accent)
|
|
46
|
-
background:
|
|
45
|
+
color: var(--icen-token-accent-text);
|
|
46
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 30%, transparent);
|
|
47
|
+
background: var(--icen-token-accent-subtle);
|
|
47
48
|
}
|
|
48
49
|
.icen-pill--info {
|
|
49
50
|
color: var(--icen-token-info);
|
|
@@ -26,17 +26,19 @@
|
|
|
26
26
|
min-inline-size: 200px;
|
|
27
27
|
max-inline-size: min(360px, calc(100vw - 32px));
|
|
28
28
|
padding: var(--icen-density-space-sm);
|
|
29
|
-
background: var(--icen-token-
|
|
29
|
+
background: color-mix(in srgb, var(--icen-token-surface) 94%, transparent);
|
|
30
|
+
backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
31
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
30
32
|
color: var(--icen-token-text);
|
|
31
|
-
border: 1px solid var(--icen-token-
|
|
32
|
-
box-shadow: var(--icen-token-shadow-
|
|
33
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
34
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
33
35
|
border-radius: var(--icen-radius-lg);
|
|
34
|
-
animation: icen-popover-in var(--icen-
|
|
36
|
+
animation: icen-popover-in var(--icen-duration-fast) var(--icen-ease-enter);
|
|
35
37
|
transform-origin: top center;
|
|
36
38
|
/* 退场走过渡(可中断回弹);与菜单同收敛配方 */
|
|
37
39
|
transition:
|
|
38
|
-
opacity var(--icen-
|
|
39
|
-
transform var(--icen-
|
|
40
|
+
opacity var(--icen-duration-fast) var(--icen-ease-out),
|
|
41
|
+
transform var(--icen-duration-fast) var(--icen-ease-out);
|
|
40
42
|
}
|
|
41
43
|
.icen-popover[data-icen-state='closing'] {
|
|
42
44
|
animation: none; /* 打断可能仍在跑的进场 */
|
|
@@ -65,14 +67,14 @@
|
|
|
65
67
|
align-items: flex-start;
|
|
66
68
|
justify-content: space-between;
|
|
67
69
|
gap: var(--icen-density-space-sm);
|
|
68
|
-
padding: var(--icen-density-space-xs)
|
|
69
|
-
border-bottom: 1px solid var(--icen-token-
|
|
70
|
-
margin-bottom: var(--icen-density-space-
|
|
70
|
+
padding: var(--icen-density-space-xs);
|
|
71
|
+
border-bottom: 1px solid var(--icen-token-separator-soft);
|
|
72
|
+
margin-bottom: var(--icen-density-space-xs);
|
|
71
73
|
}
|
|
72
74
|
.icen-popover-title {
|
|
73
75
|
margin: 0;
|
|
74
|
-
font-size: var(--icen-
|
|
75
|
-
font-weight:
|
|
76
|
+
font-size: var(--icen-font-size-control);
|
|
77
|
+
font-weight: var(--icen-font-weight-title);
|
|
76
78
|
font-family: var(--icen-font-heading);
|
|
77
79
|
line-height: 1.3;
|
|
78
80
|
}
|
|
@@ -80,30 +82,37 @@
|
|
|
80
82
|
display: inline-flex;
|
|
81
83
|
align-items: center;
|
|
82
84
|
justify-content: center;
|
|
83
|
-
width:
|
|
84
|
-
height:
|
|
85
|
+
width: 24px;
|
|
86
|
+
height: 24px;
|
|
85
87
|
padding: 0;
|
|
86
88
|
border: none;
|
|
87
89
|
background: transparent;
|
|
88
90
|
cursor: pointer;
|
|
89
|
-
color: var(--icen-token-text-
|
|
90
|
-
border-radius: var(--icen-radius-
|
|
91
|
+
color: var(--icen-token-text-muted);
|
|
92
|
+
border-radius: var(--icen-radius-full);
|
|
91
93
|
flex-shrink: 0;
|
|
92
94
|
transition:
|
|
93
95
|
background-color var(--icen-tx-fast),
|
|
94
96
|
color var(--icen-tx-fast);
|
|
95
97
|
}
|
|
96
98
|
.icen-popover-close:hover {
|
|
97
|
-
background: var(--icen-token-
|
|
99
|
+
background: var(--icen-token-fill-hover);
|
|
98
100
|
color: var(--icen-token-text);
|
|
99
101
|
}
|
|
100
102
|
.icen-popover-close:focus-visible {
|
|
101
103
|
outline: none;
|
|
102
104
|
box-shadow: var(--icen-ring);
|
|
103
105
|
}
|
|
106
|
+
/* 触屏抬到 44px 触达面(同 modal/toast/notification 关闭钮口径;桌面保持 22px 紧凑视觉) */
|
|
107
|
+
@media (pointer: coarse) {
|
|
108
|
+
.icen-popover-close {
|
|
109
|
+
min-inline-size: 44px;
|
|
110
|
+
min-block-size: 44px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
104
113
|
|
|
105
114
|
.icen-popover-body {
|
|
106
|
-
font-size: var(--icen-
|
|
115
|
+
font-size: var(--icen-font-size-control);
|
|
107
116
|
line-height: 1.5;
|
|
108
117
|
}
|
|
109
118
|
|
|
@@ -113,24 +122,24 @@
|
|
|
113
122
|
gap: var(--icen-density-space-xs);
|
|
114
123
|
margin-top: var(--icen-density-space-sm);
|
|
115
124
|
padding-top: var(--icen-density-space-sm);
|
|
116
|
-
border-top: 1px solid var(--icen-token-
|
|
125
|
+
border-top: 1px solid var(--icen-token-separator-soft);
|
|
117
126
|
}
|
|
118
127
|
|
|
119
|
-
/* ── 进场动画(与菜单同配方:fade + scale(.
|
|
128
|
+
/* ── 进场动画(与菜单同配方:fade + scale(.98),按侧别反向位移 2px) ── */
|
|
120
129
|
@keyframes icen-popover-in {
|
|
121
|
-
from { opacity: 0; transform: scale(0.
|
|
130
|
+
from { opacity: 0; transform: scale(0.98) translateY(-2px); }
|
|
122
131
|
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
123
132
|
}
|
|
124
133
|
@keyframes icen-popover-in-top {
|
|
125
|
-
from { opacity: 0; transform: scale(0.
|
|
134
|
+
from { opacity: 0; transform: scale(0.98) translateY(2px); }
|
|
126
135
|
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
127
136
|
}
|
|
128
137
|
@keyframes icen-popover-in-left {
|
|
129
|
-
from { opacity: 0; transform: scale(0.
|
|
138
|
+
from { opacity: 0; transform: scale(0.98) translateX(2px); }
|
|
130
139
|
to { opacity: 1; transform: scale(1) translateX(0); }
|
|
131
140
|
}
|
|
132
141
|
@keyframes icen-popover-in-right {
|
|
133
|
-
from { opacity: 0; transform: scale(0.
|
|
142
|
+
from { opacity: 0; transform: scale(0.98) translateX(-2px); }
|
|
134
143
|
to { opacity: 1; transform: scale(1) translateX(0); }
|
|
135
144
|
}
|
|
136
145
|
|