@data-driven-forms/ant-component-mapper 4.0.1 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/checkbox/checkbox.js +0 -15
  2. package/date-picker/date-picker.js +0 -14
  3. package/esm/checkbox/checkbox.js +0 -14
  4. package/esm/date-picker/date-picker.js +0 -13
  5. package/esm/field-array/field-array.js +0 -41
  6. package/esm/form-group/form-group.js +0 -16
  7. package/esm/form-template/form-template.js +0 -32
  8. package/esm/is-required/is-required.js +0 -4
  9. package/esm/multiple-choice-list/multiple-choice-list.js +1 -20
  10. package/esm/plain-text/plain-text.js +0 -6
  11. package/esm/radio/radio.js +0 -22
  12. package/esm/select/select.js +0 -19
  13. package/esm/sub-form/sub-form.js +0 -16
  14. package/esm/switch/switch.js +0 -13
  15. package/esm/tabs/tabs.js +0 -4
  16. package/esm/text-field/text-field.js +0 -12
  17. package/esm/textarea/textarea.js +0 -12
  18. package/esm/time-picker/time-picker.js +0 -13
  19. package/esm/wizard/step-buttons.js +0 -37
  20. package/esm/wizard/wizard-step.js +0 -8
  21. package/esm/wizard/wizard.js +0 -20
  22. package/field-array/field-array.js +0 -42
  23. package/form-group/form-group.js +0 -18
  24. package/form-template/form-template.js +0 -34
  25. package/is-required/is-required.js +0 -5
  26. package/multiple-choice-list/multiple-choice-list.js +1 -27
  27. package/package.json +5 -5
  28. package/plain-text/plain-text.js +0 -7
  29. package/radio/radio.js +0 -24
  30. package/select/select.js +0 -20
  31. package/sub-form/sub-form.js +0 -17
  32. package/switch/switch.js +0 -14
  33. package/tabs/tabs.js +0 -5
  34. package/text-field/text-field.js +0 -13
  35. package/textarea/textarea.js +0 -13
  36. package/time-picker/time-picker.js +0 -14
  37. package/wizard/step-buttons.js +0 -38
  38. package/wizard/wizard-step.js +0 -9
  39. package/wizard/wizard.js +0 -21
@@ -15,8 +15,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
15
15
 
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
 
18
- var _propTypes = _interopRequireDefault(require("prop-types"));
19
-
20
18
  var _index = _interopRequireDefault(require("antd/lib/checkbox/index.js"));
21
19
 
22
20
  var _multipleChoiceList = _interopRequireDefault(require("../multiple-choice-list/multiple-choice-list"));
@@ -69,16 +67,6 @@ var SingleCheckbox = function SingleCheckbox(props) {
69
67
  };
70
68
 
71
69
  exports.SingleCheckbox = SingleCheckbox;
72
- SingleCheckbox.propTypes = {
73
- isReadOnly: _propTypes["default"].bool,
74
- isDisabled: _propTypes["default"].bool,
75
- isRequired: _propTypes["default"].bool,
76
- label: _propTypes["default"].node,
77
- helperText: _propTypes["default"].node,
78
- description: _propTypes["default"].node,
79
- validateOnMount: _propTypes["default"].bool,
80
- FormItemProps: _propTypes["default"].object
81
- };
82
70
 
83
71
  var Checkbox = function Checkbox(_ref) {
84
72
  var options = _ref.options,
@@ -88,8 +76,5 @@ var Checkbox = function Checkbox(_ref) {
88
76
  }, props)) : /*#__PURE__*/_react["default"].createElement(SingleCheckbox, props);
89
77
  };
90
78
 
91
- Checkbox.propTypes = {
92
- options: _propTypes["default"].array
93
- };
94
79
  var _default = Checkbox;
95
80
  exports["default"] = _default;
@@ -13,8 +13,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
-
18
16
  var _index = _interopRequireDefault(require("antd/lib/date-picker/index.js"));
19
17
 
20
18
  var _validationError = require("../validation-error/validation-error");
@@ -67,17 +65,5 @@ var DatePicker = function DatePicker(_ref) {
67
65
  }, rest)));
