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:
@@ -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
|
||||
|
||||
+1
-1
@@ -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
-1
@@ -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';
|
||||
Reference in New Issue
Block a user