@tamagui/sheet 1.55.2 → 1.56.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.
@@ -69,7 +69,7 @@ function createSheet({ Handle, Frame, Overlay }) {
69
69
  Overlay,
70
70
  {
71
71
  ...props,
72
- onPress: (0, import_core.mergeEvent)(
72
+ onPress: (0, import_core.composeEventHandlers)(
73
73
  props.onPress,
74
74
  context.dismissOnOverlayPress ? () => {
75
75
  context.setOpen(false);
@@ -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
- mergeEvent,
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: mergeEvent(
55
+ onPress: composeEventHandlers(
56
56
  props.onPress,
57
57
  context.dismissOnOverlayPress ? () => {
58
58
  context.setOpen(false);
@@ -1,7 +1,7 @@
1
1
  import { useComposedRefs } from "@tamagui/compose-refs";
2
2
  import {
3
3
  Stack,
4
- mergeEvent,
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={mergeEvent(
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.55.2",
3
+ "version": "1.56.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.55.2",
35
- "@tamagui/animations-react-native": "1.55.2",
36
- "@tamagui/compose-refs": "1.55.2",
37
- "@tamagui/core": "1.55.2",
38
- "@tamagui/create-context": "1.55.2",
39
- "@tamagui/portal": "1.55.2",
40
- "@tamagui/remove-scroll": "1.55.2",
41
- "@tamagui/scroll-view": "1.55.2",
42
- "@tamagui/stacks": "1.55.2",
43
- "@tamagui/use-constant": "1.55.2",
44
- "@tamagui/use-controllable-state": "1.55.2",
45
- "@tamagui/use-keyboard-visible": "1.55.2"
34
+ "@tamagui/animate-presence": "1.56.0",
35
+ "@tamagui/animations-react-native": "1.56.0",
36
+ "@tamagui/compose-refs": "1.56.0",
37
+ "@tamagui/core": "1.56.0",
38
+ "@tamagui/create-context": "1.56.0",
39
+ "@tamagui/portal": "1.56.0",
40
+ "@tamagui/remove-scroll": "1.56.0",
41
+ "@tamagui/scroll-view": "1.56.0",
42
+ "@tamagui/stacks": "1.56.0",
43
+ "@tamagui/use-constant": "1.56.0",
44
+ "@tamagui/use-controllable-state": "1.56.0",
45
+ "@tamagui/use-keyboard-visible": "1.56.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": "*",
49
49
  "react-native": "*"
50
50
  },
51
51
  "devDependencies": {
52
- "@tamagui/build": "1.55.2",
52
+ "@tamagui/build": "1.56.0",
53
53
  "react": "^18.2.0",
54
54
  "react-native": "^0.72.1"
55
55
  },
@@ -5,7 +5,7 @@ import {
5
5
  StackProps,
6
6
  TamaguiComponent,
7
7
  TamaguiComponentExpectingVariants,
8
- mergeEvent,
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={mergeEvent(
82
- props.onPress as any,
81
+ onPress={composeEventHandlers(
82
+ props.onPress,
83
83
  context.dismissOnOverlayPress
84
84
  ? () => {
85
85
  context.setOpen(false)