@ornikar/kitt-universal 25.51.0 → 25.51.1-canary.d67b65db8008c1a8549aa9a6ef5ca833bbea3980.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 +14 -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 +18 -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
|
@@ -7781,7 +7781,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7781
7781
|
} = useTheme();
|
|
7782
7782
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7783
7783
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7784
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7784
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7785
|
+
flexGrow: 1,
|
|
7786
|
+
flexShrink: 1
|
|
7787
|
+
}, props), {}, {
|
|
7785
7788
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7786
7789
|
paddingTop: paddingTop,
|
|
7787
7790
|
paddingBottom: paddingBottom,
|
|
@@ -8063,28 +8066,31 @@ function FullscreenModalHeader(_ref) {
|
|
|
8063
8066
|
}
|
|
8064
8067
|
|
|
8065
8068
|
function FullscreenModal({
|
|
8069
|
+
children,
|
|
8066
8070
|
body,
|
|
8067
8071
|
header,
|
|
8068
8072
|
footer,
|
|
8069
8073
|
backgroundColor
|
|
8070
8074
|
}) {
|
|
8071
|
-
return /*#__PURE__*/
|
|
8075
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8072
8076
|
backgroundColor: backgroundColor,
|
|
8073
|
-
children:
|
|
8074
|
-
children: header
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8077
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8078
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8079
|
+
children: header
|
|
8080
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8081
|
+
flexGrow: 1,
|
|
8082
|
+
flexShrink: 1,
|
|
8083
|
+
justifyContent: "space-between",
|
|
8084
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8085
|
+
bounces: false,
|
|
8086
|
+
contentContainerStyle: {
|
|
8087
|
+
flexGrow: 1,
|
|
8088
|
+
position: 'relative'
|
|
8089
|
+
},
|
|
8090
|
+
children: body
|
|
8091
|
+
}), footer || null]
|
|
8092
|
+
})]
|
|
8093
|
+
})
|
|
8088
8094
|
});
|
|
8089
8095
|
}
|
|
8090
8096
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11505,13 +11511,17 @@ function NavigationModal({
|
|
|
11505
11511
|
body,
|
|
11506
11512
|
backgroundColor,
|
|
11507
11513
|
footer,
|
|
11508
|
-
header
|
|
11514
|
+
header,
|
|
11515
|
+
children
|
|
11509
11516
|
}) {
|
|
11510
11517
|
const Component = useBreakpointValue({
|
|
11511
11518
|
base: FullscreenModal,
|
|
11512
11519
|
small: CardModal
|
|
11513
11520
|
});
|
|
11514
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11521
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11522
|
+
backgroundColor: backgroundColor,
|
|
11523
|
+
children: children
|
|
11524
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11515
11525
|
body: body,
|
|
11516
11526
|
backgroundColor: backgroundColor,
|
|
11517
11527
|
footer: footer,
|