@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.
@@ -1542,7 +1542,7 @@ function Checkbox(_ref6) {
1542
1542
  var onChange = _ref6.onChange,
1543
1543
  onBlur = _ref6.onBlur,
1544
1544
  onFocus = _ref6.onFocus,
1545
- value = _ref6.value,
1545
+ checked = _ref6.checked,
1546
1546
  _ref6$hitSlop = _ref6.hitSlop,
1547
1547
  hitSlop = _ref6$hitSlop === void 0 ? 40 : _ref6$hitSlop,
1548
1548
  id = _ref6.id,
@@ -1551,19 +1551,19 @@ function Checkbox(_ref6) {
1551
1551
  return /*#__PURE__*/jsxs(CheckboxAndLabelPressableWrapper, {
1552
1552
  accessibilityRole: "checkbox",
1553
1553
  accessibilityState: {
1554
- checked: value
1554
+ checked: checked
1555
1555
  },
1556
1556
  hitSlop: hitSlop,
1557
1557
  onPress: function handlePress(e) {
1558
1558
  if (onFocus) onFocus(e);
1559
- if (onChange) onChange(e);
1559
+ if (onChange) onChange(!checked, e);
1560
1560
  if (onBlur) onBlur(e);
1561
1561
  },
1562
1562
  children: [/*#__PURE__*/jsx(CheckboxContainer, {
1563
- $isChecked: value,
1563
+ $isChecked: checked,
1564
1564
  $hasLabel: !!children,
1565
1565
  testID: id,
1566
- children: value ? /*#__PURE__*/jsx(Icon, {
1566
+ children: checked ? /*#__PURE__*/jsx(Icon, {
1567
1567
  align: "center",
1568
1568
  color: theme.kitt.forms.checkbox.markColor,
1569
1569
  size: theme.kitt.forms.checkbox.iconSize,
@@ -2320,7 +2320,7 @@ function DatePicker(_ref4) {
2320
2320
  $isStretch: stretch,
2321
2321
  children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread$d(_objectSpread$d({}, sharedPartProps), {}, {
2322
2322
  partName: "year",
2323
- value: currentValue === null || currentValue === void 0 ? void 0 : currentValue.getFullYear(),
2323
+ value: currentValue ? currentValue.getFullYear() : undefined,
2324
2324
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
2325
2325
  }))
2326
2326
  })]
@@ -2438,7 +2438,8 @@ function InputEmail(props) {
2438
2438
  return /*#__PURE__*/jsx(InputText, _objectSpread$b({
2439
2439
  autoCompleteType: "email",
2440
2440
  keyboardType: "email-address",
2441
- textContentType: "emailAddress"
2441
+ textContentType: "emailAddress",
2442
+ autoCapitalize: "none"
2442
2443
  }, props));
2443
2444
  }
2444
2445