@ornikar/kitt-universal 31.3.2-canary.1a5b65d2fbfa0e00bf6c237b7d017b61dce7e75b.0 → 31.3.2-canary.a176fae6a745e6f1b650fe56c3dca27af6b8816f.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/forms/InputAddress/InputAddress.d.ts +5 -7
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +4 -4
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +50 -52
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +50 -52
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +49 -51
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +49 -51
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +49 -51
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +49 -51
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +47 -51
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +47 -51
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -6352,15 +6352,13 @@ function ImagePicker(_ref) {
|
|
|
6352
6352
|
|
|
6353
6353
|
function InputAddressOption(_ref) {
|
|
6354
6354
|
var item = _ref.item,
|
|
6355
|
-
|
|
6356
|
-
|
|
6355
|
+
mainText = _ref.mainText,
|
|
6356
|
+
secondaryText = _ref.secondaryText;
|
|
6357
6357
|
var sharedTransform = {
|
|
6358
6358
|
style: {
|
|
6359
6359
|
transform: 'translateY(4px)'
|
|
6360
6360
|
}
|
|
6361
6361
|
};
|
|
6362
|
-
var mainText = itemToMainText(item);
|
|
6363
|
-
var secondaryText = itemToSecondaryText(item);
|
|
6364
6362
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6365
6363
|
item: item,
|
|
6366
6364
|
testID: "kitt.InputAddressOption.item",
|
|
@@ -6391,44 +6389,7 @@ function InputAddressOption(_ref) {
|
|
|
6391
6389
|
});
|
|
6392
6390
|
}
|
|
6393
6391
|
|
|
6394
|
-
|
|
6395
|
-
var item = _ref.item;
|
|
6396
|
-
var sharedTransform = {
|
|
6397
|
-
style: {
|
|
6398
|
-
transform: 'translateY(4px)'
|
|
6399
|
-
}
|
|
6400
|
-
};
|
|
6401
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6402
|
-
item: item,
|
|
6403
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6404
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6405
|
-
space: "kitt.2",
|
|
6406
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6407
|
-
_web: sharedTransform,
|
|
6408
|
-
_ios: sharedTransform,
|
|
6409
|
-
_android: sharedTransform,
|
|
6410
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6411
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6412
|
-
color: "black"
|
|
6413
|
-
})
|
|
6414
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6415
|
-
flexShrink: 1,
|
|
6416
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6417
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6418
|
-
variant: "bold",
|
|
6419
|
-
children: item.structured_formatting.main_text
|
|
6420
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6421
|
-
color: "black-light",
|
|
6422
|
-
variant: "bold",
|
|
6423
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6424
|
-
}) : null]
|
|
6425
|
-
})
|
|
6426
|
-
})]
|
|
6427
|
-
})
|
|
6428
|
-
});
|
|
6429
|
-
}
|
|
6430
|
-
|
|
6431
|
-
var _excluded$s = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "itemToMainText", "itemToSecondaryText", "itemToKey"];
|
|
6392
|
+
var _excluded$s = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "children"];
|
|
6432
6393
|
function InputAddress(_ref) {
|
|
6433
6394
|
var errorElement = _ref.errorElement,
|
|
6434
6395
|
initialValue = _ref.initialValue,
|
|
@@ -6440,9 +6401,7 @@ function InputAddress(_ref) {
|
|
|
6440
6401
|
_onInputChange = _ref.onInputChange,
|
|
6441
6402
|
onSelectItem = _ref.onSelectItem,
|
|
6442
6403
|
convertInitialValue = _ref.convertInitialValue,
|
|
6443
|
-
|
|
6444
|
-
itemToSecondaryText = _ref.itemToSecondaryText,
|
|
6445
|
-
itemToKey = _ref.itemToKey,
|
|
6404
|
+
children = _ref.children,
|
|
6446
6405
|
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6447
6406
|
var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
6448
6407
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -6460,15 +6419,15 @@ function InputAddress(_ref) {
|
|
|
6460
6419
|
return onSelectItem(item, _onChange);
|
|
6461
6420
|
},
|
|
6462
6421
|
children: items.map(function (item) {
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
}
|
|
6422
|
+
var child = children(item);
|
|
6423
|
+
return /*#__PURE__*/cloneElement(child, {
|
|
6424
|
+
key: child.key,
|
|
6425
|
+
item: item
|
|
6426
|
+
});
|
|
6468
6427
|
})
|
|
6469
6428
|
}));
|
|
6470
6429
|
}
|
|
6471
|
-
InputAddress.Option =
|
|
6430
|
+
InputAddress.Option = InputAddressOption;
|
|
6472
6431
|
|
|
6473
6432
|
var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6474
6433
|
function GoogleMapsApiKeyProvider(_ref) {
|
|
@@ -6875,6 +6834,43 @@ function useGoogleMapsAutocomplete() {
|
|
|
6875
6834
|
return context;
|
|
6876
6835
|
}
|
|
6877
6836
|
|
|
6837
|
+
function InputAddressOptionLegacy(_ref) {
|
|
6838
|
+
var item = _ref.item;
|
|
6839
|
+
var sharedTransform = {
|
|
6840
|
+
style: {
|
|
6841
|
+
transform: 'translateY(4px)'
|
|
6842
|
+
}
|
|
6843
|
+
};
|
|
6844
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6845
|
+
item: item,
|
|
6846
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6847
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6848
|
+
space: "kitt.2",
|
|
6849
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6850
|
+
_web: sharedTransform,
|
|
6851
|
+
_ios: sharedTransform,
|
|
6852
|
+
_android: sharedTransform,
|
|
6853
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6854
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6855
|
+
color: "black"
|
|
6856
|
+
})
|
|
6857
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6858
|
+
flexShrink: 1,
|
|
6859
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6860
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6861
|
+
variant: "bold",
|
|
6862
|
+
children: item.structured_formatting.main_text
|
|
6863
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6864
|
+
color: "black-light",
|
|
6865
|
+
variant: "bold",
|
|
6866
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
6867
|
+
}) : null]
|
|
6868
|
+
})
|
|
6869
|
+
})]
|
|
6870
|
+
})
|
|
6871
|
+
});
|
|
6872
|
+
}
|
|
6873
|
+
|
|
6878
6874
|
function defaultItemToString(item) {
|
|
6879
6875
|
if (!item) return '';
|
|
6880
6876
|
return item.description;
|