@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.
@@ -3657,7 +3657,6 @@ const ActionsItem = /*#__PURE__*/React.forwardRef(({
3657
3657
  const mountedRef = React.useRef(false);
3658
3658
  // securing the loading state with a ref to avoid user action between rerenders
3659
3659
  const loadingRef = React.useRef(false);
3660
- const isStretch = useBreakpointValue(stretch) || stretch === true;
3661
3660
 
3662
3661
  // effect just for tracking mounted state, as onPress can unmount the ActionButton
3663
3662
  React.useEffect(() => {
@@ -3667,7 +3666,6 @@ const ActionsItem = /*#__PURE__*/React.forwardRef(({
3667
3666
  };
3668
3667
  }, []);
3669
3668
  return /*#__PURE__*/jsxRuntime.jsx(View, {
3670
- flexGrow: isStretch ? 1 : undefined,
3671
3669
  children: /*#__PURE__*/jsxRuntime.jsx(as, {
3672
3670
  ref: ref,
3673
3671
  ...props,
@@ -11565,6 +11563,66 @@ function KittNativeBaseProvider({
11565
11563
  });
11566
11564
  }
11567
11565
 
11566
+ function NavigationBottomSheet({
11567
+ children,
11568
+ hasScrollView,
11569
+ snapPoints,
11570
+ maxDynamicContentSize,
11571
+ isVisible,
11572
+ onClose
11573
+ }) {
11574
+ const bottomSheetRef = useBottomSheet();
11575
+ React.useEffect(() => {
11576
+ if (isVisible) {
11577
+ bottomSheetRef.current?.present();
11578
+ } else {
11579
+ bottomSheetRef.current?.close();
11580
+ }
11581
+ }, [bottomSheetRef, isVisible]);
11582
+ return /*#__PURE__*/jsxRuntime.jsx(BottomSheet, {
11583
+ ref: bottomSheetRef,
11584
+ maxDynamicContentSize: maxDynamicContentSize,
11585
+ hasScrollView: hasScrollView,
11586
+ snapPoints: snapPoints,
11587
+ onDismiss: onClose,
11588
+ children: /*#__PURE__*/jsxRuntime.jsx(BottomSheet.View, {
11589
+ children: children
11590
+ })
11591
+ });
11592
+ }
11593
+ function NavigationBottomSheetHeader({
11594
+ children,
11595
+ left
11596
+ }) {
11597
+ return /*#__PURE__*/jsxRuntime.jsx(HStack, {
11598
+ marginBottom: "kitt.6",
11599
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
11600
+ flexGrow: 1,
11601
+ flexShrink: 1,
11602
+ variant: "bold",
11603
+ textAlign: "center",
11604
+ children: children
11605
+ })
11606
+ });
11607
+ }
11608
+ function NavigationBottomSheetBody(props) {
11609
+ return /*#__PURE__*/jsxRuntime.jsx(VStack, {
11610
+ flexGrow: 1,
11611
+ flexShrink: 1,
11612
+ marginBottom: "kitt.4",
11613
+ ...props
11614
+ });
11615
+ }
11616
+ function NavigationBottomSheetFooter(props) {
11617
+ return /*#__PURE__*/jsxRuntime.jsx(HStack, {
11618
+ width: "100%",
11619
+ ...props
11620
+ });
11621
+ }
11622
+ NavigationBottomSheet.Header = NavigationBottomSheetHeader;
11623
+ NavigationBottomSheet.Body = NavigationBottomSheetBody;
11624
+ NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
11625
+
11568
11626
  function NavigationModalBehaviour({
11569
11627
  children,
11570
11628
  visible,
@@ -14106,6 +14164,7 @@ exports.MatchWindowSize = MatchWindowSize;
14106
14164
  exports.Message = Message;
14107
14165
  exports.ModalBehaviour = ModalBehaviour;
14108
14166
  exports.NativeOnlyFlatList = FlatList;
14167
+ exports.NavigationBottomSheet = NavigationBottomSheet;
14109
14168
  exports.NavigationModal = NavigationModal;
14110
14169
  exports.Notification = Notification;
14111
14170
  exports.Overlay = Overlay;