File tree Expand file tree Collapse file tree 6 files changed +2
-27
lines changed
packages/suir-component-mapper/src/files Expand file tree Collapse file tree 6 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 1
1
import { UseFieldApiComponentConfig , AnyObject } from "@data-driven-forms/react-form-renderer" ;
2
- import { CheckboxProps as SuirCheckboxProps , FormFieldProps , HeaderProps } from 'semantic-ui-react' ;
2
+ import { CheckboxProps as SuirCheckboxProps } from 'semantic-ui-react' ;
3
3
import { ReactNode } from "react" ;
4
- import { FormFieldGridProps , HelperTextProps } from "./form-field-grid" ;
5
4
import { CommonFieldProps } from "./common-field-props" ;
6
5
7
6
export interface CheckboxOption extends AnyObject {
@@ -11,10 +10,6 @@ export interface CheckboxOption extends AnyObject {
11
10
12
11
interface InternalCheckboxProps extends SuirCheckboxProps {
13
12
options ?: CheckboxOption [ ] ;
14
- /** Sub components customization API */
15
- FormFieldProps ?: FormFieldProps ;
16
- HeaderProps ?: HeaderProps ;
17
- OptionsListProps ?: React . HTMLProps < HTMLDivElement > ;
18
13
}
19
14
20
15
export type CheckboxProps = InternalCheckboxProps & CommonFieldProps & UseFieldApiComponentConfig ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import { FormCheckbox } from 'semantic-ui-react' ;
4
- import { meta , input } from '@data-driven-forms/common/src/prop-types-templates' ;
5
4
6
5
import FormFieldGrid from '../common/form-field-grid' ;
7
6
import { validationError } from '../common/helpers' ;
@@ -51,8 +50,6 @@ export const SingleCheckbox = (props) => {
51
50
} ;
52
51
53
52
SingleCheckbox . propTypes = {
54
- input,
55
- meta,
56
53
isReadOnly : PropTypes . bool ,
57
54
isDisabled : PropTypes . bool ,
58
55
isRequired : PropTypes . bool ,
@@ -71,17 +68,11 @@ Checkbox.propTypes = {
71
68
options : PropTypes . array ,
72
69
/** Sub components customization API */
73
70
FormFieldGridProps : PropTypes . object ,
74
- FormFieldProps : PropTypes . object ,
75
- HeaderProps : PropTypes . object ,
76
- OptionsListProps : PropTypes . object ,
77
71
HelperTextProps : PropTypes . object
78
72
} ;
79
73
80
74
Checkbox . defaultProps = {
81
75
FormFieldGridProps : { } ,
82
- FormFieldProps : { } ,
83
- HeaderProps : { } ,
84
- OptionsListProps : { } ,
85
76
HelperTextProps : { }
86
77
} ;
87
78
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
3
3
4
4
import FormFieldGrid from '../common/form-field-grid' ;
5
5
import { validationError } from '../common/helpers' ;
6
- import { meta , input } from '@data-driven-forms/common/src/prop-types-templates' ;
7
6
import { useFieldApi } from '@data-driven-forms/react-form-renderer' ;
8
7
import FormField from '../common/form-field' ;
9
8
@@ -44,8 +43,6 @@ const DatePicker = (props) => {
44
43
} ;
45
44
46
45
DatePicker . propTypes = {
47
- input,
48
- meta,
49
46
isReadOnly : PropTypes . bool ,
50
47
isDisabled : PropTypes . bool ,
51
48
placeholder : PropTypes . node ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
- import { meta , input } from '@data-driven-forms/common/src/prop-types-templates' ;
4
3
import { FormCheckbox } from 'semantic-ui-react' ;
5
4
import { useFieldApi } from '@data-driven-forms/react-form-renderer' ;
6
5
import FormFieldGrid from '../common/form-field-grid' ;
@@ -40,6 +39,7 @@ export const Switch = (props) => {
40
39
className,
41
40
FormFieldGridProps,
42
41
HelpertextProps,
42
+ type,
43
43
...rest
44
44
} = useFieldApi ( {
45
45
...props ,
@@ -73,8 +73,6 @@ export const Switch = (props) => {
73
73
} ;
74
74
75
75
Switch . propTypes = {
76
- input,
77
- meta,
78
76
isReadOnly : PropTypes . bool ,
79
77
isDisabled : PropTypes . bool ,
80
78
isRequired : PropTypes . bool ,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
3
3
import { Input } from 'semantic-ui-react' ;
4
4
5
5
import { validationError } from '../common/helpers' ;
6
- import { meta , input } from '@data-driven-forms/common/src/prop-types-templates' ;
7
6
import { useFieldApi } from '@data-driven-forms/react-form-renderer' ;
8
7
import FormFieldGrid from '../common/form-field-grid' ;
9
8
import FormField from '../common/form-field' ;
@@ -47,8 +46,6 @@ const TextField = (props) => {
47
46
} ;
48
47
49
48
TextField . propTypes = {
50
- input,
51
- meta,
52
49
isReadOnly : PropTypes . bool ,
53
50
isDisabled : PropTypes . bool ,
54
51
placeholder : PropTypes . node ,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
3
3
4
4
import FormFieldGrid from '../common/form-field-grid' ;
5
5
import { validationError } from '../common/helpers' ;
6
- import { meta , input } from '@data-driven-forms/common/src/prop-types-templates' ;
7
6
import { useFieldApi } from '@data-driven-forms/react-form-renderer' ;
8
7
import FormField from '../common/form-field' ;
9
8
@@ -34,8 +33,6 @@ const TimePicker = (props) => {
34
33
} ;
35
34
36
35
TimePicker . propTypes = {
37
- input,
38
- meta,
39
36
isReadOnly : PropTypes . bool ,
40
37
isDisabled : PropTypes . bool ,
41
38
placeholder : PropTypes . node ,
You can’t perform that action at this time.
0 commit comments