File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
packages/carbon-component-mapper/src/files Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 1- import { FieldArrayField } from "@data-driven-forms/react-form-renderer" ;
1+ import { FieldArrayField , UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
2+ import { ReactNode } from "react" ;
3+ import { ButtonProps , FormGroupProps as CarbonFormGroupProps } from "carbon-components-react" ;
24
3- export interface FieldArrayProps {
5+ import { FormGroupProps } from './form-group' ;
6+
7+ export interface FieldArrayButtonLabels {
8+ add : ReactNode ;
9+ remove : ReactNode ;
10+ }
11+
12+ export interface InternalFieldArrayProps {
413 fields : FieldArrayField [ ] ;
5- itemDefault ?: any ;
14+ defaultItem ?: any ;
15+ minItems ?: number ;
16+ maxItems ?: number ;
17+ noItemsMessage ?: ReactNode ;
18+ buttonLabels ?: FieldArrayButtonLabels ;
19+ AddContainerProps ?: React . HTMLProps < HTMLDivElement > ;
20+ AddButtonProps ?: ButtonProps ;
21+ RemoveButtonProps ?: ButtonProps ;
22+ ArrayItemProps ?: React . HTMLProps < HTMLDivElement > ;
23+ FormGroupProps ?: CarbonFormGroupProps ;
24+ WrapperProps ?: React . HTMLProps < HTMLDivElement > ;
625}
726
27+ export type FieldArrayProps = InternalFieldArrayProps & FormGroupProps & UseFieldApiComponentConfig ;
28+
829declare const FieldArray : React . ComponentType < FieldArrayProps > ;
930
1031export default FieldArray ;
You can’t perform that action at this time.
0 commit comments