@ai-matrx/design-system 0.49.11 → 0.49.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.49.12
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.49.11..npm/design-system/v0.49.12 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.49.11
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -42719,7 +42719,7 @@ function ColumnHeaderCell({
42719
42719
  "rounded p-0.5 transition-colors",
42720
42720
  filterActive ? "text-primary hover:text-primary/80" : "text-muted-foreground/40 hover:text-muted-foreground"
42721
42721
  ),
42722
- children: filterKind ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : sortable ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ArrowUpDown, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronDown, { className: "h-3 w-3" })
42722
+ children: filterKind || sortable ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronDown, { className: "h-3 w-3" })
42723
42723
  }
42724
42724
  ) }) }),
42725
42725
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: menuLabel })
@@ -50309,10 +50309,11 @@ function MatrxDataTableCore(coreProps) {
50309
50309
  setFacetState({});
50310
50310
  facetRequestRef.current = /* @__PURE__ */ new Map();
50311
50311
  }, [facetsEnabled, data, searchValue]);
50312
+ const totalIsKnown = !isLoading && !readView.failure;
50312
50313
  (0, import_react21.useEffect)(() => {
50313
- if (!controlledQuery || controlledQuery.state.page === safePage) return;
50314
+ if (!controlledQuery || !totalIsKnown || controlledQuery.state.page === safePage) return;
50314
50315
  emitControlledQueryChange({ page: safePage });
50315
- }, [controlledQuery, emitControlledQueryChange, safePage]);
50316
+ }, [controlledQuery, emitControlledQueryChange, safePage, totalIsKnown]);
50316
50317
  const selectedRow = (0, import_react21.useMemo)(() => {
50317
50318
  if (!selectedId) return null;
50318
50319
  return data.find((r) => getRowId(r) === selectedId) ?? null;