@tamagui/sheet 2.7.7 → 3.0.0-beta.1093.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 (477) hide show
  1. package/dist/cjs/GestureSheetContext.cjs +28 -37
  2. package/dist/cjs/GestureSheetContext.native.cjs +48 -0
  3. package/dist/cjs/GestureSheetContext.native.js +29 -37
  4. package/dist/cjs/GestureSheetContext.native.js.map +1 -1
  5. package/dist/cjs/Sheet.cjs +220 -99
  6. package/dist/cjs/Sheet.native.cjs +245 -0
  7. package/dist/cjs/Sheet.native.js +223 -98
  8. package/dist/cjs/Sheet.native.js.map +1 -1
  9. package/dist/cjs/SheetContext.cjs +43 -22
  10. package/dist/cjs/SheetContext.native.cjs +57 -0
  11. package/dist/cjs/SheetContext.native.js +44 -22
  12. package/dist/cjs/SheetContext.native.js.map +1 -1
  13. package/dist/cjs/SheetController.cjs +49 -56
  14. package/dist/cjs/SheetController.native.cjs +71 -0
  15. package/dist/cjs/SheetController.native.js +52 -58
  16. package/dist/cjs/SheetController.native.js.map +1 -1
  17. package/dist/cjs/SheetDragSurface.cjs +50 -0
  18. package/dist/cjs/SheetDragSurface.native.cjs +61 -0
  19. package/dist/cjs/SheetDragSurface.native.js +63 -0
  20. package/dist/cjs/SheetDragSurface.native.js.map +1 -0
  21. package/dist/cjs/SheetImplementationCustom.cjs +664 -610
  22. package/dist/cjs/SheetImplementationCustom.native.cjs +748 -0
  23. package/dist/cjs/SheetImplementationCustom.native.js +704 -649
  24. package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
  25. package/dist/cjs/SheetScrollView.cjs +291 -312
  26. package/dist/cjs/SheetScrollView.native.cjs +326 -0
  27. package/dist/cjs/SheetScrollView.native.js +299 -319
  28. package/dist/cjs/SheetScrollView.native.js.map +1 -1
  29. package/dist/cjs/constants.cjs +21 -21
  30. package/dist/cjs/constants.native.cjs +36 -0
  31. package/dist/cjs/constants.native.js +21 -20
  32. package/dist/cjs/constants.native.js.map +1 -1
  33. package/dist/cjs/contexts.cjs +19 -28
  34. package/dist/cjs/contexts.native.cjs +37 -0
  35. package/dist/cjs/contexts.native.js +19 -27
  36. package/dist/cjs/contexts.native.js.map +1 -1
  37. package/dist/cjs/controller.cjs +16 -18
  38. package/dist/cjs/controller.native.cjs +31 -0
  39. package/dist/cjs/controller.native.js +16 -17
  40. package/dist/cjs/controller.native.js.map +1 -1
  41. package/dist/cjs/gestureState.cjs +28 -30
  42. package/dist/cjs/gestureState.native.cjs +53 -0
  43. package/dist/cjs/gestureState.native.js +29 -30
  44. package/dist/cjs/gestureState.native.js.map +1 -1
  45. package/dist/cjs/helpers.cjs +20 -24
  46. package/dist/cjs/helpers.native.cjs +34 -0
  47. package/dist/cjs/helpers.native.js +21 -24
  48. package/dist/cjs/helpers.native.js.map +1 -1
  49. package/dist/cjs/index.cjs +14 -21
  50. package/dist/cjs/index.native.cjs +36 -0
  51. package/dist/cjs/index.native.js +15 -21
  52. package/dist/cjs/index.native.js.map +1 -1
  53. package/dist/cjs/keyboardAvoidance.cjs +55 -79
  54. package/dist/cjs/keyboardAvoidance.native.cjs +74 -0
  55. package/dist/cjs/keyboardAvoidance.native.js +55 -78
  56. package/dist/cjs/keyboardAvoidance.native.js.map +1 -1
  57. package/dist/cjs/nativeSheet.cjs +17 -86
  58. package/dist/cjs/nativeSheet.native.cjs +94 -0
  59. package/dist/cjs/nativeSheet.native.js +73 -86
  60. package/dist/cjs/nativeSheet.native.js.map +1 -1
  61. package/dist/cjs/stableViewportHeight.cjs +27 -0
  62. package/dist/cjs/stableViewportHeight.native.cjs +29 -0
  63. package/dist/cjs/stableViewportHeight.native.js +31 -0
  64. package/dist/cjs/stableViewportHeight.native.js.map +1 -0
  65. package/dist/cjs/types.cjs +9 -11
  66. package/dist/cjs/types.native.cjs +18 -0
  67. package/dist/cjs/types.native.js +9 -10
  68. package/dist/cjs/types.native.js.map +1 -1
  69. package/dist/cjs/useGestureHandlerPan.cjs +244 -257
  70. package/dist/cjs/useGestureHandlerPan.native.cjs +272 -0
  71. package/dist/cjs/useGestureHandlerPan.native.js +253 -265
  72. package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
  73. package/dist/cjs/useKeyboardControllerSheet.cjs +82 -88
  74. package/dist/cjs/useKeyboardControllerSheet.native.cjs +92 -0
  75. package/dist/cjs/useKeyboardControllerSheet.native.js +73 -111
  76. package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -1
  77. package/dist/cjs/useSafeAreaInsets.cjs +19 -26
  78. package/dist/cjs/useSafeAreaInsets.native.cjs +50 -0
  79. package/dist/cjs/useSafeAreaInsets.native.js +29 -25
  80. package/dist/cjs/useSafeAreaInsets.native.js.map +1 -1
  81. package/dist/cjs/useSheetController.cjs +26 -39
  82. package/dist/cjs/useSheetController.native.cjs +41 -0
  83. package/dist/cjs/useSheetController.native.js +27 -39
  84. package/dist/cjs/useSheetController.native.js.map +1 -1
  85. package/dist/cjs/useSheetOffscreenSize.cjs +43 -53
  86. package/dist/cjs/useSheetOffscreenSize.native.cjs +59 -0
  87. package/dist/cjs/useSheetOffscreenSize.native.js +47 -56
  88. package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -1
  89. package/dist/cjs/useSheetOpenState.cjs +68 -40
  90. package/dist/cjs/useSheetOpenState.native.cjs +87 -0
  91. package/dist/cjs/useSheetOpenState.native.js +73 -42
  92. package/dist/cjs/useSheetOpenState.native.js.map +1 -1
  93. package/dist/cjs/useSheetProviderProps.cjs +145 -164
  94. package/dist/cjs/useSheetProviderProps.native.cjs +175 -0
  95. package/dist/cjs/useSheetProviderProps.native.js +155 -174
  96. package/dist/cjs/useSheetProviderProps.native.js.map +1 -1
  97. package/dist/cjs/useSheetScrollViewGestures.cjs +171 -180
  98. package/dist/cjs/useSheetScrollViewGestures.native.cjs +149 -0
  99. package/dist/cjs/useSheetScrollViewGestures.native.js +135 -147
  100. package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -1
  101. package/dist/cjs/webViewport.cjs +46 -48
  102. package/dist/cjs/webViewport.native.cjs +78 -0
  103. package/dist/cjs/webViewport.native.js +49 -50
  104. package/dist/cjs/webViewport.native.js.map +1 -1
  105. package/dist/esm/GestureSheetContext.mjs +15 -20
  106. package/dist/esm/GestureSheetContext.mjs.map +1 -1
  107. package/dist/esm/GestureSheetContext.native.js +17 -22
  108. package/dist/esm/GestureSheetContext.native.js.map +1 -1
  109. package/dist/esm/Sheet.mjs +207 -83
  110. package/dist/esm/Sheet.mjs.map +1 -1
  111. package/dist/esm/Sheet.native.js +210 -83
  112. package/dist/esm/Sheet.native.js.map +1 -1
  113. package/dist/esm/SheetContext.mjs +21 -5
  114. package/dist/esm/SheetContext.mjs.map +1 -1
  115. package/dist/esm/SheetContext.native.js +21 -5
  116. package/dist/esm/SheetContext.native.js.map +1 -1
  117. package/dist/esm/SheetController.mjs +34 -30
  118. package/dist/esm/SheetController.mjs.map +1 -1
  119. package/dist/esm/SheetController.native.js +38 -34
  120. package/dist/esm/SheetController.native.js.map +1 -1
  121. package/dist/esm/SheetDragSurface.mjs +25 -0
  122. package/dist/esm/SheetDragSurface.mjs.map +1 -0
  123. package/dist/esm/SheetDragSurface.native.js +34 -0
  124. package/dist/esm/SheetDragSurface.native.js.map +1 -0
  125. package/dist/esm/SheetImplementationCustom.mjs +647 -586
  126. package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
  127. package/dist/esm/SheetImplementationCustom.native.js +684 -618
  128. package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
  129. package/dist/esm/SheetScrollView.mjs +278 -288
  130. package/dist/esm/SheetScrollView.mjs.map +1 -1
  131. package/dist/esm/SheetScrollView.native.js +287 -297
  132. package/dist/esm/SheetScrollView.native.js.map +1 -1
  133. package/dist/esm/constants.mjs +5 -3
  134. package/dist/esm/constants.mjs.map +1 -1
  135. package/dist/esm/constants.native.js +5 -3
  136. package/dist/esm/constants.native.js.map +1 -1
  137. package/dist/esm/contexts.mjs +3 -3
  138. package/dist/esm/contexts.mjs.map +1 -1
  139. package/dist/esm/contexts.native.js +3 -3
  140. package/dist/esm/contexts.native.js.map +1 -1
  141. package/dist/esm/controller.mjs +2 -2
  142. package/dist/esm/controller.native.js +2 -2
  143. package/dist/esm/gestureState.mjs +13 -11
  144. package/dist/esm/gestureState.mjs.map +1 -1
  145. package/dist/esm/gestureState.native.js +14 -12
  146. package/dist/esm/gestureState.native.js.map +1 -1
  147. package/dist/esm/helpers.mjs +7 -6
  148. package/dist/esm/helpers.mjs.map +1 -1
  149. package/dist/esm/helpers.native.js +8 -7
  150. package/dist/esm/helpers.native.js.map +1 -1
  151. package/dist/esm/index.js +21 -14
  152. package/dist/esm/index.mjs +21 -14
  153. package/dist/esm/index.native.js +21 -14
  154. package/dist/esm/keyboardAvoidance.mjs +40 -61
  155. package/dist/esm/keyboardAvoidance.mjs.map +1 -1
  156. package/dist/esm/keyboardAvoidance.native.js +40 -61
  157. package/dist/esm/keyboardAvoidance.native.js.map +1 -1
  158. package/dist/esm/nativeSheet.mjs +4 -70
  159. package/dist/esm/nativeSheet.mjs.map +1 -1
  160. package/dist/esm/nativeSheet.native.js +60 -70
  161. package/dist/esm/nativeSheet.native.js.map +1 -1
  162. package/dist/esm/stableViewportHeight.mjs +8 -0
  163. package/dist/esm/stableViewportHeight.mjs.map +1 -0
  164. package/dist/esm/stableViewportHeight.native.js +8 -0
  165. package/dist/esm/stableViewportHeight.native.js.map +1 -0
  166. package/dist/esm/types.mjs +0 -2
  167. package/dist/esm/types.native.js +0 -2
  168. package/dist/esm/useGestureHandlerPan.mjs +232 -239
  169. package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
  170. package/dist/esm/useGestureHandlerPan.native.js +241 -248
  171. package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
  172. package/dist/esm/useKeyboardControllerSheet.mjs +71 -71
  173. package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -1
  174. package/dist/esm/useKeyboardControllerSheet.native.js +66 -94
  175. package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -1
  176. package/dist/esm/useSafeAreaInsets.mjs +3 -1
  177. package/dist/esm/useSafeAreaInsets.mjs.map +1 -1
  178. package/dist/esm/useSafeAreaInsets.native.js +15 -3
  179. package/dist/esm/useSafeAreaInsets.native.js.map +1 -1
  180. package/dist/esm/useSheetController.mjs +14 -12
  181. package/dist/esm/useSheetController.mjs.map +1 -1
  182. package/dist/esm/useSheetController.native.js +14 -12
  183. package/dist/esm/useSheetController.native.js.map +1 -1
  184. package/dist/esm/useSheetOffscreenSize.mjs +30 -35
  185. package/dist/esm/useSheetOffscreenSize.mjs.map +1 -1
  186. package/dist/esm/useSheetOffscreenSize.native.js +34 -39
  187. package/dist/esm/useSheetOffscreenSize.native.js.map +1 -1
  188. package/dist/esm/useSheetOpenState.mjs +50 -22
  189. package/dist/esm/useSheetOpenState.mjs.map +1 -1
  190. package/dist/esm/useSheetOpenState.native.js +55 -25
  191. package/dist/esm/useSheetOpenState.native.js.map +1 -1
  192. package/dist/esm/useSheetProviderProps.mjs +130 -138
  193. package/dist/esm/useSheetProviderProps.mjs.map +1 -1
  194. package/dist/esm/useSheetProviderProps.native.js +140 -149
  195. package/dist/esm/useSheetProviderProps.native.js.map +1 -1
  196. package/dist/esm/useSheetScrollViewGestures.mjs +159 -162
  197. package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -1
  198. package/dist/esm/useSheetScrollViewGestures.native.js +123 -130
  199. package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -1
  200. package/dist/esm/webViewport.mjs +26 -25
  201. package/dist/esm/webViewport.mjs.map +1 -1
  202. package/dist/esm/webViewport.native.js +29 -28
  203. package/dist/esm/webViewport.native.js.map +1 -1
  204. package/dist/jsx/GestureSheetContext.mjs +15 -20
  205. package/dist/jsx/GestureSheetContext.mjs.map +1 -1
  206. package/dist/jsx/GestureSheetContext.native.cjs +48 -0
  207. package/dist/jsx/GestureSheetContext.native.js +29 -37
  208. package/dist/jsx/GestureSheetContext.native.js.map +1 -1
  209. package/dist/jsx/Sheet.mjs +207 -83
  210. package/dist/jsx/Sheet.mjs.map +1 -1
  211. package/dist/jsx/Sheet.native.cjs +245 -0
  212. package/dist/jsx/Sheet.native.js +223 -98
  213. package/dist/jsx/Sheet.native.js.map +1 -1
  214. package/dist/jsx/SheetContext.mjs +21 -5
  215. package/dist/jsx/SheetContext.mjs.map +1 -1
  216. package/dist/jsx/SheetContext.native.cjs +57 -0
  217. package/dist/jsx/SheetContext.native.js +44 -22
  218. package/dist/jsx/SheetContext.native.js.map +1 -1
  219. package/dist/jsx/SheetController.mjs +34 -30
  220. package/dist/jsx/SheetController.mjs.map +1 -1
  221. package/dist/jsx/SheetController.native.cjs +71 -0
  222. package/dist/jsx/SheetController.native.js +52 -58
  223. package/dist/jsx/SheetController.native.js.map +1 -1
  224. package/dist/jsx/SheetDragSurface.mjs +25 -0
  225. package/dist/jsx/SheetDragSurface.mjs.map +1 -0
  226. package/dist/jsx/SheetDragSurface.native.cjs +61 -0
  227. package/dist/jsx/SheetDragSurface.native.js +63 -0
  228. package/dist/jsx/SheetDragSurface.native.js.map +1 -0
  229. package/dist/jsx/SheetImplementationCustom.mjs +647 -586
  230. package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
  231. package/dist/jsx/SheetImplementationCustom.native.cjs +748 -0
  232. package/dist/jsx/SheetImplementationCustom.native.js +704 -649
  233. package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
  234. package/dist/jsx/SheetScrollView.mjs +278 -288
  235. package/dist/jsx/SheetScrollView.mjs.map +1 -1
  236. package/dist/jsx/SheetScrollView.native.cjs +326 -0
  237. package/dist/jsx/SheetScrollView.native.js +299 -319
  238. package/dist/jsx/SheetScrollView.native.js.map +1 -1
  239. package/dist/jsx/constants.mjs +5 -3
  240. package/dist/jsx/constants.mjs.map +1 -1
  241. package/dist/jsx/constants.native.cjs +36 -0
  242. package/dist/jsx/constants.native.js +21 -20
  243. package/dist/jsx/constants.native.js.map +1 -1
  244. package/dist/jsx/contexts.mjs +3 -3
  245. package/dist/jsx/contexts.mjs.map +1 -1
  246. package/dist/jsx/contexts.native.cjs +37 -0
  247. package/dist/jsx/contexts.native.js +19 -27
  248. package/dist/jsx/contexts.native.js.map +1 -1
  249. package/dist/jsx/controller.mjs +2 -2
  250. package/dist/jsx/controller.native.cjs +31 -0
  251. package/dist/jsx/controller.native.js +16 -17
  252. package/dist/jsx/controller.native.js.map +1 -1
  253. package/dist/jsx/gestureState.mjs +13 -11
  254. package/dist/jsx/gestureState.mjs.map +1 -1
  255. package/dist/jsx/gestureState.native.cjs +53 -0
  256. package/dist/jsx/gestureState.native.js +29 -30
  257. package/dist/jsx/gestureState.native.js.map +1 -1
  258. package/dist/jsx/helpers.mjs +7 -6
  259. package/dist/jsx/helpers.mjs.map +1 -1
  260. package/dist/jsx/helpers.native.cjs +34 -0
  261. package/dist/jsx/helpers.native.js +21 -24
  262. package/dist/jsx/helpers.native.js.map +1 -1
  263. package/dist/jsx/index.js +21 -14
  264. package/dist/jsx/index.mjs +21 -14
  265. package/dist/jsx/index.native.cjs +36 -0
  266. package/dist/jsx/index.native.js +15 -21
  267. package/dist/jsx/index.native.js.map +1 -1
  268. package/dist/jsx/keyboardAvoidance.mjs +40 -61
  269. package/dist/jsx/keyboardAvoidance.mjs.map +1 -1
  270. package/dist/jsx/keyboardAvoidance.native.cjs +74 -0
  271. package/dist/jsx/keyboardAvoidance.native.js +55 -78
  272. package/dist/jsx/keyboardAvoidance.native.js.map +1 -1
  273. package/dist/jsx/nativeSheet.mjs +4 -70
  274. package/dist/jsx/nativeSheet.mjs.map +1 -1
  275. package/dist/jsx/nativeSheet.native.cjs +94 -0
  276. package/dist/jsx/nativeSheet.native.js +73 -86
  277. package/dist/jsx/nativeSheet.native.js.map +1 -1
  278. package/dist/jsx/stableViewportHeight.mjs +8 -0
  279. package/dist/jsx/stableViewportHeight.mjs.map +1 -0
  280. package/dist/jsx/stableViewportHeight.native.cjs +29 -0
  281. package/dist/jsx/stableViewportHeight.native.js +31 -0
  282. package/dist/jsx/stableViewportHeight.native.js.map +1 -0
  283. package/dist/jsx/types.mjs +0 -2
  284. package/dist/jsx/types.native.cjs +18 -0
  285. package/dist/jsx/types.native.js +9 -10
  286. package/dist/jsx/types.native.js.map +1 -1
  287. package/dist/jsx/useGestureHandlerPan.mjs +232 -239
  288. package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
  289. package/dist/jsx/useGestureHandlerPan.native.cjs +272 -0
  290. package/dist/jsx/useGestureHandlerPan.native.js +253 -265
  291. package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
  292. package/dist/jsx/useKeyboardControllerSheet.mjs +71 -71
  293. package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -1
  294. package/dist/jsx/useKeyboardControllerSheet.native.cjs +92 -0
  295. package/dist/jsx/useKeyboardControllerSheet.native.js +73 -111
  296. package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -1
  297. package/dist/jsx/useSafeAreaInsets.mjs +3 -1
  298. package/dist/jsx/useSafeAreaInsets.mjs.map +1 -1
  299. package/dist/jsx/useSafeAreaInsets.native.cjs +50 -0
  300. package/dist/jsx/useSafeAreaInsets.native.js +29 -25
  301. package/dist/jsx/useSafeAreaInsets.native.js.map +1 -1
  302. package/dist/jsx/useSheetController.mjs +14 -12
  303. package/dist/jsx/useSheetController.mjs.map +1 -1
  304. package/dist/jsx/useSheetController.native.cjs +41 -0
  305. package/dist/jsx/useSheetController.native.js +27 -39
  306. package/dist/jsx/useSheetController.native.js.map +1 -1
  307. package/dist/jsx/useSheetOffscreenSize.mjs +30 -35
  308. package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -1
  309. package/dist/jsx/useSheetOffscreenSize.native.cjs +59 -0
  310. package/dist/jsx/useSheetOffscreenSize.native.js +47 -56
  311. package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -1
  312. package/dist/jsx/useSheetOpenState.mjs +50 -22
  313. package/dist/jsx/useSheetOpenState.mjs.map +1 -1
  314. package/dist/jsx/useSheetOpenState.native.cjs +87 -0
  315. package/dist/jsx/useSheetOpenState.native.js +73 -42
  316. package/dist/jsx/useSheetOpenState.native.js.map +1 -1
  317. package/dist/jsx/useSheetProviderProps.mjs +130 -138
  318. package/dist/jsx/useSheetProviderProps.mjs.map +1 -1
  319. package/dist/jsx/useSheetProviderProps.native.cjs +175 -0
  320. package/dist/jsx/useSheetProviderProps.native.js +155 -174
  321. package/dist/jsx/useSheetProviderProps.native.js.map +1 -1
  322. package/dist/jsx/useSheetScrollViewGestures.mjs +159 -162
  323. package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -1
  324. package/dist/jsx/useSheetScrollViewGestures.native.cjs +149 -0
  325. package/dist/jsx/useSheetScrollViewGestures.native.js +135 -147
  326. package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -1
  327. package/dist/jsx/webViewport.mjs +26 -25
  328. package/dist/jsx/webViewport.mjs.map +1 -1
  329. package/dist/jsx/webViewport.native.cjs +78 -0
  330. package/dist/jsx/webViewport.native.js +49 -50
  331. package/dist/jsx/webViewport.native.js.map +1 -1
  332. package/package.json +38 -40
  333. package/src/Sheet.tsx +314 -77
  334. package/src/SheetContext.tsx +57 -7
  335. package/src/SheetController.tsx +7 -6
  336. package/src/SheetDragSurface.native.tsx +42 -0
  337. package/src/SheetDragSurface.tsx +40 -0
  338. package/src/SheetImplementationCustom.tsx +364 -181
  339. package/src/SheetScrollView.tsx +36 -20
  340. package/src/constants.tsx +3 -3
  341. package/src/helpers.tsx +0 -14
  342. package/src/index.ts +3 -6
  343. package/src/{nativeSheet.tsx → nativeSheet.native.tsx} +9 -20
  344. package/src/nativeSheet.ts +19 -0
  345. package/src/stableViewportHeight.native.ts +9 -0
  346. package/src/stableViewportHeight.ts +15 -0
  347. package/src/types.tsx +122 -92
  348. package/src/useKeyboardControllerSheet.native.ts +10 -39
  349. package/src/useSafeAreaInsets.native.ts +20 -13
  350. package/src/useSheetController.tsx +15 -7
  351. package/src/useSheetOpenState.tsx +50 -4
  352. package/src/useSheetProviderProps.tsx +4 -27
  353. package/src/useSheetScrollViewGestures.ts +2 -2
  354. package/types/GestureSheetContext.d.ts +1 -1
  355. package/types/GestureSheetContext.d.ts.map +1 -1
  356. package/types/Sheet.d.ts +247 -151
  357. package/types/Sheet.d.ts.map +1 -1
  358. package/types/SheetContext.d.ts +28 -42
  359. package/types/SheetContext.d.ts.map +1 -1
  360. package/types/SheetController.d.ts +4 -2
  361. package/types/SheetController.d.ts.map +1 -1
  362. package/types/SheetDragSurface.d.ts +11 -0
  363. package/types/SheetDragSurface.d.ts.map +1 -0
  364. package/types/SheetDragSurface.native.d.ts +11 -0
  365. package/types/SheetDragSurface.native.d.ts.map +1 -0
  366. package/types/SheetImplementationCustom.d.ts +4 -36
  367. package/types/SheetImplementationCustom.d.ts.map +1 -1
  368. package/types/SheetScrollView.d.ts +21 -38
  369. package/types/SheetScrollView.d.ts.map +1 -1
  370. package/types/constants.d.ts +3 -2
  371. package/types/constants.d.ts.map +1 -1
  372. package/types/index.d.ts +1 -3
  373. package/types/index.d.ts.map +1 -1
  374. package/types/nativeSheet.d.ts +8 -8
  375. package/types/nativeSheet.d.ts.map +1 -1
  376. package/types/nativeSheet.native.d.ts +5 -0
  377. package/types/nativeSheet.native.d.ts.map +1 -0
  378. package/types/stableViewportHeight.d.ts +12 -0
  379. package/types/stableViewportHeight.d.ts.map +1 -0
  380. package/types/stableViewportHeight.native.d.ts +6 -0
  381. package/types/stableViewportHeight.native.d.ts.map +1 -0
  382. package/types/types.d.ts +43 -17
  383. package/types/types.d.ts.map +1 -1
  384. package/types/useKeyboardControllerSheet.native.d.ts +6 -6
  385. package/types/useKeyboardControllerSheet.native.d.ts.map +1 -1
  386. package/types/useSafeAreaInsets.native.d.ts +4 -12
  387. package/types/useSafeAreaInsets.native.d.ts.map +1 -1
  388. package/types/useSheetController.d.ts +6 -6
  389. package/types/useSheetController.d.ts.map +1 -1
  390. package/types/useSheetOffscreenSize.d.ts.map +1 -1
  391. package/types/useSheetOpenState.d.ts +3 -2
  392. package/types/useSheetOpenState.d.ts.map +1 -1
  393. package/types/useSheetProviderProps.d.ts +5 -8
  394. package/types/useSheetProviderProps.d.ts.map +1 -1
  395. package/types/useSheetScrollViewGestures.d.ts +2 -2
  396. package/types/useSheetScrollViewGestures.d.ts.map +1 -1
  397. package/.turbo/turbo-build.log +0 -2
  398. package/controller/index.cjs +0 -2
  399. package/controller/index.d.ts +0 -5
  400. package/controller/index.js +0 -2
  401. package/controller/index.native.cjs +0 -2
  402. package/controller/index.native.js +0 -2
  403. package/dist/cjs/GestureDetectorWrapper.cjs +0 -54
  404. package/dist/cjs/GestureDetectorWrapper.native.js +0 -58
  405. package/dist/cjs/GestureDetectorWrapper.native.js.map +0 -1
  406. package/dist/cjs/createSheet.cjs +0 -194
  407. package/dist/cjs/createSheet.native.js +0 -204
  408. package/dist/cjs/createSheet.native.js.map +0 -1
  409. package/dist/cjs/setupGestureHandler.cjs +0 -55
  410. package/dist/cjs/setupGestureHandler.native.js +0 -60
  411. package/dist/cjs/setupGestureHandler.native.js.map +0 -1
  412. package/dist/cjs/useSheet.cjs +0 -29
  413. package/dist/cjs/useSheet.native.js +0 -34
  414. package/dist/cjs/useSheet.native.js.map +0 -1
  415. package/dist/esm/GestureDetectorWrapper.mjs +0 -29
  416. package/dist/esm/GestureDetectorWrapper.mjs.map +0 -1
  417. package/dist/esm/GestureDetectorWrapper.native.js +0 -30
  418. package/dist/esm/GestureDetectorWrapper.native.js.map +0 -1
  419. package/dist/esm/controller.mjs.map +0 -1
  420. package/dist/esm/controller.native.js.map +0 -1
  421. package/dist/esm/createSheet.mjs +0 -168
  422. package/dist/esm/createSheet.mjs.map +0 -1
  423. package/dist/esm/createSheet.native.js +0 -176
  424. package/dist/esm/createSheet.native.js.map +0 -1
  425. package/dist/esm/index.js.map +0 -1
  426. package/dist/esm/index.mjs.map +0 -1
  427. package/dist/esm/index.native.js.map +0 -1
  428. package/dist/esm/setupGestureHandler.mjs +0 -29
  429. package/dist/esm/setupGestureHandler.mjs.map +0 -1
  430. package/dist/esm/setupGestureHandler.native.js +0 -31
  431. package/dist/esm/setupGestureHandler.native.js.map +0 -1
  432. package/dist/esm/types.mjs.map +0 -1
  433. package/dist/esm/types.native.js.map +0 -1
  434. package/dist/esm/useSheet.mjs +0 -4
  435. package/dist/esm/useSheet.mjs.map +0 -1
  436. package/dist/esm/useSheet.native.js +0 -6
  437. package/dist/esm/useSheet.native.js.map +0 -1
  438. package/dist/jsx/GestureDetectorWrapper.mjs +0 -29
  439. package/dist/jsx/GestureDetectorWrapper.mjs.map +0 -1
  440. package/dist/jsx/GestureDetectorWrapper.native.js +0 -58
  441. package/dist/jsx/GestureDetectorWrapper.native.js.map +0 -1
  442. package/dist/jsx/controller.mjs.map +0 -1
  443. package/dist/jsx/createSheet.mjs +0 -168
  444. package/dist/jsx/createSheet.mjs.map +0 -1
  445. package/dist/jsx/createSheet.native.js +0 -204
  446. package/dist/jsx/createSheet.native.js.map +0 -1
  447. package/dist/jsx/index.js.map +0 -1
  448. package/dist/jsx/index.mjs.map +0 -1
  449. package/dist/jsx/setupGestureHandler.mjs +0 -29
  450. package/dist/jsx/setupGestureHandler.mjs.map +0 -1
  451. package/dist/jsx/setupGestureHandler.native.js +0 -60
  452. package/dist/jsx/setupGestureHandler.native.js.map +0 -1
  453. package/dist/jsx/types.mjs.map +0 -1
  454. package/dist/jsx/useSheet.mjs +0 -4
  455. package/dist/jsx/useSheet.mjs.map +0 -1
  456. package/dist/jsx/useSheet.native.js +0 -34
  457. package/dist/jsx/useSheet.native.js.map +0 -1
  458. package/next.md +0 -78
  459. package/setup-gesture-handler/index.cjs +0 -2
  460. package/setup-gesture-handler/index.js +0 -2
  461. package/setup-gesture-handler/index.native.cjs +0 -2
  462. package/setup-gesture-handler/index.native.js +0 -2
  463. package/setup-gesture-handler.cjs +0 -1
  464. package/src/GestureDetectorWrapper.tsx +0 -38
  465. package/src/createSheet.tsx +0 -309
  466. package/src/setupGestureHandler.ts +0 -43
  467. package/src/useSheet.tsx +0 -3
  468. package/test/keyboardAvoidance.test.ts +0 -269
  469. package/tsconfig.json +0 -57
  470. package/types/GestureDetectorWrapper.d.ts +0 -14
  471. package/types/GestureDetectorWrapper.d.ts.map +0 -1
  472. package/types/createSheet.d.ts +0 -195
  473. package/types/createSheet.d.ts.map +0 -1
  474. package/types/setupGestureHandler.d.ts +0 -11
  475. package/types/setupGestureHandler.d.ts.map +0 -1
  476. package/types/useSheet.d.ts +0 -2
  477. package/types/useSheet.d.ts.map +0 -1
