рефакторинг

This commit is contained in:
2025-07-21 17:07:03 +03:00
parent 84f0c9c6aa
commit 5737e37386
35 changed files with 526 additions and 579 deletions

View File

@@ -1,4 +1,4 @@
import { Input } from '@/components/ui/input'
import { Input } from '@/component/ui/input'
import { ElementDefinition } from '@/lib/element-registry'
import { Hash } from 'lucide-react'
@@ -40,7 +40,7 @@ export const numberDefinition: ElementDefinition<NumberConfig, number> = {
type="number"
placeholder={config.placeholder || '0'}
value={value || ''}
onChange={(e) => onChange?.(parseFloat(e.target.value) || 0)}
onChange={e => onChange?.(parseFloat(e.target.value) || 0)}
required={config.required}
/>
),