@tamagui/toast 2.7.6 → 3.0.0-beta.637.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 (303) hide show
  1. package/dist/cjs/ToastComposable.cjs +773 -882
  2. package/dist/cjs/ToastComposable.native.cjs +924 -0
  3. package/dist/cjs/ToastComposable.native.js +854 -966
  4. package/dist/cjs/ToastComposable.native.js.map +1 -1
  5. package/dist/cjs/ToastItemFrame.cjs +48 -119
  6. package/dist/cjs/ToastItemFrame.native.cjs +76 -0
  7. package/dist/cjs/ToastItemFrame.native.js +50 -120
  8. package/dist/cjs/ToastItemFrame.native.js.map +1 -1
  9. package/dist/cjs/ToastState.cjs +281 -290
  10. package/dist/cjs/ToastState.native.cjs +312 -0
  11. package/dist/cjs/ToastState.native.js +280 -290
  12. package/dist/cjs/ToastState.native.js.map +1 -1
  13. package/dist/cjs/createNativeToast.cjs +38 -44
  14. package/dist/cjs/createNativeToast.native.cjs +54 -0
  15. package/dist/cjs/createNativeToast.native.js +36 -40
  16. package/dist/cjs/createNativeToast.native.js.map +1 -1
  17. package/dist/cjs/dispatchNativeToast.cjs +32 -35
  18. package/dist/cjs/dispatchNativeToast.native.cjs +48 -0
  19. package/dist/cjs/dispatchNativeToast.native.js +34 -36
  20. package/dist/cjs/dispatchNativeToast.native.js.map +1 -1
  21. package/dist/cjs/index.cjs +25 -12
  22. package/dist/cjs/index.native.cjs +35 -0
  23. package/dist/cjs/index.native.js +26 -12
  24. package/dist/cjs/index.native.js.map +1 -1
  25. package/dist/cjs/types.cjs +10 -11
  26. package/dist/cjs/types.native.cjs +19 -0
  27. package/dist/cjs/types.native.js +10 -10
  28. package/dist/cjs/types.native.js.map +1 -1
  29. package/dist/cjs/useAnimatedDragGesture.cjs +197 -194
  30. package/dist/cjs/useAnimatedDragGesture.native.cjs +210 -0
  31. package/dist/cjs/useAnimatedDragGesture.native.js +179 -191
  32. package/dist/cjs/useAnimatedDragGesture.native.js.map +1 -1
  33. package/dist/cjs/useReducedMotion.cjs +47 -55
  34. package/dist/cjs/useReducedMotion.native.cjs +74 -0
  35. package/dist/cjs/useReducedMotion.native.js +53 -60
  36. package/dist/cjs/useReducedMotion.native.js.map +1 -1
  37. package/dist/cjs/useToastAnimations.cjs +198 -270
  38. package/dist/cjs/useToastAnimations.native.cjs +229 -0
  39. package/dist/cjs/useToastAnimations.native.js +205 -276
  40. package/dist/cjs/useToastAnimations.native.js.map +1 -1
  41. package/dist/esm/ToastComposable.mjs +752 -854
  42. package/dist/esm/ToastComposable.mjs.map +1 -1
  43. package/dist/esm/ToastComposable.native.js +834 -940
  44. package/dist/esm/ToastComposable.native.js.map +1 -1
  45. package/dist/esm/ToastItemFrame.mjs +31 -99
  46. package/dist/esm/ToastItemFrame.mjs.map +1 -1
  47. package/dist/esm/ToastItemFrame.native.js +34 -102
  48. package/dist/esm/ToastItemFrame.native.js.map +1 -1
  49. package/dist/esm/ToastState.mjs +266 -273
  50. package/dist/esm/ToastState.mjs.map +1 -1
  51. package/dist/esm/ToastState.native.js +265 -274
  52. package/dist/esm/ToastState.native.js.map +1 -1
  53. package/dist/esm/createNativeToast.mjs +22 -26
  54. package/dist/esm/createNativeToast.mjs.map +1 -1
  55. package/dist/esm/createNativeToast.native.js +21 -23
  56. package/dist/esm/createNativeToast.native.js.map +1 -1
  57. package/dist/esm/dispatchNativeToast.mjs +19 -17
  58. package/dist/esm/dispatchNativeToast.mjs.map +1 -1
  59. package/dist/esm/dispatchNativeToast.native.js +21 -19
  60. package/dist/esm/dispatchNativeToast.native.js.map +1 -1
  61. package/dist/esm/index.js +5 -2
  62. package/dist/esm/index.mjs +5 -2
  63. package/dist/esm/index.native.js +5 -2
  64. package/dist/esm/types.mjs +0 -2
  65. package/dist/esm/types.native.js +0 -2
  66. package/dist/esm/useAnimatedDragGesture.mjs +181 -168
  67. package/dist/esm/useAnimatedDragGesture.mjs.map +1 -1
  68. package/dist/esm/useAnimatedDragGesture.native.js +163 -166
  69. package/dist/esm/useAnimatedDragGesture.native.js.map +1 -1
  70. package/dist/esm/useReducedMotion.mjs +31 -29
  71. package/dist/esm/useReducedMotion.mjs.map +1 -1
  72. package/dist/esm/useReducedMotion.native.js +37 -35
  73. package/dist/esm/useReducedMotion.native.js.map +1 -1
  74. package/dist/esm/useToastAnimations.mjs +183 -245
  75. package/dist/esm/useToastAnimations.mjs.map +1 -1
  76. package/dist/esm/useToastAnimations.native.js +190 -252
  77. package/dist/esm/useToastAnimations.native.js.map +1 -1
  78. package/dist/jsx/ToastComposable.mjs +752 -854
  79. package/dist/jsx/ToastComposable.mjs.map +1 -1
  80. package/dist/jsx/ToastComposable.native.cjs +924 -0
  81. package/dist/jsx/ToastComposable.native.js +854 -966
  82. package/dist/jsx/ToastComposable.native.js.map +1 -1
  83. package/dist/jsx/ToastItemFrame.mjs +31 -99
  84. package/dist/jsx/ToastItemFrame.mjs.map +1 -1
  85. package/dist/jsx/ToastItemFrame.native.cjs +76 -0
  86. package/dist/jsx/ToastItemFrame.native.js +50 -120
  87. package/dist/jsx/ToastItemFrame.native.js.map +1 -1
  88. package/dist/jsx/ToastState.mjs +266 -273
  89. package/dist/jsx/ToastState.mjs.map +1 -1
  90. package/dist/jsx/ToastState.native.cjs +312 -0
  91. package/dist/jsx/ToastState.native.js +280 -290
  92. package/dist/jsx/ToastState.native.js.map +1 -1
  93. package/dist/jsx/createNativeToast.mjs +22 -26
  94. package/dist/jsx/createNativeToast.mjs.map +1 -1
  95. package/dist/jsx/createNativeToast.native.cjs +54 -0
  96. package/dist/jsx/createNativeToast.native.js +36 -40
  97. package/dist/jsx/createNativeToast.native.js.map +1 -1
  98. package/dist/jsx/dispatchNativeToast.mjs +19 -17
  99. package/dist/jsx/dispatchNativeToast.mjs.map +1 -1
  100. package/dist/jsx/dispatchNativeToast.native.cjs +48 -0
  101. package/dist/jsx/dispatchNativeToast.native.js +34 -36
  102. package/dist/jsx/dispatchNativeToast.native.js.map +1 -1
  103. package/dist/jsx/index.js +5 -2
  104. package/dist/jsx/index.mjs +5 -2
  105. package/dist/jsx/index.native.cjs +35 -0
  106. package/dist/jsx/index.native.js +26 -12
  107. package/dist/jsx/index.native.js.map +1 -1
  108. package/dist/jsx/types.mjs +0 -2
  109. package/dist/jsx/types.native.cjs +19 -0
  110. package/dist/jsx/types.native.js +10 -10
  111. package/dist/jsx/types.native.js.map +1 -1
  112. package/dist/jsx/useAnimatedDragGesture.mjs +181 -168
  113. package/dist/jsx/useAnimatedDragGesture.mjs.map +1 -1
  114. package/dist/jsx/useAnimatedDragGesture.native.cjs +210 -0
  115. package/dist/jsx/useAnimatedDragGesture.native.js +179 -191
  116. package/dist/jsx/useAnimatedDragGesture.native.js.map +1 -1
  117. package/dist/jsx/useReducedMotion.mjs +31 -29
  118. package/dist/jsx/useReducedMotion.mjs.map +1 -1
  119. package/dist/jsx/useReducedMotion.native.cjs +74 -0
  120. package/dist/jsx/useReducedMotion.native.js +53 -60
  121. package/dist/jsx/useReducedMotion.native.js.map +1 -1
  122. package/dist/jsx/useToastAnimations.mjs +183 -245
  123. package/dist/jsx/useToastAnimations.mjs.map +1 -1
  124. package/dist/jsx/useToastAnimations.native.cjs +229 -0
  125. package/dist/jsx/useToastAnimations.native.js +205 -276
  126. package/dist/jsx/useToastAnimations.native.js.map +1 -1
  127. package/package.json +20 -37
  128. package/src/ToastComposable.tsx +55 -97
  129. package/src/ToastItemFrame.tsx +22 -81
  130. package/src/ToastState.ts +1 -0
  131. package/src/index.ts +34 -2
  132. package/src/types.ts +11 -0
  133. package/src/useAnimatedDragGesture.native.ts +1 -1
  134. package/src/useAnimatedDragGesture.ts +1 -1
  135. package/src/useToastAnimations.ts +20 -36
  136. package/types/ToastComposable.d.ts +124 -47
  137. package/types/ToastComposable.d.ts.map +1 -1
  138. package/types/ToastItemFrame.d.ts +52 -21
  139. package/types/ToastItemFrame.d.ts.map +1 -1
  140. package/types/ToastState.d.ts +15 -11
  141. package/types/ToastState.d.ts.map +1 -1
  142. package/types/index.d.ts +6 -2
  143. package/types/index.d.ts.map +1 -1
  144. package/types/types.d.ts +1 -0
  145. package/types/types.d.ts.map +1 -1
  146. package/types/useAnimatedDragGesture.d.ts +1 -1
  147. package/types/useAnimatedDragGesture.d.ts.map +1 -1
  148. package/types/useAnimatedDragGesture.native.d.ts +1 -1
  149. package/types/useAnimatedDragGesture.native.d.ts.map +1 -1
  150. package/types/useToastAnimations.d.ts +2 -8
  151. package/types/useToastAnimations.d.ts.map +1 -1
  152. package/dist/cjs/Toast.cjs +0 -178
  153. package/dist/cjs/Toast.native.js +0 -181
  154. package/dist/cjs/Toast.native.js.map +0 -1
  155. package/dist/cjs/ToastAnnounce.cjs +0 -103
  156. package/dist/cjs/ToastAnnounce.native.js +0 -111
  157. package/dist/cjs/ToastAnnounce.native.js.map +0 -1
  158. package/dist/cjs/ToastImperative.cjs +0 -119
  159. package/dist/cjs/ToastImperative.native.js +0 -130
  160. package/dist/cjs/ToastImperative.native.js.map +0 -1
  161. package/dist/cjs/ToastImpl.cjs +0 -354
  162. package/dist/cjs/ToastImpl.native.js +0 -364
  163. package/dist/cjs/ToastImpl.native.js.map +0 -1
  164. package/dist/cjs/ToastPortal.cjs +0 -49
  165. package/dist/cjs/ToastPortal.native.js +0 -52
  166. package/dist/cjs/ToastPortal.native.js.map +0 -1
  167. package/dist/cjs/ToastProvider.cjs +0 -150
  168. package/dist/cjs/ToastProvider.native.js +0 -161
  169. package/dist/cjs/ToastProvider.native.js.map +0 -1
  170. package/dist/cjs/ToastViewport.cjs +0 -319
  171. package/dist/cjs/ToastViewport.native.js +0 -343
  172. package/dist/cjs/ToastViewport.native.js.map +0 -1
  173. package/dist/cjs/Toaster.cjs +0 -87
  174. package/dist/cjs/Toaster.native.js +0 -91
  175. package/dist/cjs/Toaster.native.js.map +0 -1
  176. package/dist/cjs/constants.cjs +0 -30
  177. package/dist/cjs/constants.native.js +0 -33
  178. package/dist/cjs/constants.native.js.map +0 -1
  179. package/dist/cjs/v2.cjs +0 -36
  180. package/dist/cjs/v2.native.js +0 -39
  181. package/dist/cjs/v2.native.js.map +0 -1
  182. package/dist/esm/Toast.mjs +0 -137
  183. package/dist/esm/Toast.mjs.map +0 -1
  184. package/dist/esm/Toast.native.js +0 -137
  185. package/dist/esm/Toast.native.js.map +0 -1
  186. package/dist/esm/ToastAnnounce.mjs +0 -66
  187. package/dist/esm/ToastAnnounce.mjs.map +0 -1
  188. package/dist/esm/ToastAnnounce.native.js +0 -71
  189. package/dist/esm/ToastAnnounce.native.js.map +0 -1
  190. package/dist/esm/ToastImperative.mjs +0 -80
  191. package/dist/esm/ToastImperative.mjs.map +0 -1
  192. package/dist/esm/ToastImperative.native.js +0 -88
  193. package/dist/esm/ToastImperative.native.js.map +0 -1
  194. package/dist/esm/ToastImpl.mjs +0 -316
  195. package/dist/esm/ToastImpl.mjs.map +0 -1
  196. package/dist/esm/ToastImpl.native.js +0 -329
  197. package/dist/esm/ToastImpl.native.js.map +0 -1
  198. package/dist/esm/ToastPortal.mjs +0 -24
  199. package/dist/esm/ToastPortal.mjs.map +0 -1
  200. package/dist/esm/ToastPortal.native.js +0 -24
  201. package/dist/esm/ToastPortal.native.js.map +0 -1
  202. package/dist/esm/ToastProvider.mjs +0 -110
  203. package/dist/esm/ToastProvider.mjs.map +0 -1
  204. package/dist/esm/ToastProvider.native.js +0 -118
  205. package/dist/esm/ToastProvider.native.js.map +0 -1
  206. package/dist/esm/ToastViewport.mjs +0 -280
  207. package/dist/esm/ToastViewport.mjs.map +0 -1
  208. package/dist/esm/ToastViewport.native.js +0 -301
  209. package/dist/esm/ToastViewport.native.js.map +0 -1
  210. package/dist/esm/Toaster.mjs +0 -51
  211. package/dist/esm/Toaster.mjs.map +0 -1
  212. package/dist/esm/Toaster.native.js +0 -52
  213. package/dist/esm/Toaster.native.js.map +0 -1
  214. package/dist/esm/constants.mjs +0 -4
  215. package/dist/esm/constants.mjs.map +0 -1
  216. package/dist/esm/constants.native.js +0 -4
  217. package/dist/esm/constants.native.js.map +0 -1
  218. package/dist/esm/index.js.map +0 -1
  219. package/dist/esm/index.mjs.map +0 -1
  220. package/dist/esm/index.native.js.map +0 -1
  221. package/dist/esm/types.mjs.map +0 -1
  222. package/dist/esm/types.native.js.map +0 -1
  223. package/dist/esm/v2.mjs +0 -6
  224. package/dist/esm/v2.mjs.map +0 -1
  225. package/dist/esm/v2.native.js +0 -6
  226. package/dist/esm/v2.native.js.map +0 -1
  227. package/dist/jsx/Toast.mjs +0 -137
  228. package/dist/jsx/Toast.mjs.map +0 -1
  229. package/dist/jsx/Toast.native.js +0 -181
  230. package/dist/jsx/Toast.native.js.map +0 -1
  231. package/dist/jsx/ToastAnnounce.mjs +0 -66
  232. package/dist/jsx/ToastAnnounce.mjs.map +0 -1
  233. package/dist/jsx/ToastAnnounce.native.js +0 -111
  234. package/dist/jsx/ToastAnnounce.native.js.map +0 -1
  235. package/dist/jsx/ToastImperative.mjs +0 -80
  236. package/dist/jsx/ToastImperative.mjs.map +0 -1
  237. package/dist/jsx/ToastImperative.native.js +0 -130
  238. package/dist/jsx/ToastImperative.native.js.map +0 -1
  239. package/dist/jsx/ToastImpl.mjs +0 -316
  240. package/dist/jsx/ToastImpl.mjs.map +0 -1
  241. package/dist/jsx/ToastImpl.native.js +0 -364
  242. package/dist/jsx/ToastImpl.native.js.map +0 -1
  243. package/dist/jsx/ToastPortal.mjs +0 -24
  244. package/dist/jsx/ToastPortal.mjs.map +0 -1
  245. package/dist/jsx/ToastPortal.native.js +0 -52
  246. package/dist/jsx/ToastPortal.native.js.map +0 -1
  247. package/dist/jsx/ToastProvider.mjs +0 -110
  248. package/dist/jsx/ToastProvider.mjs.map +0 -1
  249. package/dist/jsx/ToastProvider.native.js +0 -161
  250. package/dist/jsx/ToastProvider.native.js.map +0 -1
  251. package/dist/jsx/ToastViewport.mjs +0 -280
  252. package/dist/jsx/ToastViewport.mjs.map +0 -1
  253. package/dist/jsx/ToastViewport.native.js +0 -343
  254. package/dist/jsx/ToastViewport.native.js.map +0 -1
  255. package/dist/jsx/Toaster.mjs +0 -51
  256. package/dist/jsx/Toaster.mjs.map +0 -1
  257. package/dist/jsx/Toaster.native.js +0 -91
  258. package/dist/jsx/Toaster.native.js.map +0 -1
  259. package/dist/jsx/constants.mjs +0 -4
  260. package/dist/jsx/constants.mjs.map +0 -1
  261. package/dist/jsx/constants.native.js +0 -33
  262. package/dist/jsx/constants.native.js.map +0 -1
  263. package/dist/jsx/index.js.map +0 -1
  264. package/dist/jsx/index.mjs.map +0 -1
  265. package/dist/jsx/types.mjs.map +0 -1
  266. package/dist/jsx/v2.mjs +0 -6
  267. package/dist/jsx/v2.mjs.map +0 -1
  268. package/dist/jsx/v2.native.js +0 -39
  269. package/dist/jsx/v2.native.js.map +0 -1
  270. package/src/Toast.tsx +0 -219
  271. package/src/ToastAnnounce.tsx +0 -103
  272. package/src/ToastImperative.tsx +0 -192
  273. package/src/ToastImpl.tsx +0 -514
  274. package/src/ToastPortal.tsx +0 -19
  275. package/src/ToastProvider.tsx +0 -204
  276. package/src/ToastViewport.tsx +0 -430
  277. package/src/Toaster.tsx +0 -181
  278. package/src/constants.ts +0 -2
  279. package/src/v2.ts +0 -31
  280. package/types/Toast.d.ts +0 -84
  281. package/types/Toast.d.ts.map +0 -1
  282. package/types/ToastAnnounce.d.ts +0 -18
  283. package/types/ToastAnnounce.d.ts.map +0 -1
  284. package/types/ToastImperative.d.ts +0 -95
  285. package/types/ToastImperative.d.ts.map +0 -1
  286. package/types/ToastImpl.d.ts +0 -109
  287. package/types/ToastImpl.d.ts.map +0 -1
  288. package/types/ToastPortal.d.ts +0 -8
  289. package/types/ToastPortal.d.ts.map +0 -1
  290. package/types/ToastProvider.d.ts +0 -92
  291. package/types/ToastProvider.d.ts.map +0 -1
  292. package/types/ToastViewport.d.ts +0 -75
  293. package/types/ToastViewport.d.ts.map +0 -1
  294. package/types/Toaster.d.ts +0 -112
  295. package/types/Toaster.d.ts.map +0 -1
  296. package/types/constants.d.ts +0 -3
  297. package/types/constants.d.ts.map +0 -1
  298. package/types/v2.d.ts +0 -10
  299. package/types/v2.d.ts.map +0 -1
  300. package/v2/index.cjs +0 -2
  301. package/v2/index.js +0 -2
  302. package/v2/index.native.cjs +0 -2
  303. package/v2/index.native.js +0 -2
