@thecb/components 7.9.4-beta.3 → 7.9.4-beta.5
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
|
@@ -48643,7 +48643,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48643
48643
|
_ref$containerBackgro = _ref.containerBackground,
|
|
48644
48644
|
containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro,
|
|
48645
48645
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
48646
|
-
checkboxMargin = _ref$checkboxMargin === void 0 ? "
|
|
48646
|
+
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
48647
|
+
_ref$modalTitle = _ref.modalTitle,
|
|
48648
|
+
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle;
|
|
48647
48649
|
|
|
48648
48650
|
var _useState = useState(false),
|
|
48649
48651
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48663,7 +48665,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48663
48665
|
padding: "0"
|
|
48664
48666
|
}, html), /*#__PURE__*/React.createElement(Cluster, {
|
|
48665
48667
|
justify: "flex-start",
|
|
48666
|
-
align: "
|
|
48668
|
+
align: "center",
|
|
48667
48669
|
nowrap: true
|
|
48668
48670
|
}, showCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48669
48671
|
name: id,
|
|
@@ -48672,19 +48674,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48672
48674
|
onChange: onCheck,
|
|
48673
48675
|
checkboxMargin: checkboxMargin
|
|
48674
48676
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
48675
|
-
childGap: "0.25rem"
|
|
48677
|
+
childGap: "0.25rem",
|
|
48678
|
+
fullHeight: true
|
|
48676
48679
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48677
48680
|
justify: "flex-start",
|
|
48678
48681
|
align: "center",
|
|
48679
|
-
nowrap: true
|
|
48682
|
+
nowrap: true,
|
|
48683
|
+
extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };"
|
|
48680
48684
|
}, description && /*#__PURE__*/React.createElement(Text$1, {
|
|
48681
48685
|
color: CHARADE_GREY
|
|
48682
|
-
}, description
|
|
48686
|
+
}, description), terms && /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
48683
48687
|
link: linkText,
|
|
48684
48688
|
terms: terms,
|
|
48685
48689
|
isOpen: showTerms,
|
|
48686
48690
|
toggleOpen: toggleShowTerms,
|
|
48687
|
-
linkVariant: modalVariant
|
|
48691
|
+
linkVariant: modalVariant,
|
|
48692
|
+
title: modalTitle
|
|
48688
48693
|
})), showCheckbox && hasError && /*#__PURE__*/React.createElement(Text$1, {
|
|
48689
48694
|
variant: "pXS",
|
|
48690
48695
|
color: ERROR_COLOR,
|