@ornikar/kitt-universal 25.51.1-canary.67a8515dfc0adf469c4c021e0ebe8416cd86dff7.0 → 25.51.1-canary.f795a58d6b1d7afa1371e143a23a37803d7590e5.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.
@@ -7781,7 +7781,10 @@ function FullscreenModalBody(_ref) {
7781
7781
  } = useTheme();
7782
7782
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7783
7783
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7784
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7784
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7785
+ flexGrow: 1,
7786
+ flexShrink: 1
7787
+ }, props), {}, {
7785
7788
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7786
7789
  paddingTop: paddingTop,
7787
7790
  paddingBottom: paddingBottom,
@@ -8063,28 +8066,31 @@ function FullscreenModalHeader(_ref) {
8063
8066
  }
8064
8067
 
8065
8068
  function FullscreenModal({
8069
+ children,
8066
8070
  body,
8067
8071
  header,
8068
8072
  footer,
8069
8073
  backgroundColor
8070
8074
  }) {
8071
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8075
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8072
8076
  backgroundColor: backgroundColor,
8073
- children: [header ? /*#__PURE__*/jsx(View, {
8074
- children: header
8075
- }) : null, /*#__PURE__*/jsxs(View, {
8076
- flexGrow: 1,
8077
- flexShrink: 1,
8078
- justifyContent: "space-between",
8079
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8080
- bounces: false,
8081
- contentContainerStyle: {
8082
- flexGrow: 1,
8083
- position: 'relative'
8084
- },
8085
- children: body
8086
- }), footer || null]
8087
- })]
8077
+ children: children || /*#__PURE__*/jsxs(Fragment, {
8078
+ children: [header ? /*#__PURE__*/jsx(View, {
8079
+ children: header
8080
+ }) : null, /*#__PURE__*/jsxs(View, {
8081
+ flexGrow: 1,
8082
+ flexShrink: 1,
8083
+ justifyContent: "space-between",
8084
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8085
+ bounces: false,
8086
+ contentContainerStyle: {
8087
+ flexGrow: 1,
8088
+ position: 'relative'
8089
+ },
8090
+ children: body
8091
+ }), footer || null]
8092
+ })]
8093
+ })
8088
8094
  });
8089
8095
  }
8090
8096
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11505,13 +11511,17 @@ function NavigationModal({
11505
11511
  body,
11506
11512
  backgroundColor,
11507
11513
  footer,
11508
- header
11514
+ header,
11515
+ children
11509
11516
  }) {
11510
11517
  const Component = useBreakpointValue({
11511
11518
  base: FullscreenModal,
11512
11519
  small: CardModal
11513
11520
  });
11514
- return /*#__PURE__*/jsx(Component, {
11521
+ return children ? /*#__PURE__*/jsx(Component, {
11522
+ backgroundColor: backgroundColor,
11523
+ children: children
11524
+ }) : /*#__PURE__*/jsx(Component, {
11515
11525
  body: body,
11516
11526
  backgroundColor: backgroundColor,
11517
11527
  footer: footer,