@tamagui/core 1.129.0 → 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.
- package/dist/native.js +4 -8
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -8
- package/dist/test.native.js.map +1 -1
- package/package.json +8 -8
package/dist/native.js
CHANGED
|
@@ -7948,12 +7948,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7948
7948
|
return Component2.staticConfig = extendStyledConfig(extended), Component2.styleable = styleable, Component2;
|
|
7949
7949
|
}
|
|
7950
7950
|
function styleable(Component2, options) {
|
|
7951
|
-
var _Component_render,
|
|
7952
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component2, {
|
|
7953
|
-
...props,
|
|
7954
|
-
ref
|
|
7955
|
-
});
|
|
7956
|
-
}), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
|
|
7951
|
+
var _Component_render, skipForwardRef = import_constants2.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);
|
|
7957
7952
|
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;
|
|
7958
7953
|
}
|
|
7959
7954
|
return res.extractable = extractable, res.styleable = styleable, res;
|
|
@@ -7964,7 +7959,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7964
7959
|
Unspaced.isUnspaced = !0;
|
|
7965
7960
|
var getSpacerSize = function(size, param) {
|
|
7966
7961
|
var { tokens } = param;
|
|
7967
|
-
size = size === !0 ? "$true" : size;
|
|
7962
|
+
size = size === !1 ? 0 : size === !0 ? "$true" : size;
|
|
7968
7963
|
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size;
|
|
7969
7964
|
return {
|
|
7970
7965
|
width: sizePx,
|
|
@@ -8016,6 +8011,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8016
8011
|
for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
8017
8012
|
var [index, child] = _step.value, _child_type, isEmpty = child == null || Array.isArray(child) && child.length === 0;
|
|
8018
8013
|
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, {
|
|
8014
|
+
// @ts-expect-error we explicitly know with shouldForwardSpace
|
|
8019
8015
|
space,
|
|
8020
8016
|
spaceFlex,
|
|
8021
8017
|
separator,
|
|
@@ -8083,7 +8079,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8083
8079
|
pointerEvents: "box-none"
|
|
8084
8080
|
}
|
|
8085
8081
|
}), fromPx = function(val) {
|
|
8086
|
-
return typeof val
|
|
8082
|
+
return typeof val == "number" ? val : typeof val == "string" ? +val.replace("px", "") : 0;
|
|
8087
8083
|
};
|
|
8088
8084
|
}
|
|
8089
8085
|
});
|