@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
|
@@ -4034,7 +4034,10 @@ function CardModalBody({
|
|
|
4034
4034
|
base: 'kitt.4',
|
|
4035
4035
|
medium: 'kitt.6'
|
|
4036
4036
|
},
|
|
4037
|
-
paddingY =
|
|
4037
|
+
paddingY = {
|
|
4038
|
+
base: 'kitt.4',
|
|
4039
|
+
medium: 'kitt.6'
|
|
4040
|
+
},
|
|
4038
4041
|
...props
|
|
4039
4042
|
}) {
|
|
4040
4043
|
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
@@ -7001,6 +7004,8 @@ function FullscreenModalBody({
|
|
|
7001
7004
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7002
7005
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7003
7006
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7007
|
+
flexGrow: 1,
|
|
7008
|
+
flexShrink: 1,
|
|
7004
7009
|
...props,
|
|
7005
7010
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7006
7011
|
paddingTop: paddingTop,
|
|
@@ -7213,28 +7218,31 @@ function FullscreenModalHeader({
|
|
|
7213
7218
|
}
|
|
7214
7219
|
|
|
7215
7220
|
function FullscreenModal({
|
|
7221
|
+
children,
|
|
7216
7222
|
body,
|
|
7217
7223
|
header,
|
|
7218
7224
|
footer,
|
|
7219
7225
|
backgroundColor
|
|
7220
7226
|
}) {
|
|
7221
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7227
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
7222
7228
|
backgroundColor: backgroundColor,
|
|
7223
|
-
children:
|
|
7224
|
-
children: header
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7229
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7230
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7231
|
+
children: header
|
|
7232
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7233
|
+
flexGrow: 1,
|
|
7234
|
+
flexShrink: 1,
|
|
7235
|
+
justifyContent: "space-between",
|
|
7236
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7237
|
+
bounces: false,
|
|
7238
|
+
contentContainerStyle: {
|
|
7239
|
+
flexGrow: 1,
|
|
7240
|
+
position: 'relative'
|
|
7241
|
+
},
|
|
7242
|
+
children: body
|
|
7243
|
+
}), footer || null]
|
|
7244
|
+
})]
|
|
7245
|
+
})
|
|
7238
7246
|
});
|
|
7239
7247
|
}
|
|
7240
7248
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10768,13 +10776,17 @@ function NavigationModal({
|
|
|
10768
10776
|
body,
|
|
10769
10777
|
backgroundColor,
|
|
10770
10778
|
footer,
|
|
10771
|
-
header
|
|
10779
|
+
header,
|
|
10780
|
+
children
|
|
10772
10781
|
}) {
|
|
10773
10782
|
const Component = useBreakpointValue({
|
|
10774
10783
|
base: FullscreenModal,
|
|
10775
10784
|
small: CardModal
|
|
10776
10785
|
});
|
|
10777
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10786
|
+
return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10787
|
+
backgroundColor: backgroundColor,
|
|
10788
|
+
children: children
|
|
10789
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
10778
10790
|
body: body,
|
|
10779
10791
|
backgroundColor: backgroundColor,
|
|
10780
10792
|
footer: footer,
|