mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
code: registry,nextjs,index (2 files)
This commit is contained in:
@@ -72,6 +72,11 @@ export {
|
||||
InputBase,
|
||||
FilledInput,
|
||||
OutlinedInput,
|
||||
FormField,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
ColorPicker,
|
||||
FileUpload,
|
||||
} from './fakemui/inputs'
|
||||
|
||||
// Surfaces
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user