@ornikar/kitt-universal 26.3.1-canary.dd94a20641c146865234323ff2718101c6363315.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.
- package/CHANGELOG.md +10 -3
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +4 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +4 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -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/NavigationBottomSheet/NavigationBottomSheet.d.ts +11 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.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/definitions/typography/Typography.d.ts +77 -66
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +103 -26
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +103 -26
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +100 -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 +59 -19
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +100 -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 +59 -19
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +100 -61
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +69 -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 +25 -25
package/dist/index.es.web.js
CHANGED
|
@@ -839,9 +839,19 @@ var card = {
|
|
|
839
839
|
};
|
|
840
840
|
|
|
841
841
|
var webAnimationContentDuration$2 = 400;
|
|
842
|
-
var webAnimationContentEasing$2 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
@@ -3891,6 +3921,11 @@ function BottomSheetComponent() {
|
|
|
3891
3921
|
// noop
|
|
3892
3922
|
return null;
|
|
3893
3923
|
}
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* @@internal This component is for kitt-universal internal use only.
|
|
3927
|
+
* Please use `NavigationBottomSheet` instead.
|
|
3928
|
+
*/
|
|
3894
3929
|
var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComponent);
|
|
3895
3930
|
function NoopComponent() {
|
|
3896
3931
|
return null;
|
|
@@ -5803,7 +5838,7 @@ function DocumentPicker(_ref) {
|
|
|
5803
5838
|
var childElement = Children.only(children);
|
|
5804
5839
|
var handlePickDocument = /*#__PURE__*/function () {
|
|
5805
5840
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5806
|
-
var _childElement$props$o, _childElement$props
|
|
5841
|
+
var _childElement$props$o, _childElement$props, _result$assets$;
|
|
5807
5842
|
var result;
|
|
5808
5843
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
5809
5844
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5821,7 +5856,7 @@ function DocumentPicker(_ref) {
|
|
|
5821
5856
|
}));
|
|
5822
5857
|
case 5:
|
|
5823
5858
|
result = _context.sent;
|
|
5824
|
-
if (!result.canceled && result.assets[0]
|
|
5859
|
+
if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
|
|
5825
5860
|
onDocumentUpload(result.assets[0].file);
|
|
5826
5861
|
}
|
|
5827
5862
|
case 7:
|
|
@@ -5874,7 +5909,7 @@ function ImagePicker(_ref) {
|
|
|
5874
5909
|
}));
|
|
5875
5910
|
case 5:
|
|
5876
5911
|
result = _context.sent;
|
|
5877
|
-
if (!result.canceled) {
|
|
5912
|
+
if (!result.canceled && result.assets[0]) {
|
|
5878
5913
|
onImageSelected(result.assets[0]);
|
|
5879
5914
|
}
|
|
5880
5915
|
case 7:
|
|
@@ -6183,36 +6218,34 @@ function GoogleMapsAutocompleteProvider(_ref) {
|
|
|
6183
6218
|
_yield$predictionsPro = _context.sent;
|
|
6184
6219
|
results = _yield$predictionsPro.results;
|
|
6185
6220
|
status = _yield$predictionsPro.status;
|
|
6186
|
-
if (
|
|
6187
|
-
|
|
6188
|
-
|
|
6221
|
+
if (status !== 'OK') {
|
|
6222
|
+
dispatch({
|
|
6223
|
+
type: 'search-error'
|
|
6224
|
+
});
|
|
6189
6225
|
}
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
}
|
|
6202
|
-
});
|
|
6203
|
-
_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;
|
|
6204
6237
|
break;
|
|
6205
|
-
case
|
|
6206
|
-
_context.prev =
|
|
6238
|
+
case 14:
|
|
6239
|
+
_context.prev = 14;
|
|
6207
6240
|
_context.t0 = _context["catch"](4);
|
|
6208
6241
|
dispatch({
|
|
6209
6242
|
type: 'search-error'
|
|
6210
6243
|
});
|
|
6211
|
-
case
|
|
6244
|
+
case 17:
|
|
6212
6245
|
case "end":
|
|
6213
6246
|
return _context.stop();
|
|
6214
6247
|
}
|
|
6215
|
-
}, _callee, null, [[4,
|
|
6248
|
+
}, _callee, null, [[4, 14]]);
|
|
6216
6249
|
}));
|
|
6217
6250
|
return function () {
|
|
6218
6251
|
return _ref2.apply(this, arguments);
|
|
@@ -11435,6 +11468,7 @@ function Picker(_ref) {
|
|
|
11435
11468
|
paddingY: "kitt.2",
|
|
11436
11469
|
children: childrenArray.map(function (child, index) {
|
|
11437
11470
|
var currentValue = items[index];
|
|
11471
|
+
if (!currentValue) throw new Error("Picker: No value found for item at index ".concat(index));
|
|
11438
11472
|
var _getItemProps = getItemProps({
|
|
11439
11473
|
item: currentValue,
|
|
11440
11474
|
index: index,
|
|
@@ -12249,13 +12283,14 @@ function TabBar(_ref) {
|
|
|
12249
12283
|
}, props), {}, {
|
|
12250
12284
|
children: Children.map(tabItems, function (child, index) {
|
|
12251
12285
|
var tab = tabs[index];
|
|
12286
|
+
if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
|
|
12252
12287
|
return /*#__PURE__*/jsx(View, {
|
|
12253
12288
|
children: /*#__PURE__*/cloneElement(child, {
|
|
12254
12289
|
color: color,
|
|
12255
12290
|
onPress: function onPress(event) {
|
|
12256
12291
|
var _child$props$onPress, _child$props;
|
|
12257
12292
|
onChangeTab({
|
|
12258
|
-
tab:
|
|
12293
|
+
tab: tab,
|
|
12259
12294
|
index: index
|
|
12260
12295
|
});
|
|
12261
12296
|
(_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
|
|
@@ -12418,6 +12453,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12418
12453
|
_currentInputValue$sp2 = _slicedToArray(_currentInputValue$sp, 2),
|
|
12419
12454
|
hours = _currentInputValue$sp2[0],
|
|
12420
12455
|
minutes = _currentInputValue$sp2[1];
|
|
12456
|
+
if (!hours || !minutes) return;
|
|
12421
12457
|
|
|
12422
12458
|
// Prepare the next date. It clones the date value passed as prop if available
|
|
12423
12459
|
var nextDate = value ? new Date(value) : new Date();
|
|
@@ -12461,6 +12497,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12461
12497
|
_sanitizedValue$split2 = _slicedToArray(_sanitizedValue$split, 2),
|
|
12462
12498
|
hours = _sanitizedValue$split2[0],
|
|
12463
12499
|
minutes = _sanitizedValue$split2[1];
|
|
12500
|
+
if (!hours || !minutes) return;
|
|
12464
12501
|
var currentHours = getDisplayedHours(hours);
|
|
12465
12502
|
var currentMinutes = getDisplayedMinutes(minutes);
|
|
12466
12503
|
var nextValue = "".concat(currentHours, ":").concat(currentMinutes);
|
|
@@ -13007,6 +13044,7 @@ function TypographyLink(_ref) {
|
|
|
13007
13044
|
'kitt-universal': 'true'
|
|
13008
13045
|
},
|
|
13009
13046
|
_web: {
|
|
13047
|
+
// @ts-expect-error: This is only used on web where 'not-allowed' and 'pointer' are valid cursor values
|
|
13010
13048
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
13011
13049
|
transitionProperty: 'color',
|
|
13012
13050
|
transitionDuration: '0.2s',
|