@hanzogui/sheet 3.0.2 → 7.3.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 (296) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/GestureDetectorWrapper.cjs +27 -21
  3. package/dist/cjs/GestureDetectorWrapper.native.js +33 -28
  4. package/dist/cjs/GestureDetectorWrapper.native.js.map +1 -1
  5. package/dist/cjs/GestureSheetContext.cjs +14 -12
  6. package/dist/cjs/GestureSheetContext.native.js +29 -27
  7. package/dist/cjs/GestureSheetContext.native.js.map +1 -1
  8. package/dist/cjs/Sheet.cjs +89 -87
  9. package/dist/cjs/Sheet.native.js +89 -87
  10. package/dist/cjs/Sheet.native.js.map +1 -1
  11. package/dist/cjs/SheetContext.cjs +16 -14
  12. package/dist/cjs/SheetContext.native.js +16 -14
  13. package/dist/cjs/SheetContext.native.js.map +1 -1
  14. package/dist/cjs/SheetController.cjs +40 -32
  15. package/dist/cjs/SheetController.native.js +62 -54
  16. package/dist/cjs/SheetController.native.js.map +1 -1
  17. package/dist/cjs/SheetImplementationCustom.cjs +544 -427
  18. package/dist/cjs/SheetImplementationCustom.native.js +567 -476
  19. package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
  20. package/dist/cjs/SheetScrollView.cjs +169 -133
  21. package/dist/cjs/SheetScrollView.native.js +189 -163
  22. package/dist/cjs/SheetScrollView.native.js.map +1 -1
  23. package/dist/cjs/constants.cjs +16 -14
  24. package/dist/cjs/constants.native.js +16 -14
  25. package/dist/cjs/constants.native.js.map +1 -1
  26. package/dist/cjs/contexts.cjs +27 -25
  27. package/dist/cjs/contexts.native.js +29 -27
  28. package/dist/cjs/contexts.native.js.map +1 -1
  29. package/dist/cjs/controller.cjs +14 -12
  30. package/dist/cjs/controller.native.js +14 -12
  31. package/dist/cjs/controller.native.js.map +1 -1
  32. package/dist/cjs/createSheet.cjs +160 -161
  33. package/dist/cjs/createSheet.native.js +173 -181
  34. package/dist/cjs/createSheet.native.js.map +1 -1
  35. package/dist/cjs/gestureState.cjs +16 -14
  36. package/dist/cjs/gestureState.native.js +16 -14
  37. package/dist/cjs/gestureState.native.js.map +1 -1
  38. package/dist/cjs/helpers.cjs +17 -13
  39. package/dist/cjs/helpers.native.js +17 -13
  40. package/dist/cjs/helpers.native.js.map +1 -1
  41. package/dist/cjs/index.cjs +7 -5
  42. package/dist/cjs/index.native.js +7 -5
  43. package/dist/cjs/index.native.js.map +1 -1
  44. package/dist/cjs/nativeSheet.cjs +64 -55
  45. package/dist/cjs/nativeSheet.native.js +73 -68
  46. package/dist/cjs/nativeSheet.native.js.map +1 -1
  47. package/dist/cjs/setupGestureHandler.cjs +26 -20
  48. package/dist/cjs/setupGestureHandler.native.js +26 -21
  49. package/dist/cjs/setupGestureHandler.native.js.map +1 -1
  50. package/dist/cjs/types.cjs +7 -5
  51. package/dist/cjs/types.native.js +7 -5
  52. package/dist/cjs/types.native.js.map +1 -1
  53. package/dist/cjs/useGestureHandlerPan.cjs +181 -111
  54. package/dist/cjs/useGestureHandlerPan.native.js +183 -115
  55. package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
  56. package/dist/cjs/useKeyboardControllerSheet.cjs +15 -13
  57. package/dist/cjs/useKeyboardControllerSheet.native.js +100 -82
  58. package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -1
  59. package/dist/cjs/useSheet.cjs +12 -10
  60. package/dist/cjs/useSheet.native.js +16 -14
  61. package/dist/cjs/useSheet.native.js.map +1 -1
  62. package/dist/cjs/useSheetController.cjs +35 -33
  63. package/dist/cjs/useSheetController.native.js +37 -35
  64. package/dist/cjs/useSheetController.native.js.map +1 -1
  65. package/dist/cjs/useSheetOffscreenSize.cjs +35 -23
  66. package/dist/cjs/useSheetOffscreenSize.native.js +36 -27
  67. package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -1
  68. package/dist/cjs/useSheetOpenState.cjs +28 -25
  69. package/dist/cjs/useSheetOpenState.native.js +39 -37
  70. package/dist/cjs/useSheetOpenState.native.js.map +1 -1
  71. package/dist/cjs/useSheetProviderProps.cjs +131 -83
  72. package/dist/cjs/useSheetProviderProps.native.js +167 -124
  73. package/dist/cjs/useSheetProviderProps.native.js.map +1 -1
  74. package/dist/cjs/useSheetScrollViewGestures.cjs +124 -81
  75. package/dist/cjs/useSheetScrollViewGestures.native.js +128 -79
  76. package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -1
  77. package/dist/esm/GestureDetectorWrapper.mjs +12 -8
  78. package/dist/esm/GestureDetectorWrapper.mjs.map +1 -1
  79. package/dist/esm/GestureDetectorWrapper.native.js +18 -15
  80. package/dist/esm/GestureDetectorWrapper.native.js.map +1 -1
  81. package/dist/esm/GestureSheetContext.native.js +14 -14
  82. package/dist/esm/GestureSheetContext.native.js.map +1 -1
  83. package/dist/esm/Sheet.mjs +70 -70
  84. package/dist/esm/Sheet.mjs.map +1 -1
  85. package/dist/esm/Sheet.native.js +70 -70
  86. package/dist/esm/Sheet.native.js.map +1 -1
  87. package/dist/esm/SheetContext.mjs +2 -2
  88. package/dist/esm/SheetContext.mjs.map +1 -1
  89. package/dist/esm/SheetContext.native.js +2 -2
  90. package/dist/esm/SheetContext.native.js.map +1 -1
  91. package/dist/esm/SheetController.mjs +12 -6
  92. package/dist/esm/SheetController.mjs.map +1 -1
  93. package/dist/esm/SheetController.native.js +18 -12
  94. package/dist/esm/SheetController.native.js.map +1 -1
  95. package/dist/esm/SheetImplementationCustom.mjs +501 -386
  96. package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
  97. package/dist/esm/SheetImplementationCustom.native.js +520 -435
  98. package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
  99. package/dist/esm/SheetScrollView.mjs +133 -99
  100. package/dist/esm/SheetScrollView.mjs.map +1 -1
  101. package/dist/esm/SheetScrollView.native.js +155 -131
  102. package/dist/esm/SheetScrollView.native.js.map +1 -1
  103. package/dist/esm/constants.mjs +4 -4
  104. package/dist/esm/constants.mjs.map +1 -1
  105. package/dist/esm/constants.native.js +4 -4
  106. package/dist/esm/constants.native.js.map +1 -1
  107. package/dist/esm/contexts.mjs +3 -3
  108. package/dist/esm/contexts.mjs.map +1 -1
  109. package/dist/esm/contexts.native.js +3 -3
  110. package/dist/esm/contexts.native.js.map +1 -1
  111. package/dist/esm/createSheet.mjs +130 -133
  112. package/dist/esm/createSheet.mjs.map +1 -1
  113. package/dist/esm/createSheet.native.js +142 -152
  114. package/dist/esm/createSheet.native.js.map +1 -1
  115. package/dist/esm/helpers.mjs +5 -3
  116. package/dist/esm/helpers.mjs.map +1 -1
  117. package/dist/esm/helpers.native.js +5 -3
  118. package/dist/esm/helpers.native.js.map +1 -1
  119. package/dist/esm/nativeSheet.mjs +45 -38
  120. package/dist/esm/nativeSheet.mjs.map +1 -1
  121. package/dist/esm/nativeSheet.native.js +51 -48
  122. package/dist/esm/nativeSheet.native.js.map +1 -1
  123. package/dist/esm/setupGestureHandler.mjs +12 -8
  124. package/dist/esm/setupGestureHandler.mjs.map +1 -1
  125. package/dist/esm/setupGestureHandler.native.js +12 -9
  126. package/dist/esm/setupGestureHandler.native.js.map +1 -1
  127. package/dist/esm/useGestureHandlerPan.mjs +167 -99
  128. package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
  129. package/dist/esm/useGestureHandlerPan.native.js +168 -102
  130. package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
  131. package/dist/esm/useKeyboardControllerSheet.mjs +3 -3
  132. package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -1
  133. package/dist/esm/useKeyboardControllerSheet.native.js +85 -69
  134. package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -1
  135. package/dist/esm/useSheetController.mjs +11 -11
  136. package/dist/esm/useSheetController.mjs.map +1 -1
  137. package/dist/esm/useSheetController.native.js +11 -11
  138. package/dist/esm/useSheetController.native.js.map +1 -1
  139. package/dist/esm/useSheetOffscreenSize.mjs +23 -13
  140. package/dist/esm/useSheetOffscreenSize.mjs.map +1 -1
  141. package/dist/esm/useSheetOffscreenSize.native.js +24 -17
  142. package/dist/esm/useSheetOffscreenSize.native.js.map +1 -1
  143. package/dist/esm/useSheetOpenState.mjs +14 -13
  144. package/dist/esm/useSheetOpenState.mjs.map +1 -1
  145. package/dist/esm/useSheetOpenState.native.js +17 -17
  146. package/dist/esm/useSheetOpenState.native.js.map +1 -1
  147. package/dist/esm/useSheetProviderProps.mjs +101 -55
  148. package/dist/esm/useSheetProviderProps.mjs.map +1 -1
  149. package/dist/esm/useSheetProviderProps.native.js +137 -96
  150. package/dist/esm/useSheetProviderProps.native.js.map +1 -1
  151. package/dist/esm/useSheetScrollViewGestures.mjs +112 -71
  152. package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -1
  153. package/dist/esm/useSheetScrollViewGestures.native.js +116 -69
  154. package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -1
  155. package/dist/jsx/GestureDetectorWrapper.mjs +12 -8
  156. package/dist/jsx/GestureDetectorWrapper.mjs.map +1 -1
  157. package/dist/jsx/GestureDetectorWrapper.native.js +33 -28
  158. package/dist/jsx/GestureDetectorWrapper.native.js.map +1 -1
  159. package/dist/jsx/GestureSheetContext.native.js +29 -27
  160. package/dist/jsx/GestureSheetContext.native.js.map +1 -1
  161. package/dist/jsx/Sheet.mjs +70 -70
  162. package/dist/jsx/Sheet.mjs.map +1 -1
  163. package/dist/jsx/Sheet.native.js +89 -87
  164. package/dist/jsx/Sheet.native.js.map +1 -1
  165. package/dist/jsx/SheetContext.mjs +2 -2
  166. package/dist/jsx/SheetContext.mjs.map +1 -1
  167. package/dist/jsx/SheetContext.native.js +16 -14
  168. package/dist/jsx/SheetContext.native.js.map +1 -1
  169. package/dist/jsx/SheetController.mjs +12 -6
  170. package/dist/jsx/SheetController.mjs.map +1 -1
  171. package/dist/jsx/SheetController.native.js +62 -54
  172. package/dist/jsx/SheetController.native.js.map +1 -1
  173. package/dist/jsx/SheetImplementationCustom.mjs +501 -386
  174. package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
  175. package/dist/jsx/SheetImplementationCustom.native.js +567 -476
  176. package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
  177. package/dist/jsx/SheetScrollView.mjs +133 -99
  178. package/dist/jsx/SheetScrollView.mjs.map +1 -1
  179. package/dist/jsx/SheetScrollView.native.js +189 -163
  180. package/dist/jsx/SheetScrollView.native.js.map +1 -1
  181. package/dist/jsx/constants.mjs +4 -4
  182. package/dist/jsx/constants.mjs.map +1 -1
  183. package/dist/jsx/constants.native.js +16 -14
  184. package/dist/jsx/constants.native.js.map +1 -1
  185. package/dist/jsx/contexts.mjs +3 -3
  186. package/dist/jsx/contexts.mjs.map +1 -1
  187. package/dist/jsx/contexts.native.js +29 -27
  188. package/dist/jsx/contexts.native.js.map +1 -1
  189. package/dist/jsx/controller.native.js +14 -12
  190. package/dist/jsx/createSheet.mjs +130 -133
  191. package/dist/jsx/createSheet.mjs.map +1 -1
  192. package/dist/jsx/createSheet.native.js +173 -181
  193. package/dist/jsx/createSheet.native.js.map +1 -1
  194. package/dist/jsx/gestureState.native.js +16 -14
  195. package/dist/jsx/gestureState.native.js.map +1 -1
  196. package/dist/jsx/helpers.mjs +5 -3
  197. package/dist/jsx/helpers.mjs.map +1 -1
  198. package/dist/jsx/helpers.native.js +17 -13
  199. package/dist/jsx/helpers.native.js.map +1 -1
  200. package/dist/jsx/index.native.js +7 -5
  201. package/dist/jsx/index.native.js.map +1 -1
  202. package/dist/jsx/nativeSheet.mjs +45 -38
  203. package/dist/jsx/nativeSheet.mjs.map +1 -1
  204. package/dist/jsx/nativeSheet.native.js +73 -68
  205. package/dist/jsx/nativeSheet.native.js.map +1 -1
  206. package/dist/jsx/setupGestureHandler.mjs +12 -8
  207. package/dist/jsx/setupGestureHandler.mjs.map +1 -1
  208. package/dist/jsx/setupGestureHandler.native.js +26 -21
  209. package/dist/jsx/setupGestureHandler.native.js.map +1 -1
  210. package/dist/jsx/types.native.js +7 -5
  211. package/dist/jsx/useGestureHandlerPan.mjs +167 -99
  212. package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
  213. package/dist/jsx/useGestureHandlerPan.native.js +183 -115
  214. package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
  215. package/dist/jsx/useKeyboardControllerSheet.mjs +3 -3
  216. package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -1
  217. package/dist/jsx/useKeyboardControllerSheet.native.js +100 -82
  218. package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -1
  219. package/dist/jsx/useSheet.native.js +16 -14
  220. package/dist/jsx/useSheetController.mjs +11 -11
  221. package/dist/jsx/useSheetController.mjs.map +1 -1
  222. package/dist/jsx/useSheetController.native.js +37 -35
  223. package/dist/jsx/useSheetController.native.js.map +1 -1
  224. package/dist/jsx/useSheetOffscreenSize.mjs +23 -13
  225. package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -1
  226. package/dist/jsx/useSheetOffscreenSize.native.js +36 -27
  227. package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -1
  228. package/dist/jsx/useSheetOpenState.mjs +14 -13
  229. package/dist/jsx/useSheetOpenState.mjs.map +1 -1
  230. package/dist/jsx/useSheetOpenState.native.js +39 -37
  231. package/dist/jsx/useSheetOpenState.native.js.map +1 -1
  232. package/dist/jsx/useSheetProviderProps.mjs +101 -55
  233. package/dist/jsx/useSheetProviderProps.mjs.map +1 -1
  234. package/dist/jsx/useSheetProviderProps.native.js +167 -124
  235. package/dist/jsx/useSheetProviderProps.native.js.map +1 -1
  236. package/dist/jsx/useSheetScrollViewGestures.mjs +112 -71
  237. package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -1
  238. package/dist/jsx/useSheetScrollViewGestures.native.js +128 -79
  239. package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -1
  240. package/package.json +35 -25
  241. package/src/Sheet.tsx +3 -3
  242. package/src/SheetController.tsx +4 -1
  243. package/src/SheetImplementationCustom.tsx +21 -10
  244. package/src/createSheet.tsx +1 -1
  245. package/src/useSheetController.tsx +4 -0
  246. package/types/GestureDetectorWrapper.d.ts +1 -1
  247. package/types/GestureDetectorWrapper.d.ts.map +1 -0
  248. package/types/GestureSheetContext.d.ts +1 -1
  249. package/types/GestureSheetContext.d.ts.map +1 -0
  250. package/types/Sheet.d.ts +51 -51
  251. package/types/Sheet.d.ts.map +1 -0
  252. package/types/SheetContext.d.ts +8 -8
  253. package/types/SheetContext.d.ts.map +1 -0
  254. package/types/SheetController.d.ts +3 -2
  255. package/types/SheetController.d.ts.map +1 -0
  256. package/types/SheetImplementationCustom.d.ts +4 -4
  257. package/types/SheetImplementationCustom.d.ts.map +1 -0
  258. package/types/SheetScrollView.d.ts +10 -10
  259. package/types/SheetScrollView.d.ts.map +1 -0
  260. package/types/constants.d.ts.map +1 -0
  261. package/types/contexts.d.ts.map +1 -0
  262. package/types/controller.d.ts.map +1 -0
  263. package/types/createSheet.d.ts +31 -31
  264. package/types/createSheet.d.ts.map +1 -0
  265. package/types/gestureState.d.ts +3 -3
  266. package/types/gestureState.d.ts.map +1 -0
  267. package/types/helpers.d.ts.map +1 -0
  268. package/types/index.d.ts.map +1 -0
  269. package/types/nativeSheet.d.ts.map +1 -0
  270. package/types/setupGestureHandler.d.ts +1 -1
  271. package/types/setupGestureHandler.d.ts.map +1 -0
  272. package/types/types.d.ts +4 -4
  273. package/types/types.d.ts.map +1 -0
  274. package/types/useGestureHandlerPan.d.ts.map +1 -0
  275. package/types/useKeyboardControllerSheet.d.ts.map +1 -0
  276. package/types/useKeyboardControllerSheet.native.d.ts.map +1 -0
  277. package/types/useSheet.d.ts.map +1 -0
  278. package/types/useSheetController.d.ts +3 -0
  279. package/types/useSheetController.d.ts.map +1 -0
  280. package/types/useSheetOffscreenSize.d.ts.map +1 -0
  281. package/types/useSheetOpenState.d.ts.map +1 -0
  282. package/types/useSheetProviderProps.d.ts +2 -2
  283. package/types/useSheetProviderProps.d.ts.map +1 -0
  284. package/types/useSheetScrollViewGestures.d.ts.map +1 -0
  285. package/types/useSheetScrollViewGestures.native.d.ts.map +1 -0
  286. package/controller/index.cjs +0 -2
  287. package/controller/index.d.ts +0 -5
  288. package/controller/index.js +0 -2
  289. package/controller/index.native.cjs +0 -2
  290. package/controller/index.native.js +0 -2
  291. package/next.md +0 -78
  292. package/setup-gesture-handler/index.cjs +0 -2
  293. package/setup-gesture-handler/index.js +0 -2
  294. package/setup-gesture-handler/index.native.cjs +0 -2
  295. package/setup-gesture-handler/index.native.js +0 -2
  296. package/tsconfig.json +0 -56
