@ai-matrx/design-system 0.18.18 → 0.18.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.18.20
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.18.19..npm/design-system/v0.18.20 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.18.19
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/design-system/v0.18.18..npm/design-system/v0.18.19 -- apps/shared/design-system`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.18.18
4
16
 
5
17
  Ships the canonical MatrxDataTable diagnostic boundary after correcting the
@@ -7265,11 +7265,43 @@ function MatrxDataTableCore({
7265
7265
  ...appendQuery?.scroll
7266
7266
  });
7267
7267
  const rootRef = (0, import_react13.useRef)(null);
7268
+ const actionDiagnosticObserver = (0, import_react13.useRef)(null);
7268
7269
  const setDiagnosticBoundaryRef = (0, import_react13.useCallback)((node) => {
7270
+ actionDiagnosticObserver.current?.disconnect();
7271
+ actionDiagnosticObserver.current = null;
7269
7272
  rootRef.current = node;
7270
7273
  if (!node) return;
7271
7274
  node.style.setProperty("outline", "2px solid #2563eb", "important");
7272
7275
  node.style.setProperty("outline-offset", "-2px", "important");
7276
+ node.style.setProperty("isolation", "isolate", "important");
7277
+ const position = window.getComputedStyle(node).position;
7278
+ if (position === "" || position === "static") {
7279
+ node.style.setProperty("position", "relative", "important");
7280
+ }
7281
+ const boundary = node.querySelector(":scope > [data-matrx-table-boundary]");
7282
+ if (!boundary) return;
7283
+ boundary.style.setProperty("position", "absolute", "important");
7284
+ boundary.style.setProperty("inset", "0", "important");
7285
+ boundary.style.setProperty("pointer-events", "none", "important");
7286
+ boundary.style.setProperty("z-index", "2147483647", "important");
7287
+ boundary.style.setProperty("box-sizing", "border-box", "important");
7288
+ boundary.style.setProperty("border", "2px solid #2563eb", "important");
7289
+ const paintActionDiagnostics = () => {
7290
+ const paint = (selector, color) => {
7291
+ for (const element of Array.from(node.querySelectorAll(selector))) {
7292
+ if (element.closest("[data-matrx-table]") !== node) continue;
7293
+ element.style.setProperty("outline", `1px solid ${color}`, "important");
7294
+ element.style.setProperty("outline-offset", "-1px", "important");
7295
+ }
7296
+ };
7297
+ paint("[data-matrx-table-row-action-cell], [data-matrx-table-row-actions]", "#16a34a");
7298
+ paint("[data-matrx-table-row-actions] :is(button, a)", "#f97316");
7299
+ paint("[data-matrx-table-row-actions] .matrx-tap-pill", "#a855f7");
7300
+ paint("[data-matrx-table-row-actions] svg", "#ef4444");
7301
+ };
7302
+ paintActionDiagnostics();
7303
+ actionDiagnosticObserver.current = new MutationObserver(paintActionDiagnostics);
7304
+ actionDiagnosticObserver.current.observe(node, { childList: true, subtree: true });
7273
7305
  }, []);
7274
7306
  useClippedContentGuard(rootRef, {
7275
7307
  label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
@@ -8153,6 +8185,7 @@ function MatrxDataTableCore({
8153
8185
  className
8154
8186
  ),
8155
8187
  children: [
8188
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { "aria-hidden": "true", "data-matrx-table-boundary": true }),
8156
8189
  notice,
8157
8190
  savedViewError ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { role: "alert", className: "shrink-0 text-xs text-destructive", children: savedViewError }) : null,
8158
8191
  toolbarActionError ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { role: "alert", className: "shrink-0 text-xs text-destructive", children: toolbarActionError }) : null,
@@ -8526,6 +8559,7 @@ function MatrxDataTableCore({
8526
8559
  actions: showRowCopy || rowActions ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
8527
8560
  "div",
8528
8561
  {
8562
+ "data-matrx-table-row-actions": true,
8529
8563
  className: "inline-flex items-center gap-0",
8530
8564
  onClick: (event) => event.stopPropagation(),
8531
8565
  children: [
@@ -8826,9 +8860,10 @@ function MatrxDataTableCore({
8826
8860
  columnId(col)
8827
8861
  );
8828
8862
  }),
8829
- showActionsCol && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "px-2 py-1.5 text-right align-middle lg:py-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
8863
+ showActionsCol && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { "data-matrx-table-row-action-cell": true, className: "px-2 py-1.5 text-right align-middle lg:py-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
8830
8864
  "div",
8831
8865
  {
8866
+ "data-matrx-table-row-actions": true,
8832
8867
  className: "inline-flex items-center justify-end gap-0",
8833
8868
  onClick: (e) => e.stopPropagation(),
8834
8869
  children: [