@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.esm.js
CHANGED
|
@@ -40353,6 +40353,8 @@ var getApplicationNode = function getApplicationNode() {
|
|
|
40353
40353
|
|
|
40354
40354
|
var Modal$1 = function Modal(_ref) {
|
|
40355
40355
|
var hideModal = _ref.hideModal,
|
|
40356
|
+
_ref$onExit = _ref.onExit,
|
|
40357
|
+
onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
|
|
40356
40358
|
continueAction = _ref.continueAction,
|
|
40357
40359
|
_ref$isContinueAction = _ref.isContinueActionDisabled,
|
|
40358
40360
|
isContinueActionDisabled = _ref$isContinueAction === void 0 ? false : _ref$isContinueAction,
|
|
@@ -40364,6 +40366,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40364
40366
|
cancelButtonText = _ref$cancelButtonText === void 0 ? "Cancel" : _ref$cancelButtonText,
|
|
40365
40367
|
_ref$continueButtonTe = _ref.continueButtonText,
|
|
40366
40368
|
continueButtonText = _ref$continueButtonTe === void 0 ? "Continue" : _ref$continueButtonTe,
|
|
40369
|
+
_ref$closeButtonText = _ref.closeButtonText,
|
|
40370
|
+
closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
|
|
40367
40371
|
_ref$modalHeaderBg = _ref.modalHeaderBg,
|
|
40368
40372
|
modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
|
|
40369
40373
|
_ref$modalBodyBg = _ref.modalBodyBg,
|
|
@@ -40389,7 +40393,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40389
40393
|
isMobile = _useContext.isMobile;
|
|
40390
40394
|
|
|
40391
40395
|
return /*#__PURE__*/React.createElement(Fragment, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
|
|
40392
|
-
onExit:
|
|
40396
|
+
onExit: onExit,
|
|
40393
40397
|
getApplicationNode: getApplicationNode,
|
|
40394
40398
|
titleText: modalHeaderText,
|
|
40395
40399
|
underlayStyle: {
|
|
@@ -40486,10 +40490,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40486
40490
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
40487
40491
|
action: hideModal,
|
|
40488
40492
|
variant: "primary",
|
|
40489
|
-
text:
|
|
40490
|
-
dataQa:
|
|
40493
|
+
text: closeButtonText,
|
|
40494
|
+
dataQa: closeButtonText,
|
|
40491
40495
|
extraStyles: buttonExtraStyles,
|
|
40492
|
-
className: "modal-
|
|
40496
|
+
className: "modal-close-button"
|
|
40493
40497
|
}))))))))), children);
|
|
40494
40498
|
};
|
|
40495
40499
|
|