@widergy/energy-ui 1.117.1 → 1.117.2

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 (74) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/EnergyThemeProvider/index.js +1 -2
  3. package/dist/components/Loading/index.js +2 -2
  4. package/dist/components/UTAttachment/constants.js +3 -4
  5. package/dist/components/UTAttachment/index.js +3 -3
  6. package/dist/components/UTAutocomplete/components/ListBox/index.js +1 -2
  7. package/dist/components/UTAutocomplete/index.js +6 -9
  8. package/dist/components/UTBarChart/components/Legend/index.js +3 -3
  9. package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +2 -4
  10. package/dist/components/UTBarChart/components/XAxis/index.js +4 -9
  11. package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +3 -3
  12. package/dist/components/UTBarChart/types.js +2 -2
  13. package/dist/components/UTBreadcrumbs/index.js +1 -2
  14. package/dist/components/UTButton/index.js +1 -2
  15. package/dist/components/UTCBUInput/index.js +12 -10
  16. package/dist/components/UTCard/index.js +5 -8
  17. package/dist/components/UTCard/types.js +1 -1
  18. package/dist/components/UTCarousel/components/Button/index.js +1 -2
  19. package/dist/components/UTCarousel/components/Legend/index.js +1 -2
  20. package/dist/components/UTCarousel/components/Slider/index.js +1 -2
  21. package/dist/components/UTCarousel/components/Slider/layout.js +1 -2
  22. package/dist/components/UTCarousel/index.js +1 -2
  23. package/dist/components/UTCheckList/index.js +7 -6
  24. package/dist/components/UTCheckbox/index.js +4 -5
  25. package/dist/components/UTCuit/index.js +5 -14
  26. package/dist/components/UTDatePicker/components/Day/index.js +2 -2
  27. package/dist/components/UTDatePicker/index.js +5 -5
  28. package/dist/components/UTDialog/components/ActionButton/index.js +1 -2
  29. package/dist/components/UTDialog/index.js +6 -9
  30. package/dist/components/UTDialog/types.js +3 -4
  31. package/dist/components/UTEmojiPicker/index.js +5 -6
  32. package/dist/components/UTExternalLink/index.js +0 -2
  33. package/dist/components/UTIconButton/index.js +1 -2
  34. package/dist/components/UTLabel/index.js +2 -3
  35. package/dist/components/UTList/index.js +1 -1
  36. package/dist/components/UTMap/types.js +1 -3
  37. package/dist/components/UTMenu/index.js +19 -16
  38. package/dist/components/UTPanel/index.js +33 -17
  39. package/dist/components/UTPhoneInput/index.js +2 -4
  40. package/dist/components/UTProgressBar/index.js +1 -1
  41. package/dist/components/UTRadioGroup/index.js +3 -3
  42. package/dist/components/UTRating/components/Circle/index.js +1 -1
  43. package/dist/components/UTRating/components/Star/index.js +3 -3
  44. package/dist/components/UTRating/index.js +3 -1
  45. package/dist/components/UTRipple/Ripple.js +0 -1
  46. package/dist/components/UTRipple/index.js +3 -1
  47. package/dist/components/UTSelect/components/Option/index.js +1 -3
  48. package/dist/components/UTSelect/index.js +7 -8
  49. package/dist/components/UTSwitch/index.js +1 -1
  50. package/dist/components/UTTable/components/ActionIcons/index.js +6 -9
  51. package/dist/components/UTTable/components/Cell/index.js +2 -4
  52. package/dist/components/UTTable/components/HeaderCell/index.js +1 -2
  53. package/dist/components/UTTable/components/PrimaryAction/index.js +2 -3
  54. package/dist/components/UTTable/components/ResponsiveCell/index.js +2 -2
  55. package/dist/components/UTTable/components/Status/index.js +2 -2
  56. package/dist/components/UTTable/components/TableRow/index.js +9 -9
  57. package/dist/components/UTTable/index.js +3 -3
  58. package/dist/components/UTTable/types.js +1 -1
  59. package/dist/components/UTTabs/components/TooltipTab/index.js +7 -7
  60. package/dist/components/UTTabs/index.js +4 -4
  61. package/dist/components/UTTextArea/index.js +7 -6
  62. package/dist/components/UTTextInput/index.js +19 -6
  63. package/dist/components/UTToggle/index.js +2 -0
  64. package/dist/components/UTTooltip/index.js +2 -4
  65. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +1 -1
  66. package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +5 -4
  67. package/dist/components/UTVirtualizedList/index.js +2 -2
  68. package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +2 -3
  69. package/dist/components/UTWorkflowContainer/index.js +3 -3
  70. package/dist/components/UTWorkflowContainer/types.js +3 -4
  71. package/dist/components/WithTheme/layout.js +2 -4
  72. package/dist/types/commonTypes.js +6 -2
  73. package/dist/types/formTypes.js +24 -26
  74. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.117.2](https://github.com/widergy/energy-ui/compare/v1.117.1...v1.117.2) (2022-04-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fixed some console errors ([#272](https://github.com/widergy/energy-ui/issues/272)) ([9267965](https://github.com/widergy/energy-ui/commit/926796552cc1838ea22d788a23bd35516e2fff57))
7
+
1
8
  ## [1.117.1](https://github.com/widergy/energy-ui/compare/v1.117.0...v1.117.1) (2022-04-12)
2
9
 
3
10
 
@@ -64,8 +64,7 @@ var ThemeProvider = /*#__PURE__*/function (_PureComponent) {
64
64
  }(_react.PureComponent);
65
65
 
66
66
  ThemeProvider.propTypes = {
67
- theme: _propTypes.any // eslint-disable-line react/forbid-prop-types
68
-
67
+ theme: _propTypes.object
69
68
  };
70
69
  var _default = ThemeProvider;
71
70
  exports.default = _default;
@@ -51,8 +51,8 @@ Loading.propTypes = {
51
51
  text: _propTypes.string,
52
52
  size: _propTypes.number,
53
53
  thickness: _propTypes.number,
54
- classes: (0, _propTypes.shape)(_propTypes.any),
55
- theme: (0, _propTypes.shape)(_propTypes.any),
54
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
55
+ theme: _propTypes.object,
56
56
  className: _propTypes.string,
57
57
  textClassName: _propTypes.string
58
58
  };
@@ -7,7 +7,6 @@ exports.previewPropType = exports.SIZE_ERROR_TEXT = exports.FORMAT_ERROR_TEXT =
7
7
 
8
8
  var _propTypes = require("prop-types");
9
9
 
10
- /* eslint-disable react/forbid-prop-types */
11
10
  var FORMAT_ERROR_TEXT = 'El formato de archivo es inválido';
12
11
  exports.FORMAT_ERROR_TEXT = FORMAT_ERROR_TEXT;
13
12
  var SIZE_ERROR_TEXT = 'El archivo excede el tamaño máximo de ';
@@ -19,8 +18,8 @@ exports.DEFAULT_UPLOADING_TEXT = DEFAULT_UPLOADING_TEXT;
19
18
  var DEFAULT_ATTACHMENT_NAME = 'Adjunto';
20
19
  exports.DEFAULT_ATTACHMENT_NAME = DEFAULT_ATTACHMENT_NAME;
21
20
  var previewPropType = (0, _propTypes.shape)({
22
- audio: (0, _propTypes.shape)(_propTypes.any),
23
- image: (0, _propTypes.shape)(_propTypes.any),
24
- video: (0, _propTypes.shape)(_propTypes.any)
21
+ audio: _propTypes.object,
22
+ image: _propTypes.object,
23
+ video: _propTypes.object
25
24
  });
26
25
  exports.previewPropType = previewPropType;
@@ -125,7 +125,7 @@ var AttachmentContainer = /*#__PURE__*/function (_Component) {
125
125
  href: url,
126
126
  target: "_blank",
127
127
  rel: "noopener noreferrer"
128
- }, _constants.DEFAULT_ATTACHMENT_NAME, fileType && ".".concat(fileType));
128
+ }, _constants.DEFAULT_ATTACHMENT_NAME, fileType && ".".concat(fileType)) || '';
129
129
  });
