@ornikar/kitt-universal 25.48.0 → 25.49.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/BottomSheet/BottomSheet.d.ts +2 -3
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts +2 -3
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +26 -55
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +26 -55
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +24 -53
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +21 -47
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +24 -53
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +21 -47
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +24 -55
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +22 -49
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
- package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
|
@@ -3818,24 +3818,6 @@ function useStaticBottomSheet(Content) {
|
|
|
3818
3818
|
};
|
|
3819
3819
|
}
|
|
3820
3820
|
|
|
3821
|
-
/**
|
|
3822
|
-
* A utility component that returns its children without any modifications.
|
|
3823
|
-
*
|
|
3824
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3825
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3826
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3827
|
-
*
|
|
3828
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3829
|
-
*
|
|
3830
|
-
* @example
|
|
3831
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3832
|
-
*/
|
|
3833
|
-
function IdentityComponent({
|
|
3834
|
-
children
|
|
3835
|
-
}) {
|
|
3836
|
-
return children;
|
|
3837
|
-
}
|
|
3838
|
-
|
|
3839
3821
|
const overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3840
3822
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3841
3823
|
react.useEffect(() => {
|
|
@@ -4147,7 +4129,6 @@ function CardModal({
|
|
|
4147
4129
|
header,
|
|
4148
4130
|
body,
|
|
4149
4131
|
footer,
|
|
4150
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
4151
4132
|
...props
|
|
4152
4133
|
}) {
|
|
4153
4134
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4160,10 +4141,8 @@ function CardModal({
|
|
|
4160
4141
|
maxHeight: "100%",
|
|
4161
4142
|
maxWidth: maxWidth,
|
|
4162
4143
|
minHeight: "kitt.cardModal.minHeight",
|
|
4163
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
4164
|
-
children:
|
|
4165
|
-
children: [header || null, body || null, footer || null]
|
|
4166
|
-
})
|
|
4144
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4145
|
+
children: [header || null, body || null, footer || null]
|
|
4167
4146
|
})
|
|
4168
4147
|
});
|
|
4169
4148
|
}
|
|
@@ -7237,28 +7216,25 @@ function FullscreenModal({
|
|
|
7237
7216
|
body,
|
|
7238
7217
|
header,
|
|
7239
7218
|
footer,
|
|
7240
|
-
backgroundColor
|
|
7241
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
7219
|
+
backgroundColor
|
|
7242
7220
|
}) {
|
|
7243
|
-
return /*#__PURE__*/jsxRuntime.
|
|
7221
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
|
|
7244
7222
|
backgroundColor: backgroundColor,
|
|
7245
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
7246
|
-
children:
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
})]
|
|
7261
|
-
})
|
|
7223
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7224
|
+
children: header
|
|
7225
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
7226
|
+
flexGrow: 1,
|
|
7227
|
+
flexShrink: 1,
|
|
7228
|
+
justifyContent: "space-between",
|
|
7229
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
7230
|
+
bounces: false,
|
|
7231
|
+
contentContainerStyle: {
|
|
7232
|
+
flexGrow: 1,
|
|
7233
|
+
position: 'relative'
|
|
7234
|
+
},
|
|
7235
|
+
children: body
|
|
7236
|
+
}), footer || null]
|
|
7237
|
+
})]
|
|
7262
7238
|
});
|
|
7263
7239
|
}
|
|
7264
7240
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10792,8 +10768,7 @@ function NavigationModal({
|
|
|
10792
10768
|
body,
|
|
10793
10769
|
backgroundColor,
|
|
10794
10770
|
footer,
|
|
10795
|
-
header
|
|
10796
|
-
contentContainer
|
|
10771
|
+
header
|
|
10797
10772
|
}) {
|
|
10798
10773
|
const Component = useBreakpointValue({
|
|
10799
10774
|
base: FullscreenModal,
|
|
@@ -10803,8 +10778,7 @@ function NavigationModal({
|
|
|
10803
10778
|
body: body,
|
|
10804
10779
|
backgroundColor: backgroundColor,
|
|
10805
10780
|
footer: footer,
|
|
10806
|
-
header: header
|
|
10807
|
-
contentContainer: contentContainer
|
|
10781
|
+
header: header
|
|
10808
10782
|
});
|
|
10809
10783
|
}
|
|
10810
10784
|
function Header(props) {
|