@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
|
@@ -6240,16 +6240,14 @@ function ImagePicker({
|
|
|
6240
6240
|
|
|
6241
6241
|
function InputAddressOption({
|
|
6242
6242
|
item,
|
|
6243
|
-
|
|
6244
|
-
|
|
6243
|
+
mainText,
|
|
6244
|
+
secondaryText
|
|
6245
6245
|
}) {
|
|
6246
6246
|
const sharedTransform = {
|
|
6247
6247
|
style: {
|
|
6248
6248
|
transform: 'translateY(4px)'
|
|
6249
6249
|
}
|
|
6250
6250
|
};
|
|
6251
|
-
const mainText = itemToMainText(item);
|
|
6252
|
-
const secondaryText = itemToSecondaryText(item);
|
|
6253
6251
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6254
6252
|
item: item,
|
|
6255
6253
|
testID: "kitt.InputAddressOption.item",
|
|
@@ -6280,44 +6278,6 @@ function InputAddressOption({
|
|
|
6280
6278
|
});
|
|
6281
6279
|
}
|
|
6282
6280
|
|
|
6283
|
-
function InputAddressOptionLegacy({
|
|
6284
|
-
item
|
|
6285
|
-
}) {
|
|
6286
|
-
const sharedTransform = {
|
|
6287
|
-
style: {
|
|
6288
|
-
transform: 'translateY(4px)'
|
|
6289
|
-
}
|
|
6290
|
-
};
|
|
6291
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6292
|
-
item: item,
|
|
6293
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6294
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6295
|
-
space: "kitt.2",
|
|
6296
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6297
|
-
_web: sharedTransform,
|
|
6298
|
-
_ios: sharedTransform,
|
|
6299
|
-
_android: sharedTransform,
|
|
6300
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6301
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6302
|
-
color: "black"
|
|
6303
|
-
})
|
|
6304
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6305
|
-
flexShrink: 1,
|
|
6306
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6307
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6308
|
-
variant: "bold",
|
|
6309
|
-
children: item.structured_formatting.main_text
|
|
6310
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6311
|
-
color: "black-light",
|
|
6312
|
-
variant: "bold",
|
|
6313
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6314
|
-
}) : null]
|
|
6315
|
-
})
|
|
6316
|
-
})]
|
|
6317
|
-
})
|
|
6318
|
-
});
|
|
6319
|
-
}
|
|
6320
|
-
|
|
6321
6281
|
function InputAddress({
|
|
6322
6282
|
errorElement,
|
|
6323
6283
|
initialValue,
|
|
@@ -6329,9 +6289,7 @@ function InputAddress({
|
|
|
6329
6289
|
onInputChange,
|
|
6330
6290
|
onSelectItem,
|
|
6331
6291
|
convertInitialValue,
|
|
6332
|
-
|
|
6333
|
-
itemToSecondaryText,
|
|
6334
|
-
itemToKey,
|
|
6292
|
+
children,
|
|
6335
6293
|
...props
|
|
6336
6294
|
}) {
|
|
6337
6295
|
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
@@ -6346,14 +6304,16 @@ function InputAddress({
|
|
|
6346
6304
|
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6347
6305
|
onInputChange: value => onInputChange(value),
|
|
6348
6306
|
onChange: item => onSelectItem(item, onChange),
|
|
6349
|
-
children: items.map(item =>
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6307
|
+
children: items.map(item => {
|
|
6308
|
+
const child = children(item);
|
|
6309
|
+
return /*#__PURE__*/cloneElement(child, {
|
|
6310
|
+
key: child.key,
|
|
6311
|
+
item
|
|
6312
|
+
});
|
|
6313
|
+
})
|
|
6354
6314
|
});
|
|
6355
6315
|
}
|
|
6356
|
-
InputAddress.Option =
|
|
6316
|
+
InputAddress.Option = InputAddressOption;
|
|
6357
6317
|
|
|
6358
6318
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6359
6319
|
function GoogleMapsApiKeyProvider({
|
|
@@ -6680,6 +6640,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
6680
6640
|
return context;
|
|
6681
6641
|
}
|
|
6682
6642
|
|
|
6643
|
+
function InputAddressOptionLegacy({
|
|
6644
|
+
item
|
|
6645
|
+
}) {
|
|
6646
|
+
const sharedTransform = {
|
|
6647
|
+
style: {
|
|
6648
|
+
transform: 'translateY(4px)'
|
|
6649
|
+
}
|
|
6650
|
+
};
|
|
6651
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6652
|
+
item: item,
|
|
6653
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6654
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6655
|
+
space: "kitt.2",
|
|
6656
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6657
|
+
_web: sharedTransform,
|
|
6658
|
+
_ios: sharedTransform,
|
|
6659
|
+
_android: sharedTransform,
|
|
6660
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6661
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6662
|
+
color: "black"
|
|
6663
|
+
})
|
|
6664
|
+
}), /*#__PURE__*/jsx(View, {
|
|
6665
|
+
flexShrink: 1,
|
|
6666
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6667
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6668
|
+
variant: "bold",
|
|
6669
|
+
children: item.structured_formatting.main_text
|
|
6670
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6671
|
+
color: "black-light",
|
|
6672
|
+
variant: "bold",
|
|
6673
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
6674
|
+
}) : null]
|
|
6675
|
+
})
|
|
6676
|
+
})]
|
|
6677
|
+
})
|
|
6678
|
+
});
|
|
6679
|
+
}
|
|
6680
|
+
|
|
6683
6681
|
function defaultItemToString(item) {
|
|
6684
6682
|
if (!item) return '';
|
|
6685
6683
|
return item.description;
|