@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.web.js
CHANGED
|
@@ -4154,7 +4154,7 @@ function CardModalHeader(_ref) {
|
|
|
4154
4154
|
}));
|
|
4155
4155
|
}
|
|
4156
4156
|
|
|
4157
|
-
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4157
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
|
|
4158
4158
|
function CardModal(_ref) {
|
|
4159
4159
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4160
4160
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4165,6 +4165,11 @@ function CardModal(_ref) {
|
|
|
4165
4165
|
header = _ref.header,
|
|
4166
4166
|
body = _ref.body,
|
|
4167
4167
|
footer = _ref.footer,
|
|
4168
|
+
_ref$contentContainer = _ref.contentContainer,
|
|
4169
|
+
ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
|
|
4170
|
+
var originalChildren = _ref2.children;
|
|
4171
|
+
return originalChildren;
|
|
4172
|
+
} : _ref$contentContainer,
|
|
4168
4173
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4169
4174
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4170
4175
|
overflow: "hidden",
|
|
@@ -4175,8 +4180,10 @@ function CardModal(_ref) {
|
|
|
4175
4180
|
maxHeight: "100%",
|
|
4176
4181
|
maxWidth: maxWidth,
|
|
4177
4182
|
minHeight: "kitt.cardModal.minHeight",
|
|
4178
|
-
children:
|
|
4179
|
-
children:
|
|
4183
|
+
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
4184
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4185
|
+
children: [header || null, body || null, footer || null]
|
|
4186
|
+
})
|
|
4180
4187
|
})
|
|
4181
4188
|
}));
|
|
4182
4189
|
}
|
|
@@ -7396,24 +7403,31 @@ function FullscreenModal(_ref) {
|
|
|
7396
7403
|
var body = _ref.body,
|
|
7397
7404
|
header = _ref.header,
|
|
7398
7405
|
footer = _ref.footer,
|
|
7399
|
-
backgroundColor = _ref.backgroundColor
|
|
7400
|
-
|
|
7406
|
+
backgroundColor = _ref.backgroundColor,
|
|
7407
|
+
_ref$contentContainer = _ref.contentContainer,
|
|
7408
|
+
ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
|
|
7409
|
+
var children = _ref2.children;
|
|
7410
|
+
return children;
|
|
7411
|
+
} : _ref$contentContainer;
|
|
7412
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7401
7413
|
backgroundColor: backgroundColor,
|
|
7402
|
-
children:
|
|
7403
|
-
children: header
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7414
|
+
children: /*#__PURE__*/jsxs(ContentContainer, {
|
|
7415
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7416
|
+
children: header
|
|
7417
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7418
|
+
flexGrow: 1,
|
|
7419
|
+
flexShrink: 1,
|
|
7420
|
+
justifyContent: "space-between",
|
|
7421
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7422
|
+
bounces: false,
|
|
7423
|
+
contentContainerStyle: {
|
|
7424
|
+
flexGrow: 1,
|
|
7425
|
+
position: 'relative'
|
|
7426
|
+
},
|
|
7427
|
+
children: body
|
|
7428
|
+
}), footer || null]
|
|
7429
|
+
})]
|
|
7430
|
+
})
|
|
7417
7431
|
});
|
|
7418
7432
|
}
|
|
7419
7433
|
FullscreenModal.Header = FullscreenModalHeader;
|