@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.
@@ -7271,11 +7271,43 @@ 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");
7278
7281
  node.style.setProperty("outline-offset", "-2px", "important");
7282
+ node.style.setProperty("isolation", "isolate", "important");
7283
+ const position = window.getComputedStyle(node).position;
7284
+ if (position === "" || position === "static") {
7285
+ node.style.setProperty("position", "relative", "important");
7286
+ }
7287
+ const boundary = node.querySelector(":scope > [data-matrx-table-boundary]");
7288
+ if (!boundary) return;
7289
+ boundary.style.setProperty("position", "absolute", "important");
7290
+ boundary.style.setProperty("inset", "0", "important");
7291
+ boundary.style.setProperty("pointer-events", "none", "important");
7292
+ boundary.style.setProperty("z-index", "2147483647", "important");
7293
+ boundary.style.setProperty("box-sizing", "border-box", "important");
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 });
7279
7311
  }, []);
7280
7312
  useClippedContentGuard(rootRef, {
7281
7313
  label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
@@ -8159,6 +8191,7 @@ function MatrxDataTableCore({
8159
8191
  className
8160
8192
  ),
8161
8193
  children: [
8194
+ /* @__PURE__ */ jsx35("span", { "aria-hidden": "true", "data-matrx-table-boundary": true }),
8162
8195
  notice,
8163
8196
  savedViewError ? /* @__PURE__ */ jsx35("p", { role: "alert", className: "shrink-0 text-xs text-destructive", children: savedViewError }) : null,
8164
8197
  toolbarActionError ? /* @__PURE__ */ jsx35("p", { role: "alert", className: "shrink-0 text-xs text-destructive", children: toolbarActionError }) : null,
@@ -8532,6 +8565,7 @@ function MatrxDataTableCore({
8532
8565
  actions: showRowCopy || rowActions ? /* @__PURE__ */ jsxs26(
8533
8566
  "div",
8534
8567
  {
8568
+ "data-matrx-table-row-actions": true,
8535
8569
  className: "inline-flex items-center gap-0",
8536
8570
  onClick: (event) => event.stopPropagation(),
8537
8571
  children: [
@@ -8832,9 +8866,10 @@ function MatrxDataTableCore({
8832
8866
  columnId(col)
8833
8867
  );
8834
8868
  }),
8835
- 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(
8836
8870
  "div",
8837
8871
  {
8872
+ "data-matrx-table-row-actions": true,
8838
8873
  className: "inline-flex items-center justify-end gap-0",
8839
8874
  onClick: (e) => e.stopPropagation(),
8840
8875
  children: [