68
66
  };
69
67
 
70
- DatePicker.propTypes = {
71
- isReadOnly: _propTypes["default"].bool,
72
- isDisabled: _propTypes["default"].bool,
73
- placeholder: _propTypes["default"].node,
74
- isRequired: _propTypes["default"].bool,
75
- label: _propTypes["default"].node,
76
- helperText: _propTypes["default"].node,
77
- validateOnMount: _propTypes["default"].bool,
78
- locale: _propTypes["default"].string,
79
- description: _propTypes["default"].node,
80
- FormItemProps: _propTypes["default"].object
81
- };
82
68
  var _default = DatePicker;
83
69
  exports["default"] = _default;
@@ -9,7 +9,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
9
9
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
10
 
11
11
  import React from 'react';
12
- import PropTypes from 'prop-types';
13
12
  import AntCheckbox from "antd/es/checkbox/index.js";
14
13
  import MultipleChoiceList from '../multiple-choice-list/multiple-choice-list';
15
14
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -48,16 +47,6 @@ export var SingleCheckbox = function SingleCheckbox(props) {
48
47
  value: input.name
49
48
  }, rest), isRequired ? /*#__PURE__*/React.createElement(IsRequired, null, label) : label));
50
49
  };
51
- SingleCheckbox.propTypes = {
52
- isReadOnly: PropTypes.bool,
53
- isDisabled: PropTypes.bool,
54
- isRequired: PropTypes.bool,
55
- label: PropTypes.node,
56
- helperText: PropTypes.node,
57
- description: PropTypes.node,
58
- validateOnMount: PropTypes.bool,
59
- FormItemProps: PropTypes.object
60
- };
61
50
 
62
51
  var Checkbox = function Checkbox(_ref) {
63
52
  var options = _ref.options,
@@ -68,7 +57,4 @@ var Checkbox = function Checkbox(_ref) {
68
57
  }, props)) : /*#__PURE__*/React.createElement(SingleCheckbox, props);
69
58
  };
70
59
 
71
- Checkbox.propTypes = {
72
- options: PropTypes.array
73
- };
74
60
  export default Checkbox;
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["placeholder"],
4
4
  _excluded2 = ["input", "isReadOnly", "isDisabled", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormItemProps"];
5
5
  import React from 'react';
6
- import PropTypes from 'prop-types';
7
6
  import AntDatePicker from "antd/es/date-picker/index.js";
8
7
  import { validationError } from '../validation-error/validation-error';
9
8
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -50,16 +49,4 @@ var DatePicker = function DatePicker(_ref) {
50
49
  }, rest)));
51
50
  };
52
51
 
53
- DatePicker.propTypes = {
54
- isReadOnly: PropTypes.bool,
55
- isDisabled: PropTypes.bool,
56
- placeholder: PropTypes.node,
57
- isRequired: PropTypes.bool,
58
- label: PropTypes.node,
59
- helperText: PropTypes.node,
60
- validateOnMount: PropTypes.bool,
61
- locale: PropTypes.string,
62
- description: PropTypes.node,
63
- FormItemProps: PropTypes.object
64
- };
65
52
  export default DatePicker;
@@ -14,7 +14,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
14
14
 
15
15
  import React, { memo, useReducer } from 'react';
16
16
  import isEqual from 'lodash/isEqual';
17
- import PropTypes from 'prop-types';
18
17
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
19
18
  import useFormApi from "@data-driven-forms/react-form-renderer/use-form-api";
20
19
  import FieldArray from "@data-driven-forms/react-form-renderer/field-array";
@@ -70,19 +69,6 @@ var ArrayItem = /*#__PURE__*/memo(function (_ref) {
70
69
 
71
70
  return isEqual(prev, next);
72
71
  });
