@ornikar/kitt-universal 29.4.2-canary.5279d6411761af875ca17c9a8eefbb621d15180d.0 → 29.5.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.
@@ -4481,7 +4481,7 @@ function CardModalHeader(props) {
4481
4481
  return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4482
4482
  }
4483
4483
 
4484
- var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4484
+ var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4485
4485
  function CardModal(_ref) {
4486
4486
  var _ref$backgroundColor = _ref.backgroundColor,
4487
4487
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4489,9 +4489,6 @@ function CardModal(_ref) {
4489
4489
  maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
4490
4490
  withoutShadow = _ref.withoutShadow,
4491
4491
  children = _ref.children,
4492
- header = _ref.header,
4493
- body = _ref.body,
4494
- footer = _ref.footer,
4495
4492
  props = _objectWithoutProperties(_ref, _excluded$E);
4496
4493
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4497
4494
  overflow: "hidden",
@@ -4502,9 +4499,7 @@ function CardModal(_ref) {
4502
4499
  maxHeight: "100%",
4503
4500
  maxWidth: maxWidth,
4504
4501
  minHeight: "kitt.cardModal.minHeight",
4505
- children: children || /*#__PURE__*/jsxs(Fragment, {
4506
- children: [header || null, body || null, footer || null]
4507
- })
4502
+ children: children
4508
4503
  }));
4509
4504
  }
4510
4505
  CardModal.Body = CardModalBody;
@@ -7716,29 +7711,10 @@ function FullscreenModalHeader(_ref) {
7716
7711
 
7717
7712
  function FullscreenModal(_ref) {
7718
7713
  var children = _ref.children,
7719
- body = _ref.body,
7720
- header = _ref.header,
7721
- footer = _ref.footer,
7722
7714
  backgroundColor = _ref.backgroundColor;
7723
7715
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
7724
7716
  backgroundColor: backgroundColor,
7725
- children: children || /*#__PURE__*/jsxs(Fragment, {
7726
- children: [header ? /*#__PURE__*/jsx(View, {
7727
- children: header
7728
- }) : null, /*#__PURE__*/jsxs(View, {
7729
- flexGrow: 1,
7730
- flexShrink: 1,
7731
- justifyContent: "space-between",
7732
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7733
- bounces: false,
7734
- contentContainerStyle: {
7735
- flexGrow: 1,
7736
- position: 'relative'
7737
- },
7738
- children: body
7739
- }), footer || null]
7740
- })]
7741
- })
7717
+ children: children
7742
7718
  });
7743
7719
  }
7744
7720
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11122,23 +11098,15 @@ function NavigationModalBehaviour(_ref) {
11122
11098
  }
11123
11099
 
11124
11100
  function NavigationModal(_ref) {
11125
- var body = _ref.body,
11126
- backgroundColor = _ref.backgroundColor,
11127
- footer = _ref.footer,
11128
- header = _ref.header,
11101
+ var backgroundColor = _ref.backgroundColor,
11129
11102
  children = _ref.children;
11130
11103
  var Component = useBreakpointValue({
11131
11104
  base: FullscreenModal,
11132
11105
  small: CardModal
11133
11106
  });
11134
- return children ? /*#__PURE__*/jsx(Component, {
11107
+ return /*#__PURE__*/jsx(Component, {
11135
11108
  backgroundColor: backgroundColor,
11136
11109
  children: children
11137
- }) : /*#__PURE__*/jsx(Component, {
11138
- body: body,
11139
- backgroundColor: backgroundColor,
11140
- footer: footer,
11141
- header: header
11142
11110
  });
11143
11111
  }
11144
11112
  function Header(props) {