@@ -1,6 +1,8 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { SheetControllerContextValue } from './useSheetController';
3
- export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onAnimationComplete: onAnimationCompleteProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
4
+ export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onTransition: onTransitionProp, open, hidden, disableDrag, scope, }: Partial<SheetControllerContextValue> & {
4
5
  children?: ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
+ scope?: string;
7
+ }) => React.JSX.Element;
6
8
  //# sourceMappingURL=SheetController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetController.d.ts","sourceRoot":"","sources":["../src/SheetController.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,eAAe,GAAI,wHAO7B,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,4CAgCjE,CAAA"}
1
+ {"version":3,"file":"SheetController.d.ts","sourceRoot":"","sources":["../src/SheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,eAAe,oHAQzB,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,sBAgCjF,CAAA"}
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import type { SheetDragSurfaceProps } from './types';
3
+ /**
4
+ * The surface the sheet is dragged by.
5
+ *
6
+ * Web runs the same PanResponder react-native does, over the same responder
7
+ * system, so the drag behaves as it did when this was a react-native `View`.
8
+ * `gestureHandler` is native-only, so the props for it are ignored here.
9
+ */
10
+ export declare function SheetDragSurface({ panConfig, children }: SheetDragSurfaceProps): React.JSX.Element;
11
+ //# sourceMappingURL=SheetDragSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetDragSurface.d.ts","sourceRoot":"","sources":["../src/SheetDragSurface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,qBAAqB,qBAwB9E"}
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import type { SheetDragSurfaceProps } from './types';
3
+ /**
4
+ * The surface the sheet is dragged by.
5
+ *
6
+ * With react-native-gesture-handler set up the drag is a `Gesture.Pan`, which
7
+ * needs a native View of its own to attach to. Without it the drag runs on
8
+ * PanResponder, the same as web.
9
+ */
10
+ export declare function SheetDragSurface({ gestureHandlerEnabled, panGesture, panConfig, children, }: SheetDragSurfaceProps): React.JSX.Element;
11
+ //# sourceMappingURL=SheetDragSurface.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetDragSurface.native.d.ts","sourceRoot":"","sources":["../src/SheetDragSurface.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,qBAAqB,qBAuBvB"}
@@ -1,37 +1,5 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import type { SnapPointsMode } from './types';
4
- export declare const SheetImplementationCustom: React.ForwardRefExoticComponent<{
5
- open?: boolean;
6
- defaultOpen?: boolean;
7
- onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((open: boolean) => void);
8
- position?: number;
9
- defaultPosition?: number;
10
- snapPoints?: (string | number)[];
11
- snapPointsMode?: SnapPointsMode;
12
- onPositionChange?: import("./types").PositionChangeHandler;
13
- children?: React.ReactNode;
14
- dismissOnOverlayPress?: boolean;
15
- dismissOnSnapToBottom?: boolean;
16
- disableRemoveScroll?: boolean;
17
- forceRemoveScrollEnabled?: boolean;
18
- transitionConfig?: import("@tamagui/core").AnimatedNumberStrategy;
19
- preferAdaptParentOpenState?: boolean;
20
- unmountChildrenWhenHidden?: boolean;
21
- disableTransparencyHide?: boolean;
22
- native?: "ios"[] | boolean;
23
- transition?: import("@tamagui/core").TransitionProp;
24
- handleDisableScroll?: boolean;
25
- disableDrag?: boolean;
26
- modal?: boolean;
27
- zIndex?: number;
28
- portalProps?: import("@tamagui/portal").PortalProps;
29
- moveOnKeyboardChange?: boolean;
30
- containerComponent?: React.ComponentType<any>;
31
- onAnimationComplete?: (info: {
32
- open: boolean;
33
- }) => void;
34
- } & {
35
- __scopeSheet?: import("@tamagui/create-context").Scope<any>;
36
- } & React.RefAttributes<View>>;
1
+ import type { View } from '@tamagui/react-native-types';
2
+ import type { SheetProps } from './types';
3
+ export declare const SheetImplementationCustom: import("@tamagui/compose-refs").RefComponent<View, SheetProps>;
4
+ export declare function isSheetOverlayComponent(type: unknown): boolean;
37
5
  //# sourceMappingURL=SheetImplementationCustom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetImplementationCustom.d.ts","sourceRoot":"","sources":["../src/SheetImplementationCustom.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAOvC,OAAO,EAA4B,IAAI,EAAE,MAAM,cAAc,CAAA;AAmB7D,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;AAmCzD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAggCrC,CAAA"}
1
+ {"version":3,"file":"SheetImplementationCustom.d.ts","sourceRoot":"","sources":["../src/SheetImplementationCustom.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAIV,IAAI,EACL,MAAM,6BAA6B,CAAA;AAwBpC,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,SAAS,CAAA;AAwBhB,eAAO,MAAM,yBAAyB,gEA4mCrC,CAAA;AAOD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,WAYpD"}
@@ -1,40 +1,23 @@
1
+ import { type GetProps } from '@tamagui/core';
2
+ import type { ScrollViewRef } from '@tamagui/scroll-view';
3
+ import { ScrollView } from '@tamagui/scroll-view';
1
4
  import React from 'react';
2
- import type { ScrollView as RNScrollView } from 'react-native';
3
- export declare const SheetScrollView: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
4
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
5
- accept: {
6
- readonly contentContainerStyle: "style";
7
- };
8
- }>> | undefined;
9
- }> & {
10
- fullscreen?: boolean | undefined;
11
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
12
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
13
- accept: {
14
- readonly contentContainerStyle: "style";
15
- };
16
- }>> | undefined;
17
- }>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
18
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
19
- accept: {
20
- readonly contentContainerStyle: "style";
21
- };
22
- }>> | undefined;
23
- }> & {
24
- fullscreen?: boolean | undefined;
25
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
26
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
27
- accept: {
28
- readonly contentContainerStyle: "style";
29
- };
30
- }>> | undefined;
31
- }>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase & {
32
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
33
- accept: {
34
- readonly contentContainerStyle: "style";
35
- };
36
- }>> | undefined;
37
- }, {
38
- fullscreen?: boolean | undefined;
39
- }>> & React.RefAttributes<RNScrollView>>;
5
+ type SheetScrollViewBaseProps = GetProps<typeof ScrollView>;
6
+ export declare const SheetScrollView: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, import("@tamagui/core").StackStyleBase, {}>, string | number> & Omit<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
7
+ h?: SheetScrollViewBaseProps['height'];
8
+ o?: SheetScrollViewBaseProps['opacity'];
9
+ pos?: SheetScrollViewBaseProps['position'];
10
+ }, "scope"> & {
11
+ scope?: import("./types").SheetScopes;
12
+ }, ScrollViewRef, import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef> & Omit<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
13
+ h?: SheetScrollViewBaseProps['height'];
14
+ o?: SheetScrollViewBaseProps['opacity'];
15
+ pos?: SheetScrollViewBaseProps['position'];
16
+ }, "scope"> & {
17
+ scope?: import("./types").SheetScopes;
18
+ }, import("@tamagui/core").StackStyleBase, {}, {
19
+ acceptsClassName: true;
20
+ neverFlatten: true;
21
+ }>;
22
+ export {};
40
23
  //# sourceMappingURL=SheetScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAgB9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyV3B,CAAA"}