73
- ArrayItem.propTypes = {
74
- name: PropTypes.string,
75
- fieldIndex: PropTypes.number.isRequired,
76
- fields: PropTypes.arrayOf(PropTypes.object),
77
- remove: PropTypes.func.isRequired,
78
- length: PropTypes.number,
79
- minItems: PropTypes.number,
80
- removeLabel: PropTypes.node.isRequired,
81
- ArrayItemProps: PropTypes.object.isRequired,
82
- FieldsContainerProps: PropTypes.object.isRequired,
83
- RemoveContainerProps: PropTypes.object.isRequired,
84
- RemoveButtonProps: PropTypes.object.isRequired
85
- };
86
72
  var defaultButtonLabels = {
87
73
  add: 'ADD',
88
74
  remove: 'REMOVE'
@@ -298,31 +284,4 @@ var DynamicArray = function DynamicArray(_ref5) {
298
284
  }));
299
285
  };
300
286
 
301
- DynamicArray.propTypes = {
302
- label: PropTypes.node,
303
- description: PropTypes.node,
304
- fields: PropTypes.arrayOf(PropTypes.object).isRequired,
305
- defaultItem: PropTypes.any,
306
- minItems: PropTypes.number,
307
- maxItems: PropTypes.number,
308
- noItemsMessage: PropTypes.node,
309
- buttonLabels: PropTypes.object,
310
- // customization props
311
- FormItemProps: PropTypes.object,
312
- ArrayItemProps: PropTypes.object,
313
- FieldsContainerProps: PropTypes.object,
314
- RemoveContainerProps: PropTypes.object,
315
- RemoveButtonProps: PropTypes.object,
316
- FieldArrayRowProps: PropTypes.object,
317
- FieldArrayRowCol: PropTypes.object,
318
- FieldArrayHeaderProps: PropTypes.object,
319
- FieldArrayLabelProps: PropTypes.object,
320
- FieldArrayButtonsProps: PropTypes.object,
321
- UndoButtonProps: PropTypes.object,
322
- RedoButtonProps: PropTypes.object,
323
- AddButtonProps: PropTypes.object,
324
- FieldArrayDescriptionProps: PropTypes.object,
325
- NoItemsMessageProps: PropTypes.object,
326
- ErrorMessageProps: PropTypes.object
327
- };
328
287
  export default DynamicArray;
@@ -1,9 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Form from "antd/es/form/index.js";
5
4
  import { validationError } from '../validation-error/';
6
- import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
7
5
 
8
6
  var FormGroup = function FormGroup(_ref) {
9
7
  var label = _ref.label,
@@ -28,18 +26,4 @@ var FormGroup = function FormGroup(_ref) {
28
26
  }, FormItemProps), children);
29
27
  };
30
28
 
31
- FormGroup.propTypes = {
32
- label: PropTypes.string,
33
- children: childrenPropTypes,
34
- help: PropTypes.string,
35
- isRequired: PropTypes.bool,
36
- invalid: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
37
- FormItemProps: PropTypes.object,
38
- meta: PropTypes.object,
39
- validateOnMount: PropTypes.bool,
40
- helperText: PropTypes.node,
41
- description: PropTypes.node,
42
- hideLabel: PropTypes.bool,
43
- input: PropTypes.object
44
- };
45
29
  export default FormGroup;
@@ -13,12 +13,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
13
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
14
 
15
15
  import React from 'react';
16
- import PropTypes from 'prop-types';
17
16
  import Button from "antd/es/button/index.js";
18
17
  import Typography from "antd/es/typography/index.js";
19
18
  import AntForm from "antd/es/form/index.js";
20
19
  import FormTemplate from '@data-driven-forms/common/form-template';
21
- import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
22
20
  var Title = Typography.Title,
23
21
  Paragraph = Typography.Paragraph;
24
22
 
@@ -35,12 +33,6 @@ var Form = function Form(_ref) {
35
33
  }, props), children);
36
34
  };
37
35
 
38
- Form.propTypes = {
39
- layout: PropTypes.string,
40
- onSubmit: PropTypes.func,
41
- children: childrenPropTypes
42
- };
43
-
44
36
  var Description = function Description(_ref2) {
45
37
  var children = _ref2.children,
46
38
  props = _objectWithoutProperties(_ref2, _excluded2);
@@ -48,10 +40,6 @@ var Description = function Description(_ref2) {
48
40
  return /*#__PURE__*/React.createElement(Typography, props, /*#__PURE__*/React.createElement(Paragraph, null, children));
49
41
  };
50
42
 
51
- Description.propTypes = {
52
- children: childrenPropTypes
53
- };
54
-
55
43
  var TitleComponent = function TitleComponent(_ref3) {
56
44
  var children = _ref3.children,
57
45
  props = _objectWithoutProperties(_ref3, _excluded3);
@@ -61,10 +49,6 @@ var TitleComponent = function TitleComponent(_ref3) {
61
49
  }, children));
