@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
|
@@ -7007,6 +7007,8 @@ function FullscreenModalBody({
|
|
|
7007
7007
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7008
7008
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7009
7009
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7010
|
+
flexGrow: 1,
|
|
7011
|
+
flexShrink: 1,
|
|
7010
7012
|
...props,
|
|
7011
7013
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7012
7014
|
paddingTop: paddingTop,
|
|
@@ -7219,28 +7221,31 @@ function FullscreenModalHeader({
|
|
|
7219
7221
|
}
|
|
7220
7222
|
|
|
7221
7223
|
function FullscreenModal({
|
|
7224
|
+
children,
|
|
7222
7225
|
body,
|
|
7223
7226
|
header,
|
|
7224
7227
|
footer,
|
|
7225
7228
|
backgroundColor
|
|
7226
7229
|
}) {
|
|
7227
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7230
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
7228
7231
|
backgroundColor: backgroundColor,
|
|
7229
|
-
children:
|
|
7230
|
-
children: header
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7232
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7233
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7234
|
+
children: header
|
|
7235
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7236
|
+
flexGrow: 1,
|
|
7237
|
+
flexShrink: 1,
|
|
7238
|
+
justifyContent: "space-between",
|
|
7239
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7240
|
+
bounces: false,
|
|
7241
|
+
contentContainerStyle: {
|
|
7242
|
+
flexGrow: 1,
|
|
7243
|
+
position: 'relative'
|
|
7244
|
+
},
|
|
7245
|
+
children: body
|
|
7246
|
+
}), footer || null]
|
|
7247
|
+
})]
|
|
7248
|
+
})
|
|
7244
7249
|
});
|
|
7245
7250
|
}
|
|
7246
7251
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10805,13 +10810,17 @@ function NavigationModal({
|
|
|
10805
10810
|
body,
|
|
10806
10811
|
backgroundColor,
|
|
10807
10812
|
footer,
|
|
10808
|
-
header
|
|
10813
|
+
header,
|
|
10814
|
+
children
|
|
10809
10815
|
}) {
|
|
10810
10816
|
const Component = useBreakpointValue({
|
|
10811
10817
|
base: FullscreenModal,
|
|
10812
10818
|
small: CardModal
|
|
10813
10819
|
});
|
|
10814
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10820
|
+
return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10821
|
+
backgroundColor: backgroundColor,
|
|
10822
|
+
children: children
|
|
10823
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10815
10824
|
body: body,
|
|
10816
10825
|
backgroundColor: backgroundColor,
|
|
10817
10826
|
footer: footer,
|