@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
|
@@ -6997,6 +6997,8 @@ function FullscreenModalBody({
|
|
|
6997
6997
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
6998
6998
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
6999
6999
|
return /*#__PURE__*/jsx(View, {
|
|
7000
|
+
flexGrow: 1,
|
|
7001
|
+
flexShrink: 1,
|
|
7000
7002
|
...props,
|
|
7001
7003
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7002
7004
|
paddingTop: paddingTop,
|
|
@@ -7209,28 +7211,31 @@ function FullscreenModalHeader({
|
|
|
7209
7211
|
}
|
|
7210
7212
|
|
|
7211
7213
|
function FullscreenModal({
|
|
7214
|
+
children,
|
|
7212
7215
|
body,
|
|
7213
7216
|
header,
|
|
7214
7217
|
footer,
|
|
7215
7218
|
backgroundColor
|
|
7216
7219
|
}) {
|
|
7217
|
-
return /*#__PURE__*/
|
|
7220
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7218
7221
|
backgroundColor: backgroundColor,
|
|
7219
|
-
children:
|
|
7220
|
-
children: header
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7222
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7223
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7224
|
+
children: header
|
|
7225
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7226
|
+
flexGrow: 1,
|
|
7227
|
+
flexShrink: 1,
|
|
7228
|
+
justifyContent: "space-between",
|
|
7229
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7230
|
+
bounces: false,
|
|
7231
|
+
contentContainerStyle: {
|
|
7232
|
+
flexGrow: 1,
|
|
7233
|
+
position: 'relative'
|
|
7234
|
+
},
|
|
7235
|
+
children: body
|
|
7236
|
+
}), footer || null]
|
|
7237
|
+
})]
|
|
7238
|
+
})
|
|
7234
7239
|
});
|
|
7235
7240
|
}
|
|
7236
7241
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10764,13 +10769,17 @@ function NavigationModal({
|
|
|
10764
10769
|
body,
|
|
10765
10770
|
backgroundColor,
|
|
10766
10771
|
footer,
|
|
10767
|
-
header
|
|
10772
|
+
header,
|
|
10773
|
+
children
|
|
10768
10774
|
}) {
|
|
10769
10775
|
const Component = useBreakpointValue({
|
|
10770
10776
|
base: FullscreenModal,
|
|
10771
10777
|
small: CardModal
|
|
10772
10778
|
});
|
|
10773
|
-
return /*#__PURE__*/jsx(Component, {
|
|
10779
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
10780
|
+
backgroundColor: backgroundColor,
|
|
10781
|
+
children: children
|
|
10782
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
10774
10783
|
body: body,
|
|
10775
10784
|
backgroundColor: backgroundColor,
|
|
10776
10785
|
footer: footer,
|