@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
|
@@ -3804,7 +3804,7 @@ function Avatar(_ref) {
|
|
|
3804
3804
|
});
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
3807
|
-
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3807
|
+
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
|
|
3808
3808
|
function BottomSheetComp(_ref, ref) {
|
|
3809
3809
|
let {
|
|
3810
3810
|
children: Content,
|
|
@@ -3812,7 +3812,10 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3812
3812
|
hasBackdrop = true,
|
|
3813
3813
|
hasHandle = true,
|
|
3814
3814
|
enableDynamicSizing = true,
|
|
3815
|
-
snapPoints = ['100%']
|
|
3815
|
+
snapPoints = ['100%'],
|
|
3816
|
+
contentContainer: ContentContainer = ({
|
|
3817
|
+
children
|
|
3818
|
+
}) => children
|
|
3816
3819
|
} = _ref,
|
|
3817
3820
|
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
3818
3821
|
const {
|
|
@@ -3840,7 +3843,9 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3840
3843
|
}, rest), {}, {
|
|
3841
3844
|
topInset: top,
|
|
3842
3845
|
children: props => /*#__PURE__*/jsx(Wrapper, {
|
|
3843
|
-
children:
|
|
3846
|
+
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
3847
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3848
|
+
})
|
|
3844
3849
|
})
|
|
3845
3850
|
}));
|
|
3846
3851
|
}
|
|
@@ -4237,7 +4242,7 @@ function CardModalHeader(_ref) {
|
|
|
4237
4242
|
}));
|
|
4238
4243
|
}
|
|
4239
4244
|
|
|
4240
|
-
const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4245
|
+
const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
|
|
4241
4246
|
function CardModal(_ref) {
|
|
4242
4247
|
let {
|
|
4243
4248
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
@@ -4246,7 +4251,10 @@ function CardModal(_ref) {
|
|
|
4246
4251
|
children,
|
|
4247
4252
|
header,
|
|
4248
4253
|
body,
|
|
4249
|
-
footer
|
|
4254
|
+
footer,
|
|
4255
|
+
contentContainer: ContentContainer = ({
|
|
4256
|
+
children: originalChildren
|
|
4257
|
+
}) => originalChildren
|
|
4250
4258
|
} = _ref,
|
|
4251
4259
|
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4252
4260
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -4258,8 +4266,10 @@ function CardModal(_ref) {
|
|
|
4258
4266
|
maxHeight: "100%",
|
|
4259
4267
|
maxWidth: maxWidth,
|
|
4260
4268
|
minHeight: "kitt.cardModal.minHeight",
|
|
4261
|
-
children:
|
|
4262
|
-
children:
|
|
4269
|
+
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
4270
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4271
|
+
children: [header || null, body || null, footer || null]
|
|
4272
|
+
})
|
|
4263
4273
|
})
|
|
4264
4274
|
}));
|
|
4265
4275
|
}
|
|
@@ -8063,25 +8073,30 @@ function FullscreenModal({
|
|
|
8063
8073
|
body,
|
|
8064
8074
|
header,
|
|
8065
8075
|
footer,
|
|
8066
|
-
backgroundColor
|
|
8076
|
+
backgroundColor,
|
|
8077
|
+
contentContainer: ContentContainer = ({
|
|
8078
|
+
children
|
|
8079
|
+
}) => children
|
|
8067
8080
|
}) {
|
|
8068
|
-
return /*#__PURE__*/
|
|
8081
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8069
8082
|
backgroundColor: backgroundColor,
|
|
8070
|
-
children:
|
|
8071
|
-
children: header
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8083
|
+
children: /*#__PURE__*/jsxs(ContentContainer, {
|
|
8084
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8085
|
+
children: header
|
|
8086
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8087
|
+
flexGrow: 1,
|
|
8088
|
+
flexShrink: 1,
|
|
8089
|
+
justifyContent: "space-between",
|
|
8090
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8091
|
+
bounces: false,
|
|
8092
|
+
contentContainerStyle: {
|
|
8093
|
+
flexGrow: 1,
|
|
8094
|
+
position: 'relative'
|
|
8095
|
+
},
|
|
8096
|
+
children: body
|
|
8097
|
+
}), footer || null]
|
|
8098
|
+
})]
|
|
8099
|
+
})
|
|
8085
8100
|
});
|
|
8086
8101
|
}
|
|
8087
8102
|
FullscreenModal.Header = FullscreenModalHeader;
|