@data-driven-forms/mui-component-mapper 4.0.0 → 4.1.0

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 (42) hide show
  1. package/LICENSE +201 -0
  2. package/checkbox/checkbox.js +0 -25
  3. package/date-picker/date-picker.js +0 -18
  4. package/dual-list-select/dual-list-select.js +0 -137
  5. package/esm/checkbox/checkbox.js +0 -23
  6. package/esm/date-picker/date-picker.js +0 -16
  7. package/esm/dual-list-select/dual-list-select.js +0 -136
  8. package/esm/field-array/field-array.js +0 -42
  9. package/esm/form-field-grid/form-field-grid.js +0 -5
  10. package/esm/form-template/form-template.js +0 -32
  11. package/esm/multiple-choice-list/multiple-choice-list.js +1 -27
  12. package/esm/plain-text/plain-text.js +0 -9
  13. package/esm/radio/radio.js +0 -29
  14. package/esm/select/select.js +0 -35
  15. package/esm/slider/slider.js +0 -21
  16. package/esm/sub-form/sub-form.js +0 -12
  17. package/esm/switch/switch.js +0 -22
  18. package/esm/tabs/tabs.js +0 -9
  19. package/esm/text-field/text-field.js +0 -16
  20. package/esm/textarea/textarea.js +0 -16
  21. package/esm/time-picker/time-picker.js +0 -15
  22. package/esm/wizard/step-buttons.js +0 -34
  23. package/esm/wizard/wizard-nav.js +0 -11
  24. package/esm/wizard/wizard.js +0 -16
  25. package/field-array/field-array.js +0 -43
  26. package/form-field-grid/form-field-grid.js +0 -6
  27. package/form-template/form-template.js +0 -33
  28. package/multiple-choice-list/multiple-choice-list.js +1 -28
  29. package/package.json +6 -7
  30. package/plain-text/plain-text.js +0 -10
  31. package/radio/radio.js +0 -31
  32. package/select/select.js +0 -37
  33. package/slider/slider.js +0 -22
  34. package/sub-form/sub-form.js +0 -13
  35. package/switch/switch.js +0 -24
  36. package/tabs/tabs.js +0 -10
  37. package/text-field/text-field.js +0 -18
  38. package/textarea/textarea.js +0 -18
  39. package/time-picker/time-picker.js +0 -17
  40. package/wizard/step-buttons.js +0 -35
  41. package/wizard/wizard-nav.js +0 -12
  42. package/wizard/wizard.js +0 -17
@@ -7,7 +7,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
 
8
8
  import React from 'react';
9
9
  import { styled } from '@mui/material/styles';
10
- import PropTypes from 'prop-types';
11
10
  import clsx from 'clsx';
12
11
  import Grid from "@mui/material/Grid";
13
12
  import List from "@mui/material/List";
@@ -125,26 +124,6 @@ var ListInternal = function ListInternal(_ref3) {
125
124
  })));
126
125
  };
127
126
 
128
- ListInternal.propTypes = {
129
- value: PropTypes.arrayOf(PropTypes.shape({
130
- value: PropTypes.string.isRequired,
131
- label: PropTypes.string.isRequired
132
- })),
133
- optionClick: PropTypes.func.isRequired,
134
- noOptionsTitle: PropTypes.node,
135
- filterValue: PropTypes.string,
136
- filterValueText: PropTypes.node,
137
- selectedValues: PropTypes.array,
138
- checkboxVariant: PropTypes.bool,
139
- ListProps: PropTypes.object,
140
- ListItemProps: PropTypes.object,
141
- ListItemIconProps: PropTypes.object,
142
- ListItemTextProps: PropTypes.object,
143
- ListItemSecondaryActionProps: PropTypes.object,
144
- PaperProps: PropTypes.object,
145
- LeftPaperProps: PropTypes.object
146
- };
147
-
148
127
  var ToolbarInternal = function ToolbarInternal(_ref5) {
149
128
  var ToolbarProps = _ref5.ToolbarProps,
150
129
  LeftToolbarProps = _ref5.LeftToolbarProps,
@@ -188,24 +167,6 @@ var ToolbarInternal = function ToolbarInternal(_ref5) {
188
167
  }))));
