@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
|
@@ -6994,16 +6994,14 @@ function FilePicker({
|
|
|
6994
6994
|
|
|
6995
6995
|
function InputAddressOption({
|
|
6996
6996
|
item,
|
|
6997
|
-
|
|
6998
|
-
|
|
6997
|
+
mainText,
|
|
6998
|
+
secondaryText
|
|
6999
6999
|
}) {
|
|
7000
7000
|
const sharedTransform = {
|
|
7001
7001
|
style: {
|
|
7002
7002
|
transform: 'translateY(4px)'
|
|
7003
7003
|
}
|
|
7004
7004
|
};
|
|
7005
|
-
const mainText = itemToMainText(item);
|
|
7006
|
-
const secondaryText = itemToSecondaryText(item);
|
|
7007
7005
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7008
7006
|
item: item,
|
|
7009
7007
|
testID: "kitt.InputAddressOption.item",
|
|
@@ -7034,44 +7032,6 @@ function InputAddressOption({
|
|
|
7034
7032
|
});
|
|
7035
7033
|
}
|
|
7036
7034
|
|
|
7037
|
-
function InputAddressOptionLegacy({
|
|
7038
|
-
item
|
|
7039
|
-
}) {
|
|
7040
|
-
const sharedTransform = {
|
|
7041
|
-
style: {
|
|
7042
|
-
transform: 'translateY(4px)'
|
|
7043
|
-
}
|
|
7044
|
-
};
|
|
7045
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7046
|
-
item: item,
|
|
7047
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7048
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7049
|
-
space: "kitt.2",
|
|
7050
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7051
|
-
_web: sharedTransform,
|
|
7052
|
-
_ios: sharedTransform,
|
|
7053
|
-
_android: sharedTransform,
|
|
7054
|
-
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7055
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
7056
|
-
color: "black"
|
|
7057
|
-
})
|
|
7058
|
-
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7059
|
-
flexShrink: 1,
|
|
7060
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7061
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7062
|
-
variant: "bold",
|
|
7063
|
-
children: item.structured_formatting.main_text
|
|
7064
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7065
|
-
color: "black-light",
|
|
7066
|
-
variant: "bold",
|
|
7067
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
7068
|
-
}) : null]
|
|
7069
|
-
})
|
|
7070
|
-
})]
|
|
7071
|
-
})
|
|
7072
|
-
});
|
|
7073
|
-
}
|
|
7074
|
-
|
|
7075
7035
|
function InputAddress({
|
|
7076
7036
|
errorElement,
|
|
7077
7037
|
initialValue,
|
|
@@ -7083,9 +7043,7 @@ function InputAddress({
|
|
|
7083
7043
|
onInputChange,
|
|
7084
7044
|
onSelectItem,
|
|
7085
7045
|
convertInitialValue,
|
|
7086
|
-
|
|
7087
|
-
itemToSecondaryText,
|
|
7088
|
-
itemToKey,
|
|
7046
|
+
children,
|
|
7089
7047
|
...props
|
|
7090
7048
|
}) {
|
|
7091
7049
|
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
@@ -7100,14 +7058,16 @@ function InputAddress({
|
|
|
7100
7058
|
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7101
7059
|
onInputChange: value => onInputChange(value),
|
|
7102
7060
|
onChange: item => onSelectItem(item, onChange),
|
|
7103
|
-
children: items.map(item =>
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7061
|
+
children: items.map(item => {
|
|
7062
|
+
const child = children(item);
|
|
7063
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
7064
|
+
key: child.key,
|
|
7065
|
+
item
|
|
7066
|
+
});
|
|
7067
|
+
})
|
|
7108
7068
|
});
|
|
7109
7069
|
}
|
|
7110
|
-
InputAddress.Option =
|
|
7070
|
+
InputAddress.Option = InputAddressOption;
|
|
7111
7071
|
|
|
7112
7072
|
const GoogleMapsApiKeyContext = /*#__PURE__*/React.createContext(undefined);
|
|
7113
7073
|
function GoogleMapsApiKeyProvider({
|
|
@@ -7452,6 +7412,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
7452
7412
|
return context;
|
|
7453
7413
|
}
|
|
7454
7414
|
|
|
7415
|
+
function InputAddressOptionLegacy({
|
|
7416
|
+
item
|
|
7417
|
+
}) {
|
|
7418
|
+
const sharedTransform = {
|
|
7419
|
+
style: {
|
|
7420
|
+
transform: 'translateY(4px)'
|
|
7421
|
+
}
|
|
7422
|
+
};
|
|
7423
|
+
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7424
|
+
item: item,
|
|
7425
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7426
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7427
|
+
space: "kitt.2",
|
|
7428
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7429
|
+
_web: sharedTransform,
|
|
7430
|
+
_ios: sharedTransform,
|
|
7431
|
+
_android: sharedTransform,
|
|
7432
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7433
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
7434
|
+
color: "black"
|
|
7435
|
+
})
|
|
7436
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7437
|
+
flexShrink: 1,
|
|
7438
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7439
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7440
|
+
variant: "bold",
|
|
7441
|
+
children: item.structured_formatting.main_text
|
|
7442
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7443
|
+
color: "black-light",
|
|
7444
|
+
variant: "bold",
|
|
7445
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
7446
|
+
}) : null]
|
|
7447
|
+
})
|
|
7448
|
+
})]
|
|
7449
|
+
})
|
|
7450
|
+
});
|
|
7451
|
+
}
|
|
7452
|
+
|
|
7455
7453
|
function defaultItemToString(item) {
|
|
7456
7454
|
if (!item) return '';
|
|
7457
7455
|
return item.description;
|