@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
package/dist/index.es.web.js
CHANGED
|
@@ -7187,7 +7187,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7187
7187
|
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
7188
7188
|
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7189
7189
|
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7190
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7190
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7191
|
+
flexGrow: 1,
|
|
7192
|
+
flexShrink: 1
|
|
7193
|
+
}, props), {}, {
|
|
7191
7194
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7192
7195
|
paddingTop: paddingTop,
|
|
7193
7196
|
paddingBottom: paddingBottom,
|
|
@@ -7400,27 +7403,30 @@ function FullscreenModalHeader(_ref) {
|
|
|
7400
7403
|
}
|
|
7401
7404
|
|
|
7402
7405
|
function FullscreenModal(_ref) {
|
|
7403
|
-
var
|
|
7406
|
+
var children = _ref.children,
|
|
7407
|
+
body = _ref.body,
|
|
7404
7408
|
header = _ref.header,
|
|
7405
7409
|
footer = _ref.footer,
|
|
7406
7410
|
backgroundColor = _ref.backgroundColor;
|
|
7407
|
-
return /*#__PURE__*/
|
|
7411
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7408
7412
|
backgroundColor: backgroundColor,
|
|
7409
|
-
children:
|
|
7410
|
-
children: header
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7413
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7414
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7415
|
+
children: header
|
|
7416
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7417
|
+
flexGrow: 1,
|
|
7418
|
+
flexShrink: 1,
|
|
7419
|
+
justifyContent: "space-between",
|
|
7420
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7421
|
+
bounces: false,
|
|
7422
|
+
contentContainerStyle: {
|
|
7423
|
+
flexGrow: 1,
|
|
7424
|
+
position: 'relative'
|
|
7425
|
+
},
|
|
7426
|
+
children: body
|
|
7427
|
+
}), footer || null]
|
|
7428
|
+
})]
|
|
7429
|
+
})
|
|
7424
7430
|
});
|
|
7425
7431
|
}
|
|
7426
7432
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10992,12 +10998,16 @@ function NavigationModal(_ref) {
|
|
|
10992
10998
|
var body = _ref.body,
|
|
10993
10999
|
backgroundColor = _ref.backgroundColor,
|
|
10994
11000
|
footer = _ref.footer,
|
|
10995
|
-
header = _ref.header
|
|
11001
|
+
header = _ref.header,
|
|
11002
|
+
children = _ref.children;
|
|
10996
11003
|
var Component = useBreakpointValue({
|
|
10997
11004
|
base: FullscreenModal,
|
|
10998
11005
|
small: CardModal
|
|
10999
11006
|
});
|
|
11000
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11007
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11008
|
+
backgroundColor: backgroundColor,
|
|
11009
|
+
children: children
|
|
11010
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11001
11011
|
body: body,
|
|
11002
11012
|
backgroundColor: backgroundColor,
|
|
11003
11013
|
footer: footer,
|