@thecb/components 9.2.10-beta.2 → 9.2.10-beta.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
@@ -22146,7 +22146,9 @@ var Checkbox = function Checkbox(_ref4) {
22146
22146
  extraStyles = _ref4.extraStyles,
22147
22147
  textExtraStyles = _ref4.textExtraStyles,
22148
22148
  _ref4$dataQa = _ref4.dataQa,
22149
- dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22149
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22150
+ _ref4$checkboxAriaLab = _ref4.checkboxAriaLabel,
22151
+ checkboxAriaLabel = _ref4$checkboxAriaLab === void 0 ? "" : _ref4$checkboxAriaLab;
22150
22152
 
22151
22153
  var _useState = React.useState(false),
22152
22154
  _useState2 = _slicedToArray(_useState, 2),
@@ -22182,7 +22184,7 @@ var Checkbox = function Checkbox(_ref4) {
22182
22184
  id: "checkbox-".concat(name),
22183
22185
  disabled: disabled,
22184
22186
  name: name,
22185
- "aria-label": name,
22187
+ "aria-label": checkboxAriaLabel || "".concat(title, " checkbox"),
22186
22188
  checked: checked,
22187
22189
  onChange: onChange,
22188
22190
  tabIndex: "-1",
@@ -22200,7 +22202,8 @@ var Checkbox = function Checkbox(_ref4) {
22200
22202
  errorStyles: themeValues.errorStyles,
22201
22203
  disabledStyles: themeValues.disabledStyles,
22202
22204
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22203
- focusedStyles: themeValues.focusedStyles
22205
+ focusedStyles: themeValues.focusedStyles,
22206
+ "aria-label": checkboxAriaLabel || "".concat(title, " checkbox")
22204
22207
  }, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
22205
22208
  viewBox: "0 0 24 24",
22206
22209
  disabled: disabled,
@@ -47861,7 +47864,9 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47861
47864
  error = _ref$error === void 0 ? false : _ref$error,
47862
47865
  linkVariant = _ref.linkVariant,
47863
47866
  _ref$initialFocusSele = _ref.initialFocusSelector,
47864
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
47867
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
47868
+ _ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
47869
+ checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
47865
47870
 
47866
47871
  var _useState = React.useState(false),
47867
47872
  _useState2 = _slicedToArray(_useState, 2),
@@ -47873,7 +47878,8 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47873
47878
  title: "Terms and Conditions",
47874
47879
  error: error,
47875
47880
  checked: isChecked,
47876
- onChange: onCheck
47881
+ onChange: onCheck,
47882
+ "aria-label": checkboxAriaLabel
47877
47883
  }), /*#__PURE__*/React__default.createElement(Box, {
47878
47884
  padding: "0 0 0 58px"
47879
47885
  }, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
@@ -47915,7 +47921,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47915
47921
  _ref$modalTitle = _ref.modalTitle,
47916
47922
  modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
47917
47923
  _ref$initialFocusSele = _ref.initialFocusSelector,
47918
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
47924
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
47925
+ _ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
47926
+ checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
47919
47927
 
47920
47928
  var _useState = React.useState(false),
47921
47929
  _useState2 = _slicedToArray(_useState, 2),
@@ -47952,7 +47960,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47952
47960
  checked: isChecked,
47953
47961
  onChange: onCheck,
47954
47962
  checkboxMargin: checkboxMargin,
47955
- extraStyles: "align-self: flex-start;"
47963
+ extraStyles: "align-self: flex-start;",
47964
+ "aria-label": checkboxAriaLabel
47956
47965
  }), /*#__PURE__*/React__default.createElement(Stack, {
47957
47966
  childGap: "0.25rem",
47958
47967
  fullHeight: true
@@ -48171,7 +48180,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48171
48180
  version: "v2",
48172
48181
  showCheckbox: false,
48173
48182
  description: "View",
48174
- terms: termsContent
48183
+ terms: termsContent,
48184
+ initialFocusSelector: ".modal-close-button"
48175
48185
  })))));
48176
48186
  };
48177
48187
 
@@ -48367,7 +48377,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48367
48377
  version: "v2",
48368
48378
  showCheckbox: false,
48369
48379
  description: "View",
48370
- terms: termsContent
48380
+ terms: termsContent,
48381
+ initialFocusSelector: ".modal-close-button"
48371
48382
  })))));
48372
48383
  };
48373
48384