@ornikar/kitt-universal 25.50.0 → 25.51.1-canary.d67b65db8008c1a8549aa9a6ef5ca833bbea3980.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.
@@ -4027,7 +4027,10 @@ function CardModalBody({
4027
4027
  base: 'kitt.4',
4028
4028
  medium: 'kitt.6'
4029
4029
  },
4030
- paddingY = 'kitt.4',
4030
+ paddingY = {
4031
+ base: 'kitt.4',
4032
+ medium: 'kitt.6'
4033
+ },
4031
4034
  ...props
4032
4035
  }) {
4033
4036
  return /*#__PURE__*/jsx(ScrollView, {
@@ -6994,6 +6997,8 @@ function FullscreenModalBody({
6994
6997
  const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
6995
6998
  const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
6996
6999
  return /*#__PURE__*/jsx(View, {
7000
+ flexGrow: 1,
7001
+ flexShrink: 1,
6997
7002
  ...props,
6998
7003
  paddingX: "kitt.fullscreenModal.horizontalPadding",
6999
7004
  paddingTop: paddingTop,
@@ -7206,28 +7211,31 @@ function FullscreenModalHeader({
7206
7211
  }
7207
7212
 
7208
7213
  function FullscreenModal({
7214
+ children,
7209
7215
  body,
7210
7216
  header,
7211
7217
  footer,
7212
7218
  backgroundColor
7213
7219
  }) {
7214
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7220
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7215
7221
  backgroundColor: backgroundColor,
7216
- children: [header ? /*#__PURE__*/jsx(View, {
7217
- children: header
7218
- }) : null, /*#__PURE__*/jsxs(View, {
7219
- flexGrow: 1,
7220
- flexShrink: 1,
7221
- justifyContent: "space-between",
7222
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7223
- bounces: false,
7224
- contentContainerStyle: {
7225
- flexGrow: 1,
7226
- position: 'relative'
7227
- },
7228
- children: body
7229
- }), footer || null]
7230
- })]
7222
+ children: children || /*#__PURE__*/jsxs(Fragment, {
7223
+ children: [header ? /*#__PURE__*/jsx(View, {
7224
+ children: header
7225
+ }) : null, /*#__PURE__*/jsxs(View, {
7226
+ flexGrow: 1,
7227
+ flexShrink: 1,
7228
+ justifyContent: "space-between",
7229
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7230
+ bounces: false,
7231
+ contentContainerStyle: {
7232
+ flexGrow: 1,
7233
+ position: 'relative'
7234
+ },
7235
+ children: body
7236
+ }), footer || null]
7237
+ })]
7238
+ })
7231
7239
  });
7232
7240
  }
7233
7241
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10761,13 +10769,17 @@ function NavigationModal({
10761
10769
  body,
10762
10770
  backgroundColor,
10763
10771
  footer,
10764
- header
10772
+ header,
10773
+ children
10765
10774
  }) {
10766
10775
  const Component = useBreakpointValue({
10767
10776
  base: FullscreenModal,
10768
10777
  small: CardModal
10769
10778
  });
10770
- return /*#__PURE__*/jsx(Component, {
10779
+ return children ? /*#__PURE__*/jsx(Component, {
10780
+ backgroundColor: backgroundColor,
10781
+ children: children
10782
+ }) : /*#__PURE__*/jsx(Component, {
10771
10783
  body: body,
10772
10784
  backgroundColor: backgroundColor,
10773
10785
  footer: footer,