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/cjs/index.js CHANGED
@@ -510,6 +510,8 @@ const Modal = (props) => {
510
510
  var _a;
511
511
  /* -------------- Props ------------- */
512
512
  const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, largeTitle, children, onClose, dontAllowBackdropExit, dontShowXButton, onTopOfOtherModals, } = props;
513
+ // Determine if no header either
514
+ const noHeader = (!title && type === ModalType$1.NoButtons);
513
515
  /* -------------- State ------------- */
514
516
  // True if animation is in use
515
517
  const [animatingIn, setAnimatingIn] = React.useState(true);
@@ -647,7 +649,7 @@ const Modal = (props) => {
647
649
  ? 'gray'
648
650
  : undefined),
649
651
  } },
650
- React__default["default"].createElement("div", { className: "modal-header", style: {
652
+ !noHeader && (React__default["default"].createElement("div", { className: "modal-header", style: {
651
653
  color: (isDarkModeOn()
652
654
  ? 'white'
653
655
  : undefined),
@@ -671,7 +673,7 @@ const Modal = (props) => {
671
673
  }, onClick: () => {
672
674
  // Handle close
673
675
  handleClose(ModalButtonType$1.Cancel);
674
- } }))),
676
+ } })))),
675
677
  children && (React__default["default"].createElement("div", { className: "modal-body", style: {
676
678
  color: (isDarkModeOn()
677
679
  ? 'white'
@@ -789,12 +791,21 @@ const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function
789
791
  // Error
790
792
  throw new ErrorWithCode(stubResponse.errorMessage, stubResponse.errorCode);
791
793
  }
794
+ // Remove properties with undefined values
795
+ let params;
796
+ if (opts.params) {
797
+ params = Object.fromEntries(Object
798
+ .entries(opts.params)
799
+ .filter(([key, value]) => {
800
+ return value !== undefined;
801
+ }));
802
+ }
792
803
  // Send the request
793
804
  const sendRequest = yield getSendRequest();
794
805
  const response = yield sendRequest({
795
806
  path: opts.path,
796
807
  method: (_c = opts.method) !== null && _c !== void 0 ? _c : 'GET',
797
- params: opts.params,
808
+ params,
798
809
  });
799
810
  // Check for failure
800
811
  if (!response || !response.body) {