@ornikar/kitt-universal 25.51.1-canary.67a8515dfc0adf469c4c021e0ebe8416cd86dff7.0 → 25.51.1-canary.f795a58d6b1d7afa1371e143a23a37803d7590e5.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.
package/dist/index.es.js CHANGED
@@ -8023,7 +8023,10 @@ function FullscreenModalBody(_ref) {
8023
8023
  verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
8024
8024
  var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8025
8025
  var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8026
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8026
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8027
+ flexGrow: 1,
8028
+ flexShrink: 1
8029
+ }, props), {}, {
8027
8030
  paddingX: "kitt.fullscreenModal.horizontalPadding",
8028
8031
  paddingTop: paddingTop,
8029
8032
  paddingBottom: paddingBottom,
@@ -8311,27 +8314,30 @@ function FullscreenModalHeader(_ref) {
8311
8314
  }
8312
8315
 
8313
8316
  function FullscreenModal(_ref) {
8314
- var body = _ref.body,
8317
+ var children = _ref.children,
8318
+ body = _ref.body,
8315
8319
  header = _ref.header,
8316
8320
  footer = _ref.footer,
8317
8321
  backgroundColor = _ref.backgroundColor;
8318
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8322
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8319
8323
  backgroundColor: backgroundColor,
8320
- children: [header ? /*#__PURE__*/jsx(View, {
8321
- children: header
8322
- }) : null, /*#__PURE__*/jsxs(View, {
8323
- flexGrow: 1,
8324
- flexShrink: 1,
8325
- justifyContent: "space-between",
8326
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8327
- bounces: false,
8328
- contentContainerStyle: {
8329
- flexGrow: 1,
8330
- position: 'relative'
8331
- },
8332
- children: body
8333
- }), footer || null]
8334
- })]
8324
+ children: children || /*#__PURE__*/jsxs(Fragment, {
8325
+ children: [header ? /*#__PURE__*/jsx(View, {
8326
+ children: header
8327
+ }) : null, /*#__PURE__*/jsxs(View, {
8328
+ flexGrow: 1,
8329
+ flexShrink: 1,
8330
+ justifyContent: "space-between",
8331
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8332
+ bounces: false,
8333
+ contentContainerStyle: {
8334
+ flexGrow: 1,
8335
+ position: 'relative'
8336
+ },
8337
+ children: body
8338
+ }), footer || null]
8339
+ })]
8340
+ })
8335
8341
  });
8336
8342
  }
8337
8343
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11765,12 +11771,16 @@ function NavigationModal(_ref) {
11765
11771
  var body = _ref.body,
11766
11772
  backgroundColor = _ref.backgroundColor,
11767
11773
  footer = _ref.footer,
11768
- header = _ref.header;
11774
+ header = _ref.header,
11775
+ children = _ref.children;
11769
11776
  var Component = useBreakpointValue({
11770
11777
  base: FullscreenModal,
11771
11778
  small: CardModal
11772
11779
  });
11773
- return /*#__PURE__*/jsx(Component, {
11780
+ return children ? /*#__PURE__*/jsx(Component, {
11781
+ backgroundColor: backgroundColor,
11782
+ children: children
11783
+ }) : /*#__PURE__*/jsx(Component, {
11774
11784
  body: body,
11775
11785
  backgroundColor: backgroundColor,
11776
11786
  footer: footer,