@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.
@@ -7271,7 +7271,10 @@ function MatrxDataTableCore({
7271
7271
  ...appendQuery?.scroll
7272
7272
  });
7273
7273
  const rootRef = useRef6(null);
7274
+ const actionDiagnosticObserver = useRef6(null);
7274
7275
  const setDiagnosticBoundaryRef = useCallback4((node) => {
7276
+ actionDiagnosticObserver.current?.disconnect();
7277
+ actionDiagnosticObserver.current = null;
7275
7278
  rootRef.current = node;
7276
7279
  if (!node) return;
7277
7280
  node.style.setProperty("outline", "2px solid #2563eb", "important");
@@ -7289,6 +7292,22 @@ function MatrxDataTableCore({
7289
7292
  boundary.style.setProperty("z-index", "2147483647", "important");
7290
7293
  boundary.style.setProperty("box-sizing", "border-box", "important");
7291
7294
  boundary.style.setProperty("border", "2px solid #2563eb", "important");
7295
+ const paintActionDiagnostics = () => {
7296
+ const paint = (selector, color) => {
7297
+ for (const element of Array.from(node.querySelectorAll(selector))) {
7298
+ if (element.closest("[data-matrx-table]") !== node) continue;
7299
+ element.style.setProperty("outline", `1px solid ${color}`, "important");
7300
+ element.style.setProperty("outline-offset", "-1px", "important");
7301
+ }
7302
+ };
7303
+ paint("[data-matrx-table-row-action-cell], [data-matrx-table-row-actions]", "#16a34a");
7304
+ paint("[data-matrx-table-row-actions] :is(button, a)", "#f97316");
7305
+ paint("[data-matrx-table-row-actions] .matrx-tap-pill", "#a855f7");
7306
+ paint("[data-matrx-table-row-actions] svg", "#ef4444");
7307
+ };
7308
+ paintActionDiagnostics();
7309
+ actionDiagnosticObserver.current = new MutationObserver(paintActionDiagnostics);
7310
+ actionDiagnosticObserver.current.observe(node, { childList: true, subtree: true });
7292
7311
  }, []);
7293
7312
  useClippedContentGuard(rootRef, {
7294
7313
  label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
@@ -8546,6 +8565,7 @@ function MatrxDataTableCore({
8546
8565
  actions: showRowCopy || rowActions ? /* @__PURE__ */ jsxs26(
8547
8566
  "div",
8548
8567
  {
8568
+ "data-matrx-table-row-actions": true,
8549
8569
  className: "inline-flex items-center gap-0",
8550
8570
  onClick: (event) => event.stopPropagation(),
8551
8571
  children: [
@@ -8846,9 +8866,10 @@ function MatrxDataTableCore({
8846
8866
  columnId(col)
8847
8867
  );
8848
8868
  }),
8849
- showActionsCol && /* @__PURE__ */ jsx35("td", { className: "px-2 py-1.5 text-right align-middle lg:py-0.5", children: /* @__PURE__ */ jsxs26(
8869
+ showActionsCol && /* @__PURE__ */ jsx35("td", { "data-matrx-table-row-action-cell": true, className: "px-2 py-1.5 text-right align-middle lg:py-0.5", children: /* @__PURE__ */ jsxs26(
8850
8870
  "div",
8851
8871
  {
8872
+ "data-matrx-table-row-actions": true,
8852
8873
  className: "inline-flex items-center justify-end gap-0",
8853
8874
  onClick: (e) => e.stopPropagation(),
8854
8875
  children: [