Refactor: CSS handling (#2344)

* refactor(css): only load base styles, add css task, cleanup exports
* style(base): add edge label bg
* refactor(css): use css-utils
* feat(core): add Panel component
* refactor(background): cleanup
* refactor(css-handling): cleanup
This commit is contained in:
Moritz Klack
2022-08-05 18:36:32 +02:00
committed by GitHub
parent af28431990
commit 97c22ace71
89 changed files with 1853 additions and 20334 deletions
+5 -6
View File
@@ -1,6 +1,8 @@
import React, { useCallback, MouseEvent, useEffect } from 'react';
import ReactFlow, {
import {
Background,
MiniMap,
ReactFlow,
Node,
addEdge,
useReactFlow,
@@ -9,10 +11,7 @@ import ReactFlow, {
Edge,
useNodesState,
useEdgesState,
} from '@react-flow/core';
import Background from '@react-flow/background';
import MiniMap from '@react-flow/minimap';
} from '@react-flow/renderer';
const initialNodes: Node[] = [
{