@northlight/ui 2.36.12 → 2.37.0

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.
@@ -7869,7 +7869,9 @@
7869
7869
  renderInPortal = false,
7870
7870
  firstDayOfWeek,
7871
7871
  onSave,
7872
- buttonLabel = "Save"
7872
+ buttonLabel = "Save",
7873
+ setIsOpen = () => {
7874
+ }
7873
7875
  } = props;
7874
7876
  const ref = React.useRef();
7875
7877
  const { group } = react.useMultiStyleConfig("DatePicker");
@@ -7888,6 +7890,9 @@
7888
7890
  shouldCloseOnSelect: false,
7889
7891
  hideTimeZone: true
7890
7892
  }));
7893
+ React.useEffect(() => {
7894
+ setIsOpen(state.isOpen);
7895
+ }, [state.isOpen]);
7891
7896
  const {
7892
7897
  groupProps,
7893
7898
  startFieldProps,