@ai-matrx/design-system 0.18.19 → 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,11 @@
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
+
3
9
  ## 0.18.19
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -7265,7 +7265,10 @@ 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");
@@ -7283,6 +7286,22 @@ function MatrxDataTableCore({
7283
7286
  boundary.style.setProperty("z-index", "2147483647", "important");
7284
7287
  boundary.style.setProperty("box-sizing", "border-box", "important");
7285
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 });
7286
7305
  }, []);
7287
7306
  useClippedContentGuard(rootRef, {
7288
7307
  label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
@@ -8540,6 +8559,7 @@ function MatrxDataTableCore({
8540
8559
  actions: showRowCopy || rowActions ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
8541
8560
  "div",
8542
8561
  {
8562
+ "data-matrx-table-row-actions": true,
8543
8563
  className: "inline-flex items-center gap-0",
8544
8564
  onClick: (event) => event.stopPropagation(),
8545
8565
  children: [
@@ -8840,9 +8860,10 @@ function MatrxDataTableCore({
8840
8860
  columnId(col)
8841
8861
  );
8842
8862
  }),
8843
- 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)(
8844
8864
  "div",
8845
8865
  {
8866
+ "data-matrx-table-row-actions": true,
8846
8867
  className: "inline-flex items-center justify-end gap-0",
8847
8868
  onClick: (e) => e.stopPropagation(),
8848
8869
  children: [