@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.
@@ -4049,7 +4049,6 @@ function BottomSheetComp({
4049
4049
  }
4050
4050
  function BottomSheetContainerView(props) {
4051
4051
  return /*#__PURE__*/jsx(View$1, {
4052
- padding: "kitt.bottomSheet.container.padding",
4053
4052
  ...props
4054
4053
  });
4055
4054
  }
@@ -4556,9 +4555,6 @@ function CardModal({
4556
4555
  maxWidth = 'kitt.cardModal.maxWidth',
4557
4556
  withoutShadow,
4558
4557
  children,
4559
- header,
4560
- body,
4561
- footer,
4562
4558
  ...props
4563
4559
  }) {
4564
4560
  return /*#__PURE__*/jsx(View, {
@@ -4571,9 +4567,7 @@ function CardModal({
4571
4567
  maxHeight: "100%",
4572
4568
  maxWidth: maxWidth,
4573
4569
  minHeight: "kitt.cardModal.minHeight",
4574
- children: children || /*#__PURE__*/jsxs(Fragment, {
4575
- children: [header || null, body || null, footer || null]
4576
- })
4570
+ children: children
4577
4571
  });
4578
4572
  }
4579
4573
  CardModal.Body = CardModalBody;
@@ -8353,30 +8347,11 @@ function FullscreenModalHeader({
8353
8347
 
8354
8348
  function FullscreenModal({
8355
8349
  children,
8356
- body,
8357
- header,
8358
- footer,
8359
8350
  backgroundColor
8360
8351
  }) {
8361
8352
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
8362
8353
  backgroundColor: backgroundColor,
8363
- children: children || /*#__PURE__*/jsxs(Fragment, {
8364
- children: [header ? /*#__PURE__*/jsx(View, {
8365
- children: header
8366
- }) : null, /*#__PURE__*/jsxs(View, {
8367
- flexGrow: 1,
8368
- flexShrink: 1,
8369
- justifyContent: "space-between",
8370
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8371
- bounces: false,
8372
- contentContainerStyle: {
8373
- flexGrow: 1,
8374
- position: 'relative'
8375
- },
8376
- children: body
8377
- }), footer || null]
8378
- })]
8379
- })
8354
+ children: children
8380
8355
  });
8381
8356
  }
8382
8357
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11652,12 +11627,14 @@ function NavigationBottomSheetBody(props) {
11652
11627
  flexGrow: 1,
11653
11628
  flexShrink: 1,
11654
11629
  marginBottom: "kitt.4",
11630
+ paddingX: "kitt.bottomSheet.container.padding",
11655
11631
  ...props
11656
11632
  });
11657
11633
  }
11658
11634
  function NavigationBottomSheetFooter(props) {
11659
11635
  return /*#__PURE__*/jsx(HStack, {
11660
11636
  width: "100%",
11637
+ paddingX: "kitt.bottomSheet.container.padding",
11661
11638
  ...props
11662
11639
  });
11663
11640
  }
@@ -11716,24 +11693,16 @@ function NavigationModalBehaviour({
11716
11693
  }
11717
11694
 
11718
11695
  function NavigationModal({
11719
- body,
11720
11696
  backgroundColor,
11721
- footer,
11722
- header,
11723
11697
  children
11724
11698
  }) {
11725
11699
  const Component = useBreakpointValue({
11726
11700
  base: FullscreenModal,
11727
11701
  small: CardModal
11728
11702
  });
11729
- return children ? /*#__PURE__*/jsx(Component, {
11703
+ return /*#__PURE__*/jsx(Component, {
11730
11704
  backgroundColor: backgroundColor,
11731
11705
  children: children
11732
- }) : /*#__PURE__*/jsx(Component, {
11733
- body: body,
11734
- backgroundColor: backgroundColor,
11735
- footer: footer,
11736
- header: header
11737
11706
  });
11738
11707
  }
11739
11708
  function Header(props) {