@ai-matrx/design-system 0.20.18 → 0.20.20

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.20
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.20.19..npm/design-system/v0.20.20 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.20.19
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/design-system/v0.20.18..npm/design-system/v0.20.19 -- apps/shared/design-system`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.20.18
4
16
 
5
17
  Republish the compact table footer after aligning its forcing-function tests
@@ -9309,6 +9309,12 @@ function MatrxDataTableCore({
9309
9309
  }
9310
9310
  resetToolbarFacets(toolbar?.facets);
9311
9311
  };
9312
+ const renderedEmptyState = remoteQuery === null && data.length > 0 && hasActiveFilters ? {
9313
+ title: "No matching rows",
9314
+ description: "No rows match the current search or filters.",
9315
+ action: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { type: "button", variant: "outline", size: "sm", onClick: clearAllFilters, children: "Clear filters" }),
9316
+ icon: void 0
9317
+ } : emptyState;
9312
9318
  const commitCell = (rowId, field, next) => {
9313
9319
  const scope = editScopeKey;
9314
9320
  const nextEdits = { [rowId]: { [field]: next } };
@@ -10223,10 +10229,10 @@ function MatrxDataTableCore({
10223
10229
  },
10224
10230
  `mobile-card-sk-${index}`
10225
10231
  )) : paginated.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex min-h-48 flex-1 items-center justify-center px-4 py-12 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex max-w-sm flex-col items-center gap-2", children: [
10226
- emptyState?.icon,
10227
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-sm font-medium text-foreground", children: emptyState?.title ?? "No rows" }),
10228
- emptyState?.description ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-xs text-muted-foreground", children: emptyState.description }) : null,
10229
- emptyState?.action
10232
+ renderedEmptyState?.icon,
10233
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-sm font-medium text-foreground", children: renderedEmptyState?.title ?? "No rows" }),
10234
+ renderedEmptyState?.description ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-xs text-muted-foreground", children: renderedEmptyState.description }) : null,
10235
+ renderedEmptyState?.action
10230
10236
  ] }) }) : paginated.map((row, index) => {
10231
10237
  const id = getRowId(row);
10232
10238
  const displayRow = applyRowEdits(row, edits[id]);
@@ -10514,10 +10520,10 @@ function MatrxDataTableCore({
10514
10520
  colSpan: visibleColumns.length + leadingCols + (showActionsCol ? 1 : 0),
10515
10521
  className: "px-4 py-12 text-center",
10516
10522
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mx-auto flex max-w-sm flex-col items-center gap-2", children: [
10517
- emptyState?.icon,
10518
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-sm font-medium text-foreground", children: emptyState?.title ?? "No rows" }),
10519
- emptyState?.description ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-xs text-muted-foreground", children: emptyState.description }) : null,
10520
- emptyState?.action
10523
+ renderedEmptyState?.icon,
10524
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-sm font-medium text-foreground", children: renderedEmptyState?.title ?? "No rows" }),
10525
+ renderedEmptyState?.description ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-xs text-muted-foreground", children: renderedEmptyState.description }) : null,
10526
+ renderedEmptyState?.action
10521
10527
  ] })
10522
10528
  }
10523
10529
  ) }) : paginated.map((row, index) => {