97a3c84625
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>
30 lines
797 B
TypeScript
30 lines
797 B
TypeScript
import '@mantine/core/styles.css'
|
|
import '@mantine/charts/styles.css'
|
|
import '@mantine/notifications/styles.css'
|
|
|
|
import * as React from 'react'
|
|
import { MantineProvider, type MantineThemeOverride, type MantineColorScheme } from '@mantine/core'
|
|
import { Notifications } from '@mantine/notifications'
|
|
|
|
interface FnMantineProviderProps {
|
|
children: React.ReactNode
|
|
theme?: MantineThemeOverride
|
|
defaultColorScheme?: MantineColorScheme
|
|
}
|
|
|
|
function FnMantineProvider({
|
|
children,
|
|
theme,
|
|
defaultColorScheme = 'dark',
|
|
}: FnMantineProviderProps) {
|
|
return (
|
|
<MantineProvider theme={theme} defaultColorScheme={defaultColorScheme}>
|
|
<Notifications position="top-right" />
|
|
{children}
|
|
</MantineProvider>
|
|
)
|
|
}
|
|
|
|
export { FnMantineProvider }
|
|
export type { FnMantineProviderProps }
|