refactor(styling): dont inject styles

This commit is contained in:
moklick
2022-08-09 18:42:12 +02:00
parent a541eb99a5
commit 94463cd0be
42 changed files with 1481 additions and 524 deletions
+16
View File
@@ -0,0 +1,16 @@
# @react-flow/bundle
Bundles:
* @react-flow/core
* @react-flow/background
* @react-flow/controls
* @react-flow/minimap
## Installation
```sh
npm install @react-flow/bundle
```
+29
View File
@@ -0,0 +1,29 @@
{
"name": "@react-flow/bundle",
"version": "11.0.0",
"description": "The bundled React Flow package that comes with all the essentials.",
"main": "dist/react-flow-bundle.cjs.js",
"module": "dist/react-flow-bundle.esm.js",
"license": "MIT",
"scripts": {
"build": "postcss src/*.css --config ../../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",
"react-dom": ">=18"
},
"devDependencies": {
"autoprefixer": "^10.4.8",
"postcss": "^8.4.14",
"postcss-cli": "^10.0.0",
"postcss-combine-duplicated-selectors": "^10.0.3",
"postcss-import": "^14.1.0",
"postcss-nested": "^5.0.6"
}
}
+3
View File
@@ -0,0 +1,3 @@
@import '../../core/src/styles/base.css';
@import '../../controls/src/style.css';
@import '../../minimap/src/style.css';
+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';
+3
View File
@@ -0,0 +1,3 @@
@import '../../core/src/styles/style.css';
@import '../../controls/src/style.css';
@import '../../minimap/src/style.css';