Files
fn_registry/frontend/functions/ui/input.tsx
T
egutierrez 2d108c295a 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

58 lines
1.1 KiB
TypeScript

import * as React from 'react'
import { TextInput, Box } from '@mantine/core'
function Input({
className,
type,
...props
}: React.ComponentProps<typeof TextInput> & { type?: string }) {
return (
<TextInput
type={type}
data-slot="input"
size="sm"
className={className}
{...props}
/>
)
}
interface InputGroupProps {
children: React.ReactNode
className?: string
}
function InputGroup({ children, className }: InputGroupProps) {
return (
<Box data-slot="input-group" className={className}>
{children}
</Box>
)
}
interface InputIconProps {
children: React.ReactNode
position: 'start' | 'end'
className?: string
}
function InputIcon({ children, position, className }: InputIconProps) {
return (
<Box
data-slot={`input-icon-${position}`}
component="span"
className={className}
style={{
display: 'inline-flex',
alignItems: 'center',
pointerEvents: 'none',
}}
>
{children}
</Box>
)
}
export { Input, InputGroup, InputIcon }
export type { InputGroupProps, InputIconProps }