62
50
  };
63
51
 
64
- TitleComponent.propTypes = {
65
- children: childrenPropTypes
66
- };
67
-
68
52
  var ButtonGroup = function ButtonGroup(_ref4) {
69
53
  var children = _ref4.children,
70
54
  props = _objectWithoutProperties(_ref4, _excluded4);
@@ -77,10 +61,6 @@ var ButtonGroup = function ButtonGroup(_ref4) {
77
61
  }, props), children);
78
62
  };
79
63
 
80
- ButtonGroup.propTypes = {
81
- children: childrenPropTypes
82
- };
83
-
84
64
  var ButtonComponent = function ButtonComponent(_ref5) {
85
65
  var label = _ref5.label,
86
66
  variant = _ref5.variant,
@@ -94,14 +74,6 @@ var ButtonComponent = function ButtonComponent(_ref5) {
94
74
  }), label || children);
95
75
  };
96
76
 
97
- ButtonComponent.propTypes = {
98
- children: childrenPropTypes,
99
- label: PropTypes.node,
100
- variant: PropTypes.string,
101
- buttonType: PropTypes.string,
102
- type: PropTypes.string
103
- };
104
-
105
77
  var AntFormTemplate = function AntFormTemplate(_ref6) {
106
78
  var layout = _ref6.layout,
107
79
  formWrapperProps = _ref6.formWrapperProps,
@@ -119,8 +91,4 @@ var AntFormTemplate = function AntFormTemplate(_ref6) {
119
91
  }, props));
120
92
  };
121
93
 
122
- AntFormTemplate.propTypes = {
123
- layout: PropTypes.string,
124
- formWrapperProps: PropTypes.object
125
- };
126
94
  export default AntFormTemplate;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
3
2
  import './is-required.css';
4
3
 
5
4
  var IsRequired = function IsRequired(_ref) {
@@ -10,7 +9,4 @@ var IsRequired = function IsRequired(_ref) {
10
9
  }, "*"), children);
11
10
  };
12
11
 
13
- IsRequired.propTypes = {
14
- children: childrenPropTypes
15
- };
16
12
  export default IsRequired;
@@ -1,16 +1,9 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
1
  import _extends from "@babel/runtime/helpers/extends";
3
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
3
  var _excluded = ["isDisabled", "label"];
5
-
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
-
8
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
-
10
4
  import React from 'react';
11
- import PropTypes from 'prop-types';
12
5
  import AntCheckbox from "antd/es/checkbox/index.js";
13
- import MultipleChoiceListCommon, { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
6
+ import MultipleChoiceListCommon from '@data-driven-forms/common/multiple-choice-list';
14
7
  import FormGroup from '../form-group';
15
8
 
16
9
  var FinalCheckbox = function FinalCheckbox(_ref) {
@@ -23,11 +16,6 @@ var FinalCheckbox = function FinalCheckbox(_ref) {
23
16
  }), label);
24
17
  };
25
18
 
26
- FinalCheckbox.propTypes = {
27
- isDisabled: PropTypes.bool,
28
- label: PropTypes.node
29
- };
30
-
31
19
  var Wrapper = function Wrapper(_ref2) {
32
20
  var label = _ref2.label,
33
21
  isRequired = _ref2.isRequired,
@@ -50,8 +38,6 @@ var Wrapper = function Wrapper(_ref2) {
50
38
  }, children);
51
39
  };
52
40
 
