@oxyhq/bloom 0.50.2 → 0.51.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/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/frosted-icon-button/shared.js +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-solid.js +43 -0
- package/lib/commonjs/tab-bar/surface-solid.js.map +1 -0
- package/lib/commonjs/tab-bar/surface.js +13 -0
- package/lib/commonjs/tab-bar/surface.js.map +1 -0
- package/lib/commonjs/tab-bar/surface.native.js +113 -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/frosted-icon-button/shared.js +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-solid.js +37 -0
- package/lib/module/tab-bar/surface-solid.js.map +1 -0
- package/lib/module/tab-bar/surface.js +31 -0
- package/lib/module/tab-bar/surface.js.map +1 -0
- package/lib/module/tab-bar/surface.native.js +109 -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/benefit-list/types.d.ts +2 -1
- package/lib/typescript/commonjs/benefit-list/types.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/fab/types.d.ts +4 -2
- package/lib/typescript/commonjs/fab/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/frosted-icon-button/shared.d.ts +1 -1
- package/lib/typescript/commonjs/frosted-icon-button/types.d.ts +2 -1
- package/lib/typescript/commonjs/frosted-icon-button/types.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-solid.d.ts +6 -0
- package/lib/typescript/commonjs/tab-bar/surface-solid.d.ts.map +1 -0
- package/lib/typescript/commonjs/tab-bar/surface.d.ts +29 -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 +88 -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/benefit-list/types.d.ts +2 -1
- package/lib/typescript/module/benefit-list/types.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/fab/types.d.ts +4 -2
- package/lib/typescript/module/fab/types.d.ts.map +1 -1
- package/lib/typescript/module/frosted-icon-button/shared.d.ts +1 -1
- package/lib/typescript/module/frosted-icon-button/types.d.ts +2 -1
- package/lib/typescript/module/frosted-icon-button/types.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-solid.d.ts +6 -0
- package/lib/typescript/module/tab-bar/surface-solid.d.ts.map +1 -0
- package/lib/typescript/module/tab-bar/surface.d.ts +29 -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 +88 -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 +58 -26
- package/src/__tests__/TabBar.test.tsx +342 -0
- package/src/__tests__/TabBarGlassFallback.test.tsx +234 -0
- package/src/__tests__/TabBarReanimatedDeps.test.ts +130 -0
- package/src/__tests__/TabBarWebFork.test.ts +243 -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__/icon-references.test.ts +243 -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/benefit-list/types.ts +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/fab/types.ts +4 -2
- package/src/frosted-icon-button/shared.ts +1 -1
- package/src/frosted-icon-button/types.ts +2 -1
- 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-solid.tsx +40 -0
- package/src/tab-bar/surface.native.tsx +122 -0
- package/src/tab-bar/surface.tsx +28 -0
- package/src/tab-bar/surface.web.tsx +56 -0
- package/src/tab-bar/types.ts +91 -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 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeScreens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EASE_OUT","Easing","bezier","ENTER_DURATION","ENTER_SCALE","FadeIn","focused","children","progress","useSharedValue","isFirstRender","useRef","useEffect","current","value","withTiming","duration","easing","style","useAnimatedStyle","opacity","transform","scale","interpolate","jsx","View","styles","fade","renderFadingTabScreen","descriptor","isFocused","loaded","detachInactiveScreens","lazy","unmountOnBlur","freezeOnBlur","options","Screen","enabled","activityState","screen","unfocused","render","route","key","StyleSheet","create","flex","position","height","zIndex","display","flexShrink","flexGrow"],"sourceRoot":"../../../../src","sources":["tab-bar/expo-router/fading-tab-screen.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,mBAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,S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2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "RouterTabBar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _RouterTabBar.RouterTabBar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "RouterTabBarButton", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _RouterTabBar.RouterTabBarButton;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "renderFadingTabScreen", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _fadingTabScreen.renderFadingTabScreen;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _RouterTabBar = require("./RouterTabBar.js");
|
|
25
|
+
var _fadingTabScreen = require("./fading-tab-screen.js");
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_RouterTabBar","require","_fadingTabScreen"],"sourceRoot":"../../../../src","sources":["tab-bar/expo-router/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TabBarGlyph = TabBarGlyph;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _shared = require("../frosted-icon-button/shared.js");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
/**
|
|
11
|
+
* Ported from expo-glass-tabs v0.1.1 — src/glass-tab-bar.tsx
|
|
12
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
13
|
+
*
|
|
14
|
+
* NEUTRAL default variant of a tab glyph: renders the item's own `icon` node,
|
|
15
|
+
* tinted for this crossfade layer.
|
|
16
|
+
*
|
|
17
|
+
* `item.icon` is the primary icon API for the whole family — a Bloom icon
|
|
18
|
+
* element, exactly like `TabsTrigger` and `FrostedIconButton` take. `sfSymbol`
|
|
19
|
+
* is an iOS-only enhancement and is deliberately ignored here: this file is
|
|
20
|
+
* resolved by web bundlers and by a consumer's `tsc`, where a static
|
|
21
|
+
* `expo-symbols` import would break resolution. See `glyph.native.tsx` for the
|
|
22
|
+
* variant that consumes it. Both implement `TabBarGlyphProps` exactly.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
function TabBarGlyph({
|
|
26
|
+
item,
|
|
27
|
+
tint,
|
|
28
|
+
size
|
|
29
|
+
}) {
|
|
30
|
+
// The tint is injected as the icon's `fill` FALLBACK — an icon that sets its
|
|
31
|
+
// own `fill` (a brand mark, say) keeps it, so the crossfade layers simply
|
|
32
|
+
// render it twice at full opacity and it never flickers.
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
34
|
+
style: {
|
|
35
|
+
height: size,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center'
|
|
38
|
+
},
|
|
39
|
+
children: (0, _shared.applyIconColor)(item.icon, tint)
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
TabBarGlyph.displayName = 'TabBarGlyph';
|
|
43
|
+
//# sourceMappingURL=glyph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_shared","_jsxRuntime","TabBarGlyph","item","tint","size","jsx","View","style","height","alignItems","justifyContent","children","applyIconColor","icon","displayName"],"sourceRoot":"../../../src","sources":["tab-bar/glyph.tsx"],"mappings":";;;;;;AAcA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAA+D,IAAAE,WAAA,GAAAF,OAAA;AAhB/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,SAASG,WAAWA,CAAC;EAAEC,IAAI;EAAEC,IAAI;EAAEC;AAAuB,CAAC,EAAE;EAClE;EACA;EACA;EACA,oBACE,IAAAJ,WAAA,CAAAK,GAAA,EAACR,YAAA,CAAAS,IAAI;IAACC,KAAK,EAAE;MAAEC,MAAM,EAAEJ,IAAI;MAAEK,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE;IAAS,CAAE;IAAAC,QAAA,EAC3E,IAAAC,sBAAc,EAACV,IAAI,CAACW,IAAI,EAAEV,IAAI;EAAC,CAC5B,CAAC;AAEX;AAEAF,WAAW,CAACa,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TabBarGlyph = TabBarGlyph;
|
|
7
|
+
var _expoSymbols = require("expo-symbols");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _shared = require("../frosted-icon-button/shared.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
/**
|
|
12
|
+
* Ported from expo-glass-tabs v0.1.1 — src/glass-tab-bar.tsx
|
|
13
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
14
|
+
*
|
|
15
|
+
* NATIVE variant of a tab glyph. Identical to the neutral variant except that
|
|
16
|
+
* an item carrying an `sfSymbol` renders as a real SF Symbol on iOS: the system
|
|
17
|
+
* glyph set, weight-matched to the platform and tinted natively.
|
|
18
|
+
*
|
|
19
|
+
* `expo-symbols` is imported STATICALLY and only here — Metro selects `.native`
|
|
20
|
+
* on iOS/Android, so it never reaches a web bundle or a consumer's type-check
|
|
21
|
+
* (see the neutral `glyph.tsx` sibling). Android has no SF Symbols, so it falls
|
|
22
|
+
* through to the item's own icon node, which every item provides.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
function TabBarGlyph({
|
|
26
|
+
item,
|
|
27
|
+
tint,
|
|
28
|
+
size
|
|
29
|
+
}) {
|
|
30
|
+
if (item.sfSymbol && _reactNative.Platform.OS === 'ios') {
|
|
31
|
+
// `TabBarItem.sfSymbol` is a plain `string` because `types.ts` may import
|
|
32
|
+
// from react/react-native only — pulling `expo-symbols`' `SFSymbol` union
|
|
33
|
+
// into the public type would drag a native-only package into every web
|
|
34
|
+
// bundle and every consumer's type-check. The narrowing happens here, at
|
|
35
|
+
// the single boundary where the symbol reaches the native view; an unknown
|
|
36
|
+
// name renders nothing rather than crashing, which is why no runtime
|
|
37
|
+
// validation is warranted.
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoSymbols.SymbolView, {
|
|
39
|
+
name: item.sfSymbol,
|
|
40
|
+
tintColor: tint,
|
|
41
|
+
size: size,
|
|
42
|
+
weight: "semibold"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
46
|
+
style: {
|
|
47
|
+
height: size,
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
justifyContent: 'center'
|
|
50
|
+
},
|
|
51
|
+
children: (0, _shared.applyIconColor)(item.icon, tint)
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
TabBarGlyph.displayName = 'TabBarGlyph';
|
|
55
|
+
//# sourceMappingURL=glyph.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_expoSymbols","require","_reactNative","_shared","_jsxRuntime","TabBarGlyph","item","tint","size","sfSymbol","Platform","OS","jsx","SymbolView","name","tintColor","weight","View","style","height","alignItems","justifyContent","children","applyIconColor","icon","displayName"],"sourceRoot":"../../../src","sources":["tab-bar/glyph.native.tsx"],"mappings":";;;;;;AAaA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAA+D,IAAAG,WAAA,GAAAH,OAAA;AAhB/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOO,SAASI,WAAWA,CAAC;EAAEC,IAAI;EAAEC,IAAI;EAAEC;AAAuB,CAAC,EAAE;EAClE,IAAIF,IAAI,CAACG,QAAQ,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA,oBACE,IAAAP,WAAA,CAAAQ,GAAA,EAACZ,YAAA,CAAAa,UAAU;MACTC,IAAI,EAAER,IAAI,CAACG,QAAqB;MAChCM,SAAS,EAAER,IAAK;MAChBC,IAAI,EAAEA,IAAK;MACXQ,MAAM,EAAC;IAAU,CAClB,CAAC;EAEN;EAEA,oBACE,IAAAZ,WAAA,CAAAQ,GAAA,EAACV,YAAA,CAAAe,IAAI;IAACC,KAAK,EAAE;MAAEC,MAAM,EAAEX,IAAI;MAAEY,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE;IAAS,CAAE;IAAAC,QAAA,EAC3E,IAAAC,sBAAc,EAACjB,IAAI,CAACkB,IAAI,EAAEjB,IAAI;EAAC,CAC5B,CAAC;AAEX;AAEAF,WAAW,CAACoB,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MINIMIZE_SPRING", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _minimizeContext.MINIMIZE_SPRING;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
exports.TabBarButton = exports.TabBar = void 0;
|
|
13
|
+
Object.defineProperty(exports, "TabBarMinimizeProvider", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _minimizeContext.TabBarMinimizeProvider;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "setMinimized", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _minimizeContext.setMinimized;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useMinimizeOnScroll", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _minimizeContext.useMinimizeOnScroll;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "useMinimizeState", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _minimizeContext.useMinimizeState;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "useTabBarMinimized", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return _minimizeContext.useTabBarMinimized;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var _progressiveBlur = require("../progressive-blur");
|
|
44
|
+
var _TabBarBase = require("./TabBarBase.js");
|
|
45
|
+
var _glyph = require("./glyph");
|
|
46
|
+
var _surface = require("./surface");
|
|
47
|
+
var _minimizeContext = require("./minimize-context.js");
|
|
48
|
+
/**
|
|
49
|
+
* Ported from expo-glass-tabs v0.1.1 — src/index.ts
|
|
50
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
51
|
+
*
|
|
52
|
+
* DEFAULT entry for `@oxyhq/bloom/tab-bar`.
|
|
53
|
+
*
|
|
54
|
+
* The platform pieces are imported by their BARE relative name so Metro's
|
|
55
|
+
* platform-extension resolution picks `surface.native.tsx` / `glyph.native.tsx`
|
|
56
|
+
* on iOS and Android, and every other resolver falls back to the neutral
|
|
57
|
+
* `surface.tsx` / `glyph.tsx`. Both neutral files, and everything else this
|
|
58
|
+
* module reaches, are free of native-only imports, so a consumer's `tsc` and a
|
|
59
|
+
* non-Metro bundler resolve this entry cleanly. Web bundlers select
|
|
60
|
+
* `index.web.tsx` instead, through the package's `browser` export condition.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
const TabBar = exports.TabBar = (0, _TabBarBase.createTabBar)(_surface.TabBarSurface, _progressiveBlur.ProgressiveBlur);
|
|
64
|
+
const TabBarButton = exports.TabBarButton = (0, _TabBarBase.createTabBarButton)(_glyph.TabBarGlyph);
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_progressiveBlur","require","_TabBarBase","_glyph","_surface","_minimizeContext","TabBar","exports","createTabBar","TabBarSurface","ProgressiveBlur","TabBarButton","createTabBarButton","TabBarGlyph"],"sourceRoot":"../../../src","sources":["tab-bar/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,gBAAA,GAAAJ,OAAA;AAtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,wBAAY,EAACC,sBAAa,EAAEC,gCAAe,CAAC;AAC3D,MAAMC,YAAY,GAAAJ,OAAA,CAAAI,YAAA,GAAG,IAAAC,8BAAkB,EAACC,kBAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MINIMIZE_SPRING", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _minimizeContext.MINIMIZE_SPRING;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
exports.TabBarButton = exports.TabBar = void 0;
|
|
13
|
+
Object.defineProperty(exports, "TabBarMinimizeProvider", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _minimizeContext.TabBarMinimizeProvider;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "setMinimized", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _minimizeContext.setMinimized;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useMinimizeOnScroll", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _minimizeContext.useMinimizeOnScroll;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "useMinimizeState", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _minimizeContext.useMinimizeState;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "useTabBarMinimized", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return _minimizeContext.useTabBarMinimized;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var _indexWeb = require("../progressive-blur/index.web.js");
|
|
44
|
+
var _TabBarBase = require("./TabBarBase.js");
|
|
45
|
+
var _glyph = require("./glyph");
|
|
46
|
+
var _surfaceWeb = require("./surface.web.js");
|
|
47
|
+
var _minimizeContext = require("./minimize-context.js");
|
|
48
|
+
/**
|
|
49
|
+
* Ported from expo-glass-tabs v0.1.1 — src/index.ts
|
|
50
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
51
|
+
*
|
|
52
|
+
* WEB entry for `@oxyhq/bloom/tab-bar`, selected through the package's
|
|
53
|
+
* `browser` export condition.
|
|
54
|
+
*
|
|
55
|
+
* The web modules are imported by their FULL `.web` name on purpose. Inside the
|
|
56
|
+
* published `lib/` every file is plain `.js` (`surface.js` next to
|
|
57
|
+
* `surface.web.js`), and no web bundler resolves a bare `./surface` to the
|
|
58
|
+
* `.web` sibling by extension — only Metro does that. Writing the fork path
|
|
59
|
+
* explicitly is the same thing the generated root barrel does
|
|
60
|
+
* (`src/index.web.ts` → `from './dialog/index.web'`). `./glyph` has no web fork:
|
|
61
|
+
* the neutral file already renders `item.icon`, which is the correct web
|
|
62
|
+
* behaviour, and it is what any resolver lands on here.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
const TabBar = exports.TabBar = (0, _TabBarBase.createTabBar)(_surfaceWeb.TabBarSurface, _indexWeb.ProgressiveBlur);
|
|
66
|
+
const TabBarButton = exports.TabBarButton = (0, _TabBarBase.createTabBarButton)(_glyph.TabBarGlyph);
|
|
67
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_indexWeb","require","_TabBarBase","_glyph","_surfaceWeb","_minimizeContext","TabBar","exports","createTabBar","TabBarSurface","ProgressiveBlur","TabBarButton","createTabBarButton","TabBarGlyph"],"sourceRoot":"../../../src","sources":["tab-bar/index.web.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAKA,IAAAI,gBAAA,GAAAJ,OAAA;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,wBAAY,EAACC,yBAAa,EAAEC,yBAAe,CAAC;AAC3D,MAAMC,YAAY,GAAAJ,OAAA,CAAAI,YAAA,GAAG,IAAAC,8BAAkB,EAACC,kBAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MINIMIZE_SPRING = void 0;
|
|
7
|
+
exports.TabBarMinimizeProvider = TabBarMinimizeProvider;
|
|
8
|
+
exports.setMinimized = setMinimized;
|
|
9
|
+
exports.useMinimizeOnScroll = useMinimizeOnScroll;
|
|
10
|
+
exports.useMinimizeState = useMinimizeState;
|
|
11
|
+
exports.useTabBarMinimized = useTabBarMinimized;
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
/**
|
|
16
|
+
* Ported from expo-glass-tabs v0.1.1 — src/minimize-context.tsx
|
|
17
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
18
|
+
*
|
|
19
|
+
* The shared 0..1 "minimize" progress the tab bar interpolates on, plus the
|
|
20
|
+
* scroll handler that drives it. Reanimated only — no platform imports.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Spring, not timing: scroll direction flips mid-animation constantly, and a
|
|
25
|
+
* spring retargets while preserving velocity — a timing curve would restart
|
|
26
|
+
* from zero and feel mechanical. Critically damped (ratio 1): no overshoot and
|
|
27
|
+
* no long settling tail, which matters because the bar animates layout.
|
|
28
|
+
*/
|
|
29
|
+
const MINIMIZE_SPRING = exports.MINIMIZE_SPRING = {
|
|
30
|
+
duration: 380,
|
|
31
|
+
dampingRatio: 1
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** Scroll offset below which the bar is always expanded (px). */
|
|
35
|
+
const TOP_ZONE = 24;
|
|
36
|
+
/** Per-event scroll delta that counts as a deliberate direction change (px). */
|
|
37
|
+
const DIRECTION_THRESHOLD = 3;
|
|
38
|
+
const MinimizeContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Wrap the tab tree once. Screens then call `useMinimizeOnScroll()` and the bar
|
|
42
|
+
* reads the same progress, so scrolling any screen minimizes the bar.
|
|
43
|
+
*/
|
|
44
|
+
function TabBarMinimizeProvider({
|
|
45
|
+
children
|
|
46
|
+
}) {
|
|
47
|
+
const progress = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
48
|
+
const target = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
49
|
+
const state = (0, _react.useMemo)(() => ({
|
|
50
|
+
progress,
|
|
51
|
+
target
|
|
52
|
+
}), [progress, target]);
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MinimizeContext.Provider, {
|
|
54
|
+
value: state,
|
|
55
|
+
children: children
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
TabBarMinimizeProvider.displayName = 'TabBarMinimizeProvider';
|
|
59
|
+
|
|
60
|
+
/** Full minimize state — used by the bar, the buttons and the scroll hook. */
|
|
61
|
+
function useMinimizeState() {
|
|
62
|
+
const shared = (0, _react.useContext)(MinimizeContext);
|
|
63
|
+
// Local fallback keeps screens working when rendered outside the provider
|
|
64
|
+
// (e.g. a web tab layout with no floating bar). Hooks run unconditionally so
|
|
65
|
+
// the order is stable whether or not a provider is present.
|
|
66
|
+
const progress = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
67
|
+
const target = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
68
|
+
const local = (0, _react.useMemo)(() => ({
|
|
69
|
+
progress,
|
|
70
|
+
target
|
|
71
|
+
}), [progress, target]);
|
|
72
|
+
return shared ?? local;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** The animated 0..1 minimize progress (what styles interpolate on). */
|
|
76
|
+
function useTabBarMinimized() {
|
|
77
|
+
return useMinimizeState().progress;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Retarget the minimize spring — no-op when already heading to `next`, so
|
|
82
|
+
* per-frame scroll events never restart (and visibly stutter) the animation.
|
|
83
|
+
* Callable from both threads.
|
|
84
|
+
*/
|
|
85
|
+
function setMinimized(state, next) {
|
|
86
|
+
'worklet';
|
|
87
|
+
|
|
88
|
+
if (state.target.value !== next) {
|
|
89
|
+
state.target.value = next;
|
|
90
|
+
state.progress.value = (0, _reactNativeReanimated.withSpring)(next, MINIMIZE_SPRING);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Scroll handler for `Animated.ScrollView`. Scrolling down minimizes the tab
|
|
96
|
+
* bar, scrolling up (or being near the top) expands it. Offsets are clamped to
|
|
97
|
+
* the scrollable range so rubber-band overscroll can't flip the direction for a
|
|
98
|
+
* frame and flicker the bar.
|
|
99
|
+
*/
|
|
100
|
+
function useMinimizeOnScroll() {
|
|
101
|
+
const state = useMinimizeState();
|
|
102
|
+
const previousY = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
103
|
+
|
|
104
|
+
// CRITICAL — `state` and `previousY` must stay in the dependency array. On
|
|
105
|
+
// web WITHOUT the react-native-worklets babel plugin (the production reality
|
|
106
|
+
// for every Oxy RN-Web app) reanimated cannot auto-detect what a worklet
|
|
107
|
+
// reads, so it drives the handler off its deps instead; an omitted or empty
|
|
108
|
+
// array binds the handler once against the first render's values. Native
|
|
109
|
+
// (plugin present) auto-tracks and ignores the extra deps, so listing them is
|
|
110
|
+
// correct on both platforms. Same rule as every mapper in `TabBarBase`.
|
|
111
|
+
return (0, _reactNativeReanimated.useAnimatedScrollHandler)({
|
|
112
|
+
onScroll: event => {
|
|
113
|
+
const maxY = Math.max(event.contentSize.height - event.layoutMeasurement.height, 0);
|
|
114
|
+
const y = Math.min(Math.max(event.contentOffset.y, 0), maxY);
|
|
115
|
+
const dy = y - previousY.value;
|
|
116
|
+
previousY.value = y;
|
|
117
|
+
if (y < TOP_ZONE) {
|
|
118
|
+
setMinimized(state, 0);
|
|
119
|
+
} else if (dy > DIRECTION_THRESHOLD) {
|
|
120
|
+
setMinimized(state, 1);
|
|
121
|
+
} else if (dy < -DIRECTION_THRESHOLD) {
|
|
122
|
+
setMinimized(state, 0);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, [state, previousY]);
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=minimize-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_jsxRuntime","MINIMIZE_SPRING","exports","duration","dampingRatio","TOP_ZONE","DIRECTION_THRESHOLD","MinimizeContext","createContext","TabBarMinimizeProvider","children","progress","useSharedValue","target","state","useMemo","jsx","Provider","value","displayName","useMinimizeState","shared","useContext","local","useTabBarMinimized","setMinimized","next","withSpring","useMinimizeOnScroll","previousY","useAnimatedScrollHandler","onScroll","event","maxY","Math","max","contentSize","height","layoutMeasurement","y","min","contentOffset","dy"],"sourceRoot":"../../../src","sources":["tab-bar/minimize-context.tsx"],"mappings":";;;;;;;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAKiC,IAAAE,WAAA,GAAAF,OAAA;AAbjC;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAAEE,QAAQ,EAAE,GAAG;EAAEC,YAAY,EAAE;AAAE,CAAC;;AAEjE;AACA,MAAMC,QAAQ,GAAG,EAAE;AACnB;AACA,MAAMC,mBAAmB,GAAG,CAAC;AAS7B,MAAMC,eAAe,gBAAG,IAAAC,oBAAa,EAAuB,IAAI,CAAC;;AAEjE;AACA;AACA;AACA;AACO,SAASC,sBAA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AAS,iCAAU,EAACD,IAAI,EAAEzB,eAAe,CAAC;EAC1D;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS2B,mBAAmBA,CAAA,EAAG;EACpC,MAAMd,KAAK,GAAGM,gBAAgB,CAAC,CAAC;EAChC,MAAMS,SAAS,GAAG,IAAAjB,qCAAc,EAAC,CAAC,CAAC;;EAEnC;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAO,IAAAkB,+CAAwB,EAC7B;IACEC,QAAQ,EAAGC,KAAK,IAAK;MACnB,MAAMC,IAAI,GAAGC,IAAI,CAACC,GAAG,CAACH,KAAK,CAACI,WAAW,CAACC,MAAM,GAAGL,KAAK,CAACM,iBAAiB,CAACD,MAAM,EAAE,CAAC,CAAC;MACnF,MAAME,CAAC,GAAGL,IAAI,CAACM,GAAG,CAACN,IAAI,CAACC,GAAG,CAACH,KAAK,CAACS,aAAa,CAACF,CAAC,EAAE,CAAC,CAAC,EAAEN,IAAI,CAAC;MAC5D,MAAMS,EAAE,GAAGH,CAAC,GAAGV,SAAS,CAACX,KAAK;MAC9BW,SAAS,CAACX,KAAK,GAAGqB,CAAC;MAEnB,IAAIA,CAAC,GAAGlC,QAAQ,EAAE;QAChBoB,YAAY,CAACX,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAI4B,EAAE,GAAGpC,mBAAmB,EAAE;QACnCmB,YAAY,CAACX,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAI4B,EAAE,GAAG,CAACpC,mBAAmB,EAAE;QACpCmB,YAAY,CAACX,KAAK,EAAE,CAAC,CAAC;MACxB;IACF;EACF,CAAC,EACD,CAACA,KAAK,EAAEe,SAAS,CACnB,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SLIDE_SPRING = exports.ROW_PAD_H = exports.MINIMIZED_INSET = exports.MINIMIZED_HEIGHT = exports.LABEL_HEIGHT = exports.LABEL_FONT_SIZE = exports.LABEL_BLOCK = exports.ITEM_PAD_V = exports.ITEM_GAP = exports.ICON_SIZE = exports.HIGHLIGHT_MINIMIZED = exports.HIGHLIGHT_EXPANDED = exports.EXPANDED_HEIGHT = exports.BLUR_BLEED = exports.BAR_MARGIN = void 0;
|
|
7
|
+
exports.resolveTabBarTheme = resolveTabBarTheme;
|
|
8
|
+
exports.useTabBarTheme = useTabBarTheme;
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _colorUtils = require("../theme/color-utils.js");
|
|
11
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
12
|
+
/**
|
|
13
|
+
* Ported from expo-glass-tabs v0.1.1 — src/glass-tab-bar.tsx
|
|
14
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
15
|
+
*
|
|
16
|
+
* Geometry, motion constants, theme resolution and the contracts for the two
|
|
17
|
+
* injected platform components. Everything here is platform-neutral — no
|
|
18
|
+
* expo-glass-effect, expo-symbols, expo-router or react-native-screens — because
|
|
19
|
+
* this module is pulled into the native bundle, the web bundle and a consumer's
|
|
20
|
+
* `tsc` alike.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Geometry
|
|
25
|
+
//
|
|
26
|
+
// Every dimension the bar animates is a constant here rather than a measured
|
|
27
|
+
// layout: the highlight's position, the item box height and the capsule radius
|
|
28
|
+
// are all derived from these on the UI thread each frame. Measuring instead
|
|
29
|
+
// would put a layout round-trip between the finger and the pixels.
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
const EXPANDED_HEIGHT = exports.EXPANDED_HEIGHT = 58;
|
|
33
|
+
const MINIMIZED_HEIGHT = exports.MINIMIZED_HEIGHT = 44;
|
|
34
|
+
/** Extra horizontal inset applied to the pill when minimized (per side). */
|
|
35
|
+
const MINIMIZED_INSET = exports.MINIMIZED_INSET = 34;
|
|
36
|
+
/** Outer margin between the pill and the screen edges (per side). */
|
|
37
|
+
const BAR_MARGIN = exports.BAR_MARGIN = 12;
|
|
38
|
+
/** Inner inset between the capsule wall and the tab items. */
|
|
39
|
+
const ROW_PAD_H = exports.ROW_PAD_H = 4;
|
|
40
|
+
const LABEL_HEIGHT = exports.LABEL_HEIGHT = 13;
|
|
41
|
+
const ICON_SIZE = exports.ICON_SIZE = 21;
|
|
42
|
+
/**
|
|
43
|
+
* Space between icon and label — folded into the label's animated height so it
|
|
44
|
+
* fully disappears when minimized (keeps the icon perfectly centered).
|
|
45
|
+
*/
|
|
46
|
+
const ITEM_GAP = exports.ITEM_GAP = 2;
|
|
47
|
+
const LABEL_BLOCK = exports.LABEL_BLOCK = LABEL_HEIGHT + ITEM_GAP;
|
|
48
|
+
const ITEM_PAD_V = exports.ITEM_PAD_V = 7;
|
|
49
|
+
/** Highlight content heights — radius must track h/2 for a true capsule. */
|
|
50
|
+
const HIGHLIGHT_EXPANDED = exports.HIGHLIGHT_EXPANDED = ICON_SIZE + LABEL_BLOCK + ITEM_PAD_V * 2;
|
|
51
|
+
const HIGHLIGHT_MINIMIZED = exports.HIGHLIGHT_MINIMIZED = ICON_SIZE + ITEM_PAD_V * 2;
|
|
52
|
+
/** How far the bottom progressive blur bleeds above the pill. */
|
|
53
|
+
const BLUR_BLEED = exports.BLUR_BLEED = 44;
|
|
54
|
+
/** Label type size. Small by design — the icon carries the meaning. */
|
|
55
|
+
const LABEL_FONT_SIZE = exports.LABEL_FONT_SIZE = 9.5;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Slide spring: interruptible by design — rapid tab-hopping retargets with
|
|
59
|
+
* preserved velocity. Slight under-damping gives the pill a tiny settle, safe
|
|
60
|
+
* here because it's transform-only (no layout involved).
|
|
61
|
+
*/
|
|
62
|
+
const SLIDE_SPRING = exports.SLIDE_SPRING = {
|
|
63
|
+
duration: 420,
|
|
64
|
+
dampingRatio: 0.82
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// ---------------------------------------------------------------------------
|
|
68
|
+
// Theme
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Resolve the bar's five colors from Bloom's theme tokens, with an optional
|
|
73
|
+
* partial override on top.
|
|
74
|
+
*
|
|
75
|
+
* Upstream hardcoded a dark palette (`#FFFFFF` / `rgba(10,10,12,0.55)` / …),
|
|
76
|
+
* which would ignore the active preset and read as a black bar in a light
|
|
77
|
+
* theme. Each role maps onto the token that already carries that meaning, so
|
|
78
|
+
* the bar follows `BloomThemeProvider` for free:
|
|
79
|
+
*
|
|
80
|
+
* - the two tints are the standard foreground pair;
|
|
81
|
+
* - the highlight is `contrast50`, the token meant for a subtle raised fill;
|
|
82
|
+
* - the glass tint is a 55%-alpha page background, so the liquid-glass
|
|
83
|
+
* material behind it still refracts content;
|
|
84
|
+
* - the solid fallback is a 94%-alpha `backgroundSecondary` — near-opaque, so
|
|
85
|
+
* the bar reads as a distinct surface where there is no glass to lens.
|
|
86
|
+
*
|
|
87
|
+
* Overrides are coalesced key by key (not spread) so an explicit `undefined` in
|
|
88
|
+
* a partial can never punch a hole in the resolved theme.
|
|
89
|
+
*/
|
|
90
|
+
function resolveTabBarTheme(colors, overrides) {
|
|
91
|
+
return {
|
|
92
|
+
activeTint: overrides?.activeTint ?? colors.text,
|
|
93
|
+
inactiveTint: overrides?.inactiveTint ?? colors.textSecondary,
|
|
94
|
+
highlight: overrides?.highlight ?? colors.contrast50,
|
|
95
|
+
glassTint: overrides?.glassTint ?? (0, _colorUtils.withAlpha)(colors.background, 0.55),
|
|
96
|
+
solidFallback: overrides?.solidFallback ?? (0, _colorUtils.withAlpha)(colors.backgroundSecondary, 0.94)
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Hook form of {@link resolveTabBarTheme}.
|
|
102
|
+
*
|
|
103
|
+
* Memoized on the individual override VALUES rather than on the `overrides`
|
|
104
|
+
* object: callers pass an inline literal (`theme={{ highlight: '#…' }}`), whose
|
|
105
|
+
* identity changes every render. The resolved theme feeds a React context and a
|
|
106
|
+
* reanimated dependency array, so a fresh identity per render would re-render
|
|
107
|
+
* every button and rebuild the label mapper for nothing.
|
|
108
|
+
*/
|
|
109
|
+
function useTabBarTheme(overrides) {
|
|
110
|
+
const {
|
|
111
|
+
colors
|
|
112
|
+
} = (0, _useTheme.useTheme)();
|
|
113
|
+
const {
|
|
114
|
+
activeTint,
|
|
115
|
+
inactiveTint,
|
|
116
|
+
highlight,
|
|
117
|
+
glassTint,
|
|
118
|
+
solidFallback
|
|
119
|
+
} = overrides ?? {};
|
|
120
|
+
return (0, _react.useMemo)(() => resolveTabBarTheme(colors, {
|
|
121
|
+
activeTint,
|
|
122
|
+
inactiveTint,
|
|
123
|
+
highlight,
|
|
124
|
+
glassTint,
|
|
125
|
+
solidFallback
|
|
126
|
+
}), [colors, activeTint, inactiveTint, highlight, glassTint, solidFallback]);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
// Injected platform components
|
|
131
|
+
//
|
|
132
|
+
// `TabBarBase` is platform-agnostic and receives its two platform-specific
|
|
133
|
+
// pieces as component props (the same shape as `BottomSheetBase`'s `Shell`).
|
|
134
|
+
// The three surface variants and the two glyph variants implement these exact
|
|
135
|
+
// signatures, which is what makes the resolution paths interchangeable:
|
|
136
|
+
// Metro picks `*.native.tsx`, the `browser` export condition picks the entry
|
|
137
|
+
// that imports `*.web.tsx`, everything else gets the neutral file.
|
|
138
|
+
// ---------------------------------------------------------------------------
|
|
139
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_colorUtils","_useTheme","EXPANDED_HEIGHT","exports","MINIMIZED_HEIGHT","MINIMIZED_INSET","BAR_MARGIN","ROW_PAD_H","LABEL_HEIGHT","ICON_SIZE","ITEM_GAP","LABEL_BLOCK","ITEM_PAD_V","HIGHLIGHT_EXPANDED","HIGHLIGHT_MINIMIZED","BLUR_BLEED","LABEL_FONT_SIZE","SLIDE_SPRING","duration","dampingRatio","resolveTabBarTheme","colors","overrides","activeTint","text","inactiveTint","textSecondary","highlight","contrast50","glassTint","withAlpha","background","solidFallback","backgroundSecondary","useTabBarTheme","useTheme","useMemo"],"sourceRoot":"../../../src","sources":["tab-bar/shared.ts"],"mappings":";;;;;;;;AAUA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,EAAE;AAC1B,MAAME,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,GAAG,EAAE;AAClC;AACO,MAAMC,eAAe,GAAAF,OAAA,CAAAE,eAAA,GAAG,EAAE;AACjC;AACO,MAAMC,UAAU,GAAAH,OAAA,CAAAG,UAAA,GAAG,EAAE;AAC5B;AACO,MAAMC,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAG,CAAC;AACnB,MAAMC,YAAY,GAAAL,OAAA,CAAAK,YAAA,GAAG,EAAE;AACvB,MAAMC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,EAAE;AAC3B;AACA;AACA;AACA;AACO,MAAMC,QAAQ,GAAAP,OAAA,CAAAO,QAAA,GAAG,CAAC;AAClB,MAAMC,WAAW,GAAAR,OAAA,CAAAQ,WAAA,GAAGH,YAAY,GAAGE,QAAQ;AAC3C,MAAME,UAAU,GAAAT,OAAA,CAAAS,UAAA,GAAG,CAAC;AAC3B;AACO,MAAMC,kBAAkB,GAAAV,OAAA,CAAAU,kBAAA,GAAGJ,SA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IAAI,CAAC,CAAC;EAEzF,OAAO,IAAAc,cAAO,EACZ,MACEhB,kBAAkB,CAACC,MAAM,EAAE;IACzBE,UAAU;IACVE,YAAY;IACZE,SAAS;IACTE,SAAS;IACTG;EACF,CAAC,CAAC,EACJ,CAACX,MAAM,EAAEE,UAAU,EAAEE,YAAY,EAAEE,SAAS,EAAEE,SAAS,EAAEG,aAAa,CACxE,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SolidTabBarSurface = SolidTabBarSurface;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/**
|
|
12
|
+
* Ported from expo-glass-tabs v0.1.1 — src/glass-tab-bar.tsx
|
|
13
|
+
* (MIT © 2026 David Mokos). See the top-level NOTICE.
|
|
14
|
+
*
|
|
15
|
+
* The tab bar's NON-GLASS capsule surface: a plain animated view filled with the
|
|
16
|
+
* theme's near-opaque fallback. Android, pre-iOS-26 devices and any build without
|
|
17
|
+
* a usable `expo-glass-effect` all paint this.
|
|
18
|
+
*
|
|
19
|
+
* It lives in its own module because TWO variants render it and one of them
|
|
20
|
+
* cannot reach the other: Metro resolves a bare `./surface` to
|
|
21
|
+
* `surface.native.tsx` no matter which file asks, so `surface.native.tsx`
|
|
22
|
+
* importing its neutral sibling for the fallback would import ITSELF. A name with
|
|
23
|
+
* no platform variants resolves to this one file everywhere — which is the whole
|
|
24
|
+
* point, so please do not fold it back into `surface.tsx`.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
function SolidTabBarSurface({
|
|
28
|
+
theme,
|
|
29
|
+
style
|
|
30
|
+
}) {
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
32
|
+
style: [_reactNative.StyleSheet.absoluteFill, styles.surface, {
|
|
33
|
+
backgroundColor: theme.solidFallback
|
|
34
|
+
}, style]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
SolidTabBarSurface.displayName = 'SolidTabBarSurface';
|
|
38
|
+
const styles = _reactNative.StyleSheet.create({
|
|
39
|
+
surface: {
|
|
40
|
+
borderCurve: 'continuous'
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=surface-solid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_interopRequireDefault","_jsxRuntime","e","__esModule","default","SolidTabBarSurface","theme","style","jsx","View","StyleSheet","absoluteFill","styles","surface","backgroundColor","solidFallback","displayName","create","borderCurve"],"sourceRoot":"../../../src","sources":["tab-bar/surface-solid.tsx"],"mappings":";;;;;;AAeA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA+C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhB/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,SAASG,kBAAkBA,CAAC;EAAEC,KAAK;EAAEC;AAA0B,CAAC,EAAE;EACvE,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACT,sBAAA,CAAAK,OAAQ,CAACK,IAAI;IACZF,KAAK,EAAE,CACLG,uBAAU,CAACC,YAAY,EACvBC,MAAM,CAACC,OAAO,EACd;MAAEC,eAAe,EAAER,KAAK,CAACS;IAAc,CAAC,EACxCR,KAAK;EACL,CACH,CAAC;AAEN;AAEAF,kBAAkB,CAACW,WAAW,GAAG,oBAAoB;AAErD,MAAMJ,MAAM,GAAGF,uBAAU,CAACO,MAAM,CAAC;EAC/BJ,OAAO,EAAE;IACPK,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TabBarSurface", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _surfaceSolid.SolidTabBarSurface;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _surfaceSolid = require("./surface-solid.js");
|
|
13
|
+
//# sourceMappingURL=surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_surfaceSolid","require"],"sourceRoot":"../../../src","sources":["tab-bar/surface.tsx"],"mappings":";;;;;;;;;;;AA2BA,IAAAA,aAAA,GAAAC,OAAA","ignoreList":[]}
|