@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.esm.js
CHANGED
|
@@ -47854,7 +47854,9 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47854
47854
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
47855
47855
|
linkVariant = _ref.linkVariant,
|
|
47856
47856
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47857
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
47857
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
|
|
47858
|
+
_ref$id = _ref.id,
|
|
47859
|
+
id = _ref$id === void 0 ? "terms-and-conditions" : _ref$id;
|
|
47858
47860
|
|
|
47859
47861
|
var _useState = useState(false),
|
|
47860
47862
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47866,11 +47868,13 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47866
47868
|
title: "Terms and Conditions",
|
|
47867
47869
|
error: error,
|
|
47868
47870
|
checked: isChecked,
|
|
47869
|
-
onChange: onCheck
|
|
47871
|
+
onChange: onCheck,
|
|
47872
|
+
"aria-labelledby": "".concat(id, "_label")
|
|
47870
47873
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
47871
47874
|
padding: "0 0 0 58px"
|
|
47872
47875
|
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Box, {
|
|
47873
|
-
padding: "0"
|
|
47876
|
+
padding: "0",
|
|
47877
|
+
id: "".concat(id, "_label")
|
|
47874
47878
|
}, html), terms && /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47875
47879
|
link: "Learn More",
|
|
47876
47880
|
terms: terms,
|