@luscii-healthtech/web-ui 37.6.0 → 37.6.1

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.
@@ -14,6 +14,7 @@ type ReactDatePickerProps = {
14
14
  includeDates?: Date[];
15
15
  openToDate?: Date;
16
16
  placeholderText?: string;
17
+ portalId?: string;
17
18
  };
18
19
  type Props = {
19
20
  /**
@@ -3435,7 +3435,7 @@ function getLocaleModule(locale) {
3435
3435
  return LOCALE_MAP[resolvedLocale];
3436
3436
  }
3437
3437
  const DatePicker = (props) => {
3438
- const { locale: localeFromProps, className, hasCloseButton, closeButtonText, adjustDateOnChange = true, showMonthDropdown = true, showYearDropdown = true, shouldCloseOnSelect = false, allowSameDay = false, minDate, maxDate, isDisabled = false, selected } = props, otherProps = __rest(props, ["locale", "className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected"]);
3438
+ const { locale: localeFromProps, className, hasCloseButton, closeButtonText, adjustDateOnChange = true, showMonthDropdown = true, showYearDropdown = true, shouldCloseOnSelect = false, allowSameDay = false, minDate, maxDate, isDisabled = false, selected, portalId = "datepicker-portal" } = props, otherProps = __rest(props, ["locale", "className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected", "portalId"]);
3439
3439
  const localeFromContext = useLocaleContext();
3440
3440
  const locale = localeFromProps !== null && localeFromProps !== void 0 ? localeFromProps : localeFromContext;
3441
3441
  const datePickerRef = React.useRef(null);
@@ -3455,7 +3455,7 @@ const DatePicker = (props) => {
3455
3455
  const dateFormat = getDateFormat();
3456
3456
  return React__namespace.default.createElement(
3457
3457
  ReactDatePicker__default.default,
3458
- Object.assign({}, otherProps, { adjustDateOnChange, allowSameDay, calendarClassName: "cweb-datepicker-calendar", className: pickerClassName, dateFormat, disabled: isDisabled, dropdownMode: "select", locale: getLocaleModule(locale), maxDate, minDate, popperClassName: "react-datepicker-popper ui-z-30", popperPlacement: "bottom-start", portalId: "datepicker-portal", ref: datePickerRef, selected, shouldCloseOnSelect, showMonthDropdown, showYearDropdown, timeFormat: "HH:mm" }),
3458
+ Object.assign({}, otherProps, { adjustDateOnChange, allowSameDay, calendarClassName: "cweb-datepicker-calendar", className: pickerClassName, dateFormat, disabled: isDisabled, dropdownMode: "select", locale: getLocaleModule(locale), maxDate, minDate, popperClassName: "react-datepicker-popper ui-z-30", popperPlacement: "bottom-start", portalId, ref: datePickerRef, selected, shouldCloseOnSelect, showMonthDropdown, showYearDropdown, timeFormat: "HH:mm" }),
3459
3459
  React__namespace.default.createElement("div", { className: "ui-m-2 ui-mt-0" }, hasCloseButton ? React__namespace.default.createElement(PrimaryButton, { onClick: handleCloseButtonClick }, closeButtonText !== null && closeButtonText !== void 0 ? closeButtonText : "OK") : null)
3460
3460
  );
3461
3461
  };