@thecb/components 9.2.10-beta.6 → 9.2.10-beta.8

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
@@ -47862,7 +47862,9 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47862
47862
  error = _ref$error === void 0 ? false : _ref$error,
47863
47863
  linkVariant = _ref.linkVariant,
47864
47864
  _ref$initialFocusSele = _ref.initialFocusSelector,
47865
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
47865
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
47866
+ _ref$id = _ref.id,
47867
+ id = _ref$id === void 0 ? "terms-and-conditions" : _ref$id;
47866
47868
 
47867
47869
  var _useState = React.useState(false),
47868
47870
  _useState2 = _slicedToArray(_useState, 2),
@@ -47874,11 +47876,13 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47874
47876
  title: "Terms and Conditions",
47875
47877
  error: error,
47876
47878
  checked: isChecked,
47877
- onChange: onCheck
47879
+ onChange: onCheck,
47880
+ "aria-labelledby": "".concat(id, "_label")
47878
47881
  }), /*#__PURE__*/React__default.createElement(Box, {
47879
47882
  padding: "0 0 0 58px"
47880
47883
  }, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
47881
- padding: "0"
47884
+ padding: "0",
47885
+ id: "".concat(id, "_label")
47882
47886
  }, html), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47883
47887
  link: "Learn More",
47884
47888
  terms: terms,