189
168
  };
190
169
 
191
- ToolbarInternal.propTypes = {
192
- ToolbarProps: PropTypes.object,
193
- LeftToolbarProps: PropTypes.object,
194
- filterOptions: PropTypes.func,
195
- filterOptionsTitle: PropTypes.node,
196
- state: PropTypes.object,
197
- FilterFieldProps: PropTypes.object,
198
- sortOptions: PropTypes.func,
199
- SortIconButtonProps: PropTypes.object,
200
- SortIconProps: PropTypes.object,
201
- LeftSortIconProps: PropTypes.object,
202
- LeftFilterFieldProps: PropTypes.object,
203
- LeftSortIconButtonProps: PropTypes.object,
204
- filter: PropTypes.string,
205
- sortDesc: PropTypes.bool,
206
- isValue: PropTypes.bool
207
- };
208
-
209
170
  var DualListSelect = function DualListSelect(_ref7) {
210
171
  var handleOptionsClick = _ref7.handleOptionsClick,
211
172
  rightValues = _ref7.rightValues,
@@ -453,103 +414,6 @@ var DualListSelect = function DualListSelect(_ref7) {
453
414
  }))), text && /*#__PURE__*/React.createElement(FormHelperText, FormHelperTextProps, text)));
454
415
  };
455
416
 
