tamagui 1.129.1 → 1.129.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.
@@ -8478,7 +8478,7 @@ var require_createComponent_native = __commonJS({
8478
8478
  return Component2.staticConfig = extendStyledConfig(extended), Component2.styleable = styleable, Component2;
8479
8479
  }
8480
8480
  function styleable(Component2, options) {
8481
- var _Component_render, isForwardedRefAlready = ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = isForwardedRefAlready ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
8481
+ var _Component_render, skipForwardRef = import_constants4.IS_REACT_19 && typeof Component2 == "function" || ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = skipForwardRef ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
8482
8482
  return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig, !0), process.env.TAMAGUI_MEMOIZE_STYLEABLE && (out = /* @__PURE__ */ import_react3.default.memo(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
8483
8483
  }
8484
8484
  return res.extractable = extractable, res.styleable = styleable, res;
@@ -8489,7 +8489,7 @@ var require_createComponent_native = __commonJS({
8489
8489
  Unspaced2.isUnspaced = !0;
8490
8490
  var getSpacerSize = function(size2, param) {
8491
8491
  var { tokens } = param;
8492
- size2 = size2 === !0 ? "$true" : size2;
8492
+ size2 = size2 === !1 ? 0 : size2 === !0 ? "$true" : size2;
8493
8493
  var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size2]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size2;
8494
8494
  return {
8495
8495
  width: sizePx,
@@ -8541,6 +8541,7 @@ var require_createComponent_native = __commonJS({
8541
8541
  for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
8542
8542
  var [index, child] = _step.value, _child_type, isEmpty = child == null || Array.isArray(child) && child.length === 0;
8543
8543
  if (!isEmpty && /* @__PURE__ */ import_react3.default.isValidElement(child) && !((_child_type = child.type) === null || _child_type === void 0) && _child_type.shouldForwardSpace && (child = /* @__PURE__ */ import_react3.default.cloneElement(child, {
8544
+ // @ts-expect-error we explicitly know with shouldForwardSpace
8544
8545
  space,
8545
8546
  spaceFlex,
8546
8547
  separator,
@@ -8608,7 +8609,7 @@ var require_createComponent_native = __commonJS({
8608
8609
  pointerEvents: "box-none"
8609
8610
  }
8610
8611
  }), fromPx = function(val) {
8611
- return typeof val != "string" ? val : +val.replace("px", "");
8612
+ return typeof val == "number" ? val : typeof val == "string" ? +val.replace("px", "") : 0;
8612
8613
  };
8613
8614
  }
8614
8615
  });