File tree Expand file tree Collapse file tree 10 files changed +39
-20
lines changed
packages/pf4-component-mapper/src/files Expand file tree Collapse file tree 10 files changed +39
-20
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ interface CheckboxOptions extends AnyObject {
7
7
value ?: any ;
8
8
}
9
9
10
- interface CheckboxProps extends PfCheckboxProps {
10
+ interface InternalCheckboxProps extends PfCheckboxProps {
11
11
isReadOnly ?: boolean ;
12
12
options ?: CheckboxOptions ;
13
13
}
14
14
15
- declare const Checkbox : React . ComponentType < CheckboxProps & FormGroupProps & UseFieldApiComponentConfig > ;
15
+ export type CheckboxProps = InternalCheckboxProps & FormGroupProps & UseFieldApiComponentConfig ;
16
+
17
+ declare const Checkbox : React . ComponentType < CheckboxProps > ;
16
18
17
19
export default Checkbox ;
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-render
2
2
import { TextInputProps } from "@patternfly/react-core" ;
3
3
import FormGroupProps from "./form-group" ;
4
4
5
- declare const DatePicker : React . ComponentType < TextInputProps & FormGroupProps & UseFieldApiComponentConfig > ;
5
+ export type DatePickerProps = TextInputProps & FormGroupProps & UseFieldApiComponentConfig ;
6
+
7
+ declare const DatePicker : React . ComponentType < DatePickerProps > ;
6
8
7
9
export default DatePicker ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export interface DualListSelectOption extends AnyObject {
7
7
label : ReactNode ;
8
8
}
9
9
10
- export interface DualListSelectProps {
10
+ interface InternalDualListSelectProps {
11
11
leftTitle ?: ReactNode ;
12
12
rightTitle ?: ReactNode ;
13
13
moveLeftTitle ?: ReactNode ;
@@ -26,6 +26,8 @@ export interface DualListSelectProps {
26
26
rightValues : DualListSelectOption [ ] ;
27
27
}
28
28
29
- declare const DualListSelect : React . ComponentType < DualListSelectProps & FormGroupProps & UseFieldApiComponentConfig > ;
29
+ export type DualListSelectProps = InternalDualListSelectProps & FormGroupProps & UseFieldApiComponentConfig ;
30
+
31
+ declare const DualListSelect : React . ComponentType < DualListSelectProps > ;
30
32
31
33
export default DualListSelect ;
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ export interface RadioOption extends AnyObject {
7
7
value ?: any ;
8
8
}
9
9
10
- export interface RadioProps {
10
+ interface InternalRadioProps {
11
11
name : string ;
12
12
options : RadioOption [ ] ;
13
13
isReadOnly ?: boolean ;
14
14
isDisabled ?: boolean ;
15
15
}
16
16
17
- declare const Radio : React . ComponentType < RadioProps & FormGroupProps & UseFieldApiComponentConfig > ;
17
+ export type RadioProps = InternalRadioProps & FormGroupProps & UseFieldApiComponentConfig ;
18
+
19
+ declare const Radio : React . ComponentType < RadioProps > ;
18
20
19
21
export default Radio ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export interface SelectOption {
7
7
value ?: any ;
8
8
}
9
9
10
- export interface SelectProps {
10
+ interface BaseSelectProps {
11
11
options ?: SelectOption [ ] ;
12
12
selectVariant ?: 'default' | 'createable' ;
13
13
isSearchable ?: boolean ;
@@ -23,7 +23,7 @@ export interface SelectProps {
23
23
placeholder ?: ReactNode ;
24
24
}
25
25
26
- export interface InternalSelectProps extends SelectProps {
26
+ export interface InternalSelectProps extends BaseSelectProps {
27
27
value ?: any ;
28
28
onChange ?: ( option ?: any ) => void ;
29
29
invalid ?: boolean ;
@@ -32,6 +32,8 @@ export interface InternalSelectProps extends SelectProps {
32
32
33
33
export const InternalSelect : React . ComponentType < InternalSelectProps > ;
34
34
35
- declare const Select : React . ComponentType < SelectProps & FormGroupProps & UseFieldApiComponentConfig > ;
35
+ export type SelectProps = BaseSelectProps & FormGroupProps & UseFieldApiComponentConfig ;
36
+
37
+ declare const Select : React . ComponentType < SelectProps > ;
36
38
37
39
export default Select ;
Original file line number Diff line number Diff line change 1
1
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
2
2
import FormGroupProps from "./form-group" ;
3
- import { InputHTMLAttributes } from "react" ;
4
3
5
- export interface SliderProps extends React . HTMLProps < React . InputHTMLAttributes < any > > {
4
+ interface InternalSliderProps extends React . HTMLProps < React . InputHTMLAttributes < any > > {
6
5
isReadOnly ?: boolean ;
7
6
}
8
7
9
- declare const Slider : React . ComponentType < SliderProps & FormGroupProps & UseFieldApiComponentConfig > ;
8
+ export type SliderProps = InternalSliderProps & FormGroupProps & UseFieldApiComponentConfig ;
9
+
10
+ declare const Slider : React . ComponentType < SliderProps > ;
10
11
11
12
export default Slider ;
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ import FormGroupProps from "./form-group";
2
2
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
3
3
import { SwitchProps as PFSwitchProps } from '@patternfly/react-core' ;
4
4
5
- export interface SwitchProps extends PFSwitchProps {
5
+ interface InternalSwitchProps extends PFSwitchProps {
6
6
isReadOnly ?: boolean ;
7
7
}
8
8
9
- declare const Switch : React . ComponentType < SwitchProps & FormGroupProps & UseFieldApiComponentConfig > ;
9
+ export type SwitchProps = InternalSwitchProps & FormGroupProps & UseFieldApiComponentConfig ;
10
+
11
+ declare const Switch : React . ComponentType < SwitchProps > ;
10
12
11
13
export default Switch ;
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import FormGroupProps from "./form-group"
2
2
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer"
3
3
import { TextInputProps } from "@patternfly/react-core" ;
4
4
5
- export interface TextFieldProps extends TextInputProps { }
5
+ interface InternalTextFieldProps extends TextInputProps { }
6
6
7
- declare const TextField : React . ComponentType < TextFieldProps & FormGroupProps & UseFieldApiComponentConfig > ;
7
+ export type TextFieldProps = InternalTextFieldProps & FormGroupProps & UseFieldApiComponentConfig ;
8
+
9
+ declare const TextField : React . ComponentType < TextFieldProps > ;
8
10
9
11
export default TextField ;
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import FormGroupProps from "./form-group";
2
2
import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-renderer" ;
3
3
import { TextAreaProps as PfTextAreaProps } from '@patternfly/react-core' ;
4
4
5
- export interface TextareaProps extends PfTextAreaProps { }
5
+ interface InternalTextareaProps extends PfTextAreaProps { }
6
6
7
- declare const Textarea : React . ComponentType < TextareaProps & FormGroupProps & UseFieldApiComponentConfig > ;
7
+ export type TextareaProps = InternalTextareaProps & FormGroupProps & 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 @@ -2,6 +2,8 @@ import { UseFieldApiComponentConfig } from "@data-driven-forms/react-form-render
2
2
import { TextInputProps } from "@patternfly/react-core" ;
3
3
import FormGroupProps from "./form-group" ;
4
4
5
- declare const TimePicker : React . ComponentType < TextInputProps & FormGroupProps & UseFieldApiComponentConfig > ;
5
+ export type TimePickerProps = TextInputProps & FormGroupProps & UseFieldApiComponentConfig ;
6
+
7
+ declare const TimePicker : React . ComponentType < TimePickerProps > ;
6
8
7
9
export default TimePicker ;
You can’t perform that action at this time.
0 commit comments