odaptos_design_system 2.0.193 → 2.0.195

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.
@@ -11479,6 +11479,7 @@ function BpCheckbox({
11479
11479
  id,
11480
11480
  checked,
11481
11481
  disabled = false,
11482
+ onChange,
11482
11483
  required,
11483
11484
  onBlur,
11484
11485
  color = '#0077FF',
@@ -11518,7 +11519,13 @@ function BpCheckbox({
11518
11519
  checked: checked,
11519
11520
  disabled: disabled,
11520
11521
  required: required,
11521
- onChange: () => {},
11522
+ onChange: e => onChange({
11523
+ ...e,
11524
+ target: {
11525
+ ...e.target,
11526
+ name: name || ''
11527
+ }
11528
+ }),
11522
11529
  onBlur: onBlur,
11523
11530
  name: name,
11524
11531
  id: id
@@ -11542,17 +11549,12 @@ const Checkbox = ({
11542
11549
  style: {
11543
11550
  cursor: disabled ? 'not-allowed' : 'pointer'
11544
11551
  },
11545
- onClick: () => {
11546
- if (!disabled) {
11547
- const newValue = !checked;
11548
- onChange({
11549
- target: {
11550
- name: name || '',
11551
- checked: newValue
11552
- }
11553
- });
11552
+ onClick: () => onChange({
11553
+ target: {
11554
+ name: name || '',
11555
+ value: !checked
11554
11556
  }
11555
- }
11557
+ })
11556
11558
  }, leftLabel && /*#__PURE__*/React__default.createElement(TextWithLink, {
11557
11559
  weight: "regular",
11558
11560
  text: leftLabel,
@@ -11561,6 +11563,7 @@ const Checkbox = ({
11561
11563
  }), /*#__PURE__*/React__default.createElement(BpCheckbox, {
11562
11564
  checked: checked,
11563
11565
  disabled: disabled,
11566
+ onChange: onChange,
11564
11567
  required: required,
11565
11568
  onBlur: onBlur,
11566
11569
  color: color,