@thecb/components 7.9.4-beta.0 → 7.9.4-beta.2
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 +38 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +38 -33
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +19 -15
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +2 -3
package/dist/index.esm.js
CHANGED
|
@@ -21000,38 +21000,43 @@ 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
|
|
21004
|
-
var
|
|
21003
|
+
})(["display:inline-block;margin:", ";width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], function (_ref2) {
|
|
21004
|
+
var checkboxMargin = _ref2.checkboxMargin;
|
|
21005
|
+
return checkboxMargin;
|
|
21006
|
+
}, CheckboxIcon, function (_ref3) {
|
|
21007
|
+
var checked = _ref3.checked;
|
|
21005
21008
|
return checked ? "visible" : "hidden";
|
|
21006
|
-
}, function (
|
|
21007
|
-
var error =
|
|
21008
|
-
disabled =
|
|
21009
|
-
checked =
|
|
21010
|
-
focused =
|
|
21011
|
-
defaultStyles =
|
|
21012
|
-
checkedStyles =
|
|
21013
|
-
focusedStyles =
|
|
21014
|
-
errorStyles =
|
|
21015
|
-
disabledStyles =
|
|
21016
|
-
disabledCheckedStyles =
|
|
21009
|
+
}, function (_ref4) {
|
|
21010
|
+
var error = _ref4.error,
|
|
21011
|
+
disabled = _ref4.disabled,
|
|
21012
|
+
checked = _ref4.checked,
|
|
21013
|
+
focused = _ref4.focused,
|
|
21014
|
+
defaultStyles = _ref4.defaultStyles,
|
|
21015
|
+
checkedStyles = _ref4.checkedStyles,
|
|
21016
|
+
focusedStyles = _ref4.focusedStyles,
|
|
21017
|
+
errorStyles = _ref4.errorStyles,
|
|
21018
|
+
disabledStyles = _ref4.disabledStyles,
|
|
21019
|
+
disabledCheckedStyles = _ref4.disabledCheckedStyles;
|
|
21017
21020
|
return error ? css(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? css(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? css(["", " ", ""], checkedStyles, focused && focusedStyles) : css(["", " ", ""], defaultStyles, focused && focusedStyles);
|
|
21018
21021
|
});
|
|
21019
21022
|
|
|
21020
|
-
var Checkbox = function Checkbox(
|
|
21021
|
-
var title =
|
|
21022
|
-
name =
|
|
21023
|
-
checked =
|
|
21024
|
-
|
|
21025
|
-
onChange =
|
|
21026
|
-
|
|
21027
|
-
disabled =
|
|
21028
|
-
themeValues =
|
|
21029
|
-
|
|
21030
|
-
hidden =
|
|
21031
|
-
|
|
21032
|
-
error =
|
|
21033
|
-
|
|
21034
|
-
|
|
21023
|
+
var Checkbox = function Checkbox(_ref5) {
|
|
21024
|
+
var title = _ref5.title,
|
|
21025
|
+
name = _ref5.name,
|
|
21026
|
+
checked = _ref5.checked,
|
|
21027
|
+
_ref5$onChange = _ref5.onChange,
|
|
21028
|
+
onChange = _ref5$onChange === void 0 ? noop : _ref5$onChange,
|
|
21029
|
+
_ref5$disabled = _ref5.disabled,
|
|
21030
|
+
disabled = _ref5$disabled === void 0 ? false : _ref5$disabled,
|
|
21031
|
+
themeValues = _ref5.themeValues,
|
|
21032
|
+
_ref5$hidden = _ref5.hidden,
|
|
21033
|
+
hidden = _ref5$hidden === void 0 ? false : _ref5$hidden,
|
|
21034
|
+
_ref5$error = _ref5.error,
|
|
21035
|
+
error = _ref5$error === void 0 ? false : _ref5$error,
|
|
21036
|
+
_ref5$checkboxMargin = _ref5.checkboxMargin,
|
|
21037
|
+
checkboxMargin = _ref5$checkboxMargin === void 0 ? "0 16px 0 0" : _ref5$checkboxMargin,
|
|
21038
|
+
extraStyles = _ref5.extraStyles,
|
|
21039
|
+
textExtraStyles = _ref5.textExtraStyles;
|
|
21035
21040
|
|
|
21036
21041
|
var _useState = useState(false),
|
|
21037
21042
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21081,7 +21086,8 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
21081
21086
|
errorStyles: themeValues.errorStyles,
|
|
21082
21087
|
disabledStyles: themeValues.disabledStyles,
|
|
21083
21088
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
21084
|
-
focusedStyles: themeValues.focusedStyles
|
|
21089
|
+
focusedStyles: themeValues.focusedStyles,
|
|
21090
|
+
checkboxMargin: checkboxMargin
|
|
21085
21091
|
}, /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
21086
21092
|
viewBox: "0 0 24 24",
|
|
21087
21093
|
disabled: disabled,
|
|
@@ -21089,7 +21095,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
21089
21095
|
checkColor: themeValues.checkColor
|
|
21090
21096
|
}, /*#__PURE__*/React.createElement("polyline", {
|
|
21091
21097
|
points: "20 6 9 17 4 12"
|
|
21092
|
-
})))), /*#__PURE__*/React.createElement(Text$1, {
|
|
21098
|
+
})))), title && /*#__PURE__*/React.createElement(Text$1, {
|
|
21093
21099
|
variant: "p",
|
|
21094
21100
|
weight: themeValues.textFontWeight,
|
|
21095
21101
|
color: themeValues.textColor,
|
|
@@ -48659,11 +48665,10 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48659
48665
|
padding: "0"
|
|
48660
48666
|
}, html), /*#__PURE__*/React.createElement(Cluster, {
|
|
48661
48667
|
justify: "flex-start",
|
|
48662
|
-
align: "
|
|
48668
|
+
align: "flex-start",
|
|
48663
48669
|
nowrap: true
|
|
48664
48670
|
}, showCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48665
48671
|
name: id,
|
|
48666
|
-
title: "Terms and Conditions",
|
|
48667
48672
|
error: hasError,
|
|
48668
48673
|
checked: isChecked,
|
|
48669
48674
|
onChange: onCheck
|
|
@@ -48671,7 +48676,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48671
48676
|
childGap: "0.25rem"
|
|
48672
48677
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48673
48678
|
justify: "flex-start",
|
|
48674
|
-
align: "
|
|
48679
|
+
align: "flex-start",
|
|
48675
48680
|
nowrap: true
|
|
48676
48681
|
}, description && /*#__PURE__*/React.createElement(Text$1, {
|
|
48677
48682
|
color: CHARADE_GREY
|