feat: replace clsx with cn util

This commit is contained in:
Ilia Mashkov
2026-04-23 09:48:32 +03:00
parent cffebf05e3
commit 54087b7b2a
34 changed files with 91 additions and 92 deletions
@@ -4,7 +4,7 @@
1px red vertical rule with square handles at top and bottom.
-->
<script lang="ts">
import clsx from 'clsx';
import { cn } from '$shared/lib';
import { cubicOut } from 'svelte/easing';
import { fade } from 'svelte/transition';
@@ -31,7 +31,7 @@ let { sliderPos, isDragging }: Props = $props();
>
<!-- Top handle -->
<div
class={clsx(
class={cn(
'w-5 h-5 md:w-6 md:h-6',
'-ml-2.5 md:-ml-3',
'mt-2 md:mt-4',
@@ -47,7 +47,7 @@ let { sliderPos, isDragging }: Props = $props();
<!-- Bottom handle -->
<div
class={clsx(
class={cn(
'w-5 h-5 md:w-6 md:h-6',
'-ml-2.5 md:-ml-3',
'mb-2 md:mb-4',