130
130
 
131
131
  _defineProperty(_assertThisInitialized(_this), "hasDefaultValueToLoad", function () {
@@ -354,12 +354,12 @@ var AttachmentContainer = /*#__PURE__*/function (_Component) {
354
354
  }(_react.Component);
355
355
 
356
356
  AttachmentContainer.propTypes = {
357
- allowedPDFUploadSizes: (0, _propTypes.shape)({
357
+ allowedPDFUploadSizes: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
358
358
  name: _propTypes.string,
359
359
  heightInPt: _propTypes.number,
360
360
  widthInPt: _propTypes.number,
361
361
  tolerance: _propTypes.number
362
- }),
362
+ })),
363
363
  classes: (0, _propTypes.objectOf)(_propTypes.string),
364
364
  containerClassname: _propTypes.string,
365
365
  disabled: _propTypes.bool,
@@ -58,8 +58,7 @@ var Listbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
58
58
  }, _constants.LIST_BOX_DEFAULT_PROPS, fixedSizeListProps), _utils.renderRow));
59
59
  });
60
60
  Listbox.propTypes = {
61
- // eslint-disable-next-line react/forbid-prop-types
62
- fixedSizeListProps: (0, _propTypes.shape)(_propTypes.any)
61
+ fixedSizeListProps: _propTypes.object
63
62
  };