456
- DualListSelect.propTypes = {
457
- leftTitle: PropTypes.node,
458
- rightTitle: PropTypes.node,
459
- moveLeftTitle: PropTypes.node,
460
- moveRightTitle: PropTypes.node,
461
- allToLeft: PropTypes.bool,
462
- allToRight: PropTypes.bool,
463
- checkboxVariant: PropTypes.bool,
464
- validateOnMount: PropTypes.bool,
465
- moveAllLeftTitle: PropTypes.node,
466
- moveAllRightTitle: PropTypes.node,
467
- label: PropTypes.node,
468
- isRequired: PropTypes.bool,
469
- helperText: PropTypes.node,
470
- noValueTitle: PropTypes.node,
471
- noOptionsTitle: PropTypes.node,
472
- filterOptionsTitle: PropTypes.node,
473
- filterValueTitle: PropTypes.node,
474
- filterValueText: PropTypes.node,
475
- filterOptionsText: PropTypes.node,
476
- description: PropTypes.node,
477
- hideLabel: PropTypes.bool,
478
- id: PropTypes.string,
479
- input: PropTypes.shape({
480
- name: PropTypes.string.isRequired
481
- }),
482
- meta: PropTypes.any,
483
- state: PropTypes.object,
484
- sortOptions: PropTypes.func,
485
- filterOptions: PropTypes.func,
486
- handleOptionsClick: PropTypes.func,
487
- leftValues: PropTypes.array,
488
- handleMoveRight: PropTypes.func,
489
- handleMoveLeft: PropTypes.func,
490
- handleClearLeftValues: PropTypes.func,
491
- handleClearRightValues: PropTypes.func,
492
- sortValues: PropTypes.func,
493
- filterValues: PropTypes.func,
494
- rightValues: PropTypes.array,
495
- handleValuesClick: PropTypes.func,
496
- isFilterable: PropTypes.bool,
497
- // props
498
- FormFieldGridProps: PropTypes.object,
499
- InternalGridProps: PropTypes.object,
500
- ListGridProps: PropTypes.object,
501
- LeftListGridProps: PropTypes.object,
502
- ListProps: PropTypes.object,
503
- LeftListProps: PropTypes.object,
504
- ButtonsGridProps: PropTypes.object,
505
- ButtonsInternalGridProps: PropTypes.object,
506
- ButtonGridProps: PropTypes.object,
507
- ToRightGridProps: PropTypes.object,
508
- IconButtonProps: PropTypes.object,
509
- ToRightIconButtonProps: PropTypes.object,
510
- AllToRightGridProps: PropTypes.object,
511
- AllToRightIconButtonProps: PropTypes.object,
512
- AllToLeftGridProps: PropTypes.object,
513
- AllToLeftIconButtonProps: PropTypes.object,
514
- ToLeftGridProps: PropTypes.object,
515
- ToLeftIconButtonProps: PropTypes.object,
516
- RightListGridProps: PropTypes.object,
517
- RightListProps: PropTypes.object,
518
- ListItemProps: PropTypes.object,
519
- ListItemIconProps: PropTypes.object,
520
- ListItemTextProps: PropTypes.object,
521
- ListItemSecondaryActionProps: PropTypes.object,
522
- LeftListItemProps: PropTypes.object,
523
- LeftListItemIconProps: PropTypes.object,
524
- LeftItemTextProps: PropTypes.object,
525
- LeftItemSecondaryActionProps: PropTypes.object,
526
- RightListItemProps: PropTypes.object,
527
- RightListItemIconProps: PropTypes.object,
528
- RightItemTextProps: PropTypes.object,
529
- RightItemSecondaryActionProps: PropTypes.object,
530
- FormControlProps: PropTypes.object,
531
- FormLabelProps: PropTypes.object,
532
- FormHelperTextProps: PropTypes.object,
533
- TitleProps: PropTypes.object,
534
- ToolbarProps: PropTypes.object,
535
- FilterFieldProps: PropTypes.object,
536
- SortIconButtonProps: PropTypes.object,
537
- SortIconProps: PropTypes.object,
538
- LeftToolbarProps: PropTypes.object,
539
- LeftFilterFieldProps: PropTypes.object,
540
- LeftSortIconButtonProps: PropTypes.object,
541
- LeftSortIconProps: PropTypes.object,
542
- LeftTitleProps: PropTypes.object,
543
- RightToolbarProps: PropTypes.object,
544
- RightFilterFieldProps: PropTypes.object,
545
- RightSortIconButtonProps: PropTypes.object,
546
- RightSortIconProps: PropTypes.object,
547
- RightTitleProps: PropTypes.object,
548
- PaperProps: PropTypes.object,
549
- LeftPaperProps: PropTypes.object,
550
- RightPaperProps: PropTypes.object
551
- };
552
-
553
417
  var DualListSelectWrapper = function DualListSelectWrapper(props) {
554
418
  return /*#__PURE__*/React.createElement(DualListSelectCommon, _extends({}, props, {
555
419
  DualListSelect: DualListSelect
@@ -15,7 +15,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15
15
 
16
16
  import React, { memo, useReducer } from 'react';
17
17
  import { styled } from '@mui/material/styles';
18
- import PropTypes from 'prop-types';
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";
21
20
  import isEqual from 'lodash/isEqual';
@@ -110,19 +109,6 @@ var ArrayItem = /*#__PURE__*/memo(function (_ref) {
110
109
 
111
110
  return isEqual(prev, next);
112
111
  });
113
- ArrayItem.propTypes = {
114
- name: PropTypes.string,
115
- fieldIndex: PropTypes.number.isRequired,
116
- fields: PropTypes.arrayOf(PropTypes.object),
117
- remove: PropTypes.func.isRequired,
118
- length: PropTypes.number,
119
- minItems: PropTypes.number,
120
- removeLabel: PropTypes.node.isRequired,
121
- FieldContainerProps: PropTypes.object,
122
- FieldGroupGridProps: PropTypes.object,
123
- RemoveButtonGridProps: PropTypes.object,
124
- RemoveButtonProps: PropTypes.object
125
- };
126
112
  var defaultButtonLabels = {
127
113
  add: 'ADD',
128
114
  remove: 'REMOVE'
@@ -344,32 +330,4 @@ var DynamicArray = function DynamicArray(_ref5) {
344
330
  })));
345
331
  };
346
332
 
347
- DynamicArray.propTypes = {
348
- label: PropTypes.node,
349
- description: PropTypes.node,
350
- fields: PropTypes.arrayOf(PropTypes.object).isRequired,
351
- defaultItem: PropTypes.any,
352
- minItems: PropTypes.number,
353
- maxItems: PropTypes.number,
354
- noItemsMessage: PropTypes.node,
355
- FormControlProps: PropTypes.object,
356
- FormFieldGridProps: PropTypes.object,
357
- buttonLabels: PropTypes.object,
358
- GridContainerProps: PropTypes.object,
359
- HeaderGridProps: PropTypes.object,
360
- HeaderProps: PropTypes.object,
361
- UndoButtonProps: PropTypes.object,
362
- RedoButtonProps: PropTypes.object,
363
- AddButtonProps: PropTypes.object,
364
- DescriptionGridProps: PropTypes.object,
365
- DescriptionProps: PropTypes.object,
366
- BodyGridProps: PropTypes.object,
367
- NoItemsProps: PropTypes.object,
368
- FormHelperTextGridProps: PropTypes.object,
369
- FormHelperTextProps: PropTypes.object,
370
- FieldContainerProps: PropTypes.object,
371
- FieldGroupGridProps: PropTypes.object,
372
- RemoveButtonGridProps: PropTypes.object,
373
- RemoveButtonProps: PropTypes.object
374
- };
375
333
  export default DynamicArray;
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["children", "className"];
5
5
  import React from 'react';
6
6
  import { styled } from '@mui/material/styles';
7
- import PropTypes from 'prop-types';
8
7
  import Grid from "@mui/material/Grid";
9
8
  import clsx from 'clsx';
10
9
  var PREFIX = 'FormFieldGrid';
@@ -27,8 +26,4 @@ var FormFieldGrid = function FormFieldGrid(_ref) {
27
26
  }, props), children);