53
- Wrapper.propTypes = _objectSpread({}, wrapperProps);
54
-
55
41
  var MultipleChoiceList = function MultipleChoiceList(props) {
56
42
  return /*#__PURE__*/React.createElement(MultipleChoiceListCommon, _extends({}, props, {
57
43
  Wrapper: Wrapper,
@@ -59,9 +45,4 @@ var MultipleChoiceList = function MultipleChoiceList(props) {
59
45
  }));
60
46
  };
61
47
 
62
- MultipleChoiceList.propTypes = {
63
- input: PropTypes.shape({
64
- name: PropTypes.string.isRequired
65
- })
66
- };
67
48
  export default MultipleChoiceList;
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["label", "name", "TypographyProps"];
4
4
  import React from 'react';
5
5
  import Typography from "antd/es/typography/index.js";
6
- import PropTypes from 'prop-types';
7
6
  var Paragraph = Typography.Paragraph;
8
7
 
9
8
  var PlainText = function PlainText(_ref) {
@@ -19,9 +18,4 @@ var PlainText = function PlainText(_ref) {
19
18
  }));
20
19
  };
21
20
 
22
- PlainText.propTypes = {
23
- label: PropTypes.string.isRequired,
24
- name: PropTypes.string.isRequired,
25
- TypographyProps: PropTypes.object
26
- };
27
21
  export default PlainText;
@@ -10,9 +10,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
10
10
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
11
 
12
12
  import React from 'react';
13
- import PropTypes from 'prop-types';
14
13
  import AntRadio from "antd/es/radio/index.js";
15
- import { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
16
14
  import FormGroup from '../form-group';
17
15
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
18
16
 
@@ -30,14 +28,6 @@ var RadioOption = function RadioOption(_ref) {
30
28
  }, rest), label);
31
29
  };
32
30
 
33
- RadioOption.propTypes = {
34
- name: PropTypes.string.isRequired,
35
- option: PropTypes.shape({
36
- label: PropTypes.string.isRequired,
37
- value: PropTypes.any.isRequired
38
- }).isRequired
39
- };
40
-
41
31
  var Radio = function Radio(_ref2) {
42
32
  var name = _ref2.name,
43
33
  component = _ref2.component,
@@ -80,16 +70,4 @@ var Radio = function Radio(_ref2) {
80
70
  })));
81
71
  };
82
72
 
83
- Radio.propTypes = _objectSpread(_objectSpread({}, wrapperProps), {}, {
84
- options: PropTypes.arrayOf(PropTypes.shape({
85
- value: PropTypes.any,
86
- label: PropTypes.node
87
- })),
88
- label: PropTypes.node.isRequired,
89
- isDisabled: PropTypes.bool,
90
- isReadOnly: PropTypes.bool,
91
- description: PropTypes.node,
92
- FormItemProps: PropTypes.object,
93
- component: PropTypes.string
94
- });
95
73
  export default Radio;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["input", "isReadOnly", "isDisabled", "isClearable", "placeholder", "isRequired", "label", "helperText", "validateOnMount", "meta", "options", "isSearchable", "description", "FormItemProps", "isMulti"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import FormGroup from '../form-group';
7
6
  import AntSelect from "antd/es/select/index.js";
8
7
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -78,22 +77,4 @@ var Select = function Select(props) {
78
77
  })));
79
78
  };
80
79
 
81
- Select.propTypes = {
82
- isReadOnly: PropTypes.bool,
83
- isClearable: PropTypes.bool,
84
- isDisabled: PropTypes.bool,
85
- placeholder: PropTypes.node,
86
- isRequired: PropTypes.bool,
87
- label: PropTypes.node,
88
- helperText: PropTypes.node,
89
- validateOnMount: PropTypes.bool,
90
- isSearchable: PropTypes.bool,
91
- options: PropTypes.arrayOf(PropTypes.shape({
92
- value: PropTypes.any.isRequired,
93
- label: PropTypes.node.isRequired
94
- })).isRequired,
95
- description: PropTypes.node,
96
- FormItemProps: PropTypes.object,
97
- isMulti: PropTypes.bool
98
- };
99
80
  export default Select;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["fields", "title", "description", "TitleRowProps", "TitleColProps", "TitleProps", "DescriptionColProps", "DescriptionProps", "DescriptionRowProps", "RowProps", "ColProps", "component", "name"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import Typography from "antd/es/typography/index.js";
7
6
  import Row from "antd/es/row/index.js";
8
7
  import Col from "antd/es/col/index.js";
@@ -40,19 +39,4 @@ var SubForm = function SubForm(_ref) {
40
39
  }, ColProps), renderForm(fields))));
