@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.
@@ -3811,6 +3811,24 @@ function useStaticBottomSheet(Content) {
3811
3811
  };
3812
3812
  }
3813
3813
 
3814
+ /**
3815
+ * A utility component that returns its children without any modifications.
3816
+ *
3817
+ * This component acts as an identity function for React elements - it simply returns
3818
+ * whatever children are passed to it. It can be useful in conditional rendering patterns,
3819
+ * component composition, or as a placeholder in component hierarchies.
3820
+ *
3821
+ * @returns The children as they were passed in, without any wrapper elements
3822
+ *
3823
+ * @example
3824
+ * See CardModal and FullscreenModal for usage examples.
3825
+ */
3826
+ function IdentityComponent({
3827
+ children
3828
+ }) {
3829
+ return children;
3830
+ }
3831
+
3814
3832
  const overflowHidden = "kitt-u_overflowHidden_otm3u3";
3815
3833
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
3816
3834
  useEffect(() => {
@@ -4122,9 +4140,7 @@ function CardModal({
4122
4140
  header,
4123
4141
  body,
4124
4142
  footer,
4125
- contentContainer: ContentContainer = ({
4126
- children: originalChildren
4127
- }) => originalChildren,
4143
+ contentContainer: ContentContainer = IdentityComponent,
4128
4144
  ...props
4129
4145
  }) {
4130
4146
  return /*#__PURE__*/jsx(View, {
@@ -7215,9 +7231,7 @@ function FullscreenModal({
7215
7231
  header,
7216
7232
  footer,
7217
7233
  backgroundColor,
7218
- contentContainer: ContentContainer = ({
7219
- children
7220
- }) => children
7234
+ contentContainer: ContentContainer = IdentityComponent
7221
7235
  }) {
7222
7236
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
7223
7237
  backgroundColor: backgroundColor,