@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.
package/dist/index.es.js CHANGED
@@ -3841,24 +3841,7 @@ 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
-
3861
- var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
3844
+ var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
3862
3845
  function BottomSheetComp(_ref, ref) {
3863
3846
  var Content = _ref.children,
3864
3847
  _ref$hasScrollView = _ref.hasScrollView,
@@ -3871,8 +3854,6 @@ function BottomSheetComp(_ref, ref) {
3871
3854
  enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
3872
3855
  _ref$snapPoints = _ref.snapPoints,
3873
3856
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
3874
- _ref$contentContainer = _ref.contentContainer,
3875
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
3876
3857
  rest = _objectWithoutProperties(_ref, _excluded$M);
3877
3858
  var _useSafeAreaInsets = useSafeAreaInsets(),
3878
3859
  top = _useSafeAreaInsets.top;
@@ -3905,9 +3886,7 @@ function BottomSheetComp(_ref, ref) {
3905
3886
  topInset: top,
3906
3887
  children: function children(props) {
3907
3888
  return /*#__PURE__*/jsx(Wrapper, {
3908
- children: /*#__PURE__*/jsx(ContentContainer, {
3909
- children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
3910
- })
3889
+ children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
3911
3890
  });
3912
3891
  }
3913
3892
  }));
@@ -4312,7 +4291,7 @@ function CardModalHeader(_ref) {
4312
4291
  }));
4313
4292
  }
4314
4293
 
4315
- var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
4294
+ var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4316
4295
  function CardModal(_ref) {
4317
4296
  var _ref$backgroundColor = _ref.backgroundColor,
4318
4297
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4323,8 +4302,6 @@ function CardModal(_ref) {
4323
4302
  header = _ref.header,
4324
4303
  body = _ref.body,
4325
4304
  footer = _ref.footer,
4326
- _ref$contentContainer = _ref.contentContainer,
4327
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
4328
4305
  props = _objectWithoutProperties(_ref, _excluded$H);
4329
4306
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4330
4307
  overflow: "hidden",
@@ -4335,10 +4312,8 @@ function CardModal(_ref) {
4335
4312
  maxHeight: "100%",
4336
4313
  maxWidth: maxWidth,
4337
4314
  minHeight: "kitt.cardModal.minHeight",
4338
- children: /*#__PURE__*/jsx(ContentContainer, {
4339
- children: children || /*#__PURE__*/jsxs(Fragment, {
4340
- children: [header || null, body || null, footer || null]
4341
- })
4315
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4316
+ children: [header || null, body || null, footer || null]
4342
4317
  })
4343
4318
  }));
4344
4319
  }
@@ -8336,28 +8311,24 @@ function FullscreenModal(_ref) {
8336
8311
  var body = _ref.body,
8337
8312
  header = _ref.header,
8338
8313
  footer = _ref.footer,
8339
- backgroundColor = _ref.backgroundColor,
8340
- _ref$contentContainer = _ref.contentContainer,
8341
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
8342
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
8314
+ backgroundColor = _ref.backgroundColor;
8315
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8343
8316
  backgroundColor: backgroundColor,
8344
- children: /*#__PURE__*/jsxs(ContentContainer, {
8345
- children: [header ? /*#__PURE__*/jsx(View, {
8346
- children: header
8347
- }) : null, /*#__PURE__*/jsxs(View, {
8348
- flexGrow: 1,
8349
- flexShrink: 1,
8350
- justifyContent: "space-between",
8351
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8352
- bounces: false,
8353
- contentContainerStyle: {
8354
- flexGrow: 1,
8355
- position: 'relative'
8356
- },
8357
- children: body
8358
- }), footer || null]
8359
- })]
8360
- })
8317
+ children: [header ? /*#__PURE__*/jsx(View, {
8318
+ children: header
8319
+ }) : null, /*#__PURE__*/jsxs(View, {
8320
+ flexGrow: 1,
8321
+ flexShrink: 1,
8322
+ justifyContent: "space-between",
8323
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8324
+ bounces: false,
8325
+ contentContainerStyle: {
8326
+ flexGrow: 1,
8327
+ position: 'relative'
8328
+ },
8329
+ children: body
8330
+ }), footer || null]
8331
+ })]
8361
8332
  });
8362
8333
  }
8363
8334
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11791,8 +11762,7 @@ function NavigationModal(_ref) {
11791
11762
  var body = _ref.body,
11792
11763
  backgroundColor = _ref.backgroundColor,
11793
11764
  footer = _ref.footer,
11794
- header = _ref.header,
11795
- contentContainer = _ref.contentContainer;
11765
+ header = _ref.header;
11796
11766
  var Component = useBreakpointValue({
11797
11767
  base: FullscreenModal,
11798
11768
  small: CardModal
@@ -11801,8 +11771,7 @@ function NavigationModal(_ref) {
11801
11771
  body: body,
11802
11772
  backgroundColor: backgroundColor,
11803
11773
  footer: footer,
11804
- header: header,
11805
- contentContainer: contentContainer
11774
+ header: header
11806
11775
  });
11807
11776
  }
11808
11777
  function Header(props) {