@ornikar/kitt-universal 25.53.0 → 25.54.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.
@@ -7784,6 +7784,8 @@ function FullscreenModalBody({
7784
7784
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7785
7785
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7786
7786
  return /*#__PURE__*/jsxRuntime.jsx(View, {
7787
+ flexGrow: 1,
7788
+ flexShrink: 1,
7787
7789
  ...props,
7788
7790
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7789
7791
  paddingTop: paddingTop,
@@ -8061,28 +8063,31 @@ function FullscreenModalHeader({
8061
8063
  }
8062
8064
 
8063
8065
  function FullscreenModal({
8066
+ children,
8064
8067
  body,
8065
8068
  header,
8066
8069
  footer,
8067
8070
  backgroundColor
8068
8071
  }) {
8069
- return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
8072
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
8070
8073
  backgroundColor: backgroundColor,
8071
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8072
- children: header
8073
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8074
- flexGrow: 1,
8075
- flexShrink: 1,
8076
- justifyContent: "space-between",
8077
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8078
- bounces: false,
8079
- contentContainerStyle: {
8080
- flexGrow: 1,
8081
- position: 'relative'
8082
- },
8083
- children: body
8084
- }), footer || null]
8085
- })]
8074
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
8075
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8076
+ children: header
8077
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8078
+ flexGrow: 1,
8079
+ flexShrink: 1,
8080
+ justifyContent: "space-between",
8081
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8082
+ bounces: false,
8083
+ contentContainerStyle: {
8084
+ flexGrow: 1,
8085
+ position: 'relative'
8086
+ },
8087
+ children: body
8088
+ }), footer || null]
8089
+ })]
8090
+ })
8086
8091
  });
8087
8092
  }
8088
8093
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11543,13 +11548,17 @@ function NavigationModal({
11543
11548
  body,
11544
11549
  backgroundColor,
11545
11550
  footer,
11546
- header
11551
+ header,
11552
+ children
11547
11553
  }) {
11548
11554
  const Component = useBreakpointValue({
11549
11555
  base: FullscreenModal,
11550
11556
  small: CardModal
11551
11557
  });
11552
- return /*#__PURE__*/jsxRuntime.jsx(Component, {
11558
+ return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
11559
+ backgroundColor: backgroundColor,
11560
+ children: children
11561
+ }) : /*#__PURE__*/jsxRuntime.jsx(Component, {
11553
11562
  body: body,
11554
11563
  backgroundColor: backgroundColor,
11555
11564
  footer: footer,