658dfbb7d9
HD-08 scope, against heroui ce90ea3 table sources and their
react-aria/react-stately dependencies:
- TableBody empty state now spans every real leaf column by default
(self-registered TableColumns — selection and wrapper-rendered ones
included — reactively following column changes), explicit colspan
still wins, and the vnode-level empty detection keeps avoiding
unknown-component setup/render probing
- sorting keeps one activation per click/Enter/Space (single sort path
via the column) while the baseline focus ring returns: the trigger
button keeps keyboard focus and forwards its real :focus-visible
state to the th's existing [data-focus-visible] hook, so the inset
ring lands on the column header like the pinned source and the UA
outline is suppressed only inside a column; aria-sort="none" on
sortable unsorted columns matches useTableColumnHeader and stays
- defaultWidth="Nfr" distributes the remaining width by weight
instead of silently becoming auto: widths.ts ports react-stately's
calculateColumnSizes (static px/% first, fr flex-grow sharing,
min/max violation freezing, cascade rounding); fr mode locks
table-layout: fixed for exact geometry, re-shares on container
resize, freezes dragged columns to their pixel width and keeps
geometry (with flipped drag direction) in RTL; unmeasured
environments keep native widths
- .table__cell's text-start/font-normal verified to block caller
inheritance and narrowed to th.hv-table__cell { inherit }, keeping
the baseline td row-header typography while ancestor align/weight
cascade into cells again; th scope=row, corner selectors and the
resizer z-index fix are untouched
- tests/fixtures/table-layout.vue (playground) drives the real-browser
geometry/drag/RTL/theme verification; m35-m36 contract pins the two
new CSS markers in the final tarball
Full suite 111 files / 1657 tests, typecheck, build:docs and the
m35-m36 + handbook-styles tarball contracts pass.
独立客户端产物验收
统一入口,参数只选受影响的契约:
node scripts/check-package.mjs b02-pickers
node scripts/check-package.mjs calendar date-field select --offline
入口先构建库/样式,在工作区外新建临时消费者,打包并安装最终tarball,检查所选公共导出/CSS/变体,再运行相应*-contract.ts的strict NodeNext/bundler正反例。不会启动服务或执行SSR/水合。NodeNext只是类型解析模式。支持的ID见client-checks.json;无效ID会在构建前失败。
一次选择多个受影响ID,共享同次构建/安装;不要为每组件手动复制一套安装流程。默认消费者保留供检查,路径打印在日志中,不是新项目或长期工作目录。--offline仅在所需依赖已缓存时使用,安装失败不是验收通过。
契约与浏览器
client-checks.json:导出、CSS标记、暂不公开组件的边界;check-client.mjs:共用检查和少数变体断言。*-contract.ts:公开Props/事件/插槽类型正反例;@ts-expect-error出现unused必须修复,不能删反例。源码typecheck不能替代发布类型。- B02浏览器夹具和B01浏览器夹具保留。选择b02-pickers时,入口会把浏览器文件放入独立消费者;按输出命令显式启动,验可见/点击/焦点等核心路径。未启动时不能声称已验浏览器。
- 新公共组件在已有数据与契约上增量扩展,不再新增consume-某批次.mjs脚本或手写另一套消费者流程。
旧15份consume脚本已移除;客户端导出/CSS/变体检查统一保留,服务端HTML/无document运行等断言不再维护。SSR/水合/Nuxt集成不支持。逐像素自动对比、完整读屏矩阵、真机矩阵暂不投入;基础键盘/可访问性与重点浏览器交互仍验证。