@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.cjs.js +11 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +18 -16
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +4 -2
package/dist/index.cjs.js
CHANGED
|
@@ -21008,7 +21008,7 @@ var HiddenCheckbox = styled__default.input.attrs({
|
|
|
21008
21008
|
var StyledCheckbox = styled__default.div.withConfig({
|
|
21009
21009
|
displayName: "Checkbox__StyledCheckbox",
|
|
21010
21010
|
componentId: "sc-36kqbv-4"
|
|
21011
|
-
})(["display:inline-block;
|
|
21011
|
+
})(["display:inline-block;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
|
|
21012
21012
|
var checked = _ref2.checked;
|
|
21013
21013
|
return checked ? "visible" : "hidden";
|
|
21014
21014
|
}, function (_ref3) {
|
|
@@ -21038,6 +21038,8 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
21038
21038
|
hidden = _ref4$hidden === void 0 ? false : _ref4$hidden,
|
|
21039
21039
|
_ref4$error = _ref4.error,
|
|
21040
21040
|
error = _ref4$error === void 0 ? false : _ref4$error,
|
|
21041
|
+
_ref4$checkboxMargin = _ref4.checkboxMargin,
|
|
21042
|
+
checkboxMargin = _ref4$checkboxMargin === void 0 ? "0 16px 0 0" : _ref4$checkboxMargin,
|
|
21041
21043
|
extraStyles = _ref4.extraStyles,
|
|
21042
21044
|
textExtraStyles = _ref4.textExtraStyles;
|
|
21043
21045
|
|
|
@@ -21066,7 +21068,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
21066
21068
|
},
|
|
21067
21069
|
hiddenStyles: hidden,
|
|
21068
21070
|
background: themeValues.backgroundColor,
|
|
21069
|
-
extraStyles: "outline: none; ".concat(extraStyles)
|
|
21071
|
+
extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
|
|
21070
21072
|
}, /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, null, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
21071
21073
|
"data-qa": "Checkbox"
|
|
21072
21074
|
}, /*#__PURE__*/React__default.createElement(HiddenCheckbox, {
|
|
@@ -21097,7 +21099,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
21097
21099
|
checkColor: themeValues.checkColor
|
|
21098
21100
|
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
21099
21101
|
points: "20 6 9 17 4 12"
|
|
21100
|
-
})))), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
21102
|
+
})))), title && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
21101
21103
|
variant: "p",
|
|
21102
21104
|
weight: themeValues.textFontWeight,
|
|
21103
21105
|
color: themeValues.textColor,
|
|
@@ -48647,7 +48649,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48647
48649
|
_ref$modalVariant = _ref.modalVariant,
|
|
48648
48650
|
modalVariant = _ref$modalVariant === void 0 ? "default" : _ref$modalVariant,
|
|
48649
48651
|
_ref$containerBackgro = _ref.containerBackground,
|
|
48650
|
-
containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro
|
|
48652
|
+
containerBackground = _ref$containerBackgro === void 0 ? ATHENS_GREY : _ref$containerBackgro,
|
|
48653
|
+
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
48654
|
+
checkboxMargin = _ref$checkboxMargin === void 0 ? "0 0.5rem 0 0" : _ref$checkboxMargin;
|
|
48651
48655
|
|
|
48652
48656
|
var _useState = React.useState(false),
|
|
48653
48657
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48667,13 +48671,14 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48667
48671
|
padding: "0"
|
|
48668
48672
|
}, html), /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48669
48673
|
justify: "flex-start",
|
|
48670
|
-
align: "
|
|
48674
|
+
align: "flex-start",
|
|
48671
48675
|
nowrap: true
|
|
48672
48676
|
}, showCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48673
48677
|
name: id,
|
|
48674
48678
|
error: hasError,
|
|
48675
48679
|
checked: isChecked,
|
|
48676
|
-
onChange: onCheck
|
|
48680
|
+
onChange: onCheck,
|
|
48681
|
+
checkboxMargin: checkboxMargin
|
|
48677
48682
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
48678
48683
|
childGap: "0.25rem"
|
|
48679
48684
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|