@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.
@@ -3808,6 +3808,9 @@ function BottomSheetComp({
3808
3808
  hasHandle = true,
3809
3809
  enableDynamicSizing = true,
3810
3810
  snapPoints = ['100%'],
3811
+ contentContainer: ContentContainer = ({
3812
+ children
3813
+ }) => children,
3811
3814
  ...rest
3812
3815
  }, ref) {
3813
3816
  const {
@@ -3838,9 +3841,11 @@ function BottomSheetComp({
3838
3841
  ...rest,
3839
3842
  topInset: top,
3840
3843
  children: props => /*#__PURE__*/jsx(Wrapper, {
3841
- children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, {
3842
- ...props?.data
3843
- }) : Content
3844
+ children: /*#__PURE__*/jsx(ContentContainer, {
3845
+ children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, {
3846
+ ...props?.data
3847
+ }) : Content
3848
+ })
3844
3849
  })
3845
3850
  });
3846
3851
  }
@@ -4243,6 +4248,9 @@ function CardModal({
4243
4248
  header,
4244
4249
  body,
4245
4250
  footer,
4251
+ contentContainer: ContentContainer = ({
4252
+ children: originalChildren
4253
+ }) => originalChildren,
4246
4254
  ...props
4247
4255
  }) {
4248
4256
  return /*#__PURE__*/jsx(View, {
@@ -4255,8 +4263,10 @@ function CardModal({
4255
4263
  maxHeight: "100%",
4256
4264
  maxWidth: maxWidth,
4257
4265
  minHeight: "kitt.cardModal.minHeight",
4258
- children: children || /*#__PURE__*/jsxs(Fragment, {
4259
- children: [header || null, body || null, footer || null]
4266
+ children: /*#__PURE__*/jsx(ContentContainer, {
4267
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4268
+ children: [header || null, body || null, footer || null]
4269
+ })
4260
4270
  })
4261
4271
  });
4262
4272
  }
@@ -8035,25 +8045,30 @@ function FullscreenModal({
8035
8045
  body,
8036
8046
  header,
8037
8047
  footer,
8038
- backgroundColor
8048
+ backgroundColor,
8049
+ contentContainer: ContentContainer = ({
8050
+ children
8051
+ }) => children
8039
8052
  }) {
8040
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8053
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8041
8054
  backgroundColor: backgroundColor,
8042
- children: [header ? /*#__PURE__*/jsx(View, {
8043
- children: header
8044
- }) : null, /*#__PURE__*/jsxs(View, {
8045
- flexGrow: 1,
8046
- flexShrink: 1,
8047
- justifyContent: "space-between",
8048
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8049
- bounces: false,
8050
- contentContainerStyle: {
8051
- flexGrow: 1,
8052
- position: 'relative'
8053
- },
8054
- children: body
8055
- }), footer || null]
8056
- })]
8055
+ children: /*#__PURE__*/jsxs(ContentContainer, {
8056
+ children: [header ? /*#__PURE__*/jsx(View, {
8057
+ children: header
8058
+ }) : null, /*#__PURE__*/jsxs(View, {
8059
+ flexGrow: 1,
8060
+ flexShrink: 1,
8061
+ justifyContent: "space-between",
8062
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8063
+ bounces: false,
8064
+ contentContainerStyle: {
8065
+ flexGrow: 1,
8066
+ position: 'relative'
8067
+ },
8068
+ children: body
8069
+ }), footer || null]
8070
+ })]
8071
+ })
8057
8072
  });
8058
8073
  }
8059
8074
  FullscreenModal.Header = FullscreenModalHeader;