@hanzogui/dialog 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/Dialog.cjs +16 -16
- package/dist/cjs/Dialog.native.js +16 -16
- package/dist/esm/Dialog.mjs +16 -16
- package/dist/esm/Dialog.native.js +16 -16
- package/dist/jsx/Dialog.mjs +16 -16
- package/dist/jsx/Dialog.native.js +16 -16
- package/package.json +1 -1
- package/src/Dialog.tsx +20 -20
package/dist/cjs/Dialog.cjs
CHANGED
|
@@ -47,22 +47,22 @@ __export(Dialog_exports, {
|
|
|
47
47
|
useDialogContext: () => useDialogContext
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(Dialog_exports);
|
|
50
|
-
var import_gui_adapt = require("@
|
|
51
|
-
import_gui_animate = require("@
|
|
52
|
-
import_gui_compose_refs = require("@
|
|
53
|
-
import_gui_constants = require("@
|
|
54
|
-
import_gui_core = require("@
|
|
55
|
-
import_gui_create_context = require("@
|
|
56
|
-
import_gui_dismissable = require("@
|
|
57
|
-
import_gui_focus_scope = require("@
|
|
58
|
-
import_gui_helpers = require("@
|
|
59
|
-
import_gui_portal = require("@
|
|
60
|
-
import_gui_remove_scroll = require("@
|
|
61
|
-
import_controller = require("@
|
|
62
|
-
import_gui_stacks = require("@
|
|
63
|
-
import_gui_text = require("@
|
|
64
|
-
import_gui_use_controllable_state = require("@
|
|
65
|
-
import_gui_z_index_stack = require("@
|
|
50
|
+
var import_gui_adapt = require("@hanzogui/adapt"),
|
|
51
|
+
import_gui_animate = require("@hanzogui/animate"),
|
|
52
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
53
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
54
|
+
import_gui_core = require("@hanzogui/core"),
|
|
55
|
+
import_gui_create_context = require("@hanzogui/create-context"),
|
|
56
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
57
|
+
import_gui_focus_scope = require("@hanzogui/focus-scope"),
|
|
58
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
59
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
60
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
61
|
+
import_controller = require("@hanzogui/sheet/controller"),
|
|
62
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
63
|
+
import_gui_text = require("@hanzogui/text"),
|
|
64
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
65
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
66
66
|
React = __toESM(require("react"), 1),
|
|
67
67
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
68
68
|
const DialogContext = (0, import_gui_core.createStyledContext)(
|
|
@@ -50,22 +50,22 @@ __export(Dialog_exports, {
|
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(Dialog_exports);
|
|
52
52
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
53
|
-
import_gui_adapt = require("@
|
|
54
|
-
import_gui_animate = require("@
|
|
55
|
-
import_gui_compose_refs = require("@
|
|
56
|
-
import_gui_constants = require("@
|
|
57
|
-
import_gui_core = require("@
|
|
58
|
-
import_gui_create_context = require("@
|
|
59
|
-
import_gui_dismissable = require("@
|
|
60
|
-
import_gui_focus_scope = require("@
|
|
61
|
-
import_gui_helpers = require("@
|
|
62
|
-
import_gui_portal = require("@
|
|
63
|
-
import_gui_remove_scroll = require("@
|
|
64
|
-
import_controller = require("@
|
|
65
|
-
import_gui_stacks = require("@
|
|
66
|
-
import_gui_text = require("@
|
|
67
|
-
import_gui_use_controllable_state = require("@
|
|
68
|
-
import_gui_z_index_stack = require("@
|
|
53
|
+
import_gui_adapt = require("@hanzogui/adapt"),
|
|
54
|
+
import_gui_animate = require("@hanzogui/animate"),
|
|
55
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
56
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
57
|
+
import_gui_core = require("@hanzogui/core"),
|
|
58
|
+
import_gui_create_context = require("@hanzogui/create-context"),
|
|
59
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
60
|
+
import_gui_focus_scope = require("@hanzogui/focus-scope"),
|
|
61
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
62
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
63
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
64
|
+
import_controller = require("@hanzogui/sheet/controller"),
|
|
65
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
66
|
+
import_gui_text = require("@hanzogui/text"),
|
|
67
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
68
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
69
69
|
React = __toESM(require("react"), 1);
|
|
70
70
|
function _instanceof(left, right) {
|
|
71
71
|
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
package/dist/esm/Dialog.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@
|
|
2
|
-
import { Animate } from "@
|
|
3
|
-
import { composeRefs, useComposedRefs } from "@
|
|
4
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
5
|
-
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@
|
|
6
|
-
import { createContext } from "@
|
|
7
|
-
import { Dismissable } from "@
|
|
8
|
-
import { FocusScope, FocusScopeController } from "@
|
|
9
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
10
|
-
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@
|
|
11
|
-
import { RemoveScroll } from "@
|
|
12
|
-
import { SheetController } from "@
|
|
13
|
-
import { ButtonNestingContext, ThemeableStack, YStack } from "@
|
|
14
|
-
import { H2, Paragraph } from "@
|
|
15
|
-
import { useControllableState } from "@
|
|
16
|
-
import { StackZIndexContext } from "@
|
|
1
|
+
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@hanzogui/adapt";
|
|
2
|
+
import { Animate } from "@hanzogui/animate";
|
|
3
|
+
import { composeRefs, useComposedRefs } from "@hanzogui/compose-refs";
|
|
4
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
5
|
+
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@hanzogui/core";
|
|
6
|
+
import { createContext } from "@hanzogui/create-context";
|
|
7
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
8
|
+
import { FocusScope, FocusScopeController } from "@hanzogui/focus-scope";
|
|
9
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
10
|
+
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@hanzogui/portal";
|
|
11
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
12
|
+
import { SheetController } from "@hanzogui/sheet/controller";
|
|
13
|
+
import { ButtonNestingContext, ThemeableStack, YStack } from "@hanzogui/stacks";
|
|
14
|
+
import { H2, Paragraph } from "@hanzogui/text";
|
|
15
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
16
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
const DialogContext = createStyledContext(
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@
|
|
3
|
-
import { Animate } from "@
|
|
4
|
-
import { composeRefs, useComposedRefs } from "@
|
|
5
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
6
|
-
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@
|
|
7
|
-
import { createContext } from "@
|
|
8
|
-
import { Dismissable } from "@
|
|
9
|
-
import { FocusScope, FocusScopeController } from "@
|
|
10
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
11
|
-
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@
|
|
12
|
-
import { RemoveScroll } from "@
|
|
13
|
-
import { SheetController } from "@
|
|
14
|
-
import { ButtonNestingContext, ThemeableStack, YStack } from "@
|
|
15
|
-
import { H2, Paragraph } from "@
|
|
16
|
-
import { useControllableState } from "@
|
|
17
|
-
import { StackZIndexContext } from "@
|
|
2
|
+
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@hanzogui/adapt";
|
|
3
|
+
import { Animate } from "@hanzogui/animate";
|
|
4
|
+
import { composeRefs, useComposedRefs } from "@hanzogui/compose-refs";
|
|
5
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
6
|
+
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@hanzogui/core";
|
|
7
|
+
import { createContext } from "@hanzogui/create-context";
|
|
8
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
9
|
+
import { FocusScope, FocusScopeController } from "@hanzogui/focus-scope";
|
|
10
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
11
|
+
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@hanzogui/portal";
|
|
12
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
13
|
+
import { SheetController } from "@hanzogui/sheet/controller";
|
|
14
|
+
import { ButtonNestingContext, ThemeableStack, YStack } from "@hanzogui/stacks";
|
|
15
|
+
import { H2, Paragraph } from "@hanzogui/text";
|
|
16
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
17
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
function _instanceof(left, right) {
|
|
20
20
|
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
package/dist/jsx/Dialog.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@
|
|
2
|
-
import { Animate } from "@
|
|
3
|
-
import { composeRefs, useComposedRefs } from "@
|
|
4
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
5
|
-
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@
|
|
6
|
-
import { createContext } from "@
|
|
7
|
-
import { Dismissable } from "@
|
|
8
|
-
import { FocusScope, FocusScopeController } from "@
|
|
9
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
10
|
-
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@
|
|
11
|
-
import { RemoveScroll } from "@
|
|
12
|
-
import { SheetController } from "@
|
|
13
|
-
import { ButtonNestingContext, ThemeableStack, YStack } from "@
|
|
14
|
-
import { H2, Paragraph } from "@
|
|
15
|
-
import { useControllableState } from "@
|
|
16
|
-
import { StackZIndexContext } from "@
|
|
1
|
+
import { Adapt, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive } from "@hanzogui/adapt";
|
|
2
|
+
import { Animate } from "@hanzogui/animate";
|
|
3
|
+
import { composeRefs, useComposedRefs } from "@hanzogui/compose-refs";
|
|
4
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
5
|
+
import { createStyledContext, getExpandedShorthand, LayoutMeasurementController, styled, Theme, useThemeName, View } from "@hanzogui/core";
|
|
6
|
+
import { createContext } from "@hanzogui/create-context";
|
|
7
|
+
import { Dismissable } from "@hanzogui/dismissable";
|
|
8
|
+
import { FocusScope, FocusScopeController } from "@hanzogui/focus-scope";
|
|
9
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
10
|
+
import { needsPortalRepropagation, Portal, PortalItem, resolveViewZIndex } from "@hanzogui/portal";
|
|
11
|
+
import { RemoveScroll } from "@hanzogui/remove-scroll";
|
|
12
|
+
import { SheetController } from "@hanzogui/sheet/controller";
|
|
13
|
+
import { ButtonNestingContext, ThemeableStack, YStack } from "@hanzogui/stacks";
|
|
14
|
+
import { H2, Paragraph } from "@hanzogui/text";
|
|
15
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
16
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
const DialogContext = createStyledContext(
|
|
@@ -50,22 +50,22 @@ __export(Dialog_exports, {
|
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(Dialog_exports);
|
|
52
52
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
53
|
-
import_gui_adapt = require("@
|
|
54
|
-
import_gui_animate = require("@
|
|
55
|
-
import_gui_compose_refs = require("@
|
|
56
|
-
import_gui_constants = require("@
|
|
57
|
-
import_gui_core = require("@
|
|
58
|
-
import_gui_create_context = require("@
|
|
59
|
-
import_gui_dismissable = require("@
|
|
60
|
-
import_gui_focus_scope = require("@
|
|
61
|
-
import_gui_helpers = require("@
|
|
62
|
-
import_gui_portal = require("@
|
|
63
|
-
import_gui_remove_scroll = require("@
|
|
64
|
-
import_controller = require("@
|
|
65
|
-
import_gui_stacks = require("@
|
|
66
|
-
import_gui_text = require("@
|
|
67
|
-
import_gui_use_controllable_state = require("@
|
|
68
|
-
import_gui_z_index_stack = require("@
|
|
53
|
+
import_gui_adapt = require("@hanzogui/adapt"),
|
|
54
|
+
import_gui_animate = require("@hanzogui/animate"),
|
|
55
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
56
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
57
|
+
import_gui_core = require("@hanzogui/core"),
|
|
58
|
+
import_gui_create_context = require("@hanzogui/create-context"),
|
|
59
|
+
import_gui_dismissable = require("@hanzogui/dismissable"),
|
|
60
|
+
import_gui_focus_scope = require("@hanzogui/focus-scope"),
|
|
61
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
62
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
63
|
+
import_gui_remove_scroll = require("@hanzogui/remove-scroll"),
|
|
64
|
+
import_controller = require("@hanzogui/sheet/controller"),
|
|
65
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
66
|
+
import_gui_text = require("@hanzogui/text"),
|
|
67
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
68
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
69
69
|
React = __toESM(require("react"), 1);
|
|
70
70
|
function _instanceof(left, right) {
|
|
71
71
|
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
package/package.json
CHANGED
package/src/Dialog.tsx
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
ProvideAdaptContext,
|
|
6
6
|
useAdaptContext,
|
|
7
7
|
useAdaptIsActive,
|
|
8
|
-
} from '@
|
|
9
|
-
import { Animate } from '@
|
|
10
|
-
import { composeRefs, useComposedRefs } from '@
|
|
11
|
-
import { isWeb, useIsomorphicLayoutEffect } from '@
|
|
12
|
-
import type { GetProps, GuiElement, ViewProps } from '@
|
|
8
|
+
} from '@hanzogui/adapt'
|
|
9
|
+
import { Animate } from '@hanzogui/animate'
|
|
10
|
+
import { composeRefs, useComposedRefs } from '@hanzogui/compose-refs'
|
|
11
|
+
import { isWeb, useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
12
|
+
import type { GetProps, GuiElement, ViewProps } from '@hanzogui/core'
|
|
13
13
|
import {
|
|
14
14
|
createStyledContext,
|
|
15
15
|
getExpandedShorthand,
|
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
Theme,
|
|
19
19
|
useThemeName,
|
|
20
20
|
View,
|
|
21
|
-
} from '@
|
|
22
|
-
import { createContext } from '@
|
|
23
|
-
import type { DismissableProps } from '@
|
|
24
|
-
import { Dismissable } from '@
|
|
25
|
-
import type { FocusScopeProps } from '@
|
|
26
|
-
import { FocusScope, FocusScopeController } from '@
|
|
27
|
-
import { composeEventHandlers, withStaticProperties } from '@
|
|
21
|
+
} from '@hanzogui/core'
|
|
22
|
+
import { createContext } from '@hanzogui/create-context'
|
|
23
|
+
import type { DismissableProps } from '@hanzogui/dismissable'
|
|
24
|
+
import { Dismissable } from '@hanzogui/dismissable'
|
|
25
|
+
import type { FocusScopeProps } from '@hanzogui/focus-scope'
|
|
26
|
+
import { FocusScope, FocusScopeController } from '@hanzogui/focus-scope'
|
|
27
|
+
import { composeEventHandlers, withStaticProperties } from '@hanzogui/helpers'
|
|
28
28
|
import {
|
|
29
29
|
needsPortalRepropagation,
|
|
30
30
|
Portal,
|
|
31
31
|
PortalItem,
|
|
32
32
|
resolveViewZIndex,
|
|
33
|
-
} from '@
|
|
34
|
-
import { RemoveScroll } from '@
|
|
35
|
-
import { SheetController } from '@
|
|
36
|
-
import type { YStackProps } from '@
|
|
37
|
-
import { ButtonNestingContext, ThemeableStack, YStack } from '@
|
|
38
|
-
import { H2, Paragraph } from '@
|
|
39
|
-
import { useControllableState } from '@
|
|
40
|
-
import { StackZIndexContext } from '@
|
|
33
|
+
} from '@hanzogui/portal'
|
|
34
|
+
import { RemoveScroll } from '@hanzogui/remove-scroll'
|
|
35
|
+
import { SheetController } from '@hanzogui/sheet/controller'
|
|
36
|
+
import type { YStackProps } from '@hanzogui/stacks'
|
|
37
|
+
import { ButtonNestingContext, ThemeableStack, YStack } from '@hanzogui/stacks'
|
|
38
|
+
import { H2, Paragraph } from '@hanzogui/text'
|
|
39
|
+
import { useControllableState } from '@hanzogui/use-controllable-state'
|
|
40
|
+
import { StackZIndexContext } from '@hanzogui/z-index-stack'
|
|
41
41
|
import * as React from 'react'
|
|
42
42
|
|
|
43
43
|
export type DialogScopes = string
|