@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
|
@@ -3824,6 +3824,24 @@ function Avatar({
|
|
|
3824
3824
|
});
|
|
3825
3825
|
}
|
|
3826
3826
|
|
|
3827
|
+
/**
|
|
3828
|
+
* A utility component that returns its children without any modifications.
|
|
3829
|
+
*
|
|
3830
|
+
* This component acts as an identity function for React elements - it simply returns
|
|
3831
|
+
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3832
|
+
* component composition, or as a placeholder in component hierarchies.
|
|
3833
|
+
*
|
|
3834
|
+
* @returns The children as they were passed in, without any wrapper elements
|
|
3835
|
+
*
|
|
3836
|
+
* @example
|
|
3837
|
+
* See CardModal and FullscreenModal for usage examples.
|
|
3838
|
+
*/
|
|
3839
|
+
function IdentityComponent({
|
|
3840
|
+
children
|
|
3841
|
+
}) {
|
|
3842
|
+
return children;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3827
3845
|
function BottomSheetComp({
|
|
3828
3846
|
children: Content,
|
|
3829
3847
|
hasScrollView = false,
|
|
@@ -3831,9 +3849,7 @@ function BottomSheetComp({
|
|
|
3831
3849
|
hasHandle = true,
|
|
3832
3850
|
enableDynamicSizing = true,
|
|
3833
3851
|
snapPoints = ['100%'],
|
|
3834
|
-
contentContainer: ContentContainer =
|
|
3835
|
-
children
|
|
3836
|
-
}) => children,
|
|
3852
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
3837
3853
|
...rest
|
|
3838
3854
|
}, ref) {
|
|
3839
3855
|
const {
|
|
@@ -4271,9 +4287,7 @@ function CardModal({
|
|
|
4271
4287
|
header,
|
|
4272
4288
|
body,
|
|
4273
4289
|
footer,
|
|
4274
|
-
contentContainer: ContentContainer =
|
|
4275
|
-
children: originalChildren
|
|
4276
|
-
}) => originalChildren,
|
|
4290
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
4277
4291
|
...props
|
|
4278
4292
|
}) {
|
|
4279
4293
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -8069,9 +8083,7 @@ function FullscreenModal({
|
|
|
8069
8083
|
header,
|
|
8070
8084
|
footer,
|
|
8071
8085
|
backgroundColor,
|
|
8072
|
-
contentContainer: ContentContainer =
|
|
8073
|
-
children
|
|
8074
|
-
}) => children
|
|
8086
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
8075
8087
|
}) {
|
|
8076
8088
|
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8077
8089
|
backgroundColor: backgroundColor,
|