add elements components

This commit is contained in:
Rami Bitar
2026-06-09 14:43:25 -04:00
parent d7ebc09cbb
commit 3ed7e027c2
13 changed files with 558 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
export type FieldType =
| "text"
| "textarea"
| "color"
| "icon"
| "array"
| "object"
| "boolean"
| "select"
export interface FieldOption {
label: string
value: string
}
export interface FieldConfig {
type: FieldType
label?: string
options?: FieldOption[]
arrayFields?: Record<string, FieldConfig>
objectFields?: Record<string, FieldConfig>
}
export interface ComponentConfig {
label: string
fields: Record<string, FieldConfig>
}
export type ElementConfig = Record<string, ComponentConfig>