@thecb/components 6.2.2-beta.0 → 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
@@ -17006,6 +17006,7 @@ var ExternalLink = function ExternalLink(_ref) {
17006
17006
  _ref$tabIndex = _ref.tabIndex,
17007
17007
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
17008
17008
  dataQa = _ref.dataQa,
17009
+ ariaLabel = _ref.ariaLabel,
17009
17010
  children = _ref.children;
17010
17011
  var themeContext = useContext(ThemeContext);
17011
17012
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
@@ -17022,7 +17023,8 @@ var ExternalLink = function ExternalLink(_ref) {
17022
17023
  tabIndex: tabIndex,
17023
17024
  extrastyles: extraStyles,
17024
17025
  rel: newTab ? "noopener" : "",
17025
- "data-qa": dataQa
17026
+ "data-qa": dataQa,
17027
+ "aria-label": ariaLabel
17026
17028
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
17027
17029
  };
17028
17030
 
@@ -40351,6 +40353,8 @@ var getApplicationNode = function getApplicationNode() {
40351
40353
 
40352
40354
  var Modal$1 = function Modal(_ref) {
40353
40355
  var hideModal = _ref.hideModal,
40356
+ _ref$onExit = _ref.onExit,
40357
+ onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
40354
40358
  continueAction = _ref.continueAction,
40355
40359
  _ref$isContinueAction = _ref.isContinueActionDisabled,
40356
40360
  isContinueActionDisabled = _ref$isContinueAction === void 0 ? false : _ref$isContinueAction,
@@ -40362,6 +40366,8 @@ var Modal$1 = function Modal(_ref) {
40362
40366
  cancelButtonText = _ref$cancelButtonText === void 0 ? "Cancel" : _ref$cancelButtonText,
40363
40367
  _ref$continueButtonTe = _ref.continueButtonText,
40364
40368
  continueButtonText = _ref$continueButtonTe === void 0 ? "Continue" : _ref$continueButtonTe,
40369
+ _ref$closeButtonText = _ref.closeButtonText,
40370
+ closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
40365
40371
  _ref$modalHeaderBg = _ref.modalHeaderBg,
40366
40372
  modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
40367
40373
  _ref$modalBodyBg = _ref.modalBodyBg,
@@ -40387,7 +40393,7 @@ var Modal$1 = function Modal(_ref) {
40387
40393
  isMobile = _useContext.isMobile;
40388
40394
 
40389
40395
  return /*#__PURE__*/React.createElement(Fragment, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
40390
- onExit: hideModal,
40396
+ onExit: onExit,
40391
40397
  getApplicationNode: getApplicationNode,
40392
40398
  titleText: modalHeaderText,
40393
40399
  underlayStyle: {
@@ -40484,10 +40490,10 @@ var Modal$1 = function Modal(_ref) {
40484
40490
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
40485
40491
  action: hideModal,
40486
40492
  variant: "primary",
40487
- text: "Close",
40488
- dataQa: "Close",
40493
+ text: closeButtonText,
40494
+ dataQa: closeButtonText,
40489
40495
  extraStyles: buttonExtraStyles,
40490
- className: "modal-cancel-button"
40496
+ className: "modal-close-button"
40491
40497
  }))))))))), children);
40492
40498
  };
40493
40499