@hanzogui/sheet 3.0.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/controller/index.cjs +1 -1
  2. package/controller/index.native.cjs +1 -1
  3. package/next.md +2 -2
  4. package/package.json +24 -24
  5. package/setup-gesture-handler/index.cjs +1 -1
  6. package/setup-gesture-handler/index.native.cjs +1 -1
  7. package/src/Sheet.tsx +3 -3
  8. package/src/SheetController.tsx +4 -1
  9. package/src/SheetImplementationCustom.tsx +24 -13
  10. package/src/createSheet.tsx +9 -9
  11. package/src/setupGestureHandler.ts +2 -2
  12. package/src/useSheetController.tsx +4 -0
  13. package/src/useSheetProviderProps.tsx +4 -4
  14. package/types/Sheet.d.ts +51 -51
  15. package/types/SheetContext.d.ts +8 -8
  16. package/types/SheetController.d.ts +1 -1
  17. package/types/SheetImplementationCustom.d.ts +4 -4
  18. package/types/SheetScrollView.d.ts +10 -10
  19. package/types/createSheet.d.ts +39 -39
  20. package/types/gestureState.d.ts +3 -3
  21. package/types/setupGestureHandler.d.ts +1 -1
  22. package/types/types.d.ts +4 -4
  23. package/types/useSheetController.d.ts +3 -0
  24. package/types/useSheetProviderProps.d.ts +4 -4
  25. package/dist/cjs/GestureDetectorWrapper.cjs +0 -48
  26. package/dist/cjs/GestureDetectorWrapper.native.js +0 -53
  27. package/dist/cjs/GestureDetectorWrapper.native.js.map +0 -1
  28. package/dist/cjs/GestureSheetContext.cjs +0 -52
  29. package/dist/cjs/GestureSheetContext.native.js +0 -56
  30. package/dist/cjs/GestureSheetContext.native.js.map +0 -1
  31. package/dist/cjs/Sheet.cjs +0 -117
  32. package/dist/cjs/Sheet.native.js +0 -120
  33. package/dist/cjs/Sheet.native.js.map +0 -1
  34. package/dist/cjs/SheetContext.cjs +0 -32
  35. package/dist/cjs/SheetContext.native.js +0 -35
  36. package/dist/cjs/SheetContext.native.js.map +0 -1
  37. package/dist/cjs/SheetController.cjs +0 -65
  38. package/dist/cjs/SheetController.native.js +0 -71
  39. package/dist/cjs/SheetController.native.js.map +0 -1
  40. package/dist/cjs/SheetImplementationCustom.cjs +0 -472
  41. package/dist/cjs/SheetImplementationCustom.native.js +0 -524
  42. package/dist/cjs/SheetImplementationCustom.native.js.map +0 -1
  43. package/dist/cjs/SheetScrollView.cjs +0 -180
  44. package/dist/cjs/SheetScrollView.native.js +0 -197
  45. package/dist/cjs/SheetScrollView.native.js.map +0 -1
  46. package/dist/cjs/constants.cjs +0 -32
  47. package/dist/cjs/constants.native.js +0 -35
  48. package/dist/cjs/constants.native.js.map +0 -1
  49. package/dist/cjs/contexts.cjs +0 -42
  50. package/dist/cjs/contexts.native.js +0 -45
  51. package/dist/cjs/contexts.native.js.map +0 -1
  52. package/dist/cjs/controller.cjs +0 -29
  53. package/dist/cjs/controller.native.js +0 -32
  54. package/dist/cjs/controller.native.js.map +0 -1
  55. package/dist/cjs/createSheet.cjs +0 -191
  56. package/dist/cjs/createSheet.native.js +0 -208
  57. package/dist/cjs/createSheet.native.js.map +0 -1
  58. package/dist/cjs/gestureState.cjs +0 -39
  59. package/dist/cjs/gestureState.native.js +0 -42
  60. package/dist/cjs/gestureState.native.js.map +0 -1
  61. package/dist/cjs/helpers.cjs +0 -31
  62. package/dist/cjs/helpers.native.js +0 -35
  63. package/dist/cjs/helpers.native.js.map +0 -1
  64. package/dist/cjs/index.cjs +0 -28
  65. package/dist/cjs/index.native.js +0 -31
  66. package/dist/cjs/index.native.js.map +0 -1
  67. package/dist/cjs/nativeSheet.cjs +0 -87
  68. package/dist/cjs/nativeSheet.native.js +0 -101
  69. package/dist/cjs/nativeSheet.native.js.map +0 -1
  70. package/dist/cjs/setupGestureHandler.cjs +0 -46
  71. package/dist/cjs/setupGestureHandler.native.js +0 -50
  72. package/dist/cjs/setupGestureHandler.native.js.map +0 -1
  73. package/dist/cjs/types.cjs +0 -16
  74. package/dist/cjs/types.native.js +0 -19
  75. package/dist/cjs/types.native.js.map +0 -1
  76. package/dist/cjs/useGestureHandlerPan.cjs +0 -136
  77. package/dist/cjs/useGestureHandlerPan.native.js +0 -145
  78. package/dist/cjs/useGestureHandlerPan.native.js.map +0 -1
  79. package/dist/cjs/useKeyboardControllerSheet.cjs +0 -38
  80. package/dist/cjs/useKeyboardControllerSheet.native.js +0 -114
  81. package/dist/cjs/useKeyboardControllerSheet.native.js.map +0 -1
  82. package/dist/cjs/useSheet.cjs +0 -27
  83. package/dist/cjs/useSheet.native.js +0 -32
  84. package/dist/cjs/useSheet.native.js.map +0 -1
  85. package/dist/cjs/useSheetController.cjs +0 -50
  86. package/dist/cjs/useSheetController.native.js +0 -53
  87. package/dist/cjs/useSheetController.native.js.map +0 -1
  88. package/dist/cjs/useSheetOffscreenSize.cjs +0 -51
  89. package/dist/cjs/useSheetOffscreenSize.native.js +0 -61
  90. package/dist/cjs/useSheetOffscreenSize.native.js.map +0 -1
  91. package/dist/cjs/useSheetOpenState.cjs +0 -49
  92. package/dist/cjs/useSheetOpenState.native.js +0 -56
  93. package/dist/cjs/useSheetOpenState.native.js.map +0 -1
  94. package/dist/cjs/useSheetProviderProps.cjs +0 -133
  95. package/dist/cjs/useSheetProviderProps.native.js +0 -153
  96. package/dist/cjs/useSheetProviderProps.native.js.map +0 -1
  97. package/dist/cjs/useSheetScrollViewGestures.cjs +0 -123
  98. package/dist/cjs/useSheetScrollViewGestures.native.js +0 -110
  99. package/dist/cjs/useSheetScrollViewGestures.native.js.map +0 -1
  100. package/dist/esm/GestureDetectorWrapper.mjs +0 -25
  101. package/dist/esm/GestureDetectorWrapper.mjs.map +0 -1
  102. package/dist/esm/GestureDetectorWrapper.native.js +0 -27
  103. package/dist/esm/GestureDetectorWrapper.native.js.map +0 -1
  104. package/dist/esm/GestureSheetContext.mjs +0 -28
  105. package/dist/esm/GestureSheetContext.mjs.map +0 -1
  106. package/dist/esm/GestureSheetContext.native.js +0 -29
  107. package/dist/esm/GestureSheetContext.native.js.map +0 -1
  108. package/dist/esm/Sheet.mjs +0 -89
  109. package/dist/esm/Sheet.mjs.map +0 -1
  110. package/dist/esm/Sheet.native.js +0 -89
  111. package/dist/esm/Sheet.native.js.map +0 -1
  112. package/dist/esm/SheetContext.mjs +0 -6
  113. package/dist/esm/SheetContext.mjs.map +0 -1
  114. package/dist/esm/SheetContext.native.js +0 -6
  115. package/dist/esm/SheetContext.native.js.map +0 -1
  116. package/dist/esm/SheetController.mjs +0 -31
  117. package/dist/esm/SheetController.mjs.map +0 -1
  118. package/dist/esm/SheetController.native.js +0 -34
  119. package/dist/esm/SheetController.native.js.map +0 -1
  120. package/dist/esm/SheetImplementationCustom.mjs +0 -437
  121. package/dist/esm/SheetImplementationCustom.mjs.map +0 -1
  122. package/dist/esm/SheetImplementationCustom.native.js +0 -487
  123. package/dist/esm/SheetImplementationCustom.native.js.map +0 -1
  124. package/dist/esm/SheetScrollView.mjs +0 -146
  125. package/dist/esm/SheetScrollView.mjs.map +0 -1
  126. package/dist/esm/SheetScrollView.native.js +0 -160
  127. package/dist/esm/SheetScrollView.native.js.map +0 -1
  128. package/dist/esm/constants.mjs +0 -6
  129. package/dist/esm/constants.mjs.map +0 -1
  130. package/dist/esm/constants.native.js +0 -6
  131. package/dist/esm/constants.native.js.map +0 -1
  132. package/dist/esm/contexts.mjs +0 -7
  133. package/dist/esm/contexts.mjs.map +0 -1
  134. package/dist/esm/contexts.native.js +0 -7
  135. package/dist/esm/contexts.native.js.map +0 -1
  136. package/dist/esm/controller.mjs +0 -4
  137. package/dist/esm/controller.mjs.map +0 -1
  138. package/dist/esm/controller.native.js +0 -4
  139. package/dist/esm/controller.native.js.map +0 -1
  140. package/dist/esm/createSheet.mjs +0 -168
  141. package/dist/esm/createSheet.mjs.map +0 -1
  142. package/dist/esm/createSheet.native.js +0 -182
  143. package/dist/esm/createSheet.native.js.map +0 -1
  144. package/dist/esm/gestureState.mjs +0 -13
  145. package/dist/esm/gestureState.mjs.map +0 -1
  146. package/dist/esm/gestureState.native.js +0 -13
  147. package/dist/esm/gestureState.native.js.map +0 -1
  148. package/dist/esm/helpers.mjs +0 -8
  149. package/dist/esm/helpers.mjs.map +0 -1
  150. package/dist/esm/helpers.native.js +0 -9
  151. package/dist/esm/helpers.native.js.map +0 -1
  152. package/dist/esm/index.js +0 -12
  153. package/dist/esm/index.js.map +0 -1
  154. package/dist/esm/index.mjs +0 -12
  155. package/dist/esm/index.mjs.map +0 -1
  156. package/dist/esm/index.native.js +0 -12
  157. package/dist/esm/index.native.js.map +0 -1
  158. package/dist/esm/nativeSheet.mjs +0 -63
  159. package/dist/esm/nativeSheet.mjs.map +0 -1
  160. package/dist/esm/nativeSheet.native.js +0 -74
  161. package/dist/esm/nativeSheet.native.js.map +0 -1
  162. package/dist/esm/setupGestureHandler.mjs +0 -22
  163. package/dist/esm/setupGestureHandler.mjs.map +0 -1
  164. package/dist/esm/setupGestureHandler.native.js +0 -23
  165. package/dist/esm/setupGestureHandler.native.js.map +0 -1
  166. package/dist/esm/types.mjs +0 -2
  167. package/dist/esm/types.mjs.map +0 -1
  168. package/dist/esm/types.native.js +0 -2
  169. package/dist/esm/types.native.js.map +0 -1
  170. package/dist/esm/useGestureHandlerPan.mjs +0 -113
  171. package/dist/esm/useGestureHandlerPan.mjs.map +0 -1
  172. package/dist/esm/useGestureHandlerPan.native.js +0 -119
  173. package/dist/esm/useGestureHandlerPan.native.js.map +0 -1
  174. package/dist/esm/useKeyboardControllerSheet.mjs +0 -15
  175. package/dist/esm/useKeyboardControllerSheet.mjs.map +0 -1
  176. package/dist/esm/useKeyboardControllerSheet.native.js +0 -88
  177. package/dist/esm/useKeyboardControllerSheet.native.js.map +0 -1
  178. package/dist/esm/useSheet.mjs +0 -4
  179. package/dist/esm/useSheet.mjs.map +0 -1
  180. package/dist/esm/useSheet.native.js +0 -6
  181. package/dist/esm/useSheet.native.js.map +0 -1
  182. package/dist/esm/useSheetController.mjs +0 -15
  183. package/dist/esm/useSheetController.mjs.map +0 -1
  184. package/dist/esm/useSheetController.native.js +0 -15
  185. package/dist/esm/useSheetController.native.js.map +0 -1
  186. package/dist/esm/useSheetOffscreenSize.mjs +0 -28
  187. package/dist/esm/useSheetOffscreenSize.mjs.map +0 -1
  188. package/dist/esm/useSheetOffscreenSize.native.js +0 -35
  189. package/dist/esm/useSheetOffscreenSize.native.js.map +0 -1
  190. package/dist/esm/useSheetOpenState.mjs +0 -26
  191. package/dist/esm/useSheetOpenState.mjs.map +0 -1
  192. package/dist/esm/useSheetOpenState.native.js +0 -30
  193. package/dist/esm/useSheetOpenState.native.js.map +0 -1
  194. package/dist/esm/useSheetProviderProps.mjs +0 -99
  195. package/dist/esm/useSheetProviderProps.mjs.map +0 -1
  196. package/dist/esm/useSheetProviderProps.native.js +0 -116
  197. package/dist/esm/useSheetProviderProps.native.js.map +0 -1
  198. package/dist/esm/useSheetScrollViewGestures.mjs +0 -100
  199. package/dist/esm/useSheetScrollViewGestures.mjs.map +0 -1
  200. package/dist/esm/useSheetScrollViewGestures.native.js +0 -84
  201. package/dist/esm/useSheetScrollViewGestures.native.js.map +0 -1
  202. package/dist/jsx/GestureDetectorWrapper.mjs +0 -25
  203. package/dist/jsx/GestureDetectorWrapper.mjs.map +0 -1
  204. package/dist/jsx/GestureDetectorWrapper.native.js +0 -53
  205. package/dist/jsx/GestureDetectorWrapper.native.js.map +0 -1
  206. package/dist/jsx/GestureSheetContext.mjs +0 -28
  207. package/dist/jsx/GestureSheetContext.mjs.map +0 -1
  208. package/dist/jsx/GestureSheetContext.native.js +0 -56
  209. package/dist/jsx/GestureSheetContext.native.js.map +0 -1
  210. package/dist/jsx/Sheet.mjs +0 -89
  211. package/dist/jsx/Sheet.mjs.map +0 -1
  212. package/dist/jsx/Sheet.native.js +0 -120
  213. package/dist/jsx/Sheet.native.js.map +0 -1
  214. package/dist/jsx/SheetContext.mjs +0 -6
  215. package/dist/jsx/SheetContext.mjs.map +0 -1
  216. package/dist/jsx/SheetContext.native.js +0 -35
  217. package/dist/jsx/SheetContext.native.js.map +0 -1
  218. package/dist/jsx/SheetController.mjs +0 -31
  219. package/dist/jsx/SheetController.mjs.map +0 -1
  220. package/dist/jsx/SheetController.native.js +0 -71
  221. package/dist/jsx/SheetController.native.js.map +0 -1
  222. package/dist/jsx/SheetImplementationCustom.mjs +0 -437
  223. package/dist/jsx/SheetImplementationCustom.mjs.map +0 -1
  224. package/dist/jsx/SheetImplementationCustom.native.js +0 -524
  225. package/dist/jsx/SheetImplementationCustom.native.js.map +0 -1
  226. package/dist/jsx/SheetScrollView.mjs +0 -146
  227. package/dist/jsx/SheetScrollView.mjs.map +0 -1
  228. package/dist/jsx/SheetScrollView.native.js +0 -197
  229. package/dist/jsx/SheetScrollView.native.js.map +0 -1
  230. package/dist/jsx/constants.mjs +0 -6
  231. package/dist/jsx/constants.mjs.map +0 -1
  232. package/dist/jsx/constants.native.js +0 -35
  233. package/dist/jsx/constants.native.js.map +0 -1
  234. package/dist/jsx/contexts.mjs +0 -7
  235. package/dist/jsx/contexts.mjs.map +0 -1
  236. package/dist/jsx/contexts.native.js +0 -45
  237. package/dist/jsx/contexts.native.js.map +0 -1
  238. package/dist/jsx/controller.mjs +0 -4
  239. package/dist/jsx/controller.mjs.map +0 -1
  240. package/dist/jsx/controller.native.js +0 -32
  241. package/dist/jsx/controller.native.js.map +0 -1
  242. package/dist/jsx/createSheet.mjs +0 -168
  243. package/dist/jsx/createSheet.mjs.map +0 -1
  244. package/dist/jsx/createSheet.native.js +0 -208
  245. package/dist/jsx/createSheet.native.js.map +0 -1
  246. package/dist/jsx/gestureState.mjs +0 -13
  247. package/dist/jsx/gestureState.mjs.map +0 -1
  248. package/dist/jsx/gestureState.native.js +0 -42
  249. package/dist/jsx/gestureState.native.js.map +0 -1
  250. package/dist/jsx/helpers.mjs +0 -8
  251. package/dist/jsx/helpers.mjs.map +0 -1
  252. package/dist/jsx/helpers.native.js +0 -35
  253. package/dist/jsx/helpers.native.js.map +0 -1
  254. package/dist/jsx/index.js +0 -12
  255. package/dist/jsx/index.js.map +0 -1
  256. package/dist/jsx/index.mjs +0 -12
  257. package/dist/jsx/index.mjs.map +0 -1
  258. package/dist/jsx/index.native.js +0 -31
  259. package/dist/jsx/index.native.js.map +0 -1
  260. package/dist/jsx/nativeSheet.mjs +0 -63
  261. package/dist/jsx/nativeSheet.mjs.map +0 -1
  262. package/dist/jsx/nativeSheet.native.js +0 -101
  263. package/dist/jsx/nativeSheet.native.js.map +0 -1
  264. package/dist/jsx/setupGestureHandler.mjs +0 -22
  265. package/dist/jsx/setupGestureHandler.mjs.map +0 -1
  266. package/dist/jsx/setupGestureHandler.native.js +0 -50
  267. package/dist/jsx/setupGestureHandler.native.js.map +0 -1
  268. package/dist/jsx/types.mjs +0 -2
  269. package/dist/jsx/types.mjs.map +0 -1
  270. package/dist/jsx/types.native.js +0 -19
  271. package/dist/jsx/types.native.js.map +0 -1
  272. package/dist/jsx/useGestureHandlerPan.mjs +0 -113
  273. package/dist/jsx/useGestureHandlerPan.mjs.map +0 -1
  274. package/dist/jsx/useGestureHandlerPan.native.js +0 -145
  275. package/dist/jsx/useGestureHandlerPan.native.js.map +0 -1
  276. package/dist/jsx/useKeyboardControllerSheet.mjs +0 -15
  277. package/dist/jsx/useKeyboardControllerSheet.mjs.map +0 -1
  278. package/dist/jsx/useKeyboardControllerSheet.native.js +0 -114
  279. package/dist/jsx/useKeyboardControllerSheet.native.js.map +0 -1
  280. package/dist/jsx/useSheet.mjs +0 -4
  281. package/dist/jsx/useSheet.mjs.map +0 -1
  282. package/dist/jsx/useSheet.native.js +0 -32
  283. package/dist/jsx/useSheet.native.js.map +0 -1
  284. package/dist/jsx/useSheetController.mjs +0 -15
  285. package/dist/jsx/useSheetController.mjs.map +0 -1
  286. package/dist/jsx/useSheetController.native.js +0 -53
  287. package/dist/jsx/useSheetController.native.js.map +0 -1
  288. package/dist/jsx/useSheetOffscreenSize.mjs +0 -28
  289. package/dist/jsx/useSheetOffscreenSize.mjs.map +0 -1
  290. package/dist/jsx/useSheetOffscreenSize.native.js +0 -61
  291. package/dist/jsx/useSheetOffscreenSize.native.js.map +0 -1
  292. package/dist/jsx/useSheetOpenState.mjs +0 -26
  293. package/dist/jsx/useSheetOpenState.mjs.map +0 -1
  294. package/dist/jsx/useSheetOpenState.native.js +0 -56
  295. package/dist/jsx/useSheetOpenState.native.js.map +0 -1
  296. package/dist/jsx/useSheetProviderProps.mjs +0 -99
  297. package/dist/jsx/useSheetProviderProps.mjs.map +0 -1
  298. package/dist/jsx/useSheetProviderProps.native.js +0 -153
  299. package/dist/jsx/useSheetProviderProps.native.js.map +0 -1
  300. package/dist/jsx/useSheetScrollViewGestures.mjs +0 -100
  301. package/dist/jsx/useSheetScrollViewGestures.mjs.map +0 -1
  302. package/dist/jsx/useSheetScrollViewGestures.native.js +0 -110
  303. package/dist/jsx/useSheetScrollViewGestures.native.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import type { SheetContextValue } from './useSheetProviderProps';
