code: registry,nextjs,index (2 files)

This commit is contained in:
Richard Ward
2025-12-30 13:57:13 +00:00
parent 2b63cd84f0
commit b316d23b55
2 changed files with 21 additions and 1 deletions

View File

@@ -72,6 +72,11 @@ export {
InputBase,
FilledInput,
OutlinedInput,
FormField,
DatePicker,
TimePicker,
ColorPicker,
FileUpload,
} from './fakemui/inputs'
// Surfaces

View File

@@ -88,7 +88,11 @@ import {
Popover,
} from '@/fakemui'
import type { ComponentType } from 'react'
import type { ComponentType, FC } from 'react'
// Type helper to cast components to generic LuaComponentProps
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type AnyComponent = FC<any>
/**
* Type definition for component props from Lua
@@ -133,6 +137,17 @@ export const componentRegistry: Record<string, ComponentType<LuaComponentProps>>
RadioGroup,
Switch,
Slider,
// New inputs
DatePicker,
TimePicker,
ColorPicker,
FileUpload,
Fab,
ToggleButton,
ToggleButtonGroup,
Autocomplete,
Rating,
FormField,
// Form elements
FormControl,