@hitachivantara/uikit-react-lab
Version:
Contributed React components for the NEXT UI Kit.
32 lines (31 loc) • 1.01 kB
JavaScript
import { jsx } from "react/jsx-runtime";
import { MiniMap } from "reactflow";
import { getColor } from "@hitachivantara/uikit-styles";
import { useClasses } from "./Minimap.styles.js";
import { staticClasses } from "./Minimap.styles.js";
const HvFlowMinimap = ({
nodeColor = "border",
maskColor = "borderSubtle",
maskStrokeColor = "borderSubtle",
nodeStrokeColor = "border",
classes: classesProp,
className,
...others
}) => {
const { classes, cx } = useClasses(classesProp);
return /* @__PURE__ */ jsx(
MiniMap,
{
className: cx(classes.root, className),
nodeColor: typeof nodeColor === "string" ? getColor(nodeColor, "border") : nodeColor,
nodeStrokeColor: typeof nodeStrokeColor === "string" ? getColor(nodeStrokeColor, "border") : nodeStrokeColor,
maskColor: getColor(maskColor, "borderSubtle"),
maskStrokeColor: getColor(maskStrokeColor, "borderSubtle"),
...others
}
);
};
export {
HvFlowMinimap,
staticClasses as flowMinimapClasses
};