@@ -2,13 +2,68 @@ import { FormGroupProps } from "./form-group";
22import { UseFieldApiComponentConfig , AnyObject } from "@data-driven-forms/react-form-renderer" ;
33import { ReactNode } from "react" ;
44
5+ import {
6+ FormGroupProps as CarbonFormGroups ,
7+ GridDefaultProps , RowDefaultProps ,
8+ ColumnDefaultProps , ButtonProps ,
9+ SearchProps , TooltipIconProps ,
10+ StructuredListProps , StructuredListBodyProps ,
11+ AllStructuredListRowProps ,
12+ StructuredListCellProps
13+ } from 'carbon-components-react' ;
14+
515export interface DualListSelectValue extends AnyObject {
616 value : any ;
717 label : ReactNode ;
18+ ListRowProps ?: AllStructuredListRowProps ;
19+ ListCellProps ?: StructuredListCellProps ;
20+ GridProps ?: GridDefaultProps ;
21+ RowProps ?: RowDefaultProps ;
22+ LabelProps ?: ColumnDefaultProps ;
23+ CheckmarkProps ?: ColumnDefaultProps ;
824}
925
1026interface InternalDualListSelectProps {
1127 options : DualListSelectValue [ ] ;
28+ noOptionsTitle ?: ReactNode ;
29+ noValueTitle ?: ReactNode ;
30+ leftTitle ?: ReactNode ;
31+ rightTitle ?: ReactNode ;
32+ LeftTitleElement ?: string ;
33+ RightTitleElement ?: string ;
34+ LeftTitleProps ?: AnyObject ;
35+ RightTitleProps ?: AnyObject ;
36+ moveLeftTitle ?: ReactNode ;
37+ moveRightTitle ?: ReactNode ;
38+ moveAllLeftTitle ?: ReactNode ;
39+ moveAllRightTitle ?: ReactNode ;
40+ label ?: ReactNode ;
41+ filterOptionsTitle ?: string ;
42+ filterValuesTitle ?: string ;
43+ sortOptionsTitle ?: string ;
44+ sortValuesTitle ?: string ;
45+ filterOptionsText ?: ReactNode ;
46+ filterValueText ?: ReactNode ;
47+ FormGroupProps ?: CarbonFormGroups ;
48+ GridProps ?: GridDefaultProps ;
49+ RowProps ?: RowDefaultProps ;
50+ OptionsColumnProps ?: ColumnDefaultProps ;
51+ ButtonColumnProps ?: ColumnDefaultProps ;
52+ ValuesColumnProps ?: ColumnDefaultProps ;
53+ AddButtonProps ?: ButtonProps ;
54+ AddAllButtonProps ?: ButtonProps ;
55+ RemoveButtonProps ?: ButtonProps ;
56+ RemoveAllButtonProps ?: ButtonProps ;
57+ LeftToolbarProps ?: React . HTMLProps < HTMLDivElement > ;
58+ RightToolbarProps ?: React . HTMLProps < HTMLDivElement > ;
59+ LeftSearchProps ?: SearchProps ;
60+ RightSearchProps ?: SearchProps ;
61+ LeftSortProps ?: TooltipIconProps ;
62+ RightSortProps ?: TooltipIconProps ;
63+ LeftListProps ?: StructuredListProps ;
64+ LeftBodyProps ?: StructuredListBodyProps ;
65+ RightListProps ?: StructuredListProps ;
66+ RightBodyProps ?: StructuredListBodyProps
1267}
1368
1469export type DualListSelectProps = InternalDualListSelectProps & FormGroupProps & UseFieldApiComponentConfig ;
0 commit comments