@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.
@@ -7000,6 +7000,8 @@ function FullscreenModalBody({
7000
7000
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7001
7001
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7002
7002
  return /*#__PURE__*/jsx(View, {
7003
+ flexGrow: 1,
7004
+ flexShrink: 1,
7003
7005
  ...props,
7004
7006
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7005
7007
  paddingTop: paddingTop,
@@ -7212,28 +7214,31 @@ function FullscreenModalHeader({
7212
7214
  }
7213
7215
 
7214
7216
  function FullscreenModal({
7217
+ children,
7215
7218
  body,
7216
7219
  header,
7217
7220
  footer,
7218
7221
  backgroundColor
7219
7222
  }) {
7220
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7223
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7221
7224
  backgroundColor: backgroundColor,
7222
- children: [header ? /*#__PURE__*/jsx(View, {
7223
- children: header
7224
- }) : null, /*#__PURE__*/jsxs(View, {
7225
- flexGrow: 1,
7226
- flexShrink: 1,
7227
- justifyContent: "space-between",
7228
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7229
- bounces: false,
7230
- contentContainerStyle: {
7231
- flexGrow: 1,
7232
- position: 'relative'
7233
- },
7234
- children: body
7235
- }), footer || null]
7236
- })]
7225
+ children: children || /*#__PURE__*/jsxs(Fragment, {
7226
+ children: [header ? /*#__PURE__*/jsx(View, {
7227
+ children: header
7228
+ }) : null, /*#__PURE__*/jsxs(View, {
7229
+ flexGrow: 1,
7230
+ flexShrink: 1,
7231
+ justifyContent: "space-between",
7232
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7233
+ bounces: false,
7234
+ contentContainerStyle: {
7235
+ flexGrow: 1,
7236
+ position: 'relative'
7237
+ },
7238
+ children: body
7239
+ }), footer || null]
7240
+ })]
7241
+ })
7237
7242
  });
7238
7243
  }
7239
7244
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10798,13 +10803,17 @@ function NavigationModal({
10798
10803
  body,
10799
10804
  backgroundColor,
10800
10805
  footer,
10801
- header
10806
+ header,
10807
+ children
10802
10808
  }) {
10803
10809
  const Component = useBreakpointValue({
10804
10810
  base: FullscreenModal,
10805
10811
  small: CardModal
10806
10812
  });
10807
- return /*#__PURE__*/jsx(Component, {
10813
+ return children ? /*#__PURE__*/jsx(Component, {
10814
+ backgroundColor: backgroundColor,
10815
+ children: children
10816
+ }) : /*#__PURE__*/jsx(Component, {
10808
10817
  body: body,
10809
10818
  backgroundColor: backgroundColor,
10810
10819
  footer: footer,