@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.
@@ -3853,23 +3853,6 @@ function useStaticBottomSheet(Content) {
3853
3853
  };
3854
3854
  }
3855
3855
 
3856
- /**
3857
- * A utility component that returns its children without any modifications.
3858
- *
3859
- * This component acts as an identity function for React elements - it simply returns
3860
- * whatever children are passed to it. It can be useful in conditional rendering patterns,
3861
- * component composition, or as a placeholder in component hierarchies.
3862
- *
3863
- * @returns The children as they were passed in, without any wrapper elements
3864
- *
3865
- * @example
3866
- * See CardModal and FullscreenModal for usage examples.
3867
- */
3868
- function IdentityComponent(_ref) {
3869
- var children = _ref.children;
3870
- return children;
3871
- }
3872
-
3873
3856
  var overflowHidden = "kitt-u_overflowHidden_otm3u3";
3874
3857
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
3875
3858
  useEffect(function () {
@@ -4171,7 +4154,7 @@ function CardModalHeader(_ref) {
4171
4154
  }));
4172
4155
  }
4173
4156
 
4174
- var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
4157
+ var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4175
4158
  function CardModal(_ref) {
4176
4159
  var _ref$backgroundColor = _ref.backgroundColor,
4177
4160
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4182,8 +4165,6 @@ function CardModal(_ref) {
4182
4165
  header = _ref.header,
4183
4166
  body = _ref.body,
4184
4167
  footer = _ref.footer,
4185
- _ref$contentContainer = _ref.contentContainer,
4186
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
4187
4168
  props = _objectWithoutProperties(_ref, _excluded$G);
4188
4169
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4189
4170
  overflow: "hidden",
@@ -4194,10 +4175,8 @@ function CardModal(_ref) {
4194
4175
  maxHeight: "100%",
4195
4176
  maxWidth: maxWidth,
4196
4177
  minHeight: "kitt.cardModal.minHeight",
4197
- children: /*#__PURE__*/jsx(ContentContainer, {
4198
- children: children || /*#__PURE__*/jsxs(Fragment, {
4199
- children: [header || null, body || null, footer || null]
4200
- })
4178
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4179
+ children: [header || null, body || null, footer || null]
4201
4180
  })
4202
4181
  }));
4203
4182
  }
@@ -7417,28 +7396,24 @@ function FullscreenModal(_ref) {
7417
7396
  var body = _ref.body,
7418
7397
  header = _ref.header,
7419
7398
  footer = _ref.footer,
7420
- backgroundColor = _ref.backgroundColor,
7421
- _ref$contentContainer = _ref.contentContainer,
7422
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
7423
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
7399
+ backgroundColor = _ref.backgroundColor;
7400
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
7424
7401
  backgroundColor: backgroundColor,
7425
- children: /*#__PURE__*/jsxs(ContentContainer, {
7426
- children: [header ? /*#__PURE__*/jsx(View, {
7427
- children: header
7428
- }) : null, /*#__PURE__*/jsxs(View, {
7429
- flexGrow: 1,
7430
- flexShrink: 1,
7431
- justifyContent: "space-between",
7432
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7433
- bounces: false,
7434
- contentContainerStyle: {
7435
- flexGrow: 1,
7436
- position: 'relative'
7437
- },
7438
- children: body
7439
- }), footer || null]
7440
- })]
7441
- })
7402
+ children: [header ? /*#__PURE__*/jsx(View, {
7403
+ children: header
7404
+ }) : null, /*#__PURE__*/jsxs(View, {
7405
+ flexGrow: 1,
7406
+ flexShrink: 1,
7407
+ justifyContent: "space-between",
7408
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7409
+ bounces: false,
7410
+ contentContainerStyle: {
7411
+ flexGrow: 1,
7412
+ position: 'relative'
7413
+ },
7414
+ children: body
7415
+ }), footer || null]
7416
+ })]
7442
7417
  });
7443
7418
  }
7444
7419
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10979,8 +10954,7 @@ function NavigationModal(_ref) {
10979
10954
  var body = _ref.body,
10980
10955
  backgroundColor = _ref.backgroundColor,
10981
10956
  footer = _ref.footer,
10982
- header = _ref.header,
10983
- contentContainer = _ref.contentContainer;
10957
+ header = _ref.header;
10984
10958
  var Component = useBreakpointValue({
10985
10959
  base: FullscreenModal,
10986
10960
  small: CardModal
@@ -10989,8 +10963,7 @@ function NavigationModal(_ref) {
10989
10963
  body: body,
10990
10964
  backgroundColor: backgroundColor,
10991
10965
  footer: footer,
10992
- header: header,
10993
- contentContainer: contentContainer
10966
+ header: header
10994
10967
  });
10995
10968
  }
10996
10969
  function Header(props) {