@thecb/components 7.9.4-beta.1 → 7.9.4-beta.3

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
@@ -21000,7 +21000,7 @@ var HiddenCheckbox = styled.input.attrs({
21000
21000
  var StyledCheckbox = styled.div.withConfig({
21001
21001
  displayName: "Checkbox__StyledCheckbox",
21002
21002
  componentId: "sc-36kqbv-4"
21003
- })(["display:inline-block;margin-right:16px;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
21003
+ })(["display:inline-block;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
21004
21004
  var checked = _ref2.checked;
21005
21005
  return checked ? "visible" : "hidden";
21006
21006
  }, function (_ref3) {
@@ -21030,6 +21030,8 @@ var Checkbox = function Checkbox(_ref4) {
21030
21030
  hidden = _ref4$hidden === void 0 ? false : _ref4$hidden,
21031
21031
  _ref4$error = _ref4.error,
21032
21032
  error = _ref4$error === void 0 ? false : _ref4$error,
21033
+ _ref4$checkboxMargin = _ref4.checkboxMargin,
21034
+ checkboxMargin = _ref4$checkboxMargin === void 0 ? "0 16px 0 0" : _ref4$checkboxMargin,
21033
21035
  extraStyles = _ref4.extraStyles,
21034
21036
  textExtraStyles = _ref4.textExtraStyles;
21035
21037
 
@@ -21058,7 +21060,7 @@ var Checkbox = function Checkbox(_ref4) {
21058
21060
  },
21059
21061
  hiddenStyles: hidden,
21060
21062
  background: themeValues.backgroundColor,
21061
- extraStyles: "outline: none; ".concat(extraStyles)
21063
+ extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
21062
21064
  }, /*#__PURE__*/React.createElement(CheckboxLabelContainer, null, /*#__PURE__*/React.createElement(CheckboxContainer, {
21063
21065
  "data-qa": "Checkbox"
21064
21066
  }, /*#__PURE__*/React.createElement(HiddenCheckbox, {
@@ -21089,7 +21091,7 @@ var Checkbox = function Checkbox(_ref4) {
21089
21091
  checkColor: themeValues.checkColor
21090
21092
  }, /*#__PURE__*/React.createElement("polyline", {
21091
21093
  points: "20 6 9 17 4 12"
21092
- })))), /*#__PURE__*/React.createElement(Text$1, {
21094
+ })))), title && /*#__PURE__*/React.createElement(Text$1, {
21093
21095
  variant: "p",
21094
21096
  weight: themeValues.textFontWeight,
21095
21097
  color: themeValues.textColor,
@@ -48639,7 +48641,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48639
48641
  _ref$modalVariant = _ref.modalVariant,
48640
48642
  modalVariant = _ref$modalVariant === void 0 ? "default" : _ref$modalVariant,
48641
48643
  _ref$containerBackgro = _ref.containerBackground,
48642
- containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro;
48644
+ containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro,
48645
+ _ref$checkboxMargin = _ref.checkboxMargin,
48646
+ checkboxMargin = _ref$checkboxMargin === void 0 ? "0 0.5rem 0 0" : _ref$checkboxMargin;
48643
48647
 
48644
48648
  var _useState = useState(false),
48645
48649
  _useState2 = _slicedToArray(_useState, 2),
@@ -48659,13 +48663,14 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48659
48663
  padding: "0"
48660
48664
  }, html), /*#__PURE__*/React.createElement(Cluster, {
48661
48665
  justify: "flex-start",
48662
- align: "center",
48666
+ align: "flex-start",
48663
48667
  nowrap: true
48664
48668
  }, showCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
48665
48669
  name: id,
48666
48670
  error: hasError,
48667
48671
  checked: isChecked,
48668
- onChange: onCheck
48672
+ onChange: onCheck,
48673
+ checkboxMargin: checkboxMargin
48669
48674
  }), /*#__PURE__*/React.createElement(Stack, {
48670
48675
  childGap: "0.25rem"
48671
48676
  }, /*#__PURE__*/React.createElement(Cluster, {