feat(styles): one stylesheet source for react and svelte (#3350)

* feat(styles): create stylesheets for react and svelte based on one source

* refactor(styling): cleanup

* refactor(postcss): share a config

* refactor(postcss): replace env hack with env file
This commit is contained in:
Moritz Klack
2023-08-24 14:02:57 +02:00
committed by GitHub
parent d2c23c5149
commit bd922889b4
47 changed files with 1422 additions and 962 deletions
@@ -12,8 +12,10 @@
type EdgeTypes
} from '../../lib/index';
import { CustomNode } from './CustomNode';
import { CustomEdge } from './CustomEdge';
import CustomNode from './CustomNode.svelte';
import CustomEdge from './CustomEdge.svelte';
import '../../styles/style.css';
const nodeTypes: NodeTypes = {
custom: CustomNode
@@ -5,7 +5,7 @@
useSvelteFlow,
type EdgeProps,
getBezierPath
} from '../../../lib/index';
} from '../../lib/index';
type $$Props = EdgeProps;
@@ -1 +0,0 @@
export { default as CustomEdge } from './Custom.svelte';
@@ -1,5 +1,5 @@
<script lang="ts">
import { Handle, Position, type NodeProps } from '../../../lib/index';
import { Handle, Position, type NodeProps } from '../../lib/index';
type $$Props = NodeProps;
@@ -1 +0,0 @@
export { default as CustomNode } from './Custom.svelte';