@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.
@@ -4129,6 +4129,9 @@ function CardModal({
4129
4129
  header,
4130
4130
  body,
4131
4131
  footer,
4132
+ contentContainer: ContentContainer = ({
4133
+ children: originalChildren
4134
+ }) => originalChildren,
4132
4135
  ...props
4133
4136
  }) {
4134
4137
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4141,8 +4144,10 @@ function CardModal({
4141
4144
  maxHeight: "100%",
4142
4145
  maxWidth: maxWidth,
4143
4146
  minHeight: "kitt.cardModal.minHeight",
4144
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4145
- children: [header || null, body || null, footer || null]
4147
+ children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
4148
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4149
+ children: [header || null, body || null, footer || null]
4150
+ })
4146
4151
  })
4147
4152
  });
4148
4153
  }
@@ -7216,25 +7221,30 @@ function FullscreenModal({
7216
7221
  body,
7217
7222
  header,
7218
7223
  footer,
7219
- backgroundColor
7224
+ backgroundColor,
7225
+ contentContainer: ContentContainer = ({
7226
+ children
7227
+ }) => children
7220
7228
  }) {
7221
- return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
7229
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7222
7230
  backgroundColor: backgroundColor,
7223
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7224
- children: header
7225
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7226
- flexGrow: 1,
7227
- flexShrink: 1,
7228
- justifyContent: "space-between",
7229
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7230
- bounces: false,
7231
- contentContainerStyle: {
7232
- flexGrow: 1,
7233
- position: 'relative'
7234
- },
7235
- children: body
7236
- }), footer || null]
7237
- })]
7231
+ children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
7232
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7233
+ children: header
7234
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7235
+ flexGrow: 1,
7236
+ flexShrink: 1,
7237
+ justifyContent: "space-between",
7238
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7239
+ bounces: false,
7240
+ contentContainerStyle: {
7241
+ flexGrow: 1,
7242
+ position: 'relative'
7243
+ },
7244
+ children: body
7245
+ }), footer || null]
7246
+ })]
7247
+ })
7238
7248
  });
7239
7249
  }
7240
7250
  FullscreenModal.Header = FullscreenModalHeader;