@hanzogui/sheet 2.0.0 → 2.0.5
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/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 +20 -20
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/sheet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
"clean": "hanzo-gui-build clean"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@hanzogui/adapt": "2.0.
|
|
60
|
-
"@hanzogui/animate-presence": "2.0.
|
|
61
|
-
"@hanzogui/animations-react-native": "2.0.
|
|
62
|
-
"@hanzogui/compose-refs": "2.0.
|
|
63
|
-
"@hanzogui/constants": "2.0.
|
|
64
|
-
"@hanzogui/core": "2.0.
|
|
65
|
-
"@hanzogui/create-context": "2.0.
|
|
66
|
-
"@hanzogui/helpers": "2.0.
|
|
67
|
-
"@hanzogui/native": "2.0.
|
|
68
|
-
"@hanzogui/portal": "2.0.
|
|
69
|
-
"@hanzogui/remove-scroll": "2.0.
|
|
70
|
-
"@hanzogui/scroll-view": "2.0.
|
|
71
|
-
"@hanzogui/stacks": "2.0.
|
|
72
|
-
"@hanzogui/use-constant": "2.0.
|
|
73
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
74
|
-
"@hanzogui/use-did-finish-ssr": "2.0.
|
|
75
|
-
"@hanzogui/use-keyboard-visible": "2.0.
|
|
76
|
-
"@hanzogui/z-index-stack": "2.0.
|
|
59
|
+
"@hanzogui/adapt": "2.0.1",
|
|
60
|
+
"@hanzogui/animate-presence": "2.0.1",
|
|
61
|
+
"@hanzogui/animations-react-native": "2.0.1",
|
|
62
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
63
|
+
"@hanzogui/constants": "2.0.1",
|
|
64
|
+
"@hanzogui/core": "2.0.1",
|
|
65
|
+
"@hanzogui/create-context": "2.0.1",
|
|
66
|
+
"@hanzogui/helpers": "2.0.1",
|
|
67
|
+
"@hanzogui/native": "2.0.1",
|
|
68
|
+
"@hanzogui/portal": "2.0.1",
|
|
69
|
+
"@hanzogui/remove-scroll": "2.0.1",
|
|
70
|
+
"@hanzogui/scroll-view": "2.0.1",
|
|
71
|
+
"@hanzogui/stacks": "2.0.1",
|
|
72
|
+
"@hanzogui/use-constant": "2.0.1",
|
|
73
|
+
"@hanzogui/use-controllable-state": "2.0.1",
|
|
74
|
+
"@hanzogui/use-did-finish-ssr": "2.0.1",
|
|
75
|
+
"@hanzogui/use-keyboard-visible": "2.0.1",
|
|
76
|
+
"@hanzogui/z-index-stack": "2.0.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@hanzogui/build": "2.0.
|
|
79
|
+
"@hanzogui/build": "2.0.1",
|
|
80
80
|
"react": ">=19",
|
|
81
81
|
"react-native": "0.83.2",
|
|
82
82
|
"react-native-gesture-handler": "~2.30.0"
|