package/LICENSE CHANGED
@@ -1,21 +1,42 @@
1
- MIT License
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026-present, Hanzo AI, Inc.
4
+
5
+ Portions of this software are derived from upstream code originally licensed under
6
+ the MIT License, with the following copyright notices retained per its terms:
2
7
 
3
8
  Copyright (c) 2020 Nate Wienert
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ Copyright (c) 2015-present, Nicolas Gallagher.
10
+ Copyright (c) 2015-present, Facebook, Inc.
11
+ Copyright (c) 2021 Radix
12
+ Copyright (c) 2017 Carmelo Pullara
13
+ Copyright (c) 2018 Framer B.V.
14
+ Copyright (c) 2022 WorkOS
15
+
16
+ All rights reserved.
17
+
18
+ Redistribution and use in source and binary forms, with or without
19
+ modification, are permitted provided that the following conditions are met:
20
+
21
+ 1. Redistributions of source code must retain the above copyright notice, this
22
+ list of conditions and the following disclaimer.
23
+
24
+ 2. Redistributions in binary form must reproduce the above copyright notice,
25
+ this list of conditions and the following disclaimer in the documentation
26
+ and/or other materials provided with the distribution.
27
+
28
+ 3. Neither the name of the copyright holder nor the names of its contributors
29
+ may be used to endorse or promote products derived from this software
30
+ without specific prior written permission.
31
+
32
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
+ POSSIBILITY OF SUCH DAMAGE.
@@ -3,29 +3,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var GestureDetectorWrapper_exports = {};
22
24
  __export(GestureDetectorWrapper_exports, {
23
25
  GestureDetectorWrapper: () => GestureDetectorWrapper
24
26
  });
