@ornikar/kitt-universal 26.3.1-late-ocean.9d79d7ebcde7a4b7636dc6d690f56808775db93b.0 → 26.3.1-late-ocean.925ed78a943b3f065de5c42a9ad1d6439fa2bf7e.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.
- package/CHANGELOG.md +7 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
- package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +87 -26
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +87 -26
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +86 -25
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +2 -2
- package/dist/index-node-22.17.cjs.web.js +53 -19
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +86 -25
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +2 -2
- package/dist/index-node-22.17.es.web.mjs +53 -19
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +84 -61
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +63 -31
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +36 -6
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +36 -6
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +36 -6
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +36 -6
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +36 -6
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +36 -6
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +36 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +36 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -843,9 +843,19 @@ var card = {
|
|
|
843
843
|
};
|
|
844
844
|
|
|
845
845
|
var webAnimationContentDuration$2 = 400;
|
|
846
|
-
var webAnimationContentEasing$2 =
|
|
846
|
+
var webAnimationContentEasing$2 = {
|
|
847
|
+
x1: 0.77,
|
|
848
|
+
y1: 0,
|
|
849
|
+
x2: 0.175,
|
|
850
|
+
y2: 1
|
|
851
|
+
};
|
|
847
852
|
var webAnimationOverlayDuration$2 = 250;
|
|
848
|
-
var webAnimationOverlayEasing$2 =
|
|
853
|
+
var webAnimationOverlayEasing$2 = {
|
|
854
|
+
x1: 0.42,
|
|
855
|
+
y1: 0,
|
|
856
|
+
x2: 1,
|
|
857
|
+
y2: 1
|
|
858
|
+
};
|
|
849
859
|
var maxWidth = 540;
|
|
850
860
|
var overlayHorizontalPadding = 24;
|
|
851
861
|
var cardModal = {
|
|
@@ -919,9 +929,19 @@ var choices = {
|
|
|
919
929
|
};
|
|
920
930
|
|
|
921
931
|
var webAnimationContentDuration$1 = 400;
|
|
922
|
-
var webAnimationContentEasing$1 =
|
|
932
|
+
var webAnimationContentEasing$1 = {
|
|
933
|
+
x1: 0.77,
|
|
934
|
+
y1: 0,
|
|
935
|
+
x2: 0.175,
|
|
936
|
+
y2: 1
|
|
937
|
+
};
|
|
923
938
|
var webAnimationOverlayDuration$1 = 250;
|
|
924
|
-
var webAnimationOverlayEasing$1 =
|
|
939
|
+
var webAnimationOverlayEasing$1 = {
|
|
940
|
+
x1: 0.42,
|
|
941
|
+
y1: 0,
|
|
942
|
+
x2: 1,
|
|
943
|
+
y2: 1
|
|
944
|
+
};
|
|
925
945
|
var dialogModal = {
|
|
926
946
|
borderRadius: 20,
|
|
927
947
|
maxWidth: 540,
|
|
@@ -1847,9 +1867,19 @@ var forms = {
|
|
|
1847
1867
|
};
|
|
1848
1868
|
|
|
1849
1869
|
var webAnimationContentDuration = 600;
|
|
1850
|
-
var webAnimationContentEasing =
|
|
1870
|
+
var webAnimationContentEasing = {
|
|
1871
|
+
x1: 0.77,
|
|
1872
|
+
y1: 0,
|
|
1873
|
+
x2: 0.175,
|
|
1874
|
+
y2: 1
|
|
1875
|
+
};
|
|
1851
1876
|
var webAnimationOverlayDuration = 250;
|
|
1852
|
-
var webAnimationOverlayEasing =
|
|
1877
|
+
var webAnimationOverlayEasing = {
|
|
1878
|
+
x1: 0.42,
|
|
1879
|
+
y1: 0,
|
|
1880
|
+
x2: 1,
|
|
1881
|
+
y2: 1
|
|
1882
|
+
};
|
|
1853
1883
|
var fullscreenModal = {
|
|
1854
1884
|
header: {
|
|
1855
1885
|
height: 56
|
|
@@ -4108,11 +4138,10 @@ function NativeOpacityAnimation$2(_ref) {
|
|
|
4108
4138
|
var _theme$kitt$cardModal = theme.kitt.cardModal.animation.overlay,
|
|
4109
4139
|
duration = _theme$kitt$cardModal.duration,
|
|
4110
4140
|
easing = _theme$kitt$cardModal.easing;
|
|
4111
|
-
var
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
y2 = _easing[3];
|
|
4141
|
+
var x1 = easing.x1,
|
|
4142
|
+
y1 = easing.y1,
|
|
4143
|
+
x2 = easing.x2,
|
|
4144
|
+
y2 = easing.y2;
|
|
4116
4145
|
return {
|
|
4117
4146
|
opacity: withTiming(visible ? 1 : 0, {
|
|
4118
4147
|
duration: duration,
|
|
@@ -4148,11 +4177,10 @@ function NativeRotationAnimation$1(_ref) {
|
|
|
4148
4177
|
var _theme$kitt$cardModal = theme.kitt.cardModal.animation.content,
|
|
4149
4178
|
duration = _theme$kitt$cardModal.duration,
|
|
4150
4179
|
easing = _theme$kitt$cardModal.easing;
|
|
4151
|
-
var
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
y2 = _easing[3];
|
|
4180
|
+
var x1 = easing.x1,
|
|
4181
|
+
y1 = easing.y1,
|
|
4182
|
+
x2 = easing.x2,
|
|
4183
|
+
y2 = easing.y2;
|
|
4156
4184
|
rotation.value = withTiming(visible ? 0 : 5, {
|
|
4157
4185
|
duration: duration,
|
|
4158
4186
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
@@ -4709,11 +4737,10 @@ function NativeOpacityAnimation$1(_ref) {
|
|
|
4709
4737
|
var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.overlay,
|
|
4710
4738
|
duration = _theme$kitt$dialogMod.duration,
|
|
4711
4739
|
easing = _theme$kitt$dialogMod.easing;
|
|
4712
|
-
var
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
y2 = _easing[3];
|
|
4740
|
+
var x1 = easing.x1,
|
|
4741
|
+
y1 = easing.y1,
|
|
4742
|
+
x2 = easing.x2,
|
|
4743
|
+
y2 = easing.y2;
|
|
4717
4744
|
return {
|
|
4718
4745
|
opacity: withTiming(visible ? 1 : 0, {
|
|
4719
4746
|
duration: duration,
|
|
@@ -4749,11 +4776,10 @@ function NativeRotationAnimation(_ref) {
|
|
|
4749
4776
|
var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.content,
|
|
4750
4777
|
duration = _theme$kitt$dialogMod.duration,
|
|
4751
4778
|
easing = _theme$kitt$dialogMod.easing;
|
|
4752
|
-
var
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
y2 = _easing[3];
|
|
4779
|
+
var x1 = easing.x1,
|
|
4780
|
+
y1 = easing.y1,
|
|
4781
|
+
x2 = easing.x2,
|
|
4782
|
+
y2 = easing.y2;
|
|
4757
4783
|
rotation.value = withTiming(visible ? 0 : 5, {
|
|
4758
4784
|
duration: duration,
|
|
4759
4785
|
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
@@ -6434,7 +6460,7 @@ function DocumentPicker(_ref) {
|
|
|
6434
6460
|
var childElement = Children.only(children);
|
|
6435
6461
|
var handlePickDocument = /*#__PURE__*/function () {
|
|
6436
6462
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6437
|
-
var _childElement$props$o, _childElement$props
|
|
6463
|
+
var _childElement$props$o, _childElement$props, _result$assets$;
|
|
6438
6464
|
var result;
|
|
6439
6465
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
6440
6466
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6452,7 +6478,7 @@ function DocumentPicker(_ref) {
|
|
|
6452
6478
|
}));
|
|
6453
6479
|
case 5:
|
|
6454
6480
|
result = _context.sent;
|
|
6455
|
-
if (!result.canceled && result.assets[0]
|
|
6481
|
+
if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
|
|
6456
6482
|
onDocumentUpload(result.assets[0].file);
|
|
6457
6483
|
}
|
|
6458
6484
|
case 7:
|
|
@@ -6501,7 +6527,7 @@ function ImagePicker(_ref) {
|
|
|
6501
6527
|
}));
|
|
6502
6528
|
case 5:
|
|
6503
6529
|
result = _context.sent;
|
|
6504
|
-
if (!result.canceled) {
|
|
6530
|
+
if (!result.canceled && result.assets[0]) {
|
|
6505
6531
|
onImageSelected(result.assets[0]);
|
|
6506
6532
|
}
|
|
6507
6533
|
case 7:
|
|
@@ -7027,36 +7053,34 @@ function GoogleMapsAutocompleteProvider(_ref) {
|
|
|
7027
7053
|
_yield$predictionsPro = _context.sent;
|
|
7028
7054
|
results = _yield$predictionsPro.results;
|
|
7029
7055
|
status = _yield$predictionsPro.status;
|
|
7030
|
-
if (
|
|
7031
|
-
|
|
7032
|
-
|
|
7056
|
+
if (status !== 'OK') {
|
|
7057
|
+
dispatch({
|
|
7058
|
+
type: 'search-error'
|
|
7059
|
+
});
|
|
7033
7060
|
}
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
}
|
|
7046
|
-
});
|
|
7047
|
-
_context.next = 20;
|
|
7061
|
+
if (results) {
|
|
7062
|
+
// We cache the results to avoid calling the API again if the user types the same value
|
|
7063
|
+
searchResultsCache.current[value] = results;
|
|
7064
|
+
dispatch({
|
|
7065
|
+
type: 'search-success',
|
|
7066
|
+
payload: {
|
|
7067
|
+
results: results
|
|
7068
|
+
}
|
|
7069
|
+
});
|
|
7070
|
+
}
|
|
7071
|
+
_context.next = 17;
|
|
7048
7072
|
break;
|
|
7049
|
-
case
|
|
7050
|
-
_context.prev =
|
|
7073
|
+
case 14:
|
|
7074
|
+
_context.prev = 14;
|
|
7051
7075
|
_context.t0 = _context["catch"](4);
|
|
7052
7076
|
dispatch({
|
|
7053
7077
|
type: 'search-error'
|
|
7054
7078
|
});
|
|
7055
|
-
case
|
|
7079
|
+
case 17:
|
|
7056
7080
|
case "end":
|
|
7057
7081
|
return _context.stop();
|
|
7058
7082
|
}
|
|
7059
|
-
}, _callee, null, [[4,
|
|
7083
|
+
}, _callee, null, [[4, 14]]);
|
|
7060
7084
|
}));
|
|
7061
7085
|
return function () {
|
|
7062
7086
|
return _ref2.apply(this, arguments);
|
|
@@ -8149,11 +8173,10 @@ function NativeOpacityAnimation(_ref) {
|
|
|
8149
8173
|
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.overlay,
|
|
8150
8174
|
duration = _theme$kitt$fullscree.duration,
|
|
8151
8175
|
easing = _theme$kitt$fullscree.easing;
|
|
8152
|
-
var
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
y2 = _easing[3];
|
|
8176
|
+
var x1 = easing.x1,
|
|
8177
|
+
y1 = easing.y1,
|
|
8178
|
+
x2 = easing.x2,
|
|
8179
|
+
y2 = easing.y2;
|
|
8157
8180
|
return {
|
|
8158
8181
|
opacity: withTiming(visible ? 1 : 0, {
|
|
8159
8182
|
duration: duration,
|
|
@@ -8189,11 +8212,10 @@ function NativeSlideInAnimation(_ref) {
|
|
|
8189
8212
|
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.content,
|
|
8190
8213
|
duration = _theme$kitt$fullscree.duration,
|
|
8191
8214
|
easing = _theme$kitt$fullscree.easing;
|
|
8192
|
-
var
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
y2 = _easing[3];
|
|
8215
|
+
var x1 = easing.x1,
|
|
8216
|
+
y1 = easing.y1,
|
|
8217
|
+
x2 = easing.x2,
|
|
8218
|
+
y2 = easing.y2;
|
|
8197
8219
|
return {
|
|
8198
8220
|
transform: [{
|
|
8199
8221
|
translateY: withTiming(visible ? 0 : wHeight, {
|
|
@@ -13206,13 +13228,14 @@ function TabBar(_ref) {
|
|
|
13206
13228
|
}, props), {}, {
|
|
13207
13229
|
children: Children.map(tabItems, function (child, index) {
|
|
13208
13230
|
var tab = tabs[index];
|
|
13231
|
+
if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
|
|
13209
13232
|
return /*#__PURE__*/jsx(View, {
|
|
13210
13233
|
children: /*#__PURE__*/cloneElement(child, {
|
|
13211
13234
|
color: color,
|
|
13212
13235
|
onPress: function onPress(event) {
|
|
13213
13236
|
var _child$props$onPress, _child$props;
|
|
13214
13237
|
onChangeTab({
|
|
13215
|
-
tab:
|
|
13238
|
+
tab: tab,
|
|
13216
13239
|
index: index
|
|
13217
13240
|
});
|
|
13218
13241
|
(_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
|