@ornikar/kitt-universal 29.4.2-canary.fd1b4b35933bafb4acef3ae114e07a03477878a2.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.
@@ -4444,9 +4444,6 @@ function CardModal({
4444
4444
  maxWidth = 'kitt.cardModal.maxWidth',
4445
4445
  withoutShadow,
4446
4446
  children,
4447
- header,
4448
- body,
4449
- footer,
4450
4447
  ...props
4451
4448
  }) {
4452
4449
  return /*#__PURE__*/jsx(View, {
@@ -4459,9 +4456,7 @@ function CardModal({
4459
4456
  maxHeight: "100%",
4460
4457
  maxWidth: maxWidth,
4461
4458
  minHeight: "kitt.cardModal.minHeight",
4462
- children: children || /*#__PURE__*/jsxs(Fragment, {
4463
- children: [header || null, body || null, footer || null]
4464
- })
4459
+ children: children
4465
4460
  });
4466
4461
  }
4467
4462
  CardModal.Body = CardModalBody;
@@ -7532,30 +7527,11 @@ function FullscreenModalHeader({
7532
7527
 
7533
7528
  function FullscreenModal({
7534
7529
  children,
7535
- body,
7536
- header,
7537
- footer,
7538
7530
  backgroundColor
7539
7531
  }) {
7540
7532
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
7541
7533
  backgroundColor: backgroundColor,
7542
- children: children || /*#__PURE__*/jsxs(Fragment, {
7543
- children: [header ? /*#__PURE__*/jsx(View, {
7544
- children: header
7545
- }) : null, /*#__PURE__*/jsxs(View, {
7546
- flexGrow: 1,
7547
- flexShrink: 1,
7548
- justifyContent: "space-between",
7549
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7550
- bounces: false,
7551
- contentContainerStyle: {
7552
- flexGrow: 1,
7553
- position: 'relative'
7554
- },
7555
- children: body
7556
- }), footer || null]
7557
- })]
7558
- })
7534
+ children: children
7559
7535
  });
7560
7536
  }
7561
7537
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10922,24 +10898,16 @@ function NavigationModalBehaviour({
10922
10898
  }
10923
10899
 
10924
10900
  function NavigationModal({
10925
- body,
10926
10901
  backgroundColor,
10927
- footer,
10928
- header,
10929
10902
  children
10930
10903
  }) {
10931
10904
  const Component = useBreakpointValue({
10932
10905
  base: FullscreenModal,
10933
10906
  small: CardModal
10934
10907
  });
10935
- return children ? /*#__PURE__*/jsx(Component, {
10908
+ return /*#__PURE__*/jsx(Component, {
10936
10909
  backgroundColor: backgroundColor,
10937
10910
  children: children
10938
- }) : /*#__PURE__*/jsx(Component, {
10939
- body: body,
10940
- backgroundColor: backgroundColor,
10941
- footer: footer,
10942
- header: header
10943
10911
  });
10944
10912
  }
10945
10913
  function Header(props) {