@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
|
@@ -7004,6 +7004,8 @@ function FullscreenModalBody({
|
|
|
7004
7004
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7005
7005
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7006
7006
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7007
|
+
flexGrow: 1,
|
|
7008
|
+
flexShrink: 1,
|
|
7007
7009
|
...props,
|
|
7008
7010
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7009
7011
|
paddingTop: paddingTop,
|
|
@@ -7216,28 +7218,31 @@ function FullscreenModalHeader({
|
|
|
7216
7218
|
}
|
|
7217
7219
|
|
|
7218
7220
|
function FullscreenModal({
|
|
7221
|
+
children,
|
|
7219
7222
|
body,
|
|
7220
7223
|
header,
|
|
7221
7224
|
footer,
|
|
7222
7225
|
backgroundColor
|
|
7223
7226
|
}) {
|
|
7224
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7227
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
7225
7228
|
backgroundColor: backgroundColor,
|
|
7226
|
-
children:
|
|
7227
|
-
children: header
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7229
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7230
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7231
|
+
children: header
|
|
7232
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7233
|
+
flexGrow: 1,
|
|
7234
|
+
flexShrink: 1,
|
|
7235
|
+
justifyContent: "space-between",
|
|
7236
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7237
|
+
bounces: false,
|
|
7238
|
+
contentContainerStyle: {
|
|
7239
|
+
flexGrow: 1,
|
|
7240
|
+
position: 'relative'
|
|
7241
|
+
},
|
|
7242
|
+
children: body
|
|
7243
|
+
}), footer || null]
|
|
7244
|
+
})]
|
|
7245
|
+
})
|
|
7241
7246
|
});
|
|
7242
7247
|
}
|
|
7243
7248
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10771,13 +10776,17 @@ function NavigationModal({
|
|
|
10771
10776
|
body,
|
|
10772
10777
|
backgroundColor,
|
|
10773
10778
|
footer,
|
|
10774
|
-
header
|
|
10779
|
+
header,
|
|
10780
|
+
children
|
|
10775
10781
|
}) {
|
|
10776
10782
|
const Component = useBreakpointValue({
|
|
10777
10783
|
base: FullscreenModal,
|
|
10778
10784
|
small: CardModal
|
|
10779
10785
|
});
|
|
10780
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10786
|
+
return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10787
|
+
backgroundColor: backgroundColor,
|
|
10788
|
+
children: children
|
|
10789
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10781
10790
|
body: body,
|
|
10782
10791
|
backgroundColor: backgroundColor,
|
|
10783
10792
|
footer: footer,
|