2
2
  export declare const createSheetContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [(props: ContextValueType & {
3
- scope: import("@gui/create-context").Scope<ContextValueType>;
3
+ scope: import("@hanzogui/create-context").Scope<ContextValueType>;
4
4
  children: React.ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element, (consumerName: string, scope: import("@gui/create-context").Scope<ContextValueType | undefined>, options?: {
5
+ }) => import("react/jsx-runtime").JSX.Element, (consumerName: string, scope: import("@hanzogui/create-context").Scope<ContextValueType | undefined>, options?: {
6
6
  warn?: boolean;
7
7
  fallback?: Partial<ContextValueType>;
8
- }) => ContextValueType], createSheetScope: import("@gui/create-context").CreateScope;
8
+ }) => ContextValueType], createSheetScope: import("@hanzogui/create-context").CreateScope;
9
9
  export declare const SheetProvider: (props: {
10
10
  screenSize: number;
11
11
  maxSnapPoint: string | number;
@@ -15,14 +15,14 @@ export declare const SheetProvider: (props: {
15
15
  open: boolean;
16
16
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
17
  hidden: boolean;
18
- contentRef: import("react").RefObject<import("@gui/web").GuiElement | null>;
19
- handleRef: import("react").RefObject<import("@gui/web").GuiElement | null>;
18
+ contentRef: import("react").RefObject<import("@hanzogui/web").HanzoguiElement | null>;
19
+ handleRef: import("react").RefObject<import("@hanzogui/web").HanzoguiElement | null>;
20
20
  frameSize: number;
21
21
  setFrameSize: import("react").Dispatch<import("react").SetStateAction<number>>;
22
22
  dismissOnOverlayPress: boolean;
23
23
  dismissOnSnapToBottom: boolean;
24
24
  onOverlayComponent: ((comp: any) => void) | undefined;
25
- scope: import("@gui/create-context").Scope<any>;
25
+ scope: import("@hanzogui/create-context").Scope<any>;
26
26
  hasFit: boolean;
27
27
  position: number;
28
28
  snapPoints: (string | number)[];
@@ -34,9 +34,9 @@ export declare const SheetProvider: (props: {
34
34
  } & {
35
35
  setHasScrollView: (val: boolean) => void;
36
36
  } & {
37
- scope: import("@gui/create-context").Scope<SheetContextValue>;
37
+ scope: import("@hanzogui/create-context").Scope<SheetContextValue>;
38
38
  children: React.ReactNode;
39
- }) => import("react/jsx-runtime").JSX.Element, useSheetContext: (consumerName: string, scope: import("@gui/create-context").Scope<SheetContextValue | undefined>, options?: {
39
+ }) => import("react/jsx-runtime").JSX.Element, useSheetContext: (consumerName: string, scope: import("@hanzogui/create-context").Scope<SheetContextValue | undefined>, options?: {
40
40
  warn?: boolean;
41
41
  fallback?: Partial<SheetContextValue> | undefined;
42
42
  } | undefined) => SheetContextValue;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { SheetControllerContextValue } from './useSheetController';
3
- export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
3
+ export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onAnimationComplete: onAnimationCompleteProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
4
4
  children?: ReactNode;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
6
  //# sourceMappingURL=SheetController.d.ts.map
@@ -15,22 +15,22 @@ export declare const SheetImplementationCustom: React.ForwardRefExoticComponent<
15
15
  dismissOnSnapToBottom?: boolean;
16
16
  disableRemoveScroll?: boolean;
17
17
  forceRemoveScrollEnabled?: boolean;
18
- transitionConfig?: import("@gui/core").AnimatedNumberStrategy;
18
+ transitionConfig?: import("@hanzogui/core").AnimatedNumberStrategy;
19
19
  preferAdaptParentOpenState?: boolean;
20
20
  unmountChildrenWhenHidden?: boolean;
21
21
  native?: "ios"[] | boolean;
22
- transition?: import("@gui/core").TransitionProp;
22
+ transition?: import("@hanzogui/core").TransitionProp;
23
23
  handleDisableScroll?: boolean;
24
24
  disableDrag?: boolean;
25
25
  modal?: boolean;
26
26
  zIndex?: number;
27
- portalProps?: import("@gui/portal").PortalProps;
27
+ portalProps?: import("@hanzogui/portal").PortalProps;
28
28
  moveOnKeyboardChange?: boolean;
29
29
  containerComponent?: React.ComponentType<any>;
30
30
  onAnimationComplete?: (info: {
31
31
  open: boolean;
32
32
  }) => void;
33
33
  } & {
34
- __scopeSheet?: import("@gui/create-context").Scope<any>;
34
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
35
35
  } & React.RefAttributes<View>>;
36
36
  //# sourceMappingURL=SheetImplementationCustom.d.ts.map
@@ -1,35 +1,35 @@
1
1
  import React from 'react';
2
2
  import type { ScrollView as RNScrollView } from 'react-native';
3
- export declare const SheetScrollView: React.ForwardRefExoticComponent<Omit<import("@gui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@gui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
4
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof RNScrollView, {
3
+ export declare const SheetScrollView: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").HanzoguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
4
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
5
5
  accept: {
6
6
  readonly contentContainerStyle: "style";
7
7
  };
8
8
  }>> | undefined;
9
9
  }> & {
10
10
  fullscreen?: boolean | undefined;
11
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
12
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof RNScrollView, {
11
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
12
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
13
13
  accept: {
14
14
  readonly contentContainerStyle: "style";
15
15
  };
16
16
  }>> | undefined;
17
- }>> & import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
18
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof RNScrollView, {
17
+ }>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
18
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
19
19
  accept: {
20
20
  readonly contentContainerStyle: "style";
21
21
  };
22
22
  }>> | undefined;
23
23
  }> & {
24
24
  fullscreen?: boolean | undefined;
25
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
26
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof RNScrollView, {
25
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
26
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
27
27
  accept: {
28
28
  readonly contentContainerStyle: "style";
29
29
  };
30
30
  }>> | undefined;
31
- }>>> & import("@gui/core").WithMediaProps<import("@gui/core").WithThemeShorthandsAndPseudos<import("@gui/core").StackStyleBase & {
32
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof RNScrollView, {
31
+ }>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
32
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
33
33
  accept: {
34
34
  readonly contentContainerStyle: "style";
35
35
  };
@@ -1,4 +1,4 @@
1
- import type { GetProps, ViewProps, GuiComponent, GuiComponentExpectingVariants } from '@gui/core';
1
+ import type { GetProps, ViewProps, HanzoguiComponent, HanzoguiComponentExpectingVariants } from '@hanzogui/core';
2
2
  import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react';
3
3
  import type { View as RNView } from 'react-native';
4
4
  import type { SheetProps, SheetScopedProps } from './types';
@@ -6,8 +6,8 @@ type SharedSheetProps = {
6
6
  open?: boolean;
7
7
  };
8
8
  type BaseProps = ViewProps & SharedSheetProps;
9
- type SheetStyledComponent = GuiComponentExpectingVariants<BaseProps, SharedSheetProps>;
10
- export declare function createSheet<H extends GuiComponent | SheetStyledComponent, F extends GuiComponent | SheetStyledComponent, O extends GuiComponent | SheetStyledComponent>({ Handle, Frame, Overlay }: {
9
+ type SheetStyledComponent = HanzoguiComponentExpectingVariants<BaseProps, SharedSheetProps>;
10
+ export declare function createSheet<H extends HanzoguiComponent | SheetStyledComponent, F extends HanzoguiComponent | SheetStyledComponent, O extends HanzoguiComponent | SheetStyledComponent>({ Handle, Frame, Overlay }: {
11
11
  Handle: H;
12
12
  Frame: F;
13
13
  Overlay: O;
@@ -25,23 +25,23 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
25
25
  dismissOnSnapToBottom?: boolean;
26
26
  disableRemoveScroll?: boolean;
27
27
  forceRemoveScrollEnabled?: boolean;
28
- transitionConfig?: import("@gui/core").AnimatedNumberStrategy;
28
+ transitionConfig?: import("@hanzogui/core").AnimatedNumberStrategy;
29
29
  preferAdaptParentOpenState?: boolean;
30
30
  unmountChildrenWhenHidden?: boolean;
31
31
  native?: "ios"[] | boolean;
32
- transition?: import("@gui/core").TransitionProp;
32
+ transition?: import("@hanzogui/core").TransitionProp;
33
33
  handleDisableScroll?: boolean;
34
34
  disableDrag?: boolean;
35
35
  modal?: boolean;
36
36
  zIndex?: number;
37
- portalProps?: import("@gui/portal").PortalProps;
37
+ portalProps?: import("@hanzogui/portal").PortalProps;
38
38
  moveOnKeyboardChange?: boolean;
39
39
  containerComponent?: React.ComponentType<any>;
40
40
  onAnimationComplete?: (info: {
41
41
  open: boolean;
42
42
  }) => void;
43
43
  } & {
44
- __scopeSheet?: import("@gui/create-context").Scope<any>;
44
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
45
45
  } & RefAttributes<RNView>> & {
46
46
  Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<RNView>> & {
47
47
  Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
@@ -71,44 +71,44 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
71
71
  */
72
72
  adjustPaddingForOffscreenContent?: boolean;
73
73
  }>>;
74
- Overlay: GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
75
- __scopeSheet?: import("@gui/create-context").Scope<any>;
76
- }, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
77
- __scopeSheet?: import("@gui/create-context").Scope<any>;
74
+ Overlay: HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
75
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
76
+ }, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
77
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
78
78
  }, any, {
79
- __scopeSheet?: import("@gui/create-context").Scope<any>;
79
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
80
80
  }, {}, {}, {}>;
81
- Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
82
- ScrollView: ForwardRefExoticComponent<Omit<import("@gui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@gui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
83
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
81
+ Handle: HanzoguiComponent<any, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<any, any, any, {}, {}, {}>;
82
+ ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/core").HanzoguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
83
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
84
84
  accept: {
85
85
  readonly contentContainerStyle: "style";
86
86
  };
87
87
  }>> | undefined;
88
88
  }> & {
89
89
  fullscreen?: boolean | undefined;
90
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
91
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
90
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
91
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
92
92
  accept: {
93
93
  readonly contentContainerStyle: "style";
94
94
  };
95
95
  }>> | undefined;
96
- }>> & import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
97
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
96
+ }>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
97
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
98
98
  accept: {
99
99
  readonly contentContainerStyle: "style";
100
100
  };
