@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/CHANGELOG.md +9 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/utils/IdentityComponent.d.ts +15 -0
- package/dist/definitions/utils/IdentityComponent.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +21 -9
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +21 -9
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +21 -9
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +20 -6
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +21 -9
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +20 -6
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +20 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +19 -8
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -3853,6 +3853,23 @@ 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
|
+
|
|
3856
3873
|
var overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3857
3874
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3858
3875
|
useEffect(function () {
|
|
@@ -4166,10 +4183,7 @@ function CardModal(_ref) {
|
|
|
4166
4183
|
body = _ref.body,
|
|
4167
4184
|
footer = _ref.footer,
|
|
4168
4185
|
_ref$contentContainer = _ref.contentContainer,
|
|
4169
|
-
ContentContainer = _ref$contentContainer === void 0 ?
|
|
4170
|
-
var originalChildren = _ref2.children;
|
|
4171
|
-
return originalChildren;
|
|
4172
|
-
} : _ref$contentContainer,
|
|
4186
|
+
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
|
|
4173
4187
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4174
4188
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4175
4189
|
overflow: "hidden",
|
|
@@ -7405,10 +7419,7 @@ function FullscreenModal(_ref) {
|
|
|
7405
7419
|
footer = _ref.footer,
|
|
7406
7420
|
backgroundColor = _ref.backgroundColor,
|
|
7407
7421
|
_ref$contentContainer = _ref.contentContainer,
|
|
7408
|
-
ContentContainer = _ref$contentContainer === void 0 ?
|
|
7409
|
-
var children = _ref2.children;
|
|
7410
|
-
return children;
|
|
7411
|
-
} : _ref$contentContainer;
|
|
7422
|
+
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
|
|
7412
7423
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7413
7424
|
backgroundColor: backgroundColor,
|
|
7414
7425
|
children: /*#__PURE__*/jsxs(ContentContainer, {
|