@happeouikit/form-elements 2.3.25 → 2.3.27

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.
package/dist/Checkbox.js CHANGED
@@ -23,6 +23,9 @@ var Checkbox = function Checkbox(_ref) {
23
23
  event.preventDefault();
24
24
  checkboxRef.current.checked = !checkboxRef.current.checked;
25
25
  if (typeof rest.onChange === "function") {
26
+ Object.defineProperty(event, "target", {
27
+ value: checkboxRef.current
28
+ });
26
29
  rest.onChange(event);
27
30
  }
28
31
  }
@@ -150,6 +150,13 @@ var DatePicker = function DatePicker(_ref) {
150
150
  inputProps: _objectSpread({
151
151
  id: datePickerId,
152
152
  "aria-label": label,
153
+ /**
154
+ * If your console gives you a log error like this:
155
+ * Warning: Invalid aria prop `aria-description` on <input> tag.
156
+ * You can safely ignore it.
157
+ * It will be fixed when we upgrade to React 18.
158
+ * See https://github.com/facebook/react/pull/22142
159
+ */
153
160
  "aria-description": intl.formatMessage(messages.selectDateFormatDescription, {
154
161
  localeFormat: localeFormat
155
162
  })
@@ -192,7 +192,7 @@ Typeahead.propTypes = {
192
192
  text: PropTypes.string,
193
193
  // If keepResult, this is showed when selecting a result
194
194
  component: PropTypes.element.isRequired,
195
- data: PropTypes.shape.isRequired // Data will be passed with onSelect
195
+ data: PropTypes.any.isRequired // Data will be passed with onSelect
196
196
  })).isRequired,
197
197
  onSelect: PropTypes.func.isRequired,
198
198
  onClear: PropTypes.func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happeouikit/form-elements",
3
- "version": "2.3.25",
3
+ "version": "2.3.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "e35b700148d8343805db2d3503093c0a947ab2b3"
48
+ "gitHead": "1ebb0512a898032dea4a806638ed433ca8f7a252"
49
49
  }