@ornikar/kitt-universal 25.53.0 → 25.54.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/CardModal/CardModal.d.ts +3 -0
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/Body.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +17 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +2 -3
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +29 -19
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +29 -19
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +27 -18
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +27 -18
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +27 -18
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +27 -18
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +30 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +30 -20
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7761,6 +7761,8 @@ function FullscreenModalBody({
|
|
|
7761
7761
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7762
7762
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7763
7763
|
return /*#__PURE__*/jsx(View, {
|
|
7764
|
+
flexGrow: 1,
|
|
7765
|
+
flexShrink: 1,
|
|
7764
7766
|
...props,
|
|
7765
7767
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7766
7768
|
paddingTop: paddingTop,
|
|
@@ -8038,28 +8040,31 @@ function FullscreenModalHeader({
|
|
|
8038
8040
|
}
|
|
8039
8041
|
|
|
8040
8042
|
function FullscreenModal({
|
|
8043
|
+
children,
|
|
8041
8044
|
body,
|
|
8042
8045
|
header,
|
|
8043
8046
|
footer,
|
|
8044
8047
|
backgroundColor
|
|
8045
8048
|
}) {
|
|
8046
|
-
return /*#__PURE__*/
|
|
8049
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8047
8050
|
backgroundColor: backgroundColor,
|
|
8048
|
-
children:
|
|
8049
|
-
children: header
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8051
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8052
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8053
|
+
children: header
|
|
8054
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8055
|
+
flexGrow: 1,
|
|
8056
|
+
flexShrink: 1,
|
|
8057
|
+
justifyContent: "space-between",
|
|
8058
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8059
|
+
bounces: false,
|
|
8060
|
+
contentContainerStyle: {
|
|
8061
|
+
flexGrow: 1,
|
|
8062
|
+
position: 'relative'
|
|
8063
|
+
},
|
|
8064
|
+
children: body
|
|
8065
|
+
}), footer || null]
|
|
8066
|
+
})]
|
|
8067
|
+
})
|
|
8063
8068
|
});
|
|
8064
8069
|
}
|
|
8065
8070
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11520,13 +11525,17 @@ function NavigationModal({
|
|
|
11520
11525
|
body,
|
|
11521
11526
|
backgroundColor,
|
|
11522
11527
|
footer,
|
|
11523
|
-
header
|
|
11528
|
+
header,
|
|
11529
|
+
children
|
|
11524
11530
|
}) {
|
|
11525
11531
|
const Component = useBreakpointValue({
|
|
11526
11532
|
base: FullscreenModal,
|
|
11527
11533
|
small: CardModal
|
|
11528
11534
|
});
|
|
11529
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11535
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11536
|
+
backgroundColor: backgroundColor,
|
|
11537
|
+
children: children
|
|
11538
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11530
11539
|
body: body,
|
|
11531
11540
|
backgroundColor: backgroundColor,
|
|
11532
11541
|
footer: footer,
|