@ornikar/kitt-universal 25.58.1-canary.a2bac16fb42ca488d0dd8ad398c7507d2e37d975.0 → 25.59.1-canary.df1f8c07892f9fd7eea4788bd36344a2af12edde.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 +11 -2
- package/dist/definitions/Actions/ActionsItem.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +42 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +14 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -0
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +61 -3
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +61 -3
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +61 -2
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +44 -2
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +61 -3
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +44 -3
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +59 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +39 -3
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3634,7 +3634,6 @@ const ActionsItem = /*#__PURE__*/forwardRef(({
|
|
|
3634
3634
|
const mountedRef = useRef(false);
|
|
3635
3635
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
3636
3636
|
const loadingRef = useRef(false);
|
|
3637
|
-
const isStretch = useBreakpointValue(stretch) || stretch === true;
|
|
3638
3637
|
|
|
3639
3638
|
// effect just for tracking mounted state, as onPress can unmount the ActionButton
|
|
3640
3639
|
useEffect(() => {
|
|
@@ -3644,7 +3643,6 @@ const ActionsItem = /*#__PURE__*/forwardRef(({
|
|
|
3644
3643
|
};
|
|
3645
3644
|
}, []);
|
|
3646
3645
|
return /*#__PURE__*/jsx(View, {
|
|
3647
|
-
flexGrow: isStretch ? 1 : undefined,
|
|
3648
3646
|
children: /*#__PURE__*/jsx(as, {
|
|
3649
3647
|
ref: ref,
|
|
3650
3648
|
...props,
|
|
@@ -11542,6 +11540,66 @@ function KittNativeBaseProvider({
|
|
|
11542
11540
|
});
|
|
11543
11541
|
}
|
|
11544
11542
|
|
|
11543
|
+
function NavigationBottomSheet({
|
|
11544
|
+
children,
|
|
11545
|
+
hasScrollView,
|
|
11546
|
+
snapPoints,
|
|
11547
|
+
maxDynamicContentSize,
|
|
11548
|
+
isVisible,
|
|
11549
|
+
onClose
|
|
11550
|
+
}) {
|
|
11551
|
+
const bottomSheetRef = useBottomSheet();
|
|
11552
|
+
useEffect(() => {
|
|
11553
|
+
if (isVisible) {
|
|
11554
|
+
bottomSheetRef.current?.present();
|
|
11555
|
+
} else {
|
|
11556
|
+
bottomSheetRef.current?.close();
|
|
11557
|
+
}
|
|
11558
|
+
}, [bottomSheetRef, isVisible]);
|
|
11559
|
+
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11560
|
+
ref: bottomSheetRef,
|
|
11561
|
+
maxDynamicContentSize: maxDynamicContentSize,
|
|
11562
|
+
hasScrollView: hasScrollView,
|
|
11563
|
+
snapPoints: snapPoints,
|
|
11564
|
+
onDismiss: onClose,
|
|
11565
|
+
children: /*#__PURE__*/jsx(BottomSheet.View, {
|
|
11566
|
+
children: children
|
|
11567
|
+
})
|
|
11568
|
+
});
|
|
11569
|
+
}
|
|
11570
|
+
function NavigationBottomSheetHeader({
|
|
11571
|
+
children,
|
|
11572
|
+
left
|
|
11573
|
+
}) {
|
|
11574
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
11575
|
+
marginBottom: "kitt.6",
|
|
11576
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
11577
|
+
flexGrow: 1,
|
|
11578
|
+
flexShrink: 1,
|
|
11579
|
+
variant: "bold",
|
|
11580
|
+
textAlign: "center",
|
|
11581
|
+
children: children
|
|
11582
|
+
})
|
|
11583
|
+
});
|
|
11584
|
+
}
|
|
11585
|
+
function NavigationBottomSheetBody(props) {
|
|
11586
|
+
return /*#__PURE__*/jsx(VStack, {
|
|
11587
|
+
flexGrow: 1,
|
|
11588
|
+
flexShrink: 1,
|
|
11589
|
+
marginBottom: "kitt.4",
|
|
11590
|
+
...props
|
|
11591
|
+
});
|
|
11592
|
+
}
|
|
11593
|
+
function NavigationBottomSheetFooter(props) {
|
|
11594
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
11595
|
+
width: "100%",
|
|
11596
|
+
...props
|
|
11597
|
+
});
|
|
11598
|
+
}
|
|
11599
|
+
NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
11600
|
+
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
11601
|
+
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
11602
|
+
|
|
11545
11603
|
function NavigationModalBehaviour({
|
|
11546
11604
|
children,
|
|
11547
11605
|
visible,
|
|
@@ -14017,5 +14075,5 @@ function VerticalSteps({
|
|
|
14017
14075
|
VerticalSteps.Step = Step;
|
|
14018
14076
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14019
14077
|
|
|
14020
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
|
|
14078
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
|
|
14021
14079
|
//# sourceMappingURL=index-node-20.10.es.mjs.map
|