@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.web.js
CHANGED
|
@@ -7183,7 +7183,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7183
7183
|
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
7184
7184
|
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7185
7185
|
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7186
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7186
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7187
|
+
flexGrow: 1,
|
|
7188
|
+
flexShrink: 1
|
|
7189
|
+
}, props), {}, {
|
|
7187
7190
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7188
7191
|
paddingTop: paddingTop,
|
|
7189
7192
|
paddingBottom: paddingBottom,
|
|
@@ -7396,27 +7399,30 @@ function FullscreenModalHeader(_ref) {
|
|
|
7396
7399
|
}
|
|
7397
7400
|
|
|
7398
7401
|
function FullscreenModal(_ref) {
|
|
7399
|
-
var
|
|
7402
|
+
var children = _ref.children,
|
|
7403
|
+
body = _ref.body,
|
|
7400
7404
|
header = _ref.header,
|
|
7401
7405
|
footer = _ref.footer,
|
|
7402
7406
|
backgroundColor = _ref.backgroundColor;
|
|
7403
|
-
return /*#__PURE__*/
|
|
7407
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7404
7408
|
backgroundColor: backgroundColor,
|
|
7405
|
-
children:
|
|
7406
|
-
children: header
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7409
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7410
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7411
|
+
children: header
|
|
7412
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7413
|
+
flexGrow: 1,
|
|
7414
|
+
flexShrink: 1,
|
|
7415
|
+
justifyContent: "space-between",
|
|
7416
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7417
|
+
bounces: false,
|
|
7418
|
+
contentContainerStyle: {
|
|
7419
|
+
flexGrow: 1,
|
|
7420
|
+
position: 'relative'
|
|
7421
|
+
},
|
|
7422
|
+
children: body
|
|
7423
|
+
}), footer || null]
|
|
7424
|
+
})]
|
|
7425
|
+
})
|
|
7420
7426
|
});
|
|
7421
7427
|
}
|
|
7422
7428
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10957,12 +10963,16 @@ function NavigationModal(_ref) {
|
|
|
10957
10963
|
var body = _ref.body,
|
|
10958
10964
|
backgroundColor = _ref.backgroundColor,
|
|
10959
10965
|
footer = _ref.footer,
|
|
10960
|
-
header = _ref.header
|
|
10966
|
+
header = _ref.header,
|
|
10967
|
+
children = _ref.children;
|
|
10961
10968
|
var Component = useBreakpointValue({
|
|
10962
10969
|
base: FullscreenModal,
|
|
10963
10970
|
small: CardModal
|
|
10964
10971
|
});
|
|
10965
|
-
return /*#__PURE__*/jsx(Component, {
|
|
10972
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
10973
|
+
backgroundColor: backgroundColor,
|
|
10974
|
+
children: children
|
|
10975
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
10966
10976
|
body: body,
|
|
10967
10977
|
backgroundColor: backgroundColor,
|
|
10968
10978
|
footer: footer,
|