@ornikar/kitt-universal 4.5.0 → 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.
@@ -1538,7 +1538,7 @@ function Checkbox(_ref6) {
1538
1538
  var onChange = _ref6.onChange,
1539
1539
  onBlur = _ref6.onBlur,
1540
1540
  onFocus = _ref6.onFocus,
1541
- value = _ref6.value,
1541
+ checked = _ref6.checked,
1542
1542
  _ref6$hitSlop = _ref6.hitSlop,
1543
1543
  hitSlop = _ref6$hitSlop === void 0 ? 40 : _ref6$hitSlop,
1544
1544
  id = _ref6.id,
@@ -1547,19 +1547,19 @@ function Checkbox(_ref6) {
1547
1547
  return /*#__PURE__*/jsxs(CheckboxAndLabelPressableWrapper, {
1548
1548
  accessibilityRole: "checkbox",
1549
1549
  accessibilityState: {
1550
- checked: value
1550
+ checked: checked
1551
1551
  },
1552
1552
  hitSlop: hitSlop,
1553
1553
  onPress: function handlePress(e) {
1554
1554
  if (onFocus) onFocus(e);
1555
- if (onChange) onChange(e);
1555
+ if (onChange) onChange(!checked, e);
1556
1556
  if (onBlur) onBlur(e);
1557
1557
  },
1558
1558
  children: [/*#__PURE__*/jsx(CheckboxContainer, {
1559
- $isChecked: value,
1559
+ $isChecked: checked,
1560
1560
  $hasLabel: !!children,
1561
1561
  testID: id,
1562
- children: value ? /*#__PURE__*/jsx(Icon, {
1562
+ children: checked ? /*#__PURE__*/jsx(Icon, {
1563
1563
  align: "center",
1564
1564
  color: theme.kitt.forms.checkbox.markColor,
1565
1565
  size: theme.kitt.forms.checkbox.iconSize,
@@ -2191,7 +2191,7 @@ function DatePicker(_ref4) {
2191
2191
  $isStretch: stretch,
2192
2192
  children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread$c(_objectSpread$c({}, sharedPartProps), {}, {
2193
2193
  partName: "year",
2194
- value: currentValue === null || currentValue === void 0 ? void 0 : currentValue.getFullYear(),
2194
+ value: currentValue ? currentValue.getFullYear() : undefined,
2195
2195
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
2196
2196
  }))
2197
2197
  })]
@@ -2338,7 +2338,8 @@ function InputEmail(props) {
2338
2338
  return /*#__PURE__*/jsx(InputText, _objectSpread$a({
2339
2339
  autoCompleteType: "email",
2340
2340
  keyboardType: "email-address",
2341
- textContentType: "emailAddress"
2341
+ textContentType: "emailAddress",
2342
+ autoCapitalize: "none"
2342
2343
  }, props));
2343
2344
  }
2344
2345