@ornikar/kitt-universal 4.5.2 → 4.6.0

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.
@@ -1482,7 +1482,7 @@ function Checkbox({
1482
1482
  onChange,
1483
1483
  onBlur,
1484
1484
  onFocus,
1485
- value,
1485
+ checked,
1486
1486
  hitSlop = 40,
1487
1487
  id,
1488
1488
  children
@@ -1491,19 +1491,19 @@ function Checkbox({
1491
1491
  return /*#__PURE__*/jsxRuntime.jsxs(CheckboxAndLabelPressableWrapper, {
1492
1492
  accessibilityRole: "checkbox",
1493
1493
  accessibilityState: {
1494
- checked: value
1494
+ checked
1495
1495
  },
1496
1496
  hitSlop: hitSlop,
1497
1497
  onPress: e => {
1498
1498
  if (onFocus) onFocus(e);
1499
- if (onChange) onChange(e);
1499
+ if (onChange) onChange(!checked, e);
1500
1500
  if (onBlur) onBlur(e);
1501
1501
  },
1502
1502
  children: [/*#__PURE__*/jsxRuntime.jsx(CheckboxContainer, {
1503
- $isChecked: value,
1503
+ $isChecked: checked,
1504
1504
  $hasLabel: !!children,
1505
1505
  testID: id,
1506
- children: value ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
1506
+ children: checked ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
1507
1507
  align: "center",
1508
1508
  color: theme.kitt.forms.checkbox.markColor,
1509
1509
  size: theme.kitt.forms.checkbox.iconSize,