@ornikar/kitt-universal 25.58.1-canary.95e9af38cc4e878fc97c4391877d7b879da5b220.0 → 25.59.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 +2 -10
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +42 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +14 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +61 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +61 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +61 -0
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +45 -2
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +61 -1
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +45 -3
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +76 -18
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +56 -19
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -8
- package/scripts/run-all-transformers.js +0 -98
- package/scripts/run-transformer.js +0 -41
- package/scripts/transformers/modals.js +0 -102
|
@@ -11563,6 +11563,66 @@ function KittNativeBaseProvider({
|
|
|
11563
11563
|
});
|
|
11564
11564
|
}
|
|
11565
11565
|
|
|
11566
|
+
function NavigationBottomSheet({
|
|
11567
|
+
children,
|
|
11568
|
+
hasScrollView,
|
|
11569
|
+
snapPoints,
|
|
11570
|
+
maxDynamicContentSize,
|
|
11571
|
+
isVisible,
|
|
11572
|
+
onClose
|
|
11573
|
+
}) {
|
|
11574
|
+
const bottomSheetRef = useBottomSheet();
|
|
11575
|
+
React.useEffect(() => {
|
|
11576
|
+
if (isVisible) {
|
|
11577
|
+
bottomSheetRef.current?.present();
|
|
11578
|
+
} else {
|
|
11579
|
+
bottomSheetRef.current?.close();
|
|
11580
|
+
}
|
|
11581
|
+
}, [bottomSheetRef, isVisible]);
|
|
11582
|
+
return /*#__PURE__*/jsxRuntime.jsx(BottomSheet, {
|
|
11583
|
+
ref: bottomSheetRef,
|
|
11584
|
+
maxDynamicContentSize: maxDynamicContentSize,
|
|
11585
|
+
hasScrollView: hasScrollView,
|
|
11586
|
+
snapPoints: snapPoints,
|
|
11587
|
+
onDismiss: onClose,
|
|
11588
|
+
children: /*#__PURE__*/jsxRuntime.jsx(BottomSheet.View, {
|
|
11589
|
+
children: children
|
|
11590
|
+
})
|
|
11591
|
+
});
|
|
11592
|
+
}
|
|
11593
|
+
function NavigationBottomSheetHeader({
|
|
11594
|
+
children,
|
|
11595
|
+
left
|
|
11596
|
+
}) {
|
|
11597
|
+
return /*#__PURE__*/jsxRuntime.jsx(HStack, {
|
|
11598
|
+
marginBottom: "kitt.6",
|
|
11599
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
11600
|
+
flexGrow: 1,
|
|
11601
|
+
flexShrink: 1,
|
|
11602
|
+
variant: "bold",
|
|
11603
|
+
textAlign: "center",
|
|
11604
|
+
children: children
|
|
11605
|
+
})
|
|
11606
|
+
});
|
|
11607
|
+
}
|
|
11608
|
+
function NavigationBottomSheetBody(props) {
|
|
11609
|
+
return /*#__PURE__*/jsxRuntime.jsx(VStack, {
|
|
11610
|
+
flexGrow: 1,
|
|
11611
|
+
flexShrink: 1,
|
|
11612
|
+
marginBottom: "kitt.4",
|
|
11613
|
+
...props
|
|
11614
|
+
});
|
|
11615
|
+
}
|
|
11616
|
+
function NavigationBottomSheetFooter(props) {
|
|
11617
|
+
return /*#__PURE__*/jsxRuntime.jsx(HStack, {
|
|
11618
|
+
width: "100%",
|
|
11619
|
+
...props
|
|
11620
|
+
});
|
|
11621
|
+
}
|
|
11622
|
+
NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
11623
|
+
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
11624
|
+
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
11625
|
+
|
|
11566
11626
|
function NavigationModalBehaviour({
|
|
11567
11627
|
children,
|
|
11568
11628
|
visible,
|
|
@@ -14104,6 +14164,7 @@ exports.MatchWindowSize = MatchWindowSize;
|
|
|
14104
14164
|
exports.Message = Message;
|
|
14105
14165
|
exports.ModalBehaviour = ModalBehaviour;
|
|
14106
14166
|
exports.NativeOnlyFlatList = FlatList;
|
|
14167
|
+
exports.NavigationBottomSheet = NavigationBottomSheet;
|
|
14107
14168
|
exports.NavigationModal = NavigationModal;
|
|
14108
14169
|
exports.Notification = Notification;
|
|
14109
14170
|
exports.Overlay = Overlay;
|