@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
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* form-validate.css — 表单校验呈现层(与 behaviors/form-validate.ts 配套)
|
|
4
4
|
*
|
|
5
|
+
* 分层登记(guard: tier-direction 文件级白名单):show_form 渲染体(.icen-ai-form*)
|
|
6
|
+
* 归本模块所有(runShowForm 在 form-validate.ts,注册在 ai-tools.ts),
|
|
7
|
+
* 类名沿用 ai 族命名是历史契约,不算 Core→Beta 依赖。
|
|
8
|
+
*
|
|
5
9
|
* DOM 契约(行为层写入;本文件只负责呈现,不驱动逻辑):
|
|
6
10
|
* <form data-icen-validate [data-icen-validate-summary] [data-icen-validate-show-valid]>
|
|
7
11
|
* 字段 = form 内有 name 的 input / textarea / select;initFormValidate() 自动挂 novalidate。
|
|
@@ -73,17 +77,18 @@
|
|
|
73
77
|
/* ── 提交失败汇总清单(form[data-icen-validate-summary],表单顶部,锚点聚焦字段) ── */
|
|
74
78
|
|
|
75
79
|
.icen-form-validate-summary {
|
|
76
|
-
border: 1px solid var(--icen-token-error);
|
|
80
|
+
border: 1px solid color-mix(in srgb, var(--icen-token-error) 45%, transparent);
|
|
77
81
|
border-radius: var(--icen-radius-md);
|
|
78
|
-
background: var(--icen-token-error-soft, var(--icen-token-
|
|
82
|
+
background: var(--icen-token-error-soft, color-mix(in srgb, var(--icen-token-error) 6%, transparent));
|
|
79
83
|
padding: var(--icen-density-space-sm) var(--icen-density-space-md);
|
|
80
84
|
margin-bottom: var(--icen-density-space-md);
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
.icen-form-validate-summary-title {
|
|
84
88
|
margin: 0 0 var(--icen-density-space-xs);
|
|
85
|
-
font-size: var(--icen-
|
|
89
|
+
font-size: var(--icen-font-size-control);
|
|
86
90
|
font-weight: 600;
|
|
91
|
+
line-height: 1.45;
|
|
87
92
|
color: var(--icen-token-error);
|
|
88
93
|
}
|
|
89
94
|
|
|
@@ -92,11 +97,12 @@
|
|
|
92
97
|
padding-inline-start: 1.2em;
|
|
93
98
|
display: flex;
|
|
94
99
|
flex-direction: column;
|
|
95
|
-
gap:
|
|
100
|
+
gap: 4px;
|
|
96
101
|
}
|
|
97
102
|
|
|
98
|
-
.icen-form-validate-summary-item { color: var(--icen-token-error); text-decoration: none; }
|
|
99
|
-
.icen-form-validate-summary-item:hover { text-decoration: underline; }
|
|
103
|
+
.icen-form-validate-summary-item { font-size: var(--icen-font-size-caption); line-height: 1.6; color: var(--icen-token-error); text-decoration: none; }
|
|
104
|
+
.icen-form-validate-summary-item:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
105
|
+
.icen-form-validate-summary-item:focus-visible { outline: none; box-shadow: var(--icen-ring); border-radius: var(--icen-radius-xs); }
|
|
100
106
|
|
|
101
107
|
/* ── AI 工具 show_form 挂载体(嵌在 ai-tool 卡的 IO 区,窄宽单列) ── */
|
|
102
108
|
|
|
@@ -117,4 +123,12 @@
|
|
|
117
123
|
justify-content: flex-end;
|
|
118
124
|
}
|
|
119
125
|
|
|
126
|
+
@media (forced-colors: active) {
|
|
127
|
+
.icen-form-validate-summary {
|
|
128
|
+
border-color: CanvasText;
|
|
129
|
+
background: Canvas;
|
|
130
|
+
}
|
|
131
|
+
.icen-form-validate-summary-item:focus-visible { outline: 2px solid Highlight; outline-offset: 1px; box-shadow: none; }
|
|
132
|
+
}
|
|
133
|
+
|
|
120
134
|
}
|
package/dist/components/form.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* 原生回退 :invalid:not(:placeholder-shown) 启发式。
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
.icen-form { display: flex; flex-direction: column; gap: var(--icen-density-space-
|
|
26
|
+
.icen-form { display: flex; flex-direction: column; gap: var(--icen-density-space-lg); }
|
|
27
27
|
|
|
28
28
|
.icen-form-field {
|
|
29
29
|
display: flex;
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
.icen-form-label {
|
|
38
38
|
font-size: var(--icen-density-font-size-sm);
|
|
39
39
|
color: var(--icen-token-text-muted);
|
|
40
|
-
letter-spacing: 0
|
|
41
|
-
font-weight:
|
|
40
|
+
letter-spacing: 0;
|
|
41
|
+
font-weight: var(--icen-font-weight-label);
|
|
42
|
+
line-height: 1.35;
|
|
42
43
|
}
|
|
43
44
|
.icen-form-label .icen-req { color: var(--icen-token-error); margin-inline-start: 2px; }
|
|
44
45
|
|
|
@@ -46,14 +47,14 @@
|
|
|
46
47
|
.icen-form-input,
|
|
47
48
|
.icen-form-textarea {
|
|
48
49
|
inline-size: 100%;
|
|
49
|
-
padding: 0 var(--icen-
|
|
50
|
-
height: var(--icen-
|
|
50
|
+
padding: 0 var(--icen-field-padding-inline);
|
|
51
|
+
height: var(--icen-control-height-md);
|
|
51
52
|
background: var(--icen-token-control);
|
|
52
53
|
color: var(--icen-token-text);
|
|
53
|
-
border:
|
|
54
|
-
border-radius: var(--icen-radius
|
|
54
|
+
border: var(--icen-control-border-width) solid var(--icen-token-control-border);
|
|
55
|
+
border-radius: var(--icen-control-radius);
|
|
55
56
|
font-family: var(--icen-font-body);
|
|
56
|
-
font-size: var(--icen-
|
|
57
|
+
font-size: var(--icen-font-size-control);
|
|
57
58
|
outline: none;
|
|
58
59
|
transition:
|
|
59
60
|
border-color var(--icen-tx-fast),
|
|
@@ -62,18 +63,18 @@
|
|
|
62
63
|
}
|
|
63
64
|
.icen-form-textarea {
|
|
64
65
|
height: auto;
|
|
65
|
-
min-height: calc(4 * 1.5em +
|
|
66
|
-
padding: var(--icen-density-space-sm) var(--icen-
|
|
66
|
+
min-height: calc(4 * 1.5em + 22px);
|
|
67
|
+
padding: var(--icen-density-space-sm) var(--icen-field-padding-inline);
|
|
67
68
|
line-height: 1.5;
|
|
68
69
|
resize: vertical;
|
|
69
70
|
}
|
|
70
71
|
.icen-form-input::placeholder,
|
|
71
72
|
.icen-form-textarea::placeholder {
|
|
72
|
-
color:
|
|
73
|
+
color: var(--icen-token-text-faint); /* 全量 faint:60% 混透浅色仅 ~2.4:1 低于 AA(faint 全量 ≥4.9:1) */
|
|
73
74
|
}
|
|
74
75
|
.icen-form-input:hover,
|
|
75
76
|
.icen-form-textarea:hover {
|
|
76
|
-
border-color: var(--icen-
|
|
77
|
+
border-color: var(--icen-token-control-border-hover);
|
|
77
78
|
}
|
|
78
79
|
.icen-form-input:focus-visible,
|
|
79
80
|
.icen-form-textarea:focus-visible {
|
|
@@ -87,6 +88,8 @@
|
|
|
87
88
|
opacity: var(--icen-disabled-opacity);
|
|
88
89
|
cursor: not-allowed;
|
|
89
90
|
background: var(--icen-token-bg-soft);
|
|
91
|
+
/* 禁用态不吃 hover 抬边(上面 :hover 只看伪类,指针仍会触发) */
|
|
92
|
+
pointer-events: none;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
/* 校验态::user-invalid(交互后才判 invalid,现代引擎)为主通道;
|
|
@@ -113,8 +116,8 @@
|
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
/* 尺寸变体 */
|
|
116
|
-
.icen-form-input--sm, .icen-form-textarea--sm { height: var(--icen-
|
|
117
|
-
.icen-form-input--lg, .icen-form-textarea--lg { height: var(--icen-
|
|
119
|
+
.icen-form-input--sm, .icen-form-textarea--sm { height: var(--icen-control-height-sm); font-size: var(--icen-density-font-size-sm); }
|
|
120
|
+
.icen-form-input--lg, .icen-form-textarea--lg { height: var(--icen-control-height-lg); font-size: var(--icen-density-font-size-lg); }
|
|
118
121
|
|
|
119
122
|
.icen-form-hint {
|
|
120
123
|
font-size: var(--icen-density-font-size-xs);
|
package/dist/components/icon.css
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
transition: opacity var(--icen-tx-fast), background-color var(--icen-tx-fast), color var(--icen-tx-fast), transform var(--icen-tx-fast);
|
|
21
21
|
}
|
|
22
|
-
.icen-icon-action:hover { background: var(--icen-token-fill-
|
|
23
|
-
.icen-icon-action:active {
|
|
24
|
-
.icen-icon-action:focus-visible { outline:
|
|
22
|
+
.icen-icon-action:hover { background: var(--icen-token-fill-hover); color: var(--icen-token-text); }
|
|
23
|
+
.icen-icon-action:active { background: var(--icen-token-fill-pressed); }
|
|
24
|
+
.icen-icon-action:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
25
25
|
.icen-icon-action:disabled { opacity: var(--icen-disabled-opacity); pointer-events: none; }
|
|
26
26
|
@media (hover: hover) and (pointer: fine) {
|
|
27
27
|
.icen-icon-action[data-icen-reveal] { opacity: 0; }
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
@media (prefers-reduced-motion: reduce) {
|
|
36
36
|
.icen-icon-action { transition: none; }
|
|
37
|
-
.icen-icon-action:active { transform: none; }
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
:root[data-icen-style="pixel"] .icen-symbol { stroke-linecap: square; stroke-linejoin: miter; shape-rendering: crispEdges; }
|
|
@@ -66,11 +65,14 @@
|
|
|
66
65
|
.icen-search-clear > svg { inline-size: 16px; block-size: 16px; pointer-events: none; }
|
|
67
66
|
.icen-search-clear:hover {
|
|
68
67
|
color: var(--icen-token-text);
|
|
69
|
-
background: var(--icen-token-
|
|
68
|
+
background: var(--icen-token-fill-hover);
|
|
69
|
+
}
|
|
70
|
+
.icen-search-clear:active {
|
|
71
|
+
background: var(--icen-token-fill-pressed);
|
|
70
72
|
}
|
|
71
73
|
.icen-search-clear:focus-visible {
|
|
72
|
-
outline:
|
|
73
|
-
|
|
74
|
+
outline: none;
|
|
75
|
+
box-shadow: var(--icen-ring);
|
|
74
76
|
}
|
|
75
77
|
@media (prefers-reduced-motion: reduce) {
|
|
76
78
|
.icen-search-clear { transition: none; }
|
|
@@ -92,11 +94,20 @@
|
|
|
92
94
|
.icen-suggestion-symbol > svg { inline-size: 16px; block-size: 16px; }
|
|
93
95
|
.icen-suggestion-copy { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
|
|
94
96
|
.icen-suggestion-status.is-loading .icen-suggestion-symbol > svg { animation: icen-spin calc(var(--icen-duration-normal) * 4) linear infinite; }
|
|
95
|
-
.icen-suggestion-retry { flex: 0 0 auto; padding-inline: var(--icen-density-space-sm); min-block-size: var(--icen-density-input-height-sm); border: 1px solid var(--icen-token-outline-soft); border-radius: var(--icen-radius-sm); background: var(--icen-token-fill-1); color: var(--icen-token-text); font: inherit; cursor: pointer; }
|
|
96
|
-
.icen-suggestion-retry:focus-visible { outline:
|
|
97
|
-
@media (hover: hover) and (pointer: fine) { .icen-suggestion-retry:hover { background: var(--icen-token-fill-2); } }
|
|
97
|
+
.icen-suggestion-retry { flex: 0 0 auto; padding-inline: var(--icen-density-space-sm); min-block-size: var(--icen-density-input-height-sm); border: 1px solid var(--icen-token-outline-soft); border-radius: var(--icen-radius-sm); background: var(--icen-token-fill-1); color: var(--icen-token-text); font: inherit; cursor: pointer; transition: background-color var(--icen-tx-fast), border-color var(--icen-tx-fast); }
|
|
98
|
+
.icen-suggestion-retry:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
99
|
+
@media (hover: hover) and (pointer: fine) { .icen-suggestion-retry:hover { background: var(--icen-token-fill-2); border-color: var(--icen-token-line); } }
|
|
98
100
|
@media (pointer: coarse) { .icen-suggestion-retry { min-inline-size: 44px; min-block-size: 44px; } }
|
|
99
101
|
:root[data-icen-style="pixel"] .icen-suggestion-status.is-loading .icen-suggestion-symbol > svg { animation-timing-function: steps(8,end); }
|
|
100
102
|
@media (prefers-reduced-motion: reduce) { .icen-suggestion-status.is-loading .icen-suggestion-symbol > svg { animation: none; } }
|
|
101
103
|
|
|
104
|
+
@media (forced-colors: active) {
|
|
105
|
+
.icen-icon-action,
|
|
106
|
+
.icen-search-clear,
|
|
107
|
+
.icen-suggestion-retry { border: 1px solid CanvasText; }
|
|
108
|
+
.icen-icon-action:focus-visible,
|
|
109
|
+
.icen-search-clear:focus-visible,
|
|
110
|
+
.icen-suggestion-retry:focus-visible { outline: 2px solid Highlight; outline-offset: 1px; box-shadow: none; }
|
|
111
|
+
}
|
|
112
|
+
|
|
102
113
|
}
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
.icen-kb-filter-value {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
min-inline-size: 0;
|
|
33
|
-
block-size: var(--input-height, var(--icen-
|
|
34
|
-
padding: 0 var(--input-padding-inline, var(--icen-
|
|
33
|
+
block-size: var(--input-height, var(--icen-control-height-md));
|
|
34
|
+
padding: 0 var(--input-padding-inline, var(--icen-field-padding-inline));
|
|
35
35
|
font-family: var(--icen-font-body);
|
|
36
|
-
font-size: var(--input-font-size, var(--icen-
|
|
37
|
-
line-height: 1.
|
|
36
|
+
font-size: var(--input-font-size, var(--icen-font-size-control));
|
|
37
|
+
line-height: 1.4;
|
|
38
38
|
color: var(--icen-token-text);
|
|
39
39
|
background: var(--icen-token-control);
|
|
40
|
-
border:
|
|
41
|
-
border-radius: var(--icen-radius
|
|
42
|
-
box-shadow: var(--icen-token-shadow-
|
|
40
|
+
border: var(--icen-control-border-width) solid var(--icen-token-control-border);
|
|
41
|
+
border-radius: var(--icen-control-radius);
|
|
42
|
+
box-shadow: var(--icen-token-shadow-field);
|
|
43
43
|
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
44
44
|
}
|
|
45
45
|
.icen-input-wrap {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
inline-size: 100%;
|
|
51
51
|
}
|
|
52
52
|
:is(.icen-input-wrap,.icen-input-control,.icen-kb-input,.icen-kb-retrieval-query,.icen-kb-hittest-input,.icen-kb-filter-field,.icen-kb-filter-value):hover {
|
|
53
|
-
border-color: var(--icen-
|
|
53
|
+
border-color: var(--icen-token-control-border-hover);
|
|
54
54
|
}
|
|
55
55
|
:is(.icen-input-wrap,.icen-input-control,.icen-kb-input,.icen-kb-retrieval-query,.icen-kb-hittest-input,.icen-kb-filter-field,.icen-kb-filter-value):focus-within {
|
|
56
56
|
outline: none;
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
/* 尺寸变体 */
|
|
78
78
|
.icen-input-wrap--sm, .icen-input-control--sm,
|
|
79
79
|
.icen-kb-input, .icen-kb-retrieval-query, .icen-kb-hittest-input, .icen-kb-filter-field, .icen-kb-filter-value {
|
|
80
|
-
--input-height: var(--icen-
|
|
81
|
-
--input-padding-inline:
|
|
80
|
+
--input-height: var(--icen-control-height-sm);
|
|
81
|
+
--input-padding-inline: var(--icen-field-padding-inline-sm);
|
|
82
82
|
--input-font-size: var(--icen-density-font-size-sm);
|
|
83
83
|
}
|
|
84
84
|
.icen-input-wrap--lg, .icen-input-control--lg {
|
|
85
|
-
--input-height: var(--icen-
|
|
86
|
-
--input-padding-inline: var(--icen-
|
|
85
|
+
--input-height: var(--icen-control-height-lg);
|
|
86
|
+
--input-padding-inline: var(--icen-control-padding-inline-lg);
|
|
87
87
|
--input-font-size: var(--icen-density-font-size-lg);
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
font: inherit;
|
|
100
100
|
}
|
|
101
101
|
.icen-input::placeholder {
|
|
102
|
-
color:
|
|
102
|
+
color: var(--icen-token-text-faint); /* 全量 faint:60% 混透浅色仅 ~2.4:1 低于 AA(faint 全量 ≥4.9:1) */
|
|
103
103
|
}
|
|
104
104
|
.icen-input:read-only {
|
|
105
105
|
color: var(--icen-token-text-muted);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
align-items: center;
|
|
163
163
|
justify-content: center;
|
|
164
164
|
flex-shrink: 0;
|
|
165
|
-
width:
|
|
165
|
+
width: 24px; height: 24px; /* WCAG 2.5.8 下限(22 → 24) */
|
|
166
166
|
padding: 0;
|
|
167
167
|
border: none;
|
|
168
168
|
background: transparent;
|
|
@@ -191,14 +191,14 @@
|
|
|
191
191
|
display: flex;
|
|
192
192
|
width: 100%;
|
|
193
193
|
background: var(--icen-token-control);
|
|
194
|
-
border:
|
|
195
|
-
border-radius: var(--icen-radius
|
|
196
|
-
box-shadow: var(--icen-token-shadow-
|
|
194
|
+
border: var(--icen-control-border-width) solid var(--icen-token-control-border);
|
|
195
|
+
border-radius: var(--icen-control-radius);
|
|
196
|
+
box-shadow: var(--icen-token-shadow-field);
|
|
197
197
|
transition: border-color var(--icen-tx-fast),
|
|
198
198
|
box-shadow var(--icen-tx-fast);
|
|
199
199
|
}
|
|
200
200
|
.icen-textarea-wrap:hover {
|
|
201
|
-
border-color: var(--icen-
|
|
201
|
+
border-color: var(--icen-token-control-border-hover);
|
|
202
202
|
}
|
|
203
203
|
.icen-textarea-wrap:focus-within {
|
|
204
204
|
box-shadow: var(--icen-control-focus-shadow);
|
|
@@ -221,19 +221,19 @@
|
|
|
221
221
|
|
|
222
222
|
.icen-textarea {
|
|
223
223
|
width: 100%;
|
|
224
|
-
padding: var(--icen-density-space-sm) var(--icen-
|
|
224
|
+
padding: var(--icen-density-space-sm) var(--icen-field-padding-inline);
|
|
225
225
|
background: transparent;
|
|
226
226
|
border: none;
|
|
227
227
|
outline: none;
|
|
228
228
|
resize: vertical;
|
|
229
229
|
color: var(--icen-token-text);
|
|
230
230
|
font: inherit;
|
|
231
|
-
font-size: var(--icen-
|
|
231
|
+
font-size: var(--icen-font-size-control);
|
|
232
232
|
line-height: 1.5;
|
|
233
|
-
min-height: calc(3 * 1.5em +
|
|
233
|
+
min-height: calc(3 * 1.5em + 22px);
|
|
234
234
|
}
|
|
235
235
|
.icen-textarea::placeholder {
|
|
236
|
-
color:
|
|
236
|
+
color: var(--icen-token-text-faint); /* 全量 faint:60% 混透浅色仅 ~2.4:1 低于 AA(faint 全量 ≥4.9:1) */
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
/* 字符计数(behavior 可挂到 .icen-input-wrap 或 .icen-textarea-wrap 内行内末端) */
|