@thecb/components 9.2.10-beta.5 → 9.2.10-beta.7
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 +11 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -3
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +1 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +5 -4
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +7 -4
package/dist/index.cjs.js
CHANGED
|
@@ -22146,9 +22146,7 @@ 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
|
|
22150
|
-
_ref4$checkboxAriaLab = _ref4.checkboxAriaLabel,
|
|
22151
|
-
checkboxAriaLabel = _ref4$checkboxAriaLab === void 0 ? "" : _ref4$checkboxAriaLab;
|
|
22149
|
+
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
|
|
22152
22150
|
|
|
22153
22151
|
var _useState = React.useState(false),
|
|
22154
22152
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22184,7 +22182,6 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22184
22182
|
id: "checkbox-".concat(name),
|
|
22185
22183
|
disabled: disabled,
|
|
22186
22184
|
name: name,
|
|
22187
|
-
"aria-label": checkboxAriaLabel || "".concat(title, " checkbox"),
|
|
22188
22185
|
checked: checked,
|
|
22189
22186
|
onChange: onChange,
|
|
22190
22187
|
tabIndex: "-1",
|
|
@@ -22719,12 +22716,12 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
22719
22716
|
return hasOwnProperty(toObject(it), key);
|
|
22720
22717
|
};
|
|
22721
22718
|
|
|
22722
|
-
var id = 0;
|
|
22719
|
+
var id$1 = 0;
|
|
22723
22720
|
var postfix = Math.random();
|
|
22724
22721
|
var toString$3 = functionUncurryThis(1.0.toString);
|
|
22725
22722
|
|
|
22726
22723
|
var uid = function (key) {
|
|
22727
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22724
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id$1 + postfix, 36);
|
|
22728
22725
|
};
|
|
22729
22726
|
|
|
22730
22727
|
var WellKnownSymbolsStore = shared('wks');
|
|
@@ -47865,9 +47862,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47865
47862
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
47866
47863
|
linkVariant = _ref.linkVariant,
|
|
47867
47864
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47868
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
47869
|
-
_ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
|
|
47870
|
-
checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
|
|
47865
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47871
47866
|
|
|
47872
47867
|
var _useState = React.useState(false),
|
|
47873
47868
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47880,11 +47875,12 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47880
47875
|
error: error,
|
|
47881
47876
|
checked: isChecked,
|
|
47882
47877
|
onChange: onCheck,
|
|
47883
|
-
"aria-
|
|
47878
|
+
"aria-labelledby": "".concat(id, "_label")
|
|
47884
47879
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
47885
47880
|
padding: "0 0 0 58px"
|
|
47886
47881
|
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
47887
|
-
padding: "0"
|
|
47882
|
+
padding: "0",
|
|
47883
|
+
id: "".concat(id, "_label")
|
|
47888
47884
|
}, html), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47889
47885
|
link: "Learn More",
|
|
47890
47886
|
terms: terms,
|
|
@@ -47922,9 +47918,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47922
47918
|
_ref$modalTitle = _ref.modalTitle,
|
|
47923
47919
|
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
|
|
47924
47920
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47925
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
47926
|
-
_ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
|
|
47927
|
-
checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
|
|
47921
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47928
47922
|
|
|
47929
47923
|
var _useState = React.useState(false),
|
|
47930
47924
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47950,7 +47944,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47950
47944
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
47951
47945
|
childGap: "0"
|
|
47952
47946
|
}, html && /*#__PURE__*/React__default.createElement(Box, {
|
|
47953
|
-
padding: "0"
|
|
47947
|
+
padding: "0",
|
|
47948
|
+
id: "".concat(id, "_label")
|
|
47954
47949
|
}, html), /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47955
47950
|
justify: "flex-start",
|
|
47956
47951
|
align: "center",
|
|
@@ -47962,7 +47957,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47962
47957
|
onChange: onCheck,
|
|
47963
47958
|
checkboxMargin: checkboxMargin,
|
|
47964
47959
|
extraStyles: "align-self: flex-start;",
|
|
47965
|
-
"aria-
|
|
47960
|
+
"aria-labelledby": "".concat(id, "_label")
|
|
47966
47961
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
47967
47962
|
childGap: "0.25rem",
|
|
47968
47963
|
fullHeight: true
|