@tamagui/sheet 1.108.4 → 1.109.1
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.js +2 -2
- package/dist/cjs/SheetImplementationCustom.native.js +2 -2
- package/dist/esm/SheetImplementationCustom.js +2 -2
- package/dist/esm/SheetImplementationCustom.mjs +2 -2
- package/dist/esm/SheetImplementationCustom.native.js +2 -2
- package/dist/jsx/SheetImplementationCustom.js +2 -2
- package/dist/jsx/SheetImplementationCustom.mjs +2 -2
- package/dist/jsx/SheetImplementationCustom.native.js +2 -2
- package/package.json +16 -16
- package/src/SheetImplementationCustom.tsx +2 -2
|
@@ -180,7 +180,7 @@ const SheetImplementationCustom = (0, import_core.themeable)(
|
|
|
180
180
|
(e) => {
|
|
181
181
|
const next = Math.min(
|
|
182
182
|
e.nativeEvent?.layout.height,
|
|
183
|
-
import_react_native.Dimensions.get("
|
|
183
|
+
import_react_native.Dimensions.get("screen").height
|
|
184
184
|
);
|
|
185
185
|
next && setFrameSize(next);
|
|
186
186
|
},
|
|
@@ -189,7 +189,7 @@ const SheetImplementationCustom = (0, import_core.themeable)(
|
|
|
189
189
|
(e) => {
|
|
190
190
|
const next = Math.min(
|
|
191
191
|
e.nativeEvent?.layout.height,
|
|
192
|
-
import_react_native.Dimensions.get("
|
|
192
|
+
import_react_native.Dimensions.get("screen").height
|
|
193
193
|
);
|
|
194
194
|
next && setMaxContentSize(next);
|
|
195
195
|
},
|
|
@@ -244,12 +244,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = (0, import_core.themeable)
|
|
|
244
244
|
positions,
|
|
245
245
|
setPosition
|
|
246
246
|
]), handleAnimationViewLayout = import_react.default.useCallback(function(e) {
|
|
247
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("
|
|
247
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("screen").height);
|
|
248
248
|
next && setFrameSize(next);
|
|
249
249
|
}, [
|
|
250
250
|
keyboardIsVisible
|
|
251
251
|
]), handleMaxContentViewLayout = import_react.default.useCallback(function(e) {
|
|
252
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("
|
|
252
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("screen").height);
|
|
253
253
|
next && setMaxContentSize(next);
|
|
254
254
|
}, [
|
|
255
255
|
keyboardIsVisible
|
|
@@ -176,7 +176,7 @@ const SheetImplementationCustom = themeable(
|
|
|
176
176
|
(e) => {
|
|
177
177
|
const next = Math.min(
|
|
178
178
|
e.nativeEvent?.layout.height,
|
|
179
|
-
Dimensions.get("
|
|
179
|
+
Dimensions.get("screen").height
|
|
180
180
|
);
|
|
181
181
|
next && setFrameSize(next);
|
|
182
182
|
},
|
|
@@ -185,7 +185,7 @@ const SheetImplementationCustom = themeable(
|
|
|
185
185
|
(e) => {
|
|
186
186
|
const next = Math.min(
|
|
187
187
|
e.nativeEvent?.layout.height,
|
|
188
|
-
Dimensions.get("
|
|
188
|
+
Dimensions.get("screen").height
|
|
189
189
|
);
|
|
190
190
|
next && setMaxContentSize(next);
|
|
191
191
|
},
|
|
@@ -196,11 +196,11 @@ const SheetImplementationCustom = themeable(React.forwardRef(function (props, fo
|
|
|
196
196
|
});
|
|
197
197
|
}, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]),
|
|
198
198
|
handleAnimationViewLayout = React.useCallback(e => {
|
|
199
|
-
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("
|
|
199
|
+
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
|
|
200
200
|
next && setFrameSize(next);
|
|
201
201
|
}, [keyboardIsVisible]),
|
|
202
202
|
handleMaxContentViewLayout = React.useCallback(e => {
|
|
203
|
-
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("
|
|
203
|
+
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
|
|
204
204
|
next && setMaxContentSize(next);
|
|
205
205
|
}, [keyboardIsVisible]),
|
|
206
206
|
animatedStyle = useAnimatedNumberStyle(animatedNumber, val => {
|
|
@@ -231,12 +231,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = themeable(/* @__PURE__ */
|
|
|
231
231
|
positions,
|
|
232
232
|
setPosition
|
|
233
233
|
]), handleAnimationViewLayout = React.useCallback(function(e) {
|
|
234
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("
|
|
234
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
|
|
235
235
|
next && setFrameSize(next);
|
|
236
236
|
}, [
|
|
237
237
|
keyboardIsVisible
|
|
238
238
|
]), handleMaxContentViewLayout = React.useCallback(function(e) {
|
|
239
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("
|
|
239
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
|
|
240
240
|
next && setMaxContentSize(next);
|
|
241
241
|
}, [
|
|
242
242
|
keyboardIsVisible
|
|
@@ -176,7 +176,7 @@ const SheetImplementationCustom = themeable(
|
|
|
176
176
|
(e) => {
|
|
177
177
|
const next = Math.min(
|
|
178
178
|
e.nativeEvent?.layout.height,
|
|
179
|
-
Dimensions.get("
|
|
179
|
+
Dimensions.get("screen").height
|
|
180
180
|
);
|
|
181
181
|
next && setFrameSize(next);
|
|
182
182
|
},
|
|
@@ -185,7 +185,7 @@ const SheetImplementationCustom = themeable(
|
|
|
185
185
|
(e) => {
|
|
186
186
|
const next = Math.min(
|
|
187
187
|
e.nativeEvent?.layout.height,
|
|
188
|
-
Dimensions.get("
|
|
188
|
+
Dimensions.get("screen").height
|
|
189
189
|
);
|
|
190
190
|
next && setMaxContentSize(next);
|
|
191
191
|
},
|
|
@@ -196,11 +196,11 @@ const SheetImplementationCustom = themeable(React.forwardRef(function (props, fo
|
|
|
196
196
|
});
|
|
197
197
|
}, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]),
|
|
198
198
|
handleAnimationViewLayout = React.useCallback(e => {
|
|
199
|
-
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("
|
|
199
|
+
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
|
|
200
200
|
next && setFrameSize(next);
|
|
201
201
|
}, [keyboardIsVisible]),
|
|
202
202
|
handleMaxContentViewLayout = React.useCallback(e => {
|
|
203
|
-
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("
|
|
203
|
+
const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
|
|
204
204
|
next && setMaxContentSize(next);
|
|
205
205
|
}, [keyboardIsVisible]),
|
|
206
206
|
animatedStyle = useAnimatedNumberStyle(animatedNumber, val => {
|
|
@@ -231,12 +231,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = themeable(/* @__PURE__ */
|
|
|
231
231
|
positions,
|
|
232
232
|
setPosition
|
|
233
233
|
]), handleAnimationViewLayout = React.useCallback(function(e) {
|
|
234
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("
|
|
234
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
|
|
235
235
|
next && setFrameSize(next);
|
|
236
236
|
}, [
|
|
237
237
|
keyboardIsVisible
|
|
238
238
|
]), handleMaxContentViewLayout = React.useCallback(function(e) {
|
|
239
|
-
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("
|
|
239
|
+
var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
|
|
240
240
|
next && setMaxContentSize(next);
|
|
241
241
|
}, [
|
|
242
242
|
keyboardIsVisible
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.109.1",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/animate-presence": "1.
|
|
38
|
-
"@tamagui/animations-react-native": "1.
|
|
39
|
-
"@tamagui/compose-refs": "1.
|
|
40
|
-
"@tamagui/constants": "1.
|
|
41
|
-
"@tamagui/core": "1.
|
|
42
|
-
"@tamagui/create-context": "1.
|
|
43
|
-
"@tamagui/helpers": "1.
|
|
44
|
-
"@tamagui/portal": "1.
|
|
45
|
-
"@tamagui/remove-scroll": "1.
|
|
46
|
-
"@tamagui/scroll-view": "1.
|
|
47
|
-
"@tamagui/stacks": "1.
|
|
48
|
-
"@tamagui/use-constant": "1.
|
|
49
|
-
"@tamagui/use-controllable-state": "1.
|
|
50
|
-
"@tamagui/use-keyboard-visible": "1.
|
|
37
|
+
"@tamagui/animate-presence": "1.109.1",
|
|
38
|
+
"@tamagui/animations-react-native": "1.109.1",
|
|
39
|
+
"@tamagui/compose-refs": "1.109.1",
|
|
40
|
+
"@tamagui/constants": "1.109.1",
|
|
41
|
+
"@tamagui/core": "1.109.1",
|
|
42
|
+
"@tamagui/create-context": "1.109.1",
|
|
43
|
+
"@tamagui/helpers": "1.109.1",
|
|
44
|
+
"@tamagui/portal": "1.109.1",
|
|
45
|
+
"@tamagui/remove-scroll": "1.109.1",
|
|
46
|
+
"@tamagui/scroll-view": "1.109.1",
|
|
47
|
+
"@tamagui/stacks": "1.109.1",
|
|
48
|
+
"@tamagui/use-constant": "1.109.1",
|
|
49
|
+
"@tamagui/use-controllable-state": "1.109.1",
|
|
50
|
+
"@tamagui/use-keyboard-visible": "1.109.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "*"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@tamagui/build": "1.
|
|
56
|
+
"@tamagui/build": "1.109.1",
|
|
57
57
|
"react": "^18.2.0 || ^19.0.0"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
@@ -339,7 +339,7 @@ export const SheetImplementationCustom = themeable(
|
|
|
339
339
|
// avoid bugs where it grows forever for whatever reason
|
|
340
340
|
const next = Math.min(
|
|
341
341
|
e.nativeEvent?.layout.height,
|
|
342
|
-
Dimensions.get('
|
|
342
|
+
Dimensions.get('screen').height
|
|
343
343
|
)
|
|
344
344
|
if (!next) return
|
|
345
345
|
setFrameSize(next)
|
|
@@ -352,7 +352,7 @@ export const SheetImplementationCustom = themeable(
|
|
|
352
352
|
// avoid bugs where it grows forever for whatever reason
|
|
353
353
|
const next = Math.min(
|
|
354
354
|
e.nativeEvent?.layout.height,
|
|
355
|
-
Dimensions.get('
|
|
355
|
+
Dimensions.get('screen').height
|
|
356
356
|
)
|
|
357
357
|
if (!next) return
|
|
358
358
|
setMaxContentSize(next)
|