101
101
  }>> | undefined;
102
102
  }> & {
103
103
  fullscreen?: boolean | undefined;
104
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
105
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
104
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
105
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
106
106
  accept: {
107
107
  readonly contentContainerStyle: "style";
108
108
  };
109
109
  }>> | undefined;
110
- }>>> & import("@gui/core").WithMediaProps<import("@gui/core").WithThemeShorthandsAndPseudos<import("@gui/core").StackStyleBase & {
111
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
110
+ }>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
111
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
112
112
  accept: {
113
113
  readonly contentContainerStyle: "style";
114
114
  };
@@ -144,44 +144,44 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
144
144
  */
145
145
  adjustPaddingForOffscreenContent?: boolean;
146
146
  }>>;
147
- Overlay: GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
148
- __scopeSheet?: import("@gui/create-context").Scope<any>;
149
- }, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
150
- __scopeSheet?: import("@gui/create-context").Scope<any>;
147
+ Overlay: HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
148
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
149
+ }, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
150
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
151
151
  }, any, {
152
- __scopeSheet?: import("@gui/create-context").Scope<any>;
152
+ __scopeSheet?: import("@hanzogui/create-context").Scope<any>;
153
153
  }, {}, {}, {}>;
154
- Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
155
- ScrollView: ForwardRefExoticComponent<Omit<import("@gui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@gui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
156
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
154
+ Handle: HanzoguiComponent<any, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<any, any, any, {}, {}, {}>;
155
+ ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/core").HanzoguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
156
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
157
157
  accept: {
158
158
  readonly contentContainerStyle: "style";
159
159
  };
160
160
  }>> | undefined;
