@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.
package/dist/index.es.js CHANGED
@@ -8027,7 +8027,10 @@ function FullscreenModalBody(_ref) {
8027
8027
  verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
8028
8028
  var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8029
8029
  var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8030
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8030
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8031
+ flexGrow: 1,
8032
+ flexShrink: 1
8033
+ }, props), {}, {
8031
8034
  paddingX: "kitt.fullscreenModal.horizontalPadding",
8032
8035
  paddingTop: paddingTop,
8033
8036
  paddingBottom: paddingBottom,
@@ -8315,27 +8318,30 @@ function FullscreenModalHeader(_ref) {
8315
8318
  }
8316
8319
 
8317
8320
  function FullscreenModal(_ref) {
8318
- var body = _ref.body,
8321
+ var children = _ref.children,
8322
+ body = _ref.body,
8319
8323
  header = _ref.header,
8320
8324
  footer = _ref.footer,
8321
8325
  backgroundColor = _ref.backgroundColor;
8322
- return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8326
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
8323
8327
  backgroundColor: backgroundColor,
8324
- children: [header ? /*#__PURE__*/jsx(View, {
8325
- children: header
8326
- }) : null, /*#__PURE__*/jsxs(View, {
8327
- flexGrow: 1,
8328
- flexShrink: 1,
8329
- justifyContent: "space-between",
8330
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8331
- bounces: false,
8332
- contentContainerStyle: {
8333
- flexGrow: 1,
8334
- position: 'relative'
8335
- },
8336
- children: body
8337
- }), footer || null]
8338
- })]
8328
+ children: children || /*#__PURE__*/jsxs(Fragment, {
8329
+ children: [header ? /*#__PURE__*/jsx(View, {
8330
+ children: header
8331
+ }) : null, /*#__PURE__*/jsxs(View, {
8332
+ flexGrow: 1,
8333
+ flexShrink: 1,
8334
+ justifyContent: "space-between",
8335
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8336
+ bounces: false,
8337
+ contentContainerStyle: {
8338
+ flexGrow: 1,
8339
+ position: 'relative'
8340
+ },
8341
+ children: body
8342
+ }), footer || null]
8343
+ })]
8344
+ })
8339
8345
  });
8340
8346
  }
8341
8347
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11800,12 +11806,16 @@ function NavigationModal(_ref) {
11800
11806
  var body = _ref.body,
11801
11807
  backgroundColor = _ref.backgroundColor,
11802
11808
  footer = _ref.footer,
11803
- header = _ref.header;
11809
+ header = _ref.header,
11810
+ children = _ref.children;
11804
11811
  var Component = useBreakpointValue({
11805
11812
  base: FullscreenModal,
11806
11813
  small: CardModal
11807
11814
  });
11808
- return /*#__PURE__*/jsx(Component, {
11815
+ return children ? /*#__PURE__*/jsx(Component, {
11816
+ backgroundColor: backgroundColor,
11817
+ children: children
11818
+ }) : /*#__PURE__*/jsx(Component, {
11809
11819
  body: body,
11810
11820
  backgroundColor: backgroundColor,
11811
11821
  footer: footer,