dce-reactkit 3.7.36 → 3.7.38

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/dist/esm/index.js CHANGED
@@ -483,6 +483,8 @@ const Modal = (props) => {
483
483
  var _a;
484
484
  /* -------------- Props ------------- */
485
485
  const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, largeTitle, children, onClose, dontAllowBackdropExit, dontShowXButton, onTopOfOtherModals, } = props;
486
+ // Determine if no header either
487
+ const noHeader = (!title && type === ModalType$1.NoButtons);
486
488
  /* -------------- State ------------- */
487
489
  // True if animation is in use
488
490
  const [animatingIn, setAnimatingIn] = useState(true);
@@ -620,7 +622,7 @@ const Modal = (props) => {
620
622
  ? 'gray'
621
623
  : undefined),
622
624
  } },
623
- React__default.createElement("div", { className: "modal-header", style: {
625
+ !noHeader && (React__default.createElement("div", { className: "modal-header", style: {
624
626
  color: (isDarkModeOn()
625
627
  ? 'white'
626
628
  : undefined),
@@ -644,7 +646,7 @@ const Modal = (props) => {
644
646
  }, onClick: () => {
645
647
  // Handle close
646
648
  handleClose(ModalButtonType$1.Cancel);
647
- } }))),
649
+ } })))),
648
650
  children && (React__default.createElement("div", { className: "modal-body", style: {
649
651
  color: (isDarkModeOn()
650
652
  ? 'white'
@@ -762,12 +764,21 @@ const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function
762
764
  // Error
763
765
  throw new ErrorWithCode(stubResponse.errorMessage, stubResponse.errorCode);
764
766
  }
767
+ // Remove properties with undefined values
768
+ let params;
769
+ if (opts.params) {
770
+ params = Object.fromEntries(Object
771
+ .entries(opts.params)
772
+ .filter(([key, value]) => {
773
+ return value !== undefined;
774
+ }));
775
+ }
765
776
  // Send the request
766
777
  const sendRequest = yield getSendRequest();
767
778
  const response = yield sendRequest({
768
779
  path: opts.path,
769
780
  method: (_c = opts.method) !== null && _c !== void 0 ? _c : 'GET',
770
- params: opts.params,
781
+ params,
771
782
  });
772
783
  // Check for failure
773
784
  if (!response || !response.body) {