@oxyhq/bloom 0.50.2 → 0.51.0
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/NOTICE +89 -0
- package/README.md +12 -7
- package/lib/commonjs/avatar-group/AvatarGroup.web.js +2 -1
- package/lib/commonjs/avatar-group/AvatarGroup.web.js.map +1 -1
- package/lib/commonjs/bottom-sheet/index.web.js +2 -1
- package/lib/commonjs/bottom-sheet/index.web.js.map +1 -1
- package/lib/commonjs/context-menu/index.web.js +3 -2
- package/lib/commonjs/context-menu/index.web.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.web.js +4 -3
- package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
- package/lib/commonjs/index.js +90 -83
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +116 -109
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/menu/index.web.js +2 -1
- package/lib/commonjs/menu/index.web.js.map +1 -1
- package/lib/commonjs/popover/index.web.js +3 -2
- package/lib/commonjs/popover/index.web.js.map +1 -1
- package/lib/commonjs/portal/index.js +4 -1
- package/lib/commonjs/portal/index.js.map +1 -1
- package/lib/commonjs/progressive-blur/index.js +79 -0
- package/lib/commonjs/progressive-blur/index.js.map +1 -0
- package/lib/commonjs/progressive-blur/index.web.js +67 -0
- package/lib/commonjs/progressive-blur/index.web.js.map +1 -0
- package/lib/commonjs/progressive-blur/shared.js +66 -0
- package/lib/commonjs/progressive-blur/shared.js.map +1 -0
- package/lib/commonjs/progressive-blur/types.js +6 -0
- package/lib/commonjs/progressive-blur/types.js.map +1 -0
- package/lib/commonjs/select/index.web.js +2 -1
- package/lib/commonjs/select/index.web.js.map +1 -1
- package/lib/commonjs/styles/web-view-style.js +26 -0
- package/lib/commonjs/styles/web-view-style.js.map +1 -0
- package/lib/commonjs/tab-bar/TabBarBase.js +415 -0
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -0
- package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js +83 -0
- package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js.map +1 -0
- package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js +119 -0
- package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
- package/lib/commonjs/tab-bar/expo-router/index.js +26 -0
- package/lib/commonjs/tab-bar/expo-router/index.js.map +1 -0
- package/lib/commonjs/tab-bar/glyph.js +43 -0
- package/lib/commonjs/tab-bar/glyph.js.map +1 -0
- package/lib/commonjs/tab-bar/glyph.native.js +55 -0
- package/lib/commonjs/tab-bar/glyph.native.js.map +1 -0
- package/lib/commonjs/tab-bar/index.js +65 -0
- package/lib/commonjs/tab-bar/index.js.map +1 -0
- package/lib/commonjs/tab-bar/index.web.js +67 -0
- package/lib/commonjs/tab-bar/index.web.js.map +1 -0
- package/lib/commonjs/tab-bar/minimize-context.js +127 -0
- package/lib/commonjs/tab-bar/minimize-context.js.map +1 -0
- package/lib/commonjs/tab-bar/shared.js +139 -0
- package/lib/commonjs/tab-bar/shared.js.map +1 -0
- package/lib/commonjs/tab-bar/surface.js +50 -0
- package/lib/commonjs/tab-bar/surface.js.map +1 -0
- package/lib/commonjs/tab-bar/surface.native.js +56 -0
- package/lib/commonjs/tab-bar/surface.native.js.map +1 -0
- package/lib/commonjs/tab-bar/surface.web.js +59 -0
- package/lib/commonjs/tab-bar/surface.web.js.map +1 -0
- package/lib/commonjs/tab-bar/types.js +6 -0
- package/lib/commonjs/tab-bar/types.js.map +1 -0
- package/lib/commonjs/toast/Positioner.js +117 -0
- package/lib/commonjs/toast/Positioner.js.map +1 -0
- package/lib/commonjs/toast/ToastContent.js +301 -0
- package/lib/commonjs/toast/ToastContent.js.map +1 -0
- package/lib/commonjs/toast/ToastHost.js +69 -0
- package/lib/commonjs/toast/ToastHost.js.map +1 -0
- package/lib/commonjs/toast/ToastHost.native.js +44 -0
- package/lib/commonjs/toast/ToastHost.native.js.map +1 -0
- package/lib/commonjs/toast/ToastIcon.js +57 -0
- package/lib/commonjs/toast/ToastIcon.js.map +1 -0
- package/lib/commonjs/toast/ToastRow.js +411 -0
- package/lib/commonjs/toast/ToastRow.js.map +1 -0
- package/lib/commonjs/toast/ToastSwipeHandler.js +189 -0
- package/lib/commonjs/toast/ToastSwipeHandler.js.map +1 -0
- package/lib/commonjs/toast/Toaster.js +205 -0
- package/lib/commonjs/toast/Toaster.js.map +1 -0
- package/lib/commonjs/toast/animations.js +274 -0
- package/lib/commonjs/toast/animations.js.map +1 -0
- package/lib/commonjs/toast/constants.js +56 -0
- package/lib/commonjs/toast/constants.js.map +1 -0
- package/lib/commonjs/toast/context.js +42 -0
- package/lib/commonjs/toast/context.js.map +1 -0
- package/lib/commonjs/toast/index.js +32 -126
- package/lib/commonjs/toast/index.js.map +1 -1
- package/lib/commonjs/toast/position-utils.js +115 -0
- package/lib/commonjs/toast/position-utils.js.map +1 -0
- package/lib/commonjs/toast/positioner-utils.js +141 -0
- package/lib/commonjs/toast/positioner-utils.js.map +1 -0
- package/lib/commonjs/toast/toast-comparator.js +28 -0
- package/lib/commonjs/toast/toast-comparator.js.map +1 -0
- package/lib/commonjs/toast/toast-fns.js +90 -0
- package/lib/commonjs/toast/toast-fns.js.map +1 -0
- package/lib/commonjs/toast/toast-store.js +352 -0
- package/lib/commonjs/toast/toast-store.js.map +1 -0
- package/lib/commonjs/toast/toast-timers.js +110 -0
- package/lib/commonjs/toast/toast-timers.js.map +1 -0
- package/lib/commonjs/toast/types.js +42 -0
- package/lib/commonjs/toast/types.js.map +1 -1
- package/lib/commonjs/toast/use-animated-target.js +57 -0
- package/lib/commonjs/toast/use-animated-target.js.map +1 -0
- package/lib/commonjs/toast/use-app-state.js +76 -0
- package/lib/commonjs/toast/use-app-state.js.map +1 -0
- package/lib/commonjs/toast/use-toast-colors.js +114 -0
- package/lib/commonjs/toast/use-toast-colors.js.map +1 -0
- package/lib/commonjs/toast/use-toast-position.js +40 -0
- package/lib/commonjs/toast/use-toast-position.js.map +1 -0
- package/lib/commonjs/tooltip/index.web.js +2 -1
- package/lib/commonjs/tooltip/index.web.js.map +1 -1
- package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
- package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroup.web.js +2 -1
- package/lib/module/avatar-group/AvatarGroup.web.js.map +1 -1
- package/lib/module/bottom-sheet/index.web.js +2 -1
- package/lib/module/bottom-sheet/index.web.js.map +1 -1
- package/lib/module/context-menu/index.web.js +3 -2
- package/lib/module/context-menu/index.web.js.map +1 -1
- package/lib/module/dialog/Dialog.web.js +4 -3
- package/lib/module/dialog/Dialog.web.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +3 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/menu/index.web.js +2 -1
- package/lib/module/menu/index.web.js.map +1 -1
- package/lib/module/popover/index.web.js +3 -2
- package/lib/module/popover/index.web.js.map +1 -1
- package/lib/module/portal/index.js +4 -1
- package/lib/module/portal/index.js.map +1 -1
- package/lib/module/progressive-blur/index.js +74 -0
- package/lib/module/progressive-blur/index.js.map +1 -0
- package/lib/module/progressive-blur/index.web.js +62 -0
- package/lib/module/progressive-blur/index.web.js.map +1 -0
- package/lib/module/progressive-blur/shared.js +60 -0
- package/lib/module/progressive-blur/shared.js.map +1 -0
- package/lib/module/progressive-blur/types.js +4 -0
- package/lib/module/progressive-blur/types.js.map +1 -0
- package/lib/module/select/index.web.js +2 -1
- package/lib/module/select/index.web.js.map +1 -1
- package/lib/module/styles/web-view-style.js +22 -0
- package/lib/module/styles/web-view-style.js.map +1 -0
- package/lib/module/tab-bar/TabBarBase.js +408 -0
- package/lib/module/tab-bar/TabBarBase.js.map +1 -0
- package/lib/module/tab-bar/expo-router/RouterTabBar.js +78 -0
- package/lib/module/tab-bar/expo-router/RouterTabBar.js.map +1 -0
- package/lib/module/tab-bar/expo-router/fading-tab-screen.js +113 -0
- package/lib/module/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
- package/lib/module/tab-bar/expo-router/index.js +15 -0
- package/lib/module/tab-bar/expo-router/index.js.map +1 -0
- package/lib/module/tab-bar/glyph.js +38 -0
- package/lib/module/tab-bar/glyph.js.map +1 -0
- package/lib/module/tab-bar/glyph.native.js +50 -0
- package/lib/module/tab-bar/glyph.native.js.map +1 -0
- package/lib/module/tab-bar/index.js +24 -0
- package/lib/module/tab-bar/index.js.map +1 -0
- package/lib/module/tab-bar/index.web.js +26 -0
- package/lib/module/tab-bar/index.web.js.map +1 -0
- package/lib/module/tab-bar/minimize-context.js +118 -0
- package/lib/module/tab-bar/minimize-context.js.map +1 -0
- package/lib/module/tab-bar/shared.js +132 -0
- package/lib/module/tab-bar/shared.js.map +1 -0
- package/lib/module/tab-bar/surface.js +44 -0
- package/lib/module/tab-bar/surface.js.map +1 -0
- package/lib/module/tab-bar/surface.native.js +50 -0
- package/lib/module/tab-bar/surface.native.js.map +1 -0
- package/lib/module/tab-bar/surface.web.js +53 -0
- package/lib/module/tab-bar/surface.web.js.map +1 -0
- package/lib/module/tab-bar/types.js +4 -0
- package/lib/module/tab-bar/types.js.map +1 -0
- package/lib/module/toast/Positioner.js +110 -0
- package/lib/module/toast/Positioner.js.map +1 -0
- package/lib/module/toast/ToastContent.js +295 -0
- package/lib/module/toast/ToastContent.js.map +1 -0
- package/lib/module/toast/ToastHost.js +63 -0
- package/lib/module/toast/ToastHost.js.map +1 -0
- package/lib/module/toast/ToastHost.native.js +38 -0
- package/lib/module/toast/ToastHost.native.js.map +1 -0
- package/lib/module/toast/ToastIcon.js +52 -0
- package/lib/module/toast/ToastIcon.js.map +1 -0
- package/lib/module/toast/ToastRow.js +407 -0
- package/lib/module/toast/ToastRow.js.map +1 -0
- package/lib/module/toast/ToastSwipeHandler.js +182 -0
- package/lib/module/toast/ToastSwipeHandler.js.map +1 -0
- package/lib/module/toast/Toaster.js +198 -0
- package/lib/module/toast/Toaster.js.map +1 -0
- package/lib/module/toast/animations.js +261 -0
- package/lib/module/toast/animations.js.map +1 -0
- package/lib/module/toast/constants.js +52 -0
- package/lib/module/toast/constants.js.map +1 -0
- package/lib/module/toast/context.js +34 -0
- package/lib/module/toast/context.js.map +1 -0
- package/lib/module/toast/index.js +27 -103
- package/lib/module/toast/index.js.map +1 -1
- package/lib/module/toast/position-utils.js +107 -0
- package/lib/module/toast/position-utils.js.map +1 -0
- package/lib/module/toast/positioner-utils.js +134 -0
- package/lib/module/toast/positioner-utils.js.map +1 -0
- package/lib/module/toast/toast-comparator.js +22 -0
- package/lib/module/toast/toast-comparator.js.map +1 -0
- package/lib/module/toast/toast-fns.js +85 -0
- package/lib/module/toast/toast-fns.js.map +1 -0
- package/lib/module/toast/toast-store.js +346 -0
- package/lib/module/toast/toast-store.js.map +1 -0
- package/lib/module/toast/toast-timers.js +104 -0
- package/lib/module/toast/toast-timers.js.map +1 -0
- package/lib/module/toast/types.js +38 -0
- package/lib/module/toast/types.js.map +1 -1
- package/lib/module/toast/use-animated-target.js +52 -0
- package/lib/module/toast/use-animated-target.js.map +1 -0
- package/lib/module/toast/use-app-state.js +70 -0
- package/lib/module/toast/use-app-state.js.map +1 -0
- package/lib/module/toast/use-toast-colors.js +109 -0
- package/lib/module/toast/use-toast-colors.js.map +1 -0
- package/lib/module/toast/use-toast-position.js +35 -0
- package/lib/module/toast/use-toast-position.js.map +1 -0
- package/lib/module/tooltip/index.web.js +2 -1
- package/lib/module/tooltip/index.web.js.map +1 -1
- package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
- package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
- package/lib/typescript/commonjs/avatar-group/AvatarGroup.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/portal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/progressive-blur/index.d.ts +23 -0
- package/lib/typescript/commonjs/progressive-blur/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/progressive-blur/index.web.d.ts +30 -0
- package/lib/typescript/commonjs/progressive-blur/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/progressive-blur/shared.d.ts +35 -0
- package/lib/typescript/commonjs/progressive-blur/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/progressive-blur/types.d.ts +21 -0
- package/lib/typescript/commonjs/progressive-blur/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles/web-view-style.d.ts +21 -0
- package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts +36 -0
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts +14 -0
- package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/glyph.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/glyph.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/index.d.ts +12 -0
- package/lib/typescript/commonjs/tab-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/index.web.d.ts +12 -0
- package/lib/typescript/commonjs/tab-bar/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts +51 -0
- package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/shared.d.ts +93 -0
- package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/surface.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/surface.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/surface.native.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/surface.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/surface.web.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/surface.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/types.d.ts +85 -0
- package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/Positioner.d.ts +21 -0
- package/lib/typescript/commonjs/toast/Positioner.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastContent.d.ts +14 -0
- package/lib/typescript/commonjs/toast/ToastContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastHost.d.ts +6 -0
- package/lib/typescript/commonjs/toast/ToastHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastHost.native.d.ts +6 -0
- package/lib/typescript/commonjs/toast/ToastHost.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastIcon.d.ts +9 -0
- package/lib/typescript/commonjs/toast/ToastIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastRow.d.ts +80 -0
- package/lib/typescript/commonjs/toast/ToastRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts +30 -0
- package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/Toaster.d.ts +19 -0
- package/lib/typescript/commonjs/toast/Toaster.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/animations.d.ts +62 -0
- package/lib/typescript/commonjs/toast/animations.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/constants.d.ts +39 -0
- package/lib/typescript/commonjs/toast/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/context.d.ts +19 -0
- package/lib/typescript/commonjs/toast/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/index.d.ts +23 -76
- package/lib/typescript/commonjs/toast/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/position-utils.d.ts +30 -0
- package/lib/typescript/commonjs/toast/position-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/positioner-utils.d.ts +72 -0
- package/lib/typescript/commonjs/toast/positioner-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/toast-comparator.d.ts +12 -0
- package/lib/typescript/commonjs/toast/toast-comparator.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/toast-fns.d.ts +3 -0
- package/lib/typescript/commonjs/toast/toast-fns.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/toast-store.d.ts +52 -0
- package/lib/typescript/commonjs/toast/toast-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/toast-timers.d.ts +24 -0
- package/lib/typescript/commonjs/toast/toast-timers.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/types.d.ts +222 -5
- package/lib/typescript/commonjs/toast/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/use-animated-target.d.ts +7 -0
- package/lib/typescript/commonjs/toast/use-animated-target.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/use-app-state.d.ts +18 -0
- package/lib/typescript/commonjs/toast/use-app-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/use-toast-colors.d.ts +22 -0
- package/lib/typescript/commonjs/toast/use-toast-colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast/use-toast-position.d.ts +37 -0
- package/lib/typescript/commonjs/toast/use-toast-position.d.ts.map +1 -0
- package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
- package/lib/typescript/module/avatar-group/AvatarGroup.web.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/index.web.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +2 -1
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/module/portal/index.d.ts.map +1 -1
- package/lib/typescript/module/progressive-blur/index.d.ts +23 -0
- package/lib/typescript/module/progressive-blur/index.d.ts.map +1 -0
- package/lib/typescript/module/progressive-blur/index.web.d.ts +30 -0
- package/lib/typescript/module/progressive-blur/index.web.d.ts.map +1 -0
- package/lib/typescript/module/progressive-blur/shared.d.ts +35 -0
- package/lib/typescript/module/progressive-blur/shared.d.ts.map +1 -0
- package/lib/typescript/module/progressive-blur/types.d.ts +21 -0
- package/lib/typescript/module/progressive-blur/types.d.ts.map +1 -0
- package/lib/typescript/module/select/index.web.d.ts.map +1 -1
- package/lib/typescript/module/styles/web-view-style.d.ts +21 -0
- package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts +36 -0
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
- package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
- package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/expo-router/index.d.ts +14 -0
- package/lib/typescript/module/tab-bar/expo-router/index.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/glyph.d.ts +6 -0
- package/lib/typescript/module/tab-bar/glyph.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/glyph.native.d.ts +6 -0
- package/lib/typescript/module/tab-bar/glyph.native.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/index.d.ts +12 -0
- package/lib/typescript/module/tab-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/index.web.d.ts +12 -0
- package/lib/typescript/module/tab-bar/index.web.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/minimize-context.d.ts +51 -0
- package/lib/typescript/module/tab-bar/minimize-context.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/shared.d.ts +93 -0
- package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/surface.d.ts +6 -0
- package/lib/typescript/module/tab-bar/surface.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/surface.native.d.ts +6 -0
- package/lib/typescript/module/tab-bar/surface.native.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/surface.web.d.ts +6 -0
- package/lib/typescript/module/tab-bar/surface.web.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/types.d.ts +85 -0
- package/lib/typescript/module/tab-bar/types.d.ts.map +1 -0
- package/lib/typescript/module/toast/Positioner.d.ts +21 -0
- package/lib/typescript/module/toast/Positioner.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastContent.d.ts +14 -0
- package/lib/typescript/module/toast/ToastContent.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastHost.d.ts +6 -0
- package/lib/typescript/module/toast/ToastHost.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastHost.native.d.ts +6 -0
- package/lib/typescript/module/toast/ToastHost.native.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastIcon.d.ts +9 -0
- package/lib/typescript/module/toast/ToastIcon.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastRow.d.ts +80 -0
- package/lib/typescript/module/toast/ToastRow.d.ts.map +1 -0
- package/lib/typescript/module/toast/ToastSwipeHandler.d.ts +30 -0
- package/lib/typescript/module/toast/ToastSwipeHandler.d.ts.map +1 -0
- package/lib/typescript/module/toast/Toaster.d.ts +19 -0
- package/lib/typescript/module/toast/Toaster.d.ts.map +1 -0
- package/lib/typescript/module/toast/animations.d.ts +62 -0
- package/lib/typescript/module/toast/animations.d.ts.map +1 -0
- package/lib/typescript/module/toast/constants.d.ts +39 -0
- package/lib/typescript/module/toast/constants.d.ts.map +1 -0
- package/lib/typescript/module/toast/context.d.ts +19 -0
- package/lib/typescript/module/toast/context.d.ts.map +1 -0
- package/lib/typescript/module/toast/index.d.ts +23 -76
- package/lib/typescript/module/toast/index.d.ts.map +1 -1
- package/lib/typescript/module/toast/position-utils.d.ts +30 -0
- package/lib/typescript/module/toast/position-utils.d.ts.map +1 -0
- package/lib/typescript/module/toast/positioner-utils.d.ts +72 -0
- package/lib/typescript/module/toast/positioner-utils.d.ts.map +1 -0
- package/lib/typescript/module/toast/toast-comparator.d.ts +12 -0
- package/lib/typescript/module/toast/toast-comparator.d.ts.map +1 -0
- package/lib/typescript/module/toast/toast-fns.d.ts +3 -0
- package/lib/typescript/module/toast/toast-fns.d.ts.map +1 -0
- package/lib/typescript/module/toast/toast-store.d.ts +52 -0
- package/lib/typescript/module/toast/toast-store.d.ts.map +1 -0
- package/lib/typescript/module/toast/toast-timers.d.ts +24 -0
- package/lib/typescript/module/toast/toast-timers.d.ts.map +1 -0
- package/lib/typescript/module/toast/types.d.ts +222 -5
- package/lib/typescript/module/toast/types.d.ts.map +1 -1
- package/lib/typescript/module/toast/use-animated-target.d.ts +7 -0
- package/lib/typescript/module/toast/use-animated-target.d.ts.map +1 -0
- package/lib/typescript/module/toast/use-app-state.d.ts +18 -0
- package/lib/typescript/module/toast/use-app-state.d.ts.map +1 -0
- package/lib/typescript/module/toast/use-toast-colors.d.ts +22 -0
- package/lib/typescript/module/toast/use-toast-colors.d.ts.map +1 -0
- package/lib/typescript/module/toast/use-toast-position.d.ts +37 -0
- package/lib/typescript/module/toast/use-toast-position.d.ts.map +1 -0
- package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
- package/package.json +63 -25
- package/src/__tests__/TabBar.test.tsx +342 -0
- package/src/__tests__/TabBarReanimatedDeps.test.ts +130 -0
- package/src/__tests__/TabBarWebFork.test.ts +197 -0
- package/src/__tests__/ToastContent.test.tsx +192 -0
- package/src/__tests__/ToastHostWebFork.test.ts +155 -0
- package/src/__tests__/Toaster.test.tsx +527 -0
- package/src/__tests__/animated-style-deps.test.ts +156 -0
- package/src/__tests__/toast-animations.test.ts +98 -0
- package/src/__tests__/toast-comparator.test.ts +131 -0
- package/src/__tests__/toast-enter-driver.test.ts +147 -0
- package/src/__tests__/toast-fns.test.ts +240 -0
- package/src/__tests__/toast-position-utils.test.ts +259 -0
- package/src/__tests__/toast-positioner-utils.test.ts +214 -0
- package/src/__tests__/toast-store.test.ts +622 -0
- package/src/__tests__/toast-timers.test.ts +163 -0
- package/src/__tests__/use-animated-target.test.tsx +60 -0
- package/src/__tests__/use-app-state.test.tsx +127 -0
- package/src/__tests__/use-toast-colors.test.tsx +189 -0
- package/src/__tests__/web-position-fixed.test.ts +70 -0
- package/src/avatar-group/AvatarGroup.web.tsx +2 -1
- package/src/bottom-sheet/index.web.tsx +3 -2
- package/src/context-menu/index.web.tsx +3 -2
- package/src/dialog/Dialog.web.tsx +4 -3
- package/src/index.ts +4 -1
- package/src/index.web.ts +4 -1
- package/src/menu/index.web.tsx +2 -1
- package/src/popover/index.web.tsx +3 -2
- package/src/portal/index.tsx +4 -1
- package/src/progressive-blur/index.tsx +78 -0
- package/src/progressive-blur/index.web.tsx +65 -0
- package/src/progressive-blur/shared.ts +81 -0
- package/src/progressive-blur/types.ts +21 -0
- package/src/select/index.web.tsx +2 -1
- package/src/styles/web-view-style.ts +21 -0
- package/src/tab-bar/TabBar.stories.tsx +217 -0
- package/src/tab-bar/TabBarBase.tsx +517 -0
- package/src/tab-bar/expo-router/RouterTabBar.tsx +80 -0
- package/src/tab-bar/expo-router/fading-tab-screen.tsx +109 -0
- package/src/tab-bar/expo-router/index.ts +13 -0
- package/src/tab-bar/glyph.native.tsx +46 -0
- package/src/tab-bar/glyph.tsx +31 -0
- package/src/tab-bar/index.ts +32 -0
- package/src/tab-bar/index.web.tsx +34 -0
- package/src/tab-bar/minimize-context.tsx +117 -0
- package/src/tab-bar/shared.ts +159 -0
- package/src/tab-bar/surface.native.tsx +60 -0
- package/src/tab-bar/surface.tsx +47 -0
- package/src/tab-bar/surface.web.tsx +56 -0
- package/src/tab-bar/types.ts +88 -0
- package/src/toast/Positioner.tsx +121 -0
- package/src/toast/Toast.stories.tsx +292 -65
- package/src/toast/ToastContent.tsx +405 -0
- package/src/toast/ToastHost.native.tsx +31 -0
- package/src/toast/ToastHost.tsx +67 -0
- package/src/toast/ToastIcon.tsx +55 -0
- package/src/toast/ToastRow.tsx +485 -0
- package/src/toast/ToastSwipeHandler.tsx +222 -0
- package/src/toast/Toaster.tsx +259 -0
- package/src/toast/animations.ts +313 -0
- package/src/toast/constants.ts +76 -0
- package/src/toast/context.tsx +44 -0
- package/src/toast/index.tsx +47 -123
- package/src/toast/position-utils.ts +149 -0
- package/src/toast/positioner-utils.ts +142 -0
- package/src/toast/toast-comparator.ts +41 -0
- package/src/toast/toast-fns.ts +104 -0
- package/src/toast/toast-store.ts +432 -0
- package/src/toast/toast-timers.ts +124 -0
- package/src/toast/types.ts +301 -5
- package/src/toast/use-animated-target.ts +61 -0
- package/src/toast/use-app-state.ts +77 -0
- package/src/toast/use-toast-colors.ts +133 -0
- package/src/toast/use-toast-position.ts +46 -0
- package/src/tooltip/index.web.tsx +2 -1
- package/src/zoomable-image-gallery/ZoomableImageGallery.stories.tsx +134 -0
- package/src/zoomable-image-gallery/ZoomableImageGallery.tsx +50 -27
- package/lib/commonjs/toast/Toast.js +0 -267
- package/lib/commonjs/toast/Toast.js.map +0 -1
- package/lib/commonjs/toast/const.js +0 -8
- package/lib/commonjs/toast/const.js.map +0 -1
- package/lib/commonjs/toast/index.web.js +0 -114
- package/lib/commonjs/toast/index.web.js.map +0 -1
- package/lib/commonjs/toast/sonner/index.js +0 -9
- package/lib/commonjs/toast/sonner/index.js.map +0 -1
- package/lib/commonjs/toast/sonner/index.web.js +0 -9
- package/lib/commonjs/toast/sonner/index.web.js.map +0 -1
- package/lib/module/toast/Toast.js +0 -258
- package/lib/module/toast/Toast.js.map +0 -1
- package/lib/module/toast/const.js +0 -4
- package/lib/module/toast/const.js.map +0 -1
- package/lib/module/toast/index.web.js +0 -74
- package/lib/module/toast/index.web.js.map +0 -1
- package/lib/module/toast/sonner/index.js +0 -5
- package/lib/module/toast/sonner/index.js.map +0 -1
- package/lib/module/toast/sonner/index.web.js +0 -5
- package/lib/module/toast/sonner/index.web.js.map +0 -1
- package/lib/typescript/commonjs/toast/Toast.d.ts +0 -23
- package/lib/typescript/commonjs/toast/Toast.d.ts.map +0 -1
- package/lib/typescript/commonjs/toast/const.d.ts +0 -2
- package/lib/typescript/commonjs/toast/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/toast/index.web.d.ts +0 -29
- package/lib/typescript/commonjs/toast/index.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/toast/sonner/index.d.ts +0 -2
- package/lib/typescript/commonjs/toast/sonner/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/toast/sonner/index.web.d.ts +0 -2
- package/lib/typescript/commonjs/toast/sonner/index.web.d.ts.map +0 -1
- package/lib/typescript/module/toast/Toast.d.ts +0 -23
- package/lib/typescript/module/toast/Toast.d.ts.map +0 -1
- package/lib/typescript/module/toast/const.d.ts +0 -2
- package/lib/typescript/module/toast/const.d.ts.map +0 -1
- package/lib/typescript/module/toast/index.web.d.ts +0 -29
- package/lib/typescript/module/toast/index.web.d.ts.map +0 -1
- package/lib/typescript/module/toast/sonner/index.d.ts +0 -2
- package/lib/typescript/module/toast/sonner/index.d.ts.map +0 -1
- package/lib/typescript/module/toast/sonner/index.web.d.ts +0 -2
- package/lib/typescript/module/toast/sonner/index.web.d.ts.map +0 -1
- package/src/toast/Toast.tsx +0 -269
- package/src/toast/const.ts +0 -1
- package/src/toast/index.web.tsx +0 -101
- package/src/toast/sonner/index.ts +0 -3
- package/src/toast/sonner/index.web.ts +0 -3
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from sonner-native v0.26.4 — src/positioner-utils.ts
|
|
3
|
+
* (MIT © Gunnar Torfi Steinarsson). See the top-level NOTICE.
|
|
4
|
+
*
|
|
5
|
+
* Pure geometry for the per-position container: `position: 'absolute'` is correct
|
|
6
|
+
* here because the toast host provides a viewport-sized containing block (see
|
|
7
|
+
* `ToastHost`), which is what keeps this module platform-agnostic.
|
|
8
|
+
*
|
|
9
|
+
* INVARIANT: a row must never be laid out outside its container's box. See
|
|
10
|
+
* `getContainerStyle`.
|
|
11
|
+
*/
|
|
12
|
+
import type { ViewStyle } from 'react-native';
|
|
13
|
+
import type { ToastPosition } from './types';
|
|
14
|
+
/**
|
|
15
|
+
* ALL FOUR EDGES ARE PINNED, for every position. `Positioner` then overrides the
|
|
16
|
+
* one anchored edge with `getInsetValues`, so the container still spans the host in
|
|
17
|
+
* the other direction and always has a REAL HEIGHT.
|
|
18
|
+
*
|
|
19
|
+
* That is the whole point. This used to be `{position:'absolute', width:'100%'}`
|
|
20
|
+
* plus an inset of only `{bottom: N}` — and since every row inside is ITSELF
|
|
21
|
+
* `position:'absolute'`, the container had no in-flow content and measured ZERO
|
|
22
|
+
* HEIGHT, so every row was laid out entirely OUTSIDE its parent's box. Measured on
|
|
23
|
+
* web: a bottom-center container was a 0-height line at y=884 with its rows at
|
|
24
|
+
* y=784 and y=838, i.e. at NEGATIVE offsets (`top: -46px`) from a zero-height
|
|
25
|
+
* parent. The DOM does not clip, so web rendered it anyway; Android does not
|
|
26
|
+
* tolerate it, and `bottom-center` — the DEFAULT position — painted nothing at all.
|
|
27
|
+
*
|
|
28
|
+
* Two things that look like they would work here and do NOT:
|
|
29
|
+
* - `justifyContent` cannot place the rows. They are absolutely positioned, so it
|
|
30
|
+
* has no effect on them; the row's own anchor (`top: 0` / `bottom: 0` /
|
|
31
|
+
* `top: '50%'`) does the placing.
|
|
32
|
+
* - PADDING cannot supply the edge offset. In CSS an absolutely positioned child
|
|
33
|
+
* resolves against its ancestor's PADDING BOX, so padding does not inset it —
|
|
34
|
+
* while Yoga DOES inset it. Padding would have moved the rows on native and left
|
|
35
|
+
* them at the screen edge on web. The offset therefore stays an inset on the
|
|
36
|
+
* container itself, which behaves identically on both.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getContainerStyle: () => ViewStyle;
|
|
39
|
+
/**
|
|
40
|
+
* How far the stack sits from its screen edge. A falsy `offset` means "derive from
|
|
41
|
+
* the safe area": `inset + 8`, or 16 when there is no inset.
|
|
42
|
+
*
|
|
43
|
+
* `Positioner` applies this over ONE of `getContainerStyle`'s four pinned edges;
|
|
44
|
+
* `calculateOutsidePressableArea` reads the same numbers as a plain edge distance.
|
|
45
|
+
*/
|
|
46
|
+
export declare const getInsetValues: ({ position, offset, safeAreaInsets, }: {
|
|
47
|
+
position: ToastPosition;
|
|
48
|
+
offset?: number;
|
|
49
|
+
safeAreaInsets?: {
|
|
50
|
+
top: number;
|
|
51
|
+
bottom: number;
|
|
52
|
+
};
|
|
53
|
+
}) => {
|
|
54
|
+
top?: number;
|
|
55
|
+
bottom?: number;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The area OUTSIDE the toast stack, used to collapse an expanded stack on press.
|
|
59
|
+
* It deliberately stops short of the stack itself so a press on a toast still
|
|
60
|
+
* reaches the toast.
|
|
61
|
+
*/
|
|
62
|
+
export declare const calculateOutsidePressableArea: ({ position, toastHeights, gap, visibleToasts, insetValues, }: {
|
|
63
|
+
position: ToastPosition;
|
|
64
|
+
toastHeights: Record<string | number, number>;
|
|
65
|
+
gap: number;
|
|
66
|
+
visibleToasts: number;
|
|
67
|
+
insetValues: {
|
|
68
|
+
top?: number;
|
|
69
|
+
bottom?: number;
|
|
70
|
+
};
|
|
71
|
+
}) => ViewStyle;
|
|
72
|
+
//# sourceMappingURL=positioner-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positioner-utils.d.ts","sourceRoot":"","sources":["../../../../src/toast/positioner-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,iBAAiB,QAAO,SASnC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,uCAI5B;IACD,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD,KAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAclC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,8DAM3C;IACD,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,KAAG,SA2CH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from sonner-native v0.26.4 — src/toast-comparator.ts
|
|
3
|
+
* (MIT © Gunnar Torfi Steinarsson). See the top-level NOTICE.
|
|
4
|
+
*
|
|
5
|
+
* Drives `autoWiggleOnUpdate: 'toast-change'`: an update-by-id only wiggles the
|
|
6
|
+
* row when something a user can actually see changed. `description` is
|
|
7
|
+
* deliberately typed `string` (not `ReactNode`) so this stays a value compare —
|
|
8
|
+
* a ReactNode would differ on every parent re-render and wiggle forever.
|
|
9
|
+
*/
|
|
10
|
+
import { type ToastProps } from './types';
|
|
11
|
+
export declare const areToastsEqual: (a: ToastProps, b: ToastProps) => boolean;
|
|
12
|
+
//# sourceMappingURL=toast-comparator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-comparator.d.ts","sourceRoot":"","sources":["../../../../src/toast/toast-comparator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAUzD,eAAO,MAAM,cAAc,GAAI,GAAG,UAAU,EAAE,GAAG,UAAU,YAqB1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-fns.d.ts","sourceRoot":"","sources":["../../../../src/toast/toast-fns.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,OAAO,EAIR,MAAM,SAAS,CAAC;AAuCjB,eAAO,MAAM,KAAK,EAAE,OA6CnB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from sonner-native v0.26.4 — src/toast-store.ts
|
|
3
|
+
* (MIT © Gunnar Torfi Steinarsson). See the top-level NOTICE.
|
|
4
|
+
*
|
|
5
|
+
* The auto-close timers were lifted out into `toast-timers.ts`. Everything this
|
|
6
|
+
* module touches is pure JavaScript — `react` (for `createRef`), `./constants`,
|
|
7
|
+
* `./toast-comparator`, `./toast-timers` and type-only `./types`. Keep it that
|
|
8
|
+
* way: nothing here may reach React Native or Reanimated, or the store stops
|
|
9
|
+
* being testable without a platform.
|
|
10
|
+
*/
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
import type { ToastProps, ToastRef, ToastStoreConfig, ToastStoreState } from './types';
|
|
13
|
+
type Subscriber = () => void;
|
|
14
|
+
declare class ToastStore {
|
|
15
|
+
private state;
|
|
16
|
+
private subscribers;
|
|
17
|
+
private config;
|
|
18
|
+
private timers;
|
|
19
|
+
private hideOverlayTimeout;
|
|
20
|
+
private pendingPromises;
|
|
21
|
+
private collapseCooldown;
|
|
22
|
+
private collapseCooldownTimeout;
|
|
23
|
+
subscribe: (callback: Subscriber) => () => void;
|
|
24
|
+
/** Stable while nothing has changed — safe as a `useSyncExternalStore` snapshot. */
|
|
25
|
+
getSnapshot: () => ToastStoreState;
|
|
26
|
+
setConfig: (config: ToastStoreConfig) => void;
|
|
27
|
+
private notify;
|
|
28
|
+
private cloneIndex;
|
|
29
|
+
private resolveDuration;
|
|
30
|
+
private scheduleAutoClose;
|
|
31
|
+
pauseTimer: (id: string | number) => void;
|
|
32
|
+
resumeTimer: (id: string | number) => void;
|
|
33
|
+
pauseAllTimers: () => void;
|
|
34
|
+
resumeAllTimers: () => void;
|
|
35
|
+
private handlePromise;
|
|
36
|
+
addToast: (options: Omit<ToastProps, "id" | "numberOfToasts" | "index" | "orderedToastIds"> & {
|
|
37
|
+
id?: string | number;
|
|
38
|
+
}) => string | number;
|
|
39
|
+
/** Omit `id` to dismiss every toast. */
|
|
40
|
+
dismissToast: (id: string | number | undefined, origin?: "onDismiss" | "onAutoClose") => string | number | undefined;
|
|
41
|
+
/** Keeps the overlay mounted until the last exit animation has finished. */
|
|
42
|
+
private scheduleHideOverlay;
|
|
43
|
+
wiggleToast: (id: string | number) => void;
|
|
44
|
+
getToastRef: (id: string | number) => React.RefObject<ToastRef | null> | undefined;
|
|
45
|
+
setToastHeight: (id: string | number, height: number) => void;
|
|
46
|
+
expand: () => void;
|
|
47
|
+
collapse: () => void;
|
|
48
|
+
toggleExpand: () => void;
|
|
49
|
+
}
|
|
50
|
+
export declare const toastStore: ToastStore;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=toast-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../../src/toast/toast-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,KAAK,UAAU,GAAG,MAAM,IAAI,CAAC;AAK7B,cAAM,UAAU;IACd,OAAO,CAAC,KAAK,CAQX;IAEF,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,kBAAkB,CAA8C;IACxE,OAAO,CAAC,eAAe,CAA8B;IACrD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,uBAAuB,CAA8C;IAE7E,SAAS,GAAI,UAAU,UAAU,gBAK/B;IAEF,oFAAoF;IACpF,WAAW,QAAO,eAAe,CAE/B;IAEF,SAAS,GAAI,QAAQ,gBAAgB,UAEnC;IAEF,OAAO,CAAC,MAAM,CAEZ;IAEF,OAAO,CAAC,UAAU,CAEhB;IAEF,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,iBAAiB,CAQvB;IAEF,UAAU,GAAI,IAAI,MAAM,GAAG,MAAM,UAE/B;IAEF,WAAW,GAAI,IAAI,MAAM,GAAG,MAAM,UAEhC;IAEF,cAAc,aAEZ;IAEF,eAAe,aAEb;IAEF,OAAO,CAAC,aAAa,CAwCnB;IAEF,QAAQ,GACN,SAAS,IAAI,CACX,UAAU,EACV,IAAI,GAAG,gBAAgB,GAAG,OAAO,GAAG,iBAAiB,CACtD,GAAG;QACF,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACtB,KACA,MAAM,GAAG,MAAM,CAkHhB;IAEF,wCAAwC;IACxC,YAAY,GACV,IAAI,MAAM,GAAG,MAAM,GAAG,SAAS,EAC/B,SAAS,WAAW,GAAG,aAAa,KACnC,MAAM,GAAG,MAAM,GAAG,SAAS,CAsE5B;IAEF,4EAA4E;IAC5E,OAAO,CAAC,mBAAmB,CAazB;IAEF,WAAW,GAAI,IAAI,MAAM,GAAG,MAAM,UAahC;IAEF,WAAW,GACT,IAAI,MAAM,GAAG,MAAM,KAClB,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,SAAS,CAE7C;IAEF,cAAc,GAAI,IAAI,MAAM,GAAG,MAAM,EAAE,QAAQ,MAAM,UAWnD;IAEF,MAAM,aAOJ;IAEF,QAAQ,aAiBN;IAEF,YAAY,aAUV;CACH;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ToastTimerRegistry {
|
|
2
|
+
private timers;
|
|
3
|
+
/**
|
|
4
|
+
* Non-finite durations (`Infinity`, `NaN`) mean "never auto-close" — starting a
|
|
5
|
+
* timer for them would either be pointless or fire immediately.
|
|
6
|
+
*/
|
|
7
|
+
start: ({ id, duration, onComplete, }: {
|
|
8
|
+
id: string | number;
|
|
9
|
+
duration: number;
|
|
10
|
+
onComplete: () => void;
|
|
11
|
+
}) => void;
|
|
12
|
+
clear: (id: string | number) => void;
|
|
13
|
+
clearAll: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Banks the time left. The enter animation's head start is intentionally not
|
|
16
|
+
* subtracted, so a paused toast keeps up to `ENTERING_ANIMATION_DURATION` of
|
|
17
|
+
* slack — the same as upstream.
|
|
18
|
+
*/
|
|
19
|
+
pause: (id: string | number) => void;
|
|
20
|
+
resume: (id: string | number) => void;
|
|
21
|
+
pauseAll: () => void;
|
|
22
|
+
resumeAll: () => void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=toast-timers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-timers.d.ts","sourceRoot":"","sources":["../../../../src/toast/toast-timers.ts"],"names":[],"mappings":"AAyBA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAA0C;IAExD;;;OAGG;IACH,KAAK,GAAI,+BAIN;QACD,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,IAAI,CAAC;KACxB,UAqBC;IAEF,KAAK,GAAI,IAAI,MAAM,GAAG,MAAM,UAO1B;IAEF,QAAQ,aAKN;IAEF;;;;OAIG;IACH,KAAK,GAAI,IAAI,MAAM,GAAG,MAAM,UAQ1B;IAEF,MAAM,GAAI,IAAI,MAAM,GAAG,MAAM,UAgB3B;IAEF,QAAQ,aAIN;IAEF,SAAS,aAIP;CACH"}
|
|
@@ -1,10 +1,227 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Derived from sonner-native v0.26.4 — src/types.ts
|
|
3
|
+
* (MIT © Gunnar Torfi Steinarsson), absorbed into Bloom's own toast API.
|
|
4
|
+
* See the top-level NOTICE for full attribution.
|
|
5
|
+
*/
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
import type { TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
8
|
+
import type { BaseAnimationBuilder, EntryExitAnimationFunction, ReanimatedKeyframe } from 'react-native-reanimated';
|
|
9
|
+
export type ToastPosition = 'top-center' | 'bottom-center' | 'center';
|
|
10
|
+
export type ToastSwipeDirection = 'left' | 'up';
|
|
11
|
+
/**
|
|
12
|
+
* Engine-internal variant. The PUBLIC knob is `ToastOptions['type']`; the single
|
|
13
|
+
* translation between the two lives in `toast-fns.ts`. `undefined` means "no
|
|
14
|
+
* variant" — a plain `toast('Saved')` renders with neutral surface colors.
|
|
15
|
+
*/
|
|
16
|
+
export type ToastVariant = 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
17
|
+
/** Public variant knob. `'default'` maps to an ABSENT `ToastVariant`. */
|
|
18
|
+
export type ToastType = 'default' | 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
19
|
+
/**
|
|
20
|
+
* Light/dark is owned by `BloomThemeProvider`/`BloomColorScope`, so this is
|
|
21
|
+
* accepted and documented as a no-op rather than dropped from the surface.
|
|
22
|
+
*/
|
|
23
|
+
export type ToastTheme = 'light' | 'dark' | 'system';
|
|
24
|
+
export type AutoWiggle = 'never' | 'toast-change' | 'always';
|
|
25
|
+
export type ToastAction = {
|
|
26
|
+
label: string;
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
};
|
|
29
|
+
export type ToastStyles = {
|
|
30
|
+
toastContainer?: ViewStyle;
|
|
31
|
+
toast?: ViewStyle;
|
|
32
|
+
toastContent?: ViewStyle;
|
|
33
|
+
textContainer?: ViewStyle;
|
|
34
|
+
title?: TextStyle;
|
|
35
|
+
description?: TextStyle;
|
|
36
|
+
buttons?: ViewStyle;
|
|
37
|
+
closeButton?: ViewStyle;
|
|
38
|
+
closeButtonIcon?: ViewStyle;
|
|
39
|
+
};
|
|
40
|
+
export type ToastEntryExitAnimation = EntryExitAnimationFunction | BaseAnimationBuilder | typeof BaseAnimationBuilder | ReanimatedKeyframe | 'default';
|
|
41
|
+
export type ToastAnimation = {
|
|
42
|
+
enter?: ToastEntryExitAnimation;
|
|
43
|
+
exit?: ToastEntryExitAnimation;
|
|
44
|
+
};
|
|
45
|
+
export type PromiseStyles = {
|
|
46
|
+
loading?: ToastStyles;
|
|
47
|
+
success?: ToastStyles;
|
|
48
|
+
error?: ToastStyles;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The store's view of a pending promise toast. Non-generic on purpose: `promise`
|
|
52
|
+
* already resolves to the SUCCESS TITLE because `toast.promise` maps the caller's
|
|
53
|
+
* promise through their `success` formatter at the boundary. That is what lets
|
|
54
|
+
* the store await it without casting an `unknown` result back to the caller's
|
|
55
|
+
* type (upstream keeps `success` here and casts).
|
|
56
|
+
*/
|
|
57
|
+
export type PromiseOptions = {
|
|
58
|
+
promise: Promise<string>;
|
|
59
|
+
loading: string;
|
|
60
|
+
error: ((error: unknown) => string) | string;
|
|
61
|
+
styles?: PromiseStyles;
|
|
62
|
+
};
|
|
63
|
+
type StyleProps = {
|
|
64
|
+
unstyled?: boolean;
|
|
65
|
+
style?: ViewStyle;
|
|
66
|
+
styles?: ToastStyles;
|
|
67
|
+
backgroundComponent?: React.ReactNode;
|
|
68
|
+
};
|
|
69
|
+
export type ToastProps = StyleProps & {
|
|
70
|
+
id: string | number;
|
|
71
|
+
index: number;
|
|
72
|
+
title: string;
|
|
73
|
+
/** Optional so a variant-less toast stays variant-less. See `ToastVariant`. */
|
|
74
|
+
variant?: ToastVariant;
|
|
75
|
+
numberOfToasts: number;
|
|
76
|
+
orderedToastIds: Array<string | number>;
|
|
77
|
+
jsx?: React.ReactNode;
|
|
78
|
+
description?: string;
|
|
79
|
+
invert?: boolean;
|
|
80
|
+
important?: boolean;
|
|
3
81
|
duration?: number;
|
|
82
|
+
position?: ToastPosition;
|
|
83
|
+
animation?: ToastAnimation;
|
|
4
84
|
dismissible?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
85
|
+
icon?: React.ReactNode;
|
|
86
|
+
action?: ToastAction | React.ReactNode;
|
|
87
|
+
cancel?: ToastAction | React.ReactNode;
|
|
88
|
+
close?: React.ReactNode;
|
|
89
|
+
closeButton?: boolean;
|
|
90
|
+
richColors?: boolean;
|
|
91
|
+
onDismiss?: (id: string | number) => void;
|
|
92
|
+
onAutoClose?: (id: string | number) => void;
|
|
93
|
+
promiseOptions?: PromiseOptions;
|
|
94
|
+
actionButtonStyle?: ViewStyle;
|
|
95
|
+
actionButtonTextStyle?: TextStyle;
|
|
96
|
+
cancelButtonStyle?: ViewStyle;
|
|
97
|
+
cancelButtonTextStyle?: TextStyle;
|
|
7
98
|
onPress?: () => void;
|
|
8
|
-
|
|
99
|
+
allowFontScaling?: boolean;
|
|
100
|
+
maxFontSizeMultiplier?: number;
|
|
101
|
+
};
|
|
102
|
+
export type ToastRef = {
|
|
103
|
+
wiggle: () => void;
|
|
104
|
+
};
|
|
105
|
+
/** Everything a caller may pass alongside the toast content. */
|
|
106
|
+
export type ToastOptions = Omit<ToastProps, 'id' | 'index' | 'title' | 'jsx' | 'variant' | 'numberOfToasts' | 'orderedToastIds' | 'promiseOptions'> & {
|
|
107
|
+
id?: string | number;
|
|
108
|
+
type?: ToastType;
|
|
109
|
+
};
|
|
110
|
+
export type PromiseToastOptions<T> = Omit<ToastOptions, 'type'> & {
|
|
111
|
+
loading: string;
|
|
112
|
+
success: (result: T) => string;
|
|
113
|
+
error: ((error: unknown) => string) | string;
|
|
114
|
+
styles?: PromiseStyles;
|
|
115
|
+
};
|
|
116
|
+
export interface ToastFn {
|
|
117
|
+
(content: React.ReactNode, options?: ToastOptions): string | number;
|
|
118
|
+
success: (content: React.ReactNode, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
119
|
+
error: (content: React.ReactNode, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
120
|
+
warning: (content: React.ReactNode, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
121
|
+
info: (content: React.ReactNode, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
122
|
+
loading: (content: React.ReactNode, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
123
|
+
custom: (jsx: React.ReactElement, options?: Omit<ToastOptions, 'type'>) => string | number;
|
|
124
|
+
promise: <T>(promise: Promise<T>, options: PromiseToastOptions<T>) => string | number;
|
|
125
|
+
dismiss: (id?: string | number) => string | number | undefined;
|
|
126
|
+
wiggle: (id: string | number) => void;
|
|
9
127
|
}
|
|
128
|
+
export type ToasterProps = Omit<StyleProps, 'style'> & {
|
|
129
|
+
duration?: number;
|
|
130
|
+
/** No-op — light/dark comes from `BloomThemeProvider`. */
|
|
131
|
+
theme?: ToastTheme;
|
|
132
|
+
visibleToasts?: number;
|
|
133
|
+
position?: ToastPosition;
|
|
134
|
+
closeButton?: boolean;
|
|
135
|
+
offset?: number;
|
|
136
|
+
autoWiggleOnUpdate?: AutoWiggle;
|
|
137
|
+
style?: ViewStyle;
|
|
138
|
+
positionerStyle?: ViewStyle;
|
|
139
|
+
/** No-op — use `BloomColorScope` to recolour a subtree. */
|
|
140
|
+
invert?: boolean;
|
|
141
|
+
allowFontScaling?: boolean;
|
|
142
|
+
maxFontSizeMultiplier?: number;
|
|
143
|
+
toastOptions?: {
|
|
144
|
+
actionButtonStyle?: ViewStyle;
|
|
145
|
+
actionButtonTextStyle?: TextStyle;
|
|
146
|
+
cancelButtonStyle?: ViewStyle;
|
|
147
|
+
cancelButtonTextStyle?: TextStyle;
|
|
148
|
+
titleStyle?: TextStyle;
|
|
149
|
+
descriptionStyle?: TextStyle;
|
|
150
|
+
style?: ViewStyle;
|
|
151
|
+
unstyled?: boolean;
|
|
152
|
+
toastContainerStyle?: ViewStyle;
|
|
153
|
+
toastContentStyle?: ViewStyle;
|
|
154
|
+
buttonsStyle?: ViewStyle;
|
|
155
|
+
closeButtonStyle?: ViewStyle;
|
|
156
|
+
closeButtonIconStyle?: ViewStyle;
|
|
157
|
+
textContainerStyle?: ViewStyle;
|
|
158
|
+
backgroundComponent?: React.ReactNode;
|
|
159
|
+
success?: ViewStyle;
|
|
160
|
+
error?: ViewStyle;
|
|
161
|
+
warning?: ViewStyle;
|
|
162
|
+
info?: ViewStyle;
|
|
163
|
+
loading?: ViewStyle;
|
|
164
|
+
};
|
|
165
|
+
gap?: number;
|
|
166
|
+
loadingIcon?: React.ReactNode;
|
|
167
|
+
richColors?: boolean;
|
|
168
|
+
icons?: {
|
|
169
|
+
success?: React.ReactNode;
|
|
170
|
+
error?: React.ReactNode;
|
|
171
|
+
warning?: React.ReactNode;
|
|
172
|
+
info?: React.ReactNode;
|
|
173
|
+
loading?: React.ReactNode;
|
|
174
|
+
};
|
|
175
|
+
swipeToDismissDirection?: ToastSwipeDirection;
|
|
176
|
+
pauseWhenPageIsHidden?: boolean;
|
|
177
|
+
enableStacking?: boolean;
|
|
178
|
+
animation?: ToastAnimation;
|
|
179
|
+
ToasterOverlayWrapper?: React.ComponentType<{
|
|
180
|
+
children: React.ReactNode;
|
|
181
|
+
}>;
|
|
182
|
+
ToastWrapper?: React.ComponentType<ViewProps & {
|
|
183
|
+
children: React.ReactNode;
|
|
184
|
+
toastId: string | number;
|
|
185
|
+
}>;
|
|
186
|
+
};
|
|
187
|
+
export type ToastHostProps = {
|
|
188
|
+
children: React.ReactNode;
|
|
189
|
+
ToasterOverlayWrapper?: React.ComponentType<{
|
|
190
|
+
children: React.ReactNode;
|
|
191
|
+
}>;
|
|
192
|
+
};
|
|
193
|
+
/** The subset of `ToasterProps` the store needs to resolve a new toast. */
|
|
194
|
+
export type ToastStoreConfig = {
|
|
195
|
+
autoWiggleOnUpdate?: AutoWiggle;
|
|
196
|
+
visibleToasts?: number;
|
|
197
|
+
duration?: number;
|
|
198
|
+
pauseWhenPageIsHidden?: boolean;
|
|
199
|
+
};
|
|
200
|
+
export type ToastStoreState = {
|
|
201
|
+
toasts: ToastProps[];
|
|
202
|
+
toastsById: Map<string | number, ToastProps>;
|
|
203
|
+
toastsCounter: number;
|
|
204
|
+
toastRefs: Record<string | number, React.RefObject<ToastRef | null>>;
|
|
205
|
+
shouldShowOverlay: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* INVARIANT: replaced, never mutated in place. Row offsets are recomputed in
|
|
208
|
+
* React from this object, so an in-place write would not re-render. Pinned by
|
|
209
|
+
* `toast-store.test.ts`.
|
|
210
|
+
*/
|
|
211
|
+
toastHeights: Record<string | number, number>;
|
|
212
|
+
isExpanded: boolean;
|
|
213
|
+
};
|
|
214
|
+
export type StableToastContextType = Required<Pick<ToasterProps, 'duration' | 'swipeToDismissDirection' | 'closeButton' | 'position' | 'invert' | 'icons' | 'offset' | 'pauseWhenPageIsHidden' | 'gap' | 'theme' | 'toastOptions' | 'autoWiggleOnUpdate' | 'richColors' | 'unstyled' | 'enableStacking' | 'visibleToasts' | 'allowFontScaling'>> & {
|
|
215
|
+
animation: ToastAnimation;
|
|
216
|
+
maxFontSizeMultiplier?: number;
|
|
217
|
+
};
|
|
218
|
+
export type DynamicToastContextType = {
|
|
219
|
+
toastHeights: Record<string | number, number>;
|
|
220
|
+
isExpanded: boolean;
|
|
221
|
+
expand: () => void;
|
|
222
|
+
collapse: () => void;
|
|
223
|
+
toggleExpand: () => void;
|
|
224
|
+
};
|
|
225
|
+
export declare function isToastAction(action: ToastAction | React.ReactNode): action is ToastAction;
|
|
226
|
+
export {};
|
|
10
227
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/toast/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/toast/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc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C1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC,SAAS,GACpC,MAAM,IAAI,WAAW,CAUvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type EasingFunctionFactory, type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
export declare function useAnimatedTarget(target: number, { duration, easing, from, }: {
|
|
3
|
+
duration: number;
|
|
4
|
+
easing: EasingFunctionFactory | ((value: number) => number);
|
|
5
|
+
from?: number;
|
|
6
|
+
}): SharedValue<number>;
|
|
7
|
+
//# sourceMappingURL=use-animated-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-animated-target.d.ts","sourceRoot":"","sources":["../../../../src/toast/use-animated-target.ts"],"names":[],"mappings":"AA2BA,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,EACE,QAAQ,EACR,MAAM,EACN,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,qBAAqB,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GACA,WAAW,CAAC,MAAM,CAAC,CAerB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AppStateStatus } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Subscribe to app-state changes.
|
|
4
|
+
*
|
|
5
|
+
* @returns an unsubscribe function — a no-op when the platform provides no
|
|
6
|
+
* `AppState` subscription.
|
|
7
|
+
*/
|
|
8
|
+
export declare function subscribeToAppState(onChange: (status: AppStateStatus) => void): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Call `onBackground` when the app leaves the foreground and `onForeground` when
|
|
11
|
+
* it comes back — once per edge, never on a transition between two inactive
|
|
12
|
+
* states.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAppStateChange({ onBackground, onForeground, }: {
|
|
15
|
+
onBackground: () => void;
|
|
16
|
+
onForeground: () => void;
|
|
17
|
+
}): void;
|
|
18
|
+
//# sourceMappingURL=use-app-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-app-state.d.ts","sourceRoot":"","sources":["../../../../src/toast/use-app-state.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAM7D;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,GACzC,MAAM,IAAI,CASZ;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,YAAY,GACb,EAAE;IACD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,QAmBA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ToastVariant } from './types';
|
|
2
|
+
export type ToastActionColors = {
|
|
3
|
+
background: string;
|
|
4
|
+
text: string;
|
|
5
|
+
pressedBackground: string;
|
|
6
|
+
pressedText: string;
|
|
7
|
+
};
|
|
8
|
+
export type ToastColors = {
|
|
9
|
+
surface: string;
|
|
10
|
+
border: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
closeButton: string;
|
|
15
|
+
action: ToastActionColors;
|
|
16
|
+
cancelText: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function useToastColors({ variant, richColors, }: {
|
|
19
|
+
variant: ToastVariant | undefined;
|
|
20
|
+
richColors: boolean;
|
|
21
|
+
}): ToastColors;
|
|
22
|
+
//# sourceMappingURL=use-toast-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast-colors.d.ts","sourceRoot":"","sources":["../../../../src/toast/use-toast-colors.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAoEF,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,UAAU,GACX,EAAE;IACD,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,WAAW,CAMd"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from sonner-native v0.26.4 — src/use-toast-position.ts
|
|
3
|
+
* (MIT © Gunnar Torfi Steinarsson). See the top-level NOTICE.
|
|
4
|
+
*
|
|
5
|
+
* Upstream computes the row's offset inside a `useDerivedValue` worklet and
|
|
6
|
+
* returns `withTiming(...)` from it, which does not animate on web. Bloom computes
|
|
7
|
+
* the target in plain JS — `calculateToastPosition` is pure and unit-tested — and
|
|
8
|
+
* hands it to `useAnimatedTarget`, which drives the shared value imperatively. See
|
|
9
|
+
* that file for the full reasoning.
|
|
10
|
+
*
|
|
11
|
+
* Two dependency traps disappear with the worklet:
|
|
12
|
+
*
|
|
13
|
+
* - No memo and no dependency array. The target is a NUMBER, and
|
|
14
|
+
* `useAnimatedTarget` keys its effect on that number, so recomputing a pure
|
|
15
|
+
* O(visibleToasts) sum on every render costs nothing and cannot go stale.
|
|
16
|
+
* Upstream needs a deps array (including a joined `orderedToastIds` key) purely
|
|
17
|
+
* because a mapper has no other way to know when to re-run.
|
|
18
|
+
* - No `toastHeightsVersion`. The store creates a new `toastHeights` OBJECT on
|
|
19
|
+
* every mutation, and React re-renders on that; the manual version counter only
|
|
20
|
+
* existed because a mapper cannot observe a plain object. The invariant that
|
|
21
|
+
* replaces it is ordinary React — the store must never mutate `toastHeights` in
|
|
22
|
+
* place — pinned by `toast-store.test.ts`.
|
|
23
|
+
*/
|
|
24
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
25
|
+
import type { ToastPosition } from './types';
|
|
26
|
+
export declare const useToastPosition: (params: {
|
|
27
|
+
index: number;
|
|
28
|
+
numberOfToasts: number;
|
|
29
|
+
enableStacking: boolean;
|
|
30
|
+
position: ToastPosition;
|
|
31
|
+
allToastHeights: Record<string | number, number>;
|
|
32
|
+
gap: number;
|
|
33
|
+
orderedToastIds: Array<string | number>;
|
|
34
|
+
isExpanded: boolean;
|
|
35
|
+
stackGap: number;
|
|
36
|
+
}) => SharedValue<number>;
|
|
37
|
+
//# sourceMappingURL=use-toast-position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast-position.d.ts","sourceRoot":"","sources":["../../../../src/toast/use-toast-position.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,eAAO,MAAM,gBAAgB,GAAI,QAAQ;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,KAAG,WAAW,CAAC,MAAM,CAIlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/index.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/index.web.tsx"],"names":[],"mappings":"AA2BA;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAEA;yBANe,0BAA0B;;;AAS1C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,QAAmB,EACnB,OAAO,EACP,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,2CAkBA;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAMzE;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,kDAgEA;AAED,eAAO,MAAM,iBAAiB;;6CAAmC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoomableImageGallery.d.ts","sourceRoot":"","sources":["../../../../src/zoomable-image-gallery/ZoomableImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ZoomableImageGallery.d.ts","sourceRoot":"","sources":["../../../../src/zoomable-image-gallery/ZoomableImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkEjF,OAAO,KAAK,EAGV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AA44BjB,eAAO,MAAM,oBAAoB,8GAA4B,CAAC;AAyK9D,eAAe,oBAAoB,CAAC"}
|