64
63
 
65
64
  var _default = /*#__PURE__*/(0, _react.memo)(Listbox);
@@ -70,7 +70,7 @@ var UTAutocomplete = function UTAutocomplete(_ref) {
70
70
  textFieldProps = _ref.textFieldProps,
71
71
  variant = _ref.variant;
72
72
 
73
- var _useState = (0, _react.useState)(),
73
+ var _useState = (0, _react.useState)(''),
74
74
  _useState2 = _slicedToArray(_useState, 2),
75
75
  componentValue = _useState2[0],
76
76
  setComponentValue = _useState2[1];
@@ -119,7 +119,7 @@ var UTAutocomplete = function UTAutocomplete(_ref) {
119
119
  fixedSizeListProps: fixedSizeListProps
120
120
  },
121
121
  getOptionLabel: function getOptionLabel(option) {
122
- return option[labelKey];
122
+ return option[labelKey] || '';
123
123
  },
124
124
  onChange: onChange,
125
125
  disabled: fieldDisabled,
@@ -142,21 +142,18 @@ var UTAutocomplete = function UTAutocomplete(_ref) {
142
142
 
143
143
  UTAutocomplete.propTypes = {
144
144
  ArrowIcon: _propTypes.elementType,
145
- // eslint-disable-next-line react/forbid-prop-types
146
- autocompleteProps: (0, _propTypes.shape)(_propTypes.any),
145
+ autocompleteProps: _propTypes.object,
147
146
  classes: (0, _propTypes.objectOf)(_propTypes.string),
148
147
  disabled: _propTypes.bool,
149
148
  input: _formTypes.inputPropTypes.isRequired,
150
149
  field: _formTypes.fieldType,
151
- // eslint-disable-next-line react/forbid-prop-types
152
- fixedSizeListProps: (0, _propTypes.shape)(_propTypes.any),
150
+ fixedSizeListProps: _propTypes.object,
153
151
  label: _propTypes.string,
154
152
  loading: _propTypes.bool,
155
153
  meta: _formTypes.metaPropTypes.isRequired,
156
- options: (0, _propTypes.arrayOf)((0, _propTypes.shape)(_propTypes.any)),
154
+ options: (0, _propTypes.arrayOf)(_propTypes.object),
157
155
  placeholder: _propTypes.string,
158
- // eslint-disable-next-line react/forbid-prop-types
159
- textFieldProps: (0, _propTypes.shape)(_propTypes.any),
156
+ textFieldProps: _propTypes.object,
160
157
  variant: _propTypes.string
161
158
  };
162
159
 
@@ -172,12 +172,12 @@ Legend.propTypes = {
172
172
  title: _propTypes.string,
173
173
  references: _types.referencesType,
174
174
  flatData: (0, _propTypes.shape)({
175
- bar: _types.barType,
176
- linear: _types.linearType,
175
+ bar: (0, _propTypes.arrayOf)(_types.barType),
176
+ linear: (0, _propTypes.arrayOf)(_types.linearType),
177
177
  levels: _types.levelsType
178
178
  }),
179
179
  displayAs: _propTypes.string,
180
- style: (0, _propTypes.shape)((0, _propTypes.oneOfType)([_propTypes.number, _propTypes.string])),
180
+ style: _propTypes.object,
181
181
  labels: (0, _propTypes.objectOf)(_propTypes.string),
182
182
  classes: _commonTypes.classesType
183
183
  };
@@ -82,15 +82,13 @@ var AxisElement = function AxisElement(_ref) {
82
82
  AxisElement.propTypes = {
83
83
  secondaryLabel: _propTypes.string,
84
84
  mainLabel: _propTypes.string,
85
- // eslint-disable-next-line react/forbid-prop-types
86
- mainLabelStyles: (0, _propTypes.shape)(_propTypes.any),
85
+ mainLabelStyles: _propTypes.object,
87
86
  x: _propTypes.number,
88
87
  graphYStart: _propTypes.number,
89
88
  yOffset: _propTypes.number,
90
89
  className: _propTypes.string,
91
90
  color: _propTypes.string,
92
- // eslint-disable-next-line react/forbid-prop-types
93
- circle: (0, _propTypes.shape)(_propTypes.any),
91
+ circle: _propTypes.object,
94
92
  selected: _propTypes.bool,
95
93
  selectedLabelBackground: _propTypes.string,
96
94
  labelBackgroundPadding: _propTypes.number
@@ -104,7 +104,7 @@ var XAxis = function XAxis(_ref) {
104
104
  barWidth: barWidth,
105
105
  mainLabel: mainLabel,
106
106
  mainLabelStyles: mainLabelStyles,
107
- color: color,
107
+ color: color || '',
108
108
  x: xAxis(index) + xOffset,
109
109
  graphYStart: graphYStart,
110
110
  yOffset: _constants.Y_OFFSET,
@@ -120,7 +120,7 @@ var XAxis = function XAxis(_ref) {
120
120
  className: classes.xAxisSecondaryLabel,
121
121
  barWidth: barWidth,
122
122
  secondaryLabel: secondaryLabel,
123
- color: color,
123
+ color: color || '',
124
124
  x: xAxis(index) + xOffset,
125
125
  graphYStart: graphYStart,
126
126
  yOffset: _constants.Y_OFFSET
@@ -141,9 +141,7 @@ var XAxis = function XAxis(_ref) {
141
141
  XAxis.propTypes = {
142
142
  classes: _commonTypes.classesType,
143
143
  data: _types.barDataType,
144
- setRef: (0, _propTypes.shape)({
145
- current: _propTypes.elementType
146
- }),
144
+ setRef: _commonTypes.refType,
147
145
  barWidth: _propTypes.number,
148
146
  xAxisDefinition: _types.xAxisDefinitionType,
149
147
  xAxis: _propTypes.func,
@@ -154,10 +152,7 @@ XAxis.propTypes = {
154
152
  pagination: _propTypes.number,
155
153
  currentPage: _propTypes.number,
156
154
  initialHeight: _propTypes.number,
157
- paginationRef: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
158
- mainLabel: _propTypes.string,
159
- secondaryLabel: _propTypes.string
160
- })),
155
+ paginationRef: _commonTypes.refType,
161
156
  currentLabel: _propTypes.number
162
157
  };
163
158
  var _default = XAxis;
@@ -9,6 +9,8 @@ var _propTypes = require("prop-types");
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
+ var _commonTypes = require("../../../../../types/commonTypes");
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
16
  var AxisElement = function AxisElement(_ref) {
@@ -40,9 +42,7 @@ AxisElement.propTypes = {
40
42
  value: _propTypes.string,
41
43
  textAnchor: _propTypes.string,
42
44
  height: _propTypes.number,
43
- setRef: (0, _propTypes.shape)({
44
- current: _propTypes.elementType
45
- })
45
+ setRef: _commonTypes.refType
46
46
  };
47
47
  var _default = AxisElement;
48
48
  exports.default = _default;
@@ -24,12 +24,12 @@ var barType = (0, _propTypes.shape)({
24
24
  }))
25
25
  });
26
26
  exports.barType = barType;
27
+ var barDataType = (0, _propTypes.arrayOf)((0, _propTypes.oneOfType)([(0, _propTypes.arrayOf)(barType), barType]));
28
+ exports.barDataType = barDataType;
27
29
  var linearMarkersType = (0, _propTypes.shape)({
28
30
  type: _propTypes.string
29
31
  });
30
32
  exports.linearMarkersType = linearMarkersType;
31
- var barDataType = (0, _propTypes.arrayOf)((0, _propTypes.arrayOf)(barType));
32
- exports.barDataType = barDataType;
33
33
  var linearType = (0, _propTypes.shape)({
34
34
  data: (0, _propTypes.arrayOf)({
35
35
  xCoodrinate: _propTypes.number,
@@ -210,8 +210,7 @@ UTBreadcrumbs.propTypes = {
210
210
  elipsis: _propTypes.string,
211
211
  elipsisWidthEstimate: _propTypes.number,
212
212
  onRedirect: _propTypes.func,
213
- // eslint-disable-next-line react/forbid-prop-types
214
- menuProps: (0, _propTypes.shape)(_propTypes.any),
213
+ menuProps: _propTypes.object,
215
214
  separator: _propTypes.string
216
215
  };
217
216
 
@@ -123,8 +123,7 @@ UTButton.propTypes = {
123
123
  autoFocus: _propTypes.bool,
124
124
  type: _propTypes.string,
125
125
  onPress: _propTypes.func,
126
- classes: _propTypes.any,
127
- // eslint-disable-line react/forbid-prop-types
126
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
128
127
  className: _propTypes.string
129
128
  };
130
129
 
@@ -15,6 +15,8 @@ var _WithTheme = _interopRequireDefault(require("../WithTheme"));
15
15
 
16
16
  var _UTTextInput = _interopRequireDefault(require("../UTTextInput"));
17
17
 
18
+ var _formTypes = require("../../types/formTypes");
19
+
18
20
  var _theme = require("./theme");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -50,29 +52,28 @@ var UTCBUInput = function UTCBUInput(_ref) {
50
52
  title = field.title,
51
53
  configuration = field.configuration;
52
54
  var entities = configuration.entities,
53
- cbu_number_key = configuration.cbu_number_key,
54
- cbu_entity_key = configuration.cbu_entity_key;
55
+ cbuNumberKey = configuration.cbu_number_key;
55
56
 
56
57
  var _useState = (0, _react.useState)(''),
57
58
  _useState2 = _slicedToArray(_useState, 2),
58
59
  entity = _useState2[0],
59
60
  setEntity = _useState2[1];
60
61
 
61
- var onChangeText = function onChangeText(value) {
62
+ var onChangeText = function onChangeText(newValue) {
62
63
  var _onChange;
63
64
 
64
65
  var index = entities.findIndex(function (entityValue) {
65
- return new RegExp(entityValue.expression).test(value);
66
+ return new RegExp(entityValue.expression).test(newValue);
66
67
  });
67
68
  var entityToSet = index === -1 ? '' : entities[index].entity_name;
68
69
  setEntity(entityToSet);
69
- onChange((_onChange = {}, _defineProperty(_onChange, cbu_number_key, value), _defineProperty(_onChange, cbu_entity_key, entityToSet), _onChange));
70
+ onChange((_onChange = {}, _defineProperty(_onChange, cbuNumberKey, newValue), _defineProperty(_onChange, cbuNumberKey, entityToSet), _onChange));
70
71
  };
71
72
 
72
73
  return /*#__PURE__*/_react.default.createElement(_UTTextInput.default, {
73
74
  input: {
74
75
  onChange: onChangeText,
75
- value: (_value = {}, _defineProperty(_value, cbu_number_key, value[cbu_number_key]), _defineProperty(_value, cbu_entity_key, entity), _value)
76
+ value: (_value = {}, _defineProperty(_value, cbuNumberKey, value[cbuNumberKey]), _defineProperty(_value, cbuNumberKey, entity), _value)
76
77
  },
77
78
  field: field,
78
79
  placeholder: placeholder,
@@ -84,11 +85,12 @@ var UTCBUInput = function UTCBUInput(_ref) {
84
85
  root: classes.helper
85
86
  }
86
87
  },
87
- inputObjectKey: cbu_number_key
88
+ inputObjectKey: cbuNumberKey
88
89
  });
89
90
  };
90
91
 
91
- UTCBUInput.defaultProps = {
92
+ UTCBUInput.propTypes = {
93
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
92
94
  input: (0, _propTypes.shape)({
93
95
  onChange: _propTypes.func,
94
96
  value: (0, _propTypes.shape)({
@@ -100,12 +102,12 @@ UTCBUInput.defaultProps = {
100
102
  placeholder: _propTypes.string,
101
103
  title: _propTypes.string,
102
104
  configuration: (0, _propTypes.shape)({
103
- entities: (0, _propTypes.arrayOf)(_propTypes.any)
105
+ entities: _propTypes.array
104
106
  }),
105
107
  cbu_number_key: _propTypes.string,
106
108
  cbu_entity_key: _propTypes.string
107
109
  }),
108
- meta: _propTypes.any
110
+ meta: _formTypes.metaPropTypes
109
111
  };
110
112
 
111
113
  var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCBUInput);
@@ -199,22 +199,19 @@ UTCard.propTypes = {
199
199
  className: _propTypes.string,
200
200
  isCollapsible: _propTypes.bool,
201
201
  onClick: _propTypes.func,
202
- // eslint-disable-next-line react/forbid-prop-types
203
- classes: (0, _propTypes.shape)(_propTypes.any),
202
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
204
203
  isOpen: _propTypes.bool,
205
- // eslint-disable-next-line react/forbid-prop-types
206
- style: (0, _propTypes.shape)(_propTypes.any),
204
+ style: _propTypes.object,
207
205
  flat: _propTypes.bool,
208
206
  button: _propTypes.element,
209
- ExpandedIcon: _propTypes.element,
210
- NonExpandedIcon: _propTypes.element,
207
+ ExpandedIcon: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.element]),
208
+ NonExpandedIcon: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.element]),
211
209
  expandableContentClassName: _propTypes.string,
212
210
  expandableIconClassName: _propTypes.string,
213
211
  expandableIconButtonClassName: _propTypes.string,
214
212
  footerClassName: _propTypes.string,
215
213
  headerClassName: _propTypes.string,
216
- // eslint-disable-next-line react/forbid-prop-types
217
- CustomFooter: _propTypes.any
214
+ CustomFooter: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.func])
218
215
  };
219
216
  UTCard.defaultProps = {
220
217
  isOpen: null,
@@ -17,7 +17,7 @@ var cardActionsTypes = {
17
17
  }))
18
18
  }),
19
19
  footer: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
20
- name: _propTypes.string,
20
+ name: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.element]),
21
21
  onPress: _propTypes.func
