@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.
@@ -1522,7 +1522,7 @@ function Checkbox({
1522
1522
  onChange,
1523
1523
  onBlur,
1524
1524
  onFocus,
1525
- value,
1525
+ checked,
1526
1526
  hitSlop = 40,
1527
1527
  id,
1528
1528
  children
@@ -1531,19 +1531,19 @@ function Checkbox({
1531
1531
  return /*#__PURE__*/jsxRuntime.jsxs(CheckboxAndLabelPressableWrapper, {
1532
1532
  accessibilityRole: "checkbox",
1533
1533
  accessibilityState: {
1534
- checked: value
1534
+ checked
1535
1535
  },
1536
1536
  hitSlop: hitSlop,
1537
1537
  onPress: e => {
1538
1538
  if (onFocus) onFocus(e);
1539
- if (onChange) onChange(e);
1539
+ if (onChange) onChange(!checked, e);
1540
1540
  if (onBlur) onBlur(e);
1541
1541
  },
1542
1542
  children: [/*#__PURE__*/jsxRuntime.jsx(CheckboxContainer, {
1543
- $isChecked: value,
1543
+ $isChecked: checked,
1544
1544
  $hasLabel: !!children,
1545
1545
  testID: id,
1546
- children: value ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
1546
+ children: checked ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
1547
1547
  align: "center",
1548
1548
  color: theme.kitt.forms.checkbox.markColor,
1549
1549
  size: theme.kitt.forms.checkbox.iconSize,