1
+ {"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAsC,MAAM,OAAO,CAAA;AAiB1D,KAAK,wBAAwB,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAU3D,eAAO,MAAM,eAAe;QANpB,wBAAwB,CAAC,QAAQ,CAAC;QAClC,wBAAwB,CAAC,SAAS,CAAC;UACjC,wBAAwB,CAAC,UAAU,CAAC;;;;;;;;;;;;EAmW7C,CAAA"}
@@ -1,5 +1,6 @@
1
- export declare const constants: {};
2
- export declare const SHEET_NAME = "Sheet";
1
+ export declare const SHEET_CONTAINER_NAME = "SheetContainer";
2
+ export declare const SHEET_BACKGROUND_NAME = "SheetBackground";
3
3
  export declare const SHEET_HANDLE_NAME = "SheetHandle";
4
4
  export declare const SHEET_OVERLAY_NAME = "SheetOverlay";
5
+ export declare const SHEET_OVERLAY_MARKER: unique symbol;
5
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,IAAK,CAAA;AAE3B,eAAO,MAAM,UAAU,UAAU,CAAA;AACjC,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,iBAAiB,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,mBAAmB,CAAA;AACpD,eAAO,MAAM,qBAAqB,oBAAoB,CAAA;AACtD,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAChD,eAAO,MAAM,oBAAoB,eAAyB,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './Sheet';
2
- export * from './useSheet';
3
- export * from './createSheet';
2
+ export { useSheetContext } from './SheetContext';
4
3
  export * from './SheetController';
