@ornikar/kitt-universal 29.4.2-canary.fd1b4b35933bafb4acef3ae114e07a03477878a2.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.js
CHANGED
|
@@ -4101,9 +4101,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4101
4101
|
}));
|
|
4102
4102
|
}
|
|
4103
4103
|
function BottomSheetContainerView(props) {
|
|
4104
|
-
return /*#__PURE__*/jsx(View$1, _objectSpread({
|
|
4105
|
-
padding: "kitt.bottomSheet.container.padding"
|
|
4106
|
-
}, props));
|
|
4104
|
+
return /*#__PURE__*/jsx(View$1, _objectSpread({}, props));
|
|
4107
4105
|
}
|
|
4108
4106
|
|
|
4109
4107
|
/**
|
|
@@ -4600,7 +4598,7 @@ function CardModalHeader(props) {
|
|
|
4600
4598
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4601
4599
|
}
|
|
4602
4600
|
|
|
4603
|
-
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children"
|
|
4601
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4604
4602
|
function CardModal(_ref) {
|
|
4605
4603
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4606
4604
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4608,9 +4606,6 @@ function CardModal(_ref) {
|
|
|
4608
4606
|
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4609
4607
|
withoutShadow = _ref.withoutShadow,
|
|
4610
4608
|
children = _ref.children,
|
|
4611
|
-
header = _ref.header,
|
|
4612
|
-
body = _ref.body,
|
|
4613
|
-
footer = _ref.footer,
|
|
4614
4609
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4615
4610
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4616
4611
|
overflow: "hidden",
|
|
@@ -4621,9 +4616,7 @@ function CardModal(_ref) {
|
|
|
4621
4616
|
maxHeight: "100%",
|
|
4622
4617
|
maxWidth: maxWidth,
|
|
4623
4618
|
minHeight: "kitt.cardModal.minHeight",
|
|
4624
|
-
children: children
|
|
4625
|
-
children: [header || null, body || null, footer || null]
|
|
4626
|
-
})
|
|
4619
|
+
children: children
|
|
4627
4620
|
}));
|
|
4628
4621
|
}
|
|
4629
4622
|
CardModal.Body = CardModalBody;
|
|
@@ -8593,29 +8586,10 @@ function FullscreenModalHeader(_ref) {
|
|
|
8593
8586
|
|
|
8594
8587
|
function FullscreenModal(_ref) {
|
|
8595
8588
|
var children = _ref.children,
|
|
8596
|
-
body = _ref.body,
|
|
8597
|
-
header = _ref.header,
|
|
8598
|
-
footer = _ref.footer,
|
|
8599
8589
|
backgroundColor = _ref.backgroundColor;
|
|
8600
8590
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8601
8591
|
backgroundColor: backgroundColor,
|
|
8602
|
-
children: children
|
|
8603
|
-
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8604
|
-
children: header
|
|
8605
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8606
|
-
flexGrow: 1,
|
|
8607
|
-
flexShrink: 1,
|
|
8608
|
-
justifyContent: "space-between",
|
|
8609
|
-
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8610
|
-
bounces: false,
|
|
8611
|
-
contentContainerStyle: {
|
|
8612
|
-
flexGrow: 1,
|
|
8613
|
-
position: 'relative'
|
|
8614
|
-
},
|
|
8615
|
-
children: body
|
|
8616
|
-
}), footer || null]
|
|
8617
|
-
})]
|
|
8618
|
-
})
|
|
8592
|
+
children: children
|
|
8619
8593
|
});
|
|
8620
8594
|
}
|
|
8621
8595
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11896,12 +11870,14 @@ function NavigationBottomSheetBody(props) {
|
|
|
11896
11870
|
return /*#__PURE__*/jsx(VStack, _objectSpread({
|
|
11897
11871
|
flexGrow: 1,
|
|
11898
11872
|
flexShrink: 1,
|
|
11899
|
-
marginBottom: "kitt.4"
|
|
11873
|
+
marginBottom: "kitt.4",
|
|
11874
|
+
paddingX: "kitt.bottomSheet.container.padding"
|
|
11900
11875
|
}, props));
|
|
11901
11876
|
}
|
|
11902
11877
|
function NavigationBottomSheetFooter(props) {
|
|
11903
11878
|
return /*#__PURE__*/jsx(HStack, _objectSpread({
|
|
11904
|
-
width: "100%"
|
|
11879
|
+
width: "100%",
|
|
11880
|
+
paddingX: "kitt.bottomSheet.container.padding"
|
|
11905
11881
|
}, props));
|
|
11906
11882
|
}
|
|
11907
11883
|
NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
@@ -11965,23 +11941,15 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11965
11941
|
}
|
|
11966
11942
|
|
|
11967
11943
|
function NavigationModal(_ref) {
|
|
11968
|
-
var
|
|
11969
|
-
backgroundColor = _ref.backgroundColor,
|
|
11970
|
-
footer = _ref.footer,
|
|
11971
|
-
header = _ref.header,
|
|
11944
|
+
var backgroundColor = _ref.backgroundColor,
|
|
11972
11945
|
children = _ref.children;
|
|
11973
11946
|
var Component = useBreakpointValue({
|
|
11974
11947
|
base: FullscreenModal,
|
|
11975
11948
|
small: CardModal
|
|
11976
11949
|
});
|
|
11977
|
-
return
|
|
11950
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11978
11951
|
backgroundColor: backgroundColor,
|
|
11979
11952
|
children: children
|
|
11980
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
11981
|
-
body: body,
|
|
11982
|
-
backgroundColor: backgroundColor,
|
|
11983
|
-
footer: footer,
|
|
11984
|
-
header: header
|
|
11985
11953
|
});
|
|
11986
11954
|
}
|
|
11987
11955
|
function Header(props) {
|