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.esm.js CHANGED
@@ -11369,9 +11369,10 @@ var useFilterCalendar = function (_a) {
11369
11369
  });
11370
11370
  }
11371
11371
  }, []);
11372
- useEffect(function () {
11373
- onSubmit(calendarRange);
11374
- }, []);
11372
+ // TODO - handle the onSubmit on calendar open
11373
+ // useEffect(() => {
11374
+ // onSubmit(calendarRange)
11375
+ // }, [])
11375
11376
  var handleSubmit = function () {
11376
11377
  setToggleCalendar(false);
11377
11378
  return onSubmit(calendarRange);
@@ -11430,7 +11431,7 @@ function FilterCalendar(_a) {
11430
11431
  !!nights && (React__default__default.createElement("span", null, "".concat(nights, " ").concat(t("common:".concat(nights > 1 ? 'nights' : 'night')))))),
11431
11432
  React__default__default.createElement("div", { className: "will-calendar-footer-actions" },
11432
11433
  React__default__default.createElement(SubmitButton, { onClick: handleClearDates, disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from), label: t("common:clearDates") }),
11433
- React__default__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) })))))));
11434
+ React__default__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) })))))));
11434
11435
  }
11435
11436
 
11436
11437
  export { Button$1 as Button, FilterBar, FilterCalendar };