@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_sonner","require","dismiss","exports","toast"],"sourceRoot":"../../../../src","sources":["toast/sonner/index.web.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGE,aAAK,CAACF,OAAO","ignoreList":[]}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { createContext, useContext, useMemo } from 'react';
|
|
4
|
-
import { View, Text as RNText, Pressable, StyleSheet } from 'react-native';
|
|
5
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
6
|
-
import { useInteractionState } from "../hooks/useInteractionState.js";
|
|
7
|
-
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
8
|
-
import { dismiss } from './sonner';
|
|
9
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
const ToastConfigContext = /*#__PURE__*/createContext({
|
|
11
|
-
id: '',
|
|
12
|
-
type: 'default'
|
|
13
|
-
});
|
|
14
|
-
ToastConfigContext.displayName = 'ToastConfigContext';
|
|
15
|
-
export function ToastConfigProvider({
|
|
16
|
-
children,
|
|
17
|
-
id,
|
|
18
|
-
type
|
|
19
|
-
}) {
|
|
20
|
-
return /*#__PURE__*/_jsx(ToastConfigContext.Provider, {
|
|
21
|
-
value: useMemo(() => ({
|
|
22
|
-
id,
|
|
23
|
-
type
|
|
24
|
-
}), [id, type]),
|
|
25
|
-
children: children
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export function Outer({
|
|
29
|
-
children
|
|
30
|
-
}) {
|
|
31
|
-
const {
|
|
32
|
-
colors
|
|
33
|
-
} = useTheme();
|
|
34
|
-
const {
|
|
35
|
-
type
|
|
36
|
-
} = useContext(ToastConfigContext);
|
|
37
|
-
const toastColors = useToastColors({
|
|
38
|
-
type,
|
|
39
|
-
colors
|
|
40
|
-
});
|
|
41
|
-
return /*#__PURE__*/_jsx(View, {
|
|
42
|
-
style: [styles.outer, {
|
|
43
|
-
backgroundColor: toastColors.backgroundColor,
|
|
44
|
-
borderColor: toastColors.borderColor
|
|
45
|
-
}],
|
|
46
|
-
children: children
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
export function Icon({
|
|
50
|
-
icon
|
|
51
|
-
}) {
|
|
52
|
-
const {
|
|
53
|
-
colors
|
|
54
|
-
} = useTheme();
|
|
55
|
-
const {
|
|
56
|
-
type
|
|
57
|
-
} = useContext(ToastConfigContext);
|
|
58
|
-
const toastColors = useToastColors({
|
|
59
|
-
type,
|
|
60
|
-
colors
|
|
61
|
-
});
|
|
62
|
-
if (!icon) {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
if (/*#__PURE__*/React.isValidElement(icon)) {
|
|
66
|
-
return /*#__PURE__*/React.cloneElement(icon, {
|
|
67
|
-
color: toastColors.iconColor
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
71
|
-
children: icon
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
export function Text({
|
|
75
|
-
children
|
|
76
|
-
}) {
|
|
77
|
-
const {
|
|
78
|
-
colors
|
|
79
|
-
} = useTheme();
|
|
80
|
-
const {
|
|
81
|
-
type
|
|
82
|
-
} = useContext(ToastConfigContext);
|
|
83
|
-
const toastColors = useToastColors({
|
|
84
|
-
type,
|
|
85
|
-
colors
|
|
86
|
-
});
|
|
87
|
-
return /*#__PURE__*/_jsx(View, {
|
|
88
|
-
style: styles.textContainer,
|
|
89
|
-
children: /*#__PURE__*/_jsx(RNText, {
|
|
90
|
-
selectable: false,
|
|
91
|
-
style: [styles.text, {
|
|
92
|
-
color: toastColors.textColor
|
|
93
|
-
}],
|
|
94
|
-
children: children
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
export function Action({
|
|
99
|
-
children,
|
|
100
|
-
onPress,
|
|
101
|
-
...rest
|
|
102
|
-
}) {
|
|
103
|
-
const {
|
|
104
|
-
colors
|
|
105
|
-
} = useTheme();
|
|
106
|
-
const {
|
|
107
|
-
type,
|
|
108
|
-
id
|
|
109
|
-
} = useContext(ToastConfigContext);
|
|
110
|
-
const actionColors = useActionColors({
|
|
111
|
-
type,
|
|
112
|
-
colors
|
|
113
|
-
});
|
|
114
|
-
// Drive the pressed visual via state, not Pressable's function-form `style`
|
|
115
|
-
// / function-children, which NativeWind v4's css-interop swallows (dropping
|
|
116
|
-
// the base button style: padding, radius, alignSelf).
|
|
117
|
-
const {
|
|
118
|
-
state: pressed,
|
|
119
|
-
onIn: onPressIn,
|
|
120
|
-
onOut: onPressOut
|
|
121
|
-
} = useInteractionState();
|
|
122
|
-
const handlePress = e => {
|
|
123
|
-
dismiss(id);
|
|
124
|
-
onPress?.(e);
|
|
125
|
-
};
|
|
126
|
-
return /*#__PURE__*/_jsx(Pressable, {
|
|
127
|
-
...rest,
|
|
128
|
-
onPress: handlePress,
|
|
129
|
-
onPressIn: onPressIn,
|
|
130
|
-
onPressOut: onPressOut,
|
|
131
|
-
style: [styles.actionButton, {
|
|
132
|
-
backgroundColor: pressed ? actionColors.interacted.backgroundColor : actionColors.base.backgroundColor
|
|
133
|
-
}],
|
|
134
|
-
children: /*#__PURE__*/_jsx(RNText, {
|
|
135
|
-
style: [styles.actionText, {
|
|
136
|
-
color: pressed ? actionColors.interacted.textColor : actionColors.base.textColor
|
|
137
|
-
}],
|
|
138
|
-
children: children
|
|
139
|
-
})
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
function useToastColors({
|
|
143
|
-
type,
|
|
144
|
-
colors
|
|
145
|
-
}) {
|
|
146
|
-
return useMemo(() => {
|
|
147
|
-
const colorMap = {
|
|
148
|
-
default: {
|
|
149
|
-
backgroundColor: colors.backgroundSecondary,
|
|
150
|
-
borderColor: colors.border,
|
|
151
|
-
iconColor: colors.text,
|
|
152
|
-
textColor: colors.text
|
|
153
|
-
},
|
|
154
|
-
success: {
|
|
155
|
-
backgroundColor: colors.primarySubtle,
|
|
156
|
-
borderColor: colors.primary,
|
|
157
|
-
iconColor: colors.primarySubtleForeground,
|
|
158
|
-
textColor: colors.primarySubtleForeground
|
|
159
|
-
},
|
|
160
|
-
error: {
|
|
161
|
-
backgroundColor: colors.negativeSubtle,
|
|
162
|
-
borderColor: colors.negative,
|
|
163
|
-
iconColor: colors.negativeSubtleForeground,
|
|
164
|
-
textColor: colors.negativeSubtleForeground
|
|
165
|
-
},
|
|
166
|
-
warning: {
|
|
167
|
-
backgroundColor: colors.backgroundSecondary,
|
|
168
|
-
borderColor: colors.border,
|
|
169
|
-
iconColor: colors.warning,
|
|
170
|
-
textColor: colors.text
|
|
171
|
-
},
|
|
172
|
-
info: {
|
|
173
|
-
backgroundColor: colors.backgroundSecondary,
|
|
174
|
-
borderColor: colors.border,
|
|
175
|
-
iconColor: colors.info,
|
|
176
|
-
textColor: colors.text
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
return colorMap[type];
|
|
180
|
-
}, [type, colors]);
|
|
181
|
-
}
|
|
182
|
-
function useActionColors({
|
|
183
|
-
type,
|
|
184
|
-
colors
|
|
185
|
-
}) {
|
|
186
|
-
return useMemo(() => {
|
|
187
|
-
const base = {
|
|
188
|
-
base: {
|
|
189
|
-
textColor: colors.textSecondary,
|
|
190
|
-
backgroundColor: colors.backgroundTertiary
|
|
191
|
-
},
|
|
192
|
-
interacted: {
|
|
193
|
-
textColor: colors.text,
|
|
194
|
-
backgroundColor: colors.contrast50
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
const colorMap = {
|
|
198
|
-
default: base,
|
|
199
|
-
warning: base,
|
|
200
|
-
info: base,
|
|
201
|
-
success: {
|
|
202
|
-
base: {
|
|
203
|
-
textColor: colors.primarySubtleForeground,
|
|
204
|
-
backgroundColor: colors.primarySubtle
|
|
205
|
-
},
|
|
206
|
-
interacted: {
|
|
207
|
-
textColor: colors.primaryDark,
|
|
208
|
-
backgroundColor: colors.primaryLight
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
error: {
|
|
212
|
-
base: {
|
|
213
|
-
textColor: colors.negativeSubtleForeground,
|
|
214
|
-
backgroundColor: colors.negativeSubtle
|
|
215
|
-
},
|
|
216
|
-
interacted: {
|
|
217
|
-
textColor: colors.negativeForeground,
|
|
218
|
-
backgroundColor: colors.negative
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
return colorMap[type];
|
|
223
|
-
}, [type, colors]);
|
|
224
|
-
}
|
|
225
|
-
const styles = StyleSheet.create({
|
|
226
|
-
outer: {
|
|
227
|
-
flex: 1,
|
|
228
|
-
padding: 16,
|
|
229
|
-
borderRadius: 8,
|
|
230
|
-
borderWidth: 1,
|
|
231
|
-
flexDirection: 'row',
|
|
232
|
-
gap: 8,
|
|
233
|
-
paddingVertical: 14,
|
|
234
|
-
// Subtle raise (`shadow-s`) — `boxShadow` on web, RN shadow/elevation on native.
|
|
235
|
-
...bloomShadowStyle('s')
|
|
236
|
-
},
|
|
237
|
-
textContainer: {
|
|
238
|
-
flex: 1,
|
|
239
|
-
paddingRight: 16
|
|
240
|
-
},
|
|
241
|
-
text: {
|
|
242
|
-
fontSize: 15,
|
|
243
|
-
fontWeight: '500',
|
|
244
|
-
lineHeight: 20
|
|
245
|
-
},
|
|
246
|
-
actionButton: {
|
|
247
|
-
paddingVertical: 5,
|
|
248
|
-
paddingHorizontal: 9,
|
|
249
|
-
borderRadius: 6,
|
|
250
|
-
alignSelf: 'center'
|
|
251
|
-
},
|
|
252
|
-
actionText: {
|
|
253
|
-
fontSize: 15,
|
|
254
|
-
fontWeight: '500',
|
|
255
|
-
lineHeight: 20
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
//# sourceMappingURL=Toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useContext","useMemo","View","Text","RNText","Pressable","StyleSheet","useTheme","useInteractionState","bloomShadowStyle","dismiss","jsx","_jsx","Fragment","_Fragment","ToastConfigContext","id","type","displayName","ToastConfigProvider","children","Provider","value","Outer","colors","toastColors","useToastColors","style","styles","outer","backgroundColor","borderColor","Icon","icon","isValidElement","cloneElement","color","iconColor","textContainer","selectable","text","textColor","Action","onPress","rest","actionColors","useActionColors","state","pressed","onIn","onPressIn","onOut","onPressOut","handlePress","e","actionButton","interacted","base","actionText","colorMap","default","backgroundSecondary","border","success","primarySubtle","primary","primarySubtleForeground","error","negativeSubtle","negative","negativeSubtleForeground","warning","info","textSecondary","backgroundTertiary","contrast50","primaryDark","primaryLight","negativeForeground","create","flex","padding","borderRadius","borderWidth","flexDirection","gap","paddingVertical","paddingRight","fontSize","fontWeight","lineHeight","paddingHorizontal","alignSelf"],"sourceRoot":"../../../src","sources":["toast/Toast.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACjE,SACEC,IAAI,EACJC,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IACZ+B,eAAe,EAAE,CAAC;IAClBK,iBAAiB,EAAE,CAAC;IACpBT,YAAY,EAAE,CAAC;IACfU,SAAS,EAAE;EACb,CAAC;EACDlC,UAAU,EAAE;IACV8B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DURATION"],"sourceRoot":"../../../src","sources":["toast/const.ts"],"mappings":";;AAAA,OAAO,MAAMA,QAAQ,GAAG,GAAG","ignoreList":[]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { isValidElement } from 'react';
|
|
4
|
-
import { nanoid } from 'nanoid/non-secure';
|
|
5
|
-
import { toast as sonner, Toaster } from 'sonner';
|
|
6
|
-
import { DURATION } from "./const.js";
|
|
7
|
-
import { Icon as ToastIcon, Outer as ToastOuter, Text as ToastText, ToastConfigProvider } from "./Toast.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
export { DURATION } from "./const.js";
|
|
10
|
-
export { Action, Icon, Outer, Text, ToastConfigProvider } from "./Toast.js";
|
|
11
|
-
/**
|
|
12
|
-
* Toasts are rendered in a global outlet, which is placed at the top of the
|
|
13
|
-
* component tree.
|
|
14
|
-
*/
|
|
15
|
-
export function ToastOutlet() {
|
|
16
|
-
return /*#__PURE__*/_jsx(Toaster, {
|
|
17
|
-
position: "bottom-left",
|
|
18
|
-
gap: 8,
|
|
19
|
-
offset: 20,
|
|
20
|
-
mobileOffset: 20
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** Direct access to the underlying Sonner API. Use sparingly. */
|
|
25
|
-
export const api = sonner;
|
|
26
|
-
function dispatch(content, type, options = {}) {
|
|
27
|
-
const id = nanoid();
|
|
28
|
-
if (typeof content === 'string') {
|
|
29
|
-
sonner(/*#__PURE__*/_jsx(ToastConfigProvider, {
|
|
30
|
-
id: id,
|
|
31
|
-
type: type,
|
|
32
|
-
children: /*#__PURE__*/_jsxs(ToastOuter, {
|
|
33
|
-
children: [/*#__PURE__*/_jsx(ToastIcon, {}), /*#__PURE__*/_jsx(ToastText, {
|
|
34
|
-
children: content
|
|
35
|
-
})]
|
|
36
|
-
})
|
|
37
|
-
}), {
|
|
38
|
-
...options,
|
|
39
|
-
unstyled: true,
|
|
40
|
-
id,
|
|
41
|
-
duration: options?.duration ?? DURATION
|
|
42
|
-
});
|
|
43
|
-
} else if (/*#__PURE__*/isValidElement(content)) {
|
|
44
|
-
sonner(/*#__PURE__*/_jsx(ToastConfigProvider, {
|
|
45
|
-
id: id,
|
|
46
|
-
type: type,
|
|
47
|
-
children: content
|
|
48
|
-
}), {
|
|
49
|
-
...options,
|
|
50
|
-
unstyled: true,
|
|
51
|
-
id,
|
|
52
|
-
duration: options?.duration ?? DURATION
|
|
53
|
-
});
|
|
54
|
-
} else {
|
|
55
|
-
throw new Error(`Toast can be a string or a React element, got ${typeof content}`);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Show a toast notification. Identical API to the native variant — see
|
|
61
|
-
* `./index.tsx` for the full usage docs.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
const toastImpl = (content, options = {}) => {
|
|
65
|
-
dispatch(content, options.type ?? 'default', options);
|
|
66
|
-
};
|
|
67
|
-
toastImpl.success = (content, options) => dispatch(content, 'success', options ?? {});
|
|
68
|
-
toastImpl.error = (content, options) => dispatch(content, 'error', options ?? {});
|
|
69
|
-
toastImpl.warning = (content, options) => dispatch(content, 'warning', options ?? {});
|
|
70
|
-
toastImpl.info = (content, options) => dispatch(content, 'info', options ?? {});
|
|
71
|
-
toastImpl.dismiss = id => sonner.dismiss(id);
|
|
72
|
-
export const toast = toastImpl;
|
|
73
|
-
export const show = toastImpl;
|
|
74
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","isValidElement","nanoid","toast","sonner","Toaster","DURATION","Icon","ToastIcon","Outer","ToastOuter","Text","ToastText","ToastConfigProvider","jsx","_jsx","jsxs","_jsxs","Action","ToastOutlet","position","gap","offset","mobileOffset","api","dispatch","content","type","options","id","children","unstyled","duration","Error","toastImpl","success","error","warning","info","dismiss","show"],"sourceRoot":"../../../src","sources":["toast/index.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,cAAc,QAAQ,OAAO;AAC7C,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,KAAK,IAAIC,MAAM,EAAEC,OAAO,QAAQ,QAAQ;AAEjD,SAASC,QAAQ,QAAQ,YAAS;AAClC,SACEC,IAAI,IAAIC,SAAS,EACjBC,KAAK,IAAIC,UAAU,EACnBC,IAAI,IAAIC,SAAS,EACjBC,mBAAmB,QACd,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGjB,SAASX,QAAQ,QAAQ,YAAS;AAClC,SAASY,MAAM,EAAEX,IAAI,EAAEE,KAAK,EAAEE,IAAI,EAAEE,mBAAmB,QAAQ,YAAS;AAGxE;AACA;AACA;AACA;AACA,OAAO,SAASM,WAAWA,CAAA,EAAG;EAC5B,oBACEJ,IAAA,CAACV,OAAO;IACNe,QAAQ,EAAC,aAAa;IACtBC,GAAG,EAAE,CAAE;IACPC,MAAM,EAAE,EAAG;IACXC,YAAY,EAAE;EAAG,CAClB,CAAC;AAEN;;AAEA;AACA,OAAO,MAAMC,GAAkB,GAAGpB,MAAM;AAExC,SAASqB,QAAQA,CACfC,OAAwB,EACxBC,IAAe,EACfC,OAAyB,GAAG,CAAC,CAAC,EACxB;EACN,MAAMC,EAAE,GAAG3B,MAAM,CAAC,CAAC;EACnB,IAAI,OAAOwB,OAAO,KAAK,QAAQ,EAAE;IAC/BtB,MAAM,cAC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O,IAAI,CAAC,CAAC,CAAC;AACjFM,SAAS,CAACG,OAAO,GAAG,CAACX,OAAO,EAAEE,OAAO,KAAKH,QAAQ,CAACC,OAAO,EAAE,SAAS,EAAEE,OAAO,IAAI,CAAC,CAAC,CAAC;AACrFM,SAAS,CAACI,IAAI,GAAG,CAACZ,OAAO,EAAEE,OAAO,KAAKH,QAAQ,CAACC,OAAO,EAAE,MAAM,EAAEE,OAAO,IAAI,CAAC,CAAC,CAAC;AAC/EM,SAAS,CAACK,OAAO,GAAIV,EAAE,IAAKzB,MAAM,CAACmC,OAAO,CAACV,EAAE,CAAC;AAE9C,OAAO,MAAM1B,KAAc,GAAG+B,SAAS;AACvC,OAAO,MAAMM,IAAa,GAAGN,SAAS","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["toast","dismiss"],"sourceRoot":"../../../../src","sources":["toast/sonner/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,eAAe;AAErC,OAAO,MAAMC,OAAO,GAAGD,KAAK,CAACC,OAAO","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["toast","dismiss"],"sourceRoot":"../../../../src","sources":["toast/sonner/index.web.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,QAAQ;AAE9B,OAAO,MAAMC,OAAO,GAAGD,KAAK,CAACC,OAAO","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type GestureResponderEvent } from 'react-native';
|
|
3
|
-
import type { ToastType } from './types';
|
|
4
|
-
export declare function ToastConfigProvider({ children, id, type, }: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
id: string;
|
|
7
|
-
type: ToastType;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function Outer({ children }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function Icon({ icon }: {
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
-
export declare function Text({ children }: {
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare function Action({ children, onPress, ...rest }: {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
onPress?: (e: GestureResponderEvent) => void;
|
|
21
|
-
label?: string;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAWzC,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,EAAE,EACF,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;CACjB,2CAOA;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiBhE;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,kDAgBxD;AAED,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiB/D;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,OAAO,EACP,GAAG,IAAI,EACR,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CA0CA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../src/toast/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,OAAM,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { toast as sonner } from 'sonner';
|
|
3
|
-
import type { BaseToastOptions } from './types';
|
|
4
|
-
export { DURATION } from './const';
|
|
5
|
-
export { Action, Icon, Outer, Text, ToastConfigProvider } from './Toast';
|
|
6
|
-
export type { ToastType, BaseToastOptions } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* Toasts are rendered in a global outlet, which is placed at the top of the
|
|
9
|
-
* component tree.
|
|
10
|
-
*/
|
|
11
|
-
export declare function ToastOutlet(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
/** Direct access to the underlying Sonner API. Use sparingly. */
|
|
13
|
-
export declare const api: typeof sonner;
|
|
14
|
-
/**
|
|
15
|
-
* Show a toast notification. Identical API to the native variant — see
|
|
16
|
-
* `./index.tsx` for the full usage docs.
|
|
17
|
-
*/
|
|
18
|
-
export interface ToastFn {
|
|
19
|
-
(content: React.ReactNode, options?: BaseToastOptions): void;
|
|
20
|
-
success: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
21
|
-
error: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
22
|
-
warning: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
23
|
-
info: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
24
|
-
dismiss: (id?: string | number) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const toast: ToastFn;
|
|
27
|
-
export declare const show: ToastFn;
|
|
28
|
-
export type Toast = ToastFn;
|
|
29
|
-
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/toast/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,KAAK,IAAI,MAAM,EAAW,MAAM,QAAQ,CAAC;AASlD,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3D;;;GAGG;AACH,wBAAgB,WAAW,4CAS1B;AAED,iEAAiE;AACjE,eAAO,MAAM,GAAG,EAAE,OAAO,MAAe,CAAC;AA0CzC;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtF,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACpF,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtF,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACnF,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CACzC;AAYD,eAAO,MAAM,KAAK,EAAE,OAAmB,CAAC;AACxC,eAAO,MAAM,IAAI,EAAE,OAAmB,CAAC;AACvC,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/toast/sonner/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,uDAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../../src/toast/sonner/index.web.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,2CAAgB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type GestureResponderEvent } from 'react-native';
|
|
3
|
-
import type { ToastType } from './types';
|
|
4
|
-
export declare function ToastConfigProvider({ children, id, type, }: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
id: string;
|
|
7
|
-
type: ToastType;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function Outer({ children }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function Icon({ icon }: {
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
-
export declare function Text({ children }: {
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare function Action({ children, onPress, ...rest }: {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
onPress?: (e: GestureResponderEvent) => void;
|
|
21
|
-
label?: string;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAWzC,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,EAAE,EACF,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;CACjB,2CAOA;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiBhE;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,kDAgBxD;AAED,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiB/D;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,OAAO,EACP,GAAG,IAAI,EACR,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CA0CA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../src/toast/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,OAAM,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { toast as sonner } from 'sonner';
|
|
3
|
-
import type { BaseToastOptions } from './types';
|
|
4
|
-
export { DURATION } from './const';
|
|
5
|
-
export { Action, Icon, Outer, Text, ToastConfigProvider } from './Toast';
|
|
6
|
-
export type { ToastType, BaseToastOptions } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* Toasts are rendered in a global outlet, which is placed at the top of the
|
|
9
|
-
* component tree.
|
|
10
|
-
*/
|
|
11
|
-
export declare function ToastOutlet(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
/** Direct access to the underlying Sonner API. Use sparingly. */
|
|
13
|
-
export declare const api: typeof sonner;
|
|
14
|
-
/**
|
|
15
|
-
* Show a toast notification. Identical API to the native variant — see
|
|
16
|
-
* `./index.tsx` for the full usage docs.
|
|
17
|
-
*/
|
|
18
|
-
export interface ToastFn {
|
|
19
|
-
(content: React.ReactNode, options?: BaseToastOptions): void;
|
|
20
|
-
success: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
21
|
-
error: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
22
|
-
warning: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
23
|
-
info: (content: React.ReactNode, options?: Omit<BaseToastOptions, 'type'>) => void;
|
|
24
|
-
dismiss: (id?: string | number) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const toast: ToastFn;
|
|
27
|
-
export declare const show: ToastFn;
|
|
28
|
-
export type Toast = ToastFn;
|
|
29
|
-
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/toast/index.web.tsx"],"names":[],"mappings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AAYD,eAAO,MAAM,KAAK,EAAE,OAAmB,CAAC;AACxC,eAAO,MAAM,IAAI,EAAE,OAAmB,CAAC;AACvC,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/toast/sonner/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,uDAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../../src/toast/sonner/index.web.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,2CAAgB,CAAC"}
|