28
27
  };
29
28
 
30
- FormFieldGrid.propTypes = {
31
- children: PropTypes.node,
32
- className: PropTypes.string
33
- };
34
29
  export default FormFieldGrid;
@@ -10,7 +10,6 @@ var _excluded = ["children", "GridContainerProps", "GridProps"],
10
10
  _excluded6 = ["title", "description", "TitleProps", "className"];
11
11
  import React from 'react';
12
12
  import { styled } from '@mui/material/styles';
13
- import PropTypes from 'prop-types';
14
13
  import Grid from "@mui/material/Grid";
15
14
  import MUIButton from "@mui/material/Button";
16
15
  import Typography from "@mui/material/Typography";
@@ -51,12 +50,6 @@ var Form = function Form(_ref2) {
51
50
  }, GridContainerProps), children)));
52
51
  };
53
52
 
54
- Form.propTypes = {
55
- children: PropTypes.node,
56
- GridProps: PropTypes.object,
57
- GridContainerProps: PropTypes.object
58
- };
59
-
60
53
  var Description = function Description(_ref3) {
61
54
  var children = _ref3.children,
62
55
  GridProps = _ref3.GridProps,
@@ -71,11 +64,6 @@ var Description = function Description(_ref3) {
71
64
  }, props), children));
72
65
  };
73
66
 
74
- Description.propTypes = {
75
- children: PropTypes.node,
76
- GridProps: PropTypes.object
77
- };
78
-
79
67
  var Title = function Title(_ref4) {
80
68
  var children = _ref4.children,
81
69
  GridProps = _ref4.GridProps,
@@ -90,11 +78,6 @@ var Title = function Title(_ref4) {
90
78
  }, props), children));
91
79
  };
92
80
 
93
- Title.propTypes = {
94
- children: PropTypes.node,
95
- GridProps: PropTypes.object
96
- };
97
-
98
81
  var ButtonGroup = function ButtonGroup(_ref5) {
99
82
  var children = _ref5.children,
100
83
  GridProps = _ref5.GridProps,
@@ -108,11 +91,6 @@ var ButtonGroup = function ButtonGroup(_ref5) {
108
91
  }, props), children));
109
92
  };
110
93
 
111
- ButtonGroup.propTypes = {
112
- children: PropTypes.node,
113
- GridProps: PropTypes.object
114
- };
115
-
116
94
  var Button = function Button(_ref6) {
117
95
  var label = _ref6.label,
118
96
  variant = _ref6.variant,
@@ -126,12 +104,6 @@ var Button = function Button(_ref6) {
126
104
  }, props), label || children);
127
105
  };
