@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
|
@@ -4027,7 +4027,10 @@ function CardModalBody({
|
|
|
4027
4027
|
base: 'kitt.4',
|
|
4028
4028
|
medium: 'kitt.6'
|
|
4029
4029
|
},
|
|
4030
|
-
paddingY =
|
|
4030
|
+
paddingY = {
|
|
4031
|
+
base: 'kitt.4',
|
|
4032
|
+
medium: 'kitt.6'
|
|
4033
|
+
},
|
|
4031
4034
|
...props
|
|
4032
4035
|
}) {
|
|
4033
4036
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
@@ -6994,6 +6997,8 @@ function FullscreenModalBody({
|
|
|
6994
6997
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
6995
6998
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
6996
6999
|
return /*#__PURE__*/jsx(View, {
|
|
7000
|
+
flexGrow: 1,
|
|
7001
|
+
flexShrink: 1,
|
|
6997
7002
|
...props,
|
|
6998
7003
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
6999
7004
|
paddingTop: paddingTop,
|
|
@@ -7206,28 +7211,31 @@ function FullscreenModalHeader({
|
|
|
7206
7211
|
}
|
|
7207
7212
|
|
|
7208
7213
|
function FullscreenModal({
|
|
7214
|
+
children,
|
|
7209
7215
|
body,
|
|
7210
7216
|
header,
|
|
7211
7217
|
footer,
|
|
7212
7218
|
backgroundColor
|
|
7213
7219
|
}) {
|
|
7214
|
-
return /*#__PURE__*/
|
|
7220
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7215
7221
|
backgroundColor: backgroundColor,
|
|
7216
|
-
children:
|
|
7217
|
-
children: header
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7222
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
7223
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7224
|
+
children: header
|
|
7225
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7226
|
+
flexGrow: 1,
|
|
7227
|
+
flexShrink: 1,
|
|
7228
|
+
justifyContent: "space-between",
|
|
7229
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7230
|
+
bounces: false,
|
|
7231
|
+
contentContainerStyle: {
|
|
7232
|
+
flexGrow: 1,
|
|
7233
|
+
position: 'relative'
|
|
7234
|
+
},
|
|
7235
|
+
children: body
|
|
7236
|
+
}), footer || null]
|
|
7237
|
+
})]
|
|
7238
|
+
})
|
|
7231
7239
|
});
|
|
7232
7240
|
}
|
|
7233
7241
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10761,13 +10769,17 @@ function NavigationModal({
|
|
|
10761
10769
|
body,
|
|
10762
10770
|
backgroundColor,
|
|
10763
10771
|
footer,
|
|
10764
|
-
header
|
|
10772
|
+
header,
|
|
10773
|
+
children
|
|
10765
10774
|
}) {
|
|
10766
10775
|
const Component = useBreakpointValue({
|
|
10767
10776
|
base: FullscreenModal,
|
|
10768
10777
|
small: CardModal
|
|
10769
10778
|
});
|
|
10770
|
-
return /*#__PURE__*/jsx(Component, {
|
|
10779
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
10780
|
+
backgroundColor: backgroundColor,
|
|
10781
|
+
children: children
|
|
10782
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
10771
10783
|
body: body,
|
|
10772
10784
|
backgroundColor: backgroundColor,
|
|
10773
10785
|
footer: footer,
|