@ornikar/kitt-universal 25.48.0 → 25.49.0
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 +2 -3
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts +2 -3
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +26 -55
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +26 -55
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +24 -53
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +21 -47
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +24 -53
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +21 -47
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +24 -55
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +22 -49
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
- package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
|
@@ -3801,24 +3801,6 @@ function Avatar({
|
|
|
3801
3801
|
});
|
|
3802
3802
|
}
|
|
3803
3803
|
|
|
3804
|
-
/**
|
|
3805
|
-
* A utility component that returns its children without any modifications.
|
|
3806
|
-
*
|
|
3807
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3808
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3809
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3810
|
-
*
|
|
3811
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3812
|
-
*
|
|
3813
|
-
* @example
|
|
3814
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3815
|
-
*/
|
|
3816
|
-
function IdentityComponent({
|
|
3817
|
-
children
|
|
3818
|
-
}) {
|
|
3819
|
-
return children;
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
3804
|
function BottomSheetComp({
|
|
3823
3805
|
children: Content,
|
|
3824
3806
|
hasScrollView = false,
|
|
@@ -3826,7 +3808,6 @@ function BottomSheetComp({
|
|
|
3826
3808
|
hasHandle = true,
|
|
3827
3809
|
enableDynamicSizing = true,
|
|
3828
3810
|
snapPoints = ['100%'],
|
|
3829
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
3830
3811
|
...rest
|
|
3831
3812
|
}, ref) {
|
|
3832
3813
|
const {
|
|
@@ -3857,11 +3838,9 @@ function BottomSheetComp({
|
|
|
3857
3838
|
...rest,
|
|
3858
3839
|
topInset: top,
|
|
3859
3840
|
children: props => /*#__PURE__*/jsx(Wrapper, {
|
|
3860
|
-
children: /*#__PURE__*/jsx(
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
}) : Content
|
|
3864
|
-
})
|
|
3841
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, {
|
|
3842
|
+
...props?.data
|
|
3843
|
+
}) : Content
|
|
3865
3844
|
})
|
|
3866
3845
|
});
|
|
3867
3846
|
}
|
|
@@ -4264,7 +4243,6 @@ function CardModal({
|
|
|
4264
4243
|
header,
|
|
4265
4244
|
body,
|
|
4266
4245
|
footer,
|
|
4267
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
4268
4246
|
...props
|
|
4269
4247
|
}) {
|
|
4270
4248
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -4277,10 +4255,8 @@ function CardModal({
|
|
|
4277
4255
|
maxHeight: "100%",
|
|
4278
4256
|
maxWidth: maxWidth,
|
|
4279
4257
|
minHeight: "kitt.cardModal.minHeight",
|
|
4280
|
-
children: /*#__PURE__*/
|
|
4281
|
-
children:
|
|
4282
|
-
children: [header || null, body || null, footer || null]
|
|
4283
|
-
})
|
|
4258
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4259
|
+
children: [header || null, body || null, footer || null]
|
|
4284
4260
|
})
|
|
4285
4261
|
});
|
|
4286
4262
|
}
|
|
@@ -8059,28 +8035,25 @@ function FullscreenModal({
|
|
|
8059
8035
|
body,
|
|
8060
8036
|
header,
|
|
8061
8037
|
footer,
|
|
8062
|
-
backgroundColor
|
|
8063
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
8038
|
+
backgroundColor
|
|
8064
8039
|
}) {
|
|
8065
|
-
return /*#__PURE__*/
|
|
8040
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
8066
8041
|
backgroundColor: backgroundColor,
|
|
8067
|
-
children: /*#__PURE__*/
|
|
8068
|
-
children:
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
})]
|
|
8083
|
-
})
|
|
8042
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8043
|
+
children: header
|
|
8044
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8045
|
+
flexGrow: 1,
|
|
8046
|
+
flexShrink: 1,
|
|
8047
|
+
justifyContent: "space-between",
|
|
8048
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8049
|
+
bounces: false,
|
|
8050
|
+
contentContainerStyle: {
|
|
8051
|
+
flexGrow: 1,
|
|
8052
|
+
position: 'relative'
|
|
8053
|
+
},
|
|
8054
|
+
children: body
|
|
8055
|
+
}), footer || null]
|
|
8056
|
+
})]
|
|
8084
8057
|
});
|
|
8085
8058
|
}
|
|
8086
8059
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11510,8 +11483,7 @@ function NavigationModal({
|
|
|
11510
11483
|
body,
|
|
11511
11484
|
backgroundColor,
|
|
11512
11485
|
footer,
|
|
11513
|
-
header
|
|
11514
|
-
contentContainer
|
|
11486
|
+
header
|
|
11515
11487
|
}) {
|
|
11516
11488
|
const Component = useBreakpointValue({
|
|
11517
11489
|
base: FullscreenModal,
|
|
@@ -11521,8 +11493,7 @@ function NavigationModal({
|
|
|
11521
11493
|
body: body,
|
|
11522
11494
|
backgroundColor: backgroundColor,
|
|
11523
11495
|
footer: footer,
|
|
11524
|
-
header: header
|
|
11525
|
-
contentContainer: contentContainer
|
|
11496
|
+
header: header
|
|
11526
11497
|
});
|
|
11527
11498
|
}
|
|
11528
11499
|
function Header(props) {
|