22
22
  }))
23
23
  };
@@ -52,8 +52,7 @@ Button.propTypes = {
52
52
  callback: _propTypes.func,
53
53
  className: _propTypes.string,
54
54
  ArrowCustom: _propTypes.node,
55
- classes: _propTypes.any // eslint-disable-line react/forbid-prop-types
56
-
55
+ classes: (0, _propTypes.objectOf)(_propTypes.string)
57
56
  };
58
57
 
59
58
  var _default = /*#__PURE__*/(0, _react.memo)(Button);
@@ -49,8 +49,7 @@ LegendContainer.propTypes = {
49
49
  currentSlide: _propTypes.number,
50
50
  LegendCustom: _propTypes.node,
51
51
  keyName: _propTypes.string,
52
- classes: _propTypes.any // eslint-disable-line react/forbid-prop-types
53
-
52
+ classes: (0, _propTypes.objectOf)(_propTypes.string)
54
53
  };
55
54
 
56
55
  var _default = /*#__PURE__*/(0, _react.memo)(LegendContainer);
@@ -380,8 +380,7 @@ SliderContainer.propTypes = {
380
380
  activeEvents: _propTypes.bool,
381
381
  height: _propTypes.string,
382
382
  className: _propTypes.string,
383
- classes: _propTypes.any // eslint-disable-line react/forbid-prop-types,
384
-
383
+ classes: (0, _propTypes.objectOf)(_propTypes.string)
385
384
  };
