@sia.soul/sia-react-ui 0.1.96 → 0.1.97

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/dist/core.css CHANGED
@@ -3987,7 +3987,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3987
3987
  .sia-table__empty {
3988
3988
  position: absolute;
3989
3989
  z-index: 7;
3990
- inset: var(--sia-table-header-height, 36px) 0 0;
3990
+ inset: var(--sia-table-header-height, 36px) 0 var(--sia-table-summary-height, 0px);
3991
3991
  display: grid;
3992
3992
  place-items: center;
3993
3993
  min-width: 0;
package/dist/index.cjs CHANGED
@@ -16167,7 +16167,9 @@ function TableInner(props, ref) {
16167
16167
  const rootStyle = {
16168
16168
  ...style,
16169
16169
  height: effectiveHeight,
16170
- "--sia-table-header-height": `${headerRows.length * rowHeight}px`
16170
+ "--sia-table-header-height": `${headerRows.length * rowHeight}px`,
16171
+ // 空态占位只覆盖内容区,必须给仍有业务意义的合计行留出空间。
16172
+ "--sia-table-summary-height": `${summaries.length * rowHeight}px`
16171
16173
  };
16172
16174
  const handleScroll = (0, import_react54.useCallback)((event) => {
16173
16175
  const element = event.currentTarget;
@@ -16394,6 +16396,7 @@ function TableInner(props, ref) {
16394
16396
  );
16395
16397
  }) }, depth)) }),
16396
16398
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("tbody", { children: [
16399
+ pipeline.rows.length === 0 && summaries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { colSpan: leafColumns.length, style: { height: Math.max(0, viewportHeight - (headerRows.length + summaries.length) * rowHeight), padding: 0, border: 0 } }) }) : null,
16397
16400
  topSpacer > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { colSpan: leafColumns.length, style: { height: topSpacer, padding: 0, border: 0 } }) }) : null,
16398
16401
  renderedRows.map((row, offset) => {
16399
16402
  const cached = rowElements.get(row.key);
package/dist/index.css CHANGED
@@ -3987,7 +3987,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3987
3987
  .sia-table__empty {
3988
3988
  position: absolute;
3989
3989
  z-index: 7;
3990
- inset: var(--sia-table-header-height, 36px) 0 0;
3990
+ inset: var(--sia-table-header-height, 36px) 0 var(--sia-table-summary-height, 0px);
3991
3991
  display: grid;
3992
3992
  place-items: center;
3993
3993
  min-width: 0;
package/dist/index.js CHANGED
@@ -8356,7 +8356,9 @@ function TableInner(props, ref) {
8356
8356
  const rootStyle = {
8357
8357
  ...style,
8358
8358
  height: effectiveHeight,
8359
- "--sia-table-header-height": `${headerRows.length * rowHeight}px`
8359
+ "--sia-table-header-height": `${headerRows.length * rowHeight}px`,
8360
+ // 空态占位只覆盖内容区,必须给仍有业务意义的合计行留出空间。
8361
+ "--sia-table-summary-height": `${summaries.length * rowHeight}px`
8360
8362
  };
8361
8363
  const handleScroll = useCallback2((event) => {
8362
8364
  const element = event.currentTarget;
@@ -8583,6 +8585,7 @@ function TableInner(props, ref) {
8583
8585
  );
8584
8586
  }) }, depth)) }),
8585
8587
  /* @__PURE__ */ jsxs21("tbody", { children: [
8588
+ pipeline.rows.length === 0 && summaries.length > 0 ? /* @__PURE__ */ jsx23("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx23("td", { colSpan: leafColumns.length, style: { height: Math.max(0, viewportHeight - (headerRows.length + summaries.length) * rowHeight), padding: 0, border: 0 } }) }) : null,
8586
8589
  topSpacer > 0 ? /* @__PURE__ */ jsx23("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx23("td", { colSpan: leafColumns.length, style: { height: topSpacer, padding: 0, border: 0 } }) }) : null,
8587
8590
  renderedRows.map((row, offset) => {
8588
8591
  const cached = rowElements.get(row.key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.96",
3
+ "version": "0.1.97",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",