@ornikar/kitt-universal 25.46.0 → 25.46.1-canary.9950f4eb84cbfcf1d45de4e6c9ad226210c5404f.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.
@@ -3831,6 +3831,9 @@ function BottomSheetComp({
3831
3831
  hasHandle = true,
3832
3832
  enableDynamicSizing = true,
3833
3833
  snapPoints = ['100%'],
3834
+ contentContainer: ContentContainer = ({
3835
+ children
3836
+ }) => children,
3834
3837
  ...rest
3835
3838
  }, ref) {
3836
3839
  const {
@@ -3861,9 +3864,11 @@ function BottomSheetComp({
3861
3864
  ...rest,
3862
3865
  topInset: top,
3863
3866
  children: props => /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
3864
- children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
3865
- ...props?.data
3866
- }) : Content
3867
+ children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
3868
+ children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
3869
+ ...props?.data
3870
+ }) : Content
3871
+ })
3867
3872
  })
3868
3873
  });
3869
3874
  }
@@ -4266,6 +4271,9 @@ function CardModal({
4266
4271
  header,
4267
4272
  body,
4268
4273
  footer,
4274
+ contentContainer: ContentContainer = ({
4275
+ children: originalChildren
4276
+ }) => originalChildren,
4269
4277
  ...props
4270
4278
  }) {
4271
4279
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4278,8 +4286,10 @@ function CardModal({
4278
4286
  maxHeight: "100%",
4279
4287
  maxWidth: maxWidth,
4280
4288
  minHeight: "kitt.cardModal.minHeight",
4281
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4282
- children: [header || null, body || null, footer || null]
4289
+ children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
4290
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4291
+ children: [header || null, body || null, footer || null]
4292
+ })
4283
4293
  })
4284
4294
  });
4285
4295
  }
@@ -8058,25 +8068,30 @@ function FullscreenModal({
8058
8068
  body,
8059
8069
  header,
8060
8070
  footer,
8061
- backgroundColor
8071
+ backgroundColor,
8072
+ contentContainer: ContentContainer = ({
8073
+ children
8074
+ }) => children
8062
8075
  }) {
8063
- return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
8076
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
8064
8077
  backgroundColor: backgroundColor,
8065
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8066
- children: header
8067
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8068
- flexGrow: 1,
8069
- flexShrink: 1,
8070
- justifyContent: "space-between",
8071
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8072
- bounces: false,
8073
- contentContainerStyle: {
8074
- flexGrow: 1,
8075
- position: 'relative'
8076
- },
8077
- children: body
8078
- }), footer || null]
8079
- })]
8078
+ children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
8079
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8080
+ children: header
8081
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8082
+ flexGrow: 1,
8083
+ flexShrink: 1,
8084
+ justifyContent: "space-between",
8085
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8086
+ bounces: false,
8087
+ contentContainerStyle: {
8088
+ flexGrow: 1,
8089
+ position: 'relative'
8090
+ },
8091
+ children: body
8092
+ }), footer || null]
8093
+ })]
8094
+ })
8080
8095
  });
8081
8096
  }
8082
8097
  FullscreenModal.Header = FullscreenModalHeader;