128
106
 
129
- Button.propTypes = {
130
- children: PropTypes.node,
131
- label: PropTypes.node,
132
- variant: PropTypes.string,
133
- buttonType: PropTypes.string
134
- };
135
107
  var StyledAlert = styled(Alert)(function () {
136
108
  return {
137
109
  '& .alert': {
@@ -168,10 +140,6 @@ export var FormError = function FormError(_ref7) {
168
140
 
169
141
  return null;
170
142
  };
171
- FormError.propTypes = {
172
- formError: PropTypes.any,
173
- alertProps: PropTypes.object
174
- };
175
143
 
176
144
  var MuiFormTemplate = function MuiFormTemplate(props) {
177
145
  return /*#__PURE__*/React.createElement(FormTemplate, _extends({
@@ -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 = ["label", "isDisabled"],
5
4
  _excluded2 = ["initialValue", "isRequired", "isReadOnly", "helperText", "validate", "isDisabled", "component"],
6
5
  _excluded3 = ["FormControlProps", "FormLabelProps", "FormGroupProps", "FormHelperTextProps", "FormFieldGridProps", "FormControlLabelProps", "CheckboxProps"];
7
-
8
- 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; }
9
-
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
-
12
6
  import React, { createContext, useContext } from 'react';
13
- import PropTypes from 'prop-types';
14
7
  import Grid from "@mui/material/Grid";
15
8
  import Checkbox from "@mui/material/Checkbox";
16
9
  import FormControlLabel from "@mui/material/FormControlLabel";
@@ -18,7 +11,7 @@ import FormLabel from "@mui/material/FormLabel";
18
11
  import FormGroup from "@mui/material/FormGroup";
19
12
  import FormControl from "@mui/material/FormControl";
20
13
  import FormHelperText from "@mui/material/FormHelperText";
21
- import MultipleChoiceListCommon, { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
14
+ import MultipleChoiceListCommon from '@data-driven-forms/common/multiple-choice-list';
22
15
  import { validationError } from '../validation-error/validation-error';
23
16
  var CheckboxContext = /*#__PURE__*/createContext({});
24
17
 
@@ -48,11 +41,6 @@ var FinalCheckbox = function FinalCheckbox(_ref) {
48
41
  }));
49
42
  };
50
43
 
51
- FinalCheckbox.propTypes = {
52
- isDisabled: PropTypes.bool,
53
- label: PropTypes.node
54
- };
55
-
56
44
  var Wrapper = function Wrapper(_ref2) {
57
45
  var label = _ref2.label,
58
46
  isRequired = _ref2.isRequired,
@@ -81,8 +69,6 @@ var Wrapper = function Wrapper(_ref2) {
81
69
  }, FormControlProps), /*#__PURE__*/React.createElement(FormLabel, FormLabelProps, label), /*#__PURE__*/React.createElement(FormGroup, FormGroupProps, children), (invalid || helperText || description) && /*#__PURE__*/React.createElement(FormHelperText, FormHelperTextProps, invalid || helperText || description)));
82
70
  };
83
71
 
84
- Wrapper.propTypes = _objectSpread({}, wrapperProps);
85
-
86
72
  var MultipleChoiceList = function MultipleChoiceList(_ref3) {
87
73
  var _ref3$FormControlProp = _ref3.FormControlProps,
88
74
  FormControlProps = _ref3$FormControlProp === void 0 ? {} : _ref3$FormControlProp,
@@ -117,16 +103,4 @@ var MultipleChoiceList = function MultipleChoiceList(_ref3) {
117
103
  })));
118
104
  };
119
105
 
120
- MultipleChoiceList.propTypes = {
121
- input: PropTypes.shape({
122
- name: PropTypes.string.isRequired
123
- }),
124
- FormFieldGridProps: PropTypes.object,
125
- FormControlProps: PropTypes.object,
126
- FormGroupProps: PropTypes.object,
127
- FormControlLabelProps: PropTypes.object,
128
- CheckboxProps: PropTypes.object,
129
- FormLabelProps: PropTypes.object,
130
- FormHelperTextProps: PropTypes.object
131
- };
132
106
  export default MultipleChoiceList;
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["label", "name", "component", "element", "variant", "gutterBottom"];
4
4
  import React from 'react';
