@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
|
@@ -3824,24 +3824,6 @@ 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
|
-
|
|
3845
3827
|
function BottomSheetComp({
|
|
3846
3828
|
children: Content,
|
|
3847
3829
|
hasScrollView = false,
|
|
@@ -3849,7 +3831,6 @@ function BottomSheetComp({
|
|
|
3849
3831
|
hasHandle = true,
|
|
3850
3832
|
enableDynamicSizing = true,
|
|
3851
3833
|
snapPoints = ['100%'],
|
|
3852
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
3853
3834
|
...rest
|
|
3854
3835
|
}, ref) {
|
|
3855
3836
|
const {
|
|
@@ -3880,11 +3861,9 @@ function BottomSheetComp({
|
|
|
3880
3861
|
...rest,
|
|
3881
3862
|
topInset: top,
|
|
3882
3863
|
children: props => /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
3883
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
}) : Content
|
|
3887
|
-
})
|
|
3864
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
|
|
3865
|
+
...props?.data
|
|
3866
|
+
}) : Content
|
|
3888
3867
|
})
|
|
3889
3868
|
});
|
|
3890
3869
|
}
|
|
@@ -4287,7 +4266,6 @@ function CardModal({
|
|
|
4287
4266
|
header,
|
|
4288
4267
|
body,
|
|
4289
4268
|
footer,
|
|
4290
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
4291
4269
|
...props
|
|
4292
4270
|
}) {
|
|
4293
4271
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4300,10 +4278,8 @@ function CardModal({
|
|
|
4300
4278
|
maxHeight: "100%",
|
|
4301
4279
|
maxWidth: maxWidth,
|
|
4302
4280
|
minHeight: "kitt.cardModal.minHeight",
|
|
4303
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
4304
|
-
children:
|
|
4305
|
-
children: [header || null, body || null, footer || null]
|
|
4306
|
-
})
|
|
4281
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4282
|
+
children: [header || null, body || null, footer || null]
|
|
4307
4283
|
})
|
|
4308
4284
|
});
|
|
4309
4285
|
}
|
|
@@ -8082,28 +8058,25 @@ function FullscreenModal({
|
|
|
8082
8058
|
body,
|
|
8083
8059
|
header,
|
|
8084
8060
|
footer,
|
|
8085
|
-
backgroundColor
|
|
8086
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
8061
|
+
backgroundColor
|
|
8087
8062
|
}) {
|
|
8088
|
-
return /*#__PURE__*/jsxRuntime.
|
|
8063
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
|
|
8089
8064
|
backgroundColor: backgroundColor,
|
|
8090
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
8091
|
-
children:
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
})]
|
|
8106
|
-
})
|
|
8065
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8066
|
+
children: header
|
|
8067
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8068
|
+
flexGrow: 1,
|
|
8069
|
+
flexShrink: 1,
|
|
8070
|
+
justifyContent: "space-between",
|
|
8071
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8072
|
+
bounces: false,
|
|
8073
|
+
contentContainerStyle: {
|
|
8074
|
+
flexGrow: 1,
|
|
8075
|
+
position: 'relative'
|
|
8076
|
+
},
|
|
8077
|
+
children: body
|
|
8078
|
+
}), footer || null]
|
|
8079
|
+
})]
|
|
8107
8080
|
});
|
|
8108
8081
|
}
|
|
8109
8082
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11533,8 +11506,7 @@ function NavigationModal({
|
|
|
11533
11506
|
body,
|
|
11534
11507
|
backgroundColor,
|
|
11535
11508
|
footer,
|
|
11536
|
-
header
|
|
11537
|
-
contentContainer
|
|
11509
|
+
header
|
|
11538
11510
|
}) {
|
|
11539
11511
|
const Component = useBreakpointValue({
|
|
11540
11512
|
base: FullscreenModal,
|
|
@@ -11544,8 +11516,7 @@ function NavigationModal({
|
|
|
11544
11516
|
body: body,
|
|
11545
11517
|
backgroundColor: backgroundColor,
|
|
11546
11518
|
footer: footer,
|
|
11547
|
-
header: header
|
|
11548
|
-
contentContainer: contentContainer
|
|
11519
|
+
header: header
|
|
11549
11520
|
});
|
|
11550
11521
|
}
|
|
11551
11522
|
function Header(props) {
|