@ornikar/kitt-universal 26.3.1-canary.e22389b8233ad973bed14e560f86aaaf62ad890a.0 → 26.3.1-canary.fcd36361858696a81c52c40672737eeca6e22f42.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -7
  2. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
  3. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
  4. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  5. package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
  6. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  7. package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
  8. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
  10. package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
  11. package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
  12. package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
  13. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
  14. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  15. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
  16. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
  17. package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
  18. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  19. package/dist/index-metro.es.android.js +87 -26
  20. package/dist/index-metro.es.android.js.map +1 -1
  21. package/dist/index-metro.es.ios.js +87 -26
  22. package/dist/index-metro.es.ios.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.js +86 -25
  24. package/dist/index-node-22.17.cjs.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.web.css +2 -2
  26. package/dist/index-node-22.17.cjs.web.js +53 -19
  27. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  28. package/dist/index-node-22.17.es.mjs +86 -25
  29. package/dist/index-node-22.17.es.mjs.map +1 -1
  30. package/dist/index-node-22.17.es.web.css +2 -2
  31. package/dist/index-node-22.17.es.web.mjs +53 -19
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +84 -61
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +63 -31
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +36 -6
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +36 -6
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +36 -6
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +36 -6
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +36 -6
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +36 -6
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +36 -6
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +36 -6
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/styles.css +2 -2
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +3 -3
@@ -839,9 +839,19 @@ var card = {
839
839
  };
840
840
 
841
841
  var webAnimationContentDuration$2 = 400;
842
- var webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
842
+ var webAnimationContentEasing$2 = {
843
+ x1: 0.77,
844
+ y1: 0,
845
+ x2: 0.175,
846
+ y2: 1
847
+ };
843
848
  var webAnimationOverlayDuration$2 = 250;
844
- var webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
849
+ var webAnimationOverlayEasing$2 = {
850
+ x1: 0.42,
851
+ y1: 0,
852
+ x2: 1,
853
+ y2: 1
854
+ };
845
855
  var maxWidth = 540;
846
856
  var overlayHorizontalPadding = 24;
847
857
  var cardModal = {
@@ -915,9 +925,19 @@ var choices = {
915
925
  };
916
926
 
917
927
  var webAnimationContentDuration$1 = 400;
918
- var webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
928
+ var webAnimationContentEasing$1 = {
929
+ x1: 0.77,
930
+ y1: 0,
931
+ x2: 0.175,
932
+ y2: 1
933
+ };
919
934
  var webAnimationOverlayDuration$1 = 250;
920
- var webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
935
+ var webAnimationOverlayEasing$1 = {
936
+ x1: 0.42,
937
+ y1: 0,
938
+ x2: 1,
939
+ y2: 1
940
+ };
921
941
  var dialogModal = {
922
942
  borderRadius: 20,
923
943
  maxWidth: 540,
@@ -1843,9 +1863,19 @@ var forms = {
1843
1863
  };
1844
1864
 
1845
1865
  var webAnimationContentDuration = 600;
1846
- var webAnimationContentEasing = [0.77, 0, 0.175, 1];
1866
+ var webAnimationContentEasing = {
1867
+ x1: 0.77,
1868
+ y1: 0,
1869
+ x2: 0.175,
1870
+ y2: 1
1871
+ };
1847
1872
  var webAnimationOverlayDuration = 250;
1848
- var webAnimationOverlayEasing = [0.42, 0, 1, 1];
1873
+ var webAnimationOverlayEasing = {
1874
+ x1: 0.42,
1875
+ y1: 0,
1876
+ x2: 1,
1877
+ y2: 1
1878
+ };
1849
1879
  var fullscreenModal = {
1850
1880
  header: {
1851
1881
  height: 56
@@ -5808,7 +5838,7 @@ function DocumentPicker(_ref) {
5808
5838
  var childElement = Children.only(children);
5809
5839
  var handlePickDocument = /*#__PURE__*/function () {
5810
5840
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5811
- var _childElement$props$o, _childElement$props;
5841
+ var _childElement$props$o, _childElement$props, _result$assets$;
5812
5842
  var result;
5813
5843
  return _regeneratorRuntime().wrap(function (_context) {
5814
5844
  while (1) switch (_context.prev = _context.next) {
@@ -5826,7 +5856,7 @@ function DocumentPicker(_ref) {
5826
5856
  }));
5827
5857
  case 5:
5828
5858
  result = _context.sent;
5829
- if (!result.canceled && result.assets[0].file) {
5859
+ if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
5830
5860
  onDocumentUpload(result.assets[0].file);
5831
5861
  }
5832
5862
  case 7:
@@ -5879,7 +5909,7 @@ function ImagePicker(_ref) {
5879
5909
  }));
5880
5910
  case 5:
5881
5911
  result = _context.sent;
5882
- if (!result.canceled) {
5912
+ if (!result.canceled && result.assets[0]) {
5883
5913
  onImageSelected(result.assets[0]);
5884
5914
  }
5885
5915
  case 7:
@@ -6188,36 +6218,34 @@ function GoogleMapsAutocompleteProvider(_ref) {
6188
6218
  _yield$predictionsPro = _context.sent;
6189
6219
  results = _yield$predictionsPro.results;
6190
6220
  status = _yield$predictionsPro.status;
6191
- if (!(status !== 'OK')) {
6192
- _context.next = 13;
6193
- break;
6221
+ if (status !== 'OK') {
6222
+ dispatch({
6223
+ type: 'search-error'
6224
+ });
6194
6225
  }
6195
- dispatch({
6196
- type: 'search-error'
6197
- });
6198
- return _context.abrupt("return");
6199
- case 13:
6200
- // We cache the results to avoid calling the API again if the user types the same value
6201
- searchResultsCache.current[value] = results;
6202
- dispatch({
6203
- type: 'search-success',
6204
- payload: {
6205
- results: results
6206
- }
6207
- });
6208
- _context.next = 20;
6226
+ if (results) {
6227
+ // We cache the results to avoid calling the API again if the user types the same value
6228
+ searchResultsCache.current[value] = results;
6229
+ dispatch({
6230
+ type: 'search-success',
6231
+ payload: {
6232
+ results: results
6233
+ }
6234
+ });
6235
+ }
6236
+ _context.next = 17;
6209
6237
  break;
6210
- case 17:
6211
- _context.prev = 17;
6238
+ case 14:
6239
+ _context.prev = 14;
6212
6240
  _context.t0 = _context["catch"](4);
6213
6241
  dispatch({
6214
6242
  type: 'search-error'
6215
6243
  });
6216
- case 20:
6244
+ case 17:
6217
6245
  case "end":
6218
6246
  return _context.stop();
6219
6247
  }
6220
- }, _callee, null, [[4, 17]]);
6248
+ }, _callee, null, [[4, 14]]);
6221
6249
  }));
