@icen.ai/ui 0.10.0 → 0.11.1
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 +68 -22
- package/dist/behaviors/accordion.mjs +1 -1
- package/dist/behaviors/ai-branch.mjs +14 -0
- package/dist/behaviors/ai-chat.d.mts +2 -2
- package/dist/behaviors/ai-chat.mjs +66 -10
- package/dist/behaviors/ai-composer.d.mts +5 -5
- package/dist/behaviors/ai-composer.mjs +34 -10
- package/dist/behaviors/ai-core.mjs +14 -0
- package/dist/behaviors/ai-diff.mjs +14 -0
- package/dist/behaviors/ai-feedback.mjs +14 -0
- package/dist/behaviors/ai-panel.d.mts +2 -2
- package/dist/behaviors/ai-panel.mjs +14 -0
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +14 -0
- package/dist/behaviors/ai-threads.mjs +14 -0
- package/dist/behaviors/ai-tool.d.mts +1 -1
- package/dist/behaviors/ai-tool.mjs +299 -24
- package/dist/behaviors/ai-tools.mjs +1179 -28
- package/dist/behaviors/autocomplete.d.mts +1 -1
- package/dist/behaviors/autocomplete.mjs +14 -0
- package/dist/behaviors/back-top.mjs +14 -0
- package/dist/behaviors/carousel.mjs +21 -1
- package/dist/behaviors/cascader.mjs +27 -0
- package/dist/behaviors/charts.d.mts +12 -1
- package/dist/behaviors/charts.mjs +298 -20
- package/dist/behaviors/code-block.mjs +22 -1
- package/dist/behaviors/command-palette.mjs +3 -3
- package/dist/behaviors/context-menu.d.mts +2 -2
- package/dist/behaviors/context-menu.mjs +14 -0
- package/dist/behaviors/controls.d.mts +8 -8
- package/dist/behaviors/controls.mjs +50 -6
- package/dist/behaviors/copy.mjs +14 -0
- package/dist/behaviors/datatable.d.mts +3 -3
- package/dist/behaviors/datatable.mjs +89 -11
- package/dist/behaviors/date-picker.mjs +14 -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 +279 -4611
- package/dist/behaviors/i18n.d.mts +14 -0
- package/dist/behaviors/i18n.mjs +28 -0
- package/dist/behaviors/input.mjs +16 -0
- package/dist/behaviors/kb-access.d.mts +2 -2
- package/dist/behaviors/kb-access.mjs +21 -2
- package/dist/behaviors/kb-acl.d.mts +2 -2
- package/dist/behaviors/kb-acl.mjs +14 -0
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +298 -23
- package/dist/behaviors/kb-audit.d.mts +2 -2
- package/dist/behaviors/kb-audit.mjs +14 -0
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +14 -0
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +14 -0
- package/dist/behaviors/kb-checkpoint.d.mts +2 -2
- package/dist/behaviors/kb-checkpoint.mjs +14 -0
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +14 -0
- package/dist/behaviors/kb-citation.d.mts +2 -2
- package/dist/behaviors/kb-citation.mjs +33 -6
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +14 -0
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +14 -0
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +14 -0
- package/dist/behaviors/kb-core.d.mts +1 -1
- package/dist/behaviors/kb-core.mjs +14 -0
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +21 -2
- package/dist/behaviors/kb-explain.d.mts +2 -2
- package/dist/behaviors/kb-explain.mjs +26 -2
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +21 -2
- package/dist/behaviors/kb-gap.d.mts +2 -2
- package/dist/behaviors/kb-gap.mjs +14 -0
- package/dist/behaviors/kb-hittest.d.mts +2 -2
- package/dist/behaviors/kb-hittest.mjs +15 -1
- package/dist/behaviors/kb-metadata.mjs +19 -0
- package/dist/behaviors/kb-passage.d.mts +2 -2
- package/dist/behaviors/kb-passage.mjs +14 -0
- package/dist/behaviors/kb-pipeline.d.mts +2 -2
- package/dist/behaviors/kb-pipeline.mjs +14 -0
- package/dist/behaviors/kb-qa.mjs +14 -0
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +14 -0
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +31 -4
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +21 -2
- package/dist/behaviors/kb-sandbox.d.mts +2 -2
- package/dist/behaviors/kb-sandbox.mjs +20 -1
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +15 -1
- package/dist/behaviors/kb-select.mjs +21 -2
- package/dist/behaviors/kb-sources.d.mts +2 -2
- package/dist/behaviors/kb-sources.mjs +14 -0
- package/dist/behaviors/kb-sql.d.mts +2 -2
- package/dist/behaviors/kb-sql.mjs +14 -0
- package/dist/behaviors/kb-trace.d.mts +2 -2
- package/dist/behaviors/kb-trace.mjs +22 -3
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +14 -0
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +21 -2
- package/dist/behaviors/mentions.d.mts +1 -1
- package/dist/behaviors/mentions.mjs +14 -0
- package/dist/behaviors/modal.d.mts +1 -1
- package/dist/behaviors/modal.mjs +14 -0
- package/dist/behaviors/motion.d.mts +16 -0
- package/dist/behaviors/motion.mjs +39 -0
- package/dist/behaviors/notification.d.mts +2 -2
- package/dist/behaviors/notification.mjs +27 -3
- package/dist/behaviors/panel.mjs +14 -0
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.mjs +21 -2
- package/dist/behaviors/slider.mjs +3 -3
- package/dist/behaviors/split-pane.mjs +2 -0
- package/dist/behaviors/suggestions.mjs +14 -0
- package/dist/behaviors/tabs.mjs +10 -0
- package/dist/behaviors/tag-input.mjs +14 -0
- package/dist/behaviors/theme-switcher.d.mts +2 -2
- package/dist/behaviors/theme-switcher.mjs +30 -2
- package/dist/behaviors/theme.mjs +16 -2
- package/dist/behaviors/toast.d.mts +2 -2
- package/dist/behaviors/toast.mjs +14 -0
- package/dist/behaviors/tree-select.mjs +27 -0
- package/dist/behaviors/tree.mjs +4 -4
- package/dist/behaviors/upload.mjs +14 -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 +109 -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 +14644 -13935
- package/dist/react.d.mts +18 -18
- package/dist/react.mjs +377 -36
- package/dist/registry.json +797 -64
- package/dist/tokens/colors.css +6 -0
- package/dist/tokens/design.css +137 -31
- package/dist/tokens/dtcg.json +9592 -2008
- package/dist/tokens/figma.variables.json +7451 -2141
- package/dist/tokens/motion.css +51 -0
- package/dist/tokens/pixel.css +10 -0
- package/dist/tokens/scrollbars.css +40 -0
- package/dist/tokens/tokens-studio.json +8390 -1142
- package/dist/tokens/typography.css +33 -0
- package/dist/tokens.css +402 -82
- package/dist/ui.css +4196 -2163
- package/dist/vue.d.mts +17 -17
- package/dist/vue.mjs +371 -34
- package/docs/spec/charts-scale-a11y.md +115 -0
- package/docs/spec/design-philosophy.md +5 -5
- package/docs/spec/design-primitives.md +10 -10
- package/docs/spec/motion-typography.md +105 -0
- package/docs/spec/scrollbars.md +46 -0
- package/package.json +17 -3
|
@@ -46,22 +46,22 @@
|
|
|
46
46
|
.icen-date-picker-trigger {
|
|
47
47
|
display: inline-flex;
|
|
48
48
|
align-items: center;
|
|
49
|
-
gap: var(--icen-
|
|
49
|
+
gap: var(--icen-control-gap-sm);
|
|
50
50
|
width: 100%;
|
|
51
|
-
height: var(--icen-
|
|
52
|
-
padding: 0 var(--icen-
|
|
51
|
+
height: var(--icen-control-height-md);
|
|
52
|
+
padding: 0 var(--icen-field-padding-inline);
|
|
53
53
|
background: var(--icen-token-control);
|
|
54
|
-
border:
|
|
55
|
-
border-radius: var(--icen-radius
|
|
56
|
-
box-shadow: var(--icen-token-shadow-
|
|
54
|
+
border: var(--icen-control-border-width) solid var(--icen-token-control-border);
|
|
55
|
+
border-radius: var(--icen-control-radius);
|
|
56
|
+
box-shadow: var(--icen-token-shadow-field);
|
|
57
57
|
color: var(--icen-token-text);
|
|
58
58
|
font: inherit;
|
|
59
|
-
font-size: var(--icen-
|
|
59
|
+
font-size: var(--icen-font-size-control);
|
|
60
60
|
cursor: pointer;
|
|
61
61
|
-webkit-tap-highlight-color: transparent;
|
|
62
62
|
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
63
63
|
}
|
|
64
|
-
.icen-date-picker-trigger:hover { border-color: var(--icen-
|
|
64
|
+
.icen-date-picker-trigger:hover { border-color: var(--icen-token-control-border-hover); }
|
|
65
65
|
.icen-date-picker-trigger.is-open {
|
|
66
66
|
border-color: var(--icen-control-focus-border);
|
|
67
67
|
box-shadow: var(--icen-control-focus-shadow);
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
.icen-date-picker-icon svg { width: 14px; height: 14px; }
|
|
86
86
|
|
|
87
87
|
/* 尺寸 */
|
|
88
|
-
.icen-date-picker-trigger.icen-date-picker-trigger--sm { height: var(--icen-
|
|
89
|
-
.icen-date-picker-trigger.icen-date-picker-trigger--lg { height: var(--icen-
|
|
88
|
+
.icen-date-picker-trigger.icen-date-picker-trigger--sm { height: var(--icen-control-height-sm); font-size: var(--icen-density-font-size-sm); }
|
|
89
|
+
.icen-date-picker-trigger.icen-date-picker-trigger--lg { height: var(--icen-control-height-lg); font-size: var(--icen-density-font-size-lg); }
|
|
90
90
|
|
|
91
91
|
/* ── 面板 ── */
|
|
92
92
|
.icen-date-picker-panel {
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
z-index: var(--icen-z-popover);
|
|
95
95
|
width: 280px;
|
|
96
96
|
padding: var(--icen-density-space-sm);
|
|
97
|
-
background: var(--icen-token-
|
|
98
|
-
border: 1px solid var(--icen-token-
|
|
99
|
-
border-radius: var(--icen-radius-
|
|
100
|
-
box-shadow: var(--icen-token-shadow-
|
|
101
|
-
font-size: var(--icen-
|
|
97
|
+
background: var(--icen-token-surface);
|
|
98
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
99
|
+
border-radius: var(--icen-radius-lg);
|
|
100
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
101
|
+
font-size: var(--icen-font-size-control);
|
|
102
102
|
animation: icen-pop-in var(--icen-tx-fast);
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
display: flex;
|
|
148
148
|
align-items: center;
|
|
149
149
|
justify-content: center;
|
|
150
|
-
height:
|
|
150
|
+
height: 22px;
|
|
151
151
|
font-size: var(--icen-density-font-size-xs);
|
|
152
|
-
color: var(--icen-token-text-
|
|
152
|
+
color: var(--icen-token-text-muted);
|
|
153
153
|
font-weight: 500;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
height: 30px;
|
|
166
166
|
padding: 0;
|
|
167
167
|
border: 0;
|
|
168
|
-
border-radius: var(--icen-radius-
|
|
168
|
+
border-radius: var(--icen-radius-xs);
|
|
169
169
|
background: transparent;
|
|
170
170
|
color: var(--icen-token-text);
|
|
171
171
|
font: inherit;
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
-webkit-tap-highlight-color: transparent;
|
|
176
176
|
transition: background-color var(--icen-tx-fast), color var(--icen-tx-fast);
|
|
177
177
|
}
|
|
178
|
-
.icen-date-picker-cell:hover { background: var(--icen-token-fill-
|
|
178
|
+
.icen-date-picker-cell:hover { background: var(--icen-token-fill-hover); }
|
|
179
179
|
.icen-date-picker-cell.is-today {
|
|
180
|
-
border:
|
|
181
|
-
color: var(--icen-token-accent-text
|
|
180
|
+
border: 0;
|
|
181
|
+
color: var(--icen-token-accent-text);
|
|
182
182
|
font-weight: 600;
|
|
183
183
|
}
|
|
184
184
|
.icen-date-picker-cell.is-selected {
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
color: var(--icen-token-on-accent);
|
|
187
187
|
font-weight: 600;
|
|
188
188
|
}
|
|
189
|
-
.icen-date-picker-cell.is-selected.is-today {
|
|
189
|
+
.icen-date-picker-cell.is-selected.is-today { color: var(--icen-token-on-accent); }
|
|
190
190
|
.icen-date-picker-cell.is-outside {
|
|
191
191
|
color: var(--icen-token-text-muted);
|
|
192
192
|
opacity: 1;
|
|
@@ -243,14 +243,14 @@
|
|
|
243
243
|
.icen-date-picker-grid { display: flex; flex-direction: column; gap: 2px; }
|
|
244
244
|
.icen-date-picker-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
|
|
245
245
|
.icen-date-picker-week > span { min-inline-size: 0; }
|
|
246
|
-
.icen-date-picker-cell { inline-size: 100%; block-size:
|
|
247
|
-
.icen-date-picker-nav { inline-size:
|
|
248
|
-
.icen-date-picker-nav > svg { inline-size:
|
|
246
|
+
.icen-date-picker-cell { inline-size: 100%; block-size: 30px; }
|
|
247
|
+
.icen-date-picker-nav { inline-size: 28px; block-size: 28px; flex: 0 0 28px; border-radius: var(--icen-radius-xs); }
|
|
248
|
+
.icen-date-picker-nav > svg { inline-size: 15px; block-size: 15px; }
|
|
249
249
|
.icen-date-picker-icon { inline-size: 20px; block-size: 20px; align-items: center; justify-content: center; }
|
|
250
250
|
.icen-date-picker-icon > svg { inline-size: 16px; block-size: 16px; }
|
|
251
251
|
.icen-date-picker-nav:disabled, .icen-date-picker-today:disabled, .icen-date-picker-clear:disabled { opacity: .4; cursor: default; }
|
|
252
252
|
.icen-date-picker-nav:disabled:hover, .icen-date-picker-today:disabled:hover, .icen-date-picker-clear:disabled:hover { background: transparent; }
|
|
253
|
-
.icen-date-picker-trigger[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
|
|
253
|
+
.icen-date-picker-trigger[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
|
|
254
254
|
.icen-date-picker-cell.is-outside.is-selected { opacity: 1; color: var(--icen-token-on-accent); }
|
|
255
255
|
.icen-date-picker-panel:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
|
|
256
256
|
.icen-date-picker-empty { margin-block: var(--icen-density-space-sm) 0; color: var(--icen-token-text-muted); text-align: center; }
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
|
|
38
38
|
/* ── 图标 ── */
|
|
39
39
|
.icen-empty-icon {
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
42
|
-
border-radius: var(--icen-radius-lg);
|
|
43
|
-
background: var(--icen-token-
|
|
44
|
-
border: 1px solid
|
|
45
|
-
box-shadow:
|
|
40
|
+
width: 40px;
|
|
41
|
+
height: 40px;
|
|
42
|
+
border-radius: var(--icen-control-radius-lg);
|
|
43
|
+
background: var(--icen-token-fill-hover);
|
|
44
|
+
border: 1px solid transparent;
|
|
45
|
+
box-shadow: none;
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
48
|
justify-content: center;
|
|
49
|
-
color: var(--icen-token-text-
|
|
50
|
-
margin-bottom: var(--icen-density-space-
|
|
49
|
+
color: var(--icen-token-text-muted);
|
|
50
|
+
margin-bottom: var(--icen-density-space-sm);
|
|
51
51
|
}
|
|
52
|
-
.icen-empty--lg .icen-empty-icon { width:
|
|
53
|
-
.icen-empty--sm .icen-empty-icon { width:
|
|
54
|
-
.icen-empty-icon svg { width:
|
|
55
|
-
.icen-empty--lg .icen-empty-icon svg { width:
|
|
56
|
-
.icen-empty--sm .icen-empty-icon svg { width:
|
|
52
|
+
.icen-empty--lg .icen-empty-icon { width: 52px; height: 52px; }
|
|
53
|
+
.icen-empty--sm .icen-empty-icon { width: 32px; height: 32px; margin-bottom: var(--icen-density-space-xs); }
|
|
54
|
+
.icen-empty-icon svg { width: 20px; height: 20px; }
|
|
55
|
+
.icen-empty--lg .icen-empty-icon svg { width: 26px; height: 26px; }
|
|
56
|
+
.icen-empty--sm .icen-empty-icon svg { width: 16px; height: 16px; }
|
|
57
57
|
|
|
58
58
|
/* ── 类型预设 ── */
|
|
59
59
|
.icen-empty--error .icen-empty-icon {
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
|
|
79
79
|
/* ── 标题与描述 ── */
|
|
80
80
|
.icen-empty-title {
|
|
81
|
-
font-size: var(--icen-
|
|
82
|
-
font-weight:
|
|
81
|
+
font-size: var(--icen-font-size-title);
|
|
82
|
+
font-weight: var(--icen-font-weight-title);
|
|
83
83
|
color: var(--icen-token-text);
|
|
84
84
|
margin: 0;
|
|
85
85
|
line-height: 1.4;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
font-size: var(--icen-density-font-size-sm);
|
|
90
90
|
color: var(--icen-token-text-muted);
|
|
91
91
|
margin: 4px 0 0;
|
|
92
|
-
max-width:
|
|
92
|
+
max-width: 300px;
|
|
93
93
|
line-height: 1.5;
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -11,18 +11,19 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: flex-start;
|
|
13
13
|
gap: var(--icen-density-space-sm);
|
|
14
|
-
padding:
|
|
15
|
-
border-radius: var(--icen-radius-
|
|
16
|
-
box-shadow:
|
|
14
|
+
padding: 8px 10px;
|
|
15
|
+
border-radius: var(--icen-control-radius-lg);
|
|
16
|
+
box-shadow: none;
|
|
17
17
|
border: 1px solid transparent;
|
|
18
|
+
border-inline-start-width: 2px;
|
|
18
19
|
font-size: var(--icen-density-font-size-sm);
|
|
19
20
|
position: relative;
|
|
20
21
|
overflow: hidden;
|
|
21
22
|
}
|
|
22
|
-
.icen-alert--info { background: var(--icen-token-info-muted); border-color: color-mix(in srgb, var(--icen-token-info) 18%, transparent); }
|
|
23
|
-
.icen-alert--success { background: var(--icen-token-success-muted); border-color: color-mix(in srgb, var(--icen-token-success) 18%, transparent); }
|
|
24
|
-
.icen-alert--warning { background: var(--icen-token-warning-muted); border-color: color-mix(in srgb, var(--icen-token-warning) 18%, transparent); }
|
|
25
|
-
.icen-alert--error { background: var(--icen-token-error-muted); border-color: color-mix(in srgb, var(--icen-token-error) 18%, transparent); }
|
|
23
|
+
.icen-alert--info { background: var(--icen-token-info-muted); border-color: color-mix(in srgb, var(--icen-token-info) 18%, transparent); border-inline-start-color: var(--icen-token-info); }
|
|
24
|
+
.icen-alert--success { background: var(--icen-token-success-muted); border-color: color-mix(in srgb, var(--icen-token-success) 18%, transparent); border-inline-start-color: var(--icen-token-success); }
|
|
25
|
+
.icen-alert--warning { background: var(--icen-token-warning-muted); border-color: color-mix(in srgb, var(--icen-token-warning) 18%, transparent); border-inline-start-color: var(--icen-token-warning); }
|
|
26
|
+
.icen-alert--error { background: var(--icen-token-error-muted); border-color: color-mix(in srgb, var(--icen-token-error) 18%, transparent); border-inline-start-color: var(--icen-token-error); }
|
|
26
27
|
|
|
27
28
|
.icen-alert-icon {
|
|
28
29
|
flex-shrink: 0;
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
|
|
38
39
|
.icen-alert-content { flex: 1; min-inline-size: 0; }
|
|
39
40
|
.icen-alert-title {
|
|
40
|
-
font-size: var(--icen-
|
|
41
|
-
font-weight:
|
|
41
|
+
font-size: var(--icen-font-size-control);
|
|
42
|
+
font-weight: 600;
|
|
42
43
|
margin: 0;
|
|
43
44
|
line-height: 1.4;
|
|
44
45
|
}
|
|
@@ -54,13 +55,13 @@
|
|
|
54
55
|
display: inline-flex;
|
|
55
56
|
align-items: center;
|
|
56
57
|
justify-content: center;
|
|
57
|
-
width:
|
|
58
|
-
height:
|
|
58
|
+
width: 24px;
|
|
59
|
+
height: 24px;
|
|
59
60
|
padding: 0;
|
|
60
61
|
border: 0;
|
|
61
62
|
border-radius: var(--icen-radius-xs);
|
|
62
63
|
background: none;
|
|
63
|
-
color: var(--icen-token-text-
|
|
64
|
+
color: var(--icen-token-text-muted);
|
|
64
65
|
cursor: pointer;
|
|
65
66
|
transition:
|
|
66
67
|
opacity var(--icen-tx-fast),
|
|
@@ -100,32 +101,33 @@
|
|
|
100
101
|
padding: 40px var(--icen-density-space-md);
|
|
101
102
|
}
|
|
102
103
|
.icen-result-icon {
|
|
103
|
-
width:
|
|
104
|
-
height:
|
|
104
|
+
width: 56px;
|
|
105
|
+
height: 56px;
|
|
105
106
|
border-radius: var(--icen-radius-full);
|
|
106
107
|
display: flex;
|
|
107
108
|
align-items: center;
|
|
108
109
|
justify-content: center;
|
|
109
|
-
box-shadow:
|
|
110
|
+
box-shadow: none;
|
|
110
111
|
border: 1px solid transparent;
|
|
111
|
-
margin-bottom: var(--icen-density-space-
|
|
112
|
+
margin-bottom: var(--icen-density-space-sm);
|
|
112
113
|
}
|
|
113
|
-
.icen-result-icon svg { width:
|
|
114
|
+
.icen-result-icon svg { width: 26px; height: 26px; }
|
|
114
115
|
.icen-result--success .icen-result-icon { background: var(--icen-token-success-muted); color: var(--icen-token-success); border-color: color-mix(in srgb, var(--icen-token-success) 12%, transparent); }
|
|
115
116
|
.icen-result--error .icen-result-icon { background: var(--icen-token-error-muted); color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 12%, transparent); }
|
|
116
117
|
.icen-result--warning .icen-result-icon { background: var(--icen-token-warning-muted); color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 12%, transparent); }
|
|
117
118
|
.icen-result--info .icen-result-icon { background: var(--icen-token-info-muted); color: var(--icen-token-info); border-color: color-mix(in srgb, var(--icen-token-info) 12%, transparent); }
|
|
118
119
|
|
|
119
120
|
.icen-result-title {
|
|
120
|
-
font-size: var(--icen-density-font-size-
|
|
121
|
+
font-size: var(--icen-density-font-size-xl);
|
|
121
122
|
font-weight: 600;
|
|
122
123
|
color: var(--icen-token-text);
|
|
123
124
|
margin: 0;
|
|
124
125
|
font-family: var(--icen-font-heading);
|
|
125
126
|
line-height: 1.3;
|
|
127
|
+
letter-spacing: -.015em;
|
|
126
128
|
}
|
|
127
129
|
.icen-result-desc {
|
|
128
|
-
font-size: var(--icen-
|
|
130
|
+
font-size: var(--icen-font-size-control);
|
|
129
131
|
color: var(--icen-token-text-muted);
|
|
130
132
|
margin: var(--icen-density-space-xs) 0 0;
|
|
131
133
|
max-width: 360px;
|
|
@@ -147,15 +149,15 @@
|
|
|
147
149
|
}
|
|
148
150
|
.icen-progress-track {
|
|
149
151
|
flex: 1;
|
|
150
|
-
height:
|
|
152
|
+
height: 4px;
|
|
151
153
|
overflow: hidden;
|
|
152
154
|
border-radius: var(--icen-radius-full);
|
|
153
|
-
background:
|
|
155
|
+
background: var(--icen-token-fill-2);
|
|
154
156
|
}
|
|
155
157
|
.icen-progress-bar {
|
|
156
158
|
height: 100%;
|
|
157
159
|
border-radius: var(--icen-radius-full);
|
|
158
|
-
background: var(--icen-token-accent);
|
|
160
|
+
background: var(--icen-token-accent-strong);
|
|
159
161
|
transition: width var(--icen-tx-slow);
|
|
160
162
|
}
|
|
161
163
|
.icen-progress--success .icen-progress-bar { background: var(--icen-token-success); }
|
|
@@ -184,15 +186,15 @@
|
|
|
184
186
|
/* ══════════════ spinner · 加载圈 ══════════════ */
|
|
185
187
|
.icen-spinner {
|
|
186
188
|
display: inline-block;
|
|
187
|
-
width:
|
|
188
|
-
height:
|
|
189
|
-
border:
|
|
190
|
-
border-top-color: var(--icen-token-accent);
|
|
189
|
+
width: 18px;
|
|
190
|
+
height: 18px;
|
|
191
|
+
border: 1.5px solid color-mix(in srgb, var(--icen-token-accent) 26%, transparent);
|
|
192
|
+
border-top-color: var(--icen-token-accent-strong);
|
|
191
193
|
border-radius: var(--icen-radius-full);
|
|
192
194
|
animation: icen-spin var(--spinner-duration, 0.8s) linear infinite;
|
|
193
195
|
}
|
|
194
|
-
.icen-spinner--sm { width:
|
|
195
|
-
.icen-spinner--lg { width:
|
|
196
|
+
.icen-spinner--sm { width: 13px; height: 13px; border-width: 1.5px; }
|
|
197
|
+
.icen-spinner--lg { width: 28px; height: 28px; border-width: 2.5px; }
|
|
196
198
|
.icen-spinner--success { border-color: color-mix(in srgb, var(--icen-token-success) 30%, transparent); border-top-color: var(--icen-token-success); }
|
|
197
199
|
.icen-spinner--error { border-color: color-mix(in srgb, var(--icen-token-error) 30%, transparent); border-top-color: var(--icen-token-error); }
|
|
198
200
|
.icen-spinner--muted { border-color: color-mix(in srgb, var(--icen-token-text-faint) 30%, transparent); border-top-color: var(--icen-token-text-faint); }
|
|
@@ -283,7 +285,7 @@
|
|
|
283
285
|
stroke: var(--icen-token-accent);
|
|
284
286
|
stroke-width: 4;
|
|
285
287
|
stroke-linecap: round;
|
|
286
|
-
transition: stroke-dashoffset var(--icen-
|
|
288
|
+
transition: stroke-dashoffset var(--icen-duration-slow) var(--icen-ease-out);
|
|
287
289
|
}
|
|
288
290
|
.icen-progress-ring-text {
|
|
289
291
|
position: absolute;
|
|
@@ -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
|
}
|