41
40
  };
42
41
 
43
- SubForm.propTypes = {
44
- fields: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired,
45
- title: PropTypes.node,
46
- description: PropTypes.node,
47
- TitleRowProps: PropTypes.object,
48
- TitleColProps: PropTypes.object,
49
- TitleProps: PropTypes.object,
50
- DescriptionColProps: PropTypes.object,
51
- DescriptionProps: PropTypes.object,
52
- DescriptionRowProps: PropTypes.object,
53
- RowProps: PropTypes.object,
54
- ColProps: PropTypes.object,
55
- component: PropTypes.string,
56
- name: PropTypes.string
57
- };
58
42
  export default SubForm;
@@ -8,7 +8,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
8
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
9
 
10
10
  import React from 'react';
11
- import PropTypes from 'prop-types';
12
11
  import AntSwitch from "antd/es/switch/index.js";
13
12
  import FormGroup from '../form-group';
14
13
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -56,16 +55,4 @@ export var Switch = function Switch(props) {
56
55
  disabled: isDisabled || isReadOnly
57
56
  })));
58
57
  };
59
- Switch.propTypes = {
60
- isReadOnly: PropTypes.bool,
61
- isDisabled: PropTypes.bool,
62
- isRequired: PropTypes.bool,
63
- label: PropTypes.node,
64
- helperText: PropTypes.node,
65
- validateOnMount: PropTypes.bool,
66
- onText: PropTypes.node,
67
- offText: PropTypes.node,
68
- description: PropTypes.node,
69
- FormItemProps: PropTypes.object
70
- };
71
58
  export default Switch;
package/esm/tabs/tabs.js CHANGED
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["fields"],
4
4
  _excluded2 = ["fields", "title", "name"];
5
5
  import React from 'react';
6
- import PropTypes from 'prop-types';
7
6
  import useFormApi from "@data-driven-forms/react-form-renderer/use-form-api";
8
7
  import Tabs from "antd/es/tabs/index.js";
9
8
  var TabPane = Tabs.TabPane;
@@ -28,7 +27,4 @@ var FormTabs = function FormTabs(_ref) {
28
27
  }));
29
28
  };
30
29
 
31
- FormTabs.propTypes = {
32
- fields: PropTypes.array.isRequired
33
- };
34
30
  export default FormTabs;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["input", "isReadOnly", "isDisabled", "placeholder", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormItemProps"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import Input from "antd/es/input/index.js";
7
6
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
8
7
  import FormGroup from '../form-group';
@@ -40,15 +39,4 @@ var TextField = function TextField(props) {
40
39
  }, rest)));
41
40
  };
42
41
 
43
- TextField.propTypes = {
44
- isReadOnly: PropTypes.bool,
45
- isDisabled: PropTypes.bool,
46
- placeholder: PropTypes.node,
47
- isRequired: PropTypes.bool,
48
- label: PropTypes.node,
49
- helperText: PropTypes.node,
50
- validateOnMount: PropTypes.bool,
51
- description: PropTypes.node,
52
- FormItemProps: PropTypes.object
53
- };
54
42
  export default TextField;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["input", "isReadOnly", "isDisabled", "placeholder", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormItemProps"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import Input from "antd/es/input/index.js";
7
6
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
8
7
  import FormGroup from '../form-group';
@@ -41,15 +40,4 @@ var Textarea = function Textarea(props) {
41
40
  }, rest)));
42
41
  };
43
42
 
