@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
package/dist/index.es.js
CHANGED
|
@@ -3841,24 +3841,7 @@ function Avatar(_ref2) {
|
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
|
-
|
|
3845
|
-
* A utility component that returns its children without any modifications.
|
|
3846
|
-
*
|
|
3847
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3848
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3849
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3850
|
-
*
|
|
3851
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3852
|
-
*
|
|
3853
|
-
* @example
|
|
3854
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3855
|
-
*/
|
|
3856
|
-
function IdentityComponent(_ref) {
|
|
3857
|
-
var children = _ref.children;
|
|
3858
|
-
return children;
|
|
3859
|
-
}
|
|
3860
|
-
|
|
3861
|
-
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
|
|
3844
|
+
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3862
3845
|
function BottomSheetComp(_ref, ref) {
|
|
3863
3846
|
var Content = _ref.children,
|
|
3864
3847
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -3871,8 +3854,6 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3871
3854
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
3872
3855
|
_ref$snapPoints = _ref.snapPoints,
|
|
3873
3856
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
3874
|
-
_ref$contentContainer = _ref.contentContainer,
|
|
3875
|
-
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
|
|
3876
3857
|
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
3877
3858
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
3878
3859
|
top = _useSafeAreaInsets.top;
|
|
@@ -3905,9 +3886,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3905
3886
|
topInset: top,
|
|
3906
3887
|
children: function children(props) {
|
|
3907
3888
|
return /*#__PURE__*/jsx(Wrapper, {
|
|
3908
|
-
children: /*#__PURE__*/jsx(
|
|
3909
|
-
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3910
|
-
})
|
|
3889
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3911
3890
|
});
|
|
3912
3891
|
}
|
|
3913
3892
|
}));
|
|
@@ -4312,7 +4291,7 @@ function CardModalHeader(_ref) {
|
|
|
4312
4291
|
}));
|
|
4313
4292
|
}
|
|
4314
4293
|
|
|
4315
|
-
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"
|
|
4294
|
+
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4316
4295
|
function CardModal(_ref) {
|
|
4317
4296
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4318
4297
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4323,8 +4302,6 @@ function CardModal(_ref) {
|
|
|
4323
4302
|
header = _ref.header,
|
|
4324
4303
|
body = _ref.body,
|
|
4325
4304
|
footer = _ref.footer,
|
|
4326
|
-
_ref$contentContainer = _ref.contentContainer,
|
|
4327
|
-
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
|
|
4328
4305
|
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4329
4306
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4330
4307
|
overflow: "hidden",
|
|
@@ -4335,10 +4312,8 @@ function CardModal(_ref) {
|
|
|
4335
4312
|
maxHeight: "100%",
|
|
4336
4313
|
maxWidth: maxWidth,
|
|
4337
4314
|
minHeight: "kitt.cardModal.minHeight",
|
|
4338
|
-
children: /*#__PURE__*/
|
|
4339
|
-
children:
|
|
4340
|
-
children: [header || null, body || null, footer || null]
|
|
4341
|
-
})
|
|
4315
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4316
|
+
children: [header || null, body || null, footer || null]
|
|
4342
4317
|
})
|
|
4343
4318
|
}));
|
|
4344
4319
|
}
|
|
@@ -8336,28 +8311,24 @@ function FullscreenModal(_ref) {
|
|
|
8336
8311
|
var body = _ref.body,
|
|
8337
8312
|
header = _ref.header,
|
|
8338
8313
|
footer = _ref.footer,
|
|
8339
|
-
backgroundColor = _ref.backgroundColor
|
|
8340
|
-
|
|
8341
|
-
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
|
|
8342
|
-
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8314
|
+
backgroundColor = _ref.backgroundColor;
|
|
8315
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
8343
8316
|
backgroundColor: backgroundColor,
|
|
8344
|
-
children: /*#__PURE__*/
|
|
8345
|
-
children:
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
})]
|
|
8360
|
-
})
|
|
8317
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8318
|
+
children: header
|
|
8319
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8320
|
+
flexGrow: 1,
|
|
8321
|
+
flexShrink: 1,
|
|
8322
|
+
justifyContent: "space-between",
|
|
8323
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8324
|
+
bounces: false,
|
|
8325
|
+
contentContainerStyle: {
|
|
8326
|
+
flexGrow: 1,
|
|
8327
|
+
position: 'relative'
|
|
8328
|
+
},
|
|
8329
|
+
children: body
|
|
8330
|
+
}), footer || null]
|
|
8331
|
+
})]
|
|
8361
8332
|
});
|
|
8362
8333
|
}
|
|
8363
8334
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11791,8 +11762,7 @@ function NavigationModal(_ref) {
|
|
|
11791
11762
|
var body = _ref.body,
|
|
11792
11763
|
backgroundColor = _ref.backgroundColor,
|
|
11793
11764
|
footer = _ref.footer,
|
|
11794
|
-
header = _ref.header
|
|
11795
|
-
contentContainer = _ref.contentContainer;
|
|
11765
|
+
header = _ref.header;
|
|
11796
11766
|
var Component = useBreakpointValue({
|
|
11797
11767
|
base: FullscreenModal,
|
|
11798
11768
|
small: CardModal
|
|
@@ -11801,8 +11771,7 @@ function NavigationModal(_ref) {
|
|
|
11801
11771
|
body: body,
|
|
11802
11772
|
backgroundColor: backgroundColor,
|
|
11803
11773
|
footer: footer,
|
|
11804
|
-
header: header
|
|
11805
|
-
contentContainer: contentContainer
|
|
11774
|
+
header: header
|
|
11806
11775
|
});
|
|
11807
11776
|
}
|
|
11808
11777
|
function Header(props) {
|