@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,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
let _isLoggingEnabled = false;
|
|
4
|
+
let _excludeCategories;
|
|
5
|
+
const enableLogging = excludeCategories => {
|
|
6
|
+
if (!__DEV__) {
|
|
7
|
+
console.warn('[BottomSheet] could not enable logging on production!');
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
_isLoggingEnabled = true;
|
|
11
|
+
_excludeCategories = excludeCategories;
|
|
12
|
+
};
|
|
13
|
+
let print = () => {};
|
|
14
|
+
if (__DEV__) {
|
|
15
|
+
print = ({
|
|
16
|
+
component,
|
|
17
|
+
method,
|
|
18
|
+
params,
|
|
19
|
+
category
|
|
20
|
+
}) => {
|
|
21
|
+
if (!_isLoggingEnabled) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (category && _excludeCategories && _excludeCategories.includes(category)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let message = '';
|
|
28
|
+
if (typeof params === 'object') {
|
|
29
|
+
message = Object.keys(params).map(key => `${key}:${params[key]}`).join(' ');
|
|
30
|
+
} else {
|
|
31
|
+
message = `${params ?? ''}`;
|
|
32
|
+
}
|
|
33
|
+
// biome-ignore lint/suspicious/noConsole: used for debugging
|
|
34
|
+
console.log(`[${[component, method].filter(Boolean).join('::')}]`, message);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
Object.freeze(print);
|
|
38
|
+
export { print, enableLogging };
|
|
39
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_isLoggingEnabled","_excludeCategories","enableLogging","excludeCategories","__DEV__","console","warn","print","component","method","params","category","includes","message","Object","keys","map","key","join","log","filter","Boolean","freeze"],"sourceRoot":"../../../src","sources":["utilities/logger.ts"],"mappings":";;AASA,IAAIA,iBAAiB,GAAG,KAAK;AAC7B,IAAIC,kBAA0D;AAE9D,MAAMC,aAAa,GAAIC,iBAA8C,IAAK;EACxE,IAAI,CAACC,OAAO,EAAE;IACZC,OAAO,CAACC,IAAI,CAAC,uDAAuD,CAAC;IACrE;EACF;EAEAN,iBAAiB,GAAG,IAAI;EACxBC,kBAAkB,GAAGE,iBAAiB;AACxC,CAAC;AAED,IAAII,KAAY,GAAGA,CAAA,KAAM,CAAC,CAAC;AAE3B,IAAIH,OAAO,EAAE;EACXG,KAAK,GAAGA,CAAC;IAAEC,SAAS;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAS,CAAC,KAAK;IACnD,IAAI,CAACX,iBAAiB,EAAE;MACtB;IACF;IAEA,IACEW,QAAQ,IACRV,kBAAkB,IAClBA,kBAAkB,CAACW,QAAQ,CAACD,QAAQ,CAAC,EACrC;MACA;IACF;IAEA,IAAIE,OAAO,GAAG,EAAE;IAEhB,IAAI,OAAOH,MAAM,KAAK,QAAQ,EAAE;MAC9BG,OAAO,GAAGC,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC,CAC1BM,GAAG,CAACC,GAAG,IAAI,GAAGA,GAAG,IAAIP,MAAM,CAACO,GAAG,CAAC,EAAE,CAAC,CACnCC,IAAI,CAAC,GAAG,CAAC;IACd,CAAC,MAAM;MACLL,OAAO,GAAG,GAAGH,MAAM,IAAI,EAAE,EAAE;IAC7B;IACA;IACAL,OAAO,CAACc,GAAG,CAAC,IAAI,CAACX,SAAS,EAAEC,MAAM,CAAC,CAACW,MAAM,CAACC,OAAO,CAAC,CAACH,IAAI,CAAC,IAAI,CAAC,GAAG,EAAEL,OAAO,CAAC;EAC7E,CAAC;AACH;AAEAC,MAAM,CAACQ,MAAM,CAACf,KAAK,CAAC;AAEpB,SAASA,KAAK,EAAEL,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["workletNoop","noop"],"sourceRoot":"../../../src","sources":["utilities/noop.ts"],"mappings":";;AAAA,MAAMA,WAAW,GAAGA,CAAA,KAAM;EACxB,SAAS;AACX,CAAC;AAED,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,SAASA,IAAI,EAAED,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Converts a snap point to fixed numbers.
|
|
5
|
+
*/
|
|
6
|
+
export const normalizeSnapPoint = (snapPoint, containerHeight) => {
|
|
7
|
+
'worklet';
|
|
8
|
+
|
|
9
|
+
let normalizedSnapPoint = snapPoint;
|
|
10
|
+
|
|
11
|
+
// percentage snap point
|
|
12
|
+
if (typeof normalizedSnapPoint === 'string') {
|
|
13
|
+
normalizedSnapPoint = Number(normalizedSnapPoint.split('%')[0]) * containerHeight / 100;
|
|
14
|
+
}
|
|
15
|
+
return Math.max(0, containerHeight - normalizedSnapPoint);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=normalizeSnapPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["normalizeSnapPoint","snapPoint","containerHeight","normalizedSnapPoint","Number","split","Math","max"],"sourceRoot":"../../../src","sources":["utilities/normalizeSnapPoint.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAO,MAAMA,kBAAkB,GAAGA,CAChCC,SAA0B,EAC1BC,eAAuB,KACpB;EACH,SAAS;;EACT,IAAIC,mBAAmB,GAAGF,SAAS;;EAEnC;EACA,IAAI,OAAOE,mBAAmB,KAAK,QAAQ,EAAE;IAC3CA,mBAAmB,GAChBC,MAAM,CAACD,mBAAmB,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAGH,eAAe,GAAI,GAAG;EACvE;EACA,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEL,eAAe,GAAGC,mBAAmB,CAAC;AAC3D,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const snapPoint = (value, velocity, points) => {
|
|
4
|
+
'worklet';
|
|
5
|
+
|
|
6
|
+
const point = value + 0.2 * velocity;
|
|
7
|
+
const deltas = points.map(p => Math.abs(point - p));
|
|
8
|
+
const minDelta = Math.min.apply(null, deltas);
|
|
9
|
+
return points.filter(p => Math.abs(point - p) === minDelta)[0];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=snapPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["snapPoint","value","velocity","points","point","deltas","map","p","Math","abs","minDelta","min","apply","filter"],"sourceRoot":"../../../src","sources":["utilities/snapPoint.ts"],"mappings":";;AAAA,OAAO,MAAMA,SAAS,GAAGA,CACvBC,KAAa,EACbC,QAAgB,EAChBC,MAA6B,KAClB;EACX,SAAS;;EACT,MAAMC,KAAK,GAAGH,KAAK,GAAG,GAAG,GAAGC,QAAQ;EACpC,MAAMG,MAAM,GAAGF,MAAM,CAACG,GAAG,CAACC,CAAC,IAAIC,IAAI,CAACC,GAAG,CAACL,KAAK,GAAGG,CAAC,CAAC,CAAC;EACnD,MAAMG,QAAQ,GAAGF,IAAI,CAACG,GAAG,CAACC,KAAK,CAAC,IAAI,EAAEP,MAAM,CAAC;EAC7C,OAAOF,MAAM,CAACU,MAAM,CAACN,CAAC,IAAIC,IAAI,CAACC,GAAG,CAACL,KAAK,GAAGG,CAAC,CAAC,KAAKG,QAAQ,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import invariant from 'invariant';
|
|
4
|
+
export const validateSnapPoint = snapPoint => {
|
|
5
|
+
invariant(typeof snapPoint === 'number' || typeof snapPoint === 'string', `'${snapPoint}' is not a valid snap point! expected types are string or number.`);
|
|
6
|
+
invariant(typeof snapPoint === 'number' || typeof snapPoint === 'string' && snapPoint.includes('%'), `'${snapPoint}' is not a valid percentage snap point! expected percentage snap point must include '%'. e.g. '50%'`);
|
|
7
|
+
invariant(typeof snapPoint === 'number' || typeof snapPoint === 'string' && Number(snapPoint.split('%')[0]), `'${snapPoint}' is not a valid percentage snap point! expected percentage snap point must be only numbers and '%'. e.g. '50%'`);
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=validateSnapPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["invariant","validateSnapPoint","snapPoint","includes","Number","split"],"sourceRoot":"../../../src","sources":["utilities/validateSnapPoint.ts"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,WAAW;AAEjC,OAAO,MAAMC,iBAAiB,GAAIC,SAA0B,IAAK;EAC/DF,SAAS,CACP,OAAOE,SAAS,KAAK,QAAQ,IAAI,OAAOA,SAAS,KAAK,QAAQ,EAC9D,IAAIA,SAAS,mEACf,CAAC;EAEDF,SAAS,CACP,OAAOE,SAAS,KAAK,QAAQ,IAC1B,OAAOA,SAAS,KAAK,QAAQ,IAAIA,SAAS,CAACC,QAAQ,CAAC,GAAG,CAAE,EAC5D,IAAID,SAAS,qGACf,CAAC;EAEDF,SAAS,CACP,OAAOE,SAAS,KAAK,QAAQ,IAC1B,OAAOA,SAAS,KAAK,QAAQ,IAAIE,MAAM,CAACF,SAAS,CAACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAE,EACpE,IAAIH,SAAS,iHACf,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BottomSheetMethods } from '../../types';
|
|
3
|
+
import type { BottomSheetProps } from './types';
|
|
4
|
+
type BottomSheet = BottomSheetMethods;
|
|
5
|
+
declare const BottomSheet: React.MemoExoticComponent<React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<BottomSheetMethods>>>;
|
|
6
|
+
export default BottomSheet;
|
|
7
|
+
//# sourceMappingURL=BottomSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAyCf,OAAO,KAAK,EAAkB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAoCtE,OAAO,KAAK,EAAyB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMvE,KAAK,WAAW,GAAG,kBAAkB,CAAC;AA+wDtC,QAAA,MAAM,WAAW,wHAA6B,CAAC;AAG/C,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BottomSheetProps } from '../bottomSheet/types';
|
|
3
|
+
type BottomSheetBodyProps = {
|
|
4
|
+
style?: BottomSheetProps['style'];
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare function BottomSheetBodyComponent({ style, children }: BottomSheetBodyProps): React.JSX.Element;
|
|
8
|
+
export declare const BottomSheetBody: React.MemoExoticComponent<typeof BottomSheetBodyComponent>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=BottomSheetBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetBody.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/BottomSheetBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,KAAK,oBAAoB,GAAG;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,iBAAS,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,oBAAoB,qBA4B1E;AAED,eAAO,MAAM,eAAe,4DAAiC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import { type AnimatedStyle } from 'react-native-reanimated';
|
|
4
|
+
import type { NullableAccessibilityProps } from '../../types';
|
|
5
|
+
import type { BottomSheetProps } from './types';
|
|
6
|
+
type BottomSheetContent = {
|
|
7
|
+
style?: AnimatedStyle<ViewStyle>;
|
|
8
|
+
} & Pick<BottomSheetProps, 'children' | 'detached' | 'animationConfigs' | 'overrideReduceMotion' | 'keyboardBehavior'> & NullableAccessibilityProps & ViewProps;
|
|
9
|
+
declare function BottomSheetContentComponent({ detached, animationConfigs, overrideReduceMotion, keyboardBehavior, accessible, accessibilityLabel, accessibilityHint, accessibilityRole, children, }: BottomSheetContent): React.JSX.Element;
|
|
10
|
+
export declare const BottomSheetContent: React.MemoExoticComponent<typeof BottomSheetContentComponent>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=BottomSheetContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetContent.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/BottomSheetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAiB,EACf,KAAK,aAAa,EAGnB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAClC,GAAG,IAAI,CACN,gBAAgB,EACd,UAAU,GACV,UAAU,GACV,kBAAkB,GAClB,sBAAsB,GACtB,kBAAkB,CACrB,GACC,0BAA0B,GAC1B,SAAS,CAAC;AAEZ,iBAAS,2BAA2B,CAAC,EACnC,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,GACT,EAAE,kBAAkB,qBAuNpB;AAED,eAAO,MAAM,kBAAkB,+DAAoC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const DEFAULT_HANDLE_HEIGHT = 24;
|
|
2
|
+
declare const DEFAULT_OVER_DRAG_RESISTANCE_FACTOR = 2.5;
|
|
3
|
+
declare const DEFAULT_ENABLE_CONTENT_PANNING_GESTURE = true;
|
|
4
|
+
declare const DEFAULT_ENABLE_HANDLE_PANNING_GESTURE = true;
|
|
5
|
+
declare const DEFAULT_ENABLE_OVER_DRAG = true;
|
|
6
|
+
declare const DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE = false;
|
|
7
|
+
declare const DEFAULT_ANIMATE_ON_MOUNT = true;
|
|
8
|
+
declare const DEFAULT_DYNAMIC_SIZING = true;
|
|
9
|
+
declare const DEFAULT_KEYBOARD_BEHAVIOR: "interactive";
|
|
10
|
+
declare const DEFAULT_KEYBOARD_BLUR_BEHAVIOR: "none";
|
|
11
|
+
declare const DEFAULT_KEYBOARD_INPUT_MODE: "adjustPan";
|
|
12
|
+
declare const DEFAULT_ENABLE_BLUR_KEYBOARD_ON_GESTURE = false;
|
|
13
|
+
declare const DEFAULT_KEYBOARD_INDEX = -998;
|
|
14
|
+
declare const INITIAL_VALUE: number;
|
|
15
|
+
declare const INITIAL_SNAP_POINT = -999;
|
|
16
|
+
declare const INITIAL_POSITION: number;
|
|
17
|
+
declare const DEFAULT_ACCESSIBLE = true;
|
|
18
|
+
declare const DEFAULT_ACCESSIBILITY_LABEL = "Bottom Sheet";
|
|
19
|
+
declare const DEFAULT_ACCESSIBILITY_ROLE = "adjustable";
|
|
20
|
+
export { DEFAULT_HANDLE_HEIGHT, DEFAULT_OVER_DRAG_RESISTANCE_FACTOR, DEFAULT_ENABLE_CONTENT_PANNING_GESTURE, DEFAULT_ENABLE_HANDLE_PANNING_GESTURE, DEFAULT_ENABLE_OVER_DRAG, DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE, DEFAULT_DYNAMIC_SIZING, DEFAULT_ANIMATE_ON_MOUNT, DEFAULT_KEYBOARD_BEHAVIOR, DEFAULT_KEYBOARD_BLUR_BEHAVIOR, DEFAULT_KEYBOARD_INPUT_MODE, DEFAULT_ENABLE_BLUR_KEYBOARD_ON_GESTURE, DEFAULT_KEYBOARD_INDEX, INITIAL_POSITION, INITIAL_SNAP_POINT, INITIAL_VALUE, DEFAULT_ACCESSIBLE, DEFAULT_ACCESSIBILITY_LABEL, DEFAULT_ACCESSIBILITY_ROLE, };
|
|
21
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/constants.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,qBAAqB,KAAK,CAAC;AACjC,QAAA,MAAM,mCAAmC,MAAM,CAAC;AAChD,QAAA,MAAM,sCAAsC,OAAO,CAAC;AACpD,QAAA,MAAM,qCAAqC,OAAO,CAAC;AACnD,QAAA,MAAM,wBAAwB,OAAO,CAAC;AACtC,QAAA,MAAM,gCAAgC,QAAQ,CAAC;AAC/C,QAAA,MAAM,wBAAwB,OAAO,CAAC;AACtC,QAAA,MAAM,sBAAsB,OAAO,CAAC;AAGpC,QAAA,MAAM,yBAAyB,eAAgC,CAAC;AAChE,QAAA,MAAM,8BAA8B,QAA8B,CAAC;AACnE,QAAA,MAAM,2BAA2B,aAAgC,CAAC;AAClE,QAAA,MAAM,uCAAuC,QAAQ,CAAC;AACtD,QAAA,MAAM,sBAAsB,OAAO,CAAC;AAGpC,QAAA,MAAM,aAAa,QAA2B,CAAC;AAC/C,QAAA,MAAM,kBAAkB,OAAO,CAAC;AAChC,QAAA,MAAM,gBAAgB,QAAgB,CAAC;AAGvC,QAAA,MAAM,kBAAkB,OAAO,CAAC;AAChC,QAAA,MAAM,2BAA2B,iBAAiB,CAAC;AACnD,QAAA,MAAM,0BAA0B,eAAe,CAAC;AAEhD,OAAO,EACL,qBAAqB,EACrB,mCAAmC,EACnC,sCAAsC,EACtC,qCAAqC,EACrC,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,EAExB,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,uCAAuC,EACvC,sBAAsB,EAEtB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheet/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;CAQjB,CAAC"}
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { Insets, StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
import type { PanGesture } from 'react-native-gesture-handler';
|
|
4
|
+
import type {
|
|
5
|
+
AnimateStyle,
|
|
6
|
+
ReduceMotion,
|
|
7
|
+
SharedValue,
|
|
8
|
+
WithSpringConfig,
|
|
9
|
+
WithTimingConfig,
|
|
10
|
+
} from 'react-native-reanimated';
|
|
11
|
+
import type {
|
|
12
|
+
ANIMATION_SOURCE,
|
|
13
|
+
KEYBOARD_BEHAVIOR,
|
|
14
|
+
KEYBOARD_BLUR_BEHAVIOR,
|
|
15
|
+
KEYBOARD_INPUT_MODE,
|
|
16
|
+
SNAP_POINT_TYPE,
|
|
17
|
+
} from '../../constants';
|
|
18
|
+
import type {
|
|
19
|
+
ContainerLayoutState,
|
|
20
|
+
GestureEventsHandlersHookType,
|
|
21
|
+
NullableAccessibilityProps,
|
|
22
|
+
} from '../../types';
|
|
23
|
+
import type { BottomSheetBackdropProps } from '../bottomSheetBackdrop';
|
|
24
|
+
import type { BottomSheetBackgroundProps } from '../bottomSheetBackground';
|
|
25
|
+
import type { BottomSheetFooterProps } from '../bottomSheetFooter';
|
|
26
|
+
import type { BottomSheetHandleProps } from '../bottomSheetHandle';
|
|
27
|
+
|
|
28
|
+
export interface BottomSheetProps
|
|
29
|
+
extends BottomSheetAnimationConfigs,
|
|
30
|
+
Partial<BottomSheetGestureProps>,
|
|
31
|
+
Omit<NullableAccessibilityProps, 'accessibilityHint'> {
|
|
32
|
+
//#region configuration
|
|
33
|
+
/**
|
|
34
|
+
* Initial snap point index, provide `-1` to initiate bottom sheet in closed state.
|
|
35
|
+
* @type number
|
|
36
|
+
* @default 0
|
|
37
|
+
*/
|
|
38
|
+
index?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Points for the bottom sheet to snap to. It accepts array of number, string or mix.
|
|
41
|
+
* String values should be a percentage.
|
|
42
|
+
*
|
|
43
|
+
* ⚠️ This prop is required unless you set `enableDynamicSizing` to `true`.
|
|
44
|
+
* @example
|
|
45
|
+
* snapPoints={[200, 500]}
|
|
46
|
+
* snapPoints={[200, '%50']}
|
|
47
|
+
* snapPoints={['%100']}
|
|
48
|
+
* @type Array<string | number>
|
|
49
|
+
*/
|
|
50
|
+
snapPoints?: Array<string | number> | SharedValue<Array<string | number>>;
|
|
51
|
+
/**
|
|
52
|
+
* Defines how violently sheet has to be stopped while over dragging.
|
|
53
|
+
* @type number
|
|
54
|
+
* @default 2.5
|
|
55
|
+
*/
|
|
56
|
+
overDragResistanceFactor?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Defines whether the bottom sheet is attached to the bottom or no.
|
|
59
|
+
* @type boolean
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
detached?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Enable content panning gesture interaction.
|
|
65
|
+
* @type boolean
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
enableContentPanningGesture?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Enable handle panning gesture interaction.
|
|
71
|
+
* @type boolean
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
enableHandlePanningGesture?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Enable over drag for the sheet.
|
|
77
|
+
* @type boolean
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
enableOverDrag?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Enable pan down gesture to close the sheet.
|
|
83
|
+
* @type boolean
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
enablePanDownToClose?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Enable dynamic sizing for content view and scrollable content size.
|
|
89
|
+
* @type boolean
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
enableDynamicSizing?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* To start the sheet closed and snap to initial index when it's mounted.
|
|
95
|
+
* @type boolean
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
animateOnMount?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* To override the user reduce motion setting.
|
|
101
|
+
* - `ReduceMotion.System`: if the `Reduce motion` accessibility setting is enabled on the device, disable the animation.
|
|
102
|
+
* - `ReduceMotion.Always`: disable the animation, even if `Reduce motion` accessibility setting is not enabled.
|
|
103
|
+
* - `ReduceMotion.Never`: enable the animation, even if `Reduce motion` accessibility setting is enabled.
|
|
104
|
+
* @type ReduceMotion
|
|
105
|
+
* @see https://docs.swmansion.com/react-native-reanimated/docs/guides/accessibility
|
|
106
|
+
* @default ReduceMotion.System
|
|
107
|
+
*/
|
|
108
|
+
overrideReduceMotion?: ReduceMotion;
|
|
109
|
+
//#endregion
|
|
110
|
+
|
|
111
|
+
//#region layout
|
|
112
|
+
/**
|
|
113
|
+
* Container height helps to calculate the internal sheet layouts,
|
|
114
|
+
* if `containerHeight` not provided, the library internally will calculate it,
|
|
115
|
+
* however this will cause an extra re-rendering.
|
|
116
|
+
* @type number | SharedValue<number>;
|
|
117
|
+
* @deprecated please use `containerLayoutState` instead.
|
|
118
|
+
*/
|
|
119
|
+
containerHeight?: number | SharedValue<number>;
|
|
120
|
+
/**
|
|
121
|
+
* Container offset helps to accurately detect container offsets.
|
|
122
|
+
* @type SharedValue<number>;
|
|
123
|
+
* @deprecated please use `containerLayoutState` instead.
|
|
124
|
+
*/
|
|
125
|
+
containerOffset?: SharedValue<Required<Insets>>;
|
|
126
|
+
/**
|
|
127
|
+
* Container layout state, this is used to calculate the container height and offsets.
|
|
128
|
+
* If not provided, the library will use the default container layout state.
|
|
129
|
+
* @type SharedValue<ContainerLayoutState>
|
|
130
|
+
* @default undefined
|
|
131
|
+
*/
|
|
132
|
+
containerLayoutState?: SharedValue<ContainerLayoutState>;
|
|
133
|
+
/**
|
|
134
|
+
* Top inset value helps to calculate percentage snap points values,
|
|
135
|
+
* usually comes from `@react-navigation/stack` hook `useHeaderHeight` or
|
|
136
|
+
* from `react-native-safe-area-context` hook `useSafeArea`.
|
|
137
|
+
* @type number
|
|
138
|
+
* @default 0
|
|
139
|
+
*/
|
|
140
|
+
topInset?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Bottom inset value helps to calculate percentage snap points values,
|
|
143
|
+
* usually comes from `react-native-safe-area-context` hook `useSafeArea`.
|
|
144
|
+
* @type number
|
|
145
|
+
* @default 0
|
|
146
|
+
*/
|
|
147
|
+
bottomInset?: number;
|
|
148
|
+
/**
|
|
149
|
+
* Max dynamic content size height to limit the bottom sheet height
|
|
150
|
+
* from exceeding a provided size.
|
|
151
|
+
* @type number
|
|
152
|
+
* @default container height
|
|
153
|
+
*/
|
|
154
|
+
maxDynamicContentSize?: number;
|
|
155
|
+
//#endregion
|
|
156
|
+
|
|
157
|
+
//#region keyboard
|
|
158
|
+
/**
|
|
159
|
+
* Defines the keyboard appearance behavior.
|
|
160
|
+
* @enum
|
|
161
|
+
* - `interactive`: offset the sheet by the size of the keyboard.
|
|
162
|
+
* - `extend`: extend the sheet to its maximum snap point.
|
|
163
|
+
* - `fillParent`: extend the sheet to fill parent.
|
|
164
|
+
* @type `interactive` | `extend` | `fillParent`
|
|
165
|
+
* @default interactive
|
|
166
|
+
*/
|
|
167
|
+
keyboardBehavior?: keyof typeof KEYBOARD_BEHAVIOR;
|
|
168
|
+
/**
|
|
169
|
+
* Defines the keyboard blur behavior.
|
|
170
|
+
* - `none`: do nothing.
|
|
171
|
+
* - `restore`: restore sheet position.
|
|
172
|
+
*/
|
|
173
|
+
keyboardBlurBehavior?: keyof typeof KEYBOARD_BLUR_BEHAVIOR;
|
|
174
|
+
/**
|
|
175
|
+
* Enable blurring the keyboard when user start to drag the bottom sheet.
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
enableBlurKeyboardOnGesture?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Defines keyboard input mode for Android only.
|
|
181
|
+
* @link {https://developer.android.com/guide/topics/manifest/activity-element#wsoft}
|
|
182
|
+
* @type `adjustPan` | `adjustResize`
|
|
183
|
+
* @default `adjustPan`
|
|
184
|
+
*/
|
|
185
|
+
android_keyboardInputMode?: keyof typeof KEYBOARD_INPUT_MODE;
|
|
186
|
+
|
|
187
|
+
//#endregion
|
|
188
|
+
|
|
189
|
+
//#region styles
|
|
190
|
+
/**
|
|
191
|
+
* View style to be applied to the container.
|
|
192
|
+
* @type ViewStyle
|
|
193
|
+
* @default undefined
|
|
194
|
+
*/
|
|
195
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
196
|
+
/**
|
|
197
|
+
* View style to be applied to the sheet container component,
|
|
198
|
+
* it also could be an Animated Style.
|
|
199
|
+
* @type AnimateStyle<ViewStyle>
|
|
200
|
+
* @default undefined
|
|
201
|
+
*/
|
|
202
|
+
style?: StyleProp<
|
|
203
|
+
AnimateStyle<
|
|
204
|
+
Omit<
|
|
205
|
+
ViewStyle,
|
|
206
|
+
| 'flexDirection'
|
|
207
|
+
| 'position'
|
|
208
|
+
| 'top'
|
|
209
|
+
| 'left'
|
|
210
|
+
| 'bottom'
|
|
211
|
+
| 'right'
|
|
212
|
+
| 'opacity'
|
|
213
|
+
| 'transform'
|
|
214
|
+
>
|
|
215
|
+
>
|
|
216
|
+
>;
|
|
217
|
+
/**
|
|
218
|
+
* View style to be applied to the background component.
|
|
219
|
+
* @type ViewStyle
|
|
220
|
+
* @default undefined
|
|
221
|
+
*/
|
|
222
|
+
backgroundStyle?: StyleProp<
|
|
223
|
+
Omit<ViewStyle, 'position' | 'top' | 'left' | 'bottom' | 'right'>
|
|
224
|
+
>;
|
|
225
|
+
/**
|
|
226
|
+
* View style to be applied to the handle component.
|
|
227
|
+
* @type ViewStyle
|
|
228
|
+
* @default undefined
|
|
229
|
+
*/
|
|
230
|
+
handleStyle?: StyleProp<ViewStyle>;
|
|
231
|
+
/**
|
|
232
|
+
* View style to be applied to the handle indicator component.
|
|
233
|
+
* @type ViewStyle
|
|
234
|
+
* @default undefined
|
|
235
|
+
*/
|
|
236
|
+
handleIndicatorStyle?: StyleProp<ViewStyle>;
|
|
237
|
+
//#endregion
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Custom hook to provide pan gesture events handler, which will allow advance and
|
|
241
|
+
* customize handling for pan gesture.
|
|
242
|
+
* @warning this is an experimental feature and the hook signature can change without a major version bump.
|
|
243
|
+
* @type GestureEventsHandlersHookType
|
|
244
|
+
* @default useGestureEventsHandlersDefault
|
|
245
|
+
*/
|
|
246
|
+
gestureEventsHandlersHook?: GestureEventsHandlersHookType;
|
|
247
|
+
|
|
248
|
+
//#region animated nodes
|
|
249
|
+
/**
|
|
250
|
+
* Animated value to be used as a callback of the position node internally.
|
|
251
|
+
* @type SharedValue<number>
|
|
252
|
+
*/
|
|
253
|
+
animatedPosition?: SharedValue<number>;
|
|
254
|
+
/**
|
|
255
|
+
* Animated value to be used as a callback for the position index node internally.
|
|
256
|
+
* @type SharedValue<number>
|
|
257
|
+
*/
|
|
258
|
+
animatedIndex?: SharedValue<number>;
|
|
259
|
+
//#endregion
|
|
260
|
+
|
|
261
|
+
//#region callbacks
|
|
262
|
+
/**
|
|
263
|
+
* Callback when the sheet position changed to a provided point.
|
|
264
|
+
*
|
|
265
|
+
* @type (index: number) => void;
|
|
266
|
+
*/
|
|
267
|
+
onChange?: (index: number, position: number, type: SNAP_POINT_TYPE) => void;
|
|
268
|
+
/**
|
|
269
|
+
* Callback when the sheet close.
|
|
270
|
+
*
|
|
271
|
+
* @type () => void;
|
|
272
|
+
*/
|
|
273
|
+
onClose?: () => void;
|
|
274
|
+
/**
|
|
275
|
+
* Callback when the sheet about to animate to a new position.
|
|
276
|
+
*
|
|
277
|
+
* @type (fromIndex: number, toIndex: number, fromPosition: number, toPosition: number) => void;
|
|
278
|
+
*/
|
|
279
|
+
onAnimate?: (
|
|
280
|
+
fromIndex: number,
|
|
281
|
+
toIndex: number,
|
|
282
|
+
fromPosition: number,
|
|
283
|
+
toPosition: number
|
|
284
|
+
) => void;
|
|
285
|
+
//#endregion
|
|
286
|
+
|
|
287
|
+
//#region components
|
|
288
|
+
/**
|
|
289
|
+
* Component to be placed as a sheet handle.
|
|
290
|
+
* @see {BottomSheetHandleProps}
|
|
291
|
+
* @type React.FC\<BottomSheetHandleProps\>
|
|
292
|
+
*/
|
|
293
|
+
handleComponent?: React.FC<BottomSheetHandleProps> | null;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Component to be placed as a sheet backdrop.
|
|
297
|
+
* @see {BottomSheetBackdropProps}
|
|
298
|
+
* @type React.FC\<BottomSheetBackdropProps\>
|
|
299
|
+
* @default undefined
|
|
300
|
+
*/
|
|
301
|
+
backdropComponent?: React.FC<BottomSheetBackdropProps>;
|
|
302
|
+
/**
|
|
303
|
+
* Component to be placed as a background.
|
|
304
|
+
* @see {BottomSheetBackgroundProps}
|
|
305
|
+
* @type React.FC\<BottomSheetBackgroundProps\>
|
|
306
|
+
*/
|
|
307
|
+
backgroundComponent?: React.FC<BottomSheetBackgroundProps> | null;
|
|
308
|
+
/**
|
|
309
|
+
* Component to be placed as a footer.
|
|
310
|
+
* @see {BottomSheetFooterProps}
|
|
311
|
+
* @type React.FC\<BottomSheetFooterProps\>
|
|
312
|
+
*/
|
|
313
|
+
footerComponent?: React.FC<BottomSheetFooterProps>;
|
|
314
|
+
/**
|
|
315
|
+
* A scrollable node or normal view.
|
|
316
|
+
* @type React.ReactNode
|
|
317
|
+
*/
|
|
318
|
+
children: React.ReactNode;
|
|
319
|
+
//#endregion
|
|
320
|
+
|
|
321
|
+
//#region private
|
|
322
|
+
/**
|
|
323
|
+
* An indicator whether if the sheet running in a modal.
|
|
324
|
+
* @type boolean
|
|
325
|
+
*/
|
|
326
|
+
$modal?: boolean;
|
|
327
|
+
//#endregion
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface BottomSheetAnimationConfigs {
|
|
331
|
+
/**
|
|
332
|
+
* Animation configs, this could be created by:
|
|
333
|
+
* - `useBottomSheetSpringConfigs`
|
|
334
|
+
* - `useBottomSheetTimingConfigs`
|
|
335
|
+
* @type WithSpringConfig | WithTimingConfig
|
|
336
|
+
*/
|
|
337
|
+
animationConfigs?: WithSpringConfig | WithTimingConfig;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type AnimateToPositionType = (
|
|
341
|
+
position: number,
|
|
342
|
+
source: ANIMATION_SOURCE,
|
|
343
|
+
velocity?: number,
|
|
344
|
+
configs?: WithTimingConfig | WithSpringConfig
|
|
345
|
+
) => void;
|
|
346
|
+
|
|
347
|
+
export type BottomSheetGestureProps = {
|
|
348
|
+
activeOffsetX: Parameters<PanGesture['activeOffsetX']>[0];
|
|
349
|
+
activeOffsetY: Parameters<PanGesture['activeOffsetY']>[0];
|
|
350
|
+
|
|
351
|
+
failOffsetY: Parameters<PanGesture['failOffsetY']>[0];
|
|
352
|
+
failOffsetX: Parameters<PanGesture['failOffsetX']>[0];
|
|
353
|
+
|
|
354
|
+
simultaneousHandlers: Parameters<
|
|
355
|
+
PanGesture['simultaneousWithExternalGesture']
|
|
356
|
+
>[0];
|
|
357
|
+
waitFor: Parameters<PanGesture['requireExternalGestureToFail']>[0];
|
|
358
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BottomSheetDefaultBackdropProps } from './types';
|
|
3
|
+
export declare const BottomSheetBackdrop: React.MemoExoticComponent<({ animatedIndex, opacity: _providedOpacity, appearsOnIndex: _providedAppearsOnIndex, disappearsOnIndex: _providedDisappearsOnIndex, enableTouchThrough: _providedEnableTouchThrough, pressBehavior, onPress, style, children, accessible: _providedAccessible, accessibilityRole: _providedAccessibilityRole, accessibilityLabel: _providedAccessibilityLabel, accessibilityHint: _providedAccessibilityHint, }: BottomSheetDefaultBackdropProps) => React.JSX.Element>;
|
|
4
|
+
//# sourceMappingURL=BottomSheetBackdrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetBackdrop.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAuBf,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAqI/D,eAAO,MAAM,mBAAmB,8aArH7B,+BAA+B,uBAqHmC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const DEFAULT_OPACITY = 0.5;
|
|
2
|
+
declare const DEFAULT_APPEARS_ON_INDEX = 1;
|
|
3
|
+
declare const DEFAULT_DISAPPEARS_ON_INDEX = 0;
|
|
4
|
+
declare const DEFAULT_ENABLE_TOUCH_THROUGH = false;
|
|
5
|
+
declare const DEFAULT_PRESS_BEHAVIOR: "close";
|
|
6
|
+
declare const DEFAULT_ACCESSIBLE = true;
|
|
7
|
+
declare const DEFAULT_ACCESSIBILITY_ROLE = "button";
|
|
8
|
+
declare const DEFAULT_ACCESSIBILITY_LABEL = "Bottom sheet backdrop";
|
|
9
|
+
declare const DEFAULT_ACCESSIBILITY_HINT = "Tap to close the bottom sheet";
|
|
10
|
+
export { DEFAULT_OPACITY, DEFAULT_APPEARS_ON_INDEX, DEFAULT_DISAPPEARS_ON_INDEX, DEFAULT_ENABLE_TOUCH_THROUGH, DEFAULT_PRESS_BEHAVIOR, DEFAULT_ACCESSIBLE, DEFAULT_ACCESSIBILITY_ROLE, DEFAULT_ACCESSIBILITY_LABEL, DEFAULT_ACCESSIBILITY_HINT, };
|
|
11
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheetBackdrop/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,MAAM,CAAC;AAC5B,QAAA,MAAM,wBAAwB,IAAI,CAAC;AACnC,QAAA,MAAM,2BAA2B,IAAI,CAAC;AACtC,QAAA,MAAM,4BAA4B,QAAQ,CAAC;AAC3C,QAAA,MAAM,sBAAsB,EAAG,OAAgB,CAAC;AAEhD,QAAA,MAAM,kBAAkB,OAAO,CAAC;AAChC,QAAA,MAAM,0BAA0B,WAAW,CAAC;AAC5C,QAAA,MAAM,2BAA2B,0BAA0B,CAAC;AAC5D,QAAA,MAAM,0BAA0B,kCAAkC,CAAC;AAEnE,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheetBackdrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/bottomSheetBackdrop/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;CAKjB,CAAC"}
|