@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.
Files changed (536) 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/index.js +90 -83
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/commonjs/index.web.js +116 -109
  14. package/lib/commonjs/index.web.js.map +1 -1
  15. package/lib/commonjs/menu/index.web.js +2 -1
  16. package/lib/commonjs/menu/index.web.js.map +1 -1
  17. package/lib/commonjs/popover/index.web.js +3 -2
  18. package/lib/commonjs/popover/index.web.js.map +1 -1
  19. package/lib/commonjs/portal/index.js +4 -1
  20. package/lib/commonjs/portal/index.js.map +1 -1
  21. package/lib/commonjs/progressive-blur/index.js +79 -0
  22. package/lib/commonjs/progressive-blur/index.js.map +1 -0
  23. package/lib/commonjs/progressive-blur/index.web.js +67 -0
  24. package/lib/commonjs/progressive-blur/index.web.js.map +1 -0
  25. package/lib/commonjs/progressive-blur/shared.js +66 -0
  26. package/lib/commonjs/progressive-blur/shared.js.map +1 -0
  27. package/lib/commonjs/progressive-blur/types.js +6 -0
  28. package/lib/commonjs/progressive-blur/types.js.map +1 -0
  29. package/lib/commonjs/select/index.web.js +2 -1
  30. package/lib/commonjs/select/index.web.js.map +1 -1
  31. package/lib/commonjs/styles/web-view-style.js +26 -0
  32. package/lib/commonjs/styles/web-view-style.js.map +1 -0
  33. package/lib/commonjs/tab-bar/TabBarBase.js +415 -0
  34. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -0
  35. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js +83 -0
  36. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js.map +1 -0
  37. package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js +119 -0
  38. package/lib/commonjs/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
  39. package/lib/commonjs/tab-bar/expo-router/index.js +26 -0
  40. package/lib/commonjs/tab-bar/expo-router/index.js.map +1 -0
  41. package/lib/commonjs/tab-bar/glyph.js +43 -0
  42. package/lib/commonjs/tab-bar/glyph.js.map +1 -0
  43. package/lib/commonjs/tab-bar/glyph.native.js +55 -0
  44. package/lib/commonjs/tab-bar/glyph.native.js.map +1 -0
  45. package/lib/commonjs/tab-bar/index.js +65 -0
  46. package/lib/commonjs/tab-bar/index.js.map +1 -0
  47. package/lib/commonjs/tab-bar/index.web.js +67 -0
  48. package/lib/commonjs/tab-bar/index.web.js.map +1 -0
  49. package/lib/commonjs/tab-bar/minimize-context.js +127 -0
  50. package/lib/commonjs/tab-bar/minimize-context.js.map +1 -0
  51. package/lib/commonjs/tab-bar/shared.js +139 -0
  52. package/lib/commonjs/tab-bar/shared.js.map +1 -0
  53. package/lib/commonjs/tab-bar/surface.js +50 -0
  54. package/lib/commonjs/tab-bar/surface.js.map +1 -0
  55. package/lib/commonjs/tab-bar/surface.native.js +56 -0
  56. package/lib/commonjs/tab-bar/surface.native.js.map +1 -0
  57. package/lib/commonjs/tab-bar/surface.web.js +59 -0
  58. package/lib/commonjs/tab-bar/surface.web.js.map +1 -0
  59. package/lib/commonjs/tab-bar/types.js +6 -0
  60. package/lib/commonjs/tab-bar/types.js.map +1 -0
  61. package/lib/commonjs/toast/Positioner.js +117 -0
  62. package/lib/commonjs/toast/Positioner.js.map +1 -0
  63. package/lib/commonjs/toast/ToastContent.js +301 -0
  64. package/lib/commonjs/toast/ToastContent.js.map +1 -0
  65. package/lib/commonjs/toast/ToastHost.js +69 -0
  66. package/lib/commonjs/toast/ToastHost.js.map +1 -0
  67. package/lib/commonjs/toast/ToastHost.native.js +44 -0
  68. package/lib/commonjs/toast/ToastHost.native.js.map +1 -0
  69. package/lib/commonjs/toast/ToastIcon.js +57 -0
  70. package/lib/commonjs/toast/ToastIcon.js.map +1 -0
  71. package/lib/commonjs/toast/ToastRow.js +411 -0
  72. package/lib/commonjs/toast/ToastRow.js.map +1 -0
  73. package/lib/commonjs/toast/ToastSwipeHandler.js +189 -0
  74. package/lib/commonjs/toast/ToastSwipeHandler.js.map +1 -0
  75. package/lib/commonjs/toast/Toaster.js +205 -0
  76. package/lib/commonjs/toast/Toaster.js.map +1 -0
  77. package/lib/commonjs/toast/animations.js +274 -0
  78. package/lib/commonjs/toast/animations.js.map +1 -0
  79. package/lib/commonjs/toast/constants.js +56 -0
  80. package/lib/commonjs/toast/constants.js.map +1 -0
  81. package/lib/commonjs/toast/context.js +42 -0
  82. package/lib/commonjs/toast/context.js.map +1 -0
  83. package/lib/commonjs/toast/index.js +32 -126
  84. package/lib/commonjs/toast/index.js.map +1 -1
  85. package/lib/commonjs/toast/position-utils.js +115 -0
  86. package/lib/commonjs/toast/position-utils.js.map +1 -0
  87. package/lib/commonjs/toast/positioner-utils.js +141 -0
  88. package/lib/commonjs/toast/positioner-utils.js.map +1 -0
  89. package/lib/commonjs/toast/toast-comparator.js +28 -0
  90. package/lib/commonjs/toast/toast-comparator.js.map +1 -0
  91. package/lib/commonjs/toast/toast-fns.js +90 -0
  92. package/lib/commonjs/toast/toast-fns.js.map +1 -0
  93. package/lib/commonjs/toast/toast-store.js +352 -0
  94. package/lib/commonjs/toast/toast-store.js.map +1 -0
  95. package/lib/commonjs/toast/toast-timers.js +110 -0
  96. package/lib/commonjs/toast/toast-timers.js.map +1 -0
  97. package/lib/commonjs/toast/types.js +42 -0
  98. package/lib/commonjs/toast/types.js.map +1 -1
  99. package/lib/commonjs/toast/use-animated-target.js +57 -0
  100. package/lib/commonjs/toast/use-animated-target.js.map +1 -0
  101. package/lib/commonjs/toast/use-app-state.js +76 -0
  102. package/lib/commonjs/toast/use-app-state.js.map +1 -0
  103. package/lib/commonjs/toast/use-toast-colors.js +114 -0
  104. package/lib/commonjs/toast/use-toast-colors.js.map +1 -0
  105. package/lib/commonjs/toast/use-toast-position.js +40 -0
  106. package/lib/commonjs/toast/use-toast-position.js.map +1 -0
  107. package/lib/commonjs/tooltip/index.web.js +2 -1
  108. package/lib/commonjs/tooltip/index.web.js.map +1 -1
  109. package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
  110. package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
  111. package/lib/module/avatar-group/AvatarGroup.web.js +2 -1
  112. package/lib/module/avatar-group/AvatarGroup.web.js.map +1 -1
  113. package/lib/module/bottom-sheet/index.web.js +2 -1
  114. package/lib/module/bottom-sheet/index.web.js.map +1 -1
  115. package/lib/module/context-menu/index.web.js +3 -2
  116. package/lib/module/context-menu/index.web.js.map +1 -1
  117. package/lib/module/dialog/Dialog.web.js +4 -3
  118. package/lib/module/dialog/Dialog.web.js.map +1 -1
  119. package/lib/module/index.js +3 -2
  120. package/lib/module/index.js.map +1 -1
  121. package/lib/module/index.web.js +3 -2
  122. package/lib/module/index.web.js.map +1 -1
  123. package/lib/module/menu/index.web.js +2 -1
  124. package/lib/module/menu/index.web.js.map +1 -1
  125. package/lib/module/popover/index.web.js +3 -2
  126. package/lib/module/popover/index.web.js.map +1 -1
  127. package/lib/module/portal/index.js +4 -1
  128. package/lib/module/portal/index.js.map +1 -1
  129. package/lib/module/progressive-blur/index.js +74 -0
  130. package/lib/module/progressive-blur/index.js.map +1 -0
  131. package/lib/module/progressive-blur/index.web.js +62 -0
  132. package/lib/module/progressive-blur/index.web.js.map +1 -0
  133. package/lib/module/progressive-blur/shared.js +60 -0
  134. package/lib/module/progressive-blur/shared.js.map +1 -0
  135. package/lib/module/progressive-blur/types.js +4 -0
  136. package/lib/module/progressive-blur/types.js.map +1 -0
  137. package/lib/module/select/index.web.js +2 -1
  138. package/lib/module/select/index.web.js.map +1 -1
  139. package/lib/module/styles/web-view-style.js +22 -0
  140. package/lib/module/styles/web-view-style.js.map +1 -0
  141. package/lib/module/tab-bar/TabBarBase.js +408 -0
  142. package/lib/module/tab-bar/TabBarBase.js.map +1 -0
  143. package/lib/module/tab-bar/expo-router/RouterTabBar.js +78 -0
  144. package/lib/module/tab-bar/expo-router/RouterTabBar.js.map +1 -0
  145. package/lib/module/tab-bar/expo-router/fading-tab-screen.js +113 -0
  146. package/lib/module/tab-bar/expo-router/fading-tab-screen.js.map +1 -0
  147. package/lib/module/tab-bar/expo-router/index.js +15 -0
  148. package/lib/module/tab-bar/expo-router/index.js.map +1 -0
  149. package/lib/module/tab-bar/glyph.js +38 -0
  150. package/lib/module/tab-bar/glyph.js.map +1 -0
  151. package/lib/module/tab-bar/glyph.native.js +50 -0
  152. package/lib/module/tab-bar/glyph.native.js.map +1 -0
  153. package/lib/module/tab-bar/index.js +24 -0
  154. package/lib/module/tab-bar/index.js.map +1 -0
  155. package/lib/module/tab-bar/index.web.js +26 -0
  156. package/lib/module/tab-bar/index.web.js.map +1 -0
  157. package/lib/module/tab-bar/minimize-context.js +118 -0
  158. package/lib/module/tab-bar/minimize-context.js.map +1 -0
  159. package/lib/module/tab-bar/shared.js +132 -0
  160. package/lib/module/tab-bar/shared.js.map +1 -0
  161. package/lib/module/tab-bar/surface.js +44 -0
  162. package/lib/module/tab-bar/surface.js.map +1 -0
  163. package/lib/module/tab-bar/surface.native.js +50 -0
  164. package/lib/module/tab-bar/surface.native.js.map +1 -0
  165. package/lib/module/tab-bar/surface.web.js +53 -0
  166. package/lib/module/tab-bar/surface.web.js.map +1 -0
  167. package/lib/module/tab-bar/types.js +4 -0
  168. package/lib/module/tab-bar/types.js.map +1 -0
  169. package/lib/module/toast/Positioner.js +110 -0
  170. package/lib/module/toast/Positioner.js.map +1 -0
  171. package/lib/module/toast/ToastContent.js +295 -0
  172. package/lib/module/toast/ToastContent.js.map +1 -0
  173. package/lib/module/toast/ToastHost.js +63 -0
  174. package/lib/module/toast/ToastHost.js.map +1 -0
  175. package/lib/module/toast/ToastHost.native.js +38 -0
  176. package/lib/module/toast/ToastHost.native.js.map +1 -0
  177. package/lib/module/toast/ToastIcon.js +52 -0
  178. package/lib/module/toast/ToastIcon.js.map +1 -0
  179. package/lib/module/toast/ToastRow.js +407 -0
  180. package/lib/module/toast/ToastRow.js.map +1 -0
  181. package/lib/module/toast/ToastSwipeHandler.js +182 -0
  182. package/lib/module/toast/ToastSwipeHandler.js.map +1 -0
  183. package/lib/module/toast/Toaster.js +198 -0
  184. package/lib/module/toast/Toaster.js.map +1 -0
  185. package/lib/module/toast/animations.js +261 -0
  186. package/lib/module/toast/animations.js.map +1 -0
  187. package/lib/module/toast/constants.js +52 -0
  188. package/lib/module/toast/constants.js.map +1 -0
  189. package/lib/module/toast/context.js +34 -0
  190. package/lib/module/toast/context.js.map +1 -0
  191. package/lib/module/toast/index.js +27 -103
  192. package/lib/module/toast/index.js.map +1 -1
  193. package/lib/module/toast/position-utils.js +107 -0
  194. package/lib/module/toast/position-utils.js.map +1 -0
  195. package/lib/module/toast/positioner-utils.js +134 -0
  196. package/lib/module/toast/positioner-utils.js.map +1 -0
  197. package/lib/module/toast/toast-comparator.js +22 -0
  198. package/lib/module/toast/toast-comparator.js.map +1 -0
  199. package/lib/module/toast/toast-fns.js +85 -0
  200. package/lib/module/toast/toast-fns.js.map +1 -0
  201. package/lib/module/toast/toast-store.js +346 -0
  202. package/lib/module/toast/toast-store.js.map +1 -0
  203. package/lib/module/toast/toast-timers.js +104 -0
  204. package/lib/module/toast/toast-timers.js.map +1 -0
  205. package/lib/module/toast/types.js +38 -0
  206. package/lib/module/toast/types.js.map +1 -1
  207. package/lib/module/toast/use-animated-target.js +52 -0
  208. package/lib/module/toast/use-animated-target.js.map +1 -0
  209. package/lib/module/toast/use-app-state.js +70 -0
  210. package/lib/module/toast/use-app-state.js.map +1 -0
  211. package/lib/module/toast/use-toast-colors.js +109 -0
  212. package/lib/module/toast/use-toast-colors.js.map +1 -0
  213. package/lib/module/toast/use-toast-position.js +35 -0
  214. package/lib/module/toast/use-toast-position.js.map +1 -0
  215. package/lib/module/tooltip/index.web.js +2 -1
  216. package/lib/module/tooltip/index.web.js.map +1 -1
  217. package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js +20 -8
  218. package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js.map +1 -1
  219. package/lib/typescript/commonjs/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/bottom-sheet/index.web.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/index.d.ts +2 -1
  224. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/index.web.d.ts +2 -1
  226. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/menu/index.web.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/portal/index.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/progressive-blur/index.d.ts +23 -0
  231. package/lib/typescript/commonjs/progressive-blur/index.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/progressive-blur/index.web.d.ts +30 -0
  233. package/lib/typescript/commonjs/progressive-blur/index.web.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/progressive-blur/shared.d.ts +35 -0
  235. package/lib/typescript/commonjs/progressive-blur/shared.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/progressive-blur/types.d.ts +21 -0
  237. package/lib/typescript/commonjs/progressive-blur/types.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/styles/web-view-style.d.ts +21 -0
  240. package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts +36 -0
  242. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -0
  243. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
  244. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
  246. package/lib/typescript/commonjs/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts +14 -0
  248. package/lib/typescript/commonjs/tab-bar/expo-router/index.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/tab-bar/glyph.d.ts +6 -0
  250. package/lib/typescript/commonjs/tab-bar/glyph.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts +6 -0
  252. package/lib/typescript/commonjs/tab-bar/glyph.native.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/tab-bar/index.d.ts +12 -0
  254. package/lib/typescript/commonjs/tab-bar/index.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/tab-bar/index.web.d.ts +12 -0
  256. package/lib/typescript/commonjs/tab-bar/index.web.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts +51 -0
  258. package/lib/typescript/commonjs/tab-bar/minimize-context.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/tab-bar/shared.d.ts +93 -0
  260. package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/tab-bar/surface.d.ts +6 -0
  262. package/lib/typescript/commonjs/tab-bar/surface.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/tab-bar/surface.native.d.ts +6 -0
  264. package/lib/typescript/commonjs/tab-bar/surface.native.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/tab-bar/surface.web.d.ts +6 -0
  266. package/lib/typescript/commonjs/tab-bar/surface.web.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/tab-bar/types.d.ts +85 -0
  268. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/toast/Positioner.d.ts +21 -0
  270. package/lib/typescript/commonjs/toast/Positioner.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/toast/ToastContent.d.ts +14 -0
  272. package/lib/typescript/commonjs/toast/ToastContent.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/toast/ToastHost.d.ts +6 -0
  274. package/lib/typescript/commonjs/toast/ToastHost.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/toast/ToastHost.native.d.ts +6 -0
  276. package/lib/typescript/commonjs/toast/ToastHost.native.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/toast/ToastIcon.d.ts +9 -0
  278. package/lib/typescript/commonjs/toast/ToastIcon.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/toast/ToastRow.d.ts +80 -0
  280. package/lib/typescript/commonjs/toast/ToastRow.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts +30 -0
  282. package/lib/typescript/commonjs/toast/ToastSwipeHandler.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/toast/Toaster.d.ts +19 -0
  284. package/lib/typescript/commonjs/toast/Toaster.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/toast/animations.d.ts +62 -0
  286. package/lib/typescript/commonjs/toast/animations.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/toast/constants.d.ts +39 -0
  288. package/lib/typescript/commonjs/toast/constants.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/toast/context.d.ts +19 -0
  290. package/lib/typescript/commonjs/toast/context.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/toast/index.d.ts +23 -76
  292. package/lib/typescript/commonjs/toast/index.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/toast/position-utils.d.ts +30 -0
  294. package/lib/typescript/commonjs/toast/position-utils.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/toast/positioner-utils.d.ts +72 -0
  296. package/lib/typescript/commonjs/toast/positioner-utils.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/toast/toast-comparator.d.ts +12 -0
  298. package/lib/typescript/commonjs/toast/toast-comparator.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/toast/toast-fns.d.ts +3 -0
  300. package/lib/typescript/commonjs/toast/toast-fns.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/toast/toast-store.d.ts +52 -0
  302. package/lib/typescript/commonjs/toast/toast-store.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/toast/toast-timers.d.ts +24 -0
  304. package/lib/typescript/commonjs/toast/toast-timers.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/toast/types.d.ts +222 -5
  306. package/lib/typescript/commonjs/toast/types.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/toast/use-animated-target.d.ts +7 -0
  308. package/lib/typescript/commonjs/toast/use-animated-target.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/toast/use-app-state.d.ts +18 -0
  310. package/lib/typescript/commonjs/toast/use-app-state.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/toast/use-toast-colors.d.ts +22 -0
  312. package/lib/typescript/commonjs/toast/use-toast-colors.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/toast/use-toast-position.d.ts +37 -0
  314. package/lib/typescript/commonjs/toast/use-toast-position.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
  317. package/lib/typescript/module/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  318. package/lib/typescript/module/bottom-sheet/index.web.d.ts.map +1 -1
  319. package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
  320. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  321. package/lib/typescript/module/index.d.ts +2 -1
  322. package/lib/typescript/module/index.d.ts.map +1 -1
  323. package/lib/typescript/module/index.web.d.ts +2 -1
  324. package/lib/typescript/module/index.web.d.ts.map +1 -1
  325. package/lib/typescript/module/menu/index.web.d.ts.map +1 -1
  326. package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
  327. package/lib/typescript/module/portal/index.d.ts.map +1 -1
  328. package/lib/typescript/module/progressive-blur/index.d.ts +23 -0
  329. package/lib/typescript/module/progressive-blur/index.d.ts.map +1 -0
  330. package/lib/typescript/module/progressive-blur/index.web.d.ts +30 -0
  331. package/lib/typescript/module/progressive-blur/index.web.d.ts.map +1 -0
  332. package/lib/typescript/module/progressive-blur/shared.d.ts +35 -0
  333. package/lib/typescript/module/progressive-blur/shared.d.ts.map +1 -0
  334. package/lib/typescript/module/progressive-blur/types.d.ts +21 -0
  335. package/lib/typescript/module/progressive-blur/types.d.ts.map +1 -0
  336. package/lib/typescript/module/select/index.web.d.ts.map +1 -1
  337. package/lib/typescript/module/styles/web-view-style.d.ts +21 -0
  338. package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -0
  339. package/lib/typescript/module/tab-bar/TabBarBase.d.ts +36 -0
  340. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -0
  341. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts +59 -0
  342. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -0
  343. package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts +11 -0
  344. package/lib/typescript/module/tab-bar/expo-router/fading-tab-screen.d.ts.map +1 -0
  345. package/lib/typescript/module/tab-bar/expo-router/index.d.ts +14 -0
  346. package/lib/typescript/module/tab-bar/expo-router/index.d.ts.map +1 -0
  347. package/lib/typescript/module/tab-bar/glyph.d.ts +6 -0
  348. package/lib/typescript/module/tab-bar/glyph.d.ts.map +1 -0
  349. package/lib/typescript/module/tab-bar/glyph.native.d.ts +6 -0
  350. package/lib/typescript/module/tab-bar/glyph.native.d.ts.map +1 -0
  351. package/lib/typescript/module/tab-bar/index.d.ts +12 -0
  352. package/lib/typescript/module/tab-bar/index.d.ts.map +1 -0
  353. package/lib/typescript/module/tab-bar/index.web.d.ts +12 -0
  354. package/lib/typescript/module/tab-bar/index.web.d.ts.map +1 -0
  355. package/lib/typescript/module/tab-bar/minimize-context.d.ts +51 -0
  356. package/lib/typescript/module/tab-bar/minimize-context.d.ts.map +1 -0
  357. package/lib/typescript/module/tab-bar/shared.d.ts +93 -0
  358. package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -0
  359. package/lib/typescript/module/tab-bar/surface.d.ts +6 -0
  360. package/lib/typescript/module/tab-bar/surface.d.ts.map +1 -0
  361. package/lib/typescript/module/tab-bar/surface.native.d.ts +6 -0
  362. package/lib/typescript/module/tab-bar/surface.native.d.ts.map +1 -0
  363. package/lib/typescript/module/tab-bar/surface.web.d.ts +6 -0
  364. package/lib/typescript/module/tab-bar/surface.web.d.ts.map +1 -0
  365. package/lib/typescript/module/tab-bar/types.d.ts +85 -0
  366. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -0
  367. package/lib/typescript/module/toast/Positioner.d.ts +21 -0
  368. package/lib/typescript/module/toast/Positioner.d.ts.map +1 -0
  369. package/lib/typescript/module/toast/ToastContent.d.ts +14 -0
  370. package/lib/typescript/module/toast/ToastContent.d.ts.map +1 -0
  371. package/lib/typescript/module/toast/ToastHost.d.ts +6 -0
  372. package/lib/typescript/module/toast/ToastHost.d.ts.map +1 -0
  373. package/lib/typescript/module/toast/ToastHost.native.d.ts +6 -0
  374. package/lib/typescript/module/toast/ToastHost.native.d.ts.map +1 -0
  375. package/lib/typescript/module/toast/ToastIcon.d.ts +9 -0
  376. package/lib/typescript/module/toast/ToastIcon.d.ts.map +1 -0
  377. package/lib/typescript/module/toast/ToastRow.d.ts +80 -0
  378. package/lib/typescript/module/toast/ToastRow.d.ts.map +1 -0
  379. package/lib/typescript/module/toast/ToastSwipeHandler.d.ts +30 -0
  380. package/lib/typescript/module/toast/ToastSwipeHandler.d.ts.map +1 -0
  381. package/lib/typescript/module/toast/Toaster.d.ts +19 -0
  382. package/lib/typescript/module/toast/Toaster.d.ts.map +1 -0
  383. package/lib/typescript/module/toast/animations.d.ts +62 -0
  384. package/lib/typescript/module/toast/animations.d.ts.map +1 -0
  385. package/lib/typescript/module/toast/constants.d.ts +39 -0
  386. package/lib/typescript/module/toast/constants.d.ts.map +1 -0
  387. package/lib/typescript/module/toast/context.d.ts +19 -0
  388. package/lib/typescript/module/toast/context.d.ts.map +1 -0
  389. package/lib/typescript/module/toast/index.d.ts +23 -76
  390. package/lib/typescript/module/toast/index.d.ts.map +1 -1
  391. package/lib/typescript/module/toast/position-utils.d.ts +30 -0
  392. package/lib/typescript/module/toast/position-utils.d.ts.map +1 -0
  393. package/lib/typescript/module/toast/positioner-utils.d.ts +72 -0
  394. package/lib/typescript/module/toast/positioner-utils.d.ts.map +1 -0
  395. package/lib/typescript/module/toast/toast-comparator.d.ts +12 -0
  396. package/lib/typescript/module/toast/toast-comparator.d.ts.map +1 -0
  397. package/lib/typescript/module/toast/toast-fns.d.ts +3 -0
  398. package/lib/typescript/module/toast/toast-fns.d.ts.map +1 -0
  399. package/lib/typescript/module/toast/toast-store.d.ts +52 -0
  400. package/lib/typescript/module/toast/toast-store.d.ts.map +1 -0
  401. package/lib/typescript/module/toast/toast-timers.d.ts +24 -0
  402. package/lib/typescript/module/toast/toast-timers.d.ts.map +1 -0
  403. package/lib/typescript/module/toast/types.d.ts +222 -5
  404. package/lib/typescript/module/toast/types.d.ts.map +1 -1
  405. package/lib/typescript/module/toast/use-animated-target.d.ts +7 -0
  406. package/lib/typescript/module/toast/use-animated-target.d.ts.map +1 -0
  407. package/lib/typescript/module/toast/use-app-state.d.ts +18 -0
  408. package/lib/typescript/module/toast/use-app-state.d.ts.map +1 -0
  409. package/lib/typescript/module/toast/use-toast-colors.d.ts +22 -0
  410. package/lib/typescript/module/toast/use-toast-colors.d.ts.map +1 -0
  411. package/lib/typescript/module/toast/use-toast-position.d.ts +37 -0
  412. package/lib/typescript/module/toast/use-toast-position.d.ts.map +1 -0
  413. package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
  414. package/lib/typescript/module/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +1 -1
  415. package/package.json +63 -25
  416. package/src/__tests__/TabBar.test.tsx +342 -0
  417. package/src/__tests__/TabBarReanimatedDeps.test.ts +130 -0
  418. package/src/__tests__/TabBarWebFork.test.ts +197 -0
  419. package/src/__tests__/ToastContent.test.tsx +192 -0
  420. package/src/__tests__/ToastHostWebFork.test.ts +155 -0
  421. package/src/__tests__/Toaster.test.tsx +527 -0
  422. package/src/__tests__/animated-style-deps.test.ts +156 -0
  423. package/src/__tests__/toast-animations.test.ts +98 -0
  424. package/src/__tests__/toast-comparator.test.ts +131 -0
  425. package/src/__tests__/toast-enter-driver.test.ts +147 -0
  426. package/src/__tests__/toast-fns.test.ts +240 -0
  427. package/src/__tests__/toast-position-utils.test.ts +259 -0
  428. package/src/__tests__/toast-positioner-utils.test.ts +214 -0
  429. package/src/__tests__/toast-store.test.ts +622 -0
  430. package/src/__tests__/toast-timers.test.ts +163 -0
  431. package/src/__tests__/use-animated-target.test.tsx +60 -0
  432. package/src/__tests__/use-app-state.test.tsx +127 -0
  433. package/src/__tests__/use-toast-colors.test.tsx +189 -0
  434. package/src/__tests__/web-position-fixed.test.ts +70 -0
  435. package/src/avatar-group/AvatarGroup.web.tsx +2 -1
  436. package/src/bottom-sheet/index.web.tsx +3 -2
  437. package/src/context-menu/index.web.tsx +3 -2
  438. package/src/dialog/Dialog.web.tsx +4 -3
  439. package/src/index.ts +4 -1
  440. package/src/index.web.ts +4 -1
  441. package/src/menu/index.web.tsx +2 -1
  442. package/src/popover/index.web.tsx +3 -2
  443. package/src/portal/index.tsx +4 -1
  444. package/src/progressive-blur/index.tsx +78 -0
  445. package/src/progressive-blur/index.web.tsx +65 -0
  446. package/src/progressive-blur/shared.ts +81 -0
  447. package/src/progressive-blur/types.ts +21 -0
  448. package/src/select/index.web.tsx +2 -1
  449. package/src/styles/web-view-style.ts +21 -0
  450. package/src/tab-bar/TabBar.stories.tsx +217 -0
  451. package/src/tab-bar/TabBarBase.tsx +517 -0
  452. package/src/tab-bar/expo-router/RouterTabBar.tsx +80 -0
  453. package/src/tab-bar/expo-router/fading-tab-screen.tsx +109 -0
  454. package/src/tab-bar/expo-router/index.ts +13 -0
  455. package/src/tab-bar/glyph.native.tsx +46 -0
  456. package/src/tab-bar/glyph.tsx +31 -0
  457. package/src/tab-bar/index.ts +32 -0
  458. package/src/tab-bar/index.web.tsx +34 -0
  459. package/src/tab-bar/minimize-context.tsx +117 -0
  460. package/src/tab-bar/shared.ts +159 -0
  461. package/src/tab-bar/surface.native.tsx +60 -0
  462. package/src/tab-bar/surface.tsx +47 -0
  463. package/src/tab-bar/surface.web.tsx +56 -0
  464. package/src/tab-bar/types.ts +88 -0
  465. package/src/toast/Positioner.tsx +121 -0
  466. package/src/toast/Toast.stories.tsx +292 -65
  467. package/src/toast/ToastContent.tsx +405 -0
  468. package/src/toast/ToastHost.native.tsx +31 -0
  469. package/src/toast/ToastHost.tsx +67 -0
  470. package/src/toast/ToastIcon.tsx +55 -0
  471. package/src/toast/ToastRow.tsx +485 -0
  472. package/src/toast/ToastSwipeHandler.tsx +222 -0
  473. package/src/toast/Toaster.tsx +259 -0
  474. package/src/toast/animations.ts +313 -0
  475. package/src/toast/constants.ts +76 -0
  476. package/src/toast/context.tsx +44 -0
  477. package/src/toast/index.tsx +47 -123
  478. package/src/toast/position-utils.ts +149 -0
  479. package/src/toast/positioner-utils.ts +142 -0
  480. package/src/toast/toast-comparator.ts +41 -0
  481. package/src/toast/toast-fns.ts +104 -0
  482. package/src/toast/toast-store.ts +432 -0
  483. package/src/toast/toast-timers.ts +124 -0
  484. package/src/toast/types.ts +301 -5
  485. package/src/toast/use-animated-target.ts +61 -0
  486. package/src/toast/use-app-state.ts +77 -0
  487. package/src/toast/use-toast-colors.ts +133 -0
  488. package/src/toast/use-toast-position.ts +46 -0
  489. package/src/tooltip/index.web.tsx +2 -1
  490. package/src/zoomable-image-gallery/ZoomableImageGallery.stories.tsx +134 -0
  491. package/src/zoomable-image-gallery/ZoomableImageGallery.tsx +50 -27
  492. package/lib/commonjs/toast/Toast.js +0 -267
  493. package/lib/commonjs/toast/Toast.js.map +0 -1
  494. package/lib/commonjs/toast/const.js +0 -8
  495. package/lib/commonjs/toast/const.js.map +0 -1
  496. package/lib/commonjs/toast/index.web.js +0 -114
  497. package/lib/commonjs/toast/index.web.js.map +0 -1
  498. package/lib/commonjs/toast/sonner/index.js +0 -9
  499. package/lib/commonjs/toast/sonner/index.js.map +0 -1
  500. package/lib/commonjs/toast/sonner/index.web.js +0 -9
  501. package/lib/commonjs/toast/sonner/index.web.js.map +0 -1
  502. package/lib/module/toast/Toast.js +0 -258
  503. package/lib/module/toast/Toast.js.map +0 -1
  504. package/lib/module/toast/const.js +0 -4
  505. package/lib/module/toast/const.js.map +0 -1
  506. package/lib/module/toast/index.web.js +0 -74
  507. package/lib/module/toast/index.web.js.map +0 -1
  508. package/lib/module/toast/sonner/index.js +0 -5
  509. package/lib/module/toast/sonner/index.js.map +0 -1
  510. package/lib/module/toast/sonner/index.web.js +0 -5
  511. package/lib/module/toast/sonner/index.web.js.map +0 -1
  512. package/lib/typescript/commonjs/toast/Toast.d.ts +0 -23
  513. package/lib/typescript/commonjs/toast/Toast.d.ts.map +0 -1
  514. package/lib/typescript/commonjs/toast/const.d.ts +0 -2
  515. package/lib/typescript/commonjs/toast/const.d.ts.map +0 -1
  516. package/lib/typescript/commonjs/toast/index.web.d.ts +0 -29
  517. package/lib/typescript/commonjs/toast/index.web.d.ts.map +0 -1
  518. package/lib/typescript/commonjs/toast/sonner/index.d.ts +0 -2
  519. package/lib/typescript/commonjs/toast/sonner/index.d.ts.map +0 -1
  520. package/lib/typescript/commonjs/toast/sonner/index.web.d.ts +0 -2
  521. package/lib/typescript/commonjs/toast/sonner/index.web.d.ts.map +0 -1
  522. package/lib/typescript/module/toast/Toast.d.ts +0 -23
  523. package/lib/typescript/module/toast/Toast.d.ts.map +0 -1
  524. package/lib/typescript/module/toast/const.d.ts +0 -2
  525. package/lib/typescript/module/toast/const.d.ts.map +0 -1
  526. package/lib/typescript/module/toast/index.web.d.ts +0 -29
  527. package/lib/typescript/module/toast/index.web.d.ts.map +0 -1
  528. package/lib/typescript/module/toast/sonner/index.d.ts +0 -2
  529. package/lib/typescript/module/toast/sonner/index.d.ts.map +0 -1
  530. package/lib/typescript/module/toast/sonner/index.web.d.ts +0 -2
  531. package/lib/typescript/module/toast/sonner/index.web.d.ts.map +0 -1
  532. package/src/toast/Toast.tsx +0 -269
  533. package/src/toast/const.ts +0 -1
  534. package/src/toast/index.web.tsx +0 -101
  535. package/src/toast/sonner/index.ts +0 -3
  536. package/src/toast/sonner/index.web.ts +0 -3
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.dismiss = void 0;
7
- var _sonner = require("sonner");
8
- const dismiss = exports.dismiss = _sonner.toast.dismiss;
9
- //# sourceMappingURL=index.web.js.map
@@ -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,IAAI,IAAIC,MAAM,EACdC,SAAS,EACTC,UAAU,QAEL,cAAc;AAErB,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,mBAAmB,QAAQ,iCAA8B;AAClE,SAASC,gBAAgB,QAAQ,0BAA0B;AAE3D,SAASC,OAAO,QAAQ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAGnC,MAAMC,kBAAkB,gBAAGhB,aAAa,CAGrC;EACDiB,EAAE,EAAE,EAAE;EACNC,IAAI,EAAE;AACR,CAAC,CAAC;AACFF,kBAAkB,CAACG,WAAW,GAAG,oBAAoB;AAErD,OAAO,SAASC,mBAAmBA,CAAC;EAClCC,QAAQ;EACRJ,EAAE;EACFC;AAKF,CAAC,EAAE;EACD,oBACEL,IAAA,CAACG,kBAAkB,CAACM,QAAQ;IAC1BC,KAAK,EAAErB,OAAO,CAAC,OAAO;MAAEe,EAAE;MAAEC;IAAK,CAAC,CAAC,EAAE,CAACD,EAAE,EAAEC,IAAI,CAAC,CAAE;IAAAG,QAAA,EAChDA;EAAQ,CACkB,CAAC;AAElC;AAEA,OAAO,SAASG,KAA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,CAAC,CAAC;AACpB;AAEA,MAAMI,MAAM,GAAGtB,UAAU,CAACyE,MAAM,CAAC;EAC/BlD,KAAK,EAAE;IACLmD,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,eAAe,EAAE,EAAE;IACnB;IACA,GAAG7E,gBAAgB,CAAC,GAAG;EACzB,CAAC;EACD6B,aAAa,EAAE;IACb0C,IAAI,EAAE,CAAC;IACPO,YAAY,EAAE;EAChB,CAAC;EACD/C,IAAI,EAAE;IACJgD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd,CAAC;EACDnC,YAAY,EAAE;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,4 +0,0 @@
1
- "use strict";
2
-
3
- export const DURATION = 3e3;
4
- //# sourceMappingURL=const.js.map
@@ -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,cACJW,IAAA,CAACF,mBAAmB;MAACgB,EAAE,EAAEA,EAAG;MAACF,IAAI,EAAEA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,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,5 +0,0 @@
1
- "use strict";
2
-
3
- import { toast } from 'sonner-native';
4
- export const dismiss = toast.dismiss;
5
- //# sourceMappingURL=index.js.map
@@ -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,5 +0,0 @@
1
- "use strict";
2
-
3
- import { toast } from 'sonner';
4
- export const dismiss = toast.dismiss;
5
- //# sourceMappingURL=index.web.js.map
@@ -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,2 +0,0 @@
1
- export declare const DURATION = 3000;
2
- //# sourceMappingURL=const.d.ts.map
@@ -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,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K,GAAG,OAAO,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const dismiss: (id?: string | number) => string | number | undefined;
2
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const dismiss: (id?: number | string) => string | number;
2
- //# sourceMappingURL=index.web.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const DURATION = 3000;
2
- //# sourceMappingURL=const.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const dismiss: (id?: string | number) => string | number | undefined;
2
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const dismiss: (id?: number | string) => string | number;
2
- //# sourceMappingURL=index.web.d.ts.map
@@ -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"}