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