@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.web.js
CHANGED
|
@@ -3853,23 +3853,6 @@ function useStaticBottomSheet(Content) {
|
|
|
3853
3853
|
};
|
|
3854
3854
|
}
|
|
3855
3855
|
|
|
3856
|
-
/**
|
|
3857
|
-
* A utility component that returns its children without any modifications.
|
|
3858
|
-
*
|
|
3859
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3860
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3861
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3862
|
-
*
|
|
3863
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3864
|
-
*
|
|
3865
|
-
* @example
|
|
3866
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3867
|
-
*/
|
|
3868
|
-
function IdentityComponent(_ref) {
|
|
3869
|
-
var children = _ref.children;
|
|
3870
|
-
return children;
|
|
3871
|
-
}
|
|
3872
|
-
|
|
3873
3856
|
var overflowHidden = "kitt-u_overflowHidden_otm3u3";
|
|
3874
3857
|
function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
|
|
3875
3858
|
useEffect(function () {
|
|
@@ -4171,7 +4154,7 @@ function CardModalHeader(_ref) {
|
|
|
4171
4154
|
}));
|
|
4172
4155
|
}
|
|
4173
4156
|
|
|
4174
|
-
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"
|
|
4157
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4175
4158
|
function CardModal(_ref) {
|
|
4176
4159
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4177
4160
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4182,8 +4165,6 @@ function CardModal(_ref) {
|
|
|
4182
4165
|
header = _ref.header,
|
|
4183
4166
|
body = _ref.body,
|
|
4184
4167
|
footer = _ref.footer,
|
|
4185
|
-
_ref$contentContainer = _ref.contentContainer,
|
|
4186
|
-
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
|
|
4187
4168
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4188
4169
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4189
4170
|
overflow: "hidden",
|
|
@@ -4194,10 +4175,8 @@ function CardModal(_ref) {
|
|
|
4194
4175
|
maxHeight: "100%",
|
|
4195
4176
|
maxWidth: maxWidth,
|
|
4196
4177
|
minHeight: "kitt.cardModal.minHeight",
|
|
4197
|
-
children: /*#__PURE__*/
|
|
4198
|
-
children:
|
|
4199
|
-
children: [header || null, body || null, footer || null]
|
|
4200
|
-
})
|
|
4178
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4179
|
+
children: [header || null, body || null, footer || null]
|
|
4201
4180
|
})
|
|
4202
4181
|
}));
|
|
4203
4182
|
}
|
|
@@ -7417,28 +7396,24 @@ function FullscreenModal(_ref) {
|
|
|
7417
7396
|
var body = _ref.body,
|
|
7418
7397
|
header = _ref.header,
|
|
7419
7398
|
footer = _ref.footer,
|
|
7420
|
-
backgroundColor = _ref.backgroundColor
|
|
7421
|
-
|
|
7422
|
-
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
|
|
7423
|
-
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7399
|
+
backgroundColor = _ref.backgroundColor;
|
|
7400
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
7424
7401
|
backgroundColor: backgroundColor,
|
|
7425
|
-
children: /*#__PURE__*/
|
|
7426
|
-
children:
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
})]
|
|
7441
|
-
})
|
|
7402
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7403
|
+
children: header
|
|
7404
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7405
|
+
flexGrow: 1,
|
|
7406
|
+
flexShrink: 1,
|
|
7407
|
+
justifyContent: "space-between",
|
|
7408
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7409
|
+
bounces: false,
|
|
7410
|
+
contentContainerStyle: {
|
|
7411
|
+
flexGrow: 1,
|
|
7412
|
+
position: 'relative'
|
|
7413
|
+
},
|
|
7414
|
+
children: body
|
|
7415
|
+
}), footer || null]
|
|
7416
|
+
})]
|
|
7442
7417
|
});
|
|
7443
7418
|
}
|
|
7444
7419
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -10979,8 +10954,7 @@ function NavigationModal(_ref) {
|
|
|
10979
10954
|
var body = _ref.body,
|
|
10980
10955
|
backgroundColor = _ref.backgroundColor,
|
|
10981
10956
|
footer = _ref.footer,
|
|
10982
|
-
header = _ref.header
|
|
10983
|
-
contentContainer = _ref.contentContainer;
|
|
10957
|
+
header = _ref.header;
|
|
10984
10958
|
var Component = useBreakpointValue({
|
|
10985
10959
|
base: FullscreenModal,
|
|
10986
10960
|
small: CardModal
|
|
@@ -10989,8 +10963,7 @@ function NavigationModal(_ref) {
|
|
|
10989
10963
|
body: body,
|
|
10990
10964
|
backgroundColor: backgroundColor,
|
|
10991
10965
|
footer: footer,
|
|
10992
|
-
header: header
|
|
10993
|
-
contentContainer: contentContainer
|
|
10966
|
+
header: header
|
|
10994
10967
|
});
|
|
10995
10968
|
}
|
|
10996
10969
|
function Header(props) {
|