@thecb/components 6.2.2 → 6.2.5
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 +12 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/link/ExternalLink.js +2 -0
- package/src/components/molecules/modal/Modal.js +6 -4
- package/src/components/molecules/radio-section/RadioSection.js +3 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17014,6 +17014,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
17014
17014
|
_ref$tabIndex = _ref.tabIndex,
|
|
17015
17015
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
17016
17016
|
dataQa = _ref.dataQa,
|
|
17017
|
+
ariaLabel = _ref.ariaLabel,
|
|
17017
17018
|
children = _ref.children;
|
|
17018
17019
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
17019
17020
|
var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
|
|
@@ -17030,7 +17031,8 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
17030
17031
|
tabIndex: tabIndex,
|
|
17031
17032
|
extrastyles: extraStyles,
|
|
17032
17033
|
rel: newTab ? "noopener" : "",
|
|
17033
|
-
"data-qa": dataQa
|
|
17034
|
+
"data-qa": dataQa,
|
|
17035
|
+
"aria-label": ariaLabel
|
|
17034
17036
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17035
17037
|
};
|
|
17036
17038
|
|
|
@@ -40359,6 +40361,8 @@ var getApplicationNode = function getApplicationNode() {
|
|
|
40359
40361
|
|
|
40360
40362
|
var Modal$1 = function Modal(_ref) {
|
|
40361
40363
|
var hideModal = _ref.hideModal,
|
|
40364
|
+
_ref$onExit = _ref.onExit,
|
|
40365
|
+
onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
|
|
40362
40366
|
continueAction = _ref.continueAction,
|
|
40363
40367
|
_ref$isContinueAction = _ref.isContinueActionDisabled,
|
|
40364
40368
|
isContinueActionDisabled = _ref$isContinueAction === void 0 ? false : _ref$isContinueAction,
|
|
@@ -40370,6 +40374,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40370
40374
|
cancelButtonText = _ref$cancelButtonText === void 0 ? "Cancel" : _ref$cancelButtonText,
|
|
40371
40375
|
_ref$continueButtonTe = _ref.continueButtonText,
|
|
40372
40376
|
continueButtonText = _ref$continueButtonTe === void 0 ? "Continue" : _ref$continueButtonTe,
|
|
40377
|
+
_ref$closeButtonText = _ref.closeButtonText,
|
|
40378
|
+
closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
|
|
40373
40379
|
_ref$modalHeaderBg = _ref.modalHeaderBg,
|
|
40374
40380
|
modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
|
|
40375
40381
|
_ref$modalBodyBg = _ref.modalBodyBg,
|
|
@@ -40395,7 +40401,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40395
40401
|
isMobile = _useContext.isMobile;
|
|
40396
40402
|
|
|
40397
40403
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal, {
|
|
40398
|
-
onExit:
|
|
40404
|
+
onExit: onExit,
|
|
40399
40405
|
getApplicationNode: getApplicationNode,
|
|
40400
40406
|
titleText: modalHeaderText,
|
|
40401
40407
|
underlayStyle: {
|
|
@@ -40492,10 +40498,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40492
40498
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40493
40499
|
action: hideModal,
|
|
40494
40500
|
variant: "primary",
|
|
40495
|
-
text:
|
|
40496
|
-
dataQa:
|
|
40501
|
+
text: closeButtonText,
|
|
40502
|
+
dataQa: closeButtonText,
|
|
40497
40503
|
extraStyles: buttonExtraStyles,
|
|
40498
|
-
className: "modal-
|
|
40504
|
+
className: "modal-close-button"
|
|
40499
40505
|
}))))))))), children);
|
|
40500
40506
|
};
|
|
40501
40507
|
|
|
@@ -42592,7 +42598,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
42592
42598
|
return !section.hidden;
|
|
42593
42599
|
}).map(function (section) {
|
|
42594
42600
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
42595
|
-
tabIndex: section.hideRadioButton ? "-1" : "0",
|
|
42601
|
+
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
42596
42602
|
onKeyDown: function onKeyDown(e) {
|
|
42597
42603
|
return handleKeyDown(section.id, e);
|
|
42598
42604
|
},
|