@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
|
@@ -3804,6 +3804,24 @@ function Avatar(_ref) {
|
|
|
3804
3804
|
});
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
3807
|
+
/**
|
|
3808
|
+
* A utility component that returns its children without any modifications.
|
|
3809
|
+
*
|
|
3810
|
+
* This component acts as an identity function for React elements - it simply returns
|
|
3811
|
+
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3812
|
+
* component composition, or as a placeholder in component hierarchies.
|
|
3813
|
+
*
|
|
3814
|
+
* @returns The children as they were passed in, without any wrapper elements
|
|
3815
|
+
*
|
|
3816
|
+
* @example
|
|
3817
|
+
* See CardModal and FullscreenModal for usage examples.
|
|
3818
|
+
*/
|
|
3819
|
+
function IdentityComponent({
|
|
3820
|
+
children
|
|
3821
|
+
}) {
|
|
3822
|
+
return children;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3807
3825
|
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
|
|
3808
3826
|
function BottomSheetComp(_ref, ref) {
|
|
3809
3827
|
let {
|
|
@@ -3813,9 +3831,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3813
3831
|
hasHandle = true,
|
|
3814
3832
|
enableDynamicSizing = true,
|
|
3815
3833
|
snapPoints = ['100%'],
|
|
3816
|
-
contentContainer: ContentContainer =
|
|
3817
|
-
children
|
|
3818
|
-
}) => children
|
|
3834
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
3819
3835
|
} = _ref,
|
|
3820
3836
|
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
3821
3837
|
const {
|
|
@@ -4252,9 +4268,7 @@ function CardModal(_ref) {
|
|
|
4252
4268
|
header,
|
|
4253
4269
|
body,
|
|
4254
4270
|
footer,
|
|
4255
|
-
contentContainer: ContentContainer =
|
|
4256
|
-
children: originalChildren
|
|
4257
|
-
}) => originalChildren
|
|
4271
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
4258
4272
|
} = _ref,
|
|
4259
4273
|
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4260
4274
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -8074,9 +8088,7 @@ function FullscreenModal({
|
|
|
8074
8088
|
header,
|
|
8075
8089
|
footer,
|
|
8076
8090
|
backgroundColor,
|
|
8077
|
-
contentContainer: ContentContainer =
|
|
8078
|
-
children
|
|
8079
|
-
}) => children
|
|
8091
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
8080
8092
|
}) {
|
|
8081
8093
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8082
8094
|
backgroundColor: backgroundColor,
|