Files
egutierrez 97a3c84625 refactor: migrate frontend from shadcn/Tailwind to Mantine v9
Reescribe todos los componentes UI para usar Mantine v9 en lugar de shadcn/Tailwind.
Elimina cn(), CVA, components.json, theme_provider custom y globals.css con Tailwind.
Añade 25+ componentes nuevos (AppShell, AuthForm, DatePickerInput, Dropzone, etc.)
y MantineProvider como wrapper estándar del sistema de temas.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 23:46:44 +02:00

49 lines
820 B
TypeScript

import { NumberInput } from '@mantine/core'
interface FnNumberInputProps {
value?: number | string
onChange?: (value: number | string) => void
min?: number
max?: number
step?: number
label?: string
description?: string
error?: string
placeholder?: string
prefix?: string
suffix?: string
}
function FnNumberInput({
value,
onChange,
min,
max,
step,
label,
description,
error,
placeholder,
prefix,
suffix,
}: FnNumberInputProps) {
return (
<NumberInput
value={value}
onChange={onChange}
min={min}
max={max}
step={step}
label={label}
description={description}
error={error}
placeholder={placeholder}
prefix={prefix}
suffix={suffix}
/>
)
}
export { FnNumberInput }
export type { FnNumberInputProps }