@ornikar/kitt-universal 25.53.0 → 25.54.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.
@@ -7187,7 +7187,10 @@ function FullscreenModalBody(_ref) {
7187
7187
  verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
7188
7188
  var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7189
7189
  var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7190
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7190
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7191
+ flexGrow: 1,
7192
+ flexShrink: 1
7193
+ }, props), {}, {
7191
7194
  paddingX: "kitt.fullscreenModal.horizontalPadding",
7192
7195
  paddingTop: paddingTop,
7193
7196
  paddingBottom: paddingBottom,
@@ -7400,27 +7403,30 @@ function FullscreenModalHeader(_ref) {
7400
7403
  }
7401
7404
 
7402
7405
  function FullscreenModal(_ref) {
7403
- var body = _ref.body,
7406
+ var children = _ref.children,
7407
+ body = _ref.body,
7404
7408
  header = _ref.header,
7405
7409
  footer = _ref.footer,
7406
7410
  backgroundColor = _ref.backgroundColor;
7407
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7411
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7408
7412
  backgroundColor: backgroundColor,
7409
- children: [header ? /*#__PURE__*/jsx(View, {
7410
- children: header
7411
- }) : null, /*#__PURE__*/jsxs(View, {
7412
- flexGrow: 1,
7413
- flexShrink: 1,
7414
- justifyContent: "space-between",
7415
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7416
- bounces: false,
7417
- contentContainerStyle: {
7418
- flexGrow: 1,
7419
- position: 'relative'
7420
- },
7421
- children: body
7422
- }), footer || null]
7423
- })]
7413
+ children: children || /*#__PURE__*/jsxs(Fragment, {
7414
+ children: [header ? /*#__PURE__*/jsx(View, {
7415
+ children: header
7416
+ }) : null, /*#__PURE__*/jsxs(View, {
7417
+ flexGrow: 1,
7418
+ flexShrink: 1,
7419
+ justifyContent: "space-between",
7420
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7421
+ bounces: false,
7422
+ contentContainerStyle: {
7423
+ flexGrow: 1,
7424
+ position: 'relative'
7425
+ },
7426
+ children: body
7427
+ }), footer || null]
7428
+ })]
7429
+ })
7424
7430
  });
7425
7431
  }
7426
7432
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10992,12 +10998,16 @@ function NavigationModal(_ref) {
10992
10998
  var body = _ref.body,
10993
10999
  backgroundColor = _ref.backgroundColor,
10994
11000
  footer = _ref.footer,
10995
- header = _ref.header;
11001
+ header = _ref.header,
11002
+ children = _ref.children;
10996
11003
  var Component = useBreakpointValue({
10997
11004
  base: FullscreenModal,
10998
11005
  small: CardModal
10999
11006
  });
11000
- return /*#__PURE__*/jsx(Component, {
11007
+ return children ? /*#__PURE__*/jsx(Component, {
11008
+ backgroundColor: backgroundColor,
11009
+ children: children
11010
+ }) : /*#__PURE__*/jsx(Component, {
11001
11011
  body: body,
11002
11012
  backgroundColor: backgroundColor,
11003
11013
  footer: footer,