@hanzogui/sheet 2.0.4 → 2.0.7
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/controller/index.d.ts +1 -1
- package/dist/cjs/Sheet.cjs +2 -2
- package/dist/cjs/Sheet.native.js +2 -2
- package/dist/cjs/SheetContext.cjs +1 -1
- package/dist/cjs/SheetContext.native.js +1 -1
- package/dist/cjs/SheetController.cjs +1 -1
- package/dist/cjs/SheetController.native.js +1 -1
- package/dist/cjs/SheetImplementationCustom.cjs +7 -7
- package/dist/cjs/SheetImplementationCustom.native.js +7 -7
- package/dist/cjs/SheetScrollView.cjs +4 -4
- package/dist/cjs/SheetScrollView.native.js +4 -4
- package/dist/cjs/createSheet.cjs +8 -8
- package/dist/cjs/createSheet.native.js +8 -8
- package/dist/cjs/gestureState.cjs +1 -1
- package/dist/cjs/gestureState.native.js +1 -1
- package/dist/cjs/nativeSheet.cjs +1 -1
- package/dist/cjs/nativeSheet.native.js +1 -1
- package/dist/cjs/setupGestureHandler.cjs +1 -1
- package/dist/cjs/setupGestureHandler.native.js +1 -1
- package/dist/cjs/useKeyboardControllerSheet.native.js +1 -1
- package/dist/cjs/useSheetOpenState.cjs +1 -1
- package/dist/cjs/useSheetOpenState.native.js +1 -1
- package/dist/cjs/useSheetProviderProps.cjs +3 -3
- package/dist/cjs/useSheetProviderProps.native.js +3 -3
- package/dist/esm/Sheet.mjs +2 -2
- package/dist/esm/Sheet.native.js +2 -2
- package/dist/esm/SheetContext.mjs +1 -1
- package/dist/esm/SheetContext.native.js +1 -1
- package/dist/esm/SheetController.mjs +1 -1
- package/dist/esm/SheetController.native.js +1 -1
- package/dist/esm/SheetImplementationCustom.mjs +7 -7
- package/dist/esm/SheetImplementationCustom.native.js +8 -8
- package/dist/esm/SheetScrollView.mjs +4 -4
- package/dist/esm/SheetScrollView.native.js +4 -4
- package/dist/esm/createSheet.mjs +8 -8
- package/dist/esm/createSheet.native.js +8 -8
- package/dist/esm/gestureState.mjs +1 -1
- package/dist/esm/gestureState.native.js +1 -1
- package/dist/esm/nativeSheet.mjs +1 -1
- package/dist/esm/nativeSheet.native.js +1 -1
- package/dist/esm/setupGestureHandler.mjs +1 -1
- package/dist/esm/setupGestureHandler.native.js +1 -1
- package/dist/esm/useKeyboardControllerSheet.native.js +1 -1
- package/dist/esm/useSheetOpenState.mjs +1 -1
- package/dist/esm/useSheetOpenState.native.js +1 -1
- package/dist/esm/useSheetProviderProps.mjs +3 -3
- package/dist/esm/useSheetProviderProps.native.js +3 -3
- package/dist/jsx/Sheet.mjs +2 -2
- package/dist/jsx/Sheet.native.js +2 -2
- package/dist/jsx/SheetContext.mjs +1 -1
- package/dist/jsx/SheetContext.native.js +1 -1
- package/dist/jsx/SheetController.mjs +1 -1
- package/dist/jsx/SheetController.native.js +1 -1
- package/dist/jsx/SheetImplementationCustom.mjs +7 -7
- package/dist/jsx/SheetImplementationCustom.native.js +7 -7
- package/dist/jsx/SheetScrollView.mjs +4 -4
- package/dist/jsx/SheetScrollView.native.js +4 -4
- package/dist/jsx/createSheet.mjs +8 -8
- package/dist/jsx/createSheet.native.js +8 -8
- package/dist/jsx/gestureState.mjs +1 -1
- package/dist/jsx/gestureState.native.js +1 -1
- package/dist/jsx/nativeSheet.mjs +1 -1
- package/dist/jsx/nativeSheet.native.js +1 -1
- package/dist/jsx/setupGestureHandler.mjs +1 -1
- package/dist/jsx/setupGestureHandler.native.js +1 -1
- package/dist/jsx/useKeyboardControllerSheet.native.js +1 -1
- package/dist/jsx/useSheetOpenState.mjs +1 -1
- package/dist/jsx/useSheetOpenState.native.js +1 -1
- package/dist/jsx/useSheetProviderProps.mjs +3 -3
- package/dist/jsx/useSheetProviderProps.native.js +3 -3
- package/package.json +1 -1
- package/src/Sheet.tsx +2 -2
- package/src/SheetContext.tsx +1 -1
- package/src/SheetController.tsx +1 -1
- package/src/SheetImplementationCustom.tsx +8 -8
- package/src/SheetScrollView.tsx +5 -5
- package/src/createSheet.tsx +9 -9
- package/src/gestureState.ts +3 -3
- package/src/nativeSheet.tsx +1 -1
- package/src/setupGestureHandler.ts +2 -2
- package/src/types.tsx +4 -4
- package/src/useKeyboardControllerSheet.native.ts +2 -2
- package/src/useSheetOpenState.tsx +1 -1
- package/src/useSheetProviderProps.tsx +4 -4
package/controller/index.d.ts
CHANGED
package/dist/cjs/Sheet.cjs
CHANGED
|
@@ -28,8 +28,8 @@ __export(Sheet_exports, {
|
|
|
28
28
|
createSheetScope: () => import_SheetContext.createSheetScope
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(Sheet_exports);
|
|
31
|
-
var import_gui_core = require("@
|
|
32
|
-
import_gui_stacks = require("@
|
|
31
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
32
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
33
33
|
import_constants = require("./constants.cjs"),
|
|
34
34
|
import_createSheet = require("./createSheet.cjs"),
|
|
35
35
|
import_SheetContext = require("./SheetContext.cjs");
|
package/dist/cjs/Sheet.native.js
CHANGED
|
@@ -30,8 +30,8 @@ __export(Sheet_exports, {
|
|
|
30
30
|
createSheetScope: () => import_SheetContext.createSheetScope
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(Sheet_exports);
|
|
33
|
-
var import_gui_core = require("@
|
|
34
|
-
import_gui_stacks = require("@
|
|
33
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
34
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
35
35
|
import_constants = require("./constants.native.js"),
|
|
36
36
|
import_createSheet = require("./createSheet.native.js"),
|
|
37
37
|
import_SheetContext = require("./SheetContext.native.js");
|
|
@@ -26,7 +26,7 @@ __export(SheetContext_exports, {
|
|
|
26
26
|
useSheetContext: () => useSheetContext
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(SheetContext_exports);
|
|
29
|
-
var import_gui_create_context = require("@
|
|
29
|
+
var import_gui_create_context = require("@hanzogui/create-context"),
|
|
30
30
|
import_constants = require("./constants.cjs");
|
|
31
31
|
const [createSheetContext, createSheetScope] = (0, import_gui_create_context.createContextScope)(import_constants.SHEET_NAME),
|
|
32
32
|
[SheetProvider, useSheetContext] = createSheetContext(import_constants.SHEET_NAME, {});
|
|
@@ -28,7 +28,7 @@ __export(SheetContext_exports, {
|
|
|
28
28
|
useSheetContext: () => useSheetContext
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(SheetContext_exports);
|
|
31
|
-
var import_gui_create_context = require("@
|
|
31
|
+
var import_gui_create_context = require("@hanzogui/create-context"),
|
|
32
32
|
import_constants = require("./constants.native.js"),
|
|
33
33
|
[createSheetContext, createSheetScope] = (0, import_gui_create_context.createContextScope)(import_constants.SHEET_NAME),
|
|
34
34
|
[SheetProvider, useSheetContext] = createSheetContext(import_constants.SHEET_NAME, {});
|
|
@@ -35,7 +35,7 @@ __export(SheetController_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(SheetController_exports);
|
|
37
37
|
var import_react = __toESM(require("react"), 1),
|
|
38
|
-
import_gui_core = require("@
|
|
38
|
+
import_gui_core = require("@hanzogui/core"),
|
|
39
39
|
import_useSheetController = require("./useSheetController.cjs"),
|
|
40
40
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
41
41
|
const SheetController = ({
|
|
@@ -38,7 +38,7 @@ __export(SheetController_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(SheetController_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
40
|
import_react = __toESM(require("react"), 1),
|
|
41
|
-
import_gui_core = require("@
|
|
41
|
+
import_gui_core = require("@hanzogui/core"),
|
|
42
42
|
import_useSheetController = require("./useSheetController.native.js"),
|
|
43
43
|
SheetController = function (param) {
|
|
44
44
|
var {
|
|
@@ -34,13 +34,13 @@ __export(SheetImplementationCustom_exports, {
|
|
|
34
34
|
SheetImplementationCustom: () => SheetImplementationCustom
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(SheetImplementationCustom_exports);
|
|
37
|
-
var import_gui_adapt = require("@
|
|
38
|
-
import_gui_animate_presence = require("@
|
|
39
|
-
import_gui_compose_refs = require("@
|
|
40
|
-
import_gui_constants = require("@
|
|
41
|
-
import_gui_core = require("@
|
|
42
|
-
import_gui_native = require("@
|
|
43
|
-
import_gui_portal = require("@
|
|
37
|
+
var import_gui_adapt = require("@hanzogui/adapt"),
|
|
38
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
39
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
40
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
41
|
+
import_gui_core = require("@hanzogui/core"),
|
|
42
|
+
import_gui_native = require("@hanzogui/native"),
|
|
43
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
44
44
|
import_react = __toESM(require("react"), 1),
|
|
45
45
|
import_react_native = require("react-native-web"),
|
|
46
46
|
import_contexts = require("./contexts.cjs"),
|
|
@@ -37,13 +37,13 @@ __export(SheetImplementationCustom_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(SheetImplementationCustom_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_gui_adapt = require("@
|
|
41
|
-
import_gui_animate_presence = require("@
|
|
42
|
-
import_gui_compose_refs = require("@
|
|
43
|
-
import_gui_constants = require("@
|
|
44
|
-
import_gui_core = require("@
|
|
45
|
-
import_gui_native = require("@
|
|
46
|
-
import_gui_portal = require("@
|
|
40
|
+
import_gui_adapt = require("@hanzogui/adapt"),
|
|
41
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
42
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
43
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
44
|
+
import_gui_core = require("@hanzogui/core"),
|
|
45
|
+
import_gui_native = require("@hanzogui/native"),
|
|
46
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
47
47
|
import_react = __toESM(require("react"), 1),
|
|
48
48
|
import_react_native = require("react-native"),
|
|
49
49
|
import_contexts = require("./contexts.native.js"),
|
|
@@ -34,10 +34,10 @@ __export(SheetScrollView_exports, {
|
|
|
34
34
|
SheetScrollView: () => SheetScrollView
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(SheetScrollView_exports);
|
|
37
|
-
var import_gui_compose_refs = require("@
|
|
38
|
-
import_gui_core = require("@
|
|
39
|
-
import_gui_scroll_view = require("@
|
|
40
|
-
import_gui_use_controllable_state = require("@
|
|
37
|
+
var import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
38
|
+
import_gui_core = require("@hanzogui/core"),
|
|
39
|
+
import_gui_scroll_view = require("@hanzogui/scroll-view"),
|
|
40
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
41
41
|
import_react = __toESM(require("react"), 1),
|
|
42
42
|
import_GestureSheetContext = require("./GestureSheetContext.cjs"),
|
|
43
43
|
import_gestureState = require("./gestureState.cjs"),
|
|
@@ -37,10 +37,10 @@ __export(SheetScrollView_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(SheetScrollView_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_gui_compose_refs = require("@
|
|
41
|
-
import_gui_core = require("@
|
|
42
|
-
import_gui_scroll_view = require("@
|
|
43
|
-
import_gui_use_controllable_state = require("@
|
|
40
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
41
|
+
import_gui_core = require("@hanzogui/core"),
|
|
42
|
+
import_gui_scroll_view = require("@hanzogui/scroll-view"),
|
|
43
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
44
44
|
import_react = __toESM(require("react"), 1),
|
|
45
45
|
import_GestureSheetContext = require("./GestureSheetContext.native.js"),
|
|
46
46
|
import_gestureState = require("./gestureState.native.js"),
|
package/dist/cjs/createSheet.cjs
CHANGED
|
@@ -23,14 +23,14 @@ __export(createSheet_exports, {
|
|
|
23
23
|
createSheet: () => createSheet
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(createSheet_exports);
|
|
26
|
-
var import_gui_compose_refs = require("@
|
|
27
|
-
import_gui_constants = require("@
|
|
28
|
-
import_gui_core = require("@
|
|
29
|
-
import_gui_helpers = require("@
|
|
30
|
-
import_gui_portal = require("@
|
|
31
|
-
import_gui_remove_scroll = require("@
|
|
32
|
-
import_gui_use_did_finish_ssr = require("@
|
|
33
|
-
import_gui_z_index_stack = require("@
|
|
26
|
+
var import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
27
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
28
|
+
import_gui_core = require("@hanzogui/core"),
|
|
29
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
30
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
31
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
32
|
+
import_gui_use_did_finish_ssr = require("@hanzogui/use-did-finish-ssr"),
|
|
33
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
34
34
|
import_react = require("react"),
|
|
35
35
|
import_react_native = require("react-native-web"),
|
|
36
36
|
import_constants = require("./constants.cjs"),
|
|
@@ -26,14 +26,14 @@ __export(createSheet_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(createSheet_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_compose_refs = require("@
|
|
30
|
-
import_gui_constants = require("@
|
|
31
|
-
import_gui_core = require("@
|
|
32
|
-
import_gui_helpers = require("@
|
|
33
|
-
import_gui_portal = require("@
|
|
34
|
-
import_gui_remove_scroll = require("@
|
|
35
|
-
import_gui_use_did_finish_ssr = require("@
|
|
36
|
-
import_gui_z_index_stack = require("@
|
|
29
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
30
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
31
|
+
import_gui_core = require("@hanzogui/core"),
|
|
32
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
33
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
34
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
35
|
+
import_gui_use_did_finish_ssr = require("@hanzogui/use-did-finish-ssr"),
|
|
36
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
37
37
|
import_react = require("react"),
|
|
38
38
|
import_react_native = require("react-native"),
|
|
39
39
|
import_constants = require("./constants.native.js"),
|
|
@@ -26,7 +26,7 @@ __export(gestureState_exports, {
|
|
|
26
26
|
setGestureState: () => setGestureState
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(gestureState_exports);
|
|
29
|
-
var import_gui_native = require("@
|
|
29
|
+
var import_gui_native = require("@hanzogui/native");
|
|
30
30
|
function isGestureHandlerEnabled() {
|
|
31
31
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
32
32
|
}
|
|
@@ -28,7 +28,7 @@ __export(gestureState_exports, {
|
|
|
28
28
|
setGestureState: () => setGestureState
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(gestureState_exports);
|
|
31
|
-
var import_gui_native = require("@
|
|
31
|
+
var import_gui_native = require("@hanzogui/native");
|
|
32
32
|
function isGestureHandlerEnabled() {
|
|
33
33
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
34
34
|
}
|
package/dist/cjs/nativeSheet.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __export(nativeSheet_exports, {
|
|
|
24
24
|
setupNativeSheet: () => setupNativeSheet
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(nativeSheet_exports);
|
|
27
|
-
var import_gui_stacks = require("@
|
|
27
|
+
var import_gui_stacks = require("@hanzogui/stacks"),
|
|
28
28
|
import_react = require("react"),
|
|
29
29
|
import_react_native = require("react-native-web"),
|
|
30
30
|
import_SheetContext = require("./SheetContext.cjs"),
|
|
@@ -27,7 +27,7 @@ __export(nativeSheet_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(nativeSheet_exports);
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
import_gui_stacks = require("@
|
|
30
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
31
31
|
import_react = require("react"),
|
|
32
32
|
import_react_native = require("react-native"),
|
|
33
33
|
import_SheetContext = require("./SheetContext.native.js"),
|
|
@@ -24,7 +24,7 @@ __export(setupGestureHandler_exports, {
|
|
|
24
24
|
setupGestureHandler: () => setupGestureHandler
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(setupGestureHandler_exports);
|
|
27
|
-
var import_gui_native = require("@
|
|
27
|
+
var import_gui_native = require("@hanzogui/native");
|
|
28
28
|
function isGestureHandlerEnabled() {
|
|
29
29
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
30
30
|
}
|
|
@@ -26,7 +26,7 @@ __export(setupGestureHandler_exports, {
|
|
|
26
26
|
setupGestureHandler: () => setupGestureHandler
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(setupGestureHandler_exports);
|
|
29
|
-
var import_gui_native = require("@
|
|
29
|
+
var import_gui_native = require("@hanzogui/native");
|
|
30
30
|
function isGestureHandlerEnabled() {
|
|
31
31
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ var import_react = require("react"),
|
|
|
34
34
|
return {};
|
|
35
35
|
};
|
|
36
36
|
try {
|
|
37
|
-
var nativeModule = require("@
|
|
37
|
+
var nativeModule = require("@hanzogui/native");
|
|
38
38
|
isKeyboardControllerEnabled = nativeModule.isKeyboardControllerEnabled, getKeyboardControllerState = nativeModule.getKeyboardControllerState;
|
|
39
39
|
} catch {}
|
|
40
40
|
function useKeyboardControllerSheet(options) {
|
|
@@ -23,7 +23,7 @@ __export(useSheetOpenState_exports, {
|
|
|
23
23
|
useSheetOpenState: () => useSheetOpenState
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(useSheetOpenState_exports);
|
|
26
|
-
var import_gui_use_controllable_state = require("@
|
|
26
|
+
var import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
27
27
|
import_useSheetController = require("./useSheetController.cjs");
|
|
28
28
|
const useSheetOpenState = props => {
|
|
29
29
|
const {
|
|
@@ -25,7 +25,7 @@ __export(useSheetOpenState_exports, {
|
|
|
25
25
|
useSheetOpenState: () => useSheetOpenState
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(useSheetOpenState_exports);
|
|
28
|
-
var import_gui_use_controllable_state = require("@
|
|
28
|
+
var import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
29
29
|
import_useSheetController = require("./useSheetController.native.js"),
|
|
30
30
|
useSheetOpenState = function (props) {
|
|
31
31
|
var {
|
|
@@ -35,9 +35,9 @@ __export(useSheetProviderProps_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(useSheetProviderProps_exports);
|
|
37
37
|
var import_react = __toESM(require("react"), 1),
|
|
38
|
-
import_gui_core = require("@
|
|
39
|
-
import_gui_use_constant = require("@
|
|
40
|
-
import_gui_use_controllable_state = require("@
|
|
38
|
+
import_gui_core = require("@hanzogui/core"),
|
|
39
|
+
import_gui_use_constant = require("@hanzogui/use-constant"),
|
|
40
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state");
|
|
41
41
|
function useSheetProviderProps(props, state, options = {}) {
|
|
42
42
|
const handleRef = import_react.default.useRef(null),
|
|
43
43
|
contentRef = import_react.default.useRef(null),
|
|
@@ -37,9 +37,9 @@ __export(useSheetProviderProps_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(useSheetProviderProps_exports);
|
|
39
39
|
var import_react = __toESM(require("react"), 1),
|
|
40
|
-
import_gui_core = require("@
|
|
41
|
-
import_gui_use_constant = require("@
|
|
42
|
-
import_gui_use_controllable_state = require("@
|
|
40
|
+
import_gui_core = require("@hanzogui/core"),
|
|
41
|
+
import_gui_use_constant = require("@hanzogui/use-constant"),
|
|
42
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state");
|
|
43
43
|
function useSheetProviderProps(props, state) {
|
|
44
44
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
45
45
|
handleRef = import_react.default.useRef(null),
|
package/dist/esm/Sheet.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { styled } from "@
|
|
2
|
-
import { XStack, YStack } from "@
|
|
1
|
+
import { styled } from "@hanzogui/core";
|
|
2
|
+
import { XStack, YStack } from "@hanzogui/stacks";
|
|
3
3
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.mjs";
|
|
4
4
|
import { createSheet } from "./createSheet.mjs";
|
|
5
5
|
import { createSheetScope } from "./SheetContext.mjs";
|
package/dist/esm/Sheet.native.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { styled } from "@
|
|
2
|
-
import { XStack, YStack } from "@
|
|
1
|
+
import { styled } from "@hanzogui/core";
|
|
2
|
+
import { XStack, YStack } from "@hanzogui/stacks";
|
|
3
3
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.native.js";
|
|
4
4
|
import { createSheet } from "./createSheet.native.js";
|
|
5
5
|
import { createSheetScope } from "./SheetContext.native.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContextScope } from "@
|
|
1
|
+
import { createContextScope } from "@hanzogui/create-context";
|
|
2
2
|
import { SHEET_NAME } from "./constants.mjs";
|
|
3
3
|
const [createSheetContext, createSheetScope] = createContextScope(SHEET_NAME),
|
|
4
4
|
[SheetProvider, useSheetContext] = createSheetContext(SHEET_NAME, {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContextScope } from "@
|
|
1
|
+
import { createContextScope } from "@hanzogui/create-context";
|
|
2
2
|
import { SHEET_NAME } from "./constants.native.js";
|
|
3
3
|
var [createSheetContext, createSheetScope] = createContextScope(SHEET_NAME),
|
|
4
4
|
[SheetProvider, useSheetContext] = createSheetContext(SHEET_NAME, {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useId, useRef } from "react";
|
|
2
|
-
import { useEvent } from "@
|
|
2
|
+
import { useEvent } from "@hanzogui/core";
|
|
3
3
|
import { SheetControllerContext } from "./useSheetController.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const SheetController = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useId, useRef } from "react";
|
|
3
|
-
import { useEvent } from "@
|
|
3
|
+
import { useEvent } from "@hanzogui/core";
|
|
4
4
|
import { SheetControllerContext } from "./useSheetController.native.js";
|
|
5
5
|
var SheetController = function (param) {
|
|
6
6
|
var {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { LayoutMeasurementController, View as
|
|
5
|
-
import { getSafeArea } from "@
|
|
6
|
-
import { needsPortalRepropagation, Portal } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { LayoutMeasurementController, View as GuiView, useConfiguration, useDidFinishSSR, useEvent, useThemeName } from "@hanzogui/core";
|
|
5
|
+
import { getSafeArea } from "@hanzogui/native";
|
|
6
|
+
import { needsPortalRepropagation, Portal } from "@hanzogui/portal";
|
|
7
7
|
import React, { useState } from "react";
|
|
8
8
|
import { Dimensions, PanResponder, View } from "react-native-web";
|
|
9
9
|
import { ParentSheetContext, SheetInsideSheetContext } from "./contexts.mjs";
|
|
@@ -116,7 +116,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen",
|
|
|
116
116
|
useAnimatedNumberStyle,
|
|
117
117
|
useAnimatedNumberReaction
|
|
118
118
|
} = animationDriver,
|
|
119
|
-
AnimatedView = animationDriver.View ??
|
|
119
|
+
AnimatedView = animationDriver.View ?? GuiView;
|
|
120
120
|
useIsomorphicLayoutEffect(() => {
|
|
121
121
|
if (sheetInsideSheet && open) return sheetInsideSheet(!0), () => {
|
|
122
122
|
sheetInsideSheet(!1);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ProvideAdaptContext, useAdaptContext } from "@
|
|
3
|
-
import { AnimatePresence } from "@
|
|
4
|
-
import { useComposedRefs } from "@
|
|
5
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
6
|
-
import { LayoutMeasurementController, View as
|
|
7
|
-
import { getSafeArea } from "@
|
|
8
|
-
import { needsPortalRepropagation, Portal } from "@
|
|
2
|
+
import { ProvideAdaptContext, useAdaptContext } from "@hanzogui/adapt";
|
|
3
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
4
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
5
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
6
|
+
import { LayoutMeasurementController, View as GuiView, useConfiguration, useDidFinishSSR, useEvent, useThemeName } from "@hanzogui/core";
|
|
7
|
+
import { getSafeArea } from "@hanzogui/native";
|
|
8
|
+
import { needsPortalRepropagation, Portal } from "@hanzogui/portal";
|
|
9
9
|
import React, { useState } from "react";
|
|
10
10
|
import { Dimensions, PanResponder, View } from "react-native";
|
|
11
11
|
import { ParentSheetContext, SheetInsideSheetContext } from "./contexts.native.js";
|
|
@@ -124,7 +124,7 @@ var relativeDimensionTo = isWeb ? "window" : "screen",
|
|
|
124
124
|
useAnimatedNumberReaction
|
|
125
125
|
} = animationDriver,
|
|
126
126
|
_animationDriver_View,
|
|
127
|
-
AnimatedView = (_animationDriver_View = animationDriver.View) !== null && _animationDriver_View !== void 0 ? _animationDriver_View :
|
|
127
|
+
AnimatedView = (_animationDriver_View = animationDriver.View) !== null && _animationDriver_View !== void 0 ? _animationDriver_View : GuiView;
|
|
128
128
|
useIsomorphicLayoutEffect(function () {
|
|
129
129
|
if (sheetInsideSheet && open) return sheetInsideSheet(!0), function () {
|
|
130
130
|
sheetInsideSheet(!1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { composeRefs } from "@
|
|
2
|
-
import { View } from "@
|
|
3
|
-
import { ScrollView } from "@
|
|
4
|
-
import { useControllableState } from "@
|
|
1
|
+
import { composeRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { View } from "@hanzogui/core";
|
|
3
|
+
import { ScrollView } from "@hanzogui/scroll-view";
|
|
4
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
5
5
|
import React, { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { useGestureSheetContext } from "./GestureSheetContext.mjs";
|
|
7
7
|
import { getGestureHandlerState, isGestureHandlerEnabled } from "./gestureState.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { composeRefs } from "@
|
|
3
|
-
import { View } from "@
|
|
4
|
-
import { ScrollView } from "@
|
|
5
|
-
import { useControllableState } from "@
|
|
2
|
+
import { composeRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { View } from "@hanzogui/core";
|
|
4
|
+
import { ScrollView } from "@hanzogui/scroll-view";
|
|
5
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
6
6
|
import React, { useEffect, useRef, useState } from "react";
|
|
7
7
|
import { useGestureSheetContext } from "./GestureSheetContext.native.js";
|
|
8
8
|
import { getGestureHandlerState, isGestureHandlerEnabled } from "./gestureState.native.js";
|
package/dist/esm/createSheet.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useComposedRefs } from "@
|
|
2
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
3
|
-
import { View } from "@
|
|
4
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
5
|
-
import { resolveViewZIndex } from "@
|
|
6
|
-
import { RemoveScroll } from "@
|
|
7
|
-
import { useDidFinishSSR } from "@
|
|
8
|
-
import { StackZIndexContext } from "@
|
|
1
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
3
|
+
import { View } from "@hanzogui/core";
|
|
4
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
5
|
+
import { resolveViewZIndex } from "@hanzogui/portal";
|
|
6
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
7
|
+
import { useDidFinishSSR } from "@hanzogui/use-did-finish-ssr";
|
|
8
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
9
9
|
import { forwardRef, useMemo, useEffect, useRef } from "react";
|
|
10
10
|
import { Platform } from "react-native-web";
|
|
11
11
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { View } from "@
|
|
5
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
6
|
-
import { resolveViewZIndex } from "@
|
|
7
|
-
import { RemoveScroll } from "@
|
|
8
|
-
import { useDidFinishSSR } from "@
|
|
9
|
-
import { StackZIndexContext } from "@
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { View } from "@hanzogui/core";
|
|
5
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
6
|
+
import { resolveViewZIndex } from "@hanzogui/portal";
|
|
7
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
8
|
+
import { useDidFinishSSR } from "@hanzogui/use-did-finish-ssr";
|
|
9
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
10
10
|
import { forwardRef, useMemo, useEffect, useRef } from "react";
|
|
11
11
|
import { Platform } from "react-native";
|
|
12
12
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.native.js";
|
package/dist/esm/nativeSheet.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { YStack } from "@
|
|
2
|
+
import { YStack } from "@hanzogui/stacks";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { View } from "react-native";
|
|
5
5
|
import { SheetProvider } from "./SheetContext.native.js";
|
|
@@ -7,7 +7,7 @@ var isKeyboardControllerEnabled = function () {
|
|
|
7
7
|
return {};
|
|
8
8
|
};
|
|
9
9
|
try {
|
|
10
|
-
var nativeModule = require("@
|
|
10
|
+
var nativeModule = require("@hanzogui/native");
|
|
11
11
|
isKeyboardControllerEnabled = nativeModule.isKeyboardControllerEnabled, getKeyboardControllerState = nativeModule.getKeyboardControllerState;
|
|
12
12
|
} catch {}
|
|
13
13
|
function useKeyboardControllerSheet(options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useControllableState } from "@
|
|
1
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
2
2
|
import { useSheetController } from "./useSheetController.native.js";
|
|
3
3
|
var useSheetOpenState = function (props) {
|
|
4
4
|
var {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { useConfiguration } from "@
|
|
3
|
-
import { useConstant } from "@
|
|
4
|
-
import { useControllableState } from "@
|
|
2
|
+
import { useConfiguration } from "@hanzogui/core";
|
|
3
|
+
import { useConstant } from "@hanzogui/use-constant";
|
|
4
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
5
5
|
function useSheetProviderProps(props, state, options = {}) {
|
|
6
6
|
const handleRef = React.useRef(null),
|
|
7
7
|
contentRef = React.useRef(null),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { useConfiguration } from "@
|
|
3
|
-
import { useConstant } from "@
|
|
4
|
-
import { useControllableState } from "@
|
|
2
|
+
import { useConfiguration } from "@hanzogui/core";
|
|
3
|
+
import { useConstant } from "@hanzogui/use-constant";
|
|
4
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
5
5
|
function useSheetProviderProps(props, state) {
|
|
6
6
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
7
7
|
handleRef = React.useRef(null),
|
package/dist/jsx/Sheet.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { styled } from "@
|
|
2
|
-
import { XStack, YStack } from "@
|
|
1
|
+
import { styled } from "@hanzogui/core";
|
|
2
|
+
import { XStack, YStack } from "@hanzogui/stacks";
|
|
3
3
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.mjs";
|
|
4
4
|
import { createSheet } from "./createSheet.mjs";
|
|
5
5
|
import { createSheetScope } from "./SheetContext.mjs";
|
package/dist/jsx/Sheet.native.js
CHANGED
|
@@ -30,8 +30,8 @@ __export(Sheet_exports, {
|
|
|
30
30
|
createSheetScope: () => import_SheetContext.createSheetScope
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(Sheet_exports);
|
|
33
|
-
var import_gui_core = require("@
|
|
34
|
-
import_gui_stacks = require("@
|
|
33
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
34
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
35
35
|
import_constants = require("./constants.native.js"),
|
|
36
36
|
import_createSheet = require("./createSheet.native.js"),
|
|
37
37
|
import_SheetContext = require("./SheetContext.native.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContextScope } from "@
|
|
1
|
+
import { createContextScope } from "@hanzogui/create-context";
|
|
2
2
|
import { SHEET_NAME } from "./constants.mjs";
|
|
3
3
|
const [createSheetContext, createSheetScope] = createContextScope(SHEET_NAME),
|
|
4
4
|
[SheetProvider, useSheetContext] = createSheetContext(SHEET_NAME, {});
|
|
@@ -28,7 +28,7 @@ __export(SheetContext_exports, {
|
|
|
28
28
|
useSheetContext: () => useSheetContext
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(SheetContext_exports);
|
|
31
|
-
var import_gui_create_context = require("@
|
|
31
|
+
var import_gui_create_context = require("@hanzogui/create-context"),
|
|
32
32
|
import_constants = require("./constants.native.js"),
|
|
33
33
|
[createSheetContext, createSheetScope] = (0, import_gui_create_context.createContextScope)(import_constants.SHEET_NAME),
|
|
34
34
|
[SheetProvider, useSheetContext] = createSheetContext(import_constants.SHEET_NAME, {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useId, useRef } from "react";
|
|
2
|
-
import { useEvent } from "@
|
|
2
|
+
import { useEvent } from "@hanzogui/core";
|
|
3
3
|
import { SheetControllerContext } from "./useSheetController.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const SheetController = ({
|
|
@@ -38,7 +38,7 @@ __export(SheetController_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(SheetController_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
40
|
import_react = __toESM(require("react"), 1),
|
|
41
|
-
import_gui_core = require("@
|
|
41
|
+
import_gui_core = require("@hanzogui/core"),
|
|
42
42
|
import_useSheetController = require("./useSheetController.native.js"),
|
|
43
43
|
SheetController = function (param) {
|
|
44
44
|
var {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { LayoutMeasurementController, View as
|
|
5
|
-
import { getSafeArea } from "@
|
|
6
|
-
import { needsPortalRepropagation, Portal } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { LayoutMeasurementController, View as GuiView, useConfiguration, useDidFinishSSR, useEvent, useThemeName } from "@hanzogui/core";
|
|
5
|
+
import { getSafeArea } from "@hanzogui/native";
|
|
6
|
+
import { needsPortalRepropagation, Portal } from "@hanzogui/portal";
|
|
7
7
|
import React, { useState } from "react";
|
|
8
8
|
import { Dimensions, PanResponder, View } from "react-native-web";
|
|
9
9
|
import { ParentSheetContext, SheetInsideSheetContext } from "./contexts.mjs";
|
|
@@ -116,7 +116,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen",
|
|
|
116
116
|
useAnimatedNumberStyle,
|
|
117
117
|
useAnimatedNumberReaction
|
|
118
118
|
} = animationDriver,
|
|
119
|
-
AnimatedView = animationDriver.View ??
|
|
119
|
+
AnimatedView = animationDriver.View ?? GuiView;
|
|
120
120
|
useIsomorphicLayoutEffect(() => {
|
|
121
121
|
if (sheetInsideSheet && open) return sheetInsideSheet(!0), () => {
|
|
122
122
|
sheetInsideSheet(!1);
|
|
@@ -37,13 +37,13 @@ __export(SheetImplementationCustom_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(SheetImplementationCustom_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_gui_adapt = require("@
|
|
41
|
-
import_gui_animate_presence = require("@
|
|
42
|
-
import_gui_compose_refs = require("@
|
|
43
|
-
import_gui_constants = require("@
|
|
44
|
-
import_gui_core = require("@
|
|
45
|
-
import_gui_native = require("@
|
|
46
|
-
import_gui_portal = require("@
|
|
40
|
+
import_gui_adapt = require("@hanzogui/adapt"),
|
|
41
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
42
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
43
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
44
|
+
import_gui_core = require("@hanzogui/core"),
|
|
45
|
+
import_gui_native = require("@hanzogui/native"),
|
|
46
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
47
47
|
import_react = __toESM(require("react"), 1),
|
|
48
48
|
import_react_native = require("react-native"),
|
|
49
49
|
import_contexts = require("./contexts.native.js"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { composeRefs } from "@
|
|
2
|
-
import { View } from "@
|
|
3
|
-
import { ScrollView } from "@
|
|
4
|
-
import { useControllableState } from "@
|
|
1
|
+
import { composeRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { View } from "@hanzogui/core";
|
|
3
|
+
import { ScrollView } from "@hanzogui/scroll-view";
|
|
4
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
5
5
|
import React, { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { useGestureSheetContext } from "./GestureSheetContext.mjs";
|
|
7
7
|
import { getGestureHandlerState, isGestureHandlerEnabled } from "./gestureState.mjs";
|
|
@@ -37,10 +37,10 @@ __export(SheetScrollView_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(SheetScrollView_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_gui_compose_refs = require("@
|
|
41
|
-
import_gui_core = require("@
|
|
42
|
-
import_gui_scroll_view = require("@
|
|
43
|
-
import_gui_use_controllable_state = require("@
|
|
40
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
41
|
+
import_gui_core = require("@hanzogui/core"),
|
|
42
|
+
import_gui_scroll_view = require("@hanzogui/scroll-view"),
|
|
43
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
44
44
|
import_react = __toESM(require("react"), 1),
|
|
45
45
|
import_GestureSheetContext = require("./GestureSheetContext.native.js"),
|
|
46
46
|
import_gestureState = require("./gestureState.native.js"),
|
package/dist/jsx/createSheet.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useComposedRefs } from "@
|
|
2
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
3
|
-
import { View } from "@
|
|
4
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
5
|
-
import { resolveViewZIndex } from "@
|
|
6
|
-
import { RemoveScroll } from "@
|
|
7
|
-
import { useDidFinishSSR } from "@
|
|
8
|
-
import { StackZIndexContext } from "@
|
|
1
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
3
|
+
import { View } from "@hanzogui/core";
|
|
4
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
5
|
+
import { resolveViewZIndex } from "@hanzogui/portal";
|
|
6
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
7
|
+
import { useDidFinishSSR } from "@hanzogui/use-did-finish-ssr";
|
|
8
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
9
9
|
import { forwardRef, useMemo, useEffect, useRef } from "react";
|
|
10
10
|
import { Platform } from "react-native-web";
|
|
11
11
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from "./constants.mjs";
|
|
@@ -26,14 +26,14 @@ __export(createSheet_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(createSheet_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_compose_refs = require("@
|
|
30
|
-
import_gui_constants = require("@
|
|
31
|
-
import_gui_core = require("@
|
|
32
|
-
import_gui_helpers = require("@
|
|
33
|
-
import_gui_portal = require("@
|
|
34
|
-
import_gui_remove_scroll = require("@
|
|
35
|
-
import_gui_use_did_finish_ssr = require("@
|
|
36
|
-
import_gui_z_index_stack = require("@
|
|
29
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
30
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
31
|
+
import_gui_core = require("@hanzogui/core"),
|
|
32
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
33
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
34
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
35
|
+
import_gui_use_did_finish_ssr = require("@hanzogui/use-did-finish-ssr"),
|
|
36
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
37
37
|
import_react = require("react"),
|
|
38
38
|
import_react_native = require("react-native"),
|
|
39
39
|
import_constants = require("./constants.native.js"),
|
|
@@ -28,7 +28,7 @@ __export(gestureState_exports, {
|
|
|
28
28
|
setGestureState: () => setGestureState
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(gestureState_exports);
|
|
31
|
-
var import_gui_native = require("@
|
|
31
|
+
var import_gui_native = require("@hanzogui/native");
|
|
32
32
|
function isGestureHandlerEnabled() {
|
|
33
33
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
34
34
|
}
|
package/dist/jsx/nativeSheet.mjs
CHANGED
|
@@ -27,7 +27,7 @@ __export(nativeSheet_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(nativeSheet_exports);
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
import_gui_stacks = require("@
|
|
30
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
31
31
|
import_react = require("react"),
|
|
32
32
|
import_react_native = require("react-native"),
|
|
33
33
|
import_SheetContext = require("./SheetContext.native.js"),
|
|
@@ -26,7 +26,7 @@ __export(setupGestureHandler_exports, {
|
|
|
26
26
|
setupGestureHandler: () => setupGestureHandler
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(setupGestureHandler_exports);
|
|
29
|
-
var import_gui_native = require("@
|
|
29
|
+
var import_gui_native = require("@hanzogui/native");
|
|
30
30
|
function isGestureHandlerEnabled() {
|
|
31
31
|
return (0, import_gui_native.getGestureHandler)().isEnabled;
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ var import_react = require("react"),
|
|
|
34
34
|
return {};
|
|
35
35
|
};
|
|
36
36
|
try {
|
|
37
|
-
var nativeModule = require("@
|
|
37
|
+
var nativeModule = require("@hanzogui/native");
|
|
38
38
|
isKeyboardControllerEnabled = nativeModule.isKeyboardControllerEnabled, getKeyboardControllerState = nativeModule.getKeyboardControllerState;
|
|
39
39
|
} catch {}
|
|
40
40
|
function useKeyboardControllerSheet(options) {
|
|
@@ -25,7 +25,7 @@ __export(useSheetOpenState_exports, {
|
|
|
25
25
|
useSheetOpenState: () => useSheetOpenState
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(useSheetOpenState_exports);
|
|
28
|
-
var import_gui_use_controllable_state = require("@
|
|
28
|
+
var import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
29
29
|
import_useSheetController = require("./useSheetController.native.js"),
|
|
30
30
|
useSheetOpenState = function (props) {
|
|
31
31
|
var {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { useConfiguration } from "@
|
|
3
|
-
import { useConstant } from "@
|
|
4
|
-
import { useControllableState } from "@
|
|
2
|
+
import { useConfiguration } from "@hanzogui/core";
|
|
3
|
+
import { useConstant } from "@hanzogui/use-constant";
|
|
4
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
5
5
|
function useSheetProviderProps(props, state, options = {}) {
|
|
6
6
|
const handleRef = React.useRef(null),
|
|
7
7
|
contentRef = React.useRef(null),
|
|
@@ -37,9 +37,9 @@ __export(useSheetProviderProps_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(useSheetProviderProps_exports);
|
|
39
39
|
var import_react = __toESM(require("react"), 1),
|
|
40
|
-
import_gui_core = require("@
|
|
41
|
-
import_gui_use_constant = require("@
|
|
42
|
-
import_gui_use_controllable_state = require("@
|
|
40
|
+
import_gui_core = require("@hanzogui/core"),
|
|
41
|
+
import_gui_use_constant = require("@hanzogui/use-constant"),
|
|
42
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state");
|
|
43
43
|
function useSheetProviderProps(props, state) {
|
|
44
44
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
45
45
|
handleRef = import_react.default.useRef(null),
|
package/package.json
CHANGED
package/src/Sheet.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { styled } from '@
|
|
2
|
-
import { XStack, YStack } from '@
|
|
1
|
+
import { styled } from '@hanzogui/core'
|
|
2
|
+
import { XStack, YStack } from '@hanzogui/stacks'
|
|
3
3
|
|
|
4
4
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from './constants'
|
|
5
5
|
import { createSheet } from './createSheet'
|
package/src/SheetContext.tsx
CHANGED
package/src/SheetController.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProvideAdaptContext, useAdaptContext } from '@
|
|
2
|
-
import { AnimatePresence } from '@
|
|
3
|
-
import { useComposedRefs } from '@
|
|
4
|
-
import { isWeb, useIsomorphicLayoutEffect } from '@
|
|
1
|
+
import { ProvideAdaptContext, useAdaptContext } from '@hanzogui/adapt'
|
|
2
|
+
import { AnimatePresence } from '@hanzogui/animate-presence'
|
|
3
|
+
import { useComposedRefs } from '@hanzogui/compose-refs'
|
|
4
|
+
import { isWeb, useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
5
5
|
import {
|
|
6
6
|
LayoutMeasurementController,
|
|
7
7
|
View as GuiView,
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
useDidFinishSSR,
|
|
10
10
|
useEvent,
|
|
11
11
|
useThemeName,
|
|
12
|
-
} from '@
|
|
13
|
-
import { getSafeArea } from '@
|
|
14
|
-
import { needsPortalRepropagation, Portal } from '@
|
|
12
|
+
} from '@hanzogui/core'
|
|
13
|
+
import { getSafeArea } from '@hanzogui/native'
|
|
14
|
+
import { needsPortalRepropagation, Portal } from '@hanzogui/portal'
|
|
15
15
|
import React, { useState } from 'react'
|
|
16
16
|
import type {
|
|
17
17
|
Animated,
|
|
@@ -37,7 +37,7 @@ const hiddenSize = 10_000.1
|
|
|
37
37
|
let _cachedSafeAreaTop: number | undefined
|
|
38
38
|
function getSafeAreaTopInset(): number {
|
|
39
39
|
if (_cachedSafeAreaTop !== undefined) return _cachedSafeAreaTop
|
|
40
|
-
// use @
|
|
40
|
+
// use @hanzogui/native abstraction - returns 0 when not enabled
|
|
41
41
|
_cachedSafeAreaTop = getSafeArea().getInsets().top
|
|
42
42
|
return _cachedSafeAreaTop
|
|
43
43
|
}
|
package/src/SheetScrollView.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { composeRefs } from '@
|
|
2
|
-
import { isWeb, View, type GetRef } from '@
|
|
3
|
-
import type { ScrollViewProps } from '@
|
|
4
|
-
import { ScrollView } from '@
|
|
5
|
-
import { useControllableState } from '@
|
|
1
|
+
import { composeRefs } from '@hanzogui/compose-refs'
|
|
2
|
+
import { isWeb, View, type GetRef } from '@hanzogui/core'
|
|
3
|
+
import type { ScrollViewProps } from '@hanzogui/scroll-view'
|
|
4
|
+
import { ScrollView } from '@hanzogui/scroll-view'
|
|
5
|
+
import { useControllableState } from '@hanzogui/use-controllable-state'
|
|
6
6
|
import React, { useEffect, useRef, useState } from 'react'
|
|
7
7
|
import type { ScrollView as RNScrollView } from 'react-native'
|
|
8
8
|
import { useGestureSheetContext } from './GestureSheetContext'
|
package/src/createSheet.tsx
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useComposedRefs } from '@
|
|
2
|
-
import { useIsomorphicLayoutEffect } from '@
|
|
1
|
+
import { useComposedRefs } from '@hanzogui/compose-refs'
|
|
2
|
+
import { useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
3
3
|
import type {
|
|
4
4
|
GetProps,
|
|
5
5
|
ViewProps,
|
|
6
6
|
GuiComponent,
|
|
7
7
|
GuiComponentExpectingVariants,
|
|
8
8
|
GuiElement,
|
|
9
|
-
} from '@
|
|
10
|
-
import { View } from '@
|
|
11
|
-
import { composeEventHandlers, withStaticProperties } from '@
|
|
12
|
-
import { resolveViewZIndex } from '@
|
|
13
|
-
import { RemoveScroll } from '@
|
|
14
|
-
import { useDidFinishSSR } from '@
|
|
15
|
-
import { StackZIndexContext } from '@
|
|
9
|
+
} from '@hanzogui/core'
|
|
10
|
+
import { View } from '@hanzogui/core'
|
|
11
|
+
import { composeEventHandlers, withStaticProperties } from '@hanzogui/helpers'
|
|
12
|
+
import { resolveViewZIndex } from '@hanzogui/portal'
|
|
13
|
+
import { RemoveScroll } from '@hanzogui/remove-scroll'
|
|
14
|
+
import { useDidFinishSSR } from '@hanzogui/use-did-finish-ssr'
|
|
15
|
+
import { StackZIndexContext } from '@hanzogui/z-index-stack'
|
|
16
16
|
import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react'
|
|
17
17
|
import { forwardRef, memo, useMemo, useEffect, useRef } from 'react'
|
|
18
18
|
import type { View as RNView } from 'react-native'
|
package/src/gestureState.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-export gesture state from @
|
|
2
|
+
* Re-export gesture state from @hanzogui/native.
|
|
3
3
|
* Sheet uses this for backward compatibility with existing code.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { getGestureHandler, type GestureState } from '@
|
|
6
|
+
import { getGestureHandler, type GestureState } from '@hanzogui/native'
|
|
7
7
|
|
|
8
|
-
export type { GestureState as GestureHandlerState } from '@
|
|
8
|
+
export type { GestureState as GestureHandlerState } from '@hanzogui/native'
|
|
9
9
|
|
|
10
10
|
// backward compat helpers
|
|
11
11
|
export function isGestureHandlerEnabled(): boolean {
|
package/src/nativeSheet.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Legacy setup - prefer `import '@
|
|
2
|
+
* Legacy setup - prefer `import '@hanzogui/native/setup-gesture-handler'` instead.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { getGestureHandler } from '@
|
|
5
|
+
import { getGestureHandler } from '@hanzogui/native'
|
|
6
6
|
|
|
7
7
|
export function isGestureHandlerEnabled(): boolean {
|
|
8
8
|
return getGestureHandler().isEnabled
|
package/src/types.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AnimatedNumberStrategy, TransitionProp } from '@
|
|
2
|
-
import type { ScopedProps } from '@
|
|
3
|
-
import type { PortalProps } from '@
|
|
4
|
-
import type { RemoveScroll } from '@
|
|
1
|
+
import type { AnimatedNumberStrategy, TransitionProp } from '@hanzogui/core'
|
|
2
|
+
import type { ScopedProps } from '@hanzogui/create-context'
|
|
3
|
+
import type { PortalProps } from '@hanzogui/portal'
|
|
4
|
+
import type { RemoveScroll } from '@hanzogui/remove-scroll'
|
|
5
5
|
import type { ReactNode } from 'react'
|
|
6
6
|
import type React from 'react'
|
|
7
7
|
|
|
@@ -21,11 +21,11 @@ let isKeyboardControllerEnabled: () => boolean = () => false
|
|
|
21
21
|
let getKeyboardControllerState: () => any = () => ({})
|
|
22
22
|
|
|
23
23
|
try {
|
|
24
|
-
const nativeModule = require('@
|
|
24
|
+
const nativeModule = require('@hanzogui/native')
|
|
25
25
|
isKeyboardControllerEnabled = nativeModule.isKeyboardControllerEnabled
|
|
26
26
|
getKeyboardControllerState = nativeModule.getKeyboardControllerState
|
|
27
27
|
} catch {
|
|
28
|
-
// @
|
|
28
|
+
// @hanzogui/native not available
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function useKeyboardControllerSheet(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { GuiElement } from '@
|
|
3
|
-
import { useConfiguration } from '@
|
|
4
|
-
import { useConstant } from '@
|
|
5
|
-
import { useControllableState } from '@
|
|
2
|
+
import type { GuiElement } from '@hanzogui/core'
|
|
3
|
+
import { useConfiguration } from '@hanzogui/core'
|
|
4
|
+
import { useConstant } from '@hanzogui/use-constant'
|
|
5
|
+
import { useControllableState } from '@hanzogui/use-controllable-state'
|
|
6
6
|
|
|
7
7
|
import type { ScrollBridge, SheetProps } from './types'
|
|
8
8
|
import type { SheetOpenState } from './useSheetOpenState'
|