react-native-package-fast 0.2.2 → 0.2.4-rc.1
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/README.md +19 -52
- package/lib/commonjs/assets/icons/IconApp.js +19 -0
- package/lib/commonjs/assets/icons/IconApp.js.map +1 -0
- package/lib/commonjs/carousel/carousel/Carousel.js +1311 -0
- package/lib/commonjs/carousel/carousel/Carousel.js.map +1 -0
- package/lib/commonjs/carousel/pagination/Pagination.js +153 -0
- package/lib/commonjs/carousel/pagination/Pagination.js.map +1 -0
- package/lib/commonjs/carousel/pagination/Pagination.style.js +29 -0
- package/lib/commonjs/carousel/pagination/Pagination.style.js.map +1 -0
- package/lib/commonjs/carousel/pagination/PaginationDot.js +150 -0
- package/lib/commonjs/carousel/pagination/PaginationDot.js.map +1 -0
- package/lib/commonjs/carousel/parallaximage/ParallaxImage.js +225 -0
- package/lib/commonjs/carousel/parallaximage/ParallaxImage.js.map +1 -0
- package/lib/commonjs/carousel/parallaximage/ParallaxImage.style.js +26 -0
- package/lib/commonjs/carousel/parallaximage/ParallaxImage.style.js.map +1 -0
- package/lib/commonjs/carousel/shallow-compare.js +38 -0
- package/lib/commonjs/carousel/shallow-compare.js.map +1 -0
- package/lib/commonjs/carousel/utils/animations.js +273 -0
- package/lib/commonjs/carousel/utils/animations.js.map +1 -0
- package/lib/commonjs/cores/ButtonApp.js +64 -0
- package/lib/commonjs/cores/ButtonApp.js.map +1 -0
- package/lib/commonjs/cores/CheckVersionApp.js +129 -0
- package/lib/commonjs/cores/CheckVersionApp.js.map +1 -0
- package/lib/commonjs/cores/DeviceUtils.js +19 -0
- package/lib/commonjs/cores/DeviceUtils.js.map +1 -0
- package/lib/commonjs/cores/ImageApp.js +37 -0
- package/lib/commonjs/cores/ImageApp.js.map +1 -0
- package/lib/commonjs/cores/ImageFastApp.js +30 -0
- package/lib/commonjs/cores/ImageFastApp.js.map +1 -0
- package/lib/commonjs/cores/InputApp.js +147 -0
- package/lib/commonjs/cores/InputApp.js.map +1 -0
- package/lib/commonjs/cores/InputMultiApp.js +27 -0
- package/lib/commonjs/cores/InputMultiApp.js.map +1 -0
- package/lib/commonjs/cores/LoadingApp.js +48 -0
- package/lib/commonjs/cores/LoadingApp.js.map +1 -0
- package/lib/commonjs/cores/LogUtils.js +136 -0
- package/lib/commonjs/cores/LogUtils.js.map +1 -0
- package/lib/commonjs/cores/RatingApp.js +66 -0
- package/lib/commonjs/cores/RatingApp.js.map +1 -0
- package/lib/commonjs/cores/SliderApp.js +156 -0
- package/lib/commonjs/cores/SliderApp.js.map +1 -0
- package/lib/commonjs/cores/StoresProviderApp.js +64 -0
- package/lib/commonjs/cores/StoresProviderApp.js.map +1 -0
- package/lib/commonjs/cores/TextApp.js +38 -0
- package/lib/commonjs/cores/TextApp.js.map +1 -0
- package/lib/commonjs/cores/Utils.js +648 -0
- package/lib/commonjs/cores/Utils.js.map +1 -0
- package/lib/commonjs/cores/ViewApp.js +32 -0
- package/lib/commonjs/cores/ViewApp.js.map +1 -0
- package/lib/commonjs/crypto/CryptoCore.js +42 -0
- package/lib/commonjs/crypto/CryptoCore.js.map +1 -0
- package/lib/commonjs/crypto/CryptoJS.js +662 -0
- package/lib/commonjs/crypto/CryptoJS.js.map +1 -0
- package/lib/commonjs/fab/FAB.js +179 -0
- package/lib/commonjs/fab/FAB.js.map +1 -0
- package/lib/commonjs/fab/FAB.styles.js +22 -0
- package/lib/commonjs/fab/FAB.styles.js.map +1 -0
- package/lib/commonjs/fab/FAB.types.js +6 -0
- package/lib/commonjs/fab/FAB.types.js.map +1 -0
- package/lib/commonjs/float-button/FABGroupDragApp.js +149 -0
- package/lib/commonjs/float-button/FABGroupDragApp.js.map +1 -0
- package/lib/commonjs/index.js +339 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/indicators/ball-indicator/index.js +90 -0
- package/lib/commonjs/indicators/ball-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/ball-indicator/styles.js +21 -0
- package/lib/commonjs/indicators/ball-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/bar-indicator/index.js +109 -0
- package/lib/commonjs/indicators/bar-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/bar-indicator/styles.js +16 -0
- package/lib/commonjs/indicators/bar-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/dot-indicator/index.js +71 -0
- package/lib/commonjs/indicators/dot-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/dot-indicator/styles.js +16 -0
- package/lib/commonjs/indicators/dot-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/index.js +77 -0
- package/lib/commonjs/indicators/index.js.map +1 -0
- package/lib/commonjs/indicators/indicator/index.js +203 -0
- package/lib/commonjs/indicators/indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/material-indicator/index.js +136 -0
- package/lib/commonjs/indicators/material-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/material-indicator/styles.js +20 -0
- package/lib/commonjs/indicators/material-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/pacman-indicator/index.js +147 -0
- package/lib/commonjs/indicators/pacman-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/pacman-indicator/styles.js +15 -0
- package/lib/commonjs/indicators/pacman-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/pulse-indicator/index.js +81 -0
- package/lib/commonjs/indicators/pulse-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/pulse-indicator/styles.js +20 -0
- package/lib/commonjs/indicators/pulse-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/skype-indicator/index.js +98 -0
- package/lib/commonjs/indicators/skype-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/skype-indicator/styles.js +20 -0
- package/lib/commonjs/indicators/skype-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/ui-activity-indicator/index.js +87 -0
- package/lib/commonjs/indicators/ui-activity-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/ui-activity-indicator/styles.js +20 -0
- package/lib/commonjs/indicators/ui-activity-indicator/styles.js.map +1 -0
- package/lib/commonjs/indicators/wave-indicator/index.js +93 -0
- package/lib/commonjs/indicators/wave-indicator/index.js.map +1 -0
- package/lib/commonjs/indicators/wave-indicator/styles.js +20 -0
- package/lib/commonjs/indicators/wave-indicator/styles.js.map +1 -0
- package/lib/commonjs/json-tree/ItemRange.js +56 -0
- package/lib/commonjs/json-tree/ItemRange.js.map +1 -0
- package/lib/commonjs/json-tree/JSONArrow.js +42 -0
- package/lib/commonjs/json-tree/JSONArrow.js.map +1 -0
- package/lib/commonjs/json-tree/Nodes.js +387 -0
- package/lib/commonjs/json-tree/Nodes.js.map +1 -0
- package/lib/commonjs/json-tree/createStylingFromTheme.js +147 -0
- package/lib/commonjs/json-tree/createStylingFromTheme.js.map +1 -0
- package/lib/commonjs/json-tree/getCollectionEntries.js +108 -0
- package/lib/commonjs/json-tree/getCollectionEntries.js.map +1 -0
- package/lib/commonjs/json-tree/index.js +119 -0
- package/lib/commonjs/json-tree/index.js.map +1 -0
- package/lib/commonjs/json-tree/objType.js +13 -0
- package/lib/commonjs/json-tree/objType.js.map +1 -0
- package/lib/commonjs/json-tree/themes/solarized.js +27 -0
- package/lib/commonjs/json-tree/themes/solarized.js.map +1 -0
- package/lib/commonjs/logger/FloatButtonLogger.js +155 -0
- package/lib/commonjs/logger/FloatButtonLogger.js.map +1 -0
- package/lib/commonjs/logger/Logger.js +156 -0
- package/lib/commonjs/logger/Logger.js.map +1 -0
- package/lib/commonjs/logger/Mock.js +2206 -0
- package/lib/commonjs/logger/Mock.js.map +1 -0
- package/lib/commonjs/logger/NetworkRequestInfo.js +108 -0
- package/lib/commonjs/logger/NetworkRequestInfo.js.map +1 -0
- package/lib/commonjs/logger/TouchKey.js +88 -0
- package/lib/commonjs/logger/TouchKey.js.map +1 -0
- package/lib/commonjs/logger/XHRInterceptor.js +27 -0
- package/lib/commonjs/logger/XHRInterceptor.js.map +1 -0
- package/lib/commonjs/logger/backHandler.js +47 -0
- package/lib/commonjs/logger/backHandler.js.map +1 -0
- package/lib/commonjs/logger/components/Button.js +41 -0
- package/lib/commonjs/logger/components/Button.js.map +1 -0
- package/lib/commonjs/logger/components/ColorsLog.js +49 -0
- package/lib/commonjs/logger/components/ColorsLog.js.map +1 -0
- package/lib/commonjs/logger/components/Header.js +63 -0
- package/lib/commonjs/logger/components/Header.js.map +1 -0
- package/lib/commonjs/logger/components/NetworkLogger.js +152 -0
- package/lib/commonjs/logger/components/NetworkLogger.js.map +1 -0
- package/lib/commonjs/logger/components/Options.js +100 -0
- package/lib/commonjs/logger/components/Options.js.map +1 -0
- package/lib/commonjs/logger/components/RequestDetails.js +196 -0
- package/lib/commonjs/logger/components/RequestDetails.js.map +1 -0
- package/lib/commonjs/logger/components/RequestList.js +219 -0
- package/lib/commonjs/logger/components/RequestList.js.map +1 -0
- package/lib/commonjs/logger/components/ResultItem.js +435 -0
- package/lib/commonjs/logger/components/ResultItem.js.map +1 -0
- package/lib/commonjs/logger/components/SearchBar.js +86 -0
- package/lib/commonjs/logger/components/SearchBar.js.map +1 -0
- package/lib/commonjs/logger/components/Unmounted.js +50 -0
- package/lib/commonjs/logger/components/Unmounted.js.map +1 -0
- package/lib/commonjs/logger/components/images/ic_copy.png +0 -0
- package/lib/commonjs/logger/components/images/ic_down.png +0 -0
- package/lib/commonjs/logger/components/images/ic_left.png +0 -0
- package/lib/commonjs/logger/components/images/ic_send.png +0 -0
- package/lib/commonjs/logger/components/images/more.png +0 -0
- package/lib/commonjs/logger/components/images/search.png +0 -0
- package/lib/commonjs/logger/components/images/share.png +0 -0
- package/lib/commonjs/logger/libs.js +25 -0
- package/lib/commonjs/logger/libs.js.map +1 -0
- package/lib/commonjs/logger/loggerSingleton.js +11 -0
- package/lib/commonjs/logger/loggerSingleton.js.map +1 -0
- package/lib/commonjs/logger/theme.js +57 -0
- package/lib/commonjs/logger/theme.js.map +1 -0
- package/lib/commonjs/logger/types.js +6 -0
- package/lib/commonjs/logger/types.js.map +1 -0
- package/lib/commonjs/logger/utils/createHar.js +78 -0
- package/lib/commonjs/logger/utils/createHar.js.map +1 -0
- package/lib/commonjs/logger/utils/extractHost.js +12 -0
- package/lib/commonjs/logger/utils/extractHost.js.map +1 -0
- package/lib/commonjs/logger/utils/fromEntries.js +12 -0
- package/lib/commonjs/logger/utils/fromEntries.js.map +1 -0
- package/lib/commonjs/logger/utils/logger.js +9 -0
- package/lib/commonjs/logger/utils/logger.js.map +1 -0
- package/lib/commonjs/navigation/NavigationApp.js +165 -0
- package/lib/commonjs/navigation/NavigationApp.js.map +1 -0
- package/lib/commonjs/navigation/NavigatorStack.js +226 -0
- package/lib/commonjs/navigation/NavigatorStack.js.map +1 -0
- package/lib/commonjs/navigation/header/HeaderView.js +24 -0
- package/lib/commonjs/navigation/header/HeaderView.js.map +1 -0
- package/lib/commonjs/navigation/index.js +21 -0
- package/lib/commonjs/navigation/index.js.map +1 -0
- package/lib/commonjs/navigation/leftMenu/LeftMenuApp.js +99 -0
- package/lib/commonjs/navigation/leftMenu/LeftMenuApp.js.map +1 -0
- package/lib/commonjs/navigation/navigator/Navigator.js +24 -0
- package/lib/commonjs/navigation/navigator/Navigator.js.map +1 -0
- package/lib/commonjs/navigation/rightMenu/RightMenuApp.js +97 -0
- package/lib/commonjs/navigation/rightMenu/RightMenuApp.js.map +1 -0
- package/lib/commonjs/navigation/stack/ModalSecondStack.js +105 -0
- package/lib/commonjs/navigation/stack/ModalSecondStack.js.map +1 -0
- package/lib/commonjs/navigation/stack/ModalStack.js +246 -0
- package/lib/commonjs/navigation/stack/ModalStack.js.map +1 -0
- package/lib/commonjs/navigation/stack/ToastAnimationView.js +50 -0
- package/lib/commonjs/navigation/stack/ToastAnimationView.js.map +1 -0
- package/lib/commonjs/navigation/stack/ToastStack.js +162 -0
- package/lib/commonjs/navigation/stack/ToastStack.js.map +1 -0
- package/lib/commonjs/navigation/tab/RouterAppCustomer.js +71 -0
- package/lib/commonjs/navigation/tab/RouterAppCustomer.js.map +1 -0
- package/lib/commonjs/navigation/tab/StackAppCustomer.js +58 -0
- package/lib/commonjs/navigation/tab/StackAppCustomer.js.map +1 -0
- package/lib/commonjs/navigation/tabBar/RouterApp.js +112 -0
- package/lib/commonjs/navigation/tabBar/RouterApp.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/skeleton/SkeletonApp.js +107 -0
- package/lib/commonjs/skeleton/SkeletonApp.js.map +1 -0
- package/lib/commonjs/tooltip/Helper.js +75 -0
- package/lib/commonjs/tooltip/Helper.js.map +1 -0
- package/lib/commonjs/tooltip/TooltipApp.js +1234 -0
- package/lib/commonjs/tooltip/TooltipApp.js.map +1 -0
- package/lib/commonjs/top-tab/TabBarApp.js +96 -0
- package/lib/commonjs/top-tab/TabBarApp.js.map +1 -0
- package/lib/commonjs/top-tab/TabScrollApp.js +91 -0
- package/lib/commonjs/top-tab/TabScrollApp.js.map +1 -0
- package/lib/commonjs/utils/CommonUtils.js +22 -0
- package/lib/commonjs/utils/CommonUtils.js.map +1 -0
- package/lib/module/assets/icons/IconApp.js +15 -0
- package/lib/module/assets/icons/IconApp.js.map +1 -0
- package/lib/module/assets/icons/ic_close.png +0 -0
- package/lib/module/assets/icons/ic_exit.png +0 -0
- package/lib/module/assets/icons/ic_rate_empty.png +0 -0
- package/lib/module/assets/icons/ic_rate_full.png +0 -0
- package/lib/module/assets/icons/ic_rate_half.png +0 -0
- package/lib/module/assets/icons/ic_toast_error.png +0 -0
- package/lib/module/assets/icons/ic_toast_info.png +0 -0
- package/lib/module/assets/icons/ic_toast_success.png +0 -0
- package/lib/module/assets/icons/ic_toast_warning.png +0 -0
- package/lib/module/carousel/carousel/Carousel.js +1304 -0
- package/lib/module/carousel/carousel/Carousel.js.map +1 -0
- package/lib/module/carousel/pagination/Pagination.js +146 -0
- package/lib/module/carousel/pagination/Pagination.js.map +1 -0
- package/lib/module/carousel/pagination/Pagination.style.js +25 -0
- package/lib/module/carousel/pagination/Pagination.style.js.map +1 -0
- package/lib/module/carousel/pagination/PaginationDot.js +143 -0
- package/lib/module/carousel/pagination/PaginationDot.js.map +1 -0
- package/lib/module/carousel/parallaximage/ParallaxImage.js +218 -0
- package/lib/module/carousel/parallaximage/ParallaxImage.js.map +1 -0
- package/lib/module/carousel/parallaximage/ParallaxImage.style.js +22 -0
- package/lib/module/carousel/parallaximage/ParallaxImage.style.js.map +1 -0
- package/lib/module/carousel/shallow-compare.js +34 -0
- package/lib/module/carousel/shallow-compare.js.map +1 -0
- package/lib/module/carousel/utils/animations.js +262 -0
- package/lib/module/carousel/utils/animations.js.map +1 -0
- package/lib/module/cores/ButtonApp.js +59 -0
- package/lib/module/cores/ButtonApp.js.map +1 -0
- package/lib/module/cores/CheckVersionApp.js +123 -0
- package/lib/module/cores/CheckVersionApp.js.map +1 -0
- package/lib/module/cores/DeviceUtils.js +14 -0
- package/lib/module/cores/DeviceUtils.js.map +1 -0
- package/lib/module/cores/ImageApp.js +32 -0
- package/lib/module/cores/ImageApp.js.map +1 -0
- package/lib/module/cores/ImageFastApp.js +25 -0
- package/lib/module/cores/ImageFastApp.js.map +1 -0
- package/lib/module/cores/InputApp.js +140 -0
- package/lib/module/cores/InputApp.js.map +1 -0
- package/lib/module/cores/InputMultiApp.js +22 -0
- package/lib/module/cores/InputMultiApp.js.map +1 -0
- package/lib/module/cores/LoadingApp.js +43 -0
- package/lib/module/cores/LoadingApp.js.map +1 -0
- package/lib/module/cores/LogUtils.js +131 -0
- package/lib/module/cores/LogUtils.js.map +1 -0
- package/lib/module/cores/RatingApp.js +60 -0
- package/lib/module/cores/RatingApp.js.map +1 -0
- package/lib/module/cores/SliderApp.js +151 -0
- package/lib/module/cores/SliderApp.js.map +1 -0
- package/lib/module/cores/StoresProviderApp.js +58 -0
- package/lib/module/cores/StoresProviderApp.js.map +1 -0
- package/lib/module/cores/TextApp.js +34 -0
- package/lib/module/cores/TextApp.js.map +1 -0
- package/lib/module/cores/Utils.js +642 -0
- package/lib/module/cores/Utils.js.map +1 -0
- package/lib/module/cores/ViewApp.js +27 -0
- package/lib/module/cores/ViewApp.js.map +1 -0
- package/lib/module/crypto/CryptoCore.js +36 -0
- package/lib/module/crypto/CryptoCore.js.map +1 -0
- package/lib/module/crypto/CryptoJS.js +662 -0
- package/lib/module/crypto/CryptoJS.js.map +1 -0
- package/lib/module/fab/FAB.js +172 -0
- package/lib/module/fab/FAB.js.map +1 -0
- package/lib/module/fab/FAB.styles.js +16 -0
- package/lib/module/fab/FAB.styles.js.map +1 -0
- package/lib/module/fab/FAB.types.js +4 -0
- package/lib/module/fab/FAB.types.js.map +1 -0
- package/lib/module/float-button/FABGroupDragApp.js +143 -0
- package/lib/module/float-button/FABGroupDragApp.js.map +1 -0
- package/lib/module/index.js +63 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/indicators/ball-indicator/index.js +83 -0
- package/lib/module/indicators/ball-indicator/index.js.map +1 -0
- package/lib/module/indicators/ball-indicator/styles.js +17 -0
- package/lib/module/indicators/ball-indicator/styles.js.map +1 -0
- package/lib/module/indicators/bar-indicator/index.js +102 -0
- package/lib/module/indicators/bar-indicator/index.js.map +1 -0
- package/lib/module/indicators/bar-indicator/styles.js +12 -0
- package/lib/module/indicators/bar-indicator/styles.js.map +1 -0
- package/lib/module/indicators/dot-indicator/index.js +64 -0
- package/lib/module/indicators/dot-indicator/index.js.map +1 -0
- package/lib/module/indicators/dot-indicator/styles.js +12 -0
- package/lib/module/indicators/dot-indicator/styles.js.map +1 -0
- package/lib/module/indicators/index.js +14 -0
- package/lib/module/indicators/index.js.map +1 -0
- package/lib/module/indicators/indicator/index.js +196 -0
- package/lib/module/indicators/indicator/index.js.map +1 -0
- package/lib/module/indicators/material-indicator/index.js +129 -0
- package/lib/module/indicators/material-indicator/index.js.map +1 -0
- package/lib/module/indicators/material-indicator/styles.js +16 -0
- package/lib/module/indicators/material-indicator/styles.js.map +1 -0
- package/lib/module/indicators/pacman-indicator/index.js +140 -0
- package/lib/module/indicators/pacman-indicator/index.js.map +1 -0
- package/lib/module/indicators/pacman-indicator/styles.js +11 -0
- package/lib/module/indicators/pacman-indicator/styles.js.map +1 -0
- package/lib/module/indicators/pulse-indicator/index.js +74 -0
- package/lib/module/indicators/pulse-indicator/index.js.map +1 -0
- package/lib/module/indicators/pulse-indicator/styles.js +16 -0
- package/lib/module/indicators/pulse-indicator/styles.js.map +1 -0
- package/lib/module/indicators/skype-indicator/index.js +91 -0
- package/lib/module/indicators/skype-indicator/index.js.map +1 -0
- package/lib/module/indicators/skype-indicator/styles.js +16 -0
- package/lib/module/indicators/skype-indicator/styles.js.map +1 -0
- package/lib/module/indicators/ui-activity-indicator/index.js +80 -0
- package/lib/module/indicators/ui-activity-indicator/index.js.map +1 -0
- package/lib/module/indicators/ui-activity-indicator/styles.js +16 -0
- package/lib/module/indicators/ui-activity-indicator/styles.js.map +1 -0
- package/lib/module/indicators/wave-indicator/index.js +86 -0
- package/lib/module/indicators/wave-indicator/index.js.map +1 -0
- package/lib/module/indicators/wave-indicator/styles.js +16 -0
- package/lib/module/indicators/wave-indicator/styles.js.map +1 -0
- package/lib/module/json-tree/ItemRange.js +49 -0
- package/lib/module/json-tree/ItemRange.js.map +1 -0
- package/lib/module/json-tree/JSONArrow.js +37 -0
- package/lib/module/json-tree/JSONArrow.js.map +1 -0
- package/lib/module/json-tree/Nodes.js +375 -0
- package/lib/module/json-tree/Nodes.js.map +1 -0
- package/lib/module/json-tree/createStylingFromTheme.js +142 -0
- package/lib/module/json-tree/createStylingFromTheme.js.map +1 -0
- package/lib/module/json-tree/getCollectionEntries.js +104 -0
- package/lib/module/json-tree/getCollectionEntries.js.map +1 -0
- package/lib/module/json-tree/index.js +114 -0
- package/lib/module/json-tree/index.js.map +1 -0
- package/lib/module/json-tree/objType.js +9 -0
- package/lib/module/json-tree/objType.js.map +1 -0
- package/lib/module/json-tree/themes/solarized.js +23 -0
- package/lib/module/json-tree/themes/solarized.js.map +1 -0
- package/lib/module/logger/FloatButtonLogger.js +145 -0
- package/lib/module/logger/FloatButtonLogger.js.map +1 -0
- package/lib/module/logger/Logger.js +150 -0
- package/lib/module/logger/Logger.js.map +1 -0
- package/lib/module/logger/Mock.js +2206 -0
- package/lib/module/logger/Mock.js.map +1 -0
- package/lib/module/logger/NetworkRequestInfo.js +103 -0
- package/lib/module/logger/NetworkRequestInfo.js.map +1 -0
- package/lib/module/logger/TouchKey.js +82 -0
- package/lib/module/logger/TouchKey.js.map +1 -0
- package/lib/module/logger/XHRInterceptor.js +23 -0
- package/lib/module/logger/XHRInterceptor.js.map +1 -0
- package/lib/module/logger/backHandler.js +40 -0
- package/lib/module/logger/backHandler.js.map +1 -0
- package/lib/module/logger/components/Button.js +36 -0
- package/lib/module/logger/components/Button.js.map +1 -0
- package/lib/module/logger/components/ColorsLog.js +45 -0
- package/lib/module/logger/components/ColorsLog.js.map +1 -0
- package/lib/module/logger/components/Header.js +58 -0
- package/lib/module/logger/components/Header.js.map +1 -0
- package/lib/module/logger/components/NetworkLogger.js +146 -0
- package/lib/module/logger/components/NetworkLogger.js.map +1 -0
- package/lib/module/logger/components/Options.js +94 -0
- package/lib/module/logger/components/Options.js.map +1 -0
- package/lib/module/logger/components/RequestDetails.js +190 -0
- package/lib/module/logger/components/RequestDetails.js.map +1 -0
- package/lib/module/logger/components/RequestList.js +212 -0
- package/lib/module/logger/components/RequestList.js.map +1 -0
- package/lib/module/logger/components/ResultItem.js +428 -0
- package/lib/module/logger/components/ResultItem.js.map +1 -0
- package/lib/module/logger/components/SearchBar.js +81 -0
- package/lib/module/logger/components/SearchBar.js.map +1 -0
- package/lib/module/logger/components/Unmounted.js +45 -0
- package/lib/module/logger/components/Unmounted.js.map +1 -0
- package/lib/module/logger/components/images/ic_copy.png +0 -0
- package/lib/module/logger/components/images/ic_down.png +0 -0
- package/lib/module/logger/components/images/ic_left.png +0 -0
- package/lib/module/logger/components/images/ic_send.png +0 -0
- package/lib/module/logger/components/images/more.png +0 -0
- package/lib/module/logger/components/images/search.png +0 -0
- package/lib/module/logger/components/images/share.png +0 -0
- package/lib/module/logger/libs.js +19 -0
- package/lib/module/logger/libs.js.map +1 -0
- package/lib/module/logger/loggerSingleton.js +6 -0
- package/lib/module/logger/loggerSingleton.js.map +1 -0
- package/lib/module/logger/theme.js +50 -0
- package/lib/module/logger/theme.js.map +1 -0
- package/lib/module/logger/types.js +4 -0
- package/lib/module/logger/types.js.map +1 -0
- package/lib/module/logger/utils/createHar.js +74 -0
- package/lib/module/logger/utils/createHar.js.map +1 -0
- package/lib/module/logger/utils/extractHost.js +8 -0
- package/lib/module/logger/utils/extractHost.js.map +1 -0
- package/lib/module/logger/utils/fromEntries.js +8 -0
- package/lib/module/logger/utils/fromEntries.js.map +1 -0
- package/lib/module/logger/utils/logger.js +4 -0
- package/lib/module/logger/utils/logger.js.map +1 -0
- package/lib/module/navigation/NavigationApp.js +161 -0
- package/lib/module/navigation/NavigationApp.js.map +1 -0
- package/lib/module/navigation/NavigatorStack.js +219 -0
- package/lib/module/navigation/NavigatorStack.js.map +1 -0
- package/lib/module/navigation/header/HeaderView.js +19 -0
- package/lib/module/navigation/header/HeaderView.js.map +1 -0
- package/lib/module/navigation/index.js +6 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/leftMenu/LeftMenuApp.js +93 -0
- package/lib/module/navigation/leftMenu/LeftMenuApp.js.map +1 -0
- package/lib/module/navigation/navigator/Navigator.js +19 -0
- package/lib/module/navigation/navigator/Navigator.js.map +1 -0
- package/lib/module/navigation/rightMenu/RightMenuApp.js +91 -0
- package/lib/module/navigation/rightMenu/RightMenuApp.js.map +1 -0
- package/lib/module/navigation/stack/ModalSecondStack.js +99 -0
- package/lib/module/navigation/stack/ModalSecondStack.js.map +1 -0
- package/lib/module/navigation/stack/ModalStack.js +245 -0
- package/lib/module/navigation/stack/ModalStack.js.map +1 -0
- package/lib/module/navigation/stack/ToastAnimationView.js +45 -0
- package/lib/module/navigation/stack/ToastAnimationView.js.map +1 -0
- package/lib/module/navigation/stack/ToastStack.js +156 -0
- package/lib/module/navigation/stack/ToastStack.js.map +1 -0
- package/lib/module/navigation/tab/RouterAppCustomer.js +65 -0
- package/lib/module/navigation/tab/RouterAppCustomer.js.map +1 -0
- package/lib/module/navigation/tab/StackAppCustomer.js +52 -0
- package/lib/module/navigation/tab/StackAppCustomer.js.map +1 -0
- package/lib/module/navigation/tabBar/RouterApp.js +107 -0
- package/lib/module/navigation/tabBar/RouterApp.js.map +1 -0
- package/lib/module/skeleton/SkeletonApp.js +101 -0
- package/lib/module/skeleton/SkeletonApp.js.map +1 -0
- package/lib/module/tooltip/Helper.js +60 -0
- package/lib/module/tooltip/Helper.js.map +1 -0
- package/lib/module/tooltip/TooltipApp.js +1229 -0
- package/lib/module/tooltip/TooltipApp.js.map +1 -0
- package/lib/module/top-tab/TabBarApp.js +91 -0
- package/lib/module/top-tab/TabBarApp.js.map +1 -0
- package/lib/module/top-tab/TabScrollApp.js +85 -0
- package/lib/module/top-tab/TabScrollApp.js.map +1 -0
- package/lib/module/utils/CommonUtils.js +16 -0
- package/lib/module/utils/CommonUtils.js.map +1 -0
- package/lib/typescript/assets/icons/IconApp.d.ts.map +1 -0
- package/lib/typescript/carousel/shallow-compare.d.ts.map +1 -0
- package/lib/typescript/cores/ButtonApp.d.ts.map +1 -0
- package/lib/typescript/cores/CheckVersionApp.d.ts +13 -0
- package/lib/typescript/cores/CheckVersionApp.d.ts.map +1 -0
- package/lib/typescript/cores/DeviceUtils.d.ts +4 -0
- package/lib/typescript/cores/DeviceUtils.d.ts.map +1 -0
- package/lib/typescript/cores/ImageApp.d.ts.map +1 -0
- package/lib/typescript/cores/ImageFastApp.d.ts.map +1 -0
- package/lib/typescript/cores/InputApp.d.ts.map +1 -0
- package/lib/typescript/cores/InputMultiApp.d.ts.map +1 -0
- package/lib/typescript/cores/LoadingApp.d.ts.map +1 -0
- package/lib/typescript/cores/LogUtils.d.ts.map +1 -0
- package/{src → lib}/typescript/cores/RatingApp.d.ts +1 -1
- package/lib/typescript/cores/RatingApp.d.ts.map +1 -0
- package/lib/typescript/cores/SliderApp.d.ts.map +1 -0
- package/{src → lib}/typescript/cores/StoresProviderApp.d.ts +1 -1
- package/lib/typescript/cores/StoresProviderApp.d.ts.map +1 -0
- package/lib/typescript/cores/TextApp.d.ts.map +1 -0
- package/{src → lib}/typescript/cores/Utils.d.ts +4 -1
- package/lib/typescript/cores/Utils.d.ts.map +1 -0
- package/lib/typescript/cores/ViewApp.d.ts.map +1 -0
- package/lib/typescript/crypto/CryptoCore.d.ts +7 -0
- package/lib/typescript/crypto/CryptoCore.d.ts.map +1 -0
- package/lib/typescript/fab/FAB.d.ts.map +1 -0
- package/lib/typescript/fab/FAB.styles.d.ts.map +1 -0
- package/{src → lib}/typescript/fab/FAB.types.d.ts +1 -1
- package/lib/typescript/fab/FAB.types.d.ts.map +1 -0
- package/lib/typescript/float-button/FABGroupDragApp.d.ts +4 -0
- package/lib/typescript/float-button/FABGroupDragApp.d.ts.map +1 -0
- package/{src → lib}/typescript/index.d.ts +15 -1
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/indicators/ball-indicator/index.d.ts +24 -0
- package/lib/typescript/indicators/ball-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/ball-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/bar-indicator/index.d.ts +25 -0
- package/lib/typescript/indicators/bar-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/bar-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/dot-indicator/index.d.ts +25 -0
- package/lib/typescript/indicators/dot-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/dot-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/index.d.ts.map +1 -0
- package/{src → lib}/typescript/indicators/indicator/index.d.ts +8 -9
- package/lib/typescript/indicators/indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/material-indicator/index.d.ts +24 -0
- package/lib/typescript/indicators/material-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/material-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/pacman-indicator/index.d.ts +25 -0
- package/lib/typescript/indicators/pacman-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/pacman-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/pulse-indicator/index.d.ts +24 -0
- package/lib/typescript/indicators/pulse-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/pulse-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/skype-indicator/index.d.ts +29 -0
- package/lib/typescript/indicators/skype-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/skype-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/ui-activity-indicator/index.d.ts +24 -0
- package/lib/typescript/indicators/ui-activity-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/ui-activity-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/indicators/wave-indicator/index.d.ts +30 -0
- package/lib/typescript/indicators/wave-indicator/index.d.ts.map +1 -0
- package/lib/typescript/indicators/wave-indicator/styles.d.ts.map +1 -0
- package/lib/typescript/json-tree/ItemRange.d.ts +16 -0
- package/lib/typescript/json-tree/ItemRange.d.ts.map +1 -0
- package/lib/typescript/json-tree/JSONArrow.d.ts +16 -0
- package/lib/typescript/json-tree/JSONArrow.d.ts.map +1 -0
- package/lib/typescript/json-tree/Nodes.d.ts +52 -0
- package/lib/typescript/json-tree/Nodes.d.ts.map +1 -0
- package/lib/typescript/json-tree/createStylingFromTheme.d.ts +3 -0
- package/lib/typescript/json-tree/createStylingFromTheme.d.ts.map +1 -0
- package/lib/typescript/json-tree/getCollectionEntries.d.ts +2 -0
- package/lib/typescript/json-tree/getCollectionEntries.d.ts.map +1 -0
- package/lib/typescript/json-tree/index.d.ts +24 -0
- package/lib/typescript/json-tree/index.d.ts.map +1 -0
- package/lib/typescript/json-tree/objType.d.ts +2 -0
- package/lib/typescript/json-tree/objType.d.ts.map +1 -0
- package/lib/typescript/json-tree/themes/solarized.d.ts +22 -0
- package/lib/typescript/json-tree/themes/solarized.d.ts.map +1 -0
- package/lib/typescript/logger/FloatButtonLogger.d.ts +9 -0
- package/lib/typescript/logger/FloatButtonLogger.d.ts.map +1 -0
- package/lib/typescript/logger/Logger.d.ts +43 -0
- package/lib/typescript/logger/Logger.d.ts.map +1 -0
- package/lib/typescript/logger/Mock.d.ts +2 -0
- package/lib/typescript/logger/Mock.d.ts.map +1 -0
- package/lib/typescript/logger/NetworkRequestInfo.d.ts +35 -0
- package/lib/typescript/logger/NetworkRequestInfo.d.ts.map +1 -0
- package/lib/typescript/logger/TouchKey.d.ts +4 -0
- package/lib/typescript/logger/TouchKey.d.ts.map +1 -0
- package/lib/typescript/logger/XHRInterceptor.d.ts +13 -0
- package/lib/typescript/logger/XHRInterceptor.d.ts.map +1 -0
- package/lib/typescript/logger/backHandler.d.ts +22 -0
- package/lib/typescript/logger/backHandler.d.ts.map +1 -0
- package/lib/typescript/logger/components/Button.d.ts +11 -0
- package/lib/typescript/logger/components/Button.d.ts.map +1 -0
- package/lib/typescript/logger/components/ColorsLog.d.ts +43 -0
- package/lib/typescript/logger/components/ColorsLog.d.ts.map +1 -0
- package/lib/typescript/logger/components/Header.d.ts +8 -0
- package/lib/typescript/logger/components/Header.d.ts.map +1 -0
- package/lib/typescript/logger/components/NetworkLogger.d.ts +11 -0
- package/lib/typescript/logger/components/NetworkLogger.d.ts.map +1 -0
- package/lib/typescript/logger/components/Options.d.ts +10 -0
- package/lib/typescript/logger/components/Options.d.ts.map +1 -0
- package/lib/typescript/logger/components/RequestDetails.d.ts +9 -0
- package/lib/typescript/logger/components/RequestDetails.d.ts.map +1 -0
- package/lib/typescript/logger/components/RequestList.d.ts +27 -0
- package/lib/typescript/logger/components/RequestList.d.ts.map +1 -0
- package/lib/typescript/logger/components/ResultItem.d.ts +13 -0
- package/lib/typescript/logger/components/ResultItem.d.ts.map +1 -0
- package/lib/typescript/logger/components/SearchBar.d.ts +12 -0
- package/lib/typescript/logger/components/SearchBar.d.ts.map +1 -0
- package/lib/typescript/logger/components/Unmounted.d.ts +4 -0
- package/lib/typescript/logger/components/Unmounted.d.ts.map +1 -0
- package/lib/typescript/logger/libs.d.ts +5 -0
- package/lib/typescript/logger/libs.d.ts.map +1 -0
- package/lib/typescript/logger/loggerSingleton.d.ts +4 -0
- package/lib/typescript/logger/loggerSingleton.d.ts.map +1 -0
- package/lib/typescript/logger/theme.d.ts +21 -0
- package/lib/typescript/logger/theme.d.ts.map +1 -0
- package/lib/typescript/logger/types.d.ts +32 -0
- package/lib/typescript/logger/types.d.ts.map +1 -0
- package/lib/typescript/logger/utils/createHar.d.ts +61 -0
- package/lib/typescript/logger/utils/createHar.d.ts.map +1 -0
- package/lib/typescript/logger/utils/extractHost.d.ts +3 -0
- package/lib/typescript/logger/utils/extractHost.d.ts.map +1 -0
- package/lib/typescript/logger/utils/fromEntries.d.ts +3 -0
- package/lib/typescript/logger/utils/fromEntries.d.ts.map +1 -0
- package/lib/typescript/logger/utils/logger.d.ts +2 -0
- package/lib/typescript/logger/utils/logger.d.ts.map +1 -0
- package/lib/typescript/navigation/NavigationApp.d.ts.map +1 -0
- package/lib/typescript/navigation/NavigatorStack.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/header/HeaderView.d.ts +1 -1
- package/lib/typescript/navigation/header/HeaderView.d.ts.map +1 -0
- package/lib/typescript/navigation/index.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/leftMenu/LeftMenuApp.d.ts +1 -1
- package/lib/typescript/navigation/leftMenu/LeftMenuApp.d.ts.map +1 -0
- package/lib/typescript/navigation/navigator/Navigator.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/rightMenu/RightMenuApp.d.ts +1 -1
- package/lib/typescript/navigation/rightMenu/RightMenuApp.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/stack/ModalSecondStack.d.ts +4 -4
- package/lib/typescript/navigation/stack/ModalSecondStack.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/stack/ModalStack.d.ts +1 -1
- package/lib/typescript/navigation/stack/ModalStack.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/stack/ToastAnimationView.d.ts +1 -1
- package/lib/typescript/navigation/stack/ToastAnimationView.d.ts.map +1 -0
- package/lib/typescript/navigation/stack/ToastStack.d.ts.map +1 -0
- package/lib/typescript/navigation/tab/RouterAppCustomer.d.ts.map +1 -0
- package/lib/typescript/navigation/tab/StackAppCustomer.d.ts.map +1 -0
- package/{src → lib}/typescript/navigation/tabBar/RouterApp.d.ts +4 -3
- package/lib/typescript/navigation/tabBar/RouterApp.d.ts.map +1 -0
- package/lib/typescript/skeleton/SkeletonApp.d.ts.map +1 -0
- package/lib/typescript/top-tab/TabBarApp.d.ts.map +1 -0
- package/lib/typescript/top-tab/TabScrollApp.d.ts.map +1 -0
- package/lib/typescript/utils/CommonUtils.d.ts.map +1 -0
- package/package.json +24 -6
- package/src/module/assets/icons/IconApp.js +0 -1
- package/src/module/carousel/carousel/Carousel.js +0 -1
- package/src/module/carousel/pagination/Pagination.js +0 -1
- package/src/module/carousel/pagination/Pagination.style.js +0 -1
- package/src/module/carousel/pagination/PaginationDot.js +0 -1
- package/src/module/carousel/parallaximage/ParallaxImage.js +0 -1
- package/src/module/carousel/parallaximage/ParallaxImage.style.js +0 -1
- package/src/module/carousel/shallow-compare.js +0 -1
- package/src/module/carousel/utils/animations.js +0 -1
- package/src/module/cores/ButtonApp.js +0 -1
- package/src/module/cores/DeviceUtils.js +0 -1
- package/src/module/cores/ImageApp.js +0 -1
- package/src/module/cores/ImageFastApp.js +0 -1
- package/src/module/cores/InputApp.js +0 -1
- package/src/module/cores/InputMultiApp.js +0 -1
- package/src/module/cores/LoadingApp.js +0 -1
- package/src/module/cores/LogUtils.js +0 -1
- package/src/module/cores/RatingApp.js +0 -1
- package/src/module/cores/SliderApp.js +0 -1
- package/src/module/cores/StoresProviderApp.js +0 -1
- package/src/module/cores/TextApp.js +0 -1
- package/src/module/cores/Utils.js +0 -1
- package/src/module/cores/ViewApp.js +0 -1
- package/src/module/fab/FAB.js +0 -1
- package/src/module/fab/FAB.styles.js +0 -1
- package/src/module/fab/FAB.types.js +0 -1
- package/src/module/float-button/FABGroupDragApp.js +0 -1
- package/src/module/index.js +0 -1
- package/src/module/indicators/ball-indicator/index.js +0 -1
- package/src/module/indicators/ball-indicator/styles.js +0 -1
- package/src/module/indicators/bar-indicator/index.js +0 -1
- package/src/module/indicators/bar-indicator/styles.js +0 -1
- package/src/module/indicators/dot-indicator/index.js +0 -1
- package/src/module/indicators/dot-indicator/styles.js +0 -1
- package/src/module/indicators/index.js +0 -1
- package/src/module/indicators/indicator/index.js +0 -1
- package/src/module/indicators/material-indicator/index.js +0 -1
- package/src/module/indicators/material-indicator/styles.js +0 -1
- package/src/module/indicators/pacman-indicator/index.js +0 -1
- package/src/module/indicators/pacman-indicator/styles.js +0 -1
- package/src/module/indicators/pulse-indicator/index.js +0 -1
- package/src/module/indicators/pulse-indicator/styles.js +0 -1
- package/src/module/indicators/skype-indicator/index.js +0 -1
- package/src/module/indicators/skype-indicator/styles.js +0 -1
- package/src/module/indicators/ui-activity-indicator/index.js +0 -1
- package/src/module/indicators/ui-activity-indicator/styles.js +0 -1
- package/src/module/indicators/wave-indicator/index.js +0 -1
- package/src/module/indicators/wave-indicator/styles.js +0 -1
- package/src/module/navigation/NavigationApp.js +0 -1
- package/src/module/navigation/NavigatorStack.js +0 -1
- package/src/module/navigation/header/HeaderView.js +0 -1
- package/src/module/navigation/index.js +0 -1
- package/src/module/navigation/leftMenu/LeftMenuApp.js +0 -1
- package/src/module/navigation/navigator/Navigator.js +0 -1
- package/src/module/navigation/rightMenu/RightMenuApp.js +0 -1
- package/src/module/navigation/stack/ModalSecondStack.js +0 -1
- package/src/module/navigation/stack/ModalStack.js +0 -1
- package/src/module/navigation/stack/ToastAnimationView.js +0 -1
- package/src/module/navigation/stack/ToastStack.js +0 -1
- package/src/module/navigation/tab/RouterAppCustomer.js +0 -1
- package/src/module/navigation/tab/StackAppCustomer.js +0 -1
- package/src/module/navigation/tabBar/RouterApp.js +0 -1
- package/src/module/skeleton/SkeletonApp.js +0 -1
- package/src/module/tooltip/Helper.js +0 -1
- package/src/module/tooltip/TooltipApp.js +0 -1
- package/src/module/top-tab/TabBarApp.js +0 -1
- package/src/module/top-tab/TabScrollApp.js +0 -1
- package/src/module/utils/CommonUtils.js +0 -1
- package/src/typescript/cores/DeviceUtils.d.ts +0 -4
- package/src/typescript/float-button/FABGroupDragApp.d.ts +0 -4
- package/src/typescript/indicators/ball-indicator/index.d.ts +0 -25
- package/src/typescript/indicators/bar-indicator/index.d.ts +0 -26
- package/src/typescript/indicators/dot-indicator/index.d.ts +0 -26
- package/src/typescript/indicators/material-indicator/index.d.ts +0 -25
- package/src/typescript/indicators/pacman-indicator/index.d.ts +0 -26
- package/src/typescript/indicators/pulse-indicator/index.d.ts +0 -25
- package/src/typescript/indicators/skype-indicator/index.d.ts +0 -30
- package/src/typescript/indicators/ui-activity-indicator/index.d.ts +0 -25
- package/src/typescript/indicators/wave-indicator/index.d.ts +0 -31
- /package/{src/module → lib/commonjs}/assets/icons/ic_close.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_exit.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_rate_empty.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_rate_full.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_rate_half.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_toast_error.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_toast_info.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_toast_success.png +0 -0
- /package/{src/module → lib/commonjs}/assets/icons/ic_toast_warning.png +0 -0
- /package/{src → lib}/typescript/assets/icons/IconApp.d.ts +0 -0
- /package/{src → lib}/typescript/carousel/shallow-compare.d.ts +0 -0
- /package/{src → lib}/typescript/cores/ButtonApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/ImageApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/ImageFastApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/InputApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/InputMultiApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/LoadingApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/LogUtils.d.ts +0 -0
- /package/{src → lib}/typescript/cores/SliderApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/TextApp.d.ts +0 -0
- /package/{src → lib}/typescript/cores/ViewApp.d.ts +0 -0
- /package/{src → lib}/typescript/fab/FAB.d.ts +0 -0
- /package/{src → lib}/typescript/fab/FAB.styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/ball-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/bar-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/dot-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/index.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/material-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/pacman-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/pulse-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/skype-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/ui-activity-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/indicators/wave-indicator/styles.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/NavigationApp.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/NavigatorStack.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/index.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/navigator/Navigator.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/stack/ToastStack.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/tab/RouterAppCustomer.d.ts +0 -0
- /package/{src → lib}/typescript/navigation/tab/StackAppCustomer.d.ts +0 -0
- /package/{src → lib}/typescript/skeleton/SkeletonApp.d.ts +0 -0
- /package/{src → lib}/typescript/top-tab/TabBarApp.d.ts +0 -0
- /package/{src → lib}/typescript/top-tab/TabScrollApp.d.ts +0 -0
- /package/{src → lib}/typescript/utils/CommonUtils.d.ts +0 -0
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable prefer-rest-params */
|
|
4
|
+
/* eslint-disable prefer-spread */
|
|
5
|
+
/* eslint-disable indent */
|
|
6
|
+
/* eslint-disable no-param-reassign */
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import { Platform, Dimensions, Animated, TouchableWithoutFeedback, View, Modal, Keyboard, Easing, I18nManager, SafeAreaView, StyleSheet, StatusBar, Text, TouchableOpacity } from 'react-native';
|
|
11
|
+
import { Rect, Point, Size, isRect, isPoint, rectChanged, pointChanged, waitForNewRect, runAfterChange, getRectForRef } from './Helper';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const DEFAULT_ARROW_SIZE = new Size(16, 8);
|
|
14
|
+
const DEFAULT_BORDER_RADIUS = 8;
|
|
15
|
+
const isIOS = Platform.OS === 'ios';
|
|
16
|
+
const FIX_SHIFT = Dimensions.get('window').height * 2;
|
|
17
|
+
const DEBUG = false;
|
|
18
|
+
const PLACEMENT_OPTIONS = Object.freeze({
|
|
19
|
+
TOP: 'top',
|
|
20
|
+
RIGHT: 'right',
|
|
21
|
+
BOTTOM: 'bottom',
|
|
22
|
+
LEFT: 'left',
|
|
23
|
+
AUTO: 'auto'
|
|
24
|
+
});
|
|
25
|
+
const POPOVER_MODE = Object.freeze({
|
|
26
|
+
JS_MODAL: 'js-modal',
|
|
27
|
+
RN_MODAL: 'modal',
|
|
28
|
+
TOOLTIP: 'view'
|
|
29
|
+
});
|
|
30
|
+
class TooltipApp extends React.Component {
|
|
31
|
+
constructor(props) {
|
|
32
|
+
super(props);
|
|
33
|
+
this.state = {
|
|
34
|
+
requestedContentSize: {},
|
|
35
|
+
forcedContentSize: {},
|
|
36
|
+
viewLargerThanDisplayArea: {
|
|
37
|
+
width: false,
|
|
38
|
+
height: false
|
|
39
|
+
},
|
|
40
|
+
anchorPoint: new Point(0, 0),
|
|
41
|
+
popoverOrigin: {},
|
|
42
|
+
// forcedHeight: null,
|
|
43
|
+
shiftedDisplayArea: null,
|
|
44
|
+
defaultDisplayArea: null,
|
|
45
|
+
placement: PLACEMENT_OPTIONS.AUTO,
|
|
46
|
+
isAwaitingShow: true,
|
|
47
|
+
visible: false,
|
|
48
|
+
// Modal
|
|
49
|
+
showing: false,
|
|
50
|
+
fromRect: null,
|
|
51
|
+
animatedValues: {
|
|
52
|
+
scale: new Animated.Value(0),
|
|
53
|
+
translate: new Animated.ValueXY(),
|
|
54
|
+
fade: new Animated.Value(0),
|
|
55
|
+
translateArrow: new Animated.ValueXY()
|
|
56
|
+
},
|
|
57
|
+
debug: false
|
|
58
|
+
};
|
|
59
|
+
this.measureContent = this.measureContent.bind(this);
|
|
60
|
+
this.animateIn = this.animateIn.bind(this);
|
|
61
|
+
}
|
|
62
|
+
debug(line, obj) {
|
|
63
|
+
const {
|
|
64
|
+
debug
|
|
65
|
+
} = this.state;
|
|
66
|
+
if (DEBUG || debug) {}
|
|
67
|
+
}
|
|
68
|
+
getDisplayAreaOffset(displayArea, callback) {
|
|
69
|
+
// If we aren't shoowing in RN Modal, we have no guarantee that we have the whole screen, so need to adapt to that
|
|
70
|
+
const {
|
|
71
|
+
mode
|
|
72
|
+
} = this.props;
|
|
73
|
+
if (mode !== POPOVER_MODE.RN_MODAL) {
|
|
74
|
+
getRectForRef(this.containerRef, rect => callback(new Point(rect.x, rect.y + FIX_SHIFT)));
|
|
75
|
+
} else {
|
|
76
|
+
callback(new Point(0, 0));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
setDefaultDisplayArea(evt) {
|
|
80
|
+
const {
|
|
81
|
+
defaultDisplayArea,
|
|
82
|
+
fromRect: rect
|
|
83
|
+
} = this.state;
|
|
84
|
+
const newDisplayArea = new Rect(evt.nativeEvent.layout.x + 10, evt.nativeEvent.layout.y + 10, evt.nativeEvent.layout.width - 20, evt.nativeEvent.layout.height - 20);
|
|
85
|
+
// When the popover is closing and the display area's onLayout event is called, the width/height values may be zero
|
|
86
|
+
// which causes a bad display area for the first mount when the popover re-opens
|
|
87
|
+
const isValidDisplayArea = newDisplayArea.width > 0 && newDisplayArea.height > 0;
|
|
88
|
+
if ((!defaultDisplayArea || rectChanged(defaultDisplayArea, newDisplayArea)) && isValidDisplayArea) {
|
|
89
|
+
this.debug('setDefaultDisplayArea - newDisplayArea', newDisplayArea);
|
|
90
|
+
if (!this.skipNextDefaultDisplayArea) {
|
|
91
|
+
this.getDisplayAreaOffset(newDisplayArea, displayAreaOffset => {
|
|
92
|
+
this.debug('setDefaultDisplayArea - displayAreaOffset', displayAreaOffset);
|
|
93
|
+
this.setState({
|
|
94
|
+
defaultDisplayArea: newDisplayArea,
|
|
95
|
+
displayAreaOffset
|
|
96
|
+
}, () => {
|
|
97
|
+
this.calculateRect(fromRect => {
|
|
98
|
+
this.debug('setDefaultDisplayArea (inside calculateRect callback) - fromRect', fromRect);
|
|
99
|
+
this.debug('setDefaultDisplayArea (inside calculateRect callback) - getDisplayArea()', this.getDisplayArea());
|
|
100
|
+
this.debug('setDefaultDisplayArea (inside calculateRect callback) - displayAreaStore', this.displayAreaStore);
|
|
101
|
+
if (rectChanged(fromRect, rect) || rectChanged(this.getDisplayArea(), this.displayAreaStore)) {
|
|
102
|
+
this.displayAreaStore = this.getDisplayArea();
|
|
103
|
+
this.debug('setDefaultDisplayArea (inside calculateRect callback) - Triggering state update');
|
|
104
|
+
this.setState({
|
|
105
|
+
fromRect
|
|
106
|
+
}, () => {
|
|
107
|
+
this.handleGeomChange();
|
|
108
|
+
this.waitForResizeToFinish = false;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
if (this.skipNextDefaultDisplayArea) this.debug('setDefaultDisplayArea - Skipping first because isLandscape');
|
|
116
|
+
this.skipNextDefaultDisplayArea = false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
keyboardDidShow(e) {
|
|
120
|
+
this.debug(`keyboardDidShow - keyboard height: ${e.endCoordinates.height}`);
|
|
121
|
+
this.shiftForKeyboard(e.endCoordinates.height);
|
|
122
|
+
}
|
|
123
|
+
keyboardDidHide() {
|
|
124
|
+
this.debug('keyboardDidHide');
|
|
125
|
+
|
|
126
|
+
// On android, the keyboard update causes a default display area change, so no need to manually trigger
|
|
127
|
+
this.setState({
|
|
128
|
+
shiftedDisplayArea: null
|
|
129
|
+
}, () => isIOS && this.handleGeomChange());
|
|
130
|
+
}
|
|
131
|
+
shiftForKeyboard(keyboardHeight) {
|
|
132
|
+
const displayArea = this.getDisplayArea();
|
|
133
|
+
const absoluteVerticalCutoff = Dimensions.get('window').height - keyboardHeight - (isIOS ? 10 : 40);
|
|
134
|
+
const combinedY = Math.min(displayArea.height + displayArea.y, absoluteVerticalCutoff);
|
|
135
|
+
this.setState({
|
|
136
|
+
shiftedDisplayArea: {
|
|
137
|
+
x: displayArea.x,
|
|
138
|
+
y: displayArea.y,
|
|
139
|
+
width: displayArea.width,
|
|
140
|
+
height: combinedY - displayArea.y
|
|
141
|
+
}
|
|
142
|
+
}, () => this.handleGeomChange());
|
|
143
|
+
}
|
|
144
|
+
componentDidMount() {
|
|
145
|
+
// This is used so that when the device is rotating or the viewport is expanding for any other reason,
|
|
146
|
+
// we can suspend updates due to content changes until we are finished calculating the new display
|
|
147
|
+
// area and rect for the new viewport size
|
|
148
|
+
// This makes the recalc on rotation much faster
|
|
149
|
+
this.waitForResizeToFinish = false;
|
|
150
|
+
const {
|
|
151
|
+
isVisible,
|
|
152
|
+
fromView,
|
|
153
|
+
mode
|
|
154
|
+
} = this.props;
|
|
155
|
+
// Show popover if isVisible is initially true
|
|
156
|
+
if (isVisible) {
|
|
157
|
+
if (!TooltipApp.isShowingInModal) {
|
|
158
|
+
setTimeout(() => this.calculateRect(fromRect => (fromRect || !fromView) && this.setState({
|
|
159
|
+
fromRect,
|
|
160
|
+
isAwaitingShow: true,
|
|
161
|
+
visible: true
|
|
162
|
+
})), 0);
|
|
163
|
+
if (mode === POPOVER_MODE.RN_MODAL) TooltipApp.isShowingInModal = true;
|
|
164
|
+
} else {}
|
|
165
|
+
}
|
|
166
|
+
Dimensions?.addEventListener?.('change', this.handleResizeEvent);
|
|
167
|
+
}
|
|
168
|
+
componentWillUnmount() {
|
|
169
|
+
// This method performs a setState action when unmounted, require a flag to prevent, it's named unmounted
|
|
170
|
+
this.unmounted = true;
|
|
171
|
+
const {
|
|
172
|
+
visible
|
|
173
|
+
} = this.state;
|
|
174
|
+
const {
|
|
175
|
+
onCloseStart,
|
|
176
|
+
onCloseComplete
|
|
177
|
+
} = this.props;
|
|
178
|
+
if (visible) {
|
|
179
|
+
this.animateOut();
|
|
180
|
+
} else {
|
|
181
|
+
setTimeout(onCloseStart);
|
|
182
|
+
setTimeout(onCloseComplete);
|
|
183
|
+
}
|
|
184
|
+
Dimensions?.removeEventListener?.('change', this.handleResizeEvent);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// First thing called when device rotates
|
|
188
|
+
handleResizeEvent = change => {
|
|
189
|
+
const {
|
|
190
|
+
isVisible
|
|
191
|
+
} = this.props;
|
|
192
|
+
this.debug('handleResizeEvent - New Dimensions', change);
|
|
193
|
+
if (isVisible) {
|
|
194
|
+
this.waitForResizeToFinish = true;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
measureContent(requestedContentSize) {
|
|
198
|
+
const {
|
|
199
|
+
fromView,
|
|
200
|
+
mode,
|
|
201
|
+
onOpenStart
|
|
202
|
+
} = this.props;
|
|
203
|
+
const {
|
|
204
|
+
isAwaitingShow,
|
|
205
|
+
fromRect,
|
|
206
|
+
requestedContentSize: requestState
|
|
207
|
+
} = this.state;
|
|
208
|
+
if (!requestedContentSize.width) console.warn("Tooltip Warning - Can't Show - The Tooltip content has a width of 0, so there is nothing to present.");
|
|
209
|
+
if (!requestedContentSize.height) console.warn("Tooltip Warning - Can't Show - The Tooltip content has a height of 0, so there is nothing to present.");
|
|
210
|
+
if (this.waitForResizeToFinish) this.debug('measureContent - Waiting for resize to finish');
|
|
211
|
+
if (requestedContentSize.width && requestedContentSize.height && !this.waitForResizeToFinish) {
|
|
212
|
+
if (isAwaitingShow) {
|
|
213
|
+
if (fromView && !fromRect || !this.getDisplayArea()) {
|
|
214
|
+
this.debug(`measureContent - Waiting ${this.getDisplayArea() ? 'for Rect' : 'for Display Area'} - requestedContentSize`, requestedContentSize);
|
|
215
|
+
setTimeout(() => this.measureContent(requestedContentSize), 100);
|
|
216
|
+
} else {
|
|
217
|
+
this.debug('measureContent - Showing Tooltip - requestedContentSize', requestedContentSize);
|
|
218
|
+
const geom = this.computeGeometry({
|
|
219
|
+
requestedContentSize
|
|
220
|
+
});
|
|
221
|
+
this.debug('measureContent - Showing Tooltip - geom', geom);
|
|
222
|
+
|
|
223
|
+
// If the view initially overflowed the display area, wait one more render cycle to test-render it within the display area to get
|
|
224
|
+
// final calculations for popoverOrigin before show
|
|
225
|
+
if (geom.viewLargerThanDisplayArea.width || geom.viewLargerThanDisplayArea.height) {
|
|
226
|
+
this.debug('measureContent - Delaying showing popover because viewLargerThanDisplayArea');
|
|
227
|
+
this.setState(Object.assign(geom, {
|
|
228
|
+
requestedContentSize
|
|
229
|
+
}));
|
|
230
|
+
} else {
|
|
231
|
+
this.debug('measureContent - Showing Tooltip - Animating In');
|
|
232
|
+
|
|
233
|
+
// If showing in a modal, the onOpenStart callback will be called from the modal onShow callback
|
|
234
|
+
if (mode !== POPOVER_MODE.RN_MODAL) {
|
|
235
|
+
setTimeout(onOpenStart);
|
|
236
|
+
}
|
|
237
|
+
this.setState(Object.assign(geom, {
|
|
238
|
+
requestedContentSize,
|
|
239
|
+
isAwaitingShow: false
|
|
240
|
+
}), this.animateIn);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
} else if (requestedContentSize.width !== requestState.width || requestedContentSize.height !== requestState.height) {
|
|
244
|
+
// In the case of an animation within the popover that affects the popover size, this function will be called frequently throughout the duration
|
|
245
|
+
// of the animation. This will continuously schedule and then cancel the timeout until the last time this is called when the animation is complete.
|
|
246
|
+
// If this method is only called once, we are only introducing a 50ms lag into the process, so shouldn't be noticeable
|
|
247
|
+
clearTimeout(this.measureContentTimeout);
|
|
248
|
+
this.measureContentTimeout = setTimeout(() => {
|
|
249
|
+
this.debug(`measureContent - new requestedContentSize: ${JSON.stringify(requestedContentSize)} (used to be ${JSON.stringify(requestState)})`);
|
|
250
|
+
this.handleGeomChange(requestedContentSize);
|
|
251
|
+
}, 50);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
computeGeometry({
|
|
256
|
+
requestedContentSize,
|
|
257
|
+
placement,
|
|
258
|
+
fromRect,
|
|
259
|
+
displayArea
|
|
260
|
+
}) {
|
|
261
|
+
const {
|
|
262
|
+
placement: placementProp,
|
|
263
|
+
fromRect: rectProp
|
|
264
|
+
} = this.props;
|
|
265
|
+
const {
|
|
266
|
+
fromRect: rectState
|
|
267
|
+
} = this.state;
|
|
268
|
+
placement = placement || placementProp;
|
|
269
|
+
fromRect = fromRect || {
|
|
270
|
+
...(rectProp || rectState)
|
|
271
|
+
};
|
|
272
|
+
displayArea = displayArea || {
|
|
273
|
+
...this.getDisplayArea()
|
|
274
|
+
};
|
|
275
|
+
this.debug('computeGeometry - displayArea', displayArea);
|
|
276
|
+
this.debug('computeGeometry - fromRect', fromRect);
|
|
277
|
+
let newGeom = null;
|
|
278
|
+
if (fromRect && isRect(fromRect)) {
|
|
279
|
+
// check to see if fromRect is outside of displayArea, and adjust if it is
|
|
280
|
+
if (fromRect.x > displayArea.x + displayArea.width) fromRect.x = displayArea.x + displayArea.width;
|
|
281
|
+
if (fromRect.y > displayArea.y + displayArea.height) fromRect.y = displayArea.y + displayArea.height;
|
|
282
|
+
if (fromRect.x < 0) fromRect.x = -1 * fromRect.width;
|
|
283
|
+
if (fromRect.y < 0) fromRect.y = -1 * fromRect.height;
|
|
284
|
+
const options = {
|
|
285
|
+
displayArea,
|
|
286
|
+
fromRect,
|
|
287
|
+
requestedContentSize
|
|
288
|
+
};
|
|
289
|
+
switch (placement) {
|
|
290
|
+
case PLACEMENT_OPTIONS.TOP:
|
|
291
|
+
newGeom = this.computeTopGeometry(options);
|
|
292
|
+
break;
|
|
293
|
+
case PLACEMENT_OPTIONS.BOTTOM:
|
|
294
|
+
newGeom = this.computeBottomGeometry(options);
|
|
295
|
+
break;
|
|
296
|
+
case PLACEMENT_OPTIONS.LEFT:
|
|
297
|
+
newGeom = this.computeLeftGeometry(options);
|
|
298
|
+
break;
|
|
299
|
+
case PLACEMENT_OPTIONS.RIGHT:
|
|
300
|
+
newGeom = this.computeRightGeometry(options);
|
|
301
|
+
break;
|
|
302
|
+
default:
|
|
303
|
+
newGeom = this.computeAutoGeometry(options);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// If the popover will be restricted and the view that the popover is showing from is sufficiently large, try to show the popover inside the view
|
|
307
|
+
if (newGeom.viewLargerThanDisplayArea.width || newGeom.viewLargerThanDisplayArea.height) {
|
|
308
|
+
const fromRectHeightVisible = fromRect.y < displayArea.y ? fromRect.height - (displayArea.y - fromRect.y) : displayArea.y + displayArea.height - fromRect.y;
|
|
309
|
+
if (fromRect.width > requestedContentSize.width && fromRectHeightVisible > requestedContentSize.height) {
|
|
310
|
+
const preferedX = Math.max(fromRect.x + 10, fromRect.x + (fromRect.width - requestedContentSize.width) / 2);
|
|
311
|
+
const preferedY = Math.max(fromRect.y + 10, fromRect.y + (fromRect.height - requestedContentSize.height) / 2);
|
|
312
|
+
let constrainedX = Math.max(preferedX, displayArea.x);
|
|
313
|
+
if (constrainedX + requestedContentSize.width > displayArea.x + displayArea.width) {
|
|
314
|
+
constrainedX = displayArea.x + displayArea.width - requestedContentSize.width;
|
|
315
|
+
}
|
|
316
|
+
let constrainedY = Math.max(preferedY, displayArea.y);
|
|
317
|
+
if (constrainedY + requestedContentSize.height > displayArea.y + displayArea.height) {
|
|
318
|
+
constrainedY = displayArea.y + displayArea.height - requestedContentSize.height;
|
|
319
|
+
}
|
|
320
|
+
const forcedContentSize = {
|
|
321
|
+
width: Math.min(fromRect.width - 20, displayArea.width),
|
|
322
|
+
height: Math.min(fromRect.height - 20, displayArea.height)
|
|
323
|
+
};
|
|
324
|
+
newGeom = {
|
|
325
|
+
popoverOrigin: new Point(constrainedX, constrainedY),
|
|
326
|
+
anchorPoint: new Point(fromRect.x + fromRect.width / 2, fromRect.y + fromRect.height / 2),
|
|
327
|
+
forcedContentSize,
|
|
328
|
+
viewLargerThanDisplayArea: {
|
|
329
|
+
width: requestedContentSize.width > forcedContentSize.width,
|
|
330
|
+
height: requestedContentSize.height > forcedContentSize.height
|
|
331
|
+
},
|
|
332
|
+
showArrow: false
|
|
333
|
+
};
|
|
334
|
+
} else {
|
|
335
|
+
// If we can't fit inside or outside the fromRect, show the popover centered on the screen
|
|
336
|
+
newGeom = null;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
if (!newGeom) {
|
|
341
|
+
const minY = displayArea.y;
|
|
342
|
+
const minX = displayArea.x;
|
|
343
|
+
const preferedY = (displayArea.height - requestedContentSize.height) / 2 + displayArea.y;
|
|
344
|
+
const preferedX = (displayArea.width - requestedContentSize.width) / 2 + displayArea.x;
|
|
345
|
+
newGeom = {
|
|
346
|
+
popoverOrigin: new Point(Math.max(minX, preferedX), Math.max(minY, preferedY)),
|
|
347
|
+
anchorPoint: new Point(displayArea.width / 2 + displayArea.x, displayArea.height / 2 + displayArea.y),
|
|
348
|
+
forcedContentSize: {
|
|
349
|
+
width: displayArea.width,
|
|
350
|
+
height: displayArea.height
|
|
351
|
+
},
|
|
352
|
+
viewLargerThanDisplayArea: {
|
|
353
|
+
width: preferedX < minX - 1,
|
|
354
|
+
height: preferedY < minY - 1
|
|
355
|
+
},
|
|
356
|
+
showArrow: false
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
return newGeom;
|
|
360
|
+
}
|
|
361
|
+
computeTopGeometry({
|
|
362
|
+
displayArea,
|
|
363
|
+
fromRect,
|
|
364
|
+
requestedContentSize
|
|
365
|
+
}) {
|
|
366
|
+
const minY = displayArea.y;
|
|
367
|
+
const arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.TOP);
|
|
368
|
+
const preferedY = fromRect.y - requestedContentSize.height - arrowSize.height;
|
|
369
|
+
const forcedContentSize = {
|
|
370
|
+
height: fromRect.y - arrowSize.height - displayArea.y,
|
|
371
|
+
width: displayArea.width
|
|
372
|
+
};
|
|
373
|
+
const viewLargerThanDisplayArea = {
|
|
374
|
+
height: preferedY < minY - 1,
|
|
375
|
+
width: requestedContentSize.width > displayArea.width + 1
|
|
376
|
+
};
|
|
377
|
+
const viewWidth = viewLargerThanDisplayArea.width ? forcedContentSize.width : requestedContentSize.width;
|
|
378
|
+
const maxX = displayArea.x + displayArea.width - viewWidth;
|
|
379
|
+
const minX = displayArea.x;
|
|
380
|
+
const preferedX = fromRect.x + (fromRect.width - viewWidth) / 2;
|
|
381
|
+
const popoverOrigin = new Point(Math.min(maxX, Math.max(minX, preferedX)), Math.max(minY, preferedY));
|
|
382
|
+
const anchorPoint = new Point(fromRect.x + fromRect.width / 2.0, fromRect.y);
|
|
383
|
+
|
|
384
|
+
// Make sure the arrow isn't cut off
|
|
385
|
+
anchorPoint.x = Math.max(anchorPoint.x, arrowSize.width / 2 + this.getBorderRadius());
|
|
386
|
+
anchorPoint.x = Math.min(anchorPoint.x, displayArea.x + displayArea.width - arrowSize.width / 2 - this.getBorderRadius());
|
|
387
|
+
return {
|
|
388
|
+
popoverOrigin,
|
|
389
|
+
anchorPoint,
|
|
390
|
+
placement: PLACEMENT_OPTIONS.TOP,
|
|
391
|
+
forcedContentSize,
|
|
392
|
+
viewLargerThanDisplayArea,
|
|
393
|
+
showArrow: true
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
computeBottomGeometry({
|
|
397
|
+
displayArea,
|
|
398
|
+
fromRect,
|
|
399
|
+
requestedContentSize
|
|
400
|
+
}) {
|
|
401
|
+
const {
|
|
402
|
+
skipAndroidStatusBar
|
|
403
|
+
} = this.props;
|
|
404
|
+
const arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.BOTTOM);
|
|
405
|
+
const preferedY = isIOS ? fromRect.y + fromRect.height + arrowSize.height : skipAndroidStatusBar ? fromRect.y + fromRect.height + arrowSize.height - StatusBar.currentHeight : fromRect.y + fromRect.height + arrowSize.height;
|
|
406
|
+
const forcedContentSize = {
|
|
407
|
+
height: displayArea.y + displayArea.height - preferedY,
|
|
408
|
+
width: displayArea.width
|
|
409
|
+
};
|
|
410
|
+
const viewLargerThanDisplayArea = {
|
|
411
|
+
height: preferedY + requestedContentSize.height > displayArea.y + displayArea.height + 1,
|
|
412
|
+
width: requestedContentSize.width > displayArea.width + 1
|
|
413
|
+
};
|
|
414
|
+
const viewWidth = viewLargerThanDisplayArea.width ? forcedContentSize.width : requestedContentSize.width;
|
|
415
|
+
const maxX = displayArea.x + displayArea.width - viewWidth;
|
|
416
|
+
const minX = displayArea.x;
|
|
417
|
+
const preferedX = fromRect.x + (fromRect.width - viewWidth) / 2;
|
|
418
|
+
const popoverOrigin = new Point(Math.min(maxX, Math.max(minX, preferedX)), preferedY);
|
|
419
|
+
const anchorPoint = new Point(fromRect.x + fromRect.width / 2.0, isIOS ? fromRect.y + fromRect.height : skipAndroidStatusBar ? fromRect.y + fromRect.height - StatusBar.currentHeight : fromRect.y + fromRect.height);
|
|
420
|
+
|
|
421
|
+
// Make sure the arrow isn't cut off
|
|
422
|
+
anchorPoint.x = Math.max(anchorPoint.x, arrowSize.width / 2 + this.getBorderRadius());
|
|
423
|
+
anchorPoint.x = Math.min(anchorPoint.x, displayArea.x + displayArea.width - arrowSize.width / 2 - this.getBorderRadius());
|
|
424
|
+
return {
|
|
425
|
+
popoverOrigin,
|
|
426
|
+
anchorPoint,
|
|
427
|
+
placement: PLACEMENT_OPTIONS.BOTTOM,
|
|
428
|
+
forcedContentSize,
|
|
429
|
+
viewLargerThanDisplayArea,
|
|
430
|
+
showArrow: true
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
getPolarity() {
|
|
434
|
+
return I18nManager.isRTL ? -1 : 1;
|
|
435
|
+
}
|
|
436
|
+
computeLeftGeometry({
|
|
437
|
+
displayArea,
|
|
438
|
+
fromRect,
|
|
439
|
+
requestedContentSize
|
|
440
|
+
}) {
|
|
441
|
+
const arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.LEFT);
|
|
442
|
+
const forcedContentSize = {
|
|
443
|
+
height: displayArea.height,
|
|
444
|
+
width: fromRect.x - displayArea.x - arrowSize.width
|
|
445
|
+
};
|
|
446
|
+
const viewLargerThanDisplayArea = {
|
|
447
|
+
height: requestedContentSize.height > displayArea.height + 1,
|
|
448
|
+
width: requestedContentSize.width > fromRect.x - displayArea.x - arrowSize.width + 1
|
|
449
|
+
};
|
|
450
|
+
const viewWidth = viewLargerThanDisplayArea.width ? forcedContentSize.width : requestedContentSize.width;
|
|
451
|
+
const viewHeight = viewLargerThanDisplayArea.height ? forcedContentSize.height : requestedContentSize.height;
|
|
452
|
+
const preferedX = fromRect.x - viewWidth - arrowSize.width;
|
|
453
|
+
const preferedY = fromRect.y + (fromRect.height - viewHeight) / 2;
|
|
454
|
+
const minY = displayArea.y;
|
|
455
|
+
const maxY = displayArea.height - viewHeight + displayArea.y;
|
|
456
|
+
const popoverOrigin = new Point(preferedX, Math.min(Math.max(minY, preferedY), maxY));
|
|
457
|
+
const anchorPoint = new Point(fromRect.x, fromRect.y + fromRect.height / 2.0);
|
|
458
|
+
|
|
459
|
+
// Make sure the arrow isn't cut off
|
|
460
|
+
anchorPoint.y = Math.max(anchorPoint.y, arrowSize.height / 2 + this.getBorderRadius());
|
|
461
|
+
anchorPoint.y = Math.min(anchorPoint.y, displayArea.y + displayArea.height - arrowSize.height / 2 - this.getBorderRadius());
|
|
462
|
+
return {
|
|
463
|
+
popoverOrigin,
|
|
464
|
+
anchorPoint,
|
|
465
|
+
placement: PLACEMENT_OPTIONS.LEFT,
|
|
466
|
+
forcedContentSize,
|
|
467
|
+
viewLargerThanDisplayArea,
|
|
468
|
+
showArrow: true
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
computeRightGeometry({
|
|
472
|
+
displayArea,
|
|
473
|
+
fromRect,
|
|
474
|
+
requestedContentSize
|
|
475
|
+
}) {
|
|
476
|
+
const arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.RIGHT);
|
|
477
|
+
const horizontalSpace = displayArea.x + displayArea.width - (fromRect.x + fromRect.width) - arrowSize.width;
|
|
478
|
+
const forcedContentSize = {
|
|
479
|
+
height: displayArea.height,
|
|
480
|
+
width: horizontalSpace
|
|
481
|
+
};
|
|
482
|
+
const viewLargerThanDisplayArea = {
|
|
483
|
+
height: requestedContentSize.height > displayArea.height + 1,
|
|
484
|
+
width: requestedContentSize.width > horizontalSpace + 1
|
|
485
|
+
};
|
|
486
|
+
const viewHeight = viewLargerThanDisplayArea.height ? forcedContentSize.height : requestedContentSize.height;
|
|
487
|
+
const preferedX = fromRect.x + fromRect.width + arrowSize.width;
|
|
488
|
+
const preferedY = fromRect.y + (fromRect.height - viewHeight) / 2;
|
|
489
|
+
const minY = displayArea.y;
|
|
490
|
+
const maxY = displayArea.height - viewHeight + displayArea.y;
|
|
491
|
+
const popoverOrigin = new Point(preferedX, Math.min(Math.max(minY, preferedY), maxY));
|
|
492
|
+
const anchorPoint = new Point(fromRect.x + fromRect.width, fromRect.y + fromRect.height / 2.0);
|
|
493
|
+
|
|
494
|
+
// Make sure the arrow isn't cut off
|
|
495
|
+
anchorPoint.y = Math.max(anchorPoint.y, arrowSize.height / 2 + this.getBorderRadius());
|
|
496
|
+
anchorPoint.y = Math.min(anchorPoint.y, displayArea.y + displayArea.height - arrowSize.height / 2 - this.getBorderRadius());
|
|
497
|
+
return {
|
|
498
|
+
popoverOrigin,
|
|
499
|
+
anchorPoint,
|
|
500
|
+
placement: PLACEMENT_OPTIONS.RIGHT,
|
|
501
|
+
forcedContentSize,
|
|
502
|
+
viewLargerThanDisplayArea,
|
|
503
|
+
showArrow: true
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
computeAutoGeometry({
|
|
507
|
+
displayArea,
|
|
508
|
+
requestedContentSize,
|
|
509
|
+
fromRect
|
|
510
|
+
}) {
|
|
511
|
+
const {
|
|
512
|
+
placement: placementState
|
|
513
|
+
} = this.state;
|
|
514
|
+
let arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.LEFT);
|
|
515
|
+
const possiblePlacements = [];
|
|
516
|
+
if (fromRect.x - displayArea.x - arrowSize.width >= requestedContentSize.width) {
|
|
517
|
+
// We could fit it on the left side
|
|
518
|
+
possiblePlacements.push(PLACEMENT_OPTIONS.LEFT);
|
|
519
|
+
return this.computeGeometry({
|
|
520
|
+
requestedContentSize,
|
|
521
|
+
placement: PLACEMENT_OPTIONS.LEFT,
|
|
522
|
+
fromRect,
|
|
523
|
+
displayArea
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
// We could fit it on the right side
|
|
527
|
+
if (displayArea.x + displayArea.width - (fromRect.x + fromRect.width) - arrowSize.width >= requestedContentSize.width) {
|
|
528
|
+
possiblePlacements.push(PLACEMENT_OPTIONS.RIGHT);
|
|
529
|
+
}
|
|
530
|
+
arrowSize = this.getArrowSize(PLACEMENT_OPTIONS.TOP);
|
|
531
|
+
this.debug('computeAutoGeometry - possiblePlacements', possiblePlacements);
|
|
532
|
+
|
|
533
|
+
// Keep same placement if possible
|
|
534
|
+
if (possiblePlacements.length === 2 && placementState !== PLACEMENT_OPTIONS.AUTO && possiblePlacements.indexOf(placementState) !== -1) {
|
|
535
|
+
const geom = this.computeGeometry({
|
|
536
|
+
requestedContentSize,
|
|
537
|
+
placement: placementState,
|
|
538
|
+
fromRect,
|
|
539
|
+
displayArea
|
|
540
|
+
});
|
|
541
|
+
if (!geom.viewLargerThanDisplayArea.width) return geom;
|
|
542
|
+
}
|
|
543
|
+
if (possiblePlacements.length === 1) {
|
|
544
|
+
const geom = this.computeGeometry({
|
|
545
|
+
requestedContentSize,
|
|
546
|
+
placement: possiblePlacements[0],
|
|
547
|
+
fromRect,
|
|
548
|
+
displayArea
|
|
549
|
+
});
|
|
550
|
+
if (!geom.viewLargerThanDisplayArea.width) return geom;
|
|
551
|
+
}
|
|
552
|
+
if (placementState === PLACEMENT_OPTIONS.TOP || placementState === PLACEMENT_OPTIONS.BOTTOM) {
|
|
553
|
+
return this.computeGeometry({
|
|
554
|
+
requestedContentSize,
|
|
555
|
+
placement: placementState,
|
|
556
|
+
fromRect,
|
|
557
|
+
displayArea
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// We could fit it on the top or bottom, need to figure out which is better
|
|
562
|
+
|
|
563
|
+
const topSpace = fromRect.y - displayArea.y;
|
|
564
|
+
const bottomSpace = displayArea.y + displayArea.height - (fromRect.y + fromRect.height);
|
|
565
|
+
return topSpace - 50 > bottomSpace ? this.computeGeometry({
|
|
566
|
+
requestedContentSize,
|
|
567
|
+
placement: PLACEMENT_OPTIONS.TOP,
|
|
568
|
+
fromRect,
|
|
569
|
+
displayArea
|
|
570
|
+
}) : this.computeGeometry({
|
|
571
|
+
requestedContentSize,
|
|
572
|
+
placement: PLACEMENT_OPTIONS.BOTTOM,
|
|
573
|
+
fromRect,
|
|
574
|
+
displayArea
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
getArrowSize(placement) {
|
|
578
|
+
const {
|
|
579
|
+
arrowStyle
|
|
580
|
+
} = this.props;
|
|
581
|
+
const size = new Size(arrowStyle.width || DEFAULT_ARROW_SIZE.width, arrowStyle.height || DEFAULT_ARROW_SIZE.height);
|
|
582
|
+
switch (placement) {
|
|
583
|
+
case PLACEMENT_OPTIONS.LEFT:
|
|
584
|
+
case PLACEMENT_OPTIONS.RIGHT:
|
|
585
|
+
return new Size(size.height, size.width);
|
|
586
|
+
default:
|
|
587
|
+
return size;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
getArrowRotation(placement) {
|
|
591
|
+
switch (placement) {
|
|
592
|
+
case PLACEMENT_OPTIONS.BOTTOM:
|
|
593
|
+
return '180deg';
|
|
594
|
+
case PLACEMENT_OPTIONS.LEFT:
|
|
595
|
+
return `${this.getPolarity() * -90}deg`;
|
|
596
|
+
case PLACEMENT_OPTIONS.RIGHT:
|
|
597
|
+
return `${this.getPolarity() * 90}deg`;
|
|
598
|
+
default:
|
|
599
|
+
return '0deg';
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
getArrowDynamicStyle() {
|
|
603
|
+
const {
|
|
604
|
+
arrowWidth: width,
|
|
605
|
+
arrowHeight: height
|
|
606
|
+
} = this.getCalculatedArrowDims();
|
|
607
|
+
|
|
608
|
+
// Create the arrow from a rectangle with the appropriate borderXWidth set
|
|
609
|
+
// A rotation is then applied dependending on the placement
|
|
610
|
+
// Also make it slightly bigger
|
|
611
|
+
// to fix a visual artifact when the popover is animated with a scale
|
|
612
|
+
return {
|
|
613
|
+
width,
|
|
614
|
+
height,
|
|
615
|
+
borderTopWidth: height / 2,
|
|
616
|
+
borderRightWidth: width / 2,
|
|
617
|
+
borderBottomWidth: height / 2,
|
|
618
|
+
borderLeftWidth: width / 2
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
getCalculatedArrowDims() {
|
|
622
|
+
const {
|
|
623
|
+
arrowStyle
|
|
624
|
+
} = this.props;
|
|
625
|
+
const arrowWidth = (arrowStyle.width || DEFAULT_ARROW_SIZE.width) + 2;
|
|
626
|
+
const arrowHeight = (arrowStyle.height || DEFAULT_ARROW_SIZE.height) * 2 + 2;
|
|
627
|
+
return {
|
|
628
|
+
arrowWidth,
|
|
629
|
+
arrowHeight
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
getBorderRadius() {
|
|
633
|
+
const {
|
|
634
|
+
popoverStyle
|
|
635
|
+
} = this.props;
|
|
636
|
+
if (popoverStyle.borderRadius === 0) return 0;
|
|
637
|
+
return popoverStyle.borderRadius || DEFAULT_BORDER_RADIUS;
|
|
638
|
+
}
|
|
639
|
+
getArrowTranslateLocation(translatePoint = null) {
|
|
640
|
+
const {
|
|
641
|
+
anchorPoint,
|
|
642
|
+
placement,
|
|
643
|
+
forcedContentSize,
|
|
644
|
+
viewLargerThanDisplayArea,
|
|
645
|
+
requestedContentSize
|
|
646
|
+
} = this.state;
|
|
647
|
+
const {
|
|
648
|
+
arrowWidth,
|
|
649
|
+
arrowHeight
|
|
650
|
+
} = this.getCalculatedArrowDims();
|
|
651
|
+
const viewWidth = viewLargerThanDisplayArea.width ? forcedContentSize.width : requestedContentSize.width || 0;
|
|
652
|
+
const viewHeight = viewLargerThanDisplayArea.height ? forcedContentSize.height : requestedContentSize.height || 0;
|
|
653
|
+
let arrowX = anchorPoint.x - arrowWidth / 2;
|
|
654
|
+
let arrowY = anchorPoint.y - arrowHeight / 2;
|
|
655
|
+
|
|
656
|
+
// Ensuring that the arrow does not go outside the bounds of the content box during a move
|
|
657
|
+
if (translatePoint) {
|
|
658
|
+
if (placement === PLACEMENT_OPTIONS.LEFT || placement === PLACEMENT_OPTIONS.RIGHT) {
|
|
659
|
+
if (translatePoint.y > arrowY - this.getBorderRadius()) {
|
|
660
|
+
arrowY = translatePoint.y + this.getBorderRadius();
|
|
661
|
+
} else if (viewHeight && translatePoint.y + viewHeight < arrowY + arrowHeight) {
|
|
662
|
+
arrowY = translatePoint.y + viewHeight - arrowHeight - this.getBorderRadius();
|
|
663
|
+
}
|
|
664
|
+
} else if (placement === PLACEMENT_OPTIONS.TOP || placement === PLACEMENT_OPTIONS.BOTTOM) {
|
|
665
|
+
if (translatePoint.x > arrowX - this.getBorderRadius()) {
|
|
666
|
+
arrowX = translatePoint.x + this.getBorderRadius();
|
|
667
|
+
} else if (viewWidth && translatePoint.x + viewWidth < arrowX + arrowWidth) {
|
|
668
|
+
arrowX = translatePoint.x + viewWidth - arrowWidth - this.getBorderRadius();
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return new Point(arrowX, FIX_SHIFT * 2 /* Temp fix for useNativeDriver issue */ + arrowY);
|
|
673
|
+
}
|
|
674
|
+
getTranslateOrigin() {
|
|
675
|
+
const {
|
|
676
|
+
forcedContentSize,
|
|
677
|
+
viewLargerThanDisplayArea,
|
|
678
|
+
requestedContentSize,
|
|
679
|
+
popoverOrigin,
|
|
680
|
+
anchorPoint
|
|
681
|
+
} = this.state;
|
|
682
|
+
const popoverWidth = viewLargerThanDisplayArea.width ? forcedContentSize.width : requestedContentSize.width || 0;
|
|
683
|
+
const popoverHeight = viewLargerThanDisplayArea.height ? forcedContentSize.height : requestedContentSize.height || 0;
|
|
684
|
+
const popoverCenter = new Point(popoverOrigin.x + popoverWidth / 2, popoverOrigin.y + popoverHeight / 2);
|
|
685
|
+
const shiftHorizantal = anchorPoint.x - popoverCenter.x;
|
|
686
|
+
const shiftVertical = anchorPoint.y - popoverCenter.y;
|
|
687
|
+
this.debug('getTranslateOrigin - popoverOrigin', popoverOrigin);
|
|
688
|
+
this.debug('getTranslateOrigin - popoverSize', {
|
|
689
|
+
width: popoverWidth,
|
|
690
|
+
height: popoverHeight
|
|
691
|
+
});
|
|
692
|
+
this.debug('getTranslateOrigin - anchorPoint', anchorPoint);
|
|
693
|
+
this.debug('getTranslateOrigin - shift', {
|
|
694
|
+
hoizontal: shiftHorizantal,
|
|
695
|
+
vertical: shiftVertical
|
|
696
|
+
});
|
|
697
|
+
return new Point(popoverOrigin.x + shiftHorizantal, popoverOrigin.y + shiftVertical);
|
|
698
|
+
}
|
|
699
|
+
getDisplayArea() {
|
|
700
|
+
const {
|
|
701
|
+
shiftedDisplayArea,
|
|
702
|
+
defaultDisplayArea
|
|
703
|
+
} = this.state;
|
|
704
|
+
const {
|
|
705
|
+
displayArea
|
|
706
|
+
} = this.props;
|
|
707
|
+
return shiftedDisplayArea || displayArea || defaultDisplayArea;
|
|
708
|
+
}
|
|
709
|
+
componentDidUpdate(prevProps) {
|
|
710
|
+
// Make sure a value we care about has actually changed
|
|
711
|
+
const {
|
|
712
|
+
props
|
|
713
|
+
} = this;
|
|
714
|
+
const {
|
|
715
|
+
state
|
|
716
|
+
} = this;
|
|
717
|
+
const importantProps = ['isVisible', 'fromRect', 'displayArea', 'verticalOffset', 'placement'];
|
|
718
|
+
if (!importantProps.reduce((acc, key) => acc || props[key] !== prevProps[key], false)) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
const willBeVisible = props.isVisible;
|
|
722
|
+
if (willBeVisible !== prevProps.isVisible) {
|
|
723
|
+
if (willBeVisible) {
|
|
724
|
+
// We want to start the show animation only when contentSize is known
|
|
725
|
+
// so that we can have some logic depending on the geometry
|
|
726
|
+
if (!TooltipApp.isShowingInModal) {
|
|
727
|
+
this.calculateRect(fromRect => this.setState({
|
|
728
|
+
fromRect,
|
|
729
|
+
isAwaitingShow: true,
|
|
730
|
+
visible: true
|
|
731
|
+
}));
|
|
732
|
+
if (props.mode === POPOVER_MODE.RN_MODAL) TooltipApp.isShowingInModal = true;
|
|
733
|
+
} else {}
|
|
734
|
+
this.debug('componentWillReceiveProps - Awaiting popover show');
|
|
735
|
+
} else if (state.visible) {
|
|
736
|
+
if (state.showing) {
|
|
737
|
+
this.animateOut();
|
|
738
|
+
} else {
|
|
739
|
+
this.animateOutAfterShow = true;
|
|
740
|
+
}
|
|
741
|
+
this.debug('componentWillReceiveProps - Hiding popover');
|
|
742
|
+
} else {
|
|
743
|
+
setTimeout(props.onCloseStart);
|
|
744
|
+
setTimeout(props.onCloseComplete);
|
|
745
|
+
this.debug('componentWillReceiveProps - Tooltip never shown');
|
|
746
|
+
}
|
|
747
|
+
} else if (willBeVisible) {
|
|
748
|
+
this.calculateRect(fromRect => {
|
|
749
|
+
if (rectChanged(fromRect, state.fromRect) || props.displayArea && !prevProps.displayArea || rectChanged(props.displayArea, prevProps.displayArea) || rectChanged(this.getDisplayArea(), this.displayAreaStore)) {
|
|
750
|
+
this.displayAreaStore = this.getDisplayArea();
|
|
751
|
+
this.setState({
|
|
752
|
+
fromRect
|
|
753
|
+
}, () => this.handleGeomChange());
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
calculateRect(callback) {
|
|
759
|
+
const {
|
|
760
|
+
props
|
|
761
|
+
} = this;
|
|
762
|
+
const {
|
|
763
|
+
state
|
|
764
|
+
} = this;
|
|
765
|
+
const initialRect = state.fromRect || new Rect(0, 0, 0, 0);
|
|
766
|
+
const displayArea = props.displayArea || this.getDisplayArea();
|
|
767
|
+
if (props.fromDynamicRect) {
|
|
768
|
+
runAfterChange(callback_ => callback_(props.fromDynamicRect(displayArea.width, displayArea.height)), initialRect, () => {
|
|
769
|
+
callback({
|
|
770
|
+
fromRect: props.fromDynamicRect(displayArea.width, displayArea.height)
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
} else if (props.fromView) {
|
|
774
|
+
const verticalOffset = props.verticalOffset + (state.displayAreaOffset ? -1 * state.displayAreaOffset.y : 0);
|
|
775
|
+
const horizontalOffset = state.displayAreaOffset ? -1 * state.displayAreaOffset.x : 0;
|
|
776
|
+
waitForNewRect(props.fromView, initialRect, rect => {
|
|
777
|
+
callback(new Rect(rect.x + horizontalOffset, rect.y + verticalOffset, rect.width, rect.height));
|
|
778
|
+
});
|
|
779
|
+
} else {
|
|
780
|
+
callback(props.fromRect);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
handleGeomChange(requestedContentSize) {
|
|
784
|
+
const {
|
|
785
|
+
forcedContentSize,
|
|
786
|
+
popoverOrigin,
|
|
787
|
+
animatedValues,
|
|
788
|
+
requestedContentSize: requestedState
|
|
789
|
+
} = this.state;
|
|
790
|
+
const {
|
|
791
|
+
animation = true
|
|
792
|
+
} = this.props;
|
|
793
|
+
requestedContentSize = requestedContentSize || {
|
|
794
|
+
...requestedState
|
|
795
|
+
};
|
|
796
|
+
this.debug('handleGeomChange - requestedContentSize: ', requestedContentSize);
|
|
797
|
+
|
|
798
|
+
// handleGeomChange may be called more than one times before the first has a chance to finish,
|
|
799
|
+
// so we use updateCount to make sure that we only trigger an animation on the last one
|
|
800
|
+
if (!this.updatesCount || this.updatesCount < 0) this.updateCount = 0;
|
|
801
|
+
this.updateCount++;
|
|
802
|
+
const geom = this.computeGeometry({
|
|
803
|
+
requestedContentSize
|
|
804
|
+
});
|
|
805
|
+
if (animation && (pointChanged(geom.popoverOrigin, popoverOrigin) || rectChanged(geom.forcedContentSize, forcedContentSize))) {
|
|
806
|
+
this.setState(Object.assign(geom, {
|
|
807
|
+
requestedContentSize
|
|
808
|
+
}), () => {
|
|
809
|
+
if (this.updateCount <= 1) {
|
|
810
|
+
this.updateCount--;
|
|
811
|
+
const moveTo = new Point(geom.popoverOrigin.x, geom.popoverOrigin.y);
|
|
812
|
+
this.debug('handleGeomChange - Triggering popover move to', moveTo);
|
|
813
|
+
this.animateTo({
|
|
814
|
+
values: animatedValues,
|
|
815
|
+
fade: 1,
|
|
816
|
+
scale: 1,
|
|
817
|
+
translatePoint: moveTo,
|
|
818
|
+
easing: Easing.inOut(Easing.quad)
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
animateOut() {
|
|
825
|
+
const {
|
|
826
|
+
props,
|
|
827
|
+
state
|
|
828
|
+
} = this;
|
|
829
|
+
setTimeout(props.onCloseStart);
|
|
830
|
+
this.keyboardDidShowListener && this.keyboardDidShowListener.remove();
|
|
831
|
+
this.keyboardDidHideListener && this.keyboardDidHideListener.remove();
|
|
832
|
+
|
|
833
|
+
// Animation callback may or may not get called if animation is cut short, so calling this a bit early for safety
|
|
834
|
+
if (props.mode === POPOVER_MODE.RN_MODAL) TooltipApp.isShowingInModal = false;
|
|
835
|
+
if (this.unmounted) {
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
this.setState({
|
|
839
|
+
shiftedDisplayArea: null,
|
|
840
|
+
showing: false
|
|
841
|
+
});
|
|
842
|
+
this.animateTo({
|
|
843
|
+
values: state.animatedValues,
|
|
844
|
+
fade: 0,
|
|
845
|
+
scale: 0,
|
|
846
|
+
translatePoint: this.getTranslateOrigin(),
|
|
847
|
+
callback: () => this.setState({
|
|
848
|
+
visible: false,
|
|
849
|
+
forcedContentSize: {}
|
|
850
|
+
}, () => {
|
|
851
|
+
// If showing in an RN modal, the onCloseComplete callback will be called from the Modal onDismiss callback (on iOS only)
|
|
852
|
+
if (props.mode !== POPOVER_MODE.RN_MODAL || !isIOS) {
|
|
853
|
+
props.onCloseComplete();
|
|
854
|
+
}
|
|
855
|
+
}),
|
|
856
|
+
easing: Easing.inOut(Easing.quad)
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
animateIn() {
|
|
860
|
+
const {
|
|
861
|
+
state,
|
|
862
|
+
props
|
|
863
|
+
} = this;
|
|
864
|
+
const values = state.animatedValues;
|
|
865
|
+
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this.keyboardDidShow.bind(this));
|
|
866
|
+
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this.keyboardDidHide.bind(this));
|
|
867
|
+
this.displayAreaStore = this.getDisplayArea();
|
|
868
|
+
|
|
869
|
+
// Should grow from anchor point
|
|
870
|
+
const translateStart = this.getTranslateOrigin();
|
|
871
|
+
translateStart.y += FIX_SHIFT * 2; // Temp fix for useNativeDriver issue
|
|
872
|
+
values.translate.setValue(translateStart);
|
|
873
|
+
const translatePoint = new Point(state.popoverOrigin.x, state.popoverOrigin.y);
|
|
874
|
+
values.translateArrow.setValue(this.getArrowTranslateLocation(translatePoint));
|
|
875
|
+
this.animateTo({
|
|
876
|
+
values,
|
|
877
|
+
fade: 1,
|
|
878
|
+
scale: 1,
|
|
879
|
+
translatePoint,
|
|
880
|
+
easing: Easing.out(Easing.back()),
|
|
881
|
+
callback: () => {
|
|
882
|
+
this.setState({
|
|
883
|
+
showing: true
|
|
884
|
+
});
|
|
885
|
+
setTimeout(props.onOpenComplete);
|
|
886
|
+
setTimeout(() => getRectForRef(this.popoverRef, rect => this.debug('animateIn - onOpenComplete - Calculated Tooltip Rect', rect)));
|
|
887
|
+
if (this.animateOutAfterShow) {
|
|
888
|
+
this.animateOut();
|
|
889
|
+
this.animateOutAfterShow = false;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
animateTo({
|
|
895
|
+
fade,
|
|
896
|
+
translatePoint,
|
|
897
|
+
scale,
|
|
898
|
+
callback,
|
|
899
|
+
easing,
|
|
900
|
+
values
|
|
901
|
+
}) {
|
|
902
|
+
const {
|
|
903
|
+
props
|
|
904
|
+
} = this;
|
|
905
|
+
const commonConfig = {
|
|
906
|
+
duration: 300,
|
|
907
|
+
easing,
|
|
908
|
+
useNativeDriver: true,
|
|
909
|
+
...props.animationConfig
|
|
910
|
+
};
|
|
911
|
+
if (this.animating) {
|
|
912
|
+
setTimeout(() => this.animateTo?.apply(this, arguments), 100);
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
const newArrowLocation = this.getArrowTranslateLocation(translatePoint);
|
|
916
|
+
translatePoint.y += FIX_SHIFT * 2; // Temp fix for useNativeDriver issue
|
|
917
|
+
|
|
918
|
+
if (!fade && fade !== 0) {
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
if (!isPoint(translatePoint)) {
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
if (!scale && scale !== 0) {
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
this.animating = true;
|
|
928
|
+
Animated.parallel([Animated.timing(values.fade, {
|
|
929
|
+
...commonConfig,
|
|
930
|
+
toValue: fade
|
|
931
|
+
}), Animated.timing(values.translate, {
|
|
932
|
+
...commonConfig,
|
|
933
|
+
toValue: translatePoint
|
|
934
|
+
}), Animated.timing(values.scale, {
|
|
935
|
+
...commonConfig,
|
|
936
|
+
toValue: scale
|
|
937
|
+
}), Animated.timing(values.translateArrow, {
|
|
938
|
+
...commonConfig,
|
|
939
|
+
toValue: newArrowLocation
|
|
940
|
+
})]).start(() => {
|
|
941
|
+
this.animating = false;
|
|
942
|
+
if (callback) callback();
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
renderDefault = () => {
|
|
946
|
+
const {
|
|
947
|
+
content,
|
|
948
|
+
contentStyle,
|
|
949
|
+
textContentStyle,
|
|
950
|
+
children
|
|
951
|
+
} = this.props;
|
|
952
|
+
return /*#__PURE__*/_jsx(View, {
|
|
953
|
+
style: [styles.content, contentStyle],
|
|
954
|
+
children: children ? children : /*#__PURE__*/_jsx(Text, {
|
|
955
|
+
style: [{
|
|
956
|
+
color: '#ffffff'
|
|
957
|
+
}, textContentStyle],
|
|
958
|
+
children: content
|
|
959
|
+
})
|
|
960
|
+
});
|
|
961
|
+
};
|
|
962
|
+
render() {
|
|
963
|
+
const {
|
|
964
|
+
placement,
|
|
965
|
+
animatedValues,
|
|
966
|
+
forcedContentSize,
|
|
967
|
+
showArrow,
|
|
968
|
+
visible
|
|
969
|
+
} = this.state;
|
|
970
|
+
const {
|
|
971
|
+
popoverStyle,
|
|
972
|
+
arrowStyle,
|
|
973
|
+
backgroundStyle: background,
|
|
974
|
+
mode,
|
|
975
|
+
onRequestClose,
|
|
976
|
+
children,
|
|
977
|
+
onOpenStart,
|
|
978
|
+
onCloseComplete,
|
|
979
|
+
content
|
|
980
|
+
} = this.props;
|
|
981
|
+
const {
|
|
982
|
+
arrowWidth,
|
|
983
|
+
arrowHeight
|
|
984
|
+
} = this.getCalculatedArrowDims();
|
|
985
|
+
const arrowScale = animatedValues.scale.interpolate({
|
|
986
|
+
inputRange: [0, 1],
|
|
987
|
+
outputRange: [0, 1],
|
|
988
|
+
extrapolate: 'clamp'
|
|
989
|
+
});
|
|
990
|
+
const arrowViewStyle = {
|
|
991
|
+
position: 'absolute',
|
|
992
|
+
top: 0,
|
|
993
|
+
...(I18nManager.isRTL ? {
|
|
994
|
+
right: 0
|
|
995
|
+
} : {
|
|
996
|
+
left: 0
|
|
997
|
+
}),
|
|
998
|
+
width: arrowWidth,
|
|
999
|
+
height: arrowHeight,
|
|
1000
|
+
transform: [{
|
|
1001
|
+
translateX: animatedValues.translateArrow.x
|
|
1002
|
+
}, {
|
|
1003
|
+
translateY: animatedValues.translateArrow.y
|
|
1004
|
+
}, {
|
|
1005
|
+
scale: arrowScale
|
|
1006
|
+
}]
|
|
1007
|
+
};
|
|
1008
|
+
const arrowInnerStyle = [styles.arrow, this.getArrowDynamicStyle(), {
|
|
1009
|
+
borderTopColor: arrowStyle.backgroundColor || popoverStyle.backgroundColor || styles.popoverContent.backgroundColor,
|
|
1010
|
+
transform: [{
|
|
1011
|
+
rotate: this.getArrowRotation(placement)
|
|
1012
|
+
}]
|
|
1013
|
+
}];
|
|
1014
|
+
|
|
1015
|
+
// Temp fix for useNativeDriver issue
|
|
1016
|
+
const backgroundShift = animatedValues.fade.interpolate({
|
|
1017
|
+
inputRange: [0, 0.0001, 1],
|
|
1018
|
+
outputRange: [0, FIX_SHIFT, FIX_SHIFT]
|
|
1019
|
+
});
|
|
1020
|
+
const backgroundStyle = {
|
|
1021
|
+
...styles.background,
|
|
1022
|
+
transform: [{
|
|
1023
|
+
translateY: backgroundShift
|
|
1024
|
+
}],
|
|
1025
|
+
...background
|
|
1026
|
+
};
|
|
1027
|
+
const containerStyle = {
|
|
1028
|
+
...styles.container,
|
|
1029
|
+
opacity: animatedValues.fade
|
|
1030
|
+
};
|
|
1031
|
+
const popoverViewStyle = {
|
|
1032
|
+
maxWidth: forcedContentSize.width,
|
|
1033
|
+
maxHeight: forcedContentSize.height,
|
|
1034
|
+
position: 'absolute',
|
|
1035
|
+
...styles.dropShadow,
|
|
1036
|
+
...styles.popoverContent,
|
|
1037
|
+
...popoverStyle,
|
|
1038
|
+
transform: [{
|
|
1039
|
+
translateX: animatedValues.translate.x
|
|
1040
|
+
}, {
|
|
1041
|
+
translateY: animatedValues.translate.y
|
|
1042
|
+
}, {
|
|
1043
|
+
scale: animatedValues.scale
|
|
1044
|
+
}, {
|
|
1045
|
+
perspective: 1000
|
|
1046
|
+
}]
|
|
1047
|
+
};
|
|
1048
|
+
const contentView = /*#__PURE__*/_jsxs(View, {
|
|
1049
|
+
pointerEvents: "box-none",
|
|
1050
|
+
style: [styles.container, {
|
|
1051
|
+
left: 0
|
|
1052
|
+
}],
|
|
1053
|
+
ref: ref => this.containerRef = ref,
|
|
1054
|
+
children: [/*#__PURE__*/_jsx(SafeAreaView, {
|
|
1055
|
+
pointerEvents: "none",
|
|
1056
|
+
style: {
|
|
1057
|
+
position: 'absolute',
|
|
1058
|
+
top: FIX_SHIFT,
|
|
1059
|
+
left: 0,
|
|
1060
|
+
right: 0,
|
|
1061
|
+
bottom: 0
|
|
1062
|
+
},
|
|
1063
|
+
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
1064
|
+
style: {
|
|
1065
|
+
flex: 1
|
|
1066
|
+
},
|
|
1067
|
+
onLayout: evt => this.setDefaultDisplayArea(evt),
|
|
1068
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
1069
|
+
style: {
|
|
1070
|
+
flex: 1
|
|
1071
|
+
}
|
|
1072
|
+
})
|
|
1073
|
+
})
|
|
1074
|
+
}), /*#__PURE__*/_jsxs(Animated.View, {
|
|
1075
|
+
pointerEvents: "box-none",
|
|
1076
|
+
style: containerStyle,
|
|
1077
|
+
children: [mode !== POPOVER_MODE.TOOLTIP && /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
1078
|
+
onPress: onRequestClose,
|
|
1079
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
1080
|
+
style: backgroundStyle
|
|
1081
|
+
})
|
|
1082
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
1083
|
+
pointerEvents: "box-none",
|
|
1084
|
+
style: {
|
|
1085
|
+
top: 0,
|
|
1086
|
+
left: 0
|
|
1087
|
+
},
|
|
1088
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
1089
|
+
style: popoverViewStyle,
|
|
1090
|
+
ref: ref => this.popoverRef = ref,
|
|
1091
|
+
onLayout: evt => {
|
|
1092
|
+
const layout = {
|
|
1093
|
+
...evt.nativeEvent.layout
|
|
1094
|
+
};
|
|
1095
|
+
setTimeout(() => this.measureContent(layout), 10);
|
|
1096
|
+
},
|
|
1097
|
+
children: content ? this.renderDefault() : children
|
|
1098
|
+
}), showArrow && /*#__PURE__*/_jsx(Animated.View, {
|
|
1099
|
+
style: arrowViewStyle,
|
|
1100
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
1101
|
+
style: arrowInnerStyle
|
|
1102
|
+
})
|
|
1103
|
+
})]
|
|
1104
|
+
})]
|
|
1105
|
+
})]
|
|
1106
|
+
});
|
|
1107
|
+
if (mode === POPOVER_MODE.RN_MODAL) {
|
|
1108
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
1109
|
+
transparent: true,
|
|
1110
|
+
supportedOrientations: ['portrait', 'portrait-upside-down', 'landscape'],
|
|
1111
|
+
hardwareAccelerated: true,
|
|
1112
|
+
visible: visible,
|
|
1113
|
+
onShow: onOpenStart,
|
|
1114
|
+
onDismiss: onCloseComplete,
|
|
1115
|
+
onRequestClose: onRequestClose,
|
|
1116
|
+
children: contentView
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
if (visible) {
|
|
1120
|
+
return contentView;
|
|
1121
|
+
}
|
|
1122
|
+
return null;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
const styles = StyleSheet.create({
|
|
1126
|
+
container: {
|
|
1127
|
+
top: -1 * FIX_SHIFT,
|
|
1128
|
+
bottom: 0,
|
|
1129
|
+
left: 0,
|
|
1130
|
+
right: 0,
|
|
1131
|
+
position: 'absolute',
|
|
1132
|
+
backgroundColor: 'transparent'
|
|
1133
|
+
},
|
|
1134
|
+
background: {
|
|
1135
|
+
top: 0,
|
|
1136
|
+
bottom: FIX_SHIFT,
|
|
1137
|
+
left: 0,
|
|
1138
|
+
right: 0,
|
|
1139
|
+
position: 'absolute',
|
|
1140
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
1141
|
+
},
|
|
1142
|
+
contentContainer: {
|
|
1143
|
+
flexDirection: 'column'
|
|
1144
|
+
},
|
|
1145
|
+
popoverContainer: {
|
|
1146
|
+
position: 'absolute',
|
|
1147
|
+
zIndex: 1000
|
|
1148
|
+
},
|
|
1149
|
+
popoverContent: {
|
|
1150
|
+
backgroundColor: '#096dd9',
|
|
1151
|
+
borderBottomColor: '#333438',
|
|
1152
|
+
borderRadius: DEFAULT_BORDER_RADIUS,
|
|
1153
|
+
overflow: 'hidden'
|
|
1154
|
+
},
|
|
1155
|
+
selectContainer: {
|
|
1156
|
+
backgroundColor: '#f2f2f2',
|
|
1157
|
+
position: 'absolute'
|
|
1158
|
+
},
|
|
1159
|
+
dropShadow: {
|
|
1160
|
+
shadowColor: 'black',
|
|
1161
|
+
shadowOffset: {
|
|
1162
|
+
width: 0,
|
|
1163
|
+
height: 2
|
|
1164
|
+
},
|
|
1165
|
+
shadowRadius: 2,
|
|
1166
|
+
shadowOpacity: 0.8
|
|
1167
|
+
},
|
|
1168
|
+
arrow: {
|
|
1169
|
+
position: 'absolute',
|
|
1170
|
+
borderTopColor: 'transparent',
|
|
1171
|
+
borderRightColor: 'transparent',
|
|
1172
|
+
borderBottomColor: 'transparent',
|
|
1173
|
+
borderLeftColor: 'transparent'
|
|
1174
|
+
},
|
|
1175
|
+
content: {
|
|
1176
|
+
padding: 10,
|
|
1177
|
+
backgroundColor: '#096dd9',
|
|
1178
|
+
justifyContent: 'center',
|
|
1179
|
+
alignItems: 'center'
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
TooltipApp.defaultDisplayArea = {};
|
|
1183
|
+
TooltipApp.PLACEMENT_OPTIONS = PLACEMENT_OPTIONS;
|
|
1184
|
+
TooltipApp.MODE = POPOVER_MODE;
|
|
1185
|
+
TooltipApp.defaultProps = {
|
|
1186
|
+
isVisible: true,
|
|
1187
|
+
skipAndroidStatusBar: false,
|
|
1188
|
+
mode: 'modal',
|
|
1189
|
+
placement: 'auto',
|
|
1190
|
+
verticalOffset: 0,
|
|
1191
|
+
popoverStyle: {},
|
|
1192
|
+
arrowStyle: {},
|
|
1193
|
+
backgroundStyle: {},
|
|
1194
|
+
onOpenStart: () => {},
|
|
1195
|
+
onOpenComplete: () => {},
|
|
1196
|
+
onRequestClose: () => {},
|
|
1197
|
+
onCloseStart: () => {},
|
|
1198
|
+
onCloseComplete: () => {}
|
|
1199
|
+
};
|
|
1200
|
+
TooltipApp.propTypes = {
|
|
1201
|
+
// display
|
|
1202
|
+
isVisible: PropTypes.bool,
|
|
1203
|
+
skipAndroidStatusBar: PropTypes.bool,
|
|
1204
|
+
mode: PropTypes.oneOf(['modal', 'view']),
|
|
1205
|
+
// anchor
|
|
1206
|
+
fromRect: PropTypes.objectOf(PropTypes.number),
|
|
1207
|
+
fromView: PropTypes.object,
|
|
1208
|
+
fromDynamicRect: PropTypes.func,
|
|
1209
|
+
// config
|
|
1210
|
+
displayArea: PropTypes.objectOf(PropTypes.number),
|
|
1211
|
+
placement: PropTypes.oneOf(['top', 'bottom', 'right', 'left', 'right', 'auto']),
|
|
1212
|
+
animationConfig: PropTypes.object,
|
|
1213
|
+
verticalOffset: PropTypes.number,
|
|
1214
|
+
// style
|
|
1215
|
+
popoverStyle: PropTypes.object,
|
|
1216
|
+
arrowStyle: PropTypes.object,
|
|
1217
|
+
backgroundStyle: PropTypes.object,
|
|
1218
|
+
// lifecycle
|
|
1219
|
+
onOpenStart: PropTypes.func,
|
|
1220
|
+
onOpenComplete: PropTypes.func,
|
|
1221
|
+
onRequestClose: PropTypes.func,
|
|
1222
|
+
onCloseStart: PropTypes.func,
|
|
1223
|
+
onCloseComplete: PropTypes.func,
|
|
1224
|
+
content: PropTypes.string,
|
|
1225
|
+
contentStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
1226
|
+
textContentStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array])
|
|
1227
|
+
};
|
|
1228
|
+
export default TooltipApp;
|
|
1229
|
+
//# sourceMappingURL=TooltipApp.js.map
|