@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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
.kitt-u_overflowHidden_otm3u3{overflow:hidden;}
|
|
2
1
|
.kitt-u_contentAnimationEnter_c11xxy4r{opacity:0;-webkit-transform:rotateZ(5deg) scale(0.8);-ms-transform:rotateZ(5deg) scale(0.8);transform:rotateZ(5deg) scale(0.8);}
|
|
3
2
|
.kitt-u_contentAnimatioEnterActive_cl52117{opacity:1;-webkit-transform:rotateZ(0) scale(1);-ms-transform:rotateZ(0) scale(1);transform:rotateZ(0) scale(1);-webkit-transition:all 400ms cubic-bezier(0.77,0,0.175,1);transition:all 400ms cubic-bezier(0.77,0,0.175,1);}
|
|
4
3
|
.kitt-u_contentAnimatioExit_cyjczep{opacity:1;-webkit-transform:rotateZ(0) scale(1);-ms-transform:rotateZ(0) scale(1);transform:rotateZ(0) scale(1);}
|
|
@@ -4215,18 +4215,17 @@ function useStaticBottomSheet(Content) {
|
|
|
4215
4215
|
};
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
|
-
const overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
4219
4218
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
4220
4219
|
useEffect(() => {
|
|
4221
4220
|
if (shouldBlockScroll) {
|
|
4222
|
-
document.body.
|
|
4221
|
+
document.body.style.overflow = 'hidden';
|
|
4223
4222
|
} else if (!isInitialRender) {
|
|
4224
|
-
document.body.
|
|
4223
|
+
document.body.style.overflow = '';
|
|
4225
4224
|
}
|
|
4226
4225
|
return () => {
|
|
4227
4226
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- When leaving the website, document.body can be null
|
|
4228
4227
|
if (document.body) {
|
|
4229
|
-
document.body.
|
|
4228
|
+
document.body.style.overflow = '';
|
|
4230
4229
|
}
|
|
4231
4230
|
};
|
|
4232
4231
|
}, [shouldBlockScroll, isInitialRender]);
|
|
@@ -6238,83 +6237,6 @@ function ImagePicker({
|
|
|
6238
6237
|
});
|
|
6239
6238
|
}
|
|
6240
6239
|
|
|
6241
|
-
function InputAddressOption({
|
|
6242
|
-
item,
|
|
6243
|
-
mainText,
|
|
6244
|
-
secondaryText
|
|
6245
|
-
}) {
|
|
6246
|
-
const sharedTransform = {
|
|
6247
|
-
style: {
|
|
6248
|
-
transform: 'translateY(4px)'
|
|
6249
|
-
}
|
|
6250
|
-
};
|
|
6251
|
-
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6252
|
-
item: item,
|
|
6253
|
-
testID: "kitt.InputAddressOption.item",
|
|
6254
|
-
children: /*#__PURE__*/jsxs(HStack, {
|
|
6255
|
-
space: "kitt.2",
|
|
6256
|
-
children: [/*#__PURE__*/jsx(View, {
|
|
6257
|
-
_web: sharedTransform,
|
|
6258
|
-
_ios: sharedTransform,
|
|
6259
|
-
_android: sharedTransform,
|
|
6260
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6261
|
-
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
6262
|
-
color: "black"
|
|
6263
|
-
})
|
|
6264
|
-
}), /*#__PURE__*/jsx(View, {
|
|
6265
|
-
flexShrink: 1,
|
|
6266
|
-
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
6267
|
-
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
6268
|
-
variant: "bold",
|
|
6269
|
-
children: mainText
|
|
6270
|
-
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
6271
|
-
color: "black-light",
|
|
6272
|
-
variant: "bold",
|
|
6273
|
-
children: [' ', secondaryText]
|
|
6274
|
-
}) : null]
|
|
6275
|
-
})
|
|
6276
|
-
})]
|
|
6277
|
-
})
|
|
6278
|
-
});
|
|
6279
|
-
}
|
|
6280
|
-
|
|
6281
|
-
function InputAddress({
|
|
6282
|
-
errorElement,
|
|
6283
|
-
initialValue,
|
|
6284
|
-
emptyResultsElement,
|
|
6285
|
-
onChange,
|
|
6286
|
-
items,
|
|
6287
|
-
isLoading,
|
|
6288
|
-
hasError,
|
|
6289
|
-
onInputChange,
|
|
6290
|
-
onSelectItem,
|
|
6291
|
-
convertInitialValue,
|
|
6292
|
-
children,
|
|
6293
|
-
...props
|
|
6294
|
-
}) {
|
|
6295
|
-
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
6296
|
-
return /*#__PURE__*/jsx(Autocomplete, {
|
|
6297
|
-
...props,
|
|
6298
|
-
initialValue: formattedInitialValue,
|
|
6299
|
-
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
6300
|
-
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
6301
|
-
color: "kitt.black"
|
|
6302
|
-
}) : undefined,
|
|
6303
|
-
errorElement: hasError ? errorElement : null,
|
|
6304
|
-
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6305
|
-
onInputChange: value => onInputChange(value),
|
|
6306
|
-
onChange: item => onSelectItem(item, onChange),
|
|
6307
|
-
children: items.map(item => {
|
|
6308
|
-
const child = children(item);
|
|
6309
|
-
return /*#__PURE__*/cloneElement(child, {
|
|
6310
|
-
key: child.key,
|
|
6311
|
-
item
|
|
6312
|
-
});
|
|
6313
|
-
})
|
|
6314
|
-
});
|
|
6315
|
-
}
|
|
6316
|
-
InputAddress.Option = InputAddressOption;
|
|
6317
|
-
|
|
6318
6240
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6319
6241
|
function GoogleMapsApiKeyProvider({
|
|
6320
6242
|
children,
|
|
@@ -6640,7 +6562,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
6640
6562
|
return context;
|
|
6641
6563
|
}
|
|
6642
6564
|
|
|
6643
|
-
function
|
|
6565
|
+
function InputAddressOption({
|
|
6644
6566
|
item
|
|
6645
6567
|
}) {
|
|
6646
6568
|
const sharedTransform = {
|
|
@@ -6650,7 +6572,7 @@ function InputAddressOptionLegacy({
|
|
|
6650
6572
|
};
|
|
6651
6573
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6652
6574
|
item: item,
|
|
6653
|
-
testID: "kitt.
|
|
6575
|
+
testID: "kitt.InputAddressOption.item",
|
|
6654
6576
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
6655
6577
|
space: "kitt.2",
|
|
6656
6578
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -6711,7 +6633,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6711
6633
|
};
|
|
6712
6634
|
}
|
|
6713
6635
|
|
|
6714
|
-
function
|
|
6636
|
+
function InputAddress({
|
|
6715
6637
|
initialValue,
|
|
6716
6638
|
itemToString = defaultItemToString,
|
|
6717
6639
|
errorElement,
|
|
@@ -6744,12 +6666,12 @@ function InputAddressLegacy({
|
|
|
6744
6666
|
onChange: v => {
|
|
6745
6667
|
onSelectItem(v, onChange);
|
|
6746
6668
|
},
|
|
6747
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
6669
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
|
|
6748
6670
|
item: item
|
|
6749
6671
|
}, item.place_id))
|
|
6750
6672
|
});
|
|
6751
6673
|
}
|
|
6752
|
-
|
|
6674
|
+
InputAddress.Option = InputAddressOption;
|
|
6753
6675
|
|
|
6754
6676
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
6755
6677
|
return /*#__PURE__*/jsx(InputText, {
|
|
@@ -13713,5 +13635,5 @@ function VerticalSteps({
|
|
|
13713
13635
|
VerticalSteps.Step = Step;
|
|
13714
13636
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13715
13637
|
|
|
13716
|
-
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,
|
|
13638
|
+
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, 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 };
|
|
13717
13639
|
//# sourceMappingURL=index-node-22.17.es.web.mjs.map
|