386
385
  var _default = SliderContainer;
387
386
  exports.default = _default;
@@ -158,8 +158,7 @@ Slider.propTypes = {
158
158
  handlePrevSlide: _propTypes.func,
159
159
  handleNextSlide: _propTypes.func,
160
160
  timeAnimation: _propTypes.number,
161
- classes: _propTypes.any // eslint-disable-line react/forbid-prop-types
162
-
161
+ classes: (0, _propTypes.objectOf)(_propTypes.string)
163
162
  };
164
163
  var _default = Slider;
165
164
  exports.default = _default;
@@ -67,8 +67,7 @@ UTCarousel.propTypes = {
67
67
  height: _propTypes.string,
68
68
  activeEvents: _propTypes.bool,
69
69
  className: _propTypes.string,
70
- classes: _propTypes.any // eslint-disable-line react/forbid-prop-types
71
-
70
+ classes: (0, _propTypes.objectOf)(_propTypes.string)
72
71
  };
73
72
 
74
73
  var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCarousel);
@@ -25,6 +25,8 @@ var _classesUtils = require("../../utils/classesUtils");
25
25
 
26
26
  var _UTLabel = _interopRequireDefault(require("../UTLabel"));
27
27
 
28
+ var _formTypes = require("../../types/formTypes");
29
+
28
30
  var _theme = require("./theme");