161
161
  }> & {
162
162
  fullscreen?: boolean | undefined;
163
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
164
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
163
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
164
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
165
165
  accept: {
166
166
  readonly contentContainerStyle: "style";
167
167
  };
168
168
  }>> | undefined;
169
- }>> & import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
170
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
169
+ }>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
170
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
171
171
  accept: {
172
172
  readonly contentContainerStyle: "style";
173
173
  };
174
174
  }>> | undefined;
175
175
  }> & {
176
176
  fullscreen?: boolean | undefined;
177
- } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase & {
178
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
177
+ } & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
178
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
179
179
  accept: {
180
180
  readonly contentContainerStyle: "style";
181
181
  };
182
182
  }>> | undefined;
183
- }>>> & import("@gui/core").WithMediaProps<import("@gui/core").WithThemeShorthandsAndPseudos<import("@gui/core").StackStyleBase & {
184
- readonly contentContainerStyle?: Partial<import("@gui/core").InferStyleProps<typeof import("react-native").ScrollView, {
183
+ }>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
184
+ readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
185
185
  accept: {
186
186
  readonly contentContainerStyle: "style";
187
187
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Re-export gesture state from @gui/native.
2
+ * Re-export gesture state from @hanzogui/native.
3
3
  * Sheet uses this for backward compatibility with existing code.
4
4
  */
5
- import { type GestureState } from '@gui/native';
6
- export type { GestureState as GestureHandlerState } from '@gui/native';
5
+ import { type GestureState } from '@hanzogui/native';
6
+ export type { GestureState as GestureHandlerState } from '@hanzogui/native';
7
7
  export declare function isGestureHandlerEnabled(): boolean;
8
8
  export declare function getGestureHandlerState(): GestureState;
9
9
  export declare function setGestureHandlerState(updates: Partial<GestureState>): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Legacy setup - prefer `import '@gui/native/setup-gesture-handler'` instead.
2
+ * Legacy setup - prefer `import '@hanzogui/native/setup-gesture-handler'` instead.
3
3
  */
4
4
  export declare function isGestureHandlerEnabled(): boolean;
5
5
  export interface SetupGestureHandlerConfig {
package/types/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { AnimatedNumberStrategy, TransitionProp } from '@gui/core';
2
- import type { ScopedProps } from '@gui/create-context';
3
- import type { PortalProps } from '@gui/portal';
4
- import type { RemoveScroll } from '@gui/remove-scroll';
1
+ import type { AnimatedNumberStrategy, TransitionProp } from '@hanzogui/core';
2
+ import type { ScopedProps } from '@hanzogui/create-context';
3
+ import type { PortalProps } from '@hanzogui/portal';
4
+ import type { RemoveScroll } from '@hanzogui/remove-scroll';
5
5
  import type { ReactNode } from 'react';
6
6
  import type React from 'react';
7
7
  export type SheetProps = ScopedProps<{
@@ -12,6 +12,9 @@ export type SheetControllerContextValue = {
12
12
  open?: boolean;
13
13
  hidden?: boolean;
14
14
  onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((val: boolean) => void);
15
+ onAnimationComplete?: (state: {
16
+ open: boolean;
17
+ }) => void;
15
18
  skipNextAnimation?: boolean;
16
19
  };
17
20
  //# sourceMappingURL=useSheetController.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { GuiElement } from '@gui/core';
2
+ import type { HanzoguiElement } from '@hanzogui/core';
3
3
  import type { ScrollBridge, SheetProps } from './types';
4
4
  import type { SheetOpenState } from './useSheetOpenState';
5
5
  export type SheetContextValue = ReturnType<typeof useSheetProviderProps> & {
@@ -16,14 +16,14 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
16
16
  open: boolean;
17
17
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
18
18
  hidden: boolean;
19
- contentRef: React.RefObject<GuiElement | null>;
20
- handleRef: React.RefObject<GuiElement | null>;
19
+ contentRef: React.RefObject<HanzoguiElement | null>;
20
+ handleRef: React.RefObject<HanzoguiElement | null>;
21
21
  frameSize: number;
22
22
  setFrameSize: React.Dispatch<React.SetStateAction<number>>;
23
23
  dismissOnOverlayPress: boolean;
24
24
  dismissOnSnapToBottom: boolean;
25
25
  onOverlayComponent: ((comp: any) => void) | undefined;
26
- scope: import("@gui/create-context").Scope<any>;
26
+ scope: import("@hanzogui/create-context").Scope<any>;
27
27
  hasFit: boolean;
28
28
  position: number;
29
29
  snapPoints: (string | number)[];
@@ -1,48 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !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, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var GestureDetectorWrapper_exports = {};
22
- __export(GestureDetectorWrapper_exports, {
23
- GestureDetectorWrapper: () => GestureDetectorWrapper
24
- });
25
- module.exports = __toCommonJS(GestureDetectorWrapper_exports);
26
- var import_react_native = require("react-native-web"),
27
- import_gestureState = require("./gestureState.cjs"),
28
- import_jsx_runtime = require("react/jsx-runtime");
29
- function GestureDetectorWrapper({
30
- gesture,
31
- children,
32
- style
33
- }) {
34
- const {
35
- GestureDetector
36
- } = (0, import_gestureState.getGestureHandlerState)();
37
- return (0, import_gestureState.isGestureHandlerEnabled)() && GestureDetector && gesture ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
38
- gesture,
39
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
40
- style,
41
- collapsable: !1,
42
- children
43
- })
44
- }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
45
- style,
46
- children
47
- });
48
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !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, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
22
- }), mod);
23
- var GestureDetectorWrapper_exports = {};
24
- __export(GestureDetectorWrapper_exports, {
25
- GestureDetectorWrapper: () => GestureDetectorWrapper
26
- });
27
- module.exports = __toCommonJS(GestureDetectorWrapper_exports);
28
- var import_jsx_runtime = require("react/jsx-runtime"),
29
- import_react_native = require("react-native"),
30
- import_gestureState = require("./gestureState.native.js");
31
- function GestureDetectorWrapper(param) {
32
- var {
33
- gesture,
34
- children,
35
- style
36
- } = param,
37
- {
38
- GestureDetector
39
- } = (0, import_gestureState.getGestureHandlerState)(),
40
- enabled = (0, import_gestureState.isGestureHandlerEnabled)();
41
- return enabled && GestureDetector && gesture ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
42
- gesture,
43
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
44
- style,
45
- collapsable: !1,
46
- children
47
- })
48
- }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
49
- style,
50
- children
51
- });
52
- }
53
- //# sourceMappingURL=GestureDetectorWrapper.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GestureDetectorWrapper_exports","__export","GestureDetectorWrapper","module","exports","import_jsx_runtime","require","import_react_native","import_gestureState","param","gesture","children","style","GestureDetector","getGestureHandlerState","enabled","isGestureHandlerEnabled","jsx","View","collapsable"],"sources":["../../src/GestureDetectorWrapper.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,8BAAA;AAAAC,QAAA,CAAAD,8BAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAqC,CAAAK,8BACrC;AAYO,IAAAK,kBAAS,GAAAC,OAAuB;EAAAC,mBAAA,GAAAD,OAAA;EAAAE,mBAAA,GAAAF,OAAA;AAAA,SACrCJ,uBAAAO,KAAA;EACA;MAAAC,OAAA;MAAAC,QAAA;MAAAC;IAAA,IAAAH,KAAA;IAAA;MAAAI;IAAA,QAAAL,mBAAA,CAAAM,sBAAA;IAAAC,OAAA,OAAAP,mBAAA,CAAAQ,uBAAA;EACA,OAAAD,OAAA,IAAAF,eAAA,IAAAH,OAAA,sBAAAL,kBAAA,CAAAY,GAAA,EAAAJ,eAAA;IAC8BH,OAAA;IAC9BC,QAAQ,iBAAgB,IAAIN,kBAAA,CAAAY,GAAA,EAAAV,mBAAA,CAAuBW,IAAA;MAMnDN,KAAA;MAeFO,WAAA","ignoreList":[]}
@@ -1,52 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !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, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var GestureSheetContext_exports = {};
22
- __export(GestureSheetContext_exports, {
23
- GestureSheetProvider: () => GestureSheetProvider,
24
- useGestureSheetContext: () => useGestureSheetContext
25
- });
26
- module.exports = __toCommonJS(GestureSheetContext_exports);
27
- var import_react = require("react"),
28
- import_jsx_runtime = require("react/jsx-runtime");
29
- const GestureSheetContext = (0, import_react.createContext)(null);
30
- function useGestureSheetContext() {
31
- return (0, import_react.useContext)(GestureSheetContext);
32
- }
33
- function GestureSheetProvider({
34
- children,
35
- isDragging,
36
- blockPan,
37
- setBlockPan,
38
- panGesture,
39
- panGestureRef
40
- }) {
41
- const value = {
42
- panGesture,
43
- panGestureRef,
44
- isDragging,
45
- blockPan,
46
- setBlockPan
47
- };
48
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureSheetContext.Provider, {
49
- value,
50
- children
51
- });
52
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !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, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
22
- }), mod);
23
- var GestureSheetContext_exports = {};
24
- __export(GestureSheetContext_exports, {
25
- GestureSheetProvider: () => GestureSheetProvider,
26
- useGestureSheetContext: () => useGestureSheetContext
27
- });
28
- module.exports = __toCommonJS(GestureSheetContext_exports);
29
- var import_jsx_runtime = require("react/jsx-runtime"),
30
- import_react = require("react"),
31
- GestureSheetContext = /* @__PURE__ */(0, import_react.createContext)(null);
32
- function useGestureSheetContext() {
33
- return (0, import_react.useContext)(GestureSheetContext);
34
- }
35
- function GestureSheetProvider(param) {
36
- var {
37
- children,
38
- isDragging,
39
- blockPan,
40
- setBlockPan,
41
- panGesture,
42
- panGestureRef
43
- } = param,
44
- value = {
45
- panGesture,
46
- panGestureRef,
47
- isDragging,
48
- blockPan,
49
- setBlockPan
50
- };
51
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureSheetContext.Provider, {
52
- value,
53
- children
54
- });
55
- }
56
- //# sourceMappingURL=GestureSheetContext.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GestureSheetContext_exports","__export","GestureSheetProvider","useGestureSheetContext","module","exports","import_jsx_runtime","require","import_react","GestureSheetContext","createContext","useContext","param","children","isDragging","blockPan","setBlockPan","panGesture","panGestureRef","jsx","Provider"],"sources":["../../src/GestureSheetContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAV,YAA0D,CAAAK,2BA0DtD;AAhCJ,IAAAM,kBAAM,GAAAC,OAAsB;EAAAC,YAAmD,GAAAD,OAAA;EAAAE,mBAAA,sBAAAD,YAAA,CAAAE,aAAA;AAExE,SAASP,uBAAA,EAA0D;EACxE,WAAOK,YAAA,CAAAG,UAAA,EAAWF,mBAAmB;AACvC;AAWO,SAASP,qBAAqBU,KAAA;EACnC;MAAAC,QAAA;MAAAC,UAAA;MAAAC,QAAA;MAAAC,WAAA;MAAAC,UAAA;MAAAC;IAAA,IAAAN,KAAA;IAAAb,KAAA;MACAkB,UAAA;MACAC,aAAA;MACAJ,UAAA;MACAC,QAAA;MACAC;IACF,CAA8B;EAC5B,OAAM,eAAkC,IAAAV,kBAAA,CAAAa,GAAA,EAAAV,mBAAA,CAAAW,QAAA;IACtCrB,KAAA;IACAc;EAAA,EACA;AAAA","ignoreList":[]}