@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,387 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _portal = require("@gorhom/portal");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utilities = require("../../utilities");
|
|
11
|
+
var _id = require("../../utilities/id");
|
|
12
|
+
var _bottomSheet = _interopRequireDefault(require("../bottomSheet"));
|
|
13
|
+
var _constants = require("./constants");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
|
+
const INITIAL_STATE = {
|
|
18
|
+
mount: false,
|
|
19
|
+
data: undefined
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// biome-ignore lint/suspicious/noExplicitAny: Using 'any' allows users to define their own strict types for 'data' property.
|
|
23
|
+
|
|
24
|
+
// biome-ignore lint/suspicious/noExplicitAny: Using 'any' allows users to define their own strict types for 'data' property.
|
|
25
|
+
function BottomSheetModalComponent(props, ref) {
|
|
26
|
+
const {
|
|
27
|
+
// modal props
|
|
28
|
+
name,
|
|
29
|
+
stackBehavior = _constants.DEFAULT_STACK_BEHAVIOR,
|
|
30
|
+
enableDismissOnClose = _constants.DEFAULT_ENABLE_DISMISS_ON_CLOSE,
|
|
31
|
+
onDismiss: _providedOnDismiss,
|
|
32
|
+
onAnimate: _providedOnAnimate,
|
|
33
|
+
// bottom sheet props
|
|
34
|
+
index = 0,
|
|
35
|
+
snapPoints,
|
|
36
|
+
enablePanDownToClose = true,
|
|
37
|
+
animateOnMount = true,
|
|
38
|
+
containerComponent: ContainerComponent = _react.default.Fragment,
|
|
39
|
+
// callbacks
|
|
40
|
+
onChange: _providedOnChange,
|
|
41
|
+
// components
|
|
42
|
+
children: Content,
|
|
43
|
+
...bottomSheetProps
|
|
44
|
+
} = props;
|
|
45
|
+
|
|
46
|
+
//#region state
|
|
47
|
+
const [{
|
|
48
|
+
mount,
|
|
49
|
+
data
|
|
50
|
+
}, setState] = (0, _react.useState)(INITIAL_STATE);
|
|
51
|
+
//#endregion
|
|
52
|
+
|
|
53
|
+
//#region hooks
|
|
54
|
+
const {
|
|
55
|
+
hostName,
|
|
56
|
+
containerLayoutState,
|
|
57
|
+
mountSheet,
|
|
58
|
+
unmountSheet,
|
|
59
|
+
willUnmountSheet
|
|
60
|
+
} = (0, _hooks.useBottomSheetModalInternal)();
|
|
61
|
+
const {
|
|
62
|
+
removePortal: unmountPortal
|
|
63
|
+
} = (0, _portal.usePortal)(hostName);
|
|
64
|
+
//#endregion
|
|
65
|
+
|
|
66
|
+
//#region refs
|
|
67
|
+
const bottomSheetRef = (0, _react.useRef)(null);
|
|
68
|
+
const currentIndexRef = (0, _react.useRef)(!animateOnMount ? index : -1);
|
|
69
|
+
const nextIndexRef = (0, _react.useRef)(null);
|
|
70
|
+
const restoreIndexRef = (0, _react.useRef)(-1);
|
|
71
|
+
const minimized = (0, _react.useRef)(false);
|
|
72
|
+
const forcedDismissed = (0, _react.useRef)(false);
|
|
73
|
+
const mounted = (0, _react.useRef)(false);
|
|
74
|
+
mounted.current = mount;
|
|
75
|
+
//#endregion
|
|
76
|
+
|
|
77
|
+
//#region variables
|
|
78
|
+
const key = (0, _react.useMemo)(() => name || `bottom-sheet-modal-${(0, _id.id)()}`, [name]);
|
|
79
|
+
//#endregion
|
|
80
|
+
|
|
81
|
+
//#region private methods
|
|
82
|
+
const resetVariables = (0, _react.useCallback)(function resetVariables() {
|
|
83
|
+
(0, _utilities.print)({
|
|
84
|
+
component: BottomSheetModal.name,
|
|
85
|
+
method: resetVariables.name
|
|
86
|
+
});
|
|
87
|
+
currentIndexRef.current = -1;
|
|
88
|
+
restoreIndexRef.current = -1;
|
|
89
|
+
minimized.current = false;
|
|
90
|
+
mounted.current = false;
|
|
91
|
+
forcedDismissed.current = false;
|
|
92
|
+
}, []);
|
|
93
|
+
const unmount = (0, _react.useCallback)(function unmount() {
|
|
94
|
+
if (__DEV__) {
|
|
95
|
+
(0, _utilities.print)({
|
|
96
|
+
component: BottomSheetModal.name,
|
|
97
|
+
method: unmount.name
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
const _mounted = mounted.current;
|
|
101
|
+
|
|
102
|
+
// reset variables
|
|
103
|
+
resetVariables();
|
|
104
|
+
|
|
105
|
+
// unmount sheet and portal
|
|
106
|
+
unmountSheet(key);
|
|
107
|
+
unmountPortal(key);
|
|
108
|
+
|
|
109
|
+
// unmount the node, if sheet is still mounted
|
|
110
|
+
if (_mounted) {
|
|
111
|
+
setState(INITIAL_STATE);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// fire `onDismiss` callback
|
|
115
|
+
if (_providedOnDismiss) {
|
|
116
|
+
_providedOnDismiss();
|
|
117
|
+
}
|
|
118
|
+
}, [key, resetVariables, unmountSheet, unmountPortal, _providedOnDismiss]);
|
|
119
|
+
//#endregion
|
|
120
|
+
|
|
121
|
+
//#region bottom sheet methods
|
|
122
|
+
const handleSnapToIndex = (0, _react.useCallback)((...args) => {
|
|
123
|
+
if (minimized.current) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
bottomSheetRef.current?.snapToIndex(...args);
|
|
127
|
+
}, []);
|
|
128
|
+
const handleSnapToPosition = (0, _react.useCallback)((...args) => {
|
|
129
|
+
if (minimized.current) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
bottomSheetRef.current?.snapToPosition(...args);
|
|
133
|
+
}, []);
|
|
134
|
+
const handleExpand = (0, _react.useCallback)((...args) => {
|
|
135
|
+
if (minimized.current) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
bottomSheetRef.current?.expand(...args);
|
|
139
|
+
}, []);
|
|
140
|
+
const handleCollapse = (0, _react.useCallback)((...args) => {
|
|
141
|
+
if (minimized.current) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
bottomSheetRef.current?.collapse(...args);
|
|
145
|
+
}, []);
|
|
146
|
+
const handleClose = (0, _react.useCallback)((...args) => {
|
|
147
|
+
if (minimized.current) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
bottomSheetRef.current?.close(...args);
|
|
151
|
+
}, []);
|
|
152
|
+
const handleForceClose = (0, _react.useCallback)((...args) => {
|
|
153
|
+
if (minimized.current) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
bottomSheetRef.current?.forceClose(...args);
|
|
157
|
+
}, []);
|
|
158
|
+
//#endregion
|
|
159
|
+
|
|
160
|
+
//#region bottom sheet modal methods
|
|
161
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(BottomSheetModal.name): used for debug only
|
|
162
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(ref): ref is a stable object
|
|
163
|
+
const handlePresent = (0, _react.useCallback)(function handlePresent(_data) {
|
|
164
|
+
requestAnimationFrame(() => {
|
|
165
|
+
setState({
|
|
166
|
+
mount: true,
|
|
167
|
+
data: _data
|
|
168
|
+
});
|
|
169
|
+
mountSheet(key, ref, stackBehavior);
|
|
170
|
+
ref;
|
|
171
|
+
if (__DEV__) {
|
|
172
|
+
(0, _utilities.print)({
|
|
173
|
+
component: BottomSheetModal.name,
|
|
174
|
+
method: handlePresent.name
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
180
|
+
[key, stackBehavior, mountSheet]);
|
|
181
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(BottomSheetModal.name): used for debug only
|
|
182
|
+
const handleDismiss = (0, _react.useCallback)(function handleDismiss(animationConfigs) {
|
|
183
|
+
if (__DEV__) {
|
|
184
|
+
(0, _utilities.print)({
|
|
185
|
+
component: BottomSheetModal.name,
|
|
186
|
+
method: handleDismiss.name,
|
|
187
|
+
params: {
|
|
188
|
+
currentIndexRef: currentIndexRef.current,
|
|
189
|
+
minimized: minimized.current
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
const animating = nextIndexRef.current != null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* early exit, if not minimized, it is in closed position and not animating
|
|
197
|
+
*/
|
|
198
|
+
if (currentIndexRef.current === -1 && minimized.current === false && !animating) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* unmount and early exit, if minimized or it is in closed position and not animating
|
|
204
|
+
*/
|
|
205
|
+
if (!animating && (minimized.current || currentIndexRef.current === -1 && enablePanDownToClose)) {
|
|
206
|
+
unmount();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
willUnmountSheet(key);
|
|
210
|
+
forcedDismissed.current = true;
|
|
211
|
+
bottomSheetRef.current?.forceClose(animationConfigs);
|
|
212
|
+
}, [willUnmountSheet, unmount, key, enablePanDownToClose]);
|
|
213
|
+
const handleMinimize = (0, _react.useCallback)(function handleMinimize() {
|
|
214
|
+
if (__DEV__) {
|
|
215
|
+
(0, _utilities.print)({
|
|
216
|
+
component: BottomSheetModal.name,
|
|
217
|
+
method: handleMinimize.name,
|
|
218
|
+
params: {
|
|
219
|
+
minimized: minimized.current
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
if (minimized.current) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
minimized.current = true;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* if modal got minimized before it finish its mounting
|
|
230
|
+
* animation, we set the `restoreIndexRef` to the
|
|
231
|
+
* provided index.
|
|
232
|
+
*/
|
|
233
|
+
if (currentIndexRef.current === -1) {
|
|
234
|
+
restoreIndexRef.current = index;
|
|
235
|
+
} else {
|
|
236
|
+
restoreIndexRef.current = currentIndexRef.current;
|
|
237
|
+
}
|
|
238
|
+
bottomSheetRef.current?.close();
|
|
239
|
+
}, [index]);
|
|
240
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(BottomSheetModal.name): used for debug only
|
|
241
|
+
const handleRestore = (0, _react.useCallback)(function handleRestore() {
|
|
242
|
+
if (__DEV__) {
|
|
243
|
+
(0, _utilities.print)({
|
|
244
|
+
component: BottomSheetModal.name,
|
|
245
|
+
method: handleRestore.name,
|
|
246
|
+
params: {
|
|
247
|
+
minimized: minimized.current,
|
|
248
|
+
forcedDismissed: forcedDismissed.current
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
if (!minimized.current || forcedDismissed.current) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
minimized.current = false;
|
|
256
|
+
bottomSheetRef.current?.snapToIndex(restoreIndexRef.current);
|
|
257
|
+
}, []);
|
|
258
|
+
//#endregion
|
|
259
|
+
|
|
260
|
+
//#region callbacks
|
|
261
|
+
const handlePortalOnUnmount = (0, _react.useCallback)(function handlePortalOnUnmount() {
|
|
262
|
+
if (__DEV__) {
|
|
263
|
+
(0, _utilities.print)({
|
|
264
|
+
component: BottomSheetModal.name,
|
|
265
|
+
method: handlePortalOnUnmount.name,
|
|
266
|
+
params: {
|
|
267
|
+
minimized: minimized.current,
|
|
268
|
+
forcedDismissed: forcedDismissed.current
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* if modal is already been dismiss, we exit the method.
|
|
274
|
+
*/
|
|
275
|
+
if (currentIndexRef.current === -1 && minimized.current === false) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
mounted.current = false;
|
|
279
|
+
forcedDismissed.current = true;
|
|
280
|
+
if (minimized.current) {
|
|
281
|
+
unmount();
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
willUnmountSheet(key);
|
|
285
|
+
bottomSheetRef.current?.close();
|
|
286
|
+
}, [key, unmount, willUnmountSheet]);
|
|
287
|
+
const handlePortalRender = (0, _react.useCallback)(function handlePortalRender(render) {
|
|
288
|
+
if (mounted.current) {
|
|
289
|
+
render();
|
|
290
|
+
}
|
|
291
|
+
}, []);
|
|
292
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(BottomSheetModal.name): used for debug only
|
|
293
|
+
const handleBottomSheetOnChange = (0, _react.useCallback)(function handleBottomSheetOnChange(_index, _position, _type) {
|
|
294
|
+
if (__DEV__) {
|
|
295
|
+
(0, _utilities.print)({
|
|
296
|
+
component: BottomSheetModal.name,
|
|
297
|
+
method: handleBottomSheetOnChange.name,
|
|
298
|
+
category: 'callback',
|
|
299
|
+
params: {
|
|
300
|
+
minimized: minimized.current,
|
|
301
|
+
forcedDismissed: forcedDismissed.current
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
currentIndexRef.current = _index;
|
|
306
|
+
nextIndexRef.current = null;
|
|
307
|
+
if (_providedOnChange) {
|
|
308
|
+
_providedOnChange(_index, _position, _type);
|
|
309
|
+
}
|
|
310
|
+
}, [_providedOnChange]);
|
|
311
|
+
const handleBottomSheetOnAnimate = (0, _react.useCallback)((fromIndex, toIndex, fromPosition, toPosition) => {
|
|
312
|
+
nextIndexRef.current = toIndex;
|
|
313
|
+
if (_providedOnAnimate) {
|
|
314
|
+
_providedOnAnimate(fromIndex, toIndex, fromPosition, toPosition);
|
|
315
|
+
}
|
|
316
|
+
}, [_providedOnAnimate]);
|
|
317
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies(BottomSheetModal.name): used for debug only
|
|
318
|
+
const handleBottomSheetOnClose = (0, _react.useCallback)(function handleBottomSheetOnClose() {
|
|
319
|
+
if (__DEV__) {
|
|
320
|
+
(0, _utilities.print)({
|
|
321
|
+
component: BottomSheetModal.name,
|
|
322
|
+
method: handleBottomSheetOnClose.name,
|
|
323
|
+
category: 'callback',
|
|
324
|
+
params: {
|
|
325
|
+
minimized: minimized.current,
|
|
326
|
+
forcedDismissed: forcedDismissed.current
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
if (minimized.current) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
if (enableDismissOnClose) {
|
|
334
|
+
unmount();
|
|
335
|
+
}
|
|
336
|
+
}, [enableDismissOnClose, unmount]);
|
|
337
|
+
//#endregion
|
|
338
|
+
|
|
339
|
+
//#region expose methods
|
|
340
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
341
|
+
// sheet
|
|
342
|
+
snapToIndex: handleSnapToIndex,
|
|
343
|
+
snapToPosition: handleSnapToPosition,
|
|
344
|
+
expand: handleExpand,
|
|
345
|
+
collapse: handleCollapse,
|
|
346
|
+
close: handleClose,
|
|
347
|
+
forceClose: handleForceClose,
|
|
348
|
+
// modal methods
|
|
349
|
+
dismiss: handleDismiss,
|
|
350
|
+
present: handlePresent,
|
|
351
|
+
// internal
|
|
352
|
+
minimize: handleMinimize,
|
|
353
|
+
restore: handleRestore
|
|
354
|
+
}));
|
|
355
|
+
//#endregion
|
|
356
|
+
|
|
357
|
+
// render
|
|
358
|
+
return mount ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
|
|
359
|
+
name: key,
|
|
360
|
+
hostName: hostName,
|
|
361
|
+
handleOnMount: handlePortalRender,
|
|
362
|
+
handleOnUpdate: handlePortalRender,
|
|
363
|
+
handleOnUnmount: handlePortalOnUnmount,
|
|
364
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ContainerComponent, {
|
|
365
|
+
children: /*#__PURE__*/(0, _react.createElement)(_bottomSheet.default, {
|
|
366
|
+
...bottomSheetProps,
|
|
367
|
+
ref: bottomSheetRef,
|
|
368
|
+
key: key,
|
|
369
|
+
index: index,
|
|
370
|
+
snapPoints: snapPoints,
|
|
371
|
+
enablePanDownToClose: enablePanDownToClose,
|
|
372
|
+
animateOnMount: animateOnMount,
|
|
373
|
+
containerLayoutState: containerLayoutState,
|
|
374
|
+
onChange: handleBottomSheetOnChange,
|
|
375
|
+
onClose: handleBottomSheetOnClose,
|
|
376
|
+
onAnimate: handleBottomSheetOnAnimate,
|
|
377
|
+
$modal: true
|
|
378
|
+
}, typeof Content === 'function' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Content, {
|
|
379
|
+
data: data
|
|
380
|
+
}) : Content)
|
|
381
|
+
}, key)
|
|
382
|
+
}, key) : null;
|
|
383
|
+
}
|
|
384
|
+
const BottomSheetModal = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(BottomSheetModalComponent));
|
|
385
|
+
BottomSheetModal.displayName = 'BottomSheetModal';
|
|
386
|
+
var _default = exports.default = BottomSheetModal;
|
|
387
|
+
//# sourceMappingURL=BottomSheetModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_portal","require","_react","_interopRequireWildcard","_hooks","_utilities","_id","_bottomSheet","_interopRequireDefault","_constants","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","INITIAL_STATE","mount","data","undefined","BottomSheetModalComponent","props","ref","name","stackBehavior","DEFAULT_STACK_BEHAVIOR","enableDismissOnClose","DEFAULT_ENABLE_DISMISS_ON_CLOSE","onDismiss","_providedOnDismiss","onAnimate","_providedOnAnimate","index","snapPoints","enablePanDownToClose","animateOnMount","containerComponent","ContainerComponent","React","Fragment","onChange","_providedOnChange","children","Content","bottomSheetProps","setState","useState","hostName","containerLayoutState","mountSheet","unmountSheet","willUnmountSheet","useBottomSheetModalInternal","removePortal","unmountPortal","usePortal","bottomSheetRef","useRef","currentIndexRef","nextIndexRef","restoreIndexRef","minimized","forcedDismissed","mounted","current","key","useMemo","id","resetVariables","useCallback","print","component","BottomSheetModal","method","unmount","__DEV__","_mounted","handleSnapToIndex","args","snapToIndex","handleSnapToPosition","snapToPosition","handleExpand","expand","handleCollapse","collapse","handleClose","close","handleForceClose","forceClose","handlePresent","_data","requestAnimationFrame","handleDismiss","animationConfigs","params","animating","handleMinimize","handleRestore","handlePortalOnUnmount","handlePortalRender","render","handleBottomSheetOnChange","_index","_position","_type","category","handleBottomSheetOnAnimate","fromIndex","toIndex","fromPosition","toPosition","handleBottomSheetOnClose","useImperativeHandle","dismiss","present","minimize","restore","jsx","Portal","handleOnMount","handleOnUpdate","handleOnUnmount","createElement","onClose","$modal","memo","forwardRef","displayName","_default","exports"],"sourceRoot":"../../../../src","sources":["components/bottomSheetModal/BottomSheetModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAWA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,GAAA,GAAAL,OAAA;AACA,IAAAM,Y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,cAAc,EAAEA,cAAe;QAC/Ba,oBAAoB,EAAEA,oBAAqB;QAC3CR,QAAQ,EAAE8D,yBAA0B;QACpCsB,OAAO,EAAEZ,wBAAyB;QAClClF,SAAS,EAAE6E,0BAA2B;QACtCkB,MAAM,EAAE;MAAK,GAEZ,OAAOlF,OAAO,KAAK,UAAU,gBAAG,IAAA/C,WAAA,CAAA0H,GAAA,EAAC3E,OAAO;QAACzB,IAAI,EAAEA;MAAK,CAAE,CAAC,GAAGyB,OAChD;IAAC,GAhBSsB,GAiBL;EAAC,GAxBhBA,GAyBC,CAAC,GACP,IAAI;AACV;AAEA,MAAMO,gBAAgB,gBAAG,IAAAsD,WAAI,eAAC,IAAAC,iBAAU,EAAC3G,yBAAyB,CAAC,CAOlB;AAE/CoD,gBAAgB,CAGhBwD,WAAW,GAAG,kBAAkB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnI,OAAA,GAEpByE,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_STACK_BEHAVIOR = exports.DEFAULT_ENABLE_DISMISS_ON_CLOSE = void 0;
|
|
7
|
+
const DEFAULT_STACK_BEHAVIOR = exports.DEFAULT_STACK_BEHAVIOR = 'switch';
|
|
8
|
+
const DEFAULT_ENABLE_DISMISS_ON_CLOSE = exports.DEFAULT_ENABLE_DISMISS_ON_CLOSE = true;
|
|
9
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_STACK_BEHAVIOR","exports","DEFAULT_ENABLE_DISMISS_ON_CLOSE"],"sourceRoot":"../../../../src","sources":["components/bottomSheetModal/constants.ts"],"mappings":";;;;;;AAAA,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,QAAQ;AACvC,MAAME,+BAA+B,GAAAD,OAAA,CAAAC,+BAAA,GAAG,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _BottomSheetModal.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _BottomSheetModal = _interopRequireDefault(require("./BottomSheetModal"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_BottomSheetModal","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../src","sources":["components/bottomSheetModal/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _portal = require("@gorhom/portal");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
+
var _constants = require("../../constants");
|
|
11
|
+
var _contexts = require("../../contexts");
|
|
12
|
+
var _id = require("../../utilities/id");
|
|
13
|
+
var _bottomSheetHostingContainer = require("../bottomSheetHostingContainer");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
+
const BottomSheetModalProviderWrapper = ({
|
|
17
|
+
children
|
|
18
|
+
}) => {
|
|
19
|
+
//#region layout variables
|
|
20
|
+
const animatedContainerLayoutState = (0, _reactNativeReanimated.useSharedValue)(_constants.INITIAL_CONTAINER_LAYOUT);
|
|
21
|
+
//#endregion
|
|
22
|
+
|
|
23
|
+
//#region variables
|
|
24
|
+
const hostName = (0, _react.useMemo)(() => `bottom-sheet-portal-${(0, _id.id)()}`, []);
|
|
25
|
+
const sheetsQueueRef = (0, _react.useRef)([]);
|
|
26
|
+
//#endregion
|
|
27
|
+
|
|
28
|
+
//#region private methods
|
|
29
|
+
const handleMountSheet = (0, _react.useCallback)((key, ref, stackBehavior) => {
|
|
30
|
+
const _sheetsQueue = sheetsQueueRef.current.slice();
|
|
31
|
+
const sheetIndex = _sheetsQueue.findIndex(item => item.key === key);
|
|
32
|
+
const sheetOnTop = sheetIndex === _sheetsQueue.length - 1;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Exit the method, if sheet is already presented
|
|
36
|
+
* and at the top.
|
|
37
|
+
*/
|
|
38
|
+
if (sheetIndex !== -1 && sheetOnTop) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Minimize the current sheet if:
|
|
44
|
+
* - it exists.
|
|
45
|
+
* - it is not unmounting.
|
|
46
|
+
* - stack behavior is 'replace'.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Handle switch or replace stack behaviors, if:
|
|
51
|
+
* - a modal is currently presented.
|
|
52
|
+
* - it is not unmounting
|
|
53
|
+
*/
|
|
54
|
+
const currentMountedSheet = _sheetsQueue[_sheetsQueue.length - 1];
|
|
55
|
+
if (currentMountedSheet && !currentMountedSheet.willUnmount) {
|
|
56
|
+
if (stackBehavior === _constants.MODAL_STACK_BEHAVIOR.replace) {
|
|
57
|
+
currentMountedSheet.ref?.current?.dismiss();
|
|
58
|
+
} else if (stackBehavior === _constants.MODAL_STACK_BEHAVIOR.switch) {
|
|
59
|
+
currentMountedSheet.ref?.current?.minimize();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Restore and remove incoming sheet from the queue,
|
|
65
|
+
* if it was registered.
|
|
66
|
+
*/
|
|
67
|
+
if (sheetIndex !== -1) {
|
|
68
|
+
_sheetsQueue.splice(sheetIndex, 1);
|
|
69
|
+
ref?.current?.restore();
|
|
70
|
+
}
|
|
71
|
+
_sheetsQueue.push({
|
|
72
|
+
key,
|
|
73
|
+
ref,
|
|
74
|
+
willUnmount: false
|
|
75
|
+
});
|
|
76
|
+
sheetsQueueRef.current = _sheetsQueue;
|
|
77
|
+
}, []);
|
|
78
|
+
const handleUnmountSheet = (0, _react.useCallback)(key => {
|
|
79
|
+
const _sheetsQueue = sheetsQueueRef.current.slice();
|
|
80
|
+
const sheetIndex = _sheetsQueue.findIndex(item => item.key === key);
|
|
81
|
+
const sheetOnTop = sheetIndex === _sheetsQueue.length - 1;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Here we remove the unmounted sheet and update
|
|
85
|
+
* the sheets queue.
|
|
86
|
+
*/
|
|
87
|
+
_sheetsQueue.splice(sheetIndex, 1);
|
|
88
|
+
sheetsQueueRef.current = _sheetsQueue;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Here we try to restore previous sheet position if unmounted
|
|
92
|
+
* sheet was on top. This is needed when user dismiss
|
|
93
|
+
* the modal by panning down.
|
|
94
|
+
*/
|
|
95
|
+
const hasMinimizedSheet = sheetsQueueRef.current.length > 0;
|
|
96
|
+
const minimizedSheet = sheetsQueueRef.current[sheetsQueueRef.current.length - 1];
|
|
97
|
+
if (sheetOnTop && hasMinimizedSheet && minimizedSheet && !minimizedSheet.willUnmount) {
|
|
98
|
+
sheetsQueueRef.current[sheetsQueueRef.current.length - 1].ref?.current?.restore();
|
|
99
|
+
}
|
|
100
|
+
}, []);
|
|
101
|
+
const handleWillUnmountSheet = (0, _react.useCallback)(key => {
|
|
102
|
+
const _sheetsQueue = sheetsQueueRef.current.slice();
|
|
103
|
+
const sheetIndex = _sheetsQueue.findIndex(item => item.key === key);
|
|
104
|
+
const sheetOnTop = sheetIndex === _sheetsQueue.length - 1;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Here we mark the sheet that will unmount,
|
|
108
|
+
* so it won't be restored.
|
|
109
|
+
*/
|
|
110
|
+
if (sheetIndex !== -1) {
|
|
111
|
+
_sheetsQueue[sheetIndex].willUnmount = true;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Here we try to restore previous sheet position,
|
|
116
|
+
* This is needed when user dismiss the modal by fire the dismiss action.
|
|
117
|
+
*/
|
|
118
|
+
const hasMinimizedSheet = _sheetsQueue.length > 1;
|
|
119
|
+
if (sheetOnTop && hasMinimizedSheet) {
|
|
120
|
+
_sheetsQueue[_sheetsQueue.length - 2].ref?.current?.restore();
|
|
121
|
+
}
|
|
122
|
+
sheetsQueueRef.current = _sheetsQueue;
|
|
123
|
+
}, []);
|
|
124
|
+
//#endregion
|
|
125
|
+
|
|
126
|
+
//#region public methods
|
|
127
|
+
const handleDismiss = (0, _react.useCallback)(key => {
|
|
128
|
+
const sheetToBeDismissed = key ? sheetsQueueRef.current.find(item => item.key === key) : sheetsQueueRef.current[sheetsQueueRef.current.length - 1];
|
|
129
|
+
if (sheetToBeDismissed) {
|
|
130
|
+
sheetToBeDismissed.ref?.current?.dismiss();
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
}, []);
|
|
135
|
+
const handleDismissAll = (0, _react.useCallback)(() => {
|
|
136
|
+
sheetsQueueRef.current.map(item => {
|
|
137
|
+
item.ref?.current?.dismiss();
|
|
138
|
+
});
|
|
139
|
+
}, []);
|
|
140
|
+
//#endregion
|
|
141
|
+
|
|
142
|
+
//#region context variables
|
|
143
|
+
const externalContextVariables = (0, _react.useMemo)(() => ({
|
|
144
|
+
dismiss: handleDismiss,
|
|
145
|
+
dismissAll: handleDismissAll
|
|
146
|
+
}), [handleDismiss, handleDismissAll]);
|
|
147
|
+
const internalContextVariables = (0, _react.useMemo)(() => ({
|
|
148
|
+
hostName,
|
|
149
|
+
containerLayoutState: animatedContainerLayoutState,
|
|
150
|
+
mountSheet: handleMountSheet,
|
|
151
|
+
unmountSheet: handleUnmountSheet,
|
|
152
|
+
willUnmountSheet: handleWillUnmountSheet
|
|
153
|
+
}), [hostName, animatedContainerLayoutState, handleMountSheet, handleUnmountSheet, handleWillUnmountSheet]);
|
|
154
|
+
//#endregion
|
|
155
|
+
|
|
156
|
+
//#region renders
|
|
157
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_contexts.BottomSheetModalProvider, {
|
|
158
|
+
value: externalContextVariables,
|
|
159
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_contexts.BottomSheetModalInternalProvider, {
|
|
160
|
+
value: internalContextVariables,
|
|
161
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheetHostingContainer.BottomSheetHostingContainer, {
|
|
162
|
+
containerLayoutState: animatedContainerLayoutState
|
|
163
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.PortalProvider, {
|
|
164
|
+
rootHostName: hostName,
|
|
165
|
+
children: children
|
|
166
|
+
})]
|
|
167
|
+
})
|
|
168
|
+
});
|
|
169
|
+
//#endregion
|
|
170
|
+
};
|
|
171
|
+
var _default = exports.default = BottomSheetModalProviderWrapper;
|
|
172
|
+
//# sourceMappingURL=BottomSheetModalProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_portal","require","_react","_interopRequireWildcard","_reactNativeReanimated","_constants","_contexts","_id","_bottomSheetHostingContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BottomSheetModalProviderWrapper","children","animatedContainerLayoutState","useSharedValue","INITIAL_CONTAINER_LAYOUT","hostName","useMemo","id","sheetsQueueRef","useRef","handleMountSheet","useCallback","key","ref","stackBehavior","_sheetsQueue","current","slice","sheetIndex","findIndex","item","sheetOnTop","length","currentMountedSheet","willUnmount","MODAL_STACK_BEHAVIOR","replace","dismiss","switch","minimize","splice","restore","push","handleUnmountSheet","hasMinimizedSheet","minimizedSheet","handleWillUnmountSheet","handleDismiss","sheetToBeDismissed","find","handleDismissAll","map","externalContextVariables","dismissAll","internalContextVariables","containerLayoutState","mountSheet","unmountSheet","willUnmountSheet","jsx","BottomSheetModalProvider","value","jsxs","BottomSheetModalInternalProvider","BottomSheetHostingContainer","PortalProvider","rootHostName","_default","exports"],"sourceRoot":"../../../../src","sources":["components/bottomSheetModalProvider/BottomSheetModalProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,GAAA,GAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAA6E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAE,wBAAAO,CAAA,EAAAC,CAAA,6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D,MAAMI,wBAAwB,GAAG,IAAAtC,cAAO,EACtC,OAAO;IACLD,QAAQ;IACRwC,oBAAoB,EAAE3C,4BAA4B;IAClD4C,UAAU,EAAEpC,gBAAgB;IAC5BqC,YAAY,EAAEd,kBAAkB;IAChCe,gBAAgB,EAAEZ;EACpB,CAAC,CAAC,EACF,CACE/B,QAAQ,EACRH,4BAA4B,EAC5BQ,gBAAgB,EAChBuB,kBAAkB,EAClBG,sBAAsB,CAE1B,CAAC;EACD;;EAEA;EACA,oBACE,IAAAxD,WAAA,CAAAqE,GAAA,EAACxE,SAAA,CAAAyE,wBAAwB;IAACC,KAAK,EAAET,wBAAyB;IAAAzC,QAAA,eACxD,IAAArB,WAAA,CAAAwE,IAAA,EAAC3E,SAAA,CAAA4E,gCAAgC;MAACF,KAAK,EAAEP,wBAAyB;MAAA3C,QAAA,gBAChE,IAAArB,WAAA,CAAAqE,GAAA,EAACtE,4BAAA,CAAA2E,2BAA2B;QAC1BT,oBAAoB,EAAE3C;MAA6B,CACpD,CAAC,eACF,IAAAtB,WAAA,CAAAqE,GAAA,EAAC9E,OAAA,CAAAoF,cAAc;QAACC,YAAY,EAAEnD,QAAS;QAAAJ,QAAA,EAAEA;MAAQ,CAAiB,CAAC;IAAA,CACnC;EAAC,CACX,CAAC;EAE7B;AACF,CAAC;AAAC,IAAAwD,QAAA,GAAAC,OAAA,CAAAnE,OAAA,GAEaS,+BAA+B","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _BottomSheetModalProvider.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _BottomSheetModalProvider = _interopRequireDefault(require("./BottomSheetModalProvider"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_BottomSheetModalProvider","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../src","sources":["components/bottomSheetModalProvider/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,yBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAqD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|