@mustmove/bottom-sheet 1.0.0 → 1.0.2
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/lib/commonjs/components/bottomSheet/BottomSheet.js +1317 -0
- package/lib/commonjs/components/bottomSheet/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/bottomSheet/BottomSheetBody.js +43 -0
- package/lib/commonjs/components/bottomSheet/BottomSheetBody.js.map +1 -0
- package/lib/commonjs/components/bottomSheet/BottomSheetContent.js +196 -0
- package/lib/commonjs/components/bottomSheet/BottomSheetContent.js.map +1 -0
- package/lib/commonjs/components/bottomSheet/constants.js +34 -0
- package/lib/commonjs/components/bottomSheet/constants.js.map +1 -0
- package/lib/commonjs/components/bottomSheet/index.js +14 -0
- package/lib/commonjs/components/bottomSheet/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheet/styles.js +17 -0
- package/lib/commonjs/components/bottomSheet/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackdrop/BottomSheetBackdrop.js +115 -0
- package/lib/commonjs/components/bottomSheetBackdrop/BottomSheetBackdrop.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackdrop/constants.js +16 -0
- package/lib/commonjs/components/bottomSheetBackdrop/constants.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackdrop/index.js +13 -0
- package/lib/commonjs/components/bottomSheetBackdrop/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackdrop/styles.js +14 -0
- package/lib/commonjs/components/bottomSheetBackdrop/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackground/BottomSheetBackground.js +24 -0
- package/lib/commonjs/components/bottomSheetBackground/BottomSheetBackground.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackground/BottomSheetBackgroundContainer.js +33 -0
- package/lib/commonjs/components/bottomSheetBackground/BottomSheetBackgroundContainer.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackground/index.js +13 -0
- package/lib/commonjs/components/bottomSheetBackground/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetBackground/styles.js +15 -0
- package/lib/commonjs/components/bottomSheetBackground/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetDraggableView/BottomSheetDraggableView.js +94 -0
- package/lib/commonjs/components/bottomSheetDraggableView/BottomSheetDraggableView.js.map +1 -0
- package/lib/commonjs/components/bottomSheetDraggableView/index.js +14 -0
- package/lib/commonjs/components/bottomSheetDraggableView/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetFooter/BottomSheetFooter.js +111 -0
- package/lib/commonjs/components/bottomSheetFooter/BottomSheetFooter.js.map +1 -0
- package/lib/commonjs/components/bottomSheetFooter/BottomSheetFooterContainer.js +54 -0
- package/lib/commonjs/components/bottomSheetFooter/BottomSheetFooterContainer.js.map +1 -0
- package/lib/commonjs/components/bottomSheetFooter/index.js +20 -0
- package/lib/commonjs/components/bottomSheetFooter/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetFooter/styles.js +18 -0
- package/lib/commonjs/components/bottomSheetFooter/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.js +53 -0
- package/lib/commonjs/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.js.map +1 -0
- package/lib/commonjs/components/bottomSheetGestureHandlersProvider/index.js +14 -0
- package/lib/commonjs/components/bottomSheetGestureHandlersProvider/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHandle/BottomSheetHandle.js +43 -0
- package/lib/commonjs/components/bottomSheetHandle/BottomSheetHandle.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHandle/BottomSheetHandleContainer.js +153 -0
- package/lib/commonjs/components/bottomSheetHandle/BottomSheetHandleContainer.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHandle/constants.js +11 -0
- package/lib/commonjs/components/bottomSheetHandle/constants.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHandle/index.js +21 -0
- package/lib/commonjs/components/bottomSheetHandle/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHandle/styles.js +27 -0
- package/lib/commonjs/components/bottomSheetHandle/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/BottomSheetHostingContainer.js +110 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/BottomSheetHostingContainer.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/index.js +13 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/styles.js +14 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/styles.web.js +17 -0
- package/lib/commonjs/components/bottomSheetHostingContainer/styles.web.js.map +1 -0
- package/lib/commonjs/components/bottomSheetModal/BottomSheetModal.js +387 -0
- package/lib/commonjs/components/bottomSheetModal/BottomSheetModal.js.map +1 -0
- package/lib/commonjs/components/bottomSheetModal/constants.js +9 -0
- package/lib/commonjs/components/bottomSheetModal/constants.js.map +1 -0
- package/lib/commonjs/components/bottomSheetModal/index.js +14 -0
- package/lib/commonjs/components/bottomSheetModal/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetModalProvider/BottomSheetModalProvider.js +172 -0
- package/lib/commonjs/components/bottomSheetModalProvider/BottomSheetModalProvider.js.map +1 -0
- package/lib/commonjs/components/bottomSheetModalProvider/index.js +14 -0
- package/lib/commonjs/components/bottomSheetModalProvider/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.js +64 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.js.map +1 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/BottomSheetRefreshControl.js +9 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/BottomSheetRefreshControl.js.map +1 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/index.js +10 -0
- package/lib/commonjs/components/bottomSheetRefreshControl/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetDraggableScrollable.js +23 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetDraggableScrollable.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlashList.js +66 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlashList.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlashList.web.js +9 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlashList.web.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlatList.js +18 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetFlatList.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetScrollView.js +18 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetScrollView.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetSectionList.js +18 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetSectionList.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetVirtualizedList.js +18 -0
- package/lib/commonjs/components/bottomSheetScrollable/BottomSheetVirtualizedList.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.android.js +40 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.android.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.js +24 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.web.js +84 -0
- package/lib/commonjs/components/bottomSheetScrollable/ScrollableContainer.web.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/createBottomSheetScrollableComponent.js +117 -0
- package/lib/commonjs/components/bottomSheetScrollable/createBottomSheetScrollableComponent.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/index.js +49 -0
- package/lib/commonjs/components/bottomSheetScrollable/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/styles.js +14 -0
- package/lib/commonjs/components/bottomSheetScrollable/styles.js.map +1 -0
- package/lib/commonjs/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.js +39 -0
- package/lib/commonjs/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.js.map +1 -0
- package/lib/commonjs/components/bottomSheetTextInput/BottomSheetTextInput.js +106 -0
- package/lib/commonjs/components/bottomSheetTextInput/BottomSheetTextInput.js.map +1 -0
- package/lib/commonjs/components/bottomSheetTextInput/index.js +14 -0
- package/lib/commonjs/components/bottomSheetTextInput/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetTextInput/types.js +6 -0
- package/lib/commonjs/components/bottomSheetTextInput/types.js.map +1 -0
- package/lib/commonjs/components/bottomSheetView/BottomSheetView.js +91 -0
- package/lib/commonjs/components/bottomSheetView/BottomSheetView.js.map +1 -0
- package/lib/commonjs/components/bottomSheetView/index.js +14 -0
- package/lib/commonjs/components/bottomSheetView/index.js.map +1 -0
- package/lib/commonjs/components/bottomSheetView/styles.js +16 -0
- package/lib/commonjs/components/bottomSheetView/styles.js.map +1 -0
- package/lib/commonjs/components/touchables/Touchables.ios.js +25 -0
- package/lib/commonjs/components/touchables/Touchables.ios.js.map +1 -0
- package/lib/commonjs/components/touchables/Touchables.js +25 -0
- package/lib/commonjs/components/touchables/Touchables.js.map +1 -0
- package/lib/commonjs/components/touchables/index.js +13 -0
- package/lib/commonjs/components/touchables/index.js.map +1 -0
- package/lib/commonjs/constants.js +138 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/contexts/external.js +10 -0
- package/lib/commonjs/contexts/external.js.map +1 -0
- package/lib/commonjs/contexts/gesture.js +10 -0
- package/lib/commonjs/contexts/gesture.js.map +1 -0
- package/lib/commonjs/contexts/index.js +65 -0
- package/lib/commonjs/contexts/index.js.map +1 -0
- package/lib/commonjs/contexts/internal.js +10 -0
- package/lib/commonjs/contexts/internal.js.map +1 -0
- package/lib/commonjs/contexts/modal/external.js +10 -0
- package/lib/commonjs/contexts/modal/external.js.map +1 -0
- package/lib/commonjs/contexts/modal/internal.js +10 -0
- package/lib/commonjs/contexts/modal/internal.js.map +1 -0
- package/lib/commonjs/hooks/index.js +132 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useAnimatedDetents.js +95 -0
- package/lib/commonjs/hooks/useAnimatedDetents.js.map +1 -0
- package/lib/commonjs/hooks/useAnimatedKeyboard.js +125 -0
- package/lib/commonjs/hooks/useAnimatedKeyboard.js.map +1 -0
- package/lib/commonjs/hooks/useAnimatedLayout.js +90 -0
- package/lib/commonjs/hooks/useAnimatedLayout.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheet.js +17 -0
- package/lib/commonjs/hooks/useBottomSheet.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetContentContainerStyle.js +77 -0
- package/lib/commonjs/hooks/useBottomSheetContentContainerStyle.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetGestureHandlers.js +17 -0
- package/lib/commonjs/hooks/useBottomSheetGestureHandlers.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetInternal.js +16 -0
- package/lib/commonjs/hooks/useBottomSheetInternal.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetModal.js +17 -0
- package/lib/commonjs/hooks/useBottomSheetModal.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetModalInternal.js +16 -0
- package/lib/commonjs/hooks/useBottomSheetModalInternal.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetScrollableCreator.js +58 -0
- package/lib/commonjs/hooks/useBottomSheetScrollableCreator.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetSpringConfigs.js +15 -0
- package/lib/commonjs/hooks/useBottomSheetSpringConfigs.js.map +1 -0
- package/lib/commonjs/hooks/useBottomSheetTimingConfigs.js +32 -0
- package/lib/commonjs/hooks/useBottomSheetTimingConfigs.js.map +1 -0
- package/lib/commonjs/hooks/useBoundingClientRect.js +66 -0
- package/lib/commonjs/hooks/useBoundingClientRect.js.map +1 -0
- package/lib/commonjs/hooks/useGestureEventsHandlersDefault.js +299 -0
- package/lib/commonjs/hooks/useGestureEventsHandlersDefault.js.map +1 -0
- package/lib/commonjs/hooks/useGestureEventsHandlersDefault.web.js +295 -0
- package/lib/commonjs/hooks/useGestureEventsHandlersDefault.web.js.map +1 -0
- package/lib/commonjs/hooks/useGestureHandler.js +56 -0
- package/lib/commonjs/hooks/useGestureHandler.js.map +1 -0
- package/lib/commonjs/hooks/usePropsValidator.js +54 -0
- package/lib/commonjs/hooks/usePropsValidator.js.map +1 -0
- package/lib/commonjs/hooks/useReactiveSharedValue.js +48 -0
- package/lib/commonjs/hooks/useReactiveSharedValue.js.map +1 -0
- package/lib/commonjs/hooks/useScrollEventsHandlersDefault.js +132 -0
- package/lib/commonjs/hooks/useScrollEventsHandlersDefault.js.map +1 -0
- package/lib/commonjs/hooks/useScrollHandler.js +62 -0
- package/lib/commonjs/hooks/useScrollHandler.js.map +1 -0
- package/lib/commonjs/hooks/useScrollHandler.web.js +130 -0
- package/lib/commonjs/hooks/useScrollHandler.web.js.map +1 -0
- package/lib/commonjs/hooks/useScrollable.js +103 -0
- package/lib/commonjs/hooks/useScrollable.js.map +1 -0
- package/lib/commonjs/hooks/useScrollableSetter.js +47 -0
- package/lib/commonjs/hooks/useScrollableSetter.js.map +1 -0
- package/lib/commonjs/hooks/useStableCallback.js +25 -0
- package/lib/commonjs/hooks/useStableCallback.js.map +1 -0
- package/lib/commonjs/index.js +282 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utilities/animate.js +41 -0
- package/lib/commonjs/utilities/animate.js.map +1 -0
- package/lib/commonjs/utilities/clamp.js +13 -0
- package/lib/commonjs/utilities/clamp.js.map +1 -0
- package/lib/commonjs/utilities/easingExp.js +19 -0
- package/lib/commonjs/utilities/easingExp.js.map +1 -0
- package/lib/commonjs/utilities/findNodeHandle.js +13 -0
- package/lib/commonjs/utilities/findNodeHandle.js.map +1 -0
- package/lib/commonjs/utilities/findNodeHandle.web.js +32 -0
- package/lib/commonjs/utilities/findNodeHandle.web.js.map +1 -0
- package/lib/commonjs/utilities/getKeyboardAnimationConfigs.js +44 -0
- package/lib/commonjs/utilities/getKeyboardAnimationConfigs.js.map +1 -0
- package/lib/commonjs/utilities/getRefNativeTag.web.js +11 -0
- package/lib/commonjs/utilities/getRefNativeTag.web.js.map +1 -0
- package/lib/commonjs/utilities/id.js +13 -0
- package/lib/commonjs/utilities/id.js.map +1 -0
- package/lib/commonjs/utilities/index.js +61 -0
- package/lib/commonjs/utilities/index.js.map +1 -0
- package/lib/commonjs/utilities/isFabricInstalled.js +16 -0
- package/lib/commonjs/utilities/isFabricInstalled.js.map +1 -0
- package/lib/commonjs/utilities/logger.js +44 -0
- package/lib/commonjs/utilities/logger.js.map +1 -0
- package/lib/commonjs/utilities/noop.js +13 -0
- package/lib/commonjs/utilities/noop.js.map +1 -0
- package/lib/commonjs/utilities/normalizeSnapPoint.js +22 -0
- package/lib/commonjs/utilities/normalizeSnapPoint.js.map +1 -0
- package/lib/commonjs/utilities/snapPoint.js +16 -0
- package/lib/commonjs/utilities/snapPoint.js.map +1 -0
- package/lib/commonjs/utilities/validateSnapPoint.js +15 -0
- package/lib/commonjs/utilities/validateSnapPoint.js.map +1 -0
- package/lib/module/components/bottomSheet/BottomSheet.js +1310 -0
- package/lib/module/components/bottomSheet/BottomSheet.js.map +1 -0
- package/lib/module/components/bottomSheet/BottomSheetBody.js +38 -0
- package/lib/module/components/bottomSheet/BottomSheetBody.js.map +1 -0
- package/lib/module/components/bottomSheet/BottomSheetContent.js +190 -0
- package/lib/module/components/bottomSheet/BottomSheetContent.js.map +1 -0
- package/lib/module/components/bottomSheet/constants.js +38 -0
- package/lib/module/components/bottomSheet/constants.js.map +1 -0
- package/lib/module/components/bottomSheet/index.js +4 -0
- package/lib/module/components/bottomSheet/index.js.map +1 -0
- package/lib/module/components/bottomSheet/styles.js +13 -0
- package/lib/module/components/bottomSheet/styles.js.map +1 -0
- package/lib/module/components/bottomSheetBackdrop/BottomSheetBackdrop.js +110 -0
- package/lib/module/components/bottomSheetBackdrop/BottomSheetBackdrop.js.map +1 -0
- package/lib/module/components/bottomSheetBackdrop/constants.js +13 -0
- package/lib/module/components/bottomSheetBackdrop/constants.js.map +1 -0
- package/lib/module/components/bottomSheetBackdrop/index.js +4 -0
- package/lib/module/components/bottomSheetBackdrop/index.js.map +1 -0
- package/lib/module/components/bottomSheetBackdrop/styles.js +10 -0
- package/lib/module/components/bottomSheetBackdrop/styles.js.map +1 -0
- package/lib/module/components/bottomSheetBackground/BottomSheetBackground.js +19 -0
- package/lib/module/components/bottomSheetBackground/BottomSheetBackground.js.map +1 -0
- package/lib/module/components/bottomSheetBackground/BottomSheetBackgroundContainer.js +28 -0
- package/lib/module/components/bottomSheetBackground/BottomSheetBackgroundContainer.js.map +1 -0
- package/lib/module/components/bottomSheetBackground/index.js +4 -0
- package/lib/module/components/bottomSheetBackground/index.js.map +1 -0
- package/lib/module/components/bottomSheetBackground/styles.js +11 -0
- package/lib/module/components/bottomSheetBackground/styles.js.map +1 -0
- package/lib/module/components/bottomSheetDraggableView/BottomSheetDraggableView.js +88 -0
- package/lib/module/components/bottomSheetDraggableView/BottomSheetDraggableView.js.map +1 -0
- package/lib/module/components/bottomSheetDraggableView/index.js +4 -0
- package/lib/module/components/bottomSheetDraggableView/index.js.map +1 -0
- package/lib/module/components/bottomSheetFooter/BottomSheetFooter.js +106 -0
- package/lib/module/components/bottomSheetFooter/BottomSheetFooter.js.map +1 -0
- package/lib/module/components/bottomSheetFooter/BottomSheetFooterContainer.js +49 -0
- package/lib/module/components/bottomSheetFooter/BottomSheetFooterContainer.js.map +1 -0
- package/lib/module/components/bottomSheetFooter/index.js +5 -0
- package/lib/module/components/bottomSheetFooter/index.js.map +1 -0
- package/lib/module/components/bottomSheetFooter/styles.js +14 -0
- package/lib/module/components/bottomSheetFooter/styles.js.map +1 -0
- package/lib/module/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.js +48 -0
- package/lib/module/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.js.map +1 -0
- package/lib/module/components/bottomSheetGestureHandlersProvider/index.js +4 -0
- package/lib/module/components/bottomSheetGestureHandlersProvider/index.js.map +1 -0
- package/lib/module/components/bottomSheetHandle/BottomSheetHandle.js +38 -0
- package/lib/module/components/bottomSheetHandle/BottomSheetHandle.js.map +1 -0
- package/lib/module/components/bottomSheetHandle/BottomSheetHandleContainer.js +147 -0
- package/lib/module/components/bottomSheetHandle/BottomSheetHandleContainer.js.map +1 -0
- package/lib/module/components/bottomSheetHandle/constants.js +8 -0
- package/lib/module/components/bottomSheetHandle/constants.js.map +1 -0
- package/lib/module/components/bottomSheetHandle/index.js +5 -0
- package/lib/module/components/bottomSheetHandle/index.js.map +1 -0
- package/lib/module/components/bottomSheetHandle/styles.js +23 -0
- package/lib/module/components/bottomSheetHandle/styles.js.map +1 -0
- package/lib/module/components/bottomSheetHostingContainer/BottomSheetHostingContainer.js +105 -0
- package/lib/module/components/bottomSheetHostingContainer/BottomSheetHostingContainer.js.map +1 -0
- package/lib/module/components/bottomSheetHostingContainer/index.js +4 -0
- package/lib/module/components/bottomSheetHostingContainer/index.js.map +1 -0
- package/lib/module/components/bottomSheetHostingContainer/styles.js +10 -0
- package/lib/module/components/bottomSheetHostingContainer/styles.js.map +1 -0
- package/lib/module/components/bottomSheetHostingContainer/styles.web.js +13 -0
- package/lib/module/components/bottomSheetHostingContainer/styles.web.js.map +1 -0
- package/lib/module/components/bottomSheetModal/BottomSheetModal.js +381 -0
- package/lib/module/components/bottomSheetModal/BottomSheetModal.js.map +1 -0
- package/lib/module/components/bottomSheetModal/constants.js +6 -0
- package/lib/module/components/bottomSheetModal/constants.js.map +1 -0
- package/lib/module/components/bottomSheetModal/index.js +4 -0
- package/lib/module/components/bottomSheetModal/index.js.map +1 -0
- package/lib/module/components/bottomSheetModalProvider/BottomSheetModalProvider.js +167 -0
- package/lib/module/components/bottomSheetModalProvider/BottomSheetModalProvider.js.map +1 -0
- package/lib/module/components/bottomSheetModalProvider/index.js +4 -0
- package/lib/module/components/bottomSheetModalProvider/index.js.map +1 -0
- package/lib/module/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.js +59 -0
- package/lib/module/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.js.map +1 -0
- package/lib/module/components/bottomSheetRefreshControl/BottomSheetRefreshControl.js +4 -0
- package/lib/module/components/bottomSheetRefreshControl/BottomSheetRefreshControl.js.map +1 -0
- package/lib/module/components/bottomSheetRefreshControl/index.js +5 -0
- package/lib/module/components/bottomSheetRefreshControl/index.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetDraggableScrollable.js +18 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetDraggableScrollable.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlashList.js +60 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlashList.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlashList.web.js +4 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlashList.web.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlatList.js +13 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetFlatList.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetScrollView.js +13 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetScrollView.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetSectionList.js +13 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetSectionList.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetVirtualizedList.js +13 -0
- package/lib/module/components/bottomSheetScrollable/BottomSheetVirtualizedList.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.android.js +34 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.android.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.js +19 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.web.js +78 -0
- package/lib/module/components/bottomSheetScrollable/ScrollableContainer.web.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/createBottomSheetScrollableComponent.js +112 -0
- package/lib/module/components/bottomSheetScrollable/createBottomSheetScrollableComponent.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/index.js +9 -0
- package/lib/module/components/bottomSheetScrollable/index.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/styles.js +10 -0
- package/lib/module/components/bottomSheetScrollable/styles.js.map +1 -0
- package/lib/module/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.js +36 -0
- package/lib/module/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.js.map +1 -0
- package/lib/module/components/bottomSheetTextInput/BottomSheetTextInput.js +101 -0
- package/lib/module/components/bottomSheetTextInput/BottomSheetTextInput.js.map +1 -0
- package/lib/module/components/bottomSheetTextInput/index.js +4 -0
- package/lib/module/components/bottomSheetTextInput/index.js.map +1 -0
- package/lib/module/components/bottomSheetTextInput/types.js +4 -0
- package/lib/module/components/bottomSheetTextInput/types.js.map +1 -0
- package/lib/module/components/bottomSheetView/BottomSheetView.js +86 -0
- package/lib/module/components/bottomSheetView/BottomSheetView.js.map +1 -0
- package/lib/module/components/bottomSheetView/index.js +4 -0
- package/lib/module/components/bottomSheetView/index.js.map +1 -0
- package/lib/module/components/bottomSheetView/styles.js +12 -0
- package/lib/module/components/bottomSheetView/styles.js.map +1 -0
- package/lib/module/components/touchables/Touchables.ios.js +4 -0
- package/lib/module/components/touchables/Touchables.ios.js.map +1 -0
- package/lib/module/components/touchables/Touchables.js +4 -0
- package/lib/module/components/touchables/Touchables.js.map +1 -0
- package/lib/module/components/touchables/index.js +11 -0
- package/lib/module/components/touchables/index.js.map +1 -0
- package/lib/module/constants.js +131 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/contexts/external.js +6 -0
- package/lib/module/contexts/external.js.map +1 -0
- package/lib/module/contexts/gesture.js +6 -0
- package/lib/module/contexts/gesture.js.map +1 -0
- package/lib/module/contexts/index.js +8 -0
- package/lib/module/contexts/index.js.map +1 -0
- package/lib/module/contexts/internal.js +6 -0
- package/lib/module/contexts/internal.js.map +1 -0
- package/lib/module/contexts/modal/external.js +6 -0
- package/lib/module/contexts/modal/external.js.map +1 -0
- package/lib/module/contexts/modal/internal.js +6 -0
- package/lib/module/contexts/modal/internal.js.map +1 -0
- package/lib/module/hooks/index.js +29 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useAnimatedDetents.js +91 -0
- package/lib/module/hooks/useAnimatedDetents.js.map +1 -0
- package/lib/module/hooks/useAnimatedKeyboard.js +120 -0
- package/lib/module/hooks/useAnimatedKeyboard.js.map +1 -0
- package/lib/module/hooks/useAnimatedLayout.js +86 -0
- package/lib/module/hooks/useAnimatedLayout.js.map +1 -0
- package/lib/module/hooks/useBottomSheet.js +12 -0
- package/lib/module/hooks/useBottomSheet.js.map +1 -0
- package/lib/module/hooks/useBottomSheetContentContainerStyle.js +73 -0
- package/lib/module/hooks/useBottomSheetContentContainerStyle.js.map +1 -0
- package/lib/module/hooks/useBottomSheetGestureHandlers.js +12 -0
- package/lib/module/hooks/useBottomSheetGestureHandlers.js.map +1 -0
- package/lib/module/hooks/useBottomSheetInternal.js +12 -0
- package/lib/module/hooks/useBottomSheetInternal.js.map +1 -0
- package/lib/module/hooks/useBottomSheetModal.js +12 -0
- package/lib/module/hooks/useBottomSheetModal.js.map +1 -0
- package/lib/module/hooks/useBottomSheetModalInternal.js +12 -0
- package/lib/module/hooks/useBottomSheetModalInternal.js.map +1 -0
- package/lib/module/hooks/useBottomSheetScrollableCreator.js +54 -0
- package/lib/module/hooks/useBottomSheetScrollableCreator.js.map +1 -0
- package/lib/module/hooks/useBottomSheetSpringConfigs.js +10 -0
- package/lib/module/hooks/useBottomSheetSpringConfigs.js.map +1 -0
- package/lib/module/hooks/useBottomSheetTimingConfigs.js +28 -0
- package/lib/module/hooks/useBottomSheetTimingConfigs.js.map +1 -0
- package/lib/module/hooks/useBoundingClientRect.js +62 -0
- package/lib/module/hooks/useBoundingClientRect.js.map +1 -0
- package/lib/module/hooks/useGestureEventsHandlersDefault.js +294 -0
- package/lib/module/hooks/useGestureEventsHandlersDefault.js.map +1 -0
- package/lib/module/hooks/useGestureEventsHandlersDefault.web.js +290 -0
- package/lib/module/hooks/useGestureEventsHandlersDefault.web.js.map +1 -0
- package/lib/module/hooks/useGestureHandler.js +51 -0
- package/lib/module/hooks/useGestureHandler.js.map +1 -0
- package/lib/module/hooks/usePropsValidator.js +49 -0
- package/lib/module/hooks/usePropsValidator.js.map +1 -0
- package/lib/module/hooks/useReactiveSharedValue.js +43 -0
- package/lib/module/hooks/useReactiveSharedValue.js.map +1 -0
- package/lib/module/hooks/useScrollEventsHandlersDefault.js +127 -0
- package/lib/module/hooks/useScrollEventsHandlersDefault.js.map +1 -0
- package/lib/module/hooks/useScrollHandler.js +57 -0
- package/lib/module/hooks/useScrollHandler.js.map +1 -0
- package/lib/module/hooks/useScrollHandler.web.js +125 -0
- package/lib/module/hooks/useScrollHandler.web.js.map +1 -0
- package/lib/module/hooks/useScrollable.js +98 -0
- package/lib/module/hooks/useScrollable.js.map +1 -0
- package/lib/module/hooks/useScrollableSetter.js +42 -0
- package/lib/module/hooks/useScrollableSetter.js.map +1 -0
- package/lib/module/hooks/useStableCallback.js +21 -0
- package/lib/module/hooks/useStableCallback.js.map +1 -0
- package/lib/module/index.js +53 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/utilities/animate.js +36 -0
- package/lib/module/utilities/animate.js.map +1 -0
- package/lib/module/utilities/clamp.js +8 -0
- package/lib/module/utilities/clamp.js.map +1 -0
- package/lib/module/utilities/easingExp.js +14 -0
- package/lib/module/utilities/easingExp.js.map +1 -0
- package/lib/module/utilities/findNodeHandle.js +4 -0
- package/lib/module/utilities/findNodeHandle.js.map +1 -0
- package/lib/module/utilities/findNodeHandle.web.js +28 -0
- package/lib/module/utilities/findNodeHandle.web.js.map +1 -0
- package/lib/module/utilities/getKeyboardAnimationConfigs.js +39 -0
- package/lib/module/utilities/getKeyboardAnimationConfigs.js.map +1 -0
- package/lib/module/utilities/getRefNativeTag.web.js +7 -0
- package/lib/module/utilities/getRefNativeTag.web.js.map +1 -0
- package/lib/module/utilities/id.js +8 -0
- package/lib/module/utilities/id.js.map +1 -0
- package/lib/module/utilities/index.js +10 -0
- package/lib/module/utilities/index.js.map +1 -0
- package/lib/module/utilities/isFabricInstalled.js +12 -0
- package/lib/module/utilities/isFabricInstalled.js.map +1 -0
- package/lib/module/utilities/logger.js +39 -0
- package/lib/module/utilities/logger.js.map +1 -0
- package/lib/module/utilities/noop.js +8 -0
- package/lib/module/utilities/noop.js.map +1 -0
- package/lib/module/utilities/normalizeSnapPoint.js +17 -0
- package/lib/module/utilities/normalizeSnapPoint.js.map +1 -0
- package/lib/module/utilities/snapPoint.js +11 -0
- package/lib/module/utilities/snapPoint.js.map +1 -0
- package/lib/module/utilities/validateSnapPoint.js +9 -0
- package/lib/module/utilities/validateSnapPoint.js.map +1 -0
- package/lib/typescript/components/bottomSheet/BottomSheet.d.ts +7 -0
- package/lib/typescript/components/bottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/BottomSheetBody.d.ts +10 -0
- package/lib/typescript/components/bottomSheet/BottomSheetBody.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/BottomSheetContent.d.ts +12 -0
- package/lib/typescript/components/bottomSheet/BottomSheetContent.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/constants.d.ts +21 -0
- package/lib/typescript/components/bottomSheet/constants.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/styles.d.ts +10 -0
- package/lib/typescript/components/bottomSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheet/types.d.ts +358 -0
- package/lib/typescript/components/bottomSheetBackdrop/BottomSheetBackdrop.d.ts +4 -0
- package/lib/typescript/components/bottomSheetBackdrop/BottomSheetBackdrop.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackdrop/constants.d.ts +11 -0
- package/lib/typescript/components/bottomSheetBackdrop/constants.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackdrop/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheetBackdrop/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackdrop/styles.d.ts +11 -0
- package/lib/typescript/components/bottomSheetBackdrop/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackdrop/types.d.ts +58 -0
- package/lib/typescript/components/bottomSheetBackground/BottomSheetBackground.d.ts +4 -0
- package/lib/typescript/components/bottomSheetBackground/BottomSheetBackground.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackground/BottomSheetBackgroundContainer.d.ts +4 -0
- package/lib/typescript/components/bottomSheetBackground/BottomSheetBackgroundContainer.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackground/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheetBackground/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackground/styles.d.ts +9 -0
- package/lib/typescript/components/bottomSheetBackground/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetBackground/types.d.ts +12 -0
- package/lib/typescript/components/bottomSheetDraggableView/BottomSheetDraggableView.d.ts +5 -0
- package/lib/typescript/components/bottomSheetDraggableView/BottomSheetDraggableView.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetDraggableView/index.d.ts +2 -0
- package/lib/typescript/components/bottomSheetDraggableView/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetDraggableView/types.d.ts +9 -0
- package/lib/typescript/components/bottomSheetFooter/BottomSheetFooter.d.ts +6 -0
- package/lib/typescript/components/bottomSheetFooter/BottomSheetFooter.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetFooter/BottomSheetFooterContainer.d.ts +4 -0
- package/lib/typescript/components/bottomSheetFooter/BottomSheetFooterContainer.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetFooter/index.d.ts +4 -0
- package/lib/typescript/components/bottomSheetFooter/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetFooter/styles.d.ts +11 -0
- package/lib/typescript/components/bottomSheetFooter/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetFooter/types.d.ts +41 -0
- package/lib/typescript/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.d.ts +5 -0
- package/lib/typescript/components/bottomSheetGestureHandlersProvider/BottomSheetGestureHandlersProvider.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetGestureHandlersProvider/index.d.ts +2 -0
- package/lib/typescript/components/bottomSheetGestureHandlersProvider/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetGestureHandlersProvider/types.d.ts +8 -0
- package/lib/typescript/components/bottomSheetHandle/BottomSheetHandle.d.ts +6 -0
- package/lib/typescript/components/bottomSheetHandle/BottomSheetHandle.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHandle/BottomSheetHandleContainer.d.ts +6 -0
- package/lib/typescript/components/bottomSheetHandle/BottomSheetHandleContainer.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHandle/constants.d.ts +6 -0
- package/lib/typescript/components/bottomSheetHandle/constants.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHandle/index.d.ts +4 -0
- package/lib/typescript/components/bottomSheetHandle/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHandle/styles.d.ts +17 -0
- package/lib/typescript/components/bottomSheetHandle/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHandle/types.d.ts +52 -0
- package/lib/typescript/components/bottomSheetHostingContainer/BottomSheetHostingContainer.d.ts +6 -0
- package/lib/typescript/components/bottomSheetHostingContainer/BottomSheetHostingContainer.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHostingContainer/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheetHostingContainer/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHostingContainer/styles.d.ts +11 -0
- package/lib/typescript/components/bottomSheetHostingContainer/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHostingContainer/styles.web.d.ts +10 -0
- package/lib/typescript/components/bottomSheetHostingContainer/styles.web.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetHostingContainer/types.d.ts +17 -0
- package/lib/typescript/components/bottomSheetModal/BottomSheetModal.d.ts +10 -0
- package/lib/typescript/components/bottomSheetModal/BottomSheetModal.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetModal/constants.d.ts +4 -0
- package/lib/typescript/components/bottomSheetModal/constants.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetModal/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheetModal/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetModal/types.d.ts +67 -0
- package/lib/typescript/components/bottomSheetModalProvider/BottomSheetModalProvider.d.ts +5 -0
- package/lib/typescript/components/bottomSheetModalProvider/BottomSheetModalProvider.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetModalProvider/index.d.ts +2 -0
- package/lib/typescript/components/bottomSheetModalProvider/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetModalProvider/types.d.ts +12 -0
- package/lib/typescript/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.d.ts +10 -0
- package/lib/typescript/components/bottomSheetRefreshControl/BottomSheetRefreshControl.android.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetRefreshControl/BottomSheetRefreshControl.d.ts +3 -0
- package/lib/typescript/components/bottomSheetRefreshControl/BottomSheetRefreshControl.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetRefreshControl/index.d.ts +9 -0
- package/lib/typescript/components/bottomSheetRefreshControl/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetDraggableScrollable.d.ts +9 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetDraggableScrollable.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlashList.d.ts +11 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlashList.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlashList.web.d.ts +3 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlashList.web.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlatList.d.ts +5 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetFlatList.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetScrollView.d.ts +5 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetScrollView.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetSectionList.d.ts +6 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetSectionList.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetVirtualizedList.d.ts +5 -0
- package/lib/typescript/components/bottomSheetScrollable/BottomSheetVirtualizedList.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.android.d.ts +13 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.android.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.d.ts +9 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.web.d.ts +14 -0
- package/lib/typescript/components/bottomSheetScrollable/ScrollableContainer.web.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/createBottomSheetScrollableComponent.d.ts +4 -0
- package/lib/typescript/components/bottomSheetScrollable/createBottomSheetScrollableComponent.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/index.d.ts +8 -0
- package/lib/typescript/components/bottomSheetScrollable/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/styles.d.ts +7 -0
- package/lib/typescript/components/bottomSheetScrollable/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetScrollable/types.d.ts +280 -0
- package/lib/typescript/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.d.ts +8 -0
- package/lib/typescript/components/bottomSheetScrollable/useBottomSheetContentSizeSetter.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetTextInput/BottomSheetTextInput.d.ts +6 -0
- package/lib/typescript/components/bottomSheetTextInput/BottomSheetTextInput.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetTextInput/index.d.ts +3 -0
- package/lib/typescript/components/bottomSheetTextInput/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetTextInput/types.d.ts +4 -0
- package/lib/typescript/components/bottomSheetTextInput/types.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetView/BottomSheetView.d.ts +6 -0
- package/lib/typescript/components/bottomSheetView/BottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetView/index.d.ts +2 -0
- package/lib/typescript/components/bottomSheetView/index.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetView/styles.d.ts +9 -0
- package/lib/typescript/components/bottomSheetView/styles.d.ts.map +1 -0
- package/lib/typescript/components/bottomSheetView/types.d.ts +24 -0
- package/lib/typescript/components/touchables/Touchables.d.ts +2 -0
- package/lib/typescript/components/touchables/Touchables.d.ts.map +1 -0
- package/lib/typescript/components/touchables/Touchables.ios.d.ts +2 -0
- package/lib/typescript/components/touchables/Touchables.ios.d.ts.map +1 -0
- package/lib/typescript/components/touchables/index.d.ts +8 -0
- package/lib/typescript/components/touchables/index.d.ts.map +1 -0
- package/lib/typescript/constants.d.ts +96 -0
- package/lib/typescript/constants.d.ts.map +1 -0
- package/lib/typescript/contexts/external.d.ts +4 -0
- package/lib/typescript/contexts/external.d.ts.map +1 -0
- package/lib/typescript/contexts/gesture.d.ts +9 -0
- package/lib/typescript/contexts/gesture.d.ts.map +1 -0
- package/lib/typescript/contexts/index.d.ts +7 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -0
- package/lib/typescript/contexts/internal.d.ts +29 -0
- package/lib/typescript/contexts/internal.d.ts.map +1 -0
- package/lib/typescript/contexts/modal/external.d.ts +7 -0
- package/lib/typescript/contexts/modal/external.d.ts.map +1 -0
- package/lib/typescript/contexts/modal/internal.d.ts +14 -0
- package/lib/typescript/contexts/modal/internal.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +19 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useAnimatedDetents.d.ts +20 -0
- package/lib/typescript/hooks/useAnimatedDetents.d.ts.map +1 -0
- package/lib/typescript/hooks/useAnimatedKeyboard.d.ts +6 -0
- package/lib/typescript/hooks/useAnimatedKeyboard.d.ts.map +1 -0
- package/lib/typescript/hooks/useAnimatedLayout.d.ts +26 -0
- package/lib/typescript/hooks/useAnimatedLayout.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheet.d.ts +2 -0
- package/lib/typescript/hooks/useBottomSheet.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetContentContainerStyle.d.ts +3 -0
- package/lib/typescript/hooks/useBottomSheetContentContainerStyle.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetGestureHandlers.d.ts +2 -0
- package/lib/typescript/hooks/useBottomSheetGestureHandlers.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetInternal.d.ts +4 -0
- package/lib/typescript/hooks/useBottomSheetInternal.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetModal.d.ts +2 -0
- package/lib/typescript/hooks/useBottomSheetModal.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetModalInternal.d.ts +4 -0
- package/lib/typescript/hooks/useBottomSheetModalInternal.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetScrollableCreator.d.ts +29 -0
- package/lib/typescript/hooks/useBottomSheetScrollableCreator.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetSpringConfigs.d.ts +7 -0
- package/lib/typescript/hooks/useBottomSheetSpringConfigs.d.ts.map +1 -0
- package/lib/typescript/hooks/useBottomSheetTimingConfigs.d.ts +21 -0
- package/lib/typescript/hooks/useBottomSheetTimingConfigs.d.ts.map +1 -0
- package/lib/typescript/hooks/useBoundingClientRect.d.ts +42 -0
- package/lib/typescript/hooks/useBoundingClientRect.d.ts.map +1 -0
- package/lib/typescript/hooks/useGestureEventsHandlersDefault.d.ts +3 -0
- package/lib/typescript/hooks/useGestureEventsHandlersDefault.d.ts.map +1 -0
- package/lib/typescript/hooks/useGestureEventsHandlersDefault.web.d.ts +8 -0
- package/lib/typescript/hooks/useGestureEventsHandlersDefault.web.d.ts.map +1 -0
- package/lib/typescript/hooks/useGestureHandler.d.ts +3 -0
- package/lib/typescript/hooks/useGestureHandler.d.ts.map +1 -0
- package/lib/typescript/hooks/usePropsValidator.d.ts +7 -0
- package/lib/typescript/hooks/usePropsValidator.d.ts.map +1 -0
- package/lib/typescript/hooks/useReactiveSharedValue.d.ts +4 -0
- package/lib/typescript/hooks/useReactiveSharedValue.d.ts.map +1 -0
- package/lib/typescript/hooks/useScrollEventsHandlersDefault.d.ts +7 -0
- package/lib/typescript/hooks/useScrollEventsHandlersDefault.d.ts.map +1 -0
- package/lib/typescript/hooks/useScrollHandler.d.ts +7 -0
- package/lib/typescript/hooks/useScrollHandler.d.ts.map +1 -0
- package/lib/typescript/hooks/useScrollHandler.web.d.ts +11 -0
- package/lib/typescript/hooks/useScrollHandler.web.d.ts.map +1 -0
- package/lib/typescript/hooks/useScrollable.d.ts +11 -0
- package/lib/typescript/hooks/useScrollable.d.ts.map +1 -0
- package/lib/typescript/hooks/useScrollableSetter.d.ts +6 -0
- package/lib/typescript/hooks/useScrollableSetter.d.ts.map +1 -0
- package/lib/typescript/hooks/useStableCallback.d.ts +7 -0
- package/lib/typescript/hooks/useStableCallback.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +35 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +336 -0
- package/lib/typescript/utilities/animate.d.ts +11 -0
- package/lib/typescript/utilities/animate.d.ts.map +1 -0
- package/lib/typescript/utilities/clamp.d.ts +2 -0
- package/lib/typescript/utilities/clamp.d.ts.map +1 -0
- package/lib/typescript/utilities/easingExp.d.ts +8 -0
- package/lib/typescript/utilities/easingExp.d.ts.map +1 -0
- package/lib/typescript/utilities/findNodeHandle.d.ts +2 -0
- package/lib/typescript/utilities/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/utilities/findNodeHandle.web.d.ts +3 -0
- package/lib/typescript/utilities/findNodeHandle.web.d.ts.map +1 -0
- package/lib/typescript/utilities/getKeyboardAnimationConfigs.d.ts +21 -0
- package/lib/typescript/utilities/getKeyboardAnimationConfigs.d.ts.map +1 -0
- package/lib/typescript/utilities/getRefNativeTag.web.d.ts +3 -0
- package/lib/typescript/utilities/getRefNativeTag.web.d.ts.map +1 -0
- package/lib/typescript/utilities/id.d.ts +2 -0
- package/lib/typescript/utilities/id.d.ts.map +1 -0
- package/lib/typescript/utilities/index.d.ts +8 -0
- package/lib/typescript/utilities/index.d.ts.map +1 -0
- package/lib/typescript/utilities/isFabricInstalled.d.ts +7 -0
- package/lib/typescript/utilities/isFabricInstalled.d.ts.map +1 -0
- package/lib/typescript/utilities/logger.d.ts +11 -0
- package/lib/typescript/utilities/logger.d.ts.map +1 -0
- package/lib/typescript/utilities/noop.d.ts +4 -0
- package/lib/typescript/utilities/noop.d.ts.map +1 -0
- package/lib/typescript/utilities/normalizeSnapPoint.d.ts +5 -0
- package/lib/typescript/utilities/normalizeSnapPoint.d.ts.map +1 -0
- package/lib/typescript/utilities/snapPoint.d.ts +2 -0
- package/lib/typescript/utilities/snapPoint.d.ts.map +1 -0
- package/lib/typescript/utilities/validateSnapPoint.d.ts +2 -0
- package/lib/typescript/utilities/validateSnapPoint.d.ts.map +1 -0
- package/package.json +1 -5
- package/src/components/bottomSheet/BottomSheet.tsx +22 -5
- package/src/components/bottomSheet/BottomSheetContent.tsx +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollableSetter.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScrollableSetter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,eAAO,MAAM,mBAAmB,GAC9B,KAAK,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAChC,MAAM,eAAe,EACrB,gBAAgB,WAAW,CAAC,MAAM,CAAC,EACnC,aAAa,OAAO,EACpB,qCAAwB,SA0CzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Callback<T extends unknown[], R> = (...args: T) => R;
|
|
2
|
+
/**
|
|
3
|
+
* Provide a stable version of useCallback.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useStableCallback<T extends unknown[], R>(callback: Callback<T, R>): Callback<T, R | undefined>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=useStableCallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStableCallback.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStableCallback.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;AAE1D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EACtD,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,8BAiBzB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { default } from './components/bottomSheet';
|
|
2
|
+
export { default as BottomSheetModal } from './components/bottomSheetModal';
|
|
3
|
+
export { default as BottomSheetModalProvider } from './components/bottomSheetModalProvider';
|
|
4
|
+
export { useBottomSheet } from './hooks/useBottomSheet';
|
|
5
|
+
export { useBottomSheetModal } from './hooks/useBottomSheetModal';
|
|
6
|
+
export { useBottomSheetSpringConfigs } from './hooks/useBottomSheetSpringConfigs';
|
|
7
|
+
export { useBottomSheetTimingConfigs } from './hooks/useBottomSheetTimingConfigs';
|
|
8
|
+
export { useBottomSheetInternal } from './hooks/useBottomSheetInternal';
|
|
9
|
+
export { useBottomSheetModalInternal } from './hooks/useBottomSheetModalInternal';
|
|
10
|
+
export { useScrollEventsHandlersDefault } from './hooks/useScrollEventsHandlersDefault';
|
|
11
|
+
export { useGestureEventsHandlersDefault } from './hooks/useGestureEventsHandlersDefault';
|
|
12
|
+
export { useBottomSheetGestureHandlers } from './hooks/useBottomSheetGestureHandlers';
|
|
13
|
+
export { useScrollHandler } from './hooks/useScrollHandler';
|
|
14
|
+
export { useScrollableSetter } from './hooks/useScrollableSetter';
|
|
15
|
+
export { useBottomSheetScrollableCreator } from './hooks/useBottomSheetScrollableCreator';
|
|
16
|
+
export { BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetVirtualizedList, BottomSheetFlashList, } from './components/bottomSheetScrollable';
|
|
17
|
+
export { BottomSheetHandle } from './components/bottomSheetHandle';
|
|
18
|
+
export { default as BottomSheetDraggableView } from './components/bottomSheetDraggableView';
|
|
19
|
+
export { default as BottomSheetView } from './components/bottomSheetView';
|
|
20
|
+
export { default as BottomSheetTextInput } from './components/bottomSheetTextInput';
|
|
21
|
+
export { BottomSheetBackdrop } from './components/bottomSheetBackdrop';
|
|
22
|
+
export { BottomSheetFooter, BottomSheetFooterContainer, } from './components/bottomSheetFooter';
|
|
23
|
+
export declare const TouchableHighlight: import("react").ForwardRefExoticComponent<import("react-native").TouchableHighlightProps & import("react").RefAttributes<import("react-native").View>>, TouchableOpacity: import("react").ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View>>, TouchableWithoutFeedback: typeof import("react-native").TouchableWithoutFeedback;
|
|
24
|
+
export { createBottomSheetScrollableComponent } from './components/bottomSheetScrollable';
|
|
25
|
+
export type { BottomSheetProps } from './components/bottomSheet';
|
|
26
|
+
export type { BottomSheetModalProps } from './components/bottomSheetModal';
|
|
27
|
+
export type { BottomSheetHandleProps } from './components/bottomSheetHandle';
|
|
28
|
+
export type { BottomSheetBackgroundProps } from './components/bottomSheetBackground';
|
|
29
|
+
export type { BottomSheetBackdropProps } from './components/bottomSheetBackdrop';
|
|
30
|
+
export type { BottomSheetFooterProps } from './components/bottomSheetFooter';
|
|
31
|
+
export type { BottomSheetFlatListMethods, BottomSheetScrollViewMethods, BottomSheetSectionListMethods, BottomSheetVirtualizedListMethods, BottomSheetScrollableProps, } from './components/bottomSheetScrollable';
|
|
32
|
+
export type { ScrollEventsHandlersHookType, GestureEventsHandlersHookType, ScrollEventHandlerCallbackType, GestureEventHandlerCallbackType, } from './types';
|
|
33
|
+
export * from './constants';
|
|
34
|
+
export { enableLogging } from './utilities/logger';
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAG5F,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAI1F,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MACL,kBAAkB,0JAClB,gBAAgB,wJAChB,wBAAwB,wDACF,CAAC;AAEzB,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAI1F,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,YAAY,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,YAAY,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,iCAAiC,EACjC,0BAA0B,GAC3B,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,SAAS,CAAC;AAIjB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type {
|
|
3
|
+
AccessibilityProps,
|
|
4
|
+
FlatList,
|
|
5
|
+
Insets,
|
|
6
|
+
KeyboardEventEasing,
|
|
7
|
+
NativeScrollEvent,
|
|
8
|
+
NativeSyntheticEvent,
|
|
9
|
+
ScrollView,
|
|
10
|
+
SectionList,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import type {
|
|
13
|
+
GestureEventPayload,
|
|
14
|
+
GestureStateChangeEvent,
|
|
15
|
+
GestureUpdateEvent,
|
|
16
|
+
PanGestureChangeEventPayload,
|
|
17
|
+
PanGestureHandlerEventPayload,
|
|
18
|
+
State,
|
|
19
|
+
} from 'react-native-gesture-handler';
|
|
20
|
+
import type {
|
|
21
|
+
EasingFunction,
|
|
22
|
+
EasingFunctionFactory,
|
|
23
|
+
ReduceMotion,
|
|
24
|
+
SharedValue,
|
|
25
|
+
WithSpringConfig,
|
|
26
|
+
WithTimingConfig,
|
|
27
|
+
} from 'react-native-reanimated';
|
|
28
|
+
import type {
|
|
29
|
+
ANIMATION_SOURCE,
|
|
30
|
+
ANIMATION_STATUS,
|
|
31
|
+
GESTURE_SOURCE,
|
|
32
|
+
KEYBOARD_STATUS,
|
|
33
|
+
SCROLLABLE_STATUS,
|
|
34
|
+
SCROLLABLE_TYPE,
|
|
35
|
+
} from './constants';
|
|
36
|
+
|
|
37
|
+
//#region Methods
|
|
38
|
+
export interface BottomSheetMethods {
|
|
39
|
+
/**
|
|
40
|
+
* Snap to one of the provided points from `snapPoints`.
|
|
41
|
+
* @param index snap point index.
|
|
42
|
+
* @param animationConfigs snap animation configs.
|
|
43
|
+
*
|
|
44
|
+
* @see {WithSpringConfig}
|
|
45
|
+
* @see {WithTimingConfig}
|
|
46
|
+
*/
|
|
47
|
+
snapToIndex: (
|
|
48
|
+
index: number,
|
|
49
|
+
animationConfigs?: WithSpringConfig | WithTimingConfig
|
|
50
|
+
) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Snap to a position out of provided `snapPoints`.
|
|
53
|
+
* @param position position in pixel or percentage.
|
|
54
|
+
* @param animationConfigs snap animation configs.
|
|
55
|
+
*
|
|
56
|
+
* @see {WithSpringConfig}
|
|
57
|
+
* @see {WithTimingConfig}
|
|
58
|
+
*/
|
|
59
|
+
snapToPosition: (
|
|
60
|
+
position: number | string,
|
|
61
|
+
animationConfigs?: WithSpringConfig | WithTimingConfig
|
|
62
|
+
) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Snap to the maximum provided point from `snapPoints`.
|
|
65
|
+
* @param animationConfigs snap animation configs.
|
|
66
|
+
*
|
|
67
|
+
* @see {WithSpringConfig}
|
|
68
|
+
* @see {WithTimingConfig}
|
|
69
|
+
*/
|
|
70
|
+
expand: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Snap to the minimum provided point from `snapPoints`.
|
|
73
|
+
* @param animationConfigs snap animation configs.
|
|
74
|
+
*
|
|
75
|
+
* @see {WithSpringConfig}
|
|
76
|
+
* @see {WithTimingConfig}
|
|
77
|
+
*/
|
|
78
|
+
collapse: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Close the bottom sheet.
|
|
81
|
+
* @param animationConfigs snap animation configs.
|
|
82
|
+
*
|
|
83
|
+
* @see {WithSpringConfig}
|
|
84
|
+
* @see {WithTimingConfig}
|
|
85
|
+
*/
|
|
86
|
+
close: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Force close the bottom sheet, this prevent any interruptions till the sheet is closed.
|
|
89
|
+
* @param animationConfigs snap animation configs.
|
|
90
|
+
*
|
|
91
|
+
* @see {WithSpringConfig}
|
|
92
|
+
* @see {WithTimingConfig}
|
|
93
|
+
*/
|
|
94
|
+
forceClose: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// biome-ignore lint/suspicious/noExplicitAny: Using 'any' allows users to define their own strict types for 'data' property.
|
|
98
|
+
export interface BottomSheetModalMethods<T = any> extends BottomSheetMethods {
|
|
99
|
+
/**
|
|
100
|
+
* Mount and present the bottom sheet modal to the initial snap point.
|
|
101
|
+
* @param data to be passed to the modal.
|
|
102
|
+
*/
|
|
103
|
+
present: (data?: T) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Close and unmount the bottom sheet modal.
|
|
106
|
+
* @param animationConfigs snap animation configs.
|
|
107
|
+
*
|
|
108
|
+
* @see {WithSpringConfig}
|
|
109
|
+
* @see {WithTimingConfig}
|
|
110
|
+
*/
|
|
111
|
+
dismiss: (animationConfigs?: WithSpringConfig | WithTimingConfig) => void;
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
|
|
115
|
+
export interface BottomSheetVariables {
|
|
116
|
+
/**
|
|
117
|
+
* Current sheet position index.
|
|
118
|
+
* @type SharedValue<number>
|
|
119
|
+
*/
|
|
120
|
+
animatedIndex: SharedValue<number>;
|
|
121
|
+
/**
|
|
122
|
+
* Current sheet position.
|
|
123
|
+
* @type SharedValue<number>
|
|
124
|
+
*/
|
|
125
|
+
animatedPosition: SharedValue<number>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
//#region scrollable
|
|
129
|
+
export type ScrollableState = {
|
|
130
|
+
type: SCROLLABLE_TYPE;
|
|
131
|
+
contentOffsetY: number;
|
|
132
|
+
refreshable: boolean;
|
|
133
|
+
};
|
|
134
|
+
export type Scrollable = FlatList | ScrollView | SectionList;
|
|
135
|
+
export type ScrollableRef = {
|
|
136
|
+
id: number;
|
|
137
|
+
node: React.RefObject<Scrollable>;
|
|
138
|
+
};
|
|
139
|
+
export type ScrollableEvent = (
|
|
140
|
+
event: Pick<NativeSyntheticEvent<NativeScrollEvent>, 'nativeEvent'>
|
|
141
|
+
) => void;
|
|
142
|
+
//#endregion
|
|
143
|
+
|
|
144
|
+
//#region utils
|
|
145
|
+
export interface TimingConfig {
|
|
146
|
+
duration?: number;
|
|
147
|
+
reduceMotion?: ReduceMotion;
|
|
148
|
+
easing?: EasingFunction | EasingFunctionFactory;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type SpringConfig = {
|
|
152
|
+
stiffness?: number;
|
|
153
|
+
overshootClamping?: boolean;
|
|
154
|
+
restDisplacementThreshold?: number;
|
|
155
|
+
restSpeedThreshold?: number;
|
|
156
|
+
velocity?: number;
|
|
157
|
+
reduceMotion?: ReduceMotion;
|
|
158
|
+
} & (
|
|
159
|
+
| {
|
|
160
|
+
mass?: number;
|
|
161
|
+
damping?: number;
|
|
162
|
+
duration?: never;
|
|
163
|
+
dampingRatio?: never;
|
|
164
|
+
clamp?: never;
|
|
165
|
+
}
|
|
166
|
+
| {
|
|
167
|
+
mass?: never;
|
|
168
|
+
damping?: never;
|
|
169
|
+
duration?: number;
|
|
170
|
+
dampingRatio?: number;
|
|
171
|
+
clamp?: { min?: number; max?: number };
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
export type Primitive = string | number | boolean;
|
|
176
|
+
//#endregion
|
|
177
|
+
|
|
178
|
+
//#region hooks
|
|
179
|
+
export type GestureEventPayloadType = GestureEventPayload &
|
|
180
|
+
PanGestureHandlerEventPayload;
|
|
181
|
+
|
|
182
|
+
export type GestureEventContextType = {
|
|
183
|
+
didStart?: boolean;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type GestureEventHandlerCallbackType = (
|
|
187
|
+
source: GESTURE_SOURCE,
|
|
188
|
+
payload: GestureEventPayloadType
|
|
189
|
+
) => void;
|
|
190
|
+
|
|
191
|
+
export type GestureEventsHandlersHookType = () => {
|
|
192
|
+
handleOnStart: GestureEventHandlerCallbackType;
|
|
193
|
+
handleOnChange: GestureEventHandlerCallbackType;
|
|
194
|
+
handleOnEnd: GestureEventHandlerCallbackType;
|
|
195
|
+
handleOnFinalize: GestureEventHandlerCallbackType;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type GestureHandlersHookType = (
|
|
199
|
+
source: GESTURE_SOURCE,
|
|
200
|
+
state: SharedValue<State>,
|
|
201
|
+
gestureSource: SharedValue<GESTURE_SOURCE>,
|
|
202
|
+
onStart: GestureEventHandlerCallbackType,
|
|
203
|
+
onChange: GestureEventHandlerCallbackType,
|
|
204
|
+
onEnd: GestureEventHandlerCallbackType,
|
|
205
|
+
onFinalize: GestureEventHandlerCallbackType
|
|
206
|
+
) => {
|
|
207
|
+
handleOnStart: (
|
|
208
|
+
event: GestureStateChangeEvent<PanGestureHandlerEventPayload>
|
|
209
|
+
) => void;
|
|
210
|
+
handleOnChange: (
|
|
211
|
+
event: GestureUpdateEvent<
|
|
212
|
+
PanGestureHandlerEventPayload & PanGestureChangeEventPayload
|
|
213
|
+
>
|
|
214
|
+
) => void;
|
|
215
|
+
handleOnEnd: (
|
|
216
|
+
event: GestureStateChangeEvent<PanGestureHandlerEventPayload>
|
|
217
|
+
) => void;
|
|
218
|
+
handleOnFinalize: (
|
|
219
|
+
event: GestureStateChangeEvent<PanGestureHandlerEventPayload>
|
|
220
|
+
) => void;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type ScrollEventHandlerCallbackType<C = never> = (
|
|
224
|
+
payload: NativeScrollEvent,
|
|
225
|
+
context: C
|
|
226
|
+
) => void;
|
|
227
|
+
|
|
228
|
+
export type ScrollEventsHandlersHookType = (
|
|
229
|
+
ref: React.RefObject<Scrollable>,
|
|
230
|
+
contentOffsetY: SharedValue<number>
|
|
231
|
+
) => {
|
|
232
|
+
handleOnScroll?: ScrollEventHandlerCallbackType;
|
|
233
|
+
handleOnBeginDrag?: ScrollEventHandlerCallbackType;
|
|
234
|
+
handleOnEndDrag?: ScrollEventHandlerCallbackType;
|
|
235
|
+
handleOnMomentumBegin?: ScrollEventHandlerCallbackType;
|
|
236
|
+
handleOnMomentumEnd?: ScrollEventHandlerCallbackType;
|
|
237
|
+
};
|
|
238
|
+
//#endregion
|
|
239
|
+
|
|
240
|
+
//#region accessibility
|
|
241
|
+
export interface NullableAccessibilityProps extends AccessibilityProps {
|
|
242
|
+
accessible?: AccessibilityProps['accessible'] | null;
|
|
243
|
+
accessibilityLabel?: AccessibilityProps['accessibilityLabel'] | null;
|
|
244
|
+
accessibilityHint?: AccessibilityProps['accessibilityHint'] | null;
|
|
245
|
+
accessibilityRole?: AccessibilityProps['accessibilityRole'] | null;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
|
|
249
|
+
//#region states
|
|
250
|
+
export type KeyboardState = {
|
|
251
|
+
target?: number;
|
|
252
|
+
status: KEYBOARD_STATUS;
|
|
253
|
+
height: number;
|
|
254
|
+
heightWithinContainer: number;
|
|
255
|
+
easing: KeyboardEventEasing;
|
|
256
|
+
duration: number;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Represents the state of an animation, including its current status and the source that triggered it.
|
|
261
|
+
*/
|
|
262
|
+
export type AnimationState = {
|
|
263
|
+
/**
|
|
264
|
+
* The current status of the animation, this can be one of the values defined in the `ANIMATION_STATUS` enum, such as 'idle', 'running', 'completed', etc.
|
|
265
|
+
*/
|
|
266
|
+
status: ANIMATION_STATUS;
|
|
267
|
+
/**
|
|
268
|
+
* The source of the animation which indicates where the animation was initiated from, such as user interaction, system event, or programmatic trigger.
|
|
269
|
+
* It is represented by the `ANIMATION_SOURCE` enum, which includes values like 'user', 'system', etc.
|
|
270
|
+
*/
|
|
271
|
+
source: ANIMATION_SOURCE;
|
|
272
|
+
/**
|
|
273
|
+
* The index of the next snap point that the animation is targeting.
|
|
274
|
+
*/
|
|
275
|
+
nextIndex?: number;
|
|
276
|
+
/**
|
|
277
|
+
* The next position in pixels that the animation is targeting.
|
|
278
|
+
*/
|
|
279
|
+
nextPosition?: number;
|
|
280
|
+
/**
|
|
281
|
+
* Indicates whether the animation is forced closing to prevent any interruptions.
|
|
282
|
+
*/
|
|
283
|
+
isForcedClosing?: boolean;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Represents the layout state of the bottom sheet container.
|
|
288
|
+
*/
|
|
289
|
+
export type ContainerLayoutState = {
|
|
290
|
+
/**
|
|
291
|
+
* The height of the container in pixels.
|
|
292
|
+
*/
|
|
293
|
+
height: number;
|
|
294
|
+
/**
|
|
295
|
+
* The required insets applied to the container, such as padding or safe area.
|
|
296
|
+
*/
|
|
297
|
+
offset: Required<Insets>;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Represents the layout state of the bottom sheet components.
|
|
302
|
+
*/
|
|
303
|
+
export type LayoutState = {
|
|
304
|
+
/**
|
|
305
|
+
* The original height of the container before any adjustments.
|
|
306
|
+
*/
|
|
307
|
+
rawContainerHeight: number;
|
|
308
|
+
/**
|
|
309
|
+
* The adjusted height of the container after applying insets or other modifications.
|
|
310
|
+
*/
|
|
311
|
+
containerHeight: number;
|
|
312
|
+
/**
|
|
313
|
+
* The required insets applied to the container, such as padding or safe area.
|
|
314
|
+
*/
|
|
315
|
+
containerOffset: Required<Insets>;
|
|
316
|
+
/**
|
|
317
|
+
* The height of the handle element used to drag the bottom sheet.
|
|
318
|
+
*/
|
|
319
|
+
handleHeight: number;
|
|
320
|
+
/**
|
|
321
|
+
* The height of the footer section within the bottom sheet.
|
|
322
|
+
*/
|
|
323
|
+
footerHeight: number;
|
|
324
|
+
/**
|
|
325
|
+
* The total height of the content inside the bottom sheet.
|
|
326
|
+
*/
|
|
327
|
+
contentHeight: number;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export type DetentsState = {
|
|
331
|
+
detents?: number[];
|
|
332
|
+
dynamicDetentIndex?: number;
|
|
333
|
+
highestDetentPosition?: number;
|
|
334
|
+
closedDetentPosition?: number;
|
|
335
|
+
};
|
|
336
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AnimationCallback, type ReduceMotion, type WithSpringConfig, type WithTimingConfig } from 'react-native-reanimated';
|
|
2
|
+
interface AnimateParams {
|
|
3
|
+
point: number;
|
|
4
|
+
velocity?: number;
|
|
5
|
+
configs?: WithSpringConfig | WithTimingConfig;
|
|
6
|
+
overrideReduceMotion?: ReduceMotion;
|
|
7
|
+
onComplete?: AnimationCallback;
|
|
8
|
+
}
|
|
9
|
+
export declare const animate: ({ point, configs, velocity, overrideReduceMotion, onComplete, }: AnimateParams) => number;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=animate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../../../src/utilities/animate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAGtB,MAAM,yBAAyB,CAAC;AAGjC,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,CAAC;IAC9C,oBAAoB,CAAC,EAAE,YAAY,CAAC;IACpC,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED,eAAO,MAAM,OAAO,GAAI,iEAMrB,aAAa,WA+Bf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../src/utilities/clamp.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,GAChB,OAAO,MAAM,EACb,YAAY,MAAM,EAClB,YAAY,MAAM,WAInB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A modified version of the default AnimatedEasing.exp,
|
|
3
|
+
* to insure its value never goes below `0`.
|
|
4
|
+
* @see https://github.com/software-mansion/react-native-reanimated/issues/1610
|
|
5
|
+
* @param t number
|
|
6
|
+
*/
|
|
7
|
+
export declare const exp: (t: number) => number;
|
|
8
|
+
//# sourceMappingURL=easingExp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easingExp.d.ts","sourceRoot":"","sources":["../../../src/utilities/easingExp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,WAG5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findNodeHandle.d.ts","sourceRoot":"","sources":["../../../src/utilities/findNodeHandle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { findNodeHandle as _findNodeHandle } from 'react-native';
|
|
2
|
+
export declare function findNodeHandle(componentOrHandle: Parameters<typeof _findNodeHandle>['0']): number | import("react").Component<any, any, any> | import("react").ComponentClass<any, any> | null;
|
|
3
|
+
//# sourceMappingURL=findNodeHandle.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findNodeHandle.web.d.ts","sourceRoot":"","sources":["../../../src/utilities/findNodeHandle.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,IAAI,eAAe,EAClC,MAAM,cAAc,CAAC;AAEtB,wBAAgB,cAAc,CAC5B,iBAAiB,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,GAAG,CAAC,uGA0B3D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { KeyboardEventEasing } from 'react-native';
|
|
2
|
+
export declare const getKeyboardAnimationConfigs: (easing: KeyboardEventEasing, duration: number) => {
|
|
3
|
+
easing: import("react-native-reanimated").EasingFunction;
|
|
4
|
+
duration: number;
|
|
5
|
+
damping?: undefined;
|
|
6
|
+
stiffness?: undefined;
|
|
7
|
+
mass?: undefined;
|
|
8
|
+
overshootClamping?: undefined;
|
|
9
|
+
restDisplacementThreshold?: undefined;
|
|
10
|
+
restSpeedThreshold?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
damping: number;
|
|
13
|
+
stiffness: number;
|
|
14
|
+
mass: number;
|
|
15
|
+
overshootClamping: boolean;
|
|
16
|
+
restDisplacementThreshold: number;
|
|
17
|
+
restSpeedThreshold: number;
|
|
18
|
+
easing?: undefined;
|
|
19
|
+
duration?: undefined;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=getKeyboardAnimationConfigs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKeyboardAnimationConfigs.d.ts","sourceRoot":"","sources":["../../../src/utilities/getKeyboardAnimationConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,eAAO,MAAM,2BAA2B,GACtC,QAAQ,mBAAmB,EAC3B,UAAU,MAAM;;;;;;;;;;;;;;;;;;CAsCjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRefNativeTag.web.d.ts","sourceRoot":"","sources":["../../../src/utilities/getRefNativeTag.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,wBAAgB,eAAe,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,iBAEpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../src/utilities/id.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,EAAE,cAGd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { normalizeSnapPoint } from './normalizeSnapPoint';
|
|
2
|
+
export { animate } from './animate';
|
|
3
|
+
export { getKeyboardAnimationConfigs } from './getKeyboardAnimationConfigs';
|
|
4
|
+
export { print } from './logger';
|
|
5
|
+
export { noop, workletNoop } from './noop';
|
|
6
|
+
export { isFabricInstalled } from './isFabricInstalled';
|
|
7
|
+
export { findNodeHandle } from './findNodeHandle';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isFabricInstalled.d.ts","sourceRoot":"","sources":["../../../src/utilities/isFabricInstalled.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,iBAAiB,YAGhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface PrintOptions {
|
|
2
|
+
component?: string;
|
|
3
|
+
category?: 'layout' | 'effect' | 'callback';
|
|
4
|
+
method?: string;
|
|
5
|
+
params?: Record<string, unknown> | string | number | boolean;
|
|
6
|
+
}
|
|
7
|
+
type Print = (options: PrintOptions) => void;
|
|
8
|
+
declare const enableLogging: (excludeCategories?: PrintOptions["category"][]) => void;
|
|
9
|
+
declare let print: Print;
|
|
10
|
+
export { print, enableLogging };
|
|
11
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utilities/logger.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC9D;AAED,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;AAK7C,QAAA,MAAM,aAAa,GAAI,oBAAoB,YAAY,CAAC,UAAU,CAAC,EAAE,SAQpE,CAAC;AAEF,QAAA,IAAI,KAAK,EAAE,KAAgB,CAAC;AAgC5B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.d.ts","sourceRoot":"","sources":["../../../src/utilities/noop.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW,YAEhB,CAAC;AAEF,QAAA,MAAM,IAAI,YAAW,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeSnapPoint.d.ts","sourceRoot":"","sources":["../../../src/utilities/normalizeSnapPoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,MAAM,GAAG,MAAM,EAC1B,iBAAiB,MAAM,WAWxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapPoint.d.ts","sourceRoot":"","sources":["../../../src/utilities/snapPoint.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,QAAQ,aAAa,CAAC,MAAM,CAAC,KAC5B,MAMF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSnapPoint.d.ts","sourceRoot":"","sources":["../../../src/utilities/validateSnapPoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,GAAG,MAAM,SAiB3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mustmove/bottom-sheet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A performant interactive bottom sheet with fully configurable options 🚀",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -52,15 +52,11 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@biomejs/biome": "2.2.2",
|
|
55
|
-
"@commitlint/cli": "^19.8.1",
|
|
56
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
57
55
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
58
56
|
"@types/invariant": "^2.2.34",
|
|
59
57
|
"@types/react": "~18.3.12",
|
|
60
58
|
"@types/react-native": "~0.73.0",
|
|
61
59
|
"copyfiles": "^2.4.1",
|
|
62
|
-
"husky": "^4.3.8",
|
|
63
|
-
"lint-staged": "^13.2.2",
|
|
64
60
|
"metro-react-native-babel-preset": "^0.77.0",
|
|
65
61
|
"react": "18.3.1",
|
|
66
62
|
"react-native": "0.76.0",
|
|
@@ -800,15 +800,19 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
|
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
/**
|
|
803
|
-
* if the keyboard blur behavior is restore
|
|
803
|
+
* if the keyboard is hidden and blur behavior is restore (or on Android
|
|
804
|
+
* with adjustPan where the sheet is in a temporary position),
|
|
804
805
|
* then we return the previous snap point.
|
|
805
806
|
*/
|
|
806
807
|
if (
|
|
807
808
|
source === ANIMATION_SOURCE.KEYBOARD &&
|
|
808
|
-
keyboardBlurBehavior === KEYBOARD_BLUR_BEHAVIOR.restore &&
|
|
809
809
|
keyboardStatus === KEYBOARD_STATUS.HIDDEN &&
|
|
810
810
|
animatedContentGestureState.value !== State.ACTIVE &&
|
|
811
|
-
animatedHandleGestureState.value !== State.ACTIVE
|
|
811
|
+
animatedHandleGestureState.value !== State.ACTIVE &&
|
|
812
|
+
(keyboardBlurBehavior === KEYBOARD_BLUR_BEHAVIOR.restore ||
|
|
813
|
+
(Platform.OS === 'android' &&
|
|
814
|
+
android_keyboardInputMode !== KEYBOARD_INPUT_MODE.adjustResize &&
|
|
815
|
+
isInTemporaryPosition.value))
|
|
812
816
|
) {
|
|
813
817
|
isInTemporaryPosition.value = false;
|
|
814
818
|
const nextPosition = detents[currentIndex];
|
|
@@ -1729,13 +1733,25 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
|
|
|
1729
1733
|
}
|
|
1730
1734
|
|
|
1731
1735
|
/**
|
|
1732
|
-
* if new keyboard state is hidden and blur behavior is none, then exit the method
|
|
1736
|
+
* if new keyboard state is hidden and blur behavior is none, then exit the method.
|
|
1737
|
+
*
|
|
1738
|
+
* Exception: On Android with adjustPan mode, there is no container resize
|
|
1739
|
+
* event when the keyboard is dismissed (e.g. via back button). If the sheet
|
|
1740
|
+
* is in a temporary position, we must evaluate the position to restore it.
|
|
1733
1741
|
*/
|
|
1734
1742
|
if (
|
|
1735
1743
|
status === KEYBOARD_STATUS.HIDDEN &&
|
|
1736
1744
|
keyboardBlurBehavior === KEYBOARD_BLUR_BEHAVIOR.none
|
|
1737
1745
|
) {
|
|
1738
|
-
|
|
1746
|
+
if (
|
|
1747
|
+
!(
|
|
1748
|
+
Platform.OS === 'android' &&
|
|
1749
|
+
android_keyboardInputMode !== KEYBOARD_INPUT_MODE.adjustResize &&
|
|
1750
|
+
isInTemporaryPosition.value
|
|
1751
|
+
)
|
|
1752
|
+
) {
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1739
1755
|
}
|
|
1740
1756
|
|
|
1741
1757
|
const animationConfigs = getKeyboardAnimationConfigs(easing, duration);
|
|
@@ -1750,6 +1766,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
|
|
|
1750
1766
|
animatedKeyboardState,
|
|
1751
1767
|
animatedLayoutState,
|
|
1752
1768
|
getEvaluatedPosition,
|
|
1769
|
+
isInTemporaryPosition,
|
|
1753
1770
|
]
|
|
1754
1771
|
);
|
|
1755
1772
|
|