@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,180 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
32
- var SheetScrollView_exports = {};
33
- __export(SheetScrollView_exports, {
34
- SheetScrollView: () => SheetScrollView
35
- });
36
- module.exports = __toCommonJS(SheetScrollView_exports);
37
- var import_gui_compose_refs = require("@hanzogui/compose-refs"),
38
- import_gui_core = require("@hanzogui/core"),
39
- import_gui_scroll_view = require("@hanzogui/scroll-view"),
40
- import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
41
- import_react = __toESM(require("react"), 1),
42
- import_GestureSheetContext = require("./GestureSheetContext.cjs"),
43
- import_gestureState = require("./gestureState.cjs"),
44
- import_SheetContext = require("./SheetContext.cjs"),
45
- import_useSheetScrollViewGestures = require("./useSheetScrollViewGestures.cjs"),
46
- import_jsx_runtime = require("react/jsx-runtime");
47
- const SHEET_SCROLL_VIEW_NAME = "SheetScrollView",
48
- SheetScrollView = import_react.default.forwardRef(({
49
- __scopeSheet,
50
- children,
51
- onScroll,
52
- scrollEnabled: scrollEnabledProp,
53
- ...props
54
- }, ref) => {
55
- const context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet),
56
- gestureContext = (0, import_GestureSheetContext.useGestureSheetContext)(),
57
- {
58
- scrollBridge,
59
- setHasScrollView
60
- } = context,
61
- [scrollEnabled] = (0, import_gui_use_controllable_state.useControllableState)({
62
- prop: scrollEnabledProp,
63
- defaultProp: !0
64
- }),
65
- scrollRef = import_react.default.useRef(null),
66
- panGestureRef = gestureContext?.panGestureRef,
67
- {
68
- ScrollView: RNGHScrollView
69
- } = (0, import_gestureState.getGestureHandlerState)(),
70
- useRNGHScrollView = (0, import_gestureState.isGestureHandlerEnabled)() && RNGHScrollView && panGestureRef,
71
- currentScrollOffset = (0, import_react.useRef)(0),
72
- lockedScrollY = (0, import_react.useRef)(0),
73
- setScrollEnabled = (next, lockTo) => {
74
- if (next) lockedScrollY.current = currentScrollOffset.current, scrollBridge.scrollLockY = void 0;else {
75
- const lockY = lockTo ?? currentScrollOffset.current;
76
- lockedScrollY.current = lockY, scrollBridge.scrollLockY = lockY, scrollRef.current?.scrollTo?.({
77
- x: 0,
78
- y: lockY,
79
- animated: !1
80
- });
81
- }
82
- },
83
- forceScrollTo = y => {
84
- scrollRef.current?.scrollTo?.({
85
- x: 0,
86
- y,
87
- animated: !1
88
- });
89
- };
90
- (0, import_react.useEffect)(() => (setHasScrollView(!0), (0, import_gestureState.isGestureHandlerEnabled)() && (scrollBridge.setScrollEnabled = setScrollEnabled, scrollBridge.forceScrollTo = forceScrollTo), () => {
91
- setHasScrollView(!1), scrollBridge.setScrollEnabled = void 0, scrollBridge.forceScrollTo = void 0;
92
- }), []);
93
- const [hasScrollableContent, setHasScrollableContent] = (0, import_react.useState)(!0),
94
- parentHeight = (0, import_react.useRef)(0),
95
- contentHeight = (0, import_react.useRef)(0),
96
- updateScrollable = () => {
97
- parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
98
- };
99
- (0, import_react.useEffect)(() => {
100
- scrollBridge.hasScrollableContent = hasScrollableContent;
101
- }, [hasScrollableContent]);
102
- const gestureProps = (0, import_useSheetScrollViewGestures.useSheetScrollViewGestures)({
103
- scrollRef,
104
- scrollBridge,
105
- hasScrollableContent,
106
- scrollEnabled,
107
- setScrollEnabled
108
- }),
109
- contentWrapper = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_core.View, {
110
- onLayout: e => {
111
- const height = Math.floor(e.nativeEvent.layout.height);
112
- height !== contentHeight.current && (contentHeight.current = height, updateScrollable());
113
- },
114
- children
115
- });
116
- return useRNGHScrollView && RNGHScrollView && panGestureRef ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(RNGHScrollView, {
117
- ref: (0, import_gui_compose_refs.composeRefs)(scrollRef, ref),
118
- style: {
119
- flex: 1
120
- },
121
- scrollEventThrottle: 1,
122
- scrollEnabled,
123
- simultaneousHandlers: [panGestureRef],
124
- onLayout: e => {
125
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
126
- },
127
- onScroll: e => {
128
- const {
129
- y
130
- } = e.nativeEvent.contentOffset;
131
- if (currentScrollOffset.current = y, scrollBridge.scrollLockY !== void 0) {
132
- y !== scrollBridge.scrollLockY && scrollRef.current?.scrollTo?.({
133
- x: 0,
134
- y: scrollBridge.scrollLockY,
135
- animated: !1
136
- }), scrollBridge.y = scrollBridge.scrollLockY, onScroll?.({
137
- ...e,
138
- nativeEvent: {
139
- ...e.nativeEvent,
140
- contentOffset: {
141
- ...e.nativeEvent.contentOffset,
142
- y: scrollBridge.scrollLockY
143
- }
144
- }
145
- });
146
- return;
147
- }
148
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
149
- },
150
- contentContainerStyle: {
151
- minHeight: "100%"
152
- },
153
- bounces: !1,
154
- keyboardShouldPersistTaps: "always",
155
- keyboardDismissMode: "none",
156
- ...props,
157
- children: contentWrapper
158
- }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_scroll_view.ScrollView, {
159
- onLayout: e => {
160
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
161
- },
162
- ref: (0, import_gui_compose_refs.composeRefs)(scrollRef, ref),
163
- flex: 1,
164
- scrollEventThrottle: 1,
165
- className: "_ovs-contain",
166
- scrollEnabled,
167
- onScroll: e => {
168
- const {
169
- y
170
- } = e.nativeEvent.contentOffset;
171
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
172
- },
173
- contentContainerStyle: {
174
- minHeight: "100%"
175
- },
176
- ...gestureProps,
177
- ...props,
178
- children: contentWrapper
179
- });
180
- });
@@ -1,197 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
- get: () => from[key],
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
34
- var SheetScrollView_exports = {};
35
- __export(SheetScrollView_exports, {
36
- SheetScrollView: () => SheetScrollView
37
- });
38
- module.exports = __toCommonJS(SheetScrollView_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_gui_compose_refs = require("@hanzogui/compose-refs"),
41
- import_gui_core = require("@hanzogui/core"),
42
- import_gui_scroll_view = require("@hanzogui/scroll-view"),
43
- import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
44
- import_react = __toESM(require("react"), 1),
45
- import_GestureSheetContext = require("./GestureSheetContext.native.js"),
46
- import_gestureState = require("./gestureState.native.js"),
47
- import_SheetContext = require("./SheetContext.native.js"),
48
- import_useSheetScrollViewGestures = require("./useSheetScrollViewGestures.native.js"),
49
- SHEET_SCROLL_VIEW_NAME = "SheetScrollView",
50
- SheetScrollView = /* @__PURE__ */import_react.default.forwardRef(function (param, ref) {
51
- var {
52
- __scopeSheet,
53
- children,
54
- onScroll,
55
- scrollEnabled: scrollEnabledProp,
56
- ...props
57
- } = param,
58
- context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet),
59
- gestureContext = (0, import_GestureSheetContext.useGestureSheetContext)(),
60
- {
61
- scrollBridge,
62
- setHasScrollView
63
- } = context,
64
- [scrollEnabled] = (0, import_gui_use_controllable_state.useControllableState)({
65
- prop: scrollEnabledProp,
66
- defaultProp: !0
67
- }),
68
- scrollRef = import_react.default.useRef(null),
69
- panGestureRef = gestureContext?.panGestureRef,
70
- {
71
- ScrollView: RNGHScrollView
72
- } = (0, import_gestureState.getGestureHandlerState)(),
73
- useRNGHScrollView = (0, import_gestureState.isGestureHandlerEnabled)() && RNGHScrollView && panGestureRef,
74
- currentScrollOffset = (0, import_react.useRef)(0),
75
- lockedScrollY = (0, import_react.useRef)(0),
76
- setScrollEnabled = function (next, lockTo) {
77
- if (next) lockedScrollY.current = currentScrollOffset.current, scrollBridge.scrollLockY = void 0;else {
78
- var _scrollRef_current_scrollTo,
79
- _scrollRef_current,
80
- lockY = lockTo ?? currentScrollOffset.current;
81
- lockedScrollY.current = lockY, scrollBridge.scrollLockY = lockY, (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
82
- x: 0,
83
- y: lockY,
84
- animated: !1
85
- });
86
- }
87
- },
88
- forceScrollTo = function (y) {
89
- var _scrollRef_current_scrollTo, _scrollRef_current;
90
- (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
91
- x: 0,
92
- y,
93
- animated: !1
94
- });
95
- };
96
- (0, import_react.useEffect)(function () {
97
- return setHasScrollView(!0), (0, import_gestureState.isGestureHandlerEnabled)() && (scrollBridge.setScrollEnabled = setScrollEnabled, scrollBridge.forceScrollTo = forceScrollTo), function () {
98
- setHasScrollView(!1), scrollBridge.setScrollEnabled = void 0, scrollBridge.forceScrollTo = void 0;
99
- };
100
- }, []);
101
- var [hasScrollableContent, setHasScrollableContent] = (0, import_react.useState)(!0),
102
- parentHeight = (0, import_react.useRef)(0),
103
- contentHeight = (0, import_react.useRef)(0),
104
- updateScrollable = function () {
105
- parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
106
- };
107
- (0, import_react.useEffect)(function () {
108
- scrollBridge.hasScrollableContent = hasScrollableContent;
109
- }, [hasScrollableContent]);
110
- var gestureProps = (0, import_useSheetScrollViewGestures.useSheetScrollViewGestures)({
111
- scrollRef,
112
- scrollBridge,
113
- hasScrollableContent,
114
- scrollEnabled,
115
- setScrollEnabled
116
- }),
117
- contentWrapper = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_core.View, {
118
- onLayout: function (e) {
119
- var height = Math.floor(e.nativeEvent.layout.height);
120
- height !== contentHeight.current && (contentHeight.current = height, updateScrollable());
121
- },
122
- children
123
- });
124
- if (useRNGHScrollView && RNGHScrollView && panGestureRef) {
125
- var RNGHComponent = RNGHScrollView;
126
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RNGHComponent, {
127
- ref: (0, import_gui_compose_refs.composeRefs)(scrollRef, ref),
128
- style: {
129
- flex: 1
130
- },
131
- scrollEventThrottle: 1,
132
- scrollEnabled,
133
- simultaneousHandlers: [panGestureRef],
134
- onLayout: function (e) {
135
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
136
- },
137
- onScroll: function (e) {
138
- var {
139
- y
140
- } = e.nativeEvent.contentOffset;
141
- if (currentScrollOffset.current = y, scrollBridge.scrollLockY !== void 0) {
142
- if (y !== scrollBridge.scrollLockY) {
143
- var _scrollRef_current_scrollTo, _scrollRef_current;
144
- (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 || (_scrollRef_current_scrollTo = _scrollRef_current.scrollTo) === null || _scrollRef_current_scrollTo === void 0 || _scrollRef_current_scrollTo.call(_scrollRef_current, {
145
- x: 0,
146
- y: scrollBridge.scrollLockY,
147
- animated: !1
148
- });
149
- }
150
- scrollBridge.y = scrollBridge.scrollLockY, onScroll?.({
151
- ...e,
152
- nativeEvent: {
153
- ...e.nativeEvent,
154
- contentOffset: {
155
- ...e.nativeEvent.contentOffset,
156
- y: scrollBridge.scrollLockY
157
- }
158
- }
159
- });
160
- return;
161
- }
162
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
163
- },
164
- contentContainerStyle: {
165
- minHeight: "100%"
166
- },
167
- bounces: !1,
168
- keyboardShouldPersistTaps: "always",
169
- keyboardDismissMode: "none",
170
- ...props,
171
- children: contentWrapper
172
- });
173
- }
174
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_scroll_view.ScrollView, {
175
- onLayout: function (e) {
176
- parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
177
- },
178
- ref: (0, import_gui_compose_refs.composeRefs)(scrollRef, ref),
179
- flex: 1,
180
- scrollEventThrottle: 1,
181
- className: "_ovs-contain",
182
- scrollEnabled,
183
- onScroll: function (e) {
184
- var {
185
- y
186
- } = e.nativeEvent.contentOffset;
187
- scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
188
- },
189
- contentContainerStyle: {
190
- minHeight: "100%"
191
- },
192
- ...gestureProps,
193
- ...props,
194
- children: contentWrapper
195
- });
196
- });
197
- //# sourceMappingURL=SheetScrollView.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SheetScrollView_exports","__export","SheetScrollView","module","exports","import_jsx_runtime","require","import_gui_compose_refs","import_gui_core","import_gui_scroll_view","import_gui_use_controllable_state","import_react","__toESM","import_GestureSheetContext","import_gestureState","import_SheetContext","import_useSheetScrollViewGestures","SHEET_SCROLL_VIEW_NAME","default","forwardRef","param","ref","__scopeSheet","children","onScroll","scrollEnabled","scrollEnabledProp","props","context","useSheetContext","gestureContext","useGestureSheetContext","scrollBridge","setHasScrollView","useControllableState","prop","defaultProp","scrollRef","useRef","panGestureRef","ScrollView","RNGHScrollView","getGestureHandlerState","useRNGHScrollView","isGestureHandlerEnabled","currentScrollOffset","lockedScrollY","setScrollEnabled","next","lockTo","current","scrollLockY","_scrollRef_current_scrollTo","_scrollRef_current","lockY","scrollTo","call","x","y","animated","forceScrollTo","useEffect","hasScrollableContent","setHasScrollableContent","useState","parentHeight","contentHeight","updateScrollable","gestureProps","useSheetScrollViewGestures","contentWrapper","jsx","View","onLayout","e","height","Math","floor","nativeEvent","layout","RNGHComponent","composeRefs","style","flex","scrollEventThrottle","simultaneousHandlers","ceil","contentOffset","scrollStartY","contentContainerStyle","minHeight","bounces","keyboardShouldPersistTaps","keyboardDismissMode","className"],"sources":["../../src/SheetScrollView.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAA4BK,uBAAA;AAa5B,IAAAK,kBAAM,GAAAC,OAAyB,oBAElB;EAAAC,uBAAkB,GAAAD,OAAA,CAAM;EAAAE,eAAA,GAAAF,OAAA;EAAAG,sBAAA,GAAAH,OAAA;EAAAI,iCAAA,GAAAJ,OAAA;EAAAK,YAAA,GAAAC,OAAA,CAAAN,OAAA;EAAAO,0BAAA,GAAAP,OAAA;EAAAQ,mBAAA,GAAAR,OAAA;EAA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AAAI,IAAA,CAAAH,kBAAA;gBAAAI,CAAA,GACjB;gBAAgBC,CAAA,EAClB1B,YAAA,CAAAmB,WAAA;gBACFQ,QAAA;cACF,CAAC;YACD;YACF3B,YAAA,CAAA0B,CAAA,GAAA1B,YAAA,CAAAmB,WAAA,EAAA3B,QAAA;cAEA,GAAAkD,CAAA;cAGFI,WAAA;gBACA,GAAAJ,CAAA,CAAAI,WAAA;gBACAS,aAAS;kBACT,GAAAb,CAAA,CAAAI,WAAA,CAAAS,aAA0B;kBAC1B7B,CAAA,EAAA1B,YAAoB,CAAAmB;gBAChB;cAEH;YAAA;YAOL;UAAC;UAAAnB,YAAA,CAAA0B,CAAA,GAAAA,CAAA,EAAAA,CAAA,SAAA1B,YAAA,CAAAwD,YAAA,QAAAhE,QAAA,GAAAkD,CAAA;QAAA;QAEGe,qBAAa;UAEfC,SAAA;QAAA;QACsCC,OACtC,EAAM;QAAAC,yBACe;QAAAC,mBACX;QAAA,GACVlE,KAAA;QAAAJ,QACA,EAAA+C;MACE;IACA;IAEY,OACd,mBAAAjE,kBAAA,CAAAkE,GAAA,EAAA9D,sBAAA,CAAA+B,UAAA;MAAAiC,QACA,WAAAA,CAAAC,CAAA;QAA2CT,YACvC,CAAAf,OAAA,GAAA0B,IAAA,CAAAU,IAAA,CAAAZ,CAAA,CAAAI,WAAA,CAAAC,MAAA,CAAAJ,MAAA,GAAAR,gBAAA;MAAA;MACA9C,GAAA,EAEH,IAAAd,uBAAA,CAAA0E,WAAA,EAAA5C,SAAA,EAAAhB,GAAA;MAAA8D,IAAA;MACHC,mBAAA;MAEJU,SAAA;MACFrE,aAAA","ignoreList":[]}
@@ -1,32 +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 constants_exports = {};
22
- __export(constants_exports, {
23
- SHEET_HANDLE_NAME: () => SHEET_HANDLE_NAME,
24
- SHEET_NAME: () => SHEET_NAME,
25
- SHEET_OVERLAY_NAME: () => SHEET_OVERLAY_NAME,
26
- constants: () => constants
27
- });
28
- module.exports = __toCommonJS(constants_exports);
29
- const constants = {},
30
- SHEET_NAME = "Sheet",
31
- SHEET_HANDLE_NAME = "SheetHandle",
32
- SHEET_OVERLAY_NAME = "SheetOverlay";
@@ -1,35 +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 constants_exports = {};
24
- __export(constants_exports, {
25
- SHEET_HANDLE_NAME: () => SHEET_HANDLE_NAME,
26
- SHEET_NAME: () => SHEET_NAME,
27
- SHEET_OVERLAY_NAME: () => SHEET_OVERLAY_NAME,
28
- constants: () => constants
29
- });
30
- module.exports = __toCommonJS(constants_exports);
31
- var constants = {},
32
- SHEET_NAME = "Sheet",
33
- SHEET_HANDLE_NAME = "SheetHandle",
34
- SHEET_OVERLAY_NAME = "SheetOverlay";
35
- //# sourceMappingURL=constants.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","SHEET_HANDLE_NAME","SHEET_NAME","SHEET_OVERLAY_NAME","constants","module","exports"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAZ,YAEA,CAAAK,iBACA","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
32
- var contexts_exports = {};
33
- __export(contexts_exports, {
34
- ParentSheetContext: () => ParentSheetContext,
35
- SheetInsideSheetContext: () => SheetInsideSheetContext
36
- });
37
- module.exports = __toCommonJS(contexts_exports);
38
- var import_react = __toESM(require("react"), 1);
39
- const ParentSheetContext = import_react.default.createContext({
40
- zIndex: 1e5
41
- }),
42
- SheetInsideSheetContext = import_react.default.createContext(null);
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
- get: () => from[key],
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
34
- var contexts_exports = {};
35
- __export(contexts_exports, {
36
- ParentSheetContext: () => ParentSheetContext,
37
- SheetInsideSheetContext: () => SheetInsideSheetContext
38
- });
39
- module.exports = __toCommonJS(contexts_exports);
40
- var import_react = __toESM(require("react"), 1),
41
- ParentSheetContext = import_react.default.createContext({
42
- zIndex: 1e5
43
- }),
44
- SheetInsideSheetContext = import_react.default.createContext(null);
45
- //# sourceMappingURL=contexts.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","contexts_exports","__export","ParentSheetContext","SheetInsideSheetContext","module","exports","import_react","__toESM","require","default","createContext","zIndex"],"sources":["../../src/contexts.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAkB,CAAAK,gBAAA;AAEX,IAAAM,YAAM,GAAAC,OAAA,CAAqBC,OAAA;EAAMN,kBAAc,GAAAI,YAAA,CAAAG,OAAA,CAAAC,aAAA;IACpDC,MAAA,EAAQ;EACV,CAAC;EAEYR,uBAAA,GAA0BG,YAAA,CAAAG,OAAA,CAAMC,aAAA,CAE3C,IAAI","ignoreList":[]}
@@ -1,29 +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 controller_exports = {};
22
- __export(controller_exports, {
23
- SheetController: () => import_SheetController.SheetController,
24
- SheetControllerContext: () => import_useSheetController.SheetControllerContext,
25
- useSheetController: () => import_useSheetController.useSheetController
26
- });
27
- module.exports = __toCommonJS(controller_exports);
28
- var import_SheetController = require("./SheetController.cjs"),
29
- import_useSheetController = require("./useSheetController.cjs");
@@ -1,32 +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 controller_exports = {};
24
- __export(controller_exports, {
25
- SheetController: () => import_SheetController.SheetController,
26
- SheetControllerContext: () => import_useSheetController.SheetControllerContext,
27
- useSheetController: () => import_useSheetController.useSheetController
28
- });
29
- module.exports = __toCommonJS(controller_exports);
30
- var import_SheetController = require("./SheetController.native.js"),
31
- import_useSheetController = require("./useSheetController.native.js");
32
- //# sourceMappingURL=controller.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","controller_exports","__export","SheetController","import_SheetController","SheetControllerContext","import_useSheetController","useSheetController","module","exports"],"sources":["../../src/controller.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD,eAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAC,yBAAA,CAAAD,sBAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAD,yBAAA,CAAAC;AAAA;AAGAC,MAAA,CAAAC,OAAA,GAAAb,YAAgC,CAAAK,kBAAA","ignoreList":[]}