Removed classcat and reworked class types from string to ClassValue

This commit is contained in:
peterkogo
2025-01-29 12:26:42 +01:00
parent 55364e6298
commit 25db8d4e66
29 changed files with 66 additions and 98 deletions
@@ -7,8 +7,6 @@
</script>
<script lang="ts">
import cc from 'classcat';
import { useStore } from '$lib/store';
import { BackgroundVariant, type BackgroundProps } from './types';
@@ -49,7 +47,7 @@
</script>
<svg
class={cc(['svelte-flow__background', className])}
class={['svelte-flow__background', className]}
data-testid="svelte-flow__background"
style:--xy-background-color-props={bgColor}
style:--xy-background-pattern-color-props={patternColor}