@ornikar/kitt-universal 25.50.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 +23 -0
- package/dist/definitions/CardModal/CardModal.d.ts +3 -0
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalBody.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 +33 -20
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +33 -20
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +31 -19
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +31 -19
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +31 -19
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +31 -19
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +34 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +34 -21
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4148,7 +4148,10 @@ function CardModalBody(_ref) {
|
|
|
4148
4148
|
base: 'kitt.4',
|
|
4149
4149
|
medium: 'kitt.6'
|
|
4150
4150
|
},
|
|
4151
|
-
paddingY =
|
|
4151
|
+
paddingY = {
|
|
4152
|
+
base: 'kitt.4',
|
|
4153
|
+
medium: 'kitt.6'
|
|
4154
|
+
}
|
|
4152
4155
|
} = _ref,
|
|
4153
4156
|
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4154
4157
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
@@ -7778,7 +7781,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7778
7781
|
} = useTheme();
|
|
7779
7782
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7780
7783
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7781
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7784
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7785
|
+
flexGrow: 1,
|
|
7786
|
+
flexShrink: 1
|
|
7787
|
+
}, props), {}, {
|
|
7782
7788
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7783
7789
|
paddingTop: paddingTop,
|
|
7784
7790
|
paddingBottom: paddingBottom,
|
|
@@ -8060,28 +8066,31 @@ function FullscreenModalHeader(_ref) {
|
|
|
8060
8066
|
}
|
|
8061
8067
|
|
|
8062
8068
|
function FullscreenModal({
|
|
8069
|
+
children,
|
|
8063
8070
|
body,
|
|
8064
8071
|
header,
|
|
8065
8072
|
footer,
|
|
8066
8073
|
backgroundColor
|
|
8067
8074
|
}) {
|
|
8068
|
-
return /*#__PURE__*/
|
|
8075
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8069
8076
|
backgroundColor: backgroundColor,
|
|
8070
|
-
children:
|
|
8071
|
-
children: header
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8077
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8078
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8079
|
+
children: header
|
|
8080
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8081
|
+
flexGrow: 1,
|
|
8082
|
+
flexShrink: 1,
|
|
8083
|
+
justifyContent: "space-between",
|
|
8084
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8085
|
+
bounces: false,
|
|
8086
|
+
contentContainerStyle: {
|
|
8087
|
+
flexGrow: 1,
|
|
8088
|
+
position: 'relative'
|
|
8089
|
+
},
|
|
8090
|
+
children: body
|
|
8091
|
+
}), footer || null]
|
|
8092
|
+
})]
|
|
8093
|
+
})
|
|
8085
8094
|
});
|
|
8086
8095
|
}
|
|
8087
8096
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11502,13 +11511,17 @@ function NavigationModal({
|
|
|
11502
11511
|
body,
|
|
11503
11512
|
backgroundColor,
|
|
11504
11513
|
footer,
|
|
11505
|
-
header
|
|
11514
|
+
header,
|
|
11515
|
+
children
|
|
11506
11516
|
}) {
|
|
11507
11517
|
const Component = useBreakpointValue({
|
|
11508
11518
|
base: FullscreenModal,
|
|
11509
11519
|
small: CardModal
|
|
11510
11520
|
});
|
|
11511
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11521
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11522
|
+
backgroundColor: backgroundColor,
|
|
11523
|
+
children: children
|
|
11524
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11512
11525
|
body: body,
|
|
11513
11526
|
backgroundColor: backgroundColor,
|
|
11514
11527
|
footer: footer,
|