@thecb/components 6.2.3 → 6.2.4
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.cjs.js
CHANGED
|
@@ -40361,6 +40361,8 @@ var getApplicationNode = function getApplicationNode() {
|
|
|
40361
40361
|
|
|
40362
40362
|
var Modal$1 = function Modal(_ref) {
|
|
40363
40363
|
var hideModal = _ref.hideModal,
|
|
40364
|
+
_ref$onExit = _ref.onExit,
|
|
40365
|
+
onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
|
|
40364
40366
|
continueAction = _ref.continueAction,
|
|
40365
40367
|
_ref$isContinueAction = _ref.isContinueActionDisabled,
|
|
40366
40368
|
isContinueActionDisabled = _ref$isContinueAction === void 0 ? false : _ref$isContinueAction,
|
|
@@ -40372,6 +40374,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40372
40374
|
cancelButtonText = _ref$cancelButtonText === void 0 ? "Cancel" : _ref$cancelButtonText,
|
|
40373
40375
|
_ref$continueButtonTe = _ref.continueButtonText,
|
|
40374
40376
|
continueButtonText = _ref$continueButtonTe === void 0 ? "Continue" : _ref$continueButtonTe,
|
|
40377
|
+
_ref$closeButtonText = _ref.closeButtonText,
|
|
40378
|
+
closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
|
|
40375
40379
|
_ref$modalHeaderBg = _ref.modalHeaderBg,
|
|
40376
40380
|
modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
|
|
40377
40381
|
_ref$modalBodyBg = _ref.modalBodyBg,
|
|
@@ -40397,7 +40401,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40397
40401
|
isMobile = _useContext.isMobile;
|
|
40398
40402
|
|
|
40399
40403
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal, {
|
|
40400
|
-
onExit:
|
|
40404
|
+
onExit: onExit,
|
|
40401
40405
|
getApplicationNode: getApplicationNode,
|
|
40402
40406
|
titleText: modalHeaderText,
|
|
40403
40407
|
underlayStyle: {
|
|
@@ -40494,10 +40498,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40494
40498
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40495
40499
|
action: hideModal,
|
|
40496
40500
|
variant: "primary",
|
|
40497
|
-
text:
|
|
40498
|
-
dataQa:
|
|
40501
|
+
text: closeButtonText,
|
|
40502
|
+
dataQa: closeButtonText,
|
|
40499
40503
|
extraStyles: buttonExtraStyles,
|
|
40500
|
-
className: "modal-
|
|
40504
|
+
className: "modal-close-button"
|
|
40501
40505
|
}))))))))), children);
|
|
40502
40506
|
};
|
|
40503
40507
|
|