25
27
  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");
28
+ var import_react_native = require("react-native-web");
29
+ var import_gestureState = require("./gestureState.cjs");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
29
31
  function GestureDetectorWrapper({
30
32
  gesture,
31
33
  children,
@@ -34,14 +36,18 @@ function GestureDetectorWrapper({
34
36
  const {
35
37
  GestureDetector
36
38
  } = (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, {
39
+ const enabled = (0, import_gestureState.isGestureHandlerEnabled)();
40
+ if (enabled && GestureDetector && gesture) {
41
+ return /* @__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: false,
46
+ children
47
+ })
48
+ });
49
+ }
50
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
45
51
  style,
46
52
  children
47
53
  });
@@ -5,47 +5,52 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var GestureDetectorWrapper_exports = {};
24
26
  __export(GestureDetectorWrapper_exports, {
25
27
  GestureDetectorWrapper: () => GestureDetectorWrapper
26
28
  });
27
29
  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");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_react_native = require("react-native");
32
+ var import_gestureState = require("./gestureState.native.js");
31
33
  function GestureDetectorWrapper(param) {
32
34
  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
35
  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, {
36
+ children,
37
+ style
38
+ } = param;
39
+ var {
40
+ GestureDetector
41
+ } = (0, import_gestureState.getGestureHandlerState)();
42
+ var enabled = (0, import_gestureState.isGestureHandlerEnabled)();
43
+ if (enabled && GestureDetector && gesture) {
44
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
45
+ gesture,
46
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
47
+ style,
48
+ collapsable: false,
49
+ children
50
+ })
51
+ });
52
+ }
53
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
49
54
  style,
50
55
  children
51
56
  });
@@ -1 +1 @@
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
+ {"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,8BAAA;AACrC,IAAAK,kBAAA,GAAAC,OAAgE;AA6BxD,IAAAC,mBAAA,GAAAD,OAAA;AAjBD,IAAAE,mBAAS,GAAAF,OAAuB;AAAA,SACrCJ,uBAAAO,KAAA;EACA;IAAAC,OAAA;IAAAC,QAAA;IAAAC;EAAA,IAAAH,KAAA;EACA;IAAAI;EAAA,QAAAL,mBAAA,CAAAM,sBAAA;EACF,IAAgCC,OAAA,OAAAP,mBAAA,CAAAQ,uBAAA;EAC9B,IAAAD,OAAQ,IAAAF,eAAgB,IAAIH,OAAA;IAC5B,OAAM,eAAU,IAAAL,kBAAA,CAAAY,GAAA,EAAAJ,eAAwB;MAKpCH,OAAA;MAIFC,QACE,qBAAAN,kBAAA,CAACY,GAAA,EAAAV,mBAAgB,CAAAW,IACf;QAKNN,KAAA;QAGAO,WAAO;QACTR","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var GestureSheetContext_exports = {};
22
24
  __export(GestureSheetContext_exports, {
@@ -24,8 +26,8 @@ __export(GestureSheetContext_exports, {
24
26
  useGestureSheetContext: () => useGestureSheetContext
25
27
  });
26
28
  module.exports = __toCommonJS(GestureSheetContext_exports);
27
- var import_react = require("react"),
28
- import_jsx_runtime = require("react/jsx-runtime");
29
+ var import_react = require("react");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
29
31
  const GestureSheetContext = (0, import_react.createContext)(null);
30
32
  function useGestureSheetContext() {
31
33
  return (0, import_react.useContext)(GestureSheetContext);
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var GestureSheetContext_exports = {};
24
26
  __export(GestureSheetContext_exports, {
@@ -26,28 +28,28 @@ __export(GestureSheetContext_exports, {
26
28
  useGestureSheetContext: () => useGestureSheetContext
27
29
  });
28
30
  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);
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var import_react = require("react");
33
+ var GestureSheetContext = /* @__PURE__ */(0, import_react.createContext)(null);
32
34
  function useGestureSheetContext() {
33
35
  return (0, import_react.useContext)(GestureSheetContext);
34
36
  }
35
37
  function GestureSheetProvider(param) {
36
38
  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
- };
39
+ children,
40
+ isDragging,
41
+ blockPan,
42
+ setBlockPan,
43
+ panGesture,
44
+ panGestureRef
45
+ } = param;
46
+ var value = {
47
+ panGesture,
48
+ panGestureRef,
49
+ isDragging,
50
+ blockPan,
51
+ setBlockPan
52
+ };
51
53
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureSheetContext.Provider, {
52
54
  value,
53
55
  children
@@ -1 +1 @@
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":[]}
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,2BAAA;AA0DtD,IAAAM,kBAAA,GAAAC,OAAA;AAhCJ,IAAAC,YAAM,GAAAD,OAAA,QAAsB;AAErB,IAAAE,mBAAS,kBAA0D,IAAAD,YAAA,CAAAE,aAAA;AACxE,SAAAP,sBAAOA,CAAA;EACT,WAAAK,YAAA,CAAAG,UAAA,EAAAF,mBAAA;AAWO;AAA8B,SACnCP,qBAAAU,KAAA;EACA;IAAAC,QAAA;IAAAC,UAAA;IAAAC,QAAA;IAAAC,WAAA;IAAAC,UAAA;IAAAC;EAAA,IAAAN,KAAA;EACA,IAAAb,KAAA;IACAkB,UAAA;IACAC,aAAA;IACAJ,UAAA;IAC4BC,QAAA;IAC5BC;EAAwC;EACtC,OACA,mBAAAV,kBAAA,CAAAa,GAAA,EAAAV,mBAAA,CAAAW,QAAA;IACArB,KAAA;IACAc;EAAA,EACA;AAAA","ignoreList":[]}
@@ -3,21 +3,23 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- },
18
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ }
18
+ return to;
19
+ };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
21
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
20
- value: !0
22
+ value: true
21
23
  }), mod);
22
24
  var Sheet_exports = {};
23
25
  __export(Sheet_exports, {
@@ -28,90 +30,90 @@ __export(Sheet_exports, {
28
30
  createSheetScope: () => import_SheetContext.createSheetScope
29
31
  });
30
32
  module.exports = __toCommonJS(Sheet_exports);
31
- var import_gui_core = require("@hanzogui/core"),
32
- import_gui_stacks = require("@hanzogui/stacks"),
33
- import_constants = require("./constants.cjs"),
34
- import_createSheet = require("./createSheet.cjs"),
35
- import_SheetContext = require("./SheetContext.cjs");
33
+ var import_core = require("@hanzogui/core");
34
+ var import_stacks = require("@hanzogui/stacks");
35
+ var import_constants = require("./constants.cjs");
36
+ var import_createSheet = require("./createSheet.cjs");
37
+ var import_SheetContext = require("./SheetContext.cjs");
36
38
  __reExport(Sheet_exports, require("./types.cjs"), module.exports);
37
- const Handle = (0, import_gui_core.styled)(import_gui_stacks.XStack, {
38
- name: import_constants.SHEET_HANDLE_NAME,
39
- variants: {
40
- open: {
41
- true: {
42
- opacity: 1,
43
- pointerEvents: "auto"
44
- },
45
- false: {
46
- opacity: 0,
47
- pointerEvents: "none"
48
- }
39
+ const Handle = (0, import_core.styled)(import_stacks.XStack, {
40
+ name: import_constants.SHEET_HANDLE_NAME,
41
+ variants: {
42
+ open: {
43
+ true: {
44
+ opacity: 1,
45
+ pointerEvents: "auto"
49
46
  },
50
- unstyled: {
51
- false: {
52
- height: 10,
53
- borderRadius: 100,
54
- backgroundColor: "$background",
55
- zIndex: 10,
56
- marginHorizontal: "35%",
57
- marginBottom: "$2",
58
- opacity: 0.5,
59
- hoverStyle: {
60
- opacity: 0.7
61
- }
62
- }
47
+ false: {
48
+ opacity: 0,
49
+ pointerEvents: "none"
63
50
  }
64
51
  },
65
- defaultVariants: {
66
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
67
- }
68
- }),
69
- Overlay = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
70
- name: import_constants.SHEET_OVERLAY_NAME,
71
- variants: {
72
- open: {
73
- true: {
74
- pointerEvents: "auto"
75
- },
76
- false: {
77
- pointerEvents: "none"
52
+ unstyled: {
53
+ false: {
54
+ height: 10,
55
+ borderRadius: 100,
56
+ backgroundColor: "$background",
57
+ zIndex: 10,
58
+ marginHorizontal: "35%",
59
+ marginBottom: "$2",
60
+ opacity: 0.5,
61
+ hoverStyle: {
62
+ opacity: 0.7
78
63
  }
64
+ }
65
+ }
66
+ },
67
+ defaultVariants: {
68
+ unstyled: process.env.GUI_HEADLESS === "1"
69
+ }
70
+ });
71
+ const Overlay = (0, import_core.styled)(import_stacks.YStack, {
72
+ name: import_constants.SHEET_OVERLAY_NAME,
73
+ variants: {
74
+ open: {
75
+ true: {
76
+ pointerEvents: "auto"
79
77
  },
80
- unstyled: {
81
- false: {
82
- fullscreen: !0,
83
- position: "absolute",
84
- backgroundColor: "$background",
85
- zIndex: 99999,
86
- pointerEvents: "auto"
87
- }
78
+ false: {
79
+ pointerEvents: "none"
88
80
  }
89
81
  },
90
- defaultVariants: {
91
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
82
+ unstyled: {
83
+ false: {
84
+ fullscreen: true,
85
+ position: "absolute",
86
+ backgroundColor: "$background",
87
+ zIndex: 1e5 - 1,
88
+ pointerEvents: "auto"
89
+ }
92
90
  }
93
- }),
94
- Frame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
95
- name: import_constants.SHEET_NAME,
96
- variants: {
97
- unstyled: {
98
- false: {
99
- flex: 1,
100
- backgroundColor: "$background",
101
- borderTopLeftRadius: "$true",
102
- borderTopRightRadius: "$true",
103
- width: "100%",
104
- maxHeight: "100%",
105
- overflow: "hidden"
106
- }
91
+ },
92
+ defaultVariants: {
93
+ unstyled: process.env.GUI_HEADLESS === "1"
94
+ }
95
+ });
96
+ const Frame = (0, import_core.styled)(import_stacks.YStack, {
97
+ name: import_constants.SHEET_NAME,
98
+ variants: {
99
+ unstyled: {
100
+ false: {
101
+ flex: 1,
102
+ backgroundColor: "$background",
103
+ borderTopLeftRadius: "$true",
104
+ borderTopRightRadius: "$true",
105
+ width: "100%",
106
+ maxHeight: "100%",
107
+ overflow: "hidden"
107
108
  }
108
- },
109
- defaultVariants: {
110
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
111
109
  }
112
- }),
113
- Sheet = (0, import_createSheet.createSheet)({
114
- Frame,
115
- Handle,
116
- Overlay
117
- });
110
+ },
111
+ defaultVariants: {
112
+ unstyled: process.env.GUI_HEADLESS === "1"
113
+ }
114
+ });
115
+ const Sheet = (0, import_createSheet.createSheet)({
116
+ Frame,
117
+ Handle,
118
+ Overlay
119
+ });