5
5
  import Typography from "@mui/material/Typography";
6
- import PropTypes from 'prop-types';
7
6
 
8
7
  var PlainText = function PlainText(_ref) {
9
8
  var label = _ref.label,
@@ -29,12 +28,4 @@ var PlainText = function PlainText(_ref) {
29
28
  }), label);
30
29
  };
31
30
 
32
- PlainText.propTypes = {
33
- label: PropTypes.node.isRequired,
34
- name: PropTypes.string.isRequired,
35
- component: PropTypes.any,
36
- element: PropTypes.elementType,
37
- gutterBottom: PropTypes.bool,
38
- variant: PropTypes.string
39
- };
40
31
  export default PlainText;
@@ -12,13 +12,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12
12
 
13
13
  import React from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
- import PropTypes from 'prop-types';
16
15
  import MUIRadio from "@mui/material/Radio";
17
16
  import FormControlLabel from "@mui/material/FormControlLabel";
18
17
  import FormControl from "@mui/material/FormControl";
19
18
  import FormLabel from "@mui/material/FormLabel";
20
19
  import FormHelperText from "@mui/material/FormHelperText";
21
- import { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
22
20
  import FormFieldGrid from '../form-field-grid/form-field-grid';
23
21
  import { validationError } from '../validation-error/validation-error';
24
22
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -68,18 +66,6 @@ var RadioOption = function RadioOption(_ref2) {
68
66
  }, FormControlLabelProps, props));
69
67
  };
70
68
 
71
- RadioOption.propTypes = {
72
- name: PropTypes.string.isRequired,
73
- option: PropTypes.shape({
74
- label: PropTypes.node.isRequired,
75
- value: PropTypes.any.isRequired
76
- }).isRequired,
77
- isReadOnly: PropTypes.bool,
78
- isDisabled: PropTypes.bool,
79
- FormControlLabelProps: PropTypes.object,
80
- RadioProps: PropTypes.object
81
- };
82
-
83
69
  var Radio = function Radio(_ref3) {
84
70
  var name = _ref3.name,
85
71
  props = _objectWithoutProperties(_ref3, _excluded3);
@@ -135,19 +121,4 @@ var Radio = function Radio(_ref3) {
135
121
  }), text && /*#__PURE__*/React.createElement(FormHelperText, FormHelperTextProps, text)));
136
122
  };
137
123
 
138
- Radio.propTypes = _objectSpread(_objectSpread({}, wrapperProps), {}, {
139
- options: PropTypes.arrayOf(PropTypes.shape({
140
- value: PropTypes.any,
141
- label: PropTypes.node
142
- })),
143
- label: PropTypes.node.isRequired,
144
- isDisabled: PropTypes.bool,
145
- description: PropTypes.node,
146
- FormFieldGridProps: PropTypes.object,
147
- FormControlProps: PropTypes.object,
148
- FormControlLabelProps: PropTypes.object,
149
- RadioProps: PropTypes.object,
150
- FormLabelProps: PropTypes.object,
151
- FormHelperTextProps: PropTypes.object
152
- });
153
124
  export default Radio;
@@ -11,10 +11,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11
11
  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; }
12
12
 
13
13
  import React, { useMemo } from 'react';
14
- import PropTypes from 'prop-types';
15
14
  import FormFieldGrid from '../form-field-grid/form-field-grid';
16
15
  import { validationError } from '../validation-error/validation-error';
17
- import { meta } from '@data-driven-forms/common/prop-types-templates';
18
16
  import DDFSelect from '@data-driven-forms/common/select';
19
17
  import parseInternalValue from '@data-driven-forms/common/select/parse-internal-value';
20
18
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -161,39 +159,6 @@ var InternalSelect = function InternalSelect(_ref2) {
161
159
  })));
162
160
  };
163
161
 
