@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.
Files changed (567) hide show
  1. package/NOTICE +89 -0
  2. package/README.md +12 -7
  3. package/lib/commonjs/avatar-group/AvatarGroup.web.js +2 -1
  4. package/lib/commonjs/avatar-group/AvatarGroup.web.js.map +1 -1
  5. package/lib/commonjs/bottom-sheet/index.web.js +2 -1
  6. package/lib/commonjs/bottom-sheet/index.web.js.map +1 -1
  7. package/lib/commonjs/context-menu/index.web.js +3 -2
  8. package/lib/commonjs/context-menu/index.web.js.map +1 -1
  9. package/lib/commonjs/dialog/Dialog.web.js +4 -3
  10. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  11. package/lib/commonjs/frosted-icon-button/shared.js +1 -1
  12. package/lib/commonjs/index.js +90 -83
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/index.web.js +116 -109
  15. package/lib/commonjs/index.web.js.map +1 -1
  16. package/lib/commonjs/menu/index.web.js +2 -1
  17. package/lib/commonjs/menu/index.web.js.map +1 -1
  18. package/lib/commonjs/popover/index.web.js +3 -2
  19. package/lib/commonjs/popover/index.web.js.map +1 -1
  20. package/lib/commonjs/portal/index.js +4 -1
  21. package/lib/commonjs/portal/index.js.map +1 -1
  22. package/lib/commonjs/progressive-blur/index.js +79 -0
  23. package/lib/commonjs/progressive-blur/index.js.map +1 -0
  24. package/lib/commonjs/progressive-blur/index.web.js +67 -0
  25. package/lib/commonjs/progressive-blur/index.web.js.map +1 -0
  26. package/lib/commonjs/progressive-blur/shared.js +66 -0
  27. package/lib/commonjs/progressive-blur/shared.js.map +1 -0
  28. package/lib/commonjs/progressive-blur/types.js +6 -0
  29. package/lib/commonjs/progressive-blur/types.js.map +1 -0
  30. package/lib/commonjs/select/index.web.js +2 -1
  31. package/lib/commonjs/select/index.web.js.map +1 -1
  32. package/lib/commonjs/styles/web-view-style.js +26 -0
  33. package/lib/commonjs/styles/web-view-style.js.map +1 -0
  34. package/lib/commonjs/tab-bar/TabBarBase.js +415 -0
  35. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -0
  36. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js +83 -0
  37. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js.map +1 -0
  38. package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js +119 -0
  39. package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
  40. package/lib/commonjs/tab-bar/expo-router/index.js +26 -0
  41. package/lib/commonjs/tab-bar/expo-router/index.js.map +1 -0
  42. package/lib/commonjs/tab-bar/glyph.js +43 -0
  43. package/lib/commonjs/tab-bar/glyph.js.map +1 -0
  44. package/lib/commonjs/tab-bar/glyph.native.js +55 -0
  45. package/lib/commonjs/tab-bar/glyph.native.js.map +1 -0
  46. package/lib/commonjs/tab-bar/index.js +65 -0
  47. package/lib/commonjs/tab-bar/index.js.map +1 -0
  48. package/lib/commonjs/tab-bar/index.web.js +67 -0
  49. package/lib/commonjs/tab-bar/index.web.js.map +1 -0
  50. package/lib/commonjs/tab-bar/minimize-context.js +127 -0
  51. package/lib/commonjs/tab-bar/minimize-context.js.map +1 -0
  52. package/lib/commonjs/tab-bar/shared.js +139 -0
  53. package/lib/commonjs/tab-bar/shared.js.map +1 -0
  54. package/lib/commonjs/tab-bar/surface-solid.js +43 -0
  55. package/lib/commonjs/tab-bar/surface-solid.js.map +1 -0
  56. package/lib/commonjs/tab-bar/surface.js +13 -0
  57. package/lib/commonjs/tab-bar/surface.js.map +1 -0
  58. package/lib/commonjs/tab-bar/surface.native.js +113 -0
  59. package/lib/commonjs/tab-bar/surface.native.js.map +1 -0
  60. package/lib/commonjs/tab-bar/surface.web.js +59 -0
  61. package/lib/commonjs/tab-bar/surface.web.js.map +1 -0
  62. package/lib/commonjs/tab-bar/types.js +6 -0
  63. package/lib/commonjs/tab-bar/types.js.map +1 -0
  64. package/lib/commonjs/toast/Positioner.js +117 -0
  65. package/lib/commonjs/toast/Positioner.js.map +1 -0
  66. package/lib/commonjs/toast/ToastContent.js +301 -0
  67. package/lib/commonjs/toast/ToastContent.js.map +1 -0
  68. package/lib/commonjs/toast/ToastHost.js +69 -0
  69. package/lib/commonjs/toast/ToastHost.js.map +1 -0
  70. package/lib/commonjs/toast/ToastHost.native.js +44 -0
  71. package/lib/commonjs/toast/ToastHost.native.js.map +1 -0
  72. package/lib/commonjs/toast/ToastIcon.js +57 -0
  73. package/lib/commonjs/toast/ToastIcon.js.map +1 -0
  74. package/lib/commonjs/toast/ToastRow.js +411 -0
  75. package/lib/commonjs/toast/ToastRow.js.map +1 -0
  76. package/lib/commonjs/toast/ToastSwipeHandler.js +189 -0
  77. package/lib/commonjs/toast/ToastSwipeHandler.js.map +1 -0
  78. package/lib/commonjs/toast/Toaster.js +205 -0
  79. package/lib/commonjs/toast/Toaster.js.map +1 -0
  80. package/lib/commonjs/toast/animations.js +274 -0
  81. package/lib/commonjs/toast/animations.js.map +1 -0
  82. package/lib/commonjs/toast/constants.js +56 -0
  83. package/lib/commonjs/toast/constants.js.map +1 -0
  84. package/lib/commonjs/toast/context.js +42 -0
  85. package/lib/commonjs/toast/context.js.map +1 -0
  86. package/lib/commonjs/toast/index.js +32 -126
  87. package/lib/commonjs/toast/index.js.map +1 -1
  88. package/lib/commonjs/toast/position-utils.js +115 -0
  89. package/lib/commonjs/toast/position-utils.js.map +1 -0
  90. package/lib/commonjs/toast/positioner-utils.js +141 -0
  91. package/lib/commonjs/toast/positioner-utils.js.map +1 -0
  92. package/lib/commonjs/toast/toast-comparator.js +28 -0
  93. package/lib/commonjs/toast/toast-comparator.js.map +1 -0
  94. package/lib/commonjs/toast/toast-fns.js +90 -0
  95. package/lib/commonjs/toast/toast-fns.js.map +1 -0
  96. package/lib/commonjs/toast/toast-store.js +352 -0
  97. package/lib/commonjs/toast/toast-store.js.map +1 -0
  98. package/lib/commonjs/toast/toast-timers.js +110 -0
  99. package/lib/commonjs/toast/toast-timers.js.map +1 -0
  100. package/lib/commonjs/toast/types.js +42 -0
  101. package/lib/commonjs/toast/types.js.map +1 -1
  102. package/lib/commonjs/toast/use-animated-target.js +57 -0
  103. package/lib/commonjs/toast/use-animated-target.js.map +1 -0
  104. package/lib/commonjs/toast/use-app-state.js +76 -0
  105. package/lib/commonjs/toast/use-app-state.js.map +1 -0
  106. package/lib/commonjs/toast/use-toast-colors.js +114 -0
  107. package/lib/commonjs/toast/use-toast-colors.js.map +1 -0
  108. package/lib/commonjs/toast/use-toast-position.js +40 -0
  109. package/lib/commonjs/toast/use-toast-position.js.map +1 -0
  110. package/lib/commonjs/tooltip/index.web.js +2 -1
  111. package/lib/commonjs/tooltip/index.web.js.map +1 -1
  112. package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
  113. package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
  114. package/lib/module/avatar-group/AvatarGroup.web.js +2 -1
  115. package/lib/module/avatar-group/AvatarGroup.web.js.map +1 -1
  116. package/lib/module/bottom-sheet/index.web.js +2 -1
  117. package/lib/module/bottom-sheet/index.web.js.map +1 -1
  118. package/lib/module/context-menu/index.web.js +3 -2
  119. package/lib/module/context-menu/index.web.js.map +1 -1
  120. package/lib/module/dialog/Dialog.web.js +4 -3
  121. package/lib/module/dialog/Dialog.web.js.map +1 -1
  122. package/lib/module/frosted-icon-button/shared.js +1 -1
  123. package/lib/module/index.js +3 -2
  124. package/lib/module/index.js.map +1 -1
  125. package/lib/module/index.web.js +3 -2
  126. package/lib/module/index.web.js.map +1 -1
  127. package/lib/module/menu/index.web.js +2 -1
  128. package/lib/module/menu/index.web.js.map +1 -1
  129. package/lib/module/popover/index.web.js +3 -2
  130. package/lib/module/popover/index.web.js.map +1 -1
  131. package/lib/module/portal/index.js +4 -1
  132. package/lib/module/portal/index.js.map +1 -1
  133. package/lib/module/progressive-blur/index.js +74 -0
  134. package/lib/module/progressive-blur/index.js.map +1 -0
  135. package/lib/module/progressive-blur/index.web.js +62 -0
  136. package/lib/module/progressive-blur/index.web.js.map +1 -0
  137. package/lib/module/progressive-blur/shared.js +60 -0
  138. package/lib/module/progressive-blur/shared.js.map +1 -0
  139. package/lib/module/progressive-blur/types.js +4 -0
  140. package/lib/module/progressive-blur/types.js.map +1 -0
  141. package/lib/module/select/index.web.js +2 -1
  142. package/lib/module/select/index.web.js.map +1 -1
  143. package/lib/module/styles/web-view-style.js +22 -0
  144. package/lib/module/styles/web-view-style.js.map +1 -0
  145. package/lib/module/tab-bar/TabBarBase.js +408 -0
  146. package/lib/module/tab-bar/TabBarBase.js.map +1 -0
  147. package/lib/module/tab-bar/expo-router/RouterTabBar.js +78 -0
  148. package/lib/module/tab-bar/expo-router/RouterTabBar.js.map +1 -0
  149. package/lib/module/tab-bar/expo-router/fading-tab-screen.js +113 -0
  150. package/lib/module/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
  151. package/lib/module/tab-bar/expo-router/index.js +15 -0
  152. package/lib/module/tab-bar/expo-router/index.js.map +1 -0
  153. package/lib/module/tab-bar/glyph.js +38 -0
  154. package/lib/module/tab-bar/glyph.js.map +1 -0
  155. package/lib/module/tab-bar/glyph.native.js +50 -0
  156. package/lib/module/tab-bar/glyph.native.js.map +1 -0
  157. package/lib/module/tab-bar/index.js +24 -0
  158. package/lib/module/tab-bar/index.js.map +1 -0
  159. package/lib/module/tab-bar/index.web.js +26 -0
  160. package/lib/module/tab-bar/index.web.js.map +1 -0
  161. package/lib/module/tab-bar/minimize-context.js +118 -0
  162. package/lib/module/tab-bar/minimize-context.js.map +1 -0
  163. package/lib/module/tab-bar/shared.js +132 -0
  164. package/lib/module/tab-bar/shared.js.map +1 -0
  165. package/lib/module/tab-bar/surface-solid.js +37 -0
  166. package/lib/module/tab-bar/surface-solid.js.map +1 -0
  167. package/lib/module/tab-bar/surface.js +31 -0
  168. package/lib/module/tab-bar/surface.js.map +1 -0
  169. package/lib/module/tab-bar/surface.native.js +109 -0
  170. package/lib/module/tab-bar/surface.native.js.map +1 -0
  171. package/lib/module/tab-bar/surface.web.js +53 -0
  172. package/lib/module/tab-bar/surface.web.js.map +1 -0
  173. package/lib/module/tab-bar/types.js +4 -0
  174. package/lib/module/tab-bar/types.js.map +1 -0
  175. package/lib/module/toast/Positioner.js +110 -0
  176. package/lib/module/toast/Positioner.js.map +1 -0
  177. package/lib/module/toast/ToastContent.js +295 -0
  178. package/lib/module/toast/ToastContent.js.map +1 -0
  179. package/lib/module/toast/ToastHost.js +63 -0
  180. package/lib/module/toast/ToastHost.js.map +1 -0
  181. package/lib/module/toast/ToastHost.native.js +38 -0
  182. package/lib/module/toast/ToastHost.native.js.map +1 -0
  183. package/lib/module/toast/ToastIcon.js +52 -0
  184. package/lib/module/toast/ToastIcon.js.map +1 -0
  185. package/lib/module/toast/ToastRow.js +407 -0
  186. package/lib/module/toast/ToastRow.js.map +1 -0
  187. package/lib/module/toast/ToastSwipeHandler.js +182 -0
  188. package/lib/module/toast/ToastSwipeHandler.js.map +1 -0
  189. package/lib/module/toast/Toaster.js +198 -0
  190. package/lib/module/toast/Toaster.js.map +1 -0
  191. package/lib/module/toast/animations.js +261 -0
  192. package/lib/module/toast/animations.js.map +1 -0
  193. package/lib/module/toast/constants.js +52 -0
  194. package/lib/module/toast/constants.js.map +1 -0
  195. package/lib/module/toast/context.js +34 -0
  196. package/lib/module/toast/context.js.map +1 -0
  197. package/lib/module/toast/index.js +27 -103
  198. package/lib/module/toast/index.js.map +1 -1
  199. package/lib/module/toast/position-utils.js +107 -0
  200. package/lib/module/toast/position-utils.js.map +1 -0
  201. package/lib/module/toast/positioner-utils.js +134 -0
  202. package/lib/module/toast/positioner-utils.js.map +1 -0
  203. package/lib/module/toast/toast-comparator.js +22 -0
  204. package/lib/module/toast/toast-comparator.js.map +1 -0
  205. package/lib/module/toast/toast-fns.js +85 -0
  206. package/lib/module/toast/toast-fns.js.map +1 -0
  207. package/lib/module/toast/toast-store.js +346 -0
  208. package/lib/module/toast/toast-store.js.map +1 -0
  209. package/lib/module/toast/toast-timers.js +104 -0
  210. package/lib/module/toast/toast-timers.js.map +1 -0
  211. package/lib/module/toast/types.js +38 -0
  212. package/lib/module/toast/types.js.map +1 -1
  213. package/lib/module/toast/use-animated-target.js +52 -0
  214. package/lib/module/toast/use-animated-target.js.map +1 -0
  215. package/lib/module/toast/use-app-state.js +70 -0
  216. package/lib/module/toast/use-app-state.js.map +1 -0
  217. package/lib/module/toast/use-toast-colors.js +109 -0
  218. package/lib/module/toast/use-toast-colors.js.map +1 -0
  219. package/lib/module/toast/use-toast-position.js +35 -0
  220. package/lib/module/toast/use-toast-position.js.map +1 -0
  221. package/lib/module/tooltip/index.web.js +2 -1
  222. package/lib/module/tooltip/index.web.js.map +1 -1
  223. package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
  224. package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
  225. package/lib/typescript/commonjs/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/benefit-list/types.d.ts +2 -1
  227. package/lib/typescript/commonjs/benefit-list/types.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/bottom-sheet/index.web.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/fab/types.d.ts +4 -2
  232. package/lib/typescript/commonjs/fab/types.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/frosted-icon-button/shared.d.ts +1 -1
  234. package/lib/typescript/commonjs/frosted-icon-button/types.d.ts +2 -1
  235. package/lib/typescript/commonjs/frosted-icon-button/types.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/index.d.ts +2 -1
  237. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/index.web.d.ts +2 -1
  239. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/menu/index.web.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/portal/index.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/progressive-blur/index.d.ts +23 -0
  244. package/lib/typescript/commonjs/progressive-blur/index.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/progressive-blur/index.web.d.ts +30 -0
  246. package/lib/typescript/commonjs/progressive-blur/index.web.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/progressive-blur/shared.d.ts +35 -0
  248. package/lib/typescript/commonjs/progressive-blur/shared.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/progressive-blur/types.d.ts +21 -0
  250. package/lib/typescript/commonjs/progressive-blur/types.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/styles/web-view-style.d.ts +21 -0
  253. package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts +36 -0
  255. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
  257. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
  259. package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts +14 -0
  261. package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/tab-bar/glyph.d.ts +6 -0
  263. package/lib/typescript/commonjs/tab-bar/glyph.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts +6 -0
  265. package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/tab-bar/index.d.ts +12 -0
  267. package/lib/typescript/commonjs/tab-bar/index.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/tab-bar/index.web.d.ts +12 -0
  269. package/lib/typescript/commonjs/tab-bar/index.web.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts +51 -0
  271. package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/tab-bar/shared.d.ts +93 -0
  273. package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/tab-bar/surface-solid.d.ts +6 -0
  275. package/lib/typescript/commonjs/tab-bar/surface-solid.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/tab-bar/surface.d.ts +29 -0
  277. package/lib/typescript/commonjs/tab-bar/surface.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/tab-bar/surface.native.d.ts +6 -0
  279. package/lib/typescript/commonjs/tab-bar/surface.native.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/tab-bar/surface.web.d.ts +6 -0
  281. package/lib/typescript/commonjs/tab-bar/surface.web.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/tab-bar/types.d.ts +88 -0
  283. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/toast/Positioner.d.ts +21 -0
  285. package/lib/typescript/commonjs/toast/Positioner.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/toast/ToastContent.d.ts +14 -0
  287. package/lib/typescript/commonjs/toast/ToastContent.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/toast/ToastHost.d.ts +6 -0
  289. package/lib/typescript/commonjs/toast/ToastHost.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/toast/ToastHost.native.d.ts +6 -0
  291. package/lib/typescript/commonjs/toast/ToastHost.native.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/toast/ToastIcon.d.ts +9 -0
  293. package/lib/typescript/commonjs/toast/ToastIcon.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/toast/ToastRow.d.ts +80 -0
  295. package/lib/typescript/commonjs/toast/ToastRow.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts +30 -0
  297. package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/toast/Toaster.d.ts +19 -0
  299. package/lib/typescript/commonjs/toast/Toaster.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/toast/animations.d.ts +62 -0
  301. package/lib/typescript/commonjs/toast/animations.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/toast/constants.d.ts +39 -0
  303. package/lib/typescript/commonjs/toast/constants.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/toast/context.d.ts +19 -0
  305. package/lib/typescript/commonjs/toast/context.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/toast/index.d.ts +23 -76
  307. package/lib/typescript/commonjs/toast/index.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/toast/position-utils.d.ts +30 -0
  309. package/lib/typescript/commonjs/toast/position-utils.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/toast/positioner-utils.d.ts +72 -0
  311. package/lib/typescript/commonjs/toast/positioner-utils.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/toast/toast-comparator.d.ts +12 -0
  313. package/lib/typescript/commonjs/toast/toast-comparator.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/toast/toast-fns.d.ts +3 -0
  315. package/lib/typescript/commonjs/toast/toast-fns.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/toast/toast-store.d.ts +52 -0
  317. package/lib/typescript/commonjs/toast/toast-store.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/toast/toast-timers.d.ts +24 -0
  319. package/lib/typescript/commonjs/toast/toast-timers.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/toast/types.d.ts +222 -5
  321. package/lib/typescript/commonjs/toast/types.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/toast/use-animated-target.d.ts +7 -0
  323. package/lib/typescript/commonjs/toast/use-animated-target.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/toast/use-app-state.d.ts +18 -0
  325. package/lib/typescript/commonjs/toast/use-app-state.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/toast/use-toast-colors.d.ts +22 -0
  327. package/lib/typescript/commonjs/toast/use-toast-colors.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/toast/use-toast-position.d.ts +37 -0
  329. package/lib/typescript/commonjs/toast/use-toast-position.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
  332. package/lib/typescript/module/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  333. package/lib/typescript/module/benefit-list/types.d.ts +2 -1
  334. package/lib/typescript/module/benefit-list/types.d.ts.map +1 -1
  335. package/lib/typescript/module/bottom-sheet/index.web.d.ts.map +1 -1
  336. package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
  337. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  338. package/lib/typescript/module/fab/types.d.ts +4 -2
  339. package/lib/typescript/module/fab/types.d.ts.map +1 -1
  340. package/lib/typescript/module/frosted-icon-button/shared.d.ts +1 -1
  341. package/lib/typescript/module/frosted-icon-button/types.d.ts +2 -1
  342. package/lib/typescript/module/frosted-icon-button/types.d.ts.map +1 -1
  343. package/lib/typescript/module/index.d.ts +2 -1
  344. package/lib/typescript/module/index.d.ts.map +1 -1
  345. package/lib/typescript/module/index.web.d.ts +2 -1
  346. package/lib/typescript/module/index.web.d.ts.map +1 -1
  347. package/lib/typescript/module/menu/index.web.d.ts.map +1 -1
  348. package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
  349. package/lib/typescript/module/portal/index.d.ts.map +1 -1
  350. package/lib/typescript/module/progressive-blur/index.d.ts +23 -0
  351. package/lib/typescript/module/progressive-blur/index.d.ts.map +1 -0
  352. package/lib/typescript/module/progressive-blur/index.web.d.ts +30 -0
  353. package/lib/typescript/module/progressive-blur/index.web.d.ts.map +1 -0
  354. package/lib/typescript/module/progressive-blur/shared.d.ts +35 -0
  355. package/lib/typescript/module/progressive-blur/shared.d.ts.map +1 -0
  356. package/lib/typescript/module/progressive-blur/types.d.ts +21 -0
  357. package/lib/typescript/module/progressive-blur/types.d.ts.map +1 -0
  358. package/lib/typescript/module/select/index.web.d.ts.map +1 -1
  359. package/lib/typescript/module/styles/web-view-style.d.ts +21 -0
  360. package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -0
  361. package/lib/typescript/module/tab-bar/TabBarBase.d.ts +36 -0
  362. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -0
  363. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
  364. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
  365. package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
  366. package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
  367. package/lib/typescript/module/tab-bar/expo-router/index.d.ts +14 -0
  368. package/lib/typescript/module/tab-bar/expo-router/index.d.ts.map +1 -0
  369. package/lib/typescript/module/tab-bar/glyph.d.ts +6 -0
  370. package/lib/typescript/module/tab-bar/glyph.d.ts.map +1 -0
  371. package/lib/typescript/module/tab-bar/glyph.native.d.ts +6 -0
  372. package/lib/typescript/module/tab-bar/glyph.native.d.ts.map +1 -0
  373. package/lib/typescript/module/tab-bar/index.d.ts +12 -0
  374. package/lib/typescript/module/tab-bar/index.d.ts.map +1 -0
  375. package/lib/typescript/module/tab-bar/index.web.d.ts +12 -0
  376. package/lib/typescript/module/tab-bar/index.web.d.ts.map +1 -0
  377. package/lib/typescript/module/tab-bar/minimize-context.d.ts +51 -0
  378. package/lib/typescript/module/tab-bar/minimize-context.d.ts.map +1 -0
  379. package/lib/typescript/module/tab-bar/shared.d.ts +93 -0
  380. package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -0
  381. package/lib/typescript/module/tab-bar/surface-solid.d.ts +6 -0
  382. package/lib/typescript/module/tab-bar/surface-solid.d.ts.map +1 -0
  383. package/lib/typescript/module/tab-bar/surface.d.ts +29 -0
  384. package/lib/typescript/module/tab-bar/surface.d.ts.map +1 -0
  385. package/lib/typescript/module/tab-bar/surface.native.d.ts +6 -0
  386. package/lib/typescript/module/tab-bar/surface.native.d.ts.map +1 -0
  387. package/lib/typescript/module/tab-bar/surface.web.d.ts +6 -0
  388. package/lib/typescript/module/tab-bar/surface.web.d.ts.map +1 -0
  389. package/lib/typescript/module/tab-bar/types.d.ts +88 -0
  390. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -0
  391. package/lib/typescript/module/toast/Positioner.d.ts +21 -0
  392. package/lib/typescript/module/toast/Positioner.d.ts.map +1 -0
  393. package/lib/typescript/module/toast/ToastContent.d.ts +14 -0
  394. package/lib/typescript/module/toast/ToastContent.d.ts.map +1 -0
  395. package/lib/typescript/module/toast/ToastHost.d.ts +6 -0
  396. package/lib/typescript/module/toast/ToastHost.d.ts.map +1 -0
  397. package/lib/typescript/module/toast/ToastHost.native.d.ts +6 -0
  398. package/lib/typescript/module/toast/ToastHost.native.d.ts.map +1 -0
  399. package/lib/typescript/module/toast/ToastIcon.d.ts +9 -0
  400. package/lib/typescript/module/toast/ToastIcon.d.ts.map +1 -0
  401. package/lib/typescript/module/toast/ToastRow.d.ts +80 -0
  402. package/lib/typescript/module/toast/ToastRow.d.ts.map +1 -0
  403. package/lib/typescript/module/toast/ToastSwipeHandler.d.ts +30 -0
  404. package/lib/typescript/module/toast/ToastSwipeHandler.d.ts.map +1 -0
  405. package/lib/typescript/module/toast/Toaster.d.ts +19 -0
  406. package/lib/typescript/module/toast/Toaster.d.ts.map +1 -0
  407. package/lib/typescript/module/toast/animations.d.ts +62 -0
  408. package/lib/typescript/module/toast/animations.d.ts.map +1 -0
  409. package/lib/typescript/module/toast/constants.d.ts +39 -0
  410. package/lib/typescript/module/toast/constants.d.ts.map +1 -0
  411. package/lib/typescript/module/toast/context.d.ts +19 -0
  412. package/lib/typescript/module/toast/context.d.ts.map +1 -0
  413. package/lib/typescript/module/toast/index.d.ts +23 -76
  414. package/lib/typescript/module/toast/index.d.ts.map +1 -1
  415. package/lib/typescript/module/toast/position-utils.d.ts +30 -0
  416. package/lib/typescript/module/toast/position-utils.d.ts.map +1 -0
  417. package/lib/typescript/module/toast/positioner-utils.d.ts +72 -0
  418. package/lib/typescript/module/toast/positioner-utils.d.ts.map +1 -0
  419. package/lib/typescript/module/toast/toast-comparator.d.ts +12 -0
  420. package/lib/typescript/module/toast/toast-comparator.d.ts.map +1 -0
  421. package/lib/typescript/module/toast/toast-fns.d.ts +3 -0
  422. package/lib/typescript/module/toast/toast-fns.d.ts.map +1 -0
  423. package/lib/typescript/module/toast/toast-store.d.ts +52 -0
  424. package/lib/typescript/module/toast/toast-store.d.ts.map +1 -0
  425. package/lib/typescript/module/toast/toast-timers.d.ts +24 -0
  426. package/lib/typescript/module/toast/toast-timers.d.ts.map +1 -0
  427. package/lib/typescript/module/toast/types.d.ts +222 -5
  428. package/lib/typescript/module/toast/types.d.ts.map +1 -1
  429. package/lib/typescript/module/toast/use-animated-target.d.ts +7 -0
  430. package/lib/typescript/module/toast/use-animated-target.d.ts.map +1 -0
  431. package/lib/typescript/module/toast/use-app-state.d.ts +18 -0
  432. package/lib/typescript/module/toast/use-app-state.d.ts.map +1 -0
  433. package/lib/typescript/module/toast/use-toast-colors.d.ts +22 -0
  434. package/lib/typescript/module/toast/use-toast-colors.d.ts.map +1 -0
  435. package/lib/typescript/module/toast/use-toast-position.d.ts +37 -0
  436. package/lib/typescript/module/toast/use-toast-position.d.ts.map +1 -0
  437. package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
  438. package/lib/typescript/module/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
  439. package/package.json +58 -26
  440. package/src/__tests__/TabBar.test.tsx +342 -0
  441. package/src/__tests__/TabBarGlassFallback.test.tsx +234 -0
  442. package/src/__tests__/TabBarReanimatedDeps.test.ts +130 -0
  443. package/src/__tests__/TabBarWebFork.test.ts +243 -0
  444. package/src/__tests__/ToastContent.test.tsx +192 -0
  445. package/src/__tests__/ToastHostWebFork.test.ts +155 -0
  446. package/src/__tests__/Toaster.test.tsx +527 -0
  447. package/src/__tests__/animated-style-deps.test.ts +156 -0
  448. package/src/__tests__/icon-references.test.ts +243 -0
  449. package/src/__tests__/toast-animations.test.ts +98 -0
  450. package/src/__tests__/toast-comparator.test.ts +131 -0
  451. package/src/__tests__/toast-enter-driver.test.ts +147 -0
  452. package/src/__tests__/toast-fns.test.ts +240 -0
  453. package/src/__tests__/toast-position-utils.test.ts +259 -0
  454. package/src/__tests__/toast-positioner-utils.test.ts +214 -0
  455. package/src/__tests__/toast-store.test.ts +622 -0
  456. package/src/__tests__/toast-timers.test.ts +163 -0
  457. package/src/__tests__/use-animated-target.test.tsx +60 -0
  458. package/src/__tests__/use-app-state.test.tsx +127 -0
  459. package/src/__tests__/use-toast-colors.test.tsx +189 -0
  460. package/src/__tests__/web-position-fixed.test.ts +70 -0
  461. package/src/avatar-group/AvatarGroup.web.tsx +2 -1
  462. package/src/benefit-list/types.ts +2 -1
  463. package/src/bottom-sheet/index.web.tsx +3 -2
  464. package/src/context-menu/index.web.tsx +3 -2
  465. package/src/dialog/Dialog.web.tsx +4 -3
  466. package/src/fab/types.ts +4 -2
  467. package/src/frosted-icon-button/shared.ts +1 -1
  468. package/src/frosted-icon-button/types.ts +2 -1
  469. package/src/index.ts +4 -1
  470. package/src/index.web.ts +4 -1
  471. package/src/menu/index.web.tsx +2 -1
  472. package/src/popover/index.web.tsx +3 -2
  473. package/src/portal/index.tsx +4 -1
  474. package/src/progressive-blur/index.tsx +78 -0
  475. package/src/progressive-blur/index.web.tsx +65 -0
  476. package/src/progressive-blur/shared.ts +81 -0
  477. package/src/progressive-blur/types.ts +21 -0
  478. package/src/select/index.web.tsx +2 -1
  479. package/src/styles/web-view-style.ts +21 -0
  480. package/src/tab-bar/TabBar.stories.tsx +217 -0
  481. package/src/tab-bar/TabBarBase.tsx +517 -0
  482. package/src/tab-bar/expo-router/RouterTabBar.tsx +80 -0
  483. package/src/tab-bar/expo-router/fading-tab-screen.tsx +109 -0
  484. package/src/tab-bar/expo-router/index.ts +13 -0
  485. package/src/tab-bar/glyph.native.tsx +46 -0
  486. package/src/tab-bar/glyph.tsx +31 -0
  487. package/src/tab-bar/index.ts +32 -0
  488. package/src/tab-bar/index.web.tsx +34 -0
  489. package/src/tab-bar/minimize-context.tsx +117 -0
  490. package/src/tab-bar/shared.ts +159 -0
  491. package/src/tab-bar/surface-solid.tsx +40 -0
  492. package/src/tab-bar/surface.native.tsx +122 -0
  493. package/src/tab-bar/surface.tsx +28 -0
  494. package/src/tab-bar/surface.web.tsx +56 -0
  495. package/src/tab-bar/types.ts +91 -0
  496. package/src/toast/Positioner.tsx +121 -0
  497. package/src/toast/Toast.stories.tsx +292 -65
  498. package/src/toast/ToastContent.tsx +405 -0
  499. package/src/toast/ToastHost.native.tsx +31 -0
  500. package/src/toast/ToastHost.tsx +67 -0
  501. package/src/toast/ToastIcon.tsx +55 -0
  502. package/src/toast/ToastRow.tsx +485 -0
  503. package/src/toast/ToastSwipeHandler.tsx +222 -0
  504. package/src/toast/Toaster.tsx +259 -0
  505. package/src/toast/animations.ts +313 -0
  506. package/src/toast/constants.ts +76 -0
  507. package/src/toast/context.tsx +44 -0
  508. package/src/toast/index.tsx +47 -123
  509. package/src/toast/position-utils.ts +149 -0
  510. package/src/toast/positioner-utils.ts +142 -0
  511. package/src/toast/toast-comparator.ts +41 -0
  512. package/src/toast/toast-fns.ts +104 -0
  513. package/src/toast/toast-store.ts +432 -0
  514. package/src/toast/toast-timers.ts +124 -0
  515. package/src/toast/types.ts +301 -5
  516. package/src/toast/use-animated-target.ts +61 -0
  517. package/src/toast/use-app-state.ts +77 -0
  518. package/src/toast/use-toast-colors.ts +133 -0
  519. package/src/toast/use-toast-position.ts +46 -0
  520. package/src/tooltip/index.web.tsx +2 -1
  521. package/src/zoomable-image-gallery/ZoomableImageGallery.stories.tsx +134 -0
  522. package/src/zoomable-image-gallery/ZoomableImageGallery.tsx +50 -27
  523. package/lib/commonjs/toast/Toast.js +0 -267
  524. package/lib/commonjs/toast/Toast.js.map +0 -1
  525. package/lib/commonjs/toast/const.js +0 -8
  526. package/lib/commonjs/toast/const.js.map +0 -1
  527. package/lib/commonjs/toast/index.web.js +0 -114
  528. package/lib/commonjs/toast/index.web.js.map +0 -1
  529. package/lib/commonjs/toast/sonner/index.js +0 -9
  530. package/lib/commonjs/toast/sonner/index.js.map +0 -1
  531. package/lib/commonjs/toast/sonner/index.web.js +0 -9
  532. package/lib/commonjs/toast/sonner/index.web.js.map +0 -1
  533. package/lib/module/toast/Toast.js +0 -258
  534. package/lib/module/toast/Toast.js.map +0 -1
  535. package/lib/module/toast/const.js +0 -4
  536. package/lib/module/toast/const.js.map +0 -1
  537. package/lib/module/toast/index.web.js +0 -74
  538. package/lib/module/toast/index.web.js.map +0 -1
  539. package/lib/module/toast/sonner/index.js +0 -5
  540. package/lib/module/toast/sonner/index.js.map +0 -1
  541. package/lib/module/toast/sonner/index.web.js +0 -5
  542. package/lib/module/toast/sonner/index.web.js.map +0 -1
  543. package/lib/typescript/commonjs/toast/Toast.d.ts +0 -23
  544. package/lib/typescript/commonjs/toast/Toast.d.ts.map +0 -1
  545. package/lib/typescript/commonjs/toast/const.d.ts +0 -2
  546. package/lib/typescript/commonjs/toast/const.d.ts.map +0 -1
  547. package/lib/typescript/commonjs/toast/index.web.d.ts +0 -29
  548. package/lib/typescript/commonjs/toast/index.web.d.ts.map +0 -1
  549. package/lib/typescript/commonjs/toast/sonner/index.d.ts +0 -2
  550. package/lib/typescript/commonjs/toast/sonner/index.d.ts.map +0 -1
  551. package/lib/typescript/commonjs/toast/sonner/index.web.d.ts +0 -2
  552. package/lib/typescript/commonjs/toast/sonner/index.web.d.ts.map +0 -1
  553. package/lib/typescript/module/toast/Toast.d.ts +0 -23
  554. package/lib/typescript/module/toast/Toast.d.ts.map +0 -1
  555. package/lib/typescript/module/toast/const.d.ts +0 -2
  556. package/lib/typescript/module/toast/const.d.ts.map +0 -1
  557. package/lib/typescript/module/toast/index.web.d.ts +0 -29
  558. package/lib/typescript/module/toast/index.web.d.ts.map +0 -1
  559. package/lib/typescript/module/toast/sonner/index.d.ts +0 -2
  560. package/lib/typescript/module/toast/sonner/index.d.ts.map +0 -1
  561. package/lib/typescript/module/toast/sonner/index.web.d.ts +0 -2
  562. package/lib/typescript/module/toast/sonner/index.web.d.ts.map +0 -1
  563. package/src/toast/Toast.tsx +0 -269
  564. package/src/toast/const.ts +0 -1
  565. package/src/toast/index.web.tsx +0 -101
  566. package/src/toast/sonner/index.ts +0 -3
  567. package/src/toast/sonner/index.web.ts +0 -3
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToastHost = ToastHost;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
10
+ var _indexWeb = require("../portal/index.web.js");
11
+ var _webViewStyle = require("../styles/web-view-style.js");
12
+ var _zIndex = require("../styles/z-index.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ /**
16
+ * Bloom-original — the WEB / default toast host. Metro selects
17
+ * `ToastHost.native.tsx` on iOS and Android; every other bundler (and a
18
+ * consumer's `tsc`) sees this file, matching the `.native` split convention
19
+ * `design-tokens/shadows.ts` already uses.
20
+ *
21
+ * Two jobs, both of which are why the rest of the engine can stay universal:
22
+ *
23
+ * - W7: it portals into `#bloom-portal-root` and provides a `position: fixed`,
24
+ * full-viewport containing block. `Positioner`'s `position: 'absolute'` would
25
+ * otherwise anchor to the nearest positioned ancestor — react-native-web's
26
+ * `View` defaults to `relative`, so a deeply-mounted outlet would anchor to a
27
+ * provider somewhere in the tree instead of the viewport. A `Positioner.web`
28
+ * with `position: fixed` would NOT be enough: `fixed` is still contained by any
29
+ * ancestor `transform`/`filter`/`contain`, which is exactly why `Dialog` and
30
+ * `BottomSheet` portal too. Sharing the one portal root also keeps a single
31
+ * document-level overlay layer rather than a second competing one.
32
+ * - W8: portaled content sits outside the app-root `GestureHandlerRootView`, so
33
+ * swipe-to-dismiss would never receive touches. This provides its own, exactly
34
+ * as `bottom-sheet/index.web.tsx` does. Web consumers need no setup.
35
+ *
36
+ * `pointerEvents: 'box-none'` keeps the empty area click-through while the rows
37
+ * themselves stay interactive.
38
+ */
39
+
40
+ function ToastHost({
41
+ children,
42
+ ToasterOverlayWrapper
43
+ }) {
44
+ const content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView, {
45
+ style: styles.host,
46
+ children: children
47
+ });
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_indexWeb.Portal, {
49
+ children: ToasterOverlayWrapper ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ToasterOverlayWrapper, {
50
+ children: content
51
+ }) : content
52
+ });
53
+ }
54
+ ToastHost.displayName = 'ToastHost';
55
+ const styles = _reactNative.StyleSheet.create({
56
+ host: {
57
+ // Full-viewport containing block for `Positioner`'s `position: 'absolute'`.
58
+ position: _webViewStyle.WEB_POSITION_FIXED,
59
+ top: 0,
60
+ left: 0,
61
+ right: 0,
62
+ bottom: 0,
63
+ // Inside `#bloom-portal-root` (which owns the document layer at 999999),
64
+ // this keeps toasts above Dialog's surface (60) and tooltips (70).
65
+ zIndex: _zIndex.Z_INDEX.toast,
66
+ pointerEvents: 'box-none'
67
+ }
68
+ });
69
+ //# sourceMappingURL=ToastHost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_indexWeb","_webViewStyle","_zIndex","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToastHost","children","ToasterOverlayWrapper","content","jsx","GestureHandlerRootView","style","styles","host","Portal","displayName","StyleSheet","create","position","WEB_POSITION_FIXED","top","left","right","bottom","zIndex","Z_INDEX","toast","pointerEvents"],"sourceRoot":"../../../src","sources":["toast/ToastHost.tsx"],"mappings":";;;;;;AAwBA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA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AG,WAAW;AAEnC,MAAMH,MAAM,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAC/BJ,IAAI,EAAE;IACJ;IACAK,QAAQ,EAAEC,gCAAkB;IAC5BC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACT;IACA;IACAC,MAAM,EAAEC,eAAO,CAACC,KAAK;IACrBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToastHost = ToastHost;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
+ /**
11
+ * Bloom-original — the NATIVE toast host. Metro selects this file; every other
12
+ * bundler resolves the sibling `ToastHost.tsx` (web/default).
13
+ *
14
+ * On native the rows render inline in the app's own view hierarchy, which is what
15
+ * makes them respect the safe area and the app-root `GestureHandlerRootView` that
16
+ * consumers already mount. So there is nothing to portal — the host only applies
17
+ * the optional overlay wrapper.
18
+ *
19
+ * `react-native-screens` is deliberately NOT imported (D6). Upstream statically
20
+ * imports `FullWindowOverlay` from it, an undeclared dependency that only works
21
+ * because apps happen to install it. A consumer who needs a toast above a native
22
+ * iOS modal injects it themselves:
23
+ *
24
+ * ```tsx
25
+ * import { FullWindowOverlay } from 'react-native-screens';
26
+ * <ToastOutlet ToasterOverlayWrapper={FullWindowOverlay} />
27
+ * ```
28
+ */
29
+
30
+ function ToastHost({
31
+ children,
32
+ ToasterOverlayWrapper
33
+ }) {
34
+ if (ToasterOverlayWrapper) {
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ToasterOverlayWrapper, {
36
+ children: children
37
+ });
38
+ }
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
40
+ children: children
41
+ });
42
+ }
43
+ ToastHost.displayName = 'ToastHost';
44
+ //# sourceMappingURL=ToastHost.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToastHost","children","ToasterOverlayWrapper","jsx","Fragment","displayName"],"sourceRoot":"../../../src","sources":["toast/ToastHost.native.tsx"],"mappings":";;;;;;AAmBA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAnB/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKO,SAASkB,SAASA,CAAC;EAAEC,QAAQ;EAAEC;AAAsC,CAAC,EAAE;EAC7E,IAAIA,qBAAqB,EAAE;IACzB,oBAAO,IAAAtB,WAAA,CAAAuB,GAAA,EAACD,qBAAqB;MAAAD,QAAA,EAAEA;IAAQ,CAAwB,CAAC;EAClE;EACA,oBAAO,IAAArB,WAAA,CAAAuB,GAAA,EAAAvB,WAAA,CAAAwB,QAAA;IAAAH,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB;AAEAD,SAAS,CAACK,WAAW,GAAG,WAAW","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToastIcon = ToastIcon;
7
+ var _reactNative = require("react-native");
8
+ var _CircleCheck = require("../icons/CircleCheck.js");
9
+ var _CircleInfo = require("../icons/CircleInfo.js");
10
+ var _CircleX = require("../icons/CircleX.js");
11
+ var _Warning = require("../icons/Warning.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ /**
14
+ * Replaces sonner-native v0.26.4's `src/icons.tsx` (MIT © Gunnar Torfi
15
+ * Steinarsson — see the top-level NOTICE), which ships its own inline SVG paths
16
+ * and imports `react-native-svg` directly. Bloom maps variants onto its own icon
17
+ * set instead, so the toast picks up icon changes with the rest of the library.
18
+ *
19
+ * The spinner is RN's `ActivityIndicator` rather than Bloom's `Loading`: the
20
+ * `./loading` subpath is web-forked, so importing it from this universal file
21
+ * would resolve to the native (Reanimated) build under bundlers that do not
22
+ * apply `.web` extension resolution, and to the web build under those that do —
23
+ * platform-dependent behaviour from one import. `ActivityIndicator` is universal
24
+ * (react-native-web renders a CSS-animated SVG, so nothing depends on a
25
+ * Reanimated mapper ticking on web) and a consumer who wants Bloom's spinner can
26
+ * still pass `icons={{ loading: <Loading … /> }}` on the outlet.
27
+ */
28
+
29
+ const ICON_MAP = {
30
+ success: _CircleCheck.CircleCheck_Stroke2_Corner0_Rounded,
31
+ error: _CircleX.CircleX_Stroke2_Corner0_Rounded,
32
+ warning: _Warning.Warning_Stroke2_Corner0_Rounded,
33
+ info: _CircleInfo.CircleInfo_Stroke2_Corner0_Rounded
34
+ };
35
+ function ToastIcon({
36
+ variant,
37
+ color
38
+ }) {
39
+ // No variant means a neutral toast, which carries no icon of its own — a
40
+ // caller who wants one passes `icon`.
41
+ if (!variant) {
42
+ return null;
43
+ }
44
+ if (variant === 'loading') {
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
46
+ size: "small",
47
+ color: color
48
+ });
49
+ }
50
+ const Icon = ICON_MAP[variant];
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
52
+ fill: color,
53
+ size: "md"
54
+ });
55
+ }
56
+ ToastIcon.displayName = 'ToastIcon';
57
+ //# sourceMappingURL=ToastIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_CircleCheck","_CircleInfo","_CircleX","_Warning","_jsxRuntime","ICON_MAP","success","CircleCheckIcon","error","CircleXIcon","warning","WarningIcon","info","CircleInfoIcon","ToastIcon","variant","color","jsx","ActivityIndicator","size","Icon","fill","displayName"],"sourceRoot":"../../../src","sources":["toast/ToastIcon.tsx"],"mappings":";;;;;;AAeA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAkF,IAAAK,WAAA,GAAAL,OAAA;AApBlF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,MAAMM,QAGL,GAAG;EACFC,OAAO,EAAEC,gDAAe;EACxBC,KAAK,EAAEC,wCAAW;EAClBC,OAAO,EAAEC,wCAAW;EACpBC,IAAI,EAAEC;AACR,CAAC;AAEM,SAASC,SAASA,CAAC;EACxBC,OAAO;EACPC;AAIF,CAAC,EAAE;EACD;EACA;EACA,IAAI,CAACD,OAAO,EAAE;IACZ,OAAO,IAAI;EACb;EAEA,IAAIA,OAAO,KAAK,SAAS,EAAE;IACzB,oBAAO,IAAAX,WAAA,CAAAa,GAAA,EAACnB,YAAA,CAAAoB,iBAAiB;MAACC,IAAI,EAAC,OAAO;MAACH,KAAK,EAAEA;IAAM,CAAE,CAAC;EACzD;EAEA,MAAMI,IAAI,GAAGf,QAAQ,CAACU,OAAO,CAAC;EAC9B,oBAAO,IAAAX,WAAA,CAAAa,GAAA,EAACG,IAAI;IAACC,IAAI,EAAEL,KAAM;IAACG,IAAI,EAAC;EAAI,CAAE,CAAC;AACxC;AAEAL,SAAS,CAACQ,WAAW,GAAG,WAAW","ignoreList":[]}
@@ -0,0 +1,411 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToastRow = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ var _animations = require("./animations.js");
11
+ var _constants = require("./constants.js");
12
+ var _context = require("./context.js");
13
+ var _positionUtils = require("./position-utils.js");
14
+ var _useAnimatedTarget = require("./use-animated-target.js");
15
+ var _ToastContent = require("./ToastContent.js");
16
+ var _ToastSwipeHandler = require("./ToastSwipeHandler.js");
17
+ var _toastStore = require("./toast-store.js");
18
+ var _useToastPosition = require("./use-toast-position.js");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
21
+ /**
22
+ * Derived from sonner-native v0.26.4 — src/toast.tsx:39-437
23
+ * (MIT © Gunnar Torfi Steinarsson). See the top-level NOTICE.
24
+ *
25
+ * The animated shell around a row: stack offset + scale, enter/exit animation,
26
+ * height measurement, swipe wrapper and the imperative wiggle handle. The visual
27
+ * row itself is `ToastContent` (or the consumer's `jsx`).
28
+ *
29
+ * W6 — INVARIANT: THE MEASURED `Animated.View` IS `style`-ONLY, NEVER
30
+ * `className`'d. Under react-native-css on web, `onLayout` never fires for a
31
+ * className'd component, which would strand every row at
32
+ * `ESTIMATED_TOAST_HEIGHT` and pile the stack on top of itself. Measurement runs
33
+ * a three-tier ladder — `getBoundingClientRect()` (RN >= 0.83 refs and RN-Web),
34
+ * then `measureInWindow` (older New Arch), then `onLayout` as the safety net —
35
+ * so no single platform quirk can silently degrade it. A consumer's `toast.custom`
36
+ * JSX is unaffected: the ref sits on this engine wrapper, not on their element.
37
+ *
38
+ * W3 — the animated style READS two shared values and returns only the transform.
39
+ * `position`, `width` and the `top`/`bottom` anchor are static `StyleSheet` entries:
40
+ * upstream writes the anchor conditionally INSIDE the mapper, so the previous
41
+ * anchor is never cleared when `position` changes and the static keys are
42
+ * re-committed every frame. Both shared values are driven imperatively from plain-JS
43
+ * targets (`useAnimatedTarget`), never returned from a mapper.
44
+ *
45
+ * W5 — this row does NOT subscribe to `AppState`. `Toaster` holds one
46
+ * subscription for the whole stack (upstream creates one per row, so N toasts
47
+ * meant N `visibilitychange` listeners).
48
+ *
49
+ * THE EXIT IS ALWAYS A LAYOUT ANIMATION; THE ENTER DEPENDS ON THE PLATFORM.
50
+ * `animations.ts` returns EITHER an `entering` builder (native, and any consumer
51
+ * override) OR an `enterTranslateY` for `rowStyle` below to fade and slide the row
52
+ * in imperatively (web default) — never both. When `enterTranslateY` is
53
+ * `undefined`, `enterProgress` is seeded at 1 and `rowStyle` collapses to the
54
+ * wiggle scale alone, so nothing here competes with `entering`. Both halves of
55
+ * that split are load-bearing and neither may be "simplified" into the other:
56
+ * `animations.ts` documents the web pin that forbids `entering` on web and the
57
+ * native regression that forbids the imperative driver on native.
58
+ */
59
+
60
+ /** How much a wiggle grows the row, and for how long per half-cycle. */const WIGGLE_SCALE = 1.035;
61
+ const WIGGLE_DURATION = 150;
62
+ const WIGGLE_REPEATS = 4;
63
+
64
+ /**
65
+ * Fold the outlet-level `toastOptions` style slots into the per-toast
66
+ * `ToastStyles` shape so the renderer has ONE styles object to apply. Upstream
67
+ * threads all fifteen slots down as separate props; collapsing them here keeps
68
+ * `ToastContent` to a single `styles` prop while honouring the same API. The
69
+ * per-toast value always wins over the outlet's.
70
+ */
71
+ function mergeToastStyles(toastOptions, perToast, variantStyle) {
72
+ return {
73
+ toastContainer: {
74
+ ...toastOptions.toastContainerStyle,
75
+ ...perToast?.toastContainer
76
+ },
77
+ toast: {
78
+ ...toastOptions.style,
79
+ ...variantStyle,
80
+ ...perToast?.toast
81
+ },
82
+ toastContent: {
83
+ ...toastOptions.toastContentStyle,
84
+ ...perToast?.toastContent
85
+ },
86
+ textContainer: {
87
+ ...toastOptions.textContainerStyle,
88
+ ...perToast?.textContainer
89
+ },
90
+ title: {
91
+ ...toastOptions.titleStyle,
92
+ ...perToast?.title
93
+ },
94
+ description: {
95
+ ...toastOptions.descriptionStyle,
96
+ ...perToast?.description
97
+ },
98
+ buttons: {
99
+ ...toastOptions.buttonsStyle,
100
+ ...perToast?.buttons
101
+ },
102
+ closeButton: {
103
+ ...toastOptions.closeButtonStyle,
104
+ ...perToast?.closeButton
105
+ },
106
+ closeButtonIcon: {
107
+ ...toastOptions.closeButtonIconStyle,
108
+ ...perToast?.closeButtonIcon
109
+ }
110
+ };
111
+ }
112
+ const ToastRow = exports.ToastRow = /*#__PURE__*/React.forwardRef(function ToastRow({
113
+ id,
114
+ title,
115
+ jsx,
116
+ description,
117
+ icon,
118
+ duration,
119
+ variant,
120
+ action,
121
+ cancel,
122
+ close,
123
+ onDismiss,
124
+ dismissible = _constants.toastDefaults.dismissible,
125
+ closeButton: closeButtonProp,
126
+ actionButtonStyle,
127
+ actionButtonTextStyle,
128
+ cancelButtonStyle,
129
+ cancelButtonTextStyle,
130
+ style,
131
+ styles: styleOverrides,
132
+ promiseOptions,
133
+ position: positionProp,
134
+ animation,
135
+ unstyled: unstyledProp,
136
+ important,
137
+ richColors: richColorsProp,
138
+ onPress,
139
+ allowFontScaling: allowFontScalingProp,
140
+ maxFontSizeMultiplier: maxFontSizeMultiplierProp,
141
+ backgroundComponent: backgroundComponentProp,
142
+ numberOfToasts,
143
+ index,
144
+ orderedToastIds
145
+ }, ref) {
146
+ const {
147
+ closeButton: closeButtonCtx,
148
+ icons,
149
+ richColors: richColorsCtx,
150
+ allowFontScaling: allowFontScalingCtx,
151
+ maxFontSizeMultiplier: maxFontSizeMultiplierCtx,
152
+ enableStacking,
153
+ gap,
154
+ position: positionCtx,
155
+ visibleToasts,
156
+ unstyled: unstyledCtx,
157
+ toastOptions
158
+ } = (0, _context.useToastContext)();
159
+ const {
160
+ toastHeights,
161
+ isExpanded,
162
+ toggleExpand
163
+ } = (0, _context.useDynamicToastContext)();
164
+ const position = positionProp ?? positionCtx;
165
+ const unstyled = unstyledProp ?? toastOptions.unstyled ?? unstyledCtx;
166
+ const richColors = richColorsProp ?? richColorsCtx;
167
+ const closeButton = closeButtonProp ?? closeButtonCtx;
168
+ const allowFontScaling = allowFontScalingProp ?? allowFontScalingCtx;
169
+ const maxFontSizeMultiplier = maxFontSizeMultiplierProp ?? maxFontSizeMultiplierCtx;
170
+ const backgroundComponent = backgroundComponentProp ?? toastOptions.backgroundComponent;
171
+ const stackGap = gap ?? _constants.toastDefaults.stackGap;
172
+ const mergedStyles = React.useMemo(() => mergeToastStyles(toastOptions, styleOverrides, variant ? toastOptions[variant] : undefined), [toastOptions, styleOverrides, variant]);
173
+
174
+ // For top-center the array is reversed, so the front row is index 0.
175
+ const distanceFromFront = position === 'top-center' ? index : numberOfToasts - 1 - index;
176
+ const isHiddenByLimit = enableStacking && distanceFromFront >= visibleToasts;
177
+ const {
178
+ entering,
179
+ exiting,
180
+ enterTranslateY
181
+ } = (0, _animations.useToastLayoutAnimations)(positionProp, animation, isHiddenByLimit, numberOfToasts);
182
+ const yPosition = (0, _useToastPosition.useToastPosition)({
183
+ index,
184
+ numberOfToasts,
185
+ enableStacking,
186
+ position,
187
+ allToastHeights: toastHeights,
188
+ gap,
189
+ orderedToastIds,
190
+ isExpanded,
191
+ stackGap
192
+ });
193
+ const {
194
+ width: screenWidth
195
+ } = (0, _reactNative.useWindowDimensions)();
196
+ const stackScaleX = (0, _useAnimatedTarget.useAnimatedTarget)((0, _positionUtils.calculateStackScaleX)({
197
+ index,
198
+ numberOfToasts,
199
+ enableStacking,
200
+ position,
201
+ isExpanded,
202
+ stackGap,
203
+ screenWidth
204
+ }), {
205
+ duration: _constants.STACKING_ANIMATION_DURATION,
206
+ easing: _animations.easeOutQuartFn
207
+ });
208
+ const stackTransformStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
209
+ transform: [{
210
+ translateY: yPosition.value
211
+ }, {
212
+ scaleX: stackScaleX.value
213
+ }]
214
+ }), [yPosition, stackScaleX]);
215
+
216
+ // 0 -> 1 over the enter animation. Seeded at 1 with NO mount-time `withTiming`
217
+ // whenever `enterTranslateY` is undefined — i.e. whenever `entering` is playing
218
+ // the enter instead, or reduced motion is on — leaving this style the identity.
219
+ const enterProgress = (0, _useAnimatedTarget.useAnimatedTarget)(1, {
220
+ duration: _constants.ENTERING_ANIMATION_DURATION,
221
+ easing: _animations.easeOutQuartFn,
222
+ from: enterTranslateY === undefined ? undefined : 0
223
+ });
224
+ const enterDistance = enterTranslateY ?? 0;
225
+ const wiggleScale = (0, _reactNativeReanimated.useSharedValue)(1);
226
+ // ONE mapper for both transforms: two animated styles on the same view would
227
+ // each return a `transform` array and the later one would win outright.
228
+ const rowStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
229
+ opacity: enterProgress.value,
230
+ transform: [{
231
+ translateY: (1 - enterProgress.value) * enterDistance
232
+ }, {
233
+ scale: wiggleScale.value
234
+ }]
235
+ }), [enterProgress, enterDistance, wiggleScale]);
236
+ const wiggle = React.useCallback(() => {
237
+ 'worklet';
238
+
239
+ wiggleScale.value = (0, _reactNativeReanimated.withRepeat)((0, _reactNativeReanimated.withTiming)(Math.min(wiggleScale.value * WIGGLE_SCALE, WIGGLE_SCALE), {
240
+ duration: WIGGLE_DURATION
241
+ }), WIGGLE_REPEATS, true);
242
+ }, [wiggleScale]);
243
+ const handleWiggle = React.useCallback(() => {
244
+ // A toast that never auto-closes has no timer to draw attention back to.
245
+ if (duration === Infinity) {
246
+ return;
247
+ }
248
+ if (wiggleScale.value !== 1) {
249
+ // Settle back to rest first, otherwise the scale compounds.
250
+ wiggleScale.value = (0, _reactNativeReanimated.withTiming)(1, {
251
+ duration: WIGGLE_DURATION
252
+ }, wiggle);
253
+ return;
254
+ }
255
+ wiggle();
256
+ }, [wiggle, wiggleScale, duration]);
257
+ React.useImperativeHandle(ref, () => ({
258
+ wiggle: handleWiggle
259
+ }));
260
+ const measuredRef = React.useRef(null);
261
+
262
+ // Tiers 1 and 2 of the ladder — see the W6 note in the file header.
263
+ React.useLayoutEffect(() => {
264
+ const node = measuredRef.current;
265
+ if (!node) {
266
+ return;
267
+ }
268
+ if (typeof node.getBoundingClientRect === 'function') {
269
+ _toastStore.toastStore.setToastHeight(id, node.getBoundingClientRect().height);
270
+ return;
271
+ }
272
+ let stale = false;
273
+ node.measureInWindow((_x, _y, _width, height) => {
274
+ if (!stale) {
275
+ _toastStore.toastStore.setToastHeight(id, height);
276
+ }
277
+ });
278
+ return () => {
279
+ stale = true;
280
+ };
281
+ }, [id, variant, title, description, jsx]);
282
+
283
+ // Tier 3. Also the only tier that reports a LATER resize (a wrapped line, a
284
+ // font swap) on platforms without a synchronous read.
285
+ const handleLayout = React.useCallback(({
286
+ nativeEvent
287
+ }) => {
288
+ const {
289
+ height
290
+ } = nativeEvent.layout;
291
+ if (height > 0) {
292
+ _toastStore.toastStore.setToastHeight(id, height);
293
+ }
294
+ }, [id]);
295
+ const onRemove = React.useCallback(() => {
296
+ onDismiss(id);
297
+ }, [onDismiss, id]);
298
+ const onSwipeBegin = React.useCallback(() => {
299
+ _toastStore.toastStore.pauseTimer(id);
300
+ }, [id]);
301
+ const onSwipeFinalize = React.useCallback(() => {
302
+ if (!isExpanded) {
303
+ _toastStore.toastStore.resumeTimer(id);
304
+ }
305
+ }, [id, isExpanded]);
306
+ const onSwipePress = React.useCallback(({
307
+ x
308
+ }) => {
309
+ if (enableStacking && numberOfToasts > 1 && position !== 'center') {
310
+ // On Android the RNGH tap wins the race against the nested Pressable,
311
+ // so a press in the close-button strip has to dismiss explicitly.
312
+ if (x > screenWidth - _constants.CLOSE_BUTTON_HIT_AREA) {
313
+ if (isExpanded && closeButton && dismissible) {
314
+ onDismiss(id);
315
+ }
316
+ } else {
317
+ toggleExpand();
318
+ }
319
+ }
320
+ onPress?.();
321
+ }, [enableStacking, numberOfToasts, position, screenWidth, isExpanded, closeButton, dismissible, onDismiss, id, toggleExpand, onPress]);
322
+
323
+ // Front row on top: later rows in the stack sit progressively behind.
324
+ const stackZIndex = position === 'top-center' ? -(index + 1) : -(numberOfToasts - index);
325
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
326
+ style: [styles.anchor, anchorFor(position), {
327
+ zIndex: stackZIndex
328
+ }, stackTransformStyle],
329
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToastSwipeHandler.ToastSwipeHandler, {
330
+ onRemove: onRemove,
331
+ onBegin: onSwipeBegin,
332
+ onFinalize: onSwipeFinalize,
333
+ onPress: onSwipePress
334
+ // A pending promise toast cannot be swiped away mid-flight.
335
+ ,
336
+ enabled: !promiseOptions && dismissible,
337
+ style: mergedStyles.toastContainer,
338
+ unstyled: unstyled,
339
+ important: important,
340
+ position: positionProp,
341
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
342
+ style: rowStyle,
343
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
344
+ ref: measuredRef,
345
+ onLayout: handleLayout,
346
+ entering: entering,
347
+ exiting: exiting,
348
+ children: jsx ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToastContent.ToastContent, {
349
+ id: id,
350
+ title: title,
351
+ description: description,
352
+ variant: variant,
353
+ icon: icon,
354
+ icons: icons,
355
+ action: action,
356
+ cancel: cancel,
357
+ close: close,
358
+ closeButton: closeButton,
359
+ dismissible: dismissible,
360
+ richColors: richColors,
361
+ promiseOptions: promiseOptions,
362
+ styles: mergedStyles,
363
+ style: style,
364
+ unstyled: unstyled,
365
+ onDismiss: onDismiss,
366
+ actionButtonStyle: actionButtonStyle ?? toastOptions.actionButtonStyle,
367
+ actionButtonTextStyle: actionButtonTextStyle ?? toastOptions.actionButtonTextStyle,
368
+ cancelButtonStyle: cancelButtonStyle ?? toastOptions.cancelButtonStyle,
369
+ cancelButtonTextStyle: cancelButtonTextStyle ?? toastOptions.cancelButtonTextStyle,
370
+ allowFontScaling: allowFontScaling,
371
+ maxFontSizeMultiplier: maxFontSizeMultiplier,
372
+ backgroundComponent: backgroundComponent
373
+ })
374
+ })
375
+ })
376
+ })
377
+ });
378
+ });
379
+ const styles = _reactNative.StyleSheet.create({
380
+ anchor: {
381
+ position: 'absolute',
382
+ width: '100%'
383
+ },
384
+ anchorTop: {
385
+ top: 0
386
+ },
387
+ anchorBottom: {
388
+ bottom: 0
389
+ },
390
+ /**
391
+ * The container is full-bleed for every position, so the vertical midpoint lives
392
+ * on the ROW rather than on the container. `calculateToastPosition` then shifts
393
+ * the front row up by half its height to sit ON the line rather than below it —
394
+ * see its `centerShift`.
395
+ */
396
+ anchorCenter: {
397
+ top: '50%'
398
+ }
399
+ });
400
+
401
+ /** Which edge of the (full-bleed, padded) container the row hangs from. */
402
+ function anchorFor(position) {
403
+ if (position === 'bottom-center') {
404
+ return styles.anchorBottom;
405
+ }
406
+ if (position === 'center') {
407
+ return styles.anchorCenter;
408
+ }
409
+ return styles.anchorTop;
410
+ }
411
+ //# sourceMappingURL=ToastRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_animations","_constants","_context","_positionUtils","_useAnimatedTarget","_ToastContent","_ToastSwipeHandler","_toastStore","_useToastPosition","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","WIGGLE_SCALE","WIGGLE_DURATION","WIGGLE_REPEATS","mergeToastStyles","toastOptions","perToast","variantStyle","toastContainer","toastContainerStyle","toast","style","toastContent","toastContentStyle","textContainer","textContainerStyle","title","titleStyle","description","descriptionStyle","buttons","buttonsStyle","closeButton","closeButtonStyle","closeButtonIcon","closeButtonIconStyle","ToastRow","exports","forwardRef","id","jsx","icon","duration","variant","action","cancel","close","onDismiss","dismissible","toastDefaults","closeButtonProp","actionButtonStyle","actionButtonTextStyle","cancelButtonStyle","cancelButtonTextStyle","styles","styleOverrides","promiseOptions","position","positionProp","animation","unstyled","unstyledProp","important","richColors","richColorsProp","onPress","allowFontScaling","allowFontScalingProp","maxFontSizeMultiplier","maxFontSizeMultiplierProp","backgroundComponent","backgroundComponentProp","numberOfToasts","index","orderedToastIds","ref","closeButtonCtx","icons","richColorsCtx","allowFontScalingCtx","maxFontSizeMultiplierCtx","enableStacking","gap","positionCtx","visibleToasts","unstyledCtx","useToastContext","toastHeights","isExpanded","toggleExpand","useDynamicToastContext","stackGap","mergedStyles","useMemo","undefined","distanceFromFront","isHiddenByLimit","entering","exiting","enterTranslateY","useToastLayoutAnimations","yPosition","useToastPosition","allToastHeights","width","screenWidth","useWindowDimensions","stackScaleX","useAnimatedTarget","calculateStackScaleX","STACKING_ANIMATION_DURATION","easing","easeOutQuartFn","stackTransformStyle","useAnimatedStyle","transform","translateY","value","scaleX","enterProgress","ENTERING_ANIMATION_DURATION","from","enterDistance","wiggleScale","useSharedValue","rowStyle","opacity","scale","wiggle","useCallback","withRepeat","withTiming","Math","min","handleWiggle","Infinity","useImperativeHandle","measuredRef","useRef","useLayoutEffect","node","current","getBoundingClientRect","toastStore","setToastHeight","height","stale","measureInWindow","_x","_y","_width","handleLayout","nativeEvent","layout","onRemove","onSwipeBegin","pauseTimer","onSwipeFinalize","resumeTimer","onSwipePress","x","CLOSE_BUTTON_HIT_AREA","stackZIndex","View","anchor","anchorFor","zIndex","children","ToastSwipeHandler","onBegin","onFinalize","enabled","onLayout","ToastContent","StyleSheet","create","anchorTop","top","anchorBottom","bottom","anchorCenter"],"sourceRoot":"../../../src","sources":["toast/ToastRow.tsx"],"mappings":";;;;;;AAsCA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC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