@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.cjs.js CHANGED
@@ -48651,7 +48651,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48651
48651
  _ref$containerBackgro = _ref.containerBackground,
48652
48652
  containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro,
48653
48653
  _ref$checkboxMargin = _ref.checkboxMargin,
48654
- checkboxMargin = _ref$checkboxMargin === void 0 ? "0 0.5rem 0 0" : _ref$checkboxMargin;
48654
+ checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
48655
+ _ref$modalTitle = _ref.modalTitle,
48656
+ modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle;
48655
48657
 
48656
48658
  var _useState = React.useState(false),
48657
48659
  _useState2 = _slicedToArray(_useState, 2),
@@ -48671,7 +48673,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48671
48673
  padding: "0"
48672
48674
  }, html), /*#__PURE__*/React__default.createElement(Cluster, {
48673
48675
  justify: "flex-start",
48674
- align: "flex-start",
48676
+ align: "center",
48675
48677
  nowrap: true
48676
48678
  }, showCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48677
48679
  name: id,
@@ -48680,19 +48682,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48680
48682
  onChange: onCheck,
48681
48683
  checkboxMargin: checkboxMargin
48682
48684
  }), /*#__PURE__*/React__default.createElement(Stack, {
48683
- childGap: "0.25rem"
48685
+ childGap: "0.25rem",
48686
+ fullHeight: true
48684
48687
  }, /*#__PURE__*/React__default.createElement(Cluster, {
48685
48688
  justify: "flex-start",
48686
48689
  align: "center",
48687
- nowrap: true
48690
+ nowrap: true,
48691
+ extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };"
48688
48692
  }, description && /*#__PURE__*/React__default.createElement(Text$1, {
48689
48693
  color: CHARADE_GREY
48690
- }, description, "\xA0"), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
48694
+ }, description), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
48691
48695
  link: linkText,
48692
48696
  terms: terms,
48693
48697
  isOpen: showTerms,
48694
48698
  toggleOpen: toggleShowTerms,
48695
- linkVariant: modalVariant
48699
+ linkVariant: modalVariant,
48700
+ title: modalTitle
48696
48701
  })), showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
48697
48702
  variant: "pXS",
48698
48703
  color: ERROR_COLOR,