@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.
@@ -7761,6 +7761,8 @@ function FullscreenModalBody({
7761
7761
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7762
7762
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7763
7763
  return /*#__PURE__*/jsx(View, {
7764
+ flexGrow: 1,
7765
+ flexShrink: 1,
7764
7766
  ...props,
7765
7767
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7766
7768
  paddingTop: paddingTop,
@@ -8038,28 +8040,31 @@ function FullscreenModalHeader({
8038
8040
  }
8039
8041
 
8040
8042
  function FullscreenModal({
8043
+ children,
8041
8044
  body,
8042
8045
  header,
8043
8046
  footer,
8044
8047
  backgroundColor
8045
8048
  }) {
8046
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8049
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8047
8050
  backgroundColor: backgroundColor,
8048
- children: [header ? /*#__PURE__*/jsx(View, {
8049
- children: header
8050
- }) : null, /*#__PURE__*/jsxs(View, {
8051
- flexGrow: 1,
8052
- flexShrink: 1,
8053
- justifyContent: "space-between",
8054
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8055
- bounces: false,
8056
- contentContainerStyle: {
8057
- flexGrow: 1,
8058
- position: 'relative'
8059
- },
8060
- children: body
8061
- }), footer || null]
8062
- })]
8051
+ children: children || /*#__PURE__*/jsxs(Fragment, {
8052
+ children: [header ? /*#__PURE__*/jsx(View, {
8053
+ children: header
8054
+ }) : null, /*#__PURE__*/jsxs(View, {
8055
+ flexGrow: 1,
8056
+ flexShrink: 1,
8057
+ justifyContent: "space-between",
8058
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8059
+ bounces: false,
8060
+ contentContainerStyle: {
8061
+ flexGrow: 1,
8062
+ position: 'relative'
8063
+ },
8064
+ children: body
8065
+ }), footer || null]
8066
+ })]
8067
+ })
8063
8068
  });
8064
8069
  }
8065
8070
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11520,13 +11525,17 @@ function NavigationModal({
11520
11525
  body,
11521
11526
  backgroundColor,
11522
11527
  footer,
11523
- header
11528
+ header,
11529
+ children
11524
11530
  }) {
11525
11531
  const Component = useBreakpointValue({
11526
11532
  base: FullscreenModal,
11527
11533
  small: CardModal
11528
11534
  });
11529
- return /*#__PURE__*/jsx(Component, {
11535
+ return children ? /*#__PURE__*/jsx(Component, {
11536
+ backgroundColor: backgroundColor,
11537
+ children: children
11538
+ }) : /*#__PURE__*/jsx(Component, {
11530
11539
  body: body,
11531
11540
  backgroundColor: backgroundColor,
11532
11541
  footer: footer,