odaptos_design_system 2.0.185 → 2.0.188

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.
@@ -11537,13 +11537,8 @@ const Checkbox = ({
11537
11537
  color,
11538
11538
  name
11539
11539
  }) => {
11540
- const [isChecked, setIsChecked] = React.useState(checked);
11541
- React.useEffect(() => {
11542
- console.log('isChecked', isChecked);
11543
- }, [isChecked]);
11544
11540
  React.useEffect(() => {
11545
11541
  console.log('checked', checked);
11546
- setIsChecked(checked);
11547
11542
  }, [checked]);
11548
11543
  return /*#__PURE__*/React__default.createElement("div", {
11549
11544
  className: `${styles$b.checkboxContainer} ${disabled ? styles$b.disabled : ''} ${className}`,
@@ -11552,8 +11547,7 @@ const Checkbox = ({
11552
11547
  },
11553
11548
  onClick: () => {
11554
11549
  if (!disabled) {
11555
- const newValue = !isChecked;
11556
- setIsChecked(newValue);
11550
+ const newValue = !checked;
11557
11551
  onChange({
11558
11552
  target: {
11559
11553
  name: name || '',
@@ -11568,7 +11562,7 @@ const Checkbox = ({
11568
11562
  size: "sm",
11569
11563
  color: "#26292E"
11570
11564
  }), /*#__PURE__*/React__default.createElement(BpCheckbox, {
11571
- checked: isChecked,
11565
+ checked: checked,
11572
11566
  disabled: disabled,
11573
11567
  required: required,
11574
11568
  onBlur: onBlur,