ui: improve form field components, add support for custom fields, export components

Enhanced `FieldLabel` to support tooltips and additional props. Refactored form field components for better customizability and ensured compatibility with new `CustomField`. Updated `onChange` handlers to include context for improved flexibility. Added exports for UI components.
This commit is contained in:
dswbx
2025-09-18 10:03:16 +02:00
parent d6f2500be2
commit 15c32c0e6d
8 changed files with 87 additions and 36 deletions
@@ -270,7 +270,7 @@ function EntityJsonFormField({
return (
<Formy.Group>
<Formy.Label htmlFor={fieldApi.name}>{field.getLabel()}</Formy.Label>
<Formy.FieldLabel htmlFor={fieldApi.name} field={field} />
<Suspense>
<JsonEditor
id={fieldApi.name}
@@ -306,7 +306,7 @@ function EntityEnumFormField({
return (
<Formy.Group>
<Formy.Label htmlFor={fieldApi.name}>{field.getLabel()}</Formy.Label>
<Formy.FieldLabel htmlFor={fieldApi.name} field={field} />
<Formy.Select
name={fieldApi.name}
id={fieldApi.name}