@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
|
@@ -4171,7 +4171,10 @@ function CardModalBody({
|
|
|
4171
4171
|
base: 'kitt.4',
|
|
4172
4172
|
medium: 'kitt.6'
|
|
4173
4173
|
},
|
|
4174
|
-
paddingY =
|
|
4174
|
+
paddingY = {
|
|
4175
|
+
base: 'kitt.4',
|
|
4176
|
+
medium: 'kitt.6'
|
|
4177
|
+
},
|
|
4175
4178
|
...props
|
|
4176
4179
|
}) {
|
|
4177
4180
|
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
@@ -7778,6 +7781,8 @@ function FullscreenModalBody({
|
|
|
7778
7781
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7779
7782
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7780
7783
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7784
|
+
flexGrow: 1,
|
|
7785
|
+
flexShrink: 1,
|
|
7781
7786
|
...props,
|
|
7782
7787
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7783
7788
|
paddingTop: paddingTop,
|
|
@@ -8055,28 +8060,31 @@ function FullscreenModalHeader({
|
|
|
8055
8060
|
}
|
|
8056
8061
|
|
|
8057
8062
|
function FullscreenModal({
|
|
8063
|
+
children,
|
|
8058
8064
|
body,
|
|
8059
8065
|
header,
|
|
8060
8066
|
footer,
|
|
8061
8067
|
backgroundColor
|
|
8062
8068
|
}) {
|
|
8063
|
-
return /*#__PURE__*/jsxRuntime.
|
|
8069
|
+
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8064
8070
|
backgroundColor: backgroundColor,
|
|
8065
|
-
children:
|
|
8066
|
-
children: header
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8071
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
8072
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8073
|
+
children: header
|
|
8074
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8075
|
+
flexGrow: 1,
|
|
8076
|
+
flexShrink: 1,
|
|
8077
|
+
justifyContent: "space-between",
|
|
8078
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8079
|
+
bounces: false,
|
|
8080
|
+
contentContainerStyle: {
|
|
8081
|
+
flexGrow: 1,
|
|
8082
|
+
position: 'relative'
|
|
8083
|
+
},
|
|
8084
|
+
children: body
|
|
8085
|
+
}), footer || null]
|
|
8086
|
+
})]
|
|
8087
|
+
})
|
|
8080
8088
|
});
|
|
8081
8089
|
}
|
|
8082
8090
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11506,13 +11514,17 @@ function NavigationModal({
|
|
|
11506
11514
|
body,
|
|
11507
11515
|
backgroundColor,
|
|
11508
11516
|
footer,
|
|
11509
|
-
header
|
|
11517
|
+
header,
|
|
11518
|
+
children
|
|
11510
11519
|
}) {
|
|
11511
11520
|
const Component = useBreakpointValue({
|
|
11512
11521
|
base: FullscreenModal,
|
|
11513
11522
|
small: CardModal
|
|
11514
11523
|
});
|
|
11515
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11524
|
+
return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11525
|
+
backgroundColor: backgroundColor,
|
|
11526
|
+
children: children
|
|
11527
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11516
11528
|
body: body,
|
|
11517
11529
|
backgroundColor: backgroundColor,
|
|
11518
11530
|
footer: footer,
|