tamagui 1.105.2 → 1.105.3

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/native.js CHANGED
@@ -3448,7 +3448,7 @@ var require_useMedia_native = __commonJS({
3448
3448
  if (!componentState) return initialState;
3449
3449
  var enabled = componentState.enabled, keys = componentState.keys, _componentState_prev = componentState.prev, prev = _componentState_prev === void 0 ? initialState : _componentState_prev;
3450
3450
  if (enabled === !1) return prev;
3451
- var _ref, testKeys = (_ref = (keys != null || enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || Object.keys(testKeys).every(function(key) {
3451
+ var hasntUpdated = !keys || Object.keys(keys).every(function(key) {
3452
3452
  return mediaState3[key] === prev[key];
3453
3453
  });
3454
3454
  return hasntUpdated ? prev : (componentState.prev = mediaState3, mediaState3);
@@ -6789,7 +6789,7 @@ var require_expandStyle_native = __commonJS({
6789
6789
  }
6790
6790
  });
6791
6791
  module2.exports = __toCommonJS2(expandStyle_exports);
6792
- var import_constants4 = require_index_native6(), import_webToNativeProps = require_webToNativeProps_native(), import_config = require_config_native();
6792
+ var import_constants4 = require_index_native6(), import_config = require_config_native(), import_webToNativeProps = require_webToNativeProps_native();
6793
6793
  function _define_property9(obj, key, value) {
6794
6794
  return key in obj ? Object.defineProperty(obj, key, {
6795
6795
  value,
@@ -22950,9 +22950,10 @@ var require_Image_native = __commonJS({
22950
22950
  var StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
22951
22951
  name: "Image"
22952
22952
  }), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
22953
- var _usePropsAndStyle = _sliced_to_array((0, import_core12.usePropsAndStyle)(inProps), 2), props = _usePropsAndStyle[0], style = _usePropsAndStyle[1], src = props.src, source = props.source, rest = _object_without_properties5(props, [
22953
+ var _usePropsAndStyle = _sliced_to_array((0, import_core12.usePropsAndStyle)(inProps), 2), props = _usePropsAndStyle[0], style = _usePropsAndStyle[1], src = props.src, source = props.source, objectFit = props.objectFit, rest = _object_without_properties5(props, [
22954
22954
  "src",
22955
- "source"
22955
+ "source",
22956
+ "objectFit"
22956
22957
  ]);
22957
22958
  process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
22958
22959
  var finalSource = typeof src == "string" ? _object_spread9({
@@ -23021,6 +23022,7 @@ var require_Image_native = __commonJS({
23021
23022
  ]), finalSource.default && (finalSource = finalSource.default);
23022
23023
  }
23023
23024
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.Image, _object_spread9({
23025
+ resizeMode: objectFit,
23024
23026
  ref,
23025
23027
  source: finalSource,
23026
23028
  style
@@ -31934,8 +31936,9 @@ var require_Progress_native = __commonJS({
31934
31936
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
31935
31937
  }
31936
31938
  }), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
31937
- var __scopeProgress = props.__scopeProgress, indicatorProps = _object_without_properties5(props, [
31938
- "__scopeProgress"
31939
+ var __scopeProgress = props.__scopeProgress, animation = props.animation, indicatorProps = _object_without_properties5(props, [
31940
+ "__scopeProgress",
31941
+ "animation"
31939
31942
  ]), context = useProgressContext(INDICATOR_NAME, __scopeProgress), _context_value, pct = context.max - ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100), _context_value1;
31940
31943
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressIndicatorFrame, _object_spread_props8(_object_spread9({
31941
31944
  "data-state": getProgressState(context.value, context.max),
@@ -31949,7 +31952,9 @@ var require_Progress_native = __commonJS({
31949
31952
  ],
31950
31953
  opacity: context.width === 0 ? 0 : 1
31951
31954
  }, indicatorProps), {
31952
- ref: forwardedRef
31955
+ ref: forwardedRef,
31956
+ // avoid animation on first render so the progress doesn't bounce to initial location
31957
+ animation: context.width ? animation : null
31953
31958
  }));
31954
31959
  });
31955
31960
  function defaultGetValueLabel(value, max2) {