@ai-matrx/design-system 0.19.12 → 0.19.13
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.
|
@@ -8345,10 +8345,7 @@ function MatrxDataTableCore({
|
|
|
8345
8345
|
...appendScrollPolicy?.mode === "scroll" && appendScrollPolicy.intentTimeoutMs !== void 0 ? { intentTimeoutMs: appendScrollPolicy.intentTimeoutMs } : {}
|
|
8346
8346
|
});
|
|
8347
8347
|
const rootRef = (0, import_react17.useRef)(null);
|
|
8348
|
-
const actionDiagnosticObserver = (0, import_react17.useRef)(null);
|
|
8349
8348
|
const setDiagnosticBoundaryRef = (0, import_react17.useCallback)((node) => {
|
|
8350
|
-
actionDiagnosticObserver.current?.disconnect();
|
|
8351
|
-
actionDiagnosticObserver.current = null;
|
|
8352
8349
|
rootRef.current = node;
|
|
8353
8350
|
if (!node) return;
|
|
8354
8351
|
node.style.setProperty("outline", "2px solid #2563eb", "important");
|
|
@@ -8366,22 +8363,6 @@ function MatrxDataTableCore({
|
|
|
8366
8363
|
boundary.style.setProperty("z-index", "2147483647", "important");
|
|
8367
8364
|
boundary.style.setProperty("box-sizing", "border-box", "important");
|
|
8368
8365
|
boundary.style.setProperty("border", "2px solid #2563eb", "important");
|
|
8369
|
-
const paintActionDiagnostics = () => {
|
|
8370
|
-
const paint = (selector, color) => {
|
|
8371
|
-
for (const element of Array.from(node.querySelectorAll(selector))) {
|
|
8372
|
-
if (element.closest("[data-matrx-table]") !== node) continue;
|
|
8373
|
-
element.style.setProperty("outline", `1px solid ${color}`, "important");
|
|
8374
|
-
element.style.setProperty("outline-offset", "-1px", "important");
|
|
8375
|
-
}
|
|
8376
|
-
};
|
|
8377
|
-
paint("[data-matrx-table-row-action-cell], [data-matrx-table-row-actions]", "#16a34a");
|
|
8378
|
-
paint("[data-matrx-table-row-actions] :is(button, a)", "#f97316");
|
|
8379
|
-
paint("[data-matrx-table-row-actions] .matrx-tap-pill", "#a855f7");
|
|
8380
|
-
paint("[data-matrx-table-row-actions] svg", "#ef4444");
|
|
8381
|
-
};
|
|
8382
|
-
paintActionDiagnostics();
|
|
8383
|
-
actionDiagnosticObserver.current = new MutationObserver(paintActionDiagnostics);
|
|
8384
|
-
actionDiagnosticObserver.current.observe(node, { childList: true, subtree: true });
|
|
8385
8366
|
}, []);
|
|
8386
8367
|
useClippedContentGuard(rootRef, {
|
|
8387
8368
|
label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
|
|
@@ -10052,7 +10033,7 @@ function MatrxDataTableCore({
|
|
|
10052
10033
|
"th",
|
|
10053
10034
|
{
|
|
10054
10035
|
"data-matrx-table-actions-column": true,
|
|
10055
|
-
className: "h-9 w-px text-right align-middle text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
10036
|
+
className: "h-9 w-px px-2 text-right align-middle text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
10056
10037
|
style: fixedUtilityWidth(fixedTableGeometry?.actionsWidth),
|
|
10057
10038
|
children: "Actions"
|
|
10058
10039
|
}
|