@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.
@@ -4122,6 +4122,9 @@ function CardModal({
4122
4122
  header,
4123
4123
  body,
4124
4124
  footer,
4125
+ contentContainer: ContentContainer = ({
4126
+ children: originalChildren
4127
+ }) => originalChildren,
4125
4128
  ...props
4126
4129
  }) {
4127
4130
  return /*#__PURE__*/jsx(View, {
@@ -4134,8 +4137,10 @@ function CardModal({
4134
4137
  maxHeight: "100%",
4135
4138
  maxWidth: maxWidth,
4136
4139
  minHeight: "kitt.cardModal.minHeight",
4137
- children: children || /*#__PURE__*/jsxs(Fragment, {
4138
- children: [header || null, body || null, footer || null]
4140
+ children: /*#__PURE__*/jsx(ContentContainer, {
4141
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4142
+ children: [header || null, body || null, footer || null]
4143
+ })
4139
4144
  })
4140
4145
  });
4141
4146
  }
@@ -7209,25 +7214,30 @@ function FullscreenModal({
7209
7214
  body,
7210
7215
  header,
7211
7216
  footer,
7212
- backgroundColor
7217
+ backgroundColor,
7218
+ contentContainer: ContentContainer = ({
7219
+ children
7220
+ }) => children
7213
7221
  }) {
7214
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7222
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7215
7223
  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
- })]
7224
+ children: /*#__PURE__*/jsxs(ContentContainer, {
7225
+ children: [header ? /*#__PURE__*/jsx(View, {
7226
+ children: header
7227
+ }) : null, /*#__PURE__*/jsxs(View, {
7228
+ flexGrow: 1,
7229
+ flexShrink: 1,
7230
+ justifyContent: "space-between",
7231
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7232
+ bounces: false,
7233
+ contentContainerStyle: {
7234
+ flexGrow: 1,
7235
+ position: 'relative'
7236
+ },
7237
+ children: body
7238
+ }), footer || null]
7239
+ })]
7240
+ })
7231
7241
  });
7232
7242
  }
7233
7243
  FullscreenModal.Header = FullscreenModalHeader;