@ornikar/kitt-universal 31.3.2-canary.a176fae6a745e6f1b650fe56c3dca27af6b8816f.0 → 31.4.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 +3 -8
- package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +8 -12
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +4 -5
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +1 -4
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +70 -148
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +70 -148
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +5 -83
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +0 -1
- package/dist/index-node-22.17.cjs.web.js +8 -87
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +6 -83
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +0 -1
- package/dist/index-node-22.17.es.web.mjs +9 -87
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +70 -149
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +59 -139
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +0 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +0 -15
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +0 -1
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +0 -7
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +0 -1
|
@@ -6992,83 +6992,6 @@ function FilePicker({
|
|
|
6992
6992
|
});
|
|
6993
6993
|
}
|
|
6994
6994
|
|
|
6995
|
-
function InputAddressOption({
|
|
6996
|
-
item,
|
|
6997
|
-
mainText,
|
|
6998
|
-
secondaryText
|
|
6999
|
-
}) {
|
|
7000
|
-
const sharedTransform = {
|
|
7001
|
-
style: {
|
|
7002
|
-
transform: 'translateY(4px)'
|
|
7003
|
-
}
|
|
7004
|
-
};
|
|
7005
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7006
|
-
item: item,
|
|
7007
|
-
testID: "kitt.InputAddressOption.item",
|
|
7008
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7009
|
-
space: "kitt.2",
|
|
7010
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7011
|
-
_web: sharedTransform,
|
|
7012
|
-
_ios: sharedTransform,
|
|
7013
|
-
_android: sharedTransform,
|
|
7014
|
-
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7015
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
7016
|
-
color: "black"
|
|
7017
|
-
})
|
|
7018
|
-
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7019
|
-
flexShrink: 1,
|
|
7020
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7021
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7022
|
-
variant: "bold",
|
|
7023
|
-
children: mainText
|
|
7024
|
-
}), secondaryText ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7025
|
-
color: "black-light",
|
|
7026
|
-
variant: "bold",
|
|
7027
|
-
children: [' ', secondaryText]
|
|
7028
|
-
}) : null]
|
|
7029
|
-
})
|
|
7030
|
-
})]
|
|
7031
|
-
})
|
|
7032
|
-
});
|
|
7033
|
-
}
|
|
7034
|
-
|
|
7035
|
-
function InputAddress({
|
|
7036
|
-
errorElement,
|
|
7037
|
-
initialValue,
|
|
7038
|
-
emptyResultsElement,
|
|
7039
|
-
onChange,
|
|
7040
|
-
items,
|
|
7041
|
-
isLoading,
|
|
7042
|
-
hasError,
|
|
7043
|
-
onInputChange,
|
|
7044
|
-
onSelectItem,
|
|
7045
|
-
convertInitialValue,
|
|
7046
|
-
children,
|
|
7047
|
-
...props
|
|
7048
|
-
}) {
|
|
7049
|
-
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7050
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete, {
|
|
7051
|
-
...props,
|
|
7052
|
-
initialValue: formattedInitialValue,
|
|
7053
|
-
right: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
7054
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(LoaderIcon, {}),
|
|
7055
|
-
color: "kitt.black"
|
|
7056
|
-
}) : undefined,
|
|
7057
|
-
errorElement: hasError ? errorElement : null,
|
|
7058
|
-
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7059
|
-
onInputChange: value => onInputChange(value),
|
|
7060
|
-
onChange: item => onSelectItem(item, onChange),
|
|
7061
|
-
children: items.map(item => {
|
|
7062
|
-
const child = children(item);
|
|
7063
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
7064
|
-
key: child.key,
|
|
7065
|
-
item
|
|
7066
|
-
});
|
|
7067
|
-
})
|
|
7068
|
-
});
|
|
7069
|
-
}
|
|
7070
|
-
InputAddress.Option = InputAddressOption;
|
|
7071
|
-
|
|
7072
6995
|
const GoogleMapsApiKeyContext = /*#__PURE__*/React.createContext(undefined);
|
|
7073
6996
|
function GoogleMapsApiKeyProvider({
|
|
7074
6997
|
children,
|
|
@@ -7412,7 +7335,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7412
7335
|
return context;
|
|
7413
7336
|
}
|
|
7414
7337
|
|
|
7415
|
-
function
|
|
7338
|
+
function InputAddressOption({
|
|
7416
7339
|
item
|
|
7417
7340
|
}) {
|
|
7418
7341
|
const sharedTransform = {
|
|
@@ -7422,7 +7345,7 @@ function InputAddressOptionLegacy({
|
|
|
7422
7345
|
};
|
|
7423
7346
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7424
7347
|
item: item,
|
|
7425
|
-
testID: "kitt.
|
|
7348
|
+
testID: "kitt.InputAddressOption.item",
|
|
7426
7349
|
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7427
7350
|
space: "kitt.2",
|
|
7428
7351
|
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -7483,7 +7406,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7483
7406
|
};
|
|
7484
7407
|
}
|
|
7485
7408
|
|
|
7486
|
-
function
|
|
7409
|
+
function InputAddress({
|
|
7487
7410
|
initialValue,
|
|
7488
7411
|
itemToString = defaultItemToString,
|
|
7489
7412
|
errorElement,
|
|
@@ -7516,12 +7439,12 @@ function InputAddressLegacy({
|
|
|
7516
7439
|
onChange: v => {
|
|
7517
7440
|
onSelectItem(v, onChange);
|
|
7518
7441
|
},
|
|
7519
|
-
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(
|
|
7442
|
+
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOption, {
|
|
7520
7443
|
item: item
|
|
7521
7444
|
}, item.place_id))
|
|
7522
7445
|
});
|
|
7523
7446
|
}
|
|
7524
|
-
|
|
7447
|
+
InputAddress.Option = InputAddressOption;
|
|
7525
7448
|
|
|
7526
7449
|
const InputEmail = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
7527
7450
|
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
@@ -14535,7 +14458,6 @@ exports.Image = Image;
|
|
|
14535
14458
|
exports.ImagePicker = ImagePicker;
|
|
14536
14459
|
exports.InfoCard = InfoCard;
|
|
14537
14460
|
exports.InputAddress = InputAddress;
|
|
14538
|
-
exports.InputAddressLegacy = InputAddressLegacy;
|
|
14539
14461
|
exports.InputEmail = InputEmail;
|
|
14540
14462
|
exports.InputFeedback = InputFeedback;
|
|
14541
14463
|
exports.InputField = InputField;
|