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.d.ts +2 -1
- package/dist/index.esm.js +10 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/types/components/MessageBox/MessageBox.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1637,7 +1637,7 @@ declare function OverlayDropdown({ data, value, onSelectClick, label, labelEmpty
|
|
|
1637
1637
|
margin?: string;
|
|
1638
1638
|
}): react_jsx_runtime.JSX.Element;
|
|
1639
1639
|
|
|
1640
|
-
declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, primaryText, secondaryText, width, height, color, hoverColor, opacity, secondaryColor, seperateSectionBorder, children, tooltipContent, }: {
|
|
1640
|
+
declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, primaryText, secondaryText, width, height, color, hoverColor, opacity, secondaryColor, seperateSectionBorder, children, tooltipContent, disableBackdropClose, }: {
|
|
1641
1641
|
isOpen?: boolean;
|
|
1642
1642
|
isDisabled?: boolean;
|
|
1643
1643
|
onClose?: () => void;
|
|
@@ -1654,6 +1654,7 @@ declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, pri
|
|
|
1654
1654
|
seperateSectionBorder?: boolean;
|
|
1655
1655
|
children: any;
|
|
1656
1656
|
tooltipContent?: string;
|
|
1657
|
+
disableBackdropClose?: boolean;
|
|
1657
1658
|
}): react_jsx_runtime.JSX.Element;
|
|
1658
1659
|
|
|
1659
1660
|
declare function ToasterMessageBox({ color, messageText, linkText, duration, width, icon, onLinkClick, onClose }: {
|
package/dist/index.esm.js
CHANGED
|
@@ -13627,14 +13627,14 @@ const DialogOverlay$1 = props => {
|
|
|
13627
13627
|
modal.close();
|
|
13628
13628
|
onDialogClose();
|
|
13629
13629
|
};
|
|
13630
|
-
return /*#__PURE__*/React.createElement(ModalWrapper$1, {
|
|
13630
|
+
return /*#__PURE__*/React$1.createElement(ModalWrapper$1, {
|
|
13631
13631
|
className: className
|
|
13632
|
-
}, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$2, null, title), /*#__PURE__*/React.createElement(ModalClose, {
|
|
13632
|
+
}, /*#__PURE__*/React$1.createElement(Modal$1, null, /*#__PURE__*/React$1.createElement(ModalHeader$2, null, /*#__PURE__*/React$1.createElement(ModalTitle$2, null, title), /*#__PURE__*/React$1.createElement(ModalClose, {
|
|
13633
13633
|
type: "button",
|
|
13634
13634
|
onClick: closeModal
|
|
13635
|
-
}, /*#__PURE__*/React.createElement(CloseXIcon, {
|
|
13635
|
+
}, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
13636
13636
|
fill: "white"
|
|
13637
|
-
}))), /*#__PURE__*/React.createElement(ModalBody$1, {
|
|
13637
|
+
}))), /*#__PURE__*/React$1.createElement(ModalBody$1, {
|
|
13638
13638
|
id: "modalBody"
|
|
13639
13639
|
}, children)));
|
|
13640
13640
|
};
|
|
@@ -36626,9 +36626,9 @@ const ToggleSlider = styled.span`
|
|
|
36626
36626
|
}
|
|
36627
36627
|
`;
|
|
36628
36628
|
|
|
36629
|
-
/**
|
|
36630
|
-
* ToggleSwitch component for on/off states.
|
|
36631
|
-
* Supports small/large sizes and disabled state.
|
|
36629
|
+
/**
|
|
36630
|
+
* ToggleSwitch component for on/off states.
|
|
36631
|
+
* Supports small/large sizes and disabled state.
|
|
36632
36632
|
*/
|
|
36633
36633
|
function ToggleSwitch(_ref) {
|
|
36634
36634
|
let {
|
|
@@ -43018,10 +43018,12 @@ const MessageBox = _ref => {
|
|
|
43018
43018
|
secondaryColor = "#ffffff",
|
|
43019
43019
|
seperateSectionBorder = false,
|
|
43020
43020
|
children,
|
|
43021
|
-
tooltipContent = "Please fill in all required details"
|
|
43021
|
+
tooltipContent = "Please fill in all required details",
|
|
43022
|
+
disableBackdropClose = false
|
|
43022
43023
|
} = _ref;
|
|
43023
43024
|
if (!isOpen) return null;
|
|
43024
43025
|
const handleOverlayClick = e => {
|
|
43026
|
+
if (disableBackdropClose) return;
|
|
43025
43027
|
if (e.target === e.currentTarget) {
|
|
43026
43028
|
onClose();
|
|
43027
43029
|
}
|