@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,7 +7784,10 @@ function FullscreenModalBody(_ref) {
7784
7784
  } = useTheme();
7785
7785
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7786
7786
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7787
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7787
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7788
+ flexGrow: 1,
7789
+ flexShrink: 1
7790
+ }, props), {}, {
7788
7791
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7789
7792
  paddingTop: paddingTop,
7790
7793
  paddingBottom: paddingBottom,
@@ -8066,28 +8069,31 @@ function FullscreenModalHeader(_ref) {
8066
8069
  }
8067
8070
 
8068
8071
  function FullscreenModal({
8072
+ children,
8069
8073
  body,
8070
8074
  header,
8071
8075
  footer,
8072
8076
  backgroundColor
8073
8077
  }) {
8074
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8078
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8075
8079
  backgroundColor: backgroundColor,
8076
- children: [header ? /*#__PURE__*/jsx(View, {
8077
- children: header
8078
- }) : null, /*#__PURE__*/jsxs(View, {
8079
- flexGrow: 1,
8080
- flexShrink: 1,
8081
- justifyContent: "space-between",
8082
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8083
- bounces: false,
8084
- contentContainerStyle: {
8085
- flexGrow: 1,
8086
- position: 'relative'
8087
- },
8088
- children: body
8089
- }), footer || null]
8090
- })]
8080
+ children: children || /*#__PURE__*/jsxs(Fragment, {
8081
+ children: [header ? /*#__PURE__*/jsx(View, {
8082
+ children: header
8083
+ }) : null, /*#__PURE__*/jsxs(View, {
8084
+ flexGrow: 1,
8085
+ flexShrink: 1,
8086
+ justifyContent: "space-between",
8087
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8088
+ bounces: false,
8089
+ contentContainerStyle: {
8090
+ flexGrow: 1,
8091
+ position: 'relative'
8092
+ },
8093
+ children: body
8094
+ }), footer || null]
8095
+ })]
8096
+ })
8091
8097
  });
8092
8098
  }
8093
8099
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11539,13 +11545,17 @@ function NavigationModal({
11539
11545
  body,
11540
11546
  backgroundColor,
11541
11547
  footer,
11542
- header
11548
+ header,
11549
+ children
11543
11550
  }) {
11544
11551
  const Component = useBreakpointValue({
11545
11552
  base: FullscreenModal,
11546
11553
  small: CardModal
11547
11554
  });
11548
- return /*#__PURE__*/jsx(Component, {
11555
+ return children ? /*#__PURE__*/jsx(Component, {
11556
+ backgroundColor: backgroundColor,
11557
+ children: children
11558
+ }) : /*#__PURE__*/jsx(Component, {
11549
11559
  body: body,
11550
11560
  backgroundColor: backgroundColor,
11551
11561
  footer: footer,