@tamagui/sheet 1.55.2 → 1.57.0
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/createSheet.js +1 -1
- package/dist/esm/createSheet.js +2 -2
- package/dist/jsx/createSheet.js +2 -2
- package/package.json +14 -14
- package/src/createSheet.tsx +3 -3
package/dist/cjs/createSheet.js
CHANGED
|
@@ -69,7 +69,7 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
69
69
|
Overlay,
|
|
70
70
|
{
|
|
71
71
|
...props,
|
|
72
|
-
onPress: (0, import_core.
|
|
72
|
+
onPress: (0, import_core.composeEventHandlers)(
|
|
73
73
|
props.onPress,
|
|
74
74
|
context.dismissOnOverlayPress ? () => {
|
|
75
75
|
context.setOpen(false);
|
package/dist/esm/createSheet.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
3
3
|
import {
|
|
4
4
|
Stack,
|
|
5
|
-
|
|
5
|
+
composeEventHandlers,
|
|
6
6
|
useDidFinishSSR,
|
|
7
7
|
useIsomorphicLayoutEffect,
|
|
8
8
|
withStaticProperties
|
|
@@ -52,7 +52,7 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
52
52
|
Overlay,
|
|
53
53
|
{
|
|
54
54
|
...props,
|
|
55
|
-
onPress:
|
|
55
|
+
onPress: composeEventHandlers(
|
|
56
56
|
props.onPress,
|
|
57
57
|
context.dismissOnOverlayPress ? () => {
|
|
58
58
|
context.setOpen(false);
|
package/dist/jsx/createSheet.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
2
|
import {
|
|
3
3
|
Stack,
|
|
4
|
-
|
|
4
|
+
composeEventHandlers,
|
|
5
5
|
useDidFinishSSR,
|
|
6
6
|
useIsomorphicLayoutEffect,
|
|
7
7
|
withStaticProperties
|
|
@@ -46,7 +46,7 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
<Overlay
|
|
48
48
|
{...props}
|
|
49
|
-
onPress={
|
|
49
|
+
onPress={composeEventHandlers(
|
|
50
50
|
props.onPress,
|
|
51
51
|
context.dismissOnOverlayPress ? () => {
|
|
52
52
|
context.setOpen(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/animate-presence": "1.
|
|
35
|
-
"@tamagui/animations-react-native": "1.
|
|
36
|
-
"@tamagui/compose-refs": "1.
|
|
37
|
-
"@tamagui/core": "1.
|
|
38
|
-
"@tamagui/create-context": "1.
|
|
39
|
-
"@tamagui/portal": "1.
|
|
40
|
-
"@tamagui/remove-scroll": "1.
|
|
41
|
-
"@tamagui/scroll-view": "1.
|
|
42
|
-
"@tamagui/stacks": "1.
|
|
43
|
-
"@tamagui/use-constant": "1.
|
|
44
|
-
"@tamagui/use-controllable-state": "1.
|
|
45
|
-
"@tamagui/use-keyboard-visible": "1.
|
|
34
|
+
"@tamagui/animate-presence": "1.57.0",
|
|
35
|
+
"@tamagui/animations-react-native": "1.57.0",
|
|
36
|
+
"@tamagui/compose-refs": "1.57.0",
|
|
37
|
+
"@tamagui/core": "1.57.0",
|
|
38
|
+
"@tamagui/create-context": "1.57.0",
|
|
39
|
+
"@tamagui/portal": "1.57.0",
|
|
40
|
+
"@tamagui/remove-scroll": "1.57.0",
|
|
41
|
+
"@tamagui/scroll-view": "1.57.0",
|
|
42
|
+
"@tamagui/stacks": "1.57.0",
|
|
43
|
+
"@tamagui/use-constant": "1.57.0",
|
|
44
|
+
"@tamagui/use-controllable-state": "1.57.0",
|
|
45
|
+
"@tamagui/use-keyboard-visible": "1.57.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "*",
|
|
49
49
|
"react-native": "*"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tamagui/build": "1.
|
|
52
|
+
"@tamagui/build": "1.57.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-native": "^0.72.1"
|
|
55
55
|
},
|
package/src/createSheet.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
StackProps,
|
|
6
6
|
TamaguiComponent,
|
|
7
7
|
TamaguiComponentExpectingVariants,
|
|
8
|
-
|
|
8
|
+
composeEventHandlers,
|
|
9
9
|
useDidFinishSSR,
|
|
10
10
|
useIsomorphicLayoutEffect,
|
|
11
11
|
withStaticProperties,
|
|
@@ -78,8 +78,8 @@ export function createSheet<
|
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
<Overlay
|
|
80
80
|
{...props}
|
|
81
|
-
onPress={
|
|
82
|
-
props.onPress
|
|
81
|
+
onPress={composeEventHandlers(
|
|
82
|
+
props.onPress,
|
|
83
83
|
context.dismissOnOverlayPress
|
|
84
84
|
? () => {
|
|
85
85
|
context.setOpen(false)
|