@hanzogui/dialog 2.0.0 → 2.0.4
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/package.json +20 -20
- package/src/Dialog.tsx +20 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/dialog",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
"clean:build": "hanzo-gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/adapt": "2.0.
|
|
40
|
-
"@hanzogui/animate": "2.0.
|
|
41
|
-
"@hanzogui/animate-presence": "2.0.
|
|
42
|
-
"@hanzogui/compose-refs": "2.0.
|
|
43
|
-
"@hanzogui/constants": "2.0.
|
|
44
|
-
"@hanzogui/core": "2.0.
|
|
45
|
-
"@hanzogui/create-context": "2.0.
|
|
46
|
-
"@hanzogui/dismissable": "2.0.
|
|
47
|
-
"@hanzogui/focus-scope": "2.0.
|
|
48
|
-
"@hanzogui/helpers": "2.0.
|
|
49
|
-
"@hanzogui/polyfill-dev": "2.0.
|
|
50
|
-
"@hanzogui/portal": "2.0.
|
|
51
|
-
"@hanzogui/remove-scroll": "2.0.
|
|
52
|
-
"@hanzogui/sheet": "2.0.
|
|
53
|
-
"@hanzogui/stacks": "2.0.
|
|
54
|
-
"@hanzogui/text": "2.0.
|
|
55
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
56
|
-
"@hanzogui/z-index-stack": "2.0.
|
|
39
|
+
"@hanzogui/adapt": "2.0.1",
|
|
40
|
+
"@hanzogui/animate": "2.0.1",
|
|
41
|
+
"@hanzogui/animate-presence": "2.0.1",
|
|
42
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
43
|
+
"@hanzogui/constants": "2.0.1",
|
|
44
|
+
"@hanzogui/core": "2.0.1",
|
|
45
|
+
"@hanzogui/create-context": "2.0.1",
|
|
46
|
+
"@hanzogui/dismissable": "2.0.1",
|
|
47
|
+
"@hanzogui/focus-scope": "2.0.1",
|
|
48
|
+
"@hanzogui/helpers": "2.0.1",
|
|
49
|
+
"@hanzogui/polyfill-dev": "2.0.1",
|
|
50
|
+
"@hanzogui/portal": "2.0.1",
|
|
51
|
+
"@hanzogui/remove-scroll": "2.0.1",
|
|
52
|
+
"@hanzogui/sheet": "2.0.1",
|
|
53
|
+
"@hanzogui/stacks": "2.0.1",
|
|
54
|
+
"@hanzogui/text": "2.0.1",
|
|
55
|
+
"@hanzogui/use-controllable-state": "2.0.1",
|
|
56
|
+
"@hanzogui/z-index-stack": "2.0.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@hanzogui/build": "2.0.
|
|
59
|
+
"@hanzogui/build": "2.0.1",
|
|
60
60
|
"react": ">=19",
|
|
61
61
|
"react-native": "0.83.2"
|
|
62
62
|
},
|
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 '@hanzo/gui-adapt'
|
|
9
|
+
import { Animate } from '@hanzo/gui-animate'
|
|
10
|
+
import { composeRefs, useComposedRefs } from '@hanzo/gui-compose-refs'
|
|
11
|
+
import { isWeb, useIsomorphicLayoutEffect } from '@hanzo/gui-constants'
|
|
12
|
+
import type { GetProps, GuiElement, ViewProps } from '@hanzo/gui-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 '@hanzo/gui-core'
|
|
22
|
+
import { createContext } from '@hanzo/gui-create-context'
|
|
23
|
+
import type { DismissableProps } from '@hanzo/gui-dismissable'
|
|
24
|
+
import { Dismissable } from '@hanzo/gui-dismissable'
|
|
25
|
+
import type { FocusScopeProps } from '@hanzo/gui-focus-scope'
|
|
26
|
+
import { FocusScope, FocusScopeController } from '@hanzo/gui-focus-scope'
|
|
27
|
+
import { composeEventHandlers, withStaticProperties } from '@hanzo/gui-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 '@hanzo/gui-portal'
|
|
34
|
+
import { RemoveScroll } from '@hanzo/gui-remove-scroll'
|
|
35
|
+
import { SheetController } from '@hanzo/gui-sheet/controller'
|
|
36
|
+
import type { YStackProps } from '@hanzo/gui-stacks'
|
|
37
|
+
import { ButtonNestingContext, ThemeableStack, YStack } from '@hanzo/gui-stacks'
|
|
38
|
+
import { H2, Paragraph } from '@hanzo/gui-text'
|
|
39
|
+
import { useControllableState } from '@hanzo/gui-use-controllable-state'
|
|
40
|
+
import { StackZIndexContext } from '@hanzo/gui-z-index-stack'
|
|
41
41
|
import * as React from 'react'
|
|
42
42
|
|
|
43
43
|
export type DialogScopes = string
|