@ornikar/kitt-universal 25.47.0 → 25.47.1

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.
@@ -3801,6 +3801,24 @@ function Avatar({
3801
3801
  });
3802
3802
  }
3803
3803
 
3804
+ /**
3805
+ * A utility component that returns its children without any modifications.
3806
+ *
3807
+ * This component acts as an identity function for React elements - it simply returns
3808
+ * whatever children are passed to it. It can be useful in conditional rendering patterns,
3809
+ * component composition, or as a placeholder in component hierarchies.
3810
+ *
3811
+ * @returns The children as they were passed in, without any wrapper elements
3812
+ *
3813
+ * @example
3814
+ * See CardModal and FullscreenModal for usage examples.
3815
+ */
3816
+ function IdentityComponent({
3817
+ children
3818
+ }) {
3819
+ return children;
3820
+ }
3821
+
3804
3822
  function BottomSheetComp({
3805
3823
  children: Content,
3806
3824
  hasScrollView = false,
@@ -3808,9 +3826,7 @@ function BottomSheetComp({
3808
3826
  hasHandle = true,
3809
3827
  enableDynamicSizing = true,
3810
3828
  snapPoints = ['100%'],
3811
- contentContainer: ContentContainer = ({
3812
- children
3813
- }) => children,
3829
+ contentContainer: ContentContainer = IdentityComponent,
3814
3830
  ...rest
3815
3831
  }, ref) {
3816
3832
  const {
@@ -4248,9 +4264,7 @@ function CardModal({
4248
4264
  header,
4249
4265
  body,
4250
4266
  footer,
4251
- contentContainer: ContentContainer = ({
4252
- children: originalChildren
4253
- }) => originalChildren,
4267
+ contentContainer: ContentContainer = IdentityComponent,
4254
4268
  ...props
4255
4269
  }) {
4256
4270
  return /*#__PURE__*/jsx(View, {
@@ -8046,9 +8060,7 @@ function FullscreenModal({
8046
8060
  header,
8047
8061
  footer,
8048
8062
  backgroundColor,
8049
- contentContainer: ContentContainer = ({
8050
- children
8051
- }) => children
8063
+ contentContainer: ContentContainer = IdentityComponent
8052
8064
  }) {
8053
8065
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
8054
8066
  backgroundColor: backgroundColor,