@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
|
@@ -6249,16 +6249,14 @@ function ImagePicker({
|
|
|
6249
6249
|
|
|
6250
6250
|
function InputAddressOption({
|
|
6251
6251
|
item,
|
|
6252
|
-
|
|
6253
|
-
|
|
6252
|
+
mainText,
|
|
6253
|
+
secondaryText
|
|
6254
6254
|
}) {
|
|
6255
6255
|
const sharedTransform = {
|
|
6256
6256
|
style: {
|
|
6257
6257
|
transform: 'translateY(4px)'
|
|
6258
6258
|
}
|
|
6259
6259
|
};
|
|
6260
|
-
const mainText = itemToMainText(item);
|
|
6261
|
-
const secondaryText = itemToSecondaryText(item);
|
|
6262
6260
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6263
6261
|
item: item,
|
|
6264
6262
|
testID: "kitt.InputAddressOption.item",
|
|
@@ -6289,44 +6287,6 @@ function InputAddressOption({
|
|
|
6289
6287
|
});
|
|
6290
6288
|
}
|
|
6291
6289
|
|
|
6292
|
-
function InputAddressOptionLegacy({
|
|
6293
|
-
item
|
|
6294
|
-
}) {
|
|
6295
|
-
const sharedTransform = {
|
|
6296
|
-
style: {
|
|
6297
|
-
transform: 'translateY(4px)'
|
|
6298
|
-
}
|
|
6299
|
-
};
|
|
6300
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6301
|
-
item: item,
|
|
6302
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6303
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6304
|
-
space: "kitt.2",
|
|
6305
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6306
|
-
_web: sharedTransform,
|
|
6307
|
-
_ios: sharedTransform,
|
|
6308
|
-
_android: sharedTransform,
|
|
6309
|
-
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6310
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
6311
|
-
color: "black"
|
|
6312
|
-
})
|
|
6313
|
-
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6314
|
-
flexShrink: 1,
|
|
6315
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6316
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6317
|
-
variant: "bold",
|
|
6318
|
-
children: item.structured_formatting.main_text
|
|
6319
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6320
|
-
color: "black-light",
|
|
6321
|
-
variant: "bold",
|
|
6322
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6323
|
-
}) : null]
|
|
6324
|
-
})
|
|
6325
|
-
})]
|
|
6326
|
-
})
|
|
6327
|
-
});
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
6290
|
function InputAddress({
|
|
6331
6291
|
errorElement,
|
|
6332
6292
|
initialValue,
|
|
@@ -6338,9 +6298,7 @@ function InputAddress({
|
|
|
6338
6298
|
onInputChange,
|
|
6339
6299
|
onSelectItem,
|
|
6340
6300
|
convertInitialValue,
|
|
6341
|
-
|
|
6342
|
-
itemToSecondaryText,
|
|
6343
|
-
itemToKey,
|
|
6301
|
+
children,
|
|
6344
6302
|
...props
|
|
6345
6303
|
}) {
|
|
6346
6304
|
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
@@ -6355,14 +6313,16 @@ function InputAddress({
|
|
|
6355
6313
|
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6356
6314
|
onInputChange: value => onInputChange(value),
|
|
6357
6315
|
onChange: item => onSelectItem(item, onChange),
|
|
6358
|
-
children: items.map(item =>
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6316
|
+
children: items.map(item => {
|
|
6317
|
+
const child = children(item);
|
|
6318
|
+
return /*#__PURE__*/react.cloneElement(child, {
|
|
6319
|
+
key: child.key,
|
|
6320
|
+
item
|
|
6321
|
+
});
|
|
6322
|
+
})
|
|
6363
6323
|
});
|
|
6364
6324
|
}
|
|
6365
|
-
InputAddress.Option =
|
|
6325
|
+
InputAddress.Option = InputAddressOption;
|
|
6366
6326
|
|
|
6367
6327
|
const GoogleMapsApiKeyContext = /*#__PURE__*/react.createContext(undefined);
|
|
6368
6328
|
function GoogleMapsApiKeyProvider({
|
|
@@ -6689,6 +6649,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
6689
6649
|
return context;
|
|
6690
6650
|
}
|
|
6691
6651
|
|
|
6652
|
+
function InputAddressOptionLegacy({
|
|
6653
|
+
item
|
|
6654
|
+
}) {
|
|
6655
|
+
const sharedTransform = {
|
|
6656
|
+
style: {
|
|
6657
|
+
transform: 'translateY(4px)'
|
|
6658
|
+
}
|
|
6659
|
+
};
|
|
6660
|
+
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6661
|
+
item: item,
|
|
6662
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6663
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6664
|
+
space: "kitt.2",
|
|
6665
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6666
|
+
_web: sharedTransform,
|
|
6667
|
+
_ios: sharedTransform,
|
|
6668
|
+
_android: sharedTransform,
|
|
6669
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6670
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
6671
|
+
color: "black"
|
|
6672
|
+
})
|
|
6673
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6674
|
+
flexShrink: 1,
|
|
6675
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6676
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6677
|
+
variant: "bold",
|
|
6678
|
+
children: item.structured_formatting.main_text
|
|
6679
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6680
|
+
color: "black-light",
|
|
6681
|
+
variant: "bold",
|
|
6682
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
6683
|
+
}) : null]
|
|
6684
|
+
})
|
|
6685
|
+
})]
|
|
6686
|
+
})
|
|
6687
|
+
});
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6692
6690
|
function defaultItemToString(item) {
|
|
6693
6691
|
if (!item) return '';
|
|
6694
6692
|
return item.description;
|