@tamagui/sheet 2.0.0-rc.4 → 2.0.0-rc.40

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 (429) hide show
  1. package/.turbo/turbo-build.log +3 -0
  2. package/controller/index.cjs +2 -0
  3. package/controller/index.js +2 -0
  4. package/controller/index.native.cjs +2 -0
  5. package/controller/index.native.js +2 -0
  6. package/dist/cjs/GestureDetectorWrapper.cjs +27 -21
  7. package/dist/cjs/GestureDetectorWrapper.native.js +33 -28
  8. package/dist/cjs/GestureDetectorWrapper.native.js.map +1 -1
  9. package/dist/cjs/GestureSheetContext.cjs +14 -12
  10. package/dist/cjs/GestureSheetContext.native.js +29 -27
  11. package/dist/cjs/GestureSheetContext.native.js.map +1 -1
  12. package/dist/cjs/Sheet.cjs +88 -86
  13. package/dist/cjs/Sheet.native.js +88 -86
  14. package/dist/cjs/Sheet.native.js.map +1 -1
  15. package/dist/cjs/SheetContext.cjs +16 -14
  16. package/dist/cjs/SheetContext.native.js +16 -14
  17. package/dist/cjs/SheetContext.native.js.map +1 -1
  18. package/dist/cjs/SheetController.cjs +40 -32
  19. package/dist/cjs/SheetController.native.js +62 -54
  20. package/dist/cjs/SheetController.native.js.map +1 -1
  21. package/dist/cjs/SheetImplementationCustom.cjs +545 -429
  22. package/dist/cjs/SheetImplementationCustom.native.js +569 -474
  23. package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
  24. package/dist/cjs/SheetScrollView.cjs +168 -132
  25. package/dist/cjs/SheetScrollView.native.js +189 -163
  26. package/dist/cjs/SheetScrollView.native.js.map +1 -1
  27. package/dist/cjs/constants.cjs +16 -14
  28. package/dist/cjs/constants.native.js +16 -14
  29. package/dist/cjs/constants.native.js.map +1 -1
  30. package/dist/cjs/contexts.cjs +27 -25
  31. package/dist/cjs/contexts.native.js +29 -27
  32. package/dist/cjs/contexts.native.js.map +1 -1
  33. package/dist/cjs/controller.cjs +14 -12
  34. package/dist/cjs/controller.native.js +14 -12
  35. package/dist/cjs/controller.native.js.map +1 -1
  36. package/dist/cjs/createSheet.cjs +159 -160
  37. package/dist/cjs/createSheet.native.js +172 -180
  38. package/dist/cjs/createSheet.native.js.map +1 -1
  39. package/dist/cjs/gestureState.cjs +12 -10
  40. package/dist/cjs/gestureState.native.js +12 -10
  41. package/dist/cjs/gestureState.native.js.map +1 -1
  42. package/dist/cjs/helpers.cjs +17 -13
  43. package/dist/cjs/helpers.native.js +17 -13
  44. package/dist/cjs/helpers.native.js.map +1 -1
  45. package/dist/cjs/index.cjs +7 -5
  46. package/dist/cjs/index.native.js +7 -5
  47. package/dist/cjs/index.native.js.map +1 -1
  48. package/dist/cjs/nativeSheet.cjs +64 -55
  49. package/dist/cjs/nativeSheet.native.js +73 -68
  50. package/dist/cjs/nativeSheet.native.js.map +1 -1
  51. package/dist/cjs/setupGestureHandler.cjs +24 -18
  52. package/dist/cjs/setupGestureHandler.native.js +24 -19
  53. package/dist/cjs/setupGestureHandler.native.js.map +1 -1
  54. package/dist/cjs/types.cjs +7 -5
  55. package/dist/cjs/types.native.js +7 -5
  56. package/dist/cjs/types.native.js.map +1 -1
  57. package/dist/cjs/useGestureHandlerPan.cjs +181 -111
  58. package/dist/cjs/useGestureHandlerPan.native.js +183 -115
  59. package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
  60. package/dist/cjs/useKeyboardControllerSheet.cjs +15 -13
  61. package/dist/cjs/useKeyboardControllerSheet.native.js +100 -82
  62. package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -1
  63. package/dist/cjs/useSheet.cjs +12 -10
  64. package/dist/cjs/useSheet.native.js +16 -14
  65. package/dist/cjs/useSheet.native.js.map +1 -1
  66. package/dist/cjs/useSheetController.cjs +35 -33
  67. package/dist/cjs/useSheetController.native.js +37 -35
  68. package/dist/cjs/useSheetController.native.js.map +1 -1
  69. package/dist/cjs/useSheetOffscreenSize.cjs +35 -23
  70. package/dist/cjs/useSheetOffscreenSize.native.js +36 -27
  71. package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -1
  72. package/dist/cjs/useSheetOpenState.cjs +28 -25
  73. package/dist/cjs/useSheetOpenState.native.js +39 -37
  74. package/dist/cjs/useSheetOpenState.native.js.map +1 -1
  75. package/dist/cjs/useSheetProviderProps.cjs +129 -81
  76. package/dist/cjs/useSheetProviderProps.native.js +165 -122
  77. package/dist/cjs/useSheetProviderProps.native.js.map +1 -1
  78. package/dist/cjs/useSheetScrollViewGestures.cjs +124 -81
  79. package/dist/cjs/useSheetScrollViewGestures.native.js +128 -79
  80. package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -1
  81. package/dist/esm/GestureDetectorWrapper.mjs +12 -8
  82. package/dist/esm/GestureDetectorWrapper.mjs.map +1 -1
  83. package/dist/esm/GestureDetectorWrapper.native.js +18 -15
  84. package/dist/esm/GestureDetectorWrapper.native.js.map +1 -1
  85. package/dist/esm/GestureSheetContext.native.js +14 -14
  86. package/dist/esm/GestureSheetContext.native.js.map +1 -1
  87. package/dist/esm/Sheet.mjs +70 -70
  88. package/dist/esm/Sheet.mjs.map +1 -1
  89. package/dist/esm/Sheet.native.js +70 -70
  90. package/dist/esm/Sheet.native.js.map +1 -1
  91. package/dist/esm/SheetContext.mjs +2 -2
  92. package/dist/esm/SheetContext.mjs.map +1 -1
  93. package/dist/esm/SheetContext.native.js +2 -2
  94. package/dist/esm/SheetContext.native.js.map +1 -1
  95. package/dist/esm/SheetController.mjs +12 -6
  96. package/dist/esm/SheetController.mjs.map +1 -1
  97. package/dist/esm/SheetController.native.js +18 -12
  98. package/dist/esm/SheetController.native.js.map +1 -1
  99. package/dist/esm/SheetImplementationCustom.mjs +503 -389
  100. package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
  101. package/dist/esm/SheetImplementationCustom.native.js +523 -434
  102. package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
  103. package/dist/esm/SheetScrollView.mjs +133 -99
  104. package/dist/esm/SheetScrollView.mjs.map +1 -1
  105. package/dist/esm/SheetScrollView.native.js +155 -131
  106. package/dist/esm/SheetScrollView.native.js.map +1 -1
  107. package/dist/esm/constants.mjs +4 -4
  108. package/dist/esm/constants.mjs.map +1 -1
  109. package/dist/esm/constants.native.js +4 -4
  110. package/dist/esm/constants.native.js.map +1 -1
  111. package/dist/esm/contexts.mjs +3 -3
  112. package/dist/esm/contexts.mjs.map +1 -1
  113. package/dist/esm/contexts.native.js +3 -3
  114. package/dist/esm/contexts.native.js.map +1 -1
  115. package/dist/esm/createSheet.mjs +130 -133
  116. package/dist/esm/createSheet.mjs.map +1 -1
  117. package/dist/esm/createSheet.native.js +142 -152
  118. package/dist/esm/createSheet.native.js.map +1 -1
  119. package/dist/esm/helpers.mjs +5 -3
  120. package/dist/esm/helpers.mjs.map +1 -1
  121. package/dist/esm/helpers.native.js +5 -3
  122. package/dist/esm/helpers.native.js.map +1 -1
  123. package/dist/esm/index.js +11 -11
  124. package/dist/esm/index.js.map +1 -6
  125. package/dist/esm/nativeSheet.mjs +45 -38
  126. package/dist/esm/nativeSheet.mjs.map +1 -1
  127. package/dist/esm/nativeSheet.native.js +51 -48
  128. package/dist/esm/nativeSheet.native.js.map +1 -1
  129. package/dist/esm/setupGestureHandler.mjs +12 -8
  130. package/dist/esm/setupGestureHandler.mjs.map +1 -1
  131. package/dist/esm/setupGestureHandler.native.js +12 -9
  132. package/dist/esm/setupGestureHandler.native.js.map +1 -1
  133. package/dist/esm/useGestureHandlerPan.mjs +167 -99
  134. package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
  135. package/dist/esm/useGestureHandlerPan.native.js +168 -102
  136. package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
  137. package/dist/esm/useKeyboardControllerSheet.mjs +3 -3
  138. package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -1
  139. package/dist/esm/useKeyboardControllerSheet.native.js +85 -69
  140. package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -1
  141. package/dist/esm/useSheetController.mjs +11 -11
  142. package/dist/esm/useSheetController.mjs.map +1 -1
  143. package/dist/esm/useSheetController.native.js +11 -11
  144. package/dist/esm/useSheetController.native.js.map +1 -1
  145. package/dist/esm/useSheetOffscreenSize.mjs +23 -13
  146. package/dist/esm/useSheetOffscreenSize.mjs.map +1 -1
  147. package/dist/esm/useSheetOffscreenSize.native.js +24 -17
  148. package/dist/esm/useSheetOffscreenSize.native.js.map +1 -1
  149. package/dist/esm/useSheetOpenState.mjs +14 -13
  150. package/dist/esm/useSheetOpenState.mjs.map +1 -1
  151. package/dist/esm/useSheetOpenState.native.js +17 -17
  152. package/dist/esm/useSheetOpenState.native.js.map +1 -1
  153. package/dist/esm/useSheetProviderProps.mjs +101 -55
  154. package/dist/esm/useSheetProviderProps.mjs.map +1 -1
  155. package/dist/esm/useSheetProviderProps.native.js +137 -96
  156. package/dist/esm/useSheetProviderProps.native.js.map +1 -1
  157. package/dist/esm/useSheetScrollViewGestures.mjs +112 -71
  158. package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -1
  159. package/dist/esm/useSheetScrollViewGestures.native.js +116 -69
  160. package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -1
  161. package/dist/jsx/GestureDetectorWrapper.mjs +12 -8
  162. package/dist/jsx/GestureDetectorWrapper.mjs.map +1 -1
  163. package/dist/jsx/GestureDetectorWrapper.native.js +33 -28
  164. package/dist/jsx/GestureDetectorWrapper.native.js.map +1 -1
  165. package/dist/jsx/GestureSheetContext.native.js +29 -27
  166. package/dist/jsx/GestureSheetContext.native.js.map +1 -1
  167. package/dist/jsx/Sheet.mjs +70 -70
  168. package/dist/jsx/Sheet.mjs.map +1 -1
  169. package/dist/jsx/Sheet.native.js +88 -86
  170. package/dist/jsx/Sheet.native.js.map +1 -1
  171. package/dist/jsx/SheetContext.mjs +2 -2
  172. package/dist/jsx/SheetContext.mjs.map +1 -1
  173. package/dist/jsx/SheetContext.native.js +16 -14
  174. package/dist/jsx/SheetContext.native.js.map +1 -1
  175. package/dist/jsx/SheetController.mjs +12 -6
  176. package/dist/jsx/SheetController.mjs.map +1 -1
  177. package/dist/jsx/SheetController.native.js +62 -54
  178. package/dist/jsx/SheetController.native.js.map +1 -1
  179. package/dist/jsx/SheetImplementationCustom.mjs +503 -389
  180. package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
  181. package/dist/jsx/SheetImplementationCustom.native.js +569 -474
  182. package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
  183. package/dist/jsx/SheetScrollView.mjs +133 -99
  184. package/dist/jsx/SheetScrollView.mjs.map +1 -1
  185. package/dist/jsx/SheetScrollView.native.js +189 -163
  186. package/dist/jsx/SheetScrollView.native.js.map +1 -1
  187. package/dist/jsx/constants.mjs +4 -4
  188. package/dist/jsx/constants.mjs.map +1 -1
  189. package/dist/jsx/constants.native.js +16 -14
  190. package/dist/jsx/constants.native.js.map +1 -1
  191. package/dist/jsx/contexts.mjs +3 -3
  192. package/dist/jsx/contexts.mjs.map +1 -1
  193. package/dist/jsx/contexts.native.js +29 -27
  194. package/dist/jsx/contexts.native.js.map +1 -1
  195. package/dist/jsx/controller.native.js +14 -12
  196. package/dist/jsx/createSheet.mjs +130 -133
  197. package/dist/jsx/createSheet.mjs.map +1 -1
  198. package/dist/jsx/createSheet.native.js +172 -180
  199. package/dist/jsx/createSheet.native.js.map +1 -1
  200. package/dist/jsx/gestureState.native.js +12 -10
  201. package/dist/jsx/gestureState.native.js.map +1 -1
  202. package/dist/jsx/helpers.mjs +5 -3
  203. package/dist/jsx/helpers.mjs.map +1 -1
  204. package/dist/jsx/helpers.native.js +17 -13
  205. package/dist/jsx/helpers.native.js.map +1 -1
  206. package/dist/jsx/index.js +11 -11
  207. package/dist/jsx/index.js.map +1 -6
  208. package/dist/jsx/index.native.js +7 -5
  209. package/dist/jsx/index.native.js.map +1 -1
  210. package/dist/jsx/nativeSheet.mjs +45 -38
  211. package/dist/jsx/nativeSheet.mjs.map +1 -1
  212. package/dist/jsx/nativeSheet.native.js +73 -68
  213. package/dist/jsx/nativeSheet.native.js.map +1 -1
  214. package/dist/jsx/setupGestureHandler.mjs +12 -8
  215. package/dist/jsx/setupGestureHandler.mjs.map +1 -1
  216. package/dist/jsx/setupGestureHandler.native.js +24 -19
  217. package/dist/jsx/setupGestureHandler.native.js.map +1 -1
  218. package/dist/jsx/types.native.js +7 -5
  219. package/dist/jsx/useGestureHandlerPan.mjs +167 -99
  220. package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
  221. package/dist/jsx/useGestureHandlerPan.native.js +183 -115
  222. package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
  223. package/dist/jsx/useKeyboardControllerSheet.mjs +3 -3
  224. package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -1
  225. package/dist/jsx/useKeyboardControllerSheet.native.js +100 -82
  226. package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -1
  227. package/dist/jsx/useSheet.native.js +16 -14
  228. package/dist/jsx/useSheetController.mjs +11 -11
  229. package/dist/jsx/useSheetController.mjs.map +1 -1
  230. package/dist/jsx/useSheetController.native.js +37 -35
  231. package/dist/jsx/useSheetController.native.js.map +1 -1
  232. package/dist/jsx/useSheetOffscreenSize.mjs +23 -13
  233. package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -1
  234. package/dist/jsx/useSheetOffscreenSize.native.js +36 -27
  235. package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -1
  236. package/dist/jsx/useSheetOpenState.mjs +14 -13
  237. package/dist/jsx/useSheetOpenState.mjs.map +1 -1
  238. package/dist/jsx/useSheetOpenState.native.js +39 -37
  239. package/dist/jsx/useSheetOpenState.native.js.map +1 -1
  240. package/dist/jsx/useSheetProviderProps.mjs +101 -55
  241. package/dist/jsx/useSheetProviderProps.mjs.map +1 -1
  242. package/dist/jsx/useSheetProviderProps.native.js +165 -122
  243. package/dist/jsx/useSheetProviderProps.native.js.map +1 -1
  244. package/dist/jsx/useSheetScrollViewGestures.mjs +112 -71
  245. package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -1
  246. package/dist/jsx/useSheetScrollViewGestures.native.js +128 -79
  247. package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -1
  248. package/next.md +78 -0
  249. package/package.json +31 -46
  250. package/setup-gesture-handler/index.cjs +2 -0
  251. package/setup-gesture-handler/index.js +2 -0
  252. package/setup-gesture-handler/index.native.cjs +2 -0
  253. package/setup-gesture-handler/index.native.js +2 -0
  254. package/setup-gesture-handler.cjs +1 -0
  255. package/src/SheetController.tsx +4 -1
  256. package/src/SheetImplementationCustom.tsx +87 -45
  257. package/src/types.tsx +5 -0
  258. package/src/useGestureHandlerPan.tsx +5 -3
  259. package/src/useSheetController.tsx +4 -0
  260. package/tsconfig.json +56 -0
  261. package/types/Sheet.d.ts +3 -0
  262. package/types/Sheet.d.ts.map +1 -1
  263. package/types/SheetController.d.ts +1 -1
  264. package/types/SheetController.d.ts.map +1 -1
  265. package/types/SheetImplementationCustom.d.ts +3 -0
  266. package/types/SheetImplementationCustom.d.ts.map +1 -1
  267. package/types/createSheet.d.ts +3 -0
  268. package/types/createSheet.d.ts.map +1 -1
  269. package/types/types.d.ts +6 -0
  270. package/types/types.d.ts.map +1 -1
  271. package/types/useGestureHandlerPan.d.ts.map +1 -1
  272. package/types/useSheetController.d.ts +3 -0
  273. package/types/useSheetController.d.ts.map +1 -1
  274. package/dist/cjs/GestureDetectorWrapper.js +0 -29
  275. package/dist/cjs/GestureDetectorWrapper.js.map +0 -6
  276. package/dist/cjs/GestureSheetContext.js +0 -43
  277. package/dist/cjs/GestureSheetContext.js.map +0 -6
  278. package/dist/cjs/Sheet.js +0 -104
  279. package/dist/cjs/Sheet.js.map +0 -6
  280. package/dist/cjs/SheetContext.js +0 -28
  281. package/dist/cjs/SheetContext.js.map +0 -6
  282. package/dist/cjs/SheetController.js +0 -52
  283. package/dist/cjs/SheetController.js.map +0 -6
  284. package/dist/cjs/SheetImplementationCustom.js +0 -393
  285. package/dist/cjs/SheetImplementationCustom.js.map +0 -6
  286. package/dist/cjs/SheetScrollView.js +0 -137
  287. package/dist/cjs/SheetScrollView.js.map +0 -6
  288. package/dist/cjs/constants.js +0 -24
  289. package/dist/cjs/constants.js.map +0 -6
  290. package/dist/cjs/contexts.js +0 -33
  291. package/dist/cjs/contexts.js.map +0 -6
  292. package/dist/cjs/controller.js +0 -23
  293. package/dist/cjs/controller.js.map +0 -6
  294. package/dist/cjs/createSheet.js +0 -152
  295. package/dist/cjs/createSheet.js.map +0 -6
  296. package/dist/cjs/gestureState.js +0 -34
  297. package/dist/cjs/gestureState.js.map +0 -6
  298. package/dist/cjs/helpers.js +0 -26
  299. package/dist/cjs/helpers.js.map +0 -6
  300. package/dist/cjs/index.js +0 -25
  301. package/dist/cjs/index.js.map +0 -6
  302. package/dist/cjs/nativeSheet.js +0 -56
  303. package/dist/cjs/nativeSheet.js.map +0 -6
  304. package/dist/cjs/setupGestureHandler.js +0 -38
  305. package/dist/cjs/setupGestureHandler.js.map +0 -6
  306. package/dist/cjs/types.js +0 -14
  307. package/dist/cjs/types.js.map +0 -6
  308. package/dist/cjs/useGestureHandlerPan.js +0 -126
  309. package/dist/cjs/useGestureHandlerPan.js.map +0 -6
  310. package/dist/cjs/useKeyboardControllerSheet.js +0 -34
  311. package/dist/cjs/useKeyboardControllerSheet.js.map +0 -6
  312. package/dist/cjs/useSheet.js +0 -22
  313. package/dist/cjs/useSheet.js.map +0 -6
  314. package/dist/cjs/useSheetController.js +0 -39
  315. package/dist/cjs/useSheetController.js.map +0 -6
  316. package/dist/cjs/useSheetOffscreenSize.js +0 -43
  317. package/dist/cjs/useSheetOffscreenSize.js.map +0 -6
  318. package/dist/cjs/useSheetOpenState.js +0 -37
  319. package/dist/cjs/useSheetOpenState.js.map +0 -6
  320. package/dist/cjs/useSheetProviderProps.js +0 -130
  321. package/dist/cjs/useSheetProviderProps.js.map +0 -6
  322. package/dist/cjs/useSheetScrollViewGestures.js +0 -102
  323. package/dist/cjs/useSheetScrollViewGestures.js.map +0 -6
  324. package/dist/esm/GestureDetectorWrapper.js +0 -15
  325. package/dist/esm/GestureDetectorWrapper.js.map +0 -6
  326. package/dist/esm/GestureSheetContext.js +0 -28
  327. package/dist/esm/GestureSheetContext.js.map +0 -6
  328. package/dist/esm/Sheet.js +0 -92
  329. package/dist/esm/Sheet.js.map +0 -6
  330. package/dist/esm/SheetContext.js +0 -13
  331. package/dist/esm/SheetContext.js.map +0 -6
  332. package/dist/esm/SheetController.js +0 -31
  333. package/dist/esm/SheetController.js.map +0 -6
  334. package/dist/esm/SheetImplementationCustom.js +0 -395
  335. package/dist/esm/SheetImplementationCustom.js.map +0 -6
  336. package/dist/esm/SheetScrollView.js +0 -122
  337. package/dist/esm/SheetScrollView.js.map +0 -6
  338. package/dist/esm/constants.js +0 -8
  339. package/dist/esm/constants.js.map +0 -6
  340. package/dist/esm/contexts.js +0 -9
  341. package/dist/esm/contexts.js.map +0 -6
  342. package/dist/esm/controller.js +0 -11
  343. package/dist/esm/controller.js.map +0 -6
  344. package/dist/esm/createSheet.js +0 -153
  345. package/dist/esm/createSheet.js.map +0 -6
  346. package/dist/esm/gestureState.js +0 -18
  347. package/dist/esm/gestureState.js.map +0 -6
  348. package/dist/esm/helpers.js +0 -10
  349. package/dist/esm/helpers.js.map +0 -6
  350. package/dist/esm/nativeSheet.js +0 -46
  351. package/dist/esm/nativeSheet.js.map +0 -6
  352. package/dist/esm/setupGestureHandler.js +0 -22
  353. package/dist/esm/setupGestureHandler.js.map +0 -6
  354. package/dist/esm/types.js +0 -1
  355. package/dist/esm/types.js.map +0 -6
  356. package/dist/esm/useGestureHandlerPan.js +0 -111
  357. package/dist/esm/useGestureHandlerPan.js.map +0 -6
  358. package/dist/esm/useKeyboardControllerSheet.js +0 -18
  359. package/dist/esm/useKeyboardControllerSheet.js.map +0 -6
  360. package/dist/esm/useSheet.js +0 -6
  361. package/dist/esm/useSheet.js.map +0 -6
  362. package/dist/esm/useSheetController.js +0 -15
  363. package/dist/esm/useSheetController.js.map +0 -6
  364. package/dist/esm/useSheetOffscreenSize.js +0 -27
  365. package/dist/esm/useSheetOffscreenSize.js.map +0 -6
  366. package/dist/esm/useSheetOpenState.js +0 -22
  367. package/dist/esm/useSheetOpenState.js.map +0 -6
  368. package/dist/esm/useSheetProviderProps.js +0 -109
  369. package/dist/esm/useSheetProviderProps.js.map +0 -6
  370. package/dist/esm/useSheetScrollViewGestures.js +0 -86
  371. package/dist/esm/useSheetScrollViewGestures.js.map +0 -6
  372. package/dist/jsx/GestureDetectorWrapper.js +0 -15
  373. package/dist/jsx/GestureDetectorWrapper.js.map +0 -6
  374. package/dist/jsx/GestureSheetContext.js +0 -28
  375. package/dist/jsx/GestureSheetContext.js.map +0 -6
  376. package/dist/jsx/Sheet.js +0 -92
  377. package/dist/jsx/Sheet.js.map +0 -6
  378. package/dist/jsx/SheetContext.js +0 -13
  379. package/dist/jsx/SheetContext.js.map +0 -6
  380. package/dist/jsx/SheetController.js +0 -31
  381. package/dist/jsx/SheetController.js.map +0 -6
  382. package/dist/jsx/SheetImplementationCustom.js +0 -395
  383. package/dist/jsx/SheetImplementationCustom.js.map +0 -6
  384. package/dist/jsx/SheetScrollView.js +0 -122
  385. package/dist/jsx/SheetScrollView.js.map +0 -6
  386. package/dist/jsx/constants.js +0 -8
  387. package/dist/jsx/constants.js.map +0 -6
  388. package/dist/jsx/contexts.js +0 -9
  389. package/dist/jsx/contexts.js.map +0 -6
  390. package/dist/jsx/controller.js +0 -11
  391. package/dist/jsx/controller.js.map +0 -6
  392. package/dist/jsx/createSheet.js +0 -153
  393. package/dist/jsx/createSheet.js.map +0 -6
  394. package/dist/jsx/gestureState.js +0 -18
  395. package/dist/jsx/gestureState.js.map +0 -6
  396. package/dist/jsx/helpers.js +0 -10
  397. package/dist/jsx/helpers.js.map +0 -6
  398. package/dist/jsx/nativeSheet.js +0 -46
  399. package/dist/jsx/nativeSheet.js.map +0 -6
  400. package/dist/jsx/setupGestureHandler.js +0 -22
  401. package/dist/jsx/setupGestureHandler.js.map +0 -6
  402. package/dist/jsx/types.js +0 -1
  403. package/dist/jsx/types.js.map +0 -6
  404. package/dist/jsx/useGestureHandlerPan.js +0 -111
  405. package/dist/jsx/useGestureHandlerPan.js.map +0 -6
  406. package/dist/jsx/useKeyboardControllerSheet.js +0 -18
  407. package/dist/jsx/useKeyboardControllerSheet.js.map +0 -6
  408. package/dist/jsx/useSheet.js +0 -6
  409. package/dist/jsx/useSheet.js.map +0 -6
  410. package/dist/jsx/useSheetController.js +0 -15
  411. package/dist/jsx/useSheetController.js.map +0 -6
  412. package/dist/jsx/useSheetOffscreenSize.js +0 -27
  413. package/dist/jsx/useSheetOffscreenSize.js.map +0 -6
  414. package/dist/jsx/useSheetOpenState.js +0 -22
  415. package/dist/jsx/useSheetOpenState.js.map +0 -6
  416. package/dist/jsx/useSheetProviderProps.js +0 -109
  417. package/dist/jsx/useSheetProviderProps.js.map +0 -6
  418. package/dist/jsx/useSheetScrollViewGestures.js +0 -86
  419. package/dist/jsx/useSheetScrollViewGestures.js.map +0 -6
  420. package/types/GestureDetectorWrapper.native.d.ts +0 -14
  421. package/types/GestureDetectorWrapper.native.d.ts.map +0 -1
  422. package/types/gestureState.native.d.ts +0 -12
  423. package/types/gestureState.native.d.ts.map +0 -1
  424. package/types/setupGestureHandler.native.d.ts +0 -41
  425. package/types/setupGestureHandler.native.d.ts.map +0 -1
  426. package/types/useGestureHandlerPan.native.d.ts +0 -33
  427. package/types/useGestureHandlerPan.native.d.ts.map +0 -1
  428. package/types/useSheetScrollViewGestures.web.d.ts +0 -15
  429. package/types/useSheetScrollViewGestures.web.d.ts.map +0 -1
