@ornikar/kitt-universal 29.4.2-canary.5279d6411761af875ca17c9a8eefbb621d15180d.0 → 29.5.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 +3 -1
- package/dist/definitions/CardModal/CardModal.d.ts +2 -20
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -18
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.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 +10 -42
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +10 -42
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +5 -36
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +3 -35
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +5 -36
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +3 -35
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +10 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +5 -37
- 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
|
@@ -4481,7 +4481,7 @@ function CardModalHeader(props) {
|
|
|
4481
4481
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4482
4482
|
}
|
|
4483
4483
|
|
|
4484
|
-
var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"
|
|
4484
|
+
var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4485
4485
|
function CardModal(_ref) {
|
|
4486
4486
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4487
4487
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4489,9 +4489,6 @@ function CardModal(_ref) {
|
|
|
4489
4489
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4490
4490
|
withoutShadow = _ref.withoutShadow,
|
|
4491
4491
|
children = _ref.children,
|
|
4492
|
-
header = _ref.header,
|
|
4493
|
-
body = _ref.body,
|
|
4494
|
-
footer = _ref.footer,
|
|
4495
4492
|
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4496
4493
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4497
4494
|
overflow: "hidden",
|
|
@@ -4502,9 +4499,7 @@ function CardModal(_ref) {
|
|
|
4502
4499
|
maxHeight: "100%",
|
|
4503
4500
|
maxWidth: maxWidth,
|
|
4504
4501
|
minHeight: "kitt.cardModal.minHeight",
|
|
4505
|
-
children: children
|
|
4506
|
-
children: [header || null, body || null, footer || null]
|
|
4507
|
-
})
|
|
4502
|
+
children: children
|
|
4508
4503
|
}));
|
|
4509
4504
|
}
|
|
4510
4505
|
CardModal.Body = CardModalBody;
|
|
@@ -7716,29 +7711,10 @@ function FullscreenModalHeader(_ref) {
|
|
|
7716
7711
|
|
|
7717
7712
|
function FullscreenModal(_ref) {
|
|
7718
7713
|
var children = _ref.children,
|
|
7719
|
-
body = _ref.body,
|
|
7720
|
-
header = _ref.header,
|
|
7721
|
-
footer = _ref.footer,
|
|
7722
7714
|
backgroundColor = _ref.backgroundColor;
|
|
7723
7715
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
7724
7716
|
backgroundColor: backgroundColor,
|
|
7725
|
-
children: children
|
|
7726
|
-
children: [header ? /*#__PURE__*/jsx(View, {
|
|
7727
|
-
children: header
|
|
7728
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
7729
|
-
flexGrow: 1,
|
|
7730
|
-
flexShrink: 1,
|
|
7731
|
-
justifyContent: "space-between",
|
|
7732
|
-
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
7733
|
-
bounces: false,
|
|
7734
|
-
contentContainerStyle: {
|
|
7735
|
-
flexGrow: 1,
|
|
7736
|
-
position: 'relative'
|
|
7737
|
-
},
|
|
7738
|
-
children: body
|
|
7739
|
-
}), footer || null]
|
|
7740
|
-
})]
|
|
7741
|
-
})
|
|
7717
|
+
children: children
|
|
7742
7718
|
});
|
|
7743
7719
|
}
|
|
7744
7720
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11122,23 +11098,15 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11122
11098
|
}
|
|
11123
11099
|
|
|
11124
11100
|
function NavigationModal(_ref) {
|
|
11125
|
-
var
|
|
11126
|
-
backgroundColor = _ref.backgroundColor,
|
|
11127
|
-
footer = _ref.footer,
|
|
11128
|
-
header = _ref.header,
|
|
11101
|
+
var backgroundColor = _ref.backgroundColor,
|
|
11129
11102
|
children = _ref.children;
|
|
11130
11103
|
var Component = useBreakpointValue({
|
|
11131
11104
|
base: FullscreenModal,
|
|
11132
11105
|
small: CardModal
|
|
11133
11106
|
});
|
|
11134
|
-
return
|
|
11107
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11135
11108
|
backgroundColor: backgroundColor,
|
|
11136
11109
|
children: children
|
|
11137
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
11138
|
-
body: body,
|
|
11139
|
-
backgroundColor: backgroundColor,
|
|
11140
|
-
footer: footer,
|
|
11141
|
-
header: header
|
|
11142
11110
|
});
|
|
11143
11111
|
}
|
|
11144
11112
|
function Header(props) {
|