tamagui 1.135.0 → 1.135.2

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.
@@ -3401,7 +3401,10 @@ var require_mergeProps_native = __commonJS({
3401
3401
  ];
3402
3402
  var out = {};
3403
3403
  for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
3404
- for (var key1 in contextProps) key1 in props || (out[key1] = contextProps[key1]);
3404
+ for (var key1 in contextProps) if (!(key1 in props)) {
3405
+ var contextValue = contextProps[key1];
3406
+ contextValue !== void 0 && (out[key1] = contextValue);
3407
+ }
3405
3408
  for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
3406
3409
  return [
3407
3410
  out,
@@ -17949,26 +17952,27 @@ var require_SheetImplementationCustom_native = __commonJS({
17949
17952
  ...animationConfig
17950
17953
  }));
17951
17954
  }
17952
- }), isAbleToPosition = /* @__PURE__ */ function() {
17953
- return !(disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open);
17954
- }();
17955
+ });
17955
17956
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
17956
- hasntMeasured && screenSize && frameSize && (at.current = screenSize, animatedNumber.setValue(screenSize, {
17957
- type: "timing",
17958
- duration: 0
17959
- }, function() {
17960
- setTimeout(function() {
17961
- setDisableAnimation(!1);
17962
- }, 10);
17963
- }));
17957
+ if (hasntMeasured && screenSize && frameSize) {
17958
+ at.current = screenSize, animatedNumber.setValue(screenSize, {
17959
+ type: "timing",
17960
+ duration: 0
17961
+ }, function() {
17962
+ setTimeout(function() {
17963
+ setDisableAnimation(!1);
17964
+ }, 10);
17965
+ });
17966
+ return;
17967
+ }
17968
+ disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open || (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
17964
17969
  }, [
17965
17970
  hasntMeasured,
17971
+ disableAnimation,
17972
+ isHidden,
17973
+ frameSize,
17966
17974
  screenSize,
17967
- frameSize
17968
- ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
17969
- isAbleToPosition && (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
17970
- }, [
17971
- isAbleToPosition,
17975
+ open,
17972
17976
  position
17973
17977
  ]);
17974
17978
  var _props_disableDrag, disableDrag = (_props_disableDrag = props.disableDrag) !== null && _props_disableDrag !== void 0 ? _props_disableDrag : controller == null ? void 0 : controller.disableDrag, themeName = (0, import_core12.useThemeName)(), [isDragging, setIsDragging] = import_react3.default.useState(!1), panResponder = import_react3.default.useMemo(function() {