@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,96 @@
|
|
|
1
|
+
import type { SpringConfig, TimingConfig } from './types';
|
|
2
|
+
declare const WINDOW_HEIGHT: number, WINDOW_WIDTH: number;
|
|
3
|
+
declare const SCREEN_HEIGHT: number, SCREEN_WIDTH: number;
|
|
4
|
+
declare enum GESTURE_SOURCE {
|
|
5
|
+
UNDETERMINED = 0,
|
|
6
|
+
SCROLLABLE = 1,
|
|
7
|
+
HANDLE = 2,
|
|
8
|
+
CONTENT = 3
|
|
9
|
+
}
|
|
10
|
+
declare enum SHEET_STATE {
|
|
11
|
+
CLOSED = 0,
|
|
12
|
+
OPENED = 1,
|
|
13
|
+
EXTENDED = 2,
|
|
14
|
+
OVER_EXTENDED = 3,
|
|
15
|
+
FILL_PARENT = 4
|
|
16
|
+
}
|
|
17
|
+
declare enum SCROLLABLE_STATUS {
|
|
18
|
+
LOCKED = 0,
|
|
19
|
+
UNLOCKED = 1,
|
|
20
|
+
UNDETERMINED = 2
|
|
21
|
+
}
|
|
22
|
+
declare enum SCROLLABLE_TYPE {
|
|
23
|
+
UNDETERMINED = 0,
|
|
24
|
+
VIEW = 1,
|
|
25
|
+
FLATLIST = 2,
|
|
26
|
+
SCROLLVIEW = 3,
|
|
27
|
+
SECTIONLIST = 4,
|
|
28
|
+
VIRTUALIZEDLIST = 5
|
|
29
|
+
}
|
|
30
|
+
declare enum ANIMATION_STATUS {
|
|
31
|
+
UNDETERMINED = 0,
|
|
32
|
+
RUNNING = 1,
|
|
33
|
+
STOPPED = 2,
|
|
34
|
+
INTERRUPTED = 3
|
|
35
|
+
}
|
|
36
|
+
declare enum ANIMATION_SOURCE {
|
|
37
|
+
NONE = 0,
|
|
38
|
+
MOUNT = 1,
|
|
39
|
+
GESTURE = 2,
|
|
40
|
+
USER = 3,
|
|
41
|
+
CONTAINER_RESIZE = 4,
|
|
42
|
+
SNAP_POINT_CHANGE = 5,
|
|
43
|
+
KEYBOARD = 6
|
|
44
|
+
}
|
|
45
|
+
declare enum ANIMATION_METHOD {
|
|
46
|
+
TIMING = 0,
|
|
47
|
+
SPRING = 1
|
|
48
|
+
}
|
|
49
|
+
declare enum KEYBOARD_STATUS {
|
|
50
|
+
UNDETERMINED = 0,
|
|
51
|
+
SHOWN = 1,
|
|
52
|
+
HIDDEN = 2
|
|
53
|
+
}
|
|
54
|
+
declare enum SNAP_POINT_TYPE {
|
|
55
|
+
PROVIDED = 0,
|
|
56
|
+
DYNAMIC = 1
|
|
57
|
+
}
|
|
58
|
+
declare const ANIMATION_EASING: import("react-native-reanimated").EasingFunction;
|
|
59
|
+
declare const ANIMATION_DURATION = 250;
|
|
60
|
+
declare const ANIMATION_CONFIGS: TimingConfig | SpringConfig;
|
|
61
|
+
declare const SCROLLABLE_DECELERATION_RATE_MAPPER: {
|
|
62
|
+
2: number;
|
|
63
|
+
0: number;
|
|
64
|
+
1: number;
|
|
65
|
+
};
|
|
66
|
+
declare const MODAL_STACK_BEHAVIOR: {
|
|
67
|
+
replace: string;
|
|
68
|
+
push: string;
|
|
69
|
+
switch: string;
|
|
70
|
+
};
|
|
71
|
+
declare const KEYBOARD_BEHAVIOR: {
|
|
72
|
+
readonly interactive: "interactive";
|
|
73
|
+
readonly extend: "extend";
|
|
74
|
+
readonly fillParent: "fillParent";
|
|
75
|
+
};
|
|
76
|
+
declare const KEYBOARD_BLUR_BEHAVIOR: {
|
|
77
|
+
readonly none: "none";
|
|
78
|
+
readonly restore: "restore";
|
|
79
|
+
};
|
|
80
|
+
declare const KEYBOARD_INPUT_MODE: {
|
|
81
|
+
readonly adjustPan: "adjustPan";
|
|
82
|
+
readonly adjustResize: "adjustResize";
|
|
83
|
+
};
|
|
84
|
+
declare const KEYBOARD_DISMISS_THRESHOLD = 12.5;
|
|
85
|
+
declare const INITIAL_LAYOUT_VALUE = -999;
|
|
86
|
+
declare const INITIAL_CONTAINER_LAYOUT: {
|
|
87
|
+
height: number;
|
|
88
|
+
offset: {
|
|
89
|
+
top: number;
|
|
90
|
+
bottom: number;
|
|
91
|
+
right: number;
|
|
92
|
+
left: number;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export { GESTURE_SOURCE, SHEET_STATE, ANIMATION_STATUS, ANIMATION_METHOD, ANIMATION_SOURCE, SCROLLABLE_TYPE, SCROLLABLE_STATUS, KEYBOARD_STATUS, SNAP_POINT_TYPE, WINDOW_HEIGHT, WINDOW_WIDTH, SCREEN_HEIGHT, SCREEN_WIDTH, SCROLLABLE_DECELERATION_RATE_MAPPER, MODAL_STACK_BEHAVIOR, KEYBOARD_BEHAVIOR, KEYBOARD_BLUR_BEHAVIOR, KEYBOARD_INPUT_MODE, KEYBOARD_DISMISS_THRESHOLD, ANIMATION_CONFIGS, ANIMATION_EASING, ANIMATION_DURATION, INITIAL_LAYOUT_VALUE, INITIAL_CONTAINER_LAYOUT, };
|
|
96
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAgB,aAAa,UAAS,YAAY,QAA6B,CAAC;AAChF,QAAA,MAAgB,aAAa,UAAS,YAAY,QAA6B,CAAC;AAEhF,aAAK,cAAc;IACjB,YAAY,IAAI;IAChB,UAAU,IAAI;IACd,MAAM,IAAI;IACV,OAAO,IAAI;CACZ;AAED,aAAK,WAAW;IACd,MAAM,IAAI;IACV,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,aAAa,IAAI;IACjB,WAAW,IAAI;CAChB;AAED,aAAK,iBAAiB;IACpB,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,YAAY,IAAI;CACjB;AAED,aAAK,eAAe;IAClB,YAAY,IAAI;IAChB,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,WAAW,IAAI;IACf,eAAe,IAAI;CACpB;AAED,aAAK,gBAAgB;IACnB,YAAY,IAAI;IAChB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AAED,aAAK,gBAAgB;IACnB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,OAAO,IAAI;IACX,IAAI,IAAI;IACR,gBAAgB,IAAI;IACpB,iBAAiB,IAAI;IACrB,QAAQ,IAAI;CACb;AAED,aAAK,gBAAgB;IACnB,MAAM,IAAI;IACV,MAAM,IAAI;CACX;AAED,aAAK,eAAe;IAClB,YAAY,IAAI;IAChB,KAAK,IAAI;IACT,MAAM,IAAI;CACX;AAED,aAAK,eAAe;IAClB,QAAQ,IAAI;IACZ,OAAO,IAAI;CACZ;AAED,QAAA,MAAM,gBAAgB,kDAAyB,CAAC;AAChD,QAAA,MAAM,kBAAkB,MAAM,CAAC;AAE/B,QAAA,MAAM,iBAAiB,6BAarB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;CAQxC,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;CAIzB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;CAIb,CAAC;AAEX,QAAA,MAAM,sBAAsB;;;CAGlB,CAAC;AAEX,QAAA,MAAM,mBAAmB;;;CAGf,CAAC;AAEX,QAAA,MAAM,0BAA0B,OAAO,CAAC;AAExC,QAAA,MAAM,oBAAoB,OAAO,CAAC;AAClC,QAAA,MAAM,wBAAwB;;;;;;;;CAQ7B,CAAC;AAEF,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,mCAAmC,EACnC,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,GACzB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BottomSheetMethods, BottomSheetVariables } from '../types';
|
|
2
|
+
export declare const BottomSheetContext: import("react").Context<(BottomSheetMethods & BottomSheetVariables) | null>;
|
|
3
|
+
export declare const BottomSheetProvider: import("react").Provider<(BottomSheetMethods & BottomSheetVariables) | null>;
|
|
4
|
+
//# sourceMappingURL=external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/contexts/external.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEzE,eAAO,MAAM,kBAAkB,6EAExB,CAAC;AAER,eAAO,MAAM,mBAAmB,8EAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Gesture } from 'react-native-gesture-handler/lib/typescript/handlers/gestures/gesture';
|
|
2
|
+
import type { GestureHandlersHookType } from '../types';
|
|
3
|
+
export interface BottomSheetGestureHandlersContextType {
|
|
4
|
+
contentPanGestureHandler: ReturnType<GestureHandlersHookType>;
|
|
5
|
+
handlePanGestureHandler: ReturnType<GestureHandlersHookType>;
|
|
6
|
+
}
|
|
7
|
+
export declare const BottomSheetGestureHandlersContext: import("react").Context<BottomSheetGestureHandlersContextType | null>;
|
|
8
|
+
export declare const BottomSheetDraggableContext: import("react").Context<Gesture | null>;
|
|
9
|
+
//# sourceMappingURL=gesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../src/contexts/gesture.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uEAAuE,CAAC;AACrG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,qCAAqC;IACpD,wBAAwB,EAAE,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAC9D,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,CAAC,CAAC;CAC9D;AAED,eAAO,MAAM,iCAAiC,uEACqB,CAAC;AAEpE,eAAO,MAAM,2BAA2B,yCAAsC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { BottomSheetContext, BottomSheetProvider } from './external';
|
|
2
|
+
export { BottomSheetInternalContext, BottomSheetInternalProvider, } from './internal';
|
|
3
|
+
export { BottomSheetGestureHandlersContext } from './gesture';
|
|
4
|
+
export { BottomSheetModalContext, BottomSheetModalProvider, } from './modal/external';
|
|
5
|
+
export { BottomSheetModalInternalContext, BottomSheetModalInternalProvider, } from './modal/internal';
|
|
6
|
+
export type { BottomSheetModalInternalContextType } from './modal/internal';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { State } from 'react-native-gesture-handler';
|
|
3
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import type { AnimateToPositionType, BottomSheetGestureProps, BottomSheetProps } from '../components/bottomSheet/types';
|
|
5
|
+
import type { SCROLLABLE_STATUS, SHEET_STATE } from '../constants';
|
|
6
|
+
import type { AnimationState, DetentsState, KeyboardState, LayoutState, Scrollable, ScrollableRef, ScrollableState } from '../types';
|
|
7
|
+
export interface BottomSheetInternalContextType extends Partial<BottomSheetGestureProps>, Required<Pick<BottomSheetProps, 'enableContentPanningGesture' | 'enableOverDrag' | 'enablePanDownToClose' | 'enableDynamicSizing' | 'enableBlurKeyboardOnGesture' | 'overDragResistanceFactor'>> {
|
|
8
|
+
animatedDetentsState: SharedValue<DetentsState>;
|
|
9
|
+
animatedAnimationState: SharedValue<AnimationState>;
|
|
10
|
+
animatedSheetState: SharedValue<SHEET_STATE>;
|
|
11
|
+
animatedKeyboardState: SharedValue<KeyboardState>;
|
|
12
|
+
animatedContentGestureState: SharedValue<State>;
|
|
13
|
+
animatedHandleGestureState: SharedValue<State>;
|
|
14
|
+
animatedLayoutState: SharedValue<LayoutState>;
|
|
15
|
+
animatedScrollableState: SharedValue<ScrollableState>;
|
|
16
|
+
animatedScrollableStatus: SharedValue<SCROLLABLE_STATUS>;
|
|
17
|
+
animatedPosition: SharedValue<number>;
|
|
18
|
+
animatedIndex: SharedValue<number>;
|
|
19
|
+
animatedSheetHeight: SharedValue<number>;
|
|
20
|
+
isInTemporaryPosition: SharedValue<boolean>;
|
|
21
|
+
stopAnimation: () => void;
|
|
22
|
+
animateToPosition: AnimateToPositionType;
|
|
23
|
+
setScrollableRef: (ref: ScrollableRef) => void;
|
|
24
|
+
removeScrollableRef: (ref: RefObject<Scrollable>) => void;
|
|
25
|
+
textInputNodesRef: React.MutableRefObject<Set<number>>;
|
|
26
|
+
}
|
|
27
|
+
export declare const BottomSheetInternalContext: import("react").Context<BottomSheetInternalContextType | null>;
|
|
28
|
+
export declare const BottomSheetInternalProvider: import("react").Provider<BottomSheetInternalContextType | null>;
|
|
29
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/contexts/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,8BACf,SAAQ,OAAO,CAAC,uBAAuB,CAAC,EACtC,QAAQ,CACN,IAAI,CACF,gBAAgB,EACd,6BAA6B,GAC7B,gBAAgB,GAChB,sBAAsB,GACtB,qBAAqB,GACrB,6BAA6B,GAC7B,0BAA0B,CAC7B,CACF;IAEH,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAChD,sBAAsB,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IACpD,kBAAkB,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAC7C,qBAAqB,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAClD,2BAA2B,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAChD,0BAA0B,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/C,mBAAmB,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAG9C,uBAAuB,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACtD,wBAAwB,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAGzD,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,qBAAqB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAG5C,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/C,mBAAmB,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAG1D,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,0BAA0B,gEACqB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,iEAAsC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface BottomSheetModalContextType {
|
|
2
|
+
dismiss: (key?: string) => boolean;
|
|
3
|
+
dismissAll: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const BottomSheetModalContext: import("react").Context<BottomSheetModalContextType | null>;
|
|
6
|
+
export declare const BottomSheetModalProvider: import("react").Provider<BottomSheetModalContextType | null>;
|
|
7
|
+
//# sourceMappingURL=external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../src/contexts/modal/external.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,6DACqB,CAAC;AAE1D,eAAO,MAAM,wBAAwB,8DAAmC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import type { BottomSheetModalPrivateMethods, BottomSheetModalStackBehavior } from '../../components/bottomSheetModal';
|
|
4
|
+
import type { ContainerLayoutState } from '../../types';
|
|
5
|
+
export interface BottomSheetModalInternalContextType {
|
|
6
|
+
hostName: string;
|
|
7
|
+
containerLayoutState: SharedValue<ContainerLayoutState>;
|
|
8
|
+
mountSheet: (key: string, ref: RefObject<BottomSheetModalPrivateMethods>, stackBehavior: BottomSheetModalStackBehavior) => void;
|
|
9
|
+
unmountSheet: (key: string) => void;
|
|
10
|
+
willUnmountSheet: (key: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const BottomSheetModalInternalContext: import("react").Context<BottomSheetModalInternalContextType | null>;
|
|
13
|
+
export declare const BottomSheetModalInternalProvider: import("react").Provider<BottomSheetModalInternalContextType | null>;
|
|
14
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../src/contexts/modal/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IACxD,UAAU,EAAE,CACV,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,SAAS,CAAC,8BAA8B,CAAC,EAC9C,aAAa,EAAE,6BAA6B,KACzC,IAAI,CAAC;IACV,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,+BAA+B,qEACqB,CAAC;AAElE,eAAO,MAAM,gCAAgC,sEACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { useBottomSheet } from './useBottomSheet';
|
|
2
|
+
export { useBottomSheetInternal } from './useBottomSheetInternal';
|
|
3
|
+
export { useBottomSheetModal } from './useBottomSheetModal';
|
|
4
|
+
export { useBottomSheetModalInternal } from './useBottomSheetModalInternal';
|
|
5
|
+
export { useScrollable } from './useScrollable';
|
|
6
|
+
export { useScrollableSetter } from './useScrollableSetter';
|
|
7
|
+
export { useScrollHandler } from './useScrollHandler';
|
|
8
|
+
export { useGestureHandler } from './useGestureHandler';
|
|
9
|
+
export { useGestureEventsHandlersDefault } from './useGestureEventsHandlersDefault';
|
|
10
|
+
export { useBottomSheetGestureHandlers } from './useBottomSheetGestureHandlers';
|
|
11
|
+
export { useAnimatedLayout } from './useAnimatedLayout';
|
|
12
|
+
export { useAnimatedKeyboard } from './useAnimatedKeyboard';
|
|
13
|
+
export { useStableCallback } from './useStableCallback';
|
|
14
|
+
export { usePropsValidator } from './usePropsValidator';
|
|
15
|
+
export { useAnimatedDetents } from './useAnimatedDetents';
|
|
16
|
+
export { useReactiveSharedValue } from './useReactiveSharedValue';
|
|
17
|
+
export { useBoundingClientRect, type BoundingClientRect, } from './useBoundingClientRect';
|
|
18
|
+
export { useBottomSheetContentContainerStyle } from './useBottomSheetContentContainerStyle';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import type { BottomSheetProps } from '../components/bottomSheet';
|
|
3
|
+
import type { DetentsState, LayoutState } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* A custom hook that computes and returns the animated detent positions for a bottom sheet component.
|
|
6
|
+
*
|
|
7
|
+
* This hook normalizes the provided snap points (detents), optionally adds a dynamic detent based on content size,
|
|
8
|
+
* and calculates key positions such as the highest detent and the closed position. It supports both static and dynamic
|
|
9
|
+
* sizing, and adapts to modal and detached sheet modes.
|
|
10
|
+
*
|
|
11
|
+
* @param detents - The snap points for the bottom sheet, which can be an array or an object with a `value` property.
|
|
12
|
+
* @param layoutState - A shared animated value containing the current layout state (container, handle, and content heights).
|
|
13
|
+
* @param enableDynamicSizing - Whether dynamic sizing based on content height is enabled.
|
|
14
|
+
* @param maxDynamicContentSize - The maximum allowed content size for dynamic sizing.
|
|
15
|
+
* @param detached - Whether the bottom sheet is in detached mode.
|
|
16
|
+
* @param $modal - Whether the bottom sheet is presented as a modal.
|
|
17
|
+
* @param bottomInset - The bottom inset to apply when the sheet is modal or detached (default is 0).
|
|
18
|
+
*/
|
|
19
|
+
export declare const useAnimatedDetents: (detents: BottomSheetProps["snapPoints"], layoutState: SharedValue<LayoutState>, enableDynamicSizing: BottomSheetProps["enableDynamicSizing"], maxDynamicContentSize: BottomSheetProps["maxDynamicContentSize"], detached: BottomSheetProps["detached"], $modal: BottomSheetProps["$modal"], bottomInset?: BottomSheetProps["bottomInset"]) => import("react-native-reanimated").DerivedValue<DetentsState>;
|
|
20
|
+
//# sourceMappingURL=useAnimatedDetents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimatedDetents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAnimatedDetents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,gBAAgB,CAAC,YAAY,CAAC,EACvC,aAAa,WAAW,CAAC,WAAW,CAAC,EACrC,qBAAqB,gBAAgB,CAAC,qBAAqB,CAAC,EAC5D,uBAAuB,gBAAgB,CAAC,uBAAuB,CAAC,EAChE,UAAU,gBAAgB,CAAC,UAAU,CAAC,EACtC,QAAQ,gBAAgB,CAAC,QAAQ,CAAC,EAClC,cAAa,gBAAgB,CAAC,aAAa,CAAK,iEA0FjD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KeyboardState } from '../types';
|
|
2
|
+
export declare const useAnimatedKeyboard: () => {
|
|
3
|
+
state: import("react-native-reanimated").SharedValue<KeyboardState>;
|
|
4
|
+
textInputNodesRef: import("react").MutableRefObject<Set<number>>;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useAnimatedKeyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimatedKeyboard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAnimatedKeyboard.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAuB9C,eAAO,MAAM,mBAAmB;;;CAwI/B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import type { ContainerLayoutState } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* A custom hook that manages and animates the layout state of a container,
|
|
5
|
+
* typically used in bottom sheet components. It calculates the effective
|
|
6
|
+
* container height by considering top and bottom insets, and updates the
|
|
7
|
+
* animated state in response to layout changes. The hook supports both modal
|
|
8
|
+
* and non-modal modes, and ensures the container's animated layout state
|
|
9
|
+
* remains in sync with the actual layout measurements.
|
|
10
|
+
*
|
|
11
|
+
* @param containerLayoutState - A shared value representing the current container layout state.
|
|
12
|
+
* @param topInset - The top inset value to be subtracted from the container height.
|
|
13
|
+
* @param bottomInset - The bottom inset value to be subtracted from the container height.
|
|
14
|
+
* @param modal - Optional flag indicating if the layout is in modal mode.
|
|
15
|
+
* @param shouldOverrideHandleHeight - Optional flag to override the handle height in the layout state, only when handle is set to null.
|
|
16
|
+
* @returns An object containing the animated layout state.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useAnimatedLayout(containerLayoutState: SharedValue<ContainerLayoutState> | undefined, topInset: number, bottomInset: number, modal?: boolean, shouldOverrideHandleHeight?: boolean): import("react-native-reanimated/lib/typescript/commonTypes").Mutable<{
|
|
19
|
+
rawContainerHeight: number;
|
|
20
|
+
containerHeight: number;
|
|
21
|
+
containerOffset: Required<import("react-native").Insets>;
|
|
22
|
+
handleHeight: number;
|
|
23
|
+
footerHeight: number;
|
|
24
|
+
contentHeight: number;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=useAnimatedLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimatedLayout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAnimatedLayout.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAWlE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,CAAC,GAAG,SAAS,EACnE,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO,EACf,0BAA0B,CAAC,EAAE,OAAO;;;;;;;GAsErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,uFAQ1B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ViewProps, type ViewStyle } from 'react-native';
|
|
2
|
+
export declare function useBottomSheetContentContainerStyle(enableFooterMarginAdjustment: boolean, _style?: ViewProps['style']): import("react-native").StyleProp<ViewStyle>;
|
|
3
|
+
//# sourceMappingURL=useBottomSheetContentContainerStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetContentContainerStyle.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetContentContainerStyle.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,wBAAgB,mCAAmC,CACjD,4BAA4B,EAAE,OAAO,EACrC,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,+CA2E5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetGestureHandlers.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetGestureHandlers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,2EAQzC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type BottomSheetInternalContextType } from '../contexts/internal';
|
|
2
|
+
export declare function useBottomSheetInternal(unsafe?: false): BottomSheetInternalContextType;
|
|
3
|
+
export declare function useBottomSheetInternal(unsafe: true): BottomSheetInternalContextType | null;
|
|
4
|
+
//# sourceMappingURL=useBottomSheetInternal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetInternal.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetInternal.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,sBAAsB,CAAC;AAE9B,wBAAgB,sBAAsB,CACpC,MAAM,CAAC,EAAE,KAAK,GACb,8BAA8B,CAAC;AAElC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,GACX,8BAA8B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetModal.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetModal.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,wEAQ/B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type BottomSheetModalInternalContextType } from '../contexts';
|
|
2
|
+
export declare function useBottomSheetModalInternal(unsafe?: false): BottomSheetModalInternalContextType;
|
|
3
|
+
export declare function useBottomSheetModalInternal(unsafe: true): BottomSheetModalInternalContextType | null;
|
|
4
|
+
//# sourceMappingURL=useBottomSheetModalInternal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetModalInternal.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetModalInternal.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mCAAmC,EACzC,MAAM,aAAa,CAAC;AAErB,wBAAgB,2BAA2B,CACzC,MAAM,CAAC,EAAE,KAAK,GACb,mCAAmC,CAAC;AAEvC,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,IAAI,GACX,mCAAmC,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import { type BottomSheetScrollableProps } from '../components/bottomSheetScrollable';
|
|
3
|
+
type BottomSheetScrollableCreatorConfigs = {} & BottomSheetScrollableProps;
|
|
4
|
+
/**
|
|
5
|
+
* A custom hook that creates a scrollable component for third-party libraries
|
|
6
|
+
* like `LegendList` or `FlashList` to integrate the interaction and scrolling
|
|
7
|
+
* behaviors with th BottomSheet component.
|
|
8
|
+
*
|
|
9
|
+
* @param configs - Configuration options for the scrollable creator.
|
|
10
|
+
* @param configs.focusHook - This needed when bottom sheet used with multiple scrollables to allow bottom sheet
|
|
11
|
+
* detect the current scrollable ref, especially when used with `React Navigation`.
|
|
12
|
+
* You will need to provide `useFocusEffect` from `@react-navigation/native`.
|
|
13
|
+
* @param configs.scrollEventsHandlersHook - Custom hook to provide scroll events handler, which will allow advance and
|
|
14
|
+
* customize handling for scrollables.
|
|
15
|
+
* @param configs.enableFooterMarginAdjustment - Adjust the scrollable bottom margin to avoid the animated footer.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* const BottomSheetLegendListScrollable = useBottomSheetScrollableCreator();
|
|
20
|
+
*
|
|
21
|
+
* // Usage in JSX
|
|
22
|
+
* <LegendList
|
|
23
|
+
* renderScrollComponent={BottomSheetLegendListScrollable}
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function useBottomSheetScrollableCreator<T = any>({ focusHook, scrollEventsHandlersHook, enableFooterMarginAdjustment, }?: BottomSheetScrollableCreatorConfigs): (props: T, ref?: never) => ReactElement<T>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=useBottomSheetScrollableCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetScrollableCreator.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetScrollableCreator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,qCAAqC,CAAC;AAE7C,KAAK,mCAAmC,GAAG,EAAE,GAAG,0BAA0B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,wBAAgB,+BAA+B,CAAC,CAAC,GAAG,GAAG,EAAE,EACvD,SAAS,EACT,wBAAwB,EACxB,4BAA4B,GAC7B,GAAE,mCAAwC,GAAG,CAC5C,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,EAAE,KAAK,KACR,YAAY,CAAC,CAAC,CAAC,CAoBnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WithSpringConfig } from 'react-native-reanimated';
|
|
2
|
+
/**
|
|
3
|
+
* Generate spring animation configs.
|
|
4
|
+
* @param configs overridable configs.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useBottomSheetSpringConfigs: (configs: Omit<WithSpringConfig, "velocity">) => Omit<import("react-native-reanimated/lib/typescript/animation/springUtils").SpringConfig, "velocity">;
|
|
7
|
+
//# sourceMappingURL=useBottomSheetSpringConfigs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetSpringConfigs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetSpringConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,SAAS,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,0GAG5C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { EasingFunction } from 'react-native';
|
|
2
|
+
import type { EasingFunctionFactory, ReduceMotion } from 'react-native-reanimated';
|
|
3
|
+
/**
|
|
4
|
+
* this is needed to avoid TS4023
|
|
5
|
+
* https://github.com/microsoft/TypeScript/issues/5711
|
|
6
|
+
*/
|
|
7
|
+
interface TimingConfig {
|
|
8
|
+
duration?: number;
|
|
9
|
+
easing?: EasingFunction | EasingFunctionFactory;
|
|
10
|
+
reduceMotion?: ReduceMotion;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Generate timing animation configs.
|
|
14
|
+
* @default
|
|
15
|
+
* - easing: Easing.out(Easing.exp)
|
|
16
|
+
* - duration: 250
|
|
17
|
+
* @param configs overridable configs.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useBottomSheetTimingConfigs: (configs: TimingConfig) => TimingConfig;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=useBottomSheetTimingConfigs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetTimingConfigs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBottomSheetTimingConfigs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACb,MAAM,yBAAyB,CAAC;AAGjC;;;GAGG;AACH,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,cAAc,GAAG,qBAAqB,CAAC;IAChD,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,SAAS,YAAY,iBAUhE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { View } from 'react-native';
|
|
3
|
+
export type BoundingClientRect = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
top: number;
|
|
11
|
+
bottom: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A custom hook that retrieves the bounding client rectangle of a given `ref` element
|
|
15
|
+
* and invokes a handler function with the layout information.
|
|
16
|
+
*
|
|
17
|
+
* This hook is designed to work with React Native's Fabric architecture and provides
|
|
18
|
+
* support for both `unstable_getBoundingClientRect` and `getBoundingClientRect` methods.
|
|
19
|
+
*
|
|
20
|
+
* @param ref - A `RefObject` pointing to a `View` or `null`. The bounding client rectangle
|
|
21
|
+
* will be retrieved from this reference.
|
|
22
|
+
* @param handler - A callback function that will be invoked with the layout information
|
|
23
|
+
* of the referenced element.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* - The hook uses `useLayoutEffect` to ensure the layout information is retrieved
|
|
27
|
+
* after the DOM updates.
|
|
28
|
+
* - The `isFabricInstalled` function is used to determine if the Fabric architecture
|
|
29
|
+
* is available.
|
|
30
|
+
* - The `unstable_getBoundingClientRect` method is used if available, falling back
|
|
31
|
+
* to `getBoundingClientRect` otherwise.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* const ref = useRef<View | null>(null);
|
|
36
|
+
* useBoundingClientRect(ref, (layout) => {
|
|
37
|
+
* console.log('Bounding client rect:', layout);
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function useBoundingClientRect(ref: RefObject<View | null>, handler: (layout: BoundingClientRect) => void): void;
|
|
42
|
+
//# sourceMappingURL=useBoundingClientRect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBoundingClientRect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBoundingClientRect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,QA+B9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGestureEventsHandlersDefault.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGestureEventsHandlersDefault.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AA2BlB,eAAO,MAAM,+BAA+B,EAAE,6BA2Y3C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GestureEventHandlerCallbackType } from '../types';
|
|
2
|
+
export declare const useGestureEventsHandlersDefault: () => {
|
|
3
|
+
handleOnStart: GestureEventHandlerCallbackType;
|
|
4
|
+
handleOnChange: GestureEventHandlerCallbackType;
|
|
5
|
+
handleOnEnd: GestureEventHandlerCallbackType;
|
|
6
|
+
handleOnFinalize: GestureEventHandlerCallbackType;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useGestureEventsHandlersDefault.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGestureEventsHandlersDefault.web.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGestureEventsHandlersDefault.web.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AA6BhE,eAAO,MAAM,+BAA+B;;;;;CA0X3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGestureHandler.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGestureHandler.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,iBAAiB,EAAE,uBA0E/B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BottomSheetProps } from '../components/bottomSheet';
|
|
2
|
+
/**
|
|
3
|
+
* @todo
|
|
4
|
+
* replace this with `prop-types`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const usePropsValidator: ({ index, snapPoints, enableDynamicSizing, topInset, bottomInset, containerHeight, containerOffset, }: Pick<BottomSheetProps, "index" | "snapPoints" | "enableDynamicSizing" | "topInset" | "bottomInset" | "containerHeight" | "containerOffset">) => void;
|
|
7
|
+
//# sourceMappingURL=usePropsValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePropsValidator.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePropsValidator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,GAAI,sGAQ/B,IAAI,CACL,gBAAgB,EACd,OAAO,GACP,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,aAAa,GACb,iBAAiB,GACjB,iBAAiB,CACpB,SAgFA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReactiveSharedValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/useReactiveSharedValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,sBAAsB,GAAI,CAAC,EACtC,OAAO,CAAC,KACP,CAAC,SAAS,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAqCzC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ScrollEventsHandlersHookType } from '../types';
|
|
2
|
+
export type ScrollEventContextType = {
|
|
3
|
+
initialContentOffsetY: number;
|
|
4
|
+
shouldLockInitialPosition: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useScrollEventsHandlersDefault: ScrollEventsHandlersHookType;
|
|
7
|
+
//# sourceMappingURL=useScrollEventsHandlersDefault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollEventsHandlersDefault.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScrollEventsHandlersDefault.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,sBAAsB,GAAG;IACnC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,4BAuJ5C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Scrollable, ScrollableEvent } from '../types';
|
|
2
|
+
export declare const useScrollHandler: (useScrollEventsHandlers?: import("../types").ScrollEventsHandlersHookType, onScroll?: ScrollableEvent, onScrollBeginDrag?: ScrollableEvent, onScrollEndDrag?: ScrollableEvent) => {
|
|
3
|
+
scrollHandler: import("react-native-reanimated").ScrollHandlerProcessed<never>;
|
|
4
|
+
scrollableRef: import("react-native-reanimated").AnimatedRef<Scrollable>;
|
|
5
|
+
scrollableContentOffsetY: import("react-native-reanimated").SharedValue<number>;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useScrollHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollHandler.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScrollHandler.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI5D,eAAO,MAAM,gBAAgB,GAC3B,yEAAwD,EACxD,WAAW,eAAe,EAC1B,oBAAoB,eAAe,EACnC,kBAAkB,eAAe;;;;CAyDlC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Scrollable, ScrollableEvent } from '../types';
|
|
2
|
+
export type ScrollEventContextType = {
|
|
3
|
+
initialContentOffsetY: number;
|
|
4
|
+
shouldLockInitialPosition: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useScrollHandler: (_: never, onScroll?: ScrollableEvent) => {
|
|
7
|
+
scrollHandler: ScrollableEvent | undefined;
|
|
8
|
+
scrollableRef: import("react").RefObject<Scrollable>;
|
|
9
|
+
scrollableContentOffsetY: import("react-native-reanimated").SharedValue<number>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useScrollHandler.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollHandler.web.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScrollHandler.web.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI5D,MAAM,MAAM,sBAAsB,GAAG;IACnC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,GAAG,KAAK,EAAE,WAAW,eAAe;;;;CAwKpE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import { SCROLLABLE_STATUS, SHEET_STATE } from '../constants';
|
|
4
|
+
import type { AnimationState, KeyboardState, Scrollable, ScrollableRef, ScrollableState } from '../types';
|
|
5
|
+
export declare const useScrollable: (enableContentPanningGesture: boolean, animatedSheetState: SharedValue<SHEET_STATE>, animatedKeyboardState: SharedValue<KeyboardState>, animatedAnimationState: SharedValue<AnimationState>) => {
|
|
6
|
+
state: SharedValue<ScrollableState>;
|
|
7
|
+
status: import("react-native-reanimated").DerivedValue<SCROLLABLE_STATUS>;
|
|
8
|
+
setScrollableRef: (ref: ScrollableRef) => void;
|
|
9
|
+
removeScrollableRef: (ref: RefObject<Scrollable>) => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useScrollable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollable.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScrollable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAE5D,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,iBAAiB,EAEjB,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,GACxB,6BAA6B,OAAO,EACpC,oBAAoB,WAAW,CAAC,WAAW,CAAC,EAC5C,uBAAuB,WAAW,CAAC,aAAa,CAAC,EACjD,wBAAwB,WAAW,CAAC,cAAc,CAAC;;;4BA2DR,aAAa;+BAcV,SAAS,CAAC,UAAU,CAAC;CA8BpE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import type { SCROLLABLE_TYPE } from '../constants';
|
|
4
|
+
import type { Scrollable } from '../types';
|
|
5
|
+
export declare const useScrollableSetter: (ref: React.RefObject<Scrollable>, type: SCROLLABLE_TYPE, contentOffsetY: SharedValue<number>, refreshable: boolean, useFocusHook?: typeof React.useEffect) => void;
|
|
6
|
+
//# sourceMappingURL=useScrollableSetter.d.ts.map
|