@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.
@@ -3818,6 +3818,24 @@ function useStaticBottomSheet(Content) {
3818
3818
  };
3819
3819
  }
3820
3820
 
3821
+ /**
3822
+ * A utility component that returns its children without any modifications.
3823
+ *
3824
+ * This component acts as an identity function for React elements - it simply returns
3825
+ * whatever children are passed to it. It can be useful in conditional rendering patterns,
3826
+ * component composition, or as a placeholder in component hierarchies.
3827
+ *
3828
+ * @returns The children as they were passed in, without any wrapper elements
3829
+ *
3830
+ * @example
3831
+ * See CardModal and FullscreenModal for usage examples.
3832
+ */
3833
+ function IdentityComponent({
3834
+ children
3835
+ }) {
3836
+ return children;
3837
+ }
3838
+
3821
3839
  const overflowHidden = "kitt-u_overflowHidden_otm3u3";
3822
3840
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
3823
3841
  react.useEffect(() => {
@@ -4129,9 +4147,7 @@ function CardModal({
4129
4147
  header,
4130
4148
  body,
4131
4149
  footer,
4132
- contentContainer: ContentContainer = ({
4133
- children: originalChildren
4134
- }) => originalChildren,
4150
+ contentContainer: ContentContainer = IdentityComponent,
4135
4151
  ...props
4136
4152
  }) {
4137
4153
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -7222,9 +7238,7 @@ function FullscreenModal({
7222
7238
  header,
7223
7239
  footer,
7224
7240
  backgroundColor,
7225
- contentContainer: ContentContainer = ({
7226
- children
7227
- }) => children
7241
+ contentContainer: ContentContainer = IdentityComponent
7228
7242
  }) {
7229
7243
  return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7230
7244
  backgroundColor: backgroundColor,