File tree Expand file tree Collapse file tree 9 files changed +36
-18
lines changed
packages/suir-component-mapper/src/files Expand file tree Collapse file tree 9 files changed +36
-18
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ export interface CheckboxOption extends AnyObject {
9
9
value ?: any ;
10
10
}
11
11
12
- export interface CheckboxProps extends SuirCheckboxProps {
12
+ interface InternalCheckboxProps extends SuirCheckboxProps {
13
13
options ?: CheckboxOption [ ] ;
14
14
/** Sub components customization API */
15
15
FormFieldProps ?: FormFieldProps ;
16
16
HeaderProps ?: HeaderProps ;
17
17
OptionsListProps ?: React . HTMLProps < HTMLDivElement > ;
18
18
}
19
19
20
- declare const Checkbox : React . ComponentType < CheckboxProps & CommonFieldProps & UseFieldApiComponentConfig > ;
20
+ export type CheckboxProps = InternalCheckboxProps & CommonFieldProps & UseFieldApiComponentConfig ;
21
+
22
+ declare const Checkbox : React . ComponentType < CheckboxProps > ;
21
23
22
24
export default Checkbox ;
Original file line number Diff line number Diff line change 1
1
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
2
2
import { CommonFieldProps } from "./common-field-props" ;
3
3
4
- export interface DatePickerProps { }
4
+ interface InternalDatePickerProps extends React . HTMLProps < HTMLInputElement > { }
5
5
6
- declare const DatePicker : React . ComponentType < DatePickerProps & CommonFieldProps & UseFieldApiComponentConfig > ;
6
+ export type DatePickerProps = InternalDatePickerProps & CommonFieldProps & UseFieldApiComponentConfig ;
7
+
8
+ declare const DatePicker : React . ComponentType < DatePickerProps > ;
7
9
8
10
export default DatePicker ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export interface DualListSelectOptionProps extends React.HTMLProps<HTMLDivElemen
12
12
selectedClassName ?: string ;
13
13
}
14
14
15
- export interface DualListSelectProps {
15
+ interface InternalDualListSelectProps {
16
16
leftTitle ?: ReactNode ;
17
17
rightTitle ?: ReactNode ;
18
18
moveLeftTitle ?: ReactNode ;
@@ -43,6 +43,8 @@ export interface DualListSelectProps {
43
43
ValuesHeaderProps ?: HeaderProps ;
44
44
}
45
45
46
- declare const DualListSelect : React . ComponentType < DualListSelectProps & CommonFieldProps & UseFieldApiComponentConfig > ;
46
+ export type DualListSelectProps = InternalDualListSelectProps & CommonFieldProps & UseFieldApiComponentConfig ;
47
+
48
+ declare const DualListSelect : React . ComponentType < DualListSelectProps > ;
47
49
48
50
export default DualListSelect ;
Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ export interface RadioOption {
8
8
value ?: any ;
9
9
}
10
10
11
- export interface RadioProps extends FormRadioProps {
11
+ interface InternalRadioProps extends FormRadioProps {
12
12
options ?: RadioOption ;
13
13
FormFieldProps ?: FormFieldProps ;
14
14
}
15
15
16
- declare const Radio : React . ComponentType < RadioProps & CommonFieldProps & UseFieldApiComponentConfig > ;
16
+ export type RadioProps = InternalRadioProps & CommonFieldProps & UseFieldApiComponentConfig ;
17
+
18
+ declare const Radio : React . ComponentType < RadioProps > ;
17
19
18
20
export default Radio ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface SelectOption extends AnyObject {
8
8
value ?: any ;
9
9
}
10
10
11
- export interface SelectProps extends StrictDropdownProps {
11
+ interface InternalSelectProps extends StrictDropdownProps {
12
12
[ key : string ] : any ;
13
13
options ?: SelectOption [ ] ;
14
14
isSearchable ?: boolean ;
@@ -20,6 +20,8 @@ export interface SelectProps extends StrictDropdownProps {
20
20
closeMenuOnSelect ?: boolean ;
21
21
}
22
22
23
- declare const Select : React . ComponentType < SelectProps & CommonFieldProps & UseFieldApiComponentConfig > ;
23
+ export type SelectProps = InternalSelectProps & CommonFieldProps & UseFieldApiComponentConfig ;
24
+
25
+ declare const Select : React . ComponentType < SelectProps > ;
24
26
25
27
export default Select ;
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-render
3
3
import { FormFieldProps } from "semantic-ui-react" ;
4
4
import { ReactNode } from "react" ;
5
5
6
- export interface SwitchProps extends FormFieldProps {
6
+ interface InternalSwitchProps extends FormFieldProps {
7
7
onText ?: ReactNode ;
8
8
offText ?: ReactNode ;
9
9
}
10
10
11
- declare const Switch : React . ComponentType < SwitchProps & CommonFieldProps & UseFieldApiComponentConfig > ;
11
+ export type SwitchProps = InternalSwitchProps & CommonFieldProps & UseFieldApiComponentConfig ;
12
+
13
+ declare const Switch : React . ComponentType < SwitchProps > ;
12
14
13
15
export default Switch ;
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ import { CommonFieldProps } from "./common-field-props";
2
2
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
3
3
import { InputProps } from "semantic-ui-react" ;
4
4
5
- export interface TextFieldProps extends InputProps {
5
+ interface InternalTextFieldProps extends InputProps {
6
6
placeholder ?: string ;
7
7
}
8
8
9
- declare const TextField : React . ComponentType < TextFieldProps & CommonFieldProps & UseFieldApiComponentConfig > ;
9
+ export type TextFieldProps = InternalTextFieldProps & CommonFieldProps & UseFieldApiComponentConfig ;
10
+
11
+ declare const TextField : React . ComponentType < TextFieldProps > ;
10
12
11
13
export default TextField ;
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import { CommonFieldProps } from "./common-field-props";
2
2
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
3
3
import { FormTextAreaProps } from "semantic-ui-react" ;
4
4
5
- export interface TextareaProps extends FormTextAreaProps { }
5
+ interface InternalTextareaProps extends FormTextAreaProps { }
6
6
7
- declare const Textarea : React . ComponentType < TextareaProps & CommonFieldProps & UseFieldApiComponentConfig > ;
7
+ export type TextareaProps = InternalTextareaProps & CommonFieldProps & UseFieldApiComponentConfig ;
8
+
9
+ declare const Textarea : React . ComponentType < TextareaProps > ;
8
10
9
11
export default Textarea ;
Original file line number Diff line number Diff line change 1
1
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
2
2
import { CommonFieldProps } from "./common-field-props" ;
3
3
4
- export interface DatePickerProps { }
4
+ interface InternalDatePickerProps { }
5
5
6
- declare const DatePicker : React . ComponentType < DatePickerProps & CommonFieldProps & UseFieldApiComponentConfig > ;
6
+ export type DatePickerProps = InternalDatePickerProps & CommonFieldProps & UseFieldApiComponentConfig ;
7
+
8
+ declare const DatePicker : React . ComponentType < DatePickerProps > ;
7
9
8
10
export default DatePicker ;
You can’t perform that action at this time.
0 commit comments