@ornikar/kitt-universal 25.46.0 → 25.46.1-canary.9950f4eb84cbfcf1d45de4e6c9ad226210c5404f.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 +11 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +3 -2
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts +3 -2
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +3 -2
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +39 -24
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +39 -24
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +37 -22
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +29 -19
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +37 -22
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +29 -19
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +43 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +34 -20
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3831,6 +3831,9 @@ function BottomSheetComp({
|
|
|
3831
3831
|
hasHandle = true,
|
|
3832
3832
|
enableDynamicSizing = true,
|
|
3833
3833
|
snapPoints = ['100%'],
|
|
3834
|
+
contentContainer: ContentContainer = ({
|
|
3835
|
+
children
|
|
3836
|
+
}) => children,
|
|
3834
3837
|
...rest
|
|
3835
3838
|
}, ref) {
|
|
3836
3839
|
const {
|
|
@@ -3861,9 +3864,11 @@ function BottomSheetComp({
|
|
|
3861
3864
|
...rest,
|
|
3862
3865
|
topInset: top,
|
|
3863
3866
|
children: props => /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
3864
|
-
children:
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
|
|
3868
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
|
|
3869
|
+
...props?.data
|
|
3870
|
+
}) : Content
|
|
3871
|
+
})
|
|
3867
3872
|
})
|
|
3868
3873
|
});
|
|
3869
3874
|
}
|
|
@@ -4266,6 +4271,9 @@ function CardModal({
|
|
|
4266
4271
|
header,
|
|
4267
4272
|
body,
|
|
4268
4273
|
footer,
|
|
4274
|
+
contentContainer: ContentContainer = ({
|
|
4275
|
+
children: originalChildren
|
|
4276
|
+
}) => originalChildren,
|
|
4269
4277
|
...props
|
|
4270
4278
|
}) {
|
|
4271
4279
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4278,8 +4286,10 @@ function CardModal({
|
|
|
4278
4286
|
maxHeight: "100%",
|
|
4279
4287
|
maxWidth: maxWidth,
|
|
4280
4288
|
minHeight: "kitt.cardModal.minHeight",
|
|
4281
|
-
children:
|
|
4282
|
-
children:
|
|
4289
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
|
|
4290
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4291
|
+
children: [header || null, body || null, footer || null]
|
|
4292
|
+
})
|
|
4283
4293
|
})
|
|
4284
4294
|
});
|
|
4285
4295
|
}
|
|
@@ -8058,25 +8068,30 @@ function FullscreenModal({
|
|
|
8058
8068
|
body,
|
|
8059
8069
|
header,
|
|
8060
8070
|
footer,
|
|
8061
|
-
backgroundColor
|
|
8071
|
+
backgroundColor,
|
|
8072
|
+
contentContainer: ContentContainer = ({
|
|
8073
|
+
children
|
|
8074
|
+
}) => children
|
|
8062
8075
|
}) {
|
|
8063
|
-
return /*#__PURE__*/jsxRuntime.
|
|
8076
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8064
8077
|
backgroundColor: backgroundColor,
|
|
8065
|
-
children:
|
|
8066
|
-
children: header
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8078
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
|
|
8079
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8080
|
+
children: header
|
|
8081
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8082
|
+
flexGrow: 1,
|
|
8083
|
+
flexShrink: 1,
|
|
8084
|
+
justifyContent: "space-between",
|
|
8085
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8086
|
+
bounces: false,
|
|
8087
|
+
contentContainerStyle: {
|
|
8088
|
+
flexGrow: 1,
|
|
8089
|
+
position: 'relative'
|
|
8090
|
+
},
|
|
8091
|
+
children: body
|
|
8092
|
+
}), footer || null]
|
|
8093
|
+
})]
|
|
8094
|
+
})
|
|
8080
8095
|
});
|
|
8081
8096
|
}
|
|
8082
8097
|
FullscreenModal.Header = FullscreenModalHeader;
|