@tamagui/sheet 2.0.0-1769421444918 → 2.0.0-1769439083296
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/SheetImplementationCustom.cjs +1 -1
- package/dist/cjs/SheetImplementationCustom.js +1 -1
- package/dist/cjs/SheetImplementationCustom.native.js +1 -1
- package/dist/esm/SheetImplementationCustom.js +1 -1
- package/dist/esm/SheetImplementationCustom.mjs +1 -1
- package/dist/esm/SheetImplementationCustom.native.js +1 -1
- package/dist/jsx/SheetImplementationCustom.js +1 -1
- package/dist/jsx/SheetImplementationCustom.mjs +1 -1
- package/dist/jsx/SheetImplementationCustom.native.js +1 -1
- package/package.json +20 -20
- package/src/SheetImplementationCustom.tsx +1 -1
|
@@ -94,7 +94,7 @@ const relativeDimensionTo = import_constants.isWeb ? "window" : "screen",
|
|
|
94
94
|
{
|
|
95
95
|
animationDriver
|
|
96
96
|
} = (0, import_core.useConfiguration)();
|
|
97
|
-
if (!animationDriver) throw new Error("Sheet
|
|
97
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
98
98
|
const transitionConfig = (() => {
|
|
99
99
|
if (transitionConfigProp) return transitionConfigProp;
|
|
100
100
|
const [animationProp, animationPropConfig] = transition ? Array.isArray(transition) ? transition : [transition] : [];
|
|
@@ -55,7 +55,7 @@ const relativeDimensionTo = import_constants.isWeb ? "window" : "screen", SheetI
|
|
|
55
55
|
maxSnapPoint
|
|
56
56
|
} = providerProps, { open, controller, isHidden } = state, sheetRef = import_react.default.useRef(void 0), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core.useConfiguration)();
|
|
57
57
|
if (!animationDriver)
|
|
58
|
-
throw new Error("Sheet
|
|
58
|
+
throw new Error("Sheet requires an animation driver to be set");
|
|
59
59
|
const transitionConfig = (() => {
|
|
60
60
|
if (transitionConfigProp)
|
|
61
61
|
return transitionConfigProp;
|
|
@@ -96,7 +96,7 @@ var import_jsx_runtime = require("react/jsx-runtime"),
|
|
|
96
96
|
{
|
|
97
97
|
animationDriver
|
|
98
98
|
} = (0, import_core.useConfiguration)();
|
|
99
|
-
if (!animationDriver) throw new Error("Sheet
|
|
99
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
100
100
|
var transitionConfig = function () {
|
|
101
101
|
var _animationDriver_animations;
|
|
102
102
|
if (transitionConfigProp) return transitionConfigProp;
|
|
@@ -57,7 +57,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen", SheetImplementationCust
|
|
|
57
57
|
maxSnapPoint
|
|
58
58
|
} = providerProps, { open, controller, isHidden } = state, sheetRef = React.useRef(void 0), ref = useComposedRefs(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = useConfiguration();
|
|
59
59
|
if (!animationDriver)
|
|
60
|
-
throw new Error("Sheet
|
|
60
|
+
throw new Error("Sheet requires an animation driver to be set");
|
|
61
61
|
const transitionConfig = (() => {
|
|
62
62
|
if (transitionConfigProp)
|
|
63
63
|
return transitionConfigProp;
|
|
@@ -57,7 +57,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen",
|
|
|
57
57
|
{
|
|
58
58
|
animationDriver
|
|
59
59
|
} = useConfiguration();
|
|
60
|
-
if (!animationDriver) throw new Error("Sheet
|
|
60
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
61
61
|
const transitionConfig = (() => {
|
|
62
62
|
if (transitionConfigProp) return transitionConfigProp;
|
|
63
63
|
const [animationProp, animationPropConfig] = transition ? Array.isArray(transition) ? transition : [transition] : [];
|
|
@@ -58,7 +58,7 @@ var hiddenSize = 10000.1,
|
|
|
58
58
|
{
|
|
59
59
|
animationDriver
|
|
60
60
|
} = useConfiguration();
|
|
61
|
-
if (!animationDriver) throw new Error("Sheet
|
|
61
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
62
62
|
var transitionConfig = function () {
|
|
63
63
|
var _animationDriver_animations;
|
|
64
64
|
if (transitionConfigProp) return transitionConfigProp;
|
|
@@ -57,7 +57,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen", SheetImplementationCust
|
|
|
57
57
|
maxSnapPoint
|
|
58
58
|
} = providerProps, { open, controller, isHidden } = state, sheetRef = React.useRef(void 0), ref = useComposedRefs(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = useConfiguration();
|
|
59
59
|
if (!animationDriver)
|
|
60
|
-
throw new Error("Sheet
|
|
60
|
+
throw new Error("Sheet requires an animation driver to be set");
|
|
61
61
|
const transitionConfig = (() => {
|
|
62
62
|
if (transitionConfigProp)
|
|
63
63
|
return transitionConfigProp;
|
|
@@ -57,7 +57,7 @@ const relativeDimensionTo = isWeb ? "window" : "screen",
|
|
|
57
57
|
{
|
|
58
58
|
animationDriver
|
|
59
59
|
} = useConfiguration();
|
|
60
|
-
if (!animationDriver) throw new Error("Sheet
|
|
60
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
61
61
|
const transitionConfig = (() => {
|
|
62
62
|
if (transitionConfigProp) return transitionConfigProp;
|
|
63
63
|
const [animationProp, animationPropConfig] = transition ? Array.isArray(transition) ? transition : [transition] : [];
|
|
@@ -96,7 +96,7 @@ var import_jsx_runtime = require("react/jsx-runtime"),
|
|
|
96
96
|
{
|
|
97
97
|
animationDriver
|
|
98
98
|
} = (0, import_core.useConfiguration)();
|
|
99
|
-
if (!animationDriver) throw new Error("Sheet
|
|
99
|
+
if (!animationDriver) throw new Error("Sheet requires an animation driver to be set");
|
|
100
100
|
var transitionConfig = function () {
|
|
101
101
|
var _animationDriver_animations;
|
|
102
102
|
if (transitionConfigProp) return transitionConfigProp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-1769439083296",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -72,24 +72,24 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@tamagui/adapt": "2.0.0-
|
|
76
|
-
"@tamagui/animate-presence": "2.0.0-
|
|
77
|
-
"@tamagui/animations-react-native": "2.0.0-
|
|
78
|
-
"@tamagui/compose-refs": "2.0.0-
|
|
79
|
-
"@tamagui/constants": "2.0.0-
|
|
80
|
-
"@tamagui/core": "2.0.0-
|
|
81
|
-
"@tamagui/create-context": "2.0.0-
|
|
82
|
-
"@tamagui/helpers": "2.0.0-
|
|
83
|
-
"@tamagui/native": "2.0.0-
|
|
84
|
-
"@tamagui/portal": "2.0.0-
|
|
85
|
-
"@tamagui/remove-scroll": "2.0.0-
|
|
86
|
-
"@tamagui/scroll-view": "2.0.0-
|
|
87
|
-
"@tamagui/stacks": "2.0.0-
|
|
88
|
-
"@tamagui/use-constant": "2.0.0-
|
|
89
|
-
"@tamagui/use-controllable-state": "2.0.0-
|
|
90
|
-
"@tamagui/use-did-finish-ssr": "2.0.0-
|
|
91
|
-
"@tamagui/use-keyboard-visible": "2.0.0-
|
|
92
|
-
"@tamagui/z-index-stack": "2.0.0-
|
|
75
|
+
"@tamagui/adapt": "2.0.0-1769439083296",
|
|
76
|
+
"@tamagui/animate-presence": "2.0.0-1769439083296",
|
|
77
|
+
"@tamagui/animations-react-native": "2.0.0-1769439083296",
|
|
78
|
+
"@tamagui/compose-refs": "2.0.0-1769439083296",
|
|
79
|
+
"@tamagui/constants": "2.0.0-1769439083296",
|
|
80
|
+
"@tamagui/core": "2.0.0-1769439083296",
|
|
81
|
+
"@tamagui/create-context": "2.0.0-1769439083296",
|
|
82
|
+
"@tamagui/helpers": "2.0.0-1769439083296",
|
|
83
|
+
"@tamagui/native": "2.0.0-1769439083296",
|
|
84
|
+
"@tamagui/portal": "2.0.0-1769439083296",
|
|
85
|
+
"@tamagui/remove-scroll": "2.0.0-1769439083296",
|
|
86
|
+
"@tamagui/scroll-view": "2.0.0-1769439083296",
|
|
87
|
+
"@tamagui/stacks": "2.0.0-1769439083296",
|
|
88
|
+
"@tamagui/use-constant": "2.0.0-1769439083296",
|
|
89
|
+
"@tamagui/use-controllable-state": "2.0.0-1769439083296",
|
|
90
|
+
"@tamagui/use-did-finish-ssr": "2.0.0-1769439083296",
|
|
91
|
+
"@tamagui/use-keyboard-visible": "2.0.0-1769439083296",
|
|
92
|
+
"@tamagui/z-index-stack": "2.0.0-1769439083296"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"react": "*",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@tamagui/build": "2.0.0-
|
|
105
|
+
"@tamagui/build": "2.0.0-1769439083296",
|
|
106
106
|
"react": "*",
|
|
107
107
|
"react-native": "0.81.5",
|
|
108
108
|
"react-native-gesture-handler": "~2.28.0"
|
|
@@ -85,7 +85,7 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
85
85
|
const { animationDriver } = useConfiguration()
|
|
86
86
|
|
|
87
87
|
if (!animationDriver) {
|
|
88
|
-
throw new Error(`Sheet
|
|
88
|
+
throw new Error(`Sheet requires an animation driver to be set`)
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
const transitionConfig = (() => {
|