@ornikar/kitt-universal 31.3.2-canary.a176fae6a745e6f1b650fe56c3dca27af6b8816f.0 → 31.3.2-canary.d9333a410786c9c1a722ce408a27e7980c9146a4.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
|
@@ -6968,83 +6968,6 @@ function FilePicker({
|
|
|
6968
6968
|
});
|
|
6969
6969
|
}
|
|
6970
6970
|
|
|
6971
|
-
function InputAddressOption({
|
|
6972
|
-
item,
|
|
6973
|
-
mainText,
|
|
6974
|
-
secondaryText
|
|
6975
|
-
}) {
|
|
6976
|
-
const sharedTransform = {
|
|
6977
|
-
style: {
|
|
6978
|
-
transform: 'translateY(4px)'
|
|
6979
|
-
}
|
|
6980
|
-
};
|
|
6981
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6982
|
-
item: item,
|
|
6983
|
-
testID: "kitt.InputAddressOption.item",
|
|
6984
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6985
|
-
space: "kitt.2",
|
|
6986
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6987
|
-
_web: sharedTransform,
|
|
6988
|
-
_ios: sharedTransform,
|
|
6989
|
-
_android: sharedTransform,
|
|
6990
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6991
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6992
|
-
color: "black"
|
|
6993
|
-
})
|
|
6994
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6995
|
-
flexShrink: 1,
|
|
6996
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6997
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6998
|
-
variant: "bold",
|
|
6999
|
-
children: mainText
|
|
7000
|
-
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7001
|
-
color: "black-light",
|
|
7002
|
-
variant: "bold",
|
|
7003
|
-
children: [' ', secondaryText]
|
|
7004
|
-
}) : null]
|
|
7005
|
-
})
|
|
7006
|
-
})]
|
|
7007
|
-
})
|
|
7008
|
-
});
|
|
7009
|
-
}
|
|
7010
|
-
|
|
7011
|
-
function InputAddress({
|
|
7012
|
-
errorElement,
|
|
7013
|
-
initialValue,
|
|
7014
|
-
emptyResultsElement,
|
|
7015
|
-
onChange,
|
|
7016
|
-
items,
|
|
7017
|
-
isLoading,
|
|
7018
|
-
hasError,
|
|
7019
|
-
onInputChange,
|
|
7020
|
-
onSelectItem,
|
|
7021
|
-
convertInitialValue,
|
|
7022
|
-
children,
|
|
7023
|
-
...props
|
|
7024
|
-
}) {
|
|
7025
|
-
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7026
|
-
return /*#__PURE__*/jsx(Autocomplete, {
|
|
7027
|
-
...props,
|
|
7028
|
-
initialValue: formattedInitialValue,
|
|
7029
|
-
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7030
|
-
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7031
|
-
color: "kitt.black"
|
|
7032
|
-
}) : undefined,
|
|
7033
|
-
errorElement: hasError ? errorElement : null,
|
|
7034
|
-
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7035
|
-
onInputChange: value => onInputChange(value),
|
|
7036
|
-
onChange: item => onSelectItem(item, onChange),
|
|
7037
|
-
children: items.map(item => {
|
|
7038
|
-
const child = children(item);
|
|
7039
|
-
return /*#__PURE__*/cloneElement(child, {
|
|
7040
|
-
key: child.key,
|
|
7041
|
-
item
|
|
7042
|
-
});
|
|
7043
|
-
})
|
|
7044
|
-
});
|
|
7045
|
-
}
|
|
7046
|
-
InputAddress.Option = InputAddressOption;
|
|
7047
|
-
|
|
7048
6971
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
7049
6972
|
function GoogleMapsApiKeyProvider({
|
|
7050
6973
|
children,
|
|
@@ -7388,7 +7311,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7388
7311
|
return context;
|
|
7389
7312
|
}
|
|
7390
7313
|
|
|
7391
|
-
function
|
|
7314
|
+
function InputAddressOption({
|
|
7392
7315
|
item
|
|
7393
7316
|
}) {
|
|
7394
7317
|
const sharedTransform = {
|
|
@@ -7398,7 +7321,7 @@ function InputAddressOptionLegacy({
|
|
|
7398
7321
|
};
|
|
7399
7322
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7400
7323
|
item: item,
|
|
7401
|
-
testID: "kitt.
|
|
7324
|
+
testID: "kitt.InputAddressOption.item",
|
|
7402
7325
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7403
7326
|
space: "kitt.2",
|
|
7404
7327
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7459,7 +7382,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7459
7382
|
};
|
|
7460
7383
|
}
|
|
7461
7384
|
|
|
7462
|
-
function
|
|
7385
|
+
function InputAddress({
|
|
7463
7386
|
initialValue,
|
|
7464
7387
|
itemToString = defaultItemToString,
|
|
7465
7388
|
errorElement,
|
|
@@ -7492,12 +7415,12 @@ function InputAddressLegacy({
|
|
|
7492
7415
|
onChange: v => {
|
|
7493
7416
|
onSelectItem(v, onChange);
|
|
7494
7417
|
},
|
|
7495
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
7418
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
|
|
7496
7419
|
item: item
|
|
7497
7420
|
}, item.place_id))
|
|
7498
7421
|
});
|
|
7499
7422
|
}
|
|
7500
|
-
|
|
7423
|
+
InputAddress.Option = InputAddressOption;
|
|
7501
7424
|
|
|
7502
7425
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7503
7426
|
return /*#__PURE__*/jsx(InputText, {
|
|
@@ -14471,5 +14394,5 @@ function VerticalSteps({
|
|
|
14471
14394
|
VerticalSteps.Step = Step;
|
|
14472
14395
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14473
14396
|
|
|
14474
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress,
|
|
14397
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
14475
14398
|
//# sourceMappingURL=index-node-22.17.es.mjs.map
|