@ornikar/kitt-universal 25.46.0 → 25.46.1-canary.9950f4eb84cbfcf1d45de4e6c9ad226210c5404f.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 +11 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +3 -2
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts +3 -2
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +3 -2
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +39 -24
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +39 -24
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +37 -22
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +29 -19
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +37 -22
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +29 -19
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +43 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +34 -20
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3841,7 +3841,7 @@ function Avatar(_ref2) {
|
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
|
-
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3844
|
+
var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
|
|
3845
3845
|
function BottomSheetComp(_ref, ref) {
|
|
3846
3846
|
var Content = _ref.children,
|
|
3847
3847
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -3854,6 +3854,11 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3854
3854
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
3855
3855
|
_ref$snapPoints = _ref.snapPoints,
|
|
3856
3856
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
3857
|
+
_ref$contentContainer = _ref.contentContainer,
|
|
3858
|
+
ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
|
|
3859
|
+
var children = _ref2.children;
|
|
3860
|
+
return children;
|
|
3861
|
+
} : _ref$contentContainer,
|
|
3857
3862
|
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
3858
3863
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
3859
3864
|
top = _useSafeAreaInsets.top;
|
|
@@ -3886,7 +3891,9 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3886
3891
|
topInset: top,
|
|
3887
3892
|
children: function children(props) {
|
|
3888
3893
|
return /*#__PURE__*/jsx(Wrapper, {
|
|
3889
|
-
children:
|
|
3894
|
+
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
3895
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3896
|
+
})
|
|
3890
3897
|
});
|
|
3891
3898
|
}
|
|
3892
3899
|
}));
|
|
@@ -4291,7 +4298,7 @@ function CardModalHeader(_ref) {
|
|
|
4291
4298
|
}));
|
|
4292
4299
|
}
|
|
4293
4300
|
|
|
4294
|
-
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4301
|
+
var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
|
|
4295
4302
|
function CardModal(_ref) {
|
|
4296
4303
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4297
4304
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4302,6 +4309,11 @@ function CardModal(_ref) {
|
|
|
4302
4309
|
header = _ref.header,
|
|
4303
4310
|
body = _ref.body,
|
|
4304
4311
|
footer = _ref.footer,
|
|
4312
|
+
_ref$contentContainer = _ref.contentContainer,
|
|
4313
|
+
ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
|
|
4314
|
+
var originalChildren = _ref2.children;
|
|
4315
|
+
return originalChildren;
|
|
4316
|
+
} : _ref$contentContainer,
|
|
4305
4317
|
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4306
4318
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4307
4319
|
overflow: "hidden",
|
|
@@ -4312,8 +4324,10 @@ function CardModal(_ref) {
|
|
|
4312
4324
|
maxHeight: "100%",
|
|
4313
4325
|
maxWidth: maxWidth,
|
|
4314
4326
|
minHeight: "kitt.cardModal.minHeight",
|
|
4315
|
-
children:
|
|
4316
|
-
children:
|
|
4327
|
+
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
4328
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4329
|
+
children: [header || null, body || null, footer || null]
|
|
4330
|
+
})
|
|
4317
4331
|
})
|
|
4318
4332
|
}));
|
|
4319
4333
|
}
|
|
@@ -8311,24 +8325,31 @@ function FullscreenModal(_ref) {
|
|
|
8311
8325
|
var body = _ref.body,
|
|
8312
8326
|
header = _ref.header,
|
|
8313
8327
|
footer = _ref.footer,
|
|
8314
|
-
backgroundColor = _ref.backgroundColor
|
|
8315
|
-
|
|
8328
|
+
backgroundColor = _ref.backgroundColor,
|
|
8329
|
+
_ref$contentContainer = _ref.contentContainer,
|
|
8330
|
+
ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
|
|
8331
|
+
var children = _ref2.children;
|
|
8332
|
+
return children;
|
|
8333
|
+
} : _ref$contentContainer;
|
|
8334
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8316
8335
|
backgroundColor: backgroundColor,
|
|
8317
|
-
children:
|
|
8318
|
-
children: header
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8336
|
+
children: /*#__PURE__*/jsxs(ContentContainer, {
|
|
8337
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8338
|
+
children: header
|
|
8339
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8340
|
+
flexGrow: 1,
|
|
8341
|
+
flexShrink: 1,
|
|
8342
|
+
justifyContent: "space-between",
|
|
8343
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8344
|
+
bounces: false,
|
|
8345
|
+
contentContainerStyle: {
|
|
8346
|
+
flexGrow: 1,
|
|
8347
|
+
position: 'relative'
|
|
8348
|
+
},
|
|
8349
|
+
children: body
|
|
8350
|
+
}), footer || null]
|
|
8351
|
+
})]
|
|
8352
|
+
})
|
|
8332
8353
|
});
|
|
8333
8354
|
}
|
|
8334
8355
|
FullscreenModal.Header = FullscreenModalHeader;
|