@data-driven-forms/carbon-component-mapper 3.22.1 → 3.22.3

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.
@@ -28,7 +28,8 @@ var _excluded = ["input", "datePickerType", "meta", "DatePickerProps", "validate
28
28
  var DatePicker = function DatePicker(props) {
29
29
  var _useFieldApi = (0, _useFieldApi2["default"])((0, _prepareProps["default"])(props)),
30
30
  input = _useFieldApi.input,
31
- datePickerType = _useFieldApi.datePickerType,
31
+ _useFieldApi$datePick = _useFieldApi.datePickerType,
32
+ datePickerType = _useFieldApi$datePick === void 0 ? 'single' : _useFieldApi$datePick,
32
33
  meta = _useFieldApi.meta,
33
34
  DatePickerProps = _useFieldApi.DatePickerProps,
34
35
  validateOnMount = _useFieldApi.validateOnMount,
@@ -57,8 +58,5 @@ DatePicker.propTypes = {
57
58
  DatePickerProps: _propTypes["default"].object,
58
59
  WrapperProps: _propTypes["default"].object
59
60
  };
60
- DatePicker.defaultProps = {
61
- datePickerType: 'single'
62
- };
63
61
  var _default = DatePicker;
64
62
  exports["default"] = _default;
@@ -191,46 +191,82 @@ var DualListSelectInner = function DualListSelectInner(_ref5) {
191
191
  filterValues = _ref5.filterValues,
192
192
  sortOptions = _ref5.sortOptions,
193
193
  sortValues = _ref5.sortValues,
194
- noOptionsTitle = _ref5.noOptionsTitle,
195
- noValueTitle = _ref5.noValueTitle,
196
- leftTitle = _ref5.leftTitle,
197
- rightTitle = _ref5.rightTitle,
198
- LeftTitleElement = _ref5.LeftTitleElement,
199
- RightTitleElement = _ref5.RightTitleElement,
200
194
  LeftTitleProps = _ref5.LeftTitleProps,
201
195
  RightTitleProps = _ref5.RightTitleProps,
202
- moveLeftTitle = _ref5.moveLeftTitle,
203
- moveRightTitle = _ref5.moveRightTitle,
204
- moveAllLeftTitle = _ref5.moveAllLeftTitle,
205
- moveAllRightTitle = _ref5.moveAllRightTitle,
206
196
  label = _ref5.label,
207
197
  isRequired = _ref5.isRequired,
208
- filterOptionsTitle = _ref5.filterOptionsTitle,
209
- filterValuesTitle = _ref5.filterValuesTitle,
210
- sortOptionsTitle = _ref5.sortOptionsTitle,
211
- sortValuesTitle = _ref5.sortValuesTitle,
212
- filterOptionsText = _ref5.filterOptionsText,
213
- filterValueText = _ref5.filterValueText,
214
- FormGroupProps = _ref5.FormGroupProps,
215
- GridProps = _ref5.GridProps,
216
- RowProps = _ref5.RowProps,
217
- OptionsColumnProps = _ref5.OptionsColumnProps,
218
- ButtonColumnProps = _ref5.ButtonColumnProps,
219
- ValuesColumnProps = _ref5.ValuesColumnProps,
220
- AddButtonProps = _ref5.AddButtonProps,
221
- AddAllButtonProps = _ref5.AddAllButtonProps,
222
- RemoveButtonProps = _ref5.RemoveButtonProps,
223
- RemoveAllButtonProps = _ref5.RemoveAllButtonProps,
224
- LeftToolbarProps = _ref5.LeftToolbarProps,
225
- RightToolbarProps = _ref5.RightToolbarProps,
226
- LeftSearchProps = _ref5.LeftSearchProps,
227
- RightSearchProps = _ref5.RightSearchProps,
228
- LeftSortProps = _ref5.LeftSortProps,
229
- RightSortProps = _ref5.RightSortProps,
230
- LeftListProps = _ref5.LeftListProps,
231
- LeftBodyProps = _ref5.LeftBodyProps,
232
- RightListProps = _ref5.RightListProps,
233
- RightBodyProps = _ref5.RightBodyProps;
198
+ _ref5$noOptionsTitle = _ref5.noOptionsTitle,
199
+ noOptionsTitle = _ref5$noOptionsTitle === void 0 ? 'No option available' : _ref5$noOptionsTitle,
200
+ _ref5$noValueTitle = _ref5.noValueTitle,
201
+ noValueTitle = _ref5$noValueTitle === void 0 ? 'No option selected' : _ref5$noValueTitle,
202
+ _ref5$leftTitle = _ref5.leftTitle,
203
+ leftTitle = _ref5$leftTitle === void 0 ? 'Options' : _ref5$leftTitle,
204
+ _ref5$rightTitle = _ref5.rightTitle,
205
+ rightTitle = _ref5$rightTitle === void 0 ? 'Selected' : _ref5$rightTitle,
206
+ _ref5$LeftTitleElemen = _ref5.LeftTitleElement,
207
+ LeftTitleElement = _ref5$LeftTitleElemen === void 0 ? 'h6' : _ref5$LeftTitleElemen,
208
+ _ref5$RightTitleEleme = _ref5.RightTitleElement,
209
+ RightTitleElement = _ref5$RightTitleEleme === void 0 ? 'h6' : _ref5$RightTitleEleme,
210
+ _ref5$moveLeftTitle = _ref5.moveLeftTitle,
211
+ moveLeftTitle = _ref5$moveLeftTitle === void 0 ? 'Remove' : _ref5$moveLeftTitle,
212
+ _ref5$moveRightTitle = _ref5.moveRightTitle,
213
+ moveRightTitle = _ref5$moveRightTitle === void 0 ? 'Add' : _ref5$moveRightTitle,
214
+ _ref5$moveAllLeftTitl = _ref5.moveAllLeftTitle,
215
+ moveAllLeftTitle = _ref5$moveAllLeftTitl === void 0 ? 'Remove All' : _ref5$moveAllLeftTitl,
216
+ _ref5$moveAllRightTit = _ref5.moveAllRightTitle,
217
+ moveAllRightTitle = _ref5$moveAllRightTit === void 0 ? 'Add All' : _ref5$moveAllRightTit,
218
+ _ref5$filterOptionsTi = _ref5.filterOptionsTitle,
219
+ filterOptionsTitle = _ref5$filterOptionsTi === void 0 ? 'Filter options' : _ref5$filterOptionsTi,
220
+ _ref5$filterValuesTit = _ref5.filterValuesTitle,
221
+ filterValuesTitle = _ref5$filterValuesTit === void 0 ? 'Filter values' : _ref5$filterValuesTit,
222
+ _ref5$sortOptionsTitl = _ref5.sortOptionsTitle,
223
+ sortOptionsTitle = _ref5$sortOptionsTitl === void 0 ? 'Sort options' : _ref5$sortOptionsTitl,
224
+ _ref5$sortValuesTitle = _ref5.sortValuesTitle,
225
+ sortValuesTitle = _ref5$sortValuesTitle === void 0 ? 'Sort values' : _ref5$sortValuesTitle,
226
+ _ref5$filterOptionsTe = _ref5.filterOptionsText,
227
+ filterOptionsText = _ref5$filterOptionsTe === void 0 ? 'Remove your filter to see all options' : _ref5$filterOptionsTe,
228
+ _ref5$filterValueText = _ref5.filterValueText,
229
+ filterValueText = _ref5$filterValueText === void 0 ? 'Remove your filter to see all selected' : _ref5$filterValueText,
230
+ _ref5$FormGroupProps = _ref5.FormGroupProps,
231
+ FormGroupProps = _ref5$FormGroupProps === void 0 ? {} : _ref5$FormGroupProps,
232
+ _ref5$GridProps = _ref5.GridProps,
233
+ GridProps = _ref5$GridProps === void 0 ? {} : _ref5$GridProps,
234
+ _ref5$RowProps = _ref5.RowProps,
235
+ RowProps = _ref5$RowProps === void 0 ? {} : _ref5$RowProps,
236
+ _ref5$OptionsColumnPr = _ref5.OptionsColumnProps,
237
+ OptionsColumnProps = _ref5$OptionsColumnPr === void 0 ? {} : _ref5$OptionsColumnPr,
238
+ _ref5$ButtonColumnPro = _ref5.ButtonColumnProps,
239
+ ButtonColumnProps = _ref5$ButtonColumnPro === void 0 ? {} : _ref5$ButtonColumnPro,
240
+ _ref5$ValuesColumnPro = _ref5.ValuesColumnProps,
241
+ ValuesColumnProps = _ref5$ValuesColumnPro === void 0 ? {} : _ref5$ValuesColumnPro,
242
+ _ref5$AddButtonProps = _ref5.AddButtonProps,
243
+ AddButtonProps = _ref5$AddButtonProps === void 0 ? {} : _ref5$AddButtonProps,
244
+ _ref5$AddAllButtonPro = _ref5.AddAllButtonProps,
245
+ AddAllButtonProps = _ref5$AddAllButtonPro === void 0 ? {} : _ref5$AddAllButtonPro,
246
+ _ref5$RemoveButtonPro = _ref5.RemoveButtonProps,
247
+ RemoveButtonProps = _ref5$RemoveButtonPro === void 0 ? {} : _ref5$RemoveButtonPro,
248
+ _ref5$RemoveAllButton = _ref5.RemoveAllButtonProps,
249
+ RemoveAllButtonProps = _ref5$RemoveAllButton === void 0 ? {} : _ref5$RemoveAllButton,
250
+ _ref5$LeftToolbarProp = _ref5.LeftToolbarProps,
251
+ LeftToolbarProps = _ref5$LeftToolbarProp === void 0 ? {} : _ref5$LeftToolbarProp,
252
+ _ref5$RightToolbarPro = _ref5.RightToolbarProps,
253
+ RightToolbarProps = _ref5$RightToolbarPro === void 0 ? {} : _ref5$RightToolbarPro,
254
+ _ref5$LeftSearchProps = _ref5.LeftSearchProps,
255
+ LeftSearchProps = _ref5$LeftSearchProps === void 0 ? {} : _ref5$LeftSearchProps,
256
+ _ref5$RightSearchProp = _ref5.RightSearchProps,
257
+ RightSearchProps = _ref5$RightSearchProp === void 0 ? {} : _ref5$RightSearchProp,
258
+ _ref5$LeftSortProps = _ref5.LeftSortProps,
259
+ LeftSortProps = _ref5$LeftSortProps === void 0 ? {} : _ref5$LeftSortProps,
260
+ _ref5$RightSortProps = _ref5.RightSortProps,
261
+ RightSortProps = _ref5$RightSortProps === void 0 ? {} : _ref5$RightSortProps,
262
+ _ref5$LeftListProps = _ref5.LeftListProps,
263
+ LeftListProps = _ref5$LeftListProps === void 0 ? {} : _ref5$LeftListProps,
264
+ _ref5$LeftBodyProps = _ref5.LeftBodyProps,
265
+ LeftBodyProps = _ref5$LeftBodyProps === void 0 ? {} : _ref5$LeftBodyProps,
266
+ _ref5$RightListProps = _ref5.RightListProps,
267
+ RightListProps = _ref5$RightListProps === void 0 ? {} : _ref5$RightListProps,
268
+ _ref5$RightBodyProps = _ref5.RightBodyProps,
269
+ RightBodyProps = _ref5$RightBodyProps === void 0 ? {} : _ref5$RightBodyProps;
234
270
 
235
271
  var _useStyles3 = useStyles(),
236
272
  buttonWrapper = _useStyles3.buttonWrapper;
@@ -361,44 +397,6 @@ DualListSelectInner.propTypes = {
361
397
  RightListProps: _propTypes["default"].object,
362
398
  RightBodyProps: _propTypes["default"].object
363
399
  };
364
- DualListSelectInner.defaultProps = {
365
- noOptionsTitle: 'No option available',
366
- noValueTitle: 'No option selected',
367
- leftTitle: 'Options',
368
- rightTitle: 'Selected',
369
- LeftTitleElement: 'h6',
370
- RightTitleElement: 'h6',
371
- moveLeftTitle: 'Remove',
372
- moveRightTitle: 'Add',
373
- moveAllLeftTitle: 'Remove All',
374
- moveAllRightTitle: 'Add All',
375
- filterOptionsTitle: 'Filter options',
376
- filterValuesTitle: 'Filter values',
377
- sortOptionsTitle: 'Sort options',
378
- sortValuesTitle: 'Sort values',
379
- filterOptionsText: 'Remove your filter to see all options',
380
- filterValueText: 'Remove your filter to see all selected',
381
- FormGroupProps: {},
382
- GridProps: {},
383
- RowProps: {},
384
- OptionsColumnProps: {},
385
- ButtonColumnProps: {},
386
- ValuesColumnProps: {},
387
- AddButtonProps: {},
388
- AddAllButtonProps: {},
389
- RemoveButtonProps: {},
390
- RemoveAllButtonProps: {},
391
- LeftToolbarProps: {},
392
- RightToolbarProps: {},
393
- LeftSearchProps: {},
394
- RightSearchProps: {},
395
- LeftSortProps: {},
396
- RightSortProps: {},
397
- LeftListProps: {},
398
- LeftBodyProps: {},
399
- RightListProps: {},
400
- RightBodyProps: {}
401
- };
402
400
 
403
401
  var DualListSelect = function DualListSelect(props) {
404
402
  return /*#__PURE__*/_react["default"].createElement(_dualListSelect["default"], (0, _extends2["default"])({}, props, {
@@ -11,7 +11,8 @@ import HelperTextBlock from '../helper-text-block/helper-text-block';
11
11
  var DatePicker = function DatePicker(props) {
12
12
  var _useFieldApi = useFieldApi(prepareProps(props)),
13
13
  input = _useFieldApi.input,
14
- datePickerType = _useFieldApi.datePickerType,
14
+ _useFieldApi$datePick = _useFieldApi.datePickerType,
15
+ datePickerType = _useFieldApi$datePick === void 0 ? 'single' : _useFieldApi$datePick,
15
16
  meta = _useFieldApi.meta,
16
17
  DatePickerProps = _useFieldApi.DatePickerProps,
17
18
  validateOnMount = _useFieldApi.validateOnMount,
@@ -40,7 +41,4 @@ DatePicker.propTypes = {
40
41
  DatePickerProps: PropTypes.object,
41
42
  WrapperProps: PropTypes.object
42
43
  };
43
- DatePicker.defaultProps = {
44
- datePickerType: 'single'
45
- };
46
44
  export default DatePicker;
@@ -173,46 +173,82 @@ var DualListSelectInner = function DualListSelectInner(_ref5) {
173
173
  filterValues = _ref5.filterValues,
174
174
  sortOptions = _ref5.sortOptions,
175
175
  sortValues = _ref5.sortValues,
176
- noOptionsTitle = _ref5.noOptionsTitle,
177
- noValueTitle = _ref5.noValueTitle,
178
- leftTitle = _ref5.leftTitle,
179
- rightTitle = _ref5.rightTitle,
180
- LeftTitleElement = _ref5.LeftTitleElement,
181
- RightTitleElement = _ref5.RightTitleElement,
182
176
  LeftTitleProps = _ref5.LeftTitleProps,
183
177
  RightTitleProps = _ref5.RightTitleProps,
184
- moveLeftTitle = _ref5.moveLeftTitle,
185
- moveRightTitle = _ref5.moveRightTitle,
186
- moveAllLeftTitle = _ref5.moveAllLeftTitle,
187
- moveAllRightTitle = _ref5.moveAllRightTitle,
188
178
  label = _ref5.label,
189
179
  isRequired = _ref5.isRequired,
190
- filterOptionsTitle = _ref5.filterOptionsTitle,
191
- filterValuesTitle = _ref5.filterValuesTitle,
192
- sortOptionsTitle = _ref5.sortOptionsTitle,
193
- sortValuesTitle = _ref5.sortValuesTitle,
194
- filterOptionsText = _ref5.filterOptionsText,
195
- filterValueText = _ref5.filterValueText,
196
- FormGroupProps = _ref5.FormGroupProps,
197
- GridProps = _ref5.GridProps,
198
- RowProps = _ref5.RowProps,
199
- OptionsColumnProps = _ref5.OptionsColumnProps,
200
- ButtonColumnProps = _ref5.ButtonColumnProps,
201
- ValuesColumnProps = _ref5.ValuesColumnProps,
202
- AddButtonProps = _ref5.AddButtonProps,
203
- AddAllButtonProps = _ref5.AddAllButtonProps,
204
- RemoveButtonProps = _ref5.RemoveButtonProps,
205
- RemoveAllButtonProps = _ref5.RemoveAllButtonProps,
206
- LeftToolbarProps = _ref5.LeftToolbarProps,
207
- RightToolbarProps = _ref5.RightToolbarProps,
208
- LeftSearchProps = _ref5.LeftSearchProps,
209
- RightSearchProps = _ref5.RightSearchProps,
210
- LeftSortProps = _ref5.LeftSortProps,
211
- RightSortProps = _ref5.RightSortProps,
212
- LeftListProps = _ref5.LeftListProps,
213
- LeftBodyProps = _ref5.LeftBodyProps,
214
- RightListProps = _ref5.RightListProps,
215
- RightBodyProps = _ref5.RightBodyProps;
180
+ _ref5$noOptionsTitle = _ref5.noOptionsTitle,
181
+ noOptionsTitle = _ref5$noOptionsTitle === void 0 ? 'No option available' : _ref5$noOptionsTitle,
182
+ _ref5$noValueTitle = _ref5.noValueTitle,
183
+ noValueTitle = _ref5$noValueTitle === void 0 ? 'No option selected' : _ref5$noValueTitle,
184
+ _ref5$leftTitle = _ref5.leftTitle,
185
+ leftTitle = _ref5$leftTitle === void 0 ? 'Options' : _ref5$leftTitle,
186
+ _ref5$rightTitle = _ref5.rightTitle,
187
+ rightTitle = _ref5$rightTitle === void 0 ? 'Selected' : _ref5$rightTitle,
188
+ _ref5$LeftTitleElemen = _ref5.LeftTitleElement,
189
+ LeftTitleElement = _ref5$LeftTitleElemen === void 0 ? 'h6' : _ref5$LeftTitleElemen,
190
+ _ref5$RightTitleEleme = _ref5.RightTitleElement,
191
+ RightTitleElement = _ref5$RightTitleEleme === void 0 ? 'h6' : _ref5$RightTitleEleme,
192
+ _ref5$moveLeftTitle = _ref5.moveLeftTitle,
193
+ moveLeftTitle = _ref5$moveLeftTitle === void 0 ? 'Remove' : _ref5$moveLeftTitle,
194
+ _ref5$moveRightTitle = _ref5.moveRightTitle,
195
+ moveRightTitle = _ref5$moveRightTitle === void 0 ? 'Add' : _ref5$moveRightTitle,
196
+ _ref5$moveAllLeftTitl = _ref5.moveAllLeftTitle,
197
+ moveAllLeftTitle = _ref5$moveAllLeftTitl === void 0 ? 'Remove All' : _ref5$moveAllLeftTitl,
198
+ _ref5$moveAllRightTit = _ref5.moveAllRightTitle,
199
+ moveAllRightTitle = _ref5$moveAllRightTit === void 0 ? 'Add All' : _ref5$moveAllRightTit,
200
+ _ref5$filterOptionsTi = _ref5.filterOptionsTitle,
201
+ filterOptionsTitle = _ref5$filterOptionsTi === void 0 ? 'Filter options' : _ref5$filterOptionsTi,
202
+ _ref5$filterValuesTit = _ref5.filterValuesTitle,
203
+ filterValuesTitle = _ref5$filterValuesTit === void 0 ? 'Filter values' : _ref5$filterValuesTit,
204
+ _ref5$sortOptionsTitl = _ref5.sortOptionsTitle,
205
+ sortOptionsTitle = _ref5$sortOptionsTitl === void 0 ? 'Sort options' : _ref5$sortOptionsTitl,
206
+ _ref5$sortValuesTitle = _ref5.sortValuesTitle,
207
+ sortValuesTitle = _ref5$sortValuesTitle === void 0 ? 'Sort values' : _ref5$sortValuesTitle,
208
+ _ref5$filterOptionsTe = _ref5.filterOptionsText,
209
+ filterOptionsText = _ref5$filterOptionsTe === void 0 ? 'Remove your filter to see all options' : _ref5$filterOptionsTe,
210
+ _ref5$filterValueText = _ref5.filterValueText,
211
+ filterValueText = _ref5$filterValueText === void 0 ? 'Remove your filter to see all selected' : _ref5$filterValueText,
212
+ _ref5$FormGroupProps = _ref5.FormGroupProps,
213
+ FormGroupProps = _ref5$FormGroupProps === void 0 ? {} : _ref5$FormGroupProps,
214
+ _ref5$GridProps = _ref5.GridProps,
215
+ GridProps = _ref5$GridProps === void 0 ? {} : _ref5$GridProps,
216
+ _ref5$RowProps = _ref5.RowProps,
217
+ RowProps = _ref5$RowProps === void 0 ? {} : _ref5$RowProps,
218
+ _ref5$OptionsColumnPr = _ref5.OptionsColumnProps,
219
+ OptionsColumnProps = _ref5$OptionsColumnPr === void 0 ? {} : _ref5$OptionsColumnPr,
220
+ _ref5$ButtonColumnPro = _ref5.ButtonColumnProps,
221
+ ButtonColumnProps = _ref5$ButtonColumnPro === void 0 ? {} : _ref5$ButtonColumnPro,
222
+ _ref5$ValuesColumnPro = _ref5.ValuesColumnProps,
223
+ ValuesColumnProps = _ref5$ValuesColumnPro === void 0 ? {} : _ref5$ValuesColumnPro,
224
+ _ref5$AddButtonProps = _ref5.AddButtonProps,
225
+ AddButtonProps = _ref5$AddButtonProps === void 0 ? {} : _ref5$AddButtonProps,
226
+ _ref5$AddAllButtonPro = _ref5.AddAllButtonProps,
227
+ AddAllButtonProps = _ref5$AddAllButtonPro === void 0 ? {} : _ref5$AddAllButtonPro,
228
+ _ref5$RemoveButtonPro = _ref5.RemoveButtonProps,
229
+ RemoveButtonProps = _ref5$RemoveButtonPro === void 0 ? {} : _ref5$RemoveButtonPro,
230
+ _ref5$RemoveAllButton = _ref5.RemoveAllButtonProps,
231
+ RemoveAllButtonProps = _ref5$RemoveAllButton === void 0 ? {} : _ref5$RemoveAllButton,
232
+ _ref5$LeftToolbarProp = _ref5.LeftToolbarProps,
233
+ LeftToolbarProps = _ref5$LeftToolbarProp === void 0 ? {} : _ref5$LeftToolbarProp,
234
+ _ref5$RightToolbarPro = _ref5.RightToolbarProps,
235
+ RightToolbarProps = _ref5$RightToolbarPro === void 0 ? {} : _ref5$RightToolbarPro,
236
+ _ref5$LeftSearchProps = _ref5.LeftSearchProps,
237
+ LeftSearchProps = _ref5$LeftSearchProps === void 0 ? {} : _ref5$LeftSearchProps,
238
+ _ref5$RightSearchProp = _ref5.RightSearchProps,
239
+ RightSearchProps = _ref5$RightSearchProp === void 0 ? {} : _ref5$RightSearchProp,
240
+ _ref5$LeftSortProps = _ref5.LeftSortProps,
241
+ LeftSortProps = _ref5$LeftSortProps === void 0 ? {} : _ref5$LeftSortProps,
242
+ _ref5$RightSortProps = _ref5.RightSortProps,
243
+ RightSortProps = _ref5$RightSortProps === void 0 ? {} : _ref5$RightSortProps,
244
+ _ref5$LeftListProps = _ref5.LeftListProps,
245
+ LeftListProps = _ref5$LeftListProps === void 0 ? {} : _ref5$LeftListProps,
246
+ _ref5$LeftBodyProps = _ref5.LeftBodyProps,
247
+ LeftBodyProps = _ref5$LeftBodyProps === void 0 ? {} : _ref5$LeftBodyProps,
248
+ _ref5$RightListProps = _ref5.RightListProps,
249
+ RightListProps = _ref5$RightListProps === void 0 ? {} : _ref5$RightListProps,
250
+ _ref5$RightBodyProps = _ref5.RightBodyProps,
251
+ RightBodyProps = _ref5$RightBodyProps === void 0 ? {} : _ref5$RightBodyProps;
216
252
 
217
253
  var _useStyles3 = useStyles(),
218
254
  buttonWrapper = _useStyles3.buttonWrapper;
@@ -343,44 +379,6 @@ DualListSelectInner.propTypes = {
343
379
  RightListProps: PropTypes.object,
344
380
  RightBodyProps: PropTypes.object
345
381
  };
346
- DualListSelectInner.defaultProps = {
347
- noOptionsTitle: 'No option available',
348
- noValueTitle: 'No option selected',
349
- leftTitle: 'Options',
350
- rightTitle: 'Selected',
351
- LeftTitleElement: 'h6',
352
- RightTitleElement: 'h6',
353
- moveLeftTitle: 'Remove',
354
- moveRightTitle: 'Add',
355
- moveAllLeftTitle: 'Remove All',
356
- moveAllRightTitle: 'Add All',
357
- filterOptionsTitle: 'Filter options',
358
- filterValuesTitle: 'Filter values',
359
- sortOptionsTitle: 'Sort options',
360
- sortValuesTitle: 'Sort values',
361
- filterOptionsText: 'Remove your filter to see all options',
362
- filterValueText: 'Remove your filter to see all selected',
363
- FormGroupProps: {},
364
- GridProps: {},
365
- RowProps: {},
366
- OptionsColumnProps: {},
367
- ButtonColumnProps: {},
368
- ValuesColumnProps: {},
369
- AddButtonProps: {},
370
- AddAllButtonProps: {},
371
- RemoveButtonProps: {},
372
- RemoveAllButtonProps: {},
373
- LeftToolbarProps: {},
374
- RightToolbarProps: {},
375
- LeftSearchProps: {},
376
- RightSearchProps: {},
377
- LeftSortProps: {},
378
- RightSortProps: {},
379
- LeftListProps: {},
380
- LeftBodyProps: {},
381
- RightListProps: {},
382
- RightBodyProps: {}
383
- };
384
382
 
385
383
  var DualListSelect = function DualListSelect(props) {
386
384
  return /*#__PURE__*/React.createElement(DualListSelectCommon, _extends({}, props, {
@@ -44,8 +44,10 @@ var ArrayItem = /*#__PURE__*/memo(function (_ref) {
44
44
  name = _ref.name,
45
45
  removeText = _ref.removeText,
46
46
  buttonDisabled = _ref.buttonDisabled,
47
- RemoveButtonProps = _ref.RemoveButtonProps,
48
- ArrayItemProps = _ref.ArrayItemProps;
47
+ _ref$RemoveButtonProp = _ref.RemoveButtonProps,
48
+ RemoveButtonProps = _ref$RemoveButtonProp === void 0 ? {} : _ref$RemoveButtonProp,
49
+ _ref$ArrayItemProps = _ref.ArrayItemProps,
50
+ ArrayItemProps = _ref$ArrayItemProps === void 0 ? {} : _ref$ArrayItemProps;
49
51
  var formOptions = useFormApi();
50
52
 
51
53
  var _useStyles = useStyles(),
@@ -85,28 +87,33 @@ ArrayItem.propTypes = {
85
87
  RemoveButtonProps: PropTypes.object,
86
88
  ArrayItemProps: PropTypes.object
87
89
  };
88
- ArrayItem.defaultProps = {
89
- RemoveButtonProps: {},
90
- ArrayItemProps: {}
91
- };
92
90
 
93
91
  var FieldArray = function FieldArray(props) {
94
92
  var _useFieldApi = useFieldApi(prepareProps(props)),
95
- AddContainerProps = _useFieldApi.AddContainerProps,
96
- AddButtonProps = _useFieldApi.AddButtonProps,
97
- FormGroupProps = _useFieldApi.FormGroupProps,
98
- WrapperProps = _useFieldApi.WrapperProps,
99
- ArrayItemProps = _useFieldApi.ArrayItemProps,
100
- RemoveButtonProps = _useFieldApi.RemoveButtonProps,
93
+ _useFieldApi$AddConta = _useFieldApi.AddContainerProps,
94
+ AddContainerProps = _useFieldApi$AddConta === void 0 ? {} : _useFieldApi$AddConta,
95
+ _useFieldApi$AddButto = _useFieldApi.AddButtonProps,
96
+ AddButtonProps = _useFieldApi$AddButto === void 0 ? {} : _useFieldApi$AddButto,
97
+ _useFieldApi$FormGrou = _useFieldApi.FormGroupProps,
98
+ FormGroupProps = _useFieldApi$FormGrou === void 0 ? {} : _useFieldApi$FormGrou,
99
+ _useFieldApi$WrapperP = _useFieldApi.WrapperProps,
100
+ WrapperProps = _useFieldApi$WrapperP === void 0 ? {} : _useFieldApi$WrapperP,
101
+ _useFieldApi$ArrayIte = _useFieldApi.ArrayItemProps,
102
+ ArrayItemProps = _useFieldApi$ArrayIte === void 0 ? {} : _useFieldApi$ArrayIte,
103
+ _useFieldApi$RemoveBu = _useFieldApi.RemoveButtonProps,
104
+ RemoveButtonProps = _useFieldApi$RemoveBu === void 0 ? {} : _useFieldApi$RemoveBu,
101
105
  defaultItem = _useFieldApi.defaultItem,
102
- maxItems = _useFieldApi.maxItems,
103
- minItems = _useFieldApi.minItems,
106
+ _useFieldApi$maxItems = _useFieldApi.maxItems,
107
+ maxItems = _useFieldApi$maxItems === void 0 ? Infinity : _useFieldApi$maxItems,
108
+ _useFieldApi$minItems = _useFieldApi.minItems,
109
+ minItems = _useFieldApi$minItems === void 0 ? 0 : _useFieldApi$minItems,
104
110
  fields = _useFieldApi.fields,
105
111
  input = _useFieldApi.input,
106
112
  arrayValidator = _useFieldApi.arrayValidator,
107
113
  labelText = _useFieldApi.labelText,
108
114
  buttonLabels = _useFieldApi.buttonLabels,
109
- noItemsMessage = _useFieldApi.noItemsMessage,
115
+ _useFieldApi$noItemsM = _useFieldApi.noItemsMessage,
116
+ noItemsMessage = _useFieldApi$noItemsM === void 0 ? 'No items' : _useFieldApi$noItemsM,
110
117
  meta = _useFieldApi.meta,
111
118
  validateOnMount = _useFieldApi.validateOnMount;
112
119
 
@@ -178,15 +185,4 @@ FieldArray.propTypes = {
178
185
  isRequired: PropTypes.bool,
179
186
  fields: PropTypes.array
180
187
  };
181
- FieldArray.defaultProps = {
182
- noItemsMessage: 'No items',
183
- maxItems: Infinity,
184
- minItems: 0,
185
- AddContainerProps: {},
186
- AddButtonProps: {},
187
- FormGroupProps: {},
188
- WrapperProps: {},
189
- ArrayItemProps: {},
190
- RemoveButtonProps: {}
191
- };
192
188
  export default FieldArray;
@@ -11,7 +11,8 @@ import PropTypes from 'prop-types';
11
11
 
12
12
  var PlainText = function PlainText(_ref) {
13
13
  var label = _ref.label,
14
- element = _ref.element,
14
+ _ref$element = _ref.element,
15
+ element = _ref$element === void 0 ? 'p' : _ref$element,
15
16
  component = _ref.component,
16
17
  rest = _objectWithoutProperties(_ref, _excluded);
17
18
 
@@ -27,7 +28,4 @@ PlainText.propTypes = {
27
28
  element: PropTypes.string,
28
29
  component: PropTypes.string
29
30
  };
30
- PlainText.defaultProps = {
31
- element: 'p'
32
- };
33
31
  export default PlainText;
@@ -7,7 +7,7 @@ var _excluded = ["options"],
7
7
  _excluded3 = ["invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "isMulti", "classNamePrefix", "closeMenuOnSelect", "onChange", "originalOnChange", "carbonLabel", "placeholder", "isDisabled"],
8
8
  _excluded4 = ["isSearchable", "isClearable", "isDisabled", "isMulti", "invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "classNamePrefix", "closeMenuOnSelect", "originalOnChange", "placeholder", "value"],
9
9
  _excluded5 = ["isSearchable", "isClearable", "isDisabled", "isMulti", "invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "classNamePrefix", "closeMenuOnSelect", "originalOnChange", "placeholder", "labelText", "onChange", "value"],
10
- _excluded6 = ["isMulti", "isSearchable", "isClearable", "loadOptions", "input", "meta", "validateOnMount", "helperText"];
10
+ _excluded6 = ["isMulti", "isSearchable", "isClearable", "loadOptions", "input", "meta", "validateOnMount", "helperText", "loadingMessage"];
11
11
  import React, { useState, useEffect } from 'react';
12
12
  import PropTypes from 'prop-types';
13
13
  import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
@@ -294,6 +294,8 @@ var Select = function Select(props) {
294
294
  meta = _useFieldApi.meta,
295
295
  validateOnMount = _useFieldApi.validateOnMount,
296
296
  helperText = _useFieldApi.helperText,
297
+ _useFieldApi$loadingM = _useFieldApi.loadingMessage,
298
+ loadingMessage = _useFieldApi$loadingM === void 0 ? 'Loading...' : _useFieldApi$loadingM,
297
299
  rest = _objectWithoutProperties(_useFieldApi, _excluded6);
298
300
 
299
301
  var _useState = useState(0),
@@ -320,7 +322,8 @@ var Select = function Select(props) {
320
322
  var text = (meta.touched || validateOnMount) && meta.warning || helperText;
321
323
  return /*#__PURE__*/React.createElement(DataDrivenSelect, _extends({
322
324
  SelectComponent: Component,
323
- simpleValue: false
325
+ simpleValue: false,
326
+ loadingMessage: loadingMessage
324
327
  }, rest, input, {
325
328
  isMulti: isMulti,
326
329
  loadOptions: loadOptions,
@@ -338,7 +341,4 @@ Select.propTypes = {
338
341
  label: PropTypes.node
339
342
  }))
340
343
  };
341
- Select.defaultProps = {
342
- loadingMessage: 'Loading...'
343
- };
344
344
  export default Select;
@@ -19,8 +19,10 @@ var SubForm = function SubForm(_ref) {
19
19
  component = _ref.component,
20
20
  title = _ref.title,
21
21
  description = _ref.description,
22
- TitleElement = _ref.TitleElement,
23
- DescriptionElement = _ref.DescriptionElement,
22
+ _ref$TitleElement = _ref.TitleElement,
23
+ TitleElement = _ref$TitleElement === void 0 ? 'h3' : _ref$TitleElement,
24
+ _ref$DescriptionEleme = _ref.DescriptionElement,
25
+ DescriptionElement = _ref$DescriptionEleme === void 0 ? 'p' : _ref$DescriptionEleme,
24
26
  TitleProps = _ref.TitleProps,
25
27
  DescriptionProps = _ref.DescriptionProps,
26
28
  HeaderProps = _ref.HeaderProps,
@@ -47,8 +49,4 @@ SubForm.propTypes = {
47
49
  DescriptionProps: PropTypes.object,
48
50
  HeaderProps: PropTypes.object
49
51
  };
50
- SubForm.defaultProps = {
51
- TitleElement: 'h3',
52
- DescriptionElement: 'p'
53
- };
54
52
  export default SubForm;
package/esm/tabs/tabs.js CHANGED
@@ -20,7 +20,8 @@ var Tabs = function Tabs(_ref) {
20
20
  var fields = _ref.fields,
21
21
  component = _ref.component,
22
22
  name = _ref.name,
23
- TabWrapperProps = _ref.TabWrapperProps,
23
+ _ref$TabWrapperProps = _ref.TabWrapperProps,
24
+ TabWrapperProps = _ref$TabWrapperProps === void 0 ? {} : _ref$TabWrapperProps,
24
25
  props = _objectWithoutProperties(_ref, _excluded);
25
26
 
26
27
  var formOptions = useFormApi();
@@ -56,7 +57,4 @@ Tabs.propTypes = {
56
57
  label: PropTypes.node
57
58
  }))
58
59
  };
59
- Tabs.defaultProps = {
60
- TabWrapperProps: {}
61
- };
62
60
  export default Tabs;
@@ -121,13 +121,19 @@ VerticalLayout.propTypes = {
121
121
  var WizardInternal = function WizardInternal(_ref5) {
122
122
  var stepsInfo = _ref5.stepsInfo,
123
123
  buttonLabels = _ref5.buttonLabels,
124
- ButtonSetProps = _ref5.ButtonSetProps,
125
- BackButtonProps = _ref5.BackButtonProps,
126
- NextButtonProps = _ref5.NextButtonProps,
127
- SubmitButtonProps = _ref5.SubmitButtonProps,
128
- ProgressIndicatorProps = _ref5.ProgressIndicatorProps,
124
+ _ref5$ButtonSetProps = _ref5.ButtonSetProps,
125
+ ButtonSetProps = _ref5$ButtonSetProps === void 0 ? {} : _ref5$ButtonSetProps,
126
+ _ref5$BackButtonProps = _ref5.BackButtonProps,
127
+ BackButtonProps = _ref5$BackButtonProps === void 0 ? {} : _ref5$BackButtonProps,
128
+ _ref5$NextButtonProps = _ref5.NextButtonProps,
129
+ NextButtonProps = _ref5$NextButtonProps === void 0 ? {} : _ref5$NextButtonProps,
130
+ _ref5$SubmitButtonPro = _ref5.SubmitButtonProps,
131
+ SubmitButtonProps = _ref5$SubmitButtonPro === void 0 ? {} : _ref5$SubmitButtonPro,
132
+ _ref5$ProgressIndicat = _ref5.ProgressIndicatorProps,
133
+ ProgressIndicatorProps = _ref5$ProgressIndicat === void 0 ? {} : _ref5$ProgressIndicat,
129
134
  vertical = _ref5.vertical,
130
- WizardBodyProps = _ref5.WizardBodyProps,
135
+ _ref5$WizardBodyProps = _ref5.WizardBodyProps,
136
+ WizardBodyProps = _ref5$WizardBodyProps === void 0 ? {} : _ref5$WizardBodyProps,
131
137
  conditionalSubmitFlag = _ref5.conditionalSubmitFlag,
132
138
  props = _objectWithoutProperties(_ref5, _excluded3);
133
139
 
@@ -206,14 +212,6 @@ WizardInternal.propTypes = {
206
212
  WizardBodyProps: PropTypes.object,
207
213
  conditionalSubmitFlag: PropTypes.string.isRequired
208
214
  };
209
- WizardInternal.defaultProps = {
210
- BackButtonProps: {},
211
- NextButtonProps: {},
212
- SubmitButtonProps: {},
213
- ButtonSetProps: {},
214
- ProgressIndicatorProps: {},
215
- WizardBodyProps: {}
216
- };
217
215
 
218
216
  var Wizard = function Wizard(props) {
219
217
  return /*#__PURE__*/React.createElement(WizardCommon, _extends({
@@ -73,8 +73,10 @@ var ArrayItem = /*#__PURE__*/(0, _react.memo)(function (_ref) {
73
73
  name = _ref.name,
74
74
  removeText = _ref.removeText,
75
75
  buttonDisabled = _ref.buttonDisabled,
76
- RemoveButtonProps = _ref.RemoveButtonProps,
77
- ArrayItemProps = _ref.ArrayItemProps;
76
+ _ref$RemoveButtonProp = _ref.RemoveButtonProps,
77
+ RemoveButtonProps = _ref$RemoveButtonProp === void 0 ? {} : _ref$RemoveButtonProp,
78
+ _ref$ArrayItemProps = _ref.ArrayItemProps,
79
+ ArrayItemProps = _ref$ArrayItemProps === void 0 ? {} : _ref$ArrayItemProps;
78
80
  var formOptions = (0, _useFormApi["default"])();
79
81
 
80
82
  var _useStyles = useStyles(),
@@ -112,28 +114,33 @@ ArrayItem.propTypes = {
112
114
  RemoveButtonProps: _propTypes["default"].object,
113
115
  ArrayItemProps: _propTypes["default"].object
114
116
  };
115
- ArrayItem.defaultProps = {
116
- RemoveButtonProps: {},
117
- ArrayItemProps: {}
118
- };
119
117
 
120
118
  var FieldArray = function FieldArray(props) {
121
119
  var _useFieldApi = (0, _useFieldApi2["default"])((0, _prepareProps["default"])(props)),
122
- AddContainerProps = _useFieldApi.AddContainerProps,
123
- AddButtonProps = _useFieldApi.AddButtonProps,
124
- FormGroupProps = _useFieldApi.FormGroupProps,
125
- WrapperProps = _useFieldApi.WrapperProps,
126
- ArrayItemProps = _useFieldApi.ArrayItemProps,
127
- RemoveButtonProps = _useFieldApi.RemoveButtonProps,
120
+ _useFieldApi$AddConta = _useFieldApi.AddContainerProps,
121
+ AddContainerProps = _useFieldApi$AddConta === void 0 ? {} : _useFieldApi$AddConta,
122
+ _useFieldApi$AddButto = _useFieldApi.AddButtonProps,
123
+ AddButtonProps = _useFieldApi$AddButto === void 0 ? {} : _useFieldApi$AddButto,
124
+ _useFieldApi$FormGrou = _useFieldApi.FormGroupProps,
125
+ FormGroupProps = _useFieldApi$FormGrou === void 0 ? {} : _useFieldApi$FormGrou,
126
+ _useFieldApi$WrapperP = _useFieldApi.WrapperProps,
127
+ WrapperProps = _useFieldApi$WrapperP === void 0 ? {} : _useFieldApi$WrapperP,
128
+ _useFieldApi$ArrayIte = _useFieldApi.ArrayItemProps,
129
+ ArrayItemProps = _useFieldApi$ArrayIte === void 0 ? {} : _useFieldApi$ArrayIte,
130
+ _useFieldApi$RemoveBu = _useFieldApi.RemoveButtonProps,
131
+ RemoveButtonProps = _useFieldApi$RemoveBu === void 0 ? {} : _useFieldApi$RemoveBu,
128
132
  defaultItem = _useFieldApi.defaultItem,
129
- maxItems = _useFieldApi.maxItems,
130
- minItems = _useFieldApi.minItems,
133
+ _useFieldApi$maxItems = _useFieldApi.maxItems,
134
+ maxItems = _useFieldApi$maxItems === void 0 ? Infinity : _useFieldApi$maxItems,
135
+ _useFieldApi$minItems = _useFieldApi.minItems,
136
+ minItems = _useFieldApi$minItems === void 0 ? 0 : _useFieldApi$minItems,
131
137
  fields = _useFieldApi.fields,
132
138
  input = _useFieldApi.input,
133
139
  arrayValidator = _useFieldApi.arrayValidator,
134
140
  labelText = _useFieldApi.labelText,
135
141
  buttonLabels = _useFieldApi.buttonLabels,
136
- noItemsMessage = _useFieldApi.noItemsMessage,
142
+ _useFieldApi$noItemsM = _useFieldApi.noItemsMessage,
143
+ noItemsMessage = _useFieldApi$noItemsM === void 0 ? 'No items' : _useFieldApi$noItemsM,
137
144
  meta = _useFieldApi.meta,
138
145
  validateOnMount = _useFieldApi.validateOnMount;
139
146
 
@@ -205,16 +212,5 @@ FieldArray.propTypes = {
205
212
  isRequired: _propTypes["default"].bool,
206
213
  fields: _propTypes["default"].array
207
214
  };
208
- FieldArray.defaultProps = {
209
- noItemsMessage: 'No items',
210
- maxItems: Infinity,
211
- minItems: 0,
212
- AddContainerProps: {},
213
- AddButtonProps: {},
214
- FormGroupProps: {},
215
- WrapperProps: {},
216
- ArrayItemProps: {},
217
- RemoveButtonProps: {}
218
- };
219
215
  var _default = FieldArray;
220
216
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-driven-forms/carbon-component-mapper",
3
- "version": "3.22.1",
3
+ "version": "3.22.3",
4
4
  "description": "Carbon React component mapper for Data Driven Forms.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -40,7 +40,7 @@
40
40
  "react-dom": "^16.13.1 || ^17.0.2 || ^18.0.0"
41
41
  },
42
42
  "dependencies": {
43
- "@data-driven-forms/common": "^3.22.1",
43
+ "@data-driven-forms/common": "^3.22.3",
44
44
  "clsx": "^1.1.1",
45
45
  "lodash": "^4.17.21",
46
46
  "prop-types": ">=15.7.2",
@@ -23,7 +23,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
23
23
 
24
24
  var PlainText = function PlainText(_ref) {
25
25
  var label = _ref.label,
26
- element = _ref.element,
26
+ _ref$element = _ref.element,
27
+ element = _ref$element === void 0 ? 'p' : _ref$element,
27
28
  component = _ref.component,
28
29
  rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
30
  return label.split('\n').map(function (paragraph, index) {
@@ -38,8 +39,5 @@ PlainText.propTypes = {
38
39
  element: _propTypes["default"].string,
39
40
  component: _propTypes["default"].string
40
41
  };
41
- PlainText.defaultProps = {
42
- element: 'p'
43
- };
44
42
  var _default = PlainText;
45
43
  exports["default"] = _default;
package/select/select.js CHANGED
@@ -36,7 +36,7 @@ var _excluded = ["options"],
36
36
  _excluded3 = ["invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "isMulti", "classNamePrefix", "closeMenuOnSelect", "onChange", "originalOnChange", "carbonLabel", "placeholder", "isDisabled"],
37
37
  _excluded4 = ["isSearchable", "isClearable", "isDisabled", "isMulti", "invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "classNamePrefix", "closeMenuOnSelect", "originalOnChange", "placeholder", "value"],
38
38
  _excluded5 = ["isSearchable", "isClearable", "isDisabled", "isMulti", "invalidText", "hideSelectedOptions", "noOptionsMessage", "onInputChange", "options", "isFetching", "invalid", "classNamePrefix", "closeMenuOnSelect", "originalOnChange", "placeholder", "labelText", "onChange", "value"],
39
- _excluded6 = ["isMulti", "isSearchable", "isClearable", "loadOptions", "input", "meta", "validateOnMount", "helperText"];
39
+ _excluded6 = ["isMulti", "isSearchable", "isClearable", "loadOptions", "input", "meta", "validateOnMount", "helperText", "loadingMessage"];
40
40
 
41
41
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
42
42
 
@@ -318,6 +318,8 @@ var Select = function Select(props) {
318
318
  meta = _useFieldApi.meta,
319
319
  validateOnMount = _useFieldApi.validateOnMount,
320
320
  helperText = _useFieldApi.helperText,
321
+ _useFieldApi$loadingM = _useFieldApi.loadingMessage,
322
+ loadingMessage = _useFieldApi$loadingM === void 0 ? 'Loading...' : _useFieldApi$loadingM,
321
323
  rest = (0, _objectWithoutProperties2["default"])(_useFieldApi, _excluded6);
322
324
 
323
325
  var _useState = (0, _react.useState)(0),
@@ -344,7 +346,8 @@ var Select = function Select(props) {
344
346
  var text = (meta.touched || validateOnMount) && meta.warning || helperText;
345
347
  return /*#__PURE__*/_react["default"].createElement(_select["default"], (0, _extends2["default"])({
346
348
  SelectComponent: Component,
347
- simpleValue: false
349
+ simpleValue: false,
350
+ loadingMessage: loadingMessage
348
351
  }, rest, input, {
349
352
  isMulti: isMulti,
350
353
  loadOptions: loadOptions,
@@ -362,8 +365,5 @@ Select.propTypes = {
362
365
  label: _propTypes["default"].node
363
366
  }))
364
367
  };
365
- Select.defaultProps = {
366
- loadingMessage: 'Loading...'
367
- };
368
368
  var _default = Select;
369
369
  exports["default"] = _default;
@@ -35,8 +35,10 @@ var SubForm = function SubForm(_ref) {
35
35
  component = _ref.component,
36
36
  title = _ref.title,
37
37
  description = _ref.description,
38
- TitleElement = _ref.TitleElement,
39
- DescriptionElement = _ref.DescriptionElement,
38
+ _ref$TitleElement = _ref.TitleElement,
39
+ TitleElement = _ref$TitleElement === void 0 ? 'h3' : _ref$TitleElement,
40
+ _ref$DescriptionEleme = _ref.DescriptionElement,
41
+ DescriptionElement = _ref$DescriptionEleme === void 0 ? 'p' : _ref$DescriptionEleme,
40
42
  TitleProps = _ref.TitleProps,
41
43
  DescriptionProps = _ref.DescriptionProps,
42
44
  HeaderProps = _ref.HeaderProps,
@@ -62,9 +64,5 @@ SubForm.propTypes = {
62
64
  DescriptionProps: _propTypes["default"].object,
63
65
  HeaderProps: _propTypes["default"].object
64
66
  };
65
- SubForm.defaultProps = {
66
- TitleElement: 'h3',
67
- DescriptionElement: 'p'
68
- };
69
67
  var _default = SubForm;
70
68
  exports["default"] = _default;
package/tabs/tabs.js CHANGED
@@ -37,7 +37,8 @@ var Tabs = function Tabs(_ref) {
37
37
  var fields = _ref.fields,
38
38
  component = _ref.component,
39
39
  name = _ref.name,
40
- TabWrapperProps = _ref.TabWrapperProps,
40
+ _ref$TabWrapperProps = _ref.TabWrapperProps,
41
+ TabWrapperProps = _ref$TabWrapperProps === void 0 ? {} : _ref$TabWrapperProps,
41
42
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
42
43
  var formOptions = (0, _useFormApi["default"])();
43
44
 
@@ -71,8 +72,5 @@ Tabs.propTypes = {
71
72
  label: _propTypes["default"].node
72
73
  }))
73
74
  };
74
- Tabs.defaultProps = {
75
- TabWrapperProps: {}
76
- };
77
75
  var _default = Tabs;
78
76
  exports["default"] = _default;
package/wizard/wizard.js CHANGED
@@ -147,13 +147,19 @@ VerticalLayout.propTypes = {
147
147
  var WizardInternal = function WizardInternal(_ref5) {
148
148
  var stepsInfo = _ref5.stepsInfo,
149
149
  buttonLabels = _ref5.buttonLabels,
150
- ButtonSetProps = _ref5.ButtonSetProps,
151
- BackButtonProps = _ref5.BackButtonProps,
152
- NextButtonProps = _ref5.NextButtonProps,
153
- SubmitButtonProps = _ref5.SubmitButtonProps,
154
- ProgressIndicatorProps = _ref5.ProgressIndicatorProps,
150
+ _ref5$ButtonSetProps = _ref5.ButtonSetProps,
151
+ ButtonSetProps = _ref5$ButtonSetProps === void 0 ? {} : _ref5$ButtonSetProps,
152
+ _ref5$BackButtonProps = _ref5.BackButtonProps,
153
+ BackButtonProps = _ref5$BackButtonProps === void 0 ? {} : _ref5$BackButtonProps,
154
+ _ref5$NextButtonProps = _ref5.NextButtonProps,
155
+ NextButtonProps = _ref5$NextButtonProps === void 0 ? {} : _ref5$NextButtonProps,
156
+ _ref5$SubmitButtonPro = _ref5.SubmitButtonProps,
157
+ SubmitButtonProps = _ref5$SubmitButtonPro === void 0 ? {} : _ref5$SubmitButtonPro,
158
+ _ref5$ProgressIndicat = _ref5.ProgressIndicatorProps,
159
+ ProgressIndicatorProps = _ref5$ProgressIndicat === void 0 ? {} : _ref5$ProgressIndicat,
155
160
  vertical = _ref5.vertical,
156
- WizardBodyProps = _ref5.WizardBodyProps,
161
+ _ref5$WizardBodyProps = _ref5.WizardBodyProps,
162
+ WizardBodyProps = _ref5$WizardBodyProps === void 0 ? {} : _ref5$WizardBodyProps,
157
163
  conditionalSubmitFlag = _ref5.conditionalSubmitFlag,
158
164
  props = (0, _objectWithoutProperties2["default"])(_ref5, _excluded3);
159
165
 
@@ -233,14 +239,6 @@ WizardInternal.propTypes = {
233
239
  WizardBodyProps: _propTypes["default"].object,
234
240
  conditionalSubmitFlag: _propTypes["default"].string.isRequired
235
241
  };
236
- WizardInternal.defaultProps = {
237
- BackButtonProps: {},
238
- NextButtonProps: {},
239
- SubmitButtonProps: {},
240
- ButtonSetProps: {},
241
- ProgressIndicatorProps: {},
242
- WizardBodyProps: {}
243
- };
244
242
 
245
243
  var Wizard = function Wizard(props) {
246
244
  return /*#__PURE__*/_react["default"].createElement(_wizard["default"], (0, _extends2["default"])({