willba-component-library 0.2.17 → 0.2.19

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/lib/index.umd.js CHANGED
@@ -11391,9 +11391,10 @@
11391
11391
  });
11392
11392
  }
11393
11393
  }, []);
11394
- React__default.useEffect(function () {
11395
- onSubmit(calendarRange);
11396
- }, []);
11394
+ // TODO - handle the onSubmit on calendar open
11395
+ // useEffect(() => {
11396
+ // onSubmit(calendarRange)
11397
+ // }, [])
11397
11398
  var handleSubmit = function () {
11398
11399
  setToggleCalendar(false);
11399
11400
  return onSubmit(calendarRange);
@@ -11452,7 +11453,7 @@
11452
11453
  !!nights && (React__default.createElement("span", null, "".concat(nights, " ").concat(t("common:".concat(nights > 1 ? 'nights' : 'night')))))),
11453
11454
  React__default.createElement("div", { className: "will-calendar-footer-actions" },
11454
11455
  React__default.createElement(SubmitButton, { onClick: handleClearDates, disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from), label: t("common:clearDates") }),
11455
- React__default.createElement(SubmitButton, { onClick: handleSubmit, label: t("common:apply"), disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) || !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) })))))));
11456
+ React__default.createElement(SubmitButton, { onClick: function () { return handleSubmit(); }, label: t("common:apply"), disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) || !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) })))))));
11456
11457
  }
11457
11458
 
11458
11459
  exports.Button = Button$1;