@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.
@@ -4154,7 +4154,7 @@ function CardModalHeader(_ref) {
4154
4154
  }));
4155
4155
  }
4156
4156
 
4157
- var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4157
+ var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
4158
4158
  function CardModal(_ref) {
4159
4159
  var _ref$backgroundColor = _ref.backgroundColor,
4160
4160
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4165,6 +4165,11 @@ function CardModal(_ref) {
4165
4165
  header = _ref.header,
4166
4166
  body = _ref.body,
4167
4167
  footer = _ref.footer,
4168
+ _ref$contentContainer = _ref.contentContainer,
4169
+ ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
4170
+ var originalChildren = _ref2.children;
4171
+ return originalChildren;
4172
+ } : _ref$contentContainer,
4168
4173
  props = _objectWithoutProperties(_ref, _excluded$G);
4169
4174
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4170
4175
  overflow: "hidden",
@@ -4175,8 +4180,10 @@ function CardModal(_ref) {
4175
4180
  maxHeight: "100%",
4176
4181
  maxWidth: maxWidth,
4177
4182
  minHeight: "kitt.cardModal.minHeight",
4178
- children: children || /*#__PURE__*/jsxs(Fragment, {
4179
- children: [header || null, body || null, footer || null]
4183
+ children: /*#__PURE__*/jsx(ContentContainer, {
4184
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4185
+ children: [header || null, body || null, footer || null]
4186
+ })
4180
4187
  })
4181
4188
  }));
4182
4189
  }
@@ -7396,24 +7403,31 @@ function FullscreenModal(_ref) {
7396
7403
  var body = _ref.body,
7397
7404
  header = _ref.header,
7398
7405
  footer = _ref.footer,
7399
- backgroundColor = _ref.backgroundColor;
7400
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7406
+ backgroundColor = _ref.backgroundColor,
7407
+ _ref$contentContainer = _ref.contentContainer,
7408
+ ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
7409
+ var children = _ref2.children;
7410
+ return children;
7411
+ } : _ref$contentContainer;
7412
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7401
7413
  backgroundColor: backgroundColor,
7402
- children: [header ? /*#__PURE__*/jsx(View, {
7403
- children: header
7404
- }) : null, /*#__PURE__*/jsxs(View, {
7405
- flexGrow: 1,
7406
- flexShrink: 1,
7407
- justifyContent: "space-between",
7408
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7409
- bounces: false,
7410
- contentContainerStyle: {
7411
- flexGrow: 1,
7412
- position: 'relative'
7413
- },
7414
- children: body
7415
- }), footer || null]
7416
- })]
7414
+ children: /*#__PURE__*/jsxs(ContentContainer, {
7415
+ children: [header ? /*#__PURE__*/jsx(View, {
7416
+ children: header
7417
+ }) : null, /*#__PURE__*/jsxs(View, {
7418
+ flexGrow: 1,
7419
+ flexShrink: 1,
7420
+ justifyContent: "space-between",
7421
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7422
+ bounces: false,
7423
+ contentContainerStyle: {
7424
+ flexGrow: 1,
7425
+ position: 'relative'
7426
+ },
7427
+ children: body
7428
+ }), footer || null]
7429
+ })]
7430
+ })
7417
7431
  });
7418
7432
  }
7419
7433
  FullscreenModal.Header = FullscreenModalHeader;