@ai-matrx/design-system 0.19.11 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/content-transfer/alchemy.svg +1 -1
- package/dist/content-transfer/copy-transform.svg +1 -1
- package/dist/content-transfer/icon.cjs +2 -2
- package/dist/content-transfer/icon.cjs.map +1 -1
- package/dist/content-transfer/icon.js +2 -2
- package/dist/content-transfer/icon.js.map +1 -1
- package/dist/content-transfer/portal.svg +1 -1
- package/dist/content-transfer.cjs +3 -3
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +20 -3
- package/dist/content-transfer.js +3 -3
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +3 -3
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +3 -3
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +3 -3
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +3 -3
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +4 -23
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +4 -23
- package/dist/data-table/index.js.map +1 -1
- package/dist/tap-target.css +9 -2
- package/package.json +1 -1
package/dist/data-table/index.js
CHANGED
|
@@ -2667,15 +2667,15 @@ var ALCHEMY_GLYPH_PATHS = {
|
|
|
2667
2667
|
portal: ["M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M8 12h8m-3-3 3 3-3 3"],
|
|
2668
2668
|
"copy-transform": ["M8 7V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v8M13 21H5a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v3m-5 4h11m-3-3 3 3-3 3"]
|
|
2669
2669
|
};
|
|
2670
|
-
var ALCHEMY_GLYPH_VIEWBOX = { portal: "
|
|
2671
|
-
var svg = (paths, viewBox) => `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
2670
|
+
var ALCHEMY_GLYPH_VIEWBOX = { portal: "0 0 24 24", "copy-transform": "0 0 24 24" };
|
|
2671
|
+
var svg = (paths, viewBox) => `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="${viewBox}" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">${paths.map((d) => `<path d="${d}"/>`).join("")}</svg>`;
|
|
2672
2672
|
var ALCHEMY_GLYPH_SVG = svg(ALCHEMY_GLYPH_PATHS.portal, ALCHEMY_GLYPH_VIEWBOX.portal);
|
|
2673
2673
|
var ALCHEMY_COPY_TRANSFORM_SVG = svg(ALCHEMY_GLYPH_PATHS["copy-transform"], ALCHEMY_GLYPH_VIEWBOX["copy-transform"]);
|
|
2674
2674
|
|
|
2675
2675
|
// src/content-transfer/index.tsx
|
|
2676
2676
|
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2677
2677
|
function AlchemyGlyph({ icon = "portal", ...props }) {
|
|
2678
|
-
return /* @__PURE__ */ jsx23("svg", { width: "
|
|
2678
|
+
return /* @__PURE__ */ jsx23("svg", { width: "18", height: "18", viewBox: ALCHEMY_GLYPH_VIEWBOX[icon], fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...props, children: ALCHEMY_GLYPH_PATHS[icon].map((d) => /* @__PURE__ */ jsx23("path", { d }, d)) });
|
|
2679
2679
|
}
|
|
2680
2680
|
var CapabilityContext = React13.createContext({});
|
|
2681
2681
|
var useContentTransferCapabilities = () => React13.useContext(CapabilityContext);
|
|
@@ -8361,10 +8361,7 @@ function MatrxDataTableCore({
|
|
|
8361
8361
|
...appendScrollPolicy?.mode === "scroll" && appendScrollPolicy.intentTimeoutMs !== void 0 ? { intentTimeoutMs: appendScrollPolicy.intentTimeoutMs } : {}
|
|
8362
8362
|
});
|
|
8363
8363
|
const rootRef = useRef9(null);
|
|
8364
|
-
const actionDiagnosticObserver = useRef9(null);
|
|
8365
8364
|
const setDiagnosticBoundaryRef = useCallback5((node) => {
|
|
8366
|
-
actionDiagnosticObserver.current?.disconnect();
|
|
8367
|
-
actionDiagnosticObserver.current = null;
|
|
8368
8365
|
rootRef.current = node;
|
|
8369
8366
|
if (!node) return;
|
|
8370
8367
|
node.style.setProperty("outline", "2px solid #2563eb", "important");
|
|
@@ -8382,22 +8379,6 @@ function MatrxDataTableCore({
|
|
|
8382
8379
|
boundary.style.setProperty("z-index", "2147483647", "important");
|
|
8383
8380
|
boundary.style.setProperty("box-sizing", "border-box", "important");
|
|
8384
8381
|
boundary.style.setProperty("border", "2px solid #2563eb", "important");
|
|
8385
|
-
const paintActionDiagnostics = () => {
|
|
8386
|
-
const paint = (selector, color) => {
|
|
8387
|
-
for (const element of Array.from(node.querySelectorAll(selector))) {
|
|
8388
|
-
if (element.closest("[data-matrx-table]") !== node) continue;
|
|
8389
|
-
element.style.setProperty("outline", `1px solid ${color}`, "important");
|
|
8390
|
-
element.style.setProperty("outline-offset", "-1px", "important");
|
|
8391
|
-
}
|
|
8392
|
-
};
|
|
8393
|
-
paint("[data-matrx-table-row-action-cell], [data-matrx-table-row-actions]", "#16a34a");
|
|
8394
|
-
paint("[data-matrx-table-row-actions] :is(button, a)", "#f97316");
|
|
8395
|
-
paint("[data-matrx-table-row-actions] .matrx-tap-pill", "#a855f7");
|
|
8396
|
-
paint("[data-matrx-table-row-actions] svg", "#ef4444");
|
|
8397
|
-
};
|
|
8398
|
-
paintActionDiagnostics();
|
|
8399
|
-
actionDiagnosticObserver.current = new MutationObserver(paintActionDiagnostics);
|
|
8400
|
-
actionDiagnosticObserver.current.observe(node, { childList: true, subtree: true });
|
|
8401
8382
|
}, []);
|
|
8402
8383
|
useClippedContentGuard(rootRef, {
|
|
8403
8384
|
label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
|
|
@@ -10068,7 +10049,7 @@ function MatrxDataTableCore({
|
|
|
10068
10049
|
"th",
|
|
10069
10050
|
{
|
|
10070
10051
|
"data-matrx-table-actions-column": true,
|
|
10071
|
-
className: "h-9 w-px text-right align-middle text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
10052
|
+
className: "h-9 w-px px-2 text-right align-middle text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
10072
10053
|
style: fixedUtilityWidth(fixedTableGeometry?.actionsWidth),
|
|
10073
10054
|
children: "Actions"
|
|
10074
10055
|
}
|