44
- Textarea.propTypes = {
45
- isReadOnly: PropTypes.bool,
46
- isDisabled: PropTypes.bool,
47
- placeholder: PropTypes.node,
48
- isRequired: PropTypes.bool,
49
- label: PropTypes.node,
50
- helperText: PropTypes.node,
51
- validateOnMount: PropTypes.bool,
52
- description: PropTypes.node,
53
- FormItemProps: PropTypes.object
54
- };
55
43
  export default Textarea;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["input", "isReadOnly", "isDisabled", "placeholder", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormItemProps"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import AntTimePicker from "antd/es/time-picker/index.js";
7
6
  import { validationError } from '../validation-error/validation-error';
8
7
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -49,16 +48,4 @@ var TimePicker = function TimePicker(props) {
49
48
  }, rest)));
50
49
  };
51
50
 
52
- TimePicker.propTypes = {
53
- isReadOnly: PropTypes.bool,
54
- isDisabled: PropTypes.bool,
55
- placeholder: PropTypes.node,
56
- isRequired: PropTypes.bool,
57
- label: PropTypes.node,
58
- helperText: PropTypes.node,
59
- validateOnMount: PropTypes.bool,
60
- locale: PropTypes.string,
61
- description: PropTypes.node,
62
- FormItemProps: PropTypes.object
63
- };
64
51
  export default TimePicker;
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Button from "antd/es/button/index.js";
5
4
  import selectNext from '@data-driven-forms/common/wizard/select-next';
6
5
 
@@ -26,23 +25,6 @@ var NextButton = function NextButton(_ref) {
26
25
  }, progressNext ? NextButtonProps : SubmitButtonProps), progressNext ? buttonLabels.next : buttonLabels.submit);
27
26
  };
28
27
 
29
- NextButton.propTypes = {
30
- nextStep: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.object]),
31
- handleSubmit: PropTypes.func.isRequired,
32
- valid: PropTypes.bool,
33
- handleNext: PropTypes.func.isRequired,
34
- getState: PropTypes.func.isRequired,
35
- buttonLabels: PropTypes.shape({
36
- submit: PropTypes.node.isRequired,
37
- cancel: PropTypes.node.isRequired,
38
- back: PropTypes.node.isRequired,
39
- next: PropTypes.node.isRequired
40
- }).isRequired,
41
- NextButtonProps: PropTypes.object,
42
- SubmitButtonProps: PropTypes.object,
43
- conditionalSubmitFlag: PropTypes.string.isRequired
44
- };
45
-
46
28
  var WizardStepButtons = function WizardStepButtons(_ref2) {
47
29
  var disableBack = _ref2.disableBack,
48
30
  handlePrev = _ref2.handlePrev,
@@ -75,23 +57,4 @@ var WizardStepButtons = function WizardStepButtons(_ref2) {
75
57
  })));
76
58
  };
77
59
 
78
- WizardStepButtons.propTypes = {
79
- disableBack: PropTypes.bool,
80
- handlePrev: PropTypes.func.isRequired,
81
- handleNext: PropTypes.func.isRequired,
82
- conditionalSubmitFlag: PropTypes.string.isRequired,
83
- nextStep: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
84
- when: PropTypes.string.isRequired,
85
- stepMapper: PropTypes.object.isRequired
86
- })]),
87
- buttonLabels: PropTypes.object.isRequired,
88
- formOptions: PropTypes.shape({
89
- onCancel: PropTypes.func.isRequired
90
- }).isRequired,
91
- ButtonProps: PropTypes.object,
92
- NextButtonProps: PropTypes.object,
93
- BackButtonProps: PropTypes.object,
94
- CancelButtonProps: PropTypes.object,
95
- SubmitButtonProps: PropTypes.object
96
- };
97
60
  export default WizardStepButtons;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["fields", "formOptions", "WizardStepProps"];
4
4
  import React, { Fragment } from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import FormSpy from '@data-driven-forms/react-form-renderer/form-spy';
7
6
  import WizardStepButtons from './step-buttons';
8
7
  import './wizard-step.css';
@@ -25,11 +24,4 @@ var WizardStep = function WizardStep(_ref) {
25
24
  }));
26
25
  };
27
26
 
28
- WizardStep.propTypes = {
29
- fields: PropTypes.array,
30
- formOptions: PropTypes.shape({
31
- renderForm: PropTypes.func.isRequired
32
- }).isRequired,
33
- WizardStepProps: PropTypes.object
34
- };
35
27
  export default WizardStep;