tamagui 1.105.2 → 1.105.4

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
@@ -8269,7 +8269,9 @@ current`, _object_spread9({}, styleState.style)));
8269
8269
  if (import_constants4.isClient && !insertedTransforms[identifier2]) var rule;
8270
8270
  }
8271
8271
  }
8272
- if (!isReactNative && viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
8272
+ if (isReactNative) {
8273
+ if (viewProps.tabIndex === 0) var _viewProps, _accessible;
8274
+ } else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
8273
8275
  }
8274
8276
  var styleProp = props.style;
8275
8277
  if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
@@ -22950,9 +22952,10 @@ var require_Image_native = __commonJS({
22950
22952
  var StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
22951
22953
  name: "Image"
22952
22954
  }), 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, [
22955
+ 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
22956
  "src",
22955
- "source"
22957
+ "source",
22958
+ "objectFit"
22956
22959
  ]);
22957
22960
  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
22961
  var finalSource = typeof src == "string" ? _object_spread9({
@@ -23021,6 +23024,7 @@ var require_Image_native = __commonJS({
23021
23024
  ]), finalSource.default && (finalSource = finalSource.default);
23022
23025
  }
23023
23026
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.Image, _object_spread9({
23027
+ resizeMode: objectFit,
23024
23028
  ref,
23025
23029
  source: finalSource,
23026
23030
  style
@@ -31934,8 +31938,9 @@ var require_Progress_native = __commonJS({
31934
31938
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
31935
31939
  }
31936
31940
  }), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
31937
- var __scopeProgress = props.__scopeProgress, indicatorProps = _object_without_properties5(props, [
31938
- "__scopeProgress"
31941
+ var __scopeProgress = props.__scopeProgress, animation = props.animation, indicatorProps = _object_without_properties5(props, [
31942
+ "__scopeProgress",
31943
+ "animation"
31939
31944
  ]), 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
31945
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressIndicatorFrame, _object_spread_props8(_object_spread9({
31941
31946
  "data-state": getProgressState(context.value, context.max),
@@ -31949,7 +31954,9 @@ var require_Progress_native = __commonJS({
31949
31954
  ],
31950
31955
  opacity: context.width === 0 ? 0 : 1
31951
31956
  }, indicatorProps), {
31952
- ref: forwardedRef
31957
+ ref: forwardedRef,
31958
+ // avoid animation on first render so the progress doesn't bounce to initial location
31959
+ animation: context.width ? animation : null
31953
31960
  }));
31954
31961
  });
31955
31962
  function defaultGetValueLabel(value, max2) {
@@ -36738,6 +36745,7 @@ var require_Switch_native = __commonJS({
36738
36745
  }, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
36739
36746
  name: "Switch",
36740
36747
  tag: "button",
36748
+ tabIndex: 0,
36741
36749
  variants: {
36742
36750
  unstyled: {
36743
36751
  false: {