From 14cb2de52f9b62bddca3a892d12ad8c85e068a29 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 27 Apr 2026 12:45:07 +0200 Subject: [PATCH] add missing factory functions Co-authored-by: Copilot --- .../IElixFormsComponentCustomFormFieldFactory.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scelta-carriera/src/components/IElixFormsComponentCustomFormFieldFactory.ts b/scelta-carriera/src/components/IElixFormsComponentCustomFormFieldFactory.ts index c250479..c4cce9f 100644 --- a/scelta-carriera/src/components/IElixFormsComponentCustomFormFieldFactory.ts +++ b/scelta-carriera/src/components/IElixFormsComponentCustomFormFieldFactory.ts @@ -1,10 +1,12 @@ import { JSX } from "react"; - export type IElixFormsComponentCustomFormFieldFactory = { + createBooleanInput: (name: string, label: string, required?: boolean) => JSX.Element; + createCheckboxInput: (name: string, label: string, options: Map, required?: boolean) => JSX.Element; + createDropdownInput: (name: string, label: string, options: Map, required?: boolean) => JSX.Element; + createHiddenInput: (name: string) => JSX.Element; + createNumberInput: (name: string, label: string, required?: boolean) => JSX.Element; + createRadioInput: (name: string, label: string, options: Map, required?: boolean) => JSX.Element; createTextInput: (name: string, label: string, required?: boolean) => JSX.Element; createTextAreaInput: (name: string, label: string, required?: boolean) => JSX.Element; - createNumberInput: (name: string, label: string, required?: boolean) => JSX.Element; - createDropdownInput: (name: string, label: string, options: Map, required?: boolean) => JSX.Element; - createCheckboxInput: (name: string, label: string, options: Map, required?: boolean) => JSX.Element; };