@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
|
@@ -3818,6 +3818,24 @@ function useStaticBottomSheet(Content) {
|
|
|
3818
3818
|
};
|
|
3819
3819
|
}
|
|
3820
3820
|
|
|
3821
|
+
/**
|
|
3822
|
+
* A utility component that returns its children without any modifications.
|
|
3823
|
+
*
|
|
3824
|
+
* This component acts as an identity function for React elements - it simply returns
|
|
3825
|
+
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3826
|
+
* component composition, or as a placeholder in component hierarchies.
|
|
3827
|
+
*
|
|
3828
|
+
* @returns The children as they were passed in, without any wrapper elements
|
|
3829
|
+
*
|
|
3830
|
+
* @example
|
|
3831
|
+
* See CardModal and FullscreenModal for usage examples.
|
|
3832
|
+
*/
|
|
3833
|
+
function IdentityComponent({
|
|
3834
|
+
children
|
|
3835
|
+
}) {
|
|
3836
|
+
return children;
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3821
3839
|
const overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3822
3840
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3823
3841
|
react.useEffect(() => {
|
|
@@ -4129,9 +4147,7 @@ function CardModal({
|
|
|
4129
4147
|
header,
|
|
4130
4148
|
body,
|
|
4131
4149
|
footer,
|
|
4132
|
-
contentContainer: ContentContainer =
|
|
4133
|
-
children: originalChildren
|
|
4134
|
-
}) => originalChildren,
|
|
4150
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
4135
4151
|
...props
|
|
4136
4152
|
}) {
|
|
4137
4153
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -7222,9 +7238,7 @@ function FullscreenModal({
|
|
|
7222
7238
|
header,
|
|
7223
7239
|
footer,
|
|
7224
7240
|
backgroundColor,
|
|
7225
|
-
contentContainer: ContentContainer =
|
|
7226
|
-
children
|
|
7227
|
-
}) => children
|
|
7241
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
7228
7242
|
}) {
|
|
7229
7243
|
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
7230
7244
|
backgroundColor: backgroundColor,
|