sag_components 2.0.0-beta344 → 2.0.0-beta346

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/index.js CHANGED
@@ -13637,14 +13637,14 @@ const DialogOverlay$1 = props => {
13637
13637
  modal.close();
13638
13638
  onDialogClose();
13639
13639
  };
13640
- return /*#__PURE__*/React.createElement(ModalWrapper$1, {
13640
+ return /*#__PURE__*/React__default["default"].createElement(ModalWrapper$1, {
13641
13641
  className: className
13642
- }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$2, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13642
+ }, /*#__PURE__*/React__default["default"].createElement(Modal$1, null, /*#__PURE__*/React__default["default"].createElement(ModalHeader$2, null, /*#__PURE__*/React__default["default"].createElement(ModalTitle$2, null, title), /*#__PURE__*/React__default["default"].createElement(ModalClose, {
13643
13643
  type: "button",
13644
13644
  onClick: closeModal
13645
- }, /*#__PURE__*/React.createElement(CloseXIcon, {
13645
+ }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
13646
13646
  fill: "white"
13647
- }))), /*#__PURE__*/React.createElement(ModalBody$1, {
13647
+ }))), /*#__PURE__*/React__default["default"].createElement(ModalBody$1, {
13648
13648
  id: "modalBody"
13649
13649
  }, children)));
13650
13650
  };
@@ -36636,9 +36636,9 @@ const ToggleSlider = styled__default["default"].span`
36636
36636
  }
36637
36637
  `;
36638
36638
 
36639
- /**
36640
- * ToggleSwitch component for on/off states.
36641
- * Supports small/large sizes and disabled state.
36639
+ /**
36640
+ * ToggleSwitch component for on/off states.
36641
+ * Supports small/large sizes and disabled state.
36642
36642
  */
36643
36643
  function ToggleSwitch(_ref) {
36644
36644
  let {
@@ -43028,10 +43028,12 @@ const MessageBox = _ref => {
43028
43028
  secondaryColor = "#ffffff",
43029
43029
  seperateSectionBorder = false,
43030
43030
  children,
43031
- tooltipContent = "Please fill in all required details"
43031
+ tooltipContent = "Please fill in all required details",
43032
+ disableBackdropClose = false
43032
43033
  } = _ref;
43033
43034
  if (!isOpen) return null;
43034
43035
  const handleOverlayClick = e => {
43036
+ if (disableBackdropClose) return;
43035
43037
  if (e.target === e.currentTarget) {
43036
43038
  onClose();
43037
43039
  }