@ornikar/kitt-universal 4.5.1 → 4.6.1

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.
@@ -44,7 +44,7 @@ function withTheme(WrappedComponent) {
44
44
 
45
45
  var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
46
46
  name: "StyledSpinningIconContainer",
47
- "class": "ssn8o83"
47
+ "class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
48
48
  }));
49
49
  function SpinningIcon(_ref) {
50
50
  var children = _ref.children;
@@ -407,7 +407,7 @@ function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if
407
407
  function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
408
408
  var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
409
409
  name: "AnimatedButtonPressableContainer",
410
- "class": "a1vkj3mh",
410
+ "class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
411
411
  vars: {
412
412
  "a1vkj3mh-0": [function (_ref) {
413
413
  var $isStretch = _ref.$isStretch;
@@ -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,
@@ -1726,7 +1726,7 @@ function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if
1726
1726
  function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1727
1727
  var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
1728
1728
  name: "PressableIconButtonWebWrapper",
1729
- "class": "p1nlccvg",
1729
+ "class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
1730
1730
  vars: {
1731
1731
  "p1nlccvg-0": [function (_ref) {
1732
1732
  var theme = _ref.theme,
@@ -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
  })]
@@ -2209,7 +2209,7 @@ function DatePicker(_ref4) {
2209
2209
 
2210
2210
  var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
2211
2211
  name: "InputTextContainer",
2212
- "class": "i1encr9g",
2212
+ "class": "kitt-u_InputTextContainer_i1encr9g",
2213
2213
  vars: {
2214
2214
  "i1encr9g-0": [function (_ref) {
2215
2215
  var $isDisabled = _ref.$isDisabled;
@@ -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
 
@@ -2975,7 +2976,7 @@ ListItem.SideContainer = ListItemSideContainer;
2975
2976
 
2976
2977
  var LargeLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
2977
2978
  name: "LargeLoaderContainer",
2978
- "class": "l2im3sa",
2979
+ "class": "kitt-u_LargeLoaderContainer_l2im3sa",
2979
2980
  vars: {
2980
2981
  "l2im3sa-0": [function (_ref) {
2981
2982
  var theme = _ref.theme;
@@ -3208,7 +3209,7 @@ function Notification(_ref) {
3208
3209
 
3209
3210
  var StyledSkeleton = withTheme( /*#__PURE__*/styled("div")({
3210
3211
  name: "StyledSkeleton",
3211
- "class": "sc3upcl",
3212
+ "class": "kitt-u_StyledSkeleton_sc3upcl",
3212
3213
  vars: {
3213
3214
  "sc3upcl-0": [function (_ref) {
3214
3215
  var theme = _ref.theme;
@@ -3956,7 +3957,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3956
3957
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3957
3958
  var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
3958
3959
  name: "TypographyLinkWebWrapper",
3959
- "class": "tcwz3nt",
3960
+ "class": "kitt-u_TypographyLinkWebWrapper_tcwz3nt",
3960
3961
  vars: {
3961
3962
  "tcwz3nt-0": [function (_ref) {
3962
3963
  var $hasNoUnderline = _ref.$hasNoUnderline;