5
4
  export * from './useSheetController';
6
5
  export * from './useSheetOpenState';
@@ -9,5 +8,4 @@ export * from './SheetScrollView';
9
8
  export * from './nativeSheet';
10
9
  export * from './types';
11
10
  export * from './contexts';
12
- export { getGestureHandlerState as unstable_getSheetGestureHandlerState, isGestureHandlerEnabled as unstable_isSheetGestureHandlerEnabled, } from './gestureState';
13
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,sBAAsB,IAAI,oCAAoC,EAC9D,uBAAuB,IAAI,qCAAqC,GACjE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import type { FunctionComponent } from 'react';
2
- import type { SheetProps } from './types';
3
- type SheetNativePlatforms = 'ios';
4
- export declare function getNativeSheet(platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
5
- export declare function setupNativeSheet(platform: SheetNativePlatforms, RNIOSModal: {
6
- ModalSheetView: any;
7
- ModalSheetViewMainContent: any;
8
- }): void;
9
- export {};
2
+ import type { SheetNativeModal, SheetNativePlatforms, SheetProps } from './types';
3
+ /**
4
+ * `native` asks for the platform's own sheet, which is a UIKit modal, so there
5
+ * is nothing to register or hand back on web and the sheet always falls through
6
+ * to its own implementation. The native sibling holds the real registry.
7
+ */
8
+ export declare function getNativeSheet(_platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
9
+ export declare function setupNativeSheet(_platform: SheetNativePlatforms, _RNIOSModal: SheetNativeModal): void;
10
10
  //# sourceMappingURL=nativeSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAI9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAMzC,KAAK,oBAAoB,GAAG,KAAK,CAAA;AAMjC,wBAAgB,cAAc,CAAC,QAAQ,EAAE,oBAAoB,wCAE5D;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,UAAU,EAAE;IAAE,cAAc,EAAE,GAAG,CAAC;IAAC,yBAAyB,EAAE,GAAG,CAAA;CAAE,QAoEpE"}
1
+ {"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,oBAAoB,GAC9B,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAEtC;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,oBAAoB,EAC/B,WAAW,EAAE,gBAAgB,QAC3B"}
@@ -0,0 +1,5 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import type { SheetNativeModal, SheetNativePlatforms, SheetProps } from './types';
3
+ export declare function getNativeSheet(platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
4
+ export declare function setupNativeSheet(platform: SheetNativePlatforms, RNIOSModal: SheetNativeModal): void;
5
+ //# sourceMappingURL=nativeSheet.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeSheet.native.d.ts","sourceRoot":"","sources":["../src/nativeSheet.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAQjF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,oBAAoB,wCAG5D;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,UAAU,EAAE,gBAAgB,QA4D7B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Height of the viewport the sheet positions against.
3
+ *
4
+ * This MUST be the stable layout viewport: the visual viewport shrinks by the
5
+ * soft keyboard, and capping frameSize / maxContentSize against a shrinking
6
+ * value corrupts the fit-mode math (translateY = screenSize - frameSize),
7
+ * detaching the sheet's bottom from the screen edge when the keyboard opens.
8
+ * NOTE: window.innerHeight is NOT stable on real iOS Safari (it shrinks with
9
+ * the keyboard too), hence the self-correcting baseline in webViewport.
10
+ */
11
+ export declare function getStableViewportHeight(): number;
12
+ //# sourceMappingURL=stableViewportHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stableViewportHeight.d.ts","sourceRoot":"","sources":["../src/stableViewportHeight.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Height of the viewport the sheet positions against. Native measures against
3
+ * the screen rather than the window, so it does not move with the keyboard.
4
+ */
5
+ export declare function getStableViewportHeight(): number;
6
+ //# sourceMappingURL=stableViewportHeight.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stableViewportHeight.native.d.ts","sourceRoot":"","sources":["../src/stableViewportHeight.native.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
package/types/types.d.ts CHANGED
@@ -1,10 +1,14 @@
1
1
  import type { AnimatedNumberStrategy, TransitionProp } from '@tamagui/core';
2
- import type { ScopedProps } from '@tamagui/create-context';
3
2
  import type { PortalProps } from '@tamagui/portal';
3
+ import type { PanResponderConfig } from '@tamagui/react-native-pan-responder';
4
4
  import type { RemoveScroll } from '@tamagui/remove-scroll';
5
5
  import type { ReactNode } from 'react';
6
6
  import type React from 'react';
7
- export type SheetProps = ScopedProps<{
7
+ export type SheetScopes = string;
8
+ export type SheetScopedProps<P> = Omit<P, 'scope'> & {
9
+ scope?: SheetScopes;
10
+ };
11
+ export type SheetProps = SheetScopedProps<{
8
12
  open?: boolean;
9
13
  defaultOpen?: boolean;
10
14
  onOpenChange?: OpenChangeHandler;
@@ -31,11 +35,6 @@ export type SheetProps = ScopedProps<{
31
35
  * By default, RemoveScroll is enabled when the sheet is open and modal.
32
36
  */
33
37
  disableRemoveScroll?: boolean;
34
- /**
35
- * @deprecated Use `disableRemoveScroll` instead. This prop will be removed in a future version.
36
- * Note: `disableRemoveScroll={true}` is equivalent to `forceRemoveScrollEnabled={false}`
37
- */
38
- forceRemoveScrollEnabled?: boolean;
39
38
  transitionConfig?: AnimatedNumberStrategy;
40
39
  /**
41
40
  * By default Sheet will prefer the open prop over a parent component that is
@@ -49,12 +48,16 @@ export type SheetProps = ScopedProps<{
49
48
  */
50
49
  unmountChildrenWhenHidden?: boolean;
51
50
  /**
52
- * Keep the sheet content wrapper opaque while the sheet is hidden.
53
- * Useful for native visual effects that cannot initialize below a transparent ancestor.
51
+ * By default a fully-closed sheet wrapper is hidden with `display: 'none'`.
52
+ * Set this to keep the closed wrapper laid out (e.g. for native visual effects
53
+ * that cannot initialize below a hidden ancestor). `pointerEvents` still gates
54
+ * interaction while closed.
54
55
  */
55
- disableTransparencyHide?: boolean;
56
+ disableHideWhenClosed?: boolean;
56
57
  /**
57
58
  * Adapts the sheet to use native sheet on the given platform (if available)
59
+ * The iOS system sheet does not expose continuous position, so
60
+ * `Sheet.useAnimatedPosition` and `onTransition` are unavailable in this mode.
58
61
  */
59
62
  native?: 'ios'[] | boolean;
60
63
  /**
@@ -73,17 +76,26 @@ export type SheetProps = ScopedProps<{
73
76
  moveOnKeyboardChange?: boolean;
74
77
  containerComponent?: React.ComponentType<any>;
75
78
  /**
76
- * Called when the sheet open/close animation completes.
77
- */
78
- onAnimationComplete?: (info: {
79
- open: boolean;
80
- }) => void;
81
- }, 'Sheet'>;
79
+ * Fires at the start and end of the sheet's position transition. `cause` is
80
+ * `open` when moving from closed, `close` when moving off screen, and `snap`
81
+ * when moving between snap points while open. On the `end` phase, `finished`
82
+ * is `false` when the transition was interrupted (e.g. a close canceled by a
83
+ * re-open). `position` is the resolved translateY (px from screen top) target.
84
+ * Available on Tamagui's custom Sheet, not the native iOS system sheet.
85
+ */
86
+ onTransition?: (e: SheetTransitionEvent) => void;
87
+ }>;
88
+ export type SheetTransitionCause = 'open' | 'close' | 'snap';
89
+ export type SheetTransitionEvent = {
90
+ phase: 'start' | 'end';
91
+ cause: SheetTransitionCause;
92
+ position: number;
93
+ finished?: boolean;
94
+ };
82
95
  export type PositionChangeHandler = (position: number) => void;
83
96
  type OpenChangeHandler = ((open: boolean) => void) | React.Dispatch<React.SetStateAction<boolean>>;
84
97
  export type RemoveScrollProps = React.ComponentProps<typeof RemoveScroll>;
85
98
  export type SnapPointsMode = 'percent' | 'constant' | 'fit' | 'mixed';
86
- export type SheetScopedProps<A> = ScopedProps<A, 'Sheet'>;
87
99
  export type ScrollBridge = {
88
100
  enabled: boolean;
89
101
  y: number;
@@ -152,5 +164,19 @@ export interface KeyboardControllerSheetResult {
152
164
  */
153
165
  flushPendingHide: () => void;
154
166
  }
167
+ export type SheetDragSurfaceProps = {
168
+ /** react-native-gesture-handler is set up and owns the drag (native only) */
169
+ gestureHandlerEnabled: boolean;
170
+ /** the `Gesture.Pan` to attach when gesture handler owns the drag */
171
+ panGesture: any;
172
+ /** the PanResponder config to drive the drag with otherwise, null when dragging is off */
173
+ panConfig: PanResponderConfig | null;
174
+ children?: ReactNode;
175
+ };
176
+ export type SheetNativePlatforms = 'ios';
177
+ export type SheetNativeModal = {
178
+ ModalSheetView: any;
179
+ ModalSheetViewMainContent: any;
180
+ };
155
181
  export {};
156
182
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,MAAM,UAAU,GAAG,WAAW,CAClC;IACE,IAAI,CA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W,6BAA6B;IAC5C;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAA;IAElC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAA;IAE1B;;;OAGG;IACH,eAAe,EAAE,MAAM,IAAI,CAAA;IAE3B;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IAE9C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,6EAA6E;IAC7E,qBAAqB,EAAE,OAAO,CAAA;IAC9B,qEAAqE;IACrE,UAAU,EAAE,GAAG,CAAA;IACf,0FAA0F;IAC1F,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAA;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,GAAG,CAAA;IACnB,yBAAyB,EAAE,GAAG,CAAA;CAC/B,CAAA"}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Native implementation of keyboard controller sheet hook.
2
+ * native implementation of keyboard controller sheet hook.
3
3
  *
4
- * Simplified to just track keyboard state (height, visibility).
5
- * Position animation is handled by SheetImplementationCustom via
6
- * keyboard-adjusted positions — matching the react-native-actions-sheet pattern.
4
+ * simplified to just track keyboard state (height, visibility).
5
+ * position animation is handled by SheetImplementationCustom via
6
+ * keyboard-adjusted positions, matching the react-native-actions-sheet pattern.
7
7
  *
8
- * Uses react-native-keyboard-controller events when available,
9
- * falls back to basic Keyboard API otherwise.
8
+ * uses React Native keyboard events for state. The optional keyboard-controller
9
+ * integration is only used for imperative dismissal.
10
10
  */
11
11
  import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
12
12
  export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardControllerSheet.native.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAchB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CAuG/B"}
1
+ {"version":3,"file":"useKeyboardControllerSheet.native.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAchB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CA0E/B"}
@@ -2,19 +2,11 @@ import * as React from 'react';
2
2
  import type { SafeAreaInsets } from './useSafeAreaInsets';
3
3
  export declare const SafeAreaInsetsContext: React.Context<SafeAreaInsets | null>;
4
4
  /**
5
- * Live safe-area insets (notch / status bar / home indicator) read from the
6
- * context the app's SafeAreaProvider provides.
5
+ * live safe-area insets (notch / status bar / home indicator).
7
6
  *
8
- * Read this in a component BODY that renders inside the provider. The Sheet does
9
- * exactly that — only its modal CONTENT is teleported out through the portal, so
10
- * the body still sees the real insets. This is the one read that works in real
11
- * native bundles:
12
- * - `getSafeArea()` (the @tamagui/native abstraction) is frequently NOT enabled
13
- * against the instance a component reads, so it returns 0.
14
- * - a dynamic `require('react-native-safe-area-context')` throws "Unknown named
15
- * module" in metro/rolldown bundles where the package isn't in the importing
16
- * module's graph.
17
- * A static import + context read avoids both.
7
+ * setup-safe-area installs a context-to-store feed so every store subscriber
8
+ * sees provider updates. Without that setup, keep the direct context read that
9
+ * lets Sheet work independently.
18
10
  */
19
11
  export declare function useSafeAreaInsets(): SafeAreaInsets | null;
20
12
  //# sourceMappingURL=useSafeAreaInsets.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKzD,eAAO,MAAM,qBAAqB,EACM,KAAK,CAAC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;AAE5E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAEzD"}
1
+ {"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKzD,eAAO,MAAM,qBAAqB,EACM,KAAK,CAAC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;AAQ5E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAUzD"}
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- export declare const useSheetController: () => {
1
+ import type React from 'react';
2
+ import { type StyledContext } from '@tamagui/core';
3
+ import type { SheetTransitionEvent } from './types';
4
+ export declare const useSheetController: (scope?: string) => {
3
5
  controller: SheetControllerContextValue | null;
4
6
  isHidden: boolean | undefined;
5
7
  isShowingNonSheet: boolean | undefined;
6
8
  disableDrag: boolean | undefined;
7
9
  };
8
- export declare const SheetControllerContext: React.Context<SheetControllerContextValue | null>;
10
+ export declare const SheetControllerContext: StyledContext<SheetControllerContextValue> & React.Context<SheetControllerContextValue | null>;
9
11
  export type SheetControllerContextValue = {
10
12
  id?: string;
11
13
  disableDrag?: boolean;
12
14
  open?: boolean;
13
15
  hidden?: boolean;
14
16
  onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((val: boolean) => void);
15
- onAnimationComplete?: (state: {
16
- open: boolean;
17
- }) => void;
17
+ onTransition?: (e: SheetTransitionEvent) => void;
18
18
  skipNextAnimation?: boolean;
19
19
  };
20
20
  //# sourceMappingURL=useSheetController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetController.d.ts","sourceRoot":"","sources":["../src/useSheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB;;;;;CAU9B,CAAA;AAED,eAAO,MAAM,sBAAsB,mDAC4B,CAAA;AAE/D,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,CAAA;IAIvF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IAExD,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"useSheetController.d.ts","sourceRoot":"","sources":["../src/useSheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;AAEvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,eAAO,MAAM,kBAAkB,WAAY,MAAM;;;;;CAYhD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAG9B,aAAa,CAAC,2BAA2B,CAAC,GAC7C,KAAK,CAAC,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,CAAA;IAIvF,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAEhD,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,eAAO,MAAM,qBAAqB,GAAI,kEAMnC,iBAAiB,WAwCnB,CAAA"}
1
+ {"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,eAAO,MAAM,qBAAqB,qEAM/B,iBAAiB,WAwCnB,CAAA"}
@@ -1,9 +1,10 @@
1
1
  import type { SheetProps } from './types';
2
+ import type { SheetControllerContextValue } from './useSheetController';
2
3
  export declare const useSheetOpenState: (props: SheetProps) => {
3
4
  open: boolean;
4
- setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ setOpen: import("@tamagui/use-controllable-state").ControllableStateSetter<boolean, import("@tamagui/web").TamaguiChangeEventDetails>;
5
6
  isHidden: boolean | undefined;
6
- controller: import("./useSheetController").SheetControllerContextValue | null;
7
+ controller: SheetControllerContextValue | null;
7
8
  };
8
9
  export type SheetOpenState = ReturnType<typeof useSheetOpenState>;
9
10
  //# sourceMappingURL=useSheetOpenState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,eAAO,MAAM,iBAAiB,GAAI,OAAO,UAAU;;;;;CAyBlD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
1
+ {"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,iBAAiB,UAAW,UAAU;;;;;CAoElD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -8,16 +8,14 @@ export type SheetContextValue = ReturnType<typeof useSheetProviderProps> & {
8
8
  keyboardStableFrameHeight: number;
9
9
  setHasScrollView: (val: boolean) => void;
10
10
  };
11
- export declare function useSheetProviderProps(props: SheetProps, state: SheetOpenState, options?: {
12
- onOverlayComponent?: (comp: any) => void;
13
- }): {
11
+ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpenState): {
14
12
  screenSize: number;
15
13
  maxSnapPoint: string | number;
16
14
  disableRemoveScroll: boolean;
17
15
  scrollBridge: ScrollBridge;
18
16
  modal: boolean;
19
17
  open: boolean;
20
- setOpen: React.Dispatch<React.SetStateAction<boolean>>;
18
+ setOpen: import("@tamagui/use-controllable-state").ControllableStateSetter<boolean, import("@tamagui/core").TamaguiChangeEventDetails>;
21
19
  hidden: boolean;
22
20
  contentRef: React.RefObject<TamaguiElement | null>;
23
21
  handleRef: React.RefObject<TamaguiElement | null>;
@@ -25,15 +23,14 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
25
23
  setFrameSize: React.Dispatch<React.SetStateAction<number>>;
26
24
  dismissOnOverlayPress: boolean;
27
25
  dismissOnSnapToBottom: boolean;
28
- onOverlayComponent: ((comp: any) => void) | undefined;
29
- scope: import("@tamagui/create-context").Scope<any>;
26
+ scope: string;
30
27
  hasFit: boolean;
31
28
  position: number;
32
29
  snapPoints: (string | number)[];
33
30
  snapPointsMode: import("./types").SnapPointsMode;
34
31
  setMaxContentSize: React.Dispatch<React.SetStateAction<number>>;
35
32
  setPosition: (next: number) => void;
36
- setPositionImmediate: React.Dispatch<React.SetStateAction<number>>;
37
- onlyShowFrame: boolean;
33
+ setPositionImmediate: import("@tamagui/use-controllable-state").ControllableStateSetter<number, import("@tamagui/core").TamaguiChangeEventDetails>;
34
+ onlyShowContainer: boolean;
38
35
  };
39
36
  //# sourceMappingURL=useSheetProviderProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetProviderProps.d.ts","sourceRoot":"","sources":["../src/useSheetProviderProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzE,sBAAsB,EAAE,MAAM,CAAA;IAK9B,iBAAiB,EAAE,OAAO,CAAA;IAK1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE;IACP,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;CACpC;;;;;;;;;;;;;;;gCADwB,GAAG,KAAK,IAAI;;;;;;;wBAoCjC,MAAM;;;EAyKhB"}
1
+ {"version":3,"file":"useSheetProviderProps.d.ts","sourceRoot":"","sources":["../src/useSheetProviderProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzE,sBAAsB,EAAE,MAAM,CAAA;IAK9B,iBAAiB,EAAE,OAAO,CAAA;IAK1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;wBAkCnE,MAAM;;;EAwJhB"}
@@ -1,7 +1,7 @@
1
- import type { ScrollView as RNScrollView } from 'react-native';
1
+ import type { ScrollViewRef } from '@tamagui/scroll-view';
2
2
  import type { ScrollBridge } from './types';
3
3
  interface UseSheetScrollViewGesturesProps {
4
- scrollRef: React.RefObject<RNScrollView | null>;
4
+ scrollRef: React.RefObject<ScrollViewRef | null>;
5
5
  scrollBridge: ScrollBridge;
6
6
  hasScrollableContent: boolean;
7
7
  scrollEnabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAc3C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAA;IAC/C,YAAY,EAAE,YAAY,CAAA;IAC1B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACxD;AAED,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,cAAc,GACf,EAAE,+BAA+B,MAkNjC"}
1
+ {"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAc3C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAChD,YAAY,EAAE,YAAY,CAAA;IAC1B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACxD;AAED,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,cAAc,GACf,EAAE,+BAA+B,MAkNjC"}
@@ -1,2 +0,0 @@
1
- $ tamagui-build
2
- built @tamagui/sheet in 5294 ms
@@ -1,2 +0,0 @@
1
- // compat with tamagui static compiler
2
- Object.assign(module.exports, require('../dist/cjs/controller.native.js'))
@@ -1,5 +0,0 @@
1
- // Type declarations for @tamagui/sheet/controller path resolution
2
- // Runtime uses exports field -> dist/esm/controller.mjs
3
-
4
- export { SheetController } from '../src/SheetController'
5
- export { SheetControllerContext, useSheetController, type SheetControllerContextValue } from '../src/useSheetController'
@@ -1,2 +0,0 @@
1
- // compat with metro without package exports
2
- Object.assign(module.exports, require('../dist/cjs/controller.native.js'))
@@ -1,2 +0,0 @@
1
- // compat with tamagui static compiler
2
- Object.assign(module.exports, require('../dist/cjs/controller.native.js'))