@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
|
@@ -6984,16 +6984,14 @@ function FilePicker({
|
|
|
6984
6984
|
|
|
6985
6985
|
function InputAddressOption({
|
|
6986
6986
|
item,
|
|
6987
|
-
|
|
6988
|
-
|
|
6987
|
+
mainText,
|
|
6988
|
+
secondaryText
|
|
6989
6989
|
}) {
|
|
6990
6990
|
const sharedTransform = {
|
|
6991
6991
|
style: {
|
|
6992
6992
|
transform: 'translateY(4px)'
|
|
6993
6993
|
}
|
|
6994
6994
|
};
|
|
6995
|
-
const mainText = itemToMainText(item);
|
|
6996
|
-
const secondaryText = itemToSecondaryText(item);
|
|
6997
6995
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6998
6996
|
item: item,
|
|
6999
6997
|
testID: "kitt.InputAddressOption.item",
|
|
@@ -7024,45 +7022,7 @@ function InputAddressOption({
|
|
|
7024
7022
|
});
|
|
7025
7023
|
}
|
|
7026
7024
|
|
|
7027
|
-
|
|
7028
|
-
item
|
|
7029
|
-
}) {
|
|
7030
|
-
const sharedTransform = {
|
|
7031
|
-
style: {
|
|
7032
|
-
transform: 'translateY(4px)'
|
|
7033
|
-
}
|
|
7034
|
-
};
|
|
7035
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7036
|
-
item: item,
|
|
7037
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7038
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
7039
|
-
space: "kitt.2",
|
|
7040
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
7041
|
-
_web: sharedTransform,
|
|
7042
|
-
_ios: sharedTransform,
|
|
7043
|
-
_android: sharedTransform,
|
|
7044
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7045
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7046
|
-
color: "black"
|
|
7047
|
-
})
|
|
7048
|
-
}), /*#__PURE__*/jsx(View, {
|
|
7049
|
-
flexShrink: 1,
|
|
7050
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7051
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7052
|
-
variant: "bold",
|
|
7053
|
-
children: item.structured_formatting.main_text
|
|
7054
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7055
|
-
color: "black-light",
|
|
7056
|
-
variant: "bold",
|
|
7057
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
7058
|
-
}) : null]
|
|
7059
|
-
})
|
|
7060
|
-
})]
|
|
7061
|
-
})
|
|
7062
|
-
});
|
|
7063
|
-
}
|
|
7064
|
-
|
|
7065
|
-
const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "itemToMainText", "itemToSecondaryText", "itemToKey"];
|
|
7025
|
+
const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "children"];
|
|
7066
7026
|
function InputAddress(_ref) {
|
|
7067
7027
|
let {
|
|
7068
7028
|
errorElement,
|
|
@@ -7075,9 +7035,7 @@ function InputAddress(_ref) {
|
|
|
7075
7035
|
onInputChange,
|
|
7076
7036
|
onSelectItem,
|
|
7077
7037
|
convertInitialValue,
|
|
7078
|
-
|
|
7079
|
-
itemToSecondaryText,
|
|
7080
|
-
itemToKey
|
|
7038
|
+
children
|
|
7081
7039
|
} = _ref,
|
|
7082
7040
|
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7083
7041
|
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
@@ -7091,14 +7049,16 @@ function InputAddress(_ref) {
|
|
|
7091
7049
|
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7092
7050
|
onInputChange: value => onInputChange(value),
|
|
7093
7051
|
onChange: item => onSelectItem(item, onChange),
|
|
7094
|
-
children: items.map(item =>
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7052
|
+
children: items.map(item => {
|
|
7053
|
+
const child = children(item);
|
|
7054
|
+
return /*#__PURE__*/cloneElement(child, {
|
|
7055
|
+
key: child.key,
|
|
7056
|
+
item
|
|
7057
|
+
});
|
|
7058
|
+
})
|
|
7099
7059
|
}));
|
|
7100
7060
|
}
|
|
7101
|
-
InputAddress.Option =
|
|
7061
|
+
InputAddress.Option = InputAddressOption;
|
|
7102
7062
|
|
|
7103
7063
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
7104
7064
|
function GoogleMapsApiKeyProvider({
|
|
@@ -7438,6 +7398,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
7438
7398
|
return context;
|
|
7439
7399
|
}
|
|
7440
7400
|
|
|
7401
|
+
function InputAddressOptionLegacy({
|
|
7402
|
+
item
|
|
7403
|
+
}) {
|
|
7404
|
+
const sharedTransform = {
|
|
7405
|
+
style: {
|
|
7406
|
+
transform: 'translateY(4px)'
|
|
7407
|
+
}
|
|
7408
|
+
};
|
|
7409
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7410
|
+
item: item,
|
|
7411
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7412
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7413
|
+
space: "kitt.2",
|
|
7414
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7415
|
+
_web: sharedTransform,
|
|
7416
|
+
_ios: sharedTransform,
|
|
7417
|
+
_android: sharedTransform,
|
|
7418
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7419
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7420
|
+
color: "black"
|
|
7421
|
+
})
|
|
7422
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7423
|
+
flexShrink: 1,
|
|
7424
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7425
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7426
|
+
variant: "bold",
|
|
7427
|
+
children: item.structured_formatting.main_text
|
|
7428
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7429
|
+
color: "black-light",
|
|
7430
|
+
variant: "bold",
|
|
7431
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
7432
|
+
}) : null]
|
|
7433
|
+
})
|
|
7434
|
+
})]
|
|
7435
|
+
})
|
|
7436
|
+
});
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7441
7439
|
function defaultItemToString(item) {
|
|
7442
7440
|
if (!item) return '';
|
|
7443
7441
|
return item.description;
|