@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
|
@@ -3811,24 +3811,6 @@ function useStaticBottomSheet(Content) {
|
|
|
3811
3811
|
};
|
|
3812
3812
|
}
|
|
3813
3813
|
|
|
3814
|
-
/**
|
|
3815
|
-
* A utility component that returns its children without any modifications.
|
|
3816
|
-
*
|
|
3817
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3818
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3819
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3820
|
-
*
|
|
3821
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3822
|
-
*
|
|
3823
|
-
* @example
|
|
3824
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3825
|
-
*/
|
|
3826
|
-
function IdentityComponent({
|
|
3827
|
-
children
|
|
3828
|
-
}) {
|
|
3829
|
-
return children;
|
|
3830
|
-
}
|
|
3831
|
-
|
|
3832
3814
|
const overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3833
3815
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3834
3816
|
useEffect(() => {
|
|
@@ -4140,7 +4122,6 @@ function CardModal({
|
|
|
4140
4122
|
header,
|
|
4141
4123
|
body,
|
|
4142
4124
|
footer,
|
|
4143
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
4144
4125
|
...props
|
|
4145
4126
|
}) {
|
|
4146
4127
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -4153,10 +4134,8 @@ function CardModal({
|
|
|
4153
4134
|
maxHeight: "100%",
|
|
4154
4135
|
maxWidth: maxWidth,
|
|
4155
4136
|
minHeight: "kitt.cardModal.minHeight",
|
|
4156
|
-
children: /*#__PURE__*/
|
|
4157
|
-
children:
|
|
4158
|
-
children: [header || null, body || null, footer || null]
|
|
4159
|
-
})
|
|
4137
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4138
|
+
children: [header || null, body || null, footer || null]
|
|
4160
4139
|
})
|
|
4161
4140
|
});
|
|
4162
4141
|
}
|
|
@@ -7230,28 +7209,25 @@ function FullscreenModal({
|
|
|
7230
7209
|
body,
|
|
7231
7210
|
header,
|
|
7232
7211
|
footer,
|
|
7233
|
-
backgroundColor
|
|
7234
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
7212
|
+
backgroundColor
|
|
7235
7213
|
}) {
|
|
7236
|
-
return /*#__PURE__*/
|
|
7214
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
7237
7215
|
backgroundColor: backgroundColor,
|
|
7238
|
-
children: /*#__PURE__*/
|
|
7239
|
-
children:
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
})]
|
|
7254
|
-
})
|
|
7216
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7217
|
+
children: header
|
|
7218
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7219
|
+
flexGrow: 1,
|
|
7220
|
+
flexShrink: 1,
|
|
7221
|
+
justifyContent: "space-between",
|
|
7222
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7223
|
+
bounces: false,
|
|
7224
|
+
contentContainerStyle: {
|
|
7225
|
+
flexGrow: 1,
|
|
7226
|
+
position: 'relative'
|
|
7227
|
+
},
|
|
7228
|
+
children: body
|
|
7229
|
+
}), footer || null]
|
|
7230
|
+
})]
|
|
7255
7231
|
});
|
|
7256
7232
|
}
|
|
7257
7233
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10785,8 +10761,7 @@ function NavigationModal({
|
|
|
10785
10761
|
body,
|
|
10786
10762
|
backgroundColor,
|
|
10787
10763
|
footer,
|
|
10788
|
-
header
|
|
10789
|
-
contentContainer
|
|
10764
|
+
header
|
|
10790
10765
|
}) {
|
|
10791
10766
|
const Component = useBreakpointValue({
|
|
10792
10767
|
base: FullscreenModal,
|
|
@@ -10796,8 +10771,7 @@ function NavigationModal({
|
|
|
10796
10771
|
body: body,
|
|
10797
10772
|
backgroundColor: backgroundColor,
|
|
10798
10773
|
footer: footer,
|
|
10799
|
-
header: header
|
|
10800
|
-
contentContainer: contentContainer
|
|
10774
|
+
header: header
|
|
10801
10775
|
});
|
|
10802
10776
|
}
|
|
10803
10777
|
function Header(props) {
|