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