164
- InternalSelect.propTypes = {
165
- meta: meta,
166
- placeholder: PropTypes.node,
167
- label: PropTypes.node,
168
- helperText: PropTypes.node,
169
- validateOnMount: PropTypes.bool,
170
- isSearchable: PropTypes.bool,
171
- options: PropTypes.arrayOf(PropTypes.shape({
172
- value: PropTypes.any.isRequired,
173
- label: PropTypes.node.isRequired
174
- })).isRequired,
175
- description: PropTypes.node,
176
- FormFieldGridProps: PropTypes.object,
177
- value: PropTypes.any,
178
- isClearable: PropTypes.bool,
179
- classNamePrefix: PropTypes.string,
180
- isMulti: PropTypes.bool,
181
- loadingMessage: PropTypes.node,
182
- onInputChange: PropTypes.func,
183
- isFetching: PropTypes.bool,
184
- noOptionsMessage: PropTypes.func,
185
- closeMenuOnSelect: PropTypes.bool,
186
- onChange: PropTypes.func.isRequired,
187
- hideSelectedOptions: PropTypes.bool,
188
- required: PropTypes.bool,
189
- onFocus: PropTypes.func,
190
- onBlur: PropTypes.func,
191
- TextFieldProps: PropTypes.object,
192
- inputProps: PropTypes.object,
193
- isDisabled: PropTypes.bool,
194
- loadingText: PropTypes.node
195
- };
196
-
197
162
  var Select = function Select(props) {
198
163
  var _useFieldApi = useFieldApi(props),
199
164
  input = _useFieldApi.input,
@@ -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", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormFieldGridProps", "FormControlProps", "FormGroupProps", "FormLabelProps", "FormHelperTextProps", "before", "after", "InputGridProps", "BeforeGridProps", "SliderGridProps", "AfterGridProps"];
4
4
  import React from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import FormControl from "@mui/material/FormControl";
7
6
  import FormGroup from "@mui/material/FormGroup";
8
7
  import FormHelperText from "@mui/material/FormHelperText";
@@ -67,24 +66,4 @@ var Slider = function Slider(props) {
67
66
  }, AfterGridProps), after)), text && /*#__PURE__*/React.createElement(FormHelperText, FormHelperTextProps, text))));
68
67
  };
69
68
 
70
- Slider.propTypes = {
71
- isReadOnly: PropTypes.bool,
72
- isDisabled: PropTypes.bool,
73
- isRequired: PropTypes.bool,
74
- label: PropTypes.node,
75
- helperText: PropTypes.node,
76
- description: PropTypes.node,
77
- validateOnMount: PropTypes.bool,
78
- FormFieldGridProps: PropTypes.object,
79
- FormControlProps: PropTypes.object,
80
- FormGroupProps: PropTypes.object,
81
- FormLabelProps: PropTypes.object,
82
- FormHelperTextProps: PropTypes.object,
83
- before: PropTypes.node,
84
- after: PropTypes.node,
85
- InputGridProps: PropTypes.object,
86
- BeforeGridProps: PropTypes.object,
87
- SliderGridProps: PropTypes.object,
88
- AfterGridProps: PropTypes.object
89
- };
90
69
  export default Slider;
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["fields", "title", "description", "component", "TitleGridProps", "TitleProps", "DescriptionProps", "DescriptionGridProps", "ItemsGridProps"];
5
5
  import React from 'react';
6
6
  import { styled } from '@mui/material/styles';
7
- import PropTypes from 'prop-types';
8
7
  import Typography from "@mui/material/Typography";
9
8
  import Grid from "@mui/material/Grid";
10
9
  import useFormApi from "@data-driven-forms/react-form-renderer/use-form-api";
@@ -57,15 +56,4 @@ var SubForm = function SubForm(_ref2) {
57
56
  }, ItemsGridProps), renderForm(fields)));
58
57
  };
59
58
 
60
- SubForm.propTypes = {
61
- fields: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired,
62
- title: PropTypes.node,
63
- description: PropTypes.node,
64
- component: PropTypes.any,
65
- TitleGridProps: PropTypes.object,
66
- TitleProps: PropTypes.object,
67
- DescriptionProps: PropTypes.object,
68
- DescriptionGridProps: PropTypes.object,
69
- ItemsGridProps: PropTypes.object
70
- };
71
59
  export default SubForm;
