@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.
@@ -7007,6 +7007,8 @@ function FullscreenModalBody({
7007
7007
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7008
7008
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7009
7009
  return /*#__PURE__*/jsxRuntime.jsx(View, {
7010
+ flexGrow: 1,
7011
+ flexShrink: 1,
7010
7012
  ...props,
7011
7013
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7012
7014
  paddingTop: paddingTop,
@@ -7219,28 +7221,31 @@ function FullscreenModalHeader({
7219
7221
  }
7220
7222
 
7221
7223
  function FullscreenModal({
7224
+ children,
7222
7225
  body,
7223
7226
  header,
7224
7227
  footer,
7225
7228
  backgroundColor
7226
7229
  }) {
7227
- return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
7230
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7228
7231
  backgroundColor: backgroundColor,
7229
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7230
- children: header
7231
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7232
- flexGrow: 1,
7233
- flexShrink: 1,
7234
- justifyContent: "space-between",
7235
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7236
- bounces: false,
7237
- contentContainerStyle: {
7238
- flexGrow: 1,
7239
- position: 'relative'
7240
- },
7241
- children: body
7242
- }), footer || null]
7243
- })]
7232
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7233
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7234
+ children: header
7235
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7236
+ flexGrow: 1,
7237
+ flexShrink: 1,
7238
+ justifyContent: "space-between",
7239
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7240
+ bounces: false,
7241
+ contentContainerStyle: {
7242
+ flexGrow: 1,
7243
+ position: 'relative'
7244
+ },
7245
+ children: body
7246
+ }), footer || null]
7247
+ })]
7248
+ })
7244
7249
  });
7245
7250
  }
7246
7251
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10805,13 +10810,17 @@ function NavigationModal({
10805
10810
  body,
10806
10811
  backgroundColor,
10807
10812
  footer,
10808
- header
10813
+ header,
10814
+ children
10809
10815
  }) {
10810
10816
  const Component = useBreakpointValue({
10811
10817
  base: FullscreenModal,
10812
10818
  small: CardModal
10813
10819
  });
10814
- return /*#__PURE__*/jsxRuntime.jsx(Component, {
10820
+ return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
10821
+ backgroundColor: backgroundColor,
10822
+ children: children
10823
+ }) : /*#__PURE__*/jsxRuntime.jsx(Component, {
10815
10824
  body: body,
10816
10825
  backgroundColor: backgroundColor,
10817
10826
  footer: footer,