@thecb/components 9.2.10-beta.14 → 9.2.10-beta.16
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 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +5 -3
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +2 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +1 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22107,7 +22107,7 @@ var HiddenCheckbox = styled__default.input.attrs({
|
|
|
22107
22107
|
}).withConfig({
|
|
22108
22108
|
displayName: "Checkbox__HiddenCheckbox",
|
|
22109
22109
|
componentId: "sc-36kqbv-3"
|
|
22110
|
-
})(["border:0;clip:rect(0 0 0 0);
|
|
22110
|
+
})(["border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
22111
22111
|
var StyledCheckbox = styled__default.div.withConfig({
|
|
22112
22112
|
displayName: "Checkbox__StyledCheckbox",
|
|
22113
22113
|
componentId: "sc-36kqbv-4"
|
|
@@ -22184,14 +22184,16 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22184
22184
|
id: "checkbox-".concat(name),
|
|
22185
22185
|
disabled: disabled,
|
|
22186
22186
|
name: name,
|
|
22187
|
-
"aria-label": checkboxAriaLabel || "".concat(title, " checkbox"),
|
|
22188
22187
|
checked: checked,
|
|
22189
22188
|
onChange: onChange,
|
|
22190
22189
|
tabIndex: "-1",
|
|
22191
22190
|
"aria-invalid": error,
|
|
22192
|
-
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22191
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : "",
|
|
22192
|
+
"aria-hidden": true
|
|
22193
22193
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22194
22194
|
role: "checkbox",
|
|
22195
|
+
"aria-invalid": error,
|
|
22196
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : "",
|
|
22195
22197
|
error: error,
|
|
22196
22198
|
disabled: disabled,
|
|
22197
22199
|
checked: checked,
|
|
@@ -22203,7 +22205,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22203
22205
|
disabledStyles: themeValues.disabledStyles,
|
|
22204
22206
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
22205
22207
|
focusedStyles: themeValues.focusedStyles,
|
|
22206
|
-
"aria-label": checkboxAriaLabel
|
|
22208
|
+
"aria-label": checkboxAriaLabel
|
|
22207
22209
|
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
22208
22210
|
viewBox: "0 0 24 24",
|
|
22209
22211
|
disabled: disabled,
|
|
@@ -47879,7 +47881,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47879
47881
|
error: error,
|
|
47880
47882
|
checked: isChecked,
|
|
47881
47883
|
onChange: onCheck,
|
|
47882
|
-
|
|
47884
|
+
checkboxAriaLabel: checkboxAriaLabel
|
|
47883
47885
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
47884
47886
|
padding: "0 0 0 58px"
|
|
47885
47887
|
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -47961,7 +47963,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47961
47963
|
onChange: onCheck,
|
|
47962
47964
|
checkboxMargin: checkboxMargin,
|
|
47963
47965
|
extraStyles: "align-self: flex-start;",
|
|
47964
|
-
|
|
47966
|
+
checkboxAriaLabel: checkboxAriaLabel
|
|
47965
47967
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
47966
47968
|
childGap: "0.25rem",
|
|
47967
47969
|
fullHeight: true
|
|
@@ -48370,7 +48372,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48370
48372
|
dataQa: "Save credit card to wallet",
|
|
48371
48373
|
title: "Save credit card to wallet.",
|
|
48372
48374
|
checked: walletCheckboxMarked,
|
|
48373
|
-
onChange: saveToWallet
|
|
48375
|
+
onChange: saveToWallet,
|
|
48376
|
+
checkboxAriaLabel: "Save credit card to wallet."
|
|
48374
48377
|
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
48375
48378
|
singleChild: true
|
|
48376
48379
|
}, /*#__PURE__*/React__default.createElement(TermsAndConditions, {
|
|
@@ -48378,7 +48381,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48378
48381
|
showCheckbox: false,
|
|
48379
48382
|
description: "View",
|
|
48380
48383
|
terms: termsContent,
|
|
48381
|
-
initialFocusSelector: ".modal-close-button"
|
|
48384
|
+
initialFocusSelector: ".modal-close-button",
|
|
48385
|
+
checkboxAriaLabel: "I agree to the Terms and Conditions"
|
|
48382
48386
|
})))));
|
|
48383
48387
|
};
|
|
48384
48388
|
|