@@ -8,14 +8,12 @@ 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 FormControlLabel from "@mui/material/FormControlLabel";
13
12
  import FormHelperText from "@mui/material/FormHelperText";
14
13
  import FormControl from "@mui/material/FormControl";
15
14
  import FormGroup from "@mui/material/FormGroup";
16
15
  import FormLabel from "@mui/material/FormLabel";
17
16
  import MUISwitch from "@mui/material/Switch";
18
- import { meta, input } from '@data-driven-forms/common/prop-types-templates';
19
17
  import FormFieldGrid from '../form-field-grid/form-field-grid';
20
18
  import { validationError } from '../validation-error/validation-error';
21
19
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -68,24 +66,4 @@ export var Switch = function Switch(props) {
68
66
  label: /*#__PURE__*/React.createElement(FormLabel, FormLabelProps, input.checked ? onText || label : offText || label)
69
67
  }, FormControlLabelProps)), text && /*#__PURE__*/React.createElement(FormHelperText, FormHelperTextProps, text))));
70
68
  };
71
- Switch.propTypes = {
72
- input: input,
73
- meta: meta,
74
- isReadOnly: PropTypes.bool,
75
- isDisabled: PropTypes.bool,
76
- isRequired: PropTypes.bool,
77
- label: PropTypes.node,
78
- helperText: PropTypes.node,
79
- validateOnMount: PropTypes.bool,
80
- onText: PropTypes.node,
81
- offText: PropTypes.node,
82
- description: PropTypes.node,
83
- FormFieldGridProps: PropTypes.object,
84
- FormControlProps: PropTypes.object,
85
- FormGroupProps: PropTypes.object,
86
- FormControlLabelProps: PropTypes.object,
87
- SwitchProps: PropTypes.object,
88
- FormLabelProps: PropTypes.object,
89
- FormHelperTextProps: PropTypes.object
90
- };
91
69
  export default Switch;
package/esm/tabs/tabs.js CHANGED
@@ -7,7 +7,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
7
7
  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; }
8
8
 
9
9
  import React, { useState } from 'react';
10
- import PropTypes from 'prop-types';
11
10
  import AppBar from "@mui/material/AppBar";
12
11
  import Grid from "@mui/material/Grid";
13
12
  import Tab from "@mui/material/Tab";
@@ -69,14 +68,6 @@ var FormTabs = function FormTabs(_ref) {
69
68
  }));
70
69
  };
71
70
 
72
- FormTabs.propTypes = {
73
- fields: PropTypes.array.isRequired,
74
- AppBarProps: PropTypes.object,
75
- TabsProps: PropTypes.object,
76
- TabProps: PropTypes.object,
77
- FormFieldGridProps: PropTypes.object,
78
- GridItemProps: PropTypes.object
79
- };
80
71
  export default FormTabs;
81
72
  /*
82
73
  {fields.map(({ fields }, index) =>
@@ -8,11 +8,9 @@ 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 MuiTextField from "@mui/material/TextField";
13
12
  import FormFieldGrid from '../form-field-grid/form-field-grid';
14
13
  import { validationError } from '../validation-error/validation-error';
15
- import { meta, input } from '@data-driven-forms/common/prop-types-templates';
16
14
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
17
15
 
18
16
  var TextField = function TextField(props) {
@@ -46,18 +44,4 @@ var TextField = function TextField(props) {
46
44
  }, rest)));
47
45
  };
48
46
 
49
- TextField.propTypes = {
50
- input: input,
51
- meta: meta,
52
- isReadOnly: PropTypes.bool,
53
- isDisabled: PropTypes.bool,
54
- placeholder: PropTypes.node,
55
- isRequired: PropTypes.bool,
56
- label: PropTypes.node,
57
- helperText: PropTypes.node,
58
- validateOnMount: PropTypes.bool,
59
- description: PropTypes.node,
60
- inputProps: PropTypes.object,
61
- FormFieldGridProps: PropTypes.object
62
- };
63
47
  export default TextField;