6222
6250
  return function () {
6223
6251
  return _ref2.apply(this, arguments);
@@ -11440,6 +11468,7 @@ function Picker(_ref) {
11440
11468
  paddingY: "kitt.2",
11441
11469
  children: childrenArray.map(function (child, index) {
11442
11470
  var currentValue = items[index];
11471
+ if (!currentValue) throw new Error("Picker: No value found for item at index ".concat(index));
11443
11472
  var _getItemProps = getItemProps({
11444
11473
  item: currentValue,
11445
11474
  index: index,
@@ -12254,13 +12283,14 @@ function TabBar(_ref) {
12254
12283
  }, props), {}, {
12255
12284
  children: Children.map(tabItems, function (child, index) {
12256
12285
  var tab = tabs[index];
12286
+ if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
12257
12287
  return /*#__PURE__*/jsx(View, {
12258
12288
  children: /*#__PURE__*/cloneElement(child, {
12259
12289
  color: color,
12260
12290
  onPress: function onPress(event) {
12261
12291
  var _child$props$onPress, _child$props;
12262
12292
  onChangeTab({
12263
- tab: tabs[index],
12293
+ tab: tab,
12264
12294
  index: index
12265
12295
  });
12266
12296
  (_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
@@ -12423,6 +12453,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12423
12453
  _currentInputValue$sp2 = _slicedToArray(_currentInputValue$sp, 2),
12424
12454
  hours = _currentInputValue$sp2[0],
12425
12455
  minutes = _currentInputValue$sp2[1];
12456
+ if (!hours || !minutes) return;
12426
12457
 
12427
12458
  // Prepare the next date. It clones the date value passed as prop if available
12428
12459
  var nextDate = value ? new Date(value) : new Date();
@@ -12466,6 +12497,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12466
12497
  _sanitizedValue$split2 = _slicedToArray(_sanitizedValue$split, 2),
12467
12498
  hours = _sanitizedValue$split2[0],
12468
12499
  minutes = _sanitizedValue$split2[1];
12500
+ if (!hours || !minutes) return;
12469
12501
  var currentHours = getDisplayedHours(hours);
12470
12502
  var currentMinutes = getDisplayedMinutes(minutes);
12471
12503
  var nextValue = "".concat(currentHours, ":").concat(currentMinutes);