@ornikar/kitt-universal 31.3.2-canary.1a5b65d2fbfa0e00bf6c237b7d017b61dce7e75b.0 → 31.3.2-canary.2f602b2cfade63278a988a7f253e6de89bdee0e8.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 -2
- package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +9 -15
- 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 +106 -186
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +106 -186
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +41 -121
- 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 +44 -125
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +42 -121
- 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 +45 -125
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +105 -188
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +94 -178
- 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,123 +6968,6 @@ function FilePicker({
|
|
|
6968
6968
|
});
|
|
6969
6969
|
}
|
|
6970
6970
|
|
|
6971
|
-
function InputAddressOption({
|
|
6972
|
-
item,
|
|
6973
|
-
itemToMainText,
|
|
6974
|
-
itemToSecondaryText
|
|
6975
|
-
}) {
|
|
6976
|
-
const sharedTransform = {
|
|
6977
|
-
style: {
|
|
6978
|
-
transform: 'translateY(4px)'
|
|
6979
|
-
}
|
|
6980
|
-
};
|
|
6981
|
-
const mainText = itemToMainText(item);
|
|
6982
|
-
const secondaryText = itemToSecondaryText(item);
|
|
6983
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6984
|
-
item: item,
|
|
6985
|
-
testID: "kitt.InputAddressOption.item",
|
|
6986
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6987
|
-
space: "kitt.2",
|
|
6988
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6989
|
-
_web: sharedTransform,
|
|
6990
|
-
_ios: sharedTransform,
|
|
6991
|
-
_android: sharedTransform,
|
|
6992
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6993
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6994
|
-
color: "black"
|
|
6995
|
-
})
|
|
6996
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6997
|
-
flexShrink: 1,
|
|
6998
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6999
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7000
|
-
variant: "bold",
|
|
7001
|
-
children: mainText
|
|
7002
|
-
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7003
|
-
color: "black-light",
|
|
7004
|
-
variant: "bold",
|
|
7005
|
-
children: [' ', secondaryText]
|
|
7006
|
-
}) : null]
|
|
7007
|
-
})
|
|
7008
|
-
})]
|
|
7009
|
-
})
|
|
7010
|
-
});
|
|
7011
|
-
}
|
|
7012
|
-
|
|
7013
|
-
function InputAddressOptionLegacy({
|
|
7014
|
-
item
|
|
7015
|
-
}) {
|
|
7016
|
-
const sharedTransform = {
|
|
7017
|
-
style: {
|
|
7018
|
-
transform: 'translateY(4px)'
|
|
7019
|
-
}
|
|
7020
|
-
};
|
|
7021
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7022
|
-
item: item,
|
|
7023
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7024
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
7025
|
-
space: "kitt.2",
|
|
7026
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
7027
|
-
_web: sharedTransform,
|
|
7028
|
-
_ios: sharedTransform,
|
|
7029
|
-
_android: sharedTransform,
|
|
7030
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7031
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7032
|
-
color: "black"
|
|
7033
|
-
})
|
|
7034
|
-
}), /*#__PURE__*/jsx(View, {
|
|
7035
|
-
flexShrink: 1,
|
|
7036
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7037
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7038
|
-
variant: "bold",
|
|
7039
|
-
children: item.structured_formatting.main_text
|
|
7040
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7041
|
-
color: "black-light",
|
|
7042
|
-
variant: "bold",
|
|
7043
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
7044
|
-
}) : null]
|
|
7045
|
-
})
|
|
7046
|
-
})]
|
|
7047
|
-
})
|
|
7048
|
-
});
|
|
7049
|
-
}
|
|
7050
|
-
|
|
7051
|
-
function InputAddress({
|
|
7052
|
-
errorElement,
|
|
7053
|
-
initialValue,
|
|
7054
|
-
emptyResultsElement,
|
|
7055
|
-
onChange,
|
|
7056
|
-
items,
|
|
7057
|
-
isLoading,
|
|
7058
|
-
hasError,
|
|
7059
|
-
onInputChange,
|
|
7060
|
-
onSelectItem,
|
|
7061
|
-
convertInitialValue,
|
|
7062
|
-
itemToMainText,
|
|
7063
|
-
itemToSecondaryText,
|
|
7064
|
-
itemToKey,
|
|
7065
|
-
...props
|
|
7066
|
-
}) {
|
|
7067
|
-
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7068
|
-
return /*#__PURE__*/jsx(Autocomplete, {
|
|
7069
|
-
...props,
|
|
7070
|
-
initialValue: formattedInitialValue,
|
|
7071
|
-
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7072
|
-
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7073
|
-
color: "kitt.black"
|
|
7074
|
-
}) : undefined,
|
|
7075
|
-
errorElement: hasError ? errorElement : null,
|
|
7076
|
-
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7077
|
-
onInputChange: value => onInputChange(value),
|
|
7078
|
-
onChange: item => onSelectItem(item, onChange),
|
|
7079
|
-
children: items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
|
|
7080
|
-
item: item,
|
|
7081
|
-
itemToMainText: itemToMainText,
|
|
7082
|
-
itemToSecondaryText: itemToSecondaryText
|
|
7083
|
-
}, itemToKey(item)))
|
|
7084
|
-
});
|
|
7085
|
-
}
|
|
7086
|
-
InputAddress.Option = InputAddressOptionLegacy;
|
|
7087
|
-
|
|
7088
6971
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
7089
6972
|
function GoogleMapsApiKeyProvider({
|
|
7090
6973
|
children,
|
|
@@ -7428,6 +7311,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
7428
7311
|
return context;
|
|
7429
7312
|
}
|
|
7430
7313
|
|
|
7314
|
+
function InputAddressOption({
|
|
7315
|
+
item
|
|
7316
|
+
}) {
|
|
7317
|
+
const sharedTransform = {
|
|
7318
|
+
style: {
|
|
7319
|
+
transform: 'translateY(4px)'
|
|
7320
|
+
}
|
|
7321
|
+
};
|
|
7322
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7323
|
+
item: item,
|
|
7324
|
+
testID: "kitt.InputAddressOption.item",
|
|
7325
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
7326
|
+
space: "kitt.2",
|
|
7327
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
7328
|
+
_web: sharedTransform,
|
|
7329
|
+
_ios: sharedTransform,
|
|
7330
|
+
_android: sharedTransform,
|
|
7331
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7332
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7333
|
+
color: "black"
|
|
7334
|
+
})
|
|
7335
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7336
|
+
flexShrink: 1,
|
|
7337
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7338
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7339
|
+
variant: "bold",
|
|
7340
|
+
children: item.structured_formatting.main_text
|
|
7341
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7342
|
+
color: "black-light",
|
|
7343
|
+
variant: "bold",
|
|
7344
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
7345
|
+
}) : null]
|
|
7346
|
+
})
|
|
7347
|
+
})]
|
|
7348
|
+
})
|
|
7349
|
+
});
|
|
7350
|
+
}
|
|
7351
|
+
|
|
7431
7352
|
function defaultItemToString(item) {
|
|
7432
7353
|
if (!item) return '';
|
|
7433
7354
|
return item.description;
|
|
@@ -7461,7 +7382,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7461
7382
|
};
|
|
7462
7383
|
}
|
|
7463
7384
|
|
|
7464
|
-
function
|
|
7385
|
+
function InputAddress({
|
|
7465
7386
|
initialValue,
|
|
7466
7387
|
itemToString = defaultItemToString,
|
|
7467
7388
|
errorElement,
|
|
@@ -7494,12 +7415,12 @@ function InputAddressLegacy({
|
|
|
7494
7415
|
onChange: v => {
|
|
7495
7416
|
onSelectItem(v, onChange);
|
|
7496
7417
|
},
|
|
7497
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
7418
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
|
|
7498
7419
|
item: item
|
|
7499
7420
|
}, item.place_id))
|
|
7500
7421
|
});
|
|
7501
7422
|
}
|
|
7502
|
-
|
|
7423
|
+
InputAddress.Option = InputAddressOption;
|
|
7503
7424
|
|
|
7504
7425
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7505
7426
|
return /*#__PURE__*/jsx(InputText, {
|
|
@@ -14473,5 +14394,5 @@ function VerticalSteps({
|
|
|
14473
14394
|
VerticalSteps.Step = Step;
|
|
14474
14395
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14475
14396
|
|
|
14476
|
-
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 };
|
|
14477
14398
|
//# sourceMappingURL=index-node-22.17.es.mjs.map
|