@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
|
@@ -7000,6 +7000,8 @@ function FullscreenModalBody({
|
|
|
7000
7000
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7001
7001
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7002
7002
|
return /*#__PURE__*/jsx(View, {
|
|
7003
|
+
flexGrow: 1,
|
|
7004
|
+
flexShrink: 1,
|
|
7003
7005
|
...props,
|
|
7004
7006
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7005
7007
|
paddingTop: paddingTop,
|
|
@@ -7212,28 +7214,31 @@ function FullscreenModalHeader({
|
|
|
7212
7214
|
}
|
|
7213
7215
|
|
|
7214
7216
|
function FullscreenModal({
|
|
7217
|
+
children,
|
|
7215
7218
|
body,
|
|
7216
7219
|
header,
|
|
7217
7220
|
footer,
|
|
7218
7221
|
backgroundColor
|
|
7219
7222
|
}) {
|
|
7220
|
-
return /*#__PURE__*/
|
|
7223
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7221
7224
|
backgroundColor: backgroundColor,
|
|
7222
|
-
children:
|
|
7223
|
-
children: header
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7225
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7226
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7227
|
+
children: header
|
|
7228
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7229
|
+
flexGrow: 1,
|
|
7230
|
+
flexShrink: 1,
|
|
7231
|
+
justifyContent: "space-between",
|
|
7232
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7233
|
+
bounces: false,
|
|
7234
|
+
contentContainerStyle: {
|
|
7235
|
+
flexGrow: 1,
|
|
7236
|
+
position: 'relative'
|
|
7237
|
+
},
|
|
7238
|
+
children: body
|
|
7239
|
+
}), footer || null]
|
|
7240
|
+
})]
|
|
7241
|
+
})
|
|
7237
7242
|
});
|
|
7238
7243
|
}
|
|
7239
7244
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10798,13 +10803,17 @@ function NavigationModal({
|
|
|
10798
10803
|
body,
|
|
10799
10804
|
backgroundColor,
|
|
10800
10805
|
footer,
|
|
10801
|
-
header
|
|
10806
|
+
header,
|
|
10807
|
+
children
|
|
10802
10808
|
}) {
|
|
10803
10809
|
const Component = useBreakpointValue({
|
|
10804
10810
|
base: FullscreenModal,
|
|
10805
10811
|
small: CardModal
|
|
10806
10812
|
});
|
|
10807
|
-
return /*#__PURE__*/jsx(Component, {
|
|
10813
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
10814
|
+
backgroundColor: backgroundColor,
|
|
10815
|
+
children: children
|
|
10816
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
10808
10817
|
body: body,
|
|
10809
10818
|
backgroundColor: backgroundColor,
|
|
10810
10819
|
footer: footer,
|