29
31
 
30
32
  var _constants = require("./constants");
@@ -136,7 +138,8 @@ var UTCheckList = function UTCheckList(_ref) {
136
138
  className: "".concat(_stylesModule.default.rows, " ").concat(classes.rowContainerClassName)
137
139
  }, list.map(function (item) {
138
140
  return /*#__PURE__*/_react.default.createElement("div", {
139
- className: "".concat(_stylesModule.default.row, " ").concat(withCheckRow && classes.checkRowContainer)
141
+ className: "".concat(_stylesModule.default.row, " ").concat(withCheckRow && classes.checkRowContainer),
142
+ key: item[valueKey]
140
143
  }, withCheckRow && label([valueKey, labelKey], item), /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, {
141
144
  disabled: disabled || item.disabled,
142
145
  item: item,
@@ -171,7 +174,6 @@ UTCheckList.propTypes = {
171
174
  labelKey: _propTypes.string.isRequired,
172
175
  input: (0, _propTypes.shape)({
173
176
  onChange: _propTypes.func,
174
- // eslint-disable-next-line react/forbid-prop-types
175
177
  value: _propTypes.any
176
178
  }),
177
179
  additionalInfo: (0, _propTypes.shape)({
@@ -186,13 +188,12 @@ UTCheckList.propTypes = {
186
188
  allChecked: _propTypes.bool,
187
189
  shouldShowErrors: _propTypes.bool,
188
190
  className: _propTypes.string,
189
- meta: _propTypes.any,
190
- // eslint-disable-line react/forbid-prop-types,
191
+ meta: _formTypes.metaPropTypes,
191
192
  customRowLabel: _propTypes.element,
192
193
  customSelectAllRowLabel: _propTypes.element,
193
194
  getSelectAllNewValues: _propTypes.func,
194
- classes: (0, _propTypes.shape)(_propTypes.string),
195
- classNames: (0, _propTypes.shape)(_propTypes.string),
195
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
196
+ classNames: (0, _propTypes.objectOf)(_propTypes.string),
196
197
  header: (0, _propTypes.shape)({
197
198
  text: _propTypes.string
198
199
  }),
@@ -112,7 +112,7 @@ var UTCheckbox = function UTCheckbox(_ref) {
112
112
  icon: useCustomIcons && /*#__PURE__*/_react.default.createElement(CustomUncheckedIcon, {
113
113
  className: classes.uncheckedIcon
114
114
  }),
115
- checked: checkedRef.current,
115
+ checked: checkedRef.current || false,
116
116
  onChange: handleChange,
117
117
  value: (input === null || input === void 0 ? void 0 : input.value) || value,
118
118
  color: color,
@@ -137,13 +137,12 @@ UTCheckbox.propTypes = {
137
137
  disabled: _propTypes.bool,
138
138
  onChange: _propTypes.func,
139
139
  label: _propTypes.string,
140
- value: _propTypes.string,
140
+ value: (0, _propTypes.oneOfType)([_propTypes.bool, _propTypes.string]),
141
141
  CustomCheckedIcon: _propTypes.node,
142
142
  CustomUncheckedIcon: _propTypes.node,
143
- // eslint-disable-next-line react/forbid-prop-types
144
- item: (0, _propTypes.shape)(_propTypes.any),
143
+ item: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.object]),
145
144
  color: _propTypes.string,
146
- customRowLabel: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.string]),
145
+ customRowLabel: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.element, _propTypes.string]),
147
146
  useCustomIcons: _propTypes.bool,
148
147
  classes: (0, _propTypes.shape)({
149
148
  checkboxColorPrimary: _propTypes.string,
@@ -11,14 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
13
13
 
14
- var _propTypes = require("prop-types");
15
-
16
14
  var _form = require("@widergy/web-utils/lib/form");
17
15
 
18
16
  var _UTLabel = _interopRequireDefault(require("../UTLabel"));
19
17
 
20
18
  var _WithTheme = _interopRequireDefault(require("../WithTheme"));
21
19
 
20
+ var _formTypes = require("../../types/formTypes");
21
+
22
22
  var _theme = require("./theme");
23
23
 
24
24
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
@@ -218,18 +218,9 @@ var UTCuit = /*#__PURE__*/function (_PureComponent) {
218
218
  }(_react.PureComponent);
219
219
 
220
220
  UTCuit.propTypes = {
221
- input: (0, _propTypes.shape)({
222
- name: _propTypes.string.isRequired,
223
- onBlur: _propTypes.func.isRequired,
224
- onChange: _propTypes.func.isRequired,
225
- onFocus: _propTypes.func.isRequired,
226
- value: _propTypes.any.isRequired
227
- }),
228
- meta: (0, _propTypes.shape)({
229
- error: _propTypes.string
230
- }),
231
- field: _propTypes.any // eslint-disable-line react/forbid-prop-types
232
-
221
+ input: _formTypes.inputPropTypes,
222
+ meta: _formTypes.metaPropTypes,
223
+ field: _formTypes.fieldType
233
224
  };
234
225
 
235
226
  var _default = (0, _WithTheme.default)(null, _theme.retrieveMuiTheme)(UTCuit);
@@ -40,8 +40,8 @@ var Day = function Day(_ref) {
40
40
  Day.propTypes = {
41
41
  classes: (0, _propTypes.objectOf)(_propTypes.string),
42
42
  dayFormat: _propTypes.string,
43
- date: (0, _propTypes.instanceOf)(Date),
44
- pickedDate: (0, _propTypes.instanceOf)(Date),
43
+ date: _propTypes.object,
44
+ pickedDate: _propTypes.object,
45
45
  dayInCurrentMonth: _propTypes.bool
46
46
  };
47
47
 
@@ -202,16 +202,16 @@ var UTDatePicker = function UTDatePicker(_ref) {
202
202
  UTDatePicker.propTypes = {
203
203
  input: _formTypes.inputPropTypes.isRequired,
204
204
  meta: _formTypes.metaPropTypes,
205
- field: (0, _propTypes.shape)(_propTypes.any),
205
+ field: _formTypes.fieldType,
206
206
  classNames: _types.classesPropTypes,
207
207
  CustomIcon: _propTypes.node,
208
208
  dayFormat: _propTypes.string,
209
209
  variant: _propTypes.string,
210
210
  inputFormat: _propTypes.string,
211
- classes: (0, _propTypes.shape)(_propTypes.any),
212
- pickerProps: (0, _propTypes.shape)(_propTypes.any),
213
- inputProps: (0, _propTypes.shape)(_propTypes.any),
214
- popoverProps: (0, _propTypes.shape)(_propTypes.any),
211
+ classes: (0, _propTypes.objectOf)(_propTypes.string),
212
+ pickerProps: _propTypes.object,
213
+ inputProps: _propTypes.object,
214
+ popoverProps: _propTypes.object,
215
215
  placeholder: _propTypes.string,
216
216
  disableToolbar: _propTypes.bool,
217
217
  inputVariant: _propTypes.string,
@@ -37,8 +37,7 @@ ActionButton.propTypes = {
37
37
  button: _types.dialogButtonPropTypes,
38
38
  className: _propTypes.string,
39
39
  defaultText: _propTypes.string,
40
- ButtonComponent: _propTypes.any // eslint-disable-line react/forbid-prop-types
41
-
40
+ ButtonComponent: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.elementType, _propTypes.node, _propTypes.func])
42
41
  };
43
42
  var _default = ActionButton;
44
43
  exports.default = _default;
@@ -53,7 +53,8 @@ var UTDialog = function UTDialog(_ref) {
53
53
  disableScrollLock = _ref.disableScrollLock,
54
54
  disableTypography = _ref.disableTypography,
55
55
  elevation = _ref.elevation,
56
- isOpen = _ref.isOpen,
56
+ _ref$isOpen = _ref.isOpen,
57
+ isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
57
58
  onRequestClose = _ref.onRequestClose,
58
59
  roundedCloseButton = _ref.roundedCloseButton,
59
60
  title = _ref.title,
@@ -128,26 +129,22 @@ UTDialog.defaultProps = {
128
129
  };
129
130
  UTDialog.propTypes = {
130
131
  acceptButton: _types.dialogButtonPropTypes,
131
- alertConfig: _propTypes.any,
132
- // eslint-disable-line react/forbid-prop-types
132
+ alertConfig: _propTypes.object,
133
133
  ButtonComponent: _propTypes.elementType,
134
- // eslint-disable-line react/forbid-prop-types
135
134
  cancelButton: _types.dialogButtonPropTypes,
136
135
  classes: (0, _propTypes.objectOf)(_propTypes.string),
137
136
  classNames: (0, _propTypes.objectOf)(_propTypes.string),
138
137
  contentName: _propTypes.string,
139
138
  dialogProps: _propTypes.object,
140
- // eslint-disable-line react/forbid-prop-types
141
139
  disableEnforceFocus: _propTypes.bool,
142
140
  disableScrollLock: _propTypes.bool,
143
141
  disableTypography: _propTypes.bool,
144
142
  elevation: _propTypes.number,
145
- isOpen: _propTypes.bool.isRequired,
146
- onRequestClose: _propTypes.func.isRequired,
143
+ isOpen: _propTypes.bool,
144
+ onRequestClose: _propTypes.func,
147
145
  roundedCloseButton: _propTypes.bool,
148
- title: _propTypes.string,
146
+ title: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.string]),
149
147
  TransitionProps: _propTypes.object,
150
- // eslint-disable-line react/forbid-prop-types
151
148
  warningAlert: _propTypes.string,
152
149
  whiteTitle: _propTypes.bool,
153
150
  withClickAway: _propTypes.bool,
@@ -8,11 +8,10 @@ exports.dialogButtonPropTypes = void 0;
8
8
  var _propTypes = require("prop-types");
9
9
 
10
10
  var dialogButtonPropTypes = (0, _propTypes.oneOfType)([_propTypes.element, (0, _propTypes.shape)({
11
- onPress: _propTypes.func.isRequired,
12
- text: _propTypes.string.isRequired,
11
+ onPress: _propTypes.func,
12
+ text: _propTypes.string,
13
13
  disabled: _propTypes.bool,
14
14
  className: _propTypes.string,
15
- config: _propTypes.any // eslint-disable-line react/forbid-prop-types
16
-
15
+ config: _propTypes.object
17
16
  })]);
18
17
  exports.dialogButtonPropTypes = dialogButtonPropTypes;