@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
|
@@ -7784,7 +7784,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7784
7784
|
} = useTheme();
|
|
7785
7785
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7786
7786
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7787
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7787
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7788
|
+
flexGrow: 1,
|
|
7789
|
+
flexShrink: 1
|
|
7790
|
+
}, props), {}, {
|
|
7788
7791
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7789
7792
|
paddingTop: paddingTop,
|
|
7790
7793
|
paddingBottom: paddingBottom,
|
|
@@ -8066,28 +8069,31 @@ function FullscreenModalHeader(_ref) {
|
|
|
8066
8069
|
}
|
|
8067
8070
|
|
|
8068
8071
|
function FullscreenModal({
|
|
8072
|
+
children,
|
|
8069
8073
|
body,
|
|
8070
8074
|
header,
|
|
8071
8075
|
footer,
|
|
8072
8076
|
backgroundColor
|
|
8073
8077
|
}) {
|
|
8074
|
-
return /*#__PURE__*/
|
|
8078
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8075
8079
|
backgroundColor: backgroundColor,
|
|
8076
|
-
children:
|
|
8077
|
-
children: header
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8080
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8081
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8082
|
+
children: header
|
|
8083
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8084
|
+
flexGrow: 1,
|
|
8085
|
+
flexShrink: 1,
|
|
8086
|
+
justifyContent: "space-between",
|
|
8087
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8088
|
+
bounces: false,
|
|
8089
|
+
contentContainerStyle: {
|
|
8090
|
+
flexGrow: 1,
|
|
8091
|
+
position: 'relative'
|
|
8092
|
+
},
|
|
8093
|
+
children: body
|
|
8094
|
+
}), footer || null]
|
|
8095
|
+
})]
|
|
8096
|
+
})
|
|
8091
8097
|
});
|
|
8092
8098
|
}
|
|
8093
8099
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11539,13 +11545,17 @@ function NavigationModal({
|
|
|
11539
11545
|
body,
|
|
11540
11546
|
backgroundColor,
|
|
11541
11547
|
footer,
|
|
11542
|
-
header
|
|
11548
|
+
header,
|
|
11549
|
+
children
|
|
11543
11550
|
}) {
|
|
11544
11551
|
const Component = useBreakpointValue({
|
|
11545
11552
|
base: FullscreenModal,
|
|
11546
11553
|
small: CardModal
|
|
11547
11554
|
});
|
|
11548
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11555
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11556
|
+
backgroundColor: backgroundColor,
|
|
11557
|
+
children: children
|
|
11558
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11549
11559
|
body: body,
|
|
11550
11560
|
backgroundColor: backgroundColor,
|
|
11551
11561
|
footer: footer,
|