@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.js
CHANGED
|
@@ -8027,7 +8027,10 @@ function FullscreenModalBody(_ref) {
|
|
|
8027
8027
|
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
8028
8028
|
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8029
8029
|
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8030
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8030
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8031
|
+
flexGrow: 1,
|
|
8032
|
+
flexShrink: 1
|
|
8033
|
+
}, props), {}, {
|
|
8031
8034
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8032
8035
|
paddingTop: paddingTop,
|
|
8033
8036
|
paddingBottom: paddingBottom,
|
|
@@ -8315,27 +8318,30 @@ function FullscreenModalHeader(_ref) {
|
|
|
8315
8318
|
}
|
|
8316
8319
|
|
|
8317
8320
|
function FullscreenModal(_ref) {
|
|
8318
|
-
var
|
|
8321
|
+
var children = _ref.children,
|
|
8322
|
+
body = _ref.body,
|
|
8319
8323
|
header = _ref.header,
|
|
8320
8324
|
footer = _ref.footer,
|
|
8321
8325
|
backgroundColor = _ref.backgroundColor;
|
|
8322
|
-
return /*#__PURE__*/
|
|
8326
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8323
8327
|
backgroundColor: backgroundColor,
|
|
8324
|
-
children:
|
|
8325
|
-
children: header
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8328
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8329
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8330
|
+
children: header
|
|
8331
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8332
|
+
flexGrow: 1,
|
|
8333
|
+
flexShrink: 1,
|
|
8334
|
+
justifyContent: "space-between",
|
|
8335
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8336
|
+
bounces: false,
|
|
8337
|
+
contentContainerStyle: {
|
|
8338
|
+
flexGrow: 1,
|
|
8339
|
+
position: 'relative'
|
|
8340
|
+
},
|
|
8341
|
+
children: body
|
|
8342
|
+
}), footer || null]
|
|
8343
|
+
})]
|
|
8344
|
+
})
|
|
8339
8345
|
});
|
|
8340
8346
|
}
|
|
8341
8347
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11800,12 +11806,16 @@ function NavigationModal(_ref) {
|
|
|
11800
11806
|
var body = _ref.body,
|
|
11801
11807
|
backgroundColor = _ref.backgroundColor,
|
|
11802
11808
|
footer = _ref.footer,
|
|
11803
|
-
header = _ref.header
|
|
11809
|
+
header = _ref.header,
|
|
11810
|
+
children = _ref.children;
|
|
11804
11811
|
var Component = useBreakpointValue({
|
|
11805
11812
|
base: FullscreenModal,
|
|
11806
11813
|
small: CardModal
|
|
11807
11814
|
});
|
|
11808
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11815
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11816
|
+
backgroundColor: backgroundColor,
|
|
11817
|
+
children: children
|
|
11818
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11809
11819
|
body: body,
|
|
11810
11820
|
backgroundColor: backgroundColor,
|
|
11811
11821
|
footer: footer,
|