@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.
package/dist/index.es.js CHANGED
@@ -3841,6 +3841,23 @@ function Avatar(_ref2) {
3841
3841
  });
3842
3842
  }
3843
3843
 
3844
+ /**
3845
+ * A utility component that returns its children without any modifications.
3846
+ *
3847
+ * This component acts as an identity function for React elements - it simply returns
3848
+ * whatever children are passed to it. It can be useful in conditional rendering patterns,
3849
+ * component composition, or as a placeholder in component hierarchies.
3850
+ *
3851
+ * @returns The children as they were passed in, without any wrapper elements
3852
+ *
3853
+ * @example
3854
+ * See CardModal and FullscreenModal for usage examples.
3855
+ */
3856
+ function IdentityComponent(_ref) {
3857
+ var children = _ref.children;
3858
+ return children;
3859
+ }
3860
+
3844
3861
  var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
3845
3862
  function BottomSheetComp(_ref, ref) {
3846
3863
  var Content = _ref.children,
@@ -3855,10 +3872,7 @@ function BottomSheetComp(_ref, ref) {
3855
3872
  _ref$snapPoints = _ref.snapPoints,
3856
3873
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
3857
3874
  _ref$contentContainer = _ref.contentContainer,
3858
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
3859
- var children = _ref2.children;
3860
- return children;
3861
- } : _ref$contentContainer,
3875
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
3862
3876
  rest = _objectWithoutProperties(_ref, _excluded$M);
3863
3877
  var _useSafeAreaInsets = useSafeAreaInsets(),
3864
3878
  top = _useSafeAreaInsets.top;
@@ -4310,10 +4324,7 @@ function CardModal(_ref) {
4310
4324
  body = _ref.body,
4311
4325
  footer = _ref.footer,
4312
4326
  _ref$contentContainer = _ref.contentContainer,
4313
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
4314
- var originalChildren = _ref2.children;
4315
- return originalChildren;
4316
- } : _ref$contentContainer,
4327
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
4317
4328
  props = _objectWithoutProperties(_ref, _excluded$H);
4318
4329
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4319
4330
  overflow: "hidden",
@@ -8327,10 +8338,7 @@ function FullscreenModal(_ref) {
8327
8338
  footer = _ref.footer,
8328
8339
  backgroundColor = _ref.backgroundColor,
8329
8340
  _ref$contentContainer = _ref.contentContainer,
8330
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
8331
- var children = _ref2.children;
8332
- return children;
8333
- } : _ref$contentContainer;
8341
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
8334
8342
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
8335
8343
  backgroundColor: backgroundColor,
8336
8344
  children: /*#__PURE__*/jsxs(ContentContainer, {