@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
|
@@ -3811,6 +3811,24 @@ function useStaticBottomSheet(Content) {
|
|
|
3811
3811
|
};
|
|
3812
3812
|
}
|
|
3813
3813
|
|
|
3814
|
+
/**
|
|
3815
|
+
* A utility component that returns its children without any modifications.
|
|
3816
|
+
*
|
|
3817
|
+
* This component acts as an identity function for React elements - it simply returns
|
|
3818
|
+
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3819
|
+
* component composition, or as a placeholder in component hierarchies.
|
|
3820
|
+
*
|
|
3821
|
+
* @returns The children as they were passed in, without any wrapper elements
|
|
3822
|
+
*
|
|
3823
|
+
* @example
|
|
3824
|
+
* See CardModal and FullscreenModal for usage examples.
|
|
3825
|
+
*/
|
|
3826
|
+
function IdentityComponent({
|
|
3827
|
+
children
|
|
3828
|
+
}) {
|
|
3829
|
+
return children;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3814
3832
|
const overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3815
3833
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3816
3834
|
useEffect(() => {
|
|
@@ -4122,9 +4140,7 @@ function CardModal({
|
|
|
4122
4140
|
header,
|
|
4123
4141
|
body,
|
|
4124
4142
|
footer,
|
|
4125
|
-
contentContainer: ContentContainer =
|
|
4126
|
-
children: originalChildren
|
|
4127
|
-
}) => originalChildren,
|
|
4143
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
4128
4144
|
...props
|
|
4129
4145
|
}) {
|
|
4130
4146
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -7215,9 +7231,7 @@ function FullscreenModal({
|
|
|
7215
7231
|
header,
|
|
7216
7232
|
footer,
|
|
7217
7233
|
backgroundColor,
|
|
7218
|
-
contentContainer: ContentContainer =
|
|
7219
|
-
children
|
|
7220
|
-
}) => children
|
|
7234
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
7221
7235
|
}) {
|
|
7222
7236
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7223
7237
|
backgroundColor: backgroundColor,
|