@@ -1,364 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
36
- var ToastImpl_exports = {};
37
- __export(ToastImpl_exports, {
38
- ToastImpl: () => ToastImpl,
39
- ToastImplFrame: () => ToastImplFrame,
40
- useToastInteractiveContext: () => useToastInteractiveContext
41
- });
42
- module.exports = __toCommonJS(ToastImpl_exports);
43
- var import_jsx_runtime = require("react/jsx-runtime");
44
- var import_animate_presence = require("@tamagui/animate-presence");
45
- var import_compose_refs = require("@tamagui/compose-refs");
46
- var import_constants = require("@tamagui/constants");
47
- var import_core = require("@tamagui/core");
48
- var import_dismissable = require("@tamagui/dismissable");
49
- var import_helpers = require("@tamagui/helpers");
50
- var import_portal = require("@tamagui/portal");
51
- var import_stacks = require("@tamagui/stacks");
52
- var React = __toESM(require("react"), 1);
53
- var import_constants2 = require("./constants.native.js");
54
- var import_ToastAnnounce = require("./ToastAnnounce.native.js");
55
- var import_ToastProvider = require("./ToastProvider.native.js");
56
- var import_ToastViewport = require("./ToastViewport.native.js");
57
- var getPanResponder = function () {
58
- return require("react-native").PanResponder;
59
- };
60
- var ToastImplFrame = (0, import_core.styled)(import_stacks.YStack, {
61
- name: "ToastImpl",
62
- tabIndex: 0,
63
- variants: {
64
- unstyled: {
65
- false: {
66
- focusStyle: {
67
- outlineStyle: "solid",
68
- outlineWidth: 2,
69
- outlineColor: "$outlineColor"
70
- },
71
- backgroundColor: "$color6",
72
- borderRadius: "$4",
73
- paddingHorizontal: "$4",
74
- paddingVertical: "$3",
75
- marginHorizontal: "auto",
76
- marginVertical: "$1",
77
- elevation: "$3"
78
- }
79
- }
80
- },
81
- defaultVariants: {
82
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
83
- }
84
- });
85
- var {
86
- Provider: ToastInteractiveProvider,
87
- useStyledContext: useToastInteractiveContext
88
- } = (0, import_core.createStyledContext)({
89
- onClose() {}
90
- });
91
- var ToastImpl = /* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
92
- var {
93
- scope,
94
- type = "foreground",
95
- duration: durationProp,
96
- open,
97
- onClose,
98
- onEscapeKeyDown,
99
- onPause,
100
- onResume,
101
- onSwipeStart,
102
- onSwipeMove,
103
- onSwipeCancel,
104
- onSwipeEnd,
105
- viewportName = "default",
106
- ...toastProps
107
- } = props;
108
- var isPresent = (0, import_animate_presence.useIsPresent)();
109
- var context = (0, import_ToastProvider.useToastProviderContext)(scope);
110
- var [node, setNode] = React.useState(null);
111
- var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setNode);
112
- var duration = durationProp || context.duration;
113
- var closeTimerStartTimeRef = React.useRef(0);
114
- var closeTimerRemainingTimeRef = React.useRef(duration);
115
- var closeTimerRef = React.useRef(0);
116
- var {
117
- onToastAdd,
118
- onToastRemove
119
- } = context;
120
- var viewport = React.useMemo(function () {
121
- return context.viewports[viewportName];
122
- }, [context.viewports, viewportName]);
123
- var handleClose = (0, import_core.useEvent)(function () {
124
- if (!isPresent) return;
125
- if (import_constants.isWeb) {
126
- if (node === null || node === void 0 ? void 0 : node.contains(document.activeElement)) viewport === null || viewport === void 0 || viewport.focus();
127
- }
128
- onClose();
129
- });
130
- var startTimer = React.useCallback(function (duration2) {
131
- if (!duration2 || duration2 === Number.POSITIVE_INFINITY) return;
132
- clearTimeout(closeTimerRef.current);
133
- closeTimerStartTimeRef.current = (/* @__PURE__ */new Date()).getTime();
134
- closeTimerRef.current = setTimeout(handleClose, duration2);
135
- }, [handleClose]);
136
- var handleResume = React.useCallback(function () {
137
- startTimer(closeTimerRemainingTimeRef.current);
138
- onResume === null || onResume === void 0 || onResume();
139
- }, [onResume, startTimer]);
140
- var handlePause = React.useCallback(function () {
141
- var elapsedTime = (/* @__PURE__ */new Date()).getTime() - closeTimerStartTimeRef.current;
142
- closeTimerRemainingTimeRef.current = closeTimerRemainingTimeRef.current - elapsedTime;
143
- window.clearTimeout(closeTimerRef.current);
144
- onPause === null || onPause === void 0 || onPause();
145
- }, [onPause]);
146
- React.useEffect(function () {
147
- if (!import_constants.isWeb) return;
148
- if (viewport) {
149
- viewport.addEventListener(import_ToastViewport.VIEWPORT_PAUSE, handlePause);
150
- viewport.addEventListener(import_ToastViewport.VIEWPORT_RESUME, handleResume);
151
- return function () {
152
- viewport.removeEventListener(import_ToastViewport.VIEWPORT_PAUSE, handlePause);
153
- viewport.removeEventListener(import_ToastViewport.VIEWPORT_RESUME, handleResume);
154
- };
155
- }
156
- }, [viewport, duration, onPause, onResume, startTimer]);
157
- React.useEffect(function () {
158
- if (open && !context.isClosePausedRef.current) startTimer(duration);
159
- }, [open, duration, context.isClosePausedRef, startTimer]);
160
- React.useEffect(function () {
161
- onToastAdd();
162
- return function () {
163
- return onToastRemove();
164
- };
165
- }, [onToastAdd, onToastRemove]);
166
- var announceTextContent = React.useMemo(function () {
167
- if (!import_constants.isWeb) return null;
168
- return node ? getAnnounceTextContent(node) : null;
169
- }, [node]);
170
- var isHorizontalSwipe = ["left", "right", "horizontal"].includes(context.swipeDirection);
171
- var {
172
- animationDriver
173
- } = (0, import_core.useConfiguration)();
174
- if (!animationDriver) throw new Error("Must set animations in tamagui.config.ts");
175
- var {
176
- useAnimatedNumber,
177
- useAnimatedNumberStyle
178
- } = animationDriver;
179
- var animatedNumber = useAnimatedNumber(0);
180
- var _animationDriver_NumberView, _ref;
181
- var AnimatedView = (_ref = (_animationDriver_NumberView = animationDriver["NumberView"]) !== null && _animationDriver_NumberView !== void 0 ? _animationDriver_NumberView : animationDriver.View) !== null && _ref !== void 0 ? _ref : import_core.View;
182
- var animatedStyles = useAnimatedNumberStyle(animatedNumber, function (val) {
183
- "worklet";
184
-
185
- return {
186
- transform: [isHorizontalSwipe ? {
187
- translateX: val
188
- } : {
189
- translateY: val
190
- }]
191
- };
192
- });
193
- var panResponder = React.useMemo(function () {
194
- var PanResponder = getPanResponder();
195
- if (!PanResponder) return null;
196
- return PanResponder.create({
197
- onMoveShouldSetPanResponder: function (e, gesture) {
198
- if (shouldGrantGestureMove(context.swipeDirection, gesture)) {
199
- onSwipeStart === null || onSwipeStart === void 0 || onSwipeStart(e);
200
- return true;
201
- }
202
- return false;
203
- },
204
- onPanResponderGrant: function (e) {
205
- if (!import_constants.isWeb) handlePause === null || handlePause === void 0 || handlePause();
206
- },
207
- onPanResponderMove: function (e, gesture) {
208
- var {
209
- x,
210
- y
211
- } = getGestureDistance(context.swipeDirection, gesture);
212
- var delta = {
213
- x,
214
- y
215
- };
216
- animatedNumber.setValue(isHorizontalSwipe ? x : y, {
217
- type: "direct"
218
- });
219
- if (isDeltaInDirection(delta, context.swipeDirection, context.swipeThreshold)) onSwipeEnd === null || onSwipeEnd === void 0 || onSwipeEnd(e);
220
- onSwipeMove === null || onSwipeMove === void 0 || onSwipeMove(e);
221
- },
222
- onPanResponderEnd: function (e, param) {
223
- var {
224
- dx,
225
- dy
226
- } = param;
227
- if (!isDeltaInDirection({
228
- x: dx,
229
- y: dy
230
- }, context.swipeDirection, context.swipeThreshold)) {
231
- if (!import_constants.isWeb) handleResume === null || handleResume === void 0 || handleResume();
232
- onSwipeCancel === null || onSwipeCancel === void 0 || onSwipeCancel(e);
233
- animatedNumber.setValue(0, {
234
- type: "spring"
235
- });
236
- }
237
- }
238
- });
239
- }, [handlePause, handleResume]);
240
- var themeName = (0, import_core.useThemeName)();
241
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
242
- children: [announceTextContent && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ToastAnnounce.ToastAnnounce, {
243
- scope,
244
- role: "status",
245
- "aria-live": type === "foreground" ? "assertive" : "polite",
246
- "aria-atomic": true,
247
- children: announceTextContent
248
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_portal.PortalItem, {
249
- hostName: viewportName !== null && viewportName !== void 0 ? viewportName : "default",
250
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ToastInteractiveProvider, {
251
- scope,
252
- onClose: function () {
253
- handleClose();
254
- },
255
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_dismissable.Dismissable, {
256
- onEscapeKeyDown: (0, import_helpers.composeEventHandlers)(onEscapeKeyDown, function () {
257
- if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
258
- context.isFocusedToastEscapeKeyDownRef.current = false;
259
- }),
260
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Theme, {
261
- contain: true,
262
- forceClassName: true,
263
- name: themeName,
264
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnimatedView, {
265
- ...(panResponder === null || panResponder === void 0 ? void 0 : panResponder.panHandlers),
266
- style: [{
267
- margin: "auto"
268
- }, animatedStyles],
269
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ToastProvider.Collection.ItemSlot, {
270
- scope: context.toastScope,
271
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ToastImplFrame, {
272
- role: "status",
273
- "aria-live": "off",
274
- "aria-atomic": true,
275
- "data-state": open ? "open" : "closed",
276
- "data-swipe-direction": context.swipeDirection,
277
- pointerEvents: "auto",
278
- "$platform-web": {
279
- touchAction: "none",
280
- userSelect: "none"
281
- },
282
- ...toastProps,
283
- ref: composedRefs,
284
- ...(import_constants.isWeb && {
285
- onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function (event) {
286
- if (event.key !== "Escape") return;
287
- onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
288
- if (!event.defaultPrevented) {
289
- context.isFocusedToastEscapeKeyDownRef.current = true;
290
- handleClose();
291
- }
292
- })
293
- })
294
- })
295
- })
296
- })
297
- })
298
- })
299
- }, props.id)
300
- })]
301
- });
302
- });
303
- ToastImpl.propTypes = {
304
- type(props) {
305
- if (props.type && !["foreground", "background"].includes(props.type)) {
306
- var error = `Invalid prop \`type\` supplied to \`${import_constants2.TOAST_NAME}\`. Expected \`foreground | background\`.`;
307
- return new Error(error);
308
- }
309
- return null;
310
- }
311
- };
312
- var isDeltaInDirection = function (delta, direction) {
313
- var threshold = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
314
- var deltaX = Math.abs(delta.x);
315
- var deltaY = Math.abs(delta.y);
316
- var isDeltaX = deltaX > deltaY;
317
- if (direction === "left" || direction === "right" || direction === "horizontal") return isDeltaX && deltaX > threshold;
318
- return !isDeltaX && deltaY > threshold;
319
- };
320
- function getAnnounceTextContent(container) {
321
- if (!import_constants.isWeb) return "";
322
- var textContent = [];
323
- Array.from(container.childNodes).forEach(function (node) {
324
- if (node.nodeType === node.TEXT_NODE && node.textContent) textContent.push(node.textContent);
325
- if (isHTMLElement(node)) {
326
- var isHidden = node.ariaHidden || node.hidden || node.style.display === "none";
327
- var isExcluded = node.dataset.toastAnnounceExclude === "";
328
- if (!isHidden) if (isExcluded) {
329
- var altText = node.dataset.toastAnnounceAlt;
330
- if (altText) textContent.push(altText);
331
- } else textContent.push(...getAnnounceTextContent(node));
332
- }
333
- });
334
- return textContent;
335
- }
336
- function isHTMLElement(node) {
337
- return node.nodeType === node.ELEMENT_NODE;
338
- }
339
- var GESTURE_GRANT_THRESHOLD = 10;
340
- var shouldGrantGestureMove = function (dir, param) {
341
- var {
342
- dx,
343
- dy
344
- } = param;
345
- if ((dir === "horizontal" || dir === "left") && dx < -GESTURE_GRANT_THRESHOLD) return true;
346
- if ((dir === "horizontal" || dir === "right") && dx > GESTURE_GRANT_THRESHOLD) return true;
347
- if ((dir === "vertical" || dir === "up") && dy > -GESTURE_GRANT_THRESHOLD) return true;
348
- if ((dir === "vertical" || dir === "down") && dy < GESTURE_GRANT_THRESHOLD) return true;
349
- return false;
350
- };
351
- var getGestureDistance = function (dir, param) {
352
- var {
353
- dx,
354
- dy
355
- } = param;
356
- var y = 0;
357
- var x = 0;
358
- if (dir === "horizontal") x = dx;else if (dir === "left") x = Math.min(0, dx);else if (dir === "right") x = Math.max(0, dx);else if (dir === "vertical") y = dy;else if (dir === "up") y = Math.min(0, dy);else if (dir === "down") y = Math.max(0, dy);
359
- return {
360
- x,
361
- y
362
- };
363
- };
364
- //# sourceMappingURL=ToastImpl.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","ToastImpl_exports","ToastImpl","ToastImplFrame","useToastInteractiveContext","module","exports","import_jsx_runtime","require","import_animate_presence","import_compose_refs","import_constants","import_core","import_dismissable","import_helpers","import_portal","import_stacks","React","import_constants2","import_ToastAnnounce","import_ToastProvider","import_ToastViewport","getPanResponder","PanResponder","styled","YStack","tabIndex","variants","unstyled","false","focusStyle","outlineStyle","outlineWidth","outlineColor","backgroundColor","borderRadius","paddingHorizontal","paddingVertical","marginHorizontal","marginVertical","elevation","defaultVariants","process","env","TAMAGUI_HEADLESS","Provider","ToastInteractiveProvider","useStyledContext","createStyledContext","onClose","forwardRef","props","forwardedRef","scope","type","duration","durationProp","open","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd","viewportName","toastProps","isPresent","useIsPresent","context","useToastProviderContext","node","setNode","useState","composedRefs","useComposedRefs","closeTimerStartTimeRef","useRef","closeTimerRemainingTimeRef","closeTimerRef","onToastAdd","onToastRemove","viewport","useMemo","viewports","handleClose","useEvent","isWeb","contains","document","activeElement","focus","startTimer","useCallback","duration2","Number","POSITIVE_INFINITY","clearTimeout","current","Date","getTime","setTimeout","handleResume","handlePause","elapsedTime","window","useEffect","addEventListener","VIEWPORT_PAUSE","VIEWPORT_RESUME","removeEventListener","isClosePausedRef","announceTextContent","getAnnounceTextContent","isHorizontalSwipe","includes","swipeDirection","animationDriver","useConfiguration","Error","useAnimatedNumber","useAnimatedNumberStyle","animatedNumber","_animationDriver_NumberView","_ref","AnimatedView","View","animatedStyles","val","transform","translateX","translateY","panResponder","onMoveShouldSetPanResponder","e","gesture","shouldGrantGestureMove","onPanResponderGrant","onPanResponderMove","x","y","getGestureDistance","delta","setValue","isDeltaInDirection","swipeThreshold","onPanResponderEnd","param","dx","dy","themeName","useThemeName","jsxs","Fragment","children","jsx","ToastAnnounce","role","PortalItem","hostName","Dismissable","composeEventHandlers","isFocusedToastEscapeKeyDownRef","Theme","contain","forceClassName","panHandlers","style","margin","Collection","ItemSlot","toastScope","pointerEvents","touchAction","userSelect","ref","onKeyDown","event","defaultPrevented","id","propTypes","error","TOAST_NAME","direction","threshold","arguments","length","deltaX","Math","abs","deltaY","isDeltaX","container","textContent","Array","childNodes","forEach","nodeType","TEXT_NODE","push","isHTMLElement","isHidden","ariaHidden","hidden","display","isExcluded","dataset","toastAnnounceExclude","altText","toastAnnounceAlt","ELEMENT_NODE","GESTURE_GRANT_THRESHOLD","dir","min","max"],"sources":["ToastImpl.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ToastImpl_exports = {};\n__export(ToastImpl_exports, {\n\tToastImpl: () => ToastImpl,\n\tToastImplFrame: () => ToastImplFrame,\n\tuseToastInteractiveContext: () => useToastInteractiveContext\n});\nmodule.exports = __toCommonJS(ToastImpl_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animate_presence = require(\"@tamagui/animate-presence\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_dismissable = require(\"@tamagui/dismissable\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_portal = require(\"@tamagui/portal\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_constants2 = require(\"./constants\");\nvar import_ToastAnnounce = require(\"./ToastAnnounce\");\nvar import_ToastProvider = require(\"./ToastProvider\");\nvar import_ToastViewport = require(\"./ToastViewport\");\nvar getPanResponder = function() {\n\treturn require(\"react-native\").PanResponder;\n};\nvar ToastImplFrame = (0, import_core.styled)(import_stacks.YStack, {\n\tname: \"ToastImpl\",\n\ttabIndex: 0,\n\tvariants: { unstyled: { false: {\n\t\tfocusStyle: {\n\t\t\toutlineStyle: \"solid\",\n\t\t\toutlineWidth: 2,\n\t\t\toutlineColor: \"$outlineColor\"\n\t\t},\n\t\tbackgroundColor: \"$color6\",\n\t\tborderRadius: \"$4\",\n\t\tpaddingHorizontal: \"$4\",\n\t\tpaddingVertical: \"$3\",\n\t\tmarginHorizontal: \"auto\",\n\t\tmarginVertical: \"$1\",\n\t\televation: \"$3\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nvar { Provider: ToastInteractiveProvider, useStyledContext: useToastInteractiveContext } = (0, import_core.createStyledContext)({ onClose() {} });\nvar ToastImpl = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {\n\tvar { scope, type = \"foreground\", duration: durationProp, open, onClose, onEscapeKeyDown, onPause, onResume, onSwipeStart, onSwipeMove, onSwipeCancel, onSwipeEnd, viewportName = \"default\", ...toastProps } = props;\n\tvar isPresent = (0, import_animate_presence.useIsPresent)();\n\tvar context = (0, import_ToastProvider.useToastProviderContext)(scope);\n\tvar [node, setNode] = React.useState(null);\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setNode);\n\tvar duration = durationProp || context.duration;\n\tvar closeTimerStartTimeRef = React.useRef(0);\n\tvar closeTimerRemainingTimeRef = React.useRef(duration);\n\tvar closeTimerRef = React.useRef(0);\n\tvar { onToastAdd, onToastRemove } = context;\n\tvar viewport = React.useMemo(function() {\n\t\treturn context.viewports[viewportName];\n\t}, [context.viewports, viewportName]);\n\tvar handleClose = (0, import_core.useEvent)(function() {\n\t\tif (!isPresent) return;\n\t\tif (import_constants.isWeb) {\n\t\t\tif (node === null || node === void 0 ? void 0 : node.contains(document.activeElement)) viewport === null || viewport === void 0 || viewport.focus();\n\t\t}\n\t\tonClose();\n\t});\n\tvar startTimer = React.useCallback(function(duration2) {\n\t\tif (!duration2 || duration2 === Number.POSITIVE_INFINITY) return;\n\t\tclearTimeout(closeTimerRef.current);\n\t\tcloseTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();\n\t\tcloseTimerRef.current = setTimeout(handleClose, duration2);\n\t}, [handleClose]);\n\tvar handleResume = React.useCallback(function() {\n\t\tstartTimer(closeTimerRemainingTimeRef.current);\n\t\tonResume === null || onResume === void 0 || onResume();\n\t}, [onResume, startTimer]);\n\tvar handlePause = React.useCallback(function() {\n\t\tvar elapsedTime = (/* @__PURE__ */ new Date()).getTime() - closeTimerStartTimeRef.current;\n\t\tcloseTimerRemainingTimeRef.current = closeTimerRemainingTimeRef.current - elapsedTime;\n\t\twindow.clearTimeout(closeTimerRef.current);\n\t\tonPause === null || onPause === void 0 || onPause();\n\t}, [onPause]);\n\tReact.useEffect(function() {\n\t\tif (!import_constants.isWeb) return;\n\t\tif (viewport) {\n\t\t\tviewport.addEventListener(import_ToastViewport.VIEWPORT_PAUSE, handlePause);\n\t\t\tviewport.addEventListener(import_ToastViewport.VIEWPORT_RESUME, handleResume);\n\t\t\treturn function() {\n\t\t\t\tviewport.removeEventListener(import_ToastViewport.VIEWPORT_PAUSE, handlePause);\n\t\t\t\tviewport.removeEventListener(import_ToastViewport.VIEWPORT_RESUME, handleResume);\n\t\t\t};\n\t\t}\n\t}, [\n\t\tviewport,\n\t\tduration,\n\t\tonPause,\n\t\tonResume,\n\t\tstartTimer\n\t]);\n\tReact.useEffect(function() {\n\t\tif (open && !context.isClosePausedRef.current) startTimer(duration);\n\t}, [\n\t\topen,\n\t\tduration,\n\t\tcontext.isClosePausedRef,\n\t\tstartTimer\n\t]);\n\tReact.useEffect(function() {\n\t\tonToastAdd();\n\t\treturn function() {\n\t\t\treturn onToastRemove();\n\t\t};\n\t}, [onToastAdd, onToastRemove]);\n\tvar announceTextContent = React.useMemo(function() {\n\t\tif (!import_constants.isWeb) return null;\n\t\treturn node ? getAnnounceTextContent(node) : null;\n\t}, [node]);\n\tvar isHorizontalSwipe = [\n\t\t\"left\",\n\t\t\"right\",\n\t\t\"horizontal\"\n\t].includes(context.swipeDirection);\n\tvar { animationDriver } = (0, import_core.useConfiguration)();\n\tif (!animationDriver) throw new Error(\"Must set animations in tamagui.config.ts\");\n\tvar { useAnimatedNumber, useAnimatedNumberStyle } = animationDriver;\n\tvar animatedNumber = useAnimatedNumber(0);\n\tvar _animationDriver_NumberView, _ref;\n\tvar AnimatedView = (_ref = (_animationDriver_NumberView = animationDriver[\"NumberView\"]) !== null && _animationDriver_NumberView !== void 0 ? _animationDriver_NumberView : animationDriver.View) !== null && _ref !== void 0 ? _ref : import_core.View;\n\tvar animatedStyles = useAnimatedNumberStyle(animatedNumber, function(val) {\n\t\t\"worklet\";\n\t\treturn { transform: [isHorizontalSwipe ? { translateX: val } : { translateY: val }] };\n\t});\n\tvar panResponder = React.useMemo(function() {\n\t\tvar PanResponder = getPanResponder();\n\t\tif (!PanResponder) return null;\n\t\treturn PanResponder.create({\n\t\t\tonMoveShouldSetPanResponder: function(e, gesture) {\n\t\t\t\tif (shouldGrantGestureMove(context.swipeDirection, gesture)) {\n\t\t\t\t\tonSwipeStart === null || onSwipeStart === void 0 || onSwipeStart(e);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\tonPanResponderGrant: function(e) {\n\t\t\t\tif (!import_constants.isWeb) handlePause === null || handlePause === void 0 || handlePause();\n\t\t\t},\n\t\t\tonPanResponderMove: function(e, gesture) {\n\t\t\t\tvar { x, y } = getGestureDistance(context.swipeDirection, gesture);\n\t\t\t\tvar delta = {\n\t\t\t\t\tx,\n\t\t\t\t\ty\n\t\t\t\t};\n\t\t\t\tanimatedNumber.setValue(isHorizontalSwipe ? x : y, { type: \"direct\" });\n\t\t\t\tif (isDeltaInDirection(delta, context.swipeDirection, context.swipeThreshold)) onSwipeEnd === null || onSwipeEnd === void 0 || onSwipeEnd(e);\n\t\t\t\tonSwipeMove === null || onSwipeMove === void 0 || onSwipeMove(e);\n\t\t\t},\n\t\t\tonPanResponderEnd: function(e, param) {\n\t\t\t\tvar { dx, dy } = param;\n\t\t\t\tif (!isDeltaInDirection({\n\t\t\t\t\tx: dx,\n\t\t\t\t\ty: dy\n\t\t\t\t}, context.swipeDirection, context.swipeThreshold)) {\n\t\t\t\t\tif (!import_constants.isWeb) handleResume === null || handleResume === void 0 || handleResume();\n\t\t\t\t\tonSwipeCancel === null || onSwipeCancel === void 0 || onSwipeCancel(e);\n\t\t\t\t\tanimatedNumber.setValue(0, { type: \"spring\" });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}, [handlePause, handleResume]);\n\tvar themeName = (0, import_core.useThemeName)();\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [announceTextContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ToastAnnounce.ToastAnnounce, {\n\t\tscope,\n\t\trole: \"status\",\n\t\t\"aria-live\": type === \"foreground\" ? \"assertive\" : \"polite\",\n\t\t\"aria-atomic\": true,\n\t\tchildren: announceTextContent\n\t}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalItem, {\n\t\thostName: viewportName !== null && viewportName !== void 0 ? viewportName : \"default\",\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToastInteractiveProvider, {\n\t\t\tscope,\n\t\t\tonClose: function() {\n\t\t\t\thandleClose();\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dismissable.Dismissable, {\n\t\t\t\tonEscapeKeyDown: (0, import_helpers.composeEventHandlers)(onEscapeKeyDown, function() {\n\t\t\t\t\tif (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();\n\t\t\t\t\tcontext.isFocusedToastEscapeKeyDownRef.current = false;\n\t\t\t\t}),\n\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, {\n\t\t\t\t\tcontain: true,\n\t\t\t\t\tforceClassName: true,\n\t\t\t\t\tname: themeName,\n\t\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnimatedView, {\n\t\t\t\t\t\t...panResponder === null || panResponder === void 0 ? void 0 : panResponder.panHandlers,\n\t\t\t\t\t\tstyle: [{ margin: \"auto\" }, animatedStyles],\n\t\t\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ToastProvider.Collection.ItemSlot, {\n\t\t\t\t\t\t\tscope: context.toastScope,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToastImplFrame, {\n\t\t\t\t\t\t\t\trole: \"status\",\n\t\t\t\t\t\t\t\t\"aria-live\": \"off\",\n\t\t\t\t\t\t\t\t\"aria-atomic\": true,\n\t\t\t\t\t\t\t\t\"data-state\": open ? \"open\" : \"closed\",\n\t\t\t\t\t\t\t\t\"data-swipe-direction\": context.swipeDirection,\n\t\t\t\t\t\t\t\tpointerEvents: \"auto\",\n\t\t\t\t\t\t\t\t\"$platform-web\": {\n\t\t\t\t\t\t\t\t\ttouchAction: \"none\",\n\t\t\t\t\t\t\t\t\tuserSelect: \"none\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t...toastProps,\n\t\t\t\t\t\t\t\tref: composedRefs,\n\t\t\t\t\t\t\t\t...import_constants.isWeb && { onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {\n\t\t\t\t\t\t\t\t\tif (event.key !== \"Escape\") return;\n\t\t\t\t\t\t\t\t\tonEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);\n\t\t\t\t\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\t\t\t\t\tcontext.isFocusedToastEscapeKeyDownRef.current = true;\n\t\t\t\t\t\t\t\t\t\thandleClose();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}) }\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t}, props.id)\n\t})] });\n});\nToastImpl.propTypes = { type(props) {\n\tif (props.type && ![\"foreground\", \"background\"].includes(props.type)) {\n\t\tvar error = `Invalid prop \\`type\\` supplied to \\`${import_constants2.TOAST_NAME}\\`. Expected \\`foreground | background\\`.`;\n\t\treturn new Error(error);\n\t}\n\treturn null;\n} };\nvar isDeltaInDirection = function(delta, direction) {\n\tvar threshold = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;\n\tvar deltaX = Math.abs(delta.x);\n\tvar deltaY = Math.abs(delta.y);\n\tvar isDeltaX = deltaX > deltaY;\n\tif (direction === \"left\" || direction === \"right\" || direction === \"horizontal\") return isDeltaX && deltaX > threshold;\n\treturn !isDeltaX && deltaY > threshold;\n};\nfunction getAnnounceTextContent(container) {\n\tif (!import_constants.isWeb) return \"\";\n\tvar textContent = [];\n\tArray.from(container.childNodes).forEach(function(node) {\n\t\tif (node.nodeType === node.TEXT_NODE && node.textContent) textContent.push(node.textContent);\n\t\tif (isHTMLElement(node)) {\n\t\t\tvar isHidden = node.ariaHidden || node.hidden || node.style.display === \"none\";\n\t\t\tvar isExcluded = node.dataset.toastAnnounceExclude === \"\";\n\t\t\tif (!isHidden) if (isExcluded) {\n\t\t\t\tvar altText = node.dataset.toastAnnounceAlt;\n\t\t\t\tif (altText) textContent.push(altText);\n\t\t\t} else textContent.push(...getAnnounceTextContent(node));\n\t\t}\n\t});\n\treturn textContent;\n}\nfunction isHTMLElement(node) {\n\treturn node.nodeType === node.ELEMENT_NODE;\n}\nvar GESTURE_GRANT_THRESHOLD = 10;\nvar shouldGrantGestureMove = function(dir, param) {\n\tvar { dx, dy } = param;\n\tif ((dir === \"horizontal\" || dir === \"left\") && dx < -GESTURE_GRANT_THRESHOLD) return true;\n\tif ((dir === \"horizontal\" || dir === \"right\") && dx > GESTURE_GRANT_THRESHOLD) return true;\n\tif ((dir === \"vertical\" || dir === \"up\") && dy > -GESTURE_GRANT_THRESHOLD) return true;\n\tif ((dir === \"vertical\" || dir === \"down\") && dy < GESTURE_GRANT_THRESHOLD) return true;\n\treturn false;\n};\nvar getGestureDistance = function(dir, param) {\n\tvar { dx, dy } = param;\n\tvar y = 0;\n\tvar x = 0;\n\tif (dir === \"horizontal\") x = dx;\n\telse if (dir === \"left\") x = Math.min(0, dx);\n\telse if (dir === \"right\") x = Math.max(0, dx);\n\telse if (dir === \"vertical\") y = dy;\n\telse if (dir === \"up\") y = Math.min(0, dy);\n\telse if (dir === \"down\") y = Math.max(0, dy);\n\treturn {\n\t\tx,\n\t\ty\n\t};\n};\n//# sourceMappingURL=ToastImpl.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAA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GAAGF,KAAK;EACtB,IAAIP,CAAC,GAAG,CAAC;EACT,IAAID,CAAC,GAAG,CAAC;EACT,IAAIyE,GAAG,KAAK,YAAY,EAAEzE,CAAC,GAAGS,EAAE,CAAC,KAC5B,IAAIgE,GAAG,KAAK,MAAM,EAAEzE,CAAC,GAAGiD,IAAI,CAACyB,GAAG,CAAC,CAAC,EAAEjE,EAAE,CAAC,CAAC,KACxC,IAAIgE,GAAG,KAAK,OAAO,EAAEzE,CAAC,GAAGiD,IAAI,CAAC0B,GAAG,CAAC,CAAC,EAAElE,EAAE,CAAC,CAAC,KACzC,IAAIgE,GAAG,KAAK,UAAU,EAAExE,CAAC,GAAGS,EAAE,CAAC,KAC/B,IAAI+D,GAAG,KAAK,IAAI,EAAExE,CAAC,GAAGgD,IAAI,CAACyB,GAAG,CAAC,CAAC,EAAEhE,EAAE,CAAC,CAAC,KACtC,IAAI+D,GAAG,KAAK,MAAM,EAAExE,CAAC,GAAGgD,IAAI,CAAC0B,GAAG,CAAC,CAAC,EAAEjE,EAAE,CAAC;EAC5C,OAAO;IACNV,CAAC;IACDC;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -1,49 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var ToastPortal_exports = {};
24
- __export(ToastPortal_exports, {
25
- ToastPortal: () => ToastPortal
26
- });
27
- module.exports = __toCommonJS(ToastPortal_exports);
28
- var import_constants = require("@tamagui/constants");
29
- var import_portal = require("@tamagui/portal");
30
- var import_ToastProvider = require("./ToastProvider.cjs");
31
- var import_jsx_runtime = require("react/jsx-runtime");
32
- function ToastPortal(props) {
33
- const {
34
- context,
35
- children,
36
- zIndex
37
- } = props;
38
- let content = children;
39
- if (!import_constants.isWeb) {
40
- content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ToastProvider.ReprogapateToastProvider, {
41
- context,
42
- children
43
- });
44
- }
45
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_portal.Portal, {
46
- zIndex: zIndex || Number.MAX_SAFE_INTEGER,
47
- children: content
48
- });
49
- }
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var ToastPortal_exports = {};
26
- __export(ToastPortal_exports, {
27
- ToastPortal: () => ToastPortal
28
- });
29
- module.exports = __toCommonJS(ToastPortal_exports);
30
- var import_jsx_runtime = require("react/jsx-runtime");
31
- var import_constants = require("@tamagui/constants");
32
- var import_portal = require("@tamagui/portal");
33
- var import_ToastProvider = require("./ToastProvider.native.js");
34
- function ToastPortal(props) {
35
- var {
36
- context,
37
- children,
38
- zIndex
39
- } = props;
40
- var content = children;
41
- if (!import_constants.isWeb) {
42
- content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ToastProvider.ReprogapateToastProvider, {
43
- context,
44
- children
45
- });
46
- }
47
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_portal.Portal, {
48
- zIndex: zIndex || Number.MAX_SAFE_INTEGER,
49
- children: content
50
- });
51
- }
52
- //# sourceMappingURL=ToastPortal.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","ToastPortal_exports","ToastPortal","module","exports","import_jsx_runtime","require","import_constants","import_portal","import_ToastProvider","props","context","children","zIndex","content","isWeb","jsx","ReprogapateToastProvider","Portal","Number","MAX_SAFE_INTEGER"],"sources":["ToastPortal.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ToastPortal_exports = {};\n__export(ToastPortal_exports, {\n ToastPortal: () => ToastPortal\n});\nmodule.exports = __toCommonJS(ToastPortal_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_portal = require(\"@tamagui/portal\");\nvar import_ToastProvider = require(\"./ToastProvider\");\nfunction ToastPortal(props) {\n var { context, children, zIndex } = props;\n var content = children;\n if (!import_constants.isWeb) {\n content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ToastProvider.ReprogapateToastProvider, {\n context,\n children\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.Portal, {\n zIndex: zIndex || Number.MAX_SAFE_INTEGER,\n children: content\n });\n}\n//# sourceMappingURL=ToastPortal.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,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