@ornikar/kitt-universal 25.51.1-canary.67a8515dfc0adf469c4c021e0ebe8416cd86dff7.0 → 25.51.1-canary.f795a58d6b1d7afa1371e143a23a37803d7590e5.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 +8 -2
- 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 +5 -5
package/dist/index.es.js
CHANGED
|
@@ -8023,7 +8023,10 @@ function FullscreenModalBody(_ref) {
|
|
|
8023
8023
|
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
8024
8024
|
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8025
8025
|
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8026
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8026
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8027
|
+
flexGrow: 1,
|
|
8028
|
+
flexShrink: 1
|
|
8029
|
+
}, props), {}, {
|
|
8027
8030
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8028
8031
|
paddingTop: paddingTop,
|
|
8029
8032
|
paddingBottom: paddingBottom,
|
|
@@ -8311,27 +8314,30 @@ function FullscreenModalHeader(_ref) {
|
|
|
8311
8314
|
}
|
|
8312
8315
|
|
|
8313
8316
|
function FullscreenModal(_ref) {
|
|
8314
|
-
var
|
|
8317
|
+
var children = _ref.children,
|
|
8318
|
+
body = _ref.body,
|
|
8315
8319
|
header = _ref.header,
|
|
8316
8320
|
footer = _ref.footer,
|
|
8317
8321
|
backgroundColor = _ref.backgroundColor;
|
|
8318
|
-
return /*#__PURE__*/
|
|
8322
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8319
8323
|
backgroundColor: backgroundColor,
|
|
8320
|
-
children:
|
|
8321
|
-
children: header
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8324
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8325
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8326
|
+
children: header
|
|
8327
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8328
|
+
flexGrow: 1,
|
|
8329
|
+
flexShrink: 1,
|
|
8330
|
+
justifyContent: "space-between",
|
|
8331
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8332
|
+
bounces: false,
|
|
8333
|
+
contentContainerStyle: {
|
|
8334
|
+
flexGrow: 1,
|
|
8335
|
+
position: 'relative'
|
|
8336
|
+
},
|
|
8337
|
+
children: body
|
|
8338
|
+
}), footer || null]
|
|
8339
|
+
})]
|
|
8340
|
+
})
|
|
8335
8341
|
});
|
|
8336
8342
|
}
|
|
8337
8343
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11765,12 +11771,16 @@ function NavigationModal(_ref) {
|
|
|
11765
11771
|
var body = _ref.body,
|
|
11766
11772
|
backgroundColor = _ref.backgroundColor,
|
|
11767
11773
|
footer = _ref.footer,
|
|
11768
|
-
header = _ref.header
|
|
11774
|
+
header = _ref.header,
|
|
11775
|
+
children = _ref.children;
|
|
11769
11776
|
var Component = useBreakpointValue({
|
|
11770
11777
|
base: FullscreenModal,
|
|
11771
11778
|
small: CardModal
|
|
11772
11779
|
});
|
|
11773
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11780
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11781
|
+
backgroundColor: backgroundColor,
|
|
11782
|
+
children: children
|
|
11783
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11774
11784
|
body: body,
|
|
11775
11785
|
backgroundColor: backgroundColor,
|
|
11776
11786
|
footer: footer,
|