@ornikar/kitt-universal 25.48.0 → 25.49.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.
@@ -3824,24 +3824,6 @@ function Avatar({
3824
3824
  });
3825
3825
  }
3826
3826
 
3827
- /**
3828
- * A utility component that returns its children without any modifications.
3829
- *
3830
- * This component acts as an identity function for React elements - it simply returns
3831
- * whatever children are passed to it. It can be useful in conditional rendering patterns,
3832
- * component composition, or as a placeholder in component hierarchies.
3833
- *
3834
- * @returns The children as they were passed in, without any wrapper elements
3835
- *
3836
- * @example
3837
- * See CardModal and FullscreenModal for usage examples.
3838
- */
3839
- function IdentityComponent({
3840
- children
3841
- }) {
3842
- return children;
3843
- }
3844
-
3845
3827
  function BottomSheetComp({
3846
3828
  children: Content,
3847
3829
  hasScrollView = false,
@@ -3849,7 +3831,6 @@ function BottomSheetComp({
3849
3831
  hasHandle = true,
3850
3832
  enableDynamicSizing = true,
3851
3833
  snapPoints = ['100%'],
3852
- contentContainer: ContentContainer = IdentityComponent,
3853
3834
  ...rest
3854
3835
  }, ref) {
3855
3836
  const {
@@ -3880,11 +3861,9 @@ function BottomSheetComp({
3880
3861
  ...rest,
3881
3862
  topInset: top,
3882
3863
  children: props => /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
3883
- children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
3884
- children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
3885
- ...props?.data
3886
- }) : Content
3887
- })
3864
+ children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
3865
+ ...props?.data
3866
+ }) : Content
3888
3867
  })
3889
3868
  });
3890
3869
  }
@@ -4287,7 +4266,6 @@ function CardModal({
4287
4266
  header,
4288
4267
  body,
4289
4268
  footer,
4290
- contentContainer: ContentContainer = IdentityComponent,
4291
4269
  ...props
4292
4270
  }) {
4293
4271
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4300,10 +4278,8 @@ function CardModal({
4300
4278
  maxHeight: "100%",
4301
4279
  maxWidth: maxWidth,
4302
4280
  minHeight: "kitt.cardModal.minHeight",
4303
- children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
4304
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4305
- children: [header || null, body || null, footer || null]
4306
- })
4281
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4282
+ children: [header || null, body || null, footer || null]
4307
4283
  })
4308
4284
  });
4309
4285
  }
@@ -8082,28 +8058,25 @@ function FullscreenModal({
8082
8058
  body,
8083
8059
  header,
8084
8060
  footer,
8085
- backgroundColor,
8086
- contentContainer: ContentContainer = IdentityComponent
8061
+ backgroundColor
8087
8062
  }) {
8088
- return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
8063
+ return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
8089
8064
  backgroundColor: backgroundColor,
8090
- children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
8091
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8092
- children: header
8093
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8094
- flexGrow: 1,
8095
- flexShrink: 1,
8096
- justifyContent: "space-between",
8097
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8098
- bounces: false,
8099
- contentContainerStyle: {
8100
- flexGrow: 1,
8101
- position: 'relative'
8102
- },
8103
- children: body
8104
- }), footer || null]
8105
- })]
8106
- })
8065
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
8066
+ children: header
8067
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
8068
+ flexGrow: 1,
8069
+ flexShrink: 1,
8070
+ justifyContent: "space-between",
8071
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
8072
+ bounces: false,
8073
+ contentContainerStyle: {
8074
+ flexGrow: 1,
8075
+ position: 'relative'
8076
+ },
8077
+ children: body
8078
+ }), footer || null]
8079
+ })]
8107
8080
  });
8108
8081
  }
8109
8082
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11533,8 +11506,7 @@ function NavigationModal({
11533
11506
  body,
11534
11507
  backgroundColor,
11535
11508
  footer,
11536
- header,
11537
- contentContainer
11509
+ header
11538
11510
  }) {
11539
11511
  const Component = useBreakpointValue({
11540
11512
  base: FullscreenModal,
@@ -11544,8 +11516,7 @@ function NavigationModal({
11544
11516
  body: body,
11545
11517
  backgroundColor: backgroundColor,
11546
11518
  footer: footer,
11547
- header: header,
11548
- contentContainer: contentContainer
11519
+ header: header
11549
11520
  });
11550
11521
  }
11551
11522
  function Header(props) {