UNPKG

pagamio-frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

14 lines (13 loc) 706 B
import React from 'react'; import type { DependentFieldUpdate, Field, FieldWrapperProps, SelectOption } from '../types'; interface ExtendedFieldWrapperProps extends FieldWrapperProps { onFieldUpdate?: Record<string, DependentFieldUpdate[]>; setValue?: (field: string, value: any) => void; clearErrors?: (field: string) => void; updateFieldOptions?: (field: string, options: Array<SelectOption | string>) => void; updataFieldLabel?: (fieldName: string, newLabelName: string) => void; setFieldHidden?: (fieldName: string, hidden: boolean) => void; addField?: (fields: Field) => void; } declare const FieldWrapper: React.FC<ExtendedFieldWrapperProps>; export default FieldWrapper;