UNPKG

@hitachivantara/uikit-react-lab

Version:

Contributed React components to UI Kit by the community.

19 lines (18 loc) 912 B
import { useClasses } from "./Minimap.styles.js"; import { getColor } from "@hitachivantara/uikit-styles"; import { jsx } from "react/jsx-runtime"; import { MiniMap } from "reactflow"; //#region src/Flow/Minimap/Minimap.tsx var 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 }); }; //#endregion export { HvFlowMinimap };