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
+28
View File
@@ -0,0 +1,28 @@
{
"name": "@react-flow/renderer",
"version": "11.0.0",
"description": "The main React Flow package that comes with all the essentials.",
"main": "dist/react-flow-renderer.cjs.js",
"module": "dist/react-flow-renderer.esm.js",
"license": "MIT",
"scripts": {
"build": "postcss src/*.css --config ../../tooling/postcss.config.json --dir dist"
},
"dependencies": {
"@react-flow/background": "11.0.0",
"@react-flow/controls": "11.0.0",
"@react-flow/core": "11.0.0",
"@react-flow/minimap": "11.0.0"
},
"peerDependencies": {
"react": "^18.1.0",
"react-dom": ">=18"
},
"devDependencies": {
"autoprefixer": "^10.4.8",
"postcss": "^8.4.14",
"postcss-cli": "^10.0.0",
"postcss-import": "^14.1.0",
"postcss-nested": "^5.0.6"
}
}
+4
View File
@@ -0,0 +1,4 @@
export * from '@react-flow/core';
export * from '@react-flow/minimap';
export * from '@react-flow/controls';
export * from '@react-flow/background';
+1
View File
@@ -0,0 +1 @@
@import '@react-flow/core/dist/theme-default.css';