@@ -4,194 +4,220 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
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);
34
36
  var SheetScrollView_exports = {};
35
37
  __export(SheetScrollView_exports, {
36
38
  SheetScrollView: () => SheetScrollView
37
39
  });
38
40
  module.exports = __toCommonJS(SheetScrollView_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_compose_refs = require("@tamagui/compose-refs"),
41
- import_core = require("@tamagui/core"),
42
- import_scroll_view = require("@tamagui/scroll-view"),
43
- import_use_controllable_state = require("@tamagui/use-controllable-state"),
44
- import_react = __toESM(require("react"), 1),
45
- import_GestureSheetContext = require("./GestureSheetContext.native.js"),
46
- import_gestureState = require("./gestureState.native.js"),
47
- import_SheetContext = require("./SheetContext.native.js"),
48
- import_useSheetScrollViewGestures = require("./useSheetScrollViewGestures.native.js"),
49
- SHEET_SCROLL_VIEW_NAME = "SheetScrollView",
50
- SheetScrollView = /* @__PURE__ */import_react.default.forwardRef(function (param, ref) {
51
- var {
52
- __scopeSheet,
53
- children,
54
- onScroll,
55
- scrollEnabled: scrollEnabledProp,
56
- ...props
57
- } = param,
58
- context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet),
59
- gestureContext = (0, import_GestureSheetContext.useGestureSheetContext)(),
60
- {
61
- scrollBridge,
62
- setHasScrollView
63
- } = context,
64
- [scrollEnabled] = (0, import_use_controllable_state.useControllableState)({
65
- prop: scrollEnabledProp,
66
- defaultProp: !0
67
- }),
68
- scrollRef = import_react.default.useRef(null),
69
- panGestureRef = gestureContext?.panGestureRef,
70
- {
71
- ScrollView: RNGHScrollView
72
- } = (0, import_gestureState.getGestureHandlerState)(),
73
- useRNGHScrollView = (0, import_gestureState.isGestureHandlerEnabled)() && RNGHScrollView && panGestureRef,
74
- currentScrollOffset = (0, import_react.useRef)(0),
75
- lockedScrollY = (0, import_react.useRef)(0),
76
- setScrollEnabled = function (next, lockTo) {
77
- if (next) lockedScrollY.current = currentScrollOffset.current, scrollBridge.scrollLockY = void 0;else {
78
- var _scrollRef_current_scrollTo,
79
- _scrollRef_current,
80
- lockY = lockTo ?? currentScrollOffset.current;
81
- lockedScrollY.current = lockY, scrollBridge.scrollLockY = lockY, (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
82
- x: 0,
83
- y: lockY,
84
- animated: !1
85
- });
86
- }
87
- },
88
- forceScrollTo = function (y) {
89
- var _scrollRef_current_scrollTo, _scrollRef_current;
90
- (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
91
- x: 0,
92
- y,
93
- animated: !1
94
- });
95
- };
96
- (0, import_react.useEffect)(function () {
97
- return setHasScrollView(!0), (0, import_gestureState.isGestureHandlerEnabled)() && (scrollBridge.setScrollEnabled = setScrollEnabled, scrollBridge.forceScrollTo = forceScrollTo), function () {
98
- setHasScrollView(!1), scrollBridge.setScrollEnabled = void 0, scrollBridge.forceScrollTo = void 0;
99
- };
100
- }, []);
101
- var [hasScrollableContent, setHasScrollableContent] = (0, import_react.useState)(!0),
102
- parentHeight = (0, import_react.useRef)(0),
103
- contentHeight = (0, import_react.useRef)(0),
104
- updateScrollable = function () {
105
- parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
106
- };
107
- (0, import_react.useEffect)(function () {
108
- scrollBridge.hasScrollableContent = hasScrollableContent;
109
- }, [hasScrollableContent]);
110
- var gestureProps = (0, import_useSheetScrollViewGestures.useSheetScrollViewGestures)({
111
- scrollRef,
112
- scrollBridge,
113
- hasScrollableContent,
114
- scrollEnabled,
115
- setScrollEnabled
116
- }),
117
- contentWrapper = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.View, {
118
- onLayout: function (e) {
119
- var height = Math.floor(e.nativeEvent.layout.height);
120
- height !== contentHeight.current && (contentHeight.current = height, updateScrollable());
121
- },
122
- children
123
- });
124
- if (useRNGHScrollView && RNGHScrollView && panGestureRef) {
125
- var RNGHComponent = RNGHScrollView;
126
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RNGHComponent, {
127
- ref: (0, import_compose_refs.composeRefs)(scrollRef, ref),
128
- style: {
129
- flex: 1
130
- },
131
- scrollEventThrottle: 1,
132
- scrollEnabled,
133
- simultaneousHandlers: [panGestureRef],
134
- onLayout: function (e) {
135
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
136
- },
137
- onScroll: function (e) {
138
- var {
139
- y
140
- } = e.nativeEvent.contentOffset;
141
- if (currentScrollOffset.current = y, scrollBridge.scrollLockY !== void 0) {
142
- if (y !== scrollBridge.scrollLockY) {
143
- var _scrollRef_current_scrollTo, _scrollRef_current;
144
- (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
145
- x: 0,
146
- y: scrollBridge.scrollLockY,
147
- animated: !1
148
- });
149
- }
150
- scrollBridge.y = scrollBridge.scrollLockY, onScroll?.({
151
- ...e,
152
- nativeEvent: {
153
- ...e.nativeEvent,
154
- contentOffset: {
155
- ...e.nativeEvent.contentOffset,
156
- y: scrollBridge.scrollLockY
157
- }
158
- }
159
- });
160
- return;
161
- }
162
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
163
- },
164
- contentContainerStyle: {
165
- minHeight: "100%"
166
- },
167
- bounces: !1,
168
- keyboardShouldPersistTaps: "always",
169
- keyboardDismissMode: "none",
170
- ...props,
171
- children: contentWrapper
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_compose_refs = require("@tamagui/compose-refs");
43
+ var import_core = require("@tamagui/core");
44
+ var import_scroll_view = require("@tamagui/scroll-view");
45
+ var import_use_controllable_state = require("@tamagui/use-controllable-state");
46
+ var import_react = __toESM(require("react"), 1);
47
+ var import_GestureSheetContext = require("./GestureSheetContext.native.js");
48
+ var import_gestureState = require("./gestureState.native.js");
49
+ var import_SheetContext = require("./SheetContext.native.js");
50
+ var import_useSheetScrollViewGestures = require("./useSheetScrollViewGestures.native.js");
51
+ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView";
52
+ var SheetScrollView = /* @__PURE__ */import_react.default.forwardRef(function (param, ref) {
53
+ var {
54
+ __scopeSheet,
55
+ children,
56
+ onScroll,
57
+ scrollEnabled: scrollEnabledProp,
58
+ ...props
59
+ } = param;
60
+ var context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet);
61
+ var gestureContext = (0, import_GestureSheetContext.useGestureSheetContext)();
62
+ var {
63
+ scrollBridge,
64
+ setHasScrollView
65
+ } = context;
66
+ var [scrollEnabled] = (0, import_use_controllable_state.useControllableState)({
67
+ prop: scrollEnabledProp,
68
+ defaultProp: true
69
+ });
70
+ var scrollRef = import_react.default.useRef(null);
71
+ var panGestureRef = gestureContext === null || gestureContext === void 0 ? void 0 : gestureContext.panGestureRef;
72
+ var {
73
+ ScrollView: RNGHScrollView
74
+ } = (0, import_gestureState.getGestureHandlerState)();
75
+ var useRNGHScrollView = (0, import_gestureState.isGestureHandlerEnabled)() && RNGHScrollView && panGestureRef;
76
+ var currentScrollOffset = (0, import_react.useRef)(0);
77
+ var lockedScrollY = (0, import_react.useRef)(0);
78
+ var setScrollEnabled = function (next, lockTo) {
79
+ if (!next) {
80
+ var _scrollRef_current_scrollTo, _scrollRef_current;
81
+ var lockY = lockTo !== null && lockTo !== void 0 ? lockTo : currentScrollOffset.current;
82
+ lockedScrollY.current = lockY;
83
+ scrollBridge.scrollLockY = lockY;
84
+ (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 ? void 0 : _scrollRef_current_scrollTo.call(_scrollRef_current, {
85
+ x: 0,
86
+ y: lockY,
87
+ animated: false
172
88
  });
89
+ } else {
90
+ lockedScrollY.current = currentScrollOffset.current;
91
+ scrollBridge.scrollLockY = void 0;
173
92
  }
174
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_scroll_view.ScrollView, {
175
- onLayout: function (e) {
176
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
177
- },
93
+ };
94
+ var forceScrollTo = function (y) {
95
+ var _scrollRef_current_scrollTo, _scrollRef_current;
96
+ (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 ? void 0 : _scrollRef_current_scrollTo.call(_scrollRef_current, {
97
+ x: 0,
98
+ y,
99
+ animated: false
100
+ });
101
+ };
102
+ (0, import_react.useEffect)(function () {
103
+ setHasScrollView(true);
104
+ if ((0, import_gestureState.isGestureHandlerEnabled)()) {
105
+ scrollBridge.setScrollEnabled = setScrollEnabled;
106
+ scrollBridge.forceScrollTo = forceScrollTo;
107
+ }
108
+ return function () {
109
+ setHasScrollView(false);
110
+ scrollBridge.setScrollEnabled = void 0;
111
+ scrollBridge.forceScrollTo = void 0;
112
+ };
113
+ }, []);
114
+ var [hasScrollableContent, setHasScrollableContent] = (0, import_react.useState)(true);
115
+ var parentHeight = (0, import_react.useRef)(0);
116
+ var contentHeight = (0, import_react.useRef)(0);
117
+ var updateScrollable = function () {
118
+ if (parentHeight.current && contentHeight.current) {
119
+ setHasScrollableContent(contentHeight.current > parentHeight.current);
120
+ }
121
+ };
122
+ (0, import_react.useEffect)(function () {
123
+ scrollBridge.hasScrollableContent = hasScrollableContent;
124
+ }, [hasScrollableContent]);
125
+ var gestureProps = (0, import_useSheetScrollViewGestures.useSheetScrollViewGestures)({
126
+ scrollRef,
127
+ scrollBridge,
128
+ hasScrollableContent,
129
+ scrollEnabled,
130
+ setScrollEnabled
131
+ });
132
+ var contentWrapper = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.View, {
133
+ onLayout: function (e) {
134
+ var height = Math.floor(e.nativeEvent.layout.height);
135
+ if (height !== contentHeight.current) {
136
+ contentHeight.current = height;
137
+ updateScrollable();
138
+ }
139
+ },
140
+ children
141
+ });
142
+ if (useRNGHScrollView && RNGHScrollView && panGestureRef) {
143
+ var RNGHComponent = RNGHScrollView;
144
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RNGHComponent, {
178
145
  ref: (0, import_compose_refs.composeRefs)(scrollRef, ref),
179
- flex: 1,
146
+ style: {
147
+ flex: 1
148
+ },
180
149
  scrollEventThrottle: 1,
181
- className: "_ovs-contain",
182
150
  scrollEnabled,
151
+ simultaneousHandlers: [panGestureRef],
152
+ onLayout: function (e) {
153
+ parentHeight.current = Math.ceil(e.nativeEvent.layout.height);
154
+ updateScrollable();
155
+ },
183
156
  onScroll: function (e) {
184
157
  var {
185
158
  y
186
159
  } = e.nativeEvent.contentOffset;
187
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
160
+ currentScrollOffset.current = y;
161
+ if (scrollBridge.scrollLockY !== void 0) {
162
+ if (y !== scrollBridge.scrollLockY) {
163
+ var _scrollRef_current_scrollTo, _scrollRef_current;
164
+ (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 ? void 0 : _scrollRef_current_scrollTo.call(_scrollRef_current, {
165
+ x: 0,
166
+ y: scrollBridge.scrollLockY,
167
+ animated: false
168
+ });
169
+ }
170
+ scrollBridge.y = scrollBridge.scrollLockY;
171
+ onScroll === null || onScroll === void 0 ? void 0 : onScroll({
172
+ ...e,
173
+ nativeEvent: {
174
+ ...e.nativeEvent,
175
+ contentOffset: {
176
+ ...e.nativeEvent.contentOffset,
177
+ y: scrollBridge.scrollLockY
178
+ }
179
+ }
180
+ });
181
+ return;
182
+ }
183
+ scrollBridge.y = y;
184
+ if (y > 0) scrollBridge.scrollStartY = -1;
185
+ onScroll === null || onScroll === void 0 ? void 0 : onScroll(e);
188
186
  },
189
187
  contentContainerStyle: {
190
188
  minHeight: "100%"
191
189
  },
192
- ...gestureProps,
190
+ bounces: false,
191
+ keyboardShouldPersistTaps: "always",
192
+ keyboardDismissMode: "none",
193
193
  ...props,
194
194
  children: contentWrapper
195
195
  });
196
+ }
197
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_scroll_view.ScrollView, {
198
+ onLayout: function (e) {
199
+ parentHeight.current = Math.ceil(e.nativeEvent.layout.height);
200
+ updateScrollable();
201
+ },
202
+ ref: (0, import_compose_refs.composeRefs)(scrollRef, ref),
203
+ flex: 1,
204
+ scrollEventThrottle: 1,
205
+ className: "_ovs-contain",
206
+ scrollEnabled,
207
+ onScroll: function (e) {
208
+ var {
209
+ y
210
+ } = e.nativeEvent.contentOffset;
211
+ scrollBridge.y = y;
212
+ if (y > 0) scrollBridge.scrollStartY = -1;
213
+ onScroll === null || onScroll === void 0 ? void 0 : onScroll(e);
214
+ },
215
+ contentContainerStyle: {
216
+ minHeight: "100%"
217
+ },
218
+ ...gestureProps,
219
+ ...props,
220
+ children: contentWrapper
196
221
  });
222
+ });
197
223
  //# sourceMappingURL=SheetScrollView.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SheetScrollView_exports","__export","SheetScrollView","module","exports","import_jsx_runtime","require","import_compose_refs","import_core","import_scroll_view","import_use_controllable_state","import_react","__toESM","import_GestureSheetContext","import_gestureState","import_SheetContext","import_useSheetScrollViewGestures","SHEET_SCROLL_VIEW_NAME","default","forwardRef","param","ref","__scopeSheet","children","onScroll","scrollEnabled","scrollEnabledProp","props","context","useSheetContext","gestureContext","useGestureSheetContext","scrollBridge","setHasScrollView","useControllableState","prop","defaultProp","scrollRef","useRef","panGestureRef","ScrollView","RNGHScrollView","getGestureHandlerState","useRNGHScrollView","isGestureHandlerEnabled","currentScrollOffset","lockedScrollY","setScrollEnabled","next","lockTo","current","scrollLockY","_scrollRef_current_scrollTo","_scrollRef_current","lockY","scrollTo","call","x","y","animated","forceScrollTo","useEffect","hasScrollableContent","setHasScrollableContent","useState","parentHeight","contentHeight","updateScrollable","gestureProps","useSheetScrollViewGestures","contentWrapper","jsx","View","onLayout","e","height","Math","floor","nativeEvent","layout","RNGHComponent","composeRefs","style","flex","scrollEventThrottle","simultaneousHandlers","ceil","contentOffset","scrollStartY","contentContainerStyle","minHeight","bounces","keyboardShouldPersistTaps","keyboardDismissMode","className"],"sources":["../../src/SheetScrollView.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4B,CAAAK,uBAAA;AAa5B,IAAAK,kBAAM,GAAAC,OAAyB,oBAElB;EAAAC,mBAAkB,GAAAD,OAAA,wBAAM;EAAAE,WAAA,GAAAF,OAAA;EAAAG,kBAAA,GAAAH,OAAA;EAAAI,6BAAA,GAAAJ,OAAA;EAAAK,YAAA,GAAAC,OAAA,CAAAN,OAAA;EAAAO,0BAAA,GAAAP,OAAA;EAAAQ,mBAAA,GAAAR,OAAA;EAAAS,mBAAA,GAAAT,OAAA;EAAAU,iCAAA,GAAAV,OAAA;EAAAW,sBAAA;EAAAf,eAAA,kBAAAS,YAAA,CAAAO,OAAA,CAAAC,UAAA,WAAAC,KAAA,EAAAC,GAAA;IAInC,IACE;QAAAC,YAAA;QAAAC,QAAA;QAAAC,QAAA;QAAAC,aAAA,EAAAC,iBAAA;QAAA,GAAAC;MAAA,IAAAP,KAAA;MAAAQ,OAAA,OAAAb,mBAAA,CAAA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,CAAAI,WAAA,CAAAS,aAA0B;kBAC1B7B,CAAA,EAAA1B,YAAoB,CAAAmB;gBAChB;cAEH;YAAA;YAOL;UAAC;UAAAnB,YAAA,CAAA0B,CAAA,GAAAA,CAAA,EAAAA,CAAA,SAAA1B,YAAA,CAAAwD,YAAA,QAAAhE,QAAA,GAAAkD,CAAA;QAAA;QAEGe,qBAAa;UAEfC,SAAA;QAAA;QACsCC,OACtC,EAAM;QAAAC,yBACe;QAAAC,mBACX;QAAA,GACVlE,KAAA;QAAAJ,QACA,EAAA+C;MACE;IACA;IAEY,OACd,mBAAAjE,kBAAA,CAAAkE,GAAA,EAAA9D,kBAAA,CAAA+B,UAAA;MAAAiC,QACA,WAAAA,CAAAC,CAAA;QAA2CT,YACvC,CAAAf,OAAA,GAAA0B,IAAA,CAAAU,IAAA,CAAAZ,CAAA,CAAAI,WAAA,CAAAC,MAAA,CAAAJ,MAAA,GAAAR,gBAAA;MAAA;MACA9C,GAAA,EAEH,IAAAd,mBAAA,CAAA0E,WAAA,EAAA5C,SAAA,EAAAhB,GAAA;MAAA8D,IAAA;MACHC,mBAAA;MAEJU,SAAA;MACFrE,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SheetScrollView_exports","__export","SheetScrollView","module","exports","import_jsx_runtime","require","import_compose_refs","import_core","import_scroll_view","import_use_controllable_state","import_react","__toESM","import_GestureSheetContext","import_gestureState","import_SheetContext","import_useSheetScrollViewGestures","SHEET_SCROLL_VIEW_NAME","default","forwardRef","param","ref","__scopeSheet","children","onScroll","scrollEnabled","scrollEnabledProp","props","context","useSheetContext","gestureContext","useGestureSheetContext","scrollBridge","setHasScrollView","useControllableState","prop","defaultProp","scrollRef","useRef","panGestureRef","ScrollView","RNGHScrollView","getGestureHandlerState","useRNGHScrollView","isGestureHandlerEnabled","currentScrollOffset","lockedScrollY","setScrollEnabled","next","lockTo","_scrollRef_current_scrollTo","_scrollRef_current","lockY","current","scrollLockY","scrollTo","call","x","y","animated","forceScrollTo","useEffect","hasScrollableContent","setHasScrollableContent","useState","parentHeight","contentHeight","updateScrollable","gestureProps","useSheetScrollViewGestures","contentWrapper","jsx","View","onLayout","e","height","Math","floor","nativeEvent","layout","RNGHComponent","composeRefs","style","flex","scrollEventThrottle","simultaneousHandlers","ceil","contentOffset","scrollStartY","contentContainerStyle","minHeight","bounces","keyboardShouldPersistTaps","keyboardDismissMode","className"],"sources":["../../src/SheetScrollView.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4B,CAAAK,uBAAA;AAC5B,IAAAK,kBAAyC,GAAAC,OAAA;AAEzC,IAAAC,mBAAA,GAA2BD,OAAA;AAC3B,IAAAE,WAAA,GAAAF,OAAA,gBAAqC;AACrC,IAAAG,kBAAmD,GAAAH,OAAA;AAEnD,IAAAI,6BAAuC,GAAAJ,OAAA;AACvC,IAAAK,YAAA,GAAAC,OAAgE,CAAAN,OAAA;AAChE,IAAAO,0BAAgC,GAAAP,OAAA;AAEhC,IAAAQ,mBAAA,GAAAR,OAAA,2BAA2C;AAyFrC,IAAAS,mBAAA,GAAAT,OAAA;AAvFN,IAAAU,iCAA+B,GAAAV,OAAA;AAExB,IAAAW,sBAAwB,oBAAM;AAAA,IAKjCf,eAAA,kBAAAS,YAAA,CAAAO,OAAA,CAAAC,UAAA,WAAAC,KAAA,EAAAC,GAAA;EAAA,IACE;IAAAC,YAAA;IAAAC,QAAA;IAAAC,QAAA;IAAAC,aAAA,EAAAC,iBAAA;IAAA,GAAAC;EAAA,IAAAP,KAAA;EAAA,IACAQ,OAAA,OAAAb,mBA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A;IACH;IAEJe,qBAAA;MACFC,SAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var constants_exports = {};
22
24
  __export(constants_exports, {
@@ -26,7 +28,7 @@ __export(constants_exports, {
26
28
  constants: () => constants
27
29
  });
28
30
  module.exports = __toCommonJS(constants_exports);
29
- const constants = {},
30
- SHEET_NAME = "Sheet",
31
- SHEET_HANDLE_NAME = "SheetHandle",
32
- SHEET_OVERLAY_NAME = "SheetOverlay";
31
+ const constants = {};
32
+ const SHEET_NAME = "Sheet";
33
+ const SHEET_HANDLE_NAME = "SheetHandle";
34
+ const SHEET_OVERLAY_NAME = "SheetOverlay";
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var constants_exports = {};
24
26
  __export(constants_exports, {
@@ -28,8 +30,8 @@ __export(constants_exports, {
28
30
  constants: () => constants
29
31
  });
30
32
  module.exports = __toCommonJS(constants_exports);
31
- var constants = {},
32
- SHEET_NAME = "Sheet",
33
- SHEET_HANDLE_NAME = "SheetHandle",
34
- SHEET_OVERLAY_NAME = "SheetOverlay";
33
+ var constants = {};
34
+ var SHEET_NAME = "Sheet";
35
+ var SHEET_HANDLE_NAME = "SheetHandle";
36
+ var SHEET_OVERLAY_NAME = "SheetOverlay";
35
37
  //# sourceMappingURL=constants.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","SHEET_HANDLE_NAME","SHEET_NAME","SHEET_OVERLAY_NAME","constants","module","exports"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAZ,YAEA,CAAAK,iBACA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","SHEET_HANDLE_NAME","SHEET_NAME","SHEET_OVERLAY_NAME","constants","module","exports"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAZ,YAAa,CAAAK,iBAAA;AAEnB,IAAAK,SAAM;AACN,IAAAF,UAAM;AACN,IAAAD,iBAAM,gBAAqB","ignoreList":[]}
@@ -2,33 +2,35 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var contexts_exports = {};
33
35
  __export(contexts_exports, {
34
36
  ParentSheetContext: () => ParentSheetContext,
@@ -37,6 +39,6 @@ __export(contexts_exports, {
37
39
  module.exports = __toCommonJS(contexts_exports);
38
40
  var import_react = __toESM(require("react"), 1);
39
41
  const ParentSheetContext = import_react.default.createContext({
40
- zIndex: 1e5
41
- }),
42
- SheetInsideSheetContext = import_react.default.createContext(null);
42
+ zIndex: 1e5
43
+ });
44
+ const SheetInsideSheetContext = import_react.default.createContext(null);