@hanzogui/toast 2.0.4 → 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/Toast.cjs +6 -6
- package/dist/cjs/Toast.native.js +6 -6
- package/dist/cjs/ToastAnnounce.cjs +5 -5
- package/dist/cjs/ToastAnnounce.native.js +5 -5
- package/dist/cjs/ToastImperative.cjs +1 -1
- package/dist/cjs/ToastImperative.native.js +1 -1
- package/dist/cjs/ToastImpl.cjs +8 -8
- package/dist/cjs/ToastImpl.native.js +8 -8
- package/dist/cjs/ToastPortal.cjs +1 -1
- package/dist/cjs/ToastPortal.native.js +1 -1
- package/dist/cjs/ToastProvider.cjs +3 -3
- package/dist/cjs/ToastProvider.native.js +3 -3
- package/dist/cjs/ToastViewport.cjs +7 -7
- package/dist/cjs/ToastViewport.native.js +7 -7
- package/dist/cjs/createNativeToast.native.js +2 -2
- package/dist/esm/Toast.mjs +6 -6
- package/dist/esm/Toast.native.js +6 -6
- package/dist/esm/ToastAnnounce.mjs +5 -5
- package/dist/esm/ToastAnnounce.native.js +5 -5
- package/dist/esm/ToastImperative.mjs +1 -1
- package/dist/esm/ToastImperative.native.js +1 -1
- package/dist/esm/ToastImpl.mjs +8 -8
- package/dist/esm/ToastImpl.native.js +8 -8
- package/dist/esm/ToastPortal.mjs +1 -1
- package/dist/esm/ToastPortal.native.js +1 -1
- package/dist/esm/ToastProvider.mjs +3 -3
- package/dist/esm/ToastProvider.native.js +3 -3
- package/dist/esm/ToastViewport.mjs +7 -7
- package/dist/esm/ToastViewport.native.js +7 -7
- package/dist/esm/createNativeToast.native.js +2 -2
- package/dist/jsx/Toast.mjs +6 -6
- package/dist/jsx/Toast.native.js +6 -6
- package/dist/jsx/ToastAnnounce.mjs +5 -5
- package/dist/jsx/ToastAnnounce.native.js +5 -5
- package/dist/jsx/ToastImperative.mjs +1 -1
- package/dist/jsx/ToastImperative.native.js +1 -1
- package/dist/jsx/ToastImpl.mjs +8 -8
- package/dist/jsx/ToastImpl.native.js +8 -8
- package/dist/jsx/ToastPortal.mjs +1 -1
- package/dist/jsx/ToastPortal.native.js +1 -1
- package/dist/jsx/ToastProvider.mjs +3 -3
- package/dist/jsx/ToastProvider.native.js +3 -3
- package/dist/jsx/ToastViewport.mjs +7 -7
- package/dist/jsx/ToastViewport.native.js +7 -7
- package/dist/jsx/createNativeToast.native.js +2 -2
- package/package.json +1 -1
- package/src/Toast.tsx +7 -7
- package/src/ToastAnnounce.tsx +6 -6
- package/src/ToastImperative.tsx +3 -3
- package/src/ToastImpl.tsx +10 -10
- package/src/ToastPortal.tsx +1 -1
- package/src/ToastProvider.tsx +4 -4
- package/src/ToastViewport.tsx +8 -8
- package/src/createNativeToast.native.tsx +2 -2
package/dist/cjs/Toast.cjs
CHANGED
|
@@ -39,12 +39,12 @@ __export(Toast_exports, {
|
|
|
39
39
|
useToastState: () => import_ToastImperative.useToastState
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(Toast_exports);
|
|
42
|
-
var import_gui_animate_presence = require("@
|
|
43
|
-
import_gui_core = require("@
|
|
44
|
-
import_gui_helpers = require("@
|
|
45
|
-
import_gui_stacks = require("@
|
|
46
|
-
import_gui_text = require("@
|
|
47
|
-
import_gui_use_controllable_state = require("@
|
|
42
|
+
var import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
43
|
+
import_gui_core = require("@hanzogui/core"),
|
|
44
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
45
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
46
|
+
import_gui_text = require("@hanzogui/text"),
|
|
47
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
48
48
|
React = __toESM(require("react"), 1),
|
|
49
49
|
import_ToastAnnounce = require("./ToastAnnounce.cjs"),
|
|
50
50
|
import_ToastImperative = require("./ToastImperative.cjs"),
|
package/dist/cjs/Toast.native.js
CHANGED
|
@@ -42,12 +42,12 @@ __export(Toast_exports, {
|
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(Toast_exports);
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
45
|
-
import_gui_animate_presence = require("@
|
|
46
|
-
import_gui_core = require("@
|
|
47
|
-
import_gui_helpers = require("@
|
|
48
|
-
import_gui_stacks = require("@
|
|
49
|
-
import_gui_text = require("@
|
|
50
|
-
import_gui_use_controllable_state = require("@
|
|
45
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
46
|
+
import_gui_core = require("@hanzogui/core"),
|
|
47
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
48
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
49
|
+
import_gui_text = require("@hanzogui/text"),
|
|
50
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
51
51
|
React = __toESM(require("react"), 1),
|
|
52
52
|
import_ToastAnnounce = require("./ToastAnnounce.native.js"),
|
|
53
53
|
import_ToastImperative = require("./ToastImperative.native.js"),
|
|
@@ -35,11 +35,11 @@ __export(ToastAnnounce_exports, {
|
|
|
35
35
|
ToastAnnounceExclude: () => ToastAnnounceExclude
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(ToastAnnounce_exports);
|
|
38
|
-
var import_gui_constants = require("@
|
|
39
|
-
import_gui_core = require("@
|
|
40
|
-
import_gui_portal = require("@
|
|
41
|
-
import_gui_start_transition = require("@
|
|
42
|
-
import_gui_visually_hidden = require("@
|
|
38
|
+
var import_gui_constants = require("@hanzogui/constants"),
|
|
39
|
+
import_gui_core = require("@hanzogui/core"),
|
|
40
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
41
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
42
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
43
43
|
React = __toESM(require("react"), 1),
|
|
44
44
|
import_ToastProvider = require("./ToastProvider.cjs"),
|
|
45
45
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -38,11 +38,11 @@ __export(ToastAnnounce_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(ToastAnnounce_exports);
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
41
|
-
import_gui_constants = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_portal = require("@
|
|
44
|
-
import_gui_start_transition = require("@
|
|
45
|
-
import_gui_visually_hidden = require("@
|
|
41
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
44
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
45
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
46
46
|
React = __toESM(require("react"), 1),
|
|
47
47
|
import_ToastProvider = require("./ToastProvider.native.js"),
|
|
48
48
|
ToastAnnounceExcludeFrame = (0, import_gui_core.styled)(import_gui_core.View, {
|
|
@@ -37,7 +37,7 @@ __export(ToastImperative_exports, {
|
|
|
37
37
|
useToastState: () => useToastState
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(ToastImperative_exports);
|
|
40
|
-
var import_gui_core = require("@
|
|
40
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
41
41
|
import_react = __toESM(require("react"), 1),
|
|
42
42
|
import_createNativeToast = require("./createNativeToast.cjs"),
|
|
43
43
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -40,7 +40,7 @@ __export(ToastImperative_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(ToastImperative_exports);
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
43
|
-
import_gui_core = require("@
|
|
43
|
+
import_gui_core = require("@hanzogui/core"),
|
|
44
44
|
import_react = __toESM(require("react"), 1),
|
|
45
45
|
import_createNativeToast = require("./createNativeToast.native.js");
|
|
46
46
|
function _type_of(obj) {
|
package/dist/cjs/ToastImpl.cjs
CHANGED
|
@@ -36,14 +36,14 @@ __export(ToastImpl_exports, {
|
|
|
36
36
|
useToastInteractiveContext: () => useToastInteractiveContext
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(ToastImpl_exports);
|
|
39
|
-
var import_gui_animate_presence = require("@
|
|
40
|
-
import_gui_compose_refs = require("@
|
|
41
|
-
import_gui_constants = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_dismissable = require("@
|
|
44
|
-
import_gui_helpers = require("@
|
|
45
|
-
import_gui_portal = require("@
|
|
46
|
-
import_gui_stacks = require("@
|
|
39
|
+
var import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
40
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
41
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
44
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
45
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
46
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
47
47
|
React = __toESM(require("react"), 1),
|
|
48
48
|
import_react_native = require("react-native-web"),
|
|
49
49
|
import_constants = require("./constants.cjs"),
|
|
@@ -39,14 +39,14 @@ __export(ToastImpl_exports, {
|
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(ToastImpl_exports);
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
42
|
-
import_gui_animate_presence = require("@
|
|
43
|
-
import_gui_compose_refs = require("@
|
|
44
|
-
import_gui_constants = require("@
|
|
45
|
-
import_gui_core = require("@
|
|
46
|
-
import_gui_dismissable = require("@
|
|
47
|
-
import_gui_helpers = require("@
|
|
48
|
-
import_gui_portal = require("@
|
|
49
|
-
import_gui_stacks = require("@
|
|
42
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
43
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
44
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
45
|
+
import_gui_core = require("@hanzogui/core"),
|
|
46
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
47
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
48
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
49
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
50
50
|
React = __toESM(require("react"), 1),
|
|
51
51
|
import_react_native = require("react-native"),
|
|
52
52
|
import_constants = require("./constants.native.js"),
|
package/dist/cjs/ToastPortal.cjs
CHANGED
|
@@ -23,7 +23,7 @@ __export(ToastPortal_exports, {
|
|
|
23
23
|
ToastPortal: () => ToastPortal
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(ToastPortal_exports);
|
|
26
|
-
var import_gui_portal = require("@
|
|
26
|
+
var import_gui_portal = require("@hanzogui/portal"),
|
|
27
27
|
import_react_native = require("react-native-web"),
|
|
28
28
|
import_ToastProvider = require("./ToastProvider.cjs"),
|
|
29
29
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -26,7 +26,7 @@ __export(ToastPortal_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(ToastPortal_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_portal = require("@
|
|
29
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
30
30
|
import_react_native = require("react-native"),
|
|
31
31
|
import_ToastProvider = require("./ToastProvider.native.js");
|
|
32
32
|
function ToastPortal(props) {
|
|
@@ -38,9 +38,9 @@ __export(ToastProvider_exports, {
|
|
|
38
38
|
useToastProviderContext: () => useToastProviderContext
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(ToastProvider_exports);
|
|
41
|
-
var import_gui_collection = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_start_transition = require("@
|
|
41
|
+
var import_gui_collection = require("@hanzogui/collection"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
44
44
|
React = __toESM(require("react"), 1),
|
|
45
45
|
import_constants = require("./constants.cjs"),
|
|
46
46
|
import_ToastImperative = require("./ToastImperative.cjs"),
|
|
@@ -41,9 +41,9 @@ __export(ToastProvider_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(ToastProvider_exports);
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
44
|
-
import_gui_collection = require("@
|
|
45
|
-
import_gui_core = require("@
|
|
46
|
-
import_gui_start_transition = require("@
|
|
44
|
+
import_gui_collection = require("@hanzogui/collection"),
|
|
45
|
+
import_gui_core = require("@hanzogui/core"),
|
|
46
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
47
47
|
React = __toESM(require("react"), 1),
|
|
48
48
|
import_constants = require("./constants.native.js"),
|
|
49
49
|
import_ToastImperative = require("./ToastImperative.native.js"),
|
|
@@ -37,13 +37,13 @@ __export(ToastViewport_exports, {
|
|
|
37
37
|
VIEWPORT_RESUME: () => VIEWPORT_RESUME
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(ToastViewport_exports);
|
|
40
|
-
var import_gui_animate_presence = require("@
|
|
41
|
-
import_gui_compose_refs = require("@
|
|
42
|
-
import_gui_constants = require("@
|
|
43
|
-
import_gui_core = require("@
|
|
44
|
-
import_gui_portal = require("@
|
|
45
|
-
import_gui_stacks = require("@
|
|
46
|
-
import_gui_visually_hidden = require("@
|
|
40
|
+
var import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
41
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
42
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
43
|
+
import_gui_core = require("@hanzogui/core"),
|
|
44
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
45
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
46
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
47
47
|
React = __toESM(require("react"), 1),
|
|
48
48
|
import_constants = require("./constants.cjs"),
|
|
49
49
|
import_ToastPortal = require("./ToastPortal.cjs"),
|
|
@@ -40,13 +40,13 @@ __export(ToastViewport_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(ToastViewport_exports);
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
43
|
-
import_gui_animate_presence = require("@
|
|
44
|
-
import_gui_compose_refs = require("@
|
|
45
|
-
import_gui_constants = require("@
|
|
46
|
-
import_gui_core = require("@
|
|
47
|
-
import_gui_portal = require("@
|
|
48
|
-
import_gui_stacks = require("@
|
|
49
|
-
import_gui_visually_hidden = require("@
|
|
43
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
44
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
45
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
46
|
+
import_gui_core = require("@hanzogui/core"),
|
|
47
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
48
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
49
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
50
50
|
React = __toESM(require("react"), 1),
|
|
51
51
|
import_constants = require("./constants.native.js"),
|
|
52
52
|
import_ToastPortal = require("./ToastPortal.native.js"),
|
|
@@ -26,7 +26,7 @@ __export(createNativeToast_native_exports, {
|
|
|
26
26
|
hideNativeToast: () => hideNativeToast
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(createNativeToast_native_exports);
|
|
29
|
-
var import_gui_native = require("@
|
|
29
|
+
var import_gui_native = require("@hanzogui/native"),
|
|
30
30
|
createNativeToast = function (title, param) {
|
|
31
31
|
var {
|
|
32
32
|
message,
|
|
@@ -39,7 +39,7 @@ var import_gui_native = require("@hanzo/gui-native"),
|
|
|
39
39
|
message,
|
|
40
40
|
duration: duration ? duration / 1e3 : void 0,
|
|
41
41
|
...burntOptions
|
|
42
|
-
}), !0) : (console.warn("Warning: Must call import '@
|
|
42
|
+
}), !0) : (console.warn("Warning: Must call import '@hanzogui/native/setup-burnt' at your app entry point to use native toasts"), !1);
|
|
43
43
|
},
|
|
44
44
|
hideNativeToast = function () {
|
|
45
45
|
var burnt = (0, import_gui_native.getBurnt)();
|
package/dist/esm/Toast.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { styled, useEvent } from "@
|
|
3
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
4
|
-
import { YStack } from "@
|
|
5
|
-
import { SizableText } from "@
|
|
6
|
-
import { useControllableState } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { styled, useEvent } from "@hanzogui/core";
|
|
3
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
4
|
+
import { YStack } from "@hanzogui/stacks";
|
|
5
|
+
import { SizableText } from "@hanzogui/text";
|
|
6
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { ToastAnnounceExclude } from "./ToastAnnounce.mjs";
|
|
9
9
|
import { useToast, useToastController, useToastState } from "./ToastImperative.mjs";
|
package/dist/esm/Toast.native.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AnimatePresence } from "@
|
|
3
|
-
import { styled, useEvent } from "@
|
|
4
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
5
|
-
import { YStack } from "@
|
|
6
|
-
import { SizableText } from "@
|
|
7
|
-
import { useControllableState } from "@
|
|
2
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
3
|
+
import { styled, useEvent } from "@hanzogui/core";
|
|
4
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
5
|
+
import { YStack } from "@hanzogui/stacks";
|
|
6
|
+
import { SizableText } from "@hanzogui/text";
|
|
7
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { ToastAnnounceExclude } from "./ToastAnnounce.native.js";
|
|
10
10
|
import { useToast, useToastController, useToastState } from "./ToastImperative.native.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
2
|
-
import { View, Text, styled, useEvent } from "@
|
|
3
|
-
import { Portal } from "@
|
|
4
|
-
import { startTransition } from "@
|
|
5
|
-
import { VisuallyHidden } from "@
|
|
1
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
2
|
+
import { View, Text, styled, useEvent } from "@hanzogui/core";
|
|
3
|
+
import { Portal } from "@hanzogui/portal";
|
|
4
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
5
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { useToastProviderContext } from "./ToastProvider.mjs";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
3
|
-
import { View, Text, styled, useEvent } from "@
|
|
4
|
-
import { Portal } from "@
|
|
5
|
-
import { startTransition } from "@
|
|
6
|
-
import { VisuallyHidden } from "@
|
|
2
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
3
|
+
import { View, Text, styled, useEvent } from "@hanzogui/core";
|
|
4
|
+
import { Portal } from "@hanzogui/portal";
|
|
5
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
6
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { useToastProviderContext } from "./ToastProvider.native.js";
|
|
9
9
|
var ToastAnnounceExcludeFrame = styled(View, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { isAndroid, isIos, isWeb } from "@
|
|
2
|
+
import { isAndroid, isIos, isWeb } from "@hanzogui/core";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createNativeToast } from "./createNativeToast.native.js";
|
|
5
5
|
function _type_of(obj) {
|
package/dist/esm/ToastImpl.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useIsPresent } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb } from "@
|
|
4
|
-
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@
|
|
5
|
-
import { Dismissable } from "@
|
|
6
|
-
import { composeEventHandlers } from "@
|
|
7
|
-
import { PortalItem } from "@
|
|
8
|
-
import { YStack } from "@
|
|
1
|
+
import { useIsPresent } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb } from "@hanzogui/constants";
|
|
4
|
+
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@hanzogui/core";
|
|
5
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
6
|
+
import { composeEventHandlers } from "@hanzogui/helpers";
|
|
7
|
+
import { PortalItem } from "@hanzogui/portal";
|
|
8
|
+
import { YStack } from "@hanzogui/stacks";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { PanResponder } from "react-native-web";
|
|
11
11
|
import { TOAST_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 { useIsPresent } from "@
|
|
3
|
-
import { useComposedRefs } from "@
|
|
4
|
-
import { isWeb } from "@
|
|
5
|
-
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@
|
|
6
|
-
import { Dismissable } from "@
|
|
7
|
-
import { composeEventHandlers } from "@
|
|
8
|
-
import { PortalItem } from "@
|
|
9
|
-
import { YStack } from "@
|
|
2
|
+
import { useIsPresent } from "@hanzogui/animate-presence";
|
|
3
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
4
|
+
import { isWeb } from "@hanzogui/constants";
|
|
5
|
+
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@hanzogui/core";
|
|
6
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
7
|
+
import { composeEventHandlers } from "@hanzogui/helpers";
|
|
8
|
+
import { PortalItem } from "@hanzogui/portal";
|
|
9
|
+
import { YStack } from "@hanzogui/stacks";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { PanResponder } from "react-native";
|
|
12
12
|
import { TOAST_NAME } from "./constants.native.js";
|
package/dist/esm/ToastPortal.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Portal } from "@
|
|
2
|
+
import { Portal } from "@hanzogui/portal";
|
|
3
3
|
import { Platform } from "react-native";
|
|
4
4
|
import { ReprogapateToastProvider } from "./ToastProvider.native.js";
|
|
5
5
|
function ToastPortal(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createCollection } from "@
|
|
2
|
-
import { createStyledContext } from "@
|
|
3
|
-
import { startTransition } from "@
|
|
1
|
+
import { createCollection } from "@hanzogui/collection";
|
|
2
|
+
import { createStyledContext } from "@hanzogui/core";
|
|
3
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { TOAST_CONTEXT } from "./constants.mjs";
|
|
6
6
|
import { ToastImperativeProvider } from "./ToastImperative.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createCollection } from "@
|
|
3
|
-
import { createStyledContext } from "@
|
|
4
|
-
import { startTransition } from "@
|
|
2
|
+
import { createCollection } from "@hanzogui/collection";
|
|
3
|
+
import { createStyledContext } from "@hanzogui/core";
|
|
4
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { TOAST_CONTEXT } from "./constants.native.js";
|
|
7
7
|
import { ToastImperativeProvider } from "./ToastImperative.native.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb } from "@
|
|
4
|
-
import { styled } from "@
|
|
5
|
-
import { PortalHost } from "@
|
|
6
|
-
import { YStack } from "@
|
|
7
|
-
import { VisuallyHidden } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb } from "@hanzogui/constants";
|
|
4
|
+
import { styled } from "@hanzogui/core";
|
|
5
|
+
import { PortalHost } from "@hanzogui/portal";
|
|
6
|
+
import { YStack } from "@hanzogui/stacks";
|
|
7
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { TOAST_CONTEXT } from "./constants.mjs";
|
|
10
10
|
import { ToastPortal } from "./ToastPortal.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AnimatePresence } from "@
|
|
3
|
-
import { useComposedRefs } from "@
|
|
4
|
-
import { isWeb } from "@
|
|
5
|
-
import { styled } from "@
|
|
6
|
-
import { PortalHost } from "@
|
|
7
|
-
import { YStack } from "@
|
|
8
|
-
import { VisuallyHidden } from "@
|
|
2
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
3
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
4
|
+
import { isWeb } from "@hanzogui/constants";
|
|
5
|
+
import { styled } from "@hanzogui/core";
|
|
6
|
+
import { PortalHost } from "@hanzogui/portal";
|
|
7
|
+
import { YStack } from "@hanzogui/stacks";
|
|
8
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { TOAST_CONTEXT } from "./constants.native.js";
|
|
11
11
|
import { ToastPortal } from "./ToastPortal.native.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getBurnt } from "@
|
|
1
|
+
import { getBurnt } from "@hanzogui/native";
|
|
2
2
|
var createNativeToast = function (title, param) {
|
|
3
3
|
var {
|
|
4
4
|
message,
|
|
@@ -11,7 +11,7 @@ var createNativeToast = function (title, param) {
|
|
|
11
11
|
message,
|
|
12
12
|
duration: duration ? duration / 1e3 : void 0,
|
|
13
13
|
...burntOptions
|
|
14
|
-
}), !0) : (console.warn("Warning: Must call import '@
|
|
14
|
+
}), !0) : (console.warn("Warning: Must call import '@hanzogui/native/setup-burnt' at your app entry point to use native toasts"), !1);
|
|
15
15
|
},
|
|
16
16
|
hideNativeToast = function () {
|
|
17
17
|
var burnt = getBurnt();
|
package/dist/jsx/Toast.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { styled, useEvent } from "@
|
|
3
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
4
|
-
import { YStack } from "@
|
|
5
|
-
import { SizableText } from "@
|
|
6
|
-
import { useControllableState } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { styled, useEvent } from "@hanzogui/core";
|
|
3
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
4
|
+
import { YStack } from "@hanzogui/stacks";
|
|
5
|
+
import { SizableText } from "@hanzogui/text";
|
|
6
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { ToastAnnounceExclude } from "./ToastAnnounce.mjs";
|
|
9
9
|
import { useToast, useToastController, useToastState } from "./ToastImperative.mjs";
|
package/dist/jsx/Toast.native.js
CHANGED
|
@@ -42,12 +42,12 @@ __export(Toast_exports, {
|
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(Toast_exports);
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
45
|
-
import_gui_animate_presence = require("@
|
|
46
|
-
import_gui_core = require("@
|
|
47
|
-
import_gui_helpers = require("@
|
|
48
|
-
import_gui_stacks = require("@
|
|
49
|
-
import_gui_text = require("@
|
|
50
|
-
import_gui_use_controllable_state = require("@
|
|
45
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
46
|
+
import_gui_core = require("@hanzogui/core"),
|
|
47
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
48
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
49
|
+
import_gui_text = require("@hanzogui/text"),
|
|
50
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
51
51
|
React = __toESM(require("react"), 1),
|
|
52
52
|
import_ToastAnnounce = require("./ToastAnnounce.native.js"),
|
|
53
53
|
import_ToastImperative = require("./ToastImperative.native.js"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useIsomorphicLayoutEffect } from "@
|
|
2
|
-
import { View, Text, styled, useEvent } from "@
|
|
3
|
-
import { Portal } from "@
|
|
4
|
-
import { startTransition } from "@
|
|
5
|
-
import { VisuallyHidden } from "@
|
|
1
|
+
import { useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
2
|
+
import { View, Text, styled, useEvent } from "@hanzogui/core";
|
|
3
|
+
import { Portal } from "@hanzogui/portal";
|
|
4
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
5
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { useToastProviderContext } from "./ToastProvider.mjs";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -38,11 +38,11 @@ __export(ToastAnnounce_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(ToastAnnounce_exports);
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
41
|
-
import_gui_constants = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_portal = require("@
|
|
44
|
-
import_gui_start_transition = require("@
|
|
45
|
-
import_gui_visually_hidden = require("@
|
|
41
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
44
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
45
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
46
46
|
React = __toESM(require("react"), 1),
|
|
47
47
|
import_ToastProvider = require("./ToastProvider.native.js"),
|
|
48
48
|
ToastAnnounceExcludeFrame = (0, import_gui_core.styled)(import_gui_core.View, {
|
|
@@ -40,7 +40,7 @@ __export(ToastImperative_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(ToastImperative_exports);
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
43
|
-
import_gui_core = require("@
|
|
43
|
+
import_gui_core = require("@hanzogui/core"),
|
|
44
44
|
import_react = __toESM(require("react"), 1),
|
|
45
45
|
import_createNativeToast = require("./createNativeToast.native.js");
|
|
46
46
|
function _type_of(obj) {
|
package/dist/jsx/ToastImpl.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useIsPresent } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb } from "@
|
|
4
|
-
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@
|
|
5
|
-
import { Dismissable } from "@
|
|
6
|
-
import { composeEventHandlers } from "@
|
|
7
|
-
import { PortalItem } from "@
|
|
8
|
-
import { YStack } from "@
|
|
1
|
+
import { useIsPresent } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb } from "@hanzogui/constants";
|
|
4
|
+
import { View, Theme, createStyledContext, styled, useConfiguration, useEvent, useThemeName } from "@hanzogui/core";
|
|
5
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
6
|
+
import { composeEventHandlers } from "@hanzogui/helpers";
|
|
7
|
+
import { PortalItem } from "@hanzogui/portal";
|
|
8
|
+
import { YStack } from "@hanzogui/stacks";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { PanResponder } from "react-native-web";
|
|
11
11
|
import { TOAST_NAME } from "./constants.mjs";
|
|
@@ -39,14 +39,14 @@ __export(ToastImpl_exports, {
|
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(ToastImpl_exports);
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
42
|
-
import_gui_animate_presence = require("@
|
|
43
|
-
import_gui_compose_refs = require("@
|
|
44
|
-
import_gui_constants = require("@
|
|
45
|
-
import_gui_core = require("@
|
|
46
|
-
import_gui_dismissable = require("@
|
|
47
|
-
import_gui_helpers = require("@
|
|
48
|
-
import_gui_portal = require("@
|
|
49
|
-
import_gui_stacks = require("@
|
|
42
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
43
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
44
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
45
|
+
import_gui_core = require("@hanzogui/core"),
|
|
46
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
47
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
48
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
49
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
50
50
|
React = __toESM(require("react"), 1),
|
|
51
51
|
import_react_native = require("react-native"),
|
|
52
52
|
import_constants = require("./constants.native.js"),
|
package/dist/jsx/ToastPortal.mjs
CHANGED
|
@@ -26,7 +26,7 @@ __export(ToastPortal_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(ToastPortal_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_portal = require("@
|
|
29
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
30
30
|
import_react_native = require("react-native"),
|
|
31
31
|
import_ToastProvider = require("./ToastProvider.native.js");
|
|
32
32
|
function ToastPortal(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createCollection } from "@
|
|
2
|
-
import { createStyledContext } from "@
|
|
3
|
-
import { startTransition } from "@
|
|
1
|
+
import { createCollection } from "@hanzogui/collection";
|
|
2
|
+
import { createStyledContext } from "@hanzogui/core";
|
|
3
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { TOAST_CONTEXT } from "./constants.mjs";
|
|
6
6
|
import { ToastImperativeProvider } from "./ToastImperative.mjs";
|
|
@@ -41,9 +41,9 @@ __export(ToastProvider_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(ToastProvider_exports);
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
44
|
-
import_gui_collection = require("@
|
|
45
|
-
import_gui_core = require("@
|
|
46
|
-
import_gui_start_transition = require("@
|
|
44
|
+
import_gui_collection = require("@hanzogui/collection"),
|
|
45
|
+
import_gui_core = require("@hanzogui/core"),
|
|
46
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
47
47
|
React = __toESM(require("react"), 1),
|
|
48
48
|
import_constants = require("./constants.native.js"),
|
|
49
49
|
import_ToastImperative = require("./ToastImperative.native.js"),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AnimatePresence } from "@
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb } from "@
|
|
4
|
-
import { styled } from "@
|
|
5
|
-
import { PortalHost } from "@
|
|
6
|
-
import { YStack } from "@
|
|
7
|
-
import { VisuallyHidden } from "@
|
|
1
|
+
import { AnimatePresence } from "@hanzogui/animate-presence";
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb } from "@hanzogui/constants";
|
|
4
|
+
import { styled } from "@hanzogui/core";
|
|
5
|
+
import { PortalHost } from "@hanzogui/portal";
|
|
6
|
+
import { YStack } from "@hanzogui/stacks";
|
|
7
|
+
import { VisuallyHidden } from "@hanzogui/visually-hidden";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { TOAST_CONTEXT } from "./constants.mjs";
|
|
10
10
|
import { ToastPortal } from "./ToastPortal.mjs";
|
|
@@ -40,13 +40,13 @@ __export(ToastViewport_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(ToastViewport_exports);
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
43
|
-
import_gui_animate_presence = require("@
|
|
44
|
-
import_gui_compose_refs = require("@
|
|
45
|
-
import_gui_constants = require("@
|
|
46
|
-
import_gui_core = require("@
|
|
47
|
-
import_gui_portal = require("@
|
|
48
|
-
import_gui_stacks = require("@
|
|
49
|
-
import_gui_visually_hidden = require("@
|
|
43
|
+
import_gui_animate_presence = require("@hanzogui/animate-presence"),
|
|
44
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
45
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
46
|
+
import_gui_core = require("@hanzogui/core"),
|
|
47
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
48
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
49
|
+
import_gui_visually_hidden = require("@hanzogui/visually-hidden"),
|
|
50
50
|
React = __toESM(require("react"), 1),
|
|
51
51
|
import_constants = require("./constants.native.js"),
|
|
52
52
|
import_ToastPortal = require("./ToastPortal.native.js"),
|
|
@@ -26,7 +26,7 @@ __export(createNativeToast_native_exports, {
|
|
|
26
26
|
hideNativeToast: () => hideNativeToast
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(createNativeToast_native_exports);
|
|
29
|
-
var import_gui_native = require("@
|
|
29
|
+
var import_gui_native = require("@hanzogui/native"),
|
|
30
30
|
createNativeToast = function (title, param) {
|
|
31
31
|
var {
|
|
32
32
|
message,
|
|
@@ -39,7 +39,7 @@ var import_gui_native = require("@hanzo/gui-native"),
|
|
|
39
39
|
message,
|
|
40
40
|
duration: duration ? duration / 1e3 : void 0,
|
|
41
41
|
...burntOptions
|
|
42
|
-
}), !0) : (console.warn("Warning: Must call import '@
|
|
42
|
+
}), !0) : (console.warn("Warning: Must call import '@hanzogui/native/setup-burnt' at your app entry point to use native toasts"), !1);
|
|
43
43
|
},
|
|
44
44
|
hideNativeToast = function () {
|
|
45
45
|
var burnt = (0, import_gui_native.getBurnt)();
|
package/package.json
CHANGED
package/src/Toast.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AnimatePresence } from '@
|
|
2
|
-
import type { GetProps, NativePlatform, NativeValue, GuiElement } from '@
|
|
3
|
-
import { styled, useEvent } from '@
|
|
4
|
-
import { composeEventHandlers, withStaticProperties } from '@
|
|
5
|
-
import { YStack } from '@
|
|
6
|
-
import { SizableText } from '@
|
|
7
|
-
import { useControllableState } from '@
|
|
1
|
+
import { AnimatePresence } from '@hanzogui/animate-presence'
|
|
2
|
+
import type { GetProps, NativePlatform, NativeValue, GuiElement } from '@hanzogui/core'
|
|
3
|
+
import { styled, useEvent } from '@hanzogui/core'
|
|
4
|
+
import { composeEventHandlers, withStaticProperties } from '@hanzogui/helpers'
|
|
5
|
+
import { YStack } from '@hanzogui/stacks'
|
|
6
|
+
import { SizableText } from '@hanzogui/text'
|
|
7
|
+
import { useControllableState } from '@hanzogui/use-controllable-state'
|
|
8
8
|
import * as React from 'react'
|
|
9
9
|
import { ToastAnnounceExclude } from './ToastAnnounce'
|
|
10
10
|
import type { CustomData } from './ToastImperative'
|
package/src/ToastAnnounce.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useIsomorphicLayoutEffect } from '@
|
|
2
|
-
import type { GetProps, GuiElement } from '@
|
|
3
|
-
import { View, Text, styled, useEvent } from '@
|
|
4
|
-
import { Portal } from '@
|
|
5
|
-
import { startTransition } from '@
|
|
6
|
-
import { VisuallyHidden } from '@
|
|
1
|
+
import { useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
2
|
+
import type { GetProps, GuiElement } from '@hanzogui/core'
|
|
3
|
+
import { View, Text, styled, useEvent } from '@hanzogui/core'
|
|
4
|
+
import { Portal } from '@hanzogui/portal'
|
|
5
|
+
import { startTransition } from '@hanzogui/start-transition'
|
|
6
|
+
import { VisuallyHidden } from '@hanzogui/visually-hidden'
|
|
7
7
|
import * as React from 'react'
|
|
8
8
|
|
|
9
9
|
import type { ScopedProps } from './ToastProvider'
|
package/src/ToastImperative.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NativePlatform, NativeValue } from '@
|
|
2
|
-
import { isAndroid, isIos, isWeb } from '@
|
|
1
|
+
import type { NativePlatform, NativeValue } from '@hanzogui/core'
|
|
2
|
+
import { isAndroid, isIos, isWeb } from '@hanzogui/core'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import { createNativeToast } from './createNativeToast'
|
|
5
5
|
import type { CreateNativeToastOptions, NativeToastRef } from './types'
|
|
@@ -19,7 +19,7 @@ export interface ToastImperativeOptions extends Omit<
|
|
|
19
19
|
*
|
|
20
20
|
* e.g.
|
|
21
21
|
* ```ts
|
|
22
|
-
* declare module '@
|
|
22
|
+
* declare module '@hanzogui/toast' {
|
|
23
23
|
* interface CustomData {
|
|
24
24
|
* preset: 'error' | 'success'
|
|
25
25
|
* isUrgent: true
|
package/src/ToastImpl.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useIsPresent } from '@
|
|
2
|
-
import { useComposedRefs } from '@
|
|
3
|
-
import { isWeb } from '@
|
|
4
|
-
import type { GetProps, GuiElement } from '@
|
|
1
|
+
import { useIsPresent } from '@hanzogui/animate-presence'
|
|
2
|
+
import { useComposedRefs } from '@hanzogui/compose-refs'
|
|
3
|
+
import { isWeb } from '@hanzogui/constants'
|
|
4
|
+
import type { GetProps, GuiElement } from '@hanzogui/core'
|
|
5
5
|
import {
|
|
6
6
|
View,
|
|
7
7
|
Theme,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
useConfiguration,
|
|
11
11
|
useEvent,
|
|
12
12
|
useThemeName,
|
|
13
|
-
} from '@
|
|
14
|
-
import type { DismissableProps } from '@
|
|
15
|
-
import { Dismissable } from '@
|
|
16
|
-
import { composeEventHandlers } from '@
|
|
17
|
-
import { PortalItem } from '@
|
|
18
|
-
import { YStack } from '@
|
|
13
|
+
} from '@hanzogui/core'
|
|
14
|
+
import type { DismissableProps } from '@hanzogui/dismissable'
|
|
15
|
+
import { Dismissable } from '@hanzogui/dismissable'
|
|
16
|
+
import { composeEventHandlers } from '@hanzogui/helpers'
|
|
17
|
+
import { PortalItem } from '@hanzogui/portal'
|
|
18
|
+
import { YStack } from '@hanzogui/stacks'
|
|
19
19
|
import * as React from 'react'
|
|
20
20
|
import type {
|
|
21
21
|
Animated,
|
package/src/ToastPortal.tsx
CHANGED
package/src/ToastProvider.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createCollection } from '@
|
|
2
|
-
import type { NativeValue, GuiElement } from '@
|
|
3
|
-
import { createStyledContext } from '@
|
|
4
|
-
import { startTransition } from '@
|
|
1
|
+
import { createCollection } from '@hanzogui/collection'
|
|
2
|
+
import type { NativeValue, GuiElement } from '@hanzogui/core'
|
|
3
|
+
import { createStyledContext } from '@hanzogui/core'
|
|
4
|
+
import { startTransition } from '@hanzogui/start-transition'
|
|
5
5
|
import * as React from 'react'
|
|
6
6
|
|
|
7
7
|
import { TOAST_CONTEXT } from './constants'
|
package/src/ToastViewport.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AnimatePresence } from '@
|
|
2
|
-
import { useComposedRefs } from '@
|
|
3
|
-
import { isWeb } from '@
|
|
4
|
-
import type { GetProps, GuiElement } from '@
|
|
5
|
-
import { styled } from '@
|
|
6
|
-
import { PortalHost } from '@
|
|
7
|
-
import { YStack } from '@
|
|
8
|
-
import { VisuallyHidden } from '@
|
|
1
|
+
import { AnimatePresence } from '@hanzogui/animate-presence'
|
|
2
|
+
import { useComposedRefs } from '@hanzogui/compose-refs'
|
|
3
|
+
import { isWeb } from '@hanzogui/constants'
|
|
4
|
+
import type { GetProps, GuiElement } from '@hanzogui/core'
|
|
5
|
+
import { styled } from '@hanzogui/core'
|
|
6
|
+
import { PortalHost } from '@hanzogui/portal'
|
|
7
|
+
import { YStack } from '@hanzogui/stacks'
|
|
8
|
+
import { VisuallyHidden } from '@hanzogui/visually-hidden'
|
|
9
9
|
import * as React from 'react'
|
|
10
10
|
import { TOAST_CONTEXT } from './constants'
|
|
11
11
|
import { ToastPortal } from './ToastPortal'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getBurnt } from '@
|
|
1
|
+
import { getBurnt } from '@hanzogui/native'
|
|
2
2
|
import type { CreateNativeToastsFn, HideNativeToastsFn } from './types'
|
|
3
3
|
|
|
4
4
|
export const createNativeToast: CreateNativeToastsFn = (
|
|
@@ -8,7 +8,7 @@ export const createNativeToast: CreateNativeToastsFn = (
|
|
|
8
8
|
const burnt = getBurnt()
|
|
9
9
|
if (!burnt.isEnabled) {
|
|
10
10
|
console.warn(
|
|
11
|
-
`Warning: Must call import '@
|
|
11
|
+
`Warning: Must call import '@hanzogui/native/setup-burnt' at your app entry point to use native toasts`
|
|
12
12
|
)
|
|
13
13
|
return false
|
|
14
14
|
}
|