@hanzogui/sheet 2.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.
- package/LICENSE +21 -0
- package/controller/index.cjs +2 -0
- package/controller/index.d.ts +5 -0
- package/controller/index.js +2 -0
- package/controller/index.native.cjs +2 -0
- package/controller/index.native.js +2 -0
- package/dist/cjs/GestureDetectorWrapper.cjs +48 -0
- package/dist/cjs/GestureDetectorWrapper.native.js +53 -0
- package/dist/cjs/GestureDetectorWrapper.native.js.map +1 -0
- package/dist/cjs/GestureSheetContext.cjs +52 -0
- package/dist/cjs/GestureSheetContext.native.js +56 -0
- package/dist/cjs/GestureSheetContext.native.js.map +1 -0
- package/dist/cjs/Sheet.cjs +117 -0
- package/dist/cjs/Sheet.native.js +120 -0
- package/dist/cjs/Sheet.native.js.map +1 -0
- package/dist/cjs/SheetContext.cjs +32 -0
- package/dist/cjs/SheetContext.native.js +35 -0
- package/dist/cjs/SheetContext.native.js.map +1 -0
- package/dist/cjs/SheetController.cjs +65 -0
- package/dist/cjs/SheetController.native.js +71 -0
- package/dist/cjs/SheetController.native.js.map +1 -0
- package/dist/cjs/SheetImplementationCustom.cjs +472 -0
- package/dist/cjs/SheetImplementationCustom.native.js +524 -0
- package/dist/cjs/SheetImplementationCustom.native.js.map +1 -0
- package/dist/cjs/SheetScrollView.cjs +180 -0
- package/dist/cjs/SheetScrollView.native.js +197 -0
- package/dist/cjs/SheetScrollView.native.js.map +1 -0
- package/dist/cjs/constants.cjs +32 -0
- package/dist/cjs/constants.native.js +35 -0
- package/dist/cjs/constants.native.js.map +1 -0
- package/dist/cjs/contexts.cjs +42 -0
- package/dist/cjs/contexts.native.js +45 -0
- package/dist/cjs/contexts.native.js.map +1 -0
- package/dist/cjs/controller.cjs +29 -0
- package/dist/cjs/controller.native.js +32 -0
- package/dist/cjs/controller.native.js.map +1 -0
- package/dist/cjs/createSheet.cjs +191 -0
- package/dist/cjs/createSheet.native.js +208 -0
- package/dist/cjs/createSheet.native.js.map +1 -0
- package/dist/cjs/gestureState.cjs +39 -0
- package/dist/cjs/gestureState.native.js +42 -0
- package/dist/cjs/gestureState.native.js.map +1 -0
- package/dist/cjs/helpers.cjs +31 -0
- package/dist/cjs/helpers.native.js +35 -0
- package/dist/cjs/helpers.native.js.map +1 -0
- package/dist/cjs/index.cjs +28 -0
- package/dist/cjs/index.native.js +31 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/nativeSheet.cjs +87 -0
- package/dist/cjs/nativeSheet.native.js +101 -0
- package/dist/cjs/nativeSheet.native.js.map +1 -0
- package/dist/cjs/setupGestureHandler.cjs +46 -0
- package/dist/cjs/setupGestureHandler.native.js +50 -0
- package/dist/cjs/setupGestureHandler.native.js.map +1 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/types.native.js +19 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/useGestureHandlerPan.cjs +136 -0
- package/dist/cjs/useGestureHandlerPan.native.js +145 -0
- package/dist/cjs/useGestureHandlerPan.native.js.map +1 -0
- package/dist/cjs/useKeyboardControllerSheet.cjs +38 -0
- package/dist/cjs/useKeyboardControllerSheet.native.js +114 -0
- package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -0
- package/dist/cjs/useSheet.cjs +27 -0
- package/dist/cjs/useSheet.native.js +32 -0
- package/dist/cjs/useSheet.native.js.map +1 -0
- package/dist/cjs/useSheetController.cjs +50 -0
- package/dist/cjs/useSheetController.native.js +53 -0
- package/dist/cjs/useSheetController.native.js.map +1 -0
- package/dist/cjs/useSheetOffscreenSize.cjs +51 -0
- package/dist/cjs/useSheetOffscreenSize.native.js +61 -0
- package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -0
- package/dist/cjs/useSheetOpenState.cjs +49 -0
- package/dist/cjs/useSheetOpenState.native.js +56 -0
- package/dist/cjs/useSheetOpenState.native.js.map +1 -0
- package/dist/cjs/useSheetProviderProps.cjs +133 -0
- package/dist/cjs/useSheetProviderProps.native.js +153 -0
- package/dist/cjs/useSheetProviderProps.native.js.map +1 -0
- package/dist/cjs/useSheetScrollViewGestures.cjs +123 -0
- package/dist/cjs/useSheetScrollViewGestures.native.js +110 -0
- package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -0
- package/dist/esm/GestureDetectorWrapper.mjs +25 -0
- package/dist/esm/GestureDetectorWrapper.mjs.map +1 -0
- package/dist/esm/GestureDetectorWrapper.native.js +27 -0
- package/dist/esm/GestureDetectorWrapper.native.js.map +1 -0
- package/dist/esm/GestureSheetContext.mjs +28 -0
- package/dist/esm/GestureSheetContext.mjs.map +1 -0
- package/dist/esm/GestureSheetContext.native.js +29 -0
- package/dist/esm/GestureSheetContext.native.js.map +1 -0
- package/dist/esm/Sheet.mjs +89 -0
- package/dist/esm/Sheet.mjs.map +1 -0
- package/dist/esm/Sheet.native.js +89 -0
- package/dist/esm/Sheet.native.js.map +1 -0
- package/dist/esm/SheetContext.mjs +6 -0
- package/dist/esm/SheetContext.mjs.map +1 -0
- package/dist/esm/SheetContext.native.js +6 -0
- package/dist/esm/SheetContext.native.js.map +1 -0
- package/dist/esm/SheetController.mjs +31 -0
- package/dist/esm/SheetController.mjs.map +1 -0
- package/dist/esm/SheetController.native.js +34 -0
- package/dist/esm/SheetController.native.js.map +1 -0
- package/dist/esm/SheetImplementationCustom.mjs +437 -0
- package/dist/esm/SheetImplementationCustom.mjs.map +1 -0
- package/dist/esm/SheetImplementationCustom.native.js +487 -0
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -0
- package/dist/esm/SheetScrollView.mjs +146 -0
- package/dist/esm/SheetScrollView.mjs.map +1 -0
- package/dist/esm/SheetScrollView.native.js +160 -0
- package/dist/esm/SheetScrollView.native.js.map +1 -0
- package/dist/esm/constants.mjs +6 -0
- package/dist/esm/constants.mjs.map +1 -0
- package/dist/esm/constants.native.js +6 -0
- package/dist/esm/constants.native.js.map +1 -0
- package/dist/esm/contexts.mjs +7 -0
- package/dist/esm/contexts.mjs.map +1 -0
- package/dist/esm/contexts.native.js +7 -0
- package/dist/esm/contexts.native.js.map +1 -0
- package/dist/esm/controller.mjs +4 -0
- package/dist/esm/controller.mjs.map +1 -0
- package/dist/esm/controller.native.js +4 -0
- package/dist/esm/controller.native.js.map +1 -0
- package/dist/esm/createSheet.mjs +168 -0
- package/dist/esm/createSheet.mjs.map +1 -0
- package/dist/esm/createSheet.native.js +182 -0
- package/dist/esm/createSheet.native.js.map +1 -0
- package/dist/esm/gestureState.mjs +13 -0
- package/dist/esm/gestureState.mjs.map +1 -0
- package/dist/esm/gestureState.native.js +13 -0
- package/dist/esm/gestureState.native.js.map +1 -0
- package/dist/esm/helpers.mjs +8 -0
- package/dist/esm/helpers.mjs.map +1 -0
- package/dist/esm/helpers.native.js +9 -0
- package/dist/esm/helpers.native.js.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +12 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +12 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/nativeSheet.mjs +63 -0
- package/dist/esm/nativeSheet.mjs.map +1 -0
- package/dist/esm/nativeSheet.native.js +74 -0
- package/dist/esm/nativeSheet.native.js.map +1 -0
- package/dist/esm/setupGestureHandler.mjs +22 -0
- package/dist/esm/setupGestureHandler.mjs.map +1 -0
- package/dist/esm/setupGestureHandler.native.js +23 -0
- package/dist/esm/setupGestureHandler.native.js.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/useGestureHandlerPan.mjs +113 -0
- package/dist/esm/useGestureHandlerPan.mjs.map +1 -0
- package/dist/esm/useGestureHandlerPan.native.js +119 -0
- package/dist/esm/useGestureHandlerPan.native.js.map +1 -0
- package/dist/esm/useKeyboardControllerSheet.mjs +15 -0
- package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -0
- package/dist/esm/useKeyboardControllerSheet.native.js +88 -0
- package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -0
- package/dist/esm/useSheet.mjs +4 -0
- package/dist/esm/useSheet.mjs.map +1 -0
- package/dist/esm/useSheet.native.js +6 -0
- package/dist/esm/useSheet.native.js.map +1 -0
- package/dist/esm/useSheetController.mjs +15 -0
- package/dist/esm/useSheetController.mjs.map +1 -0
- package/dist/esm/useSheetController.native.js +15 -0
- package/dist/esm/useSheetController.native.js.map +1 -0
- package/dist/esm/useSheetOffscreenSize.mjs +28 -0
- package/dist/esm/useSheetOffscreenSize.mjs.map +1 -0
- package/dist/esm/useSheetOffscreenSize.native.js +35 -0
- package/dist/esm/useSheetOffscreenSize.native.js.map +1 -0
- package/dist/esm/useSheetOpenState.mjs +26 -0
- package/dist/esm/useSheetOpenState.mjs.map +1 -0
- package/dist/esm/useSheetOpenState.native.js +30 -0
- package/dist/esm/useSheetOpenState.native.js.map +1 -0
- package/dist/esm/useSheetProviderProps.mjs +99 -0
- package/dist/esm/useSheetProviderProps.mjs.map +1 -0
- package/dist/esm/useSheetProviderProps.native.js +116 -0
- package/dist/esm/useSheetProviderProps.native.js.map +1 -0
- package/dist/esm/useSheetScrollViewGestures.mjs +100 -0
- package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -0
- package/dist/esm/useSheetScrollViewGestures.native.js +84 -0
- package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -0
- package/dist/jsx/GestureDetectorWrapper.mjs +25 -0
- package/dist/jsx/GestureDetectorWrapper.mjs.map +1 -0
- package/dist/jsx/GestureDetectorWrapper.native.js +53 -0
- package/dist/jsx/GestureDetectorWrapper.native.js.map +1 -0
- package/dist/jsx/GestureSheetContext.mjs +28 -0
- package/dist/jsx/GestureSheetContext.mjs.map +1 -0
- package/dist/jsx/GestureSheetContext.native.js +56 -0
- package/dist/jsx/GestureSheetContext.native.js.map +1 -0
- package/dist/jsx/Sheet.mjs +89 -0
- package/dist/jsx/Sheet.mjs.map +1 -0
- package/dist/jsx/Sheet.native.js +120 -0
- package/dist/jsx/Sheet.native.js.map +1 -0
- package/dist/jsx/SheetContext.mjs +6 -0
- package/dist/jsx/SheetContext.mjs.map +1 -0
- package/dist/jsx/SheetContext.native.js +35 -0
- package/dist/jsx/SheetContext.native.js.map +1 -0
- package/dist/jsx/SheetController.mjs +31 -0
- package/dist/jsx/SheetController.mjs.map +1 -0
- package/dist/jsx/SheetController.native.js +71 -0
- package/dist/jsx/SheetController.native.js.map +1 -0
- package/dist/jsx/SheetImplementationCustom.mjs +437 -0
- package/dist/jsx/SheetImplementationCustom.mjs.map +1 -0
- package/dist/jsx/SheetImplementationCustom.native.js +524 -0
- package/dist/jsx/SheetImplementationCustom.native.js.map +1 -0
- package/dist/jsx/SheetScrollView.mjs +146 -0
- package/dist/jsx/SheetScrollView.mjs.map +1 -0
- package/dist/jsx/SheetScrollView.native.js +197 -0
- package/dist/jsx/SheetScrollView.native.js.map +1 -0
- package/dist/jsx/constants.mjs +6 -0
- package/dist/jsx/constants.mjs.map +1 -0
- package/dist/jsx/constants.native.js +35 -0
- package/dist/jsx/constants.native.js.map +1 -0
- package/dist/jsx/contexts.mjs +7 -0
- package/dist/jsx/contexts.mjs.map +1 -0
- package/dist/jsx/contexts.native.js +45 -0
- package/dist/jsx/contexts.native.js.map +1 -0
- package/dist/jsx/controller.mjs +4 -0
- package/dist/jsx/controller.mjs.map +1 -0
- package/dist/jsx/controller.native.js +32 -0
- package/dist/jsx/controller.native.js.map +1 -0
- package/dist/jsx/createSheet.mjs +168 -0
- package/dist/jsx/createSheet.mjs.map +1 -0
- package/dist/jsx/createSheet.native.js +208 -0
- package/dist/jsx/createSheet.native.js.map +1 -0
- package/dist/jsx/gestureState.mjs +13 -0
- package/dist/jsx/gestureState.mjs.map +1 -0
- package/dist/jsx/gestureState.native.js +42 -0
- package/dist/jsx/gestureState.native.js.map +1 -0
- package/dist/jsx/helpers.mjs +8 -0
- package/dist/jsx/helpers.mjs.map +1 -0
- package/dist/jsx/helpers.native.js +35 -0
- package/dist/jsx/helpers.native.js.map +1 -0
- package/dist/jsx/index.js +12 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +12 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +31 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/nativeSheet.mjs +63 -0
- package/dist/jsx/nativeSheet.mjs.map +1 -0
- package/dist/jsx/nativeSheet.native.js +101 -0
- package/dist/jsx/nativeSheet.native.js.map +1 -0
- package/dist/jsx/setupGestureHandler.mjs +22 -0
- package/dist/jsx/setupGestureHandler.mjs.map +1 -0
- package/dist/jsx/setupGestureHandler.native.js +50 -0
- package/dist/jsx/setupGestureHandler.native.js.map +1 -0
- package/dist/jsx/types.mjs +2 -0
- package/dist/jsx/types.mjs.map +1 -0
- package/dist/jsx/types.native.js +19 -0
- package/dist/jsx/types.native.js.map +1 -0
- package/dist/jsx/useGestureHandlerPan.mjs +113 -0
- package/dist/jsx/useGestureHandlerPan.mjs.map +1 -0
- package/dist/jsx/useGestureHandlerPan.native.js +145 -0
- package/dist/jsx/useGestureHandlerPan.native.js.map +1 -0
- package/dist/jsx/useKeyboardControllerSheet.mjs +15 -0
- package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -0
- package/dist/jsx/useKeyboardControllerSheet.native.js +114 -0
- package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -0
- package/dist/jsx/useSheet.mjs +4 -0
- package/dist/jsx/useSheet.mjs.map +1 -0
- package/dist/jsx/useSheet.native.js +32 -0
- package/dist/jsx/useSheet.native.js.map +1 -0
- package/dist/jsx/useSheetController.mjs +15 -0
- package/dist/jsx/useSheetController.mjs.map +1 -0
- package/dist/jsx/useSheetController.native.js +53 -0
- package/dist/jsx/useSheetController.native.js.map +1 -0
- package/dist/jsx/useSheetOffscreenSize.mjs +28 -0
- package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -0
- package/dist/jsx/useSheetOffscreenSize.native.js +61 -0
- package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -0
- package/dist/jsx/useSheetOpenState.mjs +26 -0
- package/dist/jsx/useSheetOpenState.mjs.map +1 -0
- package/dist/jsx/useSheetOpenState.native.js +56 -0
- package/dist/jsx/useSheetOpenState.native.js.map +1 -0
- package/dist/jsx/useSheetProviderProps.mjs +99 -0
- package/dist/jsx/useSheetProviderProps.mjs.map +1 -0
- package/dist/jsx/useSheetProviderProps.native.js +153 -0
- package/dist/jsx/useSheetProviderProps.native.js.map +1 -0
- package/dist/jsx/useSheetScrollViewGestures.mjs +100 -0
- package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -0
- package/dist/jsx/useSheetScrollViewGestures.native.js +110 -0
- package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -0
- package/next.md +78 -0
- package/package.json +96 -0
- package/setup-gesture-handler/index.cjs +2 -0
- package/setup-gesture-handler/index.js +2 -0
- package/setup-gesture-handler/index.native.cjs +2 -0
- package/setup-gesture-handler/index.native.js +2 -0
- package/setup-gesture-handler.cjs +1 -0
- package/src/GestureDetectorWrapper.tsx +41 -0
- package/src/GestureSheetContext.tsx +62 -0
- package/src/Sheet.tsx +114 -0
- package/src/SheetContext.tsx +11 -0
- package/src/SheetController.tsx +44 -0
- package/src/SheetImplementationCustom.tsx +868 -0
- package/src/SheetScrollView.tsx +195 -0
- package/src/constants.tsx +5 -0
- package/src/contexts.ts +9 -0
- package/src/controller.ts +9 -0
- package/src/createSheet.tsx +296 -0
- package/src/gestureState.ts +24 -0
- package/src/helpers.tsx +31 -0
- package/src/index.ts +11 -0
- package/src/nativeSheet.tsx +89 -0
- package/src/setupGestureHandler.ts +34 -0
- package/src/types.tsx +181 -0
- package/src/useGestureHandlerPan.tsx +364 -0
- package/src/useKeyboardControllerSheet.native.ts +136 -0
- package/src/useKeyboardControllerSheet.ts +26 -0
- package/src/useSheet.tsx +3 -0
- package/src/useSheetController.tsx +27 -0
- package/src/useSheetOffscreenSize.tsx +49 -0
- package/src/useSheetOpenState.tsx +33 -0
- package/src/useSheetProviderProps.tsx +223 -0
- package/src/useSheetScrollViewGestures.native.ts +163 -0
- package/src/useSheetScrollViewGestures.ts +194 -0
- package/tsconfig.json +56 -0
- package/types/GestureDetectorWrapper.d.ts +14 -0
- package/types/GestureSheetContext.d.ts +36 -0
- package/types/Sheet.d.ts +183 -0
- package/types/SheetContext.d.ts +43 -0
- package/types/SheetController.d.ts +6 -0
- package/types/SheetImplementationCustom.d.ts +36 -0
- package/types/SheetScrollView.d.ts +40 -0
- package/types/constants.d.ts +5 -0
- package/types/contexts.d.ts +6 -0
- package/types/controller.d.ts +3 -0
- package/types/createSheet.d.ts +194 -0
- package/types/gestureState.d.ts +11 -0
- package/types/helpers.d.ts +2 -0
- package/types/index.d.ts +12 -0
- package/types/nativeSheet.d.ts +10 -0
- package/types/setupGestureHandler.d.ts +11 -0
- package/types/types.d.ts +147 -0
- package/types/useGestureHandlerPan.d.ts +44 -0
- package/types/useKeyboardControllerSheet.d.ts +7 -0
- package/types/useKeyboardControllerSheet.native.d.ts +13 -0
- package/types/useSheet.d.ts +2 -0
- package/types/useSheetController.d.ts +17 -0
- package/types/useSheetOffscreenSize.d.ts +3 -0
- package/types/useSheetOpenState.d.ts +9 -0
- package/types/useSheetProviderProps.d.ts +36 -0
- package/types/useSheetScrollViewGestures.d.ts +12 -0
- package/types/useSheetScrollViewGestures.native.d.ts +21 -0
|
@@ -0,0 +1,191 @@
|
|
|
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 createSheet_exports = {};
|
|
22
|
+
__export(createSheet_exports, {
|
|
23
|
+
createSheet: () => createSheet
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(createSheet_exports);
|
|
26
|
+
var import_gui_compose_refs = require("@hanzo/gui-compose-refs"),
|
|
27
|
+
import_gui_constants = require("@hanzo/gui-constants"),
|
|
28
|
+
import_gui_core = require("@hanzo/gui-core"),
|
|
29
|
+
import_gui_helpers = require("@hanzo/gui-helpers"),
|
|
30
|
+
import_gui_portal = require("@hanzo/gui-portal"),
|
|
31
|
+
import_gui_remove_scroll = require("@hanzo/gui-remove-scroll"),
|
|
32
|
+
import_gui_use_did_finish_ssr = require("@hanzo/gui-use-did-finish-ssr"),
|
|
33
|
+
import_gui_z_index_stack = require("@hanzo/gui-z-index-stack"),
|
|
34
|
+
import_react = require("react"),
|
|
35
|
+
import_react_native = require("react-native-web"),
|
|
36
|
+
import_constants = require("./constants.cjs"),
|
|
37
|
+
import_nativeSheet = require("./nativeSheet.cjs"),
|
|
38
|
+
import_SheetContext = require("./SheetContext.cjs"),
|
|
39
|
+
import_SheetImplementationCustom = require("./SheetImplementationCustom.cjs"),
|
|
40
|
+
import_SheetScrollView = require("./SheetScrollView.cjs"),
|
|
41
|
+
import_useSheetController = require("./useSheetController.cjs"),
|
|
42
|
+
import_useSheetOffscreenSize = require("./useSheetOffscreenSize.cjs"),
|
|
43
|
+
import_jsx_runtime =
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
require("react/jsx-runtime");
|
|
46
|
+
function createSheet({
|
|
47
|
+
Handle,
|
|
48
|
+
Frame,
|
|
49
|
+
Overlay
|
|
50
|
+
}) {
|
|
51
|
+
const SheetHandle = Handle.styleable(({
|
|
52
|
+
__scopeSheet,
|
|
53
|
+
...props
|
|
54
|
+
}, forwardedRef) => {
|
|
55
|
+
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_HANDLE_NAME, __scopeSheet),
|
|
56
|
+
composedRef = (0, import_gui_compose_refs.useComposedRefs)(context.handleRef, forwardedRef),
|
|
57
|
+
wasDraggingRef = (0, import_react.useRef)(!1);
|
|
58
|
+
return (0, import_react.useEffect)(() => {
|
|
59
|
+
if (context.scrollBridge) return context.scrollBridge.onParentDragging(isDragging => {
|
|
60
|
+
isDragging && (wasDraggingRef.current = !0);
|
|
61
|
+
});
|
|
62
|
+
}, [context.scrollBridge]), context.onlyShowFrame ? null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(Handle, {
|
|
63
|
+
ref: composedRef,
|
|
64
|
+
onPressIn: () => {
|
|
65
|
+
wasDraggingRef.current = !1;
|
|
66
|
+
},
|
|
67
|
+
onPress: () => {
|
|
68
|
+
if (wasDraggingRef.current) {
|
|
69
|
+
wasDraggingRef.current = !1;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0),
|
|
73
|
+
nextPos = (context.position + 1) % max;
|
|
74
|
+
context.setPosition(nextPos);
|
|
75
|
+
},
|
|
76
|
+
open: context.open,
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}),
|
|
80
|
+
SheetOverlay = Overlay.styleable((propsIn, ref) => {
|
|
81
|
+
const {
|
|
82
|
+
__scopeSheet,
|
|
83
|
+
...props
|
|
84
|
+
} = propsIn,
|
|
85
|
+
context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_OVERLAY_NAME, __scopeSheet),
|
|
86
|
+
element = (0, import_react.useMemo)(() =>
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
/* @__PURE__ */
|
|
89
|
+
(0, import_jsx_runtime.jsx)(Overlay, {
|
|
90
|
+
...props,
|
|
91
|
+
onPress: (0, import_gui_helpers.composeEventHandlers)(props.onPress, context.dismissOnOverlayPress ? () => {
|
|
92
|
+
context.setOpen(!1);
|
|
93
|
+
} : void 0)
|
|
94
|
+
}), [props.onPress, props.opacity, context.dismissOnOverlayPress]);
|
|
95
|
+
return (0, import_gui_constants.useIsomorphicLayoutEffect)(() => {
|
|
96
|
+
context.onOverlayComponent?.(element);
|
|
97
|
+
}, [element]), context.onlyShowFrame, null;
|
|
98
|
+
}),
|
|
99
|
+
SheetFrame = Frame.styleable(({
|
|
100
|
+
__scopeSheet,
|
|
101
|
+
adjustPaddingForOffscreenContent,
|
|
102
|
+
disableHideBottomOverflow,
|
|
103
|
+
children,
|
|
104
|
+
...props
|
|
105
|
+
}, forwardedRef) => {
|
|
106
|
+
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_NAME, __scopeSheet),
|
|
107
|
+
{
|
|
108
|
+
hasFit,
|
|
109
|
+
disableRemoveScroll,
|
|
110
|
+
frameSize,
|
|
111
|
+
contentRef,
|
|
112
|
+
open
|
|
113
|
+
} = context,
|
|
114
|
+
composedContentRef = (0, import_gui_compose_refs.useComposedRefs)(forwardedRef, contentRef),
|
|
115
|
+
offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context),
|
|
116
|
+
stableFrameSize = (0, import_react.useRef)(frameSize);
|
|
117
|
+
(0, import_react.useEffect)(() => {
|
|
118
|
+
open && frameSize && (stableFrameSize.current = frameSize);
|
|
119
|
+
}, [open, frameSize]);
|
|
120
|
+
const sheetContents = (0, import_react.useMemo)(() => {
|
|
121
|
+
const shouldUseFixedHeight = hasFit && !open && stableFrameSize.current;
|
|
122
|
+
return (
|
|
123
|
+
// @ts-expect-error
|
|
124
|
+
/* @__PURE__ */
|
|
125
|
+
(0, import_jsx_runtime.jsxs)(Frame, {
|
|
126
|
+
ref: composedContentRef,
|
|
127
|
+
flex: hasFit && open ? 0 : 1,
|
|
128
|
+
flexBasis: hasFit ? "auto" : void 0,
|
|
129
|
+
height: shouldUseFixedHeight ? stableFrameSize.current : hasFit ? void 0 : frameSize,
|
|
130
|
+
pointerEvents: open ? "auto" : "none",
|
|
131
|
+
"data-state": open ? "open" : "closed",
|
|
132
|
+
...props,
|
|
133
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_z_index_stack.StackZIndexContext, {
|
|
134
|
+
zIndex: (0, import_gui_portal.resolveViewZIndex)(props.zIndex),
|
|
135
|
+
children
|
|
136
|
+
}), adjustPaddingForOffscreenContent && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_core.View, {
|
|
137
|
+
"data-sheet-offscreen-pad": !0,
|
|
138
|
+
height: offscreenSize,
|
|
139
|
+
width: "100%"
|
|
140
|
+
})]
|
|
141
|
+
})
|
|
142
|
+
);
|
|
143
|
+
}, [open, props, frameSize, offscreenSize, adjustPaddingForOffscreenContent, hasFit]);
|
|
144
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
145
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_remove_scroll.RemoveScroll, {
|
|
146
|
+
enabled: !disableRemoveScroll && context.open,
|
|
147
|
+
children: sheetContents
|
|
148
|
+
}), !disableHideBottomOverflow &&
|
|
149
|
+
// @ts-ignore
|
|
150
|
+
/* @__PURE__ */
|
|
151
|
+
(0, import_jsx_runtime.jsx)(Frame, {
|
|
152
|
+
...props,
|
|
153
|
+
componentName: "SheetCover",
|
|
154
|
+
children: null,
|
|
155
|
+
testID: void 0,
|
|
156
|
+
id: void 0,
|
|
157
|
+
position: "absolute",
|
|
158
|
+
bottom: "-100%",
|
|
159
|
+
zIndex: -1,
|
|
160
|
+
height: context.frameSize,
|
|
161
|
+
left: 0,
|
|
162
|
+
right: 0,
|
|
163
|
+
borderWidth: 0,
|
|
164
|
+
borderRadius: 0,
|
|
165
|
+
shadowOpacity: 0
|
|
166
|
+
})]
|
|
167
|
+
});
|
|
168
|
+
}),
|
|
169
|
+
Sheet = (0, import_react.forwardRef)(function (props, ref) {
|
|
170
|
+
const hydrated = (0, import_gui_use_did_finish_ssr.useDidFinishSSR)(),
|
|
171
|
+
{
|
|
172
|
+
isShowingNonSheet
|
|
173
|
+
} = (0, import_useSheetController.useSheetController)();
|
|
174
|
+
let SheetImplementation = import_SheetImplementationCustom.SheetImplementationCustom;
|
|
175
|
+
return props.native && import_react_native.Platform.OS, isShowingNonSheet || !hydrated ? null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(SheetImplementation, {
|
|
176
|
+
ref,
|
|
177
|
+
...props
|
|
178
|
+
});
|
|
179
|
+
}),
|
|
180
|
+
components = {
|
|
181
|
+
Frame: SheetFrame,
|
|
182
|
+
Overlay: SheetOverlay,
|
|
183
|
+
Handle: SheetHandle,
|
|
184
|
+
ScrollView: import_SheetScrollView.SheetScrollView
|
|
185
|
+
},
|
|
186
|
+
Controlled = (0, import_gui_helpers.withStaticProperties)(Sheet, components);
|
|
187
|
+
return (0, import_gui_helpers.withStaticProperties)(Sheet, {
|
|
188
|
+
...components,
|
|
189
|
+
Controlled
|
|
190
|
+
});
|
|
191
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
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 createSheet_exports = {};
|
|
24
|
+
__export(createSheet_exports, {
|
|
25
|
+
createSheet: () => createSheet
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(createSheet_exports);
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
+
import_gui_compose_refs = require("@hanzo/gui-compose-refs"),
|
|
30
|
+
import_gui_constants = require("@hanzo/gui-constants"),
|
|
31
|
+
import_gui_core = require("@hanzo/gui-core"),
|
|
32
|
+
import_gui_helpers = require("@hanzo/gui-helpers"),
|
|
33
|
+
import_gui_portal = require("@hanzo/gui-portal"),
|
|
34
|
+
import_gui_remove_scroll = require("@hanzo/gui-remove-scroll"),
|
|
35
|
+
import_gui_use_did_finish_ssr = require("@hanzo/gui-use-did-finish-ssr"),
|
|
36
|
+
import_gui_z_index_stack = require("@hanzo/gui-z-index-stack"),
|
|
37
|
+
import_react = require("react"),
|
|
38
|
+
import_react_native = require("react-native"),
|
|
39
|
+
import_constants = require("./constants.native.js"),
|
|
40
|
+
import_nativeSheet = require("./nativeSheet.native.js"),
|
|
41
|
+
import_SheetContext = require("./SheetContext.native.js"),
|
|
42
|
+
import_SheetImplementationCustom = require("./SheetImplementationCustom.native.js"),
|
|
43
|
+
import_SheetScrollView = require("./SheetScrollView.native.js"),
|
|
44
|
+
import_useSheetController = require("./useSheetController.native.js"),
|
|
45
|
+
import_useSheetOffscreenSize = require("./useSheetOffscreenSize.native.js");
|
|
46
|
+
function createSheet(param) {
|
|
47
|
+
var {
|
|
48
|
+
Handle,
|
|
49
|
+
Frame,
|
|
50
|
+
Overlay
|
|
51
|
+
} = param,
|
|
52
|
+
SheetHandle = Handle.styleable(function (param2, forwardedRef) {
|
|
53
|
+
var {
|
|
54
|
+
__scopeSheet,
|
|
55
|
+
...props
|
|
56
|
+
} = param2,
|
|
57
|
+
context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_HANDLE_NAME, __scopeSheet),
|
|
58
|
+
composedRef = (0, import_gui_compose_refs.useComposedRefs)(context.handleRef, forwardedRef),
|
|
59
|
+
wasDraggingRef = (0, import_react.useRef)(!1);
|
|
60
|
+
return (0, import_react.useEffect)(function () {
|
|
61
|
+
if (context.scrollBridge) return context.scrollBridge.onParentDragging(function (isDragging) {
|
|
62
|
+
isDragging && (wasDraggingRef.current = !0);
|
|
63
|
+
});
|
|
64
|
+
}, [context.scrollBridge]), context.onlyShowFrame ? null :
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
/* @__PURE__ */
|
|
67
|
+
(0, import_jsx_runtime.jsx)(Handle, {
|
|
68
|
+
ref: composedRef,
|
|
69
|
+
onPressIn: function () {
|
|
70
|
+
wasDraggingRef.current = !1;
|
|
71
|
+
},
|
|
72
|
+
onPress: function () {
|
|
73
|
+
if (wasDraggingRef.current) {
|
|
74
|
+
wasDraggingRef.current = !1;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
var max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0),
|
|
78
|
+
nextPos = (context.position + 1) % max;
|
|
79
|
+
context.setPosition(nextPos);
|
|
80
|
+
},
|
|
81
|
+
open: context.open,
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}),
|
|
85
|
+
SheetOverlay = Overlay.styleable(function (propsIn, ref) {
|
|
86
|
+
var {
|
|
87
|
+
__scopeSheet,
|
|
88
|
+
...props
|
|
89
|
+
} = propsIn,
|
|
90
|
+
context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_OVERLAY_NAME, __scopeSheet),
|
|
91
|
+
element = (0, import_react.useMemo)(function () {
|
|
92
|
+
return (
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
/* @__PURE__ */
|
|
95
|
+
(0, import_jsx_runtime.jsx)(Overlay, {
|
|
96
|
+
...props,
|
|
97
|
+
onPress: (0, import_gui_helpers.composeEventHandlers)(props.onPress, context.dismissOnOverlayPress ? function () {
|
|
98
|
+
context.setOpen(!1);
|
|
99
|
+
} : void 0)
|
|
100
|
+
})
|
|
101
|
+
);
|
|
102
|
+
}, [props.onPress, props.opacity, context.dismissOnOverlayPress]);
|
|
103
|
+
return (0, import_gui_constants.useIsomorphicLayoutEffect)(function () {
|
|
104
|
+
var _context_onOverlayComponent;
|
|
105
|
+
(_context_onOverlayComponent = context.onOverlayComponent) === null || _context_onOverlayComponent === void 0 || _context_onOverlayComponent.call(context, element);
|
|
106
|
+
}, [element]), context.onlyShowFrame, null;
|
|
107
|
+
}),
|
|
108
|
+
SheetFrame = Frame.styleable(function (param2, forwardedRef) {
|
|
109
|
+
var {
|
|
110
|
+
__scopeSheet,
|
|
111
|
+
adjustPaddingForOffscreenContent,
|
|
112
|
+
disableHideBottomOverflow,
|
|
113
|
+
children,
|
|
114
|
+
...props
|
|
115
|
+
} = param2,
|
|
116
|
+
context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_NAME, __scopeSheet),
|
|
117
|
+
{
|
|
118
|
+
hasFit,
|
|
119
|
+
disableRemoveScroll,
|
|
120
|
+
frameSize,
|
|
121
|
+
contentRef,
|
|
122
|
+
open
|
|
123
|
+
} = context,
|
|
124
|
+
composedContentRef = (0, import_gui_compose_refs.useComposedRefs)(forwardedRef, contentRef),
|
|
125
|
+
offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context),
|
|
126
|
+
stableFrameSize = (0, import_react.useRef)(frameSize);
|
|
127
|
+
(0, import_react.useEffect)(function () {
|
|
128
|
+
open && frameSize && (stableFrameSize.current = frameSize);
|
|
129
|
+
}, [open, frameSize]);
|
|
130
|
+
var sheetContents = (0, import_react.useMemo)(function () {
|
|
131
|
+
var shouldUseFixedHeight = hasFit && !open && stableFrameSize.current;
|
|
132
|
+
return (
|
|
133
|
+
// @ts-expect-error
|
|
134
|
+
/* @__PURE__ */
|
|
135
|
+
(0, import_jsx_runtime.jsxs)(Frame, {
|
|
136
|
+
ref: composedContentRef,
|
|
137
|
+
flex: hasFit && open ? 0 : 1,
|
|
138
|
+
flexBasis: hasFit ? "auto" : void 0,
|
|
139
|
+
height: shouldUseFixedHeight ? stableFrameSize.current : hasFit ? void 0 : frameSize,
|
|
140
|
+
pointerEvents: open ? "auto" : "none",
|
|
141
|
+
"data-state": open ? "open" : "closed",
|
|
142
|
+
...props,
|
|
143
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_z_index_stack.StackZIndexContext, {
|
|
144
|
+
zIndex: (0, import_gui_portal.resolveViewZIndex)(props.zIndex),
|
|
145
|
+
children
|
|
146
|
+
}), adjustPaddingForOffscreenContent && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_core.View, {
|
|
147
|
+
"data-sheet-offscreen-pad": !0,
|
|
148
|
+
height: offscreenSize,
|
|
149
|
+
width: "100%"
|
|
150
|
+
})]
|
|
151
|
+
})
|
|
152
|
+
);
|
|
153
|
+
}, [open, props, frameSize, offscreenSize, adjustPaddingForOffscreenContent, hasFit]);
|
|
154
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
155
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_remove_scroll.RemoveScroll, {
|
|
156
|
+
enabled: !disableRemoveScroll && context.open,
|
|
157
|
+
children: sheetContents
|
|
158
|
+
}), /* below frame hide when bouncing past 100% */
|
|
159
|
+
!disableHideBottomOverflow &&
|
|
160
|
+
// @ts-ignore
|
|
161
|
+
/* @__PURE__ */
|
|
162
|
+
(0, import_jsx_runtime.jsx)(Frame, {
|
|
163
|
+
...props,
|
|
164
|
+
componentName: "SheetCover",
|
|
165
|
+
children: null,
|
|
166
|
+
// Don't inherit testID - this is a visual helper element
|
|
167
|
+
testID: void 0,
|
|
168
|
+
id: void 0,
|
|
169
|
+
position: "absolute",
|
|
170
|
+
bottom: "-100%",
|
|
171
|
+
zIndex: -1,
|
|
172
|
+
height: context.frameSize,
|
|
173
|
+
left: 0,
|
|
174
|
+
right: 0,
|
|
175
|
+
borderWidth: 0,
|
|
176
|
+
borderRadius: 0,
|
|
177
|
+
shadowOpacity: 0
|
|
178
|
+
})]
|
|
179
|
+
});
|
|
180
|
+
}),
|
|
181
|
+
Sheet = /* @__PURE__ */(0, import_react.forwardRef)(function (props, ref) {
|
|
182
|
+
var hydrated = (0, import_gui_use_did_finish_ssr.useDidFinishSSR)(),
|
|
183
|
+
{
|
|
184
|
+
isShowingNonSheet
|
|
185
|
+
} = (0, import_useSheetController.useSheetController)(),
|
|
186
|
+
SheetImplementation = import_SheetImplementationCustom.SheetImplementationCustom;
|
|
187
|
+
if (props.native && import_react_native.Platform.OS === "ios") {
|
|
188
|
+
var impl = (0, import_nativeSheet.getNativeSheet)("ios");
|
|
189
|
+
impl && (SheetImplementation = impl);
|
|
190
|
+
}
|
|
191
|
+
return isShowingNonSheet || !hydrated ? null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(SheetImplementation, {
|
|
192
|
+
ref,
|
|
193
|
+
...props
|
|
194
|
+
});
|
|
195
|
+
}),
|
|
196
|
+
components = {
|
|
197
|
+
Frame: SheetFrame,
|
|
198
|
+
Overlay: SheetOverlay,
|
|
199
|
+
Handle: SheetHandle,
|
|
200
|
+
ScrollView: import_SheetScrollView.SheetScrollView
|
|
201
|
+
},
|
|
202
|
+
Controlled = (0, import_gui_helpers.withStaticProperties)(Sheet, components);
|
|
203
|
+
return (0, import_gui_helpers.withStaticProperties)(Sheet, {
|
|
204
|
+
...components,
|
|
205
|
+
Controlled
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=createSheet.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createSheet_exports","__export","createSheet","module","exports","import_jsx_runtime","require","import_gui_compose_refs","import_gui_constants","import_gui_core","import_gui_helpers","import_gui_portal","import_gui_remove_scroll","import_gui_use_did_finish_ssr","import_gui_z_index_stack","import_react","import_react_native","import_constants","import_nativeSheet","import_SheetContext","import_SheetImplementationCustom","import_SheetScrollView","import_useSheetController","import_useSheetOffscreenSize","param","Handle","Frame","Overlay","SheetHandle","styleable","param2","forwardedRef","__scopeSheet","props","context","useSheetContext","SHEET_HANDLE_NAME","composedRef","useComposedRefs","handleRef","wasDraggingRef","useRef","useEffect","scrollBridge","onParentDragging","isDragging","current","onlyShowFrame","jsx","ref","onPressIn","onPress","max","snapPoints","length","dismissOnSnapToBottom","nextPos","position","setPosition","open","SheetOverlay","propsIn","SHEET_OVERLAY_NAME","element","useMemo","composeEventHandlers","dismissOnOverlayPress","setOpen","opacity","useIsomorphicLayoutEffect","_context_onOverlayComponent","onOverlayComponent","call","SheetFrame","adjustPaddingForOffscreenContent","disableHideBottomOverflow","children","SHEET_NAME","hasFit","disableRemoveScroll","frameSize","contentRef","composedContentRef","offscreenSize","useSheetOffscreenSize","stableFrameSize","sheetContents","shouldUseFixedHeight","jsxs","flex","flexBasis","height","pointerEvents","StackZIndexContext","zIndex","resolveViewZIndex","View","width","Fragment","RemoveScroll","enabled","componentName","testID","id","bottom","left","right","borderWidth","borderRadius","shadowOpacity","Sheet","forwardRef","hydrated","useDidFinishSSR","isShowingNonSheet","useSheetController","SheetImplementation","SheetImplementationCustom","native","Platform","OS","impl","getNativeSheet","components"],"sources":["../../src/createSheet.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAA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KC,KAAA,kBAAa,IAAA/F,YAAA,CAAAgG,UAAA,YAAA9E,KAAA,EAAAgB,GAAA;MACjB,IAAA+D,QAAO,OAAAnG,6BAAA,CAAAoG,eAAA;QAAA;UAAAC;QAAA,QAAA5F,yBAAA,CAAA6F,kBAAA;QAAAC,mBAAA,GAAAhG,gCAAA,CAAAiG,yBAAA;MACP,IAAApF,KAAS,CAAAqF,MAAA,IAAAtG,mBAAA,CAAAuG,QAAA,CAAAC,EAAA;QACT,IAAAC,IAAQ,OAAAvG,kBAAA,CAAAwG,cAAA;QACRD,IAAA,KAAAL,mBAAY,GAAAK,IAAA;MACd;MAOA,OAAAP,iBAAO,KAAAF,QAAA,yBAA4B,IAAA3G,kBAAA,CAAA2C,GAAA,EAAAoE,mBAAA;QACjCnE,GAAG;QACH,GAAAhB;MACD;IACH;IAAA0F,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 gestureState_exports = {};
|
|
22
|
+
__export(gestureState_exports, {
|
|
23
|
+
getGestureHandlerState: () => getGestureHandlerState,
|
|
24
|
+
isGestureHandlerEnabled: () => isGestureHandlerEnabled,
|
|
25
|
+
setGestureHandlerState: () => setGestureHandlerState,
|
|
26
|
+
setGestureState: () => setGestureState
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(gestureState_exports);
|
|
29
|
+
var import_gui_native = require("@hanzo/gui-native");
|
|
30
|
+
function isGestureHandlerEnabled() {
|
|
31
|
+
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
32
|
+
}
|
|
33
|
+
function getGestureHandlerState() {
|
|
34
|
+
return (0, import_gui_native.getGestureHandler)().state;
|
|
35
|
+
}
|
|
36
|
+
function setGestureHandlerState(updates) {
|
|
37
|
+
(0, import_gui_native.getGestureHandler)().set(updates);
|
|
38
|
+
}
|
|
39
|
+
const setGestureState = setGestureHandlerState;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 gestureState_exports = {};
|
|
24
|
+
__export(gestureState_exports, {
|
|
25
|
+
getGestureHandlerState: () => getGestureHandlerState,
|
|
26
|
+
isGestureHandlerEnabled: () => isGestureHandlerEnabled,
|
|
27
|
+
setGestureHandlerState: () => setGestureHandlerState,
|
|
28
|
+
setGestureState: () => setGestureState
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(gestureState_exports);
|
|
31
|
+
var import_gui_native = require("@hanzo/gui-native");
|
|
32
|
+
function isGestureHandlerEnabled() {
|
|
33
|
+
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
34
|
+
}
|
|
35
|
+
function getGestureHandlerState() {
|
|
36
|
+
return (0, import_gui_native.getGestureHandler)().state;
|
|
37
|
+
}
|
|
38
|
+
function setGestureHandlerState(updates) {
|
|
39
|
+
(0, import_gui_native.getGestureHandler)().set(updates);
|
|
40
|
+
}
|
|
41
|
+
var setGestureState = setGestureHandlerState;
|
|
42
|
+
//# sourceMappingURL=gestureState.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","gestureState_exports","__export","getGestureHandlerState","isGestureHandlerEnabled","setGestureHandlerState","setGestureState","module","exports","import_gui_native","require","getGestureHandler","isEnabled","state","updates","set"],"sources":["../../src/gestureState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAKAC,MAAA,CAAAC,OAAA,GAAAZ,YAAqD,CAAAK,oBAAA;AAK9C,IAAAQ,iBAAS,GAAAC,OAAA,oBAAmC;AACjD,SAAAN,uBAAOA,CAAA;EACT,WAAAK,iBAAA,CAAAE,iBAAA,IAAAC,SAAA;AAEO;AACL,SAAAT,sBAAOA,CAAA;EACT,WAAAM,iBAAA,CAAAE,iBAAA,IAAAE,KAAA;AAEO;AACL,SAAAR,uBAAAS,OAAA;EACF,IAAAL,iBAAA,CAAAE,iBAAA,IAAAI,GAAA,CAAAD,OAAA;AAGO","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 helpers_exports = {};
|
|
22
|
+
__export(helpers_exports, {
|
|
23
|
+
resisted: () => resisted
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(helpers_exports);
|
|
26
|
+
function resisted(y, minY, maxOverflow = 25) {
|
|
27
|
+
if (y >= minY) return y;
|
|
28
|
+
const pastBoundary = minY - y,
|
|
29
|
+
resistedDistance = Math.sqrt(pastBoundary) * 2;
|
|
30
|
+
return minY - resistedDistance;
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 helpers_exports = {};
|
|
24
|
+
__export(helpers_exports, {
|
|
25
|
+
resisted: () => resisted
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(helpers_exports);
|
|
28
|
+
function resisted(y, minY) {
|
|
29
|
+
var maxOverflow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 25;
|
|
30
|
+
if (y >= minY) return y;
|
|
31
|
+
var pastBoundary = minY - y,
|
|
32
|
+
resistedDistance = Math.sqrt(pastBoundary) * 2;
|
|
33
|
+
return minY - resistedDistance;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=helpers.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","helpers_exports","__export","resisted","module","exports","y","minY","maxOverflow","arguments","length","pastBoundary","resistedDistance","Math","sqrt"],"sources":["../../src/helpers.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAA,CAAAC,OAAS,GAAAT,YAAkC,CAAAK,eAAkB;AAElE,SAAIE,QAAKA,CAAAG,CAAA,EAAAC,IAAA;EACP,IAAAC,WAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EAIT,IAAAH,CAAA,IAAMC,IAAA,EAQN,OAAOD,CAAA;EACT,IAAAK,YAAA,GAAAJ,IAAA,GAAAD,CAAA;IAAAM,gBAAA,GAAAC,IAAA,CAAAC,IAAA,CAAAH,YAAA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
7
|
+
get: () => from[key],
|
|
8
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
9
|
+
});
|
|
10
|
+
return to;
|
|
11
|
+
},
|
|
12
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
13
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
14
|
+
value: !0
|
|
15
|
+
}), mod);
|
|
16
|
+
var index_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require("./Sheet.cjs"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./useSheet.cjs"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./createSheet.cjs"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./SheetController.cjs"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./useSheetController.cjs"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./useSheetOpenState.cjs"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("./useSheetOffscreenSize.cjs"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("./SheetScrollView.cjs"), module.exports);
|
|
26
|
+
__reExport(index_exports, require("./nativeSheet.cjs"), module.exports);
|
|
27
|
+
__reExport(index_exports, require("./types.cjs"), module.exports);
|
|
28
|
+
__reExport(index_exports, require("./contexts.cjs"), module.exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
return to;
|
|
13
|
+
},
|
|
14
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
+
value: !0
|
|
17
|
+
}), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./Sheet.native.js"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./useSheet.native.js"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./createSheet.native.js"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./SheetController.native.js"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("./useSheetController.native.js"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("./useSheetOpenState.native.js"), module.exports);
|
|
26
|
+
__reExport(index_exports, require("./useSheetOffscreenSize.native.js"), module.exports);
|
|
27
|
+
__reExport(index_exports, require("./SheetScrollView.native.js"), module.exports);
|
|
28
|
+
__reExport(index_exports, require("./nativeSheet.native.js"), module.exports);
|
|
29
|
+
__reExport(index_exports, require("./types.native.js"), module.exports);
|
|
30
|
+
__reExport(index_exports, require("./contexts.native.js"), module.exports);
|
|
31
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,uBAAAH,MADd,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BAAAH,MAFd,CAAAC,OAAA;AAGAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,6BAAAH,MAHd,CAAAC,OAAA;AAIAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,iCAAAH,MAJd,CAAAC,OAAA;AAKAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,oCALdH,MAAA,CAAAC,OAAA;AAMAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,mCAAAH,MANd,CAAAC,OAAA;AAOAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,oCAPd,GAAAH,MAAA,CAAAC,OAAA;AAQAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,8BARd,GAAAH,MAAA,CAAAC,OAAA;AASAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BATd,GAAAH,MAAA,CAAAC,OAAA;AAUAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,uBAAAH,MAVd,CAAAC,OAAA","ignoreList":[]}
|