react-survey-builder 1.0.34 → 1.0.35

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.
@@ -35,7 +35,6 @@ var _ipUtils = require("../utils/ipUtils");
35
35
  var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
36
36
  var _ri = require("react-icons/ri");
37
37
  var _UUID = _interopRequireDefault(require("../UUID"));
38
- var _md = require("react-icons/md");
39
38
  var _io = require("react-icons/io5");
40
39
  var _excluded = ["onChange"],
41
40
  _excluded2 = ["onChange", "formatMask"]; // eslint-disable-next-line max-classes-per-file
@@ -77,11 +76,12 @@ var CustomDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2,
77
76
  _ref2$formatMask = _ref2.formatMask,
78
77
  formatMask = _ref2$formatMask === void 0 ? 'MM/DD/YYYY' : _ref2$formatMask,
79
78
  otherProps = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
79
+ console.log('otherProps', otherProps);
80
80
  return /*#__PURE__*/_react["default"].createElement(_reactImask.IMaskInput, (0, _extends2["default"])({}, otherProps, {
81
81
  mask: Date,
82
82
  lazy: false,
83
83
  overwrite: true,
84
- pattern: formatMask,
84
+ pattern: formatMask !== null && formatMask !== void 0 ? formatMask : 'MM/DD/YYYY',
85
85
  format: function format(date) {
86
86
  var day = date.getDate();
87
87
  var month = date.getMonth() + 1;
@@ -551,6 +551,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component9) {
551
551
  var labelLocation = 'ABOVE';
552
552
  if (this.props.item.labelLocation) {
553
553
  labelLocation = this.props.item.labelLocation;
554
+ props.label = props.placeholder;
554
555
  }
555
556
  var baseClasses = 'SortableItem rfb-item';
556
557
  if (this.props.item.pageBreakBefore) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-survey-builder",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "A complete survey builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",