@icen.ai/ui 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +176 -75
- package/README.md +66 -88
- package/dist/base.css +208 -179
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +19 -0
- package/dist/behaviors/ai-branch.mjs +1133 -0
- package/dist/behaviors/ai-chat.d.mts +12 -10
- package/dist/behaviors/ai-chat.mjs +1125 -155
- package/dist/behaviors/ai-composer.d.mts +44 -12
- package/dist/behaviors/ai-composer.mjs +2084 -523
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1016 -107
- package/dist/behaviors/ai-diff.mjs +1019 -127
- package/dist/behaviors/ai-feedback.d.mts +26 -0
- package/dist/behaviors/ai-feedback.mjs +1212 -0
- package/dist/behaviors/ai-panel.d.mts +21 -7
- package/dist/behaviors/ai-panel.mjs +1308 -264
- package/dist/behaviors/ai-provider.mjs +1003 -101
- package/dist/behaviors/ai-threads.d.mts +38 -0
- package/dist/behaviors/ai-threads.mjs +1233 -0
- package/dist/behaviors/ai-tool.d.mts +2 -2
- package/dist/behaviors/ai-tool.mjs +2042 -396
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +4453 -372
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1600 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +951 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +906 -11
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1853 -0
- package/dist/behaviors/charts.d.mts +174 -8
- package/dist/behaviors/charts.mjs +2632 -192
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1611 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +161 -59
- package/dist/behaviors/context-menu.d.mts +9 -8
- package/dist/behaviors/context-menu.mjs +1112 -44
- package/dist/behaviors/controls.d.mts +13 -13
- package/dist/behaviors/controls.mjs +989 -130
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1206 -42
- package/dist/behaviors/datatable.d.mts +53 -3
- package/dist/behaviors/datatable.mjs +1963 -207
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1340 -293
- package/dist/behaviors/design.d.mts +54 -0
- package/dist/behaviors/design.mjs +109 -0
- package/dist/behaviors/dropdown.d.mts +5 -6
- package/dist/behaviors/dropdown.mjs +262 -110
- package/dist/behaviors/events.d.mts +313 -3
- package/dist/behaviors/events.mjs +47 -2
- package/dist/behaviors/feedback.d.mts +30 -0
- package/dist/behaviors/feedback.mjs +296 -0
- package/dist/behaviors/focus.d.mts +8 -0
- package/dist/behaviors/focus.mjs +24 -0
- package/dist/behaviors/form-validate.d.mts +102 -0
- package/dist/behaviors/form-validate.mjs +6091 -0
- package/dist/behaviors/i18n.d.mts +789 -0
- package/dist/behaviors/i18n.mjs +1711 -0
- package/dist/behaviors/icons.d.mts +93 -0
- package/dist/behaviors/icons.mjs +113 -0
- package/dist/behaviors/input.d.mts +9 -1
- package/dist/behaviors/input.mjs +1056 -60
- package/dist/behaviors/kb-access.d.mts +34 -0
- package/dist/behaviors/kb-access.mjs +2459 -0
- package/dist/behaviors/kb-acl.d.mts +50 -0
- package/dist/behaviors/kb-acl.mjs +1345 -0
- package/dist/behaviors/kb-answer.d.mts +38 -0
- package/dist/behaviors/kb-answer.mjs +3707 -0
- package/dist/behaviors/kb-audit.d.mts +23 -0
- package/dist/behaviors/kb-audit.mjs +1297 -0
- package/dist/behaviors/kb-canvas.d.mts +44 -0
- package/dist/behaviors/kb-canvas.mjs +1512 -0
- package/dist/behaviors/kb-chain.d.mts +15 -0
- package/dist/behaviors/kb-chain.mjs +1192 -0
- package/dist/behaviors/kb-checkpoint.d.mts +16 -0
- package/dist/behaviors/kb-checkpoint.mjs +1492 -0
- package/dist/behaviors/kb-chunks.d.mts +31 -0
- package/dist/behaviors/kb-chunks.mjs +1414 -0
- package/dist/behaviors/kb-citation.d.mts +38 -0
- package/dist/behaviors/kb-citation.mjs +1699 -0
- package/dist/behaviors/kb-clarify.d.mts +20 -0
- package/dist/behaviors/kb-clarify.mjs +1176 -0
- package/dist/behaviors/kb-conflict.d.mts +22 -0
- package/dist/behaviors/kb-conflict.mjs +1206 -0
- package/dist/behaviors/kb-connector.d.mts +17 -0
- package/dist/behaviors/kb-connector.mjs +1303 -0
- package/dist/behaviors/kb-core.d.mts +534 -0
- package/dist/behaviors/kb-core.mjs +1805 -0
- package/dist/behaviors/kb-eval.d.mts +22 -0
- package/dist/behaviors/kb-eval.mjs +2235 -0
- package/dist/behaviors/kb-explain.d.mts +11 -0
- package/dist/behaviors/kb-explain.mjs +1165 -0
- package/dist/behaviors/kb-filter.d.mts +31 -0
- package/dist/behaviors/kb-filter.mjs +2417 -0
- package/dist/behaviors/kb-gap.d.mts +27 -0
- package/dist/behaviors/kb-gap.mjs +1195 -0
- package/dist/behaviors/kb-hittest.d.mts +34 -0
- package/dist/behaviors/kb-hittest.mjs +1352 -0
- package/dist/behaviors/kb-metadata.d.mts +29 -0
- package/dist/behaviors/kb-metadata.mjs +1248 -0
- package/dist/behaviors/kb-passage.d.mts +41 -0
- package/dist/behaviors/kb-passage.mjs +1469 -0
- package/dist/behaviors/kb-pipeline.d.mts +18 -0
- package/dist/behaviors/kb-pipeline.mjs +1301 -0
- package/dist/behaviors/kb-qa.d.mts +26 -0
- package/dist/behaviors/kb-qa.mjs +1260 -0
- package/dist/behaviors/kb-rerank.d.mts +20 -0
- package/dist/behaviors/kb-rerank.mjs +1248 -0
- package/dist/behaviors/kb-retrieval.d.mts +49 -0
- package/dist/behaviors/kb-retrieval.mjs +2585 -0
- package/dist/behaviors/kb-review.d.mts +44 -0
- package/dist/behaviors/kb-review.mjs +2282 -0
- package/dist/behaviors/kb-sandbox.d.mts +33 -0
- package/dist/behaviors/kb-sandbox.mjs +1247 -0
- package/dist/behaviors/kb-segment.d.mts +32 -0
- package/dist/behaviors/kb-segment.mjs +1431 -0
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1989 -0
- package/dist/behaviors/kb-sources.d.mts +27 -0
- package/dist/behaviors/kb-sources.mjs +1287 -0
- package/dist/behaviors/kb-sql.d.mts +43 -0
- package/dist/behaviors/kb-sql.mjs +1865 -0
- package/dist/behaviors/kb-trace.d.mts +16 -0
- package/dist/behaviors/kb-trace.mjs +1328 -0
- package/dist/behaviors/kb-visibility.d.mts +44 -0
- package/dist/behaviors/kb-visibility.mjs +1331 -0
- package/dist/behaviors/kb-who-can.d.mts +32 -0
- package/dist/behaviors/kb-who-can.mjs +2216 -0
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2152 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1055 -33
- package/dist/behaviors/nav.d.mts +1 -1
- package/dist/behaviors/nav.mjs +6 -6
- package/dist/behaviors/notification.d.mts +16 -8
- package/dist/behaviors/notification.mjs +1615 -265
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +994 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1410 -117
- package/dist/behaviors/sidebar.d.mts +1 -1
- package/dist/behaviors/sidebar.mjs +13 -13
- package/dist/behaviors/slider.d.mts +1 -1
- package/dist/behaviors/slider.mjs +9 -9
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +7 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1089 -0
- package/dist/behaviors/svg-parse.d.mts +14 -0
- package/dist/behaviors/svg-parse.mjs +37 -0
- package/dist/behaviors/tabs.d.mts +2 -2
- package/dist/behaviors/tabs.mjs +25 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1359 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1981 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +390 -28
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1266 -88
- package/dist/behaviors/tooltip.d.mts +4 -0
- package/dist/behaviors/tooltip.mjs +378 -0
- package/dist/behaviors/tree-select.d.mts +69 -0
- package/dist/behaviors/tree-select.mjs +1907 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +15 -15
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1076 -66
- package/dist/cli.mjs +5 -6
- package/dist/components/ai-branch.mjs +3 -0
- package/dist/components/ai-chat.css +846 -458
- package/dist/components/ai-diff.css +153 -132
- package/dist/components/ai-feedback.mjs +3 -0
- package/dist/components/ai-panel.css +495 -270
- package/dist/components/ai-threads.mjs +3 -0
- package/dist/components/ai-tool.css +393 -238
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/back-top.css +34 -31
- package/dist/components/badge.css +44 -41
- package/dist/components/breadcrumb.css +67 -46
- package/dist/components/btn.css +80 -74
- package/dist/components/card.css +117 -106
- package/dist/components/cascader.css +311 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +8 -2
- package/dist/components/chart-bar.css +95 -33
- package/dist/components/chart-gauge.css +14 -11
- package/dist/components/chart-graph.css +60 -0
- package/dist/components/chart-graph.mjs +4 -0
- package/dist/components/chart-heatmap.css +96 -90
- package/dist/components/chart-line.css +8 -3
- package/dist/components/chart-map.mjs +3 -0
- package/dist/components/chart-pie.css +9 -6
- package/dist/components/chart-radar.css +8 -5
- package/dist/components/chart-scatter.css +9 -6
- package/dist/components/chart-scatter.mjs +1 -1
- package/dist/components/chart-sparkline.css +5 -2
- package/dist/components/chart-stack.css +14 -11
- package/dist/components/charts.css +190 -67
- package/dist/components/charts.mjs +1 -0
- package/dist/components/code-block.css +418 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +138 -117
- package/dist/components/content.css +257 -251
- package/dist/components/copy.css +72 -44
- package/dist/components/datatable.css +423 -181
- package/dist/components/date-picker.css +135 -104
- package/dist/components/empty.css +68 -65
- package/dist/components/feedback.css +201 -183
- package/dist/components/form-validate.css +120 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +150 -127
- package/dist/components/icon.css +102 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +159 -104
- package/dist/components/kb-access.mjs +4 -0
- package/dist/components/kb-acl.mjs +4 -0
- package/dist/components/kb-agent.css +496 -0
- package/dist/components/kb-answer.mjs +4 -0
- package/dist/components/kb-audit.mjs +4 -0
- package/dist/components/kb-canvas.mjs +4 -0
- package/dist/components/kb-chain.mjs +4 -0
- package/dist/components/kb-checkpoint.mjs +4 -0
- package/dist/components/kb-chunks.mjs +4 -0
- package/dist/components/kb-citation.mjs +4 -0
- package/dist/components/kb-clarify.mjs +4 -0
- package/dist/components/kb-conflict.mjs +4 -0
- package/dist/components/kb-connector.mjs +4 -0
- package/dist/components/kb-data.css +653 -0
- package/dist/components/kb-eval.mjs +4 -0
- package/dist/components/kb-explain.mjs +4 -0
- package/dist/components/kb-filter.mjs +4 -0
- package/dist/components/kb-gap.mjs +4 -0
- package/dist/components/kb-ground.css +578 -0
- package/dist/components/kb-hittest.mjs +4 -0
- package/dist/components/kb-ingest.css +882 -0
- package/dist/components/kb-metadata.mjs +4 -0
- package/dist/components/kb-ops.css +554 -0
- package/dist/components/kb-passage.mjs +4 -0
- package/dist/components/kb-perm.css +433 -0
- package/dist/components/kb-pipeline.mjs +4 -0
- package/dist/components/kb-qa.mjs +4 -0
- package/dist/components/kb-rerank.mjs +4 -0
- package/dist/components/kb-retrieval.mjs +4 -0
- package/dist/components/kb-review.mjs +4 -0
- package/dist/components/kb-sandbox.mjs +4 -0
- package/dist/components/kb-search.css +897 -0
- package/dist/components/kb-segment.mjs +4 -0
- package/dist/components/kb-sources.mjs +4 -0
- package/dist/components/kb-sql.mjs +4 -0
- package/dist/components/kb-trace.mjs +4 -0
- package/dist/components/kb-visibility.mjs +4 -0
- package/dist/components/kb-who-can.mjs +4 -0
- package/dist/components/kb.css +263 -0
- package/dist/components/kb.mjs +9 -0
- package/dist/components/layout.css +85 -82
- package/dist/components/material-chinese.css +73 -0
- package/dist/components/material-soviet.css +76 -0
- package/dist/components/material.css +275 -0
- package/dist/components/media.css +220 -166
- package/dist/components/mentions.css +189 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +113 -105
- package/dist/components/modal.css +107 -112
- package/dist/components/nav.css +118 -115
- package/dist/components/notification.css +238 -174
- package/dist/components/pagination.css +56 -53
- package/dist/components/panel.css +66 -63
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +81 -71
- package/dist/components/popover.css +67 -53
- package/dist/components/scroll-area.css +113 -110
- package/dist/components/segmented.css +146 -143
- package/dist/components/select.css +206 -186
- package/dist/components/sidebar.css +137 -127
- package/dist/components/slider.css +117 -114
- package/dist/components/split-pane.css +112 -109
- package/dist/components/stat.css +112 -106
- package/dist/components/steps.css +109 -103
- package/dist/components/switch.css +138 -134
- package/dist/components/table.css +131 -107
- package/dist/components/tabs.css +114 -108
- package/dist/components/tag-input.css +48 -133
- package/dist/components/tag.css +81 -71
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/toast.css +100 -86
- package/dist/components/toolbar.css +45 -42
- package/dist/components/tooltip.css +102 -43
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +416 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/upload.css +135 -92
- package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
- package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
- package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
- package/dist/fonts/OFL.txt +96 -0
- package/dist/fonts/README.md +14 -0
- package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
- package/dist/index.d.mts +64 -15
- package/dist/index.mjs +28049 -8595
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8208 -0
- package/dist/registry.json +454 -15
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +365 -1222
- package/dist/tokens/design.css +109 -0
- package/dist/tokens/dtcg.json +11198 -0
- package/dist/tokens/figma.variables.json +7017 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +50 -0
- package/dist/tokens/soviet.css +44 -0
- package/dist/tokens/style-profiles.css +36 -547
- package/dist/tokens/themes.json +308 -0
- package/dist/tokens/tokens-studio.json +6728 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1555 -1801
- package/dist/ui.css +16147 -8597
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7781 -0
- package/docs/spec/ai-input-experience.md +75 -0
- package/docs/spec/ai-native.md +238 -147
- package/docs/spec/design-philosophy.md +189 -0
- package/docs/spec/design-primitives.md +196 -0
- package/docs/spec/kb-family.md +475 -0
- package/package.json +42 -7
- package/dist/retro-effects.css +0 -255
- package/dist/tokens/retro-effects.css +0 -255
|
@@ -1,179 +1,201 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — Component: table(数据表)
|
|
3
4
|
*
|
|
4
5
|
* 完整契约:
|
|
5
|
-
* <div class="table-wrap [table-wrap--bordered]">
|
|
6
|
-
* <table class="table [--zebra|--compact|--dense] [--sticky-col]">
|
|
7
|
-
* <caption class="table-caption">标题说明</caption> ← 可选
|
|
6
|
+
* <div class="icen-table-wrap [icen-table-wrap--bordered]">
|
|
7
|
+
* <icen-table class="icen-table [--zebra|--compact|--dense] [--sticky-col]">
|
|
8
|
+
* <caption class="icen-table-caption">标题说明</caption> ← 可选
|
|
8
9
|
* <thead>
|
|
9
|
-
* <tr><th [colspan=rowspan] [data-sort]>列名</th>…</tr>
|
|
10
|
+
* <tr><th [colspan=rowspan] [data-icen-sort]>列名</th>…</tr>
|
|
10
11
|
* </thead>
|
|
11
12
|
* <tbody>
|
|
12
|
-
* <tr class="row-link [.is-selected] [.is-expanded]> ← 整行可点
|
|
13
|
-
* <td class="col-fixed">…</td> ← 固定列(sticky-col 模式)
|
|
13
|
+
* <tr class="icen-row-link [.is-selected] [.is-expanded]> ← 整行可点
|
|
14
|
+
* <td class="icen-col-fixed">…</td> ← 固定列(sticky-col 模式)
|
|
14
15
|
* <td>…</td>
|
|
15
|
-
* <td class="ops"><button class="btn btn-sm">…</button></td>
|
|
16
|
+
* <td class="icen-ops"><button class="icen-btn icen-btn-sm">…</button></td>
|
|
16
17
|
* </tr>
|
|
17
|
-
* <tr class="row-expand"> ← 展开行(配合 .is-expanded)
|
|
18
|
+
* <tr class="icen-row-expand"> ← 展开行(配合 .is-expanded)
|
|
18
19
|
* <td colspan="99">…展开详情…</td>
|
|
19
20
|
* </tr>
|
|
20
21
|
* </tbody>
|
|
21
22
|
* <tfoot><tr><td>合计</td>…</tr></tfoot>
|
|
22
|
-
* </table>
|
|
23
|
+
* </icen-table>
|
|
23
24
|
* </div>
|
|
24
25
|
*
|
|
25
|
-
* .table-wrap:窄屏横向滚动(滚动条样式见 base.css);--bordered 加外边框。
|
|
26
|
-
* .table--zebra:斑马纹(奇数行底色)。
|
|
27
|
-
* .table--compact:紧凑(cell padding 缩小);--dense:极紧凑(行高更紧)。
|
|
28
|
-
* .table--sticky-col:首列水平粘滞(配合 td/th .col-fixed,长表横向滚动时保持可见)。
|
|
29
|
-
* .row-expand[hidden]:配合 .row-link.is-expanded 控制展开行显隐。
|
|
26
|
+
* .icen-table-wrap:窄屏横向滚动(滚动条样式见 base.css);--bordered 加外边框。
|
|
27
|
+
* .icen-table--zebra:斑马纹(奇数行底色)。
|
|
28
|
+
* .icen-table--compact:紧凑(cell padding 缩小);--dense:极紧凑(行高更紧)。
|
|
29
|
+
* .icen-table--sticky-col:首列水平粘滞(配合 td/th .icen-col-fixed,长表横向滚动时保持可见)。
|
|
30
|
+
* .icen-row-expand[hidden]:配合 .icen-row-link.is-expanded 控制展开行显隐。
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
|
-
.table-wrap {
|
|
33
|
+
.icen-table-wrap {
|
|
33
34
|
overflow-x: auto;
|
|
34
35
|
overscroll-behavior: contain;
|
|
35
|
-
border-radius: var(--radius-lg);
|
|
36
|
+
border-radius: var(--icen-radius-lg);
|
|
36
37
|
}
|
|
37
|
-
.table-wrap--bordered {
|
|
38
|
-
border: 1px solid var(--token-line-soft);
|
|
38
|
+
.icen-table-wrap--bordered {
|
|
39
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
.table {
|
|
42
|
-
|
|
42
|
+
.icen-table {
|
|
43
|
+
inline-size: 100%;
|
|
43
44
|
border-collapse: collapse;
|
|
44
|
-
font-size: var(--density-font-size-md);
|
|
45
|
+
font-size: var(--icen-density-font-size-md);
|
|
45
46
|
font-variant-numeric: tabular-nums;
|
|
46
47
|
}
|
|
47
|
-
.table th,
|
|
48
|
-
.table td {
|
|
49
|
-
padding: var(--density-space-sm) calc(var(--density-space-md) + 2px);
|
|
50
|
-
text-align:
|
|
48
|
+
.icen-table th,
|
|
49
|
+
.icen-table td {
|
|
50
|
+
padding: var(--icen-density-space-sm) calc(var(--icen-density-space-md) + 2px);
|
|
51
|
+
text-align: start;
|
|
51
52
|
}
|
|
52
|
-
.table th {
|
|
53
|
+
.icen-table th {
|
|
53
54
|
font-weight: 600;
|
|
54
|
-
font-size: var(--density-font-size-xs);
|
|
55
|
+
font-size: var(--icen-density-font-size-xs);
|
|
55
56
|
letter-spacing: 0.05em;
|
|
56
|
-
color: var(--token-text-faint);
|
|
57
|
-
border-bottom: 1px solid var(--token-line);
|
|
57
|
+
color: var(--icen-token-text-faint);
|
|
58
|
+
border-bottom: 1px solid var(--icen-token-line);
|
|
58
59
|
white-space: nowrap;
|
|
59
60
|
text-transform: uppercase;
|
|
60
|
-
background: var(--token-bg-soft);
|
|
61
|
+
background: var(--icen-token-bg-soft);
|
|
61
62
|
position: sticky;
|
|
62
63
|
top: 0;
|
|
63
|
-
z-index: var(--z-raised);
|
|
64
|
+
z-index: var(--icen-z-raised);
|
|
64
65
|
}
|
|
65
|
-
.table td {
|
|
66
|
-
border-bottom: 1px solid var(--token-line-soft);
|
|
66
|
+
.icen-table td {
|
|
67
|
+
border-bottom: 1px solid var(--icen-token-line-soft);
|
|
67
68
|
vertical-align: middle;
|
|
68
|
-
color: var(--token-text);
|
|
69
|
+
color: var(--icen-token-text);
|
|
69
70
|
}
|
|
70
|
-
.table tbody tr:last-child td { border-bottom: 0; }
|
|
71
|
-
.table tbody tr {
|
|
71
|
+
.icen-table tbody tr:last-child td { border-bottom: 0; }
|
|
72
|
+
.icen-table tbody tr {
|
|
72
73
|
transition: background-color var(--icen-tx-fast);
|
|
73
74
|
}
|
|
74
|
-
.table tbody tr:hover {
|
|
75
|
-
background: var(--token-surface-strong);
|
|
75
|
+
.icen-table tbody tr:hover {
|
|
76
|
+
background: var(--icen-token-surface-strong);
|
|
76
77
|
}
|
|
77
|
-
.table tbody tr.row-link {
|
|
78
|
+
.icen-table tbody tr.icen-row-link {
|
|
78
79
|
cursor: pointer;
|
|
79
80
|
}
|
|
80
|
-
.table tbody tr.is-selected {
|
|
81
|
-
background: var(--token-accent-subtle);
|
|
81
|
+
.icen-table tbody tr.is-selected {
|
|
82
|
+
background: var(--icen-token-accent-subtle);
|
|
82
83
|
}
|
|
83
|
-
.table tfoot td {
|
|
84
|
-
border-top: 1px solid var(--token-line);
|
|
84
|
+
.icen-table tfoot td {
|
|
85
|
+
border-top: 1px solid var(--icen-token-line);
|
|
85
86
|
border-bottom: 0;
|
|
86
87
|
font-weight: 500;
|
|
87
|
-
background: var(--token-bg-soft);
|
|
88
|
+
background: var(--icen-token-bg-soft);
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
/* 紧凑变体 */
|
|
91
|
-
.table--compact th,
|
|
92
|
-
.table--compact td {
|
|
93
|
-
padding: var(--density-space-xs) var(--density-space-sm);
|
|
92
|
+
.icen-table--compact th,
|
|
93
|
+
.icen-table--compact td {
|
|
94
|
+
padding: var(--icen-density-space-xs) var(--icen-density-space-sm);
|
|
94
95
|
}
|
|
95
|
-
.table--dense th,
|
|
96
|
-
.table--dense td {
|
|
97
|
-
padding: 4px var(--density-space-xs);
|
|
98
|
-
font-size: var(--density-font-size-sm);
|
|
96
|
+
.icen-table--dense th,
|
|
97
|
+
.icen-table--dense td {
|
|
98
|
+
padding: 4px var(--icen-density-space-xs);
|
|
99
|
+
font-size: var(--icen-density-font-size-sm);
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
/*
|
|
102
|
-
.table td.num {
|
|
103
|
-
text-align: right;
|
|
102
|
+
/* 右对齐数字列(数字是 LTR 文种,业界惯例 RTL 下保持物理右对齐——Excel/Analytics 一致) */
|
|
103
|
+
.icen-table td.icen-num {
|
|
104
|
+
text-align: right; /* guard:allow-physical 数字列物理右对齐惯例,RTL 不镜像 */
|
|
104
105
|
font-variant-numeric: tabular-nums lining-nums;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
|
-
/*
|
|
108
|
-
.table .ops {
|
|
108
|
+
/* 操作列(行内末端对齐,RTL 镜像到左侧;.icen-btn-sm 必伴 .icen-btn,无需单独列) */
|
|
109
|
+
.icen-table .icen-ops {
|
|
109
110
|
white-space: nowrap;
|
|
110
|
-
text-align:
|
|
111
|
+
text-align: end;
|
|
111
112
|
}
|
|
112
|
-
.table .ops .btn {
|
|
113
|
-
margin-
|
|
113
|
+
.icen-table .icen-ops .icen-btn {
|
|
114
|
+
margin-inline-start: var(--icen-density-space-xs);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
/* 可排序表头(使用方 data-sort 指示) */
|
|
117
|
-
.table th[data-sort] {
|
|
117
|
+
/* 可排序表头(使用方 data-icen-sort 指示) */
|
|
118
|
+
.icen-table th[data-icen-sort] {
|
|
118
119
|
cursor: pointer;
|
|
119
120
|
user-select: none;
|
|
120
121
|
}
|
|
121
|
-
.table th[data-sort]::after {
|
|
122
|
-
content: '
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
.icen-table th[data-icen-sort]::after {
|
|
123
|
+
content: '';
|
|
124
|
+
display: inline-block;
|
|
125
|
+
inline-size: 16px;
|
|
126
|
+
block-size: 16px;
|
|
127
|
+
flex: none;
|
|
128
|
+
vertical-align: middle;
|
|
129
|
+
background: currentColor;
|
|
130
|
+
mask: var(--icen-token-icon-sort) center / contain no-repeat;
|
|
131
|
+
margin-inline-start: var(--icen-density-space-xs);
|
|
132
|
+
color: var(--icen-token-text-faint);
|
|
125
133
|
opacity: 0.6;
|
|
126
134
|
}
|
|
127
|
-
.table th[data-sort='asc']::after { content: '
|
|
128
|
-
|
|
135
|
+
.icen-table th[data-icen-sort='asc']::after { content: '';
|
|
136
|
+
display: inline-block;
|
|
137
|
+
inline-size: 16px;
|
|
138
|
+
block-size: 16px;
|
|
139
|
+
flex: none;
|
|
140
|
+
vertical-align: middle;
|
|
141
|
+
background: currentColor;
|
|
142
|
+
mask: var(--icen-token-icon-arrow-up) center / contain no-repeat; opacity: 1; color: var(--icen-token-accent); }
|
|
143
|
+
.icen-table th[data-icen-sort='desc']::after { content: '';
|
|
144
|
+
display: inline-block;
|
|
145
|
+
inline-size: 16px;
|
|
146
|
+
block-size: 16px;
|
|
147
|
+
flex: none;
|
|
148
|
+
vertical-align: middle;
|
|
149
|
+
background: currentColor;
|
|
150
|
+
mask: var(--icen-token-icon-arrow-down) center / contain no-repeat; opacity: 1; color: var(--icen-token-accent); }
|
|
129
151
|
|
|
130
152
|
/* ── 斑马纹 ── */
|
|
131
|
-
.table--zebra tbody tr:nth-child(odd) {
|
|
132
|
-
background: color-mix(in srgb, var(--token-bg-soft) 50%, transparent);
|
|
153
|
+
.icen-table--zebra tbody tr:nth-child(odd) {
|
|
154
|
+
background: color-mix(in srgb, var(--icen-token-bg-soft) 50%, transparent);
|
|
133
155
|
}
|
|
134
|
-
.table--zebra tbody tr:hover {
|
|
135
|
-
background: var(--token-surface-strong);
|
|
156
|
+
.icen-table--zebra tbody tr:hover {
|
|
157
|
+
background: var(--icen-token-surface-strong);
|
|
136
158
|
}
|
|
137
159
|
|
|
138
160
|
/* ── 表格标题(caption) ── */
|
|
139
|
-
.table-caption {
|
|
140
|
-
text-align:
|
|
141
|
-
padding: var(--density-space-sm) calc(var(--density-space-md) + 2px);
|
|
142
|
-
font-size: var(--density-font-size-md);
|
|
161
|
+
.icen-table-caption {
|
|
162
|
+
text-align: start;
|
|
163
|
+
padding: var(--icen-density-space-sm) calc(var(--icen-density-space-md) + 2px);
|
|
164
|
+
font-size: var(--icen-density-font-size-md);
|
|
143
165
|
font-weight: 600;
|
|
144
|
-
color: var(--token-text);
|
|
166
|
+
color: var(--icen-token-text);
|
|
145
167
|
caption-side: top;
|
|
146
168
|
}
|
|
147
169
|
|
|
148
170
|
/* ── 首列粘滞(长表横向滚动时保持可见) ── */
|
|
149
|
-
.table--sticky-col th:first-child,
|
|
150
|
-
.table--sticky-col .col-fixed {
|
|
171
|
+
.icen-table--sticky-col th:first-child,
|
|
172
|
+
.icen-table--sticky-col .icen-col-fixed {
|
|
151
173
|
position: sticky;
|
|
152
|
-
|
|
153
|
-
z-index: calc(var(--z-raised) + 1);
|
|
154
|
-
background: var(--token-bg-soft);
|
|
155
|
-
box-shadow: 2px 0 4px color-mix(in srgb, var(--token-text) 5%, transparent);
|
|
174
|
+
inset-inline-start: 0;
|
|
175
|
+
z-index: calc(var(--icen-z-raised) + 1);
|
|
176
|
+
background: var(--icen-token-bg-soft);
|
|
177
|
+
box-shadow: 2px 0 4px color-mix(in srgb, var(--icen-token-text) 5%, transparent);
|
|
156
178
|
}
|
|
157
|
-
.table--sticky-col tbody td.col-fixed {
|
|
158
|
-
background: var(--token-surface);
|
|
179
|
+
.icen-table--sticky-col tbody td.icen-col-fixed {
|
|
180
|
+
background: var(--icen-token-surface);
|
|
159
181
|
}
|
|
160
|
-
.table--sticky-col tbody tr:hover td.col-fixed {
|
|
161
|
-
background: var(--token-surface-strong);
|
|
182
|
+
.icen-table--sticky-col tbody tr:hover td.icen-col-fixed {
|
|
183
|
+
background: var(--icen-token-surface-strong);
|
|
162
184
|
}
|
|
163
185
|
|
|
164
186
|
/* ── 展开行 ── */
|
|
165
|
-
.table .row-expand > td {
|
|
166
|
-
padding: 0 var(--density-space-md);
|
|
167
|
-
background: var(--token-bg-soft);
|
|
168
|
-
border-bottom: 1px solid var(--token-line-soft);
|
|
169
|
-
font-size: var(--density-font-size-sm);
|
|
170
|
-
color: var(--token-text-muted);
|
|
171
|
-
}
|
|
172
|
-
.table .row-expand[hidden] { display: none; }
|
|
187
|
+
.icen-table .icen-row-expand > td {
|
|
188
|
+
padding: 0 var(--icen-density-space-md);
|
|
189
|
+
background: var(--icen-token-bg-soft);
|
|
190
|
+
border-bottom: 1px solid var(--icen-token-line-soft);
|
|
191
|
+
font-size: var(--icen-density-font-size-sm);
|
|
192
|
+
color: var(--icen-token-text-muted);
|
|
193
|
+
}
|
|
194
|
+
.icen-table .icen-row-expand[hidden] { display: none; }
|
|
173
195
|
/* 展开行的内容容器(使用方可加 padding/动画) */
|
|
174
|
-
.row-expand-content {
|
|
175
|
-
padding: var(--density-space-sm) 0;
|
|
176
|
-
animation: row-expand-in var(--icen-tx-fast) var(--ease-out);
|
|
196
|
+
.icen-row-expand-content {
|
|
197
|
+
padding: var(--icen-density-space-sm) 0;
|
|
198
|
+
animation: row-expand-in var(--icen-tx-fast) var(--icen-ease-out);
|
|
177
199
|
}
|
|
178
200
|
@keyframes row-expand-in {
|
|
179
201
|
from { opacity: 0; transform: translateY(-4px); }
|
|
@@ -181,23 +203,25 @@
|
|
|
181
203
|
}
|
|
182
204
|
|
|
183
205
|
/* ── 列宽工具类 ── */
|
|
184
|
-
.table .col-narrow { width: 80px; }
|
|
185
|
-
.table .col-wide { width: 240px; }
|
|
186
|
-
.table .col-action { width: 1%; white-space: nowrap; }
|
|
206
|
+
.icen-table .icen-col-narrow { width: 80px; }
|
|
207
|
+
.icen-table .icen-col-wide { width: 240px; }
|
|
208
|
+
.icen-table .icen-col-action { width: 1%; white-space: nowrap; }
|
|
187
209
|
|
|
188
210
|
/* ── 行状态色 ── */
|
|
189
|
-
.table tbody tr.row-success { background: color-mix(in srgb, var(--token-success) 6%, transparent); }
|
|
190
|
-
.table tbody tr.row-warning { background: color-mix(in srgb, var(--token-warning) 6%, transparent); }
|
|
191
|
-
.table tbody tr.row-error { background: color-mix(in srgb, var(--token-error) 6%, transparent); }
|
|
211
|
+
.icen-table tbody tr.icen-row-success { background: color-mix(in srgb, var(--icen-token-success) 6%, transparent); }
|
|
212
|
+
.icen-table tbody tr.icen-row-warning { background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent); }
|
|
213
|
+
.icen-table tbody tr.icen-row-error { background: color-mix(in srgb, var(--icen-token-error) 6%, transparent); }
|
|
192
214
|
|
|
193
215
|
/* ── 粘滞表头阴影提示 ── */
|
|
194
|
-
.table thead th {
|
|
195
|
-
box-shadow: 0 1px 0 var(--token-line);
|
|
216
|
+
.icen-table thead th {
|
|
217
|
+
box-shadow: 0 1px 0 var(--icen-token-line);
|
|
196
218
|
}
|
|
197
219
|
|
|
198
220
|
/* ── 表头分组(rowspan/colspan 样式) ── */
|
|
199
|
-
.table th[rowspan] { vertical-align: bottom; }
|
|
221
|
+
.icen-table th[rowspan] { vertical-align: bottom; }
|
|
200
222
|
|
|
201
223
|
@media (prefers-reduced-motion: reduce) {
|
|
202
|
-
.row-expand-content { animation: none; }
|
|
224
|
+
.icen-row-expand-content { animation: none; }
|
|
225
|
+
